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
71adb909b0149e1a7b472c3464e6f1177fe08693
281029170ce96d1117985785df44977733a069df
/Arrays and Maths/Majority Element II/code.cpp
5d2379529e98777f917d4b2f0a306d4142a781a6
[]
no_license
suniti0804/SDE-Sheet_LeetCode
e8ef66d85e00705328694e05a73485e90e1758d5
8d2c0a5f782437c6642165e2cc9ddb233ebd4659
refs/heads/main
2023-07-20T08:53:36.284186
2021-08-22T12:21:39
2021-08-22T12:21:39
391,435,763
0
0
null
null
null
null
UTF-8
C++
false
false
1,056
cpp
code.cpp
int n = nums.size(); int count1 = 0, count2 = 0; int first = INT_MAX, second = INT_MAX; for(int i = 0; i < n; i++) { if(first == nums[i]) count1++; else if(second == nums[i]) count2++; else if(count1 == 0) ...
4e5feed041f8af7d97b5639db318666db7cdc928
65d9f1776ce7111ebd256c62788756992483d133
/src/Pool/Semaphore.hpp
e2705cfc7389bf047c7dd70ebf377f9edae65992
[ "MIT" ]
permissive
VVZhebel/FlyQueue
c64a2add481104875911d6e955a2a8e8c07e7885
26f8d193d299ee898d7f6c414ac14c0ffc21d5c8
refs/heads/main
2023-04-11T16:05:19.861419
2021-04-21T16:49:42
2021-04-21T16:49:42
357,977,033
0
0
null
null
null
null
UTF-8
C++
false
false
661
hpp
Semaphore.hpp
#pragma once #include <mutex> #include <condition_variable> class Semaphore{ public: explicit Semaphore() : count(0) {} void enter(){ std::unique_lock<std::mutex> lock(locker); while (count == 0) cv.wait(lock); --count; } void add(){ ...
f29eddea5eb19fef045c17376fd0371e2d8f1620
38b057c7dea2e7b9015e3fce67726cb1678a90b1
/libs/z3/src/muz/transforms/dl_mk_array_instantiation.h
51a818a3f3af87c30fda7d8e68bfb6ea21652da0
[ "MIT" ]
permissive
anhvvcs/corana
3ef150667e8124c19238a3f75a875096bbf698c5
dc40868ee4ba1c6148547fb125fddccfb0d446c3
refs/heads/master
2023-08-10T07:04:37.740227
2023-07-24T20:41:30
2023-07-24T20:41:30
181,912,504
34
4
MIT
2023-06-29T03:32:18
2019-04-17T14:49:09
C
UTF-8
C++
false
false
5,736
h
dl_mk_array_instantiation.h
/*++ Module Name: dl_mk_array_instantiation.h Abstract: Transforms predicates so that array invariants can be discovered. Motivation : Given a predicate P(a), no quantifier-free solution can express that P(a) <=> forall i, P(a[i]) = 0 Solution : Introduce a fresh variable i, and transform P...
4e348c86ec942d52ce6512ea068e940418202633
c8effd86fcef400d48ef420e1597a929078adde3
/C3DShellCodingTutorial (Qt)/C3DShellCodingTutorial/C3DShellCodingTutorial/res/texts/kernel/op_shell_parameter.h
f30c7f111b775b4c8d9ba337622bf3530ecb508f
[]
no_license
proxzi/Projects
60d7d7c4de8d3e377f4b01df679ef3fa7fe72098
09749cce546dba1122ff53c153d83be4bf7d5f9f
refs/heads/main
2023-02-25T05:32:53.442023
2021-02-08T23:24:37
2021-02-08T23:24:37
337,149,007
1
0
null
null
null
null
UTF-8
C++
false
false
202,797
h
op_shell_parameter.h
//////////////////////////////////////////////////////////////////////////////// /** \file \brief \ru Параметры операций над телами. \en Parameters of operations on the solids. \~ */ //////////////////////////////////////////////////////////////////////////////// #ifndef __OP_SHELL_PARAMETERS_H #define ...
049224690c21bd1e52775ab07e5103507761f342
6d08402c80b22e2ebcfe8e66e3a269e42710f623
/Labs/lab8/lab8.cpp
90f186fb81efdc895647be07879436c128c51a3a
[]
no_license
gabe-pier/cs201
2a919404cdad270dd383ddfbbe371778c63d6d24
c5c5a1a05a66e29b1c32f76ddf0e8b80b475a19e
refs/heads/master
2023-04-07T22:17:27.159016
2021-04-26T17:41:42
2021-04-26T17:41:42
332,127,010
0
0
null
null
null
null
UTF-8
C++
false
false
184
cpp
lab8.cpp
#include <iostream> #include "intio.hpp" #include "lab8.hpp" int doInput() { int a; a = getInt(); return a; } int compute(int n) { int square; square = n * n; return square; }
102863c28022dd7d969c44f22a8dcddb7f17d0db
9f63b75a1ac13e181ca99d558580e3527a45c0c6
/14.BST/4.Deletion_in_BST.cpp
f0a55bae4e64a95e3a94eb02df69e0a4b39b513a
[]
no_license
smritipradhan/Datastructure
3934cfb27406d84b6840955645026e7b7595f8ea
74ecf07496fc571f9d676efe95dcdb796dc069e3
refs/heads/master
2023-07-11T11:58:33.515265
2021-08-11T14:26:11
2021-08-11T14:26:11
322,194,016
1
0
null
2021-08-11T14:26:12
2020-12-17T05:46:07
C++
UTF-8
C++
false
false
1,557
cpp
4.Deletion_in_BST.cpp
#include<bits/stdc++.h> using namespace std; struct Node { int data; Node* right ; Node* left; Node(int d) { data = d; left = NULL; right = NULL; } }; Node* getSucessor(Node* cur) //case when the succesor is present { if(cur==NULL)return cur; cur = cur->right; while(cur!=NULL && cur->left!=NULL) { cu...
34b56ed7de87f33759576fbc458a63d8bd92f686
0c6ad83017727a71da52800e5d648eaaa646f43b
/Src/Tools/EffectCompiler/ueToolEffect.h
d60cd50ecaec4b912009873b1e90c45c91d8a30b
[]
no_license
macieks/uberengine
4a7f707d7dad226bed172ecf9173ab72e7c37c71
090a5e4cf160da579f2ea46b839ece8e1928c724
refs/heads/master
2021-06-06T05:14:16.729673
2018-06-20T21:21:43
2018-06-20T21:21:43
18,791,692
3
0
null
null
null
null
UTF-8
C++
false
false
573
h
ueToolEffect.h
#pragma once #include "ContentPipeline/ueContentPipeline.h" class ioPackageWriter; class ioSegmentWriter; struct gxEffectTypeData; class ueToolEffect { public: struct LoadSettings { std::string m_sourceFileName; }; gxEffectTypeData* m_data; std::vector< std::vector<std::string> > m_textureNames; // An array ...
69fd21607a6e43887bb0f577cafdf00dc20b4203
2904cf511cded879e90331209ca017a7a3c3e609
/l2estimator.cpp
a7d1dcf13fc79987fee23d9b7bd62441536caec7
[]
no_license
404-Geoscience/maginvlib
40e76a316335de741ac7888f86ee0745fc8d6ff7
5529d76e0a34e6b24c184314ed54b961d4e16172
refs/heads/master
2020-05-30T22:53:29.448694
2017-02-05T18:31:38
2017-02-05T18:31:38
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,740
cpp
l2estimator.cpp
// // @(#)l2estimator.cpp 1.1 misha-16may103 // // Copyright (c) 2003 of Geometrics. // All rights reserved. // // Created: 16may103 by misha@misha.local // Version: 16may103 by misha@misha.local // #include <stdio.h> #include <stdlib.h> #include <math.h> #include "magfunc.h" #include "l2estimator.h" int dz...
d0bb2e9a980daffc9c0a043bd6b6217d26ba6e6a
334558bf31b6a8fd3caaf09c24898ff331c7e2da
/GenieWindow/plugins/genie_module/src/uiframe/QGenieFrameAbout.h
f882aa19d84a7ffa07afc37d90fd0e8e64308212
[]
no_license
roygaogit/Bigit_Genie
e38bac558e81d9966ec6efbdeef0a7e2592156a7
936a56154a5f933b1e9c049ee044d76ff1d6d4db
refs/heads/master
2020-03-31T04:20:04.177461
2013-12-09T03:38:15
2013-12-09T03:38:15
null
0
0
null
null
null
null
UTF-8
C++
false
false
844
h
QGenieFrameAbout.h
#ifndef _QGENIEFRAMEABOUT_H #define _QGENIEFRAMEABOUT_H #ifndef IN_STABLE_H #include <QObject> #include <QDialog> #include <QPoint> #include "ui_QGenieFrameAbout.h" #endif namespace Ui { class QGenieFrameAbout; } class QGenieFrameAbout : public QDialog { Q_OBJECT public: QGenieFrameAbout(QWidget *parent =...
49be79ea880c13e158d2f03ef526eb756649160f
63c8dc51fa8d0c228ee15cb229d9548f2495e0a6
/BossBullet.h
8c16ffda87b7e1223d62731ca8ed1b662e71874b
[]
no_license
MatheusAmboni/Game-Space_Invaders
f075833230039ba2fa0b4dc268a30695f7f3a34b
2093a3476281497fd91e3ef3257d3210d8ab9ce9
refs/heads/master
2023-05-15T03:41:22.722778
2021-06-09T14:44:18
2021-06-09T14:44:18
375,386,839
0
0
null
null
null
null
UTF-8
C++
false
false
277
h
BossBullet.h
#ifndef BOSSBULLET_H #define BOSSBULLET_H #include <QGraphicsPixmapItem> #include <QObject> class BossBullet : public QObject,public QGraphicsPixmapItem{ Q_OBJECT public: BossBullet(QGraphicsItem * parent=0); public slots: void move(); }; #endif // BOSSBULLET_H
26352290fb0b94ded7cf68799a5f94a9290db71f
d1a247872f81e2d50f08755076f8b0e660e35c18
/cpp/base/buildings/specific/production/powerplant.h
a1fa1587d9da17327c90352586e91acdaacf07ec
[]
no_license
kangshung/Adversity
97671767a9c551708cbd1d4d8f269dc8af68f4d0
3516e4c7ffac76186082650cba4ff6921d1da1b2
refs/heads/master
2022-12-16T16:15:47.289414
2018-04-16T21:07:23
2018-04-16T21:09:26
298,070,393
0
0
null
2020-09-23T19:14:10
2020-09-23T19:14:09
null
UTF-8
C++
false
false
2,175
h
powerplant.h
#pragma once #include <QVector> #include "base/buildings/building.h" #include "base/buildings/levelsinfo.h" struct PowerplantLevelInfo : public BuildingLevelInfo { PowerplantLevelInfo() : aetheriteOreTaken(0), energyLimit(0), energyGiven(0), maxCycles(0) {} unsigned aetheriteOreTaken; unsigned e...
976cac4a1689c7bcd0ef1629297ce7b3839ef9d1
9b9736c27ab3abcd258ecc02ea229f047821f396
/main.cpp
0227cd89052d79d38cc525d5d4fe2cef5a69fce2
[]
no_license
peterlee909/Define-Family
a76c2315fdebc01a2150b7f580ad0c2a68416f4a
e07633829356c9d42bba149cbb10a54cf0e9a96b
refs/heads/master
2020-06-08T13:18:15.234747
2019-06-22T12:57:21
2019-06-22T12:59:38
193,234,232
0
0
null
null
null
null
UTF-8
C++
false
false
655
cpp
main.cpp
#include <iostream> using namespace std; #define FLAG #ifdef FLAG //if defined #define test 1 #else #define test 2 #endif #undef FLAG //undefined FLAG #ifndef FLAG //if not defined #define test1 3 #else #define test1 4 #endif int main(int argc, char *argv[]) { cout << "After FLAG was defined, ...
f60df27fddb1180e79de6ddc72a4d77069ea2434
0986b80b009448a9e560ea39ecff8a19a9c195e5
/hw4/problem.h
90a41f2bb40a5db4dbb28d8e0dbaae9357a15210
[]
no_license
jasonzliang/scalableMLAssignments
eafc3965dd20686282eca3c724524a1144d64d8a
7ac6b37d9c8044b57f0a43c146ea7a941928c9eb
refs/heads/master
2021-01-22T05:28:14.138888
2015-01-13T06:28:02
2015-01-13T06:28:02
29,174,548
1
0
null
null
null
null
UTF-8
C++
false
false
454
h
problem.h
#ifndef PROBLEM #define PROBLEM #include "sparse_matrix.h" #include <algorithm> using namespace std; struct centrality { int index; double value; }; void testMultiplyRunningTime(sparseMatrix &mat); void computeCentrality(sparseMatrix &mat); void normalize(double *x, int nRows); double calculateLambda(sparseMatr...
be85b578ff1967b44974f2f24766a2f20d91d1ca
af9c1566c7f8b7e30ee957ef40de647c1d86d17a
/tek2/maths/207demographie/Core.hpp
d2186b515481d6fa6bdbb620308eec714f80c7e0
[]
no_license
Vasrek77/epitech-projects
471b7503e189000ad1ab491915c950af4b661c01
6db30340f7accd04d037ba1ea2bc3e3ecd736251
refs/heads/master
2021-01-17T22:41:05.342477
2015-08-12T19:10:24
2015-08-12T19:10:24
null
0
0
null
null
null
null
UTF-8
C++
false
false
7,027
hpp
Core.hpp
#ifndef CORE_HPP_ # define CORE_HPP_ # include <iostream> # include <iomanip> # include <algorithm> # include <cmath> # include <cstdlib> # include <list> # include <vector> #include "Exception.hpp" using namespace std; class Core { fstream _file; char **_env; ostringstream _stream; list<string> _...
f382ffdcf04ebcb100f21bd1a3fd4039277d25d4
ff6593f9ccbd8e7f898a15ab0b4be6e01306eede
/src/Point.h
348835db892ae824ef15153e3d5f76d4069da9da
[]
no_license
Basasuya/scanline
4ccddff3c92b96f0a6fbebecb9e7c99284e1fdc6
9fe56cb9adb8b8e60ad7c0a617de6079efe8c852
refs/heads/master
2020-04-14T17:22:31.352602
2019-01-05T04:54:16
2019-01-05T04:54:16
163,977,702
1
0
null
null
null
null
UTF-8
C++
false
false
848
h
Point.h
#ifndef BASASUYA_POINT_H #define BASASUYA_POINT_H #include <iostream> #include <cstring> template <typename T> struct Point { T x, y, z; Point() {} Point(T _x, T _y, T _z) : x(_x), y(_y), z(_z) {} Point<T> operator + (Point<T> &other) { return Point<T>(x + other.x, y + other.y, z + other.z); } Point<T...
3efbcef35c9279898e0c86fa00ba17ac30a530b3
ba963924a404093eee02dda19f0b991a6743d80d
/Graph/LongestPath.cpp
7f114e672db727023bb282c43d819bbbe3dbed7d
[]
no_license
bnacheva/Data-Structures-and-Algorithms-course
bee90c238bcf242a6fb5ba99c3c89ec3f5359eaa
6c8f17d1f038a072def497f0543e76545dcc4a34
refs/heads/master
2020-04-24T11:34:46.980079
2019-03-01T14:25:24
2019-03-01T14:25:24
171,930,010
0
0
null
null
null
null
UTF-8
C++
false
false
2,133
cpp
LongestPath.cpp
#include <iostream> #include <limits.h> #include <list> #include <stack> #define NINF INT_MIN using namespace std; class Node { int v; int weight; public: Node(int _v, int _w) { v = _v; weight = _w; } int getV() { return v; } int getWeight() { return weight; } }; class Gra...
e641abeb246ecfc289e492eaa55910bbdc9e46be
f67b47259c734b4355057246ac7111ab59086dd6
/lib/KFCConfiguration/src/JsonConfigReader.cpp
1a2d2f5e304bfd41c36bd6140642b43abeb1fdaa
[]
no_license
externall-projects/esp8266-kfc-fw
2b28b848f9ab54a7107e6b27319606b5ad17f727
5889f7dce2ced0347ff96db3cbf27d1ea50dc466
refs/heads/master
2022-04-22T07:59:02.233681
2020-04-12T03:46:03
2020-04-12T03:46:03
null
0
0
null
null
null
null
UTF-8
C++
false
false
6,027
cpp
JsonConfigReader.cpp
/** * Author: sascha_lammers@gmx.de */ #include "JsonConfigReader.h" PROGMEM_STRING_DEF(config_object_name, "config"); JsonConfigReader::JsonConfigReader(Stream* stream, Configuration &config, Configuration::Handle_t *handles) : JsonBaseReader(stream), _config(config), _handles(handles), _handle(INVALID_HANDLE), _is...
c8ce229e7c6ad3414ec251c79c98b33cef31ead5
e343a62ba8b3d2563c360b85f362498e78da5f9b
/driver.cpp
ee351dbdba4a3fef55918a64ea36c6365f42ee48
[]
no_license
AnthonyWaddell/Skip-List
9626dfe5dc23b0944c9c51b01ae8712b3d10d9da
acc4f7593097f01b9409850fb0bc16a889665a8f
refs/heads/master
2020-03-23T06:17:43.819244
2018-07-16T22:38:30
2018-07-16T22:38:30
141,201,588
0
0
null
null
null
null
UTF-8
C++
false
false
2,813
cpp
driver.cpp
//---------------------------------------------------------------------------- // File: driver.cpp // // Description: Test Driver for the slist class // // Programmer: Anthony Waddell // // Functions: main() // // Environment: Hardware: PC, i7 // Software: OS: Windows 10 // ...
3d8fac218817507fb346023ae38878d8031d71d5
02e2accd33e8810cb50bd8555cdb92f2a49301e7
/cegui/src/ScriptModules/Python/bindings/output/CEGUI/XMLHandler.pypp.hpp
446fdbca88a2b24bfea409d5d5f3f45b3a9b646d
[ "MIT" ]
permissive
cegui/cegui
fa6440e848d5aea309006496d2211ddcd41fefdf
35809470b0530608039ab89fc1ffd041cef39434
refs/heads/master
2023-08-25T18:03:36.587944
2023-08-12T15:50:41
2023-08-12T15:50:41
232,757,330
426
78
MIT
2023-08-12T15:40:02
2020-01-09T08:15:37
C++
UTF-8
C++
false
false
207
hpp
XMLHandler.pypp.hpp
// This file has been generated by Py++. #ifndef XMLHandler_hpp__pyplusplus_wrapper #define XMLHandler_hpp__pyplusplus_wrapper void register_XMLHandler_class(); #endif//XMLHandler_hpp__pyplusplus_wrapper
0b143908593e2310c9249db4c7613aae2eed234e
880607c476459904a6c25a03204ddaeb3de4cd38
/randomGenerator.ino
c6c75432a294094e51f908d706df73f9240832dc
[]
no_license
JonahVincent/ArduinoRandom
4f2b41a7a4fb264ed5d53cb0b7aa033cc267e846
a921b0a60a220934c631ec0e4e6509f0d56fa203
refs/heads/master
2021-08-23T00:35:19.153619
2017-12-01T23:07:33
2017-12-01T23:07:33
112,794,829
0
0
null
null
null
null
UTF-8
C++
false
false
410
ino
randomGenerator.ino
void setup() { randomSeed(analogRead(0)); //generates random seed off of unused serial port //if this is a used port change the 0 to an unused one } void loop() { int randomNumber = random(1,9); //generates random number between 1 and 9 and places it in a variable Serial.println(...
0a0a3bac5eb7fbea9bb41ba6369ef2c6d3200f99
1aedde94661728716b2576503c36f76fd19bda0b
/realizedOrdersFilter.cpp
802d6f15a420bcc02242b41f39eff951757b0a3c
[]
no_license
lukaszc27/eSawmill
e36662f88e77212377fa8cb293dc622d4716cca3
abf49c939692052ce43610663e1ed223e7c8b6f9
refs/heads/master
2020-03-14T10:49:27.683207
2018-05-18T12:52:49
2018-05-18T12:52:49
131,396,717
0
0
null
null
null
null
UTF-8
C++
false
false
1,336
cpp
realizedOrdersFilter.cpp
#include "realizedOrdersFilter.h" #include <qmessagebox.h> RealizedOrdersFilter::RealizedOrdersFilter(QObject* parent) : QSortFilterProxyModel(parent) { m_db = QSqlDatabase::database(); m_filterEnable = false; } //------------------------------------------------- // aktywuje lub dezaktywuje filter zam...
cf4e729c041cd1dde71faa04c3a50bf2c28bd9e2
bf155131dc49357f82d304b7a3799d2ffa055e0c
/Player.cpp
b907ad8ddf48ed5f5340d6228772cb6e3a69f327
[]
no_license
CodingZwen/FairyOfLife
ed5c3c8e2007968e16a7103eb0a20b17c687f9c9
7069324b00e033996c11746f0c2e3032c17fc002
refs/heads/master
2020-07-10T17:39:47.446036
2020-01-18T15:01:57
2020-01-18T15:01:57
204,324,476
0
0
null
null
null
null
UTF-8
C++
false
false
9,759
cpp
Player.cpp
#include "Player.h" Player::Player(sf::Vector2f spawnpos, sf::Texture const *texture, sf::Texture const * weaponTexture) { initStats(); playerweapon = new PlayerWeapon(weaponTexture); setKeys(sf::Keyboard::Up, sf::Keyboard::Down, sf::Keyboard::Left, sf::Keyboard::Right, sf::Keyboard::Space); di...
a118198098d3c2e60abae5107ce57ff6dc707b7d
8a5c80a355fc01fc08bd264962ab156f6976cd0a
/puzzlesolver/include/enums.h
ebaa7cda1dbf88a2bd3961e1fee8ef476e268a5a
[]
no_license
mkrakiewicz/PuzzleSolver
3e53490dcf6c00f23564754fb33e2f1b763525dd
fa20616ead48004f96f4430bac1ffddadf65f49d
refs/heads/master
2020-08-14T03:56:37.610637
2014-01-05T22:14:13
2019-10-14T16:59:17
215,093,432
0
0
null
null
null
null
UTF-8
C++
false
false
307
h
enums.h
#ifndef ENUMS_H #define ENUMS_H #include <string> namespace board { enum SLIDE_DIRECTIONS { UP, DOWN, LEFT, RIGHT }; SLIDE_DIRECTIONS operator-(const SLIDE_DIRECTIONS& d); std::string dirToStr(board::SLIDE_DIRECTIONS direction); } #endif // ENUMS_H
815404cced18de2aaef41c75662b23076e7de4d7
2f1572dccdae76748a2a0e41d0a21311f5d1fc90
/src/RedisDefine.h
f4c6a026a8c8af7073273d8266dd454cab2002f3
[ "MIT" ]
permissive
glc400/rediscpp
9ffa2f0c4f0a416ab9886a56098bb2d0dd2498d4
bc5998a0487de688b7f347fa328df23eb2fb015b
refs/heads/master
2021-01-10T11:25:32.603809
2016-03-27T09:32:32
2016-03-27T09:32:32
54,821,476
0
0
null
null
null
null
UTF-8
C++
false
false
1,971
h
RedisDefine.h
#ifndef REDISDEFINE_H_ #define REDISDEFINE_H_ #include <list> #include <map> #include <new> #include <vector> #include <unistd.h> #include <stdint.h> #include <string.h> #include <string> #include <sstream> #include <functional> #include <iostream> #define THREAD_STACK_SIZE 10*1024*1024 //10M #define LEN_ERROR_INFO...
9f6dee1088b2dc9f39170467f38386662b6184e9
f0610b8452d1addcb026144516550829a558616f
/UVA/301 - Transportation.cpp
e8eaa6d07406643cdac6a5eeff1ba078e76fac79
[]
no_license
ahmedelsaie/AlgorithmsProblems
dd8578e04590e71c13f7aa0cb02f77bea4599beb
acdfc86ef642c5249a15f59bcea10a31d7c58d0d
refs/heads/master
2021-09-17T11:23:48.711877
2018-06-26T01:07:16
2018-06-26T01:07:16
115,373,592
0
0
null
null
null
null
UTF-8
C++
false
false
2,938
cpp
301 - Transportation.cpp
#include <stdio.h> struct order { int start; int end; int passen; }; int max(int x, int y); int fn(int city, int curr_order, int left_passen, bool flag); void bsort(); int people_arrive[25]; order orders[25]; int no_city, no_order, train_cap; const int inf = 99999999; int main() { bool flag = true; ...
d50114a2a98af3487753af46da6b2733a78eb588
29808df6c872a41f4580fa8e5d3edc838787faec
/taller Kevin Carano Bonilla- Daniel Andrés Pimiento/punto4.cpp
67f7cb1271dcc8352785c9b500597acfdfa4d681
[]
no_license
DanielPimiento/Programicion-2
95626dbfe130f34816c5b878f391394c51d638b4
b92c56fcf27e29b6c585b6b7931d0503b0eadffd
refs/heads/master
2022-12-14T03:03:23.555164
2020-09-16T20:38:50
2020-09-16T20:38:50
288,859,933
0
0
null
null
null
null
UTF-8
C++
false
false
3,867
cpp
punto4.cpp
#include <iostream> using namespace std; class Carro{ private: string modelo; string color; string matricula; int numeropuertas; int numeropasajeros; string aire; public: Carro(string _modelo, string _color, string _matricula, int _numeropuertas, int _numeropasajeros, string _aire); ...
c4ca435094916c37bcb4f81017d44907710de26c
3ca7dd1e368194aa2f884139d01f802073cbbe0d
/Codeforces/solved/450B/450B.cpp
dc69a42574d99969420de32a82b1fd81ab6d0b47
[]
no_license
callistusystan/Algorithms-and-Data-Structures
07fd1a87ff3cfb07326f9f18513386a575359447
560e860ca1e546b7e7930d4e1bf2dd7c3acbcbc5
refs/heads/master
2023-02-17T17:29:21.678463
2023-02-11T09:12:40
2023-02-11T09:12:40
113,574,821
8
1
null
null
null
null
UTF-8
C++
false
false
388
cpp
450B.cpp
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; ll MOD = 1e9+7; ll mod(ll a) { a %= MOD; if (a < 0) a += MOD; return a; } int main() { ios::sync_with_stdio(0); cin.tie(0); ll X, Y; cin >> X >> Y; ll N; cin >> N; ll A[6] = {mod(X), mod(Y), mod(Y-X), mod(-X)...
1b7d9619d84bdc460f8541a2a9f5f6593eded45f
869d13aab1ca4bd50f7d471a424d4b52c128c35a
/Info student.cxx
3b2a6441fcbedbfcb14e883b672da5cf255fbc18
[]
no_license
Aqiblone/linkedlist
7c1c50626f5a334ff524a6ff6d4f2c164cf2dfbf
293178031626868bcf4373023d09217a0c792c5e
refs/heads/main
2023-08-10T17:34:43.163436
2021-09-27T10:13:18
2021-09-27T10:13:18
410,833,923
0
0
null
null
null
null
UTF-8
C++
false
false
993
cxx
Info student.cxx
#include<stdlib.h> #include<string.h> #include<stdio.h> struct Student { int rollnumber; char name[100]; char phone[100]; float percentage; struct Student *next; }* head; void insert(int rollnumber, char* name, char* phone, float percentage) { struct Student * student = (struct Student *) malloc(sizeof(str...
7a8ec4b8b495be09b857fdf0310ad1e115122318
3857b68582f103745205ddaaea4b9df4c02e332d
/aimc-read-only/src/Modules/Profile/ModuleScaler.cc
cc6e0d5a0cd294fc5999817fef79645518789683
[ "Apache-2.0" ]
permissive
galv/carfac
598061d53a578e98228f1f482fba676295a0b999
58c5b36bd8eb583d98ba99c72815e43f10290636
refs/heads/master
2021-01-18T12:48:26.288366
2013-11-08T04:09:55
2013-11-08T04:09:55
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,588
cc
ModuleScaler.cc
// Copyright 2010, Thomas Walters // // AIM-C: A C++ implementation of the Auditory Image Model // http://www.acousticscale.org/AIMC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // ...
26cad023727592ae006059f81c73e701f4c3bb7d
3de02272025e9c2b7c741be20929eb304fd3301a
/codeforces/Educational Codeforces Round 81/E.cpp
e8d8a8ce35a0756e0b68e0df34277b89fbf0cd44
[]
no_license
fanshixiong/Algorithm
4fd937799d537d4f9f91932d4c32e9a96b6d7ea7
ad65b163958329f781ba36d4294b32fae7a51520
refs/heads/master
2021-06-23T16:30:37.655248
2021-05-12T12:33:40
2021-05-12T12:33:40
222,182,342
1
0
null
null
null
null
UTF-8
C++
false
false
2,059
cpp
E.cpp
#include <bits/stdc++.h> using namespace std; #define ll long long const int maxn = 3e5 + 10; struct node{ int l, r; ll laze, val; } segment_tree[maxn << 2]; int n, p[maxn], id[maxn]; ll a[maxn], sum[maxn]; void push_Up(int rt){ segment_tree[rt].val = min(segment_tree[rt << 1].val, segment_tree[rt << 1 |...
37a99b93025efa6d74fa29a3a8941aa20b0ac585
0cb808cbc8087602107e0e4724f2d177c77a00f3
/Mess Around/Mess Around/File 1.cpp
14683d2ba30bc249b260ab269291dac091c0d6ec
[]
no_license
mikecolistro/First_Year_C-Cplusplus
861eb965cc3b06f7ae0419701d13c9cb8fe5bb9a
e4898d8983e7373b9aadbc34d809e755cff96a0a
refs/heads/master
2021-01-10T06:39:29.737468
2015-05-28T04:02:35
2015-05-28T04:02:35
36,413,808
0
0
null
null
null
null
UTF-8
C++
false
false
107
cpp
File 1.cpp
#include <stdio.h> void main (void){ char c; c = 1; printf(" -----------\n / '%c' \n", c); }
5fc46752457ac9d9a5c89bb09b0d2092711a2c80
32b85530d86994c6b6f62051b2ff6e04ef03510e
/test/test-asio-grpc.cpp
9f75d2e602c7fe8c22894303f44243de29715b4a
[ "Apache-2.0" ]
permissive
stan-sack/asio-grpc
4bed53822df3dc31617deccbd595d573593bcdac
13fde46f7e847ca6618a255856c0571901399d27
refs/heads/master
2023-08-05T20:11:27.180152
2021-09-26T17:56:19
2021-09-26T17:56:19
null
0
0
null
null
null
null
UTF-8
C++
false
false
25,803
cpp
test-asio-grpc.cpp
// Copyright 2021 Dennis Hezel // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
9bde661d135770aeca4e5997a959ef0d9957359c
dff8a221638932704df714b30df53de003342571
/code_modified_20150323/6/11.cpp
43e244f504eb4a2434a691ac2549b312e1617dd9
[]
no_license
DevinChang/cpp
1327da268cbbde4981c055c2e98301d63e9ca46b
f35ee6f7b2d9217bd2d40db55a697330aeffc7e8
refs/heads/master
2021-01-20T13:55:55.399888
2017-05-18T08:01:15
2017-05-18T08:01:15
90,538,499
3
0
null
null
null
null
WINDOWS-1252
C++
false
false
246
cpp
11.cpp
#include <iostream> using namespace std; void reset(int &i) { i = 0; } int main() { int num = 10; cout << "ÖØÖÃǰ£ºnum = " << num << endl; reset(num); cout << "ÖØÖúó£ºnum = " << num << endl; return 0; }
aa95a018ec1c34276db6daf0b65535b5c0e566f2
1ae9bf1c1c55d3b1a7f293577cc87ce864fdd482
/src/tracker/mswindowsbgrunner.h
91ff4b79b8220b5f2966edef83a35ed5c0757714
[ "Beerware", "LicenseRef-scancode-unknown-license-reference" ]
permissive
loganek/workertracker
2c2d462d911fd44bd7fee6b13f25c34feed2d991
b4e66f02e6a7cdf91e5f0a418cabbd23ac636f2e
refs/heads/master
2021-01-12T11:45:28.329817
2017-01-10T20:26:44
2017-01-10T20:26:44
72,291,489
0
0
null
null
null
null
UTF-8
C++
false
false
1,016
h
mswindowsbgrunner.h
/* * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * <marcin.kolny@gmail.com> wrote this file. As long as you retain this notice you * can do whatever you want with this stuff. If we meet some day, and you think * this stuff is worth it, you c...
8ad68261481c40d6f17ce2b9042a212017dee374
4707400f71b9004b47380581a76b279329a160e3
/Sprawdzarka UAM/Zrobione zadania/Wielomian.cpp
47dc0ca22e1f8e7b944a0e8cae00c15e2eca3fa3
[]
no_license
swacisko/CODES
e5c73594374608ee8b3688f4e51e5ca4867d79f9
5e492c9711c93be493c7952bb08e30f9ad7a57b6
refs/heads/master
2021-01-19T00:37:03.262832
2017-01-09T21:00:04
2017-01-09T21:00:04
73,085,634
0
0
null
null
null
null
UTF-8
C++
false
false
717
cpp
Wielomian.cpp
#include<iostream> using namespace std; int pot(int a, int b) { int suma=1; for(int i=0; i<b; i++) { suma*=a; } return suma; } int main() { int n, m, k, R, s_wsp=0, t, tab[11]={0}; cin>>t; while(t--) { cin>>n>>k>>m>>R; for(int k=0; k<=n; k++) { if(k==0) { tab[0]=...
012697740628af671287abd2f06d74697b5dc242
e71e72b23a2f8645f6c2c97334a46e9fe47ce2b2
/5.3/sum2arrays.cpp
230d07c0e4dde817d2a2d6d4bcfef81ffc70aebc
[]
no_license
puffikru/algorithms_base
710052b77cd53b4690dd964d796c1eb0f6a9297e
8815d8fdb79661614b3fae512bccb57c1b17f3c6
refs/heads/master
2022-07-03T02:39:36.713971
2020-05-10T19:20:32
2020-05-10T19:20:32
255,335,109
0
0
null
null
null
null
UTF-8
C++
false
false
547
cpp
sum2arrays.cpp
#include <iostream> #include <vector> using namespace std; int main() { int n, m, sum; cin >> n >> m >> sum; vector<int> a(n); vector<int> b(m); for (int& x : a) { cin >> x; } for (int& x : b) { cin >> x; } int j = b.size() - 1; for (size_t i = 0; i < a.size()...
a9885edcc60c5bcdc8cd4d9cc1f5651a7642afd2
f76b7fa7eb3b4871e4dfb8d3cf9cf151a0938c74
/command.cpp
b440abdbdffe5999051eeb699da2ca075df87a9b
[]
no_license
peterkvt80/vbit2
7056dec56a5a9dfd0cce02c25bb5d95bb4d37a35
6ec1769bc0a229059320ce7e6d0da6688136a97b
refs/heads/master
2023-08-04T18:05:13.331453
2023-07-25T18:26:05
2023-07-25T18:26:05
68,154,722
128
15
null
2021-10-06T18:21:10
2016-09-13T23:09:21
C++
UTF-8
C++
false
false
4,171
cpp
command.cpp
/** *************************************************************************** * Description : Class for Newfor subtitles * Compiler : C++ * * Copyright (C) 2017, Peter Kwan * * Permission to use, copy, modify, and distribute this software * and its documentation for any purpose and without fee ...
b436f3f6e4f9a6585156567bd28153a814de3081
f79dec3c4033ca3cbb55d8a51a748cc7b8b6fbab
/games/eboard/patches/patch-cimg.cc
1a553ef002a9c871a5acf25aca52e06b1b1b9543
[]
no_license
jsonn/pkgsrc
fb34c4a6a2d350e8e415f3c4955d4989fcd86881
c1514b5f4a3726d90e30aa16b0c209adbc276d17
refs/heads/trunk
2021-01-24T09:10:01.038867
2017-07-07T15:49:43
2017-07-07T15:49:43
2,095,004
106
47
null
2016-09-19T09:26:01
2011-07-23T23:49:04
Makefile
UTF-8
C++
false
false
880
cc
patch-cimg.cc
$NetBSD: patch-cimg.cc,v 1.2 2012/08/12 21:38:11 wiz Exp $ Fix build with png-1.5. https://sourceforge.net/tracker/?func=detail&aid=3515237&group_id=11164&atid=111164 --- cimg.cc.orig 2007-05-23 18:57:45.000000000 +0000 +++ cimg.cc @@ -95,16 +95,16 @@ CImg::CImg(const char *filename) { ct == PNG_COLOR_TYPE_GRA...
8e648f452c64398ca179d0c4a05e53b2f0694be0
24876b26db45aeb55a5c6e91e2d911c907b1820a
/project2D/Ground.cpp
9b74eb9dd0d29bc2298a38cdbb7d9a0a0117d3db
[ "MIT" ]
permissive
JamesCreaton/BasicGeneticAlgorithm
ad5c0166c9e3e49bde65e6ee1ec89c18e46cd8d7
057c2283101625948867747b8e8cd01712b0a952
refs/heads/master
2021-01-02T23:09:19.053373
2017-08-06T09:26:46
2017-08-06T09:26:46
99,475,849
0
0
null
null
null
null
UTF-8
C++
false
false
744
cpp
Ground.cpp
#include "Ground.h" Ground::Ground() { } Ground::~Ground() { } void Ground::init(b2World * world, const glm::vec2 & position, const glm::vec2 & dimensions) { m_dimensions = dimensions; b2BodyDef bodyDef; bodyDef.type = b2_staticBody; bodyDef.position.Set(position.x, position.y); m_body = world->CreateBody(&bo...
e4ca98380f39f7e7d8a632ffce3ca8808c2018d1
a18fb77abe542d131435ce197574c9a011203f12
/src/V4L2Manager.cpp
248a6813f74fe2d921c696b4348fed67a69ae5df
[]
no_license
okinp/DeviceListing
8c4aaf0667f668c4f34e6671abcb47b1ef82f670
ec2402b0864d059f21798465c60becc543828f80
refs/heads/master
2020-05-20T13:47:38.635933
2014-05-24T09:13:38
2014-05-24T09:13:38
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,284
cpp
V4L2Manager.cpp
// // V4L2Manager.cpp // DeviceListing // // Created by Nikolas Psaroudakis on 5/12/14. // // #include "V4L2Manager.h" #include <boost/filesystem.hpp> std::vector< std::string > V4L2Manager::getVideoDevices() { boost::filesystem::directory_iterator iterator(std::string("/dev")); std::vector< std::string > devi...
df3a299efbee1d4e65946ac1757b7d490d62e45d
7418c9f87fdc8be65f10a9bd36ff139c8c619a07
/Blocks.h
5742927701b1a1fc74867cfe5021ac044c812cc1
[ "Zlib" ]
permissive
Kirieshke/Arcanoid
743e758f87064f646354d97675c42eef9b5a7099
e3a5e57af67d68332bc627748f508d689df6f542
refs/heads/master
2022-10-18T10:23:23.188171
2020-06-17T15:05:29
2020-06-17T15:05:29
273,001,963
3
0
null
null
null
null
UTF-8
C++
false
false
286
h
Blocks.h
#include<SFML/Graphics.hpp> using namespace sf; class Block { private: Vector2f position; public: bool destroyed = false; Block(); Block(float startX, float startY); RectangleShape blockShape; FloatRect getPosition(); RectangleShape getShape(); void update(); };
25200ec90bab690626e8b5f75740a67ef475261b
4e8f53a51ac928556adce378b42a9e3baed6415e
/cuckoo.cpp
cc06b4a8d69b9a81e8adc1ae1e69df4cc0a7b23c
[]
no_license
oliviamaciejewska/hash_tables
ef436c1e44a35bf6287a6f41461059e026f2602b
151264682f6f815475edb0049b49693af5113b11
refs/heads/master
2020-12-01T04:26:02.607319
2019-12-28T04:14:00
2019-12-28T04:14:00
230,556,929
0
0
null
null
null
null
UTF-8
C++
false
false
4,462
cpp
cuckoo.cpp
#include "CUCKOO.hpp" #include <iostream> #include <vector> #include <fstream> #include <string> #include <sstream> #include <time.h> #include <windows.h> #include <iomanip> #include <algorithm> #include <random> using namespace std; HashTable::HashTable() { // M = 10009; table1 = new int[M]; table2 = new int[M];...
9dd45c3479d93833e2fa0f28cd4ee2a93f030089
be2f784ca805383936579cfed7acec933db3ee39
/CFractal/Mandel.cpp
9b27602072f678c9c03396c0aeef8cc475555a37
[]
no_license
maitchison/cfractal
f1c3b107f3e2429b26271744a45d29613b344a2b
ae7a8d44948249ae7536a5576e15cb707e9b4a12
refs/heads/master
2021-01-18T18:42:31.476006
2016-07-08T10:50:20
2016-07-08T10:50:20
62,693,843
1
0
null
null
null
null
UTF-8
C++
false
false
8,091
cpp
Mandel.cpp
// Solver for Mandelbrot set // // Date: 2016/06/27 #include "stdafx.h" #include "Mandel.h" #include "xmmintrin.h" FractalBlock MandelbrotSolver::CreateBlock(double x, double y, double scale) { FractalBlock result; result.width = block_size; result.height = block_size; result.x_in = new double[block_size*blo...
e41185396303f6bc975ce2dd75425163fd79e1d1
914a06b7a1d0a7c78c73c3ff931510b0ff6250ed
/src/system/xio.h
060c710316fc36c8614d2b9ee5e3162d42a90a45
[]
no_license
GeomaticsAndRS/flow123d
fac71d281f0c7b64ef5f76be2503b4242b6fc846
93502c2ac524f7028549f6497d109a38a08bd971
refs/heads/master
2022-11-17T02:13:26.923282
2020-07-02T09:03:08
2020-07-02T09:03:08
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,511
h
xio.h
/*! *  * Copyright (C) 2015 Technical University of Liberec. All rights reserved. * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License version 3 as published by the * Free Software Foundation. (http://www.gnu.org/licenses/gpl-3.0.en.html...
491b54ba6b90746e5733330c84bdb245243392f1
e9b3b076ebd977a7810c093201e46bb4be4712a9
/analyze.cpp
fa1de170515e22d16151fe7951dbba5210b0c8a1
[]
no_license
zleba/mcEventDisplay
fb50b30543dafd447cee1e7911491c33ab1b57a6
20451a399f48223ba0e68766f448f9184b150050
refs/heads/master
2021-01-12T09:46:07.418418
2018-10-28T13:09:24
2018-10-28T13:09:24
76,244,954
0
0
null
null
null
null
UTF-8
C++
false
false
54,021
cpp
analyze.cpp
#include "analyze.h" //#include "draw.h" //#include <GL/glut.h> //#include "logo.h" //#include "diagram.h" //#include <QPointF> #include "TCanvas.h" #include "TCurlyLine.h" #include "TArrow.h" const double lastScale = 0.01; const double lastScaleEm = 1e-6; bool Tree::fillStrings() { String string; bool isIn =...
033183cc9b751ef105e478067485c39e19935644
23012559f8099fbb6a4c86d3d86ab5c5212de48e
/kasten/gui/io/streamencoder/viewtext/bordercolumntextrenderer.cpp
6cad1598b8e1146684f351b6bb81f64374bcb12e
[]
no_license
KDE/okteta
a916cdb9e16cdc6c48a756205604df600a3b271c
cb7d9884a52d0c08c1496d4a3578f5dfe0c2a404
refs/heads/master
2023-09-01T09:33:47.395026
2023-08-29T04:33:32
2023-08-29T04:33:32
42,718,476
92
9
null
2020-12-29T18:58:56
2015-09-18T11:44:12
C++
UTF-8
C++
false
false
727
cpp
bordercolumntextrenderer.cpp
/* This file is part of the Okteta Kasten module, made within the KDE community. SPDX-FileCopyrightText: 2003, 2008 Friedrich W. H. Kossebau <kossebau@kde.org> SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include "bordercolumntextrenderer.hpp" // Qt #includ...
d038f73e916b638565b5ad18165d4598abc61ccd
f8c161b7bfc127385495890e5282df7eef58a6c1
/tests/src/astro/propagators/unitTestEnvironmentUpdater.cpp
4263255273100ab27ab6796241ffc14f74c10d09
[]
permissive
Tudat/tudat
7c7d552e190a3360bde5ec8527a2f377a54ef288
02dbcb385be5a39e5dbc0563f0dc1219cbfb25ac
refs/heads/master
2023-04-27T19:16:07.061328
2022-11-30T14:33:12
2022-11-30T14:33:12
50,173,176
91
153
BSD-3-Clause
2023-04-15T18:33:02
2016-01-22T10:01:27
C++
UTF-8
C++
false
false
32,120
cpp
unitTestEnvironmentUpdater.cpp
/* Copyright (c) 2010-2019, Delft University of Technology * All rigths reserved * * This file is part of the Tudat. Redistribution and use in source and * binary forms, with or without modification, are permitted exclusively * under the terms of the Modified BSD license. You should have received *...
55246d16043a14b29681200cd61cf5ef951c14e2
7085e387992c8f71a3b772475ed329aa98cdd83e
/process/process_output_svg.cpp
d6529b10594b9a58bf55b266da93a4b5a4119b49
[]
no_license
olivierchatry/obj-2-svg
f8b0ed84f4516e3ef62f4414d54cde0af0ebaa14
b0410d1fa0867a29f470e6e4a25b0ab988aafa7a
refs/heads/master
2021-08-09T02:52:25.858381
2016-10-07T08:29:43
2016-10-07T08:29:43
68,088,151
0
0
null
null
null
null
UTF-8
C++
false
false
3,361
cpp
process_output_svg.cpp
#include "process.h" struct edge_info_t { int material; int count; }; typedef std::pair<int, int> edge_t; typedef std::map<edge_t, edge_info_t> edge_infos_t; struct element_t { int material; float z; size_t id; std::vector<int> indices; std::vector<v3> vertices; }; typedef std::vect...
2f3dd20e04c1633a39c45f33a817d354d0d90494
69b9cb379b4da73fa9f62ab4b51613c11c29bb6b
/submissions/kupc2018_b/main.cpp
51b2ad4548fdc48f81ec7ac2a7135f9acf1d35dd
[]
no_license
tatt61880/atcoder
459163aa3dbbe7cea7352d84cbc5b1b4d9853360
923ec4d5d4ae5454bc6da2ac877946672ff807e7
refs/heads/main
2023-07-16T16:19:22.404571
2021-08-15T20:54:24
2021-08-15T20:54:24
118,358,608
0
0
null
null
null
null
UTF-8
C++
false
false
1,275
cpp
main.cpp
//{{{ #include <bits/stdc++.h> using namespace std; #define repX(a,b,c,x,...) x #define repN(a) repX a #define rep(...) repN((__VA_ARGS__,rep3,rep2,loop))(__VA_ARGS__) #define rrep(...) repN((__VA_ARGS__,rrep3,rrep2))(__VA_ARGS__) #define loop(n) rep2(i_,n) #define rep2(i,n) rep3(i,0,n) #define rep3(i,begin,end) for(in...
0ee0de6e839d0aa28ac19898d3c657d1c74a82e3
e94559835dec204537927865800f95b81a191b7f
/Tympan/core/logging.h
c512538f2c85a19fbe4500f9d396054ada5e89a6
[]
no_license
FDiot/code_tympan3
64530a3fc8a392cdbe26f478a9ea9ce03abab051
cf4383c4a162962b68df470e2bf757ad534880b9
refs/heads/master
2022-04-07T10:54:05.711913
2019-10-24T13:27:42
2019-10-24T13:27:42
239,812,326
1
1
null
null
null
null
UTF-8
C++
false
false
5,689
h
logging.h
/* * Copyright (C) <2012-2014> <EDF-R&D> <FRANCE> * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * This program i...
ac3d846e4e40bb06787cc4c00d7b3045a0428945
8cf29d0b26119188660f148c8a72f38653552a6b
/tower_defence/src/lib/init_functions.cpp
ee2e883ebcfd7ad84449583b825388f1fc21324d
[]
no_license
FilippovIvan19/4th-sem
b81dae65e6a3081f7820ec470248ab9481835381
7ec1a7b6fa69aa6fba41406c05931bb2726f75fa
refs/heads/master
2021-01-01T07:50:53.283026
2020-06-02T00:11:42
2020-06-02T00:11:42
239,180,248
0
3
null
null
null
null
UTF-8
C++
false
false
3,608
cpp
init_functions.cpp
#include <SFML/Graphics.hpp> #include <SFML/Audio.hpp> #include "../headers/constants.h" #define TEXTURE_DEFINE(obj) \ textures->obj##_texture = new sf::Texture; \ textures->obj##_texture->loadFromFile("textures/" #obj ".png"); \ textures->obj##_texture->setSmooth(true); void load_textures(all_t...
4598c008009262e809776974928f2ffe29aacf7a
0af1eceaa610a84d78d92a7ecef7b7be09ff690a
/OOP-Azhar/list/list.cpp
7417455e3c2c1d8725f4a528a9d4d5624068df3b
[]
no_license
AzharMithani/SE-Assignmments
a297191035f90201054bdbaa63066f5b788a2990
221f954203392098d127d62b22b783cea1f34c89
refs/heads/master
2021-09-01T05:42:41.614939
2017-12-25T05:55:54
2017-12-25T05:55:54
115,308,202
4
0
null
null
null
null
UTF-8
C++
false
false
3,017
cpp
list.cpp
#include "iostream" #include "list" using namespace std; void Create_List(list<int> &l,int n) { int no; for(int i=0;i<n;i++) { cin>>no; l.push_back(no); } } void display(list<int> &l) { if(l.empty()) cout<<"List Empty.....\n"; else { list<int> ::iterator itr=l.begin(); for(itr=l.begin();itr!=l....
06e2dd7a020c5b9345b33f8b0d95959d8b2912b4
310f244bf7e5acef22d32202ed577a3fd7692dd0
/Section4/lab43/lab43.cpp
e9d026eede541d5d699983184499d0776a2ba2eb
[]
no_license
asylum14/MichaelSilva-CSCI20-Fall2017
1e55d1e0ddbbc7ad361b621b0044b2de041f9fbc
4506b7360b176ccd13683ac41f46f719ecac1944
refs/heads/master
2021-01-19T16:02:01.403958
2017-12-11T20:18:55
2017-12-11T20:18:55
100,982,691
0
0
null
null
null
null
UTF-8
C++
false
false
2,663
cpp
lab43.cpp
/* Created by:Michael Silva Created on: 10/23/2017 Description: this program is used to simulate a shopping cart for a store(array of objects) */ #include <iostream> #include <string> using namespace std; class Product{ private: int Inventory_; double Price_; string Name_; int Quan...
188069ea6b4abe4e398c4844d51ffbb8e9d8c50e
9f9e8ba1e1a36453aa222b2969d6077cd35c33b4
/Source/MainSonificationProcessor.h
b7001c428e8983ca7646d62c89cc157a88ab9e42
[ "MIT" ]
permissive
citron0xa9/FalconSonification
db8963b24dbb6f55c01c248fbee5ac3d8bcf92da
b34fb4fca2c76fd4bfc318633c632fd26ac58066
refs/heads/main
2023-03-27T18:13:32.011972
2021-03-29T18:52:25
2021-03-29T18:52:53
352,699,398
0
0
null
null
null
null
UTF-8
C++
false
false
5,530
h
MainSonificationProcessor.h
#pragma once #include <JuceHeader.h> #include "FalconSimulation.h" #include "SampledSound.h" #include "exprtk.h" namespace falconSound { class MainSonificationProcessor : public juce::PositionableAudioSource { public: explicit MainSonificationProcessor(); void prepareToPlay(int samplesPerBlockExpected, do...
2e5b62095d7d77ccf84b5ad70b91ac6f6602b4f5
c8bb4cd63e577fadd1dc0ac820be166810d1a148
/Game/Game/Level/Replays/Recording.cpp
bfa1c63b63f2d2994b1c1ff17aa9ce88d2900ab9
[]
no_license
rodrigobmg/Cloudberry-Kingdom-Port
c2a0aac9c7cb387775f6f00b3b12aae109a7ea39
74cd72e29ff5dfd8757d93abc92ed7e48a945fc8
refs/heads/master
2021-06-01T06:19:25.283550
2016-08-10T01:35:16
2016-08-10T01:35:16
null
0
0
null
null
null
null
UTF-8
C++
false
false
7,792
cpp
Recording.cpp
#include <small_header.h> #include "Game/Level/Replays/Recording.h" #include "Core/Animation/SpriteAnim.h" #include "Core/Graphics/Draw/Quads/QuadClass.h" #include "Core/Particle Effects/Specific Effects/CloudberryKingdom.ParticleEffects.h" #include "Core/Tools/CoreMath.h" #include "Game/Level/Make/ComputerRecording.h...
c5da4675542cf555f376cf246e043bc4ded922ba
ef187d259d33e97c7b9ed07dfbf065cec3e41f59
/work/atcoder/arc/arc099/E/answers/721819_diamond_duke.cpp
7ac845a967978293877ed91471efb006ad401231
[]
no_license
kjnh10/pcw
847f7295ea3174490485ffe14ce4cdea0931c032
8f677701bce15517fb9362cc5b596644da62dca8
refs/heads/master
2020-03-18T09:54:23.442772
2018-07-19T00:26:09
2018-07-19T00:26:09
134,586,379
0
0
null
null
null
null
UTF-8
C++
false
false
1,540
cpp
721819_diamond_duke.cpp
#include <algorithm> #include <iostream> #include <cstring> #include <cstdlib> #include <utility> #include <cstdio> #include <vector> #include <string> #include <queue> #include <stack> #include <cmath> #include <set> #include <map> #define my_abs(x) ((x) < 0 ? -(x) : (x)) #define mp std::make_pair #define pb push_back...
b6e3ada8e7e659b41699b347d472d28da8788886
9889e7fd73314382fb2f9e8f63d92cf3254b75fb
/GranularSim/src/Simulations/DEM/CavityExpansion.cpp
ec1ad8c51ef0768f47a3007dacf2975a54563be0
[ "BSD-3-Clause", "MIT" ]
permissive
bbanerjee/ParSim
0b05f43cff8e878658dc179b4a604eabd873f594
87f87816b146f40013a5e6648dfe20f6d2d002bb
refs/heads/master
2023-04-27T11:30:36.252023
2023-04-13T22:04:50
2023-04-13T22:04:50
13,608,512
16
3
null
null
null
null
UTF-8
C++
false
false
1,311
cpp
CavityExpansion.cpp
#include <Simulations/DEM/CavityExpansion.h> #include <Core/Util/Utility.h> using namespace dem; void CavityExpansion::execute(DiscreteElements* dem) { dem->allowPatchDomainResize(Boundary::BoundaryID::ZPLUS); if (dem->getMPIRank() == 0) { auto inputParticle = util::getFilename("particleFilename"); REAL...
7bd06dcb12f6b189880bdd86ed035cd41ae8d9e5
b47b241b4b9ad946e52ab92dc2dd4b0bbb8c0d96
/IPlugExamples/Voltex/VoiceManager.cpp
c9a900e8e4616d377fbf9fc52f607c6f14a69e13
[ "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-unknown-license-reference" ]
permissive
eriser/Voltex
141abf9d8f45f9cd65ee71cb661b6aa22b3b1885
e9e412350b33c6ad6a6734ea5cddd714c9d4cac2
refs/heads/master
2021-01-24T01:34:36.729388
2015-06-13T15:13:10
2015-06-13T15:13:10
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,771
cpp
VoiceManager.cpp
// // VoiceManager.cpp // Voltex // // Created by Samuel Dewan on 2015-04-11. // // #include "VoiceManager.h" Voice VoiceManager::getVoice(int index) { return voices[index]; } Voice* VoiceManager::findFreeVoice() { Voice* freeVoice = NULL; for (int i = 0; i < NumberOfVoices; i++) { if (!voices...
9c4aae3a1f95c31668b154dc34cb7391cceb12a4
cdf35d55493acd581ff2ca1fa469636189d8817d
/test/unit_test/sigslot_unittest.cpp
9dae045833f2cb4ee8e98d2ff2a6892f1bc1b83a
[]
no_license
yagnze/vzenith_tcp_protocol
ba2ea7bfcc034d8555bf87f7e45710a1e2ffb82c
2d83e9de4d90aa80ad81b2d7b2561cf14163e1cb
refs/heads/master
2021-01-21T08:43:40.803479
2016-05-20T09:07:59
2016-05-20T09:07:59
54,008,143
1
0
null
2016-03-16T06:55:25
2016-03-16T06:55:24
null
UTF-8
C++
false
false
8,141
cpp
sigslot_unittest.cpp
/* * vzsdk * Copyright 2013 - 2016, Vzenith Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and t...
6170023e607a90b8a3c81259a2b53334eb0506fa
03b5b626962b6c62fc3215154b44bbc663a44cf6
/src/instruction/VPCMPQ.cpp
bdc032f71324c72da0b1cbcac8f274ff52bb87ec
[]
no_license
haochenprophet/iwant
8b1f9df8ee428148549253ce1c5d821ece0a4b4c
1c9bd95280216ee8cd7892a10a7355f03d77d340
refs/heads/master
2023-06-09T11:10:27.232304
2023-05-31T02:41:18
2023-05-31T02:41:18
67,756,957
17
5
null
2018-08-11T16:37:37
2016-09-09T02:08:46
C++
UTF-8
C++
false
false
183
cpp
VPCMPQ.cpp
#include "VPCMPQ.h" int CVPCMPQ::my_init(void *p) { this->name = "CVPCMPQ"; this->alias = "VPCMPQ"; return 0; } CVPCMPQ::CVPCMPQ() { this->my_init(); } CVPCMPQ::~CVPCMPQ() { }
3961dce0dac691bbc267648cf9a923140d18ddc6
f3d628043cf15afe9c7074035322f850dfbd836d
/codeforces/593/a/a.cpp
1ef9b35640237b60b13bd294f47ef743119ec841
[ "MIT" ]
permissive
Shahraaz/CP_S5
6f812c37700400ea8b5ea07f3eff8dcf21a8f468
2cfb5467841d660c1e47cb8338ea692f10ca6e60
refs/heads/master
2021-07-26T13:19:34.205574
2021-06-30T07:34:30
2021-06-30T07:34:30
197,087,890
5
2
null
null
null
null
UTF-8
C++
false
false
1,266
cpp
a.cpp
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "/debug.h" #else #define db(...) #endif #define all(v) v.begin(), v.end() #define pb push_back using ll = long long; const int NAX = 2e5 + 5, MOD = 1000000007; void solveCase() { int n; cin >> n; map<pair<char, char>, int> mp; for (s...
d72933922fc58e2afa5e48fffbae25428395498f
99df60ec8653b7a0c36561f06f0cc663a1ff5736
/poKval2017A.cpp
24d0c18b136a6464a96a045ea742f3032c1f0418
[]
no_license
Istlemin/poKval2017
74190654d72e7c1ac773df7b6e02fd9c6d2cb209
ad03ce73084d82fd507ebb22b122a258f38da578
refs/heads/master
2021-08-22T13:49:03.753913
2017-11-30T10:38:31
2017-11-30T10:38:31
112,586,250
0
0
null
null
null
null
UTF-8
C++
false
false
905
cpp
poKval2017A.cpp
#include<bits/stdc++.h> using namespace std; #define rep(i,a,b) for(int i = a; i<int(b);++i) #define all(v) v.begin(),v.end() typedef long long ll; typedef vector<ll> vi; typedef pair<ll,ll> pii; /* 4- och 3-grupper behöver egna sätesgrupper, men i varje 3-grupp kan även en 1-grupp sitta, så vi subtraherar min(3gru...
70acfa516b5ed17d039c3ce2ba9a9678de576098
7eab404b358bb4b0e82d6b3a6352a29c36458422
/build/driver_for_ros/ros_driver/include/ros_driver/moc_qnode.cxx
d91dfbaf24e9a1e989e3973a5766b76f8753d46b
[]
no_license
notlixiang/modular_joint_ws_1
ab682f072c90c093a5287fcdc63a6bcf040c1774
7249679027487dd500afc63084cdbfdf29f4750c
refs/heads/master
2021-06-28T12:08:11.456721
2017-09-18T12:30:39
2017-09-18T12:30:39
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,845
cxx
moc_qnode.cxx
/**************************************************************************** ** Meta object code from reading C++ file 'qnode.hpp' ** ** Created by: The Qt Meta Object Compiler version 63 (Qt 4.8.6) ** ** WARNING! All changes made in this file will be lost! *************************************************************...
b8ed3e02271ac5e1afd8b7f1bdbc4ed4e4c8ba26
5e8d200078e64b97e3bbd1e61f83cb5bae99ab6e
/main/source/src/core/scoring/loop_graph/Loop.hh
622d21225e4fa5c7d11664d2a2c01372f2f73554
[]
no_license
MedicaicloudLink/Rosetta
3ee2d79d48b31bd8ca898036ad32fe910c9a7a28
01affdf77abb773ed375b83cdbbf58439edd8719
refs/heads/master
2020-12-07T17:52:01.350906
2020-01-10T08:24:09
2020-01-10T08:24:09
232,757,729
2
6
null
null
null
null
UTF-8
C++
false
false
2,995
hh
Loop.hh
// -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*- // vi: set ts=2 noet: // // (c) Copyright Rosetta Commons Member Institutions. // (c) This file is part of the Rosetta software suite and is made available under license. // (c) The Rosetta software is developed by the co...
dd458a606ae6652678050eb0da227aac9ea5477e
7d35157eaebee03d6532aea9fe9b4c6f636867b1
/MiniEngine/DescriptorHeap.cpp
b9d5cffa76ff961171546af096c060e2de54bae1
[ "MIT" ]
permissive
eorfeorf/hlsl-grimoire-sample-my
47609214881831d38f840d037260128f59a49357
75de1dc9e2d003d70e398dea7f9d8783e6e36ab9
refs/heads/main
2023-06-06T22:14:42.939030
2021-07-20T14:53:40
2021-07-20T14:53:40
378,725,928
0
0
null
null
null
null
UTF-8
C++
false
false
4,319
cpp
DescriptorHeap.cpp
#include "stdafx.h" #include "DescriptorHeap.h" DescriptorHeap::DescriptorHeap() { m_shaderResources.resize(MAX_SHADER_RESOURCE); m_uavResoruces.resize(MAX_SHADER_RESOURCE); m_constantBuffers.resize(MAX_CONSTANT_BUFFER); for (auto& srv : m_shaderResources) { srv = nullptr; } for (auto& uav : m_uavResoruces) ...
677decd2c4b344bbe07e0c1e84820e25b69beaf1
a5799f38ea44cf003add43413222800bd6f0a192
/qmlinteg/main.cpp
dc0c10f906b7fde39d931d99f466b0f78002746a
[]
no_license
muchirajunior/QTprojects
03a7b616e66ff95e657f6b8f4c0fb55708f04d70
920d6b9a97c76b674c46ed842396c1ab0db51ad5
refs/heads/master
2021-07-11T08:43:57.906077
2021-03-09T09:52:07
2021-03-09T09:52:07
237,191,341
0
0
null
null
null
null
UTF-8
C++
false
false
1,071
cpp
main.cpp
#include <QGuiApplication> #include <QQmlApplicationEngine> #include <network.h> #include <QQmlContext> #include <QQuickView> int main(int argc, char *argv[]) { QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); Network *net=new Network; QGuiApplication app(argc, argv); QQmlApplicationEngine...
ec43d20bec1802a6983184fc6f0c10e46aa77013
321e235276dd0c8e23e346b518a8c1c8bbb76b44
/Lab -2/Задание 4.cpp
c5d259287cd4f8fbbf91bd5de799bbfc47a13854
[]
no_license
Gorand174/CppLabs
b8441534f8f743eff9e98b9c45e35749cd2468b3
7f331c9b6259fd833ba9124689bfe015cff4ac0d
refs/heads/master
2021-03-12T19:28:01.683132
2018-02-21T08:33:54
2018-02-21T08:33:54
102,879,400
0
0
null
null
null
null
UTF-8
C++
false
false
857
cpp
Задание 4.cpp
#include <iostream> #include <cmath> using namespace std; int main() { int n; cout << "Введите размерность квадратной матрицы, а затем все её элементы: "; cin >> n; int **x = new int*[n]; int *y = new int[2 * n]; for (int i = 0; i < n; i++) { x[i] = new int[n]; for (int j = 0; j < n; ...
2c2759d7eeada0cf2fa373f8ab8d0156b16ade47
c8021516af6ff81203add05d50514e2a190c8a76
/uart.cpp
f8b93fa156e9ad04692bef18b75f8b9e2e749bc2
[ "MIT" ]
permissive
zhongchengyong/krv-os
bd5dd7bb5e7c4f7954f229eb822a57cb29222e7d
76db0ea137f06936845012f9208d37498d697968
refs/heads/main
2023-05-15T06:44:48.706426
2021-06-06T07:34:11
2021-06-06T07:34:11
361,130,672
0
0
null
null
null
null
UTF-8
C++
false
false
4,044
cpp
uart.cpp
#include <cstdint> #include "os.hh" #include "platform.hh" /* * The UART control registers are memory-mapped at address UART0. * This macro returns the address of one of the registers. */ #define UART_REG(reg) ((volatile uint8_t *)(UART0 + reg)) /* * Reference * [1]: TECHNICAL DATA ON 16550, http://byterunner.c...
cdc78977f58f77b435885ba2023b348c92dbce46
9c1ccd9bd02acee2e2bce759f32580258ec9389a
/c++file/nonlinear/src/Ham_Dirac.hpp
14edd0c119caf3c654fb2cd3b71dbb3f947bf5e7
[]
no_license
YoshihiroMichishita/Test_Codes
220c0afef0aa9249ba64b42dcddc64dd93409d4d
faffe66a402cc0b825d814af815c1e4c35d2d7a6
refs/heads/master
2023-05-11T21:32:14.399405
2021-05-30T10:45:29
2021-05-30T10:45:29
324,497,442
0
0
null
null
null
null
UTF-8
C++
false
false
3,158
hpp
Ham_Dirac.hpp
#pragma once #include "const.hpp" #include "parm_Dirac.hpp" #include "matrix_op_mypc.hpp" using namespace std; // THis is the class for calculating the concrete Hamiltonian, velocity operator, and Green functions. static const int M = 2; static const int Mf = 2; static const int D = 3; vo...
5492b2c3bf73797f4c8d5ddced042bfb47f1bea7
e2847929f485edb74dda23e63dff0b59e93998d2
/0119.pascals-triangle-ii/pascals-triangle-ii.cpp
477666a737efbbccab9f68f8717d63d2797fb4e0
[]
no_license
hbsun2113/LeetCodeCrawler
36b068641fa0b485ac51c2cd151498ce7c27599f
43507e04eb41160ecfd859de41fd42d798431d00
refs/heads/master
2020-05-23T21:11:32.158160
2019-10-18T07:20:39
2019-10-18T07:20:39
186,947,546
5
1
null
null
null
null
UTF-8
C++
false
false
406
cpp
pascals-triangle-ii.cpp
//经验题:https://www.cnblogs.com/springfor/p/3887913.html。 class Solution { public: vector<int> getRow(int rowIndex) { vector<int> result(rowIndex+1); result[0]=1; for(int i=0;i<rowIndex+1;i++){//其实外循环就是挨层算的。 for(int j=i;j>0;j--){ result[j]=result[j]+result[j-1]; ...
1e0c1591bc76508f80777faac7dba2d08b8e9348
fb31b110bf497183e8121d646d0746d14c6f90e2
/eactivity/OnlineAdvices.cpp
e2861ed64fc541d595f1b01f018e14c69fd3413b
[]
no_license
densaface/eactivity
b829df9e7451fc7bdc60e1d507164b5ee64ffe23
4cd442410137b87591aa7c967f1b9aec0e89b71a
refs/heads/master
2022-12-07T20:25:33.498652
2020-08-30T10:58:44
2020-08-30T10:58:44
291,453,744
1
0
null
null
null
null
WINDOWS-1251
C++
false
false
13,187
cpp
OnlineAdvices.cpp
// OnlineAdvices.cpp : implementation file // #include "stdafx.h" #include "eactivity.h" #include "OnlineAdvices.h" //#include "externals/sqlite/sqlitetchar.h" //#include "externals/sqlite/sha512/sha512_helper.h" // COnlineAdvices dialog IMPLEMENT_DYNAMIC(COnlineAdvices, CDialog) COnlineAdvices::COnlineAdvices(CWn...
65b79909193da31c07d045d60047df05fc8cd5f4
07871afa90e215e0e1868e50f1fba45322963de1
/src/akonadi/akonaditaskqueries.h
37f6025744ac9e628fb2e7f918bcc46213414f83
[]
no_license
KDE/zanshin
8b9ab01e44649ef28f2b37bdf95feae2da0db82c
8da5c5f37de387c7551cbc63551eed9465c8004c
refs/heads/master
2023-09-01T00:05:00.128302
2023-08-28T02:17:16
2023-08-28T02:17:16
42,735,781
17
5
null
null
null
null
UTF-8
C++
false
false
3,022
h
akonaditaskqueries.h
/* * SPDX-FileCopyrightText: 2014 Kevin Ottens <ervin@kde.org> * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #ifndef AKONADI_TASKQUERIES_H #define AKONADI_TASKQUERIES_H #include "domain/taskqueries.h" #include "akonadi/akonadicache.h" #include "akonadi/akonadilivequery...
f1b4728956ecc7281616cbd1b2c363f15347e377
c3fa72d4894941c121f4acf675fb7c4deaa4c4b8
/17.audio_player_decode_by_ffmpeg_play_by_qt/main.cpp
149d11509a9aaf1d049476bd34c58ab13be68b44
[ "MIT" ]
permissive
asdlei99/ffmpeg_beginner
d8e0a318574f86ba2c792bc7d9e0096663be6cad
3b1f086cb568f3ed2167c111bc7b59df1ba0308b
refs/heads/main
2023-08-15T12:22:00.208740
2021-10-15T09:24:56
2021-10-15T09:24:56
null
0
0
null
null
null
null
UTF-8
C++
false
false
6,027
cpp
main.cpp
#include <iostream> using namespace std; #include <QString> #include <QByteArray> #include <QDebug> #include <QFile> #include <QAudioFormat> #include <QAudioOutput> #include <QTimer> #include <QTest> extern "C"{ #include "libavcodec/avcodec.h" #include "libavfilter/avfilter.h" #include "libavformat/avformat.h" #incl...
ad99ae3a71c353e463eb002389f903f7663002be
a0408c9c0022ef1d12dd1b4524426864f1390ffe
/21调整数组顺序使奇数位于偶数前面.cpp
fbea59f5b003f50cb5edcd0a5f2e52a8a684a0e8
[]
no_license
Snowstorm0/SwordtoOffer
fbfa36139289e968556c05a9b0f5be70da9a5784
12611618848409c62727ff6520d90cc589dc9c89
refs/heads/master
2022-12-23T18:26:19.987369
2020-09-18T14:06:36
2020-09-18T14:06:36
275,362,185
1
0
null
null
null
null
UTF-8
C++
false
false
1,078
cpp
21调整数组顺序使奇数位于偶数前面.cpp
// 面试题21:调整数组顺序使奇数位于偶数前面 // 题目:输入一个整数数组,实现一个函数来调整该数组中数字的顺序,使得所有 // 奇数位于数组的前半部分,所有偶数位于数组的后半部分。 #include <stdio.h> #include <stdlib.h> #include <vector> #include <queue> #include<iostream> #include <stack> #include<cstdlib> #include <string> using namespace std; void reOrderArray(vector<int> &arr) { int len = ar...
a9c58a98b95a135a416bec7d31387b63e7ac1af3
4ae7357ab97ee31519c67ea3ce3b1822d5035062
/ISort.cpp
993f337fa10c1c67c9e5b012da5b2d5a216810f5
[]
no_license
s33dd/lab3_2021
65e2ed515e173a552f29554b3147bc4f8268d76c
0b4965523592d0c594285812183147515da235b0
refs/heads/master
2023-05-04T10:02:40.631925
2021-05-22T13:12:51
2021-05-22T13:12:51
368,268,122
0
1
null
null
null
null
UTF-8
C++
false
false
10,122
cpp
ISort.cpp
#include "ISort.h" ISort::ISort() { m_switchCounter = 0; m_compareCounter = 0; } BubbleSort::BubbleSort() { m_compareCounter = 0; m_switchCounter = 0; } void BubbleSort::SortMatrix(Matrix& matrix) { int temp = 0; m_compareCounter = 0; m_switchCounter = 0; for (int n = 0; n < (matrix.m_matrixColumns * matrix...
16b98055e5aeada77c2e75ff0e0a10c9936af766
3fa71d87dc2a9ecc7c04d525e71a51f3a02ada01
/Hmwk/C++_Review/Gaddis_8thEd_Chap5_Prob11/Chap5_Prob11.cpp
46ae602ee4ef3ad2d66449e3b15ebf800a97636b
[]
no_license
kinnaripatel03/CSC17A-1
b176d8307a73fc051f49adc8c7c52babcef1ef70
89192346c3d0de705095d97e468926484b9529d2
refs/heads/master
2020-04-04T14:52:56.805532
2017-12-04T08:08:59
2017-12-04T08:08:59
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,584
cpp
Chap5_Prob11.cpp
/* * File: Population * Author: Jose Morales * Purpose: Temp for all the programs * Created on September 13, 2016, 11:19 AM */ //System Libraries #include <iostream> using namespace std; //Global Constants //Function Prototypes void ttlPop(int,int,float); //Execution Begins Here int main(int argc, char** argv)...
65f647c229a8a4c4d817c34999f812f924ff4205
e1a2fdc28415080e14b0cb76313c01e9c102ed12
/src/dp/dp.h
13531410ab8a914f8835928c47903b71a554c3e2
[ "BSD-3-Clause" ]
permissive
stevendbrown/diamond
ab088ed43718065ae1020392d46baef368f2e92b
5162c0919dbef3022c8e73a7085dbd7960ec8e96
refs/heads/master
2021-01-17T20:48:45.128145
2017-02-21T23:51:01
2017-02-21T23:51:01
65,657,999
0
0
null
2017-02-21T23:51:02
2016-08-14T08:53:25
C++
UTF-8
C++
false
false
5,236
h
dp.h
/**** Copyright (c) 2016, University of Tuebingen, Benjamin Buchfink All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list o...
120b4c2b0f6781a3da0332fbad5d75ff710adc1e
38af1e7e3ed5a993dc6db6bb172c2471ea9e192f
/grammar/statements/methods/MethodInvocation.cpp
e0aba12994c292c5e967b16b76a0a5818ba7bc7e
[]
no_license
zhukovp0101/compilers
b87f118ae2b3874f51ab1a0bd0e2e4e8170ff28e
8299dcdd8f577538e4a83e03490d5f5eafef65f3
refs/heads/master
2022-07-14T20:43:05.809153
2020-05-22T01:16:36
2020-05-22T01:16:36
265,988,081
0
0
null
null
null
null
UTF-8
C++
false
false
367
cpp
MethodInvocation.cpp
// // Created by bevertax on 02.04.2020. // #include "MethodInvocation.h" MethodInvocation::MethodInvocation(Expression *caller, std::string_view identifier, List<Expression> *arguments): caller_(caller), identifier_(identifier), arguments_(arguments) {} void MethodInvocation::Accept...
ac4f7d1526e8506d2bcdb1922bec34a964375d2e
4c08d143040db7f8c638481612455ee318f2478d
/Leetcode/Easy/L198.cpp
d84ff8dc2a9df8fef0065038798923b53ea0e3a9
[]
no_license
ganeshskudva/Algorithms
1e8f47767ffcfc8e381d054cfb6816f42030d9c9
530a8c38d92d65003e0f8dcf57757a1147c42c65
refs/heads/master
2021-07-14T01:22:00.788658
2021-03-29T17:56:17
2021-03-29T17:56:17
25,098,710
3
1
null
null
null
null
UTF-8
C++
false
false
715
cpp
L198.cpp
// 198. House Robber class Solution { public: int rob(vector<int>& nums) { int n=nums.size(); vector<int> dp(n); if(n==0){return 0;} if(n==1){ return nums[0]; } if(n==2){ if(nums[0]>nums[1]){ return nums[0]; } ...
4eb3b556eb78c11a7fa49d45493c931e68bf312c
83913b4691c2436ba95e0221f4ac3cba21e79ec7
/main.cpp
cce605083d864ea400aabbcb332bcdcaa482865b
[]
no_license
tinkertom/ELEC143-buggy_enhancement_2
3cb8a6d7a5c5760bc0dfe3853cdb1804de7ed771
d6a05a4d8ec288dcccd8d7488f02421a0addd4ec
refs/heads/master
2020-11-26T03:33:40.676258
2020-01-05T21:46:06
2020-01-05T21:46:06
228,953,547
0
0
null
null
null
null
UTF-8
C++
false
false
1,556
cpp
main.cpp
#include "mbed.h" #include "buggy.h" int main() { // Debugging serial connection. Serial terminal(USBTX, USBRX); terminal.baud(115200); // Indication LED. DigitalOut led(LED1); // User control switch. DigitalIn user_switch(USER_BUTTON); // Declare buggy struct, passing all the necessary pin names. // ...
6877cdaf2ea93224e850a2042a2ffa5d0e4e3b55
88b130d5ff52d96248d8b946cfb0faaadb731769
/document/src/vespa/document/datatype/datatype.h
8deca98eb742b92c9de0a706a3d82316faae5094
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
vespa-engine/vespa
b8cfe266de7f9a9be6f2557c55bef52c3a9d7cdb
1f8213997718c25942c38402202ae9e51572d89f
refs/heads/master
2023-08-16T21:01:12.296208
2023-08-16T17:03:08
2023-08-16T17:03:08
60,377,070
4,889
619
Apache-2.0
2023-09-14T21:02:11
2016-06-03T20:54:20
Java
UTF-8
C++
false
false
5,941
h
datatype.h
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. /** * \class document::DataType * \ingroup datatype * * \brief Specifies what is legal to store in a given field value. */ #pragma once #include <vespa/document/util/printable.h> #include <vespa/vespalib/stlli...
c31ec2c4f81d5ee31881bf0a5b567fe3bea6dc8e
c2a7acc0367fedf6e2b26437680f9749a4a47985
/Spoj/TOANDFRO.cpp
cbfea779665396b969be07c04df4b89ee76227c7
[]
no_license
UtkarshGupta-CS/Mind-Sport
2d94ecc8ca1a26193b427c9d1d254718607060bc
05270782780ff1c9cbea844b3d89e8b09e30a0db
refs/heads/master
2021-01-19T17:25:54.815642
2018-04-07T01:26:13
2018-04-07T01:26:13
82,457,095
1
1
null
2017-07-07T06:53:55
2017-02-19T12:25:20
C++
UTF-8
C++
false
false
807
cpp
TOANDFRO.cpp
#include <iostream> #include <string> using namespace std; int main() { int c; cin >> c; while (c != 0) { string s; cin >> s; int len = s.length(); int i = 0, j = 0, count = 0, cond1 = 2 * c - 1, cond2 = 1; bool choice = true; while (count != len) { if (...
1d9913308c9804b3e64dc051dca457e26a905db9
81f1f2006d7c1787e1be8f153f45f05f95f68c60
/kernel.cpp
b28ad5e16f6b924c119e50eec3240cebc6f6e822
[]
no_license
kriot/Contrast
ad7934cb2824b9c1f5a3ae2b5031b731e4f3e565
8cc269d005f22dfa7c6b3c0a1245ba4d038bd183
HEAD
2016-09-06T15:13:20.346473
2015-07-06T23:07:14
2015-07-06T23:07:14
38,651,269
0
0
null
null
null
null
UTF-8
C++
false
false
2,102
cpp
kernel.cpp
#include <iostream> #include <vector> #include <map> #include <set> #include <opencv2/opencv.hpp> const double alpha = 0.01/255; const int kernel_size = 20; std::vector<long long> calcHist(const cv::Mat& img, int ch, int i0, int j0, int i1, int j1) { std::vector<long long> res(256, 0); for(int i = i0; i < i1; ++i) ...
8f0bc6f389e3a9113da2dcbbfeefc5152bd8759e
6caded3fe4e999d3061a2f9bd44c704f80e53b52
/C++/ex6_objet_classe/ex6_objet_classe/Clavier.cpp
63608147423d3bcf91cf1962fb99654195e66bbf
[]
no_license
Galliezb/exProgrammation
f0cce833764a4f9d98b9aecdb41ea2f11df658b1
9832f052c7df043ba4498b1c75445f8a5af58ce3
refs/heads/master
2021-01-13T05:50:02.195449
2017-06-08T06:13:08
2017-06-08T06:13:08
68,911,957
0
0
null
null
null
null
UTF-8
C++
false
false
745
cpp
Clavier.cpp
#include "Clavier.h" int Clavier::cptNombreObjet=0; Clavier::Clavier(){ marque_ = ""; nombreTouche_ = 0; prix_ = 0; Clavier::cptNombreObjet++; } Clavier::Clavier(string marque, short int nombreTouches, float prix){ marque_ = marque; nombreTouche_ = nombreTouches; prix_ = prix; Clavier::cptNombreObjet++; } ...
2f90b88be5bb2b95f4900a46a93414b5162c44c8
bcfcad1c5d202cdaa172014afd260e02ad802cb4
/ModelLoader/Include/ModelLoader.hpp
ef971fb4e68a6dbf70012f502b263b9a56f84f5a
[ "BSL-1.0", "LicenseRef-scancode-khronos", "Zlib", "MIT" ]
permissive
jordanlittlefair/Foundation
0ee67940f405573a41be6c46cd9d2e84e34ae8b1
ab737b933ea5bbe2be76133ed78c8e882f072fd0
refs/heads/master
2016-09-06T15:43:27.380878
2015-01-20T19:34:32
2015-01-20T19:34:32
26,716,271
0
0
null
null
null
null
UTF-8
C++
false
false
529
hpp
ModelLoader.hpp
#pragma once #ifndef _MODELLOADER_MODELLOADER_HPP_ #define _MODELLOADER_MODELLOADER_HPP_ #include <string> namespace Fnd { namespace AssetManager { struct ModelData; } } namespace Fnd { namespace ModelLoader { class ModelLoader { public: static bool LoadModel( const std::string& filename,...
9a4b2aac2208676aca456e1d2715303dafda5868
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/third_party/blink/renderer/modules/worklet/animation_and_paint_worklet_thread.cc
905dca681d980f0753ca07e5c91ff88c3fdc79dc
[ "LGPL-2.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-1.0-or-later", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
chromium/chromium
aaa9eda10115b50b0616d2f1aed5ef35d1d779d6
a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c
refs/heads/main
2023-08-24T00:35:12.585945
2023-08-23T22:01:11
2023-08-23T22:01:11
120,360,765
17,408
7,102
BSD-3-Clause
2023-09-10T23:44:27
2018-02-05T20:55:32
null
UTF-8
C++
false
false
4,860
cc
animation_and_paint_worklet_thread.cc
// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/modules/worklet/animation_and_paint_worklet_thread.h" #include "base/memory/ptr_util.h" #include "base/synchronization/waitable_event.h" #...
f22b843527384a6749c16e8132e808bf760ec82b
72108ee7eccc397a2df452d75f568f949752111e
/Quartz/Engine/Source/Core/QuartzPCH.cpp
cf9938b0ad05427450180d4d6f4b5cf9a0eaf9f7
[ "BSD-3-Clause" ]
permissive
Gerold55/quartz-engine
dc959b00618c9277d403d06a579f8dddde8ab8bc
908d84fda247bdaea185dbeddc99f187f8b84713
refs/heads/develop
2020-05-14T20:40:08.707824
2019-06-12T04:40:31
2019-06-12T04:40:31
181,948,295
0
1
BSD-3-Clause
2019-06-12T04:23:58
2019-04-17T18:35:36
C++
UTF-8
C++
false
false
37
cpp
QuartzPCH.cpp
#include <Quartz/Core/QuartzPCH.hpp>
36a242b3e4a220e3e181c663b7a6f0c30f935c50
53f5b9531da15e898a4e1c20f0a0028eb8ffd664
/src/Autonomous.h
5cc22d09a8900ac8278ad8da4b2b40a1e449dd40
[]
no_license
Team2959/2018-FIRST-Power-Up
2053737b35df570acb4a427a6d93e953425c2ca5
e0ead7fd201d3153a7157aec880144c535e3ed7b
refs/heads/master
2023-02-28T09:17:28.724171
2018-04-13T02:47:19
2018-04-13T02:47:19
334,466,439
0
0
null
null
null
null
UTF-8
C++
false
false
1,001
h
Autonomous.h
/* * Autonomous.h * * Created on: Feb 8, 2018 * Author: Kevin */ #ifndef SRC_AUTONOMOUS_H_ #define SRC_AUTONOMOUS_H_ #include <Commands/Command.h> #include <SmartDashboard/SendableChooser.h> enum class Side { Left, Right }; class Autonomous { private: // The chooser seems problematic updating the SmartD...
fcbf151a9f99663a0d5a047655771c3d601c62a3
852427c818afb5550b05ea59d58477c18eb4db00
/Problems/HEADBOB.cpp
54f462a28e064ded0e883138b0fc3c615acdad07
[]
no_license
jonorsky/Competitive-Programming
3209e6a780114e22bcc4463d0dda93ceaaf67cf8
4c27e416b3bf223a1d59bd1cbc873c3766fe41dd
refs/heads/master
2020-04-09T18:25:46.521423
2019-02-18T07:03:46
2019-02-18T07:03:46
160,511,950
0
0
null
2019-01-16T15:41:17
2018-12-05T12:01:49
C++
UTF-8
C++
false
false
1,944
cpp
HEADBOB.cpp
/* https://www.codechef.com/LTIME17/problems/HEADBOB */ #pragma warning(disable:4786) #define _CRT_SECURE_NO_WARNINGS #pragma comment(linker, "/stack:16777216") #include <bits/stdc++.h> using namespace std; #define fast ios_base::sync_with_stdio(false); #define endl '\n' #define gc getchar #define file freopen("icepart...
39e5eadee7c3eed9cbddbb8aecdd9211eb7f679d
726ed80ec958276eb8c4602a1fa81f0838e51260
/src/170418 potenziometri BT_1.ino
d11b8316b9478de2c969d3cf9dfed5fdf17c554a
[]
no_license
ecotux/drone
849d0217cc4b3356383b30c12f6b41b9c7672c25
939f3aed01d22f6b88d635fd609f3582afd9aa3a
refs/heads/main
2023-08-29T07:46:04.335434
2021-11-02T18:10:54
2021-11-02T18:10:54
423,950,129
0
0
null
null
null
null
UTF-8
C++
false
false
475
ino
170418 potenziometri BT_1.ino
/* Arduino Pins Bluetooth Pins RX (Pin 0) ———-> TX TX (Pin 1) ———-> RX */ int potPin1 = A0; int potPin2 = A1; int speed1 = 0; int speed2 = 0; void setup() { Serial.begin(38400); } void loop() { speed1 = map( analogRead(potPin1), 0, 1023, 1000, 2000 ); speed2 = map( analogRead(po...
f7a91b2ca6465cb64305c7fea5e2c9a30789445a
62994e774c4da539d93a9bc0da4195050b08fbf0
/src/Zombie.h
b85f1a4fe1f01e9550bbb77d4c2f86e73ba80b62
[ "MIT" ]
permissive
svetoslaw/flora-vs-undead
ebbf446e5ca717af69e2a6c186f5ef432b30e862
828b4f7713c441e4be73d90cdc13116c14af9dfa
refs/heads/develop
2020-08-18T04:42:50.729758
2020-01-20T10:58:18
2020-01-20T10:58:18
215,748,683
0
0
MIT
2020-01-25T11:22:41
2019-10-17T09:02:48
C
UTF-8
C++
false
false
328
h
Zombie.h
#ifndef __ZOMBIE_H__ #define __ZOMBIE_H__ #include "GameObject.h" #include <string> class Zombie : public GameObject { public: Zombie(SDL_Rect position); void setType(std::string t); std::string getType(); void updateHealth(int h); int getHealth(); private: std::string type; int health = 0; }; #endif // !__ZO...
521d38f4490af97944f23d0617bf5c262c6d2c2f
7e0aaa95ecac4959bf9766d438cb7351a61884fd
/SDL_1/src/Games/BreakOut/Ball.hpp
16a5160664acc20719e9a314cf8fd617afa0425d
[]
no_license
sschaitanya/BreakOut
5e0522babb9b79bfcae8a4d80cbc5925054d1bd9
d1389a02641d0e741e90da9b62e91229b414e5d5
refs/heads/master
2023-01-18T15:30:14.921738
2020-11-29T01:57:09
2020-11-29T01:57:09
316,849,146
0
0
null
null
null
null
UTF-8
C++
false
false
1,044
hpp
Ball.hpp
// // Ball.hpp // SDL_1 // // Created by santhosh chaitanya singaraju on 10/24/20. // #ifndef Ball_hpp #define Ball_hpp #include "AARectangle.hpp" #include "Screen.hpp" struct BoundaryEdge; class Ball{ public: Ball(); Ball(const Vec2D& pos, float radius); void Update(uint32_t dt); void Draw(Screen& ...
4dd7e1bc5d1f65ba6886ab84d629c7de4351fcb2
aa57f47c838c3acf5fc2ba8b14c00a3a235041f5
/Source/UnrealOpenCvTest/FaceDetectionActor.h
a0f7ea28be8a2fd5cb7104d618d4291e2554f768
[]
no_license
RobertoE90/UnrealOpenCVBasicIntegration
756c076c7090dd36b3f46ed68f80baf7db565ac1
334b4eb3aa61815a33c294796b5853678ec63018
refs/heads/master
2022-12-29T14:27:06.380462
2020-10-12T19:09:02
2020-10-12T19:12:18
303,130,973
1
0
null
null
null
null
UTF-8
C++
false
false
710
h
FaceDetectionActor.h
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "GameFramework/Actor.h" #include "WebCamReader.h" //#include "opencv2/core.hpp" #include "opencv2/objdetect.hpp" #include "FaceDetectionActor.generated.h" UCLASS() class UNREALOPENCVTEST_API...
3eb55cee6041f493701037624497251b4b8ea701
5f3ea05075d5937aa2b5f32aef6feb335325df3a
/src/Oscillator.h
51306a920f999ddc16a2e0558f385d99332bbab4
[]
no_license
t3kt/LineThing4
2810924747be18246df74714a4b9574dbd1d4e58
2189ab20de1f9a70604311b6f916afc7ce1ef022
refs/heads/master
2020-05-18T11:19:30.279978
2015-01-06T05:03:05
2015-01-06T05:03:05
28,891,750
0
0
null
null
null
null
UTF-8
C++
false
false
611
h
Oscillator.h
// // Oscillator.h // LineThing4 // // Created by tekt on 1/4/15. // // #ifndef __LineThing4__Oscillator__ #define __LineThing4__Oscillator__ #include "Common.h" #include <utility> #include <ofRange.h> class Oscillator { public: enum Mode { MODE_CONSTANT, MODE_RAMP, MODE_SINE }; typedef float Va...
f5dcc5a17444c8a7041a412426f515102f074ba4
b6e7fefcc288ede325ffc25d6040cee38b75d18a
/ch4/Point.hpp
86f7e1d51a89bdae43130af97070ca85a6cef8cf
[]
no_license
iamcz/itcffe
60c70f40f6d7c30131cfc1467cedc220be78d0b9
ddfbe6a651b87cb587f3ca2ff9f26ab36544b1a9
refs/heads/master
2021-05-12T17:38:02.813040
2018-01-13T21:53:58
2018-01-13T21:53:58
117,049,363
0
0
null
null
null
null
UTF-8
C++
false
false
1,155
hpp
Point.hpp
#ifndef Point_HPP #define Point_HPP #include <iostream> using namespace std; class Shape { }; class Point : public Shape { private: double x; // X coordinate double y; // Y coordinate void init(double dx, double dy); public: // Constructors Point(); // Def...
d93150339c20185caaba5e493d1ddac9db6dbc67
5ec06dab1409d790496ce082dacb321392b32fe9
/clients/cpp-qt5/generated/client/OAIOrgApacheSlingEventJobsQueueConfigurationProperties.h
69404b3380be29e7a6cf70119137bc43292d67ae
[ "Apache-2.0" ]
permissive
shinesolutions/swagger-aem-osgi
e9d2385f44bee70e5bbdc0d577e99a9f2525266f
c2f6e076971d2592c1cbd3f70695c679e807396b
refs/heads/master
2022-10-29T13:07:40.422092
2021-04-09T07:46:03
2021-04-09T07:46:03
190,217,155
3
3
Apache-2.0
2022-10-05T03:26:20
2019-06-04T14:23:28
null
UTF-8
C++
false
false
4,077
h
OAIOrgApacheSlingEventJobsQueueConfigurationProperties.h
/** * Adobe Experience Manager OSGI config (AEM) API * Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API * * OpenAPI spec version: 1.0.0-pre.0 * Contact: opensource@shinesolutions.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openap...
64dbfaba897f3756fff6ce6f8a1def71ce68193e
61d720c020b08faa58a1e6c82aef3e75dc58dc10
/sizeOf/src/sizeof_single_array.cpp
5f56ebf8830530c9df4d1b92215225c3c37d0db1
[]
no_license
VinothVB/CPP
e2186b8b9d643607dd7b8de261ff54f6759e7b3c
e8a2f33a8ef9e35abb3060c6da9a73d7301789e9
refs/heads/master
2022-12-30T22:49:54.866457
2020-10-24T06:25:53
2020-10-24T06:25:53
null
0
0
null
null
null
null
UTF-8
C++
false
false
778
cpp
sizeof_single_array.cpp
/* sizeof tells you the size of the variable. int --> 4 bytes float --> 4 bytes char --> 1 byte double --> 8 byte here we are going to find the size of the single array i.e the number of elements in an array */ #include<iostream> int main(int argc, char* argv[]) { int values[] = { 4, 7, 3, 5 }; /* ...
6b145097a60b566a07d9f6f4b578f9b6bd61edfc
f48cbb6890f22988e9e79bfa4c48e43e4e39384d
/GameData.h
1a88097f18ae2bc7523dec470813d0f7a6ff030d
[]
no_license
FMock/GameEngine
b55f9777a08b7b8a42f242e5266531e1b2d1fcce
4edd326abfed5b6017a6b5422e94316bfd3ace87
refs/heads/master
2021-09-03T12:31:53.567375
2018-01-09T04:36:42
2018-01-09T04:36:42
115,837,836
0
0
null
2018-01-02T00:24:32
2017-12-31T02:33:14
C++
UTF-8
C++
false
false
284
h
GameData.h
#pragma once #ifndef GAMEDATA_H #define GAMEDATA_H class GameData{ public: // static members made available to other game objects static enum gameState{START, PLAY, PAUSE, END}; static void setCurrentGameState(int); private: GameData(){} static int currentGameState; }; #endif
4e89b9ffd8b0bcbb2b96f0e44dc0c721ac0447e4
6328ec4ad6380c54f2c0c91877334b797c97dadb
/snake/lib/snake_controller.cpp
d7ab52ab3d70209e501209438061032a38bc9e54
[]
no_license
homyak-coder/snakeproject
9294cdb1f8e7d6bdb3804b47fa6d6d92f1b00107
b9dc5e06d0641bde295da94268d5fa7f61947b7d
refs/heads/master
2022-10-06T21:11:12.058653
2020-06-07T10:13:02
2020-06-07T10:13:02
265,507,546
0
0
null
null
null
null
UTF-8
C++
false
false
1,924
cpp
snake_controller.cpp
/** *@file snake_controller.cpp */ #include "../headers/snake.hpp" /** * @brief Функция для выдержки частоты обновления * @return true, если рано обновляться, true, если пора */ bool SnakeUserController::not_so_fast() { if (clock.getElapsedTime().asMilliseconds() >= 1000 / freq) { clock.restart(); retur...
a5b4c442d6fa63c300814db477f1dad262fef552
8bf096c857cde9c39398ff50b12ce6ecc0f69e68
/PCM/pcm_mesh.cpp
94b19447e6229740b2a34acfdadd6bedc65161b1
[]
no_license
JackZhouSz/ebpd_vs2015
796a346907a5a6be6c02d82bf0aeaa92566ea44e
190248cd9e66ecaadb7111e50a4c30e34ff52f31
refs/heads/master
2023-03-20T09:14:38.661344
2017-06-30T14:26:20
2017-06-30T14:26:20
null
0
0
null
null
null
null
UTF-8
C++
false
false
445
cpp
pcm_mesh.cpp
#include "mesh.h" #include "MeshOpenGL.h" #include "shader.h" #include "QGLViewer\vec.h" #include "QGLViewer\camera.h" #include <sstream> using namespace std; namespace pcm { void Mesh::setupOpenglMesh() { opengl_mesh_->updateMesh(); } void Mesh::draw(RenderMode::WhichColorMode mode, RenderMode::RenderType& r , S...