blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 247 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 4 111 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 58 | visit_date timestamp[ns]date 2015-07-25 18:16:41 2023-09-06 10:45:08 | revision_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | committer_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | github_id int64 3.89k 689M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 25
values | gha_event_created_at timestamp[ns]date 2012-06-07 00:51:45 2023-09-14 21:58:52 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-08-24 19:49:39 ⌀ | gha_language stringclasses 159
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 7 10.5M | extension stringclasses 111
values | filename stringlengths 1 195 | text stringlengths 7 10.5M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
54342cd17bfdfd052879a16d6481b8d7f9313a95 | d96d3e1e437c08150b304af24c4f2b935034ed05 | /NewtonRaphson/programa.cpp | 4656f46a4513d8fea9537f2512cdd377d13f487e | [
"MIT"
] | permissive | albertosaurio/CDD | 9d3d2cc882335cd601e619207999a54f23b3373a | 6cdf0e46e9f04cb11b95ad6e8c914f1430647e45 | refs/heads/master | 2020-07-13T12:30:06.659477 | 2019-08-30T04:24:36 | 2019-08-30T04:24:36 | 205,083,501 | 0 | 0 | null | 2019-08-29T04:56:28 | 2019-08-29T04:56:27 | null | UTF-8 | C++ | false | false | 4,245 | cpp | programa.cpp |
// correr con "g++ -std=c++11 programa.cpp -o programa && ./programa"
// cout << "String Coef Number: " << coefNumber << endl;
// cout << "string Exp Number: " << expNumber << endl;
// cout << "Current ARGV: " << argv[i][j] << endl;
// cout << "Exponent state: " << ex... |
b6b4e2e713f9ec39f056386356bd44204497320c | e075255b75a1c30a44c138360d7af5bdb959938f | /src/tools/qt-gui/src/newkeycommand.cpp | db71521a4a01e152136ed2329b05a861c2abbda8 | [
"BSD-3-Clause",
"DOC"
] | permissive | 0003088/qt-gui-test | 785243cb1c9303ee5fdb0a6b4d7b7137858c2e62 | 0ceaa19e5d4b50b110047c0b73eb4f79164f4532 | refs/heads/master | 2021-01-04T02:41:54.117830 | 2016-12-15T21:57:04 | 2016-12-15T21:57:04 | 76,114,845 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,497 | cpp | newkeycommand.cpp | /**
* @file
*
* @brief
*
* @copyright BSD License (see doc/LICENSE.md or http://www.libelektra.org)
*/
#include "newkeycommand.hpp"
#include <kdb.hpp>
NewKeyCommand::NewKeyCommand (TreeModel *model, const QModelIndex &parent, DataContainer * data, bool isBelow, QUndoCommand * parentCommand)
: QUndoCommand (pare... |
07e82df6461b42be84dcbf168c4a41385921b3ca | ad9328bca8a855510fd04e382379c61f655bf69f | /Project1/Project1/ResourceManager.h | 280823a150f7752dee9439ee9954b768921bac2c | [] | no_license | kooa77/trp2DtileGame_v2 | 1e25eddc0371f783afd49bdc8c6aaae8f0470e6f | 5371156e5eb63cb26ad66671e4a889a8a49d0e1e | refs/heads/master | 2021-05-05T14:09:47.913282 | 2018-02-13T02:16:37 | 2018-02-13T02:16:37 | 118,422,653 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 666 | h | ResourceManager.h | #pragma once
#include <d3dx9.h>
#include <string>
#include <map>
#include <vector>
class Texture;
class ResourceManager
{
// Singleton
private:
static ResourceManager* _instance;
public:
static ResourceManager* GetInstance();
private:
ResourceManager();
~ResourceManager();
// Texture
private:
std::map<std:... |
f39f182b1975df3ac16226737b454bcbc119c4cc | 75ee79b8abdd9512f6357a814e1cde5b537012f7 | /Shooterman/Common/Messages/MouseMessage.h | b3e25a6d8509b7e55b75c6f8d614c0f6f0db3359 | [] | no_license | BlindAnguis/Shooterman | 418aa8624719bd0ffa99cfdf29439b0303fb7cc0 | 166cab7df5a05fd4b506c6acf3f9748bcb4d0996 | refs/heads/master | 2020-04-21T17:35:51.915001 | 2020-01-31T15:42:53 | 2020-01-31T15:42:53 | 169,740,884 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 336 | h | MouseMessage.h | #pragma once
#include "Message.h"
#include "../MessageId.h"
class MouseMessage : Message {
public:
MouseMessage();
MouseMessage(sf::Packet packet);
MouseMessage(sf::Vector2i position);
~MouseMessage();
sf::Packet pack();
void unpack(sf::Packet packet);
sf::Vector2i getPosition();
private:
sf::Vector... |
8a835d4bba5c8643b35dcb4bf2c04a095cc1efbe | e90671c6b1cb69eaf57bd0ab4bbd1bd92ba9aea9 | /android/vendored/sdk48/@shopify/react-native-skia/cpp/rnskia/dom/base/JsiDomDrawingNode.h | 62174ab6b732950413ab0668557a2bca27bd7e2d | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | expo/expo | 72fc802e3b6806789225bdd856031a8d150dd6f5 | 40f087fc0c0ab22270cfef2673bced44af170c34 | refs/heads/main | 2023-08-17T01:38:28.442098 | 2023-08-16T21:43:11 | 2023-08-16T21:43:11 | 65,750,241 | 23,742 | 5,421 | MIT | 2023-09-14T21:37:37 | 2016-08-15T17:14:25 | TypeScript | UTF-8 | C++ | false | false | 1,137 | h | JsiDomDrawingNode.h | #pragma once
#include "JsiDomRenderNode.h"
#include "JsiPaintNode.h"
#include <memory>
namespace RNSkia {
class JsiDomDrawingNode : public JsiDomRenderNode {
public:
JsiDomDrawingNode(std::shared_ptr<RNSkPlatformContext> context,
const char *type)
: JsiDomRenderNode(context, type) {}
pr... |
89f68a671a999b1e660c22a9bf2a24d2a9513bbf | 8fe9d2824b1150c05e10b0db69a271dd5627da39 | /src/datastatehelper.hpp | 863c3f37e3241422cf1126d2c61120c36e7c9b86 | [] | no_license | Senspark/publisher-helper | f8a8f439bf4e2556442e50136e86f9e82f3fff3e | 23ce2b7a6d34a10afb0b4c9186ab250e74025eb2 | refs/heads/master | 2021-05-16T17:58:03.181631 | 2018-05-23T09:51:48 | 2018-05-23T09:51:48 | 103,126,564 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 966 | hpp | datastatehelper.hpp | #ifndef DATASTATEHELPER_HPP
#define DATASTATEHELPER_HPP
#include <QModelIndex>
#include <QStack>
#include <QVariant>
#include <QVector>
class MonoState {
public:
QModelIndex index;
QVariant oldValue;
QVariant newValue;
int role;
MonoState();
explicit MonoState(const QModelIndex& index, const... |
24025b556a978bd7366b23064c9bcc486020291d | e281c2427308c8cc93eb35a73a89f4fd70a0e486 | /backend/src/core/Entity.h | f2f207f75cf4bbb2e719a231c1d0d89e789d266f | [
"BSD-3-Clause",
"MIT"
] | permissive | MaxVanRaden/Gaffney-Orthotics-Capstone-Project | 7f9a4977ecc258b6b067de61758089df227766c2 | e953158931c9707e983a0a3a786c173c7f0db5f4 | refs/heads/main | 2023-05-13T07:54:12.005754 | 2021-06-05T05:31:43 | 2021-06-05T05:31:43 | 332,948,245 | 6 | 0 | NOASSERTION | 2021-06-05T05:28:17 | 2021-01-26T02:32:55 | C++ | UTF-8 | C++ | false | false | 1,566 | h | Entity.h | #ifndef GAFFNEY_ORTHOTICS_CAPSTONE_PROJECT_ENTITY_H
#define GAFFNEY_ORTHOTICS_CAPSTONE_PROJECT_ENTITY_H
#include "backend/src/engine/maths.h"
#include "backend/src/engine/texture.h"
#include "backend/src/engine/shaders.h"
#include "backend/src/engine/render.h"
//#define MAX_REVERT_COUNT 50
class Entity {
public:
... |
a7b5463732d74c37fd999db2f935bb316c8a3164 | 6ee124a530bad4b65a6e10c3bcfcd5ee282e868d | /December3/part1.cpp | 46019ac6a67a339c928352cc6057fc161a35c82d | [
"MIT"
] | permissive | ritikrajdev/advent-of-code | f97e273d98a70fe2ef9c0d222dbe1727b1e9a3e9 | b7c5d4397f66779fa5d90b5851ccc9d4549fcaf9 | refs/heads/main | 2023-01-27T22:12:55.752163 | 2020-12-07T19:36:02 | 2020-12-07T19:36:02 | 317,453,173 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 481 | cpp | part1.cpp | #include <fstream>
#include <iostream>
#include <string>
int main()
{
std::ifstream inputFile("input.txt");
std::string line;
int rightPosition = 0, treeCounter = 0;
while (std::getline(inputFile, line))
{
const int lineLength = line.length();
const char characterAtDesiredPosition = line[(rightPosition % li... |
9038098ac304f02edf0a20599ca851bee51ad168 | 572c9859d07746ea3b109c7675dd68ee5b0f0f31 | /src/researchUI/tests/notepad.cpp | 33604825154b5b1d3acb8fd8d5fddb62d269c6ea | [
"MIT"
] | permissive | filami/vidf | ce13f447142406bb80d55657b732122c16c2a65c | f93498e7e29fb39e6624e6e13450d0f5dc37abb0 | refs/heads/master | 2021-01-18T23:12:56.508550 | 2020-01-29T22:16:50 | 2020-01-29T22:16:50 | 42,007,421 | 0 | 0 | null | 2016-10-25T18:43:08 | 2015-09-06T15:23:58 | C++ | UTF-8 | C++ | false | false | 2,177 | cpp | notepad.cpp | #include "pch.h"
#include "notepad.h"
#include "yasli/Enum.h"
#include "yasli/STL.h"
void Entry::serialize(yasli::Archive& ar)
{
ar(name, "name", "Name");
ar(age, "age", "Age");
ar(position, "position", "Position");
}
void Document::serialize(yasli::Archive& ar)
{
ar(entries, "entries", "Entries");
}
YASLI_ENUM_... |
5c5bd61f56474b6f1ad58a521f317e06b103d655 | 3acff1e415ebeb32512681b77736b5416f524f71 | /Week 9 task 1 and 2/noppa.cpp | b9f98d683ce0983c188aa194adebee182488b7e9 | [] | no_license | SSyrah/Class-training | 95ca71445a6171093f8d973e96ad7b360ba07cc5 | 173fc6e321522f03912e6afec01164c7c3be8992 | refs/heads/master | 2023-04-14T17:50:46.962131 | 2021-04-26T15:03:15 | 2021-04-26T15:03:15 | 355,418,195 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 2,045 | cpp | noppa.cpp | #include "noppa.h"
noppa::noppa() : noppa1(0), noppaLkm(1), arpakuutio()
{
std::cout << "oletus-rakentaja aktivoitu:" << noppa1 << std::endl;
}
noppa::noppa(int noppaLkm) : noppa1(0), noppaLkm(noppaLkm), arpakuutio()
{
std::cout << "Parametrinen rakentaja aktivoitu" << std::endl;
if (noppaLkm <= MAX_NOPPIEN_LUKU... |
338e0f4460c9fc20911586d31c2b072b7ff741b0 | 10628747bc5b24614955c69f74419ae2afd925ae | /SonicProject/stdafx.h | 048ba0644fca8b7f5d5b044183e7c4877c842c1d | [] | no_license | snrkgotdj/Sonic_Project | 136fb7d96bc545650fd7b2c8235382aa13f85995 | 031f5c1ad55bdeaf09cb3d7c8cd406bf52f3cfb8 | refs/heads/master | 2020-04-08T14:05:04.015559 | 2018-11-28T00:57:24 | 2018-11-28T00:57:24 | 159,421,287 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,027 | h | stdafx.h | // stdafx.h : 자주 사용하지만 자주 변경되지는 않는
// 표준 시스템 포함 파일 또는 프로젝트 관련 포함 파일이
// 들어 있는 포함 파일입니다.
//
#pragma once
#include "targetver.h"
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#define _AFXDLL
#include <afxdlgs.h>
// C 런타임 헤더 파일입니다.
#include <stdlib.h>
#include <malloc.h>
#... |
40ffcad14d60abab8452d9ff7b9a9cc7469d8851 | 65835ff10b352b64ad7d2e3a176c3d3961491d68 | /src/bluetooth/BluetoothListener.h | ee1afb15b1c8c1cfc8da29a427189424960dea70 | [
"BSD-3-Clause"
] | permissive | jalowiczor/gateway | e86a389aad39f7f0672c1e7261b5c1d017338033 | 612a08d6154e8768dfd30f1e1f00de1bfcad090f | refs/heads/master | 2020-03-22T21:58:38.971896 | 2018-03-29T14:46:22 | 2018-03-29T14:46:22 | 140,725,706 | 0 | 0 | BSD-3-Clause | 2018-07-12T14:38:41 | 2018-07-12T14:38:40 | null | UTF-8 | C++ | false | false | 319 | h | BluetoothListener.h | #ifndef BEEEON_BLUETOOTH_LISTENER_H
#define BEEEON_BLUETOOTH_LISTENER_H
#include <Poco/SharedPtr.h>
namespace BeeeOn {
class HciInfo;
class BluetoothListener {
public:
typedef Poco::SharedPtr<BluetoothListener> Ptr;
virtual ~BluetoothListener();
virtual void onHciStats(const HciInfo &info) = 0;
};
}
#endif
|
ff5d56222f1256cc0180b3fb9c514e8cfc16bcb6 | f3acd4152dbed79e8e90fc3a766a93a2a64d70b7 | /troll.cc | fe4e0bd20a8d5b157662840a1b03a2d1df901881 | [] | no_license | w329li/cc3k | 0bf3f821f617eddaa1061da8e57b50fa0692a62c | 87bda10368b90babec1f7adac252826c202dae77 | refs/heads/master | 2021-07-05T16:42:34.024185 | 2017-09-24T22:48:22 | 2017-09-24T22:48:22 | 104,681,222 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 148 | cc | troll.cc | #include <iostream>
#include <string>
#include "troll.h"
using namespace std;
Troll::Troll():
Player(120,25,15,"Troll") {}
Troll::~Troll() {}
|
6785a3249c0425560eb7ec8d92db719c61456acb | 3894c1c0a265dfa91e114ff4df12236454efdb2c | /LeetCode/iter1/c++/633.sum-of-square-numbers.cpp | fde10a819723919a1a8fbb8563408b49537a60e1 | [] | no_license | jonathenzc/Algorithm | d770802337a8f4f36b94e42722d4d1954b45f408 | f6b3d1a3f987dd3f38aa38c6de4b37caef0880bc | refs/heads/master | 2020-04-04T00:16:38.780515 | 2020-03-12T16:10:43 | 2020-03-12T16:10:43 | 33,028,640 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 933 | cpp | 633.sum-of-square-numbers.cpp | #include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <sstream>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <queue>
#include <stack>
using namespace std;
class Solution {
public:
bool judgeSquareSum(int c) {
int upperBound = sqrt(c);
unordered_set... |
af2d01fa40a27c93ba8fc259de89277fc43c55d6 | 7f67919b5f5e087e8a26eacd8d5d1c1f94224cc6 | /src/backends/cl/workloads/ClPreluWorkload.hpp | abc77708b918dbb08a4b5e6d679fb52060cd8782 | [
"BSD-3-Clause",
"CC0-1.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ARM-software/armnn | 11f0b169291ade6a08cbef1e87b32000aeed4767 | 49f609d9e633f52fcdc98e6e06178e618597e87d | refs/heads/branches/armnn_23_05 | 2023-09-04T07:02:43.218253 | 2023-05-15T10:24:43 | 2023-05-15T16:08:53 | 124,536,178 | 1,053 | 329 | MIT | 2023-05-22T23:28:55 | 2018-03-09T12:11:48 | C++ | UTF-8 | C++ | false | false | 821 | hpp | ClPreluWorkload.hpp | //
// Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include "ClBaseWorkload.hpp"
#include <arm_compute/runtime/CL/functions/CLPReluLayer.h>
namespace armnn
{
arm_compute::Status ClPreluWorkloadValidate(const TensorInfo& input,
... |
fc6fc905c8d3a311b2daa997061ee248a24fe43b | 78d31f7946dac510ef230316d1a174275b06b4c6 | /Lobelia/Common/Utility/ResourceBank/ResourceBank.inl | 741663637e344690652d08bbe496a9210dacf7b3 | [] | no_license | LobeliaSnow/LobeliaEngine | 10b25746b3d02fdb9c26286e15124f7fd7b764ba | 8121e83998da656a047cc14eb6bd029ae8c2d63d | refs/heads/master | 2021-05-02T17:27:55.403882 | 2018-07-29T17:40:53 | 2018-07-29T17:40:53 | 120,646,038 | 1 | 0 | null | null | null | null | IBM852 | C++ | false | false | 1,508 | inl | ResourceBank.inl | namespace Lobelia {
template<class T, class Key> __forceinline ResourceBank<T, Key>::ResourceBank()noexcept = default;
template<class T, class Key> __forceinline ResourceBank<T, Key>::~ResourceBank()noexcept = default;
template<class T, class Key> template<class U, class... Args> __forceinline T* ResourceBank<T, Key... |
09be90ff5a5818599916f3b555ceff6b0776b00c | 8f3df24b317f9ebf87501e135b46c978f2e61fc9 | /code/szen/src/Game/Components/Animation.cpp | 566293215c00b044d0474612b60f7a4338187442 | [
"BSD-3-Clause"
] | permissive | Sonaza/scyori | 3cac16527094babf1919311630728b8c017adb82 | a894a9c7bd45a68ea1b6ff14877cdbe47ddd39cf | refs/heads/master | 2021-01-17T16:48:07.266567 | 2019-07-19T06:57:30 | 2019-07-19T06:57:30 | 9,025,008 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,400 | cpp | Animation.cpp | #include <szen/Game/Components/Animation.hpp>
#include <szen/Game/Components/Renderer.hpp>
using namespace sz;
////////////////////////////////////////////////////
Animation::Animation(sf::Vector2u framesize) :
m_frameID (0),
m_framesPerRow (0),
m_framesize (framesize),
m_playState (Stopped),
p_renderer (NU... |
d512799a74fc7c0b16a2eee1cb685cffe713afe1 | cc256899289f47aeab6c12a2ff22d0f22c07f164 | /src/subsys/factories/ClimberFactory.cpp | 64f40ad1f048579c33440580280be84ea5940de8 | [
"MIT"
] | permissive | Team302/2017Steamworks | 2bb1fa1ee5cd63b12b5523e1ec5424e348965e0b | 757a5332c47dd007482e30ee067852d13582ba39 | refs/heads/master | 2020-03-28T00:17:11.641666 | 2018-09-13T03:57:44 | 2018-09-13T03:57:44 | 147,391,522 | 0 | 0 | MIT | 2018-09-13T03:57:45 | 2018-09-04T18:35:13 | C++ | UTF-8 | C++ | false | false | 2,592 | cpp | ClimberFactory.cpp | /*
* ClimberFactory.cpp
*
* Created on: Jan 12, 2017
* Author: Tumtu
*/
//Team 302 includes
#include <subsys/factories/ClimberFactory.h> // This Class
#include <RobotDefn.h>
#include <subsys/CompBot/CompBotClimber.h>
#include <subsys/interfaces/IClimber.h>
#include <subsys/SWBot/SWBotClimber.h>
#include <... |
eaea82720a3f2521ecc9fb935e712a37faf4ea45 | 22efccb00473119295dc665039f1ff7500f1991b | /src/momentum_equation/not_used/fold_momentum_matrix.cpp | 701b7a2f1147b140f6a88c1ec6a65cfb0b98f23c | [] | no_license | chennipman/MCLS | 7fc62b6920901a2cbb3eb60e6863bb743e87ebca | ae7e89e707cce7b525621d580ea7375c617ca5a8 | refs/heads/master | 2021-01-10T18:51:45.993314 | 2014-08-29T18:07:28 | 2014-08-29T18:07:28 | 16,737,066 | 1 | 0 | null | 2014-08-05T12:49:52 | 2014-02-11T16:27:17 | C++ | UTF-8 | C++ | false | false | 1,098 | cpp | fold_momentum_matrix.cpp |
/********************************************************************************/
/* Function to include the boundary conditions into the momentum equation */
/* conditions */
/* */
/* Programmer : Duncan van der Heul */
/* Date : 10-03-2013 */
/* Update : ... |
2232bd56d8c7ba1f1a33a6066bbffe27c13ca395 | e50647617df5e997ee56859602677655b24b51a7 | /snake/snake/snake.ino | 289cb4466d78bae1ceebbcb7a7fc294819935883 | [] | no_license | ryandeng32/arduino_projects | 412a5cd87c10de0e5e5e555e39775d95c8150fc3 | 5398b0caa74b14b0bf80100c57969d213c4808e6 | refs/heads/master | 2020-06-25T07:32:06.885556 | 2019-07-28T10:46:31 | 2019-07-28T10:46:31 | 199,246,568 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,562 | ino | snake.ino | #include <LCD5110_Graph.h>
LCD5110 myGLCD(2, 3, 4, 5, 6);
int snakeX = 20;
int snakeY = 20;
int buttonLeft = 12;
int buttonRight = 9;
int buttonUp = 11;
int buttonDown = 10;
int buttonLeftState = 0;
int buttonRightState = 0;
int buttonUpState = 0;
int buttonDownState = 0;
int dir = 1;// 1: up, 2: down, ... |
b529c6f549bc553542eb498be456b9df205af4db | aa5bde78ca59672ec5f7953100a511f14dc23716 | /xdbd-sql-parser/sql_tables_part.cpp | d0006a688286bdd8e620c66c825d7675be70c3ab | [] | no_license | miranvodnik/xdbd | 5dbb530a7db3b8575cbe87e37bbe90e2a7b5bced | ae4ab6bb53b11c307951c6b9c67bbfa59cb42c5c | refs/heads/main | 2023-04-03T18:51:18.963054 | 2021-04-18T14:36:21 | 2021-04-18T14:36:21 | 358,135,606 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,217 | cpp | sql_tables_part.cpp | #include "SqlCompilerCallbacks.h"
#include "sql_tables_part.h"
sql_tables_part::sql_tables_part (sql_tables* c_sql_tables) : SqlSyntax (1, sql_tables_part_Context)
{
_init ();
m_sql_tables = c_sql_tables;
}
sql_tables_part::~sql_tables_part ()
{
delete m_sql_tables;
_init ();
}
void sql_tables_part::_init ()
{
... |
1eb2918506d43c488904ce12209b30f5ca0e72e3 | faf43bedc11c31f76a474f1463e3a4d39b867f3b | /Paradigmas/equationUva11565.cpp | 6aafdf91493fd83a5353506de243415b42affbaf | [] | no_license | AlexandreCordaJunior/URI | 4638582e90c2c123ed69966068f4d8362d12ef2b | be2cf7427d2cbdda162ffb3321da7fa88d1841b4 | refs/heads/master | 2020-09-27T14:37:02.784218 | 2020-03-08T01:08:34 | 2020-03-08T01:08:34 | 226,538,786 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 457 | cpp | equationUva11565.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
bool sol = false;
for(int x = -100; x <= 100; x++){
for(int y = -100; y <= 100; y++){
for(int z = -100; z <= 100; z++){
if(x != y && x != z && y != z){
if(x + y + z == a && x * y * z == b && (x * ... |
d37adaa984d01a92e648901ad9166c00c1898af1 | 777713d22368076710db7a008b791625b79bddae | /Hrbust_OJ/1928.cpp | 748013ab0cf14501ba8ac4a64a64fb048b5d6804 | [] | no_license | jelech/To_Be_ACMer | bcf468a5245b67f0d3d3604d2e867388fb21a5ee | 626d289ff76b013f2cb84bc2d5290c8d76182214 | refs/heads/master | 2021-04-06T00:28:24.653734 | 2019-10-14T12:00:52 | 2019-10-14T12:00:52 | 124,747,546 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 491 | cpp | 1928.cpp | #include <iostream>
#include <cstdio>
using namespace std;
int main(int argc, char const *argv[])
{
// int a[51] = {0};
int n;
while(cin >> n)
{
int hst = 0;
for (int i = 1; i <= n; ++i)
{
for (int j = 1; j <= n; ++j)
{
for (int k = 1; k <= n; ++k)
{
if ((i+j+k)>hst && ((i+j)%2 ==0 && (j+k)... |
603dd2e15c605f39ddbcc1f4885be3078a342f2e | d4a6eaa42b550136245801c37dfd97c264ac627a | /43/A/main.cpp | e8b745138befa296a78ec945deb82c9bae49e571 | [] | no_license | dburl/Codeforces | fb6f901949403a3289fa888729a0bf110780a1c4 | d18c1c667a0d3efacf70cc47f9bbad4d588561c3 | refs/heads/master | 2021-04-29T11:16:14.333654 | 2017-03-10T22:26:05 | 2017-03-10T22:26:05 | 77,853,332 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 389 | cpp | main.cpp | #include <iostream>
#include <map>
using namespace std;
int main(){
int n=0;
cin>>n;
map<string,int> m;
for (int i=0;i<n;++i){
string tmp;
cin>>tmp;
if(!(m.insert(make_pair(tmp,1)).second)){
m[tmp]+=1;
}
}
//
if (m.size()>1 && m.begin()->second < (++m.begin())->second){
cout<<(++m.begin())->first<... |
29ccaf4a95e857c2fc48ace4ef9c978a4f838244 | 88d9d32203be63b9585d6158ac828590c8bb0000 | /PreCalPhi.cpp | 5a1fd000b8bcbe51f2d897783bef5c0e69b3d64d | [] | no_license | dyrroth-11/CP-Templates | f8f34332ffba6666680816ae0e2511558dc8a1e5 | 6e53cbcae52ce3dd08c6276054d7efd9860ca40c | refs/heads/master | 2022-12-04T11:18:36.240241 | 2020-08-19T15:14:17 | 2020-08-19T15:14:17 | 283,750,500 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 384 | cpp | PreCalPhi.cpp | long long phi[MAX], result[MAX];
void computeTotient()
{
phi[1] = 1;
for (int i=2; i<MAX; i++)
{
if (!phi[i])
{
phi[i] = i-1;
for (int j = (i<<1); j<MAX; j+=i)
{
if (!phi[j])
phi[j] = j;
... |
0899e932cab8af598d0e991cbf0f40fc56c248e8 | def993d87717cd42a9090a17d9c1df5648e924ce | /src/IECorePython/CompoundParameterBinding.cpp | 2088e60f8b5f19bb2fc62357e12d65843b3ee653 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | ImageEngine/cortex | 688388296aad2b36dd0bfb7da7b25dcbdc7bd856 | 6eec66f5dccfd50dda247b04453bce65abc595eb | refs/heads/main | 2023-09-05T07:01:13.679207 | 2023-08-17T23:14:41 | 2023-08-17T23:14:41 | 10,654,465 | 439 | 104 | NOASSERTION | 2023-09-14T11:30:41 | 2013-06-12T23:12:28 | C++ | UTF-8 | C++ | false | false | 6,794 | cpp | CompoundParameterBinding.cpp | //////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2013, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... |
5a13217f9ad215f8fa8306b5f09a69f058ade942 | 627cf1386b14c096d7e242c0918ebecc5df35920 | /ellipse.cpp | a1a2c82ec77af4d97450d9b7194e46944df4360b | [] | no_license | JiaweiLing/CGLab | 62885aab93a4123bca2e2bd0ca5664004841ac28 | 6395a508dfd1a1fe36b39d3825a4b73484bb9499 | refs/heads/master | 2020-03-09T10:05:36.213737 | 2018-06-25T13:30:01 | 2018-06-25T13:30:01 | 128,728,325 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,226 | cpp | ellipse.cpp | #include<cmath>
#include<cstdio>
#include "ellipse.h"
ellipse :: ellipse()
{
}
void ellipse :: FillPolygon(QPainter &painter)
{
}
void EllipsePlot(int xc, int yc, int x, int y, QPainter &painter)
{
painter.drawPoint(xc + x, yc + y);
painter.drawPoint(xc - x, yc + y);
painter.drawPoint(xc + x, yc - y);
... |
ae206e64b20b0cac9c2d2c3ee2985ba69e32d89e | 2e5e8b544848b26025ec25226385a44981aacc77 | /杂题与数学题/uva11715(数学题).cpp | 677a738028e0392883409de28494cbf0c37491f5 | [] | no_license | sadkangaroo/OI-2011-2012 | 1c5fba91d7495ffbe7f17393cd82cda2d528a701 | 3d1e77737e688bb58b5c98137cec4ac6b178b173 | refs/heads/master | 2021-01-02T08:47:51.176018 | 2013-06-12T03:41:42 | 2013-06-12T03:41:42 | 10,635,741 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 820 | cpp | uva11715(数学题).cpp | #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<algorithm>
using namespace std;
int o, cnt;
double a, b, c, tmp;
int main() {
cnt = 0;
while (scanf("%d", &o) && o) {
scanf("%lf%lf%lf", &a, &b, &c);
printf("Case %d: ", ++cnt)... |
085d958d4054f485f7b78b7a93287281a74deb5b | 319109a80f11c2d3fdae10cf5d0f40ba088b16a4 | /CSC1180/t.cpp | 7801d0703aaba2660830dafe4fe3486c34ebdbb5 | [] | no_license | frazierde12/Sample-C-Code-for-Classes | 8e5911061ac66b10cbfa7ac28bc75129e8f8062a | 2770248d3e006dbfb8f0e3ab87e86a160c3f18fe | refs/heads/master | 2023-03-26T14:59:06.522285 | 2021-03-17T12:46:54 | 2021-03-17T12:46:54 | 348,702,241 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 272 | cpp | t.cpp | #include <iostream>
using namespace std;
template <typename T>
T addIT(T value1, T value2);
int main()
{
cout << addIT(2,3) << endl;
cout << addIT(2.5,3.7) << endl;
return 0;
}
template <typename T>
T addIT(T value1, T value2)
{
return value1 + value2;
}
|
56349e26824a7f2e58cd8c2f39560806874a3807 | e80018a14a349136e4d29b9e8ebb1a2b0eadd952 | /1.KAKAO/KAKAO 2021/3.합승택시요금(dijkstra).cpp | 88424ce6d5a710f73f1a79e25d06894ac19c3868 | [] | no_license | HenryNoh/Coding-Test | 9a857df974dcce54488083d531365ecde93b14ec | a65e09fa611f2b1db18cb5950e5e2ce84f998bdc | refs/heads/master | 2023-04-26T09:40:00.599140 | 2021-05-13T05:07:41 | 2021-05-13T05:07:41 | 347,883,090 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,797 | cpp | 3.합승택시요금(dijkstra).cpp | //12:40
//1:10
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
vector<vector<int>> money;
vector<vector<int>> d;
vector<bool> v;
int gsi(int n, int s)
{
int min = 30000000;
int index = 0;
for (int i = 0; i < n; i++)
{
if (d[s][i] < min && !v[i... |
dd4675cdb8d0898cb35b03bdf0d4a278b624cb26 | 52d58615a974fd015245ae3f93f6ba94f784e3eb | /GM3/Point3d.h | 11b66fa705791ead8e7507dc9cff3fd0df3bf9a8 | [] | no_license | KawaSwitch/KawaGM | 9e89aede87729d2fe8796724afe802e7c3b77924 | 34237dd213a97363a834ef5dd469134372dfedd4 | refs/heads/master | 2020-03-23T13:38:39.001821 | 2018-11-10T13:50:36 | 2018-11-10T13:50:36 | 141,629,257 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,007 | h | Point3d.h | #pragma once
// 3次元座標の1点
class Point3d
{
public:
double X, Y, Z;
// Vector3d互換
explicit operator Vector3d() { return Vector3d(X, Y, Z); }
Point3d(double x, double y, double z)
{
X = x;
Y = y;
Z = z;
}
Point3d(const Vector3d &v)
{
X = v.X;
Y =... |
b56a9ce454a683bc0c13aa02bf49c53dccb1fdbe | a725f75e7d70539f7b3e8cacac48a8c39c90b68f | /Event.cpp | c29f80137db3ff993a52666ed16f425b68866c47 | [] | no_license | simonwulf/StarClone64 | f9b1bd805980028f4e4f5248d25d4c34654c71c5 | 75db2d03e4a36af0a5def87c81a526ffcb940f1e | refs/heads/master | 2016-09-05T10:24:49.699552 | 2014-01-19T17:44:48 | 2014-01-19T17:44:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 68 | cpp | Event.cpp | #include "Event.h"
Event::Event(Type type) {
this->type = type;
} |
c1dae5c28fb9c8dd10f84a504f392c9d535b4649 | de731a38511e0f345babfeaab5735d8920061f2c | /软件包/软件包/adj_list_undir_network.h | f75c774490f8e3fe51b762bf22381ab69d22c34e | [] | no_license | chris3will/Learn_the_data_structure_in_a_stupid_way | 4f63a70c0e5077f89f110b182d6032bd58a58c1c | 558c7194f1be1ff0212f0ea922a5682908bebf9a | refs/heads/master | 2020-04-10T01:11:15.056752 | 2018-12-12T02:51:42 | 2018-12-12T02:51:42 | 160,708,507 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 18,157 | h | adj_list_undir_network.h | #ifndef __ADJ_LIST_GRAPH_H__
#define __ADJ_LIST_GRAPH_H__
#include "lk_list.h" // 线性链表类模板
#include "adj_list_network_edge.h" // 邻接表无向网边数据类模板
#include "adj_list_network_vex_node.h" // 邻接表无向网顶点结点类模板
// 无向网的邻接表类模板
template <class ElemType, class WeightType>
class AdjListUndirNetwork
{
protected:
// 邻接表的数据成员:
... |
0abe371e6ca4e5bb9bb827c7988a8c7a8152199e | 049c07a55fc50c8b8c59538f0b7387cd2584ba51 | /rev/solution.cpp | a21fb6b647fec4097ae158886cbd6c6e36920b75 | [] | no_license | ahmed-bhs/hackfest2017 | c04ad31e93703e771c0b4275812f9ee70edde4a6 | 4644101f4e7d5bf9e0dadef56fdd3a615dc5f115 | refs/heads/master | 2021-06-16T05:38:33.428124 | 2017-04-23T23:28:27 | 2017-04-23T23:28:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,386 | cpp | solution.cpp | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define INF (int)(1e9+7)
#define PI acos(-1)
#define F first
#define S second
#define _QWORD unsigned long long
ll powf(ll a,ll b){
// return powl(a,b) ;
if(b == 0)return 1LL ;
else if(b&1){
return powf(a,b/2)*powf(a,b/2)*a ;
... |
1de10248f5a7437cea1e6978bde7e929f9a0d946 | 80c585608b7bb36ef5653aec866819e0eb919cfa | /src/Evernote API/Evernote/EDAM/NoteStore/SyncState (NoteStore).cpp | 5968bf6a1691c5501a095f036ba90adedf4a5b33 | [] | no_license | ARLM-Attic/peoples-note | 109bb9539c612054d6ff2a4db3bdce84bad189c4 | 1e7354c66a9e2b6ccb8b9ee9c31314bfa4af482d | refs/heads/master | 2020-12-30T16:14:51.727240 | 2013-07-07T09:56:03 | 2013-07-07T09:56:03 | 90,967,267 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,035 | cpp | SyncState (NoteStore).cpp | /**
* Autogenerated by Thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
*/
#include "../NoteStore.h"
#include <fstream>
#include <map>
#include <set>
#include <string>
#include <vector>
#include <windows.h>
#include <Thrift/Thrift.h>
#include <Thrift/Protocol.h>
#include <Thrift/Transpor... |
390dbb45139c06b59a810b731232903eaa8001a8 | 4352b5c9e6719d762e6a80e7a7799630d819bca3 | /tutorials/oldd/box/9.9e-05/U | f8ba4310b48d7c1a291e342f3f297281aa5c70c5 | [] | no_license | dashqua/epicProject | d6214b57c545110d08ad053e68bc095f1d4dc725 | 54afca50a61c20c541ef43e3d96408ef72f0bcbc | refs/heads/master | 2022-02-28T17:20:20.291864 | 2019-10-28T13:33:16 | 2019-10-28T13:33:16 | 184,294,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 82,507 | U | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
53fd87cc304053f8f2be7604544b799b755632f4 | 19fde8ce837204bc8ab1a2d34445a7326d95b153 | /Invite/2016_hust/F/A.cpp | eb0fb5098c2dfcd8be555bd3c060d3d52a8f4c6b | [] | no_license | JS00000/acmCode | aad59f1fdd66bb3b4b2208c8c5be0f26b7169405 | eda5dbcef4a66618fc27e79184a2ae93618ee6b1 | refs/heads/master | 2021-05-24T04:27:11.966469 | 2021-03-01T08:55:35 | 2021-03-01T08:55:35 | 55,392,212 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,496 | cpp | A.cpp | #include<iostream>
#include<algorithm>
#include<cstring>
#include<cstdio>
#include<cmath>
#define maxn 100005
#define LL long long
#define eps 1e-8
using namespace std;
int kase = 0;
LL tree[maxn * 4], n, m;
bool flag[maxn * 4];
void Insert(int root, int ll, int rr, int k, LL x)
{
if (ll == rr)
... |
62d9f6aa0855f13d2369e7d22b5f85ff218d67fd | f0386bb084cc9da15331fcacf4f7676fca67ba8b | /assignment2/AtomicTest.cpp | 2f90915257ec9e71a106905ef5cc3fa32f000ee6 | [] | no_license | xuetianw/DistributedSystem | 6125d8eb846afb47df7c04e24caddc6de9af4c9c | 169d5d69f9b941bc8ad838f9f576acc8cdf71eb6 | refs/heads/master | 2023-01-07T21:53:54.753885 | 2020-11-08T13:08:56 | 2020-11-08T13:08:56 | 300,460,991 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,539 | cpp | AtomicTest.cpp | //
// Created by fred on 2020-10-15.
//
//#include <atomic>
//template<typename T>
//struct node
//{
// T data;
// node* next;
// node(const T& data) : data(data), next(nullptr) {}
//};
//
//template<typename T>
//class stack
//{
// std::atomic<node<T>*> head;
//public:
// void push(const T& data)
// ... |
61f145cc89dd7ef99a70b229f937013449b0e710 | 6d4b5957dccbd94ebeac2a75fe2e47a38adc0db2 | /libs/libtorc-baseui/opengl/uiopenglframebuffers.h | 8d620c7c8c302bacbf48720c3ef7464608d07f0f | [] | no_license | gwsu/torc | b681d1cd86fb7be4d0b0574e71c3f492f736f533 | 1c56be71abffb770033084dd44aa2d3031671a5f | refs/heads/master | 2021-01-18T19:32:11.908377 | 2014-02-25T12:41:27 | 2014-02-25T12:41:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,308 | h | uiopenglframebuffers.h | #ifndef UIOPENGLFRAMEBUFFERS_H
#define UIOPENGLFRAMEBUFFERS_H
// Qt
#include <QVector>
// Torc
#include "torcbaseuiexport.h"
#include "uiopengldefs.h"
#include "uiopengltextures.h"
#include "uiopenglview.h"
class GLTexture;
class TORC_BASEUI_PUBLIC UIOpenGLFramebuffers : public UIOpenGLView, public UIOpenGLTextures... |
9ef86fbe5e55c8cbeba27f22b15aa096c09ca0b9 | 2248e62ab73c5b36e31ab5306eec47252ed3671b | /Chapter 3/3_8.cpp | 6c0d02dca14dea53c55307970ddc34ad187aeb7c | [] | no_license | ShadowHu/CppPrimer5th | 845c9e9478ea4133adbae1b14e508db8d8420163 | 849263129dadea6743b759a79175a105cabc415c | refs/heads/master | 2021-01-01T05:24:23.295908 | 2017-05-11T09:22:49 | 2017-05-11T09:22:49 | 57,224,274 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 658 | cpp | 3_8.cpp | /*************************************************************************
> File Name: 3_8.cpp
> Author:
> Mail:
> Created Time: 2014年08月14日 星期四 21时04分42秒
************************************************************************/
#include<iostream>
using namespace std;
int main(){
string s = "hello world";... |
657d177ff9625633af9aeadc506039d2c7c1ad4e | ded682a97d00b85055471a5f27240f67d1ba2373 | /Main/src/Search.cpp | c76f1f3c9b36339e266929c7260a85c410b0f76b | [
"MIT"
] | permissive | Drewol/unnamed-sdvx-clone | c9b838da0054019fb9f4c07cb608c05455c9cd4e | 7895040479b560c98df19ad86424b2ce169afd82 | refs/heads/develop | 2023-08-11T15:22:23.316076 | 2023-08-02T17:31:35 | 2023-08-02T17:31:35 | 66,410,244 | 726 | 149 | MIT | 2023-08-02T17:31:36 | 2016-08-23T23:10:52 | C++ | UTF-8 | C++ | false | false | 1,111 | cpp | Search.cpp | #include "stdafx.h"
#include "Search.hpp"
String SearchParser::Parse(const String& input, const Vector<SearchKey> keys)
{
String raw = input;
SearchKey key = { "" , nullptr };
char last = '\0';
for (size_t i = 0; i < raw.length(); i++)
{
const String& keyName = key.first;
if (last != '\0' && last != ' ') {
... |
6386b6beaaff457aec3f2b89f1c6499a44aaf764 | 4351a81d4a4fae778711643cb9644534e595920d | /C++/Project Euler/e61.cpp | c2bd93054541711cbe975542837e09b48ed03cd3 | [] | no_license | nsmith0310/Programming-Challenges | ba1281127d6fa295310347a9110a0f8998cd89ce | 7aabed082826f8df555bf6e97046ee077becf759 | refs/heads/main | 2023-08-13T14:47:10.490254 | 2021-10-13T04:35:57 | 2021-10-13T04:35:57 | 416,565,430 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,529 | cpp | e61.cpp | #include <iostream>
#include <string>
#include <vector>
#include <map>
using namespace std;
int main(){
int lim = 100000;
vector<string> master;
map<string,int> mp;
for (int i=1;i<lim;i++){
string tmp = to_string(i*(i+1)/2);
int lth = tmp.length();
if (lth<4){
continue;
}
else if (lth==4){
mast... |
69eb501169ac4a3a54f7f7a5783825423180f881 | ff0cc7e931d038a9bd9a56665b20cd8dab071959 | /src/Modules/wxMitk/libmodules/wxMitkRendering/src/wxMitkRenderingManager.cxx | c15c5a23171fec1c7276d81b9bd58c88dcf96857 | [] | no_license | jakubsadura/Swiezy | 6ebf1637057c4dbb8fda5bfd3f57ef7eec92279b | bd32b7815b5c0206582916b62935ff49008ee371 | refs/heads/master | 2016-09-11T00:39:59.005668 | 2011-05-22T19:38:33 | 2011-05-22T19:38:33 | 1,784,754 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,363 | cxx | wxMitkRenderingManager.cxx | /*
* Copyright (c) 2009,
* Computational Image and Simulation Technologies in Biomedicine (CISTIB),
* Universitat Pompeu Fabra (UPF), Barcelona, Spain. All rights reserved.
* See license.txt file for details.
*/
#include "wxMitkRenderingManager.h"
#include "wxMitkRenderingRequestEvent.h"
#include "wxMitkAbortEventFil... |
be64cf086b888c12c5d083a4c87349fe116d8c79 | bf1d5617e91b97c663394fb04f8ed38c4a05cb40 | /Number of Digits.CPP | 970660fe312d72ffe245ddda5e1616c607bad7b0 | [] | no_license | devanshpahuja/codingninjasDSA | 3d16d4bc3405a07012e8c11aa1909fe6dcc1df06 | c1cab36eac2c2463174590ac0483d4f679dbeaa4 | refs/heads/main | 2022-12-30T01:51:41.598046 | 2020-10-19T12:50:08 | 2020-10-19T12:50:08 | 305,376,420 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 280 | cpp | Number of Digits.CPP | /*int count(int n){
if(n == 0){
return 1;
}
int smallAns = count(n / 10);
return smallAns + 1;
}
*/
int count(int n){
if(n == 0){
return 0; //change this line's return to 0
}
int smallAns = count(n / 10);
return smallAns + 1;
}
|
509e5687e78e9b32f51b65b79d55fcfcc5f80bd5 | 02f474baf7931867b0e2675ef69f5059e68d9483 | /src/Application/include/component/Experience.hpp | d63dba23957e9e214c9d62b8a6be01088ab66263 | [
"ISC",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Mathieu-Lala/game_project | 646e69904bb4bd8e564a56bf2e14e635b47ed366 | 896e865249911e8360b8f100bebecc9f8c817269 | refs/heads/develop | 2023-02-01T02:00:05.043259 | 2020-12-19T09:01:10 | 2020-12-19T09:01:10 | 293,030,007 | 5 | 0 | ISC | 2020-12-16T02:28:56 | 2020-09-05T07:54:34 | C++ | UTF-8 | C++ | false | false | 118 | hpp | Experience.hpp | #pragma once
#include <cstdint>
namespace game {
struct Experience {
std::uint32_t xp;
};
} // namespace game
|
978361c7b59bc0a8f7d9817168aab36ea03ffc80 | fc9ccd3b38650b2710c730a1ad9c32b6d9e5cc7b | /SPOJ/GSCANDY.cpp | b06ea9425312b7204af226d194e674ec1d283af9 | [] | no_license | surya3214/coding | 7643642b197f1f83733e00c381b89086ea801c84 | 28a0d5b188bda75c1d44b5a036af87e0d468081e | refs/heads/master | 2021-06-03T08:40:53.182286 | 2020-08-05T18:25:24 | 2020-08-05T18:25:31 | 110,145,839 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,826 | cpp | GSCANDY.cpp | // AC 0.00 F yeah!
#include <bits/stdc++.h>
#define BUFFER 5
#define BUFF(x) x + BUFFER
#define N_MAX 1000
// #pragma GCC optimize "O4"
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
int n, t_time;
int candy[BUFF(N_MAX)];
struct C {
int idx;
int val;
} sorted_candy[BUFF(N_MAX)];
... |
278339bed82343ea42eae394e180aa20d8cb0c41 | fc48798bf10d008f2f10dea234c30425d423f1fd | /DHCPserver/DHCPServer/SocketServer.h | 3cb077a963733b4d739bbe869d0b65956bf3603a | [] | no_license | shicaiwei123/DHCP-Server | ffb4034a7437edfe27b96ba6ed8837965628dacc | 228f9a94a996db24fb0bc6be6603dc1424efc1d3 | refs/heads/master | 2021-05-16T00:28:55.895866 | 2017-10-28T03:21:02 | 2017-10-28T03:21:02 | 107,005,103 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 234 | h | SocketServer.h | #pragma once
#include "SocketBasic.h"
//#include <Winsock2.h>
//#include<stdio.h>
class socketServer : public socketBasic
{
public:
socketServer();
int socketBind(int port);
int socketListen(int listenNum);
//int socketRecv();
}; |
a639e77c58909c56fb7ccd65bacc5d86729c80ad | 8c422474eb080365f3d167dc1531de5c7cd7c241 | /Ray_tracer/reflective_shader.cpp | 627bf08a243993f960577dce318abbe0f9f29373 | [] | no_license | Maxine100/CS130 | 1d8241dcc11d59867da6c442aed8a89e8fda3061 | 8b164aca79bfa2a16901099ab2edfb00e97ba3f4 | refs/heads/master | 2023-03-29T06:50:39.605687 | 2021-04-06T18:51:20 | 2021-04-06T18:51:20 | 347,242,264 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 640 | cpp | reflective_shader.cpp | #include "reflective_shader.h"
#include "ray.h"
#include "render_world.h"
vec3 Reflective_Shader::
Shade_Surface(const Ray& ray,const vec3& intersection_point,
const vec3& normal,int recursion_depth) const
{
vec3 color;
TODO; // determine the color
Ray reflected_ray;
reflected_ray.endpoint = intersection... |
3605e1b784363ada42f3278fff207f18c7d7b357 | 4dbaea97b6b6ba4f94f8996b60734888b163f69a | /POJ & HDU/exgcd乘法逆元_A_Boring_Question.cpp | 39f8e91f9e0fd26cd904be7737f9c190f5bfa79d | [] | no_license | Ph0en1xGSeek/ACM | 099954dedfccd6e87767acb5d39780d04932fc63 | b6730843ab0455ac72b857c0dff1094df0ae40f5 | refs/heads/master | 2022-10-25T09:15:41.614817 | 2022-10-04T12:17:11 | 2022-10-04T12:17:11 | 63,936,497 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,023 | cpp | exgcd乘法逆元_A_Boring_Question.cpp | #include <iostream>
#include <cstring>
#include <cstdio>
#include <algorithm>
using namespace std;
const int MOD=1000000007;
long long multi(long long a,long long b)
{
long long ret=1;
while(b>0)
{
if(b&1)
ret=a*ret%MOD;
a=a*a%MOD;
b/=2;
}
re... |
5a78674bd36ea19a19e7b46f1210ac2352d8333e | 391eda9326c5ae9fee1b3edb7272a0cfcdbc1851 | /simulate_keyboard.cpp | 5845fa26305b94f5f1534defda828a84a6bff944 | [
"Apache-2.0"
] | permissive | xk19yahoo/SimulateKeyboard | 98d7875217f3db6733c36cdaf9bdd8c9a3cfbb2b | 0d164d219690a33a3ac67b76f6f34302d6ea7f2b | refs/heads/master | 2020-05-18T09:41:29.204180 | 2015-05-14T05:53:41 | 2015-05-14T05:53:41 | 35,593,068 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 798 | cpp | simulate_keyboard.cpp | //C++ 模拟键盘输入
#define WINVER 0x0500
#include <windows.h>
#pragma comment(lib,"User32.lib")
#pragma comment(lib,"ws2_32.lib")
int main()
{
// This structure will be used to create the keyboard
// input event.
INPUT ip;
// Pause for 5 seconds.
Sleep(5000);
// Set up a generic keyboard event.
... |
7864f587d681bc3aed208814c899051646c174b0 | fc4b07490c42de86e97351c8b1ddceecaff3877e | /include/urdf2robcogen/Urdf2RobCoGen.hpp | 505961a8bdae1a0b1592b2ca06ccaf0b4ff51bf8 | [
"BSD-3-Clause"
] | permissive | mcamurri/urdf2robcogen | f35251423e088f5c9c69d5f1d476e7c272d3c8a1 | fbf7aa1dbe4612021c76c2c96c3085bd8a89f920 | refs/heads/master | 2021-07-12T17:12:03.660814 | 2019-10-07T16:03:51 | 2019-10-07T16:03:51 | 222,954,537 | 1 | 0 | BSD-3-Clause | 2019-11-20T14:21:48 | 2019-11-20T14:21:48 | null | UTF-8 | C++ | false | false | 698 | hpp | Urdf2RobCoGen.hpp | //
// Created by rgrandia on 24.09.19.
//
#include <string>
#include <tinyxml.h>
#include <urdf/model.h>
/**
* Creates a kindsl and dtdsl file based on the provided urdf.
*
* If the root link is called "world", a fixed based system is generated, otherwise a floating base system is generated.
*
* The following c... |
14c19b32cf1be3218afbc5e42c92980789da941a | 805206825d15f30177fd64b7967bb7d7283d5212 | /数据结构/-1_分治法/插入排序.cpp | b18f00f9b41791fa044f1ab83df06820ba9bbfb7 | [] | no_license | Benshakalaka/DataStructure | 71cdfb7a0543b358e4d40c73e97e3b09fe11158b | 40e699e91eb8d5c5adbc60d1ed0fc5a3e07d5bed | refs/heads/master | 2020-07-08T12:00:32.195392 | 2016-11-18T13:47:06 | 2016-11-18T13:47:10 | 74,025,323 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 378 | cpp | 插入排序.cpp | #include <stdio.h>
void insert(int *a,int len)
{
int i,j,k,temp;
for(i=0;i<len-1;i++)
{
temp = a[i+1];
for(j=0;j<=i;j++)
{
if(temp<a[j])
{
for(k=i+1;k>j;k--)
a[k]=a[k-1];
a[j] = temp;
temp = a[i+1];
}
}
}
}
int main()
{
int a[6] = {7,4,1,9,3,6};
insert(a,6);
for(int i=0;i<6;i++)... |
3f7254c4c81888d56929dbd345427dec2edb105c | 1027ef7d98c2ce62bae908ae41f748bec64e7940 | /src/Omega_h_confined.cpp | 0550d06e8639790157831b700f6f1118b2badf28 | [
"BSD-2-Clause",
"BSD-2-Clause-Views"
] | permissive | gahansen/omega_h | fb114ec66e8bf9610466907ac86d8c104c067322 | dc235450cf15b2b9549fabe8472269e7f8618cae | refs/heads/master | 2023-05-25T01:44:44.508388 | 2022-09-28T19:45:05 | 2022-09-28T19:45:05 | 151,169,286 | 2 | 0 | NOASSERTION | 2018-10-01T22:30:05 | 2018-10-01T22:30:05 | null | UTF-8 | C++ | false | false | 10,126 | cpp | Omega_h_confined.cpp | #include "Omega_h_confined.hpp"
#include "Omega_h_for.hpp"
#include "Omega_h_mark.hpp"
#include "Omega_h_mesh.hpp"
#include "Omega_h_shape.hpp"
#include "Omega_h_simplex.hpp"
/* Code to find classification-enforced constraints on
* element size and shape.
* For example, two geometric boundaries may be so close
* a... |
71804547ae4b1d0db08bfdaa6e249daf9e9c13f2 | d212de37a2b11dea7dedf0f77e61db45edc5fced | /acm/topcoder/BoardPainting.cpp | b411d3d1d5bdb66ed7b911f768491b709ca81acf | [] | no_license | code6/playground | 089435464982d725c0edbfa8cdf8f5c1b067f140 | cc139d7691ca65e9b1fd353409521ec60fcb6718 | refs/heads/master | 2021-01-18T16:30:04.745814 | 2017-07-09T11:27:46 | 2017-07-09T11:27:46 | 6,527,533 | 1 | 6 | null | 2016-10-09T07:19:34 | 2012-11-04T04:59:47 | C++ | UTF-8 | C++ | false | false | 6,130 | cpp | BoardPainting.cpp | // BEGIN CUT HERE
/*
// PROBLEM STATEMENT
// There is a white rectangular board divided into a grid of unit square cells.
Fox Ciel wants to paint some of the cells black, so that the board looks as described by the vector <string> target.
More precisely: for each i, j, the cell in row i, column j of the board (0-based ... |
0ba7fc17bcbaba980f6756dd55d1caa60cd8fb48 | 8bf0a9e96ef62f7b8a13761e4a413f9574eb7c18 | /books/C++Programing/chapter07/09.HASComplsite/HASComposite.cpp | 8541dbf801e3ee3e87f44db80dd3db93ed3abe7d | [] | no_license | doukheeWon-gmail/cplusplusStudy | 1c0a3d1f249f2b1d3b6b73f5b7c33e93bae3e4e0 | 7b89a7ee597108a093115cd22c3ec6ef0403c07f | refs/heads/master | 2023-02-22T23:05:45.723420 | 2021-01-24T15:07:16 | 2021-01-24T15:07:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,336 | cpp | HASComposite.cpp | /**
* 상속 보단 더 자세히 여러가지 가능성을 열어둘 수 있다.
* 예를 들면, 총을 가지고 있지 않는 경찰도 표현 가능, 총을 가지고 있는 사람만 표현이 가능하던
* 상속의 문제를 해결 가능하다.
*/
#include <iostream>
#include <cstring>
using namespace std;
class Gun{
private:
int bullet;
public:
Gun(int bNum):bullet(bNum){
}
void Shot(){
c... |
517d59380c7472620d334117843f86f44d660928 | 44aa96eecc54c7f5d56a899df2dac983379556dd | /server_b03705018.cpp | d68b55ced467515496c95c4e48295300565a743d | [] | no_license | Echim2016/P2P_socket | dd37aea311429f05602273c2aa451b86df45b071 | 98d7c99ce9d084da464f614c0a804626a0971277 | refs/heads/master | 2021-01-19T16:28:17.107080 | 2017-04-14T12:40:24 | 2017-04-14T12:40:24 | 88,265,928 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,376 | cpp | server_b03705018.cpp | #include <iostream>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <string.h>
#include <cstring>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <pthread.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <openssl... |
7d346ae5df8db81089113629f843f84bac79091a | 0e02f4574bfa64cbf47f1fd1371292711f8db325 | /include/crossword_game_menu.h | 642fb990968dfdf2c65cb45ace567caf244b4ab1 | [] | no_license | prashant-3108/AI-for-school | 8d59697b80680f4f553085cfc7d7640b160f609e | 4a95381038a3944cff4ffb5c5baba989aff6cd47 | refs/heads/main | 2023-07-30T16:57:39.345134 | 2021-09-18T10:28:52 | 2021-09-18T10:28:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 79 | h | crossword_game_menu.h | using namespace std;
class CrosswordGameMenu
{
public:
void showMenu();
}; |
d2c7a4f5ddd16c4ea56f3ce88629c43a71c3391b | b2552f1f63a2760ffc81bde2abb1b08e2371b790 | /packmen.cpp | b491426ff03241f5d178943510ed6b09e42bfb5a | [] | no_license | andreiarnautu/Algorithmic-Problems-Part-3 | 81a1ce455beb048a9dee927c5cffd1b0a31e46a2 | 8b52be3852fac7bc37fe9ac96707f895028cb675 | refs/heads/master | 2021-07-24T12:44:03.788894 | 2021-06-06T12:06:42 | 2021-06-06T12:06:42 | 251,015,413 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,245 | cpp | packmen.cpp | /**
* Worg
*/
#include <deque>
#include <string>
#include <iostream>
int n;
std::string str;
bool get_verdict(std::deque<int>& packmen, std::deque<int>& food, const int& time) {
if (food.empty()) {
return true;
}
if (packmen.empty()) {
return false;
}
int x1, x2, y;
if (p... |
5492e7e38edbe2df44a4f16bbae28ca57b6cba2d | 7e0b9b6797c66d594e649647327f32ec722c86f8 | /alienbinder8/src/packageiteminfo.cpp | 7242f987a043a4ecc3452d4751ab215ba01775e1 | [] | no_license | topiasv/aliendalvik-control | 9a804375b31037b7a64d2cfeca50c74d3d33bea8 | 7164635b3f995ccd00ea00dd9cd5ff95c27cc67d | refs/heads/master | 2022-12-16T01:02:16.657367 | 2020-09-28T08:11:44 | 2020-09-28T08:11:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,098 | cpp | packageiteminfo.cpp | #include "packageiteminfo.h"
#include "parcel.h"
PackageItemInfo::PackageItemInfo(Parcel *parcel, const char *loggingCategoryName)
: LoggingClassWrapper(loggingCategoryName)
{
name = parcel->readString();
qCDebug(logging) << Q_FUNC_INFO << "Name:" << name;
packageName = parcel->readString();
qCDebu... |
de2fa4da31524d23e120cd40ed7c6f4b3f7c2e74 | 4d6bf26f4d9a43082f87e177c1a2ac6c9662c288 | /Chapter 3/Example/4.cpp | 20306a7cd69bfcf8ef6cca5ebc22a76f8cfa147b | [] | no_license | Miao4382/Starting-Out-with-Cplusplus | 08d13d75fdb741be59a398b76275c5ee394840ca | dd3a1eadcf403ae57a68183987fc24fbfac0517f | refs/heads/master | 2020-05-24T23:22:49.978761 | 2019-05-20T18:40:01 | 2019-05-20T18:40:01 | 187,513,299 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 452 | cpp | 4.cpp | /*This program asks the user to enter the numerator and denominator of a fraction, and it displays
the decimal value*/
#include <iostream>
using namespace std;
int main()
{
double numerator, denominator;
double fractional;
cout << "Please input the numerator and denominator, separate by space\n";
cin >> numerat... |
3d788ce5480caa90c6e92d29a975e61061827f85 | ece30e7058d8bd42bc13c54560228bd7add50358 | /DataCollector/mozilla/xulrunner-sdk/include/nsISynthVoiceRegistry.h | 52dd533f88e5571cd1bba81f8f22738ac1632256 | [
"Apache-2.0"
] | permissive | andrasigneczi/TravelOptimizer | b0fe4d53f6494d40ba4e8b98cc293cb5451542ee | b08805f97f0823fd28975a36db67193386aceb22 | refs/heads/master | 2022-07-22T02:07:32.619451 | 2018-12-03T13:58:21 | 2018-12-03T13:58:21 | 53,926,539 | 1 | 0 | Apache-2.0 | 2022-07-06T20:05:38 | 2016-03-15T08:16:59 | C++ | UTF-8 | C++ | false | false | 9,340 | h | nsISynthVoiceRegistry.h | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl\nsISynthVoiceRegistry.idl
*/
#ifndef __gen_nsISynthVoiceRegistry_h__
#define __gen_nsISynthVoiceRegistry_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#i... |
62866f09861c83b46b9fee024cd435343fae678d | 9574b31ac860c3c02db778c21b44c59112de2bd7 | /_PBRRenderer/SpicesRenderer/SpicesRenderer/Source/OpenGL/Shader/ShaderAssemblageInfo_OpenGL.cpp | b66f53aee50bd815eb6d0ea9a048be0fa4a03f9d | [] | no_license | json-jcc/graphics_samples | 2da33ac8a462d12f712b9d78c7ee9e958e1194a9 | ae5e1edf90370cd2b6d50e10aee4db21ca576a14 | refs/heads/main | 2023-04-03T12:53:41.496236 | 2021-04-09T02:50:11 | 2021-04-09T02:50:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 41 | cpp | ShaderAssemblageInfo_OpenGL.cpp | #include "ShaderAssemblageInfo_OpenGL.h"
|
ccd5253090aee0e8b134cc17eafefea4e924d5ce | 8e9b7e24dd10c0994fda0f74a7f94c8264ea07e2 | /FactoryMethod2/windows/Dialog.h | 885fe48a09a97a2cdef72e6f4fe7dba8add8bcb8 | [] | no_license | akhtyamovpavel/PatternsExample | 763ffc2be32ffb8a86d3ee521f0bf0701ac059f2 | 465f944daf6909066c9f3b6b402e73484e07dd09 | refs/heads/master | 2021-04-26T23:06:09.185411 | 2018-03-26T10:27:53 | 2018-03-26T10:27:53 | 123,931,722 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 228 | h | Dialog.h | //
// Created by Pavel Akhtyamov on 05/03/2018.
//
#pragma once
#include <memory>
#include "../buttons/IButton.h"
class Dialog {
public:
void RenderWindow();
virtual std::unique_ptr<IButton> CreateButton() const = 0;
};
|
ec324dfd05473275b056e151b21c5b2fde170590 | 08c4c72067a82b4663b9a8a0a4b20b188eb89f2f | /src/string_chemifier.cpp | 2a6815c6db737b00e63d034d7504c245bb80fe7f | [] | no_license | ArchieGertsman/Algorithms | 099e3c62be03c416eb8c2c65944610d5159507aa | 2c49e153be725aea4cd991f64cb21f478d1f3886 | refs/heads/master | 2021-05-10T10:24:29.629256 | 2018-05-30T22:03:28 | 2018-05-30T22:03:28 | 118,382,173 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,558 | cpp | string_chemifier.cpp | #include <iostream>
#include <fstream>
#include <set>
#include <string>
#include <locale>
#include <vector>
#include <sstream>
#include <algorithm>
std::set<std::string> elems;
const auto MAX_SYM_LEN = 2;
std::vector<std::string> split(const std::string &s, char delim) {
std::stringstream ss(s);
std::string item;
... |
12a197b85bed6a82407898edde79006992f95516 | 07d8596560ea476d6c01ea528f4bf1541a5d7d4b | /IntersectionOfTwoArraysTwo.cpp | d8a04ce560f5a87fb68cca1561439c6192f724bb | [] | no_license | VibhorKanojia/LeetCode | af58b3ef73a58282f743f3909b8ae5e7f22758d2 | b1a027509222dc5ddd760552c49ef9bec705c6f0 | refs/heads/master | 2018-12-19T10:54:36.467985 | 2018-11-04T22:21:35 | 2018-11-04T22:21:35 | 117,844,583 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 780 | cpp | IntersectionOfTwoArraysTwo.cpp | class Solution {
public:
vector<int> intersect(vector<int>& nums1, vector<int>& nums2) {
vector<int> solution;
unordered_map<int, int> mapper;
unordered_map<int, int>::iterator it;
for (int i = 0 ; i < nums1.size() ; i++){
it = mapper.find(nums1[i]);
if (it ==... |
48b71d766330fb3cb7c709a1640033302efffc79 | 873002d555745752657e3e25839f6653e73966a2 | /model/PollResponseResource.h | 7bce8f5752df874f45942cd18ff6544ff3745269 | [] | no_license | knetikmedia/knetikcloud-cpprest-client | e7e739e382c02479b0a9aed8160d857414bd2fbf | 14afb57d62de064fb8b7a68823043cc0150465d6 | refs/heads/master | 2021-01-23T06:35:44.076177 | 2018-03-14T16:02:35 | 2018-03-14T16:02:35 | 86,382,044 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,626 | h | PollResponseResource.h | /**
* Knetik Platform API Documentation latest
* This is the spec for the Knetik API. Use this in conjunction with the documentation found at https://knetikcloud.com.
*
* OpenAPI spec version: latest
* Contact: support@knetik.com
*
* NOTE: This class is auto generated by the swagger code generator 2.3.0-SNAPS... |
e1e6d00a900df761d860e95194a3b6637beeb002 | 0a381bcc118ad2d18fea78b3bef44951c1737b51 | /GeneralisedSoftBody/GeneralisedSoftBody/Edge.h | 59023dab4ae46c1669842107cacf935de3486766 | [] | no_license | HarryJamesDavies/GeneralisedSoftBodies | 0b694a86a791f7b0ff2eedc65ec24fd1193c6e18 | c5da618fc0b5b1c9ff09874f1f689b10b22ecf6c | refs/heads/main | 2023-08-04T02:56:51.650342 | 2021-09-12T18:20:25 | 2021-09-12T18:20:25 | 405,718,606 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 774 | h | Edge.h | //=================================================================
// Container for two vertices and identifiers of the neighbouring triangles
//=================================================================
#ifndef _EDGE_H_
#define _EDGE_H_
class Triangle;
struct Vertex;
class Edge
{
public:
Edge();
Edge(int ... |
7ebeb87960d1d48f71e6b1d5c0ce34b06473565e | 3a3211781702ba573e1e1b4127cdd39b55c5b66a | /Tree.cpp | 3f45f28df64dfcba9ea03fb3d9bb2cb786b6c20b | [] | no_license | lamc8684/McIntire_CSCI2270_FinalProject | d77cbc7cb0a2c416c44671c18bf70201337e1105 | 690d952a78c47ba588d4da191a2f09249df1bda6 | refs/heads/master | 2020-06-09T01:31:33.363920 | 2015-04-29T23:11:47 | 2015-04-29T23:11:47 | 34,069,148 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 8,202 | cpp | Tree.cpp | #include "Tree.h"
#include <iostream>
#include <cstdlib>
#include <vector>
#include <math.h>
#include <cmath>
#include <iomanip>
#include <queue>
#include <stdio.h>
using namespace std;
/*
Function Prototype:
Tree::Tree(int)
Function Description:
This function initializes the Tree that we are going to use to calcula... |
4dd612059fdb0776b9efeef33871f2982eee0900 | b7ee9ac14d6981e18fa1b19214366878a4884a42 | /Projects/Skylicht/Engine/Source/Graphics2D/CGUIExporter.cpp | 42e12ab1f38c84ec779016bea973bae7d37bc8cf | [
"MIT"
] | permissive | skylicht-lab/skylicht-engine | 89d51b4240ca6ed5a7f15b413df5711288580e9e | ff0e875581840efd15503cdfa49f112b6adade98 | refs/heads/master | 2023-09-01T02:23:45.865965 | 2023-08-29T08:21:41 | 2023-08-29T08:21:41 | 220,988,542 | 492 | 46 | MIT | 2023-06-05T10:18:45 | 2019-11-11T13:34:56 | C++ | UTF-8 | C++ | false | false | 2,412 | cpp | CGUIExporter.cpp | /*
!@
MIT License
Copyright (c) 2019 Skylicht Technology CO., LTD
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify... |
34f775403586e20ac22986289895c93ef988c54f | 59773363f2ddc32944bdec43b2726b9255a67f7b | /seospider/include/header_decoration_widget.h | 2090736b87be15c3b4dfc16d3eb5c569054b9eda | [] | no_license | andrascii/RiveSolutions_SEO_Spider | 44ed25765562b520550574519d9ea9eab58a0d12 | 2dc9a51f80525e113eff461f54d64be74c61593a | refs/heads/master | 2022-12-27T17:04:02.618392 | 2020-10-14T10:17:54 | 2020-10-14T10:17:54 | 167,695,020 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 777 | h | header_decoration_widget.h | #pragma once
namespace SeoSpider
{
class CollapseHeaderButton;
class HeaderDecorationWidget : public QFrame
{
Q_OBJECT
public:
HeaderDecorationWidget(QWidget* parent = nullptr);
void addWidgetToHeader(QWidget* widget, Qt::AlignmentFlag align = Qt::AlignLeft, bool last = false) const;
void addCon... |
1fe948264f0ff25e2ca79384fcecad62bc4b0b57 | 82fba7822cce0376e242019679ef9bdae7231ad3 | /ABACUS/source/src_lcao/unkOverlap_lcao.cpp | d074b23b03dc8da307535d4b5f69bd15efbffcc4 | [] | no_license | abacus-ustc/abacus-GPU | 968bf7f7f91b3922ff43ff332438fbeacc748fd1 | d326fe411c8cdd718ac101693645da3bc17b4a19 | refs/heads/master | 2023-04-15T08:07:00.917906 | 2021-04-09T16:50:34 | 2021-04-09T16:50:34 | 346,221,292 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 21,797 | cpp | unkOverlap_lcao.cpp | #include "unkOverlap_lcao.h"
#include "../src_lcao/lcao_nnr.h"
#include "ctime"
#include "src_global/scalapack_connector.h"
unkOverlap_lcao::unkOverlap_lcao()
{
allocate_flag = false;
/*
const int kpoints_number = kv.nkstot;
lcao_wfc_global = new complex<double>**[kpoints_number];
for(int ik = 0; ik < kpoints_nu... |
2dc461d4e7a0ede87cd0d4e2b5d9635f2130ae55 | 00468e19a2af654b97c34c4464e2353627cff6f1 | /belonogov/main.cpp | f5c94146b2918755a170c54e0cd4f33e7973b3f9 | [] | no_license | eugene536/KSE | 69afdad2d62f050faf3c739573bb9856a20a049d | 690ae5252f5c5257c19e9db20bd9de04297af8c9 | refs/heads/master | 2021-03-19T14:35:12.558235 | 2016-12-22T10:13:53 | 2016-12-22T10:13:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,508 | cpp | main.cpp | #include <iostream>
#include "solver_1_2.h"
using namespace std;
using namespace parts_1_2;
int main() {
parts_1_2::Solver solver;
if (1) {
//db(consts::get_K(1, 823));
//cout << solver.get("Al", "V", 823) << endl;
// cout << solver.get("Ga", "V", 950 + 273) << endl;
// cout <... |
ee66d377faf3d83cc84c5b4a5d651c7afa956bb4 | 33eab256de2307c19b6a92e9f92bef94cec16aa0 | /348A.cpp | c3af8f518364a2166962ace6a7e48eab936788e5 | [] | no_license | latteprog/Codeforces | 6856357e7d51c0d4346dd1eb8fb3b45507786451 | 1873c5167cd2834eda2ba14eaeed9fdac5ee6ec2 | refs/heads/master | 2021-01-09T23:35:16.047481 | 2016-11-30T18:19:34 | 2016-11-30T18:19:34 | 73,215,513 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 539 | cpp | 348A.cpp | #include <stdio.h>
#include <math.h>
#include <algorithm>
using namespace std;
int main()
{
long long int n,i,a,mx = 0,mn = 1000000000,s,e,m,sum = 0;
scanf("%I64d",&n);
for(i = 0; i < n; i++)
{
scanf("%I64d",&a);
sum += a;
mn = min(a,mn);
mx = max(a,mx);
}
s ... |
041ce64280f0e33688f0536ede327cae44df196a | b344a9459695d169ec06da08e5fbeec1a5633f55 | /Include/TransmitServer/HTTPServer/HTTPRequestHandlerFactory.h | e81b5bdee7f68ac84e1343632c55dcb43dd955e2 | [] | no_license | shuchuangtech/Shuchuang | 50bebda1dd64a8274602049d9111e170c33285fb | 202d7af9bd666667c6ac91a1903d2d862ee97b53 | refs/heads/master | 2020-12-28T17:11:44.956583 | 2016-06-06T13:51:38 | 2016-06-06T13:51:38 | 39,610,756 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 491 | h | HTTPRequestHandlerFactory.h | #ifndef __SERVER_HTTP_REQUEST_HANDLER_FACTORY_H__
#define __SERVER_HTTP_REQUEST_HANDLER_FACTORY_H__
#include "Poco/Net/HTTPRequestHandlerFactory.h"
#include "Poco/Net/HTTPRequestHandler.h"
#include "Poco/Net/HTTPServerRequest.h"
class CHTTPRequestHandlerFactory : public Poco::Net::HTTPRequestHandlerFactory
{
public:
C... |
524d8b63cd0bb5eddf79bf8965394543822a5fe2 | 5888c735ac5c17601969ebe215fd8f95d0437080 | /All code of my PC/ARRY DELETE.CPP | 681ce6e00b7285cbe4ccfd77f73c55f0e41eb213 | [] | no_license | asad14053/My-Online-Judge-Solution | 8854dc2140ba7196b48eed23e48f0dcdb8aec83f | 20a72ea99fc8237ae90f3cad7624224be8ed4c6c | refs/heads/master | 2021-06-16T10:41:34.247149 | 2019-07-30T14:44:09 | 2019-07-30T14:44:09 | 40,115,430 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 315 | cpp | ARRY DELETE.CPP | #include<stdio.h>
#include<conio.h>
int main()
{
int a[23],loc,n,i;
//clrscr();
printf("\nrange:");
scanf("%d",&n);
printf("\nloc:");
scanf("%d",&loc);
for(i=1;i<=n;i++)
scanf("%d",&a[i]);
for(i=loc+1;i<=n;i++)
{
a[i-1]=a[i];
}
n=n-1;
for(i=1;i<=n;i++)
printf("%d",a[i]);
getch();
}
|
af13226a606f3c266f4fb85bb72dd75cbc4a9163 | 5268f1f6657eb0a6eb9db0e57ebb1ace54547e98 | /AccountException.h | f3aa4be826e0499484449d8bc2596c1cf0ba9a18 | [] | no_license | DapengJin/Comprehensive_Example | 5af00809e1516911cd4a2db44c0704dc6962eff0 | d6162d822b16c648563b10f224cc867754c60c48 | refs/heads/master | 2022-08-02T15:29:05.421364 | 2020-06-03T04:19:06 | 2020-06-03T04:19:06 | 261,595,743 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 540 | h | AccountException.h | //
// Created by 45184 on 2020/6/2.
//
#ifndef COMPREHENSIVE_EXAMPLE_ACCOUNTEXCEPTION_H
#define COMPREHENSIVE_EXAMPLE_ACCOUNTEXCEPTION_H
#include <stdexcept>
#include "Account.h"
using namespace std;
class Account;
class AccountException : public runtime_error{
private:
const Account * account;
public:
Acco... |
9d91c433bdd8b451dfe850be1f86310b3252f419 | d6f907bbdcc73c9d235792143829071c89f46a70 | /Chombo/releasedExamples/MappedMultiBlock/srcPolytropic/CubedSpherePolyIBC.cpp | 78b13e94363579609b720e451ab7ba7141e78837 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | LLNL/COGENT | 2095aa2dfda75f03b01d7d271ee01059ebaa99e0 | 955f848bcfb8811ebdf6c52c605efb3b71e5177c | refs/heads/master | 2023-08-23T19:00:32.957355 | 2023-05-06T03:05:11 | 2023-05-06T03:05:11 | 61,917,616 | 13 | 5 | null | 2023-01-20T22:18:06 | 2016-06-24T23:22:42 | C++ | UTF-8 | C++ | false | false | 11,708 | cpp | CubedSpherePolyIBC.cpp | #ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
#include "CubedSpherePolyIBC.H"
#include "CubedSpherePolyIBCF_F.H"
#include "... |
f83f4b28d17ab8fcdae62c9f3c3afaedb2701d82 | 13a1988494bf68298e7984c04887312778664a5d | /src/newframework/GL/program.h | 885738b2ee6d096d70d3dcd818a646342d875013 | [] | no_license | zc5872061/opengl_Renderer | 0864c81611bc7052b574327a24a68a4eb76c3a14 | 931d501ba0052f1bd1a73e0b37a0d7f38c86e89b | refs/heads/master | 2020-04-12T22:49:01.195954 | 2015-10-21T17:04:31 | 2015-10-21T17:04:31 | 41,361,175 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 478 | h | program.h | #ifndef PROGRAM_H
#define PROGRAM_H
#include <vector>
#include <GL/glew.h>
#include "shader.h"
namespace GL {
class Program {
public:
Program();
~Program();
GLuint getHandle();
GLint status();
void use();
private:
GLuint _handle;
std::vector<Shader> createShaders();... |
1cfbc509a5175bc2714eaf966b373edde65a59dc | 0a611eb5db3b4d71f90dcb368444e4d8ea935f4f | /Lines_window.cpp | dd6ed0defdecf8387990a2f6b269a3c0e554a824 | [] | no_license | Laci101/prog1 | 49ad6a37def4e1bf994b04163cdbbfd01547e23b | dd7d04bca1a77c218c5a60b8cc86bfa04464a2f1 | refs/heads/master | 2023-04-10T22:49:59.387127 | 2021-04-24T12:41:12 | 2021-04-24T12:41:12 | 340,932,087 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,902 | cpp | Lines_window.cpp | #include "Lines_window.h"
Lines_window::Lines_window(Point xy, int w, int h, const string& title)
: Window{xy, w, h, title},
next_button{Point{x_max() - 150, 0}, 70, 20, "Next point",
[](Address, Address pw) { reference_to<Lines_window>(pw).next(); }},
quit_button{Point{x_max() - 70, 0}, 70, 20, "Q... |
cda64d486d5944f849f23e729130e24f364d5586 | e880735a3d31663fc8b5a5d047d46dac4b8b216d | /SN-LC-MCMC/V2/LC3MCMCv2.cpp | f954b03384265c63fc3a07300d4641cf7cc567e4 | [] | no_license | Hydralisk24/Science | 8b1a301cf8646323dae4f4f87b1f7c17d2a381b2 | 7f2462699ba2a745a46a4991111fc9fbae8b6e5d | refs/heads/master | 2023-05-11T03:31:24.996362 | 2023-04-26T16:09:15 | 2023-04-26T16:09:15 | 204,718,754 | 2 | 3 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 49,248 | cpp | LC3MCMCv2.cpp | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <iostream>
#include <cstring>
#include <fstream>
#include <string>
#include <sstream> // double -> string-hez kell
#include <iomanip> // set precision
#define day 86400.0 /*1 day in seconds*/
//#define xmin 0.2 /*Minimu... |
480ebcbeee5aab96b1175ff5c08ffc2bdeee7742 | a0b0eb383ecfeaeed3d2b0271657a0c32472bf8e | /lydsy/2863.cpp | 432a30c7207a76a122c454de13e64f124c706e4d | [
"Apache-2.0"
] | permissive | tangjz/acm-icpc | 45764d717611d545976309f10bebf79c81182b57 | f1f3f15f7ed12c0ece39ad0dd044bfe35df9136d | refs/heads/master | 2023-04-07T10:23:07.075717 | 2022-12-24T15:30:19 | 2022-12-26T06:22:53 | 13,367,317 | 53 | 20 | Apache-2.0 | 2022-12-26T06:22:54 | 2013-10-06T18:57:09 | C++ | UTF-8 | C++ | false | false | 746 | cpp | 2863.cpp | #include <cstdio>
const int maxn = 3001, mod = 1000000007;
int n, pow2[maxn * maxn], c[maxn][maxn], f[maxn];
int main()
{
scanf("%d", &n);
c[0][0] = 1;
for(int i = 1; i <= n; ++i)
{
c[i][0] = c[i][i] = 1;
for(int j = 1; j < i; ++j)
{
c[i][j] = c[i - 1][j - 1] + c[i - 1][j];
if(c[i][j] >= mod)
c[i][j... |
39b7123cb0f81a42fa83737df0f748bda3252093 | bfb9caeb27d216883724710f64a9d5f85248e1a2 | /NFAchv/AchvClerk.cpp | 62698c2f100b4aaa042aa25bccd3a2bbc5b1e2e8 | [] | no_license | bback99/NFGame | 2c0340aa4315ed80aedb85379c32a30d79a1cfcf | e94fb6412271f4f95c200ea4ecab774f506b3877 | refs/heads/master | 2020-07-02T09:52:24.393478 | 2016-11-21T01:02:36 | 2016-11-21T01:02:36 | 74,312,821 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,793 | cpp | AchvClerk.cpp | #include "stdafx.h"
#include <achv/AchvBureau.h>
namespace achv
{
extern bool ConvertNFDateString2time_t( const std::string & NFDateString, time_t & timeVal );
}
using namespace achv;
/*static*/
Clerk* Clerk::Create(Bureau* pBureau, Databank* pDB, LONG GSN, LONG CSN)
{
std::auto_ptr<Clerk> ptr(new C... |
42da0d30c49b2841c50559b966ebe9eac63f2694 | 2576195ce1e0fffde521bb80b3e0de689dd86fa0 | /tutorails/skeleton/skeleton.cpp | d89b5b711f2f9dde713a0daddaecd5c36ae3d323 | [] | no_license | woaitubage/QT | 48e62937c4cba349aaf84d1bafaef61b26862a07 | 90d711dda23dff79c16fd76767cb7039200d5257 | refs/heads/master | 2021-01-01T03:32:21.507798 | 2016-05-04T07:42:51 | 2016-05-04T07:42:51 | 56,436,428 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,029 | cpp | skeleton.cpp | #include "skeleton.h"
#include "ui_skeleton.h"
#include <QMenu>
#include <QMenuBar>
#include <QStatusBar>
#include <QTextEdit>
#include <QToolBar>
Skeleton::Skeleton(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::Skeleton)
{
ui->setupUi(this);
QPixmap newpix("new.png");
QPixmap openpix("open.pn... |
36a5f665ccf222a90285528f997e205d70ea9ae3 | 24b543f07c4149b033863c83b83a20d9795a528c | /src/LibLinear/liblinear.clr.h | cf1f0ee155387a7ef708cb27205f9fc38a66ea64 | [
"MIT"
] | permissive | aardvark-community/aardvark.semantictextonforests | a408799a67692f4bfcba4c1bdf4788035d50eff4 | 5f5060d7fc25683808c632bda0620b8e69f4d1c1 | refs/heads/master | 2021-09-18T19:26:57.168331 | 2018-07-18T13:47:58 | 2018-07-18T13:47:58 | 35,613,333 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,966 | h | liblinear.clr.h | #pragma once
#include <stdio.h>
#include <stdlib.h>
#include <msclr/marshal.h>
#include "linear.h"
using namespace System;
using namespace System::Collections;
using namespace System::Collections::Generic;
using namespace System::Globalization;
using namespace System::IO;
using namespace System::Runtime::InteropServi... |
ce69f51b9c798b0ae1fe40e76aaa8e4f2691a57a | ee2c15d82ff596f4ca9eda408f8e096b787f0d48 | /lec_04_sorts/codes/countChar.cpp | 2684c0d0ab6a4d566347f66812e1ad6ec16dcd0d | [] | no_license | sainimohit23/algorithms | 1bbfee3bd4d1049b18425bf0d86ecaacd4c43ea0 | 911986abe015f7518ef169a5866b1058c7d41d4f | refs/heads/master | 2022-11-13T17:40:06.128838 | 2020-06-30T17:35:35 | 2020-06-30T17:35:35 | 268,071,412 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 186 | cpp | countChar.cpp | #include <iostream>
using namespace std;
int main(){
char c;
// cin >> c;
int cnt = 0;
while(cin >> c && c != '$'){
// if(c=='$') break;
++cnt;
// cin >> c;
}
cout << cnt;
} |
4ee2643ccd5632399446e668a297a1121c390ebb | a97b9ad50e283b4e930ab59547806eb303b52c6f | /class/4nov_plate_kwSST/20/k | 846835e8d611ec1080faf6c4b8dda82b8791ad66 | [] | no_license | harrisbk/OpenFOAM_run | fdcd4f81bd3205764988ea95c25fd2a5c130841b | 9591c98336561bcfb3b7259617b5363aacf48067 | refs/heads/master | 2016-09-05T08:45:27.965608 | 2015-11-16T19:08:34 | 2015-11-16T19:08:34 | 42,883,543 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 101,144 | k | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.0 |
... | |
12f870f35777e86983efcf7d019805fcc08479a7 | cf43f47adbe14d8886d0cca7cafd0d9f66e5b9dc | /4.cc | 122075cd5c2084ffb450ff87e184d34b40652b7d | [] | no_license | schildmeijer/project-euler | d3db80ab3b8d1d969feafed5fb02464538ada0c9 | 881e5542db8d4e9702c80fae21eee4cc3e06fffb | refs/heads/master | 2021-01-01T06:33:59.499913 | 2010-02-20T08:20:42 | 2010-02-20T08:20:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 925 | cc | 4.cc | #include <iostream>
#include <vector>
#include <NTL/ZZ.h>
#include <sstream>
//A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 99.
//Find the largest palindrome made from the product of two 3-digit numbers
using namespace std;
using name... |
e41de24b7beb61e9f357069786137498e524331f | 9dbeabc73c230cb4d7421f9b01430afffa7a2893 | /week6/20-kdistance.cpp | 0fadbe411cb51c346d303d9906d071b5050888c3 | [] | no_license | arnavmenon/CPCprep | 3ad4cae9ff3a704135763585ed72cfc2266da740 | dd95216774ea33fd5d327d37513b7ddd96471155 | refs/heads/master | 2023-07-13T13:12:08.076955 | 2021-08-21T21:13:15 | 2021-08-21T21:13:15 | 352,124,288 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 493 | cpp | 20-kdistance.cpp | #include <bits/stdc++.h>
#include <vector>
using namespace std;
void _KDistant(struct Node *root, int k, vector<int> &ans)
{
if(root == NULL|| k < 0 )
return;
if( k == 0 )
{
ans.push_back(root->data);
return;
}
_KDistant( root->left, k - 1, ans ) ;
_K... |
d7e34dc3f896804765985b248964983fdb4659a5 | 8aedfc543df0e636ad1e29e552072d8c515fe074 | /timer.cc | 69697c7d7b3fdad70b48f807e086696b716f2460 | [
"MIT"
] | permissive | DrItanium/libixp | 0a6ecd74994ed01942c8c21f4506b877019ce041 | 2805f7071c671326388a19d3dc082121968e2d99 | refs/heads/master | 2020-05-06T15:32:55.860322 | 2019-04-10T00:48:15 | 2019-04-10T00:48:15 | 180,195,497 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,696 | cc | timer.cc | /* Copyright ©2008-2010 Kris Maglione <maglione.k at Gmail>
* See LICENSE file for license details.
*/
#include <assert.h>
#include <stdlib.h>
#include <sys/time.h>
#include "ixp_local.h"
/*
* This really needn't be threadsafe, as it has little use in
* threaded programs, but it nonetheless is.
*/
static long l... |
25de081d69213180bcfd8607e70d27f95ecbbc73 | 7d8263a13413629d4f6e8cf67ee0d9a828b5a13c | /test.cpp | 741ce17a50731298c1daba2a4f0f307f9208ebeb | [] | no_license | ruslanTankist/sem1_c_task2 | 3e026ac3450bdf39808824b51c0b0c084ca0dff0 | fababe4e85daec98bc96c632bfa9aec7f10bdff2 | refs/heads/master | 2021-03-25T17:35:27.355691 | 2020-03-29T17:24:29 | 2020-03-29T17:24:29 | 247,636,294 | 0 | 0 | null | 2020-03-29T17:24:30 | 2020-03-16T07:21:42 | null | UTF-8 | C++ | false | false | 936 | cpp | test.cpp | #include <gtest/gtest.h>
extern "C" {
#include "functionality.h"
}
class TestExecution : public ::testing::Test
{
protected:
void SetUp() override
{
array = NULL;
}
void TearDown() override
{
free(array);
}
char * array;
};
TEST_... |
796d5ffe826f446cfac7fa996c2811183f69c19d | e86b0e308dbf8e585862bdde86dd2e8d81bc3b38 | /main.cpp | 2b84c859042ba9be0806b8646b8d4290be2462a2 | [] | no_license | aodonnell/LowGo | 76a1e9cb4158572b3dd52303c64c18ab6f81b04c | f429a0d9c841f29a90a398741a8656d587220397 | refs/heads/master | 2021-09-12T02:01:10.763358 | 2018-04-13T13:36:49 | 2018-04-13T13:36:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,474 | cpp | main.cpp | #include <iostream>
#include <vector>
#include <cmath>
#include <limits>
#include "shared/TGAImage.h"
#include "shared/Model.h"
#include "GL/GL.h"
#include "shared/colors.h"
Model *model = NULL;
// scene dimensions
const int width = 800;
const int height = 800;
// scene params
Vec3f light( 1, 1, 1);
Vec3f ... |
434676fbd454bd6d402097856b8b0d88e395e58d | b7f2c737686d1feb87a819def55c1df9729bd3f7 | /theory implementation/BFS and DFS.cpp | 5884b79819675edcf47db9a28ebdd3d7a852afde | [] | no_license | frontseat-astronaut/Competitive-Programming | e052c887497c5da9b82c701eacc765b7f839049f | eb49d9112cfe35cd0ef8cf1b690b607a8beede7d | refs/heads/master | 2020-03-21T03:15:41.561248 | 2019-01-27T15:59:19 | 2019-01-27T15:59:19 | 138,044,632 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 976 | cpp | BFS and DFS.cpp | #include<iostream>
#include<vector>
#include<queue>
using namespace std;
//undirected graph!
int N;
vector<vector <int>> adj;
void add_node()
{
vector<int> node;
adj.push_back(node);
}
int add_edge(int a, int b)
{
adj[a].push_back(b);
adj[b].push_back(a);
}
void BFS(int x)
{
queue <int> q;
bool visited[N]={0};... |
7c3832d9f3dac474a49ee0d6e934f8c418edeec0 | 009626c8273633eee13c2e14887e6e8413529a42 | /gy80_poc/sensorServer.cxx | 34002abc466182d365e777a00f717cbda18015dc | [] | no_license | ishansheth/RaspberryPi-Projects | bd7b97a8be8fb8cdd9e4c4f3e79afea622a002f9 | f9fdf25b2d739b0ba2b5afdca3f5cc4a14c0e969 | refs/heads/master | 2022-10-16T21:48:36.613634 | 2022-09-17T13:44:06 | 2022-09-17T13:44:06 | 143,947,710 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,400 | cxx | sensorServer.cxx | /**
This is a sample code from geeksforgeeks
https://www.geeksforgeeks.org/socket-programming-in-cc-handling-multiple-clients-on-server-without-multi-threading/
**/
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<errno.h>
#include<unistd.h>
#include<arpa/inet.h>
#include<sys/types.h>
#include<sys/sock... |
fd2ea5408b5413386e71a2364c60f16607805877 | 0d3b58547eb1148ab4bdc151dca951148eebaae1 | /src/utils/Configuration.hpp | 385ed78a5bdb41fc375124735a41ec99b5e0ec2f | [] | no_license | byfron/pumpkin | 6c4e7bf13df4bdc18d47dd39efc4fa8fcdff6671 | 2e858bd3abe580a36b31993f163e253ab990007e | refs/heads/master | 2021-03-22T05:00:28.411331 | 2017-05-05T14:27:47 | 2017-05-05T14:27:47 | 53,526,880 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 854 | hpp | Configuration.hpp | #pragma once
#include <fcntl.h>
#include <fstream>
#include <google/protobuf/text_format.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
namespace pumpkin {
template <typename T>
class Configuration {
public:
Configuration(const std::string & conf_file) {
parse(conf_file);
}
Configuration(c... |
9a0e73629dd14f8571af2c034c4d19f1a6672261 | c4b7b51e47b0b5a0af27b1db6ae3e58ab7b010ce | /sensors.cpp | fc51c8c6e9fcabef162a83278c131d35766d5cd4 | [] | no_license | barteksocz/ISP_WIFI_MB_AL_BS_PROJECT | 018f6c278cf947db6f903bf73e7ed890d42dbca2 | a334e790dab122fce5e7443e269e3bf073bbc534 | refs/heads/master | 2021-09-06T10:14:43.220583 | 2018-02-05T12:06:50 | 2018-02-05T12:06:50 | 115,438,635 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 475 | cpp | sensors.cpp | #include "sensors.h"
int16_t magnetic_sensor_read(void) {
int temp_data = analogRead(MAGNETIC_SENSOR_ANALOG_PIN);
if (temp_data <= MS_ADC_THRESHOLD)
return 0;
else
return 1;
}
int16_t temperature_sensor_read(void) {
int temp_data;
temp_data = analogRead(TEMP_SENSOR_ANALOG_PIN);
temp_data = temp_data * TE... |
879e97d52bbd6acf78fe6326e6229c9ab459871a | 124629b9c5a448d7cc264ab94495d051a3582e8e | /data structure univ/link_list/univ.link_list_test.cpp | a31f0da0baa0debe01a1c914b33c7ea1893d7c71 | [] | no_license | nadaese/univ_C | e02456f3c5df45d7aeccfa072ef418cf7d59e1de | a768ab4e46242887fad02f6f4dadd7887523bd81 | refs/heads/master | 2023-05-03T06:10:14.912811 | 2021-05-23T15:03:44 | 2021-05-23T15:03:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,834 | cpp | univ.link_list_test.cpp | // 연결리스트 수업 인용
#include<stdio.h>
#include<stdlib.h>
#include<malloc.h>
int n = 10;
typedef struct List {
int data;
struct List* next;
}list;
typedef struct Link {
List* head;
List* current;
List* before;
}link;
void Link_set(link* link)
{
link->head = NULL;
link->current = NULL;
link->before = NULL;
}
... |
adf591b85305b86c1489ea112fe2ee40716177c0 | 8cb2766bc3e4d223544f1171141b2a79fe39e37a | /陈江伦/10/part22.cpp | 38b14dc901890a8fff30cbb8b0a8e9f521e7507d | [] | no_license | Nand8Tetris/Project | 66d95a95b13ec957bb1592b7a7ddae5ce07fe58c | 7bdbb056f8dcae5f8870b44a7c2d6b53781ff6f0 | refs/heads/master | 2020-04-13T23:33:09.612381 | 2018-12-29T12:41:52 | 2018-12-29T12:41:52 | 163,509,627 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,349 | cpp | part22.cpp | #include<iostream>
#include<fstream>
using namespace std;
ifstream in;
ofstream out;
int dep;
void output(string s) {
out<<"& ";
out<<s;
out<<"\\\\";
out<<endl;
}
void outputterm(string s) {
output("<term>");
output(" "+s);
output("</term>");
}
string s;
void CompileVarDec(string id,... |
5306c73e57e36a5f829a098b6be53c5924f82eae | 8afe840bf1383898704c0e1952f8065a6cbc8710 | /Base/Source/Performance/Performance.cpp | eea77666116fa1a981ca8ad7af59ca10eebf98e4 | [] | no_license | TeaMakesMePee/AGDEVA2 | e175bb7fa04dc53a30cc31b4b8dab1ff911ac316 | a003e726aa2b0334927915fe29996af82761244e | refs/heads/master | 2022-04-08T06:12:08.309167 | 2020-02-12T09:43:56 | 2020-02-12T09:43:56 | 235,534,953 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,590 | cpp | Performance.cpp | #include "Performance.h"
CPerformance::~CPerformance()
{
}
void CPerformance::SetFaceCount(int count)
{
this->faceCount = count;
}
int CPerformance::GetFaceCount(void)
{
return faceCount;
}
void CPerformance::SetCollisionCheckCount(int count)
{
this->collisionCheckCount = count;
}
int CPerformance::GetCollision... |
beb271100dbe6189d592589eb83e0b76fc354b9e | 0ac7388d092db127a5f34952a985ee3cfb3ca028 | /deps/libgdal/gdal/ogr/ogrsf_frmts/tiger/tigerpip.cpp | ca25d22142cf1ad927d8aec1d31a3764d58ffe2c | [
"LicenseRef-scancode-warranty-disclaimer",
"SunPro",
"LicenseRef-scancode-info-zip-2005-02",
"BSD-3-Clause",
"MIT",
"ISC",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | mmomtchev/node-gdal-async | 49161ab6864341b1f0dd8b656c74290c63061c77 | 5c75d3d98989c4c246e54bb7ccff3a00d5cc3417 | refs/heads/main | 2023-08-07T11:44:44.011002 | 2023-07-30T17:41:18 | 2023-07-30T17:41:18 | 300,949,372 | 96 | 18 | Apache-2.0 | 2023-09-13T17:43:40 | 2020-10-03T18:28:43 | C++ | UTF-8 | C++ | false | false | 3,584 | cpp | tigerpip.cpp | /******************************************************************************
*
* Project: TIGER/Line Translator
* Purpose: Implements TigerPIP, providing access to .RTP files.
* Author: Frank Warmerdam, warmerdam@pobox.com
*
******************************************************************************
* ... |
1baf79c528eab8ae47311f8b2ac84f9ca8c6c111 | 8c91ef87f4fb5f7d1e1aabb96dc9431654e1e340 | /Lib/EyerDASH/EyerDASH.hpp | c3dd2a9c19f01535ca9491a63e924e48fd62e1a5 | [] | no_license | mehome/EyerLib | 96eff7a186d0fb5a128c436a7bdbb64502c679bc | 08454824f5e300799ff04bb223c8f83ed5f5b753 | refs/heads/master | 2022-12-25T09:42:45.206796 | 2020-09-22T08:30:06 | 2020-09-22T08:30:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 109 | hpp | EyerDASH.hpp | #ifndef EYER_LIB_DASH_H
#define EYER_LIB_DASH_H
#include "EyerMPD.hpp"
#include "EyerDASHReader.hpp"
#endif |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.