blob_id
stringlengths
40
40
content_id
stringlengths
40
40
repo_name
stringlengths
5
114
path
stringlengths
5
318
language
stringclasses
5 values
extension
stringclasses
12 values
length_bytes
int64
200
200k
license_type
stringclasses
2 values
content
stringlengths
143
200k
588715d204a4ba9816a73b37cc464a51c47e1e98
ab2ed0a47ca5a4bd0cfaea3e9bfe2829f5293150
ataryq/Hunter_by_shit
/animationplayer.cpp
C++
cpp
1,055
no_license
#include "animationplayer.h" #include "Regs.h" #include <QSize> AnimationPlayer::AnimationPlayer(QObject *parent) : QObject(parent) { ANIM_MOVE = new Aniamtion(150); ANIM_MOVE->AddFrame(":/player/move/img/player/move/move_1.png"); ANIM_MOVE->AddFrame(":/player/move/img/player/move/move_2.png"); ANI...
5db42b053cef76dbf4e24f8978e6a55461e687b5
d3e5a2f503abd0fe3e0e24c0046095cf272c373f
junior0w0/Arduino
/Libraries/Pom/Timers/Timer1.cpp
C++
cpp
2,353
no_license
#include "../Pom.h" void Timer1::Init( ClockSelect _clock , WaveformGenerationMode _WGM , CompareOutputMode _compareModeA , CompareOutputMode _compareModeB , bool _enableNoiseCancelation , bool _inputCaptureOnRisingEdge , bool _forceOutputCompareChannelA , bool _forceOutputCompareChannelB ...
d14b29235df7c5f72bfd7553d6be46a087a43fd3
2138c191257e2d4315f5cdfe98379e753d9937b7
LeoAuyeung/Game1
/GameEngine/Engine.cpp
C++
cpp
2,448
no_license
#include "Engine.h" //Additional include files #include "System.h" #include "Game.h" #ifndef _DELETEMACRO_H #include "deletemacros.h" #endif #ifndef _STRING_H #include "string.h" #endif EngineState Engine::m_EngineState = EngineState::Invalid; Engine::Engine() { m_EngineState = EngineState::Constructing; } Engi...
26c6e6eec5ce8c67c9ad7e161e16bdd44b483a63
58ecf2f85ff6992ac1f06eb83ecde8b8dc39d630
ftiasch/mithril
/2012-11-03/G.cpp
C++
cpp
5,157
no_license
#include <cstdio> #include <cstring> #include <climits> #include <iostream> #include <algorithm> using namespace std; const int N = 100000; int n; long long data[N][2]; pair <int, int> points[N]; bool mark[N]; long long gcd(long long a, long long b) { return b == 0 ? a : gcd(b, a % b); } long long result[2][3]...
c9c40c18340cfe975f6d8b81c66e4e22d2fe3ae7
b9a4bb4efd3183ab3a7cea97e0e36f4bf2fcea4b
DeadlyKom/Old-Prototype
/prototype/engine/include/source/ObjectRegistry.cpp
C++
cpp
1,815
no_license
#include "prototype\engine\include\ObjectRegistry.h" #include "prototype\include\Behavior.h" namespace SystemEngine { // Конструктор ObjectRegistry::ObjectRegistry() { m_list_objects_scene.reserve(SIZE_VECTOR_SCENE_OBJECT_DEFAULT); } // Деструктор ObjectRegistry::~ObjectRegistry() { } // Возвращает экзем...
3fad10299f14ea961ddecfc6961a8562ae55da4f
cd1acf9ae11882fe2b1bcce11609a0f1e1202099
Yiruma96/CCR
/llvm-3.9.0/tools/clang/lib/Frontend/CompilerInstance.cpp
C++
cpp
67,719
permissive
//===--- CompilerInstance.cpp ---------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
386dfef1cb667757e9abf152f97e3916637041c7
aee0959c73defb698b3a55dd7e78a17a71aa0e65
revmischa/leapmidix
/LeapMIDIX/program/BallControlProgram.cpp
C++
cpp
445
no_license
// // SphereControlProgram.cpp // LeapMIDIX // // Created by Snooz on 6/2/13. // Copyright (c) 2013 DBA int80. All rights reserved. // #include "BallControlProgram.h" namespace leapmidi { void BallControl::initGestures(std::vector<GesturePtr>&gestureRecognizers) { // instantiate gesture recognizer singletons...
34f46eae06f7288c06ecb4d9df66ebafb112f3ca
6b30813590194d1bcb78d205c1114040ac2f92f7
luaman/g3d-cpp
/source/GLG3Dcpp/VAR.cpp
C++
cpp
7,087
no_license
/** @file VAR.cpp @maintainer Morgan McGuire, morgan@graphics3d.com @created 2003-04-08 @edited 2005-06-20 */ #include "GLG3D/VAR.h" #include "GLG3D/RenderDevice.h" #include "GLG3D/VARArea.h" #include "G3D/Log.h" #include "GLG3D/getOpenGLState.h" namespace G3D { VAR::VAR() : area(NULL), _pointer(NULL), ele...
f98e233a30defb41794443960540e41c8f0c86a5
77f9eefcbaba2f5a6aafe27736cf181bec11919d
zzctommy/public-source-code
/码库/P4111 [HEOI2015]小 Z 的房间.cpp
C++
cpp
1,601
no_license
#include<bits/stdc++.h> using namespace std; #define fi first #define se second #define mkp(x,y) make_pair(x,y) #define pb(x) push_back(x) #define sz(v) (int)v.size() typedef long long LL; typedef double db; template<class T>bool ckmax(T&x,T y){return x<y?x=y,1:0;} template<class T>bool ckmin(T&x,T y){return x>y?x=y,1:...
fe116378785ffce74e565cf15076bd278b6baf18
402d03c87c9560813e696252923d3aa7df7085fa
humberto-jr/catalyst
/src/scf/scf__build_density_matrix.cpp
C++
cpp
1,822
permissive
// ../src/scf/scf__build_density_matrix.cpp ================================================= // // // Catalyst Lib is free software: you can redistribute it and/or modifyit under the terms of // the GNU General Public License as published bythe Free Software Foundation, either version // 3 of the License, or(at your ...
b01b5c8196361b83f2f57780738525f7ea7d5691
b8499ba95c442099d1a85cc348d48c7ede9e6e29
Katipo007/diorama_roguelite
/Server/Game/Movement/TestMovementSystem.cpp
C++
cpp
544
permissive
#include "TestMovementSystem.hpp" #include "ClientServerCommon/Game/Transform/Components/PositionComponent.hpp" #include "ClientServerCommon/Game/Transform/TransformHelpers.hpp" namespace Game::Movement { void TestSystem( ecs::Registry& registry, const PreciseTimestep& ts ) { for (auto entity : registry.view<Tran...
c86b94667f3e651fcb43258cb30b1e23b95307d2
60309ea07ea18fe76a9bc85569de0328fc84adcd
pineal/chromium
/chrome/browser/installable/installable_manager_unittest.cc
C++
cc
7,496
permissive
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/installable/installable_manager.h" #include "base/strings/utf_string_conversions.h" #include "testing/gtest/include/gtest/gtest....
4ef170e90108f9694805d14b3c9d800a185f7393
03b71477d1c647018049985a69111a253cb3ac70
parhelia512/Will-Fight-for-Food--SAS--GOTH
/CRAB/conversationdata.cpp
C++
cpp
570
permissive
#include "conversationdata.h" void ConversationData :: Load(rapidxml::xml_node<char> *node) { if(NodeValid(node)) { best.Load(node->first_node("best")); worst.Load(node->first_node("worst")); if(!LoadNum(branch, "branch", node)) branch = -1; LoadStr(context, "context", node); rapidxml::xml_node<char>...
8706ac0793846200e19566644599a24d27a0dc86
521552a37b04639ab325d0ad9b13defb2499df3e
1148583946/AutoEngine
/AutoEngine/RunTime/src/GLWindow.cpp
C++
cpp
1,370
no_license
#include "GLWindow.h" #include "Monitors.h" AUTO_BEGIN SINGLETON_INSTANCE(GLWindow); void size_callback(GLFWwindow* window, int width, int height) { INSTANCE(GLWindow).UpdateWindowRectInt(width, height); } //public funcation GLWindow::GLWindow() : window(nullptr) { GrInit(3, 3); DrawColor.Set(0.0f, 0.0f, 0.0f, 1...
63f9fc0bd007e7d7d671791ec0c4a61f4258b94d
82e0a1b37f86e54033f1ca103fac3fca95528fd6
guipolicarpo/C
/exerc19.cpp
C++
cpp
848
no_license
#include<stdio.h> #include <stdlib.h> #include <locale.h> #include<math.h> main(){ setlocale(LC_ALL, "Portuguese"); char sexo; float sal, id, totals=0, totalid=0, qm=0, qf=0, qf500=0; int c; for(c=1; c<=40; c++){ printf("\n\nHabitante %i\n",c); printf("Sexo m/f: "); scanf(" %c",&sexo); prin...
9d5d8407450f5f6b8fb9034f986ce0eeb70dc71f
b9713bd061bcd2eb3acb4f9e2b81e807a1290861
angramainyu007/kitty
/kittyserver/recordserver/TimeTick.cpp
C++
cpp
1,643
no_license
/** * \file * \version $Id: TimeTick.cpp 24 2013-03-30 08:04:25Z $ * \author , * \date 2006年12月27日 21时03分02秒 CST * \brief 存档定时器实现 * * */ #include <iostream> #include <string> #include <vector> #include <unordered_map> #include "Fir.h" #include "zThread.h" #include "TimeTick.h" #include "RecordUserManager....
48f35dfe8cf81e959c7b67a26b5ddab0e98d022c
8003b885e7e3abb42b78dc567e4cf4deb481b5ce
chankinyuk/5300-Fossa
/SQLExec.cpp
C++
cpp
14,071
permissive
/** * @file SQLExec.cpp - implementation of SQLExec class * @author Kevin Lundeen, Tejas, Zibin * @see "Seattle University, CPSC5300, Summer 2019 */ #include "SQLExec.h" using namespace std; using namespace hsql; Tables* SQLExec::tables = nullptr; //Indice pointer Indices* SQLExec::indices = nullptr; //Method wa...
7ed6da44ba053e32c5eb1c53624f8e29c083c6d1
d9318581a16b00f2759708b13722bc68b279639f
mboeh/AUNRIES
/src/roster.cpp
C++
cpp
887
no_license
#include "roster.hpp" #include <iostream> void Stats::set(const sol::table &tbl) { cerr << "I'd like to set stats, but it's disabled" << endl; } void Stats::grow() { /* for (auto &i : ALL_STATS) { signed int growth = growths[static_cast<int>(i)]; while (growth > 0) { int roll =...
5dba61ab3ced2e15d38586e08bb7b3478d070231
3c5b90f2d38195dbb8e42fa6009ff3a7febbc378
alexnadratupu/PedestrianDetection-4
/PedestrianDetection_Acf/PedDetector.cpp
C++
cpp
20,017
no_license
// // PedDetector.cpp // PedestrianDetection_Acf // // Created by 董昭 on 17/8/28. // Copyright © 2017年 董昭. All rights reserved. // #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/objdetect/objdetect.hpp> #include <opencv2/ml.hpp> #incl...
dd455621baaf5c8d1af443fcdbbb5c7fb90e46d1
43043fc3243b1f5131a0740eff920de8010a050a
hoseongcha/Game-Programming-in-Cpp
/Chapter3/Exercise_3_3/InputComponent.cpp
C++
cpp
1,719
no_license
#include "InputComponent.h" #include "Actor.h" InputComponent::InputComponent(Actor* owner) : MoveComponent(owner), forwardKey_(0), backKey_(0), clockwiseKey_(0), counterClockwiseKey_(0) { } void InputComponent::processInput(const uint8_t* keyState) { Actor* owner = getOwner(); float angularSpeed = 0.0f; if (...
c9689d2b73002dc750366d927d2d1a6ac8b0d3db
53215354f622abea32bd7be65019dca549942b5a
radix-io-archived/iofsl
/src/iofwd/RequestScheduler.cpp
C++
cpp
11,392
no_license
#include <boost/bind.hpp> // @TODO: boost 1.43 has unordered containers #include <tr1/unordered_map> #include "RequestScheduler.hh" #include "zoidfs/zoidfs.h" #include "iofwd/WriteRequest.hh" #include "iofwd/ReadRequest.hh" #include "iofwd/RangeScheduler.hh" #include "iofwd/Range.hh" #include "iofwd/BaseRangeSet....
562d445d25a25c39ac611f5e49b5ff72c85c1a6e
d7a988a89ad523d5de3d1de1cc4f7177c139721e
32bitwoody/32blit-COop
/game.cpp
C++
cpp
8,115
no_license
/* * .cpp - game for the 32blit * * * * * Coyright (C) 2020 <@.co.uk> * * This software is provided under the MIT License. See LICENSE.txt for details. */ /* System headers. */ #include <cstring> #include "splash.hpp" #include "play.hpp" #include "menu.hpp" #include "en...
a81e19ea0f519b174889d994a24ade4ae182c1bf
a563541eb4818ea864bd49ece00533ec1fe9a7dc
li5ch/tencentcloud-sdk-cpp
/mps/src/v20190612/model/DeleteAIAnalysisTemplateResponse.cpp
C++
cpp
2,479
permissive
/* * 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 ...
ddfa2868a388120f10d323c698eef03928718beb
6510340e8303f523a119eee1db3ad54cbcd26aaa
Samsung/Castanets
/chrome/browser/extensions/external_install_error_unittest.cc
C++
cc
2,037
permissive
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/external_install_error.h" #include "base/test/scoped_feature_list.h" #include "chrome/browser/extensions/external_inst...
d666fcb84b5d262d169735196039b7b103c12821
1c13e3c0cf7bf57e5bf9adeae3a584c0e8278911
mamedovaem/OctoCoderCppQt
/Qt/Network/SocketServer/MyServer.cpp
C++
cpp
1,712
no_license
#include "MyServer.h" MyServer::MyServer(int nPort) : m_nNextBlockSize(0) { m_ptcpServer = new QTcpServer(this); if (!m_ptcpServer->listen(QHostAddress::Any, nPort)) { qDebug() << "Server Error: Unable to start the Server: " + m_ptcpServer->errorString(); m_ptcpServer->close(); return; } ...
a63c7ea039b1ccaa0420ccf74c3e208e5013effb
b038eb3fce09a7e381035ff08d64bfadffea4266
Klozz/android_device_google_bonito
/pixelstats/DropDetect.cpp
C++
cpp
4,756
no_license
/* * Copyright (C) 2018 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...
43c6a691cb13572bf39e94215368479583566090
f1808fd5f3b7df1bad13c064723484d1a3cb5a8f
rookiechao/chromium
/ash/media/media_notification_controller_unittest.cc
C++
cc
9,473
permissive
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ash/media/media_notification_controller.h" #include <memory> #include "ash/media/media_notification_constants.h" #include "ash/media/media_not...
cb095c78bc2ca9abcfeabb99e882cba9c6a5b906
73e6a64e1afa94a912ea9372e2b96d7c0b907824
BLuEracle/bitcoin-cash-node
/src/interfaces/node.cpp
C++
cpp
12,460
permissive
// Copyright (c) 2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <interfaces/node.h> #include <addrdb.h> #include <amount.h> #include <banman.h> #include <chain.h> #include <chainparams...
4fe35a101bfa49960545cf487aa926d2c6f5c606
8cbb1ae81878527a308089fcf71400d939f24554
ayaprog/compiler_project
/main.cpp
C++
cpp
796
no_license
#include "ast.hpp" #include "symbol.hpp" #include "codegeneration.hpp" #include "parser.hpp" extern int yydebug; extern int yyparse(); ASTNode* astRoot; int main(void) { yydebug = 0; // Set this to 1 if you want the parser to output debug information and parse process astRoot = NULL; yyparse();...
464d9b5ec990cee86bb79f18a777b3b3323ea5c6
fcc02614b898b6c0deb5532d404cc57d6d7729fc
lightjameslyy/lt-cpp
/leetcode-clion/leetcode-problems/cpp/793.preimage-size-of-factorial-zeroes-function.cpp
C++
cpp
1,032
no_license
/* * @lc app=leetcode id=793 lang=cpp * * [793] Preimage Size of Factorial Zeroes Function * * https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/description/ * * algorithms * Hard (39.20%) * Total Accepted: 6.3K * Total Submissions: 16K * Testcase Example: '0' * * Let f(x) be the...
81b5aec249c98faf41b3e9e2bd49ce3421834fc4
0c110fe3a3d35c5ca07dd701917177d4447fa70f
vslavik/poedit
/deps/boost/boost/hana/detail/operators/comparable.hpp
C++
hpp
1,566
permissive
/*! @file Defines operators for Comparables. @copyright Louis Dionne 2013-2017 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_HANA_DETAIL_OPERATORS_COMPARABLE_HPP #define BOOST_HANA_DETAIL_OPERATORS_COMPARABLE...
80a0ad1b29bdc7c6bbd105eb7e3a7cb9d048899b
c915ea5448b87076f74d0b2c3c9c49d8dcce92dd
Ixeuticus/EmulationStation
/es-core/src/Sound.cpp
C++
cpp
3,714
permissive
#include "Sound.h" #include "AudioManager.h" #include "Log.h" #include "Settings.h" #include "ThemeData.h" std::map< std::string, std::shared_ptr<Sound> > Sound::sMap; std::shared_ptr<Sound> Sound::get(const std::string& path) { auto it = sMap.find(path); if(it != sMap.end()) return it->second; std::shared_ptr<...
3466b46cb832c3431779b19be594b5dda8b94618
3a21b49408b2ba7b786a3515d933093b0de6603e
pdata87/cpp
/Class 5-point/main.cpp
C++
cpp
359
no_license
#include <iostream> #include "SimpleClass.h" int main() { std::string str("test"); SimpleClass test1(1,"test1",20.2); SimpleClass test2(1,"test2",20.2); SimpleClass test3 = test1; test2=test3; if(test3 == test1){ std:: cout << "objects are equal" << std::endl; } std::cout <...
771474b0261c4c5675fcbcfbe37ac8fef751694f
e905a95b53d26f78c867044bb5e415d47bdb8ba6
oscar11902/metaheuristic_class
/MTSP/ACO.cpp
C++
cpp
5,193
no_license
#include "ACO.h" ACO::ACO(vector<vector<double>> distance_table, int nAnts) { this->distance_table = distance_table; this->nAnts = nAnts; this->nCities = distance_table.size(); pheromone_table.resize(nCities, vector<double>(nCities, 0.1)); prefer_table.resize(nCities, vector<double>(nCities)); ...
da22cbe3815acc10fcc11f072be16ba00e7eb9e0
79c630b57560979a3cb78ac343713e020dc33194
masterchef2209/coding-solutions
/codes/codeforces/711C.cpp
C++
cpp
2,120
no_license
/*Read the problem carefully before starting to work on it*/ #include <bits/stdc++.h> //#include <boost/multiprecision/cpp_int.hpp> //using namespace boost::multiprecision; //#include <ext/pb_ds/assoc_container.hpp> //#include <ext/pb_ds/tree_policy.hpp> using namespace std; //using namespace __gnu_pbds; typedef lo...
08da8b05ff1312bb9bea4ca7602ddd7cc4a71e49
9489b66974929e1ab14afd0da5ae41cef1645d86
amynoelle/iggy
/gazebo_iggy_vision/src/whiteline_filter.cpp
C++
cpp
10,727
no_license
#include <iostream> #include <opencv2/core/core.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #include "gazebo_iggy_vision/whiteline_filter.h" #include <dynamic_reconfigure/server.h> //#include <gazebo_iggy_vision/LinefilterConfig.h> WhitelineFilter::WhitelineFilter() { this->...
50176af4c6803735b4bff3fa75d7df4d9c987b3e
cfea95e8902f6ec4cdc8d88d47ce37bb5eb86740
pguzowski/HPSgen_for_uboone
/HiggsPortalScalarGenFromNuMIFlux_module.cc
C++
cc
19,428
no_license
//////////////////////////////////////////////////////////////////////// // Class: HiggsPortalScalarGenFromNuMIFlux // Plugin Type: producer (art v3_01_02) // File: HiggsPortalScalarGenFromNuMIFlux_module.cc // // Generated at Fri Mar 20 11:25:54 2020 by Pawel Guzowski using cetskelgen // from cetlib versi...
566965744635734ec6387ee76289dff7f7da39cd
ea49890982862a0477cd20eb5563d7dac0aa2e24
germanohn/competitive-programming
/codeforces/a.331.cpp
C++
cpp
664
no_license
#include <bits/stdc++.h> #define ff first #define ss second using namespace std; typedef pair<int, int> pii; int n; pii v[10]; int main () { scanf ("%d", &n); for (int i = 0; i < n; i++) { scanf ("%d %d", &v[i].ff, &v[i].ss); } for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++)...
7609536177f1405e48cf59c37e557761d7397276
740fc9fee9d2bed4d29e93d54e7297464a091e56
uilianries/xtr
/benchmark/logger.cpp
C++
cpp
5,530
permissive
#include "xtr/logger.hpp" #include <benchmark/benchmark.h> #include <cstdio> #include <cstdint> #include <cstdlib> #include <ctime> #include <string> #include <string_view> #include <pthread.h> #include <sched.h> // XXX TODO NEED TO ACCEPT AFFINITY AS ARGUMENTS namespace { void set_thread_attrs(pthread_t threa...
e336542d6c35e8c4cb2bc9a0c635eae9f0384c2e
afa61dbb21fffe38a4d62efe6c1a5ab87f941183
zilti/Principia
/physics/discrete_trajectory_body.hpp
C++
hpp
10,846
permissive
 #pragma once #include "physics/discrete_trajectory.hpp" #include <algorithm> #include <list> #include <map> #include <vector> #include "astronomy/epoch.hpp" #include "geometry/named_quantities.hpp" #include "glog/logging.h" namespace principia { namespace physics { namespace internal_forkable { using geometry::I...
