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
a73b86b5185874707496b910cedd69953385675f
74ceaf043c44651c7ee4ff9232ec65282d8b367e
/frameworks/cocos2d-x/cocos/scripting/lua-bindings/manual/dhspine/DHDictionary.h
6557af2b40b6783f0f91db78c8d07813bf9cb23b
[]
no_license
PenpenLi/TF2016-NEW
e182bdf15d3d4d4b29b6fac15ab9f847ae678402
85b88b83d2f1cf32c1a99583199baf69586482cf
refs/heads/master
2021-06-06T08:47:50.479822
2016-09-01T10:30:29
2016-09-01T10:30:29
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,200
h
DHDictionary.h
// // DHDictionary.h // dhspine // // Created by youbin on 13-10-10. // // #ifndef __dhspine__DHDictionary__ #define __dhspine__DHDictionary__ #include "cocos2d.h" #include "base/uthash.h" NS_CC_BEGIN #define DH_MAX_KEY_LEN 256 struct DHDictElement { DHDictElement(const char* srcKey, Ref* srcValue)...
86f6e2881ff9853ed4f2e1ce92479c785f13990b
8fd925c25e846d6554ca4305a968e9a2e2af0a71
/src/main/cpp/Recursividad/Fibonacci.cpp
3fb73dcb021097da412e6e43733210d43ff9fa3c
[]
no_license
meschoyez/PEF-tp2
404d55a0165060eef44625f4ea58321e3fcd5337
2849e4118f6dc06e678f9f67423f274b747d3eee
refs/heads/master
2023-08-26T20:10:07.778946
2021-11-03T17:48:29
2021-11-03T17:48:29
421,962,370
0
0
null
null
null
null
UTF-8
C++
false
false
476
cpp
Fibonacci.cpp
#include <iostream> #include <cstdlib> using namespace std; int Fibonacci (int n); int main (int argc, char* argv[]) { int n = 0, f = 0; if (argc != 2) { cout << "Uso: " << argv[0] << " valor" << endl; return 1; } n = atoi(argv[1]); f = Fibonacci(n); cout << "F(" << n << ") = " << f << endl; ...
f71d8dde8b1371cc256108a98dcccd0cbf5a648c
30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a
/Codes/AC/2142.cpp
af1575f9232700ab8ba44494a74fa835554b2bb2
[]
no_license
thegamer1907/Code_Analysis
0a2bb97a9fb5faf01d983c223d9715eb419b7519
48079e399321b585efc8a2c6a84c25e2e7a22a61
refs/heads/master
2020-05-27T01:20:55.921937
2019-11-20T11:15:11
2019-11-20T11:15:11
188,403,594
2
1
null
null
null
null
UTF-8
C++
false
false
727
cpp
2142.cpp
#include <iostream> #include <vector> #include <set> #include <fstream> #include <algorithm> #include <map> #include <cmath> using namespace std; #define ll long long int main() { ios_base::sync_with_stdio(false); int n; cin >> n; vector<ll> a(n); for (int i = 0;...
7136f4fd17c624ee557f80e85b559d80ea0d2735
2b721d0e6d9ada23668d02ee14e83219a1ee0f48
/source/libguiex_core/guiperfmonitor.h
cf2e417d5231f63232f04be276f0c39ec5a8e912
[]
no_license
lougithub/libguiex
fef2165e06f3adb66295aac2cf5f0be24dd47d46
30cf061a40a4c113b58765dc3aeacddc4521a034
refs/heads/master
2016-09-10T10:20:48.122440
2014-06-11T14:17:56
2014-06-11T14:17:56
2,423,027
0
0
null
null
null
null
UTF-8
C++
false
false
3,714
h
guiperfmonitor.h
/** * @file PerfMonitor.h * @brief thanks for yu jian rong * @author ken * @date 2004-10-28 */ /******************************************* * PerfMon * Performance monitor *******************************************/ #ifndef _KEN_PERFMONITOR_28102004_H_ #define _KEN_PERFMONITOR_28102004_H_ ...
459041fc891078ef496df62c027f21b78ea1cb04
a0bdedcc814dfcbf6f1742c398b64a31619af4df
/ideccmbd/CrdIdecNav/DlgIdecNavLoaini.h
3c3dd024b3654bd77c3ac7e75ce400030538e8bd
[ "BSD-2-Clause" ]
permissive
mpsitech/idec_public
ec7231939b8987fd66482d99276609e16d4ad3f7
a74cf1c7095e08ee61b237fddc1642f83dbb852d
refs/heads/master
2021-05-13T20:43:55.046131
2018-06-09T16:11:30
2018-06-09T16:11:30
116,916,593
0
0
null
null
null
null
UTF-8
C++
false
false
13,158
h
DlgIdecNavLoaini.h
/** * \file DlgIdecNavLoaini.h * job handler for job DlgIdecNavLoaini (declarations) * \author Alexander Wirthmueller * \date created: 30 Dec 2017 * \date modified: 30 Dec 2017 */ #ifndef DLGIDECNAVLOAINI_H #define DLGIDECNAVLOAINI_H // IP custInclude --- IBEGIN #include <sys/types.h> #include <dirent.h> ...
22537505523dd5d11a5d072f8ad20e28f28c5960
3d81463f488da3c36efdc601762f6dc4ed0fd0dc
/HelloWorld/HelloOpenGL/src/GL5Uniforms/UniformBuffer.h
c309b79ffd1d07b274c797484d6a85c0a6c35e88
[]
no_license
ugreg/opengl-playground
40b1d05ffb92270abf60f64cf259480c34771bf8
7ef4abcadb6901cc6d152fc183a285f3a38b6483
refs/heads/master
2022-05-14T14:55:35.452725
2020-02-15T22:51:31
2020-02-15T22:51:31
null
0
0
null
null
null
null
UTF-8
C++
false
false
311
h
UniformBuffer.h
#include <iostream> #include "UniformShader.h" #include "GL\glew.h" #include "GLFW\glfw3.h" class UniformBuffer { public: UniformBuffer(); int run(); void createBuffer(unsigned int& buffer, unsigned int& index_buffer); void bindVertex(unsigned int index_to_bind, unsigned int num_floats_per_vertex); };
0925368a128f779c7e7ef96a4b4361a80c91d2aa
f6c0270b00ae78607c91a1b393510144f0f595b3
/TestAppSTM32+88E6352/drivers/mpu.cpp
c7b61fac90ba5366944dce5856b5d1dfb1f9a987
[ "Apache-2.0" ]
permissive
yacoub-automation/mstp-lib
3d9bea7d93308aa9e7a80b427a8a7ccb6d4a1ab5
57089f9b7826a65fdd8d391a31d0598476c3488c
refs/heads/master
2023-04-26T05:28:04.951248
2021-05-04T08:30:24
2021-05-04T08:30:24
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,233
cpp
mpu.cpp
#include "mpu.h" #include <stm32f769xx.h> void mpu_disable() { // Make sure outstanding transfers are done. __DMB(); // Disable fault exceptions SCB->SHCSR &= ~SCB_SHCSR_MEMFAULTENA_Msk; // Disable the MPU and clear the control register MPU->CTRL = 0; } void mpu_enable (uint32_t control) { // Enable the MPU...
f345c636c41ac83fdff87c8ac295755e750aeb00
b7d9f2ad27e52592d8f029336d1551cf26415eaa
/RegistroPilha.h
51c8f7d7c20b77d229f7abafe13b351368ae897f
[]
no_license
enio-martinelli/TAD-Pilha---Aloca-o-Encadeada-e-Din-mica
1619791256e9e0d010232595fce6037dfc7169c8
34ccfbef7a46664ac7e8c7aa91545acc8f632e5d
refs/heads/main
2023-08-13T04:52:01.472006
2021-09-16T18:47:15
2021-09-16T18:47:15
407,277,258
0
0
null
null
null
null
UTF-8
C++
false
false
494
h
RegistroPilha.h
#ifndef REGISTROPILHA_H #define REGISTROPILHA_H #include <iostream> //Definição do tipo Node struct Node{ char info; //local onde será armazenado a informção do elemento struct Node *next; //Ponteiro que apontará para o próximo elemento da pilha }; //Definindo um ponteiro do tipo Node como NodePtr typedef struct...
d8ca0e520c0d65a2854f54a7f0bef08656c1f1c0
a7d7cdbe03c60567129cd790047aaae3c2d08daf
/geometry/Noise.h
3db2400a3031a220dcb7c62041adc9a34aa7a1f2
[]
no_license
m-hogue/JHU-Graphics
c23b8d18ca589ac08ba277917a51ce462d9b4d94
547a62c23cc997cb154c13b4e0ef94756d89702e
refs/heads/master
2021-01-25T00:46:36.040604
2014-12-09T03:51:59
2014-12-09T03:51:59
27,748,191
1
0
null
null
null
null
UTF-8
C++
false
false
1,227
h
Noise.h
//============================================================================ // Johns Hopkins University Engineering for Professionals // 605.467 Computer Graphics and 605.767 Applied Computer Graphics // Instructor: David W. Nesbitt // // Author: David W. Nesbitt // File: Noise.h // Purpose: Noise generat...
aed9e64b822be7705e6bb864518af14fd53d9027
a3a12224ce1742689598066bcfd039c9ce10e446
/codeforces/200b.cpp
998cf67b2c044c76174125e5df40bd5aa8af32be
[]
no_license
sasankrajeev/Codeforces
6c6e72f48fffb74f1bcc2ddf21eecd02c35e394e
ebb0a5e2f968cb3a74319a05d3381004d7e46cc2
refs/heads/master
2020-03-23T12:45:08.159911
2018-09-06T18:09:14
2018-09-06T18:09:14
141,579,485
0
0
null
2018-07-19T13:16:18
2018-07-19T12:55:19
C++
UTF-8
C++
false
false
216
cpp
200b.cpp
#include <bits/stdc++.h> using namespace std; int main() { float a,i,b,c=0; vector <float>d; cin>>a; for(i=0;i<a;i++){ cin>>b; d.push_back(b); c=c+d[i]; } cout<<fixed<<setprecision(6)<<c/a; return 0; }
712c4244bfb0a5cc262a010ea42379298529e3a1
2f78e134c5b55c816fa8ee939f54bde4918696a5
/code_ps3/gfx/irradiance_ps3.h
2eea8e29068e2502dc99f57b1ea2ef0c066d168b
[]
no_license
narayanr7/HeavenlySword
b53afa6a7a6c344e9a139279fbbd74bfbe70350c
a255b26020933e2336f024558fefcdddb48038b2
refs/heads/master
2022-08-23T01:32:46.029376
2020-05-26T04:45:56
2020-05-26T04:45:56
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,189
h
irradiance_ps3.h
//-------------------------------------------------- //! //! \file irradiance_ps3.h //! This is a dummy holding a few doxygen comments. //! //-------------------------------------------------- #ifndef GFX_IRRADIANCE_H #define GFX_IRRADIANCE_H #ifndef GFX_RENDERTARGET_H #include "gfx/rendertarget.h" #endif #ifndef GF...
ea721994f74ebfc480a3e1714139ed9cf66a4890
43a3f10d283605abab26790e68258b8351a4e856
/Image.h
ee630fff40426cc809a905a4e3b9727dce6f3aa0
[]
no_license
shoval6/cppEX8
82fd9c50c9ffbdd9ddbabfc79b1ff6dfbd97b577
430328cd1e034dff47e0f0ef36320ba0e559afa9
refs/heads/master
2020-03-19T02:17:03.676011
2018-06-05T09:51:13
2018-06-05T09:51:13
135,615,213
0
0
null
null
null
null
UTF-8
C++
false
false
546
h
Image.h
//#include <iostream> #include <fstream> #include "Board.h" using namespace std; struct RGB { uint8_t red, green, blue; public: RGB() : red(255) , green(255) , blue(255) {} RGB(uint8_t red, uint8_t green, uint8_t blue): red(red), green(green), blue(blue) {} }; class Image{ private: RGB* image; ...
d22372ada84e2c2d14f0fe2f4d76abc2f141015f
726df6fc883aa216b81f8e0682ec427febdbf89d
/VINew/vihwclass.h
00da406b00c3760ba05d4d0268d821fac1f6969e
[]
no_license
Qmax/QUTE
48ac34384885558ea4f6310f122b2e4f6450853d
09d65671d4280d6cd9b9f97243846708d7968cff
refs/heads/master
2021-01-01T05:33:53.379760
2014-12-04T11:38:05
2014-12-04T11:38:05
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,721
h
vihwclass.h
#ifndef VIHWCLASS_H #define VIHWCLASS_H #include <BackPlaneInterface.h> #include <PTEventInterfaces.h> #include <CalibrationInterfaces.h> #include <IPSOCCommunication.h> #include "ApplicationCardInterface.h" #include <QPluginLoader> #include <vimodelview.h> #include "PTSPIMemoryInterface.h" #include "ad5318components....
47f4439c8f5d5f35f62a3c74bfd5b8b1cebd6942
6d34fa23c708320b2e42d120d107f187106302e3
/orca/gporca/libnaucrates/include/naucrates/md/CSystemId.h
b32d6366b13a7b7c3b8927c0fecd8409c144da9d
[ "Apache-2.0" ]
permissive
joe2hpimn/dg16.oss
a38ca233ba5c9f803f9caa99016a4c7560da9f08
2c4275c832b3e4b715b7475726db6757b127030c
refs/heads/master
2021-08-23T19:11:49.831210
2017-12-06T05:23:22
2017-12-06T05:23:22
113,322,478
2
1
null
2017-12-06T13:50:44
2017-12-06T13:50:44
null
UTF-8
C++
false
false
1,573
h
CSystemId.h
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2012 EMC Corp. // // @filename: // CSystemId.h // // @doc: // Class for representing the system id of a metadata provider // // @owner: // // // @test: // // //--------------------------------------...
55e9c6453d3c7711cc149e8975226b5f8ffca7ea
464d6cb42fb8981595cbf7260069cd1e6a67fe2f
/HashMap/Standard IMportant/Word Pattern.cpp
7131b829c7c9a476e9b13f89541359068e88076f
[]
no_license
rahul799/leetcode_problems
fd42276f85dc881b869072b74654f5811c6618ea
cc7f086eb9ac9bbd20ea004c46d89aa84df10d36
refs/heads/main
2023-04-14T05:09:31.016878
2021-04-20T19:46:52
2021-04-20T19:46:52
359,933,382
2
0
null
null
null
null
UTF-8
C++
false
false
2,764
cpp
Word Pattern.cpp
ERROR: type should be string, got "\n\nhttps://leetcode.com/problems/word-pattern/\n\n\n\n290. Word Pattern\nEasy\n\n1688\n\n208\n\nAdd to List\n\nShare\nGiven a pattern and a string s, find if s follows the same pattern.\n\nHere follow means a full match, such that there is a bijection between a letter in pattern and a non-empty word in s.\n\n \n\nExample 1:\n\nInput: pattern = \"abba\", s = \"dog cat cat dog\"\nOutput: true\nExample 2:\n\nInput: pattern = \"abba\", s = \"dog cat cat fish\"\nOutput: false\nExample 3:\n\nInput: pattern = \"aaaa\", s = \"dog cat cat dog\"\nOutput: false\nExample 4:\n\nInput: pattern = \"abba\", s = \"dog dog dog dog\"\nOutput: false\n \n\nConstraints:\n\n1 <= pattern.length <= 300\npattern contains only lower-case English letters.\n1 <= s.length <= 3000\ns contains only lower-case English letters and spaces ' '.\ns does not contain any leading or trailing spaces.\nAll the words in s are separated by a single space.\n\n\n\n\n\n\n\n\n\nclass Solution {\npublic:\n bool wordPattern(string pattern, string s) {\n // goal\n // given a pattern of char\n // return true/false if string s follows the same pattern\n \n \n // questions/info\n // pattern length -> 1 and 300\n // s length -> 1 and 3000\n // s substrings are separated by a space\n // s does not contain any trailing or leading spaces\n \n // process\n // 1st map -> for char map -> unordered_map<char, int>\n // 2nd map -> for string map -> unordered_map<string, int>\n // loop over our string, make sure number of substring == size of pattern\n // time complexity -> o(n), size of pattern/number of substrings in s \n // space complexity -> o(n), size of ordered_maps based on size of pattern/number substring of s \n \n \n unordered_map<char, string> char_map;\n unordered_map<string, char> string_map;\n \n stringstream ss (s);\n string holder;\n int i = 0; \n int num_substring = 0;\n \n while (ss >> holder) { \n if (char_map.count(pattern[i]) == 0 && string_map.count(holder) == 0) { \n char_map[pattern[i]] = holder;\n string_map[holder] = pattern[i]; \n } else if (char_map.count(pattern[i]) == 1 && string_map.count(holder) == 1) { \n if (char_map[pattern[i]] != holder || string_map[holder] != pattern[i]) {\n return false;\n } \n } else {\n return false; \n } \n i++;\n num_substring++;\n }\n return num_substring == pattern.size() ? true : false; \n }\n};\n"
12f8c04729155010a86816dc8dd7feefdf4c098c
ee70238bbfc121e4bf6fcc7631e68a5e48ebf3da
/include/PhysicsManager.h
cc23a8e37a1bbcc3a6582cfe1655bd5d48c2d995
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
callumW/ECSTest
cc263a1e1dfb3d0d4c9e4e911a4f5dd1503ac852
0ac38c42af550e561ebe31412f3531cdbb3059ef
refs/heads/master
2023-01-12T02:52:12.815295
2020-11-07T22:34:54
2020-11-07T22:34:54
258,451,436
0
0
null
null
null
null
UTF-8
C++
false
false
666
h
PhysicsManager.h
#ifndef PHYSICS_MANAGER_H #define PHYSICS_MANAGER_H #include <array> #include <unordered_map> #include <vector> #include "ComponentManager.h" #include "Entity.h" #include "PhysicsComponent.h" class PhysicsManager : public ComponentManager<physics_component_t> { public: static PhysicsManager& get(); void simu...
7eacae3a818c97c143b5e4ed548d73db81e8bf9e
bf9b2a5b68b6f97af49fd8542a99a95542404557
/tools/streamingServer/rpiCamera.h
40e2a653d213b603f3056dd5229756221ad48545
[]
no_license
viv92/video-analytics
7d6f2b4bddac7d981fe9cbbf8aae9cdba11d8e62
c0d1b431ceb42c6734460ae4933f7df96f0666f9
refs/heads/master
2020-07-10T12:34:41.344895
2019-08-25T07:56:58
2019-08-25T07:56:58
204,263,798
0
1
null
null
null
null
UTF-8
C++
false
false
364
h
rpiCamera.h
// // Created by aitoe on 12/09/2017 // #ifndef RPICAMERA_H #define RPICAMERA_H #include <cv.h> #include <opencv2/highgui.hpp> #include <unistd.h> #include <iostream> class rpiCamera { public: rpiCamera(); void getFrame(); std::vector<uchar>* getEncodedFrame(); private: cv::VideoCapture* camera; ...
3df542abb95d87b6f0c57ec30ade43ab3a93876c
d440825440b2582c9bf39e627a8f3acd3124875a
/Project/EventManager.cpp
135ffc45a23a6624f3068ecb48ef26565e24c414
[]
no_license
wnchen1/Otto1
f107abb3f7d58e21a8ba3669d8f9c2330e87a5ef
e358dda8cb03f81174dc885e5a465f2e205bd12a
refs/heads/master
2023-07-09T05:42:07.058444
2021-08-17T06:36:00
2021-08-17T06:36:00
390,887,170
0
0
null
null
null
null
UTF-8
C++
false
false
2,802
cpp
EventManager.cpp
#include "EventManager.h" #include "Game.h" #include <cstring> #include <iostream> void EventManager::Init() { s_currentKeyState = SDL_GetKeyboardState(&s_numKeys); s_lastKeyState = new Uint8[s_numKeys]; std::memcpy(s_lastKeyState, s_currentKeyState, s_numKeys); s_currentMouseState = SDL_GetMouseState(&s_mousePos....
cb727eb1e414d82545aaf6ca0c941a58e6ff7048
edd2c827b36f3082bde9ec0a58ed5703e94e1167
/Test/RegularPolygonTest.h
94fe5903d40b3363fc8ed700e3cc8d37be7cb18f
[]
no_license
gloomyRuby/task31
d5ab6d96a8204fc63a73cc5cabf700c7b30945dc
230b42755a5a8c2deb0d95ced070da02b7a4da74
refs/heads/master
2021-05-12T00:59:51.078434
2018-02-04T18:45:54
2018-02-04T18:45:54
117,547,823
0
0
null
null
null
null
UTF-8
C++
false
false
119
h
RegularPolygonTest.h
// // Created by Oysha on 28/01/2018. // #pragma once class RegularPolygonTest { public: void test() const; };
43551a1069679dcfdeb06d74f9ab504c6a57ecc7
5ee0eb940cfad30f7a3b41762eb4abd9cd052f38
/Case_save/case2/900/nut
b3e5516f50249086e9a8b4aa0849b3a2e2d0a368
[]
no_license
mamitsu2/aircond5_play4
052d2ff593661912b53379e74af1f7cee20bf24d
c5800df67e4eba5415c0e877bdeff06154d51ba6
refs/heads/master
2020-05-25T02:11:13.406899
2019-05-20T04:56:10
2019-05-20T04:56:10
187,570,146
0
0
null
null
null
null
UTF-8
C++
false
false
9,975
nut
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 6 \\/ M anipulation | \*-------...
3ff5d5473af7afbeecfb017de04b212034fc60ff
6e28b96a7b9a516ee8f851a2de081a422313b47b
/HVT_WithoutD2D.cc
26cdd7135979424804afb9ad76b0a2a72a2bffe1
[]
no_license
lvwf1/ECE6110D2D
e334afd2ea4922cdbc44a0f0a078c070c0ebae8c
825ba1ee26f73f3f17daa577c56c77c75ec91556
refs/heads/master
2021-05-08T19:20:09.499608
2018-01-30T16:55:27
2018-01-30T16:55:27
null
0
0
null
null
null
null
UTF-8
C++
false
false
6,814
cc
HVT_WithoutD2D.cc
#include <iostream> #include "ns3/core-module.h" #include "ns3/network-module.h" #include "ns3/internet-module.h" #include "ns3/point-to-point-module.h" #include "ns3/applications-module.h" #include "ns3/netanim-module.h" #include "ns3/flow-monitor-module.h" #include "ns3/mobility-module.h" #include "ns3/lte-module.h" ...
2755c9bedbe03d5e1b931f6d9706a90d506c919c
814392727ee54fcbf3fc1fb8ab74aaec73b2f5a2
/respo/Data_Structure/Binary_Tree/Binary_Tree/tttcpp.cpp
af28020e4320e5bd82bdc17590452b45bdf38800
[]
no_license
Mrhs121/NEEP
9298b86685c339e5b0167b74cbd428f9bccd9586
960c2aeac277ea809799fd85a04a12b2d6efb936
refs/heads/master
2021-06-10T03:15:31.236296
2021-04-02T13:29:58
2021-04-02T13:29:58
153,987,706
3
1
null
null
null
null
GB18030
C++
false
false
2,463
cpp
tttcpp.cpp
#include "stdafx.h" #include <stdlib.h> #include<iostream> using namespace std; enum Tag { link, thread }; //这里定义一个枚举类型,link(0)表示指向孩子,thread(1)表示指向前驱后继的线索 //定义节点结构 typedef struct BiThreadNode { char data; struct BiThreadNode *lchild, *rchild; Tag ltag, rtag; }BiThreadNode, *BiThreadTree; //定义一个全局变量,始终指向刚...
9b5f73556ff77e3cc1fc4c9e064423e669b63ccf
9997cb296b19a9ae3149484caa2290c26c1f030a
/boj/03032/03032.cpp14.cpp
40dbc83480f1be55bb469bd681acb633c0d14cbf
[]
no_license
pukuba/Algorithm
0eca36297a5a278e666cb2d851bd0a4c99e11357
ea71d0e21534a2a54626fc89da58e58ea8eb1791
refs/heads/master
2023-06-03T05:54:43.564074
2021-06-23T02:26:06
2021-06-23T02:26:06
317,562,256
0
0
null
null
null
null
UTF-8
C++
false
false
636
cpp
03032.cpp14.cpp
#include <bits/stdc++.h> using namespace std; int d[104][104],arr[104],n,x,sum,ans; int f(int s,int e,int r){ if(r == n-1) return 0; if(d[s][e] != -1) return d[s][e]; int ns = s==1 ? n : s-1,ne = e==n ? 1 : e+1; if(r&1) return d[s][e] = max(f(s,ne,r+1)+arr[ne],f(ns,e,r+1)+arr[ns]); return ...
29f9d824fce217ae20c6ad978a9d37120978e865
40172ef126338b72ee2eff03056c0fced996c957
/day7/day7.cpp
878a4fa6b71050aa23f302f3d5bf8a89701b1969
[ "MIT" ]
permissive
cristicretu/advent_of_code_2020
70413e0cfc2adc39cd475331bbb6955986d44cce
456969f98bd6df56800301a006fbd6971957914e
refs/heads/main
2023-02-03T18:47:17.615332
2020-12-23T19:21:56
2020-12-23T19:21:56
322,234,135
1
0
null
null
null
null
UTF-8
C++
false
false
394
cpp
day7.cpp
/** * author: etohirse * created: 20.12.2020 20:54:52 **/ #include <algorithm> #include <fstream> #include <map> #include <string> #include <vector> using rule = std::map<std::string, int>; std::ifstream fin("input.in"); std::ofstream fout("input.out"); int main() { std::map<std::string, rule> rules; st...
d95f7605b77570f6bc1d347bef442f087f336130
5c364c06003ec3d6b9b2a8b91eaab6d0293ff907
/牛客/牛牛找工作_二分/main.cpp
b2ee35f2841b0ab17216532c9bd615533be97232
[]
no_license
majiaoliya/acm
aa3d4b9679ac8f7ace28c2f4b5a21dc2d6421b71
c0aa06b08547e6d75ea5a4b7db3cfe5e7f9bed83
refs/heads/master
2020-09-17T01:51:16.950731
2020-04-29T15:02:05
2020-04-29T15:02:05
223,952,294
0
0
null
null
null
null
UTF-8
C++
false
false
1,386
cpp
main.cpp
#include <iostream> #include <algorithm> #include <vector> #include <string.h> #define MAXN 300005 #include <map> #define ll long long int #define max(x, y) ( x > y ? x : y ) using namespace std; ll n, m; struct Node { ll hard, val; } arr[MAXN]; map<ll, ll> mp; int cmp(Node& x, Node& y) { return x.hard < y.hard; } ...
491497acc1d1a7c23c2011d0b070acb4ae58243f
68572da614e34b418daab726a4075fd62eea2375
/practice/5/try_this/uncaught_exception.cpp
dc8416521afa1bdfc619d4bec2e0d16eddb48d3d
[]
no_license
samkots/ppp2e
25ff5e7d2562476f670b439d75bde3564a66e3b7
b84cfa056600415b8136d773427f11f104e32c5e
refs/heads/master
2022-01-24T04:16:55.444701
2019-08-06T16:36:56
2019-08-06T16:36:56
113,661,884
1
0
null
2017-12-31T16:15:44
2017-12-09T10:44:22
C++
UTF-8
C++
false
false
85
cpp
uncaught_exception.cpp
#include "std_lib_facilities.h" int main() { error("The uncaught exception!"); }
e63ce7bdf45a5fe2c43a1c44efd5540250f2ee02
245bf13493619d3c58bc7591fe7c2022adb91914
/PAT/PAT-Basic Level/CPP/1024.cpp
ba180e1302ef25ff9a494b2d7bd02d13a6b5176d
[]
no_license
huixiongyu/Algorithms
98ff3b5011101b7e34ae71b30c8f2bec0bd67165
2cd0620cead3a2db5e306c4083208c422f4822db
refs/heads/master
2021-06-02T13:59:11.747665
2021-01-25T23:25:56
2021-01-25T23:25:56
98,390,111
0
0
null
null
null
null
UTF-8
C++
false
false
677
cpp
1024.cpp
#include<iostream> #include<string> using namespace std; int main(){ string s,num; int ex,t=0; cin>>s; for(int i=0;i<s.length();i++) if(s[i] == 'E') t=i; num = s.substr(1,t-1); ex = stoi(s.substr(t+1)); // cout<<num<<" "<<s.substr(t+1); if(s[0] == '-') cout<< "-"; if(ex < 0){ cout<<"0."; for(int i=0;i<ab...
ffd7902e1aa0ccf17bacbd0fd2faaa5acdd123b6
75a93b5c33e732c294ba8b19a1690b1e7c199a0e
/net/Inc/fastmq/server.hpp
3df8553f41d5942131dec48b6a284307e5532b1f
[]
no_license
sherzodv/mobi
642a2bbf93dabe3aeea15623d6a5e10575fe3d1b
eaffad5dc378ec22a8ef447b1ea01dbc0a34743f
refs/heads/master
2021-03-24T14:02:42.599805
2014-03-03T07:20:19
2014-03-03T07:20:19
14,749,502
0
0
null
null
null
null
UTF-8
C++
false
false
4,140
hpp
server.hpp
#ifndef fastmq_server_base_hpp #define fastmq_server_base_hpp #include <stack> #include <vector> #include <functional> #include <fastmq/peer.hpp> #include <fastmq/node.hpp> #include <fastmq/pool.hpp> namespace fastmq { namespace ba = boost::asio; namespace bs = boost::system; template <class ProtoT, class LogT> cl...
d8638daf270b110a0b08046b97de3054a091a0a2
d3e1f9a07e09953ac689c74ad1f7f1ada982dd77
/SDK/GA_Cat_parameters.h
47a83ed0313b8c68769a4395c9b5f307c3167398
[]
no_license
xnf4o/HSH_SURVIVE_SDK
5857159731ceda7c06e158711003fbaf22021842
2f49c97a5f14b4eadf7dc3387b55c09bc968da66
refs/heads/main
2023-04-12T06:52:47.854249
2021-04-27T03:13:24
2021-04-27T03:13:24
361,965,544
0
0
null
null
null
null
UTF-8
C++
false
false
3,951
h
GA_Cat_parameters.h
#pragma once // Name: hsh, Version: 2 /*!!DEFINE!!*/ /*!!HELPER_DEF!!*/ /*!!HELPER_INC!!*/ #ifdef _MSC_VER #pragma pack(push, 0x01) #endif namespace CG { //--------------------------------------------------------------------------- // Parameters //---------------------------------------------------------------...
7cddbd5854b700dec9f41268b985ee3669b25964
2053f511bad670807dfc441b1c4b355206a6cdf1
/tp2/src/Jugador.cpp
790c5d76b36eb7f6a63efd617d2033f22170d717
[]
no_license
mgaido/TallerProgramacion2016-2
d451caf1602a06be61112e0952da065f60f263eb
f687a1dbbe74cdf273971c988ed59e378f2ad3d9
refs/heads/master
2021-03-27T13:50:45.567981
2016-12-14T21:27:45
2016-12-14T21:27:45
66,484,798
0
0
null
null
null
null
UTF-8
C++
false
false
2,575
cpp
Jugador.cpp
/* * Jugador.cpp * * Created on: 2 oct. 2016 * Author: rodrigo */ #include "Jugador.h" Jugador::Jugador(int id, std::string nombre, Config& _configuracion) : Objeto(id), configuracion(_configuracion) { this->nombre = nombre; velocCaminar = 0, velocSaltoX = 0, velocSaltoY = 0; tiempoCaminando=0; tiempo...
ca930d8f9b5d9e1ee2043ab73e47977815d52e09
dd58ad1707abfc82a0f723f0f11c2bbf438471ee
/Random/mutex.cpp
754c288bf3b9bcd575839cab6eb2b3eaf4f00fe5
[]
no_license
khandelwalankit/BasicAlgorithms
e844bf572349e92704671e6a907019ec11322c83
718840f56f48b8b4a59f59db62649bd68854a35d
refs/heads/master
2021-01-20T10:46:07.586264
2014-10-17T19:55:21
2014-10-17T19:55:21
null
0
0
null
null
null
null
UTF-8
C++
false
false
402
cpp
mutex.cpp
#include<iostream> #include<cstdlib> #include<thread> #include<mutex> using namespace std; std::mutex mtx; void print_block(int n, char c) { //mtx.lock(); for(int i =0 ;i <n;i++) { cout<<c; } cout<<"\n"; //mtx.unlock(); } int main() { std::thread th1 (print_block,50,'*'); std::...
56a4437522c33f7da86e10884d5fb4b814967a35
ba163a6b6ecf4a7ba0ecc9ec24ef6da6f6712668
/assembler/test_ctor_copy.cpp
79433de9e7907043db1c45860727849bdc8171a5
[]
no_license
Jeremy-Martin4794/CS2-projects
3eacf0874e597a5789537da67cf080f404e762d2
bd9850898b97c26d852efabbc1bb6b6db59af657
refs/heads/main
2023-08-31T23:54:47.122847
2021-09-26T19:46:52
2021-09-26T19:46:52
410,633,054
1
0
null
null
null
null
UTF-8
C++
false
false
4,977
cpp
test_ctor_copy.cpp
// Jeremy Martin // testing copy constructor #include "stack.hpp" #include <cassert> #include <iostream> #include "string.hpp" //=========================================================================== int main() { { //------------------------------------------------------ // SETUP FIXTURE // TEST stack...
942ba27c233145af4b1921ffd54e05aaa812cfa6
5ba2544f304e60e58fcb981a9e543cc526cb602a
/DisplayLetters/DisplayLetters/main.cpp
b25dfd422ad193cb80baa1973eaf0230e1add98e
[]
no_license
air2310/cpp_rep
24747ab9d55c17a00693ff7226c272ddf459edbe
c3464f08ae6431e64ee48b1c2a4c0539cc886189
refs/heads/master
2021-01-12T15:42:46.056782
2016-12-06T12:25:00
2016-12-06T12:25:00
71,864,975
0
0
null
null
null
null
UTF-8
C++
false
false
1,165
cpp
main.cpp
#pragma comment(lib, "sfml-graphics-d.lib") #pragma comment(lib, "sfml-network-d.lib") #pragma comment(lib, "sfml-system-d.lib") #pragma comment(lib, "sfml-window-d.lib") #include <SFML/Graphics.hpp> #include <SFML/Graphics.hpp> #include <iostream> #include "network.h" #include "settings.h" #include "Draw.h" int ma...
5e009f5bf702b46783716ffe51ec3015cad4c1ba
50d85ffcb55198884bbc9cbb4afa39e828de6001
/libs/vscore/source/libVRMLRenderer/VRMLRendererTraverser.cpp
47dee0d69bf1326e8c0c2e2e7b33b1d305042b1a
[]
no_license
Calit2-UCI/EMMA-FINAL
60e772cec27f8718fabb4d1a948b3552e99afa57
8e48a7d592ff1fe5d69de6c7dbc4b0a2989da08a
refs/heads/master
2021-01-24T10:47:29.719351
2016-11-09T12:12:57
2016-11-09T12:12:57
70,107,807
0
1
null
null
null
null
UTF-8
C++
false
false
36,237
cpp
VRMLRendererTraverser.cpp
// VRMLRendererTraverser.cpp: implementation of the VRMLRendererTraverser class. // ////////////////////////////////////////////////////////////////////// // Disable annyoing debug-compile error caused by STL. // This is safe. #pragma warning(disable : 4786) #if _MSC_VER >= 1400 #define _CRT_SECURE_NO_DEPRE...
58608a767bfa24385f20b3bf2d0192aca8b47f67
0a785520716487af3b8ae5a975fbb47ffe5fa3a7
/Versão Anterior/teapot/rectangle.cpp
e80c2d963d6ccaf21235fdb2319d3d017472da08
[ "MIT" ]
permissive
iagoesp/UFBA2017_IC
8ab985475d726c18bad8640629316f0bfd3ae699
65917a6a2e129e745d5553bbff8e69ad62b3ba1d
refs/heads/master
2018-10-20T10:52:26.257922
2018-09-27T15:08:26
2018-09-27T15:08:26
110,012,663
1
0
null
null
null
null
UTF-8
C++
false
false
2,506
cpp
rectangle.cpp
#include "Rectangle.h" #include <glm/glm.hpp> #include <glfw/glfw3.h> #include "mat.h" #include "Teapot.h" namespace byhj { void Rectangle::Init() { init_buffer(); init_vertexArray(); init_shader(); } void Rectangle::Render(GLfloat aspect) { //Bind the vao, which manage status we when to render...
db5dba277a9cc430c0394a9ca9f65748f0468c42
872ee143626405cc285aa99066f968aae1cd551f
/野田 悠介/ソース/SRC/Scene/GameScene/gameScene.h
4406f5633f7b6cb3bf9aecc318b1510ee850c7f0
[]
no_license
NodaYusuke/-
67bc9b21c4333ea3a7689028c69a437187f98d3c
bc75c124f534306f42c671a6bc6d77459624ff46
refs/heads/master
2022-10-15T15:49:26.521881
2020-06-12T03:18:31
2020-06-12T03:18:31
271,691,539
0
0
null
null
null
null
SHIFT_JIS
C++
false
false
3,157
h
gameScene.h
#pragma once #include"../SceneBace/sceneBase.h" #include"../../Chara/chara.h" #include"../../Stage/stage.h" #include"../../MeshLei/meshLei.h" #include"../../Camera/camera.h" #include"../../Sound/BGM/BGM_Game/BGM_game.h" //ゲームシーン//sceneBaseの派生クラス //AttackHitAng関数は攻撃が当たるかどうか調べる //SetCharaElement関数は構造体に変数をセットする //GetTarge...
108087affa36581eb69bd53c1dfa844a7910edf4
6e0a6ae015c23b2a30a912f9c0a83df1e29c2152
/Pr05.Ej04/main.cpp
491326be178809f6a0da39cd44422cbc06e8466e
[]
no_license
aritzugazaga/programacionIV-workspace
1e17d4c9d1cf2d1c52682de2de7cdd669ada2ed3
cb8189219ae4ac55f87b52658b1487268c27d87a
refs/heads/master
2022-09-28T10:55:24.064201
2020-06-07T11:31:38
2020-06-07T11:31:38
242,957,511
0
0
null
null
null
null
UTF-8
C++
false
false
692
cpp
main.cpp
/* * main.cpp * * Created on: 23 abr. 2020 * Author: Aritz */ #include "Point.h" #include <iostream> using namespace std; int main() { Point p1(2, 3); Point *p2 = new Point(1,2); p1.setX(3); //llamada a metodo no-const sobre objeto no-const cout << "El valor de X es: " << p1.getX() << endl; //llamada ...
cab10e0df18e6d2e43e0e6dbcc85328830ea8c1c
1f1691b2921cfbfd299ae817d29cd10e0e62455a
/src/helics/apps/appMain.cpp
0324295dc550d7ea9bc68743417cd55f6bd2573f
[ "BSD-3-Clause", "LGPL-2.0-or-later" ]
permissive
manoj1511/HELICS
d8b63a6cdaf201d763d22133d0d18100c67ec287
5b085bb4331f943d3fa98eb40056c3e10a1b882d
refs/heads/master
2020-08-05T03:34:01.500844
2019-09-27T20:52:55
2019-09-27T20:52:55
212,377,676
0
0
BSD-3-Clause
2019-10-02T15:34:43
2019-10-02T15:34:42
null
UTF-8
C++
false
false
4,223
cpp
appMain.cpp
/* Copyright (c) 2017-2019, Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable Energy, LLC. See the top-level NOTICE for additional details. All rights reserved. SPDX-License-Identifier: BSD-3-Clause */ #include "../common/loggerCore.hpp" #include "../core/BrokerFactory.h...
dedc8b11f1f7734bc1925882c2d61990506ce4f6
6186c188cdbacf49fca5dd3835a5ab2187d245b9
/glwidget.h
5c6982bdd8b048f4042d2472ba6fab82e4d2dd45
[]
no_license
walkerka/MyImage
e85e2d531786b8d59cea0067d7696d0a76dd24aa
dddcd76bd67d066bc6155360acd45a01a319cc8a
refs/heads/master
2021-07-23T04:30:24.319924
2020-07-19T03:14:42
2020-07-19T03:14:42
199,115,020
0
0
null
null
null
null
UTF-8
C++
false
false
1,079
h
glwidget.h
#ifndef GLWIDGET_H #define GLWIDGET_H #include <QOpenGLWidget> #include <QOpenGLContext> #include <QOffscreenSurface> #include <QOpenGLFunctions> #include <QOpenGLFramebufferObject> #include <QOpenGLShaderProgram> #include <QThread> class RenderThread: public QThread, QOpenGLFunctions { Q_OBJECT public: Rend...
76eda4c8fde2d13fa8d9d6a9e1b93e794011dc23
4606a221b70dc7e53729dccf6026916f6ff4c58f
/native/services/surfaceflinger/ExLayer.cpp
07e087ca78e7a382765657a745184229afa4f904
[]
no_license
maxwen/vendor_qcom_opensource_display-frameworks
25fad7049edb718f2d91decf3648427134b22716
3cbe55e5591b4b0c304bf10113e2eb63f900563a
refs/heads/mm6.0-staging
2021-01-22T21:00:32.049242
2015-10-11T02:50:13
2015-10-12T20:06:20
44,710,143
1
3
null
2015-10-21T23:25:38
2015-10-21T23:25:37
null
UTF-8
C++
false
false
6,220
cpp
ExLayer.cpp
/* Copyright (c) 2015, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Redistributions of source code must retain the above copyright * notice, this list ...
4782e9ef34d55eaeaaab55cf63ba369653ff1503
f49af15675a8528de1f7d929e16ded0463cb88e6
/C++/C++ Advanced/TestProjects/10ExcersieRuleOfThreeInheritancePoly/02IndexedSet/IndexedSet.h
4e66534c05def529f039320402f1bb04e665dc66
[]
no_license
genadi1980/SoftUni
0a5e207e0038fb7855fed7cddc088adbf4cec301
6562f7e6194c53d1e24b14830f637fea31375286
refs/heads/master
2021-01-11T18:57:36.163116
2019-05-18T13:37:19
2019-05-18T13:37:19
79,638,550
2
0
null
null
null
null
UTF-8
C++
false
false
467
h
IndexedSet.h
#ifndef INDEXED_MAP_H #include <cstdlib> #include <set> typedef int Value; class IndexedSet { std::set<Value> valuesSet; Value * valuesArray; public: IndexedSet(); IndexedSet(const IndexedSet& other); void add(const Value& v); size_t size() const; const Value& operator[](size_t index); IndexedSet& operat...
8b0595be8eaa6baad6c2657b55798c2cb56f6ec5
3d47b90d4222d69df873d3dace722c7e39dc6e17
/BAPS/include/BAPPartitioner.h
a28ee071a355cf8f41e1e876e4e8fd714bb107c3
[]
no_license
harishl/bap
063af9b5c330e2e59198310d2f985de9aca10e12
d09be55487ca1c58a429ecda1a1dc83eaf5aed0c
refs/heads/master
2016-09-05T21:56:34.764603
2012-11-18T15:06:17
2012-11-18T15:06:17
6,371,064
6
2
null
null
null
null
UTF-8
C++
false
false
1,307
h
BAPPartitioner.h
/****************************************************************** * * Filename : BAPPartitioner.h * Author : David Ong Tat-Wee * * Version : 1.01b * Date : 29 May 98 * * Description : Interface file for the abstract BAP Partitioning class * Be sure to inherit a non-a...
f36f4d5b7448217acaae937bc41d63f9c90bead3
53a910dfc6d58d0e1c1c9601fb3fa1452dd49d86
/C++/examples/DataStructures/Classes/AbstractBase/ExtensionOfCoupledClasses/Containee.h
a195f9306c36ddf715235e6360d75f5f8de2e871
[]
no_license
mrodozov/Homeworks
342510c1154d21f730d5080d379b555d08da9a6e
77aaf9219819f2e9dd1accc4b8d26cd428ba0031
refs/heads/master
2021-01-22T04:57:05.907980
2016-08-19T04:57:42
2016-08-19T04:57:42
32,219,484
0
0
null
null
null
null
UTF-8
C++
false
false
1,167
h
Containee.h
class AbstractBaseDetail { public: virtual void printType()=0; AbstractBaseDetail(); virtual ~AbstractBaseDetail(); }; class AbstractBaseContainer { protected: AbstractBaseDetail * containeeInstance; public: virtual void setDetail(AbstractBaseDetail * cc)=0; virtual AbstractBaseDetail * getD...
b1aaa06208c8bca33cbf536c020d31b728ef3240
b4c0d854ac6b4b8820d49bafc2b81f276de8d25b
/v11/analyze.cpp
3937a8b7c041999b58acc9988674a2a7233d6a90
[]
no_license
ikoljanin/Analza_HEP
1dd82b0491477448179044e0d94aca4ac22ce7ee
d2c9f7ac48957530215ceb034985fa114700e23d
refs/heads/master
2023-02-17T12:54:11.402738
2021-01-20T12:12:50
2021-01-20T12:12:50
302,001,414
0
0
null
null
null
null
UTF-8
C++
false
false
386
cpp
analyze.cpp
#include "Analyzer.h" using namespace std; int main() { Analyzer *A; int x; //gornji i donji limit za primjer s predavanja //A->upper_limit_cp(1,4,0.6827); //A->lower_limit_cp(1,4,0.6827); //A->CP_for10(10,0.6827);//10 događaja conf- interval A->dice_throw(0.6827); //cout<<"Input r for display"<<endl;...
341b5786d5be7d9c5535434ac1865148d98b31d8
547290c8cf579680e574769a95806b500b9ef8ea
/Unit.cpp
6d266d47a659cd62bed8b87ca01e97697cec3d32
[]
no_license
matitr/Roguelike-Game
84a59532d2eb60b39758c456d03dffffab5f05b1
2eddf52781d9a771eb529de093ecf1e7d84b0a32
refs/heads/master
2021-10-09T17:29:32.239422
2019-01-01T20:49:40
2019-01-01T20:49:40
123,633,468
0
0
null
null
null
null
UTF-8
C++
false
false
4,240
cpp
Unit.cpp
#include "Unit.h" #include "Game.h" #include "UnitAction.h" #include "Attacks.h" #include "Player.h" #include "PassivesManager.h" #include "BuffsManager.h" #include "Passive.h" #include "HealthBar.h" #include "CombatTextManager.h" #include <math.h> bool Unit::update(std::list <AttackType*>& monsterAttacks, Map* map) {...
ba6bd96a705f1c6446eaa896eb33d74d60d43642
5c2e9f04a1fbc4177db5ce1a448c7236284ab6d6
/Server/Server.cpp
520131cc0989d25edb0614dd06a3fc896116cb28
[]
no_license
kien6034/Networking---Winsock-programming
30146efe4eaba4c6395c6ff32a54faad0955bc72
278d9d9cb95113c22b21b621c74d960e97423d07
refs/heads/master
2022-11-06T10:47:11.801798
2020-06-18T12:08:47
2020-06-18T12:08:47
273,227,508
1
0
null
null
null
null
UTF-8
C++
false
false
1,152
cpp
Server.cpp
// Server.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <stdio.h> #include <winsock2.h> #pragma comment(lib, "ws2_32") #pragma warning(disable:4996) DWORD WINAPI ClientThread(LPVOID); int main() { WSADATA wsa; WSAStartup(MAKEWORD(2, 2), &wsa); SOCKADDR_IN addr...
338d4cd7f351b8d6fac3acda8f2f04d8a56a720b
fa50fd913aca4da3a10b0198480012a8ce80515f
/AlgorithmStudy/Array.h
584b22ab8af5c08f5a91eeb956749e198e7d37c9
[]
no_license
wuningjian/AlgorithmStudy
0ad3a28795a788181cdd0c5304caad48ab0945be
b991fa2bf8221e3a00b1e1d4a217297886fc94f5
refs/heads/master
2020-05-07T10:05:05.527985
2019-05-19T15:11:19
2019-05-19T15:11:19
180,404,366
0
0
null
null
null
null
GB18030
C++
false
false
823
h
Array.h
#ifndef Array_hpp #define Array_hpp #pragma once template <class T>//类模板详细介绍 https://www.cnblogs.com/msymm/p/9750787.html class Array { private: T *base;//数组首地址 int length;//数组元素个数 int size;//数组总大小 public: Array(); ~Array(); //初始化内存,分配内存 bool init(); //检查内存是否够用,不够就增加 bool ensureCapcity(); //添加元素到数组最后 boo...
591ad31f536aa74cbe30bd12c22a09ef65ffa08b
e9c2ebc2dbe98208e8a0a28a5dad5ffca4dff1fd
/sherpas/src/query.cpp
becdb4b40fcf9b3a36bb6e7374afaea094e9bdcc
[ "MIT" ]
permissive
wangdi2014/sherpas
cc0c8311e631332c66390159f5830bbc53085681
f9b63a0ab3d8635528d9c8ace09a057fceb1cc28
refs/heads/master
2022-11-24T10:04:32.961022
2020-06-24T07:39:13
2020-06-24T07:39:13
null
0
0
null
null
null
null
UTF-8
C++
false
false
10,772
cpp
query.cpp
/* * query.cpp * * Created on: 23 oct. 2018 * Author: scholz */ #include<iostream> #include<fstream> #include<vector> #include <cstring> #include<cmath> #include "query.h" using namespace std; //the main algorithm std::vector<rappas::io::fasta> gapRm(std::vector<rappas::io::fasta> *sequences) { //gap-rem...
87d788feb8f5a4897f565661e7a5fe931ac6901c
adb23ab9c2db760afa93c09a1737687ae2431466
/DgEngine/AmbientLight.h
fb93245be89bafe52f6eb427ea1e298fe018920e
[]
no_license
int-Frank/SoftwareRasterizer
cb5d3234dcd59f55e6384a7152e0bb81cabc0401
f62d5bf7e16b0cefe9dd46b255341ba0cea0893d
refs/heads/master
2021-09-08T04:16:39.613309
2014-09-12T23:13:23
2014-09-12T23:13:23
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,477
h
AmbientLight.h
/*! * @file AmbientLight.h * * @author Frank Hart * @date 7/01/2014 * * Class header: AmbientLight */ #ifndef AMBIENTLIGHT_H #define AMBIENTLIGHT_H #include "Light.h" struct Vertex; struct Polygon; class Mesh; class VQS; namespace pugi{ class xml_node; } /*! * @ingroup lights * * @class AmbientLight * * @brief...
c277dc889dc10d38e5c41adb9cab459c32e712d5
e3ea7046b84288cad31d72b9c31172e7ab8c9f11
/lib/libriscv/cpu_inline.hpp
d54ea7657aefd2f1255e128aac93081fd8f587df
[]
no_license
5l1v3r1/libriscv
a1561b2f2069f340ec8a098747a6b6adf5d3e795
8a5ea17359d7cf4a80ce19ca0d7bfdb677fae13c
refs/heads/master
2021-05-25T08:42:02.907603
2020-04-05T16:00:40
2020-04-05T16:14:51
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,404
hpp
cpu_inline.hpp
template <int W> inline CPU<W>::CPU(Machine<W>& machine) : m_machine { machine } { } template <int W> inline void CPU<W>::change_page(address_t this_page) { #ifdef RISCV_PAGE_CACHE for (const auto& cache : m_page_cache) { if (cache.address == this_page) { m_current_page = cache; return; } } #endif m_cur...
758918d99cebbf74e20540b2688e41d34d63e1bc
5447a87c9fa3cd790453a8bf4a40761b4fbb099b
/leetcode2/Other/MyStack.h
d0a813a64387b79bbeb2aae60d04c4185532a4fa
[]
no_license
necromaner/C-
ffb215520d3035a1e785147303c753a10a47619a
f7978b358f8246072c7f9627cee80e5df1994b25
refs/heads/master
2021-05-25T09:13:32.011117
2020-11-10T09:00:47
2020-11-10T09:00:47
126,946,399
0
0
null
null
null
null
UTF-8
C++
false
false
1,116
h
MyStack.h
// // Created by necromaner on 2020/9/14. // #ifndef LEETCODE2_MYSTACK_H #define LEETCODE2_MYSTACK_H #include <queue> using namespace std; /** * Your MyStack object will be instantiated and called as such: * MyStack* obj = new MyStack(); * obj->push(x); * int param_2 = obj->pop(); * int param_3 = obj->top(); * ...
4431b39cb30314b190a38c93dfba4db04addddb8
e42ee3ca63e7ca509a26b88ee9868e09d2e5a8bb
/GeneratedFiles/ui_qg_cadtoolbarmain.h
4912746cacc6b2951b7e54aff324174af819a22b
[]
no_license
15831944/Democad
fdee2b2a63de7a2791d6e2ac6a3f55a71cf7c985
88fd0fcafba9f28ab022790538d433c333ffa165
refs/heads/master
2021-06-09T07:19:49.861046
2016-11-25T01:42:07
2016-11-25T01:42:07
null
0
0
null
null
null
null
UTF-8
C++
false
false
18,590
h
ui_qg_cadtoolbarmain.h
/******************************************************************************** ** Form generated from reading UI file 'qg_cadtoolbarmain.ui' ** ** Created: Mon Sep 26 14:56:11 2016 ** by: Qt User Interface Compiler version 4.8.4 ** ** WARNING! All changes made in this file will be lost when recompiling UI file!...
65d9a0ad9078755ee0e285e38f851964f82f6648
314f05a6ca48b39afb69d8a1208a2528fda1d349
/Algorithm.h
874142c6cb0a528f0f2f4cb8a940e85fa8a084ff
[]
no_license
hatcherl/INFO450Encrypt
6e47cd12a4c13000e602b73e745101f9c180d5ac
18071abe1a7f080535bf05db9835eacb6d94e594
refs/heads/master
2020-09-28T04:20:37.084316
2019-12-08T15:17:36
2019-12-08T15:17:36
226,686,673
0
0
null
null
null
null
UTF-8
C++
false
false
218
h
Algorithm.h
#pragma once #include <iostream> #include <string> #include <fstream> using namespace std; class Algorithm { private: public: Algorithm(); int encryptFile(string filename); int decryptFile(string filename); };
66bbec31702f6b1e818b29d88a4c140249a01597
9386acb33a6c522ebbb79c4447b61b191860a87b
/lib/sk/util/test/collection/AliasingProcessorTest.cc
1e1f08e3a6195e5ae880797c21ac7e64b872ea86
[ "MIT" ]
permissive
stemkit-collection/stemkit-cpp
878fa2c74272127a8cf3ff9659ec9e39034bb4d8
dfa77d831f49916ba6d134f407a4dcd0983328f6
refs/heads/master
2020-04-19T08:58:17.402275
2019-02-04T20:16:47
2019-02-04T20:16:47
168,095,623
4
0
MIT
2019-01-30T04:49:32
2019-01-29T05:35:00
HTML
UTF-8
C++
false
false
1,266
cc
AliasingProcessorTest.cc
/* vim: set sw=2: * Copyright (c) 2009, Gennady Bystritsky <bystr@mac.com> * * Distributed under the MIT Licence. * This is free software. See 'LICENSE' for details. * You must read and accept the license prior to use. * * Author: Gennady Bystritsky (gennady.bystritsky@quest.com) */ #include "AliasingProc...
bceb96f3fac02c3b51733a3de488e6e5a5fc7b12
8ee0c674afe7546aebb70582956b6a61d99bcfbb
/YYX_EXAM1_1/YYX_EXAM1_1/YYX_EXAM1_1.h
8dcc0abaf896ac6a0ced2935ada12fe37bb12c62
[]
no_license
WashingtonYang/FuckMFC
dac2ccd1a58f0da2218559278cd09766d60efa27
e5ca806cc4e39deb67608c12e01a3f951b1c35b5
refs/heads/master
2020-09-04T08:11:44.355341
2020-08-20T03:55:51
2020-08-20T03:55:51
219,690,952
2
0
null
null
null
null
GB18030
C++
false
false
546
h
YYX_EXAM1_1.h
// YYX_EXAM1_1.h : YYX_EXAM1_1 应用程序的主头文件 // #pragma once #ifndef __AFXWIN_H__ #error "在包含此文件之前包含“stdafx.h”以生成 PCH 文件" #endif #include "resource.h" // 主符号 // CYYX_EXAM1_1App: // 有关此类的实现,请参阅 YYX_EXAM1_1.cpp // class CYYX_EXAM1_1App : public CWinApp { public: CYYX_EXAM1_1App(); // 重写 public: virtual BOOL ...
cc0ed517cd9c317865c4a0f4bdc35bd1dba70e78
048963913f6667066eae6bea4a1d80a1670b3d5c
/Algorithms/isValidPalindrome.cpp
2686d7fe4f265b7e83162cf00452472c0e7f477c
[]
no_license
Yu4n/LeetCode_in_cpp
7e1b3fb83ab2128844116bd2e7e15778999a95bf
bf1dcbdf9196dc29573fbe9e06fd778ee157a47c
refs/heads/master
2023-05-02T18:44:47.917069
2021-05-23T13:02:52
2021-05-23T13:02:52
308,310,356
0
0
null
null
null
null
UTF-8
C++
false
false
403
cpp
isValidPalindrome.cpp
// // Created by Yu4n on 2021-04-08. // bool isPalindrome(string s) { int low = 0, high = s.size() - 1; while (low < high){ while (!isalnum(s[low]) && low < high){ low++; } while (!isalnum(s[high]) && low < high){ high--; } if (tolower(s[low++]) !...
3d938a84fa9e69ef6d0ce5955ba7c7d595b5e453
ffb568806e34199501c4ca6b61ac86ee9cc8de2e
/gflib2/gfx/source/WinDX11/gfl2_WinDX11GeometryShader.cpp
ea1b40a38f508d2d78065ecd930b8ba9e9f89643
[]
no_license
Fumikage8/gen7-source
433fb475695b2d5ffada25a45999f98419b75b6b
f2f572b8355d043beb468004f5e293b490747953
refs/heads/main
2023-01-06T00:00:14.171807
2020-10-20T18:49:53
2020-10-20T18:49:53
305,500,113
3
1
null
null
null
null
UTF-8
C++
false
false
771
cpp
gfl2_WinDX11GeometryShader.cpp
#include <gfx/include/WinDX11/gfl2_WinDx11Types.h> #include <gfx/include/WinDX11/gfl2_WinDX11GeometryShader.h> #include <gfx/include/gfl2_GFGL.h> namespace gfl2 { namespace gfx { namespace windx11 { WinDX11GeometryShader::WinDX11GeometryShader( const void* code, u32 size ) : Shader() { HRESULT hr; ...
95bf160c549970cd87ff7f34e63f46fb217fde43
31b6ec7cf50a7d532179bbf30ace0b2d3d8c7dc0
/Segment_Tree/307.Range-Sum-Query-Mutable/307.Range-Sum-Query-Mutable_BIT.cpp
e738ea721c28b7101e8e46491a9c5ef0d3638565
[]
no_license
Bourns-A/LeetCode
5223179bdec3b3d8d956b8ff45e75c1af732b888
ff9aeccbcbcabc637438821446c7c73270bd569b
refs/heads/master
2022-12-04T12:53:21.358288
2020-08-19T06:10:39
2020-08-19T06:10:39
289,118,643
3
0
null
2020-08-20T21:57:08
2020-08-20T21:57:07
null
UTF-8
C++
false
false
844
cpp
307.Range-Sum-Query-Mutable_BIT.cpp
class NumArray { public: vector<int>bitArr; vector<int>nums; NumArray(vector<int>& nums) { this->nums = nums; bitArr.resize(nums.size()+1); for (int i=0; i<nums.size(); i++) my_update(i, nums[i]); cout<<"init done"<<endl; } void update(int i, int val){ ...
2028db92fe47bdb33d50f02dffbbe8246258b50f
09eee6417b45466d1a780acaf52ac226c7383817
/Computer-Graphics--OpenGL-GLUT-master/Balloon_man_half_complete/Ballon_man.cpp
a3e49715a32ea0928ae0955529d9f7bc58dc3f8e
[ "MIT" ]
permissive
Ihsan28/OpenGL
1adfe273e4476c3b896cbd84f7a27cd687dcbeb7
6ccb1816256fb94e15b65afb65db403259d19847
refs/heads/master
2023-04-28T02:57:10.554936
2021-05-16T18:12:17
2021-05-16T18:12:17
347,770,961
0
0
null
null
null
null
UTF-8
C++
false
false
14,814
cpp
Ballon_man.cpp
/* Graphics Final Project(Boy With a Ballon) Islam, Md. Najrul--13-24747-2 Rahman, Md. Hasibur--13-23141-1 Ahmed, Abu Syeed--12-21201-1 Hossain Shakawat--13--23372-1 */ #include <stdio.h> #include <stdlib.h> #include <GL/glut.h> #include <time.h> float x=200, y=-60; float x1 = 650, y1=20; //x2 = 750, y2 = 50, x3 = ...
1164c9f7464ab5fa94f2913ddbae33ccbf8044f4
b3af5522d410b319b6e75219ca3cd7f58dc433a3
/DX11Game/EnemyTypes.h
2efd9552984e9688128e1bc509e565e9132690c5
[]
no_license
CatFailure/DX11Game
5bc37a31d3fc234a0d02bd5e435b413a4dd48c1e
a2606c1d62843fe41c96eeaa857b54ef9b110b4f
refs/heads/master
2022-06-20T07:40:18.185908
2020-05-06T12:46:55
2020-05-06T12:46:55
256,351,711
1
0
null
null
null
null
UTF-8
C++
false
false
505
h
EnemyTypes.h
#pragma once #include "Enemy.h" // Inherited enemy class for the red ship enemy type class EnemyRedShip : public Enemy { public: EnemyRedShip(); void Init() override; void Update(float _deltaTime) override; void Render(float _deltaTime, DirectX::SpriteBatch& _sprBatch) override; private: }; class EnemyGreenShip ...
a48e217f66a3962121454b0f62226dd41a7ea6be
e595f0e5ac15d5ef9fc27135a0f71d068d742c88
/CFDtype/C++/CFDtype.cpp
70ba03d7ee8231520163586c1b8bd90862b5c1f4
[]
no_license
mwang1991/PublicCFDriver
e0ebf267912a8f660d9340511fe3a60402f834cd
b9a9d090055808f23c2b72913a4a59ef6e8483c7
refs/heads/master
2022-05-31T05:20:16.650443
2022-03-23T21:37:15
2022-03-23T21:37:15
208,267,621
0
1
null
null
null
null
UTF-8
C++
false
false
2,450
cpp
CFDtype.cpp
#include "CFDtype.h" void CFDtype::init() { data = new char[datalen]; } char* CFDtype::getData() { return data; } void CFDtype::Recv() { count = 0; char *buffer = new char[datalen]; RecvData(buffer); FromCFData(buffer); delete buffer; } void CFDtype::Send() { count = 0; ToCFData(); ...
fc43a1528cf696628c65ffdf32a6cee118b9b0f3
5d635f12542665e56f55662b832c2cabe5a4cca1
/2017/c++/19/one.cpp
1007e7baa2901de59d3e23c8ff4f4d82579cc4e7
[]
no_license
ld86/adventofcode
ff24c47532dabaa333f1820c3cc76aadf244c919
f156dded396ea0cf14caabfc2e298f39419d34ef
refs/heads/master
2021-06-13T01:58:34.566300
2018-12-03T20:13:20
2018-12-03T20:13:20
47,494,445
0
0
null
null
null
null
UTF-8
C++
false
false
4,416
cpp
one.cpp
#include <fstream> #include <iostream> #include <vector> #include <string> #include <set> #include <unordered_map> #include <stack> #include <sstream> #include <iomanip> enum class TDirection { DOWN, UP, RIGHT, LEFT, NONE }; class TMap { public: TMap(const std::vector<std::string>& lines) ...
779ff5f526cbd07564c07b802d34d59cf60a4300
090abfcb3f83a84a20b956f38179d45a070d2818
/cnnplus/include/cufulllayer.hh
ebbc47f4015c4a80b8cf8c27f9d7bd151e756806
[]
no_license
deniskovalchuck/cnnplus
628c4ead823c73b4cdf873ab3d4ac5d6ff56fb0e
e5b78442a24266703383d6017f675da9c411ac86
refs/heads/master
2022-04-02T15:18:06.904598
2020-01-02T18:40:27
2020-01-02T18:40:27
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,188
hh
cufulllayer.hh
/**************************************************************************//** * * \file cufulllayer.hh * \author Daniel Strigl, Klaus Kofler * \date Jun 05 2009 * * $Id: cufulllayer.hh 1904 2009-07-30 19:29:56Z dast $ * * \brief Header for cnnplus::CuFullLayer. * *****************************...
63db84957d2143f532bf79ac714ee08eca80f636
6a0633b246f58522f376cf0d9608fccdafc47da4
/theEarliestMomentWhenEveryoneBecomeFriends1101.cpp
609868a5fcc02066f4271e3108170ec924b62471
[]
no_license
studentBC/justExercise
9ec10dbea9b2fe62d5d673fc39a91d08c9723bf7
c5a022a6b46f56598234fb410b5d317f08dcda9c
refs/heads/master
2023-06-26T12:28:18.144489
2023-06-11T15:27:36
2023-06-11T15:27:36
130,351,745
0
0
null
null
null
null
UTF-8
C++
false
false
11,483
cpp
theEarliestMomentWhenEveryoneBecomeFriends1101.cpp
/* There are n people in a social group labeled from 0 to n - 1. You are given an array logs where logs[i] = [timestampi, xi, yi] indicates that xi and yi will be friends at the time timestampi. Friendship is symmetric. That means if a is friends with b, then b is friends with a. Also, person a is acquainted with a pe...
4a779fa5a2a266041864f9741d9d711a24fabcdd
a1efd9d28a011c0d5161244c16b3cb11badc5a98
/software/target/apps/equalize/equalize.h
1b102370f818b5cd0900be2acd0990bb40a6ab9d
[ "MIT" ]
permissive
maxpark/ztachip
e3bf7ae1e353c3602a782f2f02cca2280eb736d2
21cc9f058e8b0eba59d0f2930d33cfde2bb4962d
refs/heads/master
2023-04-05T05:35:14.864884
2021-04-18T21:23:07
2021-04-18T21:23:07
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,252
h
equalize.h
#ifndef _TARGET_APPS_EQUALIZE_EQUALIZE_H_ #define _TARGET_APPS_EQUALIZE_EQUALIZE_H_ #include "../../base/tensor.h" #include "../../base/graph.h" // Graph node to do image equalization (improve image contrast) // Calculate pixel value histogram and then apply image // equalization. #define HISTOGRAM(h,j) ((h)[(j)]*1...
28b2717610c9b41b1023b7da0b40b97552c9bc51
4e3e6b3a0ef70dfddf6b10d93c3e10e1cb4df2b3
/EmbeddedResource.h
44f74ebeae144d605f58358df094eac80c55bfb7
[ "BSD-3-Clause" ]
permissive
ankurvdev/embedresource
b1a23fe128592f22128608d3518a7c6a48259dec
872145c39f6b7c20a5aeeaedeb897a79393931c3
refs/heads/main
2023-08-18T02:19:39.240151
2023-07-22T09:06:40
2023-07-22T09:06:40
257,459,094
0
1
BSD-3-Clause
2023-08-02T17:07:17
2020-04-21T02:28:34
Python
UTF-8
C++
false
false
5,354
h
EmbeddedResource.h
#pragma once #pragma warning(push, 3) #pragma clang diagnostic push #pragma GCC diagnostic push #pragma clang diagnostic ignored "-Weverything" #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" #pragma warning(disable : 5262) /*xlocale(2010,13): implicit fall-through occurs here*/ #include <cassert> #include...
29c25a9abd8de6a9753ec9797518f3ea3f374915
a300c35fc8e99b67d1d2b02e23b77e49771a63bc
/Solved/URI/1803 - Matring.cpp
130d5d11a7fa224bd3eeeb2f152663655a29ba76
[]
no_license
FabiOquendo/Competitive-Programming
c035b865eb79b89b587ad919e45cf00e0b35de83
adbcde84bbd10fee10143101b56bb3dbb0b79b6b
refs/heads/master
2021-01-18T22:55:56.307662
2017-06-01T16:21:17
2017-06-01T16:21:17
49,735,500
0
0
null
null
null
null
UTF-8
C++
false
false
1,180
cpp
1803 - Matring.cpp
//============================================================ // Name : 1803 - Matring.cpp // Author : Team UQuick // Author : Fabio Stiven Oquendo Soler & Gaitan // Description : Programming Problems URI // Number : 1803 //============================================================ #include <bit...
fc0affa1e7f954acefc973288bd7e402b7468d13
b99bff76c2f79de323461c7a66dcc78f5fba7691
/src/net/link_redis.h
dba77980061f5519d5a19a1a9ec40d8cbad4142f
[ "BSD-3-Clause" ]
permissive
qwang2505/ssdb-source-comments
1be3687d561c07861f2cf0f9e2f6797c6b779149
0ee33b7305656581190e2971f9185f612c258ea0
refs/heads/master
2021-05-15T02:00:00.707177
2017-03-14T03:37:28
2017-03-14T03:37:28
34,109,193
0
0
null
null
null
null
UTF-8
C++
false
false
1,938
h
link_redis.h
/* Copyright (c) 2012-2014 The SSDB Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #ifndef NET_REDIS_LINK_H_ #define NET_REDIS_LINK_H_ #include <vector> #include <string> #include "../util/bytes.h" // 请求描述? struct RedisRequestDesc { ...
11e38aabc108aae968f3f93b636da46be911db4e
82a349d4a39ea90cfbd0ed051b1661751b1f7040
/CoolBox_CubeIDE_V1.1/TouchGFX/generated/fonts/src/Kerning_verdana_34_4bpp.cpp
d79ef4c15fae1dc9117b98fa0e99fe74b2e8e141
[]
no_license
Coolab-Community/CoolBox
c67f9b8621e585515b1069afe1671ba81421eb91
2836dca9c5592a20319ca8377ddbaf3926a3551b
refs/heads/master
2023-02-09T22:07:16.816988
2020-12-22T10:07:57
2020-12-22T10:07:57
266,549,565
8
2
null
null
null
null
UTF-8
C++
false
false
854
cpp
Kerning_verdana_34_4bpp.cpp
#include <touchgfx/Font.hpp> FONT_KERNING_LOCATION_FLASH_PRAGMA KEEP extern const touchgfx::KerningNode kerning_verdana_34_4bpp[] FONT_KERNING_LOCATION_FLASH_ATTRIBUTE = { { 0x0054, 1 }, // (First char = [0x0054, T], Second char = [0x003F, ?], Kerning dist = 1) { 0x0044, -1 }, // (First char = [0x0044, D], ...
67c39bf2f1a3f459a8e001c493d0fc7dc765473a
fa6ae1d8602633cc68c62d7b094e2300f052ce5c
/ieeextreme/x10_paintersdilemma.cpp
5601f53ac355c3603fb75399fda0c30d41824a13
[ "MIT" ]
permissive
ieeeunswsb/cpworkshop
ab680cd9ad9a6522e14ea6a90dcd9d1c122e5f7b
8da33deb295f4ca04ec025adc510d67a65d3d56c
refs/heads/master
2020-06-08T06:43:57.516420
2019-10-14T10:24:48
2019-10-14T10:24:48
193,179,764
1
0
null
null
null
null
UTF-8
C++
false
false
1,561
cpp
x10_paintersdilemma.cpp
//============================================================================ // Name : x10_paintersdilemma.cpp // Author : Luke Sy // Version : // Description : https://www.hackerrank.com/contests/ieeextreme-challenges/challenges/painters-dilemma // Dynamic programming problem //=========...
80e558555dd7686bebc86114f467218c3e032b62
c5843992e233b92e90b53bd8a90a9e68bfc1f6d6
/code/synthesis/TransformMachines2/AWProjectWBFTNew.h
191d4acd9101440e32a48bec92ff403ef418503d
[]
no_license
pkgw/casa
17662807d3f9b5c6b57bf3e36de3b804e202c8d3
0f676fa7b080a9815a0b57567fd4e16cfb69782d
refs/heads/master
2021-09-25T18:06:54.510905
2017-08-16T21:53:54
2017-08-16T21:53:54
100,752,745
2
1
null
2020-02-24T18:50:59
2017-08-18T21:51:10
C++
UTF-8
C++
false
false
3,173
h
AWProjectWBFTNew.h
//# AWProjectWBFTNew.h: Definition for AWProjectWBFTNew //# Copyright (C) 1996,1997,1998,1999,2000,2002 //# Associated Universities, Inc. Washington DC, USA. //# //# This library is free software; you can redistribute it and/or modify it //# under the terms of the GNU Library General Public License as published by //# ...
14132c9b632c5236cf96e601dd5d441e2577c97d
a88a79dbf9107acf181141e32a1409dafdcaffbc
/math/类欧几里得.cpp
cf8946ea5b76985edf37535d8e819ecc1e5b625a
[]
no_license
wcy1122/ACM-ICPC-template
b5e66b2990b8aae3671af0f147e9094cb79ee203
478557e5db4fffb1cf79e0f2a565d5c33989c8ec
refs/heads/master
2020-03-23T18:27:48.468697
2020-01-23T14:01:57
2020-01-23T14:01:57
141,910,347
1
0
null
null
null
null
GB18030
C++
false
false
405
cpp
类欧几里得.cpp
#include<bits/stdc++.h> #define ll long long using namespace std; ll a,b,c; ll f(ll a,ll b,ll c,ll n) { if(!c)return 0; ll m=(a*n+b)/c; if(a<c&&b<c)return n*m-f(c,c-b-1,a,m-1); return (a/c)*n*(n+1)/2+(b/c)*(n+1)+f(a%c,b%c,c,n); } //(ax+b)/c在0到n上的正整数点个数 //记得加上 c/a+1 int main() { scanf("%lld%lld%lld",&a,&b,&c)...
d4b1cb1d84a205340677a76b119451230da69c3d
8027aef1a47dfee4f7b7fb1c31d715f38e95bedb
/RecipeGenerator/Vegetable.cpp
f1daf5cc133d333ba63ccf819a105bac532d334c
[]
no_license
adamsh25/FirstMFCProject
98e9a7807a82eb2757c1507b12cce5dff21f61d4
8a830d790df38ac1383834820fb19b4839226ea1
refs/heads/master
2021-05-14T12:23:58.620255
2018-01-20T16:57:47
2018-01-20T16:57:47
116,408,078
0
0
null
null
null
null
UTF-8
C++
false
false
1,061
cpp
Vegetable.cpp
#include "stdafx.h" #include "Vegetable.h" IMPLEMENT_SERIAL(Vegetable, Ingredient, 1) Vegetable::Vegetable() { } Vegetable::Vegetable(CString _name, CString _color) { name = _name; color = _color; } Vegetable::Vegetable(Vegetable const & other) : Ingredient(other) { color = other.color; } CString Vegetable::...
099f18d59ed8d55bef07f2b362e64367b72b4604
4e1c98a5550a0a70fe5ded7160e1c2f992cfdf21
/flac.cpp
fe7e29f192856869c225e04b2dfc696a7a1105cb
[]
no_license
MacroMachinesEngineering/Arduino-Teensy-Codec-lib
02d931f13d86cd7dfad313c3f4073b6a3926b4a3
d536c69f330b8ff3e83fc789d950b26865d35db0
refs/heads/master
2020-12-28T23:50:17.125039
2014-12-22T21:29:35
2014-12-22T21:29:35
28,461,131
1
0
null
null
null
null
UTF-8
C++
false
false
543
cpp
flac.cpp
//Ram Usage: //Blocksize 128 : 3852 Bytes #define VERSION "1.3.1" #define FLAC__INTEGER_ONLY_LIBRARY 1 //#define FLAC__OVERFLOW_DETECT 1 #define HAVE_BSWAP32 1 #define HAVE_BSWAP16 1 //TODO: //- Option to disable CRC //- Use Teensy-CRC-Unit #include "flac/all.h" #include "flac/lpc.c" #include "flac/format.c" #inc...
9854709f844ae819715f0e2210e782bf9dd3f470
cd783c0d99f07c29f394adb6e029ab0e4ed74475
/Lab1/lab1_II_7.cpp
fc233e6f5aaf2e4f7144dd785ededbf1b2952f02
[]
no_license
Werstef/Facultate-CP
4fd9c1605458f203e872687f0f1be06609afc869
6fadf0234f7876d938afb8cb961139e5192c59e8
refs/heads/master
2021-08-19T01:57:46.449535
2017-11-24T12:13:56
2017-11-24T12:13:56
108,106,546
0
0
null
null
null
null
UTF-8
C++
false
false
173
cpp
lab1_II_7.cpp
#include <iostream> using namespace std; int main () { for ( int i=1 ; i<= 100 ; i++ ){ if ( i>=32 && i<=39) cout<<i<<"\n"; } return 0; }
2cefe5bdf224ccdabdaa14764037c7b20d22b009
665ce4b4538660b51c504497895dd814b53feb73
/roboticsProject/flameDetection.cpp
2d5332ad7f405bbb2e206b40962852300d606804
[]
no_license
zavalza/roboticsProject
a1be365d511d58a5f9038c902fbb69ed27e7a98b
7fd028a4579e984bcb970ec3c2aaac7c28290a28
refs/heads/master
2021-01-20T00:57:01.699016
2014-03-25T04:43:34
2014-03-25T04:43:34
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,225
cpp
flameDetection.cpp
#include <opencv2\core\core.hpp> #include <opencv2\highgui\highgui.hpp> #include <opencv2\imgproc\imgproc.hpp> #include <fstream> #include <iostream> #include <Windows.h> #include <queue> #define imageHeight 480 #define imageWidth 640 using std::cout; using std::cin; using std::endl; using namespace cv; vector <Mat> hs...
ab6d38a07fd8105ac33f9ee4f977e4acf5520f9d
3a02c26115c1b4180e32d1d9aa7e5b74952c460b
/src/headers/FileInfo.h
fb25fb98abed25b058d7597a7b8b859092c94366
[]
no_license
sfeeling/Oodle
9c38dfd5f429e88dba6823d220531d382f86ba85
c4124860166ebd6c06fa3016fba7bb0deca2374b
refs/heads/master
2020-03-17T03:51:07.236082
2018-06-17T06:28:24
2018-06-17T06:28:24
133,252,851
0
0
null
null
null
null
UTF-8
C++
false
false
524
h
FileInfo.h
// // Created by sfeeling on 18-4-20. // #ifndef OODLE_FILEINFO_H #define OODLE_FILEINFO_H #include <string> class FileInfo { public: FileInfo(); FileInfo(const std::string &, const int &, const time_t &, const bool &); ~FileInfo(); const std::string &Name() const; const long long int &Size() c...
60e46539a7eaea8dd5a521ec2df6b1b3671d2d04
02095cd4aeaa3a0d724f7362cdb8795fe9a81620
/oplink/algorithms/team/src/plugins/algorithms/MonoGA_GlobalSearch/MonoGA_GlobalSearch.cpp
579432abd6b7a4552749b5045a1935781b3d470a
[]
no_license
PAL-ULL/software-metco
ba5123cb1423fed4a2ac678ab375728ba4bbfbc8
59edc4e49bddbd9fc7237bf2f24271bdfc8afd79
refs/heads/master
2021-04-15T04:12:56.292543
2021-03-08T13:29:14
2021-03-08T13:29:14
126,484,450
10
5
null
2020-07-21T18:43:10
2018-03-23T12:49:10
C++
UTF-8
C++
false
false
44,323
cpp
MonoGA_GlobalSearch.cpp
/*********************************************************************************** * AUTHORS * - Eduardo Segredo Gonzalez * - Carlos Segura Gonzalez * * DATE * March 2011 * **********************************************************************************/ #include <cstdlib> #include <iostream> #inc...
4d69f74b691fede84aca29172f6bba95310dbce5
983786cac7fccdbfde0ecf549f9d43101e6daacb
/Source/RestartButton.cpp
e941a67082718dd8c1fca33ddd1fb1c402a65e8b
[]
no_license
Saftur/pow
a31ed7a90eb1e061418c2c010179737e10ffd3bf
ff992ccffacf807a44bea61950e99dd70cc3c336
refs/heads/master
2018-09-08T14:37:50.956036
2018-08-24T01:53:01
2018-08-24T01:53:01
120,832,124
0
0
null
null
null
null
UTF-8
C++
false
false
541
cpp
RestartButton.cpp
#include "stdafx.h" #include "RestartButton.h" #include "Engine.h" #include "Space.h" RestartButton::RestartButton() : Button("RestartButton") { } Component * RestartButton::Clone() const { return new RestartButton(*this); } void RestartButton::ClickEffect(float dt) { Space::GetLayer(0)->GetLevelMan...
e56df755910ec0e776199feb835662f232b46b49
31fc627f1c1184d3edbe910460fcbf2947d415da
/genetic_algo_for_opener_2.cpp
8ddfb27fa996498de67fcaa764c2856d32a6e5dd
[]
no_license
Grechiha-Nikita/code_samples
562c39efb5f927eff1e519675115d0373cf21e67
9f936d4c169c58d0d3309d849be26ab1dd5cd03d
refs/heads/master
2021-06-13T20:08:20.075705
2021-04-22T22:09:38
2021-04-22T22:09:38
188,268,172
0
0
null
null
null
null
UTF-8
C++
false
false
7,602
cpp
genetic_algo_for_opener_2.cpp
//#pragma comment(linker, "/STACK:200000000") //#pragma GCC optimize("O2") //#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") #include <bits/stdc++.h> #define all(v) (v).begin(),(v).end() #ifndef LOCAL #define cerr if(false)cerr #endif using namespace std; template<class T> using V...
323087cc38d631106ef587352da14e7aa1e1a596
618590a3de9617b899d1951359d831da64c37f95
/Lab1/main.cpp
8d31735c46e539de5c5e09bfe203a6c8937d6cda
[]
no_license
ContiuDragos/SortingAlgorithms
c2ce82b1710b7acb88d125091946719b716f804e
d31e6a783f5eaf48e40fb28fb6d8f7810a9731f6
refs/heads/main
2023-03-02T15:26:14.239231
2021-01-21T15:03:56
2021-01-21T15:03:56
331,650,264
0
0
null
null
null
null
UTF-8
C++
false
false
4,292
cpp
main.cpp
#include <stdio.h> #include "Profiler.h" #define MAX_SIZE 5000 #define STEP_SIZE 100 #define NR_TESTS 5 Profiler p("medie"); void Swap(int *a, int*b) { int aux=*a; *a=*b; *b=aux; } int BinarySearch(int v[], int element, int left, int right, int n) { Operation opCompInsertion=p.createOperation("Insert...
20b0c0f6cf533ff8172a38b89280f3373afb8d4e
2205b8d9ba3841e665128c8caaf5e950e98c3c9e
/src/controllableAgent/controllableAgent.cpp
834f1721178a57288a26d18ce3e0027f8e920dd8
[]
no_license
johnlime/UnitNeuronAgents
980045512ee84168ff2a949eae87c245d4408563
d1e5ceb6c799ecb76f8fb630ea6477ed93597c89
refs/heads/master
2023-01-30T11:23:02.692964
2020-12-14T06:40:13
2020-12-14T06:40:13
275,292,188
0
0
null
null
null
null
UTF-8
C++
false
false
2,191
cpp
controllableAgent.cpp
// // controllableAgent.cpp // UnitNeuronAgents // // Created by John Lime on 2020/06/26. // #include "controllableAgent.hpp" ControllableAgent :: ControllableAgent(ofVec2f _init_position, ofVec3f _color) { position = _init_position; color = _color; } void ControllableAgent :: update_target(ofVec2f _posit...
27e3b9070ce43a8137101aad4c553b380ce5710b
3cb9bc615b9c12e1cc1f5b118b155e01108ff6e0
/lib/Proyecto Final/Cpp Code/Shared Path/Logic.cpp
5a8d0ea248c6665f34b15471bcc0afaf325a3ba4
[]
no_license
Youngermaster/ST0247
1cb04f39060c602e58563a726af72f106b1799bc
c0f53e7fb7affc3058646dc5b2ea522198bc64d9
refs/heads/master
2020-04-21T10:34:46.173021
2019-06-05T01:08:13
2019-06-05T01:08:13
169,490,371
0
0
null
null
null
null
WINDOWS-1250
C++
false
false
4,298
cpp
Logic.cpp
#include "pch.h" #include "Logic.h" const int NUMBER_OF_NODES = 4; const double TIME_RATE_CHANGE = 1.2; int costMatrix[NUMBER_OF_NODES + 1][NUMBER_OF_NODES + 1]; Logic::Logic() { core(); } Logic::~Logic() { } void Logic::core() { auto start = std::chrono::system_clock::now(); // Starts to counting time. fill...
d09bf681bd40ffff97b5077383d8227a9133f535
f7786f389182b498802b056f458a1089c24dc98c
/embedded/selector.cpp
d05cb7446323753d089ff22d6f109fe63f6dc4d3
[]
no_license
buotex/pknn_al
160bc81cf34fdf2dbdeb08a9995fb47d70c9fffd
d9867ad35da45f46288548be7ff5d087538b88bc
refs/heads/master
2020-06-03T20:02:35.868330
2013-01-23T11:11:21
2013-01-23T11:11:21
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,017
cpp
selector.cpp
#include <armadillo> #include <random> #include <algorithm> int __getSampleIndex(const arma::vec & data, double alpha) { //rescale data int lastIndex = alpha * data.n_elem - 1; double max = data[0]; double treshold = data[lastIndex]; arma::vec probabilities = (data.rows(0,lastIndex) - treshold) / (max - tre...
3da3a2cb3c43c45b4efa7ac2c0103762e22fabe0
9e83e357538639cfe29356901640072fce261cad
/_Examples And Testing/Sound_01/Sound_01/Sound_01.cpp
695ec052a6716519c8196ce92096f868e21518d2
[]
no_license
ConnerTenn/Legacy_CPP
615fa4ca4b5a5824e27c8a213e559e0678f7b690
fd150a8f81d2606622dfa9ac199f20009962f5da
refs/heads/master
2021-05-09T21:46:23.880623
2018-05-01T20:29:33
2018-05-01T20:29:33
118,735,762
0
0
null
null
null
null
UTF-8
C++
false
false
3,388
cpp
Sound_01.cpp
// Sound_01.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <windows.h> #include <iostream> #include <cmath> #include <limits> #include <fstream> #include <string> #include <playsoundapi.h> #include <mmsystem.h> #pragma comment(lib, "winmm.lib") //typedef sig...
ff25eb8c9385e591868c25cace5ac04f242d2c69
84309c941ed75cc2486c58385c6cfefb12bfe558
/Printf.ino
4d920dc87503edd7d09a38a616560f9f88c60d4d
[]
no_license
mkarliner/TropeLights
63aa70dbe5b59d8e267b31f1cff07173ac8be5fd
490f24e9dba87039554f0ea7337004f6f8e1578e
refs/heads/master
2020-04-20T06:19:04.856497
2014-11-16T17:24:05
2014-11-16T17:24:05
null
0
0
null
null
null
null
UTF-8
C++
false
false
518
ino
Printf.ino
// create a output function // This works because Serial.write, although of // type virtual, already exists. static int uart_putchar (char c, FILE *stream) { Serial.write(c) ; return 0 ; } char *ftoa(char *a, double f, int precision) { long p[] = {0,10,100,1000,10000,100000,1000000,10000000,100000000}; c...
7593e406539ae1700e4d128573dd6576fa474153
0d894b3233402efb44d9ac12d716f1983609a088
/Contour.h
b98853a0c05d7e031a182363aa159a6cb074dab2
[]
no_license
happog/Text-line-extraction-using-seam-carving
40ceb3e82d0b1db6179bb42d3cb9b1c675e476c0
5a4ad4d068fd3b84f4ba1a5f065962eb7b2d3fb0
refs/heads/master
2020-03-24T22:49:34.880962
2018-03-08T14:18:51
2018-03-08T14:18:51
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,757
h
Contour.h
#ifndef _Contour_H #define _Contour_H #include <vector> #include <opencv/cv.h> #include <opencv2/core/core.hpp> #include <opencv2/highgui.hpp> #include <opencv2/imgproc.hpp> using namespace std; class Contour { protected: vector<cv::Point> _points; cv::Rect _brect; cv::Point _center; public...
b051251828af28dd40e3cd9744ab18e4f1f2cac5
33fcbed17ab7aa8ade90da79d3f92126a84a186f
/ws/11/e.cpp
21510c562469a8200794621dd0eb1e0ad94f703e
[]
no_license
kusosuha6vt/kusosuha6vt
7b5380351c6d7f211c03608fbb2fbcc6f9fef25f
b07397112f638bf6736c70c404c7dcff57ad3299
refs/heads/main
2023-04-02T00:39:41.086109
2021-03-28T19:39:16
2021-03-28T19:39:16
352,417,902
0
0
null
null
null
null
UTF-8
C++
false
false
3,925
cpp
e.cpp
//#pragma comment(linker, "/STACK:16777216") #include <bits/stdc++.h> #define all(a) (a).begin(), (a).end() #define mid(l, r) (((r) + (l)) >> 1) using namespace std; typedef long long ll; //#define int ll void set_file(string s) { freopen((s + ".in").c_str(), "r", stdin); freopen((s + ".out")....
41c4f26132be5aa0814b09323e65e3f008ffba80
86ff0325bdb0ddcc75cbbbc404886511f291b3ca
/src/RayVec.hpp
f80c306a8e413eca5812112669da6cf8197faa2b
[]
no_license
Roudovic/GlintsPathTracer
38d8e183bf41505b9f36f01c37a22b972099decb
59a5cf86592d8af648562772301d4693b86026bf
refs/heads/master
2020-12-30T09:05:10.301748
2020-04-24T13:21:14
2020-04-24T13:21:14
238,941,798
0
0
null
null
null
null
UTF-8
C++
false
false
5,856
hpp
RayVec.hpp
// // RayVec.hpp // PathTracer // // Created by Ludovic Theobald on 05/11/2019. // Copyright © 2019 Ludovic Theobald. All rights reserved. // #ifndef RayVec_hpp #define RayVec_hpp #include <stdio.h> #include <math.h> #include <stdlib.h> #include <stdio.h> #include <vector> #include <iostream> struct Vec { ...
ff133931fd220f3bcb219f235a5065095ca9fd95
cfeac52f970e8901871bd02d9acb7de66b9fb6b4
/generated/src/aws-cpp-sdk-securityhub/include/aws/securityhub/model/ActionLocalPortDetails.h
f9164a912b11b6d0267ced363fdd699f865824e3
[ "Apache-2.0", "MIT", "JSON" ]
permissive
aws/aws-sdk-cpp
aff116ddf9ca2b41e45c47dba1c2b7754935c585
9a7606a6c98e13c759032c2e920c7c64a6a35264
refs/heads/main
2023-08-25T11:16:55.982089
2023-08-24T18:14:53
2023-08-24T18:14:53
35,440,404
1,681
1,133
Apache-2.0
2023-09-12T15:59:33
2015-05-11T17:57:32
null
UTF-8
C++
false
false
3,219
h
ActionLocalPortDetails.h
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/securityhub/SecurityHub_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <utility> namespace Aws { namespace Utils { namespace Json { class JsonValue;...
67e3e1ea3ad7d0556e8fb14839b423969eddc1a9
2f396d9c1cff7136f652f05dd3dea2e780ecc56e
/_studio/shared/umc/codec/h264_dec/include/umc_h264_headers.h
930cc1791b577e186a93f5aa34ad7995a285cdc8
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "Intel" ]
permissive
Intel-Media-SDK/MediaSDK
d90c84f37fd93afc9f0a0b98ac20109d322c3337
7a72de33a15d6e7cdb842b12b901a003f7154f0a
refs/heads/master
2023-08-24T09:19:16.315839
2023-05-17T16:55:38
2023-05-17T16:55:38
87,199,173
957
595
MIT
2023-05-17T16:55:40
2017-04-04T14:52:06
C++
UTF-8
C++
false
false
5,488
h
umc_h264_headers.h
// Copyright (c) 2017-2018 Intel Corporation // // 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, merge...
7c68b080a33d7fbd1b15e6b02fa0664ace3a06d0
7f7e2e7ed09fd4ff372ec60e2b3566163fe96dc4
/PA6/AttendanceApp.cpp
d31f010a5685213340ab87ffcdcdbbd23efa250b
[]
no_license
Ogieriakhi17/CPTS-122
c8679786853d478be86988561f54e1f765427a8e
782c61a4cd6ed5838195f8920ce8d8ed7fa6b307
refs/heads/master
2023-04-07T00:47:17.238584
2018-09-26T03:00:44
2018-09-26T03:00:44
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,601
cpp
AttendanceApp.cpp
#include "AttendanceApp.h" /////////////////////////////////////////////////////////////////////////////// /// \file AttendanceApp.cpp /// \author Gal Zahavi /// \date /// \brief This application is an attendance tracker /// \function AttendanceApp.cpp /// \description /// ...
536829d52e056da6622d7991328ac579a6be9e48
6c1fdcc17015be4983d900745f2b7a459249431c
/YBCtrl/inc/menu/YBMenu.h
cf731244e10241a9995193da7a52bc29cf985967
[]
no_license
AlexByYao/YBCtrl
6051c2106ab4472f6662b2397f98b78c19c941c7
6f00bf461dbf4df810533c4f6ad20dee17563ca0
refs/heads/master
2021-01-12T11:43:15.204863
2016-10-29T08:30:24
2016-10-29T08:30:24
72,273,919
1
0
null
2016-10-29T08:34:38
2016-10-29T08:34:37
null
UTF-8
C++
false
false
1,539
h
YBMenu.h
#ifndef __YBMENU_H__ #define __YBMENU_H__ #include "frame/YBCtrlBase.h" #include <string> #include <map> #include <deque> YBCTRL_NAMESPACE_BEGIN namespace Gdiplus{ class Image; class Graphics; } class YBCtrlImageBase; class YBCtrlImageStatic; class YBCTRL_API YBMenu : public YBCtrlBase{ public: struct YBMenuItem...
79d95d0f3da9f80482e5db7133e727602d54a0b0
7a9d2a5d591e72db615ccdf081d64f2d1becaa1e
/solutions/1046/c++/solution.cpp
d7848a6c808327e0fdd8e2459642b68b107c5a82
[]
no_license
Krazune/LeetCode
7efa7553caf43b05c5b7fa8600c2f29a065082fe
5fd0e339e9eb7d166572090fb71217cfb8874bc2
refs/heads/master
2023-06-07T13:53:13.444428
2023-05-31T17:50:28
2023-05-31T17:50:28
111,018,262
3
1
null
null
null
null
UTF-8
C++
false
false
824
cpp
solution.cpp
// 1046. Last Stone Weight #include <vector> #include <algorithm> using namespace std; class Solution { public: int lastStoneWeight(vector<int>& stones) { if (stones.size() == 1) { return stones[0]; } int nonZeroStoneCount = stones.size(); do { sort(stones.begin(), stones.end()); int heavie...
be3bfdf95352609dc0f6073afef6996d4860a536
081cc2fac1350d22438a730fd36885549ba92d21
/Unterricht/10_BoyerMoore/sequence.cpp
004447e922c0260ec6d7516471da31306f5cf7a4
[]
no_license
streusselhirni/AAD_GUI_Stoff
1231f81825464e663a77bfa571ab934783cce08d
0b33fc300ee8598831271dc39f17033d45f1279c
refs/heads/master
2020-06-04T09:34:54.690226
2019-06-14T15:37:50
2019-06-14T15:37:50
191,967,590
0
0
null
null
null
null
UTF-8
C++
false
false
535
cpp
sequence.cpp
#include <iostream> #include <string> #include <fstream> #include <algorithm> using namespace std; class FastaReader { public: static string read(const string & file, bool & success); }; string FastaReader::read(const string & file, bool & success) { ifstream fs(file); if (!fs) { success = false; return...
a395f319562ffd109c804f750b90d933d96c3e35
4418812306f6c434970b6fee2b6614c5dae1ca5a
/MonteCarloSpinTest/Grid.cpp
0c1ffe2b1354080885a15902f1e1ef26e9f70f76
[]
no_license
08jne01/Monte-Carlo-Ising-Model-Example
5e1689c3e632bbd90fc5ce46dbd1516dfa049fd3
ff40f1630621f74140185c5006260d704b7dbf9b
refs/heads/master
2020-04-22T05:12:54.877651
2019-02-11T15:29:13
2019-02-11T15:29:13
170,152,139
0
0
null
null
null
null
UTF-8
C++
false
false
2,700
cpp
Grid.cpp
#include "Grid.h" Grid::Grid(int w, int h) : width(w), height(h), temp(15), curTime(-2), drawTime(w*h), gen(1), coupleJ(5e-23) { srand(10); rand(); for (int i = 0; i < w; i++) { std::vector<int> buffer; for (int j = 0; j < h; j++) { buffer.push_back(random(0.5)); } gridValues.push_back(buffer); }...
eb7487194f154fd8ac3b75a463f5d35366ab7c39
013cc68b61c675642bf0a6ae8721969f60cc3e16
/Movement.cpp
3589b94578e674e631f75b454a3bf1004fd479f9
[]
no_license
ixi150/Arcanoid
7ad678b14ea4b6624d934b27926b485e89f80bdc
bba66abeb20ec8ea5328543504cca93a2196d45d
refs/heads/master
2021-01-10T10:27:45.663652
2015-11-14T23:33:19
2015-11-14T23:33:19
46,195,872
0
0
null
null
null
null
UTF-8
C++
false
false
2,851
cpp
Movement.cpp
#include "Header.h" void GameObject::MoveByAngle(double delta, double Multiplier){ x += Multiplier * speed * sin(angle * 3.14 / 180) * delta; y -= Multiplier * speed * cos(angle * 3.14 / 180) * delta; } void GamePlayer::Move(double delta, GameObjects* Objects){ x -= force_x2 * delta; x += force_x1 * delta; if (O...
aeda652ecd67b5fb33b46f31af06df115cd010c1
3779d117981db2a864fc5d15c9a716abc652aceb
/communication/task_user.cpp
cc58dd14d87c371f4e4e54ec4ecc100184170118
[]
no_license
eddieruano/ME405
f6826da4879ad5507b320f2e3cc7405dfef61270
4456b3f9e64b978ffdabaa95e3065d9e7dfb2954
refs/heads/master
2020-12-24T18:14:07.857410
2016-06-10T18:37:38
2016-06-10T18:37:38
56,257,523
0
1
null
2016-04-21T01:53:36
2016-04-14T17:37:05
C++
UTF-8
C++
false
false
7,827
cpp
task_user.cpp
//***************************************************************************** /** @file task_user.cpp * @brief This is the file for the 'task_user' class that is what any * user will mainly interact with * * @details Built on top of JR Ridgely's architecture, this task uses case * ...
58833995b147700af41a92c424e24aebd279ba0d
0604bc1e638164443a8b69cbb8edfa9ace2aa9b2
/interpolation_search.cpp
6b2981971c9d24c339b6fea84856fe1cc596fe40
[]
no_license
Rahul172000/C-codes
ee7cc55afbc78b39364a701001270eb36236f504
a4aceb05f3d277fcc6f75e5773fc1812fc611b99
refs/heads/master
2022-03-22T20:08:38.651096
2019-11-23T03:42:34
2019-11-23T03:42:34
203,303,855
0
0
null
null
null
null
UTF-8
C++
false
false
899
cpp
interpolation_search.cpp
#include<iostream> #include<algorithm> #include<cmath> using namespace std; int inter_search(int *arr,int h,int l,int x) { while(h>=l) { int mid=l+((h-l)*(x-arr[l]))/(arr[h]-arr[l]); if(arr[mid]>arr[h]||arr[mid]<arr[l]) { return -1; } if(arr[mid]>x) {...
d96a5aa672aa0b02b35b671628b51a752d5a38a0
ae3253b4a9c21d11e6a2ca5ae1f75ad847965550
/Random_Problems/231C.cpp
b82c85828502ba1cb974c97dd7e6e4d4b6f4bd62
[]
no_license
Mehulcoder/Codeforces
c02c3b1956593b196c3082e27f753ed3f70982a7
1cac2862d2aa604e1413399eb083de9229d368f5
refs/heads/master
2021-08-20T05:03:35.015294
2021-06-26T17:57:49
2021-06-26T17:57:49
201,782,304
2
0
null
null
null
null
UTF-8
C++
false
false
722
cpp
231C.cpp
#include <bits/stdc++.h> using namespace std; #define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); #define endl "\n" #define int long long const int N=1e5+5; int n, k, store; int a[N], pref[N]; int check(int f) { for(int i=f;i<=n;i++) { int reqd=(a[i]*f)-(pref[i]-pref[i-f]); if(reqd<=k) { st...