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
ddf4667421480ea8a7e347b09c9519ffdcbba69e
89ff220d1c7e873ca6c3b7758126792e1bcea639
/maths/maths.h
aeddddd2a1de3bd97c82680533a3dedc7c2314d1
[]
no_license
netshedzo/OOPClassesIntro
b4ef7c9fe104069d036863dbe51189213ab459eb
502bd1f217b05aebe2c98202bf2d6e1edfe31e39
refs/heads/master
2020-03-27T06:35:18.467225
2018-08-25T17:55:34
2018-08-25T17:55:34
146,117,383
1
0
null
null
null
null
UTF-8
C++
false
false
640
h
maths.h
#ifndef MATHS_H_INCLUDED #define MATHS_H_INCLUDED #include <iostream> #include <cstdlib> using namespace std; class Maths //maths class { private: int intChars; int intTable; string Lecture; int chalk; string Room; public: //constructor Maths(); Maths(int intC , int intT , string L ,int Clk,string roo); Maths(Mat...
0476e3c00bc4b4cdbcd28629a56b56f3def33e43
53fbe5080cec2fb0faedfeeefa1494ac89ce1a58
/utility.h
900e56dbd1a9331ae0b96071717d0e1df9d996f9
[]
no_license
Dan2908/VacIsland
effdb1588e013125d21eccbc2354f861866789b9
18da85f66323903c18a7f3bb8bed79e1d4bd1102
refs/heads/main
2023-07-03T19:42:01.013833
2021-08-08T22:57:01
2021-08-08T22:57:01
386,406,452
0
0
null
null
null
null
UTF-8
C++
false
false
2,396
h
utility.h
#ifndef H_UTILITY #define H_UTILITY namespace util{ /** * Returns a string (char*) allocated dynamically, use free() to free memory * @return char pointer to text contents read from file. NULL if there were * errors. * @param fileName Path to file. */ char *read_file(const char *fileN...
0ccae3c638ed6629e2657e6716e466b1dfe892ba
fcfbd550d7139ecc470f2ad8a132da592f0e1530
/Artysta.cpp
bfca668cfaeede19b4c7801d48cf4100b85a5790
[]
no_license
kkoziatek/CityTrafficSimulation
22338aa04d8a129863d481605bf89fa3ef14cae5
143754d07afebc448c7491446d8c184bac07e17e
refs/heads/master
2020-03-27T06:19:49.092186
2018-08-25T13:39:30
2018-08-25T13:39:30
146,097,937
0
0
null
null
null
null
UTF-8
C++
false
false
880
cpp
Artysta.cpp
/* * File: Artysta.cpp * Author: Komputer * * Created on 15 luty 2017, 17:00 */ #include "Artysta.h" Artysta::Artysta() { } Artysta::Artysta(int idd, Miejsce* M1, Miejsce* M2): Osoba(idd, M1, M2) { } Artysta::~Artysta() { } Miejsce* Artysta::dajMiejscePracy(int dzien) { return praca[dzien]; } Miejsc...
117c992f6de21686d5c7af66869e7853beff6ff0
3ef99240a541f699d71d676db514a4f3001b0c4b
/UVa Online Judge/v4/447.cpp
dcff495c2a1eba06a9c5a737197cd121a278f695
[ "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
2,401
cpp
447.cpp
/*============================================================================= # Author: Teerapat Jenrungrot - https://github.com/mjenrungrot/ # FileName: 447.cpp # Description: UVa Online Judge - 447 =============================================================================*/ #include <cstdi...
222b7765c3679d6ab19e399907fc69ac9235e445
0f2bf962c6966ed87f5132e9aecb185e34f99d0b
/simplegui.h
cb40d09ecde3bfbaf157b6d529b3dfe3e94f60ed
[]
no_license
GonzaloHernandez/simplegui
3c7ee42018c2ea8a6cea0722c56ef1ffe13054ca
6be34c688ceb5f046ab6459a2ca0e175bb702288
refs/heads/master
2023-06-21T21:39:28.796426
2023-06-19T00:53:30
2023-06-19T00:53:30
32,518,296
0
0
null
null
null
null
UTF-8
C++
false
false
22,446
h
simplegui.h
#ifndef SIMPLEGUI_H #define SIMPLEGUI_H #include <X11/Xlib.h> #include <cstring> #include <X11/Xutil.h> #include <sys/time.h> #include <algorithm> typedef unsigned char byte; typedef unsigned int uing; typedef unsigned long ulong; using namespace std; ulong rgb(ulong red, ulong green, ulong blue) { retur...
c5a2c1ffa8dfca9fe931991895f52d248ce5d583
5d83739af703fb400857cecc69aadaf02e07f8d1
/Archive2/b9/b3505cf28ce643/main.cpp
f00bc27de97806c260b8af48cdde4d683b67d8e8
[]
no_license
WhiZTiM/coliru
3a6c4c0bdac566d1aa1c21818118ba70479b0f40
2c72c048846c082f943e6c7f9fa8d94aee76979f
refs/heads/master
2021-01-01T05:10:33.812560
2015-08-24T19:09:22
2015-08-24T19:09:22
56,789,706
3
0
null
null
null
null
UTF-8
C++
false
false
334
cpp
main.cpp
#include <iostream> struct A { virtual void step() = 0; void bla(){ step();}; }; template <typename T> struct B : public A { virtual void step() { T t; std::cout << t.print(); } }; struct msg { std::string print() { return "something";} }; int main() { B<msg> b; ...
9e3adfbc4bbcfbe78b7321f902de626c6b84ce30
a0467dd8a25c05628682a87415c7cb64cacead35
/QuizSpeech/SpeechListener.h
f13ca8ee89a53133a764b1ae346cc8d0b0ca692e
[]
no_license
cogranpm/chatterbox
0fd15b060ca78734070ac8079767d882cd14e8f9
37b5843269ad0d38ef7db8d14f144d3ec9f5ef7f
refs/heads/master
2022-11-10T06:13:15.884191
2020-03-26T23:16:26
2020-03-26T23:16:26
204,751,341
0
0
null
null
null
null
UTF-8
C++
false
false
2,384
h
SpeechListener.h
#pragma once #include "EntityItem.h" #include "SpeechRecognitionCallback.h" #include "SpeechRecognitionEngine.h" #include "SpeechRecognitionContext.h" #include "DictationContext.h" class SpeechListener { public: SpeechListener(); ~SpeechListener(void); void InitSpeech(void); void StartDictation(...
e5bd88b85561bb4fba6834a084f3c5e6cfe350dd
19886a1a5a3c14f4d396dffc850ec960bb7e9e8a
/MeasurementModes/Measurement_Directory.cpp
089e602ca997b8b8e791ec7aeee6fabab0da249d
[]
no_license
sarellanos/MobileDOAS
4f6e65b87629855073aa86261c9fe8585e6aca73
b1b294502028b5bdb49fbc0087e50a1faac92940
refs/heads/master
2023-06-24T00:01:48.131359
2021-07-21T04:40:10
2021-07-21T04:40:10
null
0
0
null
null
null
null
UTF-8
C++
false
false
10,167
cpp
Measurement_Directory.cpp
#include "stdafx.h" #include "Measurement_Directory.h" extern CString g_exePath; // <-- This is the path to the executable. This is a global variable and should only be changed in DMSpecView.cpp CMeasurement_Directory::CMeasurement_Directory() { } CMeasurement_Directory::~CMeasurement_Directory() { } void CMeasur...
e34f44bf460df82c0cd66530d42a56992dabe681
f6650dc3c8bfe0a2aa0199ed65aed49976db2ef9
/Algortimos_02/11-classificacao_idade.cpp
a672db7dfdd081f3183ac58a27859497caa664e0
[ "MIT" ]
permissive
RicardoMartins922/Linguagem-C
3c84096673e4a58ec93a5034d738f7bfb3bc9342
9681b53bfd210dc75a2c55ec7c31f07eded54624
refs/heads/master
2022-12-05T23:26:46.197601
2020-08-13T20:54:36
2020-08-13T20:54:36
280,521,180
0
0
null
null
null
null
ISO-8859-1
C++
false
false
392
cpp
11-classificacao_idade.cpp
#include<stdio.h> #include<locale.h> int idade = 0; int main(){ setlocale(LC_ALL,"Portuguese"); printf("Insira sua idade: "); scanf("%d", &idade); if(idade >= 18 && idade < 65){ printf("\nVocê é uma pessoa maior de idade."); }else if(idade >=0 && idade < 18){ printf("\nVocê é uma pessoa menor de idade.");...
61c1881057aef9c5b19032dd3048b5206981f08c
2e70567b0bcfaf3354dd1849d70a643a01679f15
/Battle_City_CMY/Battle City/Battle City/Bullet.h
31fcacd9efe0416178ceb58793594c949b94221c
[]
no_license
Chen-GameD/Battle-City
c2df348b5b2d0384653b166293c1414db18e39fe
31ebf8aa7dbd4e00436a24d6ddac7e386a167dc3
refs/heads/master
2020-11-24T20:13:09.473199
2019-12-18T04:16:35
2019-12-18T04:16:35
228,325,325
0
0
null
null
null
null
UTF-8
C++
false
false
827
h
Bullet.h
#ifndef __BULLET_H__ #define __BULLET_H__ #include "Object.h" /*The Bullet class inherits the Object class and needs to set the location, direction and color during initialization. The position of the shell needs to refer to the position of the tank launching the shell, and the moving direction is also related to t...
67238343087f12b46eadc81fb5e111f4089358d0
6f857a5323ffa34aab93fe301d7b8fa538eed9af
/heavy_hitters.cpp
c895e05212355c5bc48f3a5c2281083c57fd4eb2
[]
no_license
avinash-arjavalingam/AdaptiveThresholdHeavyHitters
44baefc05a4ed3afc61ea2a32079a91143b905b8
2a5d4e2a6061c8f10e3784d396fd6b1c218d6573
refs/heads/master
2020-04-10T04:12:25.018168
2019-06-17T02:58:20
2019-06-17T02:58:20
160,791,292
0
0
null
null
null
null
UTF-8
C++
false
false
5,259
cpp
heavy_hitters.cpp
// // Created by Avinash Arjavalingam on 12/5/18. // typedef std::string Key; // Used for the creation of the universal hash functions // The large prime is used to create random integer values for the // hash functions. const long large_prime = 4294967311l; // Heavy hitters sketch largely sourced from Daniel Alabi ...
c0152cacaca54a2b65cb813ba498f69cc88326f4
877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a
/app/src/main/cpp/dir7941/dir29315/dir29712/dir30507/file30531.cpp
08e8e86eca1f9346b78d793f1e9cbc6629fe8c47
[]
no_license
tgeng/HugeProject
829c3bdfb7cbaf57727c41263212d4a67e3eb93d
4488d3b765e8827636ce5e878baacdf388710ef2
refs/heads/master
2022-08-21T16:58:54.161627
2020-05-28T01:54:03
2020-05-28T01:54:03
267,468,475
0
0
null
null
null
null
UTF-8
C++
false
false
115
cpp
file30531.cpp
#ifndef file30531 #error "macro file30531 must be defined" #endif static const char* file30531String = "file30531";
485efd68e039cbd9e49923f3ec94dbaf639e326d
a4a03d391f0c911e5b0aed27fe21e4eb36624609
/HDU/6666/21454730_AC_733ms_4132kB.cpp
6e04c56fd364f904b7441acd2b61d40534b959b8
[]
no_license
jiaaaaaaaqi/ACM_Code
5e689bed9261ba768cfbfa01b39bd8fb0992e560
66b222d15544f6477cd04190c0d7397f232ed15e
refs/heads/master
2020-05-21T21:38:57.727420
2019-12-11T14:30:52
2019-12-11T14:30:52
186,153,816
0
0
null
null
null
null
UTF-8
C++
false
false
1,829
cpp
21454730_AC_733ms_4132kB.cpp
/*************************************************************** > File Name : a.cpp > Author : Jiaaaaaaaqi > Created Time : 2019年08月14日 星期三 12时14分47秒 ***************************************************************/ #include <map> #include <set> #include <list> #include <ctime> #include <cmath> ...
7e5c34563fef33c9dbc400370384f78ab75ee0f4
eda342af44649ee72fd0534a12e40dacc8ad3976
/include/vivid/functions.h
b2f82b3ee48f773427800eb1edc6ffa94a0c2f41
[ "MIT" ]
permissive
lineCode/vivid-1
d2c26164e24f926df7bfa2a1f3787c089a638ac3
07085c0f53f76c003f64fa0510253679f007a580
refs/heads/master
2020-05-25T07:26:11.340260
2019-05-20T14:28:50
2019-05-20T14:28:50
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,338
h
functions.h
#pragma once #include "vivid/types.h" #include "vivid/colormap.h" #include <string> namespace vivid { void printColorTable( const bool foreground = true, const bool background = true ); namespace rgb { col_t lerp( const col_t&, const col_t&, const float ); col_t lerpHsv( const col_t&, const col_t...
7920158483949b284829416c0a99ba8426aa66c5
7626130d6aeefe9c01db608f6da02ac6e62cf733
/linkedlist.h
7bba192ecd1e4e32b97a2537b228a8130a29b5be
[]
no_license
oscarhuang1212/Data_Structure
8ebd252ea88a1785734919041e74d358a3ce98e5
494b8c9a6fc27595229390156d518c3631f0c184
refs/heads/master
2020-03-29T15:31:08.562816
2019-08-20T21:58:47
2019-08-20T21:58:47
150,066,947
0
0
null
null
null
null
UTF-8
C++
false
false
3,162
h
linkedlist.h
#pragma once #include <iostream> template <class T> class linklist{ public: //constructor of the linkedlist, set the default head and tail to nullptr linklist(): head_(nullptr), tail_(nullptr) {}; class linklistNode{ public: linklistNode *next, *prev; ...
c8c04189c40540766dc85783e7f7b8a95245da64
6d6cc7ee3ad92394ce8e527132ab1466093786ce
/src/debug/autoware_debugger/nodes/waypoint_debugger/waypoint_debugger.cpp
5e943ea0f9226cd398c37d7aa3947383aec06cc9
[]
no_license
yk-fujii/autoware-debugger
3b56e17c12d213a46bd3eb46bcae7de9527e5d5a
81ea3a9aaef023601d4402f998b53ac76cd98adc
refs/heads/master
2021-09-14T12:05:11.149580
2018-04-17T10:10:58
2018-04-17T10:10:58
110,931,031
0
0
null
null
null
null
UTF-8
C++
false
false
17,156
cpp
waypoint_debugger.cpp
#include <ros/ros.h> #include <std_msgs/Int32.h> #include <tf/transform_datatypes.h> #include <tf/transform_listener.h> #include <visualization_msgs/MarkerArray.h> #include <iostream> #include <string> #include <vector> #include <dynamic_reconfigure/server.h> #include <waypoint_debugger/WaypointDebuggerConfig.h> #inc...
8936c309266effaab3fb75185aa299acb7d274bf
44ab57520bb1a9b48045cb1ee9baee8816b44a5b
/Engine/Code/AssistTools/GenerateProjects/Detail/GenerateTemplateLibImpl.h
8d1038a83ee04de3beb9035aabdeb2c25e3dd914
[ "BSD-3-Clause" ]
permissive
WuyangPeng/Engine
d5d81fd4ec18795679ce99552ab9809f3b205409
738fde5660449e87ccd4f4878f7bf2a443ae9f1f
refs/heads/master
2023-08-17T17:01:41.765963
2023-08-16T07:27:05
2023-08-16T07:27:05
246,266,843
10
0
null
null
null
null
GB18030
C++
false
false
1,231
h
GenerateTemplateLibImpl.h
/// Copyright (c) 2010-2022 /// Threading Core Render Engine /// /// 作者:彭武阳,彭晔恩,彭晔泽 /// 联系作者:94458936@qq.com /// /// 标准:std:c++20 /// 引擎版本:0.9.0.12 (2022/04/28 18:07) #ifndef ASSIST_TOOLS_GENERATE_PROJECTS_GENERATE_TEMPLATE_LIB_IMPL_H #define ASSIST_TOOLS_GENERATE_PROJECTS_GENERATE_TEMPLATE_LIB_IMPL_H #include "Assis...
2bbecb2b5a3b76e6fdb0b2d15e9a224d9253f27d
b08e5ab68b916ad310e4a633d2d17ae573a4fd0e
/base_test/test_TLists.cpp
f27a720ae5d1125c279058bf8e64aa0c577518ff
[]
no_license
FrolovaOS/lab5_list
6049ae7fa20aadd99bade3eba7737ff68a09ab93
2e34ee4c6d3efc8e165cc1b18cedfc2c0c36784b
refs/heads/master
2020-11-29T07:48:53.718240
2019-12-25T08:28:13
2019-12-25T08:28:13
230,062,112
0
0
null
2019-12-25T08:28:14
2019-12-25T07:33:30
null
UTF-8
C++
false
false
2,264
cpp
test_TLists.cpp
#pragma once #include "../base/TLists.h" #include "../gtest/gtest.h" TEST(TList, can_create_list) { ASSERT_NO_THROW(TList<int> t); } TEST(TList, can_add_Fict_node) { TList<int> t; t.InsFict(2); EXPECT_EQ(t.GetVal(),2); } TEST(TList, can_add_First_node) { TList<int> t; t.InsFict(2); t.InsFirst(3); t.Reset(); ...
084b70435bd68b2d34f208c4236c06bba68d7808
91407af86340d22e27ba410676f3f2b8ba651ffd
/framework/safeMessageQueue/Hdd.hpp
3dba289ed42cfe08f721272ded03ae3f1a2e25db
[ "MIT" ]
permissive
jinbooooom/coding-for-algorithms
119c46832d759149659766992b59adb8224d604a
889d8fa489f1f2719c5a0dafd3ae51df7b4bf978
refs/heads/master
2022-11-27T23:52:15.826677
2022-11-25T08:28:46
2022-11-25T08:28:46
200,812,026
14
6
MIT
2020-08-01T06:38:45
2019-08-06T08:43:03
Python
UTF-8
C++
false
false
386
hpp
Hdd.hpp
#ifndef HDD_HPP #define HDD_HPP #include "subject.hpp" #include <thread> #include <mutex> class Hdd final : public Subject { private: static std::mutex sMutex; static Hdd *sInstance; protected: Hdd(); Hdd(const Hdd &) = delete; Hdd &operator=(const Hdd &) = delete; virtual ~Hdd(); public: ...
8fd45c1f8ce51d682548ba442695201981e520f1
8ac7bcf376995c42227fb1fa4f87f03a83539ae0
/notsql/IndexManager/include/NotsqlIndexManager.h
8b67c83a88ce50abbd80233aebb9ed3321a029bf
[]
no_license
reAsOn2010/libs
fc5976aa61cff93288101c63f94a32ff7700dcbf
21b6a7d630be9bb5cc607ff1a110e08dd0f2ee78
refs/heads/master
2016-09-06T12:54:09.734640
2013-07-02T03:54:39
2013-07-02T03:54:39
2,765,614
0
0
null
null
null
null
UTF-8
C++
false
false
3,772
h
NotsqlIndexManager.h
#ifndef __NOTSQLINDEXMANAGER_H__ #define __NOTSQLINDEXMANAGER_H__ #include "NotsqlBTree.h" #include "NotsqlBufferManager.h" #include "NotsqlTable.h" #include "NotsqlConstants.h" #include "NotsqlExpr.h" #include <iostream> #include <sstream> #include <vector> #include <utility> #define BTREE_M 6 //#define PATH_PREFIX ...
1b652317cbf30d0c554658f3c88b5b0387a488c8
4ba8bf905767513cd7180d20182764fd7c0ff50b
/agsconfigCore/AgsTold.cpp
46f04668b381b4b6ec2f79425f6923ac91aa63c0
[ "MIT", "BSL-1.0", "LicenseRef-scancode-unknown-license-reference", "Zlib" ]
permissive
Happy-Ferret-Entertainment/agsconfig
92bf6313d0339d5fe9b9666a48f0ce7c69e92a6e
fad57a216f26ec44f70da7081074e661270c0b65
refs/heads/master
2023-04-27T19:28:05.713919
2020-06-15T15:28:28
2020-06-15T15:28:28
null
0
0
null
null
null
null
UTF-8
C++
false
false
7,933
cpp
AgsTold.cpp
// // Created by erico on 18/01/2020. // #include "AgsTold.h" #include "process.hpp" #include "inipp.h" #include "AgsConfigUtilStr.h" #ifdef WIN32 #include "dirent.h" #include "direct.h" #else #include <unistd.h> #include <dirent.h> #endif std::string get_working_path() { char temp[512]; return ( getcwd(temp,...
89e61f16f818dde9e5daccb0fa079c9cdccfcb2a
aaf86162b5f90e5d3358d9629a84a5af8feaf14b
/Contests/ECJTUACM17/1001/main.cpp
9d44ab3c554712bcff6c24d6d71fb37718431880
[]
no_license
Linsenx/AcmCodes
ffbd5b5b634a693d9d5e8af680dfc8657085f2e1
08f6c708c9b47a3e8234dc2f9d2534344c0597c5
refs/heads/master
2021-09-14T11:57:43.707852
2018-05-13T06:04:00
2018-05-13T06:04:00
null
0
0
null
null
null
null
UTF-8
C++
false
false
613
cpp
main.cpp
#include <bits/stdc++.h> using namespace std; vector<int>a; int main() { ios::sync_with_stdio(false); #ifdef ONLINE_JUDGE #else freopen("in.txt","r",stdin); #endif int x, n; while (cin >> n && n != 0) { a.clear(); for (int i = 0; i < n; ++i) cin >> x, a.push_back(x); sort(a.begin(), a.e...
f6420d16ecdf71458f180aaea7cdf1656ddde1f2
ac30bc5074f9cbdc3f7e069f4eda49e2eedd2cd4
/GestureRecognizer.h
c8b4c66582bb8268c27e0fe0e64a084d380eb8ac
[ "MIT" ]
permissive
marcomarchesi/GloveC
035f8486c550b7632c9e5845c36342e12306bc0b
783bae174ef4fb43290da5b2f94070f558c3ceb6
refs/heads/master
2020-12-26T11:21:00.140005
2015-05-21T18:39:30
2015-05-21T18:39:30
33,920,959
0
0
null
null
null
null
UTF-8
C++
false
false
763
h
GestureRecognizer.h
// // GestureRecognizer.h // GloveRuntime // // Created by Marco Marchesi on 3/17/15. // Copyright (c) 2015 Marco Marchesi. All rights reserved. // #ifndef __GloveRuntime__GestureRecognizer__ #define __GloveRuntime__GestureRecognizer__ #include <stdio.h> #include <GRT/GRT.h> using namespace GRT; class GestureRe...
25c939ad18a54211c8cc7a54a44622580faf8664
5d83739af703fb400857cecc69aadaf02e07f8d1
/Archive2/a7/60b5d62a5ba6fa/main.cpp
24bb2ff77120aab4a715c82723a72461ac762195
[]
no_license
WhiZTiM/coliru
3a6c4c0bdac566d1aa1c21818118ba70479b0f40
2c72c048846c082f943e6c7f9fa8d94aee76979f
refs/heads/master
2021-01-01T05:10:33.812560
2015-08-24T19:09:22
2015-08-24T19:09:22
56,789,706
3
0
null
null
null
null
UTF-8
C++
false
false
362
cpp
main.cpp
#include <iostream> #include <memory> void foo(const std::shared_ptr<std::string>& i) { //(*i)++; i->append("bbb"); std::cout<<i->c_str()<<std::endl; } int main() { auto sp = std::make_shared<std::string>("aaa"); std::cout<<sp->c_str()<<std::endl; foo(sp); //std::cout << *sp << std::endl...
fc8beae4471a43eae3bfa13cba6381e56ef5188e
e2d2d7f300f257445529bf472b67731d2b95184e
/TestNetworkTool/PSS_ClientManager/PSS_ClientManager/TcpClientConnect.h
be4c90d795fcd052fbfc3c5fa98e28002f6eeebc
[ "Apache-2.0" ]
permissive
Jsiyong/PSS
8ba3d0ab878f032e096b8710fa37a9d961dd8873
4aebaac37a35f60786adff214519ef8799101f6a
refs/heads/master
2020-05-05T07:50:06.304619
2019-04-01T08:15:12
2019-04-01T08:15:12
179,839,696
1
0
Apache-2.0
2019-04-06T13:56:10
2019-04-06T13:56:10
null
UTF-8
C++
false
false
460
h
TcpClientConnect.h
#pragma once #include <WinSock2.h> class CTcpClientConnect { public: CTcpClientConnect(void); ~CTcpClientConnect(void); void Init(const char* pIp, int nPort, const char* pKey); char* GetKey(); bool SendConsoleMessage(const char* pMessage, int nMessageLen, char* pRevBuff, int& nRecvLen); char* GetServer...
c9f78d0dda99178efc327d41f9856abf8e96d6e4
cd02bc557594004fc67627fc8baa281b571886a3
/Engine/Source/Objects/Light.h
7d675aaadf8108c98d339ad4e19691f8ea8b766b
[]
no_license
ponspack9/AdvancedGraphics
8f8531bd892ef3d92d3e0a35bcd6c4e9d9a3732d
29ad4b495c78a73f073069df0535ffff5e126a0c
refs/heads/main
2023-05-07T12:07:33.457817
2021-06-07T19:29:27
2021-06-07T19:29:27
339,433,892
0
0
null
null
null
null
UTF-8
C++
false
false
522
h
Light.h
#pragma once class DirectionalLight { public: vec3 color; vec3 direction; public: DirectionalLight(vec3 color, vec3 dir) : direction(dir), color(color) {}; ~DirectionalLight() {}; void DrawInspector(); }; class PointLight { public: vec3 color; vec3 position; float radius; bool a...
a60f86c45f29dae3ebb2a190d0897b9bd09a7bed
d068386e00f13a4132d2e2f83a6b31448f090cf2
/chatserver/Utils.h
ddc8922105d69d1d4e06e2f5ac6c0d3c65e09e64
[]
no_license
wyrover/avchat
42151bd15011ab58cd3fb9003d7880689cb44804
e4355a26acb775929c8a6b17c7d89a2503496136
refs/heads/master
2021-01-15T12:14:56.045468
2015-09-13T16:03:07
2015-09-13T16:03:07
null
0
0
null
null
null
null
UTF-8
C++
false
false
472
h
Utils.h
#pragma once class Utils { public: Utils(); ~Utils(); static int GeneratePasswordHash(const std::string& password, std::string* password_hash); static std::string GeneratePasswordHash(const std::string& password, const std::string& salt); static bool ValidatePasswordHash(const std::string& password, const std::str...
8f20e59a10b78ec4a38aeb54e0675094741b7f1f
3297dc2c03e8a5fc965b09441c8a95a3e00c44c3
/subset_sum.cpp
d55476cf52ec160ce76d8987ba0a47c351d0c83f
[]
no_license
priyanka-kannan2000/Dynamic-Programming
f66a60d2da0d308990b52505cef43a640fa27cd2
7f12a89537569b60f800e35b55c7710b08f1fde2
refs/heads/master
2022-11-16T00:45:07.155225
2020-07-05T17:31:01
2020-07-05T17:31:01
277,350,745
0
0
null
null
null
null
UTF-8
C++
false
false
804
cpp
subset_sum.cpp
#include<stdio.h> main() { int n,a[100],k,i,j; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%d",&a[i]); } scanf("%d",&k); int dp[n][k+1]; for(i=0;i<n;i++) { for(j=0;j<k+1;j++) { if(j==0) { dp[i][j]=1; } else if(i==0) { if(j==a[0]) dp[i][j]=1; else d...
24a6cff9b03368027bc7528d042ee5d8ce09d4f7
0019f0af5518efe2144b6c0e63a89e3bd2bdb597
/antares/src/servers/input/PathList.h
f7604d82593ac1793eefc9562d06b558cf2a353c
[]
no_license
mmanley/Antares
5ededcbdf09ef725e6800c45bafd982b269137b1
d35f39c12a0a62336040efad7540c8c5bce9678a
refs/heads/master
2020-06-02T22:28:26.722064
2010-03-08T21:51:31
2010-03-08T21:51:31
null
0
0
null
null
null
null
UTF-8
C++
false
false
629
h
PathList.h
/* * Copyright 2008 Antares, Inc. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * Axel Dörfler, axeld@pinc-software.de */ #ifndef PATH_LIST_H #define PATH_LIST_H #include <ObjectList.h> class PathList { public: PathList(); ~PathList(); bool HasPath(co...
8f87d2acc402aec03d7564ba217a700abe249eab
fbdd483ebea1a32ee82a97a43c44eb7e260aa368
/tests/test.cpp
fe4591e63a2e1cfee7f40421e5f3bcb802d8311e
[ "MIT" ]
permissive
CXinsect/_deepin-file-control
17ad82e85a17e50f915dd06cf00a6fcc48a59937
c68aeb7af2ffc187eed59b1c660f528ececae9b6
refs/heads/master
2021-01-05T16:53:15.250184
2020-02-14T16:04:35
2020-02-14T16:04:35
null
0
0
null
null
null
null
UTF-8
C++
false
false
445
cpp
test.cpp
#include <iostream> #include<sys/types.h> #include<unistd.h> #include<fcntl.h> #define LEN 1024 int main(int argc,char *argv[]) { int fd = open("1.txt", O_RDWR) ; if(fd < 0) { exit(1) ; } char buf[100] ; int ret ; if((ret = read(fd, buf, sizeof(buf)))) { printf("%s", buf) ; ...
38ae306956702e6580c8c6fac56b2988f41c69c6
a05b49118d89d7f490456f8c46bdf82dfb387d09
/main.cpp
27ba62a1907589fd2469f356e3d9f0ccfa7c026d
[ "Apache-2.0" ]
permissive
zhang-jingwang/yaft
34bcec603351e9c30850c6bf9775c28495b57485
a3037f7f983953528f6c6610cabfb582cc35bbf3
refs/heads/master
2021-01-25T04:01:16.849231
2015-06-25T07:40:10
2015-06-25T07:40:10
38,034,229
0
0
null
null
null
null
UTF-8
C++
false
false
3,969
cpp
main.cpp
#include <iostream> #include <string> #include <sstream> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <assert.h> #include <errno.h> #define FILES_TO_WRITE 10000 #define BUFFER_SIZE 1048576 #define FILE_SIZE 10485760 #define THREADS_COUNT 8 char *FILE_PREFIX = "/mnt/lust...
3060e79899f110a84a88613b13dfbacd8a43051f
8d50a3ed7238c5f39b87b447cef0f980b74b4c6f
/Team01/Code01/source/PKB/ASTNode/ConditionNode.h
7bcafb4bcc155c552186e571b28729e01279545b
[]
no_license
blimyj/SPA
c3e49881bec59338e9adde8bc65977e59e7dcf51
1d56bf3378a4966683762d946420b7cec3a97dbe
refs/heads/master
2023-07-20T05:41:45.215730
2021-08-29T10:17:44
2021-08-29T10:17:44
402,119,068
0
0
null
null
null
null
UTF-8
C++
false
false
1,528
h
ConditionNode.h
#pragma once #include <typeinfo> #include <exception> #include "../../AbstractDataTypes.h" #include "RelationNode.h" #include "StatementNode.h" #include "ConditionTypeEnum.h" class ConditionNode : public ASTNode, public std::enable_shared_from_this<ConditionNode> { public: /* Description: Sets NODE_TYPE of node ...
9b62eb6e8463de1b5b585b4d5529abb0ec5efc4c
944ce149192f07842ed5f7d3f5fba5de8699df37
/c_c++/exercícios_univem/Modulo_1/Trabalho/5.cpp
f6f44a866cd89c6ed52025553fcc588a382ff1ca
[]
no_license
thBonore/Meus-Estudos
0624bbf81c6998b8ebc65246b9ef3b04d5c0234e
d30a4d4f04cd8203c0d5665691daaa02bf94b3ed
refs/heads/master
2021-09-18T10:17:48.895317
2018-07-12T18:07:41
2018-07-12T18:07:41
112,771,381
1
3
null
2018-02-14T14:06:23
2017-12-01T18:07:18
JavaScript
UTF-8
C++
false
false
585
cpp
5.cpp
#include <stdio.h> int main ( ) { int c, n, e, cash, cash_exc; printf( "\nDigite o código do operário --> " ); scanf( "%d", &c ); printf( "\nDigite o número de horas trabalhadas pelo operário %d --> ", c ); scanf( "%d", &n ); if ( n > 50 ) { e = n - 50; n = 50; } cash = n * 10; cash_...
e0e57fe477c13bb906c76d1266372bd6853efbe2
316d302f430b8ac7de8c2110d38ceb2fc55ac114
/ENCO_functions.ino
44f98d7819153f140dceb387068470192109e0fe
[]
no_license
Doolly/GAZZUA_son
52e1c46950ca5355254a80372d2e9a5f92532bbf
190603309467d72c1e55123e77afd8cc86db3362
refs/heads/master
2021-05-05T16:35:27.931150
2018-02-22T20:07:58
2018-02-22T20:07:58
117,353,699
0
0
null
null
null
null
UTF-8
C++
false
false
1,863
ino
ENCO_functions.ino
void EncoderInit() { pinMode(ENCODER_1, INPUT_PULLUP); pinMode(ENCODER_2, INPUT_PULLUP); pinMode(ENCODER_BUTTON, INPUT_PULLUP); attachInterrupt(digitalPinToInterrupt(ENCODER_1), updateEncoder, CHANGE); attachInterrupt(digitalPinToInterrupt(ENCODER_2), updateEncoder, CHANGE); } void updateEncoder() { int MS...
bc1833f3a588c74b1971847516bd131949985455
cbe9d729475321c07a71f058a08517e6627719dc
/raytrace-distributed/SplatTable.h
575c38f0c9dbced256306c0d873c1301e22ce229
[]
no_license
gjz010/amcmcppm
4818f84ae288e77a4c26167947d39c72e0bfb560
42e60cb05e69ba197fb2491e08eea9d59455c6a1
refs/heads/master
2020-03-23T00:14:01.078250
2018-07-13T14:22:29
2018-07-13T14:22:29
140,851,753
1
0
null
null
null
null
UTF-8
C++
false
false
1,012
h
SplatTable.h
#pragma once #include "defs.h" #include "vector" #include <unordered_map> const real MAX_RAD = 0.5; /* struct OctreeNode { OctreeNode(); ~OctreeNode(); bool leaf; std::vector<int> points; vec3 p1t, p2t; OctreeNode* children[8]; void initialize(const std::vector<EyePoint>& ref); void fillin(const std::vector<Eye...
f15bcaed980722abe815104c65c2e21dfcb1b582
1cd17a5e9df7732bb71ded0e287caf2da9ced9fc
/Project/Kernel/Proflie/ProfileMgr.cpp
99c65332bfaa8ca1c18c02c2693fcede2c8727ab
[]
no_license
q871980431/NetGrid
3951a6310f123f04708b5ca5d9f027f1f2032f42
1414bb44f8ce3bca49cb5c27b09abcf8b47a8f1e
refs/heads/master
2021-01-06T20:49:15.533019
2020-03-12T13:26:07
2020-03-12T13:26:07
78,807,691
2
2
null
null
null
null
UTF-8
C++
false
false
2,058
cpp
ProfileMgr.cpp
#include "ProfileMgr.h" #include "XmlReader.h" #include "../Kernel.h" #include "Tools_time.h" #include "gperftools/profiler.h" #include "gperftools/heap-profiler.h" #include "gperftools/malloc_extension.h" bool ProfileMgr::Ready() { tools::Zero(_config); return true; } bool ProfileMgr::Initialize() {...
e556e910a6f9143d6db4a1134a832fea691802b3
da08059ee125a982823234a31b5d2b25dbeb37de
/2018.11.17 COMSC-210/2018.11.17 COMSC-210/HashTable.h
ae54252c0d76e83bb8fb648604d444ae018fb788
[]
no_license
afearing883/COMSC-210-project
8707042222bb298071ac7aa1063c520a61d75d96
d05e7bc2cd29ff10684f4b9946fe32e325e7d8d9
refs/heads/master
2020-04-07T02:07:39.523803
2018-12-10T16:19:02
2018-12-10T16:19:02
157,964,783
0
0
null
2018-12-05T05:52:34
2018-11-17T08:20:38
C++
UTF-8
C++
false
false
3,369
h
HashTable.h
#ifndef HASH_TABLE_H #define HASH_TABLE_H #include <vector> #include <cmath> #include <sstream> #include <iomanip> #include <cctype> #include "Exception.h" const long long unsigned C = 581869333; /* const unsigned int C = 581869333; unsigned int hash_M(unsigned n, unsigned m) { unsigned shift = (32 - m) / 2; return(...
a468761e20d6404a21070bc95d6e01f5725258b0
2ff98c544eda6c7f7b0046bc86a2aec572b27319
/DSA/testcase/TEST/program/main.cpp
7d6c4e068930835c986b94ec36d62c0b92c7d08f
[]
no_license
ititandev/onlinejudge
4ea0e58679a6d9dff04ba444c40398b5d578f261
a0cd6b69cdce18d4cb95c860685cf9968b1419b3
refs/heads/master
2021-05-02T15:26:33.517328
2017-12-19T01:03:55
2017-12-19T01:03:55
120,695,297
1
0
null
null
null
null
UTF-8
C++
false
false
274
cpp
main.cpp
#include "sort.h" #include <iostream> using namespace std; int main(int argv, char** args) { if(argv!=3) { cerr<<"Invalid number of arguments!"; exit(-1); } fstream in(args[1],ios::in); fstream out(args[2],ios::out); Input(in); sort(); Output(out); return 0; }
b7a086dd5f9691448333052c942971dad330c365
54081ef2c732c2d08263ee25bf8556f01673b244
/src/view/TextView.cc
0105a9c2644a4d538767cf987142b22752fc6b1e
[]
no_license
CHN-ChenYi/RayTracing-CEP2021
d4036809e9cb837f0a9aef509b1bdd22cc8a7e7a
729f2eefa28b045c2cffae28895c58c880f1e172
refs/heads/main
2023-06-30T02:01:08.056124
2021-07-21T03:36:14
2021-07-21T03:36:14
385,173,465
0
0
null
null
null
null
UTF-8
C++
false
false
672
cc
TextView.cc
#include <TextView.h> #include "precomp.hpp" TextEditor::TextEditor(int x, int y, int w, int h, const char* l) : Fl_Text_Editor(x, y, w, h, l) { color(fl_rgb_color(65, 65, 65)); textcolor(fl_rgb_color(29, 221, 226)); box(Fl_Boxtype::FL_FLAT_BOX); textfont(FL_COURIER); } TextEditor::~TextEditor() noexcept...
dc4ea4fc3349402a06a7e7c9d1de9be323510cde
6ca84872c56971936252c6e466e57802d0748c42
/src/algorithms/peak_finding/peak.cpp
56ce2d7cb0711a57f05dddb1690dcc9fba89475c
[]
no_license
mtottenh/ProgrammingNotes
da11c6392542ded607462b21ca1c4fe86a69452d
7be13cb8a10b64dd83da2da0a506aa23f35d8b08
refs/heads/master
2020-06-05T04:43:01.390662
2014-08-07T19:12:41
2014-08-07T19:12:41
null
0
0
null
null
null
null
UTF-8
C++
false
false
936
cpp
peak.cpp
#include <peak.hpp> /* Some helper functions */ bool boundary (int a, size_t b) { return (a == 0) || ( a == b-1); } int neighbour (int a, size_t b) { if (a == 0) return 1; if (a == b-1) return b-2; } /* Naieve Approach, O(n) */ std::pair<bool,int> find_peak(std::vector<int> lst) { bool peak = false; ...
f252ef9fa4ac548c73e73ced93e6ac98879b6bf5
9647fd27fed29c2614f8d406fa90f19f1b55370c
/Simone/N9/contactsmodel.cpp
034add54ee23935a657f3d8c7923dae98558216b
[]
no_license
KDE/simon-tools
aa42bdd96dff99a67c0e1a93adaa89afce7f749b
ca668c91b6ac2455b8bdd47f013701eff1ea1fb9
refs/heads/master
2021-01-06T20:37:26.029880
2019-03-03T01:06:46
2019-03-03T01:06:46
42,732,489
2
0
null
null
null
null
UTF-8
C++
false
false
63
cpp
contactsmodel.cpp
#include "contactsmodel.h" ContactsModel::ContactsModel() { }
64b33b9bd8618cc8990835634740097b4893fcd9
b15a999d6e81ec0fa9c539788e7cc975ecdc4dad
/src/prey.cpp
4231dd41cc9e59ad8d4cf8c639788b003b4ea56e
[]
no_license
ImOsMa/tp-lab-7
e774cac21cca5394a40976911e16f6718c219dda
fedcad2540a52f7a02ade0405b849dad2217e214
refs/heads/main
2023-03-27T16:06:46.022996
2021-03-26T20:41:08
2021-03-26T20:41:08
343,585,607
0
0
null
2021-03-01T23:25:06
2021-03-01T23:25:06
null
UTF-8
C++
false
false
1,214
cpp
prey.cpp
// Copyright 2020 Osmanov Islam #include <cmath> #include <string> #include <fstream> #include "../include/prey.h" #include "../include/cell.h" #include "../include/ocean.h" void Prey::live() { if (heal == 0) { delete this; return; } if (produceRate > produceCounter) { produceCoun...
6d101c821400bc9ef553402cc69c71736b032309
f31006bbfba289d9c0b91951f14e93d016ae65ff
/283_proj_4/mergeSortContainer.cpp
a25991755e613dcf18cf23cda52b7456e34f196e
[]
no_license
henryajohnson/college-projects
fe1ed1d8887f86e75be053cb1d94bea293dca0c1
e26db49ff379e7137dbcc86cef53721391320e48
refs/heads/master
2021-01-23T15:29:03.329972
2015-04-09T01:27:52
2015-04-09T01:27:52
33,641,574
0
0
null
null
null
null
UTF-8
C++
false
false
1,474
cpp
mergeSortContainer.cpp
#include <iostream> using namespace std; bool exCompare(int &a, int &b) { return (a<b); } template <typename I> void merge(I begin, I mid, I end, bool (*compare)(typename I::value_type &x, typename I::value_type &y)) { //Get the lengths of the left and the right part. int n1 = mid - begin; int n2 = end - mid; ...
bf2312d932ff8741b9ebea6ad0326987eea0a961
0cc4a7790a96ac19d26a313aec95eb954efeb131
/robot/senses/sensor_stream_system.h
1946975e9b98376b68ace6ae8d60e1c3cddff3c6
[]
no_license
ntraft/ubc-WAM95
3e918d0daccca4f313d24827d1aa5ad48540cdad
9d1d5dd45c643877a190ec0e4392a2da115401b0
refs/heads/master
2021-01-22T16:11:14.809775
2013-11-15T04:59:26
2013-11-15T04:59:26
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,633
h
sensor_stream_system.h
#include "stdheader.h" #include "senses.h" #include "memory.h" #include "parameter_estimator.h" class SensorStreamSystem : public systems::System { public: Input<double> time_input; float time_count; #define X(aa, bb, cc, dd, ee) \ Output<bb> output_##cc; #include "input_type_table.h" #include "tool_type...
4f36615c5edfdb3f53fc929a55bb1f638767cc2b
f660db358af5caf67b253d46ce82db6433c78d74
/Cplusplus/Programs/pigGame.cpp
c0a2a35829effac819fe687031bf5ba9f4aa3625
[]
no_license
ovidubya/Coursework
d381b05c7065d8ac90a30f01f8d209b8f5e70fa5
e6afb46038e4cf989484a299effc98b88a48f172
refs/heads/master
2020-03-24T13:36:40.125774
2017-01-06T21:01:38
2017-01-06T21:01:38
72,239,145
0
0
null
null
null
null
UTF-8
C++
false
false
2,920
cpp
pigGame.cpp
#include <iostream> #include <stdlib.h> using namespace std; int computerTurn(int computerTotalScore) { computerTotalScore = 0; //score starts off at zero int LIMIT = 20; //once the computer goes past twenty, computer holds while(true) //loop for the computer to roll { int roll = rand() % 6 + ...
ce692ed8b549ec342002f6d2f3eeb176f1e0b841
614f1377c8f5b7a14170ff2746c83d9418ba3b25
/examples/stepper/stepper.ino
666ffee0bbfd326527e9de0f6c4a468eeb33bb84
[]
no_license
f-w-robots/RBT
8c18fe59b267985c02c6aaba823ba08e4b903b69
0ed0a822458d6b007b3c4d005fad01f557f59308
refs/heads/master
2021-01-19T02:02:06.112276
2017-02-13T10:01:13
2017-02-13T10:01:13
52,425,188
0
0
null
2016-05-03T16:29:47
2016-02-24T08:06:29
KiCad
UTF-8
C++
false
false
150
ino
stepper.ino
#include "StepperMotor.h" StepperMotor motor(A0,A1,2,3,4,5,6,7); void setup(){ // Serial.begin(9600); } void loop(){ motor.step(1000, 1, 1); }
bb5bae349eb85ecf14d5c768ed75069688e7001f
bc8a89a4911fc31c1ae50944889f5a81c0e4832f
/414.cpp
1987e038ac5aee9bf2f4fea1d3da2431ae0fb925
[]
no_license
thierrychou/uva_online_judge
44616c1368176b16871a3cecbaff8c220e53680e
8a8a1493dec163c46a816785c66cfc65af6abc65
refs/heads/master
2023-03-28T12:12:10.499713
2021-03-21T12:23:33
2021-03-21T12:23:33
349,991,527
0
0
null
null
null
null
UTF-8
C++
false
false
476
cpp
414.cpp
#include<algorithm> #include<cstdio> #include<climits> int n, i, j, count, total, min_count; char line[26]; int main() { while(scanf("%d\n", &n)!=EOF && n!=0) { total = 0; min_count = INT_MAX; for(i=0;i<n;++i) { gets(line); count = 0; for(j=0;line[j]!='\0';++j) ...
00c7dd8101c0256929d4ef3609c06cc316fb1663
9c51a309d7918b92c70bc2de288d5698d1f47875
/src/Plugin/pluginmanager.h
2be21f37529cea730b59200d2ca5f29280b92362
[]
no_license
mickeys11375/vvmesh
aedb36beeedbc68b238c75ec0db0dc2a58ef4ea9
4c1c0ac943e430d750b399f77e187096f04d5399
refs/heads/master
2023-09-03T12:44:27.075310
2021-10-18T13:27:40
2021-10-18T13:27:40
416,451,545
0
0
null
null
null
null
UTF-8
C++
false
false
718
h
pluginmanager.h
#ifndef PLUGINMANAGER_H #define PLUGINMANAGER_H #include "dllmacro.h" #include <unordered_map> #include <iostream> #include <memory> #include <nlohmann/json.hpp> class PluginInterface; class DLL_API PluginManager { public: PluginManager(); bool registerPlugin(std::shared_ptr<PluginInterface> plugin); bool callP...
9e30709f7ef1d658fde62df0b69e32b01d52c5b7
d32db53d351400c2780aa9c6ef481457d1c88b6b
/src/HomieNode.h
26a3d831c2f64177b9ae75aec765015b4cc9f470
[ "MIT" ]
permissive
szwenni/HomieLib
99eb2376adc15ae417f2d98b17ec0bad30482a5c
e4a737eb03baa6aefd8807aa00cceeda1d702460
refs/heads/master
2022-04-12T03:05:11.559837
2020-03-09T12:57:33
2020-03-09T12:57:33
234,338,051
0
1
null
null
null
null
UTF-8
C++
false
false
679
h
HomieNode.h
#ifndef HOMIENODE_H #define HOMIENODE_H #include <Arduino.h> #include <Homie.h> class HomieNodeProperty; class HomieNode { private: public: Homie* homie; String nodeId; String name; String type; HomieNodeProperty** properties; uint8_t propertyCoun...
53521d6abdf461cdbe2b3e6fb5d524df3dd13e2c
b689ddf357218e334253ac2cfad496a272d08c06
/include/iupgui.h
500277e85ce177e5b90658c8c7a29234e2d4bb3c
[]
no_license
derAndreyAndreevich/iup
135da73808df3eb5d685967373bb573f920256b1
958d798d598eb650f3026abae306ce355515ac19
refs/heads/master
2020-12-24T17:35:35.709608
2014-11-07T10:25:17
2014-11-07T10:25:17
null
0
0
null
null
null
null
UTF-8
C++
false
false
136
h
iupgui.h
#ifndef IUPGUI_H #define IUPGUI_H #include <iostream> #include "widget.h" #include "dialog.h" #include "button.h" #endif // IUPGUI_H
3f0f63b516d445d0a89d10a276805f2efa4cf55d
459281e69679d09bfbb54a520b14dee2e563f63a
/Fractal_Compression/src/TransformedImage.cpp
0e36d704b39027e65df5a29ba6e0b0d475b696c6
[]
no_license
pettza/Fractal-Compression
f92420bdfac4e1e37d88024143ba552b2578fae7
6deb28abb935e992e664368c24ca63a845ffedd8
refs/heads/master
2020-04-19T18:03:40.790704
2019-02-01T16:42:37
2019-02-01T16:42:37
168,352,200
0
0
null
null
null
null
UTF-8
C++
false
false
282
cpp
TransformedImage.cpp
#include "TransformedImage.h" unsigned char TransformedImage::operator()(unsigned int x, unsigned int y) const { auto point = transform(x, y); auto newX = point.first; auto newY = point.second; unsigned char pixel = Image::operator()(newX, newY); return (3 * pixel) / 4 + b; }
3a60f5c6fa67e496ab0b8aeb0c1f4eb8a5202aaa
810dda885341230060dde8b8ce2a6c10b976a96a
/src/modules/backend/entity/ai/action/AttackOnSelection.h
1d31ef19b71adcddbd345742f967fbc626e977b8
[]
no_license
aiekick/engine
99f1d99ccb9c7b5108189d5c4399e294f236d033
c90c66ede21d11bf7c689e68e461a193dd5cb7d6
refs/heads/master
2020-03-11T19:43:06.203687
2018-04-16T20:34:51
2018-04-16T20:34:51
130,215,870
1
0
null
2018-04-19T12:57:21
2018-04-19T12:57:21
null
UTF-8
C++
false
false
442
h
AttackOnSelection.h
/** * @file */ #pragma once #include "Task.h" #include "backend/entity/Npc.h" using namespace ai; namespace backend { AI_TASK(AttackOnSelection) { backend::Npc& npc = chr.getNpc(); const FilteredEntities& selection = npc.ai()->getFilteredEntities(); if (selection.empty()) { return FAILED; } bool attacked ...
428d489b9a0c8e0b45272019f971aa273472205a
65f2a1b267175d6045c619025453aa2e974f04d2
/ps_with_class/PoseEstimation.cpp
d7ee0daa427221fdbe06782ced346e44a55eeb76
[]
no_license
albehma/Object-Pose-Estimation-and-Template-Matching
8c4093b8a9a72dabb135ce685969b59ca0caa5df
1a8e5be9b75b8e8b7af05f3965c7a45a0ffd0e3b
refs/heads/master
2023-05-03T06:08:58.348956
2021-04-28T11:16:04
2021-04-28T11:16:04
362,433,224
1
0
null
null
null
null
UTF-8
C++
false
false
6,160
cpp
PoseEstimation.cpp
#include "PoseEstimation.h" Mat result; const char* image_window = "Source Image"; const char* result_window = "Result window"; int match_method = 4; //Variabili di edge detection Mat tmp, src_gray; Mat test, test_gray; int lowThreshold = 11; const int kernel_size = 3; //const char* window_name = "Edge Map"; //Varia...
d6002174ff8d894b40cd618996bf53dc423addd9
a2cbc3da25ee28ede70e44e3fd40a2891f51866a
/loginserver/LoginServer/LoginServer.h
fe761abbfdddb5493c3ccb6fe90b1530a48fba56
[]
no_license
mime3/mimelib
481c89781af0f49468f6877a98d5f1dfe88c9b69
765e6b1459cd9e4102eb282da52d44f3adf8c482
refs/heads/master
2021-06-12T06:12:51.735294
2021-04-11T11:50:14
2021-04-11T11:50:14
171,701,809
0
0
null
null
null
null
UTF-8
C++
false
false
537
h
LoginServer.h
#pragma once //#include "MonitorLanClient.h" //#include "CommonProtocol.h" #include "LoginMonitorClient.h" struct LOGIN_DATA { INT64 accountNo; int status; }; class LoginServer { LoginNetServer _LoginNetServer; LoginLanServer _LoginLanServer; LoginMonitorClient * _MonitorClient; WCHAR _processName[128]...
8faaec48467a46b80be3306667ffa631f6efa217
6c2a6de2f949f70360e0701e92d8fad374977223
/src/c++/data-structures/dynamic-array.cpp
3256808eec9d4e133130db1ba8982f29432ee5ea
[ "MIT" ]
permissive
chad-ramos/data-structures-and-algorithms
0a8b74a90d99dac1ad2a2588b0e4bb9a7dbe4411
577f62590dfbc281c55789b858e7d6863d55597b
refs/heads/master
2022-11-28T00:15:34.909240
2020-08-02T23:24:58
2020-08-02T23:24:58
281,492,533
0
0
null
null
null
null
UTF-8
C++
false
false
2,454
cpp
dynamic-array.cpp
#pragma once #include <stdexcept>; #include "dynamic-array.h"; namespace data_structures { template <typename T> DynamicArray<T>::DynamicArray() { max_size_ = 1; arr_ = new T[max_size_]; elements_in_array_ = 0; } template <typename T> T DynamicArray<T>::Get(int index) { if (index < 0 || index > elem...
9f5e2e353a769e8b9e7cbe2f551fe3ee1bcaa0f1
7528277f1619c69975d930222bc127b5161141d1
/Portal Seekers Matchmaking Server/matchmaking.cpp
603701aced1f2251e992fa429368fe83914437a1
[ "MIT" ]
permissive
pedroalmeida-dev/Student-Projects
59ba99ed950e20b26bccfc616aacf960fc01412d
476db403ec72a0dcde2e7061062f35ecf94a42ed
refs/heads/master
2020-03-07T06:26:58.221678
2018-04-15T08:19:25
2018-04-15T08:19:25
127,322,405
0
0
null
null
null
null
UTF-8
C++
false
false
13,627
cpp
matchmaking.cpp
#include "matchmaking.h" #include <sstream> Matchmaking::Matchmaking(Room_Manager* room_manager) : m_room_manager(room_manager) { m_db_conn = new Database_Conn(DB_NAME); } Matchmaking::~Matchmaking() { } void Matchmaking::SetPort(int _port) { //Set port number port = _port; if (port == 0) {...
d7d770e5603ea7826082a929b254703b6e774c12
dd3a8c15cf55a422217dada4f03cf61bba081acb
/utils.h
01cf9a50d16dcd72d096b4181160dd961cd3c2c1
[]
no_license
fengchengAI/ChatServer
20105ec1c583183811a856c71f805bd7b152e53a
2b8991c146ca71c21b5525cbe7c7487773b0851b
refs/heads/master
2023-06-13T21:37:28.378957
2021-07-02T01:22:41
2021-07-02T01:22:41
345,051,462
0
0
null
null
null
null
UTF-8
C++
false
false
696
h
utils.h
// // Created by feng on 2021/3/11. // #ifndef UNIX_NETWORK_UTILS_H #define UNIX_NETWORK_UTILS_H #include <string> #include <ctime> #include <cstdlib> // Header file needed to use srand and rand #include <climits> using namespace std; std::string getDateTime(); void setSockNonBlock(int sock); std::string chartostri...
fe469b1cc5b3fa35e488972b84fa2343b2e7e4c5
83047d4f85e6d4ddcbcf6eee05bfd82dc2b477bb
/cpp/dlineedit.cpp
fdc6abac0261212b2f79a0335271300f41be5993
[]
no_license
gs342/only-for-test
eb47d2f3297a782d501677a263bc808841d93b9b
bffd6080cce97d00da3904cf909d1e9d328b6be8
refs/heads/master
2021-04-26T22:11:49.857142
2018-03-06T08:40:31
2018-03-06T08:40:31
124,037,514
0
0
null
null
null
null
UTF-8
C++
false
false
173
cpp
dlineedit.cpp
#include "dlineedit.h" #include "dthememanager.h" DUI_USE_NAMESPACE DLineEdit::DLineEdit(QWidget *parent) : QLineEdit(parent) { D_THEME_INIT_WIDGET(DLineEdit); }
5a0f85cf7af6deb7c45af48dacfceef6a50af9c7
a9d1069c2412594f27243485dae8615d780770ce
/unit_tests_src/testRunner.h
9a09fc848843f488928464c5f6174fe8263ead63
[ "MIT" ]
permissive
nameisntimportant/transport_catalog
866a67c9d17b1e66bc53c47dda2cf3d92446c986
126d48b5742fe50ea0a4cb180910adedfcedc92d
refs/heads/main
2023-07-15T09:48:03.855375
2021-08-16T17:22:35
2021-08-16T17:22:35
381,337,901
0
0
null
null
null
null
UTF-8
C++
false
false
6,695
h
testRunner.h
#pragma once #include "utils.h" #include <iomanip> #include <iostream> #include <list> #include <map> #include <math.h> #include <set> #include <sstream> #include <stdexcept> #include <string> #include <variant> #include <vector> template <typename T, typename Y> std::ostream& operator<<(std::ostream& os, const std:...
dd37d9b6d3ddafdea849e2c85299048400b28ce9
4c544bb3b7f8a06edc1b61da50c8c7d041a15896
/leetcode-cpp/FibonacciNumber_509.cpp
ef728d9dabc7c3c288844ac1969e1d5ea36e6560
[ "Apache-2.0" ]
permissive
emacslisp/cpp
fb5385d4008ebb8367da93427474b0b118651d54
29beeead4fb385a3702e0022ebdac9608869877d
refs/heads/master
2023-04-12T05:42:25.022888
2023-03-11T14:30:09
2023-03-11T14:30:09
97,773,677
0
0
null
null
null
null
UTF-8
C++
false
false
743
cpp
FibonacciNumber_509.cpp
#include <vector> #include <iostream> #include <climits> #include <algorithm> #include <queue> #include <stack> #include <map> #define Max(a, b) a > b ? a : b #define Min(a, b) a < b ? a : b using namespace std; class Solution { public: int fib(int n) { if(n==0) return 0; if(n<=2) return 1; ...
7fdb0993cc8c71275b8d1180fb6ace0fa6cf9a79
a23f895a3982037ea114200ef2f31e9c15e1c69e
/Marsh/Marsh/Portal.cpp
5d14d36dd5e5f268b27bc0c53ff9681004586250
[]
no_license
Casket/marsh-game-files
588fd930c804ca91fc9b227291d520e5e2c7e297
176fa31bf469e2ffd827b7601eb3f4334f2164ce
refs/heads/master
2020-12-24T15:23:15.703437
2013-05-15T15:46:21
2013-05-15T15:46:21
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,673
cpp
Portal.cpp
#include "Portal.h" using namespace std; Portal::Portal(int x, int y, Sprite *img, WorldName togo, int targ_x, int targ_y, bool is_world_port) :iDrawable(x, y, 0, 0, img) { this->portal_to = togo; this->my_type = StarGate; this->activated = false; this->target_x_pos = targ_x; this->target_y_pos = targ_y; this-...
77147d933ef34a291d0b1326e098830bb933a371
2af653b977439da4efdf981359b0672b98c9ae65
/map.cpp
6b340dc43b5f87d2f6382063d0368420ebfc0c2d
[]
no_license
lavezziOh/cpp-console-rpg-game
5e0d7f1651ca5c7383c70b70deec729aa25ba883
1efdfc8d0b496a39ba5073677a3b7a3ead37400d
refs/heads/master
2022-04-08T15:02:12.188849
2020-02-18T23:29:43
2020-02-18T23:29:43
237,275,340
0
0
null
null
null
null
UTF-8
C++
false
false
1,110
cpp
map.cpp
#include "map.h" #include <iostream> #include <cstdlib> #include "map.h" #include <windows.h> #include <string> #include <time.h> #include "map.h" void Map::CreateMap( int tilesX, int tilesY) { std::string x[tilesX][tilesY]; int t=0; int k=0; int randomNumber=0; int randomNumberDensity=0; srand (time(NULL));...
c2c7a6aa27ce749a4da325ea27ff71db24385954
182f728e9feee7033391fb4c45dbc37cd7b5acf4
/.cpp
94b65377c3497d1778acea0a36e47bc01b761c73
[]
no_license
baetu/Cautare-Binara
d6574c867b7a111abd42639e4f0a1674354ee039
6c4b921ef8d9059d7edf8e0a81d709b5cdb457a4
refs/heads/master
2021-01-12T08:55:33.250161
2016-12-17T11:41:33
2016-12-17T11:41:33
76,720,701
0
0
null
null
null
null
UTF-8
C++
false
false
1,173
cpp
.cpp
#include <cstdlib> #include <iostream> using namespace std; int a[]={10,20,30,40,50,60,70,80,90}; int apartine(int x,int i){ if((x>=a[i])&&(x<a[i+1])) return 0; else return 1; } int ro(int s,int i){ if(s<a[i]) return -1; if(s>=a[i])return 1; return 0; } int CautareBinara(int x,int s,int d){ int ...
2ca7752d07c8e53f01361affb2e2352360ba4577
c0e987b472c59ae53f5c2d2fcfb92152938ae8db
/Ejemplo_C_Archivo/main.cpp
489d999df57b33635068e4b020c4c49f4b49175f
[]
no_license
nicolastuka/BBDD_ISFT194
8b1c18e480a4910bf34287cf621c687bc92b7d74
480cbe0376f779706663647b7082722d11ea9ecc
refs/heads/master
2020-06-17T08:27:23.516043
2019-07-08T19:29:01
2019-07-08T19:29:01
195,861,486
0
0
null
null
null
null
ISO-8859-1
C++
false
false
7,808
cpp
main.cpp
#include <iostream>//flujos de entrada, salida y error #include <stdio.h>//para hacer uso de la clase FILE #include <cstdlib>//para hacer uso de malloc y realloc para la gestion de memoria #include <conio2.h>//para ordenar un poco la pantalla using namespace std; /* estructura que representa a un alumno, tambien...
2f3378d07b13e49d71c0fbb7f655ef191ee0028d
138e55c5456c45996ecc3fcdc3eefa9fa1152adc
/Remove Invalid Parentheses.cpp
2e5194372149578c9a46a4c951b1156da7cef35c
[]
no_license
guinao/LeetCode
ed5779a4403652020d450a9b3a187ae0cacb3bd7
0520cdba1a6b13f073b5fcffb9a84ddad9ed910b
refs/heads/master
2021-01-01T18:48:01.646152
2016-02-26T07:35:35
2016-02-26T07:35:35
31,796,314
1
0
null
null
null
null
UTF-8
C++
false
false
1,727
cpp
Remove Invalid Parentheses.cpp
#include <cstdio> #include <vector> #include <string> #include <set> #include <algorithm> using namespace std; class Solution { private: string strip(string s){ int start = 0, end=s.length(); for(;start<s.length() && s[start]==')'; ++start); for(;end>0 && s[end-1]=='('; --end); return s.substr(start, end-sta...
68418e57001edfcf4a524e81006424f770ac68a3
8a87f5b889a9ce7d81421515f06d9c9cbf6ce64a
/3rdParty/V8/v7.9.317/test/cctest/wasm/test-wasm-serialization.cc
ad5d5b13825279c61065c734aa9ba1a72d6ebeb1
[ "Apache-2.0", "BSD-3-Clause", "ICU", "Zlib", "GPL-1.0-or-later", "OpenSSL", "ISC", "LicenseRef-scancode-gutenberg-2020", "MIT", "GPL-2.0-only", "CC0-1.0", "BSL-1.0", "LicenseRef-scancode-autoconf-simple-exception", "LicenseRef-scancode-pcre", "Bison-exception-2.2", "LicenseRef-scancode...
permissive
arangodb/arangodb
0980625e76c56a2449d90dcb8d8f2c485e28a83b
43c40535cee37fc7349a21793dc33b1833735af5
refs/heads/devel
2023-08-31T09:34:47.451950
2023-08-31T07:25:02
2023-08-31T07:25:02
2,649,214
13,385
982
Apache-2.0
2023-09-14T17:02:16
2011-10-26T06:42:00
C++
UTF-8
C++
false
false
11,615
cc
test-wasm-serialization.cc
// Copyright 2015 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <stdlib.h> #include <string.h> #include "src/api/api-inl.h" #include "src/objects/objects-inl.h" #include "src/snapshot/code-serializer.h" #in...
347170b6fc41c2522371ab0a574bcba42894514c
534b34d9d4817ffbb3a5ded0fdbdf76e79e5cbcf
/gamewidget.h
ed8168194063db2963e1394031a808091e0b3761
[]
no_license
levongh/Game
30a2fc259e744c3c265bbed37d1a64429970f8ea
5e8a5fb21ce7f7474a98640292d2cdc282c67bb5
refs/heads/master
2020-03-23T20:25:13.584507
2018-09-20T06:22:23
2018-09-20T06:22:23
142,040,119
0
0
null
null
null
null
UTF-8
C++
false
false
322
h
gamewidget.h
#pragma once #include "gametable.h" #include "inventarItem.h" class GameWidget : public QWidget { Q_OBJECT public: GameWidget(QWidget* parent = 0); virtual ~GameWidget(); public: void startGame(); signals: void openMainMenu(); private: GameTable* m_pTable; InventarItem* m_pCurrFruit; }...
b35b047d17fc9b18ee5cc8ceedbbce2fd41f0875
5e35f570b2c9c6a507039ff97189c1d679b8510f
/DBVerify/presetdboperator.h
657917e4a6615d145e07c4c80d0ff4547781d005
[]
no_license
FMX/qt-gui
7e48cc21e963a69ef80b70bfa7a2198dbbfe3813
5185662fc4b58fcc5ad932ca79650305734cb1d3
refs/heads/master
2021-03-19T08:26:45.262904
2016-08-30T03:01:55
2016-08-30T03:01:55
65,461,731
0
0
null
null
null
null
UTF-8
C++
false
false
598
h
presetdboperator.h
#ifndef PRESETDBOPERATOR_H #define PRESETDBOPERATOR_H #include <leakinfoitem.h> #include <QList> #include <QSqlDatabase> #include <QSqlQuery> #include <QMessageBox> #include <QVariant> #include <QSqlError> #include <QDebug> #include <QDir> class PresetdbOperator { private: QSqlDatabase database; public: Preset...
b1419e6a4f775fb0fceb52648f46c702159db94b
cb0013b5b4a40b2d4b86f7ad4bf7bdefc0ede8b3
/002/c/c.cpp
feb4e102d350580466561d5353049061bc3d964c
[]
no_license
yuta0428/abc-practice
c3c696900993c0e2b9cadad03e059adb3b627feb
a5dfe720148f5539a0448d72d7b19e24bd5ab170
refs/heads/master
2020-08-01T06:21:34.835849
2019-11-04T14:30:49
2019-11-04T14:30:49
210,897,564
0
0
null
null
null
null
UTF-8
C++
false
false
317
cpp
c.cpp
#include <bits/stdc++.h> using namespace std; int main() { int xa,ya,xb,yb,xc,yc; cin >> xa >> ya >> xb >> yb >> xc >> yc; float r = abs((xb - xa) * (yc - ya) - (yb - ya) * (xc - xa)) / 2.0f; printf("%.1f\n", r); } /* float出力はprintfでやらないと桁がうまく表示されないよう */
939590ff9562a9e1addfda8f34cf3aabd7d67c43
10b529ad2cb7189732b10c97af6e53291c5d87e2
/GraphM.cpp
ac520e09669899ccb8e970e6c87e544696cc65ff
[]
no_license
JaneJacqui/343Lab3
1aa952036eb831cd3c3a360e34c922d2c88fcabb
9461a49d23e3c2b08bf7bd17621b22cce50968a6
refs/heads/master
2021-05-29T04:05:16.739517
2014-02-05T01:49:35
2014-02-05T01:49:35
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,455
cpp
GraphM.cpp
#include "graphm.h" //---------------------------------------------------------------------------- // constructor // GraphM::GraphM() { size = 0; graphChanged = false; //initialize C[][] to all infinities for(int i = 0; i < MAXNODES; i++) { for (int j = 0; j < MAXNODES; j++) { C[i][j] = INFINITY; } } ...
8b2b3455184935e3f7a5d89c62cd69ad1bd23b4e
5e36f65f1d84cbf50cd683ccc27c7a5c87e6a960
/classeGrafo/LibGrafo/pontodeinteresse.cpp
6a21e6ad873305ae805e76653a27f08d71f860ae
[]
no_license
gsalmeida/Estrutura-de-Dados-II
417288c419e21f6a9f215edfeec3b80f45748f3b
94037c8a088bf34126e305efe7cca6612d50eb75
refs/heads/master
2021-01-10T10:58:50.174751
2016-03-07T04:28:21
2016-03-07T04:28:21
53,295,494
0
0
null
null
null
null
UTF-8
C++
false
false
365
cpp
pontodeinteresse.cpp
#include "pontodeinteresse.h" PontoDeInteresse::PontoDeInteresse(Texto desc, float lat, float lon, unsigned i) : Coordenada(lat,lon,i){ descricao = desc; } void PontoDeInteresse::setDescricao(Texto desc){ descricao = desc; } Texto PontoDeInteresse::getDescricao () { return descricao; } Texto PontoDeInte...
ce0cbfd87cb0354c5bbd0b036982c9b11be3202f
00f1cfc73ba05f72373fbdfd303f6f34dd3a533e
/JMSTOOLSutil.m/src/ServicesProvider.cpp
d77fa44a9933cd19a725b8c0ee2367b7459e52c3
[]
no_license
weltermann17/just-like-java
07c7f6164d636688f9d09cdc8421e51d84fdb25f
6517f1c1015e0b17a023b1b475fcc2f3eed9bade
refs/heads/master
2020-06-06T08:32:13.367694
2014-07-01T21:19:06
2014-07-01T21:19:06
21,002,059
4
0
null
null
null
null
UTF-8
C++
false
false
16,320
cpp
ServicesProvider.cpp
// ServicesProvider.cpp //******************************************************************** #ifndef ServicesProvider_cpp #define ServicesProvider_cpp //******************************************************************** #include <jmstools/util/services/ServicesProvider.h> #include <jmstools/util/servi...
bff9812c553cd9c842725e6f0f5ce4919ef640c8
6443b3ac8506dacc4e6a00649b59ed72645a59ce
/Book/Chapter02/ArithmeticProjectC/ArithmeticProjectC.cpp
26f9391361a864a4359afe10bc18958782668da8
[]
no_license
irmoralesb/WindowsDebuggingPracticalFoundationsX86
383cd3860948213e15b89e521f25ee33dac74ad8
6c9da190a9eafe60e74059e5754e15218d4872ad
refs/heads/master
2020-12-07T07:46:33.145636
2020-01-15T23:12:15
2020-01-15T23:12:15
232,676,377
1
0
null
null
null
null
UTF-8
C++
false
false
112
cpp
ArithmeticProjectC.cpp
int a, b; int main(int argc, char* argv[]) { a = 1; b = 1; b = b + a; ++a; b = a * b; return 0; }
a239b2964e0c50024d507b74b2ad46d44d2ed953
da4bad697d3f2ef3f210c82331e9ed229a616433
/Packages/RootsolversPackage/2.5.0/src/definitions/newton.cpp
344d705c61f4c6238d88b275fc6668cae8001524
[]
no_license
Martin581/ConanExtendedExample
d8487bc0f43d6f9be1daab5a6bd80085b3aec562
74c9bf976286607d0b44ab0c28ab3ba740c3c626
refs/heads/master
2020-09-25T15:07:56.674688
2019-12-12T07:51:51
2019-12-12T07:51:51
226,030,958
0
0
null
null
null
null
UTF-8
C++
false
false
610
cpp
newton.cpp
#include<assert.h> #include<RootsolversPackage/rootsolvers.h> #include<FinitediffPackage/finitedifferences.h> static const double fd_pert = 1.0e-2; void rootSolve_newton(double(*func_f)(const double&), double& x){ // warning: may diverge // requirements: x0!=x1, x0,x1 , x0,x1 within well-behaved domain const dou...
31120c7eabebf17686afa9676c6da39faaddc6f9
4303d52a6aa27f4ce3114ad296d249549b951e6c
/bayes/Bayes-master/test/item_unittest.cc
b3c8bd7244325c23382b2739d999646f39bbb5d0
[]
no_license
hrWu/CppLearn
6d39c7ec9ec14d2e531d091aaa6ec49cff79c1df
b82547efcf6a6a2184cbdf8a3fad24bc4d7d02c7
refs/heads/master
2020-12-04T21:25:16.281054
2016-09-21T10:20:28
2016-09-21T10:20:28
67,281,565
0
0
null
null
null
null
UTF-8
C++
false
false
965
cc
item_unittest.cc
// // Date: 2015/09/21 // #include "../include/bayes/Items.h" #include "gtest/gtest.h" #include <string> #include <vector> using namespace std; TEST(BAYES_ITEMS, ITEM) { Items items(vector<int>({0, 1, 2, 3, 4, 5, 7})); // 测试size函数 EXPECT_EQ(items.size(), 7); // 测试下标operator[]函数 EXPECT_E...
1fcd82bf689036f80cf79422a90294f18abb81d3
0247229ecf60901fbe2363354e9db283b8a6b6c0
/Code/Check Prime.cpp
5911d5e5284d0e6460426970833bd4d75587e089
[]
no_license
web-design4every/LabC_FPT
1bd9102bc7886c420d2489057220e190c9c81a0e
3992bac52f87ae5880f1c40aa2be47d884b99b02
refs/heads/main
2023-07-10T05:02:03.097222
2021-08-14T12:37:12
2021-08-14T12:37:12
396,004,316
0
0
null
null
null
null
UTF-8
C++
false
false
1,939
cpp
Check Prime.cpp
#include <cstdlib> #include <stdio.h> #include <math.h> #include <string.h> using namespace std; int checkprime(int num){ int i; if(num==0||num==1){ return 0; } for(i=2;i<=num/2;i++){ if(num%i==0){ return 0; } }return 1; } int Sumdigits(int n) { int sum = 0; while (n > 0) { sum = sum...
af2babad94824b62f43e8d744d8e2689320f6b1f
9fe1638600ade044714d25a301f28ca9846c5224
/SnakeGame/src/RandomGenerator/RandomNumber.h
990766fb04dce31fec14a632a53fe057bc7816cc
[ "MIT" ]
permissive
rishi-menon/SnakeGame_CPP
b9a9e97dfabfe2f5425ed91f9131fa9c8e4fe801
11590eec41bfb2442bbb8be349a2ff50ddae2493
refs/heads/master
2022-09-06T21:09:42.377447
2020-05-25T16:57:45
2020-05-25T16:57:45
255,180,133
0
0
null
null
null
null
UTF-8
C++
false
false
272
h
RandomNumber.h
#pragma once //could make it a staic class ?.... namespace is sufficenet for now namespace RandomNumber { extern void Init(); extern float GetFloat(); extern float GetFloat(float min, float max); extern int GetInt(); extern int GetInt(int min, int max); }
889ae2736eea6e5cf1ebd41722f9b51dbf287b69
77ff0d5fe2ec8057f465a3dd874d36c31e20b889
/problems/JOI/Straps.cpp
a479a13b8860c273e9dd8ebba6d601ee03172ec0
[]
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
UTF-8
C++
false
false
2,992
cpp
Straps.cpp
#include "bits/stdc++.h" using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; #define INF 1<<30 #define LINF 1LL<<60 /* <url:https://www.ioi-jp.org/camp/2014/2014-sp-tasks/2014-sp-d4.pdf> 問題文============================================================ JOI 君は,携帯電話に取り付けるための...
d370e00d3d022222f527eb2aa27148afc5290b37
c2d34f9df2e381470eeb36553adcc9d914a63269
/FortranWrapper/Evolution.cc
9d00f053187fa0b1518c10222fbf64b182f897d1
[]
no_license
marcoradici/Transversity
591050236bf80843b276633c5e95e48dfbab1f34
e0bc64262872972dc875e7e5c4a2bb571f8d7fb7
refs/heads/master
2022-08-03T18:39:03.244630
2020-05-29T14:55:17
2020-05-29T14:55:17
120,604,012
0
0
null
null
null
null
UTF-8
C++
false
false
3,399
cc
Evolution.cc
// // APFEL++ 2017 // // Author: Valerio Bertone: valerio.bertone@cern.ch // #include <apfel/apfelxx.h> // Evolution object std::unique_ptr<const apfel::Grid> g; std::unique_ptr<const apfel::TabulateObject<apfel::Set<apfel::Distribution>>> TabulatedPDFs; // Parameters double pars[10] = {0}; // Initial scale functio...
44e1496b00810737c0f2353136fcae29c524335d
cd9dc732af64fd3ba5a8cbbdbe9bb1893ec32a6e
/prac04/game_background.h
279fe20feb26e30d56c7f1192a62084d67de27f7
[]
no_license
wander0220/prac04
b4ba9f35575c21901f5422d00f546f2c6e801561
d02e2c14066dfc49d35cefbe121473f762c8dd33
refs/heads/master
2022-10-30T06:19:51.999058
2020-06-22T15:37:42
2020-06-22T15:37:42
268,500,496
0
0
null
null
null
null
UTF-8
C++
false
false
118
h
game_background.h
#pragma once class GameBackground { public: GameBackground(); void Render(); void Update(); float backgroundY; };
0a58b5ee1e97aa169ef8b945ab118638c46fbfaa
46df8856822816edc4509df898dc6afc85b54e3c
/molecular-dynamics-master/MPI/test.cpp
e8d65c269078ea95e4223763ca8e9c41f475ae4d
[]
no_license
PuppyQ08/CS420HW
96101ab6dd0a695b0deab1fc0a731177a8f56d33
32b8422ccd9cd828fb33ba19f6e485a810fc6b49
refs/heads/master
2023-03-31T05:20:27.584446
2019-02-22T06:39:40
2019-02-22T06:39:40
null
0
0
null
null
null
null
UTF-8
C++
false
false
730
cpp
test.cpp
#include <iostream> #include <cmath> int get_process_rank(int grid_len, int x, int y, int z) { // If one process needs to identify the rank of another process, based on grid coordinates return int(x * pow(grid_len, 2) + y * grid_len + z + 0.01); } int main(){ std::cout<<get_process_rank(2, 0, 0, 0)<<std::endl; ...
d29daca42f3f79ded28270837a89f93f1ad7efff
6ebd3c4a0700f1972673dc0443a8e8dea6f6d073
/Resources/CoreStructures/TexturedQuad.h
cbe539a5c591524dc68de382d8e082afa8a61c2c
[ "MIT" ]
permissive
ignore444/OpenGL-MSAA-SSAA
4c7109dafe10f359061108dd483b51c8d23a4788
fbb3335555036141ad99b41f5abcf92fe466c9b6
refs/heads/master
2022-12-29T16:02:39.728117
2020-10-22T10:39:14
2020-10-22T10:39:14
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,121
h
TexturedQuad.h
#ifndef TEXTURED_QUAD_H #define TEXTURED_QUAD_H #include <vector> #include <glad/glad.h> #include <glm/gtc/type_ptr.hpp> struct TextureGenProperties; // Model a simple textured quad oriented to face along the +z axis (so the textured quad faces the viewer in (right-handed) eye coordinate space. The quad is modelled...
dbd624d165c64f4a489aa5a363e6f3605a829e72
5bfcd0c40509ed4f4251e5d286aa010e0a04243f
/sources/gui.h
b2c8a7b5d6e64bb7d6ed859fd314d21debe3493c
[]
no_license
CedricGuillemet/theRush
28b912d8c90f8c7b67c7c0c3e55512ab9bb7df0c
bf1a85200f236d8eff672fb701b213a4ea24424c
refs/heads/master
2021-09-06T09:07:56.188895
2018-02-04T19:06:26
2018-02-04T19:06:26
120,213,513
2
1
null
null
null
null
UTF-8
C++
false
false
6,053
h
gui.h
/////////////////////////////////////////////////////////////////////////////////////////////////// // // __ __ __ // | |_| |--.-----. .----.--.--.-----.| |--. // __| _| | -__| | _| | |__ --|| | // |__|____|__|__|_____| |__| |_____|_____||__|__| // ...
e9bcb1c74791205ec9b47299f021c0794b9c581b
932e41253a6fe96c92b1cf900a37fdac210300eb
/graphs/graph_structure/dense_graph.cpp
b0ef67f7dbb959e1d84716eb8da145643f6fe0b1
[]
no_license
taikido/algorithms
4ed4c1efa004a6fe6318d39f9b3c67c7e102c998
6954bcef087af3191cc010aade798ef1e2b4b489
refs/heads/master
2016-09-11T04:17:36.824385
2015-02-25T10:04:33
2015-02-25T10:04:33
15,062,271
0
0
null
null
null
null
UTF-8
C++
false
false
2,357
cpp
dense_graph.cpp
/*============================================================================ * Name : dense_graph.cpp * Author: taikido * Description: Dense Graph * Source: Adapted from Sedgewick Chapter 17 * Date: Jan.2015 * Updated: Sat.Feb.7.2015 *===========================================================================*/ #inc...
133ef043f578e6a307bce15fc6fa015afe6d8bc6
1f6824a64c3cc6b0827b55f24079edc23ed6bc2b
/Plugins/Prefabricator/Intermediate/Build/Win64/UE4/Inc/PrefabricatorRuntime/PrefabricatorAsset.generated.h
e63eab13597991c5e329d75a2bb5f5d89aaac3f4
[]
no_license
lineCode/Woodlands
bb330644567c92e041e4da3d5d80326755c370c5
9e99f948543ad3f8f0eead691eddb4125da272f5
refs/heads/master
2023-04-15T13:56:45.978505
2021-04-19T04:30:44
2021-04-19T04:30:44
null
0
0
null
null
null
null
UTF-8
C++
false
false
27,677
h
PrefabricatorAsset.generated.h
// Copyright Epic Games, Inc. All Rights Reserved. /*=========================================================================== Generated code exported from UnrealHeaderTool. DO NOT modify this manually! Edit the corresponding .h files instead! ========================================================================...
9abbf845abafd18e4153780336e888293c80a6dc
bcfcc97ad38042ce00d6e3302a6727a0272f85f1
/olivine/src/olivine/core/image.cpp
ecabba436bd44fffe45b795f1a8ad6c3e8c4c6e9
[ "MIT" ]
permissive
Alfret/Olivine
916cfb2bb45eb67b0b8a1972272541b9735ff040
69aa108d11cad6cad70f7695d33ec4f1bdc6fe2b
refs/heads/master
2020-08-01T07:39:21.068518
2019-12-08T13:32:44
2019-12-08T13:32:44
210,916,955
0
0
null
null
null
null
ISO-8859-1
C++
false
false
14,683
cpp
image.cpp
// MIT License // // Copyright (c) 2019 Filip Björklund // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, mod...
decfc5ba574fd2971a0e34781303e91de9cb4cc1
93110de299dd89266a71c0dbff9740587dc38566
/caribou++/include/caribou++/cbitmap.h
bcd0f4a92b676ea73349ba087dc1fac75a83f846
[ "Beerware" ]
permissive
8bitgeek/caribou-rtos
de14411505fb50cdfa2e7a27b41d08a5f018493a
686a658166fd6ab8216712a25504229d7162def4
refs/heads/master
2023-05-11T06:45:06.348215
2023-05-02T14:11:14
2023-05-02T14:11:14
39,317,026
9
2
null
2020-03-08T01:26:16
2015-07-19T00:25:15
C
UTF-8
C++
false
false
2,173
h
cbitmap.h
/****************************************************************************** * Copyright © 2005-2012 by Pike Aerospace Research Corporation * All Rights Reserved * * This file is part of CARIBOU RTOS * * CARIBOU RTOS is free software: you can redistribute it and/or modify * it under the terms of the Beerware L...
eb73653b5abf8df044fd20603d4b2ce291453943
c0c0730fcc962e1057d33336d6f95872148847aa
/Classes/Models/Entity.cpp
22a6194fc0aba15e90b9587f1813ac5963e70a13
[]
no_license
ivlevAstef/TheSpaceStrategy
4f824ca9dea272fcd5ab25e50eb09d33a0468005
04127bfb67adb600076992c512ae55432e3e313b
refs/heads/master
2021-01-17T07:33:33.062191
2015-09-10T02:54:50
2015-09-10T02:54:50
34,231,966
2
0
null
null
null
null
UTF-8
C++
false
false
691
cpp
Entity.cpp
#include "Entity.h" #include "Common/FeatureNames.h" #include "Utils/SIALogger.h" SIASetModuleName(Models); using namespace Models; using namespace Common; Entity::Entity() : m_process(m_properties) { m_pFeatures = std::make_shared<Features>(); m_size.set(0, 0); } void Entity::update() { m_mutex.BeginUpdate()...
2ef7ad7300e64c35dd74d98ac13c6b25e02c9d19
0d74301d9a5cd14153757dfa9d9aeb76546b9b1f
/cargadorDeImagenes.h
45f35e48538a0c69691c4750e0b6c78bdf4f4172
[]
no_license
gonzalokun/trabajoPractico2METNUM
7649ea70a198812ba692589686b6c890bc1a5817
411b0cf11bb5309414dc53b5dcdc3f6da6b58576
refs/heads/master
2020-03-17T11:39:48.267058
2018-05-25T18:36:11
2018-05-25T18:36:11
133,559,780
0
0
null
null
null
null
UTF-8
C++
false
false
1,516
h
cargadorDeImagenes.h
#ifndef TRABAJOPRACTICO2METNUM_CARGADORDEIMAGENES_H #define TRABAJOPRACTICO2METNUM_CARGADORDEIMAGENES_H #include <vector> #include <stdio.h> #include "lib/ppmloader.h" typedef unsigned char uchar; //REVISAR ESTAS FUNCIONES //Copiadas del ppmloader //unsigned char obtenerPixel(uchar* datos, int i, int j, int alto, i...
a3d372cd0fee6980c3ce37783d8c38fd1abc1c12
06c8946cf76b52c7b0b6c0968be4acf5855bc2c0
/2020-June-30DayCodeChallenge/06-queue-reconstruction-with-height/source.cpp
a89ffa842e942587a89f69b73ba17469bb97ba87
[]
no_license
cstml/leetcode-exercise-library
d3f86908205e80412a379fd38dc09646cf6b104f
358c38c308523f2864bf582d5de4cafabcf26fb6
refs/heads/master
2022-12-30T03:37:12.233382
2020-10-21T08:29:49
2020-10-21T08:29:49
267,900,080
0
0
null
null
null
null
UTF-8
C++
false
false
3,329
cpp
source.cpp
class Solution { public: vector<vector<int>> reconstructQueue(vector<vector<int>>& people) { vector <int> valIndex; SortB (people); valIndex = CreateVal(people); //PrintT(people,valIndex); PercP (people,valIndex); return people; } vector <int> CreateVal...
df1828e85dc688fc48b954672642acc19a5b085b
7b94f8bf83f599046eb16ec83d82db68defd8430
/HashTable.cpp
4b553e5dfef9ff8ecc8bb6074049832cde4118fc
[]
no_license
shaswtkoi29/DataStructure
fc42d82c0c454ba253f0d87a9eba97eed3888380
6952e904e83de54e4ccde1c89074cc9519c1c601
refs/heads/master
2020-05-03T19:47:45.860336
2019-04-01T05:19:28
2019-04-01T05:19:28
178,790,613
0
0
null
null
null
null
UTF-8
C++
false
false
2,453
cpp
HashTable.cpp
#include <vector> #include <string> #include <stdlib.h> #include <iostream> #include <climits> #include "HashTable.hpp" #include <stack> using namespace std; template <int ARRAY_LEN> HashTable<ARRAY_LEN>::HashTable() { // for(int i = 0; i< ARRAY_LEN; i++){ // lookupTable[i] = new ZippedBookNode("empty",NUL...
97d28cc640a04b0bd0975022805dc1c2869d124a
70272d82c45e9d32ad76253a80907d707a39d889
/src/include/Time.hpp
57cd2fd91599aeb32cfd72539dfb0e313af89c2b
[]
no_license
jhmmufc/GLEngine
57db7c4159c7c60c39302e6946123544c83dc39d
97f8078f4a09e9a9c6b079ff15c6dc7ae168f84c
refs/heads/master
2021-06-02T17:11:35.621792
2018-03-18T14:58:47
2018-03-18T14:58:47
32,412,132
1
2
null
2018-03-18T14:58:48
2015-03-17T18:25:39
C++
UTF-8
C++
false
false
1,656
hpp
Time.hpp
#ifndef GAME_ENGINE_TIME_HPP #define GAME_ENGINE_TIME_HPP #include <stdint.h> namespace GameEngine { namespace Timing { class Time { public: Time() = default; float AsSeconds() const; int32_t AsMilliseconds() const; int64_t AsMicroseconds() const; static const Time Zero; private: friend ...
27ef7a69164fd5e97092822f47f6eac3672d0583
fd849b22e0ad6754edbd1a0957b03fae36c3287f
/chapter7/template_function.cpp
ad672f620b4f4b1b0173494483fa6d067d123f03
[ "Unlicense" ]
permissive
timmyjose-study/cpp-crash-course
509ab5bb56fac2d8ce0dbfe6077f76f64529f306
cd4044b52ec8c25f41844461c694a9ab9e0d72f7
refs/heads/master
2023-04-23T15:18:47.712531
2021-05-02T13:17:53
2021-05-02T13:17:53
362,509,304
0
0
null
null
null
null
UTF-8
C++
false
false
266
cpp
template_function.cpp
#include <iostream> #include <string> template<typename T> T max(T a, T b) { if (a > b) return a; else return b; } int main() { std::cout << max<int>(1, 2) << std::endl; std::cout << max<std::string>("hello", "world") << std::endl; return 0; }
292bf62e49e91e5b17bd8daa3399a92a70387779
82c7a61d6c39e153257f8bd0dcf1b20f256d081d
/code/Module.cpp
83435e7508a0df26b7b592f3eef688fa101c3b7d
[ "MIT" ]
permissive
AndreLouisCaron/cxxpy
ed61bd3a1c21cef569521be511cfc0a50259ff0b
7036c4df92abd6b29a139e47bc05a4aa7d7029bb
refs/heads/master
2021-01-20T12:38:01.963840
2012-07-13T02:29:20
2012-07-13T02:29:20
3,244,645
1
1
null
null
null
null
UTF-8
C++
false
false
3,289
cpp
Module.cpp
// Copyright(c) Andre Caron <andre.l.caron@gmail.com>, 2011 // // This document is covered by the an Open Source Initiative approved license. A // copy of the license should have been provided alongside this software package // (see "LICENSE.txt"). If not, terms of the license are available online at // "http://www.ope...
f530351ec5e1b005bd4e0d47a31e8127d0fc04fa
eb076df9388c6e234fc28525503de6a566faca4f
/manix-wm/src/ManagedWindow.h
96abd80e76f5183791cb4a02412ef02c87021dce
[]
no_license
quadra/manix
cef6e43c8b8d266fecc803e852fcbf9119ddebb6
443613f468d84b6838837333d739e27fda798bdc
refs/heads/master
2021-01-10T20:08:03.266421
2010-03-27T12:52:00
2010-03-27T12:52:00
null
0
0
null
null
null
null
UTF-8
C++
false
false
398
h
ManagedWindow.h
#pragma once #include "Window.h" #include "WindowFrame.h" #include "Xcb.h" namespace manix { namespace wm { class ManagedWindow { public: ManagedWindow(XcbPtr conn, xcb_window_t parent, xcb_window_t client); void show(); private: XcbPtr conn; WindowPtr client; WindowFramePtr frame; }; t...
b80af44c9f8b77ace966287caa8dc5a54f5aa796
3d0d85103e84c224dc76e07df6ffdf4ac9ec46fb
/Lab1/pch.cpp
050a9efb318afdba14c110596cdd2c211f46c5e6
[]
no_license
katyaSloboda/kpi_oop_lab1
c868308d7726d6a46d8428f2ea7afacc91d7c808
b54b5908ea0b6ac6d4b574603bf8c16b14474291
refs/heads/master
2022-03-05T12:04:35.978658
2019-10-28T10:14:10
2019-10-28T10:14:10
null
0
0
null
null
null
null
UTF-8
C++
false
false
139
cpp
pch.cpp
// pch.cpp: source file corresponding to pre-compiled header; necessary for compilation to succeed #include "pch.h" #include "space.h"
362985889c81d77256be51b0fd1e105ec41b1875
04edc72e040ed0756c121edd726bc5a6c8e7ca6f
/engine.h
813f78360bb5db44441b5cd789d468e746fe13c8
[]
no_license
alediaferia/sand
b27fdbf5d2cbec1451d42abffcbf41f12b89a993
6cadfbcf9a1010a695ebbe341f9e6299af81ccb1
refs/heads/master
2021-01-10T14:27:16.158517
2016-04-15T15:00:43
2016-04-15T15:00:43
46,190,574
1
0
null
null
null
null
UTF-8
C++
false
false
336
h
engine.h
#ifndef ENGINE_H #define ENGINE_H #include "function_ast.h" #include <llvm/IR/Value.h> using namespace llvm; struct mpc_ast_t; class Engine { public: Engine(); Value* eval(std::unique_ptr<FunctionAST> fast); Value* eval(std::unique_ptr<ExprAST> expr); // void evaluate(Value *v); protected: }; #en...
31eff48a6936c86f57f149f0411858bb8c32880c
1aef6b9f0368be3c24405a715f40197fdaa6a8f8
/src/PfcFunction.cpp
a6943bdea4c56eae24347c19fbf8c779d5e1d96c
[ "BSD-2-Clause" ]
permissive
avr-aics-riken/PFClib
2f11a4c4bcf3af96b71e14246f7c4189f8720779
aaf08cc3a5f2e3df79ca4bfd834627e1adb58887
refs/heads/master
2021-01-01T20:06:08.985759
2014-03-27T05:48:17
2014-03-27T05:48:17
16,637,519
3
0
null
null
null
null
UTF-8
C++
false
false
16,615
cpp
PfcFunction.cpp
/* * PFClib - Parallel File Compression library * * Copyright (c) 2013-2014 Advanced Institute for Computational Science, RIKEN. * All rights reserved. * */ /** * @file PfcFunction.cpp * @brief CPfcFunction Class * @author aics */ #include <math.h> #include <algorithm> #include "PfcFunction.h" usin...
55b3dee345400446e0c255667a3f6fe295d4b74c
892132af0cc17bbb7b66b145424beb9ff278d796
/putils/python/pybind11_putils_function.hpp
42fda76d97517395177b9b91da2c03e9f90c1f26
[ "MIT" ]
permissive
phisko/putils
ef8b0e408f503bf3fd3ea29ff76d35bc92fffcb9
96b0764678280a59f73a499f9647673c18560c83
refs/heads/main
2023-03-12T01:51:21.293435
2023-03-09T09:59:32
2023-03-09T10:54:35
94,326,762
28
11
MIT
2023-03-09T10:08:06
2017-06-14T12:06:35
C++
UTF-8
C++
false
false
3,876
hpp
pybind11_putils_function.hpp
#pragma once // pybind11 #include <pybind11/pybind11.h> // putils #include "putils/function.hpp" PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE) PYBIND11_NAMESPACE_BEGIN(detail) template<typename C, typename R, typename... A> struct remove_class<R (C::*)(A...) noexcept> { using type = R(A...); }; template<typename C,...
6e32fe066ff3865f4e10eb52d77b432433f485e3
3259f9fd56680f27d799f96a294ac0abe6cafb22
/3.age.cpp.cpp
5ed2a911bac54909cc3c1c19eaad0cfd478c9921
[]
no_license
prathima2k16/C_CPP_FILES
c361c40e274383b5873634af0bdc14c01fb5da89
79cedcdde368ab66c5c39d8fc49748b79f373c89
refs/heads/master
2020-04-21T16:01:08.194317
2019-02-20T04:01:49
2019-02-20T04:01:49
169,686,881
0
0
null
null
null
null
UTF-8
C++
false
false
474
cpp
3.age.cpp.cpp
#include<iostream> using namespace std; int main() { int n,i,count=0; int age[i]; cout<<"Enter no.of persons :"<<endl; cin >>n; for (i=1;i<=n;i++) { cout<<"enter the age of persons "<<endl; cin>>age[i]; } for(i=1;i<=n;i++) { if(age[i]>18 && age[i] > 60) count++; ...