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
00ad84d6a625b65506bdf893f5e9ab780ace5134
0a9c8206f6a5992d4d4630a83380c3ac187603b8
/Triangle.h
8392248ffcaeb853f384780be035d91c9c1279ce
[]
no_license
ericktberg/RayTracer
1757eb7d3ce52a51e13e67979e4b0c021793e349
4d5c323eb1643a0c134449bd3e221e8a90e16c25
refs/heads/master
2021-01-15T20:09:36.266384
2016-10-20T10:40:39
2016-10-20T10:40:39
99,846,471
0
0
null
null
null
null
UTF-8
C++
false
false
1,114
h
Triangle.h
#pragma once #include "Object.h" #include "Ray3D.h" #include "UVCoord.h" #include "Vector3D.h" #include "Vertex.h" #include <vector> namespace object{ class Triangle : public Object { public: //References vertices only. Change vertices at source to modify vertex locations. Triangle(const Vertex* v1, const Ve...
15ec50fc4a59f72f758ffb09dae5f03f426e63f6
ac550c8c10749650de10fe31e2b646e476822867
/reference/bdwy/c-breeze/src/backend/arch_info.cc
5ecfa8c92f04a2674ea89b0e16941b94b7cf5e98
[]
no_license
jeversmann/undergradotaters
321a88600add4a318e42a026e47e87080486fce5
63ad3ffa6c4dd049b5b033970823d43f5f37bf9d
refs/heads/master
2021-01-23T21:45:29.474918
2015-09-24T23:31:28
2015-09-24T23:31:28
33,013,262
0
0
null
null
null
null
UTF-8
C++
false
false
19,678
cc
arch_info.cc
#include "c_breeze.h" #include "arch_info.h" #include "arch_info_parser.h" // because I'm lazy typedef arch_info::register_info register_info; typedef arch_info::register_info_list register_info_list; // these are needed so that we can parse Kill list in Lir2Asm record register_info arch_info::pseudo_reg_dest( (uns...
5b588b1ea8d9fe015179ab2b410bfafa31be14f2
9c73501c5a8413753ed5776299fe1f62a0a2659e
/src/Settings/Equations/T_i.cpp
f505c27d63fcaa244d5faf711c04428792488a7b
[ "MIT" ]
permissive
anymodel/DREAM-1
5d1ac63ffc48157f110ef672036d801442a2c917
eba9fabddfa4ef439737807ef30978a52ab55afb
refs/heads/master
2023-08-23T05:01:13.867792
2021-10-28T19:45:33
2021-10-28T19:45:33
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,291
cpp
T_i.cpp
#include "DREAM/Equations/Fluid/IonSpeciesIdentityTerm.hpp" #include "DREAM/Equations/Fluid/IonSpeciesTransientTerm.hpp" #include "DREAM/Equations/Fluid/MaxwellianCollisionalEnergyTransferTerm.hpp" #include "DREAM/Settings/SimulationGenerator.hpp" #include "FVM/Equation/Operator.hpp" /** * Implementation of equations...
b9619ed14f0a55c8cc25efd586492f8f3432f687
8383fef8376b6710388811bb3a48035627e9419f
/src/main/cpp/libtiv.hpp
310e4bdf0e6048fa6863370c9791fef6270655a6
[ "Apache-2.0" ]
permissive
hiro-ogawa/TerminalImageViewer
58d520b4bdc14ddd6e2f5e0d770f6bd734923394
914dc186b6ab37724c2d8b5329574a44bed8daa0
refs/heads/master
2021-04-10T13:30:45.090772
2020-03-21T08:55:30
2020-03-21T08:55:51
248,937,620
0
0
Apache-2.0
2020-03-21T08:43:39
2020-03-21T08:43:38
null
UTF-8
C++
false
false
108
hpp
libtiv.hpp
#include <string> #include <opencv2/opencv.hpp> std::vector<std::string> emit_image(const cv::Mat &image);
63aebf99b004cb7a0c96544439409309bc51f337
384cd3cb5e72d48449773f562a5512fd3a7d8b34
/tableslocation.h
361b9cd1f9344ed466a32e5d7cae54e0a84719d2
[]
no_license
iKeJung/DES-with-QT
72341cbd31281e750a3d631bcebad6246982f1dc
dc55b051e90643a62a7c1fca43a6286bada9aad1
refs/heads/master
2020-03-30T02:34:24.610973
2018-09-27T23:29:34
2018-09-27T23:29:34
150,637,680
0
0
null
null
null
null
UTF-8
C++
false
false
568
h
tableslocation.h
#ifndef TABLESLOCATION_H #define TABLESLOCATION_H #include <QString> #include <QStringList> class TablesLocation { public: TablesLocation(); static const QString path; static const QString expandWord; static const QString keyShift; static const QString permut...
f2982ebccacad56980f2c4a974b158e884117261
0e3d2ce96340e6d27a85569956a1b47d100e881f
/data/offline/makeUSCorrections.cxx
bcad1d7624a0818bcfb72c42140388cd5b596979
[]
no_license
rhanniga/lambda-over-hadron
1314d949c13f7299211d9be89dd280e50e70ae1d
18df5543ddd3a2b270fba8d2c6680a43d866cd9a
refs/heads/master
2023-08-28T14:02:10.149532
2023-08-15T01:25:22
2023-08-15T01:25:22
243,051,085
2
0
null
null
null
null
UTF-8
C++
false
false
19,174
cxx
makeUSCorrections.cxx
void makeUSCorrections(string inputFile){ TFile* input = new TFile(inputFile.c_str()); TH2D* hLambda2Dpeak = (TH2D*)input->Get("hLambda2Dpeak"); TH2D* hLambda2DLside = (TH2D*)input->Get("hLambda2DLside"); TH2D* hLambda2DRside = (TH2D*)input->Get("hLambda2DRside"); TH2D* hLambdaLS2Dpeak = (TH2D*)inpu...
6f7c2aade884970aa0e9601e01eb55ca1c6c14ac
c32b19fc3f7d9ab74d57c3df2a3060e46f4a3599
/src/app/Toolbar.h
3d0ac8050ce52e97d7b691de465b393e6c3995d7
[ "MIT", "BSD-3-Clause" ]
permissive
jarllarsson/loppan
c364e3ae776ae55f84e7f3c8d7fc21570647086c
64676c950facfedd88b4b5fbc589610251fb0c2b
refs/heads/master
2020-07-26T06:05:49.515730
2015-04-25T16:29:54
2015-04-25T16:29:54
34,569,995
0
0
null
null
null
null
UTF-8
C++
false
false
2,675
h
Toolbar.h
#pragma once #include <windows.h> #include <string> #include <vector> #include <AntTweakBar.h> #include <ColorPalettes.h> #include <IContextProcessable.h> // ======================================================================================= // Toolbar // ======================...
4810e4efe8ea6e7c7c82e2f40b8dae97f6aea0fa
14ff708f2e64be57425a36a47ce4c90c582f79f6
/src/terrain/point.h
68d2277d424e4d0a28fe1de660e974285db9b60c
[]
no_license
sachabest/mini-minecraft
9904ee0047638270d67ccd95cb31d73588cab9b9
d2fc2961e10ca9f4ce2b09d8989bf721a5a07926
refs/heads/master
2021-03-24T12:48:59.509798
2016-04-29T02:49:32
2016-04-29T02:49:32
55,613,019
0
0
null
null
null
null
UTF-8
C++
false
false
175
h
point.h
#ifndef POINT_H #define POINT_H class Point { public: Point(float x, float y); bool operator<(const Point &p) const; float x; float y; }; #endif // POINT_H
384f5272344d767a0e50c25419dd1d822d150708
336808e58978077d8c86b661c331d83dad689ad0
/DAout/examples/AnalogToHeadphone/AnalogToHeadphone.ino
db5bd7e8451851222a6bca2386a3aba6f2024876
[ "BSD-3-Clause" ]
permissive
FyberLabs/FlexModules_Arduino
f39eed54babf187c8e0a996cf63b396a2d229226
092e7faad3013cb887baebc7a257df0de80273d5
refs/heads/master
2021-01-23T20:13:02.766495
2015-11-12T08:21:05
2015-11-12T08:21:05
34,784,792
5
0
null
null
null
null
UTF-8
C++
false
false
3,010
ino
AnalogToHeadphone.ino
/**************************************************************************************** This is a library for the Fyber Labs DAout Flex Module AnalogToHeadphone Copyright (c) 2015 Fyber Labs Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and assoc...
42fadbdbe99eea60451fef86339d0b525444d6b8
5d9f2abf62c6b542ad7932bed9b3f1ca2d707160
/main.cpp
2a3293d31c4fd80812bab64fbda42d12ba88f5d8
[]
no_license
Thening/dessin-en-Abymes
613407260968bfee4cd5420f1ad34cc183fda7e0
b88ef46e588ffd84d5e1ce6d6c11745299179ce4
refs/heads/master
2020-03-29T11:45:52.574898
2018-09-22T11:09:52
2018-09-22T11:09:52
149,869,478
1
0
null
null
null
null
WINDOWS-1252
C++
false
false
3,534
cpp
main.cpp
#include <stdlib.h> #include <stdio.h> #include <SDL/SDL.h> #define nbcare 3 #define c 400 SDL_Surface *affichage; void echangerEntiers(int* x, int* y) { int t = *x; *x = *y; *y = t; } void setPixel(int x, int y, Uint8 coul) { *((Uint32*)(affichage->pixels) + x + y * affichage->w) = coul; } void setPixelVer...
3ce924c72879032c9fa1e094b9983fe8c228fa86
b4cb3760b0b96e9093106e2ea646d8459f4ce1f6
/quickSort.cpp
79f99f56962dc2daaa0e5d1cfc9378d461619097
[]
no_license
ngoquanghuy99/C-CPP-problems-and-solutions
461526ab9ec2cafa280031f94720a87926793539
ca3e06be1c84ca9b7ad09f7464be71020defd223
refs/heads/master
2022-11-06T14:43:07.800730
2020-06-16T12:16:32
2020-06-16T12:16:32
135,458,944
3
0
null
null
null
null
UTF-8
C++
false
false
649
cpp
quickSort.cpp
#include<iostream> #include<conio.h> using namespace std; int n = 11; int arr[] = {5,9,4,12,10,444,345,958,2,4,3}; void quicksort(int* arr, int leftIndex, int rightIndex){ int i = leftIndex; int j= rightIndex; int pivot = arr[(leftIndex + rightIndex)/2]; while(i<=j){ while(arr[i] < pivot) i++; while(arr[j]> piv...
d33d946327690442304b31d8e059fafc8256e58e
646cbe14cce0578da42cdc79c6467108ce3e5753
/board.cpp
cf3091db9a23fcc45f59247de8861b6e7902539d
[]
no_license
jeffreyan11/go-engine
16484c79e52597038762791e5d9672716250b5d7
02ec4782c0570ecf077a8bd513c0d4501ac6655c
refs/heads/master
2021-01-21T13:56:51.435086
2016-06-02T07:14:39
2016-06-02T07:14:39
50,217,190
4
0
null
null
null
null
UTF-8
C++
false
false
36,032
cpp
board.cpp
#include <iostream> #include <random> #include "board.h" int boardSize = 19; int arraySize = 21; // Zobrist hashing table, initialized at startup // 2 * 25 * 25 = 1250 entries, 2 per color for a max 25 x 25 board static uint64_t zobristTable[1250]; void initZobristTable() { std::mt19937_64 rng (74623982906748U...
a4bd80e6455e721a85d6df9ed4b8f8a7f4fb7012
0421bc55fe0928ce76ab1f45fc3cdfd7f8b6a9b0
/gauntlet/C_Gold.cpp
df970bd9320c6bf8ce7cf0eb75eff853376f8c35
[]
no_license
GandhiGames/gauntlet
f3ce79cdf85468bc456f0536283a25b516408fe8
17ebe9143e2371de47d8a158971d92b4bfaeac9b
refs/heads/master
2021-01-20T11:39:15.554575
2017-09-25T12:54:30
2017-09-25T12:54:30
101,512,609
0
0
null
null
null
null
UTF-8
C++
false
false
547
cpp
C_Gold.cpp
#include "PCH.h" #include "C_Gold.h" #include "Object.h" C_Gold::C_Gold(Object* owner) : Component(owner, true) { } C_Gold::~C_Gold() { } void C_Gold::LoadDependencies(Object* owner) { m_points = owner->GetComponent<C_PointsOnPickup>(); } void C_Gold::OnCollisionEnter(Object* owner, Object* other) { if (other->m...
549d8e75defdbc78caa8310d929798a539f69747
1c08d6013afeb2736f3b778587b7688dddde8436
/src/simulator.cpp
aaaa0254aa80dfa28656a93e4595ea00fe54b086
[]
no_license
danalmanzee/cse-network-simulator
4475a7c818220c8f91bf2f678305654b3a18df9a
3632c46226bd270ee5ae3165da4e7ea622f1d95d
refs/heads/master
2021-09-02T06:02:40.880629
2017-12-30T22:21:17
2017-12-30T22:21:17
115,826,079
0
0
null
null
null
null
UTF-8
C++
false
false
5,170
cpp
simulator.cpp
#include <iostream> #include <iomanip> #include <fstream> #include "buffer.hpp" #include "generator.hpp" #include "router.hpp" #include "server.hpp" #include "simulator.hpp" using namespace std; using NodeCreateFunc = Simulator::NodeCreateFunc; Simulator::Simulator() : _next_client(0), _next_event(0) { ...
752681c000c669f60742a11bb807684fdd7fd73e
5984b9f212cd5bc4f7b80637cf6124eb837ce85d
/Lab6/Dacia.h
798515e2aea7eedb0520c05de4cbace069b347bf
[]
no_license
DideaBogdan/POO-2021-B2_Didea_Bogdan_Marius
452655203cc3382ffb90d05bd962f778d4a48dba
fd7729b875609c028e7b94de5cc72a3f21445626
refs/heads/main
2023-08-18T01:53:08.928609
2021-04-21T18:16:29
2021-04-21T18:16:29
339,751,657
0
0
null
null
null
null
UTF-8
C++
false
false
220
h
Dacia.h
#pragma once #include "Car.h" class Dacia : public Car { virtual int Fuel() override; virtual int FuelConsumption() override; virtual int AverageSpeed(Weather w) override; virtual const char* Name() override; };
77f1988ab490a9dee2c6ca39932e1710cbaca0de
6bb9adc7a8bae33598b8d53124005477a615a111
/CPP/aralik-sayi-toplam.cpp
4ad56ee5690b645b4d3c49f208485e596c0e5731
[]
no_license
SebinLi028/Cesitli-Programlar
abd420d712fba9e6c67e09fa6bb928bbb3d4b9fb
990faf3c640bbcead81cc91efea36a7823354052
refs/heads/master
2021-09-12T04:39:08.549866
2018-04-14T09:38:39
2018-04-14T09:38:39
123,432,899
0
0
null
null
null
null
UTF-8
C++
false
false
269
cpp
aralik-sayi-toplam.cpp
#include <iostream> using namespace std; int main(void) { int number, sum = 0; cout << "enter a number less than 100: "; cin >> number; while (number < 100) { sum += number; number++; } cout << "Sum: " << sum << endl << endl; system("PAUSE"); return 0; }
8c211dca752de9d7e6b53506fb121aef7ad9b933
ece30e7058d8bd42bc13c54560228bd7add50358
/DataCollector/mozilla/xulrunner-sdk/include/nsIProxiedChannel.h
61289288b49e5727d5d20c51a817bf6a84eca516
[ "Apache-2.0" ]
permissive
andrasigneczi/TravelOptimizer
b0fe4d53f6494d40ba4e8b98cc293cb5451542ee
b08805f97f0823fd28975a36db67193386aceb22
refs/heads/master
2022-07-22T02:07:32.619451
2018-12-03T13:58:21
2018-12-03T13:58:21
53,926,539
1
0
Apache-2.0
2022-07-06T20:05:38
2016-03-15T08:16:59
C++
UTF-8
C++
false
false
2,604
h
nsIProxiedChannel.h
/* * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl\nsIProxiedChannel.idl */ #ifndef __gen_nsIProxiedChannel_h__ #define __gen_nsIProxiedChannel_h__ #ifndef __gen_nsISupports_h__ #include "nsISupports.h" #endif /* For IDL files that don't want to include root IDL files. */ #ifndef NS_NO_...
88dcaaaae8a632b032901c1f358992c0085be08e
3e2019e6ca4384630e2c4ca863dfc56a77eda75e
/fondamenti_di_programmazione/temi-esame/appello_29-06-2016/compito.h
32417252b3145b6a035e2ea018bce71f67f3d8a6
[]
no_license
soras19/Ing-Informatica_Unipi
4c01d56664e1f703e7b2e42be2c16d1913a8b7ac
2e8a064797a80c7bdda78837b9dbf294623ca705
refs/heads/master
2020-04-05T09:58:20.325603
2019-01-29T16:02:18
2019-01-29T16:02:18
156,782,571
2
1
null
null
null
null
UTF-8
C++
false
false
480
h
compito.h
#ifndef COMPITO_H_INCLUDED #define COMPITO_H_INCLUDED #include <iostream> using namespace std; class Scrabble{ int N; char** tabella; // funzioni di utility int str_size(const char*); public: Scrabble& operator=(const Scrabble&); Scrabble(int Ne); bool esiste(const char* str); void a...
9fb57f54bd19ac86d86e22389a0628291499fd2c
cb807ad6134e68e0ec74f39c2e8e12734e9d3c88
/💡 Arrays-Sum Of Two Arrays.cpp
ae55dd8d62d1f0499b401e2bdcee5d30a8c584e6
[]
no_license
BlazeAxel99/hacker-block-cb-cpp-
0e91e5d90be45ab962fe7e2caddb8dc11cc390ff
f3a63c14ec974ed00eb02c83193a3364d5e6792b
refs/heads/master
2023-02-20T07:15:30.307778
2021-01-20T14:06:59
2021-01-20T14:06:59
289,300,574
1
1
null
null
null
null
UTF-8
C++
false
false
1,463
cpp
💡 Arrays-Sum Of Two Arrays.cpp
/* Take as input N, the size of array. Take N more inputs and store that in an array. Take as input M, the size of second array and take M more inputs and store that in second array. Write a function that returns the sum of two arrays. Print the value returned. Input Format Constraints Length of Array should be bet...
cabeaed5d2be5369568993c428035426e157bff7
2cdf738778eaadf37e4cc0e6e5686dc36d058744
/src/parameters_panel.cpp
faba3e28d8939636105deb2ccac15b1450d3a94e
[]
no_license
biberino/fraktal_kundschafter
c47116c2293d889e1bd7e0472f350de9a1a8cc35
e55cf18598e4975c5312f8a34078904914da3042
refs/heads/master
2023-06-11T03:07:34.155347
2023-05-27T15:48:38
2023-05-27T15:48:38
140,421,629
0
0
null
null
null
null
UTF-8
C++
false
false
2,900
cpp
parameters_panel.cpp
#include "parameters_panel.hpp" #include <iostream> Parameters_panel::Parameters_panel(/* args */) { _lbl_max_iter.set_text("Anzahl Iterationen:"); _lbl_koppl.set_text("Verkopplungskonstante:"); _lbl_width.set_text("Auflösung X:"); _lbl_height.set_text("Auflösung Y:"); _lbl_gen_param.set_text("Gene...
49fe3da5e7f441f5a1d3ece25d204266a1e6381c
b623b1b5ccc3a6c4003a85b8a84fb7c8b92d6875
/dll/InitializeHooks.cpp
16ca15070c8a8befcea1a5ffede5aad1d015cfed
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
namreeb/wowreeb
bb2983bccc48aa1101362ca81c561f2e73465bb7
6096851265887efe0d7875002aa2e2f731d6729d
refs/heads/master
2023-05-11T22:52:04.850255
2022-12-29T00:14:41
2022-12-29T00:14:41
92,789,856
51
27
null
null
null
null
UTF-8
C++
false
false
13,217
cpp
InitializeHooks.cpp
/* MIT License Copyright (c) 2018-2023 namreeb http://github.com/namreeb legal@namreeb.org 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 witho...
ef828e96e766bc354f3494f4c4742cc2ad3bb8a1
c1d7a2de68d4e4ad50e4684396d744d24affefde
/win_game/Threading/MutexLock.cpp
2a16352cf1f8d448e4a92acfdd07a20e5394c678
[]
no_license
dzoidx/Vulkan-UI-Editor
aad235b280a5ed822c52b3c2469bce23e266c8b0
59df698a191dade1ea6f4bd558a387d526ecabb5
refs/heads/main
2023-07-31T01:58:50.993495
2021-09-08T07:37:40
2021-09-08T07:38:15
404,239,889
2
0
null
null
null
null
UTF-8
C++
false
false
364
cpp
MutexLock.cpp
#include "MutexLock.h" MutexLock::MutexLock(Mutex* mutex) : mutex_(mutex) { mutex_->Lock(); } MutexLock::MutexLock() : mutex_(nullptr) {} MutexLock::~MutexLock() { Unlock(); } void MutexLock::Lock(Mutex* mutex) { if (mutex_) return; mutex_ = mutex; mutex_->Lock(); } void MutexLock::Unlock() { if (mutex_) { ...
1e3568abcb43c5bf5b05a1d5fb2c6aa4291786e7
55fc0e953ddd07963d290ed56ab25ff3646fe111
/StiGame/gui/effects/EffectListener.cpp
c77f4a093dd5135c0c3771d0f9784b5ad11eb22a
[ "MIT" ]
permissive
jordsti/stigame
71588674640a01fd37336238126fb4500f104f42
6ac0ae737667b1c77da3ef5007f5c4a3a080045a
refs/heads/master
2020-05-20T12:54:58.985367
2015-06-10T20:55:41
2015-06-10T20:55:41
22,086,407
12
3
null
null
null
null
UTF-8
C++
false
false
262
cpp
EffectListener.cpp
#include "EffectListener.h" namespace StiGame { namespace Gui { namespace Effects { EffectListener::EffectListener() { } EffectListener::~EffectListener() { } void EffectListener::handleEvent(EffectEventThrower *src, EffectEventArgs *args) { } } } }
7a66073f4100c0cada9f5f8cff4c1463425e5445
ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f
/PORMain/panda/include/pythonTask.h
13874bc31725e9c99dbad800ca2635e7891ef58a
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
BrandonAlex/Pirates-Online-Retribution
7f881a64ec74e595aaf62e78a39375d2d51f4d2e
980b7448f798e255eecfb6bd2ebb67b299b27dd7
refs/heads/master
2020-04-02T14:22:28.626453
2018-10-24T15:33:17
2018-10-24T15:33:17
154,521,816
2
1
null
null
null
null
UTF-8
C++
false
false
2,602
h
pythonTask.h
// Filename: pythonTask.h // Created by: drose (16Sep08) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) Carnegie Mellon University. All rights reserved. // // All use of this software is subject to the terms of the revised BSD // license. You should h...
0877f15cee3a1eafede31fcd88b072c7a10a7204
8d2f0d78ca8566081c90615354e8a2d8cea6352d
/encryptutils.h
e71d2fa66e304b68e681a3c602a342ca93023145
[ "CC0-1.0" ]
permissive
michaelnpsp/WifiMouseServer
320eaefed9571860444cffdc29258278366d7475
4e3a0ad3745edad704cbb3ead0b30a742887a302
refs/heads/master
2022-11-11T09:48:01.367905
2020-06-28T20:31:17
2020-06-28T20:31:17
275,452,782
6
1
NOASSERTION
2020-06-27T21:03:02
2020-06-27T21:03:01
null
UTF-8
C++
false
false
342
h
encryptutils.h
#ifndef ENCRYPTUTILS_H #define ENCRYPTUTILS_H #include <QByteArray> #include <QString> namespace EncryptUtils { QByteArray makeHash16(QByteArray toHash); QByteArray decryptBytes(QByteArray data, QByteArray key, QByteArray iv); QByteArray encryptBytes(QByteArray data, QByteArray key, QByteArray iv); } #en...
c32eefef51108b2606e828bc8065c62409b52635
118aa6bdb9f3beba4bef627977122bd3402b4501
/ProjetC++/src/Soldier.cpp
f1fbd077a8b30440af2d8d27ff0bfbab8baa597d
[]
no_license
OlivierNappert/Game-TowerDefense
edca31f7b07874e8222fb8a5ebe55fedcf62b01c
c95329e6449cc9523c563587666a97bfa442b99e
refs/heads/master
2021-01-23T02:06:13.402681
2017-03-23T15:36:48
2017-03-23T15:36:48
null
0
0
null
null
null
null
UTF-8
C++
false
false
920
cpp
Soldier.cpp
#include "../include/Soldier.hpp" /* Sodier& Soldier::operator=(const Soldier& obj) { Soldier temp(copy); std::swap(temp.hp, hp); std::swap(temp.pa, pa); std::swap(temp.pm, pm); std::swap(temp.attackValue, attackValue); std::swap(temp.moveValue, moveValue); std::swap(temp.range, range); std::sw...
809bb381f3ad1722a0d953d0e9da345788ff2df8
f871b2c9f4c25f7f43c4148ae98dc8371f4c8892
/emptyExample/src/npBox.cpp
644b572c99733b6b6fdd3042f23a35b399b9f801
[]
no_license
kalwalt/npDeferredS
4f9d345fb0f37c9b17f6480df6d1ee4f3330a020
7cf10c47118332e2309ae3a98614b890fafb6e52
refs/heads/master
2021-01-18T06:34:36.005634
2012-12-26T22:03:27
2012-12-26T22:03:27
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,198
cpp
npBox.cpp
#include "npBox.h" void npBox::setup(npMaterial mat, float w , float h,float d ) { width =w; height =h; depth =d; material = mat; hasColor = false; hasUV = false; stride =6; if (material.hasColor) { hasColor =true; r =material.r; g =material.g; ...
6d4bdb27503767cdc9396e104b71e19a08639679
d3e028b03d4908139c0dcc6549a82e26cb971097
/2016-08-07/I.cpp
9e43cf0b12403c3da8623b1a8cb6902c294a24ac
[]
no_license
gzgreg/ACM
064c99bc2f8f32ee973849631291bedfcda38247
1187c5f9e02ca5a1ec85e68891134f7d57cf6693
refs/heads/master
2020-05-21T20:27:46.976555
2018-06-30T18:16:36
2018-06-30T18:16:36
62,960,665
6
2
null
null
null
null
UTF-8
C++
false
false
1,103
cpp
I.cpp
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef pair<int, int> pii; typedef vector<int> vi; #define endl '\n' int n; pii rotate(pii curr) { return {curr.second, n - 1 - curr.first}; } int main(){ ios::sync_with_stdio(0); cin >> n; set<pii> grille; set<pii...
07fb7094f9c2169c6d1c3b1c2555b046313bf319
62d48af115ea9d14bc5a7dd85212e616a48dcac6
/src/sharedLibraries/headers/FinalSelection.h
cafb497a0840d84dd28b70b879945ca6d758aeec
[ "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-3-Clause" ]
permissive
asu-cactus/lachesis
ab1ab1704e4f0f2d6aef1a2bff2dc99ea8f09337
92efa7b124a23894485a900bb394670487051948
refs/heads/master
2023-03-05T11:41:35.016673
2021-02-14T21:50:32
2021-02-14T21:50:32
151,744,205
2
0
Apache-2.0
2021-02-14T16:37:54
2018-10-05T15:49:15
C++
UTF-8
C++
false
false
664
h
FinalSelection.h
#ifndef FINAL_SELECTION_H #define FINAL_SELECTION_H #include "Lambda.h" #include "LambdaCreationFunctions.h" #include "SelectionComp.h" #include "DepartmentTotal.h" #include "PDBVector.h" #include "PDBString.h" using namespace pdb; class FinalSelection : public SelectionComp<double, DepartmentTotal> { public: ...
f52978ed12bc53f55a851ac832677660d0a53304
77ff0d5fe2ec8057f465a3dd874d36c31e20b889
/libraries/GRL/Network Flow/decrease_one_cap_path.cpp
eec2eef2fcfa1a1d108345e8709d9b1d81fb52e6
[]
no_license
kei1107/algorithm
cc4ff5fe6bc52ccb037966fae5af00c789b217cc
ddf5911d6678d8b110d42957f15852bcd8fef30c
refs/heads/master
2021-11-23T08:34:48.672024
2021-11-06T13:33:29
2021-11-06T13:33:29
105,986,370
2
1
null
null
null
null
SHIFT_JIS
C++
false
false
2,314
cpp
decrease_one_cap_path.cpp
#define INF 1<<30 #define LINF 1LL60 struct edge { int to; // 行き先 int cap; // 容量 int rev; // 逆辺 edge() {} edge(int to, int cap, int rev) :to(to), cap(cap), rev(rev) {} }; vector<vector<edge>> G; // グラフの隣接リスト表現 vector<int> used; // DFSですでに調べたらフラグ vector<vector<int>> one_path; // 幅1の道の場所記録 // fromからtoへ向かう容量capの辺...
64573c37dba9a8f24883f7a2152961c742d24b03
7030bdc16a529c04ebacc9d18c5eff9251320ca9
/stable/player/util/upnp/upnpdom/v1_02/include/NodeAct.h
102b2ffbd0fff23a49650b2c5c3350a99f1062b2
[]
no_license
pleasemarkdarkly/iomega_hipzip
cd770e6cf1b1e719098d5e33e810d897249c0f69
ee741ddf30d3f0875420384837ba8eb9581f5bf2
refs/heads/master
2021-05-24T18:53:04.662340
2020-04-07T08:22:21
2020-04-07T08:22:21
253,705,949
4
0
null
null
null
null
UTF-8
C++
false
false
3,187
h
NodeAct.h
/////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2000 Intel Corporation // 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 o...
c09268ac35064d4646303e566e3a2f2efe682e92
017f4a4aa14b740d84cc5ed7817ff904bbf2258d
/WPI_3_IMGD_3000_Game_Engine/BAM productions Blades of the High Seas/dragonfly/src/Position.cpp
62b20177ab31eb1079e00eb9ddd9b0e392be20b2
[]
no_license
ezraezra101/coursework
ff4ea60c924c3d4c4f43ae444156ced2d5dd482f
7048a8fa16db897e31b73c2ac497659389943e26
refs/heads/master
2020-06-06T02:59:56.422594
2019-06-18T21:56:04
2019-06-18T21:56:04
192,617,463
0
0
null
null
null
null
UTF-8
C++
false
false
419
cpp
Position.cpp
#include "Position.h" df::Position::Position(int init_x, int init_y) { x = init_x; y = init_y; } df::Position::Position() { x = 0; y = 0; } void df::Position::setX(int new_x) { x = new_x; } int df::Position::getX() const { return x; } void df::Position::setY(int new_y) { y = new_y; } int df::Position::getY...
65bf241000470f7e602e300cabccef477ef9793c
b9b966952e88619c9c5d754fea0f0e25fdb1a219
/libcaf_net/caf/net/http/with.hpp
f209ef65ff8b20dedca80cfc81e19ed81d237a4d
[]
permissive
actor-framework/actor-framework
7b152504b95b051db292696a803b2add6dbb484d
dd16d703c91e359ef421f04a848729f4fd652d08
refs/heads/master
2023-08-23T18:22:34.479331
2023-08-23T09:31:36
2023-08-23T09:31:36
1,439,738
2,842
630
BSD-3-Clause
2023-09-14T17:33:55
2011-03-04T14:59:50
C++
UTF-8
C++
false
false
1,717
hpp
with.hpp
// This file is part of CAF, the C++ Actor Framework. See the file LICENSE in // the main distribution directory for license terms and copyright or visit // https://github.com/actor-framework/actor-framework/blob/master/LICENSE. #pragma once #include "caf/net/dsl/base.hpp" #include "caf/net/dsl/generic_config.hpp" #i...
c0c1f266c319aeebbf56a51718202b864b7a48d8
5a1568a5df5bdad68cd6f26428a50b49b7c08835
/CGT521YetAgain/CGTLibrary/PhongLight.h
864c8a7f8bab6e635ce44964db79e016a9bd7772
[]
no_license
nemediano/OpenGLHomeworks
15936971762b2d1334e77a1ff2f023ed850365ac
281013b3303701a4f30c7b25bbd9880d2bc5e9f0
refs/heads/master
2021-01-18T21:57:50.764201
2017-06-13T22:48:50
2017-06-13T22:48:50
41,044,699
0
0
null
null
null
null
UTF-8
C++
false
false
510
h
PhongLight.h
#ifndef PHONG_LIGHT_H_ #define PHONG_LIGHT_H_ namespace lighting { class PhongLight { private: glm::vec3 m_La; glm::vec3 m_Ls; glm::vec3 m_Ld; public: PhongLight(); PhongLight(const PhongLight& other); PhongLight(const glm::vec3& La, const glm::vec3& Ld, const glm::vec3& Ls); void setLa(const glm::ve...
9a2bab4f781fea817838719fac1b042a0edbd700
98b1e51f55fe389379b0db00365402359309186a
/homework_6/problem_2/10x10/0.153/T
9220a7920b1527542e43579b974e20497de6fed8
[]
no_license
taddyb/597-009
f14c0e75a03ae2fd741905c4c0bc92440d10adda
5f67e7d3910e3ec115fb3f3dc89a21dcc9a1b927
refs/heads/main
2023-01-23T08:14:47.028429
2020-12-03T13:24:27
2020-12-03T13:24:27
311,713,551
1
0
null
null
null
null
UTF-8
C++
false
false
2,037
T
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 8 \\/ M anipulation | \*-------...
5df7bbb9d6e76dcd052c351246734da363fd2146
2f768d02ff8d25b723a0ab2428f8a8dcdefb3e11
/huffman/decompress.cpp
98e6be369c36792f6aa264dd2328d52d31681746
[ "MIT" ]
permissive
cuklev/huffman-archiver-cpp
7ac3f92d5d5a5a44e1a2018bde20057a89b6af2d
c2c2ac8e11e6957f3d68c895c5d36bccf93b7271
refs/heads/master
2021-01-11T14:35:15.983219
2017-02-03T15:25:43
2017-02-03T15:25:43
80,166,968
6
1
null
2017-02-03T10:13:45
2017-01-26T23:48:26
C++
UTF-8
C++
false
false
807
cpp
decompress.cpp
#include "decompress.hpp" #include "huffman.hpp" void dfs(BinaryRead& bin_in, HuffmanNode* const node) { if(bin_in()) { putChar(node, bin_in.readUnalignedByte()); } else { dfs(bin_in, makeLeftChild(node)); dfs(bin_in, makeRightChild(node)); } } void decompress(BinaryRead& bin_in, std::ostreambuf_iterator<c...
61192dcedc6b656efede68bf29e0281ac7ab6b68
2f71acd47b352909ca2c978ad472a082ee79857c
/src/tenkei/024.cpp
914ab313ee3ed67d815634d287ef84d2666a70e5
[]
no_license
imoted/atCoder
0706c8b188a0ce72c0be839a35f96695618d0111
40864bca57eba640b1e9bd7df439d56389643100
refs/heads/master
2022-05-24T20:54:14.658853
2022-03-05T08:23:49
2022-03-05T08:23:49
219,258,307
0
0
null
null
null
null
UTF-8
C++
false
false
610
cpp
024.cpp
// This file is a "Hello, world!" in C++ language by GCC for wandbox. #include <iostream> #include <cstdlib> #include <vector> int main() { int n, k; std::cin >> n >> k; std::vector<int> a(n); std::vector<int> b(n); for (int i = 0; i < n; i++) { std::cin >> a[i]; } for (int i = ...
5e5ec934563284dfafdca15007da24d9c9cb7469
ad471c614aa777622e6a1c2c433cbc8d0a544df1
/main.cpp
90d45afc097c05e3656fa5f5b62521bc4c10be6b
[]
no_license
SilverCV/SDL2Player
85a3bddc6630e19d11abe9f8a9a82769899bcd85
2891495c45d08b70c0d4f3c2eb813308e1ea488e
refs/heads/main
2023-01-04T19:22:58.230649
2020-11-10T01:02:22
2020-11-10T01:02:22
311,504,863
0
0
null
null
null
null
UTF-8
C++
false
false
2,299
cpp
main.cpp
#include <SDL2/SDL.h> #include <iostream> int WIDTH = 640; int HEIGHT = 480; int thread_exit = 0; int fresh(void *data){ while (thread_exit==0){ SDL_Event event; event.type = SDL_DISPLAYEVENT; SDL_PushEvent(&event); SDL_Delay(40); } } int main(int argc, char *argv[]) { //初始化 if (SDL_Init(SDL_...
44a5b376dcc7ea41ccf1107fa71c065c838fd55b
533eebd4de3add199cd263d710361d2d56c5b299
/tree_mutex.h
92d1077e5a047e1938f67d19acf4753c80b23126
[]
no_license
pavelstrokan/parallel
6b1dc6773f94c7780503bc5e60bcfbd3a45a2bd6
33323ffd3d512b46d35941ff1b9c4186655913bc
refs/heads/master
2021-01-01T05:13:07.283915
2016-05-26T22:58:08
2016-05-26T22:58:08
56,264,398
0
0
null
null
null
null
UTF-8
C++
false
false
1,590
h
tree_mutex.h
#include <thread> #include <iostream> #include <vector> #include <atomic> #include <array> class peterson_mutex{ public: peterson_mutex() { want[0].store(false); want[1].store(false); victim.store(0); } void lock (size_t index); void unlock(size_t index); pri...
b067000077b1d3e3a0c2a6d2bf3a166a30722218
81d62bdfac49eebbaae975b7721f638b811fc15d
/Library.cpp
87a07ab9344470b31f4ec342f1df33a69f6aa23b
[]
no_license
taedud/LibSys
8fa7abe0782996f3e2d57138f2523a5bf32913b3
0ee09f3dfe2484e8e6c8ebbee8c5cde14652b810
refs/heads/master
2023-01-13T22:27:33.561551
2020-11-20T08:59:42
2020-11-20T08:59:42
314,497,390
0
0
null
null
null
null
UTF-8
C++
false
false
1,953
cpp
Library.cpp
#include "Library.hpp" #include <list> #include <string.h> #include <string> Book::Book() { memset(this->name, 0x00, MAX_NAME_LEN + 1); memset(this->category, 0x00, MAX_NAME_LEN + 1); this->year = 0; this->month = 0; this->day = 0; this->ryear = 0; this->rmonth = 0; this->rday = 0; } Bo...
7c6c78077ee8092154d86d5e8c6e9dc700a0c8a9
20a831d3cb5788f31d607d48bd6e3cc68a860556
/auto_nav/src/agri_costmap_layer_v2.cpp
97250e59384b31666cdb87ddc60273bbc1baf7e9
[]
no_license
vigneshrajap/vision-based-navigation-agri-fields
8f17affc2c9e80bc1b325060a25e2a0bf2640781
c179dff7eb3d25179b2995412aeaf5f6d950c6ff
refs/heads/master
2022-01-17T05:55:04.278192
2022-01-14T11:10:51
2022-01-14T11:10:51
208,878,598
12
3
null
null
null
null
UTF-8
C++
false
false
10,197
cpp
agri_costmap_layer_v2.cpp
#include "agri_costmap_layer_v2.h" PLUGINLIB_EXPORT_CLASS(custom_layer::AgriCostmapLayer_v2, costmap_2d::Layer) namespace custom_layer{ void AgriCostmapLayer_v2::onInitialize() { ros::NodeHandle g_nh; current_ = true; vec_sub = g_nh.subscribe("vector_poses", 100, &AgriCostmapLayer_v2::vecposeCallback...
2c5e9bb79a4ff5be6e60075a337b0673b93ca750
b9f8f7d126677e98c09aa17d09a070af316be59d
/背包九讲/4_多重背包问题.cpp
60336b92d8cd3761fa6f9bf88ff5190a56386dbc
[]
no_license
BinXUU/alg-daily
9295479fe8f1c49b7ae3f38614efdcd5b466582e
c927b9a66ca75d27fd9d6465e5793dda8eadbb8c
refs/heads/master
2022-02-25T15:31:56.383583
2019-10-05T03:34:01
2019-10-05T03:34:01
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,017
cpp
4_多重背包问题.cpp
#include <iostream> #include <stdio.h> #include <string.h> #include <vector> #include <algorithm> #include <queue> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef long double ld; const int M = 1e3 + 10; const int mod = 1e9 + 7; int weight[M],value[M],nums[M]; //优化一:二维数组变为一维数组 // ...
180bd6260a45366fef13dd981a00c4d4a789dbad
539f01f2c2b4bcc019738d829aadff3f3ea84d5e
/WebPuppeteerTab.cpp
a7f8c148993373b194279a8f2213ffca04ee8d4d
[ "MIT" ]
permissive
MagicalTux/webpuppeteer
2e4ec9ba439e3d815c837ceab1ee57fbcb6f936b
cb41410d3efc70681c9409fc185b6cb444af5ad6
refs/heads/master
2021-01-13T02:31:34.063401
2019-01-21T04:41:10
2019-01-21T04:41:10
5,094,886
6
2
null
null
null
null
UTF-8
C++
false
false
18,611
cpp
WebPuppeteerTab.cpp
#include "WebPuppeteerTab.hpp" #include "WebPuppeteerWebElement.hpp" #include "WebPuppeteer.hpp" #include <QEventLoop> #include <QWebFrame> #include <QPainter> #include <QPrinter> #include <QWebView> #include <QNetworkReply> #include <QEvent> #include <QKeyEvent> #include <QTimer> #include <QBuffer> #include <QTemporar...
fd23011c2031637ca414fb8ecfd93fb81efbb4bf
3b21f6436c53d9c74d345a3b4fb743e3ce1e1a41
/Volume_1/160/factor.cpp
5c336e9901a93a35aa40b972b0cd2d09927dc055
[]
no_license
wilson100hong/UVAOJ
c8202e0e844b82f7a9861b9844b1092eb1468cfc
fa88f79f38ce1261fcb72fb452648d488db49f2f
refs/heads/master
2022-02-10T17:16:47.802137
2022-02-08T06:18:12
2022-02-08T06:18:12
9,843,018
0
2
null
null
null
null
UTF-8
C++
false
false
1,169
cpp
factor.cpp
#include <iostream> using namespace std; #define MAX_N 101 int prime[MAX_N]; int prime_cnt; void init() { bool p[MAX_N]; for (int i = 0; i < MAX_N; ++i) p[i] = true; for (int i = 2; i < MAX_N; ++i) { if (p[i]) { int j = i * 2; while (j < MAX_N) { p[j] = false; j += i; } ...
03ccf0364d1aa7d72169603c3e2a4f3d1d73d51e
8bfbccc253fde3850d96959fc747c38e698c8736
/examples/demo/objectdemo/objectdemo.cpp
2e351413b13e4bfa1f1817bddbe2b526d6bcce71
[]
no_license
sidneydijkstra/PADEngine
b61cd89056e4b4ad19a94660419d1eccf34fda2c
4499c64d4c14bf42f597e6f06c19da733de84255
refs/heads/master
2023-05-10T15:23:41.044506
2021-05-18T13:38:42
2021-05-18T13:38:42
297,615,673
0
1
null
2021-01-18T14:35:39
2020-09-22T10:33:50
C
UTF-8
C++
false
false
615
cpp
objectdemo.cpp
#include "objectdemo.h" ObjectDemo::ObjectDemo(std::string _name) : Scene(_name) { Entity* obj = new Entity(); obj->getMesh()->loadObject("assets/viking_room.obj"); obj->getTexture()->loadTexture("assets/viking_room.png"); this->addChild(obj); list.push_back(obj); } void ObjectDemo::update() { this->getCamera()...
b563fe8dc8877c761bc3786e08d34628b864d78e
2e7f8237976e765ef6b9aac864e4e1a23b36acb7
/include/script/objects/NullObject.h
ca58e9a4ed27e10a825b5edaa698147c78cb5166
[]
no_license
kopaka1822/CppScriptEngine
794c4b5e8dfcd2c75997023ebf7b73dbd24db4b2
1073c86e5116c4d3cf244d8cb2ae8563ac674393
refs/heads/master
2021-06-25T03:06:01.671335
2020-11-24T08:39:49
2020-11-24T08:39:49
170,923,776
0
0
null
null
null
null
UTF-8
C++
false
false
359
h
NullObject.h
#pragma once #include "ScriptObject.h" namespace script { /// \brief represents the null constant. This class is a singleton class NullObject final : public ScriptObject { NullObject() = default; public: std::string toString() const override final; ScriptObjectPtr clone() const override final; ...
24ca7d11b0b5ea3d48627fa47a94c4fc654e8773
dc94d3c5536ce2439e4909a8c83497683eeb8de2
/6_4_textLCD/main.cpp
f43f3966e71056349756f34e431227002f779cb4
[]
no_license
AndyLun/mbed06
81d66efe8d2d60df7c3f34f9645d381617e7b6a4
8ad0a340d8a438a438b2fa6a2fdf99e56d968c49
refs/heads/master
2021-05-26T02:37:42.649444
2020-04-08T09:28:54
2020-04-08T09:28:54
254,019,008
0
0
null
null
null
null
UTF-8
C++
false
false
338
cpp
main.cpp
#include "LCD.h" int main() { LCD_init(); // call the initialise function display_to_LCD(0x48); // ‘H’ display_to_LCD(0x45); // ‘E’ display_to_LCD(0x4C); // ‘L’ display_to_LCD(0x4C); // ‘L’ display_to_LCD(0x4F); // ‘O’ for (char x = 0x30; x <= 0x39; x++) { display_to_LCD(x); // display numbers 0-9 } }
d61749ca2a718aeaefd414951a9180df7dace2b1
ec665a8581db1920da99adb09877b434255960fb
/plugins/MacAU/Channel9/Channel9.cpp
ea6c3ec6e6f14a6c7bc9a5312783ee44a2db66a8
[ "MIT" ]
permissive
airwindows/airwindows
92621f774f7a28fb66da84c1ec5a40c2c7124935
5375d64df5dc3dd4970ae6b3e91b7c8a255bbbe1
refs/heads/master
2023-08-03T12:21:56.984065
2023-07-30T01:02:46
2023-07-30T01:02:46
118,393,739
643
92
MIT
2023-03-16T15:43:55
2018-01-22T02:05:08
C++
WINDOWS-1252
C++
false
false
14,523
cpp
Channel9.cpp
/* * File: Channel9.cpp * * Version: 1.0 * * Created: 1/4/21 * * Copyright: Copyright © 2021 Airwindows, Airwindows uses the MIT license * * Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in * consideration of your agreement to the following terms, and your us...
08ec9a11b4b752b40d2304b8d25cd461ccb7f61c
a559df3ae294163ce2cb04436d51af6f440b81df
/dynamic_programming/min_cost_climbing_stairs.cc
103f8e58eb68c9874a27e89253d79a9a05125b35
[]
no_license
saileshnankani/Algorithms-and-Data-Structures
270fed7f37c1968bce2dc7ee480804245ab4dffd
584f1a3b1d9a0f5278a405aadfc66cfffa112626
refs/heads/master
2021-07-16T08:15:46.435413
2020-01-03T18:41:36
2020-01-03T18:41:36
202,796,542
0
0
null
null
null
null
UTF-8
C++
false
false
1,045
cc
min_cost_climbing_stairs.cc
#include <iostream> #include <vector> #include <unordered_map> using namespace std; unordered_map<int,int> memo; int minClimb(vector<int>&cost, int begin){ if(begin>=cost.size()){ return 0; } if(memo.find(begin)!=memo.end()){ return memo[begin]; } int first = cost[begin] + minClimb...
86e0eaa87af9757c84f3affdea0614911e972597
32df434a59d94f7e1a39f84d204018850c6094f8
/ports/nacl-spawn/nacl_spawn.cc
a334a392d0b703a2e353e149dfd8989b3bcda031
[ "GPL-2.0-or-later", "LicenseRef-scancode-mit-old-style", "MPL-1.1", "ImageMagick", "MIT", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GFDL-1.2-only", "BSD-3-Clause", "LicenseRef-scancode-other-permissive", "LGPL-2.0-or-later", "GPL-1.0-or-later", "Libpng", "LicenseRef-scan...
permissive
kosyak/naclports_samsung-smart-tv
b9eeba2f292d9e35da771c5939d98cf58b46df02
a33cb6a6118a3899b0b8f5e4cb7e0d264b3f305d
refs/heads/master
2022-10-15T00:41:16.671774
2014-05-07T14:38:44
2014-05-07T14:38:44
18,762,387
0
1
BSD-3-Clause
2022-10-08T08:41:12
2014-04-14T13:54:01
C
UTF-8
C++
false
false
7,651
cc
nacl_spawn.cc
// Copyright (c) 2014 The Native Client Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Emulates spawning/waiting process by asking JavaScript to do so. #include <assert.h> #include <errno.h> #include <libgen.h> #include <limits....
1ad247e604958725e81879f9227f3d7bdd3bda2a
4f29e4e3314a931aa963e4dfde0e264b982f4914
/Sample of problemSolving/A. Maximum in Table 509A/main.cpp
c2cd71e68c1d967d97fd9be728b9874e03b45d62
[]
no_license
MostafaAbdallah/My-projects
61c09f879e081304018f9fd7cdb2442828740297
137b6bea8970aec290b41414f0dd402c7965c50d
refs/heads/master
2020-03-28T18:35:44.013130
2020-01-06T12:22:22
2020-01-06T12:22:22
13,528,409
0
0
null
null
null
null
UTF-8
C++
false
false
727
cpp
main.cpp
/** Problem Name: A. Maximum in Table 509 A Target: 2D Array (Vector) **/ #include <iostream> #include <vector> using namespace std; int main() { int n = 0; int maxnum = 1; cin>>n; int **t = new int*[n]; for(int i = 0; i < n; ++i){ t[i] = new int[n]; } ...
a243655f9b42376e4a125004ec3ae77a23a7dce2
c55a9a501537ec8a822d81ed56251aedaa4c53a5
/makefile/imos_sdk_xml.h
cac0667336e4ce39fe68d18341448720cb9863a8
[]
no_license
haofeng0928/VideoAnalyze
acba4683534a3a69ef80160d1cc1ff319582a606
441fb181028aa5f58b28b1e650fdcea1b4787ea4
refs/heads/master
2020-05-03T03:38:02.290862
2019-03-29T12:49:48
2019-03-29T12:49:48
178,403,054
0
0
null
null
null
null
GB18030
C++
false
false
44,120
h
imos_sdk_xml.h
/******************************************************************************* Copyright (c) 2008-2013, Zhejiang Uniview Technology Co., Ltd. All rights reserved. -------------------------------------------------------------------------------- imos_sdk_xml.h Project Code: imos sdk ...
b91cff6742ecc987394405bb3f38fcd3a3da7339
e8dccc2e674b70506509bb017363d37dd0b875fe
/new start/arduino_using_library_ledcontrol/arduino_using_library_ledcontrol.ino
3aad49f1802d23df40ab29187ef7b1c1a2755428
[]
no_license
Theara-Seng/simple_arduino_testing
d74089a982b8c8e8ab8c6d4cf1c129d00703a551
2c3884420c6576ebf8e440e4ed9f800508bca239
refs/heads/main
2023-04-01T11:19:38.630587
2021-04-13T05:02:52
2021-04-13T05:02:52
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,951
ino
arduino_using_library_ledcontrol.ino
#include <LedControl.h> int DIN = 12; int CS = 11; int CLK = 10; byte E[8] = {0x3C,0x20,0x20,0x3C,0x20,0x20,0x20,0x3C}; byte L[8] = {0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3E}; byte C[8] = {0x1C,0x20,0x20,0x20,0x20,0x20,0x20,0x1C}; byte T[8] = {0x7C,0x10,0x10,0x10,0x10,0x10,0x10,0x10}; byte R[8] = {0x38,0x24,0x24,0x2...
6be1fa035ad929635731ebee0a4c1c6937cf19f2
b0bfa899191d57adc5599d3bf3d1df5776bf6e9e
/notes/Monday - 0614/Lab_4/Lab_4_header.h
5544e6815845634e15e17463a07583b76200a933
[]
no_license
chris-womack/dataStructures
2e71cc6e0ee9baf43825c83a90bff2f5fe5d221d
717d50a767287643da08d8693d57ed368bd5125c
refs/heads/master
2021-01-01T16:40:02.517650
2014-09-14T00:59:14
2014-09-14T00:59:14
null
0
0
null
null
null
null
UTF-8
C++
false
false
819
h
Lab_4_header.h
#ifndef LAB_4_HEADER_H_INCLUDED #define LAB_4_HEADER_H_INCLUDED class City{ private: std::string place; std::string Msg; City *next; City *prev; public: City(std::string, std::string); // constructor ~City(); // destructor // get and set next City *getNext(); void setNex...
479c4b848f2949e04191ad148d530ff497fdc153
793fe5717a9dee3a474e6fb43f3edf9320bea8e8
/tests/is_alpha_digit.cc
99757bd4bd4c87724f4e4d57630154baba36807b
[ "MIT" ]
permissive
mahdavipanah/stringplus
1ea764e870be14c130031083bc8c8ad4e85cd967
cb958b7696bb14c42b115f21b69f296c355fb723
refs/heads/master
2021-01-10T19:44:19.860122
2020-09-17T22:37:49
2020-09-17T22:37:49
37,009,984
12
0
null
null
null
null
UTF-8
C++
false
false
278
cc
is_alpha_digit.cc
#include "Catch/catch.hpp" #include "../src/stringplus.h" using namespace stringplus; TEST_CASE( "is_alpha_digit", "[is_alpha_digit]" ) { REQUIRE( is_alpha_digit("1234") == true ); REQUIRE( is_alpha_digit("34n4") == true ); REQUIRE( is_alpha_digit("34n[") == false ); }
416c5caea6860395a2b0faa3e50acb48d874e63a
02df8a9b10c2f22ddfb69baaf411ab77f2c8396d
/include/prim/seadStringBuilder.h
786c9ca8af2c6ae77931dc1388c82d543f7b74fd
[]
no_license
AlexApps99/sead
0297789ad23362c7291b48d58a3ae2515bf1162d
f0c36b99d4f379e8ce36f0845be0211bb9bf4acb
refs/heads/master
2023-07-15T22:15:06.262714
2021-08-16T10:18:31
2021-08-16T10:23:49
396,732,798
0
0
null
2021-08-16T10:03:30
2021-08-16T10:03:29
null
UTF-8
C++
false
false
11,106
h
seadStringBuilder.h
#pragma once #include <cstdarg> #include "prim/seadSafeString.h" namespace sead { class Heap; template <typename T> class StringBuilderBase { public: static StringBuilderBase* create(s32 buffer_size, Heap* heap, s32 alignment); static StringBuilderBase* create(const T* str, Heap* heap, s32 alignment); S...
7c383ca6d87f5ea852f9901338ab618fc55ae32a
f7469cd0ec11ac05e173aca7749630a852cbf0b9
/Tham lam/DSA03018.cpp
5d9f8a66a0c094658fceb4aedd97cfcff3a85661
[]
no_license
hieunvPTIT/CTDL2021
9e1b83a343f25991b6b12b8b03085c906591fb69
dc3ab1580138bfee2ec85165706358b2e8b72015
refs/heads/main
2023-06-10T14:15:58.608845
2021-06-28T18:07:12
2021-06-28T18:07:12
381,121,937
0
0
null
null
null
null
UTF-8
C++
false
false
527
cpp
DSA03018.cpp
#include<bits/stdc++.h> using namespace std; int n; void input(){ cin>>n; } void solve(){ string result; // n = 4a+ 7b; 0<= a <= n/4; 0<=b<= n/7 int a=0,b=0; for(int i = 0; i<=n/4; i++){ if((n-4*i)%7 == 0){ a=i; b=(n-4*i)/7; while(a--) cout<<4; while(b-...
ca9fabdac8a64fc1fb4f41c1cdbbe26d878828b6
32e84e2838d147644adabe35c878b30d8580bb07
/ProjectThree/ProjectThree/src/Entity.cpp
aae1efb00a38dbfc11ee54920907bbfc49e4f29e
[]
no_license
ShnapDozer/ProjectThree
470a78219356daab588618f83eda4a3820fc17c3
dd0e9cd70dfb8debb9b7768d6a85612beffa8057
refs/heads/master
2023-06-23T13:12:54.196428
2023-04-01T21:02:11
2023-04-01T21:02:11
247,796,887
0
0
null
2023-04-01T21:02:12
2020-03-16T19:12:19
C++
UTF-8
C++
false
false
3,782
cpp
Entity.cpp
#include "Entity.h" //-----------------------------------------------Entity---------------------------------------------------- //--------------------------------------------------------------------------------------------------------- Entity::Entity(std::string name, const sf::Vector2f& posS) : life(true), collisio...
d0150bd5b0299e3042010c2261d56c4277ee7ba4
897f30b2aa252863b8b6eb148008dc3ceb4af962
/IN_OpenCV/Timer.cpp
6db7be6375dc06b714b6042faddd87ffa9b024b1
[]
no_license
wazka/KinectScanner
ae33a02680f3bd125085e7a48ce068c886313552
76a3c8c4abadc7e1c151614bd12fc72a52ebb15e
refs/heads/master
2020-12-31T04:56:20.004564
2016-05-29T22:39:23
2016-05-29T22:39:23
59,506,677
1
0
null
null
null
null
UTF-8
C++
false
false
457
cpp
Timer.cpp
#include "Timer.h" Timer::Timer() { if (QueryPerformanceFrequency(&frequency) == 0) { initialized = false; return; } initialized = true; } double Timer::AbsoluteTime() { if (initialized == false) return 0; LARGE_INTEGER systemTime; if (QueryPerformanceCounter(&sys...
b5c44a2b065ab13fcd48a5d864f12e2d0f7beb80
892c2a05b916a9449dd702fce6ed483cc0765d55
/include/pac-man-bot/reach_search.h
af660fe93098cd9b9e6f827c788b2941c308d496
[]
no_license
KSU-IEEE/behaviors
d14dd2d08989ddf0be6a12834733a9e3e8ee5c30
ae395ca6a7b56196555b0461957a0dd6400ac85b
refs/heads/main
2023-03-21T00:20:02.006391
2021-03-13T14:51:11
2021-03-13T14:51:11
323,131,358
0
0
null
2021-03-12T06:24:22
2020-12-20T17:50:43
C++
UTF-8
C++
false
false
1,776
h
reach_search.h
#ifndef REACH_SEARCH_H #define REACH_SEARCH_H #include <pac-man-bot/ground_search.h> /************************************************** pac-man-bot::reach_search This class is used to search over the walls in the pac-man-bot arena. To do this, we will take in the distance sent from the arm to monitor when an block...
98648a6cadf23c74159a577701e0e3cd15125a19
de241e745d6f4193d1c3785d76309d3f5fe813ce
/test/distancematrix.cpp
c8302f2b2d2818d77f7d2c0db5b976926493a72d
[ "BSD-3-Clause" ]
permissive
ahasgw/Helium
23f10825960ec39bfa2dcb9586aa4e1232ea203b
5af83de373e56c18b537ff68946cd568a9a88ef8
refs/heads/master
2020-12-13T18:27:17.402352
2017-09-22T09:37:43
2017-09-22T09:37:43
46,963,215
0
0
null
2015-11-27T06:19:40
2015-11-27T06:19:40
null
UTF-8
C++
false
false
1,002
cpp
distancematrix.cpp
#include <Helium/distancematrix.h> #include "test.h" using namespace Helium; int main() { SymmetricDistanceMatrix m1(3, 0, 99); COMPARE(0, m1(0, 0)); COMPARE(99, m1(0, 1)); COMPARE(99, m1(0, 2)); COMPARE(99, m1(1, 0)); COMPARE(0, m1(1, 1)); COMPARE(99, m1(1, 2)); COMPARE(99, m1(2, 0)); COMPARE(99,...
b77710e0127855c3c26c04804337413fcb7219e6
c1b03b59b3974058e3dc4e3aa7a46a7ab9cc3b29
/src/module-wx.new/generated/Class_wx_FileCtrlEvent.cpp
aec82e1253ef85f39b1cb1c928a8ecef8ad9ad97
[]
no_license
gura-lang/gura
972725895c93c22e0ec87c17166df4d15bdbe338
03aff5e2b7fe4f761a16400ae7cc6fa7fec73a47
refs/heads/master
2021-01-25T08:04:38.269289
2020-05-09T12:42:23
2020-05-09T12:42:23
7,141,465
25
0
null
null
null
null
UTF-8
C++
false
false
5,833
cpp
Class_wx_FileCtrlEvent.cpp
//---------------------------------------------------------------------------- // wxFileCtrlEvent //---------------------------------------------------------------------------- #include "stdafx.h" Gura_BeginModuleScope(wx) //---------------------------------------------------------------------------- // Gura interfac...
230b9fcbc2a955692b08e288cc96ec4c23277182
79e15180945b36c328e55e445081401bf160218b
/Part2/Old interface files/Tenant.h
09c14cacdf82f309dafb5d575d41b52643eccaa9
[]
no_license
vandor5676/COMP3140_GroupProject
d976dd23a0d4f3a3b8a3cb05a532eeca573d5de4
d4070f8c025b49fceed76b0d8d58c836a080914b
refs/heads/main
2023-01-30T18:22:51.568544
2020-12-03T02:10:19
2020-12-03T02:10:19
310,679,082
0
0
null
2020-12-02T00:06:52
2020-11-06T18:44:00
C++
UTF-8
C++
false
false
925
h
Tenant.h
#pragma once //#include "Tenant.h" #include "Person.h" #include <iostream> #include <ctime> /* - Team Project: Stage #1 - Dayton Butler - T00258753 - November 12, 2020 - COMP 3140 */ using namespace std; class Tenant: public Person { private: string job; int unitNumber; time_t moveInDate; double monthlyFee; boo...
b92ee2f77482e03f04502fa143cfd908b2d9f6d6
afcd06153c085b1784954c19dbbe4fc0bfd6a56d
/qpainter_and_math/CGALDemo.cpp
abaa04cc17c4f778c3860ce16cef4bd4125f8095
[]
no_license
ngzqqb/chapter01
f1d3c360dfb76d922d07ca4b3de1fd1ba86dd00c
7d38cb87093994a01ea427052bd267107cdd5e03
refs/heads/master
2020-05-09T13:44:41.580399
2019-07-19T13:03:22
2019-07-19T13:03:22
181,165,081
0
0
null
null
null
null
UTF-8
C++
false
false
5,951
cpp
CGALDemo.cpp
#include "CGALDemo.hpp" #include <CGAL/Exact_predicates_inexact_constructions_kernel.h> #include <CGAL/Constrained_Delaunay_triangulation_2.h> #include <CGAL/Triangulation_face_base_with_info_2.h> #include <CGAL/Exact_circular_kernel_2.h> #include <CGAL/Polygon_2.h> #include "DrawCircleByThreePoint.hpp" namespace ss...
ddcbdfa290880fce2e72924a9fc109ee11967051
a54ca44c3a5eaf3b090bbcf7b03e9e13ecdee013
/Paradox/src/System/Component/Transform.hpp
bef17121c67d8dac2549a99608c15dc30f26e716
[]
no_license
sysfce2/SFML_Paradox
2a891a15fa24a22d23173e510393dde706afb572
d7ee266f79e7d145311f0877b03980b1351a08a7
refs/heads/master
2023-03-16T09:51:34.770766
2018-11-25T22:38:25
2018-11-25T22:38:25
null
0
0
null
null
null
null
UTF-8
C++
false
false
170
hpp
Transform.hpp
#pragma once // SFML #include <SFML/System/Vector2.hpp> namespace paradox { struct Transform { sf::Vector2f position; sf::Vector2f scale; float rotation; }; }
aa80827bebb4b7525c14c113a2d029cd40f6fb60
0f62e5c87982c4c0a0d05b5c16d779d335bdb959
/HiddenLayer.h
57bcefba2247ab4787cb086fdb5a0009e0f51cd5
[]
no_license
sherryshare/dlpc
b657714287b6e761af59dd3295d869122f1e368f
a2918c9fbbc42ee752d1b764a5f33f617547a45b
refs/heads/master
2021-01-23T22:36:56.317409
2014-03-21T03:41:06
2014-03-21T03:41:06
null
0
0
null
null
null
null
UTF-8
C++
false
false
521
h
HiddenLayer.h
#ifndef DLPC_HIDDENLAYER_H_ #define DLPC_HIDDENLAYER_H_ #include "utils.h" namespace dlpc { template<class T> class HiddenLayer { public: HiddenLayer(int, int, int, double**, double*); ~HiddenLayer(); void sample_h_given_v(T*, T*); public: int n_in;//any other way to change? int n_out; double **W;//vj->hi...
23d1d4776fabcd9b76d178273b194b1686f7b62a
3f0424e00a1c3fd3428bf633b52ec0c206734d64
/pi_copterVS/Stabilization.cpp
a230a3e80448fd8dcfae9323a5c64907e7771102
[]
no_license
2cool/pi_copterVS
60d1f4323aefc9bfcea3ef0a43747605e733138c
7d3c3eacfcec3dc85f538479d23422f8ee93f99a
refs/heads/master
2021-01-19T07:52:18.033978
2017-11-15T17:24:38
2017-11-15T17:24:38
87,581,101
0
0
null
null
null
null
WINDOWS-1251
C++
false
false
9,616
cpp
Stabilization.cpp
// // // #include "define.h" #include "WProgram.h" #include "Stabilization.h" #include "AP_PID.h" #include "mpu.h" #include "MS5611.h" #include "Autopilot.h" #include "GPS.h" #include "debug.h" #include "Balance.h" #include "Prog.h" #include "Log.h" void StabilizationClass::init(){ accXY_stabKP = 0.2f;//0.5 ac...
364e01f7740adb849315254d6da32bd560878af3
7f3d55675a5732501bb2ad0931b73a90b54b5c3b
/fakecoins/grader/fakecoins.h
d8a2c0d3f99ecd25cb5feabe1a75f0fcff02033c
[]
no_license
Alaxe/interactive-training
c4b9e74e1980516277bc4d689f9314dec9c47e0a
0277e3f2401ca4274a45ca1f89fe4556d4e53cb9
refs/heads/master
2021-06-24T07:23:17.898609
2017-09-07T16:06:23
2017-09-07T16:06:23
101,668,300
1
1
null
null
null
null
UTF-8
C++
false
false
151
h
fakecoins.h
#ifndef FAKECOINS_H #define FAKECOINS_H #include <vector> int compare_coins(std::vector<int> a, std::vector<int> b); int find_heavier(int n); #endif
4cf3fc9aea2bc867c6317b4fa9dfa740d8184a82
d43aab4146efe35ca06b06e110c61f5c47e9bc1e
/src/model_detector.h
23dc058fb9506cfb0b5ce085c39593675c60d7dd
[]
no_license
glstr/conversion_ccg
e8981c54540655c2e1f7fc4dac189e667650d747
3dfb37c860ff48ab7bf9e99d09d1bf033642a5f2
refs/heads/master
2020-04-09T11:18:19.930282
2019-05-05T05:52:51
2019-05-05T05:52:51
160,304,964
0
0
null
null
null
null
UTF-8
C++
false
false
110
h
model_detector.h
#pragma once class ModelDetector { public: ModelDetector(void) {} virtual ~ModelDetector(void) {} }
b8cd8779dfcc8d7460324967f431565ff8c9e514
ca03f257af0e4fb6a4afc04b374c4e61db37fa47
/CAFrogger/Game.h
3e9f19ed7a7738fafd8c3bfc7c530b75aaf91e46
[]
no_license
chriscoo/CA-Frogger
42df80d2bb57ab735b3c4ea806b2205a94466d7d
91662ea86ce47e60b40020d232ad000deae021b1
refs/heads/master
2020-03-21T00:53:21.176210
2016-11-22T14:20:00
2016-11-22T14:20:00
74,777,697
0
0
null
null
null
null
UTF-8
C++
false
false
513
h
Game.h
#pragma once #include <SFML\Graphics.hpp> #include "TextureHolder.h" #include "World.h" #include "PlayerControl.h" namespace GEX { class Game { public: Game(); void run(); private: void processInputs(); //real time events(movement) void update(sf::Time dt); void render(); void updateStats(sf::Time dt...
3e209a8e31dcf065a78a327d82aa8dad818ac6d9
96a26094f47d4001202d490d1a1722b4debbf768
/temperature.cpp
44c65407fad36e0d8657f824885dce825c93d3f1
[]
no_license
LeyangYu1996/EC500_IoTControlSys
4d29e769655e3e54d3f3e4e810aa22737c273273
1022fd91aea54c279e97b6333369537a0916ef0d
refs/heads/master
2020-09-07T06:44:52.138227
2019-12-15T18:16:53
2019-12-15T18:16:53
220,689,976
0
0
null
null
null
null
UTF-8
C++
false
false
906
cpp
temperature.cpp
#include <stdio.h> #include <fcntl.h> #include <linux/i2c-dev.h> #include <errno.h> #include <cstring> #include <sys/ioctl.h> #include <unistd.h> #define I2C_ADDR 0x23 int main(void) { while(1){ int fd; char buf[3]; char val,value; float flight; fd=open("/dev/i2c-1",O_RDWR); if(fd<0) { ...
d41c06ffc4957dd787b5ea5481d333a2976b50d6
849bbd9d6a7d1b440375e954f75692c971013d29
/Code/Scripts/LFA/remembrall.cpp
717e3d2cca6e0b723965eda418dbba537bfde034
[]
no_license
fhmourao/remembrallFramework
b410ff5781786bf8557296b04a1437000aeb488c
589a60a30cfc2b29987d23f54acc5c5c7537f308
refs/heads/master
2020-06-26T09:23:51.724448
2017-07-24T00:01:48
2017-07-24T00:01:48
97,011,412
0
0
null
null
null
null
UTF-8
C++
false
false
2,397
cpp
remembrall.cpp
/************************************************************************ remembrall.cpp ************************************************************************/ #include "remembrall.h" int main(int argc, char **argv){ std::string buffer; std::string line; char *outputFileName; std::ofstr...
c0271456a665eacfddf92cd922c370e13f5ffaca
8fbc9b8b88f2a6a1314a1ded44aaea17fa509fb1
/src/libs/librocmdr/inc/util/SplitIndices.h
10a3f1f6c6a4ddbea257babf7bee187fb6dd58ae
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
mfranberg/rocmdr
944d83c567e779f9bf333c4751234f7aed8c40cf
856cd3ce739f5daa91740dfa3448fdba62b3c033
refs/heads/master
2021-01-02T22:38:49.259004
2015-03-05T13:11:17
2015-03-05T13:11:17
2,260,417
0
0
null
null
null
null
UTF-8
C++
false
false
628
h
SplitIndices.h
/* * SplitIndices.h * * Created on: Aug 30, 2012 * Author: fmattias */ #ifndef SPLITINDICES_H_ #define SPLITINDICES_H_ #include <utility> /** * Simple class that represents a range of iterations. */ typedef std::pair<size_t, size_t> Range; /** * Determines which indices a partial iterator with the * ...
dcdff014dd055ca5d4fe1c8f06bae2e09b4dba12
c795e7b8bdd6c081613783bcf210a46f23bf58ef
/BlackJack/player.h
37d59434dbbb1e6a907af4f4a32079f85391eee4
[]
no_license
RohitJhander/ArtificialIntelligence
22f1b09be3496eb6efa64dfc6565a98898b40833
d97f34f229e4d115b3836ed14ed0b68f1d2001d2
refs/heads/master
2020-12-30T13:40:24.252486
2017-05-14T13:26:55
2017-05-14T13:26:55
91,244,371
0
0
null
null
null
null
UTF-8
C++
false
false
527
h
player.h
#ifndef __PLAYER_H_INCLUDED__ #define __PLAYER_H_INCLUDED__ #include <vector> #include <utility> #include "globals.h" // State Space void createStateSpace(); void readDealerMaps(); // Transition vector<transition> getPossibleTransitions(state,action); // Reward double reward(int); // Graph void createGra...
9e0a9fd95accca9376413d4abe178a0cbb972676
23e393f8c385a4e0f8f3d4b9e2d80f98657f4e1f
/gmake-examples/test-DevCppDLL/main.cpp
a75f2e6c6275792edf3279f46d6d5c66d7fbd350
[]
no_license
IgorYunusov/Mega-collection-cpp-1
c7c09e3c76395bcbf95a304db6462a315db921ba
42d07f16a379a8093b6ddc15675bf777eb10d480
refs/heads/master
2020-03-24T10:20:15.783034
2018-06-12T13:19:05
2018-06-12T13:19:05
142,653,486
3
1
null
2018-07-28T06:36:35
2018-07-28T06:36:35
null
GB18030
C++
false
false
740
cpp
main.cpp
#include <Windows.h> #include <tchar.h> #include <iostream> struct IXyz { virtual int Foo(int n) = 0; virtual void Release() = 0; }; extern "C" IXyz* WINAPI GetXyz(); int _tmain(int /*argc*/, _TCHAR* /*argv*/[]) { //_tsetlocale(LC_ALL, _T("")); //std::wcout.imbue(std::locale...
11557b7d345831cd13a0f5b8c58e26aa534c54f0
b63e2b0b963328c33d99f0cd0ea87684bbdb20a6
/Source/AdvGamesProgramming/EnemyCharacter.cpp
b5a7bd9e5d65edb18519f416284cded6d8427821
[]
no_license
SV3N77/Advance-Games-Programming
249ce3857e628c36cf2461280fa07bf2f2eb86af
9d616eec93b8869f3809f83540d4efa9c5a9a73f
refs/heads/master
2023-01-02T20:15:46.016011
2020-11-01T10:54:47
2020-11-01T10:54:47
291,460,336
0
0
null
null
null
null
UTF-8
C++
false
false
8,150
cpp
EnemyCharacter.cpp
// Fill out your copyright notice in the Description page of Project Settings. #include "EnemyCharacter.h" #include "EngineUtils.h" #include "Engine/World.h" // Sets default values AEnemyCharacter::AEnemyCharacter() { // Set this character to call Tick() every frame. You can turn this off to improve performanc...
9e441ea93a0e26ff5a302da8ed58ed325335d361
7a36a0652fe0704b4b27f644653e7b0f7e72060f
/TianShan/ContentStore/CacheStoreImpl.cpp
7e04144e84aab7532e6abe57d95905ab3ddb6ebd
[]
no_license
darcyg/CXX
1ee13c1765f1987e293c15b9cbc51ae625ac3a2e
ef288ad0e1624ed0582839f2a5a0ef66073d415e
refs/heads/master
2020-04-06T04:27:11.940141
2016-12-29T03:49:56
2016-12-29T03:49:56
null
0
0
null
null
null
null
UTF-8
C++
false
false
125,907
cpp
CacheStoreImpl.cpp
// =========================================================================== // Copyright (c) 2006 by // ZQ Interactive, Inc., Shanghai, PRC., // All Rights Reserved. Unpublished rights reserved under the copyright // laws of the United States. // // The software contained on this media is proprietary to and embo...
d952069a6edf9de097b6a9bbe5dc0c2df8638fa2
7a9ab3a236ecf4b2eddb6c4fe4c0c0c333a0fb26
/src/model/factory/include/data_list_factory.h
1781f00667f309693124437e76fa5ad18c055c44
[ "Apache-2.0" ]
permissive
AO-StreetArt/CLyman
d7f2f434551a724c62ea6b80318028992ba2d1ef
b4f3c6fce1c41fb47a6a9d89bb40c05466d0d092
refs/heads/v2
2021-01-24T06:47:20.703805
2019-04-27T01:51:24
2019-04-27T01:51:24
55,323,959
1
0
NOASSERTION
2019-04-17T05:22:39
2016-04-03T01:20:47
C++
UTF-8
C++
false
false
1,346
h
data_list_factory.h
/* Apache2 License Notice Copyright 2017 Alex Barry 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...
6ec1085f57067adee7428eb02e53b50500607937
63ca73071cc8300708f5e1374b45646f8c9f206d
/arduino_app/Controller.h
6951057b3184860f60aa42f6e8e98ada0f0c8303
[]
no_license
bartlettc22/desertviper
427696b5dc437308cf5dcf93f19e1820eff37411
a89dc185b2f971046501451931da01770082572f
refs/heads/master
2021-01-21T04:55:10.722996
2015-07-09T02:50:58
2015-07-09T02:50:58
34,994,918
1
0
null
null
null
null
UTF-8
C++
false
false
6,993
h
Controller.h
#ifndef Controller_h #define Controller_h // Libraries #include <Arduino.h> #include "I2Cdev.h" #include "HMC5883L.h" #include "MPU6050.h" #include <math.h> #include "Kalman.h" #include "SFE_BMP180.h" // Motor Controller PINs // Motor 1 = Rear Wheels // Motor 2 = Front Wheels #define PIN_MOTOR_FRONT_INA 4 #defi...
da978d4b417e472474c1cb4a4babe9201a1a66f6
29b81bdc013d76b057a2ba12e912d6d4c5b033ef
/boost/include/boost/numeric/odeint/integrate/integrate_n_steps.hpp
b00d9c754fb4f1e31c51e6325b45f6da55fd3d2d
[]
no_license
GSIL-Monitor/third_dependences
864d2ad73955ffe0ce4912966a4f0d1c60ebd960
888ebf538db072a92d444a9e5aaa5e18b0f11083
refs/heads/master
2020-04-17T07:32:49.546337
2019-01-18T08:47:28
2019-01-18T08:47:28
null
0
0
null
null
null
null
UTF-8
C++
false
false
129
hpp
integrate_n_steps.hpp
version https://git-lfs.github.com/spec/v1 oid sha256:84372575aaf46943b4fb03b947ec7da511bbe8d18b6029a8499e834d091bd0d4 size 7175
5800143cfb323914df2cc59b1d740398e74f4fc1
867cc5a0a33a87f474f98faa2a91146209febeaa
/webots_ros2_driver/include/webots_ros2_driver/plugins/dynamic/Ros2RGBD.hpp
678d71e3b2fda53bdc6c2dbcb7ce6e605f96f919
[ "Apache-2.0" ]
permissive
cyberbotics/webots_ros2
ab242db5b43ad5248f5324b5a816de31932e2762
e5f890ecff54aa1763e8917980de78a19c093cb1
refs/heads/master
2023-08-26T20:27:52.081847
2023-08-10T13:23:24
2023-08-10T13:23:24
201,006,807
324
130
Apache-2.0
2023-09-12T21:54:39
2019-08-07T08:25:55
C
UTF-8
C++
false
false
1,444
hpp
Ros2RGBD.hpp
// Copyright 1996-2023 Cyberbotics Ltd. // // 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 agr...
c0198986c79984cb488c5381c74915cc62e8678d
b33fb5b0223955ae1ff7ad48688270d2e884d51e
/Library/SimTools/GeometricMGOperations.cpp
eba7125a5d54c7854c05684eb9ba9e1a25f42852
[ "MIT" ]
permissive
OrionQuest/2DFluid
fa0102092eac8bb163b97cd1957f69c4acd9778b
e6872eec78d3f220d3b586998d30a20cd7a9d540
refs/heads/master
2020-07-04T06:08:44.564925
2019-08-13T16:22:33
2019-08-13T16:22:33
202,181,681
1
0
null
2019-08-13T16:17:12
2019-08-13T16:17:11
null
UTF-8
C++
false
false
35,383
cpp
GeometricMGOperations.cpp
#include "GeometricMGOperations.h" #include "tbb/tbb.h" using namespace tbb; Vec2i getChildCell(Vec2i cell, const int childIndex) { assert(childIndex < 4); cell *= 2; for (int axis : {0, 1}) { if (childIndex & (1 << axis)) ++cell[axis]; } return cell; } void GeometricMGOperations::dampedJacobiPoissonSm...
47739e2b000a96d694bc0bcbfb331808e28f4cf9
ba3c3fb341f3f74daba9b301f4972875a0f7f420
/etats.cpp
ec907c7f577c11a0254ba0e777356b2fd73dc1ae
[]
no_license
Grimlix/Labo08_Tresor
3f9f0aa132659c01655c3fb5f3eefb439709e661
6f06cbc30aca3401cba0d2b237eda51a10934735
refs/heads/master
2021-08-28T23:34:32.640270
2017-12-13T08:44:22
2017-12-13T08:44:22
113,027,271
0
0
null
null
null
null
UTF-8
C++
false
false
2,197
cpp
etats.cpp
#include "etats.h" #include "aleatoire.h" #include "carte.h" #include <cstdlib> bool estMort(int nbrePas) { const int pasMaximum = HAUTEUR * LARGEUR; return (nbrePas > pasMaximum); } bool estDansLac(int chercheurs[][Elements::NB_PROPRIETES], int lacs[][Terrains::NB_PROPRIETES], size_t numChercheur...
edd0ab583e9b1193fe36e9f89ce3c91564d60672
04b017097f7f669465ba059f582880a9b64010c4
/tree_serialization_lib/tests/NodeValue.t.cpp
372b403a3c5de0ebb4402cf6bde9b4b5eedfb47d
[ "MIT" ]
permissive
Zenikolas/tree-serialization
c30023c6f4951a39a7453b9979f426660f1ce547
b4ee04a154e2a3f705433cb70a31612d2c69f7f1
refs/heads/master
2023-01-14T13:03:24.237010
2020-11-21T17:43:38
2020-11-21T17:43:38
306,456,912
0
0
null
null
null
null
UTF-8
C++
false
false
1,035
cpp
NodeValue.t.cpp
#include <gtest/gtest.h> #include <netinet/in.h> #include "NodeValue.h" using namespace treesl; //void testBody(NodeValue& value, const std::string& expectedOutput) { // std::stringstream sstream; // ASSERT_EQ(NodeError::SUCCESS, value.serialize(sstream)); // auto [dvalue, errorCode] = NodeValue::deserializ...
a3bd3aae7c15fe742c7cb0664e236233fadd9e3c
2b3f5bdab41f08a690f3d74559bab2a433ab0335
/src/util/vector2d.cpp
6f7977972df3acad8f391991ce8b33a2b27687f9
[]
no_license
drmorr0/PlanetsNuK
1db9bf025216f57a688022b1769514fe823acc7a
9c15758cbae83060b4ba177890a01a9aabee8475
refs/heads/master
2021-01-21T14:43:26.320837
2016-07-05T05:56:02
2016-07-05T05:56:02
58,293,696
0
0
null
null
null
null
UTF-8
C++
false
false
1,148
cpp
vector2d.cpp
// vector2d.cpp: David R. Morrison, March 2014 // Implementation for the 2d vector #include "util/vector2d.h" #include <cmath> Vector2D& Vector2D::operator+=(const Vector2D& rhs) { x += rhs.x; y += rhs.y; return *this; } Vector2D& Vector2D::operator-=(const Vector2D& rhs) { x -= rhs.x; y -= rhs.y; return *this; } ...
0e62a291221bb463ecb0a8e81e5c4d227be3daac
d542e4d4379b305751c3bcc93c796e2fa7495229
/100道题/36.cpp
12cf435b884dbbe62aad1c35ba8a6858ce1c2622
[]
no_license
Yrshyx/C
a51d9e2fa0c7c3cd6962941692fe51cea2c3578f
3e083261fa4f72ced3f98acd368708eb4077b028
refs/heads/master
2020-09-10T14:19:04.060644
2020-02-27T06:55:23
2020-02-27T06:55:23
221,714,092
0
0
null
null
null
null
GB18030
C++
false
false
1,022
cpp
36.cpp
#include <stdio.h> int main() { char a=0,b=0; printf("请输入星期的首字母:"); scanf("%s",&a); if (a=='S'||a=='s') { printf("请输入第二个字母"); scanf("%s",&b); if (b=='a'||b=='A') { printf("\n星期六\n"); }else if (b=='u'||b=='U') { printf("\n星期日\n"); }else { pr...
c772dcc0514862ff86c198c0941cb01cf8b261b2
916b35804291b7755916e839acd085d217aba3dd
/ABC/abc059/a.cpp
2b55d1ead2183aaf2d742ec3f65f58d24289d278
[ "MIT" ]
permissive
EnsekiTT/atcoder
65088869d2934103e22784d689e4b66346144516
6b40332d1b2493d1b6c00c9f1912895a67a3bbcb
refs/heads/master
2021-07-02T20:21:01.931182
2020-10-03T18:15:53
2020-10-03T18:15:53
181,162,050
0
0
MIT
2019-04-15T17:38:23
2019-04-13T11:39:26
C++
UTF-8
C++
false
false
295
cpp
a.cpp
#include<iostream> #include<string> #include <algorithm> using namespace std; int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; char c1 = s1[0] - 'a' + 'A'; char c2 = s2[0] - 'a' + 'A'; char c3 = s3[0] - 'a' + 'A'; cout << c1 << c2 << c3 << endl; return 0; }
cd6d3ee51119f0c79f14e9a77d423a12dbac9322
8a1f074b4f6464986eeea6b443003007a8db4579
/DX11_200216/FrameWork/Render/Model/StaticModel.h
6203773993240974ad5b152721e57ff3b90fcd95
[]
no_license
ljm3994/TeraGame
26719244f670169bf4246d3179fdfa0521fa942c
08f680dec95b6efdf3f533231e46aa879efe6f28
refs/heads/master
2022-11-26T16:26:14.633346
2020-08-04T18:29:51
2020-08-04T18:29:51
285,057,001
0
0
null
null
null
null
UTF-8
C++
false
false
470
h
StaticModel.h
#pragma once class StaticModel : public ModelInstance { vector<StaticMeshDesc*> meshs; D3DXVECTOR3 Min, Max; public: StaticModel(string FileName, string ShaderFile, bool isCollision, UINT instanceCount); ~StaticModel(); virtual void Update(float DeltaTime) override; virtual void Render() override; virtual void...
5093efcbc14a4306936c45cf4b5e0929f0813501
070220e82b5d89e18b93d6ef34d702d2119575ed
/lc7importunix/include/ShadowImporter.h
1e6dafdcf8a42fa3ec98caf53ada5f24494f798a
[ "Apache-2.0", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Brute-f0rce/l0phtcrack
2eb4e51f36fd28c9119269881d5e66e6a6dac533
25f681c07828e5e68e0dd788d84cc13c154aed3d
refs/heads/main
2023-08-19T16:41:06.137715
2021-10-17T01:06:21
2021-10-17T01:06:21
418,568,833
2
0
null
null
null
null
UTF-8
C++
false
false
1,725
h
ShadowImporter.h
#ifndef __INC_SHADOWIMPORTER_H #define __INC_SHADOWIMPORTER_H class ShadowImporter { public: private: friend class ImportShadowConfig; quint32 m_account_limit; ILC7UnixImporter *m_pimp_oldpasswd; ILC7UnixImporter *m_pimp_linux_passwdshadow; ILC7UnixImporter *m_pimp_linux_shadow; ILC7UnixImpor...
d8e5fe2a46a2680c8a8ab35cd20bd2688b55770e
31d65730c038c45c1b231a43c41d3654f88ea8d9
/1949/solve.cpp
5003e5d814f15c2842b1f7a884dd64f934aa4927
[]
no_license
wizleysw/backjoon
383ae80ad3bd5d95cafd4cb1326e9dd5e7ffeba6
6672d9a23171ffeff35d32ca0bd0811e866e6385
refs/heads/master
2021-07-06T15:50:00.290024
2021-04-24T08:46:18
2021-04-24T08:46:18
230,577,840
0
0
null
null
null
null
UTF-8
C++
false
false
1,411
cpp
solve.cpp
// https://www.acmicpc.net/problem/1949 // 우수 마을 // Written in C++ langs // 2020. 08. 25. // Wizley #include <iostream> #include <algorithm> #include <vector> using namespace std; vector<int> VILLAGE; vector<vector<int>> ROAD; vector<bool> VISITED(10001, false); int DP[10002][2]; int N; void getTotal(int pos){ ...
6a1fc5e488f681231c5e3621c706b592c6dacafc
b378d72e949b1ccd0acea75ccbb32018904576a4
/WWW/solutions/135.re
89fea57410f610a9b5964a63c2c5cfd68c440bcc
[ "MIT" ]
permissive
wanatpj/guarana
c1eeef7297fc771919ae362d3323b9fd339f17a7
1a3f95fedca93130698cdcf48668afdf2360d6be
refs/heads/master
2020-04-05T11:43:39.293238
2017-07-08T22:21:08
2017-07-08T22:21:08
81,142,049
0
1
null
null
null
null
UTF-8
C++
false
false
20
re
135.re
1 0 1 0 1 16 1 2868
11282a6b9164b90c7ed38638cd7c82a78ca62650
07e6a99812661a3907d06158ea818372ec9b4a03
/leetcode backtracking51.cpp
42031dd98c5dec3300be513c27b402d7470caf7e
[]
no_license
mjxyiyao/myblog
fcdc2872fde7e3dbae1d9c74111a18dc65ac0340
1bf469ee7d2edd8e7d8c5dd71fe05beba0054805
refs/heads/master
2022-02-20T02:22:06.554293
2019-10-08T07:05:05
2019-10-08T07:05:05
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,097
cpp
leetcode backtracking51.cpp
//Leetcode 51 N-queens class Solution { public: vector<vector<string>> solveNQueens(int n) { vector<vector<string>> res; int dp[n]; //用来记录以前所有行中的列,dp[i]记录的是第i行的第j列 vector<string> temp(n, string (n, '.')); helper(res, temp, dp, 0, n);//从第0行开始,直到递归到第n行结束 return res; ...
8b763e2db6c7b09e01e3068f4b3dd95a67cf7c0b
1cc24932455ba33319b0b8ad07cc41addef31735
/Lab7/Top.h
8bd1d9492199c05807f671a2b82186abb65d9f43
[]
no_license
sbogdasha/kubik
050529e70f51821f163d5da3ec0754c35dc287f8
0f702deed1289e9ae48958aad90dd576dc86948d
refs/heads/master
2021-07-24T18:24:50.042482
2021-01-14T13:09:36
2021-01-14T13:09:36
236,342,947
0
0
null
null
null
null
UTF-8
C++
false
false
445
h
Top.h
#pragma once #include <string> #include <iostream> #include <vector> using namespace std; class Top { public: Top(); Top(char _name); ~Top(); char GetName(); bool AddEdge(Top *t1, Top *t2); void printTop(); int Size(); Top* GetAdjTopByNum(int _num); void Rename(char c); //???????????...
4a5f22f70686c49e90f5a6416430a0044bf8905f
38985b8f8118646a93f24bce8778fade1a8ae05a
/Game/OgreExhibition/source/CreationState.cpp
636bcc6e53d5477bff519d3f1c46b7ac0959afa9
[]
no_license
whztt07/OgreFireworksimulation
838cc0b8dbbc72b698c85706b9c726cbcacef53a
4f8e832ae6f01a0d3c0c50dd0deb8af3e2e2535a
refs/heads/master
2021-01-17T11:03:41.922671
2014-05-11T08:48:57
2014-05-11T08:48:57
null
0
0
null
null
null
null
UTF-8
C++
false
false
19,761
cpp
CreationState.cpp
#include "CreationState.h" #define HUMAN_CHARACTERS false //----------------------------------------------- CreationState::CreationState() { mQuit = false; mFrameEvent = Ogre::FrameEvent(); mLMouseDown = false; mRMouseDown = false; mMoveScale = 0.0f;...
183d7f1ebc3ba70d7ca087de2d8178166ca7f57b
5f1e63a3c044c1ef391d43167b236f426172d35b
/solutions/0322.coin-change/coin-change.cpp
838da1de70fd9aac523b22e7c769f8cde7911df8
[ "MIT" ]
permissive
mjl20130901/LeetCode-CPP-Solutions
3a1cc5a93ad6efbd95b95594783ec5d456572d7b
57cac895a0747545e63f79a28619610ff301c2d9
refs/heads/master
2020-07-07T11:45:22.712961
2019-08-18T08:55:00
2019-08-18T08:55:00
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,292
cpp
coin-change.cpp
/* * @lc app=leetcode id=322 lang=cpp * * [322] Coin Change * * https://leetcode.com/problems/coin-change/description/ * * algorithms * Medium (31.16%) * Likes: 1986 * Dislikes: 78 * Total Accepted: 218.6K * Total Submissions: 700.9K * Testcase Example: '[1,2,5]\n11' * * You are given coins of dif...
e198cc6cbb98cfd4a18bb679760d92bb875ce306
ea401c3e792a50364fe11f7cea0f35f99e8f4bde
/hackathon/atlas_builder_release/pointcloud_atlas_builder_plugin/dialog_pointcloudatlas_build_atlas.cpp
ae6490f76a27bd1c2c9a9ebf318b1ec3cf859abb
[ "MIT" ]
permissive
Vaa3D/vaa3d_tools
edb696aa3b9b59acaf83d6d27c6ae0a14bf75fe9
e6974d5223ae70474efaa85e1253f5df1814fae8
refs/heads/master
2023-08-03T06:12:01.013752
2023-08-02T07:26:01
2023-08-02T07:26:01
50,527,925
107
86
MIT
2023-05-22T23:43:48
2016-01-27T18:19:17
C++
UTF-8
C++
false
false
7,613
cpp
dialog_pointcloudatlas_build_atlas.cpp
/* * Copyright (c)2011 Fuhui Long (Janelia Farm, Howard Hughes Medical Institute). * All rights reserved. % Jan 20, 2012 */ #include "dialog_pointcloudatlas_build_atlas.h" #include <QtGui> #include <QFileInfo> #include <QFile> #include <QFileDialog> // ----------------------------------- // functions of th...
7ce986510e5a8a65c34cd4ee84ca617a3c38323a
3b379f81604986b5768a4420632ed1c27ce98242
/leetcode216.cpp
90355c5c9ac2b8700fce5cfffc8481137331e477
[ "MIT" ]
permissive
SJTUGavinLiu/Leetcodes
a7866e945d5699be40012f527d2080047582b172
99d4010bc34e78d22e3c8b6436e4489a7d1338da
refs/heads/master
2021-07-24T03:26:56.258953
2020-07-19T03:59:09
2020-07-19T03:59:09
199,461,174
0
0
null
null
null
null
UTF-8
C++
false
false
941
cpp
leetcode216.cpp
class Solution { vector<vector<int>> res; vector<int> tmp; public: bool helper(int beg, int remain, int num) { //cout << beg << '\t' << remain << '\t' << num << endl; if((19-num)*num < 2 * remain) return true; if( (9-beg+1) < num) return false; if(num == 1) { ...
5169137a1e696001941e35920ea63d50740b4ec4
8f562df81e7c5adef7762f8e24eff85724812c20
/include/DebugProtocolServer.hpp
be950cafbed40b68e27021a3a2d895d4688f1777
[ "MIT" ]
permissive
advpl/vscode-debug-protocol-cxx
f2b9b57d8c3c3e10c9342b30d6f3fa202144eb56
f0221e9c13b3f1a01774eb1edc3348cd18261630
refs/heads/master
2022-08-04T12:34:28.491304
2022-07-26T19:56:18
2022-07-26T19:56:18
106,063,297
2
2
MIT
2020-02-05T13:49:54
2017-10-07T01:26:31
C++
UTF-8
C++
false
false
476
hpp
DebugProtocolServer.hpp
#ifndef DEBUG_PROTOCOL_SERVER_H #define DEBUG_PROTOCOL_SERVER_H #include <boost/asio.hpp> #include <boost/array.hpp> #include <boost/algorithm/string.hpp> #include <boost/lexical_cast.hpp> #include <boost/utility/string_ref.hpp> #include <iostream> #include <chrono> #include <thread> #include "JSONRPCDispatcher.hpp" #...
431ae90e364fc08c2bcd119e8932df2d0e337346
197669277d60179aab8a52046f7a589a651e7709
/P2/src/nBitSubtractor/main.cpp
c77b32263640f1a2fe4b6a2d0368505815556e9b
[]
no_license
jamesstocktonj1/AdvancedProgramming-1204
6f14f2ee5e7f36b666c0e8de829589c73a495525
2563e0226d79f3b32ce3e2a93d77da240766b9eb
refs/heads/main
2023-05-08T21:38:51.501001
2021-05-16T11:42:26
2021-05-16T11:42:26
367,864,377
1
0
null
null
null
null
UTF-8
C++
false
false
2,781
cpp
main.cpp
#include <iostream> #include <math.h> using namespace std; #define N 8 bool AND(bool a, bool b); bool OR(bool a, bool b); bool XOR(bool a, bool b); void printState(bool n); void printBin(bool n); void printByte(bool *n); bool readBit(void); void readNum(bool *bin); bool readSymbol(void); void halfAdder(bool a...
c6a854b5ee62409207b502b1641f0c3642504487
82af875dd6ae85907c4bceed23c872e4f5c42aa6
/Code/Try/096/096/096.cpp
b0bd4a32dfd4eeacba3c6f428295a1de04e348b6
[]
no_license
L41homebisee/LearnCpp_LanguageWithZeroFoundationMRKJ
74cb77c4f79fcf6d5cd0326222b875a11dfaca4b
aae958412c6796a4a8ea385c88d4b13c6047c102
refs/heads/master
2023-03-17T16:09:17.047090
2021-03-02T13:19:26
2021-03-02T13:19:26
null
0
0
null
null
null
null
GB18030
C++
false
false
755
cpp
096.cpp
// Try.cpp : Defines the entry point for the console application. // #include <iostream> /* 假设数字0表示灯泡没亮,数字1表示灯泡亮着,有6个灯泡排列成一行组成一个以为数 组a{1,0,0,1,0,0},查找倒数第一个亮着的灯泡位置,并显示该灯泡前一个灯泡是否亮着。 */ using namespace std; int main(int argc, char* argv[]) { int a[6] = { 1,0,0,1,0,0 }; int indexLast; for (indexLast = 5; indexLa...