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
2fb063bd2209e7af2fa0089033e2f098aefe88e5
da3f876568388ffb338a454b6834a60cfe9411fa
/misc_coding_chllenges/KClosestPointsToTheOrigin.cc
704d22a9ee701bd1bb4e39332186e07f434f7bca
[]
no_license
misgeatgit/weekly-cs-pills
0bac372a361cf13134bc98c192bd9ea1a5848a92
35fc620c439bb63ac2677371e3be139fced1e1ae
refs/heads/master
2022-02-28T01:05:16.890712
2022-02-06T17:57:30
2022-02-06T17:57:30
16,371,878
0
0
null
null
null
null
UTF-8
C++
false
false
2,384
cc
KClosestPointsToTheOrigin.cc
#include <algorithm> // std::make_heap, std::pop_heap, std::push_heap, std::sort_heap #include <cassert> #include <cmath> #include <iostream> // std::cout #include <map> #include <vector> // std::vector using PointList = std::vector<std::pair<float, float>>; PointList closest(PointList& points, int k) ...
76d035d0110fbc574a06dcb6a5b12e6f457746c7
544f189f630972e13f57cbb53d95d7c47932ea72
/Software/WindowAddCar.h
3b7ad29e6770ead95219df315f4a0f59c9d4b25b
[]
no_license
martro/RoboDriftSensors
a81cd55a69d9310970673e89dbcfc3447902ce4f
707ab48ad358b078f494ccfe687cba682a921756
refs/heads/master
2016-09-03T00:41:17.025916
2014-07-04T15:17:51
2014-07-04T15:17:51
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,087
h
WindowAddCar.h
#ifndef WINDOWADDCAR_H #define WINDOWADDCAR_H #include <QWidget> #include "team.h" #include <QMessageBox> #define YES 1 #define NO 0 namespace Ui { class WindowAddCar; } class WindowAddCar : public QWidget { Q_OBJECT public: explicit WindowAddCar(QWidget *parent = 0); ~WindowAddCar(); void buttonsD...
e4e89a290d427b9cc99cc992ad9770b963ebcbdf
683845c85e657040b7761953b532e00bc163f681
/Gait Control Treadmill/Gait_Control_Treadmill_Arduino/Gait_Control_Treadmill_Arduino.ino
548c22f9b0180265f7ac0e4ec9e2871ccdf09b87
[]
no_license
yewhen/Gait-Controll-Treadmill
6cfd0d2ea0621e49563e9d8cffbff5dc8450ce9d
83cbf440b61efcf6de9b0c6f4cfe7272f447ddfe
refs/heads/master
2020-05-16T08:56:09.727039
2019-04-25T17:49:01
2019-04-25T17:49:01
182,929,642
0
0
null
null
null
null
UTF-8
C++
false
false
3,025
ino
Gait_Control_Treadmill_Arduino.ino
#define NUM_SENSOR 3 #define FREQ 5000 #define PRESCALE 64 #define SIZE 10 #define CENTER 50.0 struct table{ int trigPin; int echoPin; float prev_dist[SIZE]; int next; }; typedef struct table sensor; sensor sensors[NUM_SENSOR]; void PWM_Init(){ pinMode(3, OUTPUT); pinMod...
1567300dfb5ba04b07015428fffc44bfaf0bb1e1
4bf56e77232d75698092202ff89af7508b885d58
/codingame/medium/custom_game_of_life.cpp
f89338d80b6454eecca55978303fe6c69d45773d
[]
no_license
mandyedi/coding-challenge-solutions
f30c8858206b9b0f0b124c134128ce5331b7d94e
4871471166485254db9391460e75f3351d904a0f
refs/heads/master
2023-03-04T08:35:17.521820
2023-02-26T19:08:26
2023-02-26T19:34:56
168,693,875
0
1
null
null
null
null
UTF-8
C++
false
false
2,022
cpp
custom_game_of_life.cpp
/* Title: Custom Game of Life Tags: medium, conditions, loops, lists, simulation, 2D array */ #include <iostream> #include <string> #include <vector> using namespace std; bool isAlive(char cell, const string &ruleAlive, const string &ruleDead, unsigned int numberOfNeighbours) { if (cell == 'O') { return ...
3c3efa311aacf5a0008a39e55b0d96c0ddebea1e
eabd61098aaf04845cc09af6a281b4f64bf7a7ba
/dialog_site.h
512461e51869c62c074f69563ed5c509aa2675f1
[]
no_license
lightjameslyy/hefei_project
c1e1c37335e0f182efe7eff07273f45c23adf9cb
4d1d03a2f197411c5219c2402b4298242b562b88
refs/heads/master
2021-01-10T08:42:32.935937
2016-01-24T01:34:25
2016-01-24T01:34:25
48,563,205
0
1
null
null
null
null
UTF-8
C++
false
false
574
h
dialog_site.h
#ifndef DIALOG_SITE_H #define DIALOG_SITE_H #include <QDialog> namespace Ui { class Dialog_Site; } class Dialog_Site : public QDialog { Q_OBJECT public: explicit Dialog_Site(QWidget *parent = 0); ~Dialog_Site(); QString getLontitude(); QString getLatitude(); private slots: ...
dea17c640bd62413b5d8d9de754533c96c8fba73
adb868ec4c9f54e4366dde9259fad77e358f6338
/engine/src/blueprint/node_registrar.hpp
563aa88690714cbea9c94a34b247ef2670cba3ad
[]
no_license
SymmetryLabs/electrify
41099c2013cb7560fa79836e2de9b13c5ade3d64
46ef45c7728abc2f7986b467c32c0c7fda741706
refs/heads/master
2021-05-31T12:10:47.608053
2015-11-14T03:22:37
2015-11-14T03:22:37
35,977,776
0
0
null
null
null
null
UTF-8
C++
false
false
400
hpp
node_registrar.hpp
template <template <typename> class NodeType, typename HandleType> void NodeRegistrar::registerNode(const string& name) { nodeHandleFactories[name] = [=] { return makeNodeHandle<NodeType, HandleType>(name); }; nodeFactories[name] = [this] (NodeHandle& handle_) { auto& handle = dynamic_cast<H...
2279305b88a5cd1335b90c8e4adb2eee6db3052c
ec6bdecc2bfa2512749d8fde4a416963dc261c49
/MS100/T45sum/main.cpp
27cef09338c65e40a83a1d01d5d7876be08d9daa
[]
no_license
winnerliang/lab
5c8f9cbe656d6e5a7c254fd2f999041d90a79d80
7a2319c7dba341eb8cd4fb41be9bdb75fb11b2a9
refs/heads/master
2021-01-01T19:29:49.527186
2015-07-09T12:32:56
2015-07-09T12:32:56
35,706,721
1
0
null
null
null
null
UTF-8
C++
false
false
1,007
cpp
main.cpp
#include <iostream> using namespace std; void choosingsort(int pData[], int n) { for(int i=0; i<n-1; i++) { for(int j=i+1; j<n; j++) { if(pData[i] > pData[j]) { int t= pData[i]; pData[i]=pData[j]; pData[j]=t; }...
72d60b3eeb26908c1a4c40702f164df631b2d832
6c0205bfbd2ea18feb878707d84bb1640d2ea730
/string/22.h
33bc76006fb931ac8fdfe654ee2ab7952fba7aa6
[]
no_license
wangqc/leetcode_test
473128b1d87b5c99d5eb1fb3d837d40886dca52d
77267f164d8bfbfe5cd97804b9aa0cbf5e753672
refs/heads/master
2023-04-19T21:09:18.709790
2021-05-17T07:07:29
2021-05-17T07:07:29
277,086,393
0
0
null
null
null
null
UTF-8
C++
false
false
974
h
22.h
// // Created by 王秋城 on 2021/1/23. // #ifndef LEETCODE_TEST_22_H #define LEETCODE_TEST_22_H #include "../common.h" class Solution { public: vector<string> generateParenthesis(int n) { if (n == 0) { return vector<string>(); } vector<string> parens; string cur_str = ""; ...
ade543cce822fe9e6c2e4f43cd6e425ce765f88d
992fac678baa45e973e796e97eb29669331ba89f
/lib_graphd/test/GraphPropertyTest.cpp
51f3d3fd3f95243c3abcc51b030f898c71797ab9
[ "BSD-3-Clause" ]
permissive
jlothian/INDDGO-survey
2ae4deac18f6260ff365748c9196809b43913f78
5d76352bed15151ba3f597355038b7e8d5b0e6f3
refs/heads/master
2021-01-17T16:22:23.057797
2014-07-29T13:34:35
2014-07-29T13:34:35
8,298,313
0
1
null
2014-01-08T15:40:18
2013-02-19T20:08:30
C++
UTF-8
C++
false
false
5,262
cpp
GraphPropertyTest.cpp
/* This file is part of INDDGO. Copyright (C) 2012, Oak Ridge National Laboratory This product includes software produced by UT-Battelle, LLC under Contract No. DE-AC05-00OR22725 with the Department of Energy. This program is free software; you can redistribute it and/or modify it under the terms o...
c853b590f96893a95c12bcd6995d8ee11745793c
717fecbf3f8211f8b26ef447a5cf26123d5db535
/esp8266-env/Sketchbooks/03_ESP8266/FS_format/FS_format.ino
33d41eeffbeec6db8dffe6f802f08a9cf2e632df
[]
no_license
sensorthai/Arduino
82dbc3dd73e3a6802939d8209507fba4b685e22d
04212902ff3ef6d34634763bbc097d726537e290
refs/heads/master
2021-01-07T08:20:11.416789
2020-02-14T09:00:33
2020-02-14T09:00:33
null
0
0
null
null
null
null
UTF-8
C++
false
false
461
ino
FS_format.ino
#include <FS.h> //this needs to be first, or it all crashes and burns... void setup() { // put your setup code here, to run once: delay(1000); Serial.println("...."); delay(1000); Serial.println("...."); delay(1000); Serial.println("...."); Serial.println("Start to clean...."); SPI...
09ccde5e7e30dc0879e592754eea714971edbdcb
f44ccf38e8bb1fe3e1e4ec01789a74976f4d7531
/cadre/Pixels.cpp
854bf230bd2a9ca6b93702776f0b3fe7472c34f0
[]
no_license
ymilord/CadreCouleurs
c3b9b3fe45993d983156576eb982098427f4d09d
cb3b9ad92af440d585428b4d69ca84502ee3cbd0
refs/heads/master
2021-01-16T19:35:01.748414
2014-11-02T21:16:09
2014-11-02T21:16:09
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,577
cpp
Pixels.cpp
#include "Pixels.h" void Pixels::begin() { // Cut power pinMode(powerPin, OUTPUT); digitalWrite(powerPin, LOW); // Initialize the strip strip.begin(); // Disconnect the data pin (start as off) pinMode(dataPin, INPUT); digitalWrite(dataPin, LOW); } void Pixels::switchOn() { if (!isOn) { // Pow...
688d420a5dcc2ea860a415ad8f4bf3e92d394766
cf58d74018ed456f6a2ec9e9d83ccd4ba41e5a47
/Interview Bit/max_continuous_series_of_1s.cpp
58d8665b8954d582d4dc0918bdfaf75c8d9ae72b
[]
no_license
jaishreedhage/Competitive-coding
b0e2a8331e69e044f4b537102b17d3d9a923d985
df57007a011a10f46e4cceb99a3aca6bc71f1982
refs/heads/master
2021-07-14T13:05:13.674795
2017-10-20T06:19:57
2017-10-20T06:19:57
107,639,988
1
1
null
null
null
null
UTF-8
C++
false
false
929
cpp
max_continuous_series_of_1s.cpp
vector<int> Solution::maxone(vector<int> &A, int B) { // Do not write main() function. // Do not read input, instead use the arguments to the function. // Do not print the output, instead return values as specified // Still have a doubt. Checkout www.interviewbit.com/pages/sample_codes/ for more det...
7f5bb1b8cb05882231deca409dc5014990846bd5
959a1afd9c7604b80c55f820e84aed424fd0423d
/include/KObject.hpp
5558c4f86e3308acf4e9e73110209d468c293539
[]
no_license
julienfortin/Keepi
7920d5b8b33df8bc3a93973659eff8a9691de158
16db6c79190911e0ed4f5866498c53cb8beced41
refs/heads/master
2020-04-30T10:43:39.720257
2015-05-19T10:29:05
2015-05-19T10:29:05
35,872,543
1
0
null
null
null
null
UTF-8
C++
false
false
1,012
hpp
KObject.hpp
// // KObject.hpp <Keepi> // // Made by Julien Fortin // contact <julien.fortin.it@gmail.com> // #ifndef __KOBJECT_HPP__ #define __KOBJECT_HPP__ #include "KInteger.hpp" #include "KString.hpp" #include "KDouble.hpp" #include "KBool.hpp" class KObject { private: KObject(); void __init(); KInteger* __integer; ...
6590d7ed9f0d23b56dac3a7387e0a79bfec51294
605c89c38d3729e623a409979080913c0674ef7f
/spriteforest-x/base/SFSprite.cpp
9e9d66dc4737782f7fbf15437b8e04050ce6df4f
[ "MIT" ]
permissive
moky/SpriteForest
02080ceb816492fc718e0c00b772e49b74e8c99a
b88f2be74a14157e9b25c2295f0efc7c516446b5
refs/heads/master
2021-01-18T20:29:38.450925
2014-04-28T03:33:06
2014-04-28T03:33:06
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,935
cpp
SFSprite.cpp
// // SFSprite.cpp // SpriteForest-X // // Created by Moky on 12-11-24. // Copyright 2012 Slanissue Inc. All rights reserved. // #include "SFSprite.h" #include "SFScene.h" using namespace std; NS_SF_BEGIN USING_NS_CC; USING_NS_CN; SFSprite::SFSprite(void) : CNSprite() , m_pTextures(NULL) , m_pEventDelegate(NU...
4108fa8a126139ec65fe953e27c720d22828d4fe
ac2477bbfe7b5d266f20e07e0d65bf6b20c5960f
/09-multi-file-project/main.cpp
738d3c0467b1c23b539702f18ca36f4053c9445f
[]
no_license
Dan77721/cpp-basics
09267cd82b31fa2b7d450d953e16feb7c2efe000
7b45885f28e4ec18bf6ecfbf9fa30b5df01ed1be
refs/heads/master
2020-03-30T21:04:10.291459
2018-12-15T08:06:25
2018-12-15T08:06:25
151,615,548
1
1
null
null
null
null
UTF-8
C++
false
false
1,094
cpp
main.cpp
#include "functions.h" int main() { const int kArraySize = 10; double arr[kArraySize] = { 3, -7, 1, 0.1, -.9, 8, -6, .2, -5, .4 }; cout << "Initial array:\n"; PrintArray(arr, kArraySize); cout << endl; cout << "\nSum of negative elements = "; if (NegativeElementExists(arr, kArraySize)) ...
1967758dec86a379b781a78660d94113a4b32d93
dfa21196cfe7f567ec2aacf3f64f632f776182aa
/Physics Simulations and AI/linreg.h
73773115b775da9b0dce11bb6d9f7c2cc0b18ea5
[]
no_license
lukedigiovanna/Physics-Simulations-and-AI
bda337a389bbc53235a6b6034659559174dede95
11cd4be3d9cf5d424ce0b0385157039672b3f898
refs/heads/master
2023-04-23T00:48:00.742061
2021-05-13T19:35:19
2021-05-13T19:35:19
362,229,830
2
0
null
null
null
null
UTF-8
C++
false
false
282
h
linreg.h
#pragma once class LeastSquaresRegression { private: float slope, intercept; public: LeastSquaresRegression() : slope(0), intercept(0) {} void fit(float data[][2], int n); // fits the model to the data float predict(float x) const; float getCost(float data[][2], int n); };
c0b831ad6b60dd794f949cb5b2e4ee3ce5394dc1
80ba855a2dc8ff6dc6370d0d563563099506ff3d
/PSME/agent/rmm/src/discovery_thread.cpp
10ace4a94ca567ff12cd45d9f353272ffd328d05
[]
no_license
bobpiece/intelRSD
2765048802a3cc6495ae79de1734664fa0c018be
9b4f4454fd5ca8fb15cef85624066c7e9bd40905
refs/heads/master
2021-04-12T08:20:39.929047
2017-12-22T08:23:34
2017-12-22T08:23:34
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,375
cpp
discovery_thread.cpp
/*! * @header{License} * @copyright Copyright (c) 2017 Intel Corporation. * * 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 requir...
c75c6fbcde5de9a6ce57139659ade510c944657e
a7012a0915f593e0f8ef2732a22ddf4bfc732e05
/chores.cpp
69be381007ebe7655a7ec5e158259540cb497e9c
[]
no_license
Pratipkhandelwal/C-codes
fce733625f623154ee35a32d702f6a49dc7d41bf
6774d6ad7fac2f986bd043725cc53f1d73ca76c7
refs/heads/master
2021-08-09T01:30:57.036427
2017-11-11T20:15:36
2017-11-11T20:15:36
110,087,167
0
1
null
null
null
null
UTF-8
C++
false
false
290
cpp
chores.cpp
#include<stdio.h> int main() { int n,x,k,i,j,sum=0,arr[1000]; scanf("%d %d %d",&n,&k,&x); for(i=1;i<=n;i++) { scanf("%d",&arr[i]); } for(i=1;i<=n-k;i++) { sum=sum+arr[i]; } for(j=n-k+1;j<=n;j++) { sum=sum+x; } printf("%d",sum); return 0; }
e34bc1b0ceee8ad19cca0782113f386a2f45e8a9
4fda1442badf855d42a9b2e33eb24d41f04907c9
/decorator/decorator.cpp
7b40f44eccb4f8f8e36a464083cee3c52aa64bb0
[]
no_license
iloveooz/patterns
31e4e1d91816cb3f2e992d251bac946360db774d
19f18b66d7ceb6e92ce10a28296cb06c2400ae7c
refs/heads/master
2021-08-07T07:58:29.499959
2021-06-28T15:07:51
2021-06-28T15:07:51
166,633,469
0
0
null
null
null
null
UTF-8
C++
false
false
976
cpp
decorator.cpp
#include <iostream> #include <memory> class IComponent { public: virtual void operation() = 0; virtual ~IComponent() = default; }; class Component : public IComponent { public: void operation() override { std::cout << "World!" << std::endl; } }; class DecoratorOne : public IComponent { std::shared_ptr<ICompon...
25fde8f494afdf24de3421641ad7f25e990d07a2
b16b15aac2467637aab75fa89a43318e858456d2
/src/rcs-xn.cpp
10d14946725657a813c0a3e618046e9dd4c5100b
[ "Apache-2.0" ]
permissive
kmzbrnoI/rcs-lib-XpressNET-qt
a26e0636a7300eb962e16695c28cc4c236dcd34d
0e0881229678eec231259d523f4dcd40def14c0a
refs/heads/master
2023-08-03T21:47:03.905751
2023-06-11T08:44:19
2023-06-11T08:44:19
196,273,881
1
0
null
null
null
null
UTF-8
C++
false
false
24,639
cpp
rcs-xn.cpp
#include <QSettings> #include <QTimer> #include <algorithm> #include <cstring> #include "errors.h" #include "rcs-xn.h" namespace RcsXn { AppThread main_thread; RcsXn rx; /////////////////////////////////////////////////////////////////////////////// RcsXn::RcsXn(QObject *parent) : QObject(parent), f_signal_edit(si...
ccf7dd3f2677bc3c53f77014b61f9c5154845176
3c10c78c405f1491a6364cde2693d82da06fb1fc
/util/include/util/final_action.hpp
9a698264067bd9cc42cf478f6a9fd30e3d6bec01
[ "MIT" ]
permissive
akowalew/mill-opengl
ba68bd32bd3a3e31f5130666f2c9f1c978653e4d
91ef11e6cdbfe691e0073d9883e42c0a29d29b45
refs/heads/master
2020-04-18T14:40:58.749644
2019-01-23T19:49:51
2019-01-23T19:49:51
167,595,247
0
0
null
null
null
null
UTF-8
C++
false
false
792
hpp
final_action.hpp
#pragma once #include <utility> namespace util { template <class F> class final_action { public: explicit final_action(F f) noexcept : f_(std::move(f)), invoke_(true) {} final_action(final_action&& other) noexcept : f_(std::move(other.f_)), invoke_(other.invoke_) { other.invoke...
fdd799d07f126474bea67a20269d79fd203afff7
94de694fa6c72a76776823baef2ddce51e0362ab
/HW 5/EX 11.3/EX 11.3/Capacity.h
ba705cd9353e2e1a3a13c343f6f1b1eb103b9f29
[]
no_license
sfisher19/CS-172-1
2c8ece146cc41bf98005272193f711ee37df47c0
75e59009584c68d3ee31ec069256925f5c543259
refs/heads/master
2021-01-21T13:20:58.574654
2016-04-28T20:26:33
2016-04-28T20:26:33
52,548,875
0
0
null
null
null
null
UTF-8
C++
false
false
462
h
Capacity.h
//Shaun Fisher //03-31-2016 //HW 5: EX 11.3 //CS 172-2 #include <iostream> using namespace std; int doubleCapacity(const int* list, int size) { static int doublesize = size * 2;//doublesize equals the quantity of size times 2. int* list = new int[doublesize];//The new size of the array is doublesize. ...
85c6db37b22c685f051f601ee975aa62fc8e7e39
94fe71250ff7b9dcaa73403ac038ec846a5c7db6
/app/src/main/cpp/FFResample.cpp
186d402d5d75a731915d3e77ee6069c7673948c9
[]
no_license
lineagech/AndroidVideoPlayer
384ffa6b8fb22e7c4b474aa1f227d86c16b2b93b
35a894b1838184992539f7e52e63d464dc71a182
refs/heads/master
2020-03-27T07:04:50.169221
2018-11-20T14:22:43
2018-11-20T14:22:43
146,161,026
0
0
null
null
null
null
UTF-8
C++
false
false
2,027
cpp
FFResample.cpp
// // Created by Chia-Hao on 2018/8/28. // extern "C" { #include <libavutil/channel_layout.h> #include <libswresample/swresample.h> #include <libavcodec/avcodec.h> } #include "XLog.h" #include "FFResample.h" void FFResample::Close() { mutex.lock(); if( actx ) swr_free(&actx); mutex.unlock(); } bool FFRes...
4c169b187352e3fe24eff6603163a375f51c84da
dc26f6837a5965c3605ba3fe17f998a9f36db366
/CS432ProjectOne/simpleMain2.cpp
f352d8412e714cc4b46407f7fdb0fad41c3f27a4
[]
no_license
danielehmig/3DHouse
b669fbc1df9e1ebc61b9f343bf7e65725db040d3
b1838e168bad383782df7cb223ca7f56ac8b79d0
refs/heads/master
2021-01-20T21:24:05.729992
2015-04-19T21:34:49
2015-04-19T21:34:49
34,222,110
1
0
null
null
null
null
UTF-8
C++
false
false
9,773
cpp
simpleMain2.cpp
#include <cassert> #include <iostream> #include "cs432.h" #include "vec.h" #include "mat.h" #include "matStack.h" #include "picking.h" using namespace std; //==================================================================================== #define TICK_INTERVAL 50 static void myCallback(int code) { cout << "cal...
36c220e6e30b80622749791d1c8e748b71387bd2
ac7c2f1630e41a65563b236177951725bb25739d
/oop_ex4/ImageButton.cpp
3aea76f478844fcfe9d9227c3e0a64960024ac9f
[ "Apache-2.0" ]
permissive
MatanelAbayof/Bomberman-Level-Editor
59a23681ae15fe84649aeb04200340987164d842
80919a6d47a174f1abf3771c76134b247937cd81
refs/heads/master
2023-01-18T17:38:09.091632
2020-11-22T08:37:04
2020-11-22T08:37:04
290,765,622
0
0
null
null
null
null
UTF-8
C++
false
false
1,115
cpp
ImageButton.cpp
//---- include section ------ #include "ImageButton.h" ImageButton::ImageButton(RenderWindow &window, const ImageTexture &imageTexture, const string &text) : VerticalLayout(window), m_image(window, imageTexture), m_text(window, text) { initComponents(); } void ImageButton::setImage(const ImageTexture &imageTexture)...
f8137c6c6169bb48bf695ec6720a8f51a7d2d698
578db620afd29cc8942ce9ad6436e9ceb53984bc
/contracts/platform/platform.cpp
1572740eb9ffc7cf7586a9a94227ef646c0f20d7
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
dendisuhubdy/snax
5b77f963c84b5c924147dc1fb715bdbda77df77d
a40402c9dc297a87f154ef39d8ebf04e5beeb0c1
refs/heads/master
2020-06-06T00:25:58.461651
2019-06-05T10:56:56
2019-06-05T10:56:56
192,587,142
0
0
MIT
2019-12-09T07:14:37
2019-06-18T17:45:20
C++
UTF-8
C++
false
false
22,076
cpp
platform.cpp
#include "platform.hpp" using namespace std; namespace snax { /// @abi action initialize void platform::initialize(const string name, const account_name token_dealer, const string token_symbol_str, const uint8_t precision, const account_name airdrop) { require_au...
5ec9d0c9236c0826e3c988946ebfe3c937f90289
6c015426302feda2c29721a7e3039b89883fd0cd
/programmazione 2/cms/hanoi.cpp
75750f728268439868fa02562f1f44402c781c40
[]
no_license
FoxAlex98/UniCT
9e59aeacb88d604d2783436b86fd134a63701445
3582d97d85953b153651f247c52db9007336667d
refs/heads/master
2020-09-08T06:53:08.083163
2019-11-11T19:11:37
2019-11-11T19:19:00
221,051,474
2
0
null
null
null
null
ISO-8859-10
C++
false
false
1,437
cpp
hanoi.cpp
#include<iostream> #include<fstream> #include<cstring> #include<cstdlib> using namespace std; int p=0,inizio=0,fine=0;//p numero del passo void hanoi(int disk, int start, int end, int free, int m); int main() { ifstream in; ofstream out; in.open ("input.txt"); out.open("output.txt"); in...
cdf1d66f83da1368bba405a6c3f897e547e51bab
23b7056335399c247b363d66fd03ba3273feebd9
/src/xmlBuilders/IxmlEngineFactory.h
222bad0c629f00563c0ec0f546a9685d27034633
[ "BSD-3-Clause" ]
permissive
fermi-lat/GlastClassify
9a1af6a482230aefc3eb58a759f5837cdcf1ed2e
c679a507f457c12d9014b8c47dbdb8fa8b256ad9
refs/heads/master
2022-02-17T03:14:33.165144
2019-08-27T17:27:47
2019-08-27T17:27:47
103,186,870
0
0
null
null
null
null
UTF-8
C++
false
false
875
h
IxmlEngineFactory.h
/**@file IxmlEngineFactory.h @brief declaration of class xmFactoryBase @author T. Usher $Header: /nfs/slac/g/glast/ground/cvs/GlastClassify/GlastClassify/xmFactoryBase.h,v 1.1 2005/11/04 23:19:05 usher Exp $ */ #ifndef IxmlEngineFactory_h #define IxmlEngineFactory_h #include <xercesc/util/XercesDefs.hpp> XERCES_CP...
2c35bf01f8c47312fe65c63bb3f5220469e79115
adf253ebc9c3bb326a727d87ba2e071ded76d608
/wallet/qt/newstakedelegationdialog.cpp
74d358002f3929592d41fc4ba605b5e8cf1c5738
[ "MIT" ]
permissive
NeblioTeam/neblio
5e0da815df7f1d69d04090fe5e7fed2445962dce
cebf9fcb1fb4e9935fcfdf459d5185488a2c04e5
refs/heads/master
2023-05-01T20:35:36.266611
2023-03-02T07:31:07
2023-03-02T07:31:07
98,357,215
143
71
MIT
2023-04-19T10:07:40
2017-07-25T23:06:34
C++
UTF-8
C++
false
false
17,705
cpp
newstakedelegationdialog.cpp
#include "newstakedelegationdialog.h" #include "base58.h" #include "bitcoinaddressvalidator.h" #include "bitcoinunits.h" #include "coincontrol.h" #include "coincontroldialog.h" #include "coldstakedelegation.h" #include "guiconstants.h" #include "init.h" #include "main.h" #include "messageboxwithtimer.h" #include "wall...
b8e0f07f7fd10d2f094237ac092fe751a7d8f69d
154af226e35a9ba52db9560eca50b07f5ed661fd
/scheel/AddTensors/AddTensors.cpp
bbe79098492756371ab1e5acc6374e5221a58793
[]
no_license
jeffdk/SpecClass2011
9492e7386ef03914f2867391c3e5c3a7344bedd4
8598c47f3e99e6317285213d2c466eb9715c16fb
refs/heads/master
2016-09-06T03:33:20.952155
2012-09-10T22:29:27
2012-09-10T22:29:27
1,931,578
18
3
null
null
null
null
UTF-8
C++
false
false
1,023
cpp
AddTensors.cpp
#include "AddTensors.hpp" #include "Utils/StringParsing/OptionParser.hpp" namespace ComputeItems { AddTensors::AddTensors(const std::string& opts) : mResult(TensorStructure::Empty) { OptionParser p(opts,Help()); mA = p.Get<std::string>("A"); mB = p.Get<std::string>("B"); mOutput ...
24c1bf806a0cae0be84c3e7465ca2c7e95bddfda
84e9db39145acd1085f44881c8b22838e8fbefba
/SFML_Extended_Library/CheckBox.cpp
5295529b5a76b52ed0800b32f17863b6d7e000aa
[]
no_license
RachitWalke/SFML_Extended_Library
42ec5d6e364bb9d395e277dde5fb4d822179e912
68e6ffe1c493b89adf99dd73ec39a2d8b232788f
refs/heads/master
2022-08-04T06:12:15.951079
2020-05-21T13:06:48
2020-05-21T13:06:48
282,146,007
1
0
null
2020-07-24T06:54:30
2020-07-24T06:54:29
null
UTF-8
C++
false
false
1,839
cpp
CheckBox.cpp
#include "pch.h" #include "CheckBox.hpp" gui::CheckBox::CheckBox(sf::Font& font, std::string label, float scale) { status = false; this->scale = scale; box.setSize(sf::Vector2f(10.0f * scale, 10.0f * scale)); box.setOutlineThickness(2.0f * scale); box.setFillColor(sf::Color::Transparent); box.setOutlineColor(s...
d28ec38163d5cc45b5225828d5c3394ae43d8f0b
acfdb4399a3b422eba0f230efd3ef13515d8cc52
/src/pTensor/core/TensorMap.hpp
afe4096e199b61a500d67668fc676926b45410e6
[ "Apache-2.0" ]
permissive
victorromeo/ptensor
f7e42bec086155e5b3e233020688e93201fd170c
8e2b2ff8fa27aa7c759458bba5158e5ecedfff32
refs/heads/master
2023-04-28T16:17:42.852333
2023-04-18T16:02:06
2023-04-18T16:02:06
323,822,333
0
0
null
null
null
null
UTF-8
C++
false
false
2,842
hpp
TensorMap.hpp
#ifndef PTENSOR_TENSOR_MAP #define PTENSOR_TENSOR_MAP #include <algorithm> #include <initializer_list> #include "tensor.hpp" #include "pTensor_util.hpp" #include "ptensor_string.hpp" using std::initializer_list; namespace pTensor { // Tensor maps are fixed size to force input output mismatched errors class TensorMa...
c325b07f9782d1162aa16051aa6adc1eca1d2e79
93e058780c3fd4d7f40dbcac263fb58f63b51b6f
/libmuscle/cpp/src/libmuscle/peer_manager.hpp
e50dbf3c920556113dc09d333b8b1af1c858bc9f
[ "Apache-2.0" ]
permissive
multiscale/muscle3
2b6ffc34240b92bb2ade3e28e4dde1b6d3f8e3e7
be8b21cfe97218d2a941b63d5762387716a9b3f8
refs/heads/develop
2023-07-12T06:12:03.510684
2023-07-06T20:11:41
2023-07-06T20:11:41
122,876,985
24
15
Apache-2.0
2023-09-01T19:47:16
2018-02-25T21:07:17
Fortran
UTF-8
C++
false
false
3,452
hpp
peer_manager.hpp
#pragma once #ifdef LIBMUSCLE_MOCK_PEER_MANAGER #include LIBMUSCLE_MOCK_PEER_MANAGER #else #include <ymmsl/ymmsl.hpp> #include <libmuscle/endpoint.hpp> #include <libmuscle/namespace.hpp> #include <string> #include <unordered_map> #include <vector> namespace libmuscle { namespace _MUSCLE_IMPL_NS { using PeerDims ...
5bca3cdcf8ebd50e7a1545976609044fc7c9a1dd
c43704dd045c0c592c20dea20db42a892e954f19
/thrill/common/stat_logger.hpp
7b47264afd9ebca74290b2cf653788025b5057b4
[ "BSD-2-Clause" ]
permissive
ShauryaRawat/thrill
f4250a9d53d0ec9b6e2fea7788beab8943c750f5
623ecd3aa5e14dd0bd6201370b014b4c39df71f2
refs/heads/master
2021-01-24T14:26:52.295588
2016-01-02T11:43:54
2016-01-02T11:43:54
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,848
hpp
stat_logger.hpp
/******************************************************************************* * thrill/common/stat_logger.hpp * * Logger for Stat-Lines, which creates basic JSON lines * * Part of Project Thrill - http://project-thrill.org * * Copyright (C) 2015 Alexander Noe <aleexnoe@gmail.com> * * All rights reserved. Pu...
4178b5ee61b13976d0fc0c0c846d7401b91820ee
4bcb5d154efe92a7e6a1b0c55f1921add2d63b2d
/game.cpp
67ac4f88be0a8560c22b3c46230617e4eb028a40
[]
no_license
RadoslawRusiniak/qtdiaballik
1f5bc4272983349cd054d179335151efb27f7708
f9625c9a85c8bf668274004bcf8d2214233b5f1b
refs/heads/master
2021-06-04T18:19:24.982803
2018-04-21T19:16:49
2018-04-21T19:16:49
30,099,514
0
0
null
null
null
null
UTF-8
C++
false
false
11,208
cpp
game.cpp
#include "game.h" Game::Game(QList<PlayerHumanCPU> *players, QObject *parent) : QObject(parent) { ai = new AI(this); board = new Board(this); state = new GameState(WHITE_PLAYER, this); this->players = players; ball_pressed = NULL; holder_pressed = NULL; game_ended = false; in_edi...
c881221b43fd54cbe0782afd82936d5ccb6424e5
df845dbf5c4ee837b3ec79a9888c1ca57c8e4f5d
/DesignPattern/13_Proxy/proxy_client2.cpp
efeb7c30842f37d67bb7792acaf52574c1d87c5a
[]
no_license
xosudal/kotlin
ca6c4ae7f0383f589bbeff50a26f1759b2560f1f
176504ba6bb168d3f639ba504412a72e5f04060e
refs/heads/master
2022-12-12T17:31:19.805851
2020-08-21T09:26:36
2020-08-21T09:26:36
279,255,567
0
0
null
null
null
null
UTF-8
C++
false
false
978
cpp
proxy_client2.cpp
#include <iostream> #include "ipcheader.hpp" using namespace std; using namespace ecourse; // Proxy .. // 원격지의 서버를 대신 하는 클래스 // 명령 코드 대신 함수 호출을 가능하게 함(잘못된 명령코드를 사용하지 않게 됨) // Client는 IPC에 대해서 알 필요는 없음 // 보안의 기능 추가 혹은 자주 사용되는 요청에 대한 캐시를 추가 할 수도 있음 // Proxy는 함수 호출을 명령 코드로 변경해서 서버에 전달 // Stub는 명령 코드를 다시 함수 호출로 변경 (ser...
bb757c9933a0fedc590b8cdec10fca20f9352e9c
79795d6fe58bf3713f5461b26f9f78f735d4c73c
/src/Camera.cpp
70fc2c91e741bb58c6aac346f8eeb789011dd6db
[]
no_license
IntelOrca/popss
b5f74b340962dfa9e41b86c4a8e5bdc38eb01164
15f359a9ac9114b95f8b0b1336b39b03e11b81a3
refs/heads/master
2020-12-26T02:01:16.573584
2015-01-18T02:57:13
2015-01-18T02:57:13
28,665,965
1
1
null
null
null
null
UTF-8
C++
false
false
5,410
cpp
Camera.cpp
#include "Camera.h" #include "LandscapeRenderer.h" #include "Util/MathExtensions.hpp" #include "World.h" #include <glm/gtc/matrix_transform.hpp> using namespace IntelOrca::PopSS; const float Camera::MoveSpeed = 1.0f * World::TileSize; const float Camera::RotationSpeed = 360.0f / (60.0f * 3.0f); Camera::Camera() { ...
a152caba7fcf6369c2f18370bd91b3a807039ff7
62d2bd06d02a3d6a39d50bbdbb5be923f89d71f5
/Create Maximum Number/mainDpWA.cpp
06e855bcec5568c215947704ac0783814301351f
[]
no_license
OverDriveMC/leetcode
4937d48341cf81ec0a094f5f0b5c393959f42620
eda364bdf73212e83dd57bbc89d0d68a3e46427d
refs/heads/master
2021-01-21T04:46:49.507098
2019-05-23T11:54:24
2019-05-23T11:54:24
48,264,528
0
0
null
null
null
null
UTF-8
C++
false
false
6,785
cpp
mainDpWA.cpp
#include<bits/stdc++.h> using namespace std; class Solution { public: void mergeVector(vector<int>& nums1, vector<int>& nums2,vector<int>& res){ if(nums1.size()==0){ for(int i=nums2.size()-1;i>=0;i--){ res.push_back(nums2[i]); } return ; } ...
c08a5baf9f06ca292ab1236955f34f1e55ad30ec
fa65fc32e51845e698d35a4ee6520696a90641b4
/Source/Sim/ComputeNode.cxx
c44d66163e08b098ee93408813f4332fdbc4e9ec
[]
no_license
cycps/sim
288a0a3c60afa2e44406a490ec01dbb61107fc3c
a0eb654549e2e798ada919be9a18559bbd7222a8
refs/heads/master
2020-04-09T19:16:07.496894
2015-09-22T21:04:00
2015-09-22T21:04:00
30,031,453
0
0
null
null
null
null
UTF-8
C++
false
false
8,943
cxx
ComputeNode.cxx
#include "Cypress/Sim/ComputeNode.hxx" #include "Cypress/Core/Elements.hxx" #include <boost/algorithm/string/replace.hpp> #include <sstream> #include <stdexcept> #include <iomanip> using std::endl; using std::string; using std::ostream; using std::string; using std::stringstream; using std::runtime_error; using names...
326077167cd4e23dc480de7cd8bf423b25d19788
3ef99240a541f699d71d676db514a4f3001b0c4b
/Codeforces/559/559B.cpp
6a479522242cd726830704e676dab4d5e3b39b60
[ "MIT" ]
permissive
mjenrungrot/competitive_programming
36bfdc0e573ea2f8656b66403c15e46044b9818a
e0e8174eb133ba20931c2c7f5c67732e4cb2b703
refs/heads/master
2022-03-26T04:44:50.396871
2022-02-10T11:44:13
2022-02-10T11:44:13
46,323,679
1
0
null
null
null
null
UTF-8
C++
false
false
399
cpp
559B.cpp
#include <iostream> #include <string> #include <cstdio> using namespace std; string f(string xx){ if(xx.length() % 2) return xx; string aa = f(xx.substr(0,xx.length()/2)); string bb = f(xx.substr(xx.length()/2,xx.length()/2)); return aa < bb ? aa + bb : bb + aa; } int main(){ // freopen("in","r",stdin); string ...
bbfecdf4b86775808a8f2c1e94bbc595bdac4d37
8d67a14e584e15a96b4e7c6bb5de982765b25c00
/vampire.h
d03a47db06d2f66146ad2cbf26c531f48209ea6f
[]
no_license
11Alex11/CC3K
708ae7a134e82a7eee2169668e9cc2b4b1d51aba
114790ad5c110c855e83be023f7cb66bc647a304
refs/heads/master
2016-09-01T16:34:52.189170
2016-01-01T02:55:51
2016-01-01T02:55:51
48,867,741
1
0
null
null
null
null
UTF-8
C++
false
false
220
h
vampire.h
#ifndef _VAMPIRE__H__ #define _VAMPIRE__H__ class TextDisplay; class Floor; #include "enemy.h" class Vampire:public Enemy{ public: Vampire(int x,int y,Floor* floor); virtual void draw(TextDisplay& td); }; #endif
f60ec2e76f05bd3ec8086442b5b7a175e9e47dfa
d9f0c9084a02f2aec11e87bba2fb04d68c5ca6ee
/graphnn/src/nn/moving_norm.cpp
fcd10e5ea4f8b93e1ede84d94a81843529b168d3
[ "MIT" ]
permissive
zamlz/graph_comb_opt
62dcba612d67ec712c8976f2afe4dec0ccb8aae9
232329784b6c09236051a83bb7c536d1d18d05c5
refs/heads/master
2020-03-31T23:06:36.355522
2018-12-14T21:55:31
2018-12-14T21:55:31
152,643,307
0
1
MIT
2018-10-11T19:15:45
2018-10-11T19:15:45
null
UTF-8
C++
false
false
2,626
cpp
moving_norm.cpp
#include "nn/moving_norm.h" namespace gnn { template<typename mode, typename Dtype> MovingNorm<mode, Dtype>::MovingNorm(std::string _name, Dtype _alpha, PropErr _properr) : Factor(_name, _properr), alpha(_alpha) { eps = 1e-5; has_first = false; } template<typename mode, typename Dtype> void MovingNorm<mode, Dty...
7e0e8509b180c54fe7f64b556b9839813b9bfc7c
cb0d7b9abc148c75069b486f7f9abbd3150fe1ec
/Bomberman_SDL/Game/Console/TokenFactory.cpp
cb604e0050285b1eb81010c58db143dfab847cd3
[ "MIT" ]
permissive
hovhannest/Bomberman_AI
dbb35b2a92f88db731df5eac9e753349695d425c
8c8680144987471beba47b79afca3980c01a11da
refs/heads/master
2021-01-18T22:22:15.577782
2017-05-15T19:48:51
2017-05-15T19:48:51
87,049,579
0
0
null
null
null
null
UTF-8
C++
false
false
3,112
cpp
TokenFactory.cpp
#include "TokenFactory.h" #include "Token.h" using namespace std; namespace Bomberman { TokenFactory::TokenFactory() : cToken(Token::eof), nToken(Token::eof), processing(false) { } void TokenFactory::push(string str) { if (str.empty()) { return; } bool wasEmpty = buffer.empty(); buffer += str; i...
07f4ee3d8d45f9544e4a596378a1c8bf568c6a7a
f04dece3d47761bd758ba056f021ce42632beac6
/C++/c++ 5/new2.cpp
7cbb100038e1ca70fd9d0292015d05576c219874
[]
no_license
fadliarfans/MyCpp
7aa1ebb0fe748ccb8b5a3ab16503fba984ec6ce2
c9b25c0720c5eff50981baf561cedea7afcbd8cb
refs/heads/master
2023-01-25T04:55:03.945357
2020-12-12T05:07:40
2020-12-12T05:07:40
320,751,897
0
0
null
null
null
null
UTF-8
C++
false
false
505
cpp
new2.cpp
#include<iostream> using namespace std; int main() { int a,n,b; char o; cout<<"==== program barisan dan deret aritmatika ===="<<endl<<endl<<endl; cout<<"masukan a = "; cin>>a; cout<<"masukan b = "; cin>>b; cout<<"masukan n = "; cin>>n; cout<<"ketik a jika mencari Un atau ketik b untuk mencari Sn"<<endl<<en...
969db794b3f0185d8c0e35db013de7014b662143
024234482e9c9b8253efeaa441537b17efa57872
/client.cpp
ce8fbe3b93ee9b3d7daac1b912284fbe6f55b9e9
[]
no_license
henryplas/tcp-server-client
ab9c8af49be7df475a697cd3543da402f87d1edd
6e8f8ec52917050577653fac394491834a4e2f67
refs/heads/master
2022-12-08T03:30:18.343915
2020-08-30T20:08:59
2020-08-30T20:08:59
291,543,488
0
0
null
null
null
null
UTF-8
C++
false
false
2,611
cpp
client.cpp
#include <iostream> #include <string> #include <thread> #include <future> #include "tcp.hpp" #include "numeric_type_header.hpp" class chat_client { private: using connection_ptr = std::shared_ptr<tcp_connection<chat_client>>; std::promise<connection_ptr> connection_promise_; std::shared_f...
5d3323b7aa354de7489ceeeda4f31ca7f3d23fea
385ee2e6f16771a13c07f7556085f830933ad72e
/install/include/srmauv_msgs/missions.h
8441e02eb82cdf49b399aabae424081ec9feb7c5
[]
no_license
vadersys/sedna_
4d168784a3d51a14b257a4297378e797b9d97c1f
615956bb60f8fec9821cf1ce58adb583ad7f5895
refs/heads/master
2021-01-09T05:53:04.650239
2017-02-03T18:17:14
2017-02-03T18:17:14
80,856,123
0
1
null
2017-03-25T23:49:32
2017-02-03T18:16:20
Makefile
UTF-8
C++
false
false
8,348
h
missions.h
// Generated by gencpp from file srmauv_msgs/missions.msg // DO NOT EDIT! #ifndef SRMAUV_MSGS_MESSAGE_MISSIONS_H #define SRMAUV_MSGS_MESSAGE_MISSIONS_H #include <string> #include <vector> #include <map> #include <ros/types.h> #include <ros/serialization.h> #include <ros/builtin_message_traits.h> #include <ros/mess...
3464e6af792e96ca749bda1bc9b6e174255094ea
0fa285030cb7e56b99fb886036e7099e79a97528
/II/w2/13/test/test3.cc
46551943144af168d811014f77220db9ef721244
[]
no_license
TjallingO/cPlusPlusCourse
2c41c92680e29029f1b26e7331e481fd39d1ac60
f086a4c48863bafc6eeaabc1825046216da8d3df
refs/heads/master
2020-03-28T03:41:49.695426
2019-04-04T09:40:40
2019-04-04T09:40:40
147,664,507
1
2
null
2018-10-21T11:54:18
2018-09-06T11:37:45
C++
UTF-8
C++
false
false
80
cc
test3.cc
#include "test.ih" test::test(int value) : d_value(value) { ++s_counter; }
6468732b331929396f066decdc95aeebf415c28a
6b652479502d96db0ca9edf9c590ce8170ed982e
/Project5/Menu.cpp
33bdc8c83bceec8073a3c02caad4f67226ff4fba
[]
no_license
LonghamBridge/CSUY3113
ed208fce93559ecb7c01ae98bc37f5de220956d7
7c5869da05ca658d537713144bacca598daacc0b
refs/heads/master
2023-01-30T11:48:48.536908
2020-12-15T04:15:25
2020-12-15T04:15:25
288,581,445
0
0
null
null
null
null
UTF-8
C++
false
false
1,985
cpp
Menu.cpp
#include "Menu.h" #define MENU_WIDTH 19 #define MENU_HEIGHT 9 unsigned int menu_data[] = { 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
72ec1da7d627d54d82b771f11a631fdbc73c769b
3f0e7b4d38f12c98bccc7bbe35ea278687c2f5fa
/totio/main.cpp
1a6695f50fe1d91f2f565ee04e91e8d610da4f98
[]
no_license
yousabu/C-_ATM_project
623cc1759372d8ef5bc074b407a0255b12b3c5c8
dd22c9fbef52c1f675ba280c3d20b5d479c6b2f4
refs/heads/main
2023-01-14T00:32:05.094069
2020-11-16T08:55:50
2020-11-16T08:55:50
313,242,014
0
0
null
null
null
null
UTF-8
C++
false
false
6,181
cpp
main.cpp
#include <iostream> #include <fstream> #include <string.h> using namespace std; void delete_atm() { fstream stud; fstream temp; stud.open("ATM.txt",ios::in); temp.open("temp.txt",ios::out); char name [25]; char a[25]; char phone [25]; char current[25]; cin.ignore(); cout<<" \...
e7f27a2c72a7cdbbb5f9a687b07610d23dd1b0a3
5c442363f5824a8da4eb1a6a2aaddca97bb88f92
/Code/Mantid/Framework/Algorithms/test/DetectorEfficiencyVariationTest.h
06cd53e4e8859b5645e0c029215ac087ccc4e4d2
[]
no_license
stothe2/mantid
07dba616d771c28f91d3761fb02ef6b0e90444b3
01407170b8df46c98bb36b6fa530e54851117b18
refs/heads/master
2020-12-25T02:39:05.609946
2015-09-18T20:40:27
2015-09-18T20:40:27
null
0
0
null
null
null
null
UTF-8
C++
false
false
6,672
h
DetectorEfficiencyVariationTest.h
#ifndef DETECTOREFFICIENCYVARIATION_H_ #define DETECTOREFFICIENCYVARIATION_H_ #include <cxxtest/TestSuite.h> #include "MantidTestHelpers/WorkspaceCreationHelper.h" #include "MantidAlgorithms/DetectorEfficiencyVariation.h" #include "MantidKernel/UnitFactory.h" #include "MantidAPI/AnalysisDataService.h" #include "Manti...
2253980eff42e5127dff3f9902debd32874c332e
9bb5f53ef9a97ac7bcee4a646fb4882941331ecf
/src/graphics/dmtext.h
003def31219affcbb611559e5844f0685593522e
[ "MIT" ]
permissive
lzjian119/QBilibili
bb6c25d3bba30894d3add661c46a74c0147da619
afb436aaba0e38fb360d094959a62264717e0a90
refs/heads/master
2021-01-23T12:32:12.512961
2017-04-08T14:24:41
2017-04-08T14:24:41
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,044
h
dmtext.h
#ifndef DMTEXT_H #define DMTEXT_H #include <Qt> #include <QObject> #include <QWidget> class DMText : public QObject { Q_OBJECT public: DMText(QString &text); void draw(QPainter &painter); void setPosition(QPointF &pos); QPointF &getPosition(); void setColor(QColor &color); QColor &getColor(...
c390012dcd5c2c42e038284564aaaf11dc687538
2227e3905557fa8f115fb7dd1d95043788625ef4
/OOPS Retrieval/main.cpp
94dcf4d60206aff19662fd0c58c8bfb969caa5b2
[]
no_license
shivamsnaik/Information-Indexing-and-Retrieval
115ba4543988e951824cf98e7e77b07ddd205263
fbcf3be085120c7fcc1b365e4f375a471316ee8b
refs/heads/master
2020-12-25T02:10:05.734121
2016-07-20T18:48:23
2016-07-20T18:48:23
63,804,934
0
0
null
2016-07-20T18:48:23
2016-07-20T18:30:31
C++
UTF-8
C++
false
false
702
cpp
main.cpp
/* * File: main.cpp * Author: prateek * * Created on 9 April, 2016, 5:30 AM */ #include "newfile.h" #include "node.h" #include "retrieval.h" #include "text.h" #include "user.h" #include "video.h" int main(int argc, char** argv) { int ch; user u1; while(1) { cout<<"Select Your Categor...
73a4a5e808ac7ca02ab5dd0b1fe6ee1426a2408d
9939aab9b0bd1dcf8f37d4ec315ded474076b322
/libs/core/futures/tests/unit/test_allocator.hpp
5bb62c2671e75cae08bbf87db8cea5f1cd7301d5
[ "BSL-1.0", "LicenseRef-scancode-free-unknown" ]
permissive
STEllAR-GROUP/hpx
1068d7c3c4a941c74d9c548d217fb82702053379
c435525b4631c5028a9cb085fc0d27012adaab8c
refs/heads/master
2023-08-30T00:46:26.910504
2023-08-29T14:59:39
2023-08-29T14:59:39
4,455,628
2,244
500
BSL-1.0
2023-09-14T13:54:12
2012-05-26T15:02:39
C++
UTF-8
C++
false
false
3,675
hpp
test_allocator.hpp
// Copyright (c) 2007-2021 Hartmut Kaiser // Copyright (C) 2011 Vicente J. Botet Escriba // // SPDX-License-Identifier: BSL-1.0 // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #pragma once #include <cstddef> ...
83f13f8d322ab06a0c9f02d663239b7501bda7e5
016783254e6014d9bc60f3345a86284a373c41c7
/tir.cpp
26524fb72d01853deba5df50ca2ef67b475bf700
[]
no_license
starkmaestro/tir
91748a2d9117819ac894c61cdea2d87476e3effc
924c34725727951c0b4dd3d3639ac6da87506b3f
refs/heads/master
2020-06-13T15:25:17.162136
2019-07-01T15:11:11
2019-07-01T15:11:11
194,694,155
0
0
null
null
null
null
UTF-8
C++
false
false
2,364
cpp
tir.cpp
#include "tir.h" #include "ui_tir.h" #include <QThread> Tir::Tir(int updateInterval, QWidget *parent) : QWidget(parent), ui(new Ui::Tir) { startTimer(updateInterval); ui->setupUi(this); hid_detect = false; xpos = 0; ypos = 0; } Tir::~Tir() { delete ui; } void T...
ee880b8994ab4a4f064780981d900017586aa068
569ec5dfe23764410e4ec6ac772cdbc670f72682
/Solutions/week6_dynamic_programming2/3_maximum_value_of_an_arithmetic_expression/placing_parentheses.cpp
e472d434e6129e0892567a6ea095a3efb082898b
[]
no_license
mostafa-elsharnoby/Algorithmic-Toolbox-Assignments-Solutions
38494231d2e62454007b4be20aacdc25fa67242b
0d82c627682777d5900e7cdd6c45a55d66c50961
refs/heads/master
2022-11-14T06:05:21.603486
2020-07-14T22:07:50
2020-07-14T22:07:50
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,085
cpp
placing_parentheses.cpp
#include <iostream> #include <cassert> #include <string> #include <vector> #include<algorithm> using namespace std; vector <long long int> MinAndMax(long long int i, long long int j, vector <char> signs, vector<long long int> num, vector<vector<long long int> > M, vector<vector<long long int> > m) { vector <long long...
e163fc6d9f9060ecdfd3b7970bdd3318a2ac5d1d
1945b4f8f77b6bb451ebab1ec5ec3d3e2671a85b
/객체지향 프로젝트 과제/location.h
d58b006424153224a74246e6bb81c9d8e2c6d18f
[]
no_license
YongGyunKwon/BlueMarble_Using_Cpp
ae7d098624936e7dcdb825bb59e35d39e811ee30
81812557d1f1bcd6e3c07e6a0a3c5d5a0c152922
refs/heads/master
2020-12-22T05:57:01.017896
2020-01-28T08:38:20
2020-01-28T08:38:20
236,689,881
0
0
null
null
null
null
UHC
C++
false
false
10,343
h
location.h
#pragma once class location { int a; public: friend class P1; location() { this->a = 0; }; location(P1 b) { this->a = b.showsta(); }; string show(int x); void board(location dnlcl1, location dnlcl2, P1 player1, P1 player2, land show); }; string location::show(int x) { if (this->a == x) return "player"; else...
0a4bc9590bf8316d462eb8726ccc898144e8d448
a7dcd501e56b3f10451161995dbb8d151970d958
/ScreensMidiMonitor.cpp
0cb831bf46153ebc67d2fb3a319c3b356471f563
[]
no_license
Blackaddr/TouchMIDI
fa4ea77818e7ef37e05ae1691ce0906b35aba155
89c71298a5e96c94cd63042ad3cc01c573248ff6
refs/heads/master
2021-07-09T16:33:50.159726
2020-06-27T19:22:15
2020-06-27T19:22:15
144,214,481
7
3
null
2019-03-07T01:04:34
2018-08-09T23:48:49
C++
UTF-8
C++
false
false
3,571
cpp
ScreensMidiMonitor.cpp
/* * ScreensMidiMonitor.cpp * * Created on: Sept. 6, 2019 * Author: blackaddr * * This screen is accessed from the "EXTRA" button off the PRESET NAVIGATION */ #include <array> #include <MIDI.h> #include "filePaths.h" #include "Screens.h" #include "MidiProc.h" //constexpr int MIDI_CHANNEL = 1; using name...
71c0c9ecbe524f3dcc0890d116d3f1efefdeb577
3b2628650b9c8aa61c4ba7ac6a703799ca163d9c
/include/public/InternalObserver.h
0289ec472a805854c868652dd67a791607be027a
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
russell13192/FMACM
632d0dd72ef1b01735c07f09b503ba9900696e2d
3c81f575e4de73d83c02c0ea3b379a726d91837a
refs/heads/master
2022-12-31T16:28:34.374873
2020-10-19T20:13:24
2020-10-19T20:13:24
null
0
0
null
null
null
null
UTF-8
C++
false
false
8,244
h
InternalObserver.h
// **************************************************************************** // NOTICE // // This is the copyright work of The MITRE Corporation, and was produced // for the U. S. Government under Contract Number DTFAWA-10-C-00080, and // is subject to Federal Aviation Administration Acquisition Management // System...
3eba0f5e5507d72948b83be064f38d1226df475c
921ec7324d5350b2d3f2a31d64648183cdea68fd
/DP/RodCutting.cpp
f28f84aef58fb11d65b00b1f03054c33c8bafa1b
[]
no_license
vanPersie-9/Codes
f97e98e2401a09db78c18b7f1699aa0b1d8e551b
adca1597e41cb4d592532b187dbb2d9c5cb1d7be
refs/heads/master
2023-07-02T17:15:12.839778
2021-08-12T04:26:59
2021-08-12T04:26:59
386,912,135
0
0
null
null
null
null
UTF-8
C++
false
false
876
cpp
RodCutting.cpp
#include <bits/stdc++.h> using namespace std; #define TFiOS ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0); #define ll long long #define int ll #define pb push_back #define endl "\n" #define mp make_pair #define ff first #define ss second const int MOD = 1e9+7; int32_t main() { TFiOS; int t,n; ci...
247f7a2c80dc8825370e13507418c7cbd4351d60
8d41992b691ee3011a0b9febd21394eb933bb678
/Graph/HLD.cpp
115df53334c681a437344d7f3037055ea11e2ba0
[]
no_license
BrehamPie/Onsite-Template
4cd07af6314560a20d0904e025c900f663d71aff
1af82c4211a628680e5656926c46be8986c81c59
refs/heads/main
2023-07-16T20:15:24.430080
2021-07-31T06:44:27
2021-07-31T06:44:27
391,260,063
0
1
null
2021-08-09T04:02:39
2021-07-31T05:05:09
C++
UTF-8
C++
false
false
1,644
cpp
HLD.cpp
vector<int> adj[mx]; vector<int> val; int n, cur; // 1 indexed. int parent[mx], depth[mx], pos[mx]; int head[mx], tail[mx], heavy[mx]; int dfs(int u) { int sub = 1, big = 0; for (int v : adj[u]) { if (v == parent[u]) continue; parent[v] = u; depth[v] = depth[u] + 1; i...
2da46cf1152b86e47729b5d73d5874c01106fc7c
c1f3aabc164ce59137390fb0fb36f19593b05070
/KairosEngine/Engine/RenderBackend/RenderPasses/EnvironmentMap.cpp
5878e427fc6d17f3a352848eb6766526b48d2f8f
[]
no_license
christing12/KairosEngine
3301afbde6d867081a8c4402ab70492fb2f64632
f767c95653cd10b9575462abc9a462e2c82622fd
refs/heads/master
2023-04-29T02:24:00.262746
2021-01-28T06:24:18
2021-01-28T06:24:18
323,276,643
0
0
null
null
null
null
UTF-8
C++
false
false
4,917
cpp
EnvironmentMap.cpp
#include "krspch.h" #include "EnvironmentMap.h" #include "RenderBackend/RHI/PipelineStateManager.h" #include "RenderBackend/RHI/Texture.h" #include "RenderBackend/RHI/ResourceFormat.h" #include "RenderBackend/RHI/RenderDevice.h" #include "RenderBackend/RHI/CommandContext.h" namespace Kairos { void EnvironmentMap::Ini...
33b42d48c7d05fd1445719803229ef2ef27ce84d
76ed253516f5141aac19d020c11894da2f96f1cf
/ValidateBinarySearchTree.cpp
dee70b5d03a90c93128fafe35c1eb41dc31cb94e
[ "MIT" ]
permissive
bojifengyu/LeetCode
e722bde955f0727fd4a5a04e53a20e865577b22c
09d54da0ca577482e8ad6cc1dd1dd5d4b602c86f
refs/heads/master
2021-01-18T04:06:16.695970
2014-07-30T12:18:20
2014-07-30T12:18:20
null
0
0
null
null
null
null
UTF-8
C++
false
false
729
cpp
ValidateBinarySearchTree.cpp
#include <iostream> using namespace std; struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x):val(x),left(NULL),right(NULL) { } }; class Solution { public: bool isValidBST(TreeNode *root) { if(root == NULL) return true; return va...
f7d539326b2047f7142f752c5387b90aaf9f3ef0
a067e7b4687d7e5bcb65fb9a3d32664437d8d96c
/midterm2/exam/oop/inheritance.cpp
9bbaaae5623eb1b058f42d05abdbe41090e4bdb0
[]
no_license
edgarreb/ee355
710d3b2dd6061b14f387c96982480a3c4e1556f2
6a781be47db83e91d0c70e431de6bc2086c6db31
refs/heads/master
2020-12-03T12:09:11.640079
2020-01-02T04:51:09
2020-01-02T04:51:09
231,309,483
0
0
null
null
null
null
UTF-8
C++
false
false
594
cpp
inheritance.cpp
#include <iostream> using namespace std; class base { public: //int x; virtual void set_x(int a) { x = a; } virtual void print_x() { cout << "x: " << x << endl; } protected: int x; private: //int x; }; class derived : public base { public: void set_x(int b) { cout << "derived" << endl; x =...
d8817a8872870602cc600f813db0b32dc905bf96
686374cc8e68ebddd17f206524a83f3caa6c47c4
/VoiceDsp/ResourceAnsDet.cpp
cd4d8975a06c5261d6f951e360c8e83a1e6b9628
[]
no_license
xeonye/VoicePlatformDSP
053293c0d572b0a1d4b8ed117ff11fb9b628d1fd
ac56c8cc82957ec4eb28e5a66b75c4a1c0312352
refs/heads/master
2020-06-21T08:09:53.850927
2019-07-15T23:12:26
2019-07-15T23:12:26
null
0
0
null
null
null
null
UTF-8
C++
false
false
13,004
cpp
ResourceAnsDet.cpp
// System includes #include "stdafx.h" // App includes #include "ResourceAnsDet.h" #include "OsServices.h" #include "Log.h" lookupStruct<ResourceAnsDet::AnsDetMode> ResourceAnsDet::ansDetModeLookup[] = { { ResourceAnsDet::eADMPattern, "pattern" }, { ResourceAnsDet::eADMAlgorithm1, "alg1" }, { ResourceAnsDet::eA...
40705ef8ba8836fa233bcab01acf41a3655bd649
fda19b3f524167e7c672eb18ff28f99b90886610
/source/circulo.cpp
fd7466fc6668989f7fbc594f1c7a004111244818
[]
no_license
VitorCorreaSilva/formasGeometricas
1a82a214fb33eca2a7c23064e389076341c78a30
9a1c3d885d20ddb0ceb41f4a55e65e516fc180d8
refs/heads/master
2023-05-03T04:28:19.892770
2021-05-31T01:35:35
2021-05-31T01:35:35
372,301,520
0
0
null
2021-05-31T01:35:36
2021-05-30T19:42:31
C++
UTF-8
C++
false
false
703
cpp
circulo.cpp
#include "circulo.hpp" Circulo::Circulo(){} Circulo::Circulo(float raio){ this->raio = raio; } Circulo::Circulo(float raio, float circunferencia){ this->raio = raio; this->circunferencia = circunferencia; } float Circulo::calcularArea(){ return PI * pow(raio,2); } float Circulo::calcularCircunferencia(){ ret...
3dc35d83fb2d79ed39b75742ff3cad5c4ec63725
6278ebc0117fb866e30d7488cfac8a14152bbafa
/source/SimCore/Components/ViewerMessageProcessor.cpp
5ea71ec8bb4a21596b861316bd26884f534e0fe2
[]
no_license
delta3d/SimulationCore
4970bc5de3baf2a466eef42a668cebc31b152d8a
631291491d17746f7a3dbe0efe665f42309fe882
refs/heads/master
2021-01-11T03:30:08.328507
2016-02-26T18:43:12
2016-02-26T18:43:12
71,003,826
6
3
null
null
null
null
UTF-8
C++
false
false
19,454
cpp
ViewerMessageProcessor.cpp
/* -*-c++-*- * Simulation Core * Copyright 2007-2010, Alion Science and Technology * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option)...
daa0dc1b42caf7f39a7a42153904c74c2a779e10
a69b241883ca0f8d58e4013d43e475e01f61481a
/c_shared_modules/deps/dataTransport/dataTransport.cpp
7e2d591593970deda6cc8d7e1c02ca3463038816
[]
no_license
KlausHammer/Wireless_sound_zones
4fa51791926737e1205f52d5524f5f3302393eff
5c44cd9c3e347d04b748b750c9598493f19abc33
refs/heads/main
2023-09-01T12:24:27.795159
2021-10-27T08:03:02
2021-10-27T08:03:02
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,947
cpp
dataTransport.cpp
// // Created by ncpd on 21-10-2021. // #include "dataTransport.h" #include <iostream> #include <cstddef> #include <cstdint> #include <algorithm> #include <sys/socket.h> #include <arpa/inet.h> #include "netinet/in.h" #include <netdb.h> DataTransport::DataTransport() { this->bufferLen = BUFFER_LEN; this->addr...
2c6ee2bddbf8826b3aaa2fcf85dcd49f18bbde63
683b2336df14be15c5c4b40ebc6006986ecc8f1b
/kpi-tactic/KPIApp/include/Common.hpp
1cbed21542b36a8af63af0f79d01ca6dbee87161
[ "MIT" ]
permissive
dspshivaji/uwc
30f943fdfb8e4ac19a546679957cca0c4b36b378
637b3888bb617b4f44c4818d4d62d5c822cd683d
refs/heads/master
2023-07-08T20:01:50.612426
2021-07-23T15:52:18
2021-07-23T15:52:18
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,262
hpp
Common.hpp
/******************************************************************************** * Copyright (c) 2021 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,...
0712686e60fdbefd26a8c010d6f0d2ed46582457
88df3f2df9330aab4042c9729533b0625c46f4c5
/blocknufft/core/block3dspreader.cpp
c8cda1d5202585b9c52ba48139c365a6e2e2aa33
[]
no_license
wade-welles/nufft_comparison
3d0ef12ab477495bf9cd11c5e707fcdc454c5148
a9ebd5c512a87064f4397e8701c023d3c1a8226c
refs/heads/master
2020-08-04T15:56:05.998847
2017-04-10T21:04:44
2017-04-10T21:04:44
null
0
0
null
null
null
null
UTF-8
C++
false
false
12,910
cpp
block3dspreader.cpp
#include "block3dspreader.h" #include "qute.h" #include <stdio.h> #include <math.h> #include "besseli.h" #include "omp.h" #include "unistd.h" #include <stdlib.h> #include <sys/wait.h> // The following is needed because incredibly C++ does not seem to have a round() function #define ROUND_2_INT(f) ((int)(f >= 0.0 ? (f ...
3a7d4435be6ef2b952f3a36bf1dac27fa047a6b0
04fee3ff94cde55400ee67352d16234bb5e62712
/csp-s2019.luogu/source/XJ-00029/partition/partition.cpp
ad6dfa8c2bdd9e46fb1df057a4332f6434e0814b
[]
no_license
zsq001/oi-code
0bc09c839c9a27c7329c38e490c14bff0177b96e
56f4bfed78fb96ac5d4da50ccc2775489166e47a
refs/heads/master
2023-08-31T06:14:49.709105
2021-09-14T02:28:28
2021-09-14T02:28:28
218,049,685
1
0
null
null
null
null
UTF-8
C++
false
false
1,104
cpp
partition.cpp
#include<stdio.h> int a[10001],f[10001],b[10001],p[10001]; int main() { freopen("partition.in","r",stdin); freopen("partition.out","w",stdout); int n,type,i,flag,min=1999999999,k,sum,num=0; scanf("%lld%lld",&n,&type); if(type==0) { for(i=0;i<n;i++) scanf("%d",&a[i]); while(f[n]==0) { num++; ...
8b45b09c4c10ebbac880f5922a6a7bae6805d2bd
7d7a25b58f3a8daea540c9e7807569d89946a036
/Framework/src/Imu.cpp
4a84dc55cfd9e898351579dade6a6f391caf9dc1
[]
no_license
HishamLY/Riset_DaHo_2018
1be1ac5ebc141add284d25a111baf10886218880
437e40d71641c31421fcc31151e8b9b64ebab32f
refs/heads/master
2021-03-19T15:38:29.268515
2018-02-12T16:38:48
2018-02-12T16:38:48
114,443,913
0
0
null
null
null
null
UTF-8
C++
false
false
5,206
cpp
Imu.cpp
/* * @file : Imu.cpp * @autohor: Imre (13210024) * This class is used to measuring the angleX and angleY of the robot using the IMU Sensors * email : imre.here@yahoo.co.id */ #include <stdio.h> #include <math.h> #include "Imu.h" #include <stdio.h> #include <unistd.h> #include <limits.h> #include <string.h> #inclu...
f8eaaf9efcd6a878d347bcf2f7d4c904b31f900e
4f7fac34d1d04e81d16868cba34b0f6313fd92f5
/tomviz/Pipeline.cxx
af2654d45aa92c2ddb6a6649c374b909bc289a24
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
GitHub-Notables/tomviz
3e77406d813f57cff3844440e096d93749537876
f64fa117917f44243d9b2667003bfc6ab83f0d09
refs/heads/master
2020-03-18T16:35:38.546757
2018-05-25T19:24:17
2018-05-25T19:24:17
null
0
0
null
null
null
null
UTF-8
C++
false
false
13,498
cxx
Pipeline.cxx
/****************************************************************************** This source file is part of the tomviz project. Copyright Kitware, Inc. This source code is released under the New BSD License, (the "License"). Unless required by applicable law or agreed to in writing, software distributed u...
f20b167511df8885d8ea06b73ac40f47549b5bcb
94a1ae89fa4fac16b3d2a6c56ca678d6c8af668a
/include/ircd/js/object.h
b84b9bb42dd8d532cc77fdeca0ffdf2780cb1a6e
[ "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
matrix-construct/construct
99d677d0c2254cac2176d80690bbfd02b18a8658
0624b69246878da592d3f5c2c3737ad0b5ff6277
refs/heads/master
2023-05-28T12:16:23.661446
2023-04-28T05:33:46
2023-05-01T19:45:37
147,328,703
356
41
NOASSERTION
2022-07-22T03:45:21
2018-09-04T10:26:23
C++
UTF-8
C++
false
false
8,438
h
object.h
// Matrix Construct // // Copyright (C) Matrix Construct Developers, Authors & Contributors // Copyright (C) 2016-2018 Jason Volk <jason@zemos.net> // // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice...
47db3b17511b6b1c0a3543baca6f9330c6874726
4ba7504d8aae7340c65cc49fb5c7037c815d9c5d
/GOD-Engine/control/GODEvents.cpp
56c055c765a08b2481dd3d892f898c4f8f960970
[]
no_license
kilianm/BunBunWar
ed0841ced824ba9bcf0b82c787cd311dbfacf9ff
5d3e63836cfecba0ab047309d763bd6518d9a3d0
refs/heads/master
2016-09-06T07:32:36.072927
2012-11-29T11:01:48
2012-11-29T11:01:48
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,992
cpp
GODEvents.cpp
#include <bunbunwar/GODEngine.h> GODEvents* GODEvents::instance = NULL; GODEvents::GODEvents() { iter = 0; } GODEvents::~GODEvents() { iter = 0; clear(); delete instance; } void GODEvents::clear() { while ((signed)objects.size() > 0) { objects.erase(objects.begin()); } } GODEvents* GODE...
911ec6f9ab8b70da1cc473bc3c6ede886a1efdc6
8c5e442c2e95925e82afb8d41830bbc9ca78571b
/STL/stat&permutation.cpp
8cfb4dc702a7f14e58f053fe1743fc9b88bf524b
[]
no_license
1aman1/Cplusplus
7f7bfb9a86f40719df396316a9ce948ed2539ad1
a9dd8d4dc2f8ccd32fad70d79a386c135ba72770
refs/heads/master
2022-05-07T01:59:35.419213
2022-04-11T11:19:29
2022-04-11T11:19:29
193,675,347
2
0
null
null
null
null
UTF-8
C++
false
false
1,676
cpp
stat&permutation.cpp
#include<algorithm> #include<numeric> #include<vector> #include<iostream> using namespace std; int main() { vector<int> vec(15); /* iota can replace this code, which makes iota a sequence initialiser int val = 0; for (auto &i : vec) i = ++val; */ iota(vec.begin(), vec.end(), 1); /*PRINT(VEC);*/ for (auto i:v...
b781f775d0559b7e1709a2c915cad93a8fa384d9
f83ef53177180ebfeb5a3e230aa29794f52ce1fc
/ACE/ACE_wrappers/examples/Misc/test_sstring.cpp
8243ef71482949359df3dfc2ec8e0f473993ea4f
[ "Apache-2.0" ]
permissive
msrLi/portingSources
fe7528b3fd08eed4a1b41383c88ee5c09c2294ef
57d561730ab27804a3172b33807f2bffbc9e52ae
refs/heads/master
2021-07-08T01:22:29.604203
2019-07-10T13:07:06
2019-07-10T13:07:06
196,183,165
2
1
Apache-2.0
2020-10-13T14:30:53
2019-07-10T10:16:46
null
UTF-8
C++
false
false
547
cpp
test_sstring.cpp
#include "ace/OS_main.h" #include "ace/SString.h" #include "ace/Log_Msg.h" int ACE_TMAIN (int, ACE_TCHAR *[]) { ACE_CString s1 ("hello"); ACE_CString s2 ("world"); ACE_CString s3 ("el"); ACE_NS_WString s4 ("hello"); ACE_NS_WString s5 ("world"); ACE_NS_WString s6 ("el"); ACE_ASSERT (s1 != s2); ACE_AS...
306ecbd8966bfc57d653c3911053eea2a60a1f63
a4ace471f3a34bfe7bd9aa57470aaa6e131012a9
/LintCode/200_Longest-Palindromic-Substring/200_Longest-Palindromic-Substring-V2.cpp
f6df2c6cf8c7df37dbdf2a3329dc757881aabee9
[]
no_license
luqian2017/Algorithm
52beca787056e8418f74d383f4ea697f5f8934b7
17f281fb1400f165b4c5f8bdd3e0500f6c765b45
refs/heads/master
2023-08-17T05:37:14.886220
2023-08-08T06:10:28
2023-08-08T06:10:28
143,100,735
1
3
null
2020-10-19T07:05:21
2018-08-01T03:45:48
C++
UTF-8
C++
false
false
1,068
cpp
200_Longest-Palindromic-Substring-V2.cpp
class Solution { public: /** * @param s: input string * @return: the longest palindromic substring */ string longestPalindrome(string &s) { int n = s.size(); int maxLen = 0; string result; vector<vector<bool>> dp(n, vector<bool>(n, false)); ...
acd80a6b01ec8e395daf19bdb47e02eaef20b6ae
365bac64e7d5f70669d8dff3f5b2f2b7bd3f4fa7
/Project2/CanadianExperience\MachineLib\CardReader.h
16dfa7453c929bc9f57ac99b7c8a7e458b849575
[]
no_license
winnie1027/CSE-335-MSU
cce1b97d77906d6232481c2f75c15d58f19b480d
4a6d20bbffa452019fecbeaf7d6b267733033f4c
refs/heads/main
2023-04-21T21:32:27.590813
2021-05-05T04:51:39
2021-05-05T04:51:39
343,647,844
0
1
null
null
null
null
UTF-8
C++
false
false
4,995
h
CanadianExperience\MachineLib\CardReader.h
/** * \file CardReader.h * * \author Winnie Yang * * The card reader. */ #pragma once #include "Component.h" #include "AirSource.h" #include <memory> using namespace Gdiplus; /** * The card reader. */ class CCardReader : public CComponent { public: /// Constructor CC...
e0a3383fa8bb6f9e37918fb57e62fe24e91e3b98
3d899cff88aa835e44d81e0f401848c5c893528a
/Arduino_Aquaponics_Examples/LIBRARIES_OLD/TaskScheduler/examples/Scheduler_example16_Multitab/header.hpp
a3cf63345c844be8766f13fb89f3f1e8da04c7b5
[ "MIT", "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause" ]
permissive
CircuitBender/Aquaponics
f78bdb9fffc7bb04d07bc50a0579981efb0788e9
42266926395735f6d9fc6220134deb89c2ec3902
refs/heads/master
2023-03-14T05:10:04.338771
2021-03-04T09:54:49
2021-03-04T09:54:49
115,452,764
0
0
Apache-2.0
2017-12-26T20:45:36
2017-12-26T20:28:59
Arduino
UTF-8
C++
false
false
600
hpp
header.hpp
//This is the place to declare every single function //and global variable that is going to be reused between cpp files. //We are going to use the TaskScheduler, but only the declarations part. //Remember to put customization macros before the #include: #define _TASK_SLEEP_ON_IDLE_RUN #include <TaskSchedulerDeclarati...
ec0e61f1141c8f0feab1f2b9b1f7f95a44fc148d
7f2b83597e746ff847166b288acb04029de29a09
/Soldier and Bananas.cpp
f738f73f8c9e76bfdd70c6afd0c6615ffa59d67b
[]
no_license
Arik096/Programming_contest_sloved_solutions
f48c39ff248a3fa656b4a33f75a6670610f89242
7261fdc381717cd89ef81e9b31e58b75d73a4d71
refs/heads/master
2021-09-07T22:56:22.412163
2018-03-02T15:15:41
2018-03-02T15:15:41
102,009,540
2
0
null
null
null
null
UTF-8
C++
false
false
414
cpp
Soldier and Bananas.cpp
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int main() { int w,n,k; cin>>k>>n>>w; int i,s=0; for(i=1;i<=w;i++) { s=s+(i*k); } if(s==n||s<n) cout<<...
ef081638ae848a811cbd512868ccf74556848a89
d35b0bd401bcc2089fcabb1d0d2fd298b8cc1941
/ZxDevice/ZxDisplay2D_GraphicBrushMaker.h
d1b92056fe1d85a55e1a3f8ae1d5594643a720b9
[]
no_license
hex-hex/ZxLib
9bad09c8190d4458a84279c02b6e5070201a9c7b
286d4f48217b38920cf81404774617915ea99874
refs/heads/master
2021-07-23T04:28:29.255180
2016-10-17T07:41:01
2016-10-17T07:41:01
71,088,540
2
0
null
null
null
null
UTF-8
C++
false
false
439
h
ZxDisplay2D_GraphicBrushMaker.h
#pragma once namespace Display2D { class ZXDEVICE_API ZxDisplay2D_GraphicBrushMaker { protected: ID2D1RenderTarget* m_pRenderTarget; public: ZxDisplay2D_GraphicBrushMaker(void); ~ZxDisplay2D_GraphicBrushMaker(void); static UINT MakeColor(BYTE _r,BYTE _g, BYTE _b, BYTE _a = 255); static ID2D1Sol...
559a765423af7a359b13de6673eea99a9d287dab
69656115b53b103d309290e41e7e34783cb1008b
/common/include/exmemory.h
0a394ee201116dbf63d91cdbcff2ec236ec0133a
[]
no_license
clach04/Aurex2
7c4421fec9ab7e73d62ff534850b1145f9bb75a6
c1b4d5eff7899d37fec4789f702702f96ef4eaaf
refs/heads/master
2020-12-26T04:25:59.228862
2012-06-27T14:38:26
2012-06-27T14:38:26
35,338,487
0
0
null
2015-05-09T17:40:52
2015-05-09T17:40:52
null
UTF-8
C++
false
false
186
h
exmemory.h
// -*-c++-*- // $Id: exmemory.h,v 1.2 2004/04/29 09:44:32 fumi Exp $ #ifndef EXMEMORY_H #define EXMEMORY_H class ExMemory { public: ExMemory(void); void native(void); }; #endif
312b3e63a8b7091c85ddb709ba8205d2694053f2
6f5c8e7875d8a27cb9afaa1f0f7d9636565ea9cd
/Project/Game/Game/Level.cpp
025d38733bc182d3fd519d28fa2db70b2adbd1cd
[]
no_license
abela/Save-The-Cubz
a83cc27396dc0c2e4b4e9f97d20a944bf52cae09
5328f44ede66c494043a5da3c3d6b65a2fef0f70
refs/heads/master
2020-04-18T07:17:16.198124
2019-08-14T09:05:34
2019-08-14T09:05:34
167,354,752
1
0
null
null
null
null
UTF-8
C++
false
false
22,824
cpp
Level.cpp
// // Level.cpp // AbelixMiniclip // // Created by Giorgi Abelix Abelashvili on 11/24/17. // Copyright © 2017 Giorgi Abelix Abelashvili. All rights reserved. // #include "Level.h" namespace game { bool m_entireRowDeletionTest = true; Level::Level() : mCubesPlatform(new GameObject(Constants:...
91de512a609199bc73977b8afddf512486d79c9e
5ccdb058df19fc4e220b9bf7844ed9bbff956ffc
/p14888.cpp
2bff5d03c20a643ba4d1f73ddfedc7b104593452
[ "MIT" ]
permissive
sjnov11/Baekjoon-Online-Judge
4db4253ba8df6923347ebdc33e920cfb1b2d8159
a95df8a62e181d86a97d0e8969d139a3dae2be74
refs/heads/master
2020-04-02T09:00:30.235008
2018-12-03T10:05:52
2018-12-03T10:05:52
154,270,938
0
0
null
null
null
null
UTF-8
C++
false
false
874
cpp
p14888.cpp
#include <iostream> #include <algorithm> using namespace std; int A[12]; int op[4]; int N; int max_answer = -1000000002; int min_answer = 1000000002; void go(int cnt, int left[4], int result) { if (cnt == N) { max_answer = max(max_answer, result); min_answer = min(min_answer, result); return; } int temp[4];...
4664e9cb9275b1800bb099992bce1dfa38b7cf3d
62c90badcef5a4b8ba3e9ce6ea8b0e4e59476fc3
/BOJ_1193.cpp
0d84069fd8c8a7845ba55fc7e44013668cdd05a5
[]
no_license
YJNN/Algorithms
727f9e3c33bc82540b3f2a00b2d19561a4587cd4
3131d2070f1734a9c57ba85cf0fd21b8e2df1710
refs/heads/master
2022-04-18T11:50:27.722341
2020-03-31T06:53:14
2020-03-31T06:53:14
115,011,308
0
0
null
null
null
null
UTF-8
C++
false
false
721
cpp
BOJ_1193.cpp
#include <stdio.h> #include <iostream> #include <algorithm> #include <cstring> #include <string> #include <vector> #include <queue> using namespace std; #define _CRT_SECURE_NO_WARNINGS #pragma warning(disable:4996) int n; int main() { scanf("%d", &n); int cntGroup = 0; int sum = 0; while (sum < n) { cntGroup...
42ae557e914463e8495a2746231b67ec83d94760
3dc0a4aa774fa405e3d5adbdd5fe17d5603b4f39
/main.cpp
d18394c042ed0c719b197732ed5aaff0e6262db2
[]
no_license
b4mb1/Pentominoes
af0278a06ba84a2e195e5a942ce332a50ab70ed0
ed19643635f0c9d57341d38b1b281065a46b9a93
refs/heads/master
2016-08-11T22:26:29.068149
2016-02-02T22:29:44
2016-02-02T22:29:44
50,956,590
0
0
null
null
null
null
UTF-8
C++
false
false
4,336
cpp
main.cpp
#include <iostream> #include <string> #include "InputFactory.h" using namespace std; const int INF = 10000; class item { public: item *up, *down, *right, *left; item *col; int x, y; }; class column : public item { public: string name; int size; column(); column(string in_name, item *i...
5551f23ea61ce3b8160985821874484eadcbc73d
de18c7f9efde1d7c49b8ff48b07a18bbbe32ed6d
/Data Structures/Assignment 7/3358_2_Ruhl_Dakota_PG7(Before class).cpp
38b948942496c31845af7ebedbfcc57d156749d3
[]
no_license
dakotaruhl/School-Projects
90ff15814db2477e55fe51e550074dbfc895a149
71dbd6504709fe2132c8640aac5801dfae3ef78c
refs/heads/master
2021-05-12T11:12:39.288537
2020-12-16T22:27:18
2020-12-16T22:27:18
117,380,261
0
0
null
null
null
null
UTF-8
C++
false
false
5,131
cpp
3358_2_Ruhl_Dakota_PG7(Before class).cpp
#include <iostream> #include <ctime> #include <cstdlib> #include <iomanip> using namespace std; void displayArray(int []); void arraySearch(int [], int); void arrayInsert(int [], int, int &, int &); void arrayDelete(int [], int, int &, int &); int main() { const int SIZE = 30; int mArray[SIZ...
0dca7a53d5bebfec9797f2b40a312e4c09c12e38
8c2e7b8aad0d4a70178d3a6e3b5cbd9400db37a9
/RecoJets/JetAlgorithms/interface/CATopJetHelper.h
a85753358aba2897d10bd03be4376c32742ebe85
[ "Apache-2.0" ]
permissive
cecilecaillol/cmssw
96961b5815d0d6e7127a6f59c882ec5b8e86feb8
3d70b56717b9b8d49aaffcdbef6fb68e3b81fddb
refs/heads/l1t-integration-CMSSW_10_3_1
2023-03-17T06:40:24.755366
2019-04-16T11:06:39
2019-04-16T11:06:39
331,005,975
0
2
Apache-2.0
2023-02-08T14:43:10
2021-01-19T14:25:16
C++
UTF-8
C++
false
false
779
h
CATopJetHelper.h
#ifndef TopQuarkAnalysis_TopPairBSM_interface_CATopJetHelper_h #define TopQuarkAnalysis_TopPairBSM_interface_CATopJetHelper_h // \class CATopJetHelper // // \short Create tag info properties for CATopTags that can be computed // "on the fly". // // // \author Salvatore Rappoccio // \version first version on...
fc658d6d7dd96b0710c030d850dc91a4640613b4
4abd8793f2f2cb52fe02837c67e39dfef74b5715
/mgroovyank/Day 38/Modular Expression.cpp
aef56ab6cfbe418de9bfebcb816fec64fe9a424c
[]
no_license
Devang-25/100DaysOfCode
bdab847655490b4421454b4693cfcd6ddc3d4ff5
4e3d632be1ecd3b235c03ac593a4ea8ec9562e56
refs/heads/master
2021-05-25T12:50:19.956945
2020-04-06T17:49:02
2020-04-06T17:49:02
253,761,487
1
1
null
2020-12-18T18:33:29
2020-04-07T10:31:32
null
UTF-8
C++
false
false
374
cpp
Modular Expression.cpp
// https://www.interviewbit.com/problems/modular-expression/ int Solution::Mod(int A, int B, int C) { if(A == 0){ return 0; } if(B == 0){ return 1%C; } long long int y = 0; if(B%2 == 0){ y = Mod(A, B/2, C); y = (y * y)%C; }else{ y = A % C; y = ...
b73808aa6e9555039448a2b9cf612c935da77fe9
e48082cce6a9620f31aa0b76214b4f0956f76519
/C++/code-forces/118-A.cpp
e3693f221664323984d357bfa16a319461868d72
[]
no_license
arufonsekun/programming-club
a7c84e3d07b9179a04cae747536f0e06c16e4897
37a8bce63fcdc50f8fd8f0788679abcd1dc2a2ae
refs/heads/master
2023-04-30T00:06:37.184156
2023-04-17T02:06:53
2023-04-17T02:06:53
128,843,819
0
0
null
null
null
null
UTF-8
C++
false
false
515
cpp
118-A.cpp
#include <iostream> #include <string> #include <algorithm> using namespace std; char consonants[6] = {'a','e','i','o','u','y'}; bool isConsonant(char a){ for (char c : consonants) { if (a == c) return false; } return true; } int main(){ string input; cin >> input; ...
13a2e2c2058da03d622637b914f6f7b707346395
f2889a13368b59d8b82f7def1a31a6277b6518b7
/2000.cpp
7877e8488c46f5a313ad9f86d1bf7fa63e66b960
[]
no_license
htl1126/leetcode
dacde03de5c9c967e527c4c3b29a4547154e11b3
c33559dc5e0bf6879bb3462ab65a9446a66d19f6
refs/heads/master
2023-09-01T14:57:57.302544
2023-08-25T15:50:56
2023-08-25T15:50:56
29,514,867
7
1
null
null
null
null
UTF-8
C++
false
false
340
cpp
2000.cpp
class Solution { public: string reversePrefix(string word, char ch) { size_t i = word.find(ch); if (i != string::npos) { size_t j = 0; while (j < i) { swap(word[j], word[i]); j++, i--; } return word; } re...
a0536d4efdbb2a649700ea7ef87e4ed335ea80c4
591601c707664232b2358e3498cac6f9f48c931b
/product.h
828084edf91e0ab0dcd4e58f08ebef4ea9c301ac
[]
no_license
calindotgabriel/examen-oop-product
f36e0e4c1536b2410308d62aede98ce531bee4e4
7076cc303078562cdebe43f4ddfe3be6e4523650
refs/heads/master
2021-01-01T20:17:19.500505
2015-06-17T14:04:24
2015-06-17T14:04:24
37,598,484
0
1
null
null
null
null
UTF-8
C++
false
false
375
h
product.h
#ifndef PRODUCT_H #define PRODUCT_H #include <string> class Product { private: int id; std::string name; long qty; public: Product(); Product(int id, std::string name, long qty); int getId(); void setId(int id); std::string getName(); void setName(std::string name); long getQty...
80e0b173734290089d61cea5bb099affdd8b74c5
4c26da03308142db80e79d55c7d97961d7ea06e0
/PangoTUI/ExpandingArea.cpp
29e3414f735e21f6f8615e23e73b25346dfc4590
[]
no_license
graspee/PangoTUI
787d2d7c1e3dc34caf328fdeb40f726618f6cb45
050cb65024f2f4d1ad6a78e93111bb09830258bb
refs/heads/master
2021-01-21T05:05:21.111878
2014-03-24T18:33:12
2014-03-24T18:33:12
null
0
0
null
null
null
null
UTF-8
C++
false
false
167
cpp
ExpandingArea.cpp
#include "stdafx.h" #include "ExpandingArea.h" using namespace PangoTUI; //ExpandingArea:ExpandingArea(void) //{ //} //ExpandingArea::~ExpandingArea(void) //{ //}
3b816a836acb6ce667ed16d24bda6cdd8d68c080
655b5aaafb0f1f6994fbad3ba67c794798a7d762
/boost_python_exports/example_package/test/TestExampleClass.cpp
c2c903ebf0e7ca3d9dd7886eb1ab7d44ff5a11f7
[]
no_license
yebo92/programming_examples
7ce7aab6f238c81ccaabef145d342f103456ba8c
79f1c5fc0074ad66f0f7b85f836dd341cdf4df7c
refs/heads/master
2022-05-03T07:36:44.383897
2016-12-14T16:37:36
2016-12-14T16:37:36
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,147
cpp
TestExampleClass.cpp
#include <gtest/gtest.h> #include <example_package/ExampleClass.hpp> #include <example_package/Exceptions.hpp> using namespace example; TEST(ExampleClass, construct){ try { ExampleClass exampleClass1; // NOTE: You do not need both EXPECT_ here, this just shows two use-cases EXPECT_ANY_THROW...
210df7e0a7cd65b4d6f28562efdb97d187672166
e57ebdae3e20c5bbc88bbfe1644b2dd4d2fc1b4b
/Cuda9/include/x86-64-decoder/itab.cpp
cdfe48c6b8801791c4fec220bbcf478f8754c5a4
[]
no_license
CarpAlberto/CudaProject
2bdec483cbe3d6ddc895bb70a7705cef82bee74b
7e6e05b49b68c5bd1af331776e62322ac0d723f5
refs/heads/master
2021-09-15T06:03:38.403294
2018-05-27T13:44:07
2018-05-27T13:44:07
106,919,131
1
0
null
null
null
null
UTF-8
C++
false
false
216,768
cpp
itab.cpp
#pragma once #include "types.h" #include "decode.h" #include "itab.h" const char * ud_mnemonics_str[] = { "3dnow", "aaa", "aad", "aam", "aas", "adc", "add", "addpd", "addps", "addsd", "addss", "addsubpd", "addsubps", "and", "andpd", "andps", "andnpd", "andnps", "arpl", "movsxd",...
f6a8eff0cd1ee05c03c899bb0d68553b9607af02
9e3d1680277dfe6b072bd35883c2657168c9d969
/Algorithms/Graph/Dijkstra.cc
bb7d4227db42763af5d7b9ac170b64a0a5dd75ef
[]
no_license
oxygenbytes/MyCode
a934f4f2b31aabae68a357166829d36ee3ef1ec5
2a479f48e8e77002419aa7a49849354ae662c417
refs/heads/master
2023-05-07T21:06:08.481929
2021-06-01T08:58:02
2021-06-01T08:58:02
279,581,528
0
0
null
null
null
null
UTF-8
C++
false
false
1,625
cc
Dijkstra.cc
// dijkstra算法的实现,使用了优先队列的数据结构,思路见笔记 #include <bits/stdc++.h> using namespace std; /* 1 优先队列的使用方法 2 Dijkstra算法中数据结构的组织,一个是图,一个是距离向量,因为使用了优先队列的数据结构,因此不需要对 图节点的访问情况再做记录,优先队列中元素的状态本身就可以判断图节点的访问情况 */ #define INF 10000001 vector<pair<int,int> > graph[100]; int dis[100]; void dij(vector<pair<int, int> > *v , in...
1150dddb6103ab420f0889bee43754fd5f2623de
79fe9da6524f97ad4cc14800371b24089ae9fef9
/Graphs/GFG_ShortestCycleInGraph.cpp
68de47b48846772a978b6103274aa450be93857a
[]
no_license
kodegod/Interview-Preparation
1502dbc8c9bd2a09daa964ecea87f4fb2ac35328
8047d5dea489e257f5b88763907dd86192ead1d3
refs/heads/main
2023-08-06T23:21:40.429586
2021-10-01T20:13:06
2021-10-01T20:13:06
314,172,331
1
0
null
null
null
null
UTF-8
C++
false
false
1,208
cpp
GFG_ShortestCycleInGraph.cpp
//https://www.geeksforgeeks.org/shortest-cycle-in-an-undirected-unweighted-graph/ #include<bits/stdc++.h> using namespace std; #define fastio() ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL) #define int long long #define MOD 1000000007 #define N 100005 #define ii pair<int,int> map<int, vector<int>> g; ...
5ab75610436a9c7be454409d490cec747c057640
d56ce97233fec38c9708a2c93c394a541a3500bd
/BZOJ/2028.cpp
61e79d0be3040eb0b9b80424e7e2862d441d8f1f
[]
no_license
linkfqy/OJ_code_backup
af3fcab26e4c862ed36a71200c915facf93e8d59
4cc89b7a4fa4674b806f714acbcdea0028f33ee1
refs/heads/master
2020-03-22T12:50:06.262831
2018-10-25T00:06:52
2018-10-25T00:06:52
140,065,331
0
0
null
null
null
null
UTF-8
C++
false
false
1,404
cpp
2028.cpp
#include<cstdio> #include<vector> #include<algorithm> #define pb push_back #define lowbit(x) ((x)&-(x)) using namespace std; inline char nc(){ static char buf[100000],*p1=buf,*p2=buf; return p1==p2&&(p2=(p1=buf)+fread(buf,1,100000,stdin),p1==p2)?EOF:*p1++; } inline int red(){ int res=0,f=1;char ch=nc(); while (ch<'...
c3453126e5759bf1ab5b375152790c86da926d12
fa4340083f356de8d2f343d9a792fb7bcf0a78fa
/src/stk/Float.cpp
32cb53a89b04725bfebb15df71414291b1982048
[ "Apache-2.0" ]
permissive
renatocf/Robot-Battle
2542fd70e63491c3442cd9a1aa09f97c6b551444
903670758c69c640bb4880ba9da7ce168064bce3
refs/heads/master
2021-01-23T13:37:01.111831
2014-12-07T19:22:34
2014-12-07T19:22:34
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,618
cpp
Float.cpp
/**********************************************************************/ /* Copyright 2014 RCF */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this fil...
95a994b8b77288fe4fa54fe2f05ef04b32544cd3
754665ce6a1f4c49ae84f0b32d864fe0c7af2618
/MinandMax.h
3a25434c86723b19653c7c4974d697ef5bc68bcb
[]
no_license
longyf/MinandMax
e35ecc519542837878752468fbc7e5e2de8490b0
f40f833518de52436889a98abb106e924dcdc1ba
refs/heads/master
2020-03-09T08:55:56.453077
2018-04-09T01:56:01
2018-04-09T01:56:01
128,700,257
0
0
null
null
null
null
UTF-8
C++
false
false
828
h
MinandMax.h
#ifndef min_and_max_h #define min_and_max_h #include <iostream> #include <stdexcept> using namespace std; template <class T> bool MinandMax(T a[], int n, int &indexofMin, int &indexofMax) { if (a==nullptr||n<=0) throw invalid_argument("Pay attention to the input in MinandMax"); if (n==1) { indexofMin=indexofMa...