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
36578d529a8a2ba1cefb6371f8251d34d28d80da
13d94803bb40b0c5107a695c3d4476744c7e5bfa
/Project/include/material.h
2f9fe2eb027faa805373d9adb15b37d3cff2e297
[]
no_license
OlmoPrieto/EngineV3
07b2eaba52ebe597cddc392a83a4584d7b057ffc
990c22a0e5f84c6608807396e6cb7254e1b53ac1
refs/heads/master
2022-07-13T23:26:11.154931
2022-03-19T16:12:44
2022-03-19T16:12:44
169,894,615
0
0
null
null
null
null
UTF-8
C++
false
false
2,060
h
material.h
#pragma once #include <memory> #include <string> #include <unordered_map> #include <vector> #include "attribute.h" #include "program.h" class Shader; class Program; class MaterialInstance; class Material { public: Material(const std::string& _sName, const std::string& _sMaterialDefinitionPath); ...
063c6e9b50428cd996bce7b86ee7ff2f7912a544
cf77526b7bfdb6b05beae4d147f4d0773df70c05
/ToolkitNF/Widgets/MenuItemWidget.cpp
cf8b3c68b6188c8a6eac9953d8fa7d8a3351524b
[ "MIT" ]
permissive
SlyVTT/Widget_NF_Nspire_and_PC
7cd61f89b7686904ca1fb24ebe3063747af664e4
cdf921cc931eaa99ed765d1640253e060bc259cb
refs/heads/main
2023-08-17T14:37:29.345813
2021-09-22T19:48:52
2021-09-22T19:48:52
408,216,702
0
0
null
null
null
null
UTF-8
C++
false
false
7,128
cpp
MenuItemWidget.cpp
#include "MenuItemWidget.hpp" #include "MenuPaneWidget.hpp" #include "../Managers/KeyManager.hpp" #include "../Managers/MouseManager.hpp" #include "../Renderers/ScreenRenderer.hpp" #include "../Engines/ColorEngine.hpp" #include "../Engines/FontEngine.hpp" MenuItemWidget::MenuItemWidget() { widgettype = "Me...
8a6aeef5227e889a618a5ceccfafeab7f8950d81
d939ea588d1b215261b92013e050993b21651f9a
/ie/src/v20200304/model/MuxInfo.cpp
c5495d63051384767688e51c56a38b81a8b2a04a
[ "Apache-2.0" ]
permissive
chenxx98/tencentcloud-sdk-cpp
374e6d1349f8992893ded7aa08f911dd281f1bda
a9e75d321d96504bc3437300d26e371f5f4580a0
refs/heads/master
2023-03-27T05:35:50.158432
2021-03-26T05:18:10
2021-03-26T05:18:10
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,081
cpp
MuxInfo.cpp
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * 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 ...
53126d2b4ea3a87bb0b9ddca8ec3d68e2577febc
5d83739af703fb400857cecc69aadaf02e07f8d1
/Archive2/f0/ac8d18655c4cfd/main.cpp
db1097188408737ac6ebced5ea1d3f85fd93ef39
[]
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
68
cpp
main.cpp
class A { public: A(int i = 4) {} }; int main () {A a;}
8cfb2c752ec7bc0bba04a7c403cb8113204d674d
f6cf14142621b8c4709c6f2073172f39577b1964
/common/lib/rec/robotino3/iocom/tag/GetIpAddressFwd.h
68a09e5654d68eb983f5c3e51ee6e43348481f97
[]
no_license
BusHero/robotino_api2
f3eef6c1ace2ff5a8b93db691aa779db8a9ce3a1
9757814871aa90977c2548a8a558f4b2cb015e5d
refs/heads/master
2021-06-18T21:32:14.390621
2021-02-18T15:21:48
2021-02-18T15:21:48
165,231,765
1
0
null
null
null
null
UTF-8
C++
false
false
364
h
GetIpAddressFwd.h
#ifndef _REC_ROBOTINO3_IOCOM_TAG_GetIpAddressFWD_H_ #define _REC_ROBOTINO3_IOCOM_TAG_GetIpAddressFWD_H_ #include <QtCore> namespace rec { namespace robotino3 { namespace iocom { namespace tag { class GetIpAddress; typedef QSharedPointer< GetIpAddress > GetIpAddressPointer; } } } } #endif //...
6fe1bbe5a8531772d7c1b4a33363f0758dbd33b5
a120d86965878749a6f132c949c85797ba1a7b70
/module_3/task_1/SetGraph.cpp
24e0632169c734678dc454a0f09e65d7feb96827
[]
no_license
timoninas/algorithms-n-data-structures
409b354730b894f2ca101cfbaaa6cc06e3422b83
d1b00c25715acaf404f78ef948a11e795b4a38d0
refs/heads/master
2023-02-06T10:53:37.309588
2020-12-30T17:27:32
2020-12-30T17:27:32
204,346,964
2
0
null
null
null
null
UTF-8
C++
false
false
1,071
cpp
SetGraph.cpp
#include "SetGraph.hpp" SetGraph::SetGraph(const IGraph& sendedGraph) { graph.resize(sendedGraph.VerticesCount()); for (int i = 0; i < sendedGraph.VerticesCount(); i++) { for (auto child: sendedGraph.GetNextVertices(i)) { graph[i].insert(child); } } } int SetGraph::VerticesCoun...
b6089ae92494caf54c5cd55ddf54613a5cafba86
60421df8b2bf6b2a159052ac787318aaad635e3f
/SumRootToLeafNumbers.cpp
9ff99da4a0db16db5a960b1c74f492bbb83642ad
[]
no_license
ssdemajia/LeetCode
5d359d5868f2b39a55e2b225dba69d36bc23c3ac
9239166ae7da12e29a6c2c6416bfada2027315b8
refs/heads/master
2021-01-16T21:41:53.814584
2019-05-06T15:17:07
2019-05-06T15:17:07
100,246,179
2
0
null
null
null
null
UTF-8
C++
false
false
705
cpp
SumRootToLeafNumbers.cpp
#include "inc.h" //129. Sum Root to Leaf Numbers /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: int sumNumbers(TreeNode* root) { int r...
15d7100b2610935e328d067c9e2ad34f6e98b4eb
89cfc849a109b6335daabbb2b9c2ea61bb1415fe
/aeronode-runtime/include/aeronode/tcp_client.h
7814dc40a80b00875674b9f43f62a08af2fb63ce
[]
no_license
Pokerpoke/aero-node
9b6ef3d0a4abe514f7c9be26fd517eedffb5e770
51f3cc6627f109faf505377c577f19b34f398c96
refs/heads/master
2021-10-22T14:49:41.209209
2019-03-11T13:57:41
2019-03-11T13:57:41
96,872,818
0
0
null
null
null
null
UTF-8
C++
false
false
2,097
h
tcp_client.h
/** * * Copyright (c) 2017-2018 南京航空航天大学 航空通信网络研究室 * * @file * @author 姜阳 (j824544269@gmail.com) * @date 2017-07 * @brief 建立tcp连接并传递数据信息 * @version 0.0.1 * * Last Modified: 2017-12-12 * Modified By: 姜阳 (j824544269@gmail.com) * * @example qa_tcp_client.cc * */ #ifndef _TCP_CLIENT_H_ #d...
21d7b20d179ac338735650dc081205d8c223cd5a
88c03118312f57680557755aac1cf9a6b4e2fc6f
/core/src/db/engine/ExecutionEngine.h
4c24ce07559f787c474ee32bb6b1d8425724d289
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "Zlib", "LGPL-2.1-only", "BSD-3-Clause", "JSON", "MIT", "LicenseRef-scancode-public-domain" ]
permissive
XuPeng-SH/milvus
a0f500678b2b540baff8e1483635ec2e4525fda6
8fd17fe6f7d44952e297c68dbfa381f6af992bb3
refs/heads/master
2022-03-09T05:07:54.042309
2020-11-16T03:41:33
2020-11-16T03:41:33
215,312,877
1
0
Apache-2.0
2020-06-01T09:04:54
2019-10-15T13:59:32
C++
UTF-8
C++
false
false
1,554
h
ExecutionEngine.h
// Copyright (C) 2019-2020 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
74c5f2f72cc4186dd14c1e007724bf5bd6e861ea
1ab4c2857862bb9c0ea6f9f5d727600b04f004a9
/oskachkov/operators/shared_ptr.h
0251050856b42ce6df94fd83296d57e88148cfab
[]
no_license
askachkov/learncpp
17e3b50979b39ad1993698ac9fe98a57b68699f8
ecb990309133a44b757757d4e778071364af8cc1
refs/heads/master
2020-07-06T10:55:05.176771
2019-12-13T17:18:02
2019-12-13T17:18:02
202,993,202
0
2
null
2019-09-09T11:59:54
2019-08-18T11:13:46
C++
UTF-8
C++
false
false
1,156
h
shared_ptr.h
#ifndef SHARED_PTR #define SHARED_PTR #include "weak_ptr.h" template<typename T> class SharedPtr: public WeakPtr<T> { union { int & m_ShRefCounter; int * m_pShRefCounter; }; bool m_IsArray; public: SharedPtr(T * ptr = 0, bool isArray = false): WeakPtr(new T*(ptr), new int(1))...
1038d9ea4863aa1988843e0b174a2cf3d390fe26
1f49df904649fd99e2c63a53c73ba3d56541d71c
/src/fasta/faidx.cc
8aabeb9230fdcee5bd2053f179302a40092650b5
[ "GPL-3.0-or-later", "LGPL-2.1-or-later", "GPL-3.0-only", "LGPL-2.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "GPL-1.0-or-later", "Zlib", "BSD-3-Clause", "MIT", "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "bzip2-1.0.6", "LicenseRef-scancode-proprietary-lic...
permissive
sakkayaphab/bolt
6cec7e693d4cbc29f748ffb76c35772abb0b2574
75cfd6fdb7399e141e93008c5382ae23bc99d90d
refs/heads/master
2020-06-30T04:11:54.775819
2020-02-11T23:26:39
2020-02-11T23:26:39
139,722,229
1
0
MIT
2018-07-26T11:48:02
2018-07-04T12:56:20
Go
UTF-8
C++
false
false
4,459
cc
faidx.cc
#include "faidx.h" #include <iostream> #include <fstream> #include <string> #include <sstream> #include <math.h> Faidx::Faidx() { } void Faidx::initialize() { std::ifstream file(indexfilepath); std::string line; while (std::getline(file, line)) { std::istringstream iss(line); std::str...
8f12cd1e3455c51bdc7bd36622c19623335cd191
14166b68775d4758460fb5ea2184e20cf1f20bf8
/facebz/KjjDlg.h
cea008c54b56475c3a386db34e1fa0b0c5f5b178
[]
no_license
miluof/wisdomlabel
2c1a73e4e6649dadfcc974543cdd6ec1ab99a3df
c41a021fd96ccaadbd06fc7b326232f627a1c63c
refs/heads/main
2023-02-25T23:55:01.422015
2021-01-26T10:47:15
2021-01-26T10:47:15
332,964,242
4
0
null
null
null
null
GB18030
C++
false
false
762
h
KjjDlg.h
#pragma once #include "afxcmn.h" #include <map> using namespace std; // CKjjDlg 对话框 struct Kjj{ CStringA Cmd; CStringA Title; int Id; CStringA KjjJs; Kjj(){ }; Kjj(CStringA cmd,CStringA title,int id){ Cmd=cmd; Title=title; Id =id; }; Kjj(CStringA cmd,CStringA title,int id,CStringA js){ Cmd=cmd; Titl...
57aac1bee79d76c848ecc10771a56de949acfba0
006331088d86048cdfa7c4d13882b3038df2f7c9
/src/Encrypt.cpp
09f8589e0464104cd4f6d257df6f25099082c79d
[ "Apache-2.0" ]
permissive
miniwing/libsecurity
850a3bbd169205e2d9064c72ad2317de237c4796
749a1dc4a1115af4d24ab4dfa9245fdc73e1dae0
refs/heads/master
2022-04-11T04:29:16.850912
2020-02-02T09:43:11
2020-02-02T09:43:11
null
0
0
null
null
null
null
UTF-8
C++
false
false
370
cpp
Encrypt.cpp
#include "security.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <iostream> int main(int argc, char *argv[]) { const char* pInData = argv[1]; uint32_t nInLen = strlen(pInData); char* pOut; uint32_t nOutLen; EncryptMsg(pInData, nInLen, &pOut, nOutLen); //cout<<pOut; p...
8522cc7da1e569d634a40702a226d273c3a12e66
b70a87140882a37d0f0841dc0ec461f759373e5a
/src/core/tests/vector_tests.cpp
6f450866c5c4f20fddc953e77ab3a681bc9275b9
[ "Zlib", "BSD-2-Clause", "MIT" ]
permissive
corefan/Engine-1
d775413321ff4fd31f4f7cd4ce56f438539ee9a9
9ade300d24c740fdad4d87451de2f7a61fc821ee
refs/heads/master
2021-01-19T19:01:51.876471
2017-07-13T12:48:20
2017-07-13T12:48:20
null
0
0
null
null
null
null
UTF-8
C++
false
false
19,171
cpp
vector_tests.cpp
#include "core/array.h" #include "core/vector.h" #include "catch.hpp" using namespace Core; namespace { struct CtorDtorTest { static i32 numAllocs_; CtorDtorTest(i32 value = -1) : value_(value) { numAllocs_++; } CtorDtorTest(const CtorDtorTest& other) : value_(other.value_) { numAlloc...
47e85cccbab0a72e5b870833cdf7c519d58add3e
471a26e50d685197ff46d2ec05ef3879f67f6b30
/C++_Programming/1st_Term_Project_(Bank_System)/BankSystem(Dev_C++).cpp
92c709574eb48f9058c755c6e63f8c3076fb6f98
[]
no_license
Pipaolo/School_Stuff
ee3fb38e16387ffdc460aa0456b1c0f7acee2f9b
8e55f5cd2d8d2830694a2939ccd928928cd12687
refs/heads/master
2021-06-14T15:40:55.144248
2019-08-30T00:54:17
2019-08-30T00:54:17
145,854,985
0
0
null
null
null
null
UTF-8
C++
false
false
7,500
cpp
BankSystem(Dev_C++).cpp
#include <iostream> #include <string> #include <fstream> #include <iomanip> #include <windows.h> using namespace std; void registerUser(); void loginUser(); int main() { char input; cout << "<--Welcome to Ctrl-Alt-Elite Banking Services-->" << endl; Sleep(1000); start: system("cls"); cout << "------------------...
f660c031592d97711b6d4b55553b15979277ca16
d84c107e6da7e03b41382409987ae5d46b59bca2
/source/game/Pvs.h
4c990ef5bb0a502bd936d651e0ad5fcf00b67a71
[ "MIT" ]
permissive
JasonHutton/QWTA
b3854cd4873a46a8a9089ee3481a47074b62236b
7f42dc70eb230cf69a8048fc98d647a486e752f1
refs/heads/main
2023-04-13T02:15:14.639793
2021-05-01T21:29:18
2021-05-01T21:29:18
363,500,974
6
1
null
null
null
null
UTF-8
C++
false
false
4,277
h
Pvs.h
// Copyright (C) 2004 Id Software, Inc. // #ifndef __GAME_PVS_H__ #define __GAME_PVS_H__ /* =================================================================================== PVS Note: mirrors and other special view portals are not taken into account ================================================...
da9e3c6e428c297b7147ed256f654b64d39b01a6
ae3e64bb51fe79b48b8a3a8577d7de4743c5c3bd
/hjscript.cpp
43eeb7053bd9640f2c9282c19ca160666f425ff1
[ "Apache-2.0" ]
permissive
ShuangyiTong/HuajiScript
461e727a9c37ca958b92dae1beb6bbd1745970d6
9848cc269b8dfa679f0b7c63d1c8baf86564a0d9
refs/heads/master
2021-01-15T21:25:05.802252
2017-09-23T22:02:49
2017-09-23T22:02:49
99,865,254
1
0
null
null
null
null
UTF-8
C++
false
false
140,619
cpp
hjscript.cpp
#include "hjscript.hpp" // Used by hjbase::HUAJISCRIPTBASE::Take_One_Token(std::vector<std::string>::const_iterator) #define REQUIRE_MORE_TOKENS_RETURN_CODE -1 // Used by hjbase::HUAJISCRIPTBASE::Collect_Tokens(const std::string&) #define REQUIRE_MORE_TOKENS_FOR_COMPLETE_COMMAND_RETURN_CODE 0 #define COMMAND_COMPLETE...
b3f1d4c9459a71f9d91a53b01f51f96e56ecd820
aa1b167059d18a5560054173ddc231b155a533a8
/src/header/printing.h
309a17c3e90744ad6497f95319ef51441def30be
[]
no_license
emittman/cuda_rpackage
8ec7305805004cbb64ba77093d260f13f604952c
d1958f8fa83d52ba430bc62a33c36e69e2a2c366
refs/heads/master
2021-03-27T16:07:43.140806
2017-09-21T16:56:26
2017-09-21T16:56:26
69,476,141
0
0
null
null
null
null
UTF-8
C++
false
false
484
h
printing.h
#ifndef PRINT_H #define PRINT_H #include<thrust/host_vector.h> #include<thrust/device_vector.h> #include<iostream> /*courtesy of https://github.com/thrust/thrust/blob/master/examples/expand.cu */ template <typename Vector> void printVec(const Vector& v, int d1, int d2) { typedef typename Vector::value_type T; fo...
aff146aa42212b49398a6c81046abf6e92d311f1
c7653ebbeebc0158bcf5d9edcdddad959faecdc3
/week4_binary_search_trees/5_rope/rope.cpp
2b48b4d8afd7db80ae2eb8ab34c5723415e325e7
[]
no_license
Wei-Mao/Assignments-for-Data-Structure
d4c841d480ffae86eadb3f70db117abe9eee9300
a667bf1a8b6f11e7646429f7062f6f2eb9d537d2
refs/heads/master
2022-11-30T16:24:26.558979
2020-08-10T10:18:59
2020-08-10T10:18:59
null
0
0
null
null
null
null
UTF-8
C++
false
false
9,879
cpp
rope.cpp
#include <cstdio> #include <string> #include <iostream> #include <stack> using namespace std; // Vertex of a splay tree struct Vertex { char key; // number of the nodes in left and right subtrees(including itself) // remember to update // it after each operation that changes the tree. long long siz...
741c29addb588d337580992a8b916f08827d3ba8
676ffceabdfe022b6381807def2ea401302430ac
/library/FieldUtils/ProcessModules/ProcessHomogeneousPlane.cpp
6aa94ed4a25e027d08c4c7d8f0cab7e5637f2ae2
[ "MIT" ]
permissive
mathLab/ITHACA-SEM
3adf7a49567040398d758f4ee258276fee80065e
065a269e3f18f2fc9d9f4abd9d47abba14d0933b
refs/heads/master
2022-07-06T23:42:51.869689
2022-06-21T13:27:18
2022-06-21T13:27:18
136,485,665
10
5
MIT
2019-05-15T08:31:40
2018-06-07T14:01:54
Makefile
UTF-8
C++
false
false
5,851
cpp
ProcessHomogeneousPlane.cpp
//////////////////////////////////////////////////////////////////////////////// // // File: ProcessHomogeneousPlane.cpp // // For more information, please see: http://www.nektar.info/ // // The MIT License // // Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA), // Department of Aeronauti...
7bb46611df2a191e6831ac34e4239c7d3393002e
5d7739bd360a447ee1c7285483d2f37d521fa99e
/Volume 104 (10400-10499)/10489.cpp
6afd6e975c1dc5acb24b3fff75172d636867256b
[]
no_license
aaafwd/Online-Judge
c4b23272d95a1c1f73cc3da2c95be8087a3d523c
b264f445db2787c5fc40ddef8eb3139adae72608
refs/heads/main
2023-04-02T01:01:26.303389
2021-04-11T14:17:58
2021-04-11T14:17:58
356,840,772
1
0
null
null
null
null
UTF-8
C++
false
false
712
cpp
10489.cpp
/* @JUDGE_ID: 19899RK 10489 C++ "By Anadan" */ // Boxes of Chocolates // Accepted (0.107 seconds using as much as 388 kbytes) #include <stdio.h> void myscanf(int &x){ int i; while ((x = getchar()) != EOF && (x < '0' || x > '9')); x -= '0'; while ((i = getchar()) != EOF && '0' <= i && i <= '9'){ ...
89a3b4fed6de1b3d358f8e95aff5f6bdf125a27f
5f67658f61d03a786005752583077a40b42d03b1
/Views/TextView.cc
843c12cbd4ac73b2bbc67e8479ad678f5312619e
[]
no_license
newtonresearch/newton-framework
d0e5c23dfdc5394e0c94e7e1b7de756eac4ed212
f922bb3ac508c295b155baa0d4dc7c7982b9e2a2
refs/heads/master
2022-06-26T21:20:18.121059
2022-06-01T17:39:47
2022-06-01T17:39:47
31,951,762
22
7
null
null
null
null
UTF-8
C++
false
false
2,835
cc
TextView.cc
/* File: TextView.cc Contains: CTextView implementation. Written by: Newton Research Group. */ #include "Objects.h" #include "ROMResources.h" #include "Lookup.h" #include "RichStrings.h" #include "Unicode.h" #include "MagicPointers.h" #include "Preference.h" #include "TextView.h" #include "Geometry.h" #include ...
924e964481870b7e804c6f891b9617ef57007ea4
e4d1d5219c40971d6f6accd7f224ae38b0c3151a
/include/main.h
4a819782134be8ad7ab8f6e5d94f839d2448d74f
[]
no_license
c-mita/Project-Euler-Solutions
05f5124719a78b018c40409457c2565209e9498b
f93c5fc7ee680d38e9258045a636b60df3495a43
refs/heads/master
2022-11-29T04:05:26.986290
2020-08-15T23:57:34
2020-08-15T23:57:34
29,162,136
0
0
null
null
null
null
UTF-8
C++
false
false
514
h
main.h
#ifndef PE_MAIN_H #define PE_MAIN_H #include <chrono> #include <iostream> #include <string> std::string solution(); int main() { auto start_time = std::chrono::steady_clock::now(); std::string answer = solution(); std::cout << "Answer: " << answer << std::endl; auto end_time = std::chrono::steady_c...
55ec87bdbfe753e2ae12e7b45248f7eedc1bd057
28923aae2e58cefd4aba60a71647d1203a31ee5d
/Spades Game/Game/Avatar/AvatarCache.hpp
8c5b072be956e22200c799b578fcd8637c80760c
[ "Unlicense" ]
permissive
Qazwar/StemwaterSpades
a1fee0eeeb4f9e4e4c2023d9b661d09692ac6d6a
05e5d7c6d380d2f5986bd91269887f16c3e71962
refs/heads/master
2020-05-16T00:29:38.625484
2015-11-21T01:41:38
2015-11-21T01:41:38
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,781
hpp
AvatarCache.hpp
#ifndef CGE_AVATAR_CACHE_HPP #define CGE_AVATAR_CACHE_HPP #include "Game/Resource/Sprite.hpp" #include <map> #include "Agui/Backends/Allegro5/Allegro5Image.hpp" #define AVATAR_CACHE_GENDER_MALE 0 #define AVATAR_CACHE_GENDER_FEMALE 1 #define AVATAR_CACHE_ETHNICITY_WHITE 0 #define AVATAR_CACHE_ETHNICITY_BLACK 1 namespace...
358f2554dddb01a9606ee682a2471f0223186b07
fef750f91e71daa54ed4b7ccbb5274e77cab1d8f
/UVA/11300-11399/11354.cpp
e454b0c226f3f34b1a5eb96765ba729d3c2fcd3b
[]
no_license
DongChengrong/ACM-Program
e46008371b5d4abb77c78d2b6ab7b2a8192d332b
a0991678302c8d8f4a7797c8d537eabd64c29204
refs/heads/master
2021-01-01T18:32:42.500303
2020-12-29T11:29:02
2020-12-29T11:29:02
98,361,821
2
1
null
null
null
null
UTF-8
C++
false
false
638
cpp
11354.cpp
#include<stdio.h> #include<string.h> const int maxn = 50000 + 10; int pa[maxn],w[maxn]; void init(int n) { memset(w,0,sizeof(w)); for(int i = 1; i <= n; i++) pa[i] = i; } int findset(int x){ return x == pa[x] ? x : pa[x] = findset(pa[x]); } int main() { int n,m; while(scanf("%d%d",&n,&m...
5a9ee0f02f858c866d4a6bf120b44c694dfecaf9
b256f60961c99aeb5853e40f6c2f61ceebbd147e
/miniSvLib/include/Common/Globaldef.cpp
481fa356a51e0afd5eeffed7f2824c5dc6fd3c47
[]
no_license
Ziran-Li/Ground-station-English
e7dbecda7feb844baa7b571b9dd3797add426e5d
77212a68a5ed656865e67b92f993b39db86eda27
refs/heads/master
2022-11-22T08:58:55.847216
2020-04-09T02:05:47
2020-04-09T02:05:47
null
0
0
null
null
null
null
SHIFT_JIS
C++
false
false
791
cpp
Globaldef.cpp
#include "Globaldef.h" StateVector::StateVector() { m_Length = 0; m_pX = NULL; } StateVector::~StateVector() { if( m_pX ) { delete[] m_pX; } } CRESULT StateVector::SetLength(size_t length) { if( m_pX == NULL ) { // 領域が確保されていない場合,領域を確保して OK m_pX = new double[length]; m_Length = length; return ...
7da476068fa8cb11cf5a2e635ad26eb8dd9f620a
f05c14e018b2e98ef536627a2a7313509a7d24e5
/headers/DBClient.h
4c3a2f591559181a31fb6928cacd2cdbed04caff
[]
no_license
jdang4/Cloud-DB-Benchmark
82ffdb26e59f45b222a730b32086cfc6a1bf42f5
d7e6e0e0195c16adf895f9a912d169f21ef0f441
refs/heads/master
2022-12-04T17:17:08.396968
2020-08-21T20:56:36
2020-08-21T20:56:36
276,485,231
0
0
null
null
null
null
UTF-8
C++
false
false
912
h
DBClient.h
#ifndef DBCLIENT_H #define DBCLIENT_H #include <vector> #include <chrono> #define NUM_OF_ENTRIES 1000000 class DBClient { public: char* getEntryVal(char recordChar, int record_size); virtual void connect(); virtual double initializeDB(); virtual double readEntry(bool randomOption); virtual double insertEnt...
000cdc957b269df2ba6763218e4f46446ef38f89
76ca52991ca1a1e50d066e9f7c4827b6a4453414
/cmds/statsd/src/external/StatsCallbackPuller.cpp
d718273e9b851d27218831b9c77190ee1578330b
[ "Apache-2.0", "LicenseRef-scancode-unicode" ]
permissive
ResurrectionRemix/android_frameworks_base
3126048967fa5f14760664bea8002e7911da206a
5e1db0334755ba47245d69857a17f84503f7ce6f
refs/heads/Q
2023-02-17T11:50:11.652564
2021-09-19T11:36:09
2021-09-19T11:36:09
17,213,932
169
1,154
Apache-2.0
2023-02-11T12:45:31
2014-02-26T14:52:44
Java
UTF-8
C++
false
false
1,998
cpp
StatsCallbackPuller.cpp
/* * Copyright (C) 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
d24ad75e2d8b3d5061cdd18b0f893c25065521d9
a3732e1c07f1cf36272e5552e5ad8a7240b225eb
/TeachingBox/CLabelPixmap.cpp
36a407083666e099275709519191f6b087c75b19
[]
no_license
TenYearsADream/TeachingBox
68dec280871e8ddc05223c32d5f0c3ac030bb6ac
d5d4e202953aab2d7ed488d74ca6a73feab4b57f
refs/heads/master
2020-04-22T20:23:58.384391
2016-06-01T06:54:38
2016-06-01T06:54:38
null
0
0
null
null
null
null
UTF-8
C++
false
false
889
cpp
CLabelPixmap.cpp
#include "stdafx.h" #include "CLabelPixmap.h" CLabelPixmap::CLabelPixmap(const QString &text, QWidget* parent /*= 0*/) :QLabel(parent) { m_pixmap=new QPixmap(text); } CLabelPixmap::CLabelPixmap(QWidget* parent /*= 0*/) : QLabel(parent) { /*m_pixmap=new QPixmap;*/ } CLabelPixmap::~CLabelPixmap() { ClearImage(); }...
f5ec887c17a464245e641f6691de191c0a0d249b
b677894966f2ae2d0585a31f163a362e41a3eae0
/ns3/ns-3.26/src/csma/examples/csma-one-subnet.cc
7f2d39d06e5a0074ac32bf31cd6571c977157e87
[ "Apache-2.0", "LicenseRef-scancode-free-unknown", "GPL-2.0-only" ]
permissive
cyliustack/clusim
667a9eef2e1ea8dad1511fd405f3191d150a04a8
cbedcf671ba19fded26e4776c0e068f81f068dfd
refs/heads/master
2022-10-06T20:14:43.052930
2022-10-01T19:42:19
2022-10-01T19:42:19
99,692,344
7
3
Apache-2.0
2018-07-04T10:09:24
2017-08-08T12:51:33
Python
UTF-8
C++
false
false
4,441
cc
csma-one-subnet.cc
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
3e8f74597bf201cc7e59373687eba474a877caef
65025edce8120ec0c601bd5e6485553697c5c132
/Engine/addons/resource/FloatsCompression.cc
28e78971066357bea613587c1e6fbdfdbacd4fd2
[ "MIT" ]
permissive
stonejiang/genesis-3d
babfc99cfc9085527dff35c7c8662d931fbb1780
df5741e7003ba8e21d21557d42f637cfe0f6133c
refs/heads/master
2020-12-25T18:22:32.752912
2013-12-13T07:45:17
2013-12-13T07:45:17
15,157,071
4
4
null
null
null
null
UTF-8
C++
false
false
4,517
cc
FloatsCompression.cc
/**************************************************************************** Copyright (c) 2011-2013,WebJet Business Division,CYOU http://www.genesis-3d.com.cn 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...
06ec88545f6f9e6ddf0f0201fa7febd12bd79faa
7237d4eb82e14a538acc0d8542b1c2ee2c731a01
/String/P79.cpp
9979c8cf1301bbddd73924ef603404a1aeaf0689
[]
no_license
Dutongxue/LintCode
cd76abff5ca4c9f2b172f8eeeba6d676643df080
460a64e9115704470d18414691e192ce5dc560ec
refs/heads/master
2020-03-18T19:41:40.356395
2018-11-11T12:59:08
2018-11-11T12:59:08
135,170,789
0
0
null
null
null
null
UTF-8
C++
false
false
1,008
cpp
P79.cpp
// // Created by enheng on 18-6-12. // #include "P79.h" #include <iostream> #include <string> #include <vector> using namespace std; class Solution { public: /** * @param A: A string * @param B: A string * @return: the length of the longest common substring. */ int longestCommonSubstring...
0cfc6722f038db159be44ee19a7921e3f44c3176
1bfabbcedee74a5b784a2f6a27ef468d22047044
/GraphicsX/GFX_MapGenMidptFrac.cpp
dd353ccfdec5376da59c6bf6860956832d2f8410
[]
no_license
GlenSol/homies
bdc0b605a31a9da6335479954609cc9a41aa5a03
715758a4fd92d6637176b072a765fe8d565ceb2f
refs/heads/master
2020-07-03T06:27:23.986959
2013-01-08T20:10:43
2013-01-08T20:10:43
null
0
0
null
null
null
null
UTF-8
C++
false
false
9,544
cpp
GFX_MapGenMidptFrac.cpp
#include "gdix.h" #include "gdix_i.h" #define HEIGHTITER .5f #define MIDDLEHEIGHT .25f #define GETHEIGHT(h) _GFXMathRand(-(h), (h)) //This is the midpoint fractal terrain generator //model map generator stuff PRIVATE float _MapGetAvgCorner(int i, int j, int stride, int size, float *points) { /* ...
ba626d726f1c361874434ea297e388ff1f8457a3
bb38c44037a99d0a12a12d92059678f2faebbc80
/contrib/chkpass/chkpass.cpp
512273aa37cf163ab09aa6903d5239c8929fea3a
[ "LicenseRef-scancode-mulanpsl-2.0-en", "LicenseRef-scancode-unknown-license-reference", "PostgreSQL", "BSD-3-Clause", "LGPL-2.0-or-later", "LicenseRef-scancode-unicode", "LicenseRef-scancode-warranty-disclaimer", "curl", "GPL-1.0-or-later", "LGPL-2.1-or-later", "LGPL-2.1-only", "CC-BY-4.0", ...
permissive
opengauss-mirror/openGauss-server
a9c5a62908643492347830826c56da49f0942796
310e84631c68c8bf37b004148b66f94064f701e4
refs/heads/master
2023-07-26T19:29:12.495484
2023-07-17T12:23:32
2023-07-17T12:23:32
276,117,477
591
208
MulanPSL-2.0
2023-04-28T12:30:18
2020-06-30T14:08:59
C++
UTF-8
C++
false
false
4,108
cpp
chkpass.cpp
/* * openGauss type definitions for chkpass * Written by D'Arcy J.M. Cain * darcy@druid.net * http://www.druid.net/darcy/ * * contrib/chkpass/chkpass.c * best viewed with tabs set to 4 */ #include "postgres.h" #include "knl/knl_variable.h" #include <time.h> #include <unistd.h> #ifdef HAVE_CRYPT_H #include <cr...
dc45e437a2843910e1c4afe7a1ac2188a4c97dc1
872f24199d847f05ddb4d8f7ac69eaed9336a0d5
/code/nrao/GBTFillers/GBTPointModelFiller.h
77c366c204c83b232faabbe64e065d44237c0fa8
[]
no_license
schiebel/casa
8004f7d63ca037b4579af8a8bbfb4fa08e87ced4
e2ced7349036d8fc13d0a65aad9a77b76bfe55d1
refs/heads/master
2016-09-05T16:20:59.022063
2015-08-26T18:46:26
2015-08-26T18:46:26
41,441,084
1
1
null
null
null
null
UTF-8
C++
false
false
2,724
h
GBTPointModelFiller.h
//# GBTPointModelFiller: Fill the pointingModel from the ANTENNA file //# Copyright (C) 2001 //# Associated Universities, Inc. Washington DC, USA. //# //# This library is free software; you can redistribute it and/or modify it //# under the terms of the GNU Library General Public License as published by //# the Free So...
16a20a7aa96c2ec894b2da66fffefd9ea10c196d
0f0b2c5e9095ba273992ab0b74a82f986b4f941e
/services/surfaceflinger/tests/unittests/CachingTest.cpp
1b8c76d1b9c29d47c22525372dc2b8fce1406aaf
[ "LicenseRef-scancode-unicode", "Apache-2.0" ]
permissive
LineageOS/android_frameworks_native
28274a8a6a3d2b16150702e0a34434bc45090b9a
c25b27db855a0a6d749bfd45d05322939d2ad39a
refs/heads/lineage-18.1
2023-08-04T11:18:47.942921
2023-05-05T12:54:26
2023-05-05T12:54:26
75,639,913
21
626
NOASSERTION
2021-06-11T19:11:21
2016-12-05T15:41:33
C++
UTF-8
C++
false
false
3,445
cpp
CachingTest.cpp
/* * Copyright 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
e841efabf2cfdf20f061b1b5adf17c9cc14554d8
33258ea4d563d6c4e46cab73e0c4d81c9257be3c
/k-opt/fileio/PointSet.cpp
2a1665b11d52c4eb381004660d71c497801a1ee6
[]
no_license
rlee32/standard-k-opt
3c5c932d7e386ca881820e9306dc197eef83e8b6
90c6f807212dd650a8276d4f9c63ce703c04d24a
refs/heads/master
2020-04-09T11:28:36.357120
2018-12-17T01:40:51
2018-12-17T01:40:51
160,310,995
0
1
null
null
null
null
UTF-8
C++
false
false
1,971
cpp
PointSet.cpp
#include "PointSet.h" namespace fileio { PointSet::PointSet(const char* file_path) { std::cout << "\nReading point set file: " << file_path << std::endl; std::ifstream file_stream(file_path); if (not file_stream.is_open()) { std::cout << "ERROR: could not open file: " << file_path << std::endl...
0c55d2b58d1762bf8d7a20b76cf81b27b357c168
b1b5058ade39d72245c14cc8d21084b6775b523f
/Section 3.0/Factorials.cpp
9e5030a89de50c8fc3233a446219cd1703a8a5cf
[]
no_license
qingchen/USACO
b16e7dc84c9e1ca87b3944ba48f6953014e5e980
915c1ba21233487283562b85ed1526aebf7da3b8
refs/heads/master
2021-03-13T00:05:11.714919
2015-03-22T05:33:01
2015-03-22T05:33:01
21,810,525
0
0
null
null
null
null
UTF-8
C++
false
false
663
cpp
Factorials.cpp
/* ID: caiweid3 PROG: fact4 LANG: C++ */ #include <iostream> #include <fstream> #include <stdlib.h> #include <string.h> using namespace std; ofstream fout ("fact4.out"); ifstream fin ("fact4.in"); int main() { int n,tmp,count=0; int m[5000]; fin>>n; for(int i=1;i<=n;i++) if(i%5==0) { tmp=...
2c538c8ff0a7f29723aaecfa6be833422879a13c
e8bcc26064462a24dffe995dfe4d322d2ea1f466
/Algoritmos/Grafos/prim.cpp
79f520d5ad27444951a1ff1c704beadb5b6294a2
[]
no_license
MaiconBaggio/maratona-programacao
a74c2d0a50db5e6f37044788a6fa0c021daef04a
c927b7029131cfb9cd069c081cb5489cce966056
refs/heads/master
2021-08-30T12:56:30.911836
2017-12-18T02:49:29
2017-12-18T02:49:29
105,041,816
0
0
null
null
null
null
UTF-8
C++
false
false
1,064
cpp
prim.cpp
#include <iostream> #include <vector> #include <utility> #include <queue> #define INF 100000000 using namespace std; typedef pair<int, int> ii; typedef vector<ii> vi; typedef vector<vi> vii; int prim(vii &grafo, int numeroVertices, int inicio){ int resp = 0; vector<int> dist(numeroVertices, INF), vis(numeroVert...
b1a8e2032b754b3f7537e1b98a23ba18ba1a5842
ff907a2188d7d76523c718a9becb4295aac3afd1
/madeEasy/chap5/4prob_array.cpp
511f8850e04cfe67a2074d19cf6988c57d954b25
[]
no_license
sanju784/ds-algorithm-c-cpp
873c67715960e7b50a2a11b8faf6e0ddcec713ac
9bd27fcdeeaa3b9178a70012559e8fd04b935d2a
refs/heads/master
2021-05-01T04:31:18.589453
2017-07-12T14:06:03
2017-07-12T14:06:03
69,509,655
0
0
null
null
null
null
UTF-8
C++
false
false
691
cpp
4prob_array.cpp
#include <iostream> #include <cstdlib> using namespace std; int main() { int arr[] = {1,3,-1,-3,5,3,6,7}; int w = 3; int n = sizeof(arr)/sizeof(int); int *res; res = (int*)malloc((n-w+1)*sizeof(int)); int max = arr[0]; for(int j = 1;j < w; j++) { if(arr[j] > max) { max = arr[j]; } } ...
650ceea6095d980496b7eeed12305aab652c06da
bc377fcafd15b5186163bf937e80c5088d23a112
/estrutura_de_dados/TP3/src/node.cpp
7a18991f8a962f4611257c23578c648a0c97d915
[]
no_license
guilhermealbm/CC-UFMG
9ec885da17e773a40db6b913dcf51092f95902a7
667cc012e3f3788c8babf5c4c9fd9106ee812a2a
refs/heads/master
2022-08-09T19:31:23.272393
2022-07-20T21:23:13
2022-07-20T21:23:13
195,878,712
0
0
null
null
null
null
UTF-8
C++
false
false
1,906
cpp
node.cpp
#include "node.h" Node::Node(){ this->_cell = {" ", ' '}; //Cria node com célula vazia. Se necessário, a célulal será substituída no método insert_cell. this->_left = nullptr; this->_right = nullptr; } Node::~Node(){ if (this->_left != nullptr) delete this->_left; if (this->_right != nullptr) delete...
e9a5db475b7f5531c1c1aacfa3b088df9e082d7b
aa5e9defea373d64d75336fc6c5a03124e24abbd
/plugins/core/DriftingGratingStimulus/DriftingGratingStimulusPlugin.cpp
de77b4f5412fcf0b45ea8bec01d0fc135c0f059d
[ "MIT" ]
permissive
esayui/mworks
e8ae5d8b07d36d5bbdec533a932d29641f000eb9
0522e5afc1e30fdbf1e67cedd196ee50f7924499
refs/heads/master
2022-02-18T03:47:49.858282
2019-09-04T16:42:52
2019-09-05T13:55:06
208,943,825
0
0
MIT
2019-09-17T02:43:38
2019-09-17T02:43:38
null
UTF-8
C++
false
false
562
cpp
DriftingGratingStimulusPlugin.cpp
/* * DriftingGratingStimulusPlugins.cpp * DriftingGratingStimulusPlugins * * Created by bkennedy on 8/14/08. * Copyright 2008 MIT. All rights reserved. * */ #include "DriftingGratingStimulus.h" BEGIN_NAMESPACE_MW class DriftingGratingStimulusPlugin : public Plugin { void registerComponents(shared_pt...
5b95a94eb4ddbfe4a5c8d2000e7950e4cffbf048
3a5b7154eddfdc62d7a35d554748bc7aece84f36
/InputManager.cpp
f369d077999a8c6186d1bc821266dc3fd10da5e3
[]
no_license
yongfu-lu/csc211HFinalProject
4adbe621d98066879e5aa8b7eb3cee5263eed1da
f221da593fce6e2e9ee381cb9d6830226d9ba8bc
refs/heads/master
2022-08-03T02:53:20.204700
2020-05-21T22:41:21
2020-05-21T22:41:21
265,958,994
0
0
null
null
null
null
UTF-8
C++
false
false
748
cpp
InputManager.cpp
#include "InputManager.hpp" namespace YL { // this function is for check mouse click in the future bool InputManager::IsSpriteClocked (sf::Sprite object, sf::Mouse::Button button, sf::RenderWindow & window) { if (sf::Mouse::isButtonPressed(button)) { sf::IntRect temRect( object....
67a254b3c410e7dd11a0fdc979f56d8584221868
fcebca7c5725c44796d90a7158350e52aa61cc72
/src/model/effects/StructuralRateEffect.cpp
2af60727b9044eb6820aa217e83a605b864e6b8d
[]
no_license
kkc-krish/RSiena
c082a0e1c3698bffd68734387347c4de7981698f
4f9d65392367703150e6285291a9b41d23e647c6
refs/heads/master
2020-12-24T19:59:58.649070
2013-06-18T00:00:00
2013-06-18T00:00:00
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,345
cpp
StructuralRateEffect.cpp
/****************************************************************************** * SIENA: Simulation Investigation for Empirical Network Analysis * * Web: http://www.stats.ox.ac.uk/~snijders/siena/ * * File: StructuralRateEffect.cpp * * Description: This file contains the implementation of the class * Structural...
b12839d1b2020f1d93d8a0e6c380d8992781543c
4bcc9806152542ab43fc2cf47c499424f200896c
/tensorflow/compiler/mlir/lite/metrics/error_collector.h
0a4d64de4fffb97604f83470bfbd9c9fddda81f3
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "BSD-2-Clause" ]
permissive
tensorflow/tensorflow
906276dbafcc70a941026aa5dc50425ef71ee282
a7f3934a67900720af3d3b15389551483bee50b8
refs/heads/master
2023-08-25T04:24:41.611870
2023-08-25T04:06:24
2023-08-25T04:14:08
45,717,250
208,740
109,943
Apache-2.0
2023-09-14T20:55:50
2015-11-07T01:19:20
C++
UTF-8
C++
false
false
1,959
h
error_collector.h
/* Copyright 2021 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
c4804b16ff1d3b5f38e20abd3d725f0ad99d5aa7
95570ae3de9febfe81989751982f6a6eafe080ff
/Sources/API/GUI/Components/slider.h
06203cec5bb93d46eec9768a7b3566bd28c5bce0
[ "Zlib" ]
permissive
kyelin/ClanLib
a552f224c2007598a1ab8acaf4e2caa967908851
2558aba725e6866a81d50b13178cbd5c60ab6edc
refs/heads/master
2021-01-24T21:36:07.499397
2014-11-18T02:09:39
2014-11-18T02:09:39
19,273,763
0
0
null
null
null
null
UTF-8
C++
false
false
4,551
h
slider.h
/* ** ClanLib SDK ** Copyright (c) 1997-2013 The ClanLib Team ** ** This software is provided 'as-is', without any express or implied ** warranty. In no event will the authors be held liable for any damages ** arising from the use of this software. ** ** Permission is granted to anyone to use this software for a...
9477af623f0da6743fedebb87a434695f7101fb5
d3c5b5f9c15dec74dd8f5928df5022ae639e910d
/Unit Tests/PlatformTest.cpp
8d567be1fb318bdd42b95fcfce2974b53e7f6daa
[ "MIT" ]
permissive
kbaker827/windows-metered-connection
2eae2fdb2c2a7547bd593003ce1592a0bebf35bc
3b54fa3c271fb9a4748365176d9d8779caaa710a
refs/heads/master
2021-07-02T11:39:40.821249
2017-02-06T20:36:24
2017-02-06T20:36:24
169,770,534
0
0
MIT
2020-09-22T15:21:53
2019-02-08T17:11:36
C++
UTF-8
C++
false
false
392
cpp
PlatformTest.cpp
#include "catch.hpp" #include "Platform.h" #include "Logging.h" SCENARIO("Static helpers") { GIVEN("Invariant helpers") { WHEN("I get the ProgramData path") { // TODO mock Win32 and inject expected path result, since the following won't always be true REQUIRE(MeteredConnection::Pla...
84c230598b363d1c2e91bd0730dd42c3fc3bc99a
c46a0d02315223318e152debac0d98bc4754b47c
/Group36W3/ui/addcomputerdialog.cpp
013be289bfbfbc640b8ba7b55cd1780c416f0d35
[]
no_license
skulia15/Project-Course-1--Reykjavik-University
f3ad25b0658299597bea21bced0186d750a72334
8b486713d8d2c982d8b46020f8faea99388a3818
refs/heads/master
2021-05-31T14:42:14.033042
2016-04-28T11:11:36
2016-04-28T11:11:36
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,286
cpp
addcomputerdialog.cpp
#include "addcomputerdialog.h" #include "ui_addcomputerdialog.h" #include "services/scientistservice.h" #include "services/computerservice.h" #include "utilities/utils.h" #include "mainwindow.h" using namespace std; bool checkStringValid(string myString); bool checkCompStringValid(string myString); AddComputerDialog:...
f884a9c8b5dd36c5de4f8f45e1bf6ca63f25bbdc
fb127294ed7fb48e37342ca0950a34015fe8bd4e
/components/radiant_mod/com_files.cpp
1d67c45eeb677e1c6d437db9e741ee6ea5c346ab
[]
no_license
Nukem9/LinkerMod
89c826f42cfc0aabe111002ca3696df07ac156c9
72ee05bbf42dfb2a1893e655788b631be63ea317
refs/heads/development
2021-07-14T16:23:00.813862
2020-04-09T05:05:38
2020-04-09T05:05:38
30,128,803
134
56
null
2021-04-04T14:04:54
2015-01-31T22:35:11
C++
UTF-8
C++
false
false
1,753
cpp
com_files.cpp
#include "stdafx.h" FS_ReadFile_t o_FS_ReadFile = (FS_ReadFile_t)0x004BC840; int __cdecl FS_ReadFile(const char *qpath, void **buffer) { int result = o_FS_ReadFile(qpath, buffer); if (result < 0) { if (strncmp(qpath, "techniques", strlen("techniques")) == 0 || strncmp(qpath, "techsets", strlen("techsets")) == 0...
20e38a5527e4932e8860fbd97d79510a75a3c77c
735441d9817e13191b24702feb969049db184c9e
/1sem/Contest_22.11.16/S/S.cpp
f6b3d22612462493586545e076043e541070e0d6
[]
no_license
p-mazhnik/mipt-cpp
0e7dcfe84d0b31e9b2cb2fe1133dd23f4538f5c3
5c9bd5e97880a353c64843170863e5ea6d9cf26d
refs/heads/master
2021-01-21T10:00:26.884468
2018-04-11T22:20:44
2018-04-11T22:20:44
83,356,174
2
3
null
2017-04-25T16:06:11
2017-02-27T20:58:18
C++
WINDOWS-1251
C++
false
false
1,780
cpp
S.cpp
#include <iostream> #include <stdio.h> using namespace std; /*void print_array2(int **a, int n, int m) // вывод двумерного массива c n строками и m столбцами на экран { for (int i = 0; i < n; ++i) { for(int j = 0; j < m; ++j) { printf("%5d ", a[i][j]); } cout << endl; };...
77bd8c04d6768754240d2f1000a522c8f5901fd2
2dae29709f2fff81afa85b0d42689a380b000ade
/Elevator/Elevator.h
bab81a8a82242d118b8b3d47eb2c3f69a9dcb8ca
[]
no_license
demietank/cpp605
4ea126042406c20b740bd924342e0168cb6b3c11
ea426f6837eb524d60ca26485e547fd9c1f315a5
refs/heads/master
2016-08-11T12:12:21.674377
2016-05-07T18:27:12
2016-05-07T18:27:12
50,798,883
0
0
null
null
null
null
UTF-8
C++
false
false
3,853
h
Elevator.h
/* * Elevator.h * * Created on: Apr 14, 2016 * Author: cmmay */ #ifndef ELEVATOR_H_ #define ELEVATOR_H_ #include <ostream> #include <set> #include <vector> #include "common.h" #include "Passenger.h" namespace elevators { /// States the elevator can be in. enum class ElevatorState { STOPPED, STOPPI...
d1565cb15018caee729ce98e2f240d56df5a0703
142ad524f0a130ef8738645db4b7eb24d91526c6
/preview/Win7Msix/Win7MSIXInstaller/MsixRequest.hpp
737e6c2bdc2468d86fc8a754ab84163f0a3736c7
[ "Zlib", "OpenSSL", "LicenseRef-scancode-unicode", "Apache-2.0", "LicenseRef-scancode-openssl", "LicenseRef-scancode-ssleay-windows", "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
ToTigerMountain/msix-packaging
45299990d4450c9de65557e2e750868a8f81b948
6edc2c8bc31a247641a195ca457899ff9dc6a9c0
refs/heads/master
2020-05-15T01:40:33.585372
2019-04-15T19:36:57
2019-04-15T19:36:57
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,696
hpp
MsixRequest.hpp
#pragma once #include "PackageInfo.hpp" #include "FilePaths.hpp" #include "MsixResponse.hpp" class UI; enum OperationType { Undefined = 0, Add = 1, Remove = 2, FindPackage = 3, FindAllPackages = 4, }; enum Flags { NoFlags = 0, QuietUX = 0x1, }; DEFINE_ENUM_FLAG_OPERATOR...
70fe037b68168921cf9eaffbdaa2ec35320a0ae8
6c0205bfbd2ea18feb878707d84bb1640d2ea730
/dp/221.h
2ff1d05dfea2e3f441b0bd321b86c58eb3fee3d4
[]
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
1,695
h
221.h
// // Created by 王秋城 on 2021/2/1. // #ifndef LEETCODE_TEST_221_H #define LEETCODE_TEST_221_H //https://leetcode-cn.com/problems/maximal-square/ #include "../common.h" class Solution { public: // 可以考虑优化空间复杂度的,利用滚动数组 int maximalSquareMoreSpace(vector<vector<char>>& matrix) { int row = matrix.size(); ...
3510f279fba0363484ceee086e8d0829294bf35f
8010df1fef10ddfd83bf07966cbf7e2e4b0d7ee9
/include/winsdk/cppwinrt/winrt/impl/Windows.System.Inventory.1.h
9712d6dacce4876d4fe427f27423d9941f51c5e4
[ "MIT" ]
permissive
light-tech/MSCpp
a23ab987b7e12329ab2d418b06b6b8055bde5ca2
012631b58c402ceec73c73d2bda443078bc151ef
refs/heads/master
2022-12-26T23:51:21.686396
2020-10-15T13:40:34
2020-10-15T13:40:34
188,921,341
6
0
null
null
null
null
UTF-8
C++
false
false
1,089
h
Windows.System.Inventory.1.h
// C++/WinRT v2.0.190620.2 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef WINRT_Windows_System_Inventory_1_H #define WINRT_Windows_System_Inventory_1_H #include "winrt/impl/Windows.System.Inventory.0.h" namespace winrt::Windows::System::Inventory { struct _...
a018cd89bd511f4b6151d0d26734655939695c95
39dd4c3f174ccf1bf627a664f7607faea3c1484c
/common/inc/ast/loop_declaration.hpp
de47fdee5d92a391424a3afcace9e5b03a91fbde
[]
no_license
EdwardHarriss/C-Compiler-and-C-to-Python-Translator
0d36545e48ff3ccf2c662e9c0cea8c7241686dc9
2d3241343d5e7cef6618e3ade4172c8ab6e5ac3d
refs/heads/master
2023-06-08T21:33:48.254717
2021-07-03T17:39:59
2021-07-03T17:39:59
382,660,458
0
1
null
null
null
null
UTF-8
C++
false
false
7,682
hpp
loop_declaration.hpp
#ifndef loop_declaration_hpp #define loop_declaration_hpp #include "ast_node.hpp" class IfStatement: public Node{ private: const Node* condition; const Node* if_exec; const Node* else_exec; public: IfStatement(const Node* condition_insert, const Node* if_body, const Node* else_body ):...
d12e1d1f7d819c843aa9d3eedf91c02cc95af235
1c5ee81b2fbecf8d346f1ab95666d2ed8cc47c1c
/src/output/SaveState.cc
fa1b429cd64164e4bce47d6f56bb1f6f8907dcf5
[]
no_license
Yuup92/SpeedyMurmurs_Omnetpp
a87f514b40d9bb569c7d8b6a357e0def7b774011
7c8236960425601daad00e54213da98aafee6beb
refs/heads/master
2020-08-08T23:54:32.763757
2019-10-21T15:26:10
2019-10-21T15:26:10
213,951,685
1
1
null
null
null
null
UTF-8
C++
false
false
8,602
cc
SaveState.cc
#include "./SaveState.h" SaveState::SaveState() { nodeId = 0; nodesInSystem = 0; amountOfNeighbourhoods = 0; fileName = ""; linkCapacityIndex = 0; updatedAmountNeighbourhoods = false; } void SaveState::set_node_id_and_amount_of_nodes(int id, int amountNodes) { nodeId = id; std::strin...
1ffc6eceb4939f98befed2fd140f48be2a6d861f
8ea132e024d3e036ed09bffcae7595834a14bdd8
/SOLUTIONS/Merge two sorted Linked List.cpp
4b30b864587021285d7d0ba2ac1cb2cdd05f9803
[]
no_license
abhisheknaw/Problems-for-Interview
53d42ddaefb628c2efd1e6bc1e94abf59babe996
b40c7886a2a25f17bdad5384efdca55122a7ec48
refs/heads/master
2023-05-05T23:57:57.759584
2021-05-29T12:37:31
2021-05-29T12:37:31
363,707,232
0
0
null
null
null
null
UTF-8
C++
false
false
1,610
cpp
Merge two sorted Linked List.cpp
/* Using Recursion Complexity analysis Time complexity : O(N + M). Assume that N and M are the length of lists, the time complexity is O(N + M) as only one traversal of linked list is needed. Space complexity : O(N + M).If the recursive stack space is taken into consideration. */ class Solution { public: ...
b5058357333b2a745c87aebdbaec0a1b726fd4c5
1468af6fbbfa8c155aefe6e14f645c98455c1cbb
/Net/CSocket.h
61e1b635d03a18993017055499abcd2b7d8c7831
[]
no_license
xqing2003/libevent_net
c1cc6c673c412d72649e6c24280abfbf6c2d13dc
1b99ad707da57f3ef5e9337f9dee7ca5dcbe908d
refs/heads/master
2021-07-15T05:46:39.869842
2017-10-20T12:27:19
2017-10-20T12:27:19
106,796,003
0
0
null
null
null
null
UTF-8
C++
false
false
1,395
h
CSocket.h
#pragma once #include "NetDefine.h" #include <string> class CSocket { public: CSocket(); CSocket(const char *psczIP, uint port); CSocket(SOCKET s, const struct sockaddr_in *addr); CSocket(const CSocket &rhs); virtual ~CSocket(); CSocket &operator=(const CSocket &rhs); public: bool Create(); void Close(); b...
898855133a35553b59a4ce3eecbcfa5ea451b2db
b52932b9ddd2a20d8778f41cd44e6b8fa6262123
/random_walk/random_walk/1d_simulation.cpp
4a18bbce294c67ea9ae53772e3305e822c2c62f8
[]
no_license
minesli8/DS_random_walk_MonteCarlo_simulation
8c10666a93d250bca842557d79fa73b486347639
050e6008ce657b14d520988ba086355c36933cbe
refs/heads/master
2021-03-30T17:57:35.539067
2018-03-14T04:14:58
2018-03-14T04:14:58
119,641,848
0
0
null
null
null
null
UTF-8
C++
false
false
164
cpp
1d_simulation.cpp
# include <iostream> # include "random_number.h" int main() { float dist; int n; std::cout << "end of program" << std::endl; char flag; std::cin >> flag; }
80b81f4a82e2373b3522ac61000db0eef157fb1f
097a46cf0e4a11b3135d77e2423b0458c923f094
/include/ShaderProgram.h
845e250f79a99eacbc4b4361ff6d614eb2db3f07
[]
no_license
vedangnaik/3DModelViewer
126deb2737ccab4c733b32f2a5cb9b82e78d9dd3
4cc37d7258cb9812edda165bb64246b33dfdee82
refs/heads/master
2023-08-16T05:52:41.371328
2021-10-09T01:30:02
2021-10-09T01:30:02
192,942,490
5
0
null
null
null
null
UTF-8
C++
false
false
3,683
h
ShaderProgram.h
#pragma once #include <glad/glad.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include <string> #include <fstream> #include <sstream> #include <iostream> class ShaderProgram { public: unsigned int ID; ShaderProgram(const char* vertexPath, const char* fragmentPat...
3683b5473a03bae44b969354699dd71908f2aaa3
b5a3ff7925ba064a1f4ac45b30410090e6e6929c
/KRealPlot.cpp
db8963520ca78d3a86e95cbdeeffe9425d76c105
[]
no_license
knkresources/K-
6a3c04ac4590659187e362de1f7ae78525936ae1
28dc42b3fedb4f8cd235efc9c83b4c72e0bd0b5e
refs/heads/master
2021-01-20T18:52:44.631018
2016-06-13T16:13:27
2016-06-13T16:13:27
60,959,040
0
0
null
null
null
null
UTF-8
C++
false
false
1,941
cpp
KRealPlot.cpp
#include "KRealPlot.h" KRealPlot::KRealPlot(QObject *parent) : QObject(parent) { this->isAttached = false; this->range = 8; } void KRealPlot::attach(QCustomPlot *plot) { this->QPlot = plot; this->isAttached =true; QPen pen; pen.setColor(Qt::blue); pen.setWidth(1); this->QPlot->...
b1cde1040ec9627036c132dcaf674b27c8d19579
71e25322e371cbafb3423febaa2909c040a60713
/src/hsm_history.cpp
c7ee31f26d3358694a14432c625d6b517db139b1
[]
no_license
Hamdor/PLHSM2
e6d6a5e02b2ca6c99a790f74418d38adf4b5173a
76b96a500c1d4a398794bb51d3d3fcef2859b664
refs/heads/master
2016-09-05T16:11:04.030234
2014-11-01T11:06:58
2014-11-01T11:06:58
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,789
cpp
hsm_history.cpp
/* * File: main.cpp * Author: Anne-Lena * * Created on 18. Oktober 2014, 16:07 */ #include <cstdlib> #include <string.h> #include "hsm_history.hpp" using namespace std; void S0::sigA(Context* c) { cout << "S0 hat sigA erhalten"<<endl; new (this) S1; init(c); } void S0::sigB(Context* c){ cout << "S0...
72464f6b77ee318f103b9534c3959eaf697c0f39
b7d76cc55e63cc2d597f8433fccc5aa9af833512
/learn-Qt-CPP-GUI/iviewer/mainwindow.h
fc3a03aaa8ff1d338ef7e84623f29ec12ea72664
[]
no_license
jaywhen/LearnQt
47a1f93fbb1c70a843f4bd2a0dc456bbf06f4365
d28de13cdf19db45e4cad58fda2e6e1b4c778d02
refs/heads/master
2022-09-29T04:32:11.617152
2020-06-06T17:43:53
2020-06-06T17:43:53
259,824,578
2
2
null
null
null
null
UTF-8
C++
false
false
1,069
h
mainwindow.h
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QFileDialog> #include <QFileSelector> #include <QMessageBox> #include <QKeyEvent> #include <QSqlDatabase> #include <QSqlQuery> #include "imgviewer.h" QT_BEGIN_NAMESPACE namespace Ui { class MainWindow; } QT_END_NAMESPACE class MainWindow : pu...
2bd71f65217d2d51cde09ec5e43971af2624921d
f6be9650304b1b55ec84dc9fb6b952352d51f834
/eosio.evm/src/precompiles/index.cpp
b5f1301c6d33d382feb66170c2a5320bdf4ebbbc
[ "MIT" ]
permissive
tseyt/eosio.evm
a9ce4908a810aec05320ef452d30144628dff993
8c9305d5ea944fc039eb3e2e39219398b58068a9
refs/heads/master
2021-02-26T08:55:15.294718
2020-03-04T05:50:36
2020-03-04T05:50:36
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,222
cpp
index.cpp
// Copyright (c) 2020 Syed Jafri. All rights reserved. // Licensed under the MIT License.. #include <eosio.evm/eosio.evm.hpp> namespace eosio_evm { void Processor::precompile_return(const std::vector<uint8_t>& output) { // invoke caller's return handler auto success_cb = ctx->success_cb; auto gas_used =...
5be9bcb5c5c327f24f5efabe01f802dff937e8d2
6e601105760f09d3c9f5306e18e4cf085f0bb4a2
/10000-99999/16933.cpp
4b12607aef957268e9952d27adedeb07bec2693d
[]
no_license
WSJI0/BOJ
6412f69fddd46c4bcc96377e2b6e013f3bb1b524
160d8c13f72d7da835d938686f433e7b245be682
refs/heads/master
2023-07-06T15:35:50.815021
2023-07-04T01:39:48
2023-07-04T01:39:48
199,650,520
2
0
null
2020-04-20T09:03:03
2019-07-30T12:48:37
Python
UTF-8
C++
false
false
1,687
cpp
16933.cpp
// 16933번 벽 부수고 이동하기 3 #include <bits/stdc++.h> using namespace std; int n, m, k, nx, ny, nk, nd, res, ans=-1, cnt=0; char a; int mov[4][2]={ {1, 0}, {-1, 0}, {0, 1}, {0, -1} }; bool visited[1000][1000][11][2], board[1000][1000]; int main(void){ ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); ...
985945d01a5ff09bcd61002ae91dcdb5dbf0d588
f79c19f49945e76d75302c25f87b682255eb0f1a
/Megaman CMSC451/Megaman CMSC451/ZeroAI.cpp
a0e255cd71ff2703877538c74186f8336298d483
[]
no_license
MrPillBoxHat/CMSC425
56b328875bd0e1413bde2a12ee9a9afd0d09b15a
05e746d2693e68d84440f548f1c004b5e7dea34b
refs/heads/master
2021-01-23T08:52:28.895489
2013-05-22T00:22:46
2013-05-22T00:22:46
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,507
cpp
ZeroAI.cpp
#pragma once #include <ctime> #include <cstdlib> #include "ZeroAI.h" #include "constants.h" // Constructor ZeroAI::ZeroAI(Zero *z, X *inX) { zero = z; x = inX; counter = -1; state = THINK; last_action = THINK; combo = 0; x_location = x->getHitBox(); zero_location = zero->getHitBox(); zeroIsRight = x_location[...
31fb045627172c6e0b22eee002ba08fdc31fe12e
f2d927e4842a8eac709b12031f8f16904cb809e0
/test/testGpuMax.cpp
82965f60fef441096f1ff4c043e125490c04f827
[]
no_license
bentsherman/libgmm
66378421b43b15a63edd9025dd0b9a9579c821dc
83ce86dba22bbcd375b0ada3c3a8d00e522751af
refs/heads/master
2021-07-22T10:22:58.631432
2017-10-28T17:28:39
2017-10-28T17:28:39
106,934,325
0
0
null
null
null
null
UTF-8
C++
false
false
1,490
cpp
testGpuMax.cpp
#include <assert.h> #include <errno.h> #include <float.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "cudaWrappers.h" void test(const size_t N, float* a) { for(size_t i = 0; i < N; ++i) { a[i] = i; } float host_max = -INFINITY; for(size_t i = 0; i < N; ++i) { if(ho...
7eee230b91cc7109f8de58a12d6c9c8b09224a2e
6465889bd2d49d3c6e02146d1fbeaf0edb4d9271
/136-Encadenando trolls.cpp
2004c36dc5a081d9d29e2e3f249e668a261a2064
[ "MIT" ]
permissive
MiguelJiRo/Acepta-el-reto
aef75839875d49eeea8f84b52a9cc8e82b1c2c4f
d34e24be2ba685010c0747bde904803a6b9e4cea
refs/heads/master
2021-06-25T03:55:32.109208
2020-11-18T15:16:36
2020-11-18T15:16:36
150,131,722
2
1
null
null
null
null
ISO-8859-1
C++
false
false
936
cpp
136-Encadenando trolls.cpp
// Miguel Jiménez Rodríguez #include <iostream> #include <fstream> #include <string> using namespace std; bool resuelve(); int numCortes(int numEslabones, int fuerza); int main() { // Para la entrada por fichero. /*#ifndef DOMJUDGE std::ifstream in("casos.txt"); auto cinbuf = std::cin.rdbuf(in.rdbuf()); #endif*...
7381900c9018750f9816bf9657fda74d1b9ffd47
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/components/exo/server/wayland_server_controller.h
af22ffe83dad2f9346149a228f2b5ec7f7722ff1
[ "BSD-3-Clause" ]
permissive
chromium/chromium
aaa9eda10115b50b0616d2f1aed5ef35d1d779d6
a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c
refs/heads/main
2023-08-24T00:35:12.585945
2023-08-23T22:01:11
2023-08-23T22:01:11
120,360,765
17,408
7,102
BSD-3-Clause
2023-09-10T23:44:27
2018-02-05T20:55:32
null
UTF-8
C++
false
false
3,304
h
wayland_server_controller.h
// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_EXO_SERVER_WAYLAND_SERVER_CONTROLLER_H_ #define COMPONENTS_EXO_SERVER_WAYLAND_SERVER_CONTROLLER_H_ #include <memory> #include "base/containers/flat_map.h" ...
afbcd939ad04f39ed34e30316e6fe3abd65eb355
763d2ab6cd37bc29812a01610dc3fb0f7b3bc8ef
/C/TutorialLevel5Bot/MyBotModule.cpp
247624a00e7d88afe74d210fcc8669508f032f9a
[ "MIT" ]
permissive
shawn2you/2017Guide
f189491c7b52983e8099de8bb7764c073f1b72db
fdf31dc62b32ed66635b38d9804a39b9c07d0129
refs/heads/master
2021-06-14T06:20:42.796046
2017-06-09T12:41:09
2017-06-09T12:41:09
null
0
0
null
null
null
null
UTF-8
C++
false
false
7,521
cpp
MyBotModule.cpp
/* +----------------------------------------------------------------------+ | BasicBot | +----------------------------------------------------------------------+ | Samsung SDS - 2017 Algorithm Contest | +-----------------------...
e2f4f5a9e747fceb5e9ae0c56a802eeff8dce60e
badc1ee87d93f187733e9bcd5c1806d6aa91dc4a
/Recursion/sum_natural_numbers.cpp
511ce7b1f74fb1fd3c8534a03dedcf253380b4d9
[]
no_license
Ts-A/cpp-practice-codes
7914cbd45f9f0b466fd09e4a04bcab9db377b3d5
758a7e52ee35ae5590af94a6cf18e2b472d6e667
refs/heads/master
2023-05-25T01:55:04.081895
2021-05-28T19:13:39
2021-05-28T19:13:39
351,353,366
0
0
null
null
null
null
UTF-8
C++
false
false
291
cpp
sum_natural_numbers.cpp
#include <iostream> #define cout std::cout #define cin std::cin #define endl std::endl int sum(int n) { return n > 1 ? n + sum(n-1) : 1; } int main() { int n; cout << "\nEnter a natural number n:"; cin >> n; cout << "/nSum of n natural numbers:" << sum(n) << endl; return 0; }
26d84262c5974eb3c2a600e7966f6b636fae35c5
f8fe633947f3db3aff35f0af688937469aa60066
/server/feature_extractors/FeatureExtractor.h
74087e98744e469d31bcc55546b44b31fa25e634
[]
no_license
mcordischi/photosynthesis
5a25c5d5bc5d6e52e23fa53539bb899f03ba89d8
6e08001764aaf5e015e470a3ae1b74326ee087d7
refs/heads/master
2020-07-21T14:28:24.103792
2014-06-07T19:48:01
2014-06-07T19:48:01
10,872,925
0
1
null
null
null
null
UTF-8
C++
false
false
179
h
FeatureExtractor.h
// Interface Class for extration of features #include<cv.h> using namespace cv; class FeatureExtractor { public: virtual float extractFeature(Mat* image) = 0 ; };
6d58d4d1d456f8e2fe277eadfd58823afd37f5ba
c2ec21b1e7f955c10d9620155dea4c31adb38c7a
/main.cpp
05b8c7b59958bdcbce7be44ee9664208d3fc4375
[]
no_license
RogueEffect/ARCHIVE_rpg_shop
f2851cb4bc28f3231d526bf160126331547b19c9
36ae60ef0ce16d1fd500867b1c9ebaff0f3a7571
refs/heads/master
2023-07-19T06:29:16.569969
2021-08-31T05:58:31
2021-08-31T05:58:31
401,589,603
0
0
null
null
null
null
UTF-8
C++
false
false
5,352
cpp
main.cpp
#include <iostream> #include <limits> using namespace std; class CItem { public: string Name; int Price; }; CItem NOTHING = { "NOTHING", -1 }; class CPlayer { public: void PrintInv() { if(ItemCount) { cout << "-----Inventory-----" << endl; for(int i = 0; i < I...
e9d82ddb52674afac6b8a46e39db81474dcf27e3
7a2ee2a291db733e3cec634e81142c6a8773eb35
/bd.h
901e0de231d6a62135ac941a9790fadab7578989
[]
no_license
rhiswell/dbms-again
b5df2bf0fb93f094bfb5d8cae3c42b6d1333dd9c
0b561615d994d6095ac47fb7b9a28be454ca37c1
refs/heads/master
2021-09-01T08:24:17.654439
2017-12-26T01:39:18
2017-12-26T01:39:18
109,981,891
1
0
null
null
null
null
UTF-8
C++
false
false
1,559
h
bd.h
// // Created by Zhiqiang He on 08/11/2017. // #ifndef DBMS_AGAIN_BD_H #define DBMS_AGAIN_BD_H #include "types.h" #include "buf.h" #include <stdio.h> #include <assert.h> #include <string.h> #define PAGESIZE 4096 // In bytes #define MAXPAGES 65536 // Two groups => <= 256 MB backing storage #define MAXBUNC...
4b9c53701eb63ba7fc1315faf18e471bf91f5961
28f9e09b229a4b0f87ae756bd8c715655ba2ccbc
/phonejson/threadobject.cpp
213fbcde3814d5f09c464511128fcc088395b086
[]
no_license
End1-1/FastFServer
e4af39f4f310622f9c52d869cef97023651c4dad
605c47000cb0571eaee4eb7c2dc0630b5112f41a
refs/heads/master
2020-05-27T22:36:08.411570
2020-02-26T10:25:30
2020-02-26T10:25:30
188,807,629
1
0
null
null
null
null
UTF-8
C++
false
false
690
cpp
threadobject.cpp
#include "threadobject.h" #include <QThread> ThreadObject::ThreadObject() : QObject() { } ThreadObject::~ThreadObject() { } void ThreadObject::start() { QThread *thread = new QThread(); connect(thread, SIGNAL(started()), this, SLOT(run())); connect(thread, SIGNAL(finished()), thread, SLOT(deleteLater...
520f551d23328d688dd87b18a5c6f8ea562fe771
b3fbe558eebaa5366f9ced50135764466d66eb45
/WickedEngine/wiGPUBVH.cpp
1e3e190a3bb8eefa9b3b8f3987750edc9ef03866
[ "MIT", "Zlib", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
belleCrazySnail/WickedEngine
6421ad218e58f436a25a7949f268e534586d3118
b339f8405ef3257f41ca1329042396c6c77f8f31
refs/heads/master
2020-04-22T02:57:34.925869
2019-03-04T09:26:14
2019-03-04T09:26:14
170,068,901
0
0
NOASSERTION
2019-02-11T04:40:59
2019-02-11T04:40:58
null
UTF-8
C++
false
false
17,599
cpp
wiGPUBVH.cpp
#include "wiGPUBVH.h" #include "wiSceneSystem.h" #include "wiRenderer.h" #include "ShaderInterop_BVH.h" #include "wiProfiler.h" #include "wiResourceManager.h" #include "wiGPUSortLib.h" #include <string> #include <vector> #include <set> using namespace std; using namespace wiGraphicsTypes; using namespace wiSceneSyste...
f9e26b772bd9b684788017d969a2fad796c4198d
e5f4f37d941ceb8145d65f92028cc54658b1ac01
/Code/ThirdParty/Kraut/KrautFoundation/Strings/BasicString.h
42e0c0e19bdd4d5203aa001c6d0d409938e8db40
[ "MIT" ]
permissive
ezEngine/ezEngine
19983d2733a5409fb2665c6c3a0a575dadcefb50
c46e3b4b2cd46798e4abb4938fbca281c054b039
refs/heads/dev
2023-09-06T02:17:28.152665
2023-09-05T18:25:43
2023-09-05T18:25:43
18,179,848
1,050
165
MIT
2023-09-14T21:44:39
2014-03-27T15:02:16
C++
UTF-8
C++
false
false
4,836
h
BasicString.h
#ifndef AE_FOUNDATION_STRINGS_BASICSTRING_H #define AE_FOUNDATION_STRINGS_BASICSTRING_H #include "StringFunctions.h" #include "Declarations.h" namespace AE_NS_FOUNDATION { //! This simple base class for all string classes is needed to make them compatible to each other without needing thousands of overloads. /*! ...
e36b411a759a053923ffb52c4a65973677b758c4
b4b4e324cbc6159a02597aa66f52cb8e1bc43bc1
/C++ code/HSNU Online Judge/215(2).cpp
9d9bd31059463674f786957641d8fc3d12691ee0
[]
no_license
fsps60312/old-C-code
5d0ffa0796dde5ab04c839e1dc786267b67de902
b4be562c873afe9eacb45ab14f61c15b7115fc07
refs/heads/master
2022-11-30T10:55:25.587197
2017-06-03T16:23:03
2017-06-03T16:23:03
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,620
cpp
215(2).cpp
#include<cstdio> #include<vector> #include<algorithm> #include<set> #include<map> #include<cassert> typedef long long LL; using namespace std; int T,N,M,K; struct Edge { int a,b,c; Edge(){} Edge(const int &a,const int &b,const int &c):a(a),b(b),c(c){} bool operator<(const Edge &e)const{return c<e.c;} }; vector<Edge...
0cfac0a56676d12187a2644b88205595b3b4178e
1abf985d2784efce3196976fc1b13ab91d6a2a9e
/opentracker/src/standalones/live_opentracker.cxx
3664d71978bf3ebb950437d46e6002b8da547031
[ "BSD-3-Clause" ]
permissive
dolphinking/mirror-studierstube
2550e246f270eb406109d4c3a2af7885cd7d86d0
57249d050e4195982c5380fcf78197073d3139a5
refs/heads/master
2021-01-11T02:19:48.803878
2012-09-14T13:01:15
2012-09-14T13:01:15
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,571
cxx
live_opentracker.cxx
/* ======================================================================== * Copyright (c) 2006, * Institute for Computer Graphics and Vision * Graz University of Technology * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that ...
45a673fd3cf245094ab990d719328f225113eab4
2ba2e7b90f2582f67790e7515a34610b94b80010
/verilog/CST/port_test.cc
7d0a3e16fc8faed85fe4d3ec986054159e5fdc2f
[ "Apache-2.0" ]
permissive
antmicro/verible
8354b0d3523bd66c58be9cf3a9bc2c9359734277
9f59b14270d62945521fd7e93de1f304ad9c4a28
refs/heads/master
2023-07-22T22:18:03.579585
2023-05-19T17:01:34
2023-05-19T17:01:34
221,144,955
1
2
Apache-2.0
2023-02-17T08:58:07
2019-11-12T06:21:02
C++
UTF-8
C++
false
false
20,367
cc
port_test.cc
// Copyright 2017-2020 The Verible Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law o...
f6e02a89d5a6823b02d3b8046d2b2e09f4c63a16
a604e456746440529b57683031bec5dca79f3ca7
/MinUI/Search.h
a842acbc90f98a34e93db7b2f03e3f78ad4667aa
[ "MIT" ]
permissive
Cryst4L/MinUI
8efd597c6a1d46e8647568e4416b6b8c12ec67d2
a121d577a8ed17bf362acbef741f94209898428d
refs/heads/master
2022-01-02T17:17:51.606317
2021-12-12T14:29:08
2021-12-12T14:29:08
241,074,546
4
1
null
null
null
null
UTF-8
C++
false
false
1,774
h
Search.h
//////////////////////////////////////////////////////////////////////////////// // Search.h // ----------------------------------------------------------------------------- // Implements the searching algorithms. // The canvas set is structured as a tree in which each canvas act as a node. // To retreive a canvas, one...
bc65d8d102e3e3ef13df1107c92ce22e7d5156bc
ac7fbb9988d2fefb8dca3ac5c52285c9081e82bc
/加油/加油/Ghost.h
d853df2a344dccac6e43983a3fb8810876940a66
[]
no_license
by1314/Pacman
92957ce409714a72464069bec2f4f7094b5ba275
be143d25da4bc03b52af3f23cbe29cf912df577b
refs/heads/master
2020-03-25T21:34:51.996057
2018-08-09T17:03:49
2018-08-09T17:03:49
144,181,184
0
0
null
null
null
null
GB18030
C++
false
false
1,182
h
Ghost.h
#pragma once #include"system.h" #include"BackArray.h" #include"PacMan.h" class CPacManApp;//解决相互包含的办法 class CGhost { public : struct Point { int x; int y; }tmp,tmp2; public : HBITMAP m_ghost; HBITMAP m_Wghost; HBITMAP m_ghost1; HBITMAP m_Wghost1; CPacMan m_pacman; CBackArray m_Back; CPacManApp *m_pacHwnd;...
f573b4f58d6998a09b083f62dac20580f125c81c
bf9b2a5b68b6f97af49fd8542a99a95542404557
/src/dependencies/datk/src/optimization/discFunctions/operations/IntersectSubmodularFunctions.cc
f1c5cc680f7e5769c7be4c2edc630e1af2e522d0
[]
no_license
viv92/video-analytics
7d6f2b4bddac7d981fe9cbbf8aae9cdba11d8e62
c0d1b431ceb42c6734460ae4933f7df96f0666f9
refs/heads/master
2020-07-10T12:34:41.344895
2019-08-25T07:56:58
2019-08-25T07:56:58
204,263,798
0
1
null
null
null
null
UTF-8
C++
false
false
2,721
cc
IntersectSubmodularFunctions.cc
/* * Truncate a submodular functions h(X) = f(X \cap A), a submodular functions f, and a set A \subseteq V. Melodi Lab, University of Washington, Seattle * */ #include <vector> #include <iostream> #include "../utils/error.h" #include "../utils/totalOrder.h" using namespace std; #include "IntersectSubmodularFunctio...
b88a53c7b2d8472f4cb6dbbfcb347dc067e13b9c
5ed195887dc2f8963a614ce68f9de1a6a8a8875c
/Source/POGCore/Source/POGCore/Input/InputManager.h
6d9b07b0486751a04b50c7789dfd61b6b9d7a9d0
[]
no_license
WillR27/POGEngine
33ccb24dc7d088f2cd3ed729353a4f8cfa924980
d23d9c8e4b1826ea740c834d82fcfa6db6a35c03
refs/heads/main
2023-08-15T04:10:32.087373
2021-10-09T10:32:44
2021-10-09T10:32:44
321,026,589
0
0
null
null
null
null
UTF-8
C++
false
false
2,146
h
InputManager.h
#pragma once #include "POGCore/Event/InputEvents.h" #include "InputPackage.h" #include "InputTypes.h" #include "InputValues.h" namespace POG::Core { enum class InputType { Keyboard, Mouse, }; struct InputInfo { InputType type; int keyOrButton, action, mods; InputInfo(InputType type, int key, int act...
9a2295c1291a288de520f36199d28dd887e692c3
78bb0f4a5f496a9b8631d0758c2f118bd9d80118
/src/tiering/index_manager.h
c4e1d0f0c2fd55bd1daaac8149c7549c2c588c52
[]
no_license
cbfsdeveng/kvfs_ra_testing
22152e0eb2f408b238521d8a32a3e0a088e84913
68b85a421c4c2dee8c3ac02508843eb1f45973e2
refs/heads/master
2021-01-22T22:20:08.411991
2017-05-30T12:13:39
2017-05-30T12:13:39
92,767,545
0
0
null
null
null
null
UTF-8
C++
false
false
2,473
h
index_manager.h
/* * Manages our in-core and local on-disk copy of the index. * The index describes (which parts of) which inodes are contained in which * segments (aka tarballs). * Index format is specified as a proto. * On startup, the old index is read in from disk. * When a new segment (tarball) is committed, the index mana...
e14f1e52a95181c5d4d97b765407986a831ed57b
1a41075640469143c655347ef02b268ba9eee1ca
/Projects/Multimedia/HolaMundoOpenGL/HolaMundoOpenGL/main.cpp
2e5d08fd6deb1ae054b55b149bbf8332c0fe0fa6
[ "MIT" ]
permissive
rammarj/Escuela
2a4ed0458efe8c0823de6ffd2f498c03f49abea7
f4d3054bbc6acb8c689307722926df703ad52b38
refs/heads/master
2022-06-26T13:53:09.264363
2022-06-19T18:06:21
2022-06-19T18:06:21
93,201,467
0
0
null
null
null
null
WINDOWS-1258
C++
false
false
2,675
cpp
main.cpp
// OpenGLHolaMundo.cpp : main project file. #include <stdio.h> #include <stdlib.h> #include <glut.h> void display(void) { /* clear all pixels */ glClear(GL_COLOR_BUFFER_BIT); /* draw white polygon (rectangle) with corners at * (0.25, 0.25, 0.0) and (0.75, 0.75, 0.0) */ /* don’t wait! * start processing ...
befb417b205d0b3d9024a9eeec26dd56ba5710bb
e780ac4efed690d0671c9e25df3e9732a32a14f5
/RaiderEngine/libs/PhysX-4.1/physx/samples/samplevehicle/SampleVehicle_ControlInputs.h
b6d54038e5cd6d537461a8fc1e374ec4d1b66fc5
[ "MIT" ]
permissive
rystills/RaiderEngine
fbe943143b48f4de540843440bd4fcd2a858606a
3fe2dcdad6041e839e1bad3632ef4b5e592a47fb
refs/heads/master
2022-06-16T20:35:52.785407
2022-06-11T00:51:40
2022-06-11T00:51:40
184,037,276
6
0
MIT
2022-05-07T06:00:35
2019-04-29T09:05:20
C++
UTF-8
C++
false
false
6,060
h
SampleVehicle_ControlInputs.h
// // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in bin...
43ab0ff95cd4a2cc086bc322fc3279390ea5bf0a
39c58dbf336a18dbdc735dfd2c36eadb7effdc19
/p015_20200818.cpp
ebdebe01c78dfcab4ea94be1c2dab61d985b296b
[]
no_license
SongM/HelpLeetcodeCPP
9a6e86c002bb3d9409ba83e9562c6f4dcbb200f9
4a4a8a72ddcf00353869985bb92ff322fea2cc12
refs/heads/master
2022-12-23T22:41:10.381211
2020-09-26T18:32:56
2020-09-26T18:32:56
287,381,650
0
0
null
null
null
null
UTF-8
C++
false
false
1,375
cpp
p015_20200818.cpp
// this solution uses hashtables, achieving o(n^2) time complexity. // for the search part, using t_res[0]<t_res[1]<t_res[2] to avoid duplicity. class Solution { public: vector<vector<int>> threeSum(vector<int>& nums) { vector<vector<int>> res; if (nums.size()<3) return(res); unor...
9d25bfced1e2dbd2a87dddec8716b6491f775bd3
f1b65a67115058db99e200f3e4288b0ff607da2b
/103_Binary Tree Zigzag Level Order Traversal.cpp
f19b7d82fb769dd5c9afb93941bcd0dfc9bfe030
[]
no_license
Liurunex/Leetcode
d8d0f28a61f0303274881c144a214892e786afed
21de5f8b91053c5befc579e34b6c76a9c2fc1ccd
refs/heads/master
2021-01-25T09:26:16.516436
2018-06-05T11:27:38
2018-06-05T11:27:38
93,832,959
1
2
null
null
null
null
UTF-8
C++
false
false
1,249
cpp
103_Binary Tree Zigzag Level Order Traversal.cpp
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: vector<vector<int>> zigzagLevelOrder(TreeNode* root) { if (root == NULL) return ...
aad2600b1701805158fde72919b6f523fc09dd20
efb416524a5e01f25594f2dd5cdeb646489f93e1
/OperationOnBinaryTree/leetcode_105.cpp
9038276babbd2aa0ad84a9ce85feca98bd399e1c
[]
no_license
whosxavierwu/LeetCodeSolution
fcb0d7efb9414acc91cfe7272bb4ddf23900d73f
5925901375c9b1e43e8d65a64ff31564c42dfdf1
refs/heads/master
2023-08-11T01:20:25.934236
2023-07-23T10:00:34
2023-07-23T10:00:34
195,152,346
0
0
null
null
null
null
UTF-8
C++
false
false
7,874
cpp
leetcode_105.cpp
// leetcode_105.cpp : This file contains the 'main' function. Program execution begins and ends there. // https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/ /* Given preorder and inorder traversal of a tree, construct the binary tree. Note: You may assume that duplicates do not ex...
5db77ca9b42bc6ff8fe901ccccb3b44863bbb4e1
cbd49fe2e043e33f8a12c8695102bc3ff4e35f69
/KeyboardBoundary/ImageTest.cpp
b7e7305864ca0328aa8ffca627f620342f2a4e8b
[]
no_license
freCman/Demo
4f11fce43fdf24b5c364d6c3e1d6dcf6703c52fa
89885ee3ab17544623461d733c7fe546493bdba7
refs/heads/master
2021-01-02T22:31:22.500382
2015-04-16T05:00:43
2015-04-16T05:00:43
34,035,337
0
0
null
null
null
null
UHC
C++
false
false
2,590
cpp
ImageTest.cpp
#include"Header.h" int imageTest(){ IplImage *img = cvLoadImage("Test.png"); IplImage* src_img_gray = cvCreateImage(cvGetSize(img), IPL_DEPTH_8U, 1); IplImage* hsvImage = cvCreateImage(cvGetSize(img), IPL_DEPTH_8U, 3); IplImage* eig_img = cvCreateImage (cvGetSize(img), IPL_DEPTH_32F, 1); IplImage* temp_img = cvCr...
43ff2611fceee3b4bdc70677f7627130eacfd650
dc7879fb23c1ba3a1147045924125bd3cd2f2b17
/LeetCode/Count and Say.cpp
1cd822f6f6f1a038f20ddbc340b32c8df219c893
[]
no_license
LeeNJU/LeetCode
da5d2c06255addf100a35c5b205016ee405da5b2
ae7dbf9e62b9e58b9e9fbec5d8f59e9be5dd4424
refs/heads/master
2020-04-03T20:19:36.261991
2017-03-02T03:48:07
2017-03-02T03:48:07
21,031,648
0
0
null
null
null
null
GB18030
C++
false
false
1,359
cpp
Count and Say.cpp
#include<string> #include<sstream> #include<algorithm> #include<functional> //题目描述:求出第n个count-and-say序列,1,11,21,1211,111221,…… //n=1时,读作1个1,所以是1,n=2时,看前一个序列,读作1个1,所以是11,n=3时,看前一个序列,读作2个1,所以是21,…… //解法描述:扫描计数 std::string countAndSay(int n) { std::string s("1"); while (--n)//直到寻找到第n个序列为止 { std::stringstream ss; ...
ce4256a951fe0bed36174e5dd756fb47df691791
5cec37261e756a98b632eda290d4869461738403
/core/src/function_space/04_function_space_data_unstructured.h
5f852da218b4bc0883a584b10b07972364d333ad
[ "MIT" ]
permissive
maierbn/opendihu
d78630244fbba035f34f98a4f4bd0102abe57f04
e753fb2a277f95879ef107ef4d9ac9a1d1cec16d
refs/heads/develop
2023-09-05T08:54:47.345690
2023-08-30T10:53:10
2023-08-30T10:53:10
98,750,904
28
11
MIT
2023-07-16T22:08:44
2017-07-29T18:13:32
C++
UTF-8
C++
false
false
5,859
h
04_function_space_data_unstructured.h
#pragma once #include <Python.h> // has to be the first included header #include <array> #include "control/types.h" #include "function_space/03_function_space_partition.h" #include "mesh/type_traits.h" #include "field_variable/unstructured/element_to_node_mapping.h" #include "field_variable/00_field_variable_base.h...
77b00fefdb65a13acafc9da206c09ba0ae980f7d
de7e771699065ec21a340ada1060a3cf0bec3091
/core/src/java/org/apache/lucene/document/FeatureQuery.h
ccd393e341ea237bde56d7dc8552a500feb4ea8c
[]
no_license
sraihan73/Lucene-
0d7290bacba05c33b8d5762e0a2a30c1ec8cf110
1fe2b48428dcbd1feb3e10202ec991a5ca0d54f3
refs/heads/master
2020-03-31T07:23:46.505891
2018-12-08T14:57:54
2018-12-08T14:57:54
152,020,180
7
0
null
null
null
null
UTF-8
C++
false
false
5,077
h
FeatureQuery.h
#pragma once #include "stringhelper.h" #include <any> #include <memory> #include <string> // C++ NOTE: Forward class declarations: #include "core/src/java/org/apache/lucene/document/FeatureField.h" #include "core/src/java/org/apache/lucene/document/FeatureFunction.h" #include "core/src/java/org/apache/lucene/index...
7495369a50f2bb01c2b3cd298449e44a751c9591
ed4230470be84ea33847478fd31d634662769fd1
/hw/e_7-16.cpp
d538ac7ce6f6075f7e00e1e95cdd8c184fb42d5e
[]
no_license
rachel-ng/cs135
9a6363310c963fde08963e99a61a7a4dfc1325d1
695b878d386e2b67a95311f582b5c04db2655ee8
refs/heads/master
2023-02-10T11:12:38.197635
2020-12-31T22:59:04
2020-12-31T22:59:04
205,632,748
0
0
null
null
null
null
UTF-8
C++
false
false
712
cpp
e_7-16.cpp
/* Author: Rachel Ng Course: CSCI-135 Instructor: Maryash Assignment: E7.16 Distance between points */ #include <iostream> #include <cmath> class Point { public: double x; double y; }; double distance (Point a, Point b) { double x = b.x - a.x; double y = b.y - a.y; double z = pow(x,2) + pow(y...
4985e6ceb5c616f744ee8e59d2df2ee83cd72df5
e1eecef1251fc0c89d389385b558c16571da919b
/RenderEngine/RenderEngine/Textcoord.h
c6e0a989c0250fe62d5d4e76327fe8e5be975c06
[]
no_license
AlexanderAzharjan/RenderEngine
066f3d089cf905891b13a65a26fb51ff506f32f3
6df501ba643e28d7fc7b1e97f839bf28acf99ec2
refs/heads/master
2023-07-02T09:31:43.854974
2021-08-03T11:42:53
2021-08-03T11:42:53
null
0
0
null
null
null
null
UTF-8
C++
false
false
87
h
Textcoord.h
#pragma once namespace RenderEngine { struct Texcoord { float u; float v; }; }
f3127f18bda6775d8a78ab1c945fdff046717d88
28eb475d8f9cdff5ed101ef26cdb46fe11a919b8
/CG-KernelRegion.cpp
4521c030af193e7f2e2af54ab2f247d7f0d283c5
[]
no_license
shadeel-han/Algorithm_Library
f285799a79ef52301d2efe3ea17330cf5119a7c3
24c9ae3052aaf111d6919ce4444c2bdef29a7d1f
refs/heads/master
2021-06-08T08:55:10.541780
2016-10-26T17:05:16
2016-10-26T17:05:16
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,678
cpp
CG-KernelRegion.cpp
/* Library: Computational Geometry - Kernel Region / Polygon Intersection Algorithm: Half-Plane Cut, Math - Cross Product Input: coordinates of one/two polygons' vertices (counterclockwise order) Output: kernel region of the polygon / intersection region of two polygons (in "polyB") Notice: Time Compl...
3d233f2477273f61960fdae785106a4e9dfb8341
246fa2e2a88f02ce7d78032f240f0b500e9e2ca7
/src/Vector.h
e9e5274871fd1e266149d35e20013172cab47796
[]
no_license
baens/SchooGL
5e3fdcd4be1b9357845b958010db90a6c059ec57
15fca88c12b1f8fe8882e4ae52ddcd311878f3be
refs/heads/master
2021-01-13T13:56:57.848662
2012-05-01T22:43:07
2012-05-01T22:43:07
null
0
0
null
null
null
null
UTF-8
C++
false
false
214
h
Vector.h
#ifndef VECTOR_H #define VECTOR_H class Vector{ public: Vector(); Vector(double x, double y, double z); Vector(Vector& rhs); private: double x; double y; double z; }; #endif //VECTOR_H
fb935a28537578aade72e68b38d817c3ef1dd678
d514c0a04d495962e760f2e2e0a7902c7ffda6a3
/AMS_3/AMS_3/billList.h
a58a63ca83c8d35f35b83f878f505a7626102bee
[]
no_license
anothu/c-plus
a487a5e003b9eafeafc56ff977abd7b96a80d320
e4e13f88767bb7828acca18eb8e9fcce3c826bee
refs/heads/master
2020-07-05T05:45:38.382171
2019-08-15T14:23:14
2019-08-15T14:23:14
202,542,223
1
0
null
null
null
null
UTF-8
C++
false
false
927
h
billList.h
#include"model.h" #include <string> #include "global.h" BillingNode* BillListInit(const string billingFilename); int logon(string strNo, string strPwd, LogonInfo* pInfo, CardNode* pCardNodeHead,BillingNode **ppBillingNodeHead); bool saveBilling(const Billing* pBill, const string pPath); bool updateCard(c...
2ef39c125b1c68b6943c02840f6cf445036a4465
3fc627e323d6ae415e3ce6bc58d94ff81f20a61b
/IntegertoRoman/IntegertoRoman.cpp
cc14ea394bf4b2e6606a9c24beea1e1820111721
[]
no_license
1004770234/leetcode
0f577910809333dfe52ec9d70ee131bb89623282
4334ec4d35e105e7f603fc65522dcd9ff0dd3cf3
refs/heads/master
2021-04-02T03:10:52.559005
2020-03-18T13:37:17
2020-03-18T13:37:17
248,237,415
0
0
null
2020-03-18T13:21:08
2020-03-18T13:21:08
null
UTF-8
C++
false
false
1,030
cpp
IntegertoRoman.cpp
class Solution { public: string intToRoman(int num) { // Start typing your C/C++ solution below // DO NOT write int main() function char symbol[] = {'I', 'V', 'X', 'L','C', 'D', 'M'}; string result; int base = 1000; int d = 6; while (num) { int...