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
ce40f300580f9748017622266a7f0fdb66a53d94
d6ab38714f7a5f0dc6d7446ec20626f8f539406a
/backend/collecting/collectedFiles/C++/edited/dolphin-emudolphinblob4c004b6dc978d7585bf0765e22351ef1edd39a3aExternalsglslangglslangMachineIndependentparseVersions.h
da18bc46d7ccbe2f94713d19da3384634184f8c1
[ "BSL-1.0" ]
permissive
haditabatabaei/webproject
8db7178affaca835b5d66daa7d47c28443b53c3d
86b3f253e894f4368a517711bbfbe257be0259fd
refs/heads/master
2020-04-10T09:26:25.819406
2018-12-08T12:21:52
2018-12-08T12:21:52
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,813
h
dolphin-emudolphinblob4c004b6dc978d7585bf0765e22351ef1edd39a3aExternalsglslangglslangMachineIndependentparseVersions.h
#ifndef _PARSE_VERSIONS_INCLUDED_ #define _PARSE_VERSIONS_INCLUDED_ #include "../Public/ShaderLang.h" #include "../Include/InfoSink.h" #include "Scan.h" #include <map> namespace glslang { class TParseVersions { public: TParseVersions(TIntermediate& interm, int version, EProfile profile, con...
2bef38a34332be70a3042da309707b69571495a3
d347554c4bc24b7e159551007f5683cac8fa97d0
/3rdparty/asn/asn1/BERDecoder.cxx
0490d0ec449d92c8f12c062ef7f177542c14e533
[]
no_license
ansartnl/ALPHA
892065b1476ec9c35e834a3158592332cda4c5f5
138ddd981ed5bac882c29f28a065171e51d680cf
refs/heads/main
2022-12-27T16:15:28.721053
2020-10-16T08:58:41
2020-10-16T08:58:41
304,633,537
2
0
null
null
null
null
UTF-8
C++
false
false
11,792
cxx
BERDecoder.cxx
/* * BERDecoder.cxx * * Abstract Syntax Notation 1 Encoding Rules * * Copyright (c) 1993-1998 Equivalence Pty. Ltd. * * Copyright (c) 2001 Institute for Information Industry, Taiwan, Republic of China * (http://www.iii.org.tw/iiia/ewelcome.htm) * * The contents of this file are subject to the Mozilla Public L...
755858e5c1dc7cf169e47140ee3931ae90f7bb55
d9741ceb7bd16c80cf07e46019b249eff008ab59
/library/src/backend.cpp
6800790b95e5580a4d027b9a0b7dd7b81135bb24
[ "MIT" ]
permissive
fagan2888/ROC_SHMEM
4af3f5f37d976332708585c8c065534f041f8dd5
6795dee38f89216629625b38acbe0520144caff4
refs/heads/master
2022-11-23T17:59:47.049806
2020-07-28T16:20:38
2020-07-28T16:34:23
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,239
cpp
backend.cpp
/****************************************************************************** * Copyright (c) 2019 Advanced Micro Devices, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal i...
cee55f7e12c9adf8adc9622d1cec36f5f7d5189c
1e949d5d634ce37309945d96c13b5c9e9680ca8d
/ObjC/Generic.h
7d83cc0c6880b4f7b01948bb1271853ebcb19389
[]
no_license
Satachito/JMP
d591da19d586c8c9c23b929ba1e0cbba076e5b51
c93dde592ed06435bb1b3e3a0c0a5b576a92422a
refs/heads/master
2022-07-02T12:33:25.084451
2022-06-17T12:09:27
2022-06-17T12:09:27
27,325,458
5
1
null
null
null
null
UTF-8
C++
false
false
10,145
h
Generic.h
#pragma once // https://github.com/Satachito/JpMooParaiso.git // Written by Satoru Ogura Tokyo, Japan. #include <cassert> #include <dispatch/dispatch.h> #ifdef __MACH__ #include <mach/mach_time.h> #endif namespace JpMooParaiso { #ifdef __MACH__ struct Timer { uint64_t u; mach_timebase_info_data_t uTB; Timer(...
c2d6e15d5f455625838cc8620e70d647949d2e28
cb84d30a962790ab0c449be14c966d1b128329b6
/math/math_theory/Euler_sieve.cpp
bf949591fc1a32d88a199597e85d1e78a87e3469
[]
no_license
ShaoChenHeng/codeOfACM
2c608858078c8d889874c3d345e8c1c97afcbf7c
cdc513b29628767a7b4649788578e5cae8a0e1dd
refs/heads/master
2020-08-21T18:46:07.111481
2020-02-05T16:18:36
2020-02-05T16:18:36
216,220,940
0
0
null
null
null
null
UTF-8
C++
false
false
556
cpp
Euler_sieve.cpp
#include <bits/stdc++.h> using namespace std; const int N = 100000; int vis[N], prim[N], xu[N], cnt,n; void work(int n) { for (int i = 2; i <= n; i++) { if ( !vis[i] ) prim[++cnt] = i; for ( int j = 1; j <= cnt; j++ ) { if ( i * prim[j] > n ) break; vis[i*prim[j...
0f32eb25f1af1e4120783924a0f2c355d739e0ad
508fe87d1d5e2b1b76f96561b58ce497e908e9ef
/shifter.cc
6ed724faefe24193aca8be52d7c0f2808a9a89e0
[]
no_license
cosmin/mpegtsShifter
09bd000f32f8261647fd05eb5d59a8453b07c0d0
5882cb494cd3c01a02c12a456adacfb6e57695f4
refs/heads/master
2021-01-25T09:20:46.815967
2018-02-03T08:10:56
2018-02-03T08:10:56
93,817,409
0
0
null
2018-02-03T08:10:56
2017-06-09T04:02:37
C++
UTF-8
C++
false
false
13,240
cc
shifter.cc
#include <cstdlib> #include <iostream> #include <string> #include <sstream> #include <iomanip> extern "C" { #include <libavcodec/avcodec.h> #include <libavformat/avformat.h> #include <libavformat/avio.h> #include <libavutil/avutil.h> } using namespace std; static AVStream *addStream(AVFormatContext *pFormatCtx, AVStr...
aea1749ed9466d9e675dfbb569d48339d292e445
e28904bcedc4c610b3dab2c0fa687188c569212d
/Source/Collision/Collision.h
a5e17a38f03bf83824cd093dae736fe142de4c8c
[]
no_license
YuukiReiya/Yuuki-no-kuseniNamaikida-
c65ce94989593e6a27156b0bbcd523c30a770cea
da56954760a72965c12bf03d32b7d3f9a11d5326
refs/heads/master
2020-03-21T07:12:19.193380
2018-06-22T07:00:25
2018-06-22T07:00:25
138,266,771
0
0
null
null
null
null
UTF-8
C++
false
false
103
h
Collision.h
#pragma once #include "../Common/Common.h" class Collision { public: Collision(); ~Collision(); };
3b28ddbc94bd12d4ca91c7aac7f780b6dfa04e86
a23d00b01ac1af188c9481f38fb0f12c3ee935a4
/CF991/C.cpp
415b99394437850172d8602f188ed83739658e21
[]
no_license
FwP-IDN/competitive_programming
fedecac8dc73e0af6769b63f40b115331354e83d
5566678d4fd8d43abb15cb84984c390c7cf5ff9c
refs/heads/master
2021-10-11T07:18:31.611566
2019-01-23T06:23:14
2019-01-23T06:23:14
105,432,410
0
0
null
null
null
null
UTF-8
C++
false
false
462
cpp
C.cpp
#include <bits/stdc++.h> using namespace std; long long N, le, ri, mid; bool solve() { long long n = N; long long A = 0; while(n > 0) { A += min(n, mid); n = max(n - mid, (long long)0); n -= (n / (long long)10); } return A * (long long)2 >= N; } int main(int argc, char** argv) { cin >> N; le = 1, ri = N...
4979cda75a5ef49edb867426b0f7602501141e13
f074a0042c8f82b912be9c21651fce237cc0a8e4
/src/socks4.h
bbae1a86a8f3d83bfc316e3da7483b991b515b94
[ "MIT" ]
permissive
daskol/socks-proxy
3f9c6257179cd493b778e88e050bf2da25dde2bc
3736bde188f45644601ce7327fabaeaf687b9e18
refs/heads/master
2020-03-10T12:47:45.106836
2018-10-07T21:32:25
2018-10-07T21:32:25
129,385,439
3
0
null
null
null
null
UTF-8
C++
false
false
2,960
h
socks4.h
/** * \file socks4.h */ #pragma once #include <cstdint> #ifdef NDEBUG #define BOOST_ASIO_ENABLE_HANDLER_TRACKING #endif #include <boost/asio.hpp> #include <glog/logging.h> #include <common.h> #pragma pack(push, 1) struct Hello { uint8_t version; uint8_t command; uint16_t dst_port; uint32_t dst...
2c8c874490bef34a10b108ae6d16b9f5cc975ec1
d1859fd90e0cae3269159ec3e3b92c15e46fee38
/src/libmqtt-to-influxdb/config/topic.hpp
c2cb561a2fa21527564afc72af2c536e62f95419
[ "MIT" ]
permissive
DavidHamburg/mqtt-to-influxdb
b712ef9c97e89ef951a6c47663bccccc1124262f
5a306f1186433c7ee426959a53ea575c03d9a4a1
refs/heads/master
2023-03-28T04:19:41.140851
2021-03-31T07:08:27
2021-03-31T07:08:52
352,259,227
1
0
null
2021-03-29T17:41:21
2021-03-28T06:36:52
C++
UTF-8
C++
false
false
1,345
hpp
topic.hpp
#pragma once #include <string> #include <yaml-cpp/yaml.h> #include <vector> #include <spdlog/spdlog.h> #include <libmqtt-to-influxdb/config/measurement.hpp> #include <libmqtt-to-influxdb/stringhelper.hpp> struct topic { std::string name{}; std::vector<measurement> measurements{}; }; namespace YAML { templ...
3170a8ef1dfe4c064997f5cc6aa23d69b749e979
6ceb8242304b569651edec69612e690b228ac684
/LGE_GameEngine/LittleGameEngine/src/GraphicsSystem/MeshRegistry.h
c7e98b5189856508218d20800df9ce791dfff592
[ "MIT" ]
permissive
JISyed/LGE-Game-Engine
c6f59526c216279ab42d0be09bce730c69691a1c
43ed9ef71c33417ba80c4efe51039a2f6f42f8ba
refs/heads/master
2021-01-11T12:26:51.717005
2016-12-22T18:04:50
2016-12-22T18:04:50
76,658,829
3
1
null
null
null
null
UTF-8
C++
false
false
1,592
h
MeshRegistry.h
#ifndef LGE_MESH_MANAGER_H #define LGE_MESH_MANAGER_H #include "..\EngineFoundation\ResourseRegistry.h" #include "..\AbstractDataTypes\GenericList.h" #include "Mesh.h" namespace lge { // Serves as a container for every Mesh loaded into the game class MeshRegistry final : public ResourceRegistry { public: // ...
1d1bb367dc5259f507c9f8ac41f5944d92027b82
faa88598362c8c8b01f99aad42ceea192be2d4d6
/views/pilelistview.hpp
f53ea7dcdf78e1d16348f89943c995d3d3e76460
[]
no_license
JoseManuelAR/klondike
869ec90ef5b0df3d4c481b97eab9f4adce80dc7b
9fef47f847be187683cc9079b31cf21c21ce4920
refs/heads/master
2021-09-04T17:21:46.669506
2017-11-16T09:54:24
2017-11-16T09:54:24
109,601,989
0
0
null
null
null
null
UTF-8
C++
false
false
188
hpp
pilelistview.hpp
#ifndef __PILELISTVIEW_HPP__ #define __PILELISTVIEW_HPP__ class PileList; class PileListView { public: void draw(const PileList& thePileList) const; }; #endif //__AREALISTVIEW_HPP__
bb60e31f8befbe4cd421b315ac942fd13f0de2e6
8e6aeaeeac63896828e573af21a8e9bc4536ed64
/23 nov/static func.cpp
cef15cb562a3a32be789e0f1cb0cd50adc4a8f85
[]
no_license
MarcosPara/PGJQP_MARCOS_SUBHO
cd34c8b418432534ada9c71dc35d4493fd1c4a45
245b4948784936564b2f05f4c8cc3ae12d1f2744
refs/heads/main
2023-03-01T17:02:50.482474
2021-02-08T12:48:23
2021-02-08T12:48:23
311,673,647
0
0
null
null
null
null
UTF-8
C++
false
false
531
cpp
static func.cpp
#include<iostream> using namespace std; class Example { static int Num; int n; public: void set_n() { n = ++Num; } void show_n() { cout<<"value of n = "<<n<<endl; } static void show_Num() { cout<<"value of Number = "<<Num<<endl; } ...
94f93c64976411593d9810846ca95ec90d80d9b0
cc0d94e4d9d6eb430c28860f01f392f37b0910a9
/my_memory.cpp
adc357eab45c264be8bd3ff83cb1b69a95f63942
[]
no_license
enistahiraj/softwareDesignIII
ef15b94fbd697fa38abc35a489d1e455efe92f38
ba533aa64845b02c2c95bf1f93bfc3bcf1e1292f
refs/heads/master
2020-08-05T18:46:17.183698
2019-10-03T19:29:50
2019-10-03T19:29:50
212,662,377
0
0
null
null
null
null
UTF-8
C++
false
false
168
cpp
my_memory.cpp
//Enis Tahiraj #include <iostream> #include <string> #include <utility> #include "my_memory.h" template <typename T> my_unique_ptr::my_unique_ptr():uPtr(nullptr){}
681b172bf6e5319b535739eaff80fa2701378d7d
1dc05c3cb3a57aea5f64052f329eaf458f73c832
/topic/LeetCode/0506findRelativeRanks.cpp
defc43b27fff7e1ed6588157132047d2cd77ec3a
[]
no_license
ITShadow/practiceCode
0b1fcbb6b150a1ee91283e8ac7a8d928b4751eda
4b407ad98e3abc0be5eadc97ff32165f9f367104
refs/heads/master
2023-04-08T05:53:21.734166
2021-04-26T03:45:46
2021-04-26T03:45:46
295,429,631
0
0
null
null
null
null
UTF-8
C++
false
false
1,475
cpp
0506findRelativeRanks.cpp
/* 给出 N 名运动员的成绩,找出他们的相对名次并授予前三名对应的奖牌。前三名运动员将会被分别授予 “金牌”,“银牌” 和“ 铜牌”("Gold Medal", "Silver Medal", "Bronze Medal")。 (注:分数越高的选手,排名越靠前。) 示例 1: 输入: [5, 4, 3, 2, 1] 输出: ["Gold Medal", "Silver Medal", "Bronze Medal", "4", "5"] 解释: 前三名运动员的成绩为前三高的,因此将会分别被授予 “金牌”,“银牌”和“铜牌” ("Gold Medal", "Silver Medal" and "Bronze Medal"). 余...
10f7388b500f83ba87485316b45c3e854f2f1892
6aa76d098a8fce91604385bc942ac4095fc58ffd
/fonctons.h
e7ebcfac0e3b4f06c7b02855a27a0668c1a693a9
[]
no_license
BluntBlowin/Parallel-Convolution
496e2ef83e3758ddbf49004badd90b589ddd6a18
cbddac121101b9f3b7b23ca1c8f410581ad13931
refs/heads/master
2020-06-09T16:33:20.410345
2019-06-24T08:58:02
2019-06-24T08:58:02
193,468,963
1
0
null
null
null
null
UTF-8
C++
false
false
424
h
fonctons.h
#include <omp.h> #include <iostream> #include <ctime> #include <cmath> #include <stdio.h> #include <stdlib.h> void afficher(int **matrix,int rows,int cols); int **convolute(int **matrix,int rows,int cols,int **mask,int rowConvol,int colConvol); void sequentialConvolutionSinglePass(); void parallelConvo...
bbfafdd7305aa4cb709ab89a2f02fcfb21b104e7
271a57344dcb49a80feae682ecc1d39f991eec81
/src/provider/OW_NamespaceProviderIFC.hpp
e88e8911e73f9da9082d480b0cf17b68177ec9a2
[ "BSD-3-Clause" ]
permissive
kkaempf/openwbem
b16f7b8f0db6c1dbe1ee0467f7ab1b543253ea35
b923c1fffd0e7f5489843c8c3b3850c50880ab9b
refs/heads/main
2023-03-16T00:41:34.967003
2023-02-21T06:59:50
2023-02-21T06:59:50
5,981,070
0
1
null
null
null
null
UTF-8
C++
false
false
8,937
hpp
OW_NamespaceProviderIFC.hpp
/******************************************************************************* * Copyright (C) 2001-2004 Novell, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions of sour...
d1b089d9a1d193a342d2f0c9df8a762fc9016a10
e20087104206b48e86cdf135145cd8d2f3c665e3
/__drivers/gv_gameplay3d_driver/gv_hook_gameplay3d_rendering.hpp
32af8c08ba5db7574b256e07ca9cae19386e3f33
[ "MIT" ]
permissive
dragonsn/gv_game_engine
5929ecdadf0403ac68b74130ecf9f72b62ddd624
92595a63148d15a989859c93223a55168a1861b5
refs/heads/master
2022-11-19T01:48:46.783547
2022-11-08T10:24:45
2022-11-08T10:24:45
159,043,827
2
1
null
null
null
null
UTF-8
C++
false
false
20,805
hpp
gv_hook_gameplay3d_rendering.hpp
#include "gv_framework/renderer/gv_shader.h" namespace gv { bool gv_hook_gameplay3d::drawSceneNode(Node* node) { GV_PROFILE_EVENT(gv_hook_gameplay3d_drawSceneNode, 0); gv_com_graphic* com = gvt_cast< gv_com_graphic >((gv_object*)node->getUserPointer()); // terrain? if (node->getTerrain() && !m_hide_terrain) { ...
2de9434e5f0a68434ec5d65dc05091c568b948c7
ca6b8c02520075f6170b7ed94accec7d2f6825c5
/Test_Scores.cpp
68b85308a09e16844e1e2ca84ef8cb6a56313fce
[]
no_license
Offram/File-Handling
832734daa4500fb7e1cd574caa00daacc34e0aa2
e79472e9500f383fdc3a3fb70ae1f8264e69ce8d
refs/heads/master
2020-03-17T09:45:01.361972
2016-09-24T04:00:23
2016-09-24T04:00:23
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,741
cpp
Test_Scores.cpp
//Input-Output File Handling // Test Scores Program //Author is Moses Arocha #include<iostream> #include<fstream> #include<string> #include<cstdlib> using namespace std; //Variables string stars(string text); //Declare Functions that will be used void display_inventory(); void add_item(); void add_function(); //Di...
ab274fe6e1fb7182dc984e848fe637f1b6359e14
f466b8de2b5179387c7865ab5b65a2b783315cdd
/c++ shooter/c++ shooter/WaveManager.cpp
be8f49398436f0253fd2fb8c26486f2cdeb32dab
[]
no_license
Birmingham-City-Uni/C-Shooter-milestones-Callum-Slowley
3443127d66fcd606d04ad741d29f042d2ec16c1d
4a6f333c1a0befd4a4c0244c8a6b61e446bdb75b
refs/heads/master
2023-06-08T15:07:14.613843
2021-01-06T23:43:52
2021-01-06T23:43:52
300,237,996
0
0
null
null
null
null
UTF-8
C++
false
false
361
cpp
WaveManager.cpp
#include "WaveManager.h" WaveManager::WaveManager() { } WaveManager::~WaveManager() { } void WaveManager::Update() { if ((SDL_GetTicks() - timeSinceLastSpawn) > spawnTimes && nextWave) { currentWave++; for (int i = 0; i < currentWave; i++) { em->spawning(); nextWave = false; } time...
98615899e72b51906291159e0071c203e22d34fb
5f21f553666ec9b6916e3b68b2b123b4db374393
/pitzDaily_Reynolds_stress_R_manual/100/phi
3a4cec2093e2c837ede7e7f5caabba67aaa168f6
[]
no_license
giacomodelbianco/software
9a4f732635adc5ca954eb1dbc3327e7e61a549c3
ca2f61c9833650b3d165260b3a445b4a6e29c409
refs/heads/master
2022-11-15T22:45:43.272727
2020-07-08T19:59:52
2020-07-08T19:59:52
null
0
0
null
null
null
null
UTF-8
C++
false
false
299,664
phi
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v1906 | ...
8e5bb5b99f41f7a9495dbd0e2eb6ba9dec61c105
34abe05d74d7d93fe7d84ca3421b272b97d2c069
/CSysResource/ApicalCommonApi.h
131b3ff0dabfb4a340b278bc7a3e2b45b4b5ff4f
[]
no_license
bluekite0/hSettings
c42a2e6e3e0ea304ce011b82da6799ac4882205f
7481cd3642801e6340a9dfe46a1e1e7f03ca81a0
refs/heads/master
2017-12-11T23:36:41.448792
2017-03-05T13:46:48
2017-03-05T13:46:48
null
0
0
null
null
null
null
GB18030
C++
false
false
5,136
h
ApicalCommonApi.h
#pragma once #ifndef CAPICAL_COMMON #define CAPICAL_COMMON __declspec(dllexport) #endif #ifndef CAPICAL_COMMON #define CAPICAL_COMMON __declspec(dllimport) #endif class CAPICAL_COMMON CApicalCommonApi { public: CApicalCommonApi(void); ~CApicalCommonApi(void); public: /*******************************************...
6e013a5f963b87ba08ac952571f9c375ca4129a4
6581cff177dcd5d784ed637249c4a6629fb959d5
/cointoss/cointoss.cpp
9a9e27d64fb52df5026f43e2d27f3be665e777be
[]
no_license
MohitYnwa/ETH-Algo-Lab
3b538a141a58482169d8413767f36261aefa72b6
f565821497498c872fd5fdd32bd4ebd2f1ed4040
refs/heads/master
2021-01-10T16:26:45.534710
2015-11-23T17:24:17
2015-11-23T17:24:17
46,734,551
0
0
null
null
null
null
UTF-8
C++
false
false
2,150
cpp
cointoss.cpp
#include <iostream> #include <boost/graph/adjacency_list.hpp> #include <boost/graph/push_relabel_max_flow.hpp> #include <boost/tuple/tuple.hpp> using namespace std; using namespace boost; typedef adjacency_list_traits<vecS, vecS, directedS> Traits; typedef adjacency_list<vecS, vecS, directedS, no_property, p...
9a0674666fc8875847959d104a50c6eaa47997da
33de164e0d72e50f8c365bb102e6510c83785028
/other/polynomial.cpp
7f4620370828fe715dd91e9f0f0bf41774bb45c7
[]
no_license
square1001/algorithm-contest-library
0763b2a4406382b00c9b675d8468ecb4f21e84f1
d923b15b42ffe2dd82ff778bcb131ee00ad6aaa5
refs/heads/master
2021-06-01T20:31:05.593745
2020-04-07T03:07:40
2020-04-07T03:07:40
148,795,399
6
0
null
2019-11-08T14:39:12
2018-09-14T13:51:39
C++
UTF-8
C++
false
false
4,673
cpp
polynomial.cpp
#ifndef CLASS_POLYNOMIAL #define CLASS_POLYNOMIAL #include <vector> #include <complex> #include <cstdint> #include <algorithm> class polynomial { private: using type = double; const type epsilon = 1.0e-9; std::size_t sz; std::vector<type> a; inline bool equivalent(type ra, type rb) const { return (epsilon <= ra...
28b63658ef2ad1a4099cf814b252be1f8546e42d
65d44bfc313bd972c1436040f0907f85cf04ff66
/include/DataLine.h
61871c25a2ace7feca4ef04df48d7b26eebb3892
[]
no_license
amberlauer/my_azure2
c4f5d6d917e1f50eb5f4678db1575df6c95a2a74
7f83675ec2f54efa3517d20a020adaaec9338e52
refs/heads/master
2020-05-30T09:23:15.888972
2019-05-31T19:46:58
2019-05-31T19:46:58
189,644,616
0
0
null
null
null
null
UTF-8
C++
false
false
954
h
DataLine.h
#ifndef DATALINE_H #define DATALINE_H #include <fstream> ///A class to read and store a line from a data file. /*! * The DataLine class reads and stores a formatted line from a data file. */ class DataLine { public: /*! * Constructor fills the DataLine object from an input stream. */ DataLine(std::ifs...
a512dd1ae3cd93ef8fa6539697c9cb682f59bbc4
c78c926155760aa63d24ad26b3356f6d19398f69
/NEUQOJ/大一上OJ作业/OJ第6周作业/快速幂.cpp
77331649c5fd6c3f88e9189b11b59267b4d360a4
[]
no_license
fhyPayaso/ACM
34c26aff0697ef0e7956cd03e30f13739a286466
0c7f4bf298e9a164f8a5ae140f30f441ccc226dc
refs/heads/master
2021-08-30T05:04:53.518780
2017-12-16T03:39:10
2017-12-16T03:39:10
114,429,801
1
1
null
null
null
null
UTF-8
C++
false
false
238
cpp
快速幂.cpp
#include<iostream> using namespace std; int main() { long long a,n; const int m=100000007; while(cin>>a>>n) { long long t=1; while(n!=0) { if(n%2==1) t=(t*a)%m; a=(a*a)%m; n/=2; } cout<<t<<endl; } return 0; }
f6cddcb4b20c159289dca72b7f5023d0114afc46
7d0c6716470abfe81fb0d44d660a7e344eaf5d2a
/server/settings.router.ino
740353129b4621590739ddfc198801db78044159
[]
no_license
do-Labs/MaterialSwitch
b24a60dbf7c82119f654a391ce74de5fd6656bc6
37a913fff0233994e3210aecffe6799a74a40e5e
refs/heads/master
2021-05-07T17:47:19.703374
2016-01-25T17:20:26
2016-01-25T17:20:26
null
0
0
null
null
null
null
UTF-8
C++
false
false
179
ino
settings.router.ino
Router settingsRouter("/api/settings"); void SettingsRouter(WebApp &app) { initSettingsController(); settingsRouter.get("/", &createSettings); app.use(&settingsRouter); }
dd1d18cc7bc2347acc09fff84fb1e6e4e1463ad2
b2a9478b9f69c9f6d0770eefcd00e1b47a9e73f9
/boards/breezy/breezy_board.h
da8d73c381ae11b94cc24d051f8115fdd15af3c7
[ "BSD-3-Clause" ]
permissive
UAVs-at-Berkeley/berk_firmware
ea5a8686e34d89f71c15e75ee1db6ea89f47348b
523bb46f665c9b85e05afa3e3ae4341fda02332a
refs/heads/master
2020-04-23T12:27:22.122729
2019-02-11T18:17:42
2019-02-11T18:17:42
171,168,856
1
1
null
null
null
null
UTF-8
C++
false
false
4,543
h
breezy_board.h
/* * Copyright (c) 2017, James Jackson and Daniel Koch, BYU MAGICC Lab * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyrigh...
ad53394900f25918ccba14a66c30c3c93aff0a1d
97da40df043f35ddf07047160c01da72ac711119
/319.BulbSwitcher.cpp
0c9de6a2a20b651c9fd988161c5d3dda17aa170e
[]
no_license
w-mj/leetcode
851fdd58a5ced72f051701fbde2ec3f6d03ec840
09fa07d11725e568f1903872ac4e0a08a13c8712
refs/heads/master
2022-05-22T16:41:59.738640
2022-05-18T13:19:58
2022-05-18T13:19:58
152,947,501
0
0
null
null
null
null
UTF-8
C++
false
false
378
cpp
319.BulbSwitcher.cpp
#include "defines.h" class Solution { public: int bulbSwitch(int n) { int ans = 0; for (int i = 1; i * i <= n; i++) { ans++; } return ans; } }; int main() { Solution s; cout << s.bulbSwitch(3) << endl; cout << s.bulbSwitch(4) << endl; cout << s.bulbS...
024bb31168da0df51a56ce2740fcfda14e842ede
ba14343d3545ca1b33626ca6c2f5aa486c88ef23
/EstructuraExamen2-master/Evaluador.h
0f6ef64aa5563a31d7dd72325438febf78495e9e
[]
no_license
Driem/Archivos
04c3473b7d9319f5e18133eedfb123d0018458c9
99ce30a714b2cce527f4019eee33782d2c0768e5
refs/heads/master
2021-01-20T08:14:43.465656
2014-09-22T20:52:55
2014-09-22T20:52:55
null
0
0
null
null
null
null
UTF-8
C++
false
false
401
h
Evaluador.h
#ifndef EVALUADOR_H #define EVALUADOR_H //#include "NodoArbolBinario.h" //#include "NodoArbolNArio.h" #include <iostream> // std::cin, std::cout #include <set> // std::cin, std::cout using namespace std; void evaluar(); //bool existeCamino(int grafo[5][5], int inicio, int destino); // //set<int> obtener...
2590be2f729b00a658e91dd8df47867815764f6c
2e53c111bb22fffeda1e94361106b347870d15d8
/Compiler/Node.cpp
3b656728d0793bcef15bfea51658ec501b7adf21
[]
no_license
yassmin96/Compilers
dab4f6ff4824c8a2c3d2d67b3d541d776946a69c
4aeda77b18a38604b1813b3495e71e2686858722
refs/heads/master
2020-03-29T11:57:26.020609
2018-09-22T15:16:02
2018-09-22T15:16:02
149,878,739
0
0
null
null
null
null
UTF-8
C++
false
false
562
cpp
Node.cpp
// // Created by Dalia on 16/03/2018. // #include "Node.h" Node::Node(int count){ nodeCount = count; final = false; } void Node::addToOutlist(Edge *edge){ out.push_back(edge); } void Node::setFinal(string type){ final = true; tokenType = type; } void Node::setCopy(Node *node){ copy = node; } No...
e961d7ad77336c00700b200e9b6a9476772c3e5a
41e9eaa410050fe1b1abc315ed044f4b29971796
/Borze.cpp
87925450c7f4525722781180b1d3e5b80a9cff35
[]
no_license
Raisul191491/Noob_C-
32202ccf298de2915685b1a091fa5d7bf4cb80b3
3ce698ca763dab2a3d95f8dbfd1a755161e1857b
refs/heads/master
2023-02-26T11:18:19.107628
2021-02-01T18:24:01
2021-02-01T18:24:01
240,031,404
0
0
null
null
null
null
UTF-8
C++
false
false
423
cpp
Borze.cpp
#include<bits/stdc++.h> using namespace std; int main() { char x[200]; gets(x); for(int i=0; i<strlen(x); i++) { if(x[i]=='.') { cout<< "0"; } else if(x[i]=='-' && x[i+1]=='.') { cout<< "1"; i++; } else if(x[i]==...
eff47b19c3b732fda47bade8fd4513a313bae4df
307a78a98ba3e5344c6464036fa138511592a78c
/src/Engine/ui/ToolTipImpl.h
c05bc9a659099d18a57811f60977d1cd57af76db
[]
no_license
cnsuhao/3dpanda
b0a2edb891aceee44bcf48e86038c0f222d7cee2
4c0cc31debe3b4e7d22f1eeab770b721f5816b2d
refs/heads/master
2021-08-23T13:42:20.770552
2016-01-19T15:23:36
2016-01-19T15:23:36
null
0
0
null
null
null
null
WINDOWS-1252
C++
false
false
483
h
ToolTipImpl.h
// // Copyright(c) 1986-2100, TT, All Rights Reserved // ×÷Õß: htz // ÈÕÆÚ: 2014/3/11 9:54:53_ // ÃèÊö: // #ifndef _TOOLTIP_201431195453_ #define _TOOLTIP_201431195453_ #include "ControlImpl.h" namespace panda { class ToolTipImpl:public ControlImpl { public: ToolTipImpl(void); virtual voi...
797b5e20758e64b041761912dcd2b606e20430a3
6d3b312a1629e62a5769ccc3caacaca7043a5ceb
/3dc/video/SmackerPlayback.h
59b53a276916cea3a7bb081db48853028e56fc18
[ "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
Melanikus/AvP
f8c8d0bd70dc3efd962b0bcf1e08fa250dfef98f
334417e8b67f302ce6f7fcfa7dfa5b5f5ff271f7
refs/heads/main
2023-07-07T02:27:07.029050
2021-03-13T05:41:26
2021-03-13T05:41:26
338,442,307
0
0
null
null
null
null
UTF-8
C++
false
false
3,019
h
SmackerPlayback.h
// Copyright (C) 2011 Barry Duncan. All Rights Reserved. // The original author of this code can be contacted at: bduncan22@hotmail.com // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of source...
e0bf9c087c3c0dc3eed772637e99ec0f2b8a16b5
1323769581b1fc117a3b07c19abee62ea9c43996
/3DProj/3DProj/Terrain/QuadTree.cpp
b2cb126c8195ef477d47749c58ef223558c4bf13
[]
no_license
Ceanze/3DProj
5c54b010a5d8a30a60dd6bcc05b5c15ac34b27d5
0984d0e3a360c580f040978fc6f41a1587c0d37a
refs/heads/master
2022-12-03T14:08:36.813886
2020-08-23T13:46:01
2020-08-23T13:46:01
113,999,332
1
0
null
null
null
null
UTF-8
C++
false
false
4,893
cpp
QuadTree.cpp
#include "QuadTree.h" #include "../Error.h" QuadTree::QuadTree(const unsigned & recursionLevel, glm::vec3 corners[4], const float& height) { this->hasChildren = false; this->inFrustum = false; this->quadSize = glm::length((corners[1] - corners[0])); for (int i = 0; i < 4; i++) { this->box.addPoint({ corners[i...
29cce78ae49b0d022c3a7b217e5d938e884e8603
cce3cf98070ae9305f814c0013096d6c0b8a63d9
/сpp/HomeworkStep/lesson19/ConsoleApplication1/CircleInSquare.h
4c304478db8dfde6f20ad5960289ff536f72e0c4
[]
no_license
ShaulovYevhen/-Examples
520db8ebdb6da3aedadfe39d5a6c8956955146a9
755bc1e62dd8f80f839d3c221061cd1a94e0535b
refs/heads/master
2022-12-10T05:49:04.658160
2021-02-14T16:52:12
2021-02-14T16:52:12
230,736,431
0
1
null
2022-12-08T02:43:55
2019-12-29T10:43:46
C++
UTF-8
C++
false
false
186
h
CircleInSquare.h
#pragma once #include "Square.h" #include "Circle.h" class CircleInSquare : public Square, public Circle { public: CircleInSquare(int radius) : Square(radius*2), Circle(radius) { } };
879355b6e5793acfc271fee55f3dc67f42d17094
698d6ab133f0331021331c16a7a0d7252a1bdbcc
/cpp/LambdaInitCapture.cpp
f6c1501fb2450319fb478f3780e6cb8f46ca2cff
[]
no_license
kambojankush/Mini-Projects
a23c66181e290f18293bb6220dbd690e9a128674
aec15f90ac3c212e11b1cca452931ec0cd1cf377
refs/heads/master
2023-04-28T15:38:01.019167
2022-02-06T02:09:13
2022-02-06T02:09:13
114,257,102
0
0
null
2023-04-21T22:01:42
2017-12-14T14:00:18
Python
UTF-8
C++
false
false
304
cpp
LambdaInitCapture.cpp
#include <iostream> #include <memory> int main() { std::unique_ptr<int> p = std::make_unique<int>(64); auto lambda = [ptr = std::move(p)](){ std::cout << "Inside Lambda, value = " << *ptr << std::endl; }; lambda(); std::cout << "Outside Lambda, value = " << (p==nullptr) << std::endl; return 0; }
d0a0e8560866c3e8530fa2efada14e5b738cac0e
1b669073d3698149c7ad950e0b72a873db09684e
/ScrapWork/src/Buttons.h
e9bd8a99a37e394ac1635f33050c2b1033aae2f6
[]
no_license
Neilsama/ScrapWork-Final
d9671cd6b1e364d16871defae62f5d86d6546aa3
693e112932c1580e64ed36378103af3eb505e2f3
refs/heads/develop
2021-01-20T03:23:51.276575
2017-05-11T00:42:46
2017-05-11T00:42:46
89,537,573
0
0
null
2017-05-11T00:59:00
2017-04-27T00:09:15
C++
UTF-8
C++
false
false
943
h
Buttons.h
#pragma once #include "poNodeContainer.h" #include "poImage.h" using namespace ci; using namespace ci::app; using namespace std; class Buttons; typedef std::shared_ptr<Buttons> ButtonsRef; typedef ci::signals::Signal<void(int number)> btnChangeState; class Buttons :public po::scene::NodeContainer { public: ...
14b87f8ac63c87c30f470c70ed273b9e33f79770
9301d1bf2b428d9e56994665a6db0d5fda2812ce
/src/evoStream.cpp
61c0f75505ff24cc82e43c0584dd0c38c00ac789
[]
no_license
mhahsler/stream
ae6ae385d1db3d68bcf7c56bac62edbf5df8ce26
0c83157635b48adb9a3401de601f81680d844968
refs/heads/master
2023-07-20T04:29:25.966443
2023-07-14T16:32:49
2023-07-14T16:32:49
45,126,788
39
5
null
2020-12-01T20:09:04
2015-10-28T16:37:22
C++
UTF-8
C++
false
false
19,416
cpp
evoStream.cpp
#include <Rcpp.h> #include <limits> #include <ctime> #include <random> #include <algorithm> #define VERBOSE 0 using namespace Rcpp; // Unused: C++11 now uses std::shuffle - MFH // inline int randWrapper(const int n) { return floor(unif_rand()*n); } class MC { public: Rcpp::NumericVector centroid; int lastUpdat...
7fd8ec2151e1fbe7ea68d6b3835c131bb17f99c7
4a37ff582517ffc2ad814ec2ff97bbbd876f37e6
/hw3 Binary Tree/lulu.cpp
82fecfd50d3025911631ea150feb50563af94e50
[]
no_license
BaoHsuanHuang/Data-Structures
d5e99c04aece61f157e8ebcb9340255774de892c
bf99fdf39a16297478b9c5405ea98ffbc8a862ae
refs/heads/master
2021-03-21T08:22:46.134606
2020-03-14T13:14:31
2020-03-14T13:14:31
247,278,655
0
0
null
null
null
null
UTF-8
C++
false
false
5,159
cpp
lulu.cpp
#include <iostream> #include <cstring> #include <cctype> #include <algorithm> #include <math.h> using namespace std; typedef struct _node{ int data; struct _node *left; struct _node *right; }Node; Node *newNode(int data) { Node *tmp = (Node *)malloc(sizeof(Node)); tmp->data = data; tmp->left = NULL; tmp->ri...
9da69288093d49f8f2ac7b5aec15975855d37c69
f992370500a1876cd4c501d2345b1a07cc11722c
/Algorithm_code/2099.cpp
3bc90a42cf890016f8f2646ddfd522cf3e28a2cf
[]
no_license
tinwoon/baekjoon_algorithm
6103dcb9c277167911217ab754ee45c8a09cf257
e2b04d5804e06eab12c2a31662ac32a1e7cd59e9
refs/heads/master
2023-08-06T19:59:49.332962
2023-07-29T08:16:35
2023-07-29T08:16:35
238,623,718
5
0
null
null
null
null
UHC
C++
false
false
1,236
cpp
2099.cpp
#pragma warning (disable : 4996) #include <iostream> #include <vector> //2099 The game of death 문제 //전형적인 행렬 제곱의 최적화 알고리즘 //어려운 부분은 없었으므로, 생략 가능하다. std::vector< std::vector<int> > connected; int N, M, K; std::vector< std::vector<int> > zegob(std::vector< std::vector<int> > a, std::vector< std::vector<int> > b) { ...
46a1e4e0e5c5e05a3dc592f2e73745c32611eca7
abee8957333c4fb32af305f93dd62dc34cd0448e
/File using three file approach/function.cpp
a2f1f56dd0439f2ddd191b6df7137e45ea5c105f
[]
no_license
agarwalmohit43/C-C-HTML-PLSQL-training
c3e88263493c15a2666b1bd6595829078a11c563
7f0a6876cfc5ec2534dca21944362840b056cc99
refs/heads/master
2021-01-19T17:31:42.826228
2017-08-22T14:44:55
2017-08-22T14:44:55
101,068,210
0
0
null
null
null
null
UTF-8
C++
false
false
1,135
cpp
function.cpp
#include"header.h" Student::Student() { roll=0;name="NULL";percentage=0; } Student::Student(int roll, std::string name, double per):roll(roll),name(name),percentage(per){} void Student::display() { cout<<"\nRoll: "<<roll<<"\tName: "<<name<<"\tPercentage: "<<percentage<<endl; } int Student::getRoll(){return roll...
9b3a02ea9c530e6375dfdf5cc4db72c617bce8b8
270feb21b1f81e73c66b1aef06434a39b1bcc633
/Arrays/tempCodeRunnerFile.c++
568dd79a9338c67ff2e5c0097196023323cfdebe
[]
no_license
hsahu615/Coding_Practice
c5660ca1f2b4a18d62057db8b29d0acde802341f
6e8488d3728ddda136f4aa94c37089ef591c4b40
refs/heads/master
2023-08-02T00:03:32.919456
2021-09-25T18:15:31
2021-09-25T18:15:31
379,199,565
0
0
null
2021-07-02T20:11:11
2021-06-22T08:39:05
C++
UTF-8
C++
false
false
32
tempCodeRunnerFile.c++
Naive Approach // Two Traversal
d8da0b39bd4433712e827473da96829a052c2663
1130fcd0c626fe52c2e150d57f9af40263149cb7
/treeviewsimple/myqstyleditemdelegate.cpp
1163eeec51488a9853ba9febf203e33307ad2b56
[]
no_license
Poofee/qtprojects
ea42b68a5c150a827e64da61eb1ae3eb7a3fc606
c3422b52d52d469ec5c0a72c431e3bd5041658a2
refs/heads/master
2021-07-17T06:34:00.735954
2020-05-31T05:20:50
2020-05-31T05:20:50
174,517,531
0
0
null
null
null
null
UTF-8
C++
false
false
1,596
cpp
myqstyleditemdelegate.cpp
#include "myqstyleditemdelegate.h" #include <QPainter> MyQStyledItemDelegate::MyQStyledItemDelegate(QObject *parent) :QStyledItemDelegate (parent) { } MyQStyledItemDelegate::~MyQStyledItemDelegate() { } void MyQStyledItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex ...
2e8bb241d9e817e6037f23c560668c1f89e2cd10
51ada1099f7271304b1ec113aef5dbe4a39d6b5c
/mainwindow.cpp
411c648439f5f524324a94d96498c162e20643d8
[]
no_license
iwtfagp/QtExample_Lpms
81f616e3d6be95f876813a86eba0f0e36636aac2
737f87ea8074c73a239eb60ffe18bdd01a463c1f
refs/heads/master
2021-01-17T12:00:30.825172
2015-03-18T03:59:50
2015-03-18T03:59:50
32,397,133
0
0
null
null
null
null
UTF-8
C++
false
false
2,066
cpp
mainwindow.cpp
#include "mainwindow.h" #include "ui_mainwindow.h" using namespace std; LpmsSensorManagerI* manager; LpmsSensorI* lpms; ImuData d; MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); timer=new QTimer(); timer->setInterval(20); timer->st...
37b3836d8fdc7779eaaa54c38b6183b02c108e13
94c213f4d2d35c94c87cef94b61acdf0bc86230f
/src/m_classes.h
2411b3eef15851ac9c273352bad7e5126554e6a2
[]
no_license
libretro/ecwolf
4c2278a5bf0403ae4ba3e19cc20cd5a70b12f9fd
18eca17c2d634b154824e0782c6cbbe0a2c9ea76
refs/heads/master
2023-07-19T03:59:42.119149
2023-07-18T11:31:53
2023-07-18T11:31:53
242,578,709
27
20
null
2023-07-18T11:31:55
2020-02-23T19:36:17
C++
UTF-8
C++
false
false
7,507
h
m_classes.h
#ifndef __M_CLASSES_H__ #define __M_CLASSES_H__ #include "tarray.h" #include "wl_def.h" #include "v_font.h" #include "zstring.h" /*////////////////////////////////////////////////////////////////////////////// // NEW MENU CODE // // The new menu code is an object oriented approach to the menu....
41e3842380a1163b74a06c0f2d7b8aa7412e29bf
90285e8f7aeafbf3ddc61e7c503497c1390eefa1
/Physics_Interfaces/Interfaces/sSoftBodyDef.h
7f657af2285ce990524ef0aa42c005c036467fff
[]
no_license
Remoh210/AI_Project_4
c05621af7be8058c4c2305ab624722a324fc3427
dde06349274c569bc22d0654eeeeafa9f35c50b1
refs/heads/master
2020-05-17T03:00:34.051673
2020-03-15T23:23:41
2020-03-15T23:23:41
183,466,578
1
0
null
null
null
null
UTF-8
C++
false
false
394
h
sSoftBodyDef.h
#pragma once #include <glm/glm.hpp> #include <vector> namespace nPhysics { struct sSoftBodyNodeDef { sSoftBodyNodeDef(const glm::vec3& position, float mass) : Position(position) , Mass(mass) { } glm::vec3 Position; float Mass; }; struct sSoftBodyDef { float SpringConstant; std::vector<sSoftB...
877316b5ba8259376e1c1ace3f7fdeaea89508cc
798f9e5893a8f57062449bae7ecc98fc765d7a08
/Player.cpp
9c4958d5a63eabf2bb153c3da2e0924a82d58c94
[]
no_license
mixy9/Space-Invaders-3019
132f7043ee933e41c915bc0d3480383d87a0ec32
05fc8a1628e3627f68ca3a6a400d18598c4d12cb
refs/heads/master
2020-04-23T17:55:06.599080
2019-02-26T22:39:11
2019-02-26T22:39:11
171,348,789
1
0
null
null
null
null
UTF-8
C++
false
false
2,887
cpp
Player.cpp
#include "stdafx.h" #include "Player.h" Player::Player() : m_score(0), m_seconds(0), m_health(100) { m_sprite = std::make_unique<SpriteNode>(Filename::player, 1.7f, 1.2f, 3000.f, 2200.f); m_sprite->setOrigin(125.f, 140.f); } sf::Vector2f Player::playerCenter() { return sf::Vector2f(m_sprite->get...
68977a44ebe1e6c382c3851e1caf8116a1340b3b
809504e5b3e792ab171963d7e163c15402317e73
/millas a km y viceversa.cpp
29cc38a570c4dea405c3967bc148a5d9dbd6932f
[]
no_license
LG-LuisGarcia/Mis-20-programas-en-c-y-menu
a1d5af33c3f548781319d55e19f8fae007b33064
5ee4cba04130e2cd488bcd8d9f9f6d7570686680
refs/heads/main
2023-08-05T05:27:45.369227
2021-09-12T07:12:34
2021-09-12T07:12:34
405,573,394
0
0
null
null
null
null
UTF-8
C++
false
false
663
cpp
millas a km y viceversa.cpp
#include<stdio.h> #include<conio.h> #define km 0.6214 #define milla 1.6093 float km_mi(float cantidad){ return cantidad*km; } float mi_km(float cantidad){ return cantidad*milla; } main(){ int op; float cantidad; printf(" CONVERTIR\n 1.-Km a Millas\n 2.-Millas a Km\n Respuesta : "); scanf("%d",&op); printf("Po...
6a375ab40e9c814f4c19f3a7c669b4019699cb21
1f2deccb512949f2e40b2ca0affceb13c1c9c8e4
/Pid_Bola/Pid_Bola.ino
b07a7fc7a41d54b84d1db618780a1f93ce1a21e1
[]
no_license
f0bima/Maladi
b9f23801c6536fb352b22449962d5e1e33e967fc
c7cc9433060ffebc3ca886bcf579b24771d14276
refs/heads/master
2020-04-06T19:10:39.939149
2019-01-10T14:49:46
2019-01-10T14:49:46
157,728,433
0
0
null
null
null
null
UTF-8
C++
false
false
894
ino
Pid_Bola.ino
#include <Wire.h> #include <LiquidCrystal_I2C.h> LiquidCrystal_I2C lcd(0x27, 16, 2); String a; int LPWM[] = {4, 3, 7}; int RPWM[] = {5, 2, 6}; int base = 100; float last_degree; String baca; void setup(){ Serial.begin(9600); lcd.begin(); lcd.backlight(); for(int i=0;i<3;i++){ pinMode(LPWM[i], OUTPUT); ...
b445b264c900b86aafe4f7375a12a05a0fe59979
56e81445a02f40f5e897f361270a858d375732ee
/src/symbole/Terme.h
204c11915c9fee6175d58f1e4b1aea43b7c89440
[]
no_license
IF-YASMAJJ/Grammaire-et-Langages
bafe4afff57bc15b34617cb1188a71858c13c528
e59680d12ba9d3ad8309b780bac8a6bd0c557193
refs/heads/master
2021-01-17T15:17:15.870619
2015-03-30T13:23:16
2015-03-30T13:23:16
31,675,143
0
1
null
null
null
null
UTF-8
C++
false
false
326
h
Terme.h
#ifndef TERME_H #define TERME_H #include "Expression.h" class Terme : public Expression { public: Terme(); virtual ~Terme(); virtual void castUp(){ m_idSymbole = EXPRESSION; } virtual int calculer(Automate *automate) = 0; virtual int* evaluer(Automate *automate) = 0; protected: private: }; #endif // TE...
2c71ecba5984cc828593827af7ed10074792974a
681e5578721dabbc517262463cdb48f3630b7c29
/src/programs/Utilities/hddm2root/DClassDef.h
933c52c28ab135291feac417ec6c8503d2f91e85
[]
no_license
JeffersonLab/sim-recon
d7a76e03887cfee255e1309ade73edb5a4f3bd87
de076695f16956fe649366b53959c7582285001f
refs/heads/master
2020-04-12T09:00:00.639534
2018-07-30T20:26:51
2018-07-30T20:26:51
39,176,669
15
20
null
2018-07-30T20:26:52
2015-07-16T04:35:19
C++
UTF-8
C++
false
false
471
h
DClassDef.h
// $Id$ // // File: DClassDef.h // Created: Tue Oct 16 04:22:52 EDT 2012 // Creator: davidl (on Darwin harriet.local 11.4.2 i386) // #ifndef _DClassDef_ #define _DClassDef_ #include <map> #include <set> #include <string> using namespace std; class DClassDef{ public: DClassDef(); virtual ~DClassDef(); s...
274a47fefb5958f3978a13cdceaaae19858c0adf
05e5c9ac229cbd661357a4cc70868998f9f7b54d
/nav2_util/include/nav2_util/motion_model/motion_model.hpp
2b771be56811356dd8ad7d38ace59c53a0a48cc0
[]
no_license
artivis/navigation2
d85a2f058ad6b8212a30f467f695a4c1707935b0
5c0dfbe7a49cdc91a0db893ae5e1fb0e1bc84e6d
refs/heads/master
2020-07-08T08:40:53.187483
2019-08-21T03:06:16
2019-08-21T03:06:16
203,621,873
1
0
null
2019-08-21T16:19:29
2019-08-21T16:19:28
null
UTF-8
C++
false
false
1,864
hpp
motion_model.hpp
// Copyright (c) 2018 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
49b7687fe2e4b480155f25d9bac6af48c7c95f8b
9ac084b847374e4752aa468a1eb87f7a293730cf
/main/main/Apteryx_owenii.h
825adf4f82b26d5b949a25cbdcf906cf5328c9bc
[]
no_license
Bainbetova/Birds_OOP
bebf0697cb1d6108b00fd3c5e9bb5cf09944d122
7e49ad64d892d7183239510d9f3bf72e4d547ed3
refs/heads/master
2022-09-04T19:39:31.183623
2020-05-09T16:31:29
2020-05-09T16:31:29
262,611,627
0
0
null
null
null
null
WINDOWS-1251
C++
false
false
376
h
Apteryx_owenii.h
#ifndef Apteryx_owenii_h #define Apteryx_owenii_h #include "Apterygiformes.h" class Apteryx_owenii : public Apterygiformes { public: /* Конструктор */ Apteryx_owenii() {} /* Метод */ void voice(); /*Свойства*/ double get_weight() const; double get_size_egg() const; void print(); char * type() const;...
fe6ecf1cc7895bbc6f1179df3a095ffaea3d8b31
a65ade13b64bd3b969aef229c2f5ae6162b2933f
/CoreSystem/GUI/CDXUTIconListBox.h
ccfecf8c1c1a2b8346c62683dafc03bbc19143dc
[]
no_license
jiowchern/fdo
a29eb161ff2672801c9dc51a06d15687790c0f76
84cf1386bb8d238954013734b081f9ac8afc423f
refs/heads/master
2022-07-20T17:41:10.802133
2019-09-24T19:20:40
2019-09-24T19:20:40
210,220,229
0
0
null
null
null
null
BIG5
C++
false
false
6,931
h
CDXUTIconListBox.h
/******************************************************************************* Copyright 2006 by DYNASTY international Co., Ltd. All rights reserved. This software is the confidential and proprietary information of DYNASTY international Co., Ltd. ('Confidential Information'). You shall not disclose such Confid...
83ec4600e97c58c9592d14abcb56dce7cea33fd0
bc6430c488a225a2796b50632cd4a88395777a76
/EagleEye/OptionDialog.h
b36b9a42bb4049badd661e36a2588a128ca339d8
[]
no_license
shflyeagle/EagleEye
5f312eaaf9a8a4e2bf5786a38d4f3d6d690d71b7
98b3b802a572ad81bc346905dfdf8396a8189912
refs/heads/master
2020-05-07T08:33:53.684195
2019-04-10T07:53:56
2019-04-10T07:53:56
180,328,573
0
0
null
null
null
null
UTF-8
C++
false
false
1,104
h
OptionDialog.h
#pragma once #include "EeCommon.h" #include "ui_EeOption.h" enum { OPTION_ITEM_GEN, OPTION_ITEM_OTHER, OPTION_ITEM_MAX, }; class OptionDialog : public QDialog, public Ui_optionDialog { Q_OBJECT; public: OptionDialog(QWidget *parent); ~OptionDialog(); public: quint16 getStrucType() const; quint16 getBw() co...
27e63ac4671da10e290fcf334cd0e6d6dd581cb9
224644e64311e1d13fd63459c961192d48497fe4
/ProjectEuler/ProjectEuler/Utils/List.h
dcaa7742e88c1f89775ebaf4f09e3f2d8ca93b99
[]
no_license
SirApropos/Projects
4347277f77eefe13e0eea1a8142fb91d7c9b0c50
6d8d6a473db24d6eb5b42ac84add8cb7e5b93246
refs/heads/master
2021-01-20T11:32:07.058965
2014-10-10T20:01:09
2014-10-10T20:01:09
1,198,583
0
0
null
null
null
null
UTF-8
C++
false
false
3,673
h
List.h
#pragma once #include <functional> #include <iostream> #include <string> #ifndef ListDef #define ListDef template<class T> class List { private: T * contents; int index; int curSize; void scaleUp(){ curSize = (int)(curSize * 1.5 + 1); copyToScale(); } void scaleDown(){ curSize = (int)((curSize - 1) * (2.0/3...
de5df9b7ad97a98c0841c9fa0eb298f153e2be98
b1f04c4f1e00f6efb78f2ce62b8735ee16bfb529
/A2OJ/A/059. Football.cpp
f3e5f23c2c302faf4fc69404380adc2dd3a9bdac
[]
no_license
hardikhere/competitive-programming
b2843737837d6dbff7570f4f29ef9329472abe92
0af7a77dde5a6e60319ff8b55ecba662d643ebeb
refs/heads/master
2022-12-21T12:54:27.353378
2020-10-01T15:19:13
2020-10-01T15:19:13
300,214,588
3
1
null
2020-10-01T09:03:27
2020-10-01T09:03:26
null
UTF-8
C++
false
false
553
cpp
059. Football.cpp
#include <bits/stdc++.h> #define lli long long int #define endl "\n" using namespace std; int main() { int n; cin>>n; string data; string t1,t2 = "kotahriji"; vector <string> v1; for(int i=0; i<n; i++) { cin>>data; if(i == 0) t1 = data; if(t1 != data) ...
a28e2c7d010e35240795bf10909f3d881906f9ab
0eeaf1e3aaab20e799bce4df7712d5a4ff7869e1
/theLoops_2.cpp
966d112b1d8ac689fe6b29a69a91e44ffeb141b6
[]
no_license
roneetkumar/cpp-things
8ce277888a224d8b7b5ac055ace44fcebab172af
8e28505db80c526a6c72c7198dafda74f6f543ee
refs/heads/master
2020-04-25T06:00:56.566687
2019-12-12T03:39:37
2019-12-12T03:39:37
172,563,721
0
0
null
null
null
null
UTF-8
C++
false
false
1,573
cpp
theLoops_2.cpp
#include <iostream> using namespace std; int main() { // variable declaration short noOfStudent; float grade = 0, total = 0, bestGrade = 0, worstGrade = 100; // printing college name cout << "\t\tCollege Lassale\n"; cout << "\t\t---------------\n"; // "do while" loop to enter no of studen...
9758dbf9964c8e586db92f1df7a61c4f979424bc
6ca0e27edfb1243e31fbca299cbfbe4f902edb65
/src/KinectConfig.h
4208af586df9771095e66137eb6a6bfc13fba4d7
[ "Apache-2.0" ]
permissive
fusefactory/ofxDepthKinectV2Streaming
5a22a496c241c5b4cef1e7aaa148288009c7b300
9a479f10cc81e90d638ed9e014fe8d3ce2bcffc9
refs/heads/master
2020-05-01T00:28:09.645213
2020-02-18T10:37:10
2020-02-18T10:37:10
177,168,661
2
0
null
null
null
null
UTF-8
C++
false
false
453
h
KinectConfig.h
// // Header.h // Dokk // // Created by Paolo Bonacini on 07/12/16. // // #ifndef KinectConfig_h #define KinectConfig_h #include <stdio.h> #include <string> class KinectConfig { public: std::string serverAddress; int port; int minDistance, maxDistance; int leftMargin, rightMargin, topMargin, ...
6a08ea867c5dc3453944afc9ae27dbce994d7adc
f9594069b146644f1f2657a8de4483db02799694
/Background.cpp
33bda8af77d88d39194425232017f1eed5f373b1
[]
no_license
sugarfig/Wish-Solitaire-EC
1aaaf151a97069ea21b45ecbd80650f37562c443
d20c0f3c9dc2dbd55ce8a3baa4223a33c159cb09
refs/heads/main
2023-03-27T18:11:03.436970
2021-04-02T01:50:20
2021-04-02T01:50:20
353,874,130
1
0
null
null
null
null
UTF-8
C++
false
false
197
cpp
Background.cpp
// // Created by Erica on 9/24/2020. // #include "Background.h" Background::Background() { setSize({150.f, 250.f}); //Author: Erica Carballo setFillColor(sf::Color::White); }
4d369c023a1e479a2e13ec36ed9fbb181e2ab1de
31a97191e9583f367d7b992aefd54a84417b6e89
/ctdl/bieuthucdungdainhat.cpp
1fd3621073b69d6c84e8b53ad0a06780e20b185b
[]
no_license
Keybinhoainam/codecpp
97200e0f585d46724ac4a02b2647d16e7c305715
7f5c00cc4299b0122878c8550caa7a49d01ddcf9
refs/heads/main
2023-07-13T17:10:44.983890
2021-08-24T14:22:57
2021-08-24T14:22:57
null
0
0
null
null
null
null
UTF-8
C++
false
false
533
cpp
bieuthucdungdainhat.cpp
#include<bits/stdc++.h> using namespace std; int main() { int T; cin>>T; while(T--) { string s; cin>>s; int n=s.length(); stack<int>a; a.push(-1); for(int i=0;i<s.length();i++) { if(s[i]=='(')a.push(i); if(s[i]==')') { if(a.top()<n&&a.top()!=-1)a.pop(); else { a.push(i+n); ...
86ee18f96157548931c48163fc334ef77ae0c797
ac610d807abbb5df761803bf97da987ad4605e3b
/src/client.cpp
fbccaa196071bf71d8299b240cfd27fa30f15282
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
dnnr/herbstluftwm
4f2e20a1a79619333f3addf4454a5057ee15c015
3bed77ed53c11d0f07d591feb0ef29bb4e741b51
refs/heads/winterbreeze
2023-03-17T00:43:16.220514
2019-04-22T09:12:48
2019-04-22T09:12:48
56,521,901
1
0
NOASSERTION
2020-05-03T14:37:42
2016-04-18T15:59:59
C++
UTF-8
C++
false
false
22,343
cpp
client.cpp
#include "client.h" #include <X11/Xlib.h> #include <X11/Xutil.h> #include <cstdio> #include <cstdlib> #include <cstring> #include <sstream> #include "clientmanager.h" #include "decoration.h" #include "ewmh.h" #include "globals.h" #include "hook.h" #include "ipc-protocol.h" #include "keymanager.h" #include "layout.h" ...
1157ebf744ea4d20b5583a02ef75f563afe34f2f
c2432fecf3cc2a9a0412fcc9ec91a21fcd539d49
/Paint3D-master/torus_gl.h
35332e1af4eec8ae19d848c042a273c6beac61bd
[]
no_license
buichidunggithub/Computer-Graphics-Lab
860231099e54ae7aaaf147c73aabc2ffb34bfdd4
5a5f235e2e6dfbea6b25b7fbf084f50a1b7e47c3
refs/heads/master
2022-12-21T14:49:34.026477
2020-09-21T07:01:08
2020-09-21T07:01:08
297,242,738
1
0
null
null
null
null
UTF-8
C++
false
false
210
h
torus_gl.h
#ifndef TORUS_GL_H #define TORUS_GL_H #include "polygon_gl.h" class TorusGL : public PolygonGL { private: GLfloat innerR, outerR, slices, stacks; public: TorusGL(); ~TorusGL(); void render(); }; #endif
b1ecbded1fe3f8bc95572fe84dbd8044b426cf06
887f3a72757ff8f691c1481618944b727d4d9ff5
/gears/base/common/png_utils.cc
12897b1c912c0c363eddc9cd0ee8eb11287686d8
[ "LicenseRef-scancode-warranty-disclaimer", "BSD-2-Clause" ]
permissive
zied-ellouze/gears
329f754f7f9e9baa3afbbd652e7893a82b5013d1
d3da1ed772ed5ae9b82f46f9ecafeb67070d6899
refs/heads/master
2020-04-05T08:27:05.806590
2015-09-03T13:07:39
2015-09-03T13:07:39
41,813,794
1
0
null
null
null
null
UTF-8
C++
false
false
19,936
cc
png_utils.cc
// Copyright 2007, Google Inc. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, // this list of conditions and the following discl...
8f208ba0d80ccac44cc0648b11940854446f455e
2751e1ce452366f1bd1e94444d0eb2c19d273770
/.src/engine.cpp
c8c378491a69d4fa1cfd997ba91b116ff123a926
[ "MIT" ]
permissive
Danduriel/rocky2
09f0893038449f46b9d78d4ff09e49528f188789
1a4441957c00de5f0f457a452398b68a00c9bea4
refs/heads/master
2020-06-11T13:40:13.021229
2017-01-26T13:21:20
2017-01-26T13:21:20
75,654,017
0
0
null
null
null
null
UTF-8
C++
false
false
494
cpp
engine.cpp
#include "engine.h" #include <stdio.h> engine::engine() { //ctor } engine::~engine() { //dtor } void engine::init(){} void engine::cleanup() { while(!states.empty() ) { states.back()->cleanup(); states.pop_back(); } std::printf("debug: engine::cleanup"); } void engine::changeS...
50cc4552e6ad203754bd6e63b8fb271c686a4b59
f1d0f38a1a3f8e0b5265b731fd5aa9f1111630c2
/source/MLambertDiffuse.h
8e9705a194456a082b5d6f4a30d7e0da2877d95f
[ "MIT" ]
permissive
Kair0z/Custom-Rasterizer
9c6fd06c5828145b41fcc04ddc8eaf7bf7678a7b
f83c636c29b85e12cc3c1c85b25a0bc2da2eaf84
refs/heads/main
2023-01-04T16:51:41.763195
2020-10-29T08:16:05
2020-10-29T08:16:05
304,494,660
0
0
null
null
null
null
UTF-8
C++
false
false
599
h
MLambertDiffuse.h
#pragma once #include "Material.h" #include "Texture.h" #include "Map.h" class MLambertDiffuse : public Material { public: MLambertDiffuse( Texture* pDiffusemap, NormalMap* pNormalmap); virtual RGBColor Shade( const Pixel_Info& pixelInfo, const FPoint3& camPos, const std::vector<Light*>& pLights) const...
7488d53b3699bdab087f50cf68d65c6fc1c5e804
680ef2d2b5ca0660877f56ee33ae64bd08335d63
/main.cpp
405b39f9f882b421c8ffb3717991340cd1ff0004
[ "MIT" ]
permissive
hnkr/Chat_Server
97d7245435d549f19d0dc1ebcc6aeea3d8c7ac08
8d4b57c62e5ab949512c3df0d534e595a9d17dec
refs/heads/master
2020-12-10T20:25:51.239327
2020-01-20T21:49:34
2020-01-20T21:49:34
233,702,289
0
0
null
null
null
null
UTF-8
C++
false
false
1,027
cpp
main.cpp
/** * main.cpp * Hunkar Ciplak, hunkarciplak@hotmail.com */ #include "server_sock.hpp" #include <iostream> #include <thread> int main(void) { std::cout << "TCP Server" << std::endl; ServerSocket serv; //create the object SERVER_SOCK_INFO_T server_config; //to configure the socket, if you don't want ...
09e837934407ca5acf3c0f5affc80c6bded2afaa
30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a
/contest/1542574697.cpp
d7e0f4e85160f1722191542b47253e387a383a00
[]
no_license
thegamer1907/Code_Analysis
0a2bb97a9fb5faf01d983c223d9715eb419b7519
48079e399321b585efc8a2c6a84c25e2e7a22a61
refs/heads/master
2020-05-27T01:20:55.921937
2019-11-20T11:15:11
2019-11-20T11:15:11
188,403,594
2
1
null
null
null
null
UTF-8
C++
false
false
2,642
cpp
1542574697.cpp
#include <iostream> #include <cstdio> #include <algorithm> #include <cmath> #include <cstdlib> #include <vector> #include <set> #include <map> #include <cassert> #include <queue> #include <ctime> #include <string> #include <cstring> #include <random> #define mp make_pair #define pb push_back #define NAME "" #define y1 ...
dce19c2809c85ac8c865c398493dbf472f2f17d8
f23e8f4986f9eb48ef50f47378ee1fa7dddf8992
/L's Meal/Solution.cpp
9d43139a416451943072b3ad7f8123be8a1959ed
[]
no_license
rishup132/Problem-by-Me
2c13829e69ab79ea59c36e1675b40a6f1ecd0dc0
791cfff4222bbbfd805dbb9a65a547363a42cf1e
refs/heads/master
2020-04-24T15:34:47.076513
2019-02-22T18:21:49
2019-02-22T18:21:49
172,073,496
0
0
null
null
null
null
UTF-8
C++
false
false
847
cpp
Solution.cpp
#include <bits/stdc++.h> #define int long long #define endl "\n" using namespace std; int32_t main() { string s; cin >> s; int n = s.size(); for(int i=0;i<n;i++) assert(s[i] == 'p' || s[i] == 'c'); int c1,c2; for(int i=0;i<n;i++) { if(s[i] == 'c') { ...
a3bf9ccba9001b962ce3681340c1f623b985b6fa
64349ee89256e1409b8e0bd54c9fe75ba29ecc00
/ballclepsydra.h
e64a5d02b6f0a408a6e262548877ab98547250e2
[]
no_license
cristo92/Kulki
0672fc2b86423759332c30582d0da1d6d7332bc1
fc9436179100160d49c42b471bc9445dc7e95dc8
refs/heads/master
2020-05-16T01:06:07.450371
2013-09-26T01:09:54
2013-09-26T01:09:54
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,056
h
ballclepsydra.h
#ifndef BALLCLEPSYDRA_H #define BALLCLEPSYDRA_H #include <QtGui> #include "ball.h" class BallClepsydra : public Ball { Q_OBJECT public: explicit BallClepsydra(qreal x, qreal y, qreal w, qreal h, int myColor, int points = 0): Ball(x,y,w,h,myColor){index=5;} ~BallClepsydra(){} bool compareColorWithoutRe...
40ada76c92e6db3864c8dac5411cf820f848edf7
9147d996104c52695fbaacb7a50e4af6875ee714
/src/MetaOut.h
2d78cdf3e5ff95b432946b7d92837997ecfcf4c9
[]
no_license
whatdoineed2do/audiotag
c0a90db70e33459bc1095ff2e2e939269fe32374
d7044daf86acd9544032aa88f09e73f70bdc0f9e
refs/heads/master
2023-07-21T16:07:27.513397
2023-07-11T13:32:28
2023-07-11T17:30:09
95,975,314
2
0
null
2018-07-04T17:17:20
2017-07-01T16:24:52
C++
UTF-8
C++
false
false
1,026
h
MetaOut.h
#ifndef AUDIOTAG_META_OUT_H #define AUDIOTAG_META_OUT_H #include "../config.h" #include <iosfwd> namespace TagLib { class Tag; class String; }; namespace AudioTag { class Meta; class File; /* different output formats */ class MetaOut { public: MetaOut() = default; virtual ~MetaOut() = defa...
34abe34e1a9694cdffa3bc456ec41b51abd21b1a
b2f9dbe762d7e67982ffbfa826e64140f34974b0
/debug/moc_player.cpp
2ab8b43e617dde9f853431d811f7c0c7022101ea
[]
no_license
feofan2004/motivator
03a46ad8aae6eecde86fcbd4a51d75027a3b9d23
ba4ae8eade415cc927d2e77d75fccbd282b15729
refs/heads/master
2021-09-01T05:44:22.065413
2017-12-25T05:58:27
2017-12-25T05:58:27
106,211,014
0
0
null
null
null
null
UTF-8
C++
false
false
5,063
cpp
moc_player.cpp
/**************************************************************************** ** Meta object code from reading C++ file 'player.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.2.1) ** ** WARNING! All changes made in this file will be lost! **************************************************************...
7658a1fabc980a06669426aebfc7729ce091c024
167c6226bc77c5daaedab007dfdad4377f588ef4
/cpp/ql/test/library-tests/dataflow/smart-pointers-taint/test.cpp
8d0dd6b1220014ec6730b1e2234f34d9786833e2
[ "LicenseRef-scancode-public-domain", "MIT" ]
permissive
github/codeql
1eebb449a34f774db9e881b52cb8f7a1b1a53612
d109637e2d7ab3b819812eb960c05cb31d9d2168
refs/heads/main
2023-08-20T11:32:39.162059
2023-08-18T14:33:32
2023-08-18T14:33:32
143,040,428
5,987
1,363
MIT
2023-09-14T19:36:50
2018-07-31T16:35:51
CodeQL
UTF-8
C++
false
false
969
cpp
test.cpp
#include "memory.h" int source(); void sink(int); void test_unique_ptr_int() { std::unique_ptr<int> p1(new int(source())); std::unique_ptr<int> p2 = std::make_unique<int>(source()); sink(*p1); // $ ir MISSING: ast sink(*p2); // $ ast ir } struct A { int x, y; A(int x, int y) : x(x), y(y) {} }; void test_un...
11ec7acfcdf4f8f7af2f2a4298132796699fd97e
4ab5967ec7beee82c76943a47bdafb14df673ba0
/综合实验5/Dlgseek.cpp
6e7082f48c95015a437fce4f127464678fa3ea26
[]
no_license
my697020/objProject
29556faf4669740d58b800262edf8ed4375885ef
b0c1f78dada5bfc8020f245ff3d893768c51439c
refs/heads/master
2022-11-18T01:33:21.399435
2020-07-10T11:32:34
2020-07-10T11:32:34
259,626,589
0
0
null
null
null
null
GB18030
C++
false
false
561
cpp
Dlgseek.cpp
// Dlgseek.cpp : 实现文件 // #include "stdafx.h" #include "综合总实验.h" #include "Dlgseek.h" #include "afxdialogex.h" // Dlgseek 对话框 IMPLEMENT_DYNAMIC(Dlgseek, CDialogEx) Dlgseek::Dlgseek(CWnd* pParent /*=NULL*/) : CDialogEx(IDD_DIALOG2, pParent) , seek(_T("")) { } Dlgseek::~Dlgseek() { } void...
3b448641fad535912e35bc0a4882204c3639a196
e029a0aeaad3ff2e00b7f1d918ad3e741173db27
/common/cpp/examples/p4ptracker_walkthrough.cpp
565e4fd9257d63e133429903214b3e05b7e1d261
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
Yale-LANS/ALTO
dcb32b51f1f3160da611451570f8ae16ea90d511
63569ab160e825880c3e759cc2887b0ccbb3d3fb
refs/heads/master
2020-04-15T01:02:44.063295
2012-11-29T18:20:27
2012-11-29T18:20:27
6,914,067
1
2
null
null
null
null
UTF-8
C++
false
false
21,599
cpp
p4ptracker_walkthrough.cpp
/* * Copyright (c) 2008,2009, Yale Laboratory of Networked Systems * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright...
f19da1f702b7ec0e860478df7cc9868b62b840f8
740dfb6555f56969422015c7729e89e5398bff9a
/stactiverecord/cud_property_register.h
8f68bdcdcc0172f3994f30eb374081a339e05a22
[ "MIT" ]
permissive
janmejay/StactiveRecord
0bb6ecb26ad7b2a02ac39d54a06e4ad91aea238b
a0099167c55496d12a4c21ca2a13ef986352338b
refs/heads/master
2021-01-17T04:22:49.595686
2013-04-24T07:59:14
2013-04-24T07:59:14
9,642,322
1
0
null
null
null
null
UTF-8
C++
false
false
2,905
h
cud_property_register.h
/* Copyright (C) 2007 Butterfat, LLC (http://butterfat.net) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge...
4bb2d5e22f316e622f6d59b7bdfb96e71709e3ad
17f9fe697ccce6abc662b7a170ab9777dd600f3f
/GameObject.hpp
56f2bf8211b17e026a84bf840c3e09a1d2f781c4
[]
no_license
mackowiakw/SnakeGame
bbb936ddb2ea64dda7c4d71c9d2d4463de5809cf
a53fa9db8bf09df4b11f11571223106c89e15558
refs/heads/master
2020-09-27T03:51:49.086665
2020-09-08T21:40:27
2020-09-08T21:40:27
225,241,453
0
0
null
null
null
null
UTF-8
C++
false
false
387
hpp
GameObject.hpp
#pragma once #include <SFML\Graphics.hpp> #include "Game.hpp" namespace wm { // pure virtual generic GameObject class // contains virtual function: // --void draw(sf::RenderWindow&) = 0 // --sf::Vector2i getPosition() const = 0 // class GameObject : protected Game { public: virtual void draw(sf::RenderWindo...
7a226892e3e058bb5739fdd5313283098d025e00
54e7f9d751a353aa759c8b1f51de2e882da3a604
/singlelightningrod.h
1ed90929e3f395a7594d2c2c8e79076377f9f79e
[]
no_license
dani1chumaev/lightningProtection
80c5aa913cd7c588138adc2ff342d2063bd40440
fef5a199412a352bc3e126f12b3e68bbb2005852
refs/heads/master
2023-04-27T12:58:26.595622
2020-12-26T11:15:14
2020-12-26T11:15:14
320,047,439
0
0
null
null
null
null
UTF-8
C++
false
false
2,200
h
singlelightningrod.h
#ifndef SINGLELIGHTNINGROD_H #define SINGLELIGHTNINGROD_H class singleLightningRod { public: singleLightningRod(); // [h] полная высота молниеотвода для зоны A (не болше 150 м) м double fullHeightA (double hx, double Rx); // [h] полная высота молниеотвода для зоны B (не болше 150 м) м double full...
fdb4713d68f042ee282896b040603bce4d7f25ef
fa27992aedbc12c291f688de6d4ebdb8da6c59a7
/OJ/1028/1028.cpp
9d4df7fe3481fc8332b37dac4b882d9ff208ca42
[]
no_license
mooooonlight/HelloWord
e1f3863d3184b6dc85184b0ba9b472e022071c66
414969a8bd049290d9a915afdb53203669a324c6
refs/heads/master
2020-09-25T11:59:45.307506
2017-09-28T02:17:06
2017-09-28T02:17:06
66,868,584
0
0
null
null
null
null
UTF-8
C++
false
false
1,708
cpp
1028.cpp
#include<iostream> #include<cmath> #include<string> #include<sstream> #include<stack> using namespace std; typedef unsigned int uint32_t; int main() { string cur_str = "http://www.acm.org/"; string line_data; string cmd; string real_data; stringstream ss; stack<string> forward_stack; stac...
57695086be0797d129ce4ae343cfd4e5c1cbd3ce
3821e537c0e03e602ba4ac770dcce0d741d026a7
/LightOJ/1168(Wishing Snake).cpp
3b6b0d9b9a5107fa1768eed3df8293cf2de329f0
[]
no_license
msyashik/CPPS
6766992e40c30f112d959b5c57e1af5487d885a9
ae163a3a75dade8bc51f566ae529ea4f9075db97
refs/heads/master
2023-07-13T00:08:32.465275
2021-08-22T02:41:23
2021-08-22T02:41:23
161,633,625
0
0
null
null
null
null
UTF-8
C++
false
false
2,569
cpp
1168(Wishing Snake).cpp
#include <bits/stdc++.h> using namespace std; #define ll long long #define IOS ios_base :: sync_with_stdio(0);cin.tie(0);cout.tie(0); #define endl '\n' //SCC vector<int>v[10005], rev[10005], sg[10005]; stack<int>s; bool vis[10005]; int comp[10005], val = 0, flag = 0, total = 0; void dfs(int node) { vis[node] = 1...
ee1a7656fb4902ec839c94f8002d9b2871da6d5e
4bcde03c391660a530221d58752544a427d3c224
/examples/MonteCarlo.cpp
7257073dba829ca19f4dd00f081f4e34676a2767
[]
no_license
Zandry/ParallelSTL
f18ad6a0c65169b2d8fbec3257549b12f132607c
364c54d57b8bac53e53689f4af0e106a2c9ad62b
refs/heads/master
2021-01-11T11:17:02.165206
2016-02-18T17:01:58
2016-02-18T17:01:58
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,525
cpp
MonteCarlo.cpp
#include <vector> #include <random> #include <limits> #include <iostream> #include <chrono> #include <experimental/algorithm> #include <experimental/numeric> using namespace std; double test_pi() { thread_local static random_device rd; constexpr unsigned samples = 10000; mt19937_64 gen(rd()); uniform_real_dis...
93fdc8b706be1e890905722098178f6cee056fea
2f2ece30e6314a830a6f4583a3f3ed59fa8354ff
/sim/missions/sim_ObjectiveDefend.cpp
fe5d1a991d02c87b20835b35567fe75002614298
[ "MIT" ]
permissive
radarEnforced/fsg
fdffc5cbaba96557cf04667a31d4bcad04f8cc2b
7825785bbf46a367b3daf1beb32b727c58e85e46
refs/heads/master
2020-09-22T07:06:04.372723
2019-11-30T06:31:30
2019-11-30T06:31:30
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,938
cpp
sim_ObjectiveDefend.cpp
/****************************************************************************//* * Copyright (C) 2019 Marek M. Cel * * 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, ...
da8a6ea2274a4963b27e20627b982694e3a794e2
7223462dfdefd0b125a5d51d8a29200a00bd7bf2
/src/libcsg/topology.cc
70b7506eb872e8ca513ea79d3011ea6be5dfc1d5
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
jinghu32/csg
64d186b208872ee5424f21008438b08534aab50b
05f7d2a2f41d9fb95f55a81a56ceda218687b8ef
refs/heads/master
2020-04-08T01:51:26.151149
2018-11-02T11:59:56
2018-11-02T11:59:56
null
0
0
null
null
null
null
UTF-8
C++
false
false
10,743
cc
topology.cc
/* * Copyright 2009-2011 The VOTCA Development Team (http://www.votca.org) * * 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 * * Unl...
85b100be7d446b99cff0bbd292a43542136260ba
01a40324185e2ea33f90b1e577d74f065470e7fa
/ZEngine/ZEngine/Extract.cpp
b3b29f665d17ceea490fba3942488a9c9f85f423
[]
no_license
zhaobolin/PDF
945db1265f3c6f20b2b8bf24924567b0f6e9195b
108896d30ada5705ec11cb1fd29d1ca4de699c35
refs/heads/master
2020-04-28T16:29:50.945240
2019-05-21T11:00:37
2019-05-21T11:00:37
175,413,322
0
1
null
null
null
null
GB18030
C++
false
false
3,604
cpp
Extract.cpp
#include "Extract.h" Extract::Extract(void) { } Extract::~Extract(void) { } void Extract::GetStructureFromPDF(char* input) { fz_context *ctx; fz_document *doc; fz_page *page; fz_rect rect; fz_matrix ctm; fz_device* dev; fz_pixmap *pix; struct zblrouteset *getline=(struct zblrouteset *)malloc(sizeof(struct ...
a1e742dda595611d535a9c69b9332eef7b859014
3d74f759ee48d383aa82eeff0a55864a93a001ba
/shell/common/display_manager.h
ae3e9d0a5607eac7f8992ef3c0f85249893c1050
[ "BSD-3-Clause" ]
permissive
flutter/engine
78be5418a9b2f7730dda9ca9fcb25b7055f3da85
902ece7f89d7730cc69f35e098b223cbbf4e25f1
refs/heads/main
2023-09-04T06:12:34.462953
2023-09-04T05:33:32
2023-09-04T05:33:32
39,211,337
7,090
6,862
BSD-3-Clause
2023-09-14T21:58:17
2015-07-16T17:39:56
C++
UTF-8
C++
false
false
1,189
h
display_manager.h
// Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef FLUTTER_SHELL_COMMON_DISPLAY_MANAGER_H_ #define FLUTTER_SHELL_COMMON_DISPLAY_MANAGER_H_ #include <mutex> #include <vector> #include "flutter/shel...
aded1af301d806d35b17b676fcb1ec908e8f9f1d
45716a35c9fa862145b20e68b47a3187bbfbfb81
/src/pks/flow/overland_pressure/overland_pressure_water_content_evaluator.cc
759c3697b2077b4d52aa3a4b29248ec9af44b3e7
[ "BSD-3-Clause" ]
permissive
ddwivedi08/ats
3c5f3e69797ddcd07110a4c80c47581034c28a2f
932aba910b977e86121942cd24f2059f0b6bee65
refs/heads/master
2021-01-19T14:53:40.104447
2017-04-06T01:16:22
2017-04-06T01:16:22
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,865
cc
overland_pressure_water_content_evaluator.cc
/* -*- mode: c++; c-default-style: "google"; indent-tabs-mode: nil -*- */ /* Evaluator for determining height( rho, head ) Authors: Ethan Coon (ecoon@lanl.gov) */ #include "overland_pressure_water_content_evaluator.hh" namespace Amanzi { namespace Flow { namespace FlowRelations { OverlandPressureWaterContent...
6e02d3544b8fec456633389f905de2792324456b
a0ad3fdf6600002200210f45fcbefab7a232ba70
/tests/test.cc
4c367aa69d6a1a593748fda5cbbf699bba055fe9
[]
no_license
Noyce765103/chaos
e7cdad8fb06847829e03bd07aba3fb002d596191
5caa0766f4d5d54157fe0adbc5170ba681c4296b
refs/heads/master
2023-02-19T14:36:56.508327
2021-01-25T10:17:32
2021-01-25T10:17:32
332,372,610
0
0
null
null
null
null
UTF-8
C++
false
false
558
cc
test.cc
#include <iostream> #include "../chaos/log.h" #include "../chaos/util.h" int main(int argc, char** argv){ chaos::Logger::ptr logger(new chaos::Logger); logger->addAppender(chaos::LogAppender::ptr(new chaos::StdoutLogAppender)); //chaos::LogEvent::ptr event(new chaos::LogEvent(logger, logger->getLevel(), __F...
441e63262b7a2cfd49ea2a828af9677a720b0fbf
04d6b4e47a104c63b014fe726c576a1e06488696
/old/DesignDyn/femlib/include/Timer.hpp
090d3dfb392cd5c5295aca3018d3c33a987282ec
[]
no_license
desaic/Thesis
6c2c001bbaa03096491ad5e2d416988cfd044502
014f5bb25359ab4d59f589fb3805d65fd155af18
refs/heads/master
2021-09-11T16:48:52.758386
2018-04-09T21:43:24
2018-04-09T21:43:24
10,670,588
7
0
null
null
null
null
UTF-8
C++
false
false
261
hpp
Timer.hpp
#ifndef TIMER_HPP #define TIMER_HPP #include <ctime> class Timer { public: Timer(); void start(); ///@return -1 if overflow happened int end(); float getSeconds(); float getMilliseconds(); clock_t getClocks(); private: clock_t t0, t1; }; #endif
4dbc87a2378413584319e551ed7946ea691fef0a
da84991636b667bb4dc9990e662b776126159eff
/John Conway's Life/MySDLFunctions.h
e133abc1acc3ca025f19b06b26c8a83ad3c1c5f8
[]
no_license
malstad/strogconwayslife
8884abf04d392ed781b517bbedeb5631dc6333e7
6e1a7e74856ee80d3ad4de95f728938e3a0fc562
refs/heads/master
2020-12-24T15:58:15.374592
2010-12-10T21:10:10
2010-12-10T21:10:10
32,192,090
0
0
null
null
null
null
UTF-8
C++
false
false
351
h
MySDLFunctions.h
#ifndef MYSDLFUNCTIONS_H #define MYSDLFUNCTIONS_H #include <iostream> #include "SDL.h" #include "SDL_image.h" bool initSDL(); SDL_Surface* loadImage(std::string sFileName, SDL_Color* key); SDL_Surface* loadFile(std::string fileName); void applySurface(int x, int y, SDL_Surface* source, SDL_Surface* destinat...
f920e199e2dabb540271037d3846d9a63f48d073
6e0bba1e526026505698c078d6a5e48395552b4e
/include/exceptions/IllegalStateException.h
b934721f78efd1e63eb7ad44a444731ba4f56d15
[]
no_license
swbrenneis/CryptoKitty_macos
1731c4ebd9cac4d4ced37029c9af98582203b0eb
6552f97c9bee40189d4e34b18d52b2b4756a3b1b
refs/heads/master
2021-01-21T18:49:56.578170
2017-07-17T15:13:15
2017-07-17T15:13:15
92,084,898
2
1
null
2020-05-27T20:19:01
2017-05-22T18:15:23
C++
UTF-8
C++
false
false
607
h
IllegalStateException.h
#ifndef ILLEGALSTATEEXCEPTION_H_INCLUDED #define ILLEGALSTATEEXCEPTION_H_INCLUDED #include "Exception.h" namespace CK { class IllegalStateException : public Exception { protected: IllegalStateException() {} public: IllegalStateException(const std::string& msg) : Exception(msg) {} Il...
2241c3f93dcf44a68b1507b47c6a0819f57cb671
f0edb459c9cb293eaaabd679303a2234a640f3f8
/server/cpp/ChessGameManager.h
992564d5b6ebda1388369d3deaf3deb7300820fe
[]
no_license
arasmussen/chess
ae4bd8b70b521ff3d76d3ee8baca6b7bcb43499f
f22875f412e38dc4ca90e2bd172d2f8c26518c71
refs/heads/master
2020-06-09T02:16:19.970125
2013-02-03T03:08:47
2013-02-03T03:15:50
5,801,207
0
2
null
null
null
null
UTF-8
C++
false
false
443
h
ChessGameManager.h
#ifndef __CHESSGAME_MANAGER_H_ #define __CHESSGAME_MANAGER_H_ #include <vector> #include <pthread.h> #include <string> using namespace std; class ChessGame; class ChessGameManager { public: ChessGameManager(); ~ChessGameManager(); void startGame(const string & whiteAlgorithm,const string& blackAlgorit...
e279bee16e945e6a033ce7bd81fc251a610cc399
21c0a8588978cf4ecc31d827d4e5b778401f9eee
/uva/471.cpp
cc5dd82cfffab2594f55daa5d37c2b260117d263
[ "MIT" ]
permissive
cosmicray001/Online_judge_Solutions
c082faa9cc8c9448fa7be8504a150a822d0d5b8a
5dc6f90d3848eb192e6edea8e8c731f41a1761dd
refs/heads/master
2022-03-01T12:35:28.985743
2022-02-07T10:29:16
2022-02-07T10:29:16
116,611,495
3
1
null
null
null
null
UTF-8
C++
false
false
817
cpp
471.cpp
#include <bits/stdc++.h> #define ll long long int using namespace std; bool f; bool fnc(ll a, ll b){ int arr[12]; for(int i = 0; i < 12; arr[i] = 0, i++); ll temp = a; for(; temp > 0; temp /= 10){ int re = (int)(temp % 10); arr[re]++; if(arr[re] > 1) return false; } for(int i = 0; i < 12; arr[i]...
37fe244fcbb1d0f343e214dad388970d8bc2036a
6316b746cd04ad9651f7a6196e6ec6fabca84d62
/BaseCompiled/test_original.cpp
8c0fa41eec25f97194ca884f1f1eb2d5484ed8f6
[]
no_license
kyriegorrin/TFG_Pi
5a857a8e37fade75c7fe5f57a27c620752b599a3
a995b4108f624bed736979c07ef40e539e471061
refs/heads/master
2020-05-06T14:01:18.298062
2019-09-22T15:47:08
2019-09-22T15:47:08
180,168,875
0
0
null
null
null
null
UTF-8
C++
false
false
5,187
cpp
test_original.cpp
#include "OpenNI.h" #include <iostream> #include <fstream> #include <cstdint> #include <fstream> using namespace openni; int main(){ char buffer[320]; for (int i = 0; i < 320; ++i) buffer[i] = '*'; //......................INICIALITZAR...................// //Inicialitzem dispositiu Status rc = OpenNI::initiali...
e64f8387d17dd3bb1d870ecefa05bed86613506b
0cc6f958f3b1562002edf57d7f5e308437248a7d
/src/game/entity/queen.cpp
d741e11289d062a88e4ccdfd49d5ddfb477946fe
[ "MIT" ]
permissive
asunan9sha/chess
2cde158c356f4154981ef39739e3b53ca33651f9
8851b2d8b7f05e2e96eea67d8dc05cf31f8bd283
refs/heads/main
2023-03-15T16:57:45.881879
2021-03-27T10:25:38
2021-03-27T10:25:38
269,222,710
0
0
null
null
null
null
UTF-8
C++
false
false
1,819
cpp
queen.cpp
#include "queen.hpp" Queen::Queen(PieceType type) : Piece(type, type == PieceType::whiteQueen ? sf::IntRect(200, 0, 200, 200) : sf::IntRect(200, 200, 200, 200)) { isWhite_ = type == PieceType::whiteQueen; } std::vector<vec2> &Queen::getPossibleMoves() { possibleMoves_.clear(); const float spacing = 100.0f; ...
005d5ea61fc179e233181a66a537fd61c37e1c6e
000c3366a24f70d89d00d4c6331cda4e5ec9e95d
/include/Knight.h
4fb7e90e2dd470a206bbcb8158fcf1c916c01ac3
[]
no_license
mikelambucki/chess
a57918bfd93b02e3773845d25a1bc5c51b3719b4
e82edd2de06ec9a5a1ed1e9203298adb14afa211
refs/heads/master
2022-11-06T20:23:24.315063
2020-06-29T16:58:02
2020-06-29T16:58:02
269,805,378
0
0
null
null
null
null
UTF-8
C++
false
false
206
h
Knight.h
#ifndef KNIGHT_H #define KNIGHT_H #include "gamePiece.h" class Knight : public gamePiece { public: Knight(); Knight(int x, int y); virtual void move(int x, int y); }; #endif
a45d4b0e0887cfcc59e9498db577ef1c4a7fdd50
994f30bdc35abf49ed9ba2e5b7ea99f31944e5c4
/sub.cpp
f1f5ced80e95834984709012bcead2672abcb0e5
[]
no_license
dharmikpopat/SubArray
a4cf0410299c5f009817513e32652a83a519e45a
330cd40bf4fa2f7529cc07595b919298c80b8cda
refs/heads/master
2020-03-25T05:12:09.061038
2018-08-03T14:21:35
2018-08-03T14:21:35
143,434,763
0
0
null
null
null
null
UTF-8
C++
false
false
441
cpp
sub.cpp
#include<stdio.h> #include<iostream> using namespace std; int main(){ int a[]={1,2,3,4,5}; int s=sizeof(a); int len=s/4; int temp=len; int x=0,times=0; for(int i=0;i<=temp;i++){ if(x>=temp-1){ break; } else{ int j=0; while(j<=i){ if (times==len && len>=0){ times=0; l...
17cf2f4817d7a8a1b451298a791ad9d06f710629
360036b1009b24aff2524928f01910e166d96ba0
/cpp/prac2/main.cpp
2ea2715dc15f582fd41069814086d307a6ea47dc
[]
no_license
rbkn99/itmo-code
46f560e886330df8bb059e5eea040305affd5fe1
15b96aae37333b47474af042292a2dcc77ac77f7
refs/heads/master
2021-04-15T16:36:54.140346
2018-09-29T12:25:52
2018-09-29T12:25:52
126,409,446
1
0
null
null
null
null
UTF-8
C++
false
false
2,087
cpp
main.cpp
#include <iostream> #include "vector.h" #include <cassert> typedef vector<int> vi; std::string base_str = "7 7 7 "; //test constructors void test1() { vi v1((size_t)3, 7); assert(base_str == v1.to_str()); vi v2(v1); assert(base_str == v2.to_str()); vi v3 = v1; assert(base_str == v1.to_str()...
67341d0ab32d6f1572ac896909d23343d29e22ca
66e6005fa69249ccbe66016610ade84f04a5b2f2
/99-Recover-Binary-Search-Tree.cpp
704d6f0b6162b099ae1ab36a8a098aed03164e36
[]
no_license
Markz2z/Fuck-the-Leetcode
23479d72c928a19352378405f9026e2ca49f2ef0
bba3ed8c6f310b44500fcbb876d01c56e89292d3
refs/heads/master
2020-04-03T20:07:00.386124
2018-03-23T16:28:18
2018-03-23T16:28:18
42,315,226
4
0
null
null
null
null
UTF-8
C++
false
false
957
cpp
99-Recover-Binary-Search-Tree.cpp
/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ public class Solution { private TreeNode wrongNode1 = null; private TreeNode wrongNode2 = null; private TreeNode prevNode = null; ...
90e3c8f50ed4f73d274612532fceeff5a384eb5a
3d611b07ae7156a18ec332a7a4d48e63021b125e
/11228_Transportation_system.cpp
6ba668299bb2a13b412840bce95771c7dc5ec37d
[]
no_license
mmhriyad/uva
33c66b7e9362a55e67988652d9f4bf02639a9226
15ff361413e28e06c362910e2b7db4febccfe1b1
refs/heads/master
2021-01-23T14:51:09.685055
2017-06-16T08:04:15
2017-06-16T08:04:15
42,101,253
0
0
null
null
null
null
UTF-8
C++
false
false
3,807
cpp
11228_Transportation_system.cpp
#include "stdio.h" #include "math.h" #define MAX 1005 #define MAXVAL 200000 int n, r, states; int points[MAX][2], taken_following_nodes[MAX]; double graph[MAX][MAX], min_edges[MAX]; double total_rail, total_roads; bool taken[MAX]; int g_parent = -1, g_child = -1 ; double g_min = MAXVAL; void update_nod...