9b52d4230a53ea89ced241c5be82091f859c8845
99bc85479fabb93bdd37c6f5136c372b3d6a6dab
jezwilkinson/AliRoot
/EMCAL/EMCALbase/AliEMCALTriggerSTUDCSConfig.cxx
C++
cxx
4,455
no_license
/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors ...
e38be60d134b0ea247f5c84324fcb317007bdb18
e13e8bed986d4b30cb596c9d35f53123a2c233fa
otcshare/chromium-src
/chrome/browser/password_manager/credential_manager_browsertest.cc
C++
cc
43,045
permissive
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/command_line.h" #include "base/macros.h" #include "base/stl_util.h" #include "base/strings/stringprintf.h" #include "base/strings/utf_strin...
6a5a91081cfe7d86281961b9b123954ab6f4e544
58f3effdc2613d2675f487af5da87035c80c4f6b
sid24ss/mha-stuff
/sbpl/src/discrete_space_information/template/environment_XXX.cpp
C++
cpp
13,230
no_license
/* * Copyright (c) 2008, Maxim Likhachev * 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 * notice, ...
c42ffcf533598dd27e53bf5170de5b0d323a7913
7181edcf78108d3a1d0418f26774da97ffce0aaa
alu0100697414/practica3_AEDA
/src/stack.cpp
C++
cpp
401
no_license
#include "stack.hpp" using namespace std; template<class T> Stack<T>::Stack(void){} template<class T> Stack<T>::~Stack(void){} template<class T> Nodo<T>* Stack<T>::get_final(void){ return Lista<T>::top(); } template<class T> void Stack<T>::insert_final(Nodo<T>* nodo){ insert_inicio(nodo); } template<class T...
325b28111ecc8c2b7079ae5180826b07f79772a2
63000a0aa0a79541d91aea0e8a590d3fc908c845
111qqz/ACM-ICPC
/bestcoder/#ann/CB1002.cpp
C++
cpp
2,130
no_license
/************************************************************************* > File Name: code/bc/#ann/1002.cpp > Author: 111qqz > Email: rkz2013@126.com > Created Time: 2015年07月25日 星期六 18时54分35秒 ************************************************************************/ #include<iostream> #include<iomanip> #include...
b62652ec483319873cca31124e12fd98b167d5c3
03725bcc05dd3a3f33df7a5a794cb6bee750015b
casiarobot/TryphonROS_WS
/src/state/src/test_command.cpp
C++
cpp
2,724
no_license
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <ctime> #include <ros/ros.h> #include <geometry_msgs/Wrench.h> #include <ctime> #include "tests/props_command.h" #include <vector> #include <cmath> #include <sys/types.h> #include <sys/socket.h> #include <sys/ioctl.h> #include <netinet/in.h> #include...
377bbbdecdf200495a090894e1c36f2a247edcfc
c9ea5da7527b885151fefe9ce4f3fdd83ccc41be
Jmast/lbann
/src/utils/lbann_quantizer.cpp
C++
cpp
37,893
permissive
//////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2014-2016, Lawrence Livermore National Security, LLC. // Produced at the Lawrence Livermore National Laboratory. // Written by the LBANN Research Team (B. Van Essen, et al.) listed in // the CONTRIBUTORS file. <lbann-dev...
61597ae4bf01029acd62a0eb4031f233eb575c19
81040ac85a56a16341da0b79752b96d8c5c2c515
monguri/MGRRenderer
/MGRRenderer/Sources/node/Light.cpp
C++
cpp
16,652
no_license
#include "Light.h" #include "renderer/Director.h" #if defined(MGRRENDERER_USE_DIRECT3D) #include "renderer/D3DTexture.h" #elif defined(MGRRENDERER_USE_OPENGL) #include "renderer/GLFrameBuffer.h" #endif namespace mgrrenderer { Light::Light() : _intensity(1.0f) { } AmbientLight::AmbientLight(const Color3B& color) { s...
46c27996d6c54b79faf4243c1a8a298fbac085a8
36f5a31ebed2d53c3631874e28941f3541fc3dd0
Hammer2017/zipfile-for-push
/_Public_util_sources/winverifytrust.cpp
C++
cpp
13,405
no_license
#include "winverifytrust.h" #include <windows.h> #include <stdio.h> #include <wintrust.h> #include <softpub.h> #include <mscat.h> #include <QDebug> #include <QMap> #include <QFile> #pragma comment(lib, "wintrust.lib") void PrintError(_In_ DWORD Status) { #if 0 char szbuf[128]; sprintf(szbuf,...
fb52af7122ae8e403e10efc1f0a64bbddac948b6
2f89b1c6ff766b85bcc438299d3e96af13d39f57
pmiddend/fcppt
/libs/core/include/fcppt/math/matrix/structure_cast.hpp
C++
hpp
1,155
permissive
// Copyright Carl Philipp Reh 2009 - 2018. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef FCPPT_MATH_MATRIX_STRUCTURE_CAST_HPP_INCLUDED #define FCPPT_MATH_MATRIX_STRUCTURE_CAST_HPP...
8bc9751a8b3f9a536d3e54be80973d1d8915cc46
55bb4a53d1a1b038a4e74af80e75ba698abffef9
lucywyman/facter
/lib/src/facts/freebsd/operating_system_resolver.cc
C++
cc
504
permissive
#include <leatherman/execution/execution.hpp> #include <internal/facts/freebsd/operating_system_resolver.hpp> using namespace std; using namespace leatherman::execution; namespace facter { namespace facts { namespace freebsd { void operating_system_resolver::collect_release_data(collection& facts, data& result)...
3d1d9545f1ff9396fb6b976440bf17c94b2229c4
7e3447ab2a5fa14c3a7afcd2b04986b04f9ea5ef
Mihail2357/POO-tema-3
/main.cpp
C++
cpp
278
no_license
#include <iostream> #include <string> #include "include/Dictionary.h" using namespace std; int main() { Dictionary<int, string> dict; dict.Add(23, "salut"); dict.Add(14, "test1"); dict.Add(35, "test2"); cout << dict << "\n"; return 0; }
e837de3b7e5d3d4d0e974c5ded6eaa861b4c9840
8c2720cfdf35fb2b698fc975ebab1c450f3de73f
ay2306/Competitive-Programming
/codeforces/round559/e.cpp
C++
cpp
1,358
no_license
/* ____________________________________________________________ | | | Author: ay2306 | |____________________________________________________________| */ #include <bits/stdc++.h> #define MOD 1000000007 #define test i...
c661a417508b2c82998dc4fb22a751a035ce02b6
bddece64523c1b819aa77b38198f4707d655986f
wgnet/wds_qt
/qtdeclarative/tests/auto/qml/debugger/qqmldebuggingenabler/qqmldebuggingenablerserver/qqmldebuggingenablerserver.cpp
C++
cpp
2,519
permissive
/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the test suite of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage ** Licensees holding valid commercia...
0f3d6d54fb70af32522035569392b62a366a55d7
75b7fb2810896411115f6c6ada2623fab0e02702
gkpeng2007/EasyLog
/EasyLog/EasyLog.cpp
C++
cpp
2,065
no_license
#include "EasyLog.h" #include "Log.h" #include <atlstr.h> static bool g_bInit = false; /** * @brief 从完整的路径中,取出文件名 **/ static LPCWSTR GetFileName(LPCWSTR lpszSrc) { if(!lpszSrc) return NULL; wchar_t* p = _tcsrchr(const_cast<wchar_t*>(lpszSrc), L'\\'); return p ? ++p : lpszSrc; } static bool PrevWork(int lev...
e32ee82bb8ba008a7286eeeb978e3a67e57e7628
119d062ed2b478fa3e24fb38f42d27bf2ffa174b
willis7/Programming-Tutorials
/Direct3D/Rotating Cube/d3d_obj.cpp
C++
cpp
8,497
no_license
#include "d3d_obj.h" // Declare our static variables IDirect3D9* CD3DObj::mInterface = NULL; IDirect3DDevice9* CD3DObj::mDevice = NULL; HRESULT CD3DObj::mResult = 0; // Initializes our D3D object -- Returns true on success, false otherwise bool CD3DObj::init(HWND hwnd) { // Create the D3D object, which is needed to ...
533c688ac5af5467d3f5ac51f3dcae527ddb0f20
2e5cf3a0712453859efba45aedbe11045cdd16c1
Pheryus/TCC
/codigos/klee_server/client_main.cpp
C++
cpp
2,524
no_license
#include <iostream> #include <string> #include <stdlib.h> #include <klee/klee.h> #include "json.hpp" #include <stdio.h> #include <string.h> using json = nlohmann::json; int x = 0, y = 0; int side = 0 ; int shield_cooldown = 0; int shot_cooldown = 0; bool game_start = false; bool is_dead = false; FILE* file; const int...
067d170f76d84fd72367f626a7e0fdb0eb9d1a25
1dd764839ad2db965122353c39a22e0fed6136b5
ashutosh0gupta/llvm_bmc
/examples/litmus/c/run-scripts/tmp_1/Z6.2+fencembonceonce+poacquireonce+ctrlonceonce.c.cbmc.cpp
C++
cpp
40,725
no_license
// 0:vars:3 // 3:atom_1_X0_1:1 // 4:atom_2_X0_1:1 // 5:thr0:1 // 6:thr1:1 // 7:thr2:1 #define ADDRSIZE 8 #define NPROC 4 #define NCONTEXT 1 #define ASSUME(stmt) __CPROVER_assume(stmt) #define ASSERT(stmt) __CPROVER_assert(stmt, "error") #define max(a,b) (a>b?a:b) char __get_rng(); char get_rng( char from, char to ) ...
04e30c8ad712dfb14e7e44a68660a44165e07f29
16a291dfe9404037ba9c4a5b79347084f69126d9
Liu233-QAQ/2020-HMI-ISP-07
/源码C++/src/run_kitti_stereo.cpp
C++
cpp
386
no_license
#include <gflags/gflags.h> #include "myslam/visual_odometry.h" DEFINE_string(config_file, "./config/default.yaml", "config file path"); int main(int argc, char **argv) { google::ParseCommandLineFlags(&argc, &argv, true); myslam::VisualOdometry::Ptr vo( new myslam::VisualOdometry(FLAGS_config_file))...
d51e7916f4bc82e4fbf63f0e4cd0530a0ef6e736
35431e41d210a4ef2c901e18f392f20a0b2ec337
ameet-1997/Competitive_Coding
/Codechef/Codechef_November_Challenge/alexey.cpp
C++
cpp
941
no_license
#include <stdio.h> #include <stdlib.h> //#include <limits.h> int main() { long long int gcd(long long int,long long int); long long int test; scanf("%lld",&test); long long int *a; for(long long int zz=0;zz<test;++zz) { long long int n; scanf("%lld",&n); a = (long long int*) malloc(sizeof(long long int...
35e54e1af0bacf7ab3434478fa66a400fbaccac6
80908713fc8e2756e2b44ea068791005472872e8
palliums-developers/exchange-matchengine
/violas_move/tools/move/b.cpp
C++
cpp
1,825
no_license
#include <stdio.h> #include <sys/types.h> #include <dirent.h> #include <string.h> #include <iostream> #include <vector> #include <string> using namespace std; void GetFileNames(string path,vector<string>& filenames) { DIR *pDir; struct dirent* ptr; if(!(pDir = opendir(path.c_str()))) return; ...
4610e4c5c6e4c61ed844654215193e1dc43b29df
a5fcfa9a20d1dbc1bace0bf53c83bd9dc4373556
digint/openmptl-reg-arm-cortex
/arm/cortex/Spansion/MB9BF21xS/include/arch/reg/mft_ppg.hpp
C++
hpp
29,159
no_license
/* * OpenMPTL - C++ Microprocessor Template Library * * This program is a derivative representation of a CMSIS System View * Description (SVD) file, and is subject to the corresponding license * (see "License.txt" in the parent directory). * * This program is distributed in the hope that it will be useful, * bu...
70fe629b7ab46b73d05a79d98733c6fb91cd3380
bf3980a98e6e261b266c2b4d732d01ccf157c4b1
ch1huizong/lang
/cpps/02/2_5.cpp
C++
cpp
211
permissive
#include <iostream> // T: 流程控制-while int main(int argc, char* argv[]) { int i = 1, sum = 0; while (i <= 10) { sum += i; i++; } std::cout << "sum = " << sum << std::endl; return 0; }
4f13389ccd86bb8695d006efca4c8e904e3c54c4
586be8fecbf3ab167f5c36881ad96b145187e6a7
ccdxc/logSurvey
/data/crawl/collectd/hunk_281.cpp
C++
cpp
851
no_license
return 0; } +static int cpy_notification_callback(const notification_t *notification, user_data_t *data) { + cpy_callback_t *c = data->data; + PyObject *ret, *n; + + CPY_LOCK_THREADS + n = PyObject_CallFunction((PyObject *) &NotificationType, "ssssssdi", notification->type, notification->message, + notificatio...
2d93a22f01ce42b8b4c4f2fbf8dfb16289f3d47c
9b030c5efcf59e39654a603f64977d3ac650152e
LemonHaze420/ShenmueIIISDK
/Demo/Shenmue3SDK/SDK/BW_FloatProperty_functions.cpp
C++
cpp
9,653
no_license
#include "../SDK.h" // Name: S3Demo, Version: 0.90.0 #ifdef _MSC_VER #pragma pack(push, 0x8) #endif namespace SDK { //--------------------------------------------------------------------------- // Functions //--------------------------------------------------------------------------- // Function BW_FloatProperty....
27bf2efb181c9161a1c18fca321bd7310dbc0b76
32b3ec010c836ed8fddf1deab08cc9804d3217a7
nickthechang/CS100-Lab1
/src/main1.cpp
C++
cpp
319
no_license
#include <iostream> #include "../header/rectangle.hpp" using namespace std; int main(){ Rectangle rect1, rect2; rect1.set_width(3); rect1.set_height(4); rect2.set_width(4); rect2.set_height(2); cout<<"Rectangle 1 area: " << rect1.area()<<endl; cout<<"Rectangle 2 area: " << rect2.area()<<endl; return 0; }
0a0fe267f4bfb3a12d42a46f440a3ba418074d69
9820f5f5a9fad80b4b7d47ab76b192713b9e83c3
gormes12/The-Maze
/MazeSolver/Queue.cpp
C++
cpp
862
no_license
#include "Queue.h" Queue::Queue(int row, int col) { phySize = row * col; data = new Type[phySize]; head = 1; tail = 0; logSize = 0; } Queue::~Queue() { delete[] data; } void Queue::MakeEmpty() { head = 1; tail = 0; logSize = 0; } int Queue::isEmpty() { return (AddOne(tail) == head); } int Queue::AddOne(i...
974fdc7110298e8f7f998dba9801e602f9ee0216
9e5cb9c31423e5f5ae6b1298a5162bab690e23c1
LineageOS/android_art
/runtime/gc/collector/mark_sweep.cc
C++
cc
60,624
permissive
/* * Copyright (C) 2011 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...
01750d1cb5916551af9d0505ae1073f64ac079d0
f325006e0d5a0081e1512f5bc14e197e5b1cc258
WhiZTiM/coliru
/Archive/cb632529574d072d35ea4029ae8b4670-566ba27bdbe9ec997145a2702f4e303b/main.cpp
C++
cpp
238
no_license
template<int...> struct X{}; template<int...> struct concatenate{}; template<int... l, int... r> struct concatenate{ typedef X<l...,r...> concatenated; }; int main() { typedef concatenate<X<1,2,3>,X<4,5,6>>::concatenated Z; }
bbf70d02624c1d04484bb2a21b55c83bf39cc6ad
09b743b271d6ed689b0359ed9fb0083a8e6376c6
merlinvn/MaSimHPC
/src/SmartPointer/SingleClonalParasitePopulation.cpp
C++
cpp
804
no_license
// // Created by merlinvn@gmail.com on 27/12/16. // #include <iostream> #include "SingleClonalParasitePopulation.h" using namespace SmartPointer; ObjectPoolSmartPointer<SingleClonalParasitePopulation> SingleClonalParasitePopulation::objectPool(100000); size_t SingleClonalParasitePopulation::ID = 0; SingleClonalParas...
84cc6f93544fced680cffee9a9207c7bdbd990be
1357b511d7b9206346c4952fd3d04d95490a4de9
brycelelbach/nt2
/modules/sdk/include/nt2/sdk/simd/details/impl/common/is_less_equal.hpp
C++
hpp
1,206
permissive
/******************************************************************************* * Copyright 2003 & onward LASMEA UMR 6602 CNRS/Univ. Clermont II * Copyright 2009 & onward LRI UMR 8623 CNRS/Univ Paris Sud XI * * Distributed under the Boost Software License, Version 1.0. * ...
88a2dbb1bbacf321f94341aa3a330f0edffe8606
f1cebc50a7a371536ef855fa5bbd5b257ea2f7e2
jeonyeohun/PS-With-CPP
/LeetCode/P141_LinkedListCycle.cpp
C++
cpp
601
no_license
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: bool hasCycle(ListNode *head) { ListNode *jump = head; ListNode *move = head; if (head == nullptr)...
aa4ea28bf2ce3e4ad3ce3389d733398679d7f66d
921d8e72d268823b286afda02a06bf742e0add95
cw100/SoT-SDK
/SDK/SoT_BP_AnimSequenceVariants_classes.hpp
C++
hpp
205
no_license
#pragma once // Sea of Thieves (1.4) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "SoT_BP_AnimSequenceVariants_structs.hpp" namespace SDK { } #ifdef _MSC_VER #pragma pack(pop) #endif
2655a501eb2e29086466dce9de4bf3a9c58e045d
24e0510c6cf2ee591c21aa05071e8f13317ea80e
vsvictor/Configurer
/solution.cpp
C++
cpp
1,245
no_license
// // Created by User on 2/9/2018. // #include <iostream> #include "solution.h" Solution::Solution():VisualStudioVersion("0"),MinimumVisualStudioVersion("0") { } Solution::~Solution() { } void Solution::setVisualStudioVersion(std::string version) { VisualStudioVersion = std::string(version); } std::string Soluti...
678f51ab4a30354a11754d57f80ae428e0413af3
adc4afb6aca08fe036b1d83779bc4ce0610121fe
hvers/douml
/genplugouts/HtmlDoc/UmlClassInstance.cpp
C++
cpp
1,691
no_license
#include "UmlCom.h" #include "UmlClass.h" #include "UmlAttribute.h" #include "UmlRelation.h" #include "UmlClassInstance.h" //Added by qt3to4: #include <QByteArray> #include <QList> QByteArray UmlClassInstance::sKind() { return "class instance"; } void UmlClassInstance::html(QByteArray, unsigned int, unsigned int...
923519922aed85d12d7633fd2c4a320994c41545
b83e3349f01dec6804b9f1476adba95c64f4d431
zhuhaijun753/Panorama4AIWAYS
/s32v234_sdk/libs/apexcv_pro/hough/graphs/build-apu-tct-sa-d/HOUGH_20X2.hpp
C++
hpp
3,851
permissive
#ifndef _ACF_PROCESS_APU_HOUGH_20X2 #define _ACF_PROCESS_APU_HOUGH_20X2 #include <acf_process_apu.h> #include <apex_launcher.hpp> #include <stdint.h> #include <HOUGH_20X2_APU_LOAD.h> //APU load associated with this process //SCENARIO LIST************************************************* static acf_scenario_buffer_da...
f84cc0a3c58cf19261606172f16a17b1b5ecb7ff
b5a8a88658372935732451870d5ff8c8661d7f46
emwhbr/rpi
/redrob/daemon/src/redrobd_rc_rf.cpp
C++
cpp
3,769
no_license
// ************************************************************************ // * * // * Copyright (C) 2014 Bonden i Nol (hakanbrolin@hotmail.com) * // * * // * This progra...
df45b355a76c681815a429bd7f5177aca6dc043a
e03d859d01bbf38470e6d08f7ca8aec99a16e899
akshaymarch7/chromium
/content/shell/browser/shell_browser_main_parts.cc
C++
cc
6,297
permissive
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/shell/browser/shell_browser_main_parts.h" #include "base/base_switches.h" #include "base/bind.h" #include "base/command_line.h" #includ...
7ca63ed97939ca077fbda97bb4c6a6230345d782
9eb438721357784d0ff1c22941c03ebed99c321b
tiagokepe/duckdb
/third_party/google/protobuf/stubs/status.cc
C++
cc
7,434
permissive
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
537163bd3e2acec4bfaa900455c1a222966c280d
8514a1dfccc06197620d8a38869375d7c5232b1a
CosmosOSProjectArchive/AerOS
/include/lib/vector.hpp
C++
hpp
2,641
no_license
#pragma once #include "types.h" #include "hardware/memory.hpp" template <typename T> class VectorList { public: // constructor VectorList() { Data = nullptr; Size = 0; Count = 0; CurrentIndex = 0; SizeInBytes = 0; } ...
3d176b270725700b7e0ea129799e01c04cba8761
19d620f5f7d0481e485332ec2a246b0eea7d963d
Unknow-man/mfc-4
/NCSkinDemo/NCSkinDemo/stdafx.cpp
C++
cpp
637
no_license
// stdafx.cpp : source file that includes just the standard includes // NCSkinDemo.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" CString GetModulePath() { TCHAR s_buf[MAX_PATH]; s_buf[0] = 0x0; DWORD n_result = ::GetModuleFileName...
74534d48ff8223a425f4716c51123b7247b4eb96
81c9281f5b404066b86c9181df310df3bffceca7
ZakariaChekakta/navigation2
/nav2_costmap_2d/src/clear_costmap_service.cpp
C++
cpp
6,928
no_license
// 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...
6b6309efb91200f68fbe44b2491ac995f61d4a0d
1ec9bb2c1cf6f2ee55c96205f1de9b5f03b87ee7
ANh0r/Schoolworks
/C++ Object-Oriented Programming (2020)/xhttpd/main.cpp
C++
cpp
3,647
no_license
#include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <stdio.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <fcntl.h> #include <stdlib.h> #include <cassert> #include <sys/epoll.h> #include "locker.h" #include "threadpool.h" #include "http_conn.h" #define MAX_FD 65536 ...
910e668f9a424747840687006d66d27d0fb80a91
18bd60ed806bd689987785be41f1e525e580bd4c
NullEntity/gmsv_mysqloo
/MySQLOO/source/CLASS_Database.cpp
C++
cpp
6,053
no_license
#include "CLASS_Database.h" #include "CLASS_ConnectThread.h" #include "CLASS_Query.h" #include "CLASS_MutexLocker.h" #include <string.h> #ifdef LINUX #include <stdlib.h> #endif Database::Database(lua_State* state) : LuaObjectBaseTemplate<Database>(state) { MutexLocker lock(m_sqlMutex); m_sql = mysql_init(0); m_c...
b7f8ee16ef9814721d027facad46d82dfffc9d51
60de8e1347abe1f25fec0fcdf6113d9a5b9addb7
captainwong/Learning-OpenCV-3_examples
/example_18-01_from_disk.cpp
C++
cpp
8,232
no_license
// Example 18-1. Reading a chessboard’s width and height, reading them from disk and calibrating // the requested number of views, and calibrating the camera // You need these includes for the function #ifdef WIN32 #include <windows.h> // for windows systems #else #include <dirent.h> // for linux systems #inclu...
831bc954dfd83967afdd5f1b5f0b5cb74b625991
7db9a99916096953110126b414d128483f1ed79d
crisnita/University
/Object-Oriented Programming/Lab 6 OOP/Lab 6-7/console.cpp
C++
cpp
3,165
no_license
#include "console.h" #include "service.h" #include "movies.h" #include <iostream> #include <string> // adauga un element in UI void UI::adauga_UI() { string title, genre, actor; int year; cout << "Dati titlul: "; cin >> title; cout << "Dati genul: "; cin >> genre; cout << "Dati anul: "; cin >> year; cout <<...
3f1333ecc499d8ef3a550a6f5f9a7f8e67a528d0
7fc151c14044d7af8c0974d43f91e3ab1ea820b1
yangzheng146311/TechCode
/CSC8503/GameTech/Main.cpp
C++
cpp
4,743
no_license
#include "../../Common/Window.h" #include "../CSC8503Common/StateMachine.h" #include "../CSC8503Common/StateTransition.h" #include "../CSC8503Common/State.h" #include "../CSC8503Common/NavigationGrid.h" #include "TutorialGame.h" //#include "NetworkedGame.h" //#include "../CSC8503Common/GameServer.h" //#include "../...
e737b9010bcc482042a48a675a9de87be9054b85
88c932524353fafb43d612d7fa88e694c840efc9
svn2github/fs2open
/tags/volition_import/fs2_open/code/object/objectsnd.cpp
C++
cpp
28,098
no_license
/* * Copyright (C) Volition, Inc. 1999. All rights reserved. * * All source code herein is the property of Volition, Inc. You may not sell * or otherwise commercially exploit the source or things you created based on the * source. * */ /* * $Logfile: /Freespace2/code/Object/ObjectSnd.cpp $ * $Revision: 1.1...
8c7d3c7f8b5be301d0f73ce45d928900aa1c08d3
d963fec4e051a2600b6f66ee355ff8b354d9ce55
prtik147/codechef
/SNELECT.cpp
C++
cpp
2,171
permissive
#include <iostream> #include <cstring> #include <algorithm> #include <cmath> #include <climits> #include <string> #include <utility> #include <map> #include <set> #include <vector> using namespace std; typedef long long ll; typedef unsigned long long ull; #define val(x) cout<<#x<<" "<<x<<endl; #define ...
650756ae28c2c16f39863326692aa8412814bc51
0d6f013c68425ec94482c515c22770b3ff31193c
1501Anupam/C-plus-plus
/OOPs/overloading_using_virtaul_keyword.cpp
C++
cpp
1,002
no_license
#include <iostream> using namespace std; class base { public: virtual void printFunc() { cout << "This is the function of base class\n"; //if we won't put virtual keyword it will execute method of base class. } }; class derived : public base { public: void printFunc() { cou...
0405e55645a30a235a75424364b2734823a3d9db
123e1995146391d6ac8d9338cf1b179feb425572
konraadkan/MapBuild_Redux
/MapBuild_Redux/MapBuild_Redux/MenuSection.cpp
C++
cpp
10,138
no_license
#include "MenuSection.h" void MenuSection::ResizeDest() { if (pChild.empty()) return; if (pChild.back()->pChild.size()) { if (pChild.back()->GetRect().right + pChild.back()->GetSize().width >= m_Dest.right) m_Dest.bottom = pChild.back()->pChild.back()->GetRect().bottom + 1.0f + pChild.back()->GetSize().height ...
0fddc321432231758e101faccbbfaad65f756bd3
805e2e22903a81d8cce5393555679cb4b321cd84
Prerit73/CipherSchools_Assignment
/Assignment3/detect_remove_loop.cpp
C++
cpp
1,509
no_license
#include <bits/stdc++.h> using namespace std; class Node { public: int data; Node *next; Node(int data) { this->data = data; next = NULL; } }; bool detectLoop(Node *head) { Node *slow = head; Node *fast = head; while (fast != NULL && fast->next != NULL) { sl...
3e14bae47f4615d31c6b7b85abac5dda03c8b8c0
4304958bcb3cce01abf10a4bcc3ea12e52b1714d
dmilos/color
/src/color/_internal/utility/type/bound.hpp
C++
hpp
11,227
permissive
#ifndef color__internal_utility_type_bound #define color__internal_utility_type_bound // ::color::_internal::utility::type::bound< number_name, number_const_return_name > namespace color { namespace _internal { namespace utility { namespace type { template < typename number_name, ...
2bdc511cf24e8a89e928655fefaf5d4d0fcec26e
2eed746008afde9376874e3082a781b84514b30c
hunk4423/DayZ_Epoch_13.Taviana
/ZSC/config/Category/NeutralAssaultRifle.hpp
C++
hpp
4,159
no_license
class Category_602 { class G36A_camo { type = "trade_weapons";buy[] ={60000,"Coins"};sell[] ={20000,"Coins"};}; class G36C { type = "trade_weapons";buy[] ={60000,"Coins"};sell[] ={20000,"Coins"};}; class G36C_camo { type = "trade_weapons";buy[] ={60000,"Coins"};sell[] ={20000,"Coins"};}; class G36K_camo { type...
ed47b0f391d1d829adbc971964e431a8881f3817
b4d71ca529a3805a93bb29ae4b8a7cfb9d000e1c
wmhwang-sponsored/asylo
/asylo/test/misc/malloc_stress_test.cc
C++
cc
2,947
permissive
/* * * Copyright 2017 Asylo 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 or agree...
80cd580de9b72490c99ad57210fbf3d8e48081fe
2986e2f56da00739bd26570fcc4eb2b332fc52c7
AI549654033/RDHelp
/src/src/Share/ShareLib/LinuxPublic/ACE_wrappers/tests/Recursive_Condition_Test.cpp
C++
cpp
9,774
permissive
// $Id: Recursive_Condition_Test.cpp 89121 2010-02-22 14:48:31Z schmidt $ // ============================================================================ // // = LIBRARY // tests // // = FILENAME // Recursive_Condition_Test.cpp // // = DESCRIPTION // This test program validates the functionality ...
a77d8a49b0ad413b25f83e4ed63dc9e47437f4fe
99c5b6c519767a3bf3eb4a1118d127682049b141
yuvraj24/Reactify
/node_modules/react-native/third-party/folly-2016.10.31.00/folly/test/FunctionTest.cpp
C++
cpp
25,442
permissive
/* * Copyright 2016 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
03530ae635edb009602f9e6d25e31ebe4b69ae95
5ef3d0a3c6b93761cd39d3e9ea494a169220a299
sytu/cpp_primer
/ch12/12_6_dynamicvector.cpp
C++
cpp
560
no_license
#include <iostream> #include <vector> #include <new> using std::cout; using std::cin; using std::endl; using std::vector; using std::cerr; using std::nothrow; vector<int> * newVec() { return new (nothrow) vector<int>; } void readVec(vector<int> *pv) { int i; while (cin >> i) pv->push_back(i); } void printVec(...
1429803de5d28cfe2c813534096e8427490403f4
aa800b00ae7710196fbfe918416938ad427af36b
hhjcobra/TestNet
/Net_Utility.cpp
C++
cpp
897
no_license
// // Created by hhj on 16-12-31. // #include "Net_Utility.h" int anetSetBlock(int fd, int non_block) { int flags; /* Set the socket blocking (if non_block is zero) or non-blocking. * Note that fcntl(2) for F_GETFL and F_SETFL can't be * interrupted by a signal. */ if ((flags = fcntl(fd, F_GETF...
bb94e77639668b15ecbda22e366f7999749620a0
1114e91284a29d725416bf0b1795d18625ba6b26
Highlife1911/gloperate
/source/gloperate/source/pipeline/AbstractPipeline.cpp
C++
cpp
4,971
permissive
#include <gloperate/pipeline/AbstractPipeline.h> #include <cassert> #include <string> #include <algorithm> #include <set> #include <iostream> #include <gloperate/base/collection.hpp> #include <gloperate/pipeline/AbstractStage.h> #include <gloperate/pipeline/AbstractInputSlot.h> #include <gloperate/pipeline/AbstractD...