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
cdb8e955b5e852b30d96ed283aad7958f4c1812f
37e0a361b4a74cda0dd7305e6bc2434a068bc955
thisisronak/Algorithms
/contests/codeforces/471B.cpp
C++
cpp
972
no_license
#include <bits/stdc++.h> using namespace std; #define d(n) cout<<#n<<" "<<n<<endl int idx[N]; int h[N]; int n; int cmp(int a, int b) { return h[a] < h[b]; } int main() { scanf("%d", &n); for(int i = 0;i < n;i++) { scanf("%d", &h[i]); idx[i] = i; } sort(idx, idx+n, cmp); int cnt = 1; for(int i = ...
9397af599795aa8505c9740b2354539dc1df87c6
c6cf30c9992b3c20f013cf9986dbd0ea94761595
tanviredu/Data
/20_learning_cpp/.history/OOP/first_20200711104848.cpp
C++
cpp
642
no_license
#include <iostream> using namespace std; class BankAccount { private: /* if you delare private you probably have to write getter and setter to acces it */ float balance; // this is a attribute public: BankAccount(); // this is a constructor void Deposite(float); // this method do...
910f2027dfd29903d326b08fe306586a71751c9f
b80a3955f03da773d5b4ea71904cc476bb4ac77e
Krish203018/cpp
/perfectnumber.cpp
C++
cpp
575
no_license
#include <iostream> using namespace std; int main(){ int n; cout<<"enter the value of n"; cin>>n; cout<<"the perfect number upto "<<n<<" is"; int i=1; int u=1; int sum=0; while (i<=n) { while (u<n) { if(u<i){ if (u%i==0) { ...
232d6222ad2aa2658470a5fb5c7c27fd0c3a02e8
e7dba0cf5acddf82f66dd85b17c8ff90fa2fd3cc
return19/All-C-Codes
/LTIME23/test.cpp
C++
cpp
456
no_license
#include<bits/stdc++.h> using namespace std; long long pow(long long a, long long b, long long MOD) { long long x = 1, y = a; while(b > 0) { if(b%2 == 1) { x=(x*y); if(x>MOD) x%=MOD; } y = (y*y); if(y>MOD) y%=MOD; b /= 2; } return x; } long l...
8aa46732c5218fd81f7662e5f3ba8845fc0c6cf6
450f2d8189fa8ebfd7387cf9b145c84a68b15b82
ernestocharry/computationalMethods
/15_PenduloDoble/2_DiagramaFase_Tc_Omega_Theta/Double_Oscillator_2.cpp
C++
cpp
6,704
no_license
/* Universidad Nacional Autónoma de México Presentado por: Felix Ernesto Charry Pastrana Presentado a: Santiago Caballero Introduccion a Física Computacional 2018.04.19 */ #include <stdio.h> #include <iostream> #include <math.h> #include <fstream> #include <iomanip> double Fun0(double t, double Theta1, double ...
e50a67e5ad0f3ae5c6da59c846a3f4cfb3391481
0e73d55f1fd320eb954a3c2107a83ecebbb3647f
YazeedAD/CppND-File-Encryptor
/src/AES256.cpp
C++
cpp
7,082
no_license
// // Created by y on 1/3/21. // #include "../include/AES256.h" void AES256::SubBytes() { for (auto &i : state) { for (unsigned char &j : i) { j = s_box[j]; } } } void AES256::ShiftRows() { auto temp = new unsigned char STATE_SIZE; auto *ptr = state; int x=0; /...
444b905113d5ff5e84844f4c6e3d437f6928bdf0
8bb36c51932515e158f79ae978e8a8197151bfc0
SaltineChips/BNICoin
/build/moc_sendcoinsdialog.cpp
C++
cpp
7,898
permissive
/**************************************************************************** ** Meta object code from reading C++ file 'sendcoinsdialog.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.3.2) ** ** WARNING! All changes made in this file will be lost! ***********************************************...
5fc8e1c54d91a5536f0ae973bea90fe44cd6130d
a890731092704184fe3c2c0e38b4215f38f63e2b
DoNothing627/C-
/codeforce/1354C/1354C.cpp
C++
cpp
791
no_license
//--------DO NOTHING--------- #include <bits/stdc++.h> #include <bitset> //#define x first //#define y second #define mn #define pb push_back #define oo 1000000007 //#define int long long #define DoNothing "1354C" #define ii pair< int, int> #define memset(f, a) memset(f, a, sizeof(f)) #define forr(i, a, b) for(int i= a...
f110be12959bf27769833eb279a87b817bd4e29a
86cb58530872adfed84d2c31e86e924a1e24b40c
gwgoliath/learnalljoyn
/alljoyn/alljoyn_core/samples/secure/SampleCertificateUtility.cc
C++
cc
26,520
no_license
/** * @file * @brief Sample implementation of a local Certificate Authority utility to generate * and manage certificates. */ /****************************************************************************** * * * Copyright AllSeen Alliance. All rights reserved. * * Permission to use, copy, modify, and/or d...
3462efbe9b58903ae2dbfbc115efe1c441fb858b
94effa597220db012e7e8a816acf72a319e7a0b6
vikas100/VoxOx
/libs/3rdparty/googlebreakpad/src/processor/basic_code_modules.cc
C++
cc
4,495
no_license
// Copyright (c) 2006, Google 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 source code must retain the above copyright // notice, this list of conditi...
de5b75f623bd7a4ede9740a60bf05ff29453dd57
1c2c2e6ddfe6e9eeeaca2d9d32b603e586c8a131
kruesemann/graph_ideals
/src/Tinait.cpp
C++
cpp
3,707
no_license
#include <readline/readline.h> #include <readline/history.h> #include "stdafx.h" #include "parser.h" const std::string vocabulary[] = { "exit", "quit", "help", "sql", "import", "compute", "classify", "scripts", "results", "show", "save", "select", "distinct", "from", "where", "group by", "order by", "desc", ...
d5944f0e7f7f5b0609acfaeea7adf5ee23032982
40c30e980445b4a44d094818ff9ca297b6cc21cc
zesterer/vast-old
/include/vast/voxelentity.hpp
C++
hpp
551
no_license
#ifndef VAST_VOXELENTITY_HPP #define VAST_VOXELENTITY_HPP // Vast #include <vast/entity.hpp> #include <vast/volume.hpp> namespace Vast { class VoxelEntity : public Entity { private: Volume vol; glm::vec3 center; protected: bool event_handler(SceneObject& parent, SceneEvent event) override; public: Voxe...
14de5087e85a27abe5a5d2e813a48dcb275183fb
335848e329c47c5293358287675aeb7beecf4235
otcshare/chromium-src
/base/threading/platform_thread_posix.cc
C++
cc
11,126
permissive
// Copyright (c) 2012 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/threading/platform_thread.h" #include <errno.h> #include <pthread.h> #include <sched.h> #include <stddef.h> #include <stdint.h> #inclu...
b25a89f801033ee0402407eccf4825249ebf10cd
92f4e10a4e4af34bb3f98d48f0f2d086e22daf29
mukbe/Mokube
/Mokube/Scenes/AStarScene.cpp
C++
cpp
1,188
no_license
#include "stdafx.h" #include "AStarScene.h" #include "./Systems/Object/Player.h" #include "./Systems/Object/TileMap.h" #include "./Systems/Object/ObjectManager.h" #include "./Systems/Object/Tank.h" #include "./Scenes/TurnControl.h" AStarScene::AStarScene() { } AStarScene::~AStarScene() { SafeDelete(control); SafeD...
c5109a8faba382c5ae8ef9983c78f49287462650
4d6cd7e0e436a72474516bbca68dae55d96a7973
kovalch/TopAnalysis
/TopFilter/plugins/SemiLeptonicTopJetSelector.cc
C++
cc
3,431
no_license
#include "FWCore/Utilities/interface/EDMException.h" #include "DataFormats/PatCandidates/interface/Jet.h" #include "AnalysisDataFormats/TopObjects/interface/TtSemiLeptonicEvent.h" #include "AnalysisDataFormats/TopObjects/interface/TtSemiLepEvtPartons.h" #include "TopAnalysis/TopFilter/plugins/SemiLeptonicTopJetSelecto...
45409f5838d90db70964ba74a5928c3b3175ff9d
db4ea581d0b64f3fd86b4c5194929f61ff662d6e
jewells07/cpp-placement-DSA
/array/25-KadanesAlgo.cpp
C++
cpp
661
no_license
#include <iostream> #include <climits> using namespace std; void KadanesApproach(int arr[], int n) { int currentSum = 0; int maxSum = INT_MIN; for (int i = 0; i < n; i++) { currentSum += arr[i]; if (currentSum < 0) { currentSum = 0; } maxSum = max(ma...
f7f941064262b42cee39ca805431215d508005a6
e7be5c0eaeadbf0eb2e07eb0e0cd53533059dfc9
a-barthel/yash
/src/simple_command.hpp
C++
hpp
1,527
no_license
#ifndef __SIMPLE_COMMAND_HPP__ #define __SIMPLE_COMMAND_HPP__ /* UNIX Includes */ #include <sys/signal.h> #include <sys/types.h> #include <sys/wait.h> #include <sys/stat.h> /* Linux Includes */ #include <unistd.h> #include <signal.h> #include <dirent.h> #include <fcntl.h> #include <pwd.h> /* C includes */ #include <s...
91080ac7d2474fbcd3fdb88a3c7fc597fa9f0099
15d761be68790bdd3414aa27844201c361bbe0cc
singhalpranav22/Competitive-Coding
/magic/magic/main.cpp
C++
cpp
1,440
no_license
// // main.cpp // magic // // Created by Pranav Singhal on 27/12/19. // Copyright © 2019 Pranav Singhal. All rights reserved. // // // main.cpp // Magic_Square // // Created by Pranav Singhal on 07/12/19. // Copyright © 2019 Pranav Singhal. All rights reserved. // //Magic square is a square with each row or co...
ade2b2b77dd25172b070a0ebc606e43e563404cd
6c6c6905d81071ff8603beb3ae0fc5f4a146b2d7
codingtest/ChakraCore
/lib/Runtime/Library/IntlEngineInterfaceExtensionObject.cpp
C++
cpp
148,553
permissive
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
fc8fb4229a900f78fac7a58e53ad793e30219285
8c68ae37e4c03ebe9d5f50ad6985374640a5e4de
piotrkoziar/Lib80211Control
/src/scan_demonstration.cpp
C++
cpp
959
no_license
// Demonstration of Lib80211Control capabilities. #ifdef SCAN_DEMONSTRATION #include <iostream> #include <memory> #include "ComControl.h" #include "Interface.h" using namespace wiphynlcontrol; int main () { int index = 3; // index of wlp2s0 interface. try { // Create Interface object. auto iface = std:...
736abb0242a652cd7f72e3b749579643428b4d2b
7379feb202dd1464f53461cc4c7e5728f989615b
Dcreeron/twain_library_source
/source/cpp/ctlobtyp.cpp
C++
cpp
2,152
permissive
/* This file is part of the Dynarithmic TWAIN Library (DTWAIN). Copyright (c) 2002-2021 Dynarithmic Software. 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....
932e8b1d8ac071137193a1a9d4302067a09d52fa
89ee9eb0f6738728a32a43f879ce4615cd8f1a7f
ryanlockman333/UCDenver_School_Projects
/FundOfComp/Lab3/tabledata.cpp
C++
cpp
1,100
no_license
// This program will bring in two prices and two quantities of items // from the keyboard and print those numbers in a formatted chart. // Ryan Lockman: 101430670 // Headers #include <iostream> #include <iomanip> // Fill in the code to bring in the library for // formatted output. ...
118ffab86fdb95761404529489209152a30d7254
71cbf70afaa70a071e1e03a5274247895d046854
obs145628/ai-cpp
/include/ai/test/test-register.hh
C++
hh
301
permissive
#pragma once #include <iostream> class TestRegister { public: TestRegister(); virtual void init() = 0; virtual void run() = 0; virtual int success_get() const = 0; virtual int total_get() const = 0; protected: std::ostream& summary_os_; std::ostream& details_os_; };
c36f3b7af016647dc55d9e25be4327c940b52368
01d51798dacd2b251a8cc2dd6063b632a7169afe
Guillemsc/BeEngine-2D
/source/BeEngine/Functions.cpp
C++
cpp
5,751
permissive
#include <ctype.h> #include "Functions.h" #include "App.h" #include <stdio.h> #include <cmath> #include <random> #include <limits> #include "imgui.h" #include <stdlib.h> #include "Globals.h" // Returns the angle between two points in degrees float AngleFromTwoPoints(float x1, float y1, float x2, float y2) { float del...
8e8fa7d86706f181b96f888d26183e6c67baeb47
457ea1cce8a748c01c3d1f4defc40749ac792995
p0rtas/Hands-On-Design-Patterns-with-CPP
/Chapter04-Swap-and-the-standard-template-library/std_swap_nonmovable.cpp
C++
cpp
890
permissive
#include <iostream> #include <utility> class A { public: explicit A(int i) : i_(i) {} A(const A &rhs) : i_(rhs.i_) { std::cout << "A(const A&)" << std::endl; } A(const A &&rhs) = delete; A &operator=(const A &rhs) { i_ = rhs.i_; std::cout << "A = A&" << std::endl; return *this; } A &operator=(c...
cd4093e39e70f6a4728988a2fe31fff2727c3d1d
58f4b1f2d8c5a2ed925d57aeba12894db8b7ccb4
dankcoin/dankcoin
/src/torcontrol.cpp
C++
cpp
27,081
permissive
// Copyright (c) 2015 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 "torcontrol.h" #include "utilstrencodings.h" #include "net.h" #include "util.h" #include "crypto/hmac_sha256.h" #include...
727fa8fdfbb20c1ae6421093b038a6e57d865ced
26b3f413bf12b710dffbdc88175aabef8f1cc0e9
marijan14/QtWinSoft
/QML/QML-64/main.cpp
C++
cpp
1,058
no_license
#include <QGuiApplication> #include <QQmlApplicationEngine> #include <QQmlContext> #include <QQmlComponent> #include "todomodel.h" #include "todolists.h" #include "taskmodel.h" int main(int argc, char *argv[]) { QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QGuiApplication app(arg...
3e4c3f2216e79356a0ebd3e2356615ef80cc1c3c
8ff10b0ff827be30e22fcedb26bb0d0ea071f82b
AmitShukla2808/Competitive_Programming
/longestconnectedpath.cpp
C++
cpp
1,343
no_license
#include<bits/stdc++.h> using namespace std; vector<vector<int>>dir = {{-1,0},{1,0},{0,-1},{0,1},{-1,1},{1,-1},{1,1},{-1,-1}}; void solve(vector<vector<int>>&grid,vector<vector<bool>>&check,int &m,int &n,int i,int j,int c,int &answ){ if(i==m || j==n || i<0 || j<0 || grid[i][j]==0 || check[i][j]==true){ retu...
067a7333c1c7c7a66c189cb601d645c43bbb1390
0158ef3392bc98a2ae557363970920edf246a59d
Sixidiots/GKC
/public/include/system/Windows/_Module.cpp
C++
cpp
1,099
no_license
/* ** Copyright (c) 2013, Xin YUAN, courses of Zhejiang University ** All rights reserved. ** ** This program is free software; you can redistribute it and/or ** modify it under the terms of the 2-Clause BSD License. ** ** Author contact information: ** yxxinyuan@zju.edu.cn ** */ /* This file contains classes for g...
8c6ca1ee7751b947289f548d2e92027c821ebdc4
3a18d96210fe92b0c9bfaf853224bf93befa0145
ZTZEROS/Portfolio
/SampleServer/IntegratedApplicationProject/IntegratedApplicationProject/SubApplication/Console/AdvancedLogin/LoginWAN_ServerPlusPlus.cpp
C++
cpp
6,859
no_license
#include "stdafx.h" #include "AdvancedLogin.h" #include "LoginWAN_Server.h" AdvancedLoginWork LoginWAN_Server::ProcessWork(AdvancedLoginWork receivedWork) { AdvancedLoginWork sendingWork; WORD clientRequestIndex; WORD serverResponseIndex; AdvancedLoginClientPlayer* clientPlayerAddress; //sendingWork.SessionKey ...
93a97e24bbe48c56c8c3e12cff10e694d149038d
31ea3793f04b794588915cbee7b82c899646ba84
STabaresG/CursoFCII_UdeA-2020-2
/Documentos/Seguimiento1/CC1037669718/gauss/punto6a.cpp
C++
cpp
290
no_license
#include<iostream> #include<cmath> using namespace std; int main(){ cout << "Punto 6a sección 3.6:\n"; double mu = 90., sigma = 4., x = 80., pi = atan(1)*4, y; y = pow(2*pi*sigma*sigma ,-0.5)*exp(-0.5*pow((x-mu)/sigma,2)); cout << "El resultado es " << y << "\n"; return 0; };
c42ab0e80cf4a046f871c970e9eb1970ede9775f
b8007412ae3cfacd66701e4a034fbb1889f142c5
visualboyadvance-m/visualboyadvance-m
/src/wx/config/option-observer.cpp
C++
cpp
1,304
no_license
#include "config/option-observer.h" #include "config/option.h" namespace config { // An Option::Observer that calls a callback when an option has changed. class OptionsObserver::CallbackOptionObserver : public Option::Observer { public: CallbackOptionObserver(const OptionID& option_id, ...
7dfab1b27bf41b2b1194da427e65457e5fa13d0e
6c7a5d1b2f3ba39cc3fb25510f1e9ce141b28241
jjzhang166/WinNT5_src_20201004
/NT/com/svcdlls/trksvcs/trkwks/oidindex.cxx
C++
cxx
14,384
no_license
// Copyright (c) 1996-1999 Microsoft Corporation //+============================================================================ // // oidindex.cxx // // Implementation of CObjIdIndexChangeNotifier, which moniters the // object ID index for changes. When a change is received, the // CVolume is notified....
2a8372e1e306bd5b8c91784b534a14ac06b0801b
838be629f0289972cd444b5df1f5b5c4502d2bda
novakale/openvino
/src/core/tests/visitors/op/log.cpp
C++
cpp
413
permissive
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "unary_ops.hpp" using Types = ::testing::Types<UnaryOperatorType<ngraph::op::v0::Log, ngraph::element::f32>, UnaryOperatorType<ngraph::op::v0::Log, ngraph::element::f16>>; INSTANTIATE_TYPED_...
b36fdb132d38a620aecd08170078b8655c36b7d9
12599c6e44c8f83c8891c912e995a798020ea408
jzuniga-amd/rocSOLVER
/clients/include/testing_csrrf_solve.hpp
C++
hpp
20,001
permissive
/* ************************************************************************ * Copyright (c) 2023 Advanced Micro Devices, Inc. * ************************************************************************ */ #pragma once #include "client_util.hpp" #include "clientcommon.hpp" #include "lapack_host_reference.hpp" #includ...
4ab13e46ea9c0dc8598096cbe34feaf2b5dcd9f3
3e6df8276cb73994315c1acd2f44a121f6f9867d
MustafaSidiqi/drone-space
/Alpha-Learning/project_v1/src/ofApp.cpp
C++
cpp
2,758
no_license
#include "ofApp.h" #include "settings.h" #include "ofxNBxyz.h" //-------------------------------------------------------------- void ofApp::setup(){ //ofSetVerticalSync(true); ofBackground(255); /* ofSetSmoothLighting(true); pointLight.setDiffuseColor(ofFloatColor(.85, .85, .55)); pointLight.setSpecularC...
9273a8573238b24cd2fa5e178ee58fd9a4d7dea7
0b3f891445dbb755d5978ac2136564a8e7765c1a
seanande/hearing-aid
/Audio/analyze_print.cpp
C++
cpp
2,966
permissive
/* Audio Library for Teensy 3.X * Copyright (c) 2014, Paul Stoffregen, paul@pjrc.com * * Development of this audio library was funded by PJRC.COM, LLC by sales of * Teensy and Audio Adaptor boards. Please support PJRC's efforts to develop * open source software by purchasing Teensy or other PJRC products. * * P...
97a2f4d3d95c4bf4009b5e0089028bde3ba2de90
120773a0c8dd89600248e9a03de7cf10b7f87ca5
kito-cheng/LLVM-SVE
/unittests/Support/YAMLIOTest.cpp
C++
cpp
60,606
permissive
//===- unittest/Support/YAMLIOTest.cpp ------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
f863134e42ac4be8a329bae423320d851024ccb5
e3f1f40ac809a91b7f3effadcc12e6f00c5cea70
Aayush-Jain/dsaA2
/dsa15.cpp
C++
cpp
1,107
no_license
#include <iostream> #include <string.h> #include <math.h> using namespace std; int multiply(int A[],int length,int number){ int carry = 0; int product = 0; for(int i=0;i<length;i++){ product = A[i]*number + carry; A[i] = product%10; carry = product/10; } while(carry>0){ A[length] = carry%10; carry = ...
764c00bc1c3f564b88dda1b2168112426e554654
2f01385b2d35a0911c948ca33dda5e66cb7c42c6
perpernorbi/sminglamp
/app/main.cpp
C++
cpp
2,376
no_license
#include "button.h" #include "cyclingStateMachine.h" #include "gpiopwm.h" #include "pwmwebserver.h" #include "ws2812pwm.h" #include <user_config.h> static const char *WIFI_SSID = "norbi"; // Put you SSID and Password here static const char *WIFI_PWD = "S3ful3.3f4rk4"; // static const char *WIFI_SSID = "norbert"; // Pu...
8a001d4e04a966014058d29693d6182bd9981503
4539b8972dd2b188fb5268179ad6f863ae987d46
unknownbrackets/rpcs3-wxWidgets
/src/generic/treectlg.cpp
C++
cpp
123,728
no_license
///////////////////////////////////////////////////////////////////////////// // Name: src/generic/treectlg.cpp // Purpose: generic tree control implementation // Author: Robert Roebling // Created: 01/02/97 // Modified: 22/10/98 - almost total rewrite, simpler interface (VZ) // Copyright: (c) ...
8bcf016c01778b74369e2cebf02eb1427338a410
9deae380384035f23da253eb3c7dc9bb2076b193
Jedibassist/CPlus-Valencia
/MyGuiProject/MyGuiProject/MyGuiProject.cpp
C++
cpp
4,494
no_license
// MyGuiProject.cpp : Defines the entry point for the application. // #include "stdafx.h" #include "MyGuiProject.h" #define MAX_LOADSTRING 100 // Global Variables: HINSTANCE hInst; // current instance TCHAR szTitle[MAX_LOADSTRING]; // The title bar text TCHAR szWindowClass[MAX_LOADSTRING]; // the main w...
937d4e1b79736d1db53f18af6d2d5990daba2e67
aa9fa3c7809173ad98b733f7aeb6e78e99a7c277
fayechou/pcl
/apps/src/dem_ground_segmentation_example.cpp
C++
cpp
20,742
permissive
/* * Software License Agreement (BSD License) * * Copyright (c) 2012, Willow Garage, 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 source code mu...
417453cc5fd59e22c4d86ddcaa573dde0cefc12c
e97c51b3b324bd8306601975fad9c04bbd5d141a
FlyingJ/accelerated-cplusplus-short-course
/chap1/1.4.cc
C++
cc
283
no_license
#include <iostream> #include <string> int main() { { std::string const s = "a string"; std::cout << s << std::endl; { std::string const s = "another string"; std::cout << s << std::endl; } } return 0; } // main()
24ca54cd4baa1896c2c79b2073183b9a6b1ae0d0
17794781c575ead25f7bc7443ea6742848f33842
ebylund/ultimate-tic-tac-toe
/UltimateTicTacToe/Tile.cpp
C++
cpp
1,346
no_license
// ******************************* Erik Bylund ********************************// #include "Tile.h" Tile::Tile(double xIn, double yIn, double sizeIn) : Square(xIn, yIn, sizeIn), mOccupiedBy(-1) { } Tile::Tile(Square squareIn) : Tile(squareIn.getX(), squareIn.getY(), squareIn.getSize()) { } void Tile::d...
cfe926801a373bb615a5c37238664758a8e2b5dd
326412548137682aea6b9b7d584ffffb293ab568
chsbacon/zr-before-github
/SpySPHERES/alliance/CopyCat_v1.2.8_Nathans_copy.cpp
C++
cpp
8,425
no_license
//Begin page main //Begin page main //Begin page Awareness bool enSoonInLight() { #define seconds 4 float soonlightTail = (LIGHT_SPEED*seconds)+lightTail; if(soonlightTail>0.8f) soonlightTail-=1.6f; // if it's out of bounds, correct it float soonlightFront = (soonlightTail + 0.9f); // 0.7 for dark and 0...
9eabbe7ca0dd5a9d0b09d306a147fd2799a7d5d1
6086bb1e4e0ebe9157ca9806a32ba3320ad1d600
hl23889909/hi3515a-lsdvs
/lsdvs/lspp/configManage.cpp
C++
cpp
82,053
no_license
/* ******************************************************************************* ** Copyright (c) 2013, ** All rights reserved. ** ** description : 此文件实现了配置管理相关的函数, ** 用于其它模块获取、设置、保存系统配置。 ** date : 2013.11.24 ** ** version : 1.0 ***************************************...
2ddfae82c76bfdbb1b5e722a35f22e6082cd129c
7c892581d858a70fdfcc8cb5ff58d3f1f4818c07
arorabharat144/TheAdventuresOfEnchantedSkeleton
/X/Src/Texture.cpp
C++
cpp
3,611
no_license
//==================================================================================================== // Filename: Texture.cpp // Created by: Peter Chan //==================================================================================================== #include "Precompiled.h" #include "Texture.h" #include "Graph...
7b8a79f727ff2529dac9289f977ca9896b82940b
46a196dfbec174bdc08566e2104351b28a677ab9
sc2ad/BeatSaber-Quest-Codegen
/include/UnityEngine/GUIContent.hpp
C++
hpp
12,310
permissive
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" #include "beatsaber-hook/shared/utils/il2cpp-ut...
1db621b8befd449187c6993678aae34d892058ed
1b4d68ec4e554ce248ed27e4d47057f43fd665e4
themucha/airwindows
/plugins/MacVST/IronOxideClassic2/source/IronOxideClassic2Proc.cpp
C++
cpp
26,900
permissive
/* ======================================== * IronOxideClassic2 - IronOxideClassic2.h * Copyright (c) 2016 airwindows, All rights reserved * ======================================== */ #ifndef __IronOxideClassic2_H #include "IronOxideClassic2.h" #endif void IronOxideClassic2::processReplacing(float **inputs, flo...
a38f777262f1d0c329599e83ba87c95af39334bf
4cd85064ce3d6e433cdd661a4fe8d82ca92dda47
hackverket/bitcoin-abc-bitcore
/src/rpc/rawtransaction.cpp
C++
cpp
62,969
permissive
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2016 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 <chain.h> #include <coins.h> #include <config.h> #include <consensus/validati...
45383bb793019265ab109f99fe3418774c2b2c00
c50c153210d207a94b9ffe712e287d8151b4119b
xiaoge136/Meeting
/meeting-qt/setup/src/base/win32/path_util.cpp
C++
cpp
4,387
permissive
/** * @copyright Copyright (c) 2021 NetEase, Inc. All rights reserved. * Use of this source code is governed by a MIT license that can be found in the LICENSE file. */ // Copyright (c) 2012, NetEase Inc. All rights reserved. // // Wang Rongtao <rtwang@corp.netease.com> // 2012/5/31 // // utilities for pa...
614b194d679d4f972c0a07d20fdc9780a2df58be
118c6b6ee55d818268187c52be0eb8a7101fa3f1
tecle/LeetCode
/editDistance.cpp
C++
cpp
900
no_license
#include "myhead.h" class Solution { public: int minDistance(string word1, string word2) { //动态规划 int len1=word1.size(),len2=word2.size(); vector<int> v(len2,-1); vector<vector<int> > flag(len1,v); return D(word1,word2,len1,len2,flag); } int D(strin...
f96ca80df8c89d4b48d1f52c5eae50a161780be0
de0f0af86f8aff4e8df02e66d0e43558abc2a6b3
symphony701/SX31_201924261_20191d998
/TrabajoFinal/formperfil.cpp
C++
cpp
3,253
permissive
#include "formperfil.h" #include "ui_formperfil.h" #include "logeador.h" #include "busquedaBinariaUsuarios.h" #include "Graficador.h" #include <QGroupBox> #include <QLabel> #include <QVBoxLayout> #include <QHBoxLayout> #include <QPushButton> #include "User.h" #include "register.h" FormPerfil::FormPerfil(QWidget *paren...
d8ea07b52c0cb09034abce3a793267a6b6bb508d
c8db982e25a26ea56fbd7d4131b7056e337c44ee
ufz/ogs
/Applications/DataExplorer/VtkVis/VtkStationSource.cpp
C++
cpp
7,022
permissive
/** * \file * \author Karsten Rink * \date 2010-02-24 * \brief Implementation of the VtkStationSource class. * * \copyright * Copyright (c) 2012-2023, OpenGeoSys Community (http://www.opengeosys.org) * Distributed under a Modified BSD License. * See accompanying file LICENSE.txt or ...
1496324fd98586faf201ea078ce27e1c3d5caf95
0737a0247b9593ba363a8bc919dcc7d11293b6ec
JoshuaMasci/Genesis
/Sandbox/source/SandboxApplication.cpp
C++
cpp
1,437
permissive
#include "Sandbox/SandboxApplication.hpp" //Hardcoded for now #include "SDL2_Platform.hpp" #include "SDL2_Window.hpp" #include "OpenglBackend.hpp" #include "Genesis/LegacyRendering/LegacyImGui.hpp" #include "Genesis/Platform/FileSystem.hpp" #include "imgui.h" namespace Genesis { SandboxApplication::SandboxApplica...
9f330cfc673848a1a56a2b538cb841b8a81c2f5a
e4c4074be1d77860237bd63bd924e0ebe5c2631b
jariasf/Online-Judges-Solutions
/LeetCode/967 - Numbers With Same Consecutive Differences.cpp
C++
cpp
1,060
no_license
/****************************************************** ***Problema: Numbers With Same Consecutive Differences ***ID: 967 ***Juez: LeetCode ***Tipo: Brute Force, Recursion ***Autor: Jhosimar George Arias Figueroa *****************************************************/ class Solution { public: vector<int> res;...
c83d3ca96ddf1bddcdd066b24da9e92b352bba52
ddc6b827c7b08bcccd45f097a7518ce0c3b3005e
zchoud/OOP244
/Lab 8/Rectangle.cpp
C++
cpp
1,537
no_license
//Zian Choudhury //131048209 //OOP244NJJ //zchoudhury@myseneca.ca //03/24/2021 #define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <iomanip> #include <cstring> #include <string> #include "Shape.h" #include "Rectangle.h" using namespace std; namespace sdds { Rectangle::Rectangle() { m_width = 0; m_height ...
a66a38f8521860a318d178487495a0a15069fa49
ccee904fdb958b8b954a69969317afaea5c6d445
CorpVin/StrawberryCore
/src/strawberryrealm/RealmList.cpp
C++
cpp
6,443
no_license
/* * Copyright (C) 2010-2012 Strawberry-Pr0jcts <http://strawberry-pr0jcts.com/> * Copyright (C) 2005-2011 MaNGOS <http://getmangos.com/> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; ...
96abcd2efeb84f0fb46540c7f25bec254ac41ef7
91c24c75a7ea1e6ccf85e0dee350c98e32ab34db
EerieCode/ygopro-core
/field.cpp
C++
cpp
92,494
permissive
/* * field.cpp * * Created on: 2010-7-21 * Author: Argon */ #include "field.h" #include "duel.h" #include "card.h" #include "group.h" #include "effect.h" #include "interpreter.h" #include <iostream> #include <cstring> #include <map> int32 field::field_used_count[32] = {0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2...
3a6dc48dd6e3cb85f2f078b700d3a0b5e2c14f17
41c71e5d2747fdd1f4377a29cb3eb7dfe2dd2932
yjernite/craftassist
/client/src/agent.cpp
C++
cpp
13,541
permissive
// Copyright (c) Facebook, Inc. and its affiliates. #include <glog/logging.h> #include <math.h> #include <pybind11/numpy.h> #include <pybind11/pybind11.h> #include <pybind11/stl.h> #include <pybind11/stl_bind.h> #include <optional> #include <string> #include "client.h" #include "types.h" using namespace std; using ...
1eb816ee3306669888f8db632de8e49433fe6a19
448d171ced86758657c73d66839ba44a1bfbad89
yoshi5534/schorsch-the-robot
/src/Control2012/libreoffice/com/sun/star/style/TabStop.hpp
C++
hpp
2,139
no_license
#ifndef INCLUDED_COM_SUN_STAR_STYLE_TABSTOP_HPP #define INCLUDED_COM_SUN_STAR_STYLE_TABSTOP_HPP #include "sal/config.h" #include "com/sun/star/style/TabStop.hdl" #include "com/sun/star/style/TabAlign.hpp" #include "com/sun/star/uno/Type.hxx" #include "cppu/unotype.hxx" #include "sal/types.h" #include "typelib/typecl...
819a0112c9cf9608bbcd971c35264228796f9c35
13f1e1fca6a887897a5826ae025bc8ae11347881
soufianekhiat/libcouchbase
/tests/iotests/t_views.cc
C++
cc
17,311
permissive
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2011-2020 Couchbase, 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 * * ...
adeb1302e1335ac77f762bbfbd7c20dc6cb9814b
4d3c8a99eafc446d45b858b4aa173e1a4a1c9e9b
alexandreleroux/gdal
/gdal/frmts/ozi/ozidataset.cpp
C++
cpp
23,564
permissive
/****************************************************************************** * $Id$ * * Project: OZF2 and OZFx3 binary files driver * Purpose: GDALDataset driver for OZF2 and OZFx3 binary files. * Author: Even Rouault, <even dot rouault at mines dash paris dot org> * *************************************...
e3f4577dc64c9465d43e07217b12ea03c37f4afb
4d606900e6c5a64a207c13b93cdb2a0930c921db
xiang612/UAV_Formation_Ground_Station
/Ground_Station/Ground_Station/CVT/CVT.cpp
C++
cpp
3,556
no_license
// CVT.cpp : The funciton use centroidal voronoi tessellation(CVT) algorithm to // compute location of robots in 3D space, more details in CVT.cpp // Author : Junxun Zhong // Created date : 2016.11.15 #include <iostream> #include <vector> #include <cmath> #include <algorithm> #include "CVT.hpp" #include "CV...
47808ad35d54b5b7fbaccb723236f390e42ee0b5
7ecb0e5e28a842207a9ffd048fd6b7ec4d82d7ed
miere43/jatt
/src/TimeTracker/add_activity_info_dialog.cpp
C++
cpp
2,433
permissive
#include "add_activity_info_dialog.h" #include "ui_add_activity_info_dialog.h" #include "application_state.h" #include "error_macros.h" #include <QMessageBox> #include <QColorDialog> AddActivityInfoDialog::AddActivityInfoDialog(QWidget *parent) : QDialog(parent), ui(new Ui::AddActivityInfoDialog) { ui->s...
bbfc8333e0542715d3db963dbba3fce1b07ed841
5f7ec1b20f5716caafd720600f729512807e2880
pablo-lamtenzan/42Containers
/source_code/ft_rbtree.hpp
C++
hpp
74,952
no_license
/** @file ft_rbtree.hpp * * This file cointain the implementation of a Red-Black-Tree * used to implement @c map , @c multimap , @c set and @c multiset containers. * * Documentation: https://catherine-leung.gitbook.io/data-strutures-and-algorithms/red-black-trees * Deeper explenation in wikipedia. */ // ...
694dda3beea91ad413e7505b4d391370a241927a
f16fce991694128a86587e17b573fe77c8df6ddb
TheCoderRaman/GameBackbone
/Demo/Source/DemoRegion.cpp
C++
cpp
2,885
permissive
#include <GameBackboneDemo/DemoRegion.h> using namespace EXE; /// <summary> /// Initializes a new instance of the <see cref="DemoRegion"/> class. /// </summary> /// <param name="window">The window.</param> DemoRegion::DemoRegion(sf::RenderWindow & window) : regionGUI(window){ initGui(); } // public handles and call...
e07bc46fa67449d55ce313c137f65283d7e9731c
c6d12df03347a7bdc01b5ebf318c19ea1a8e5973
zhangzheng521/couchbase-lite-core
/REST/tests/RESTListenerTest.cc
C++
cc
9,942
permissive
// // ListenerTest.cc // // Copyright (c) 2017 Couchbase, Inc 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 // // U...
56025dba1ea31b3e871485f7f6665e2e3d1a13de
61c2c0414af2545f13ea5e23b475b91dd7224b70
shang766/multiview
/multiview/multiview_cpp/src/perceive/contrib/range-v3/include/range/v3/view/linear_distribute.hpp
C++
hpp
3,389
permissive
/// \file // Range v3 library // // Copyright Casey Carter 2017 // Copyright Gonzalo Brito Gadeschi 2017 // // Use, modification and distribution is subject to 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) // // Project ho...
48e4e999bcc5e2308a5156a41ea0830923db2fff
5ee56ee68a930453c13be32e6304b49dd5c0acc0
Shanmuga-Priya-D/Operating-Systems
/scheduling/srt.cpp
C++
cpp
1,073
no_license
#include<iostream> using namespace std; struct process { int at; int st; int ft; int wt; int status; }p[10]; int n; int execute(int time) { int small=1000; int index=-1; for(int i=0;i<n;i++) { if(p[i].status!=1) { if(p[i].at<=time) { if(p[i].st<small) { small=p[i].st; index=i; ...
152b48ad7cc900b6e4b19de4b8b1eb4fc274fcb3
c363c1b4fe38d2498f81e04d1c025d6b3aa03dbd
chenjianxing1/cmake
/a/demo.cpp
C++
cpp
307
no_license
#include <stdio.h> #include "sqrt.h" int main() { double b=25.0; double a=0.0; a=getSqrt(b); printf("\n"); printf("***********!!!!**************\n"); printf("I am demo a of MPIG0024:\na is %.lf, b is %.lf\n",a,b); printf("**************************\n"); printf("\n"); return 0; }
c4af7332ac285f56e4e4d8bd07ff3bca32a0b94d
3466e71405e3844202baffda7a27c12279984f3b
imhdx/My-all-code-of-Vjudge-Judge
/POJ/3744/18596542_CE_0ms_0kB.cpp
C++
cpp
1,139
no_license
#include<cstdio> #include<algorithm> using namespace std; struct M { double a[2][2]; }; void mul(M &a,M b) { double tmp[2][2]; memset(tmp,0,sizeof tmp); for (int i=0;i<2;i++){ for (int j=0;j<2;j++){ for (int k=0;k<2;k++) tmp[i][j]+=a.a[i][k]*b.a[k][j]; } }...
2069eaac77a94681e856c1a6e3e28579f1cd56f2
7e9ae28e73ca6a8850d598e837539115a834f2f1
OPENDAP/awsv4-cpp
/awsv4.cpp
C++
cpp
9,422
permissive
#include "awsv4.hpp" namespace AWSV4 { const std::string join(const std::vector<std::string>& ss,const std::string delim) noexcept { std::stringstream sstream; const auto l = ss.size() - 1; std::vector<int>::size_type i; for (i = 0; i < l; i++) { sstream << ss.at(i) << ...
8ccc2fdfe841cb25749dd6783cf6783b9b193a80
3156060a69ac295280517b40f459afe4b987081f
junxzm1990/ASAN--
/testcases/juliet_test_suite/testcases/CWE415_Double_Free/s02/CWE415_Double_Free__new_delete_array_struct_22a.cpp
C++
cpp
3,827
no_license
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE415_Double_Free__new_delete_array_struct_22a.cpp Label Definition File: CWE415_Double_Free__new_delete_array.label.xml Template File: sources-sinks-22a.tmpl.cpp */ /* * @description * CWE: 415 Double Free * BadSource: Allocate data using new and Deallocae dat...
689999172c0780805a414fa10f9a76f86498d1d5
cae632cbcb5b0c8aa319b22249963aef21bdd8c9
RNowak4/ZPR-Gra-w-Zycie-2
/Model/Actions/HerbivoreRandomWalking.cpp
C++
cpp
1,222
no_license
/** * @file HerbivoreRandomWalking.cpp * @brief Implementation of the HerbivoreRandomWalking class * * @author Radoslaw Nowak */ #include "HerbivoreRandomWalking.h" #include "../Animal.h" #include "../Attributes.h" #include "../Model.h" #include "../ViewStructs.h" #include "Eating.h" #include "Fleeing.h" #include "L...
ae6b3f5c3bd174a84a006d13eccc4c24ba2db387
cc7ad98721be9ae333256ecb0aef23277cdb7dc2
JakaWidjaja/Python-IB-execution
/class_c++/Random_Number/cauchy_random.cpp
C++
cpp
543
no_license
#include "cauchy_random.h" //Constructor cauchy_random::cauchy_random(uniform_random_number& c_uniform_number, const double& c_mu, const double& c_sigma): uniform_number (c_uniform_number), mu(c_mu), sigma(c_sigma) {} //Destructor cauchy_random::~cauchy_random() {} double cauchy_random::genera...
8c6cd2c604bbf31c641d2387c8fb3f2dbe8697ae
64e46e190ae6f5ecbf89509e0626cbd0ddebf6d8
jbcarpe4/dd-trace-dotnet
/tracer/src/Datadog.Trace.ClrProfiler.Native/clr_helpers.cpp
C++
cpp
59,629
permissive
#include "clr_helpers.h" #include <cstring> #include "dd_profiler_constants.h" #include "environment_variables.h" #include "logger.h" #include "macros.h" #include "pal.h" #include "sig_helpers.h" #include <set> #include <stack> namespace trace { RuntimeInformation GetRuntimeInformation(ICorProfilerInfo4* info) { ...
92a2e0d768ca7f7ceef48eb350a3848385cd0f2d
90955174ef1059de7c85e63ddae3a259de55a777
Sniperhid/1tac_misc
/addons/tm_dummy_addons/A3_GPNVG18/config.cpp
C++
cpp
399
no_license
#include "\x\tac1\addons\tm_dummy_addons\script_component.hpp" class CfgPatches { class A3_GPNVG18 { name = "1TAC_MISC Dummy: A3_GPNVG18"; author = "1TAC_MISC"; url = "http://www.teamonetactical.com"; units[] = {}; weapons[] = {}; requiredAddons[] = { QUOTE(ADDON) };...
bfbef3be94419c89a4342994f758f9ac21638087
176fd14203d3d20b39d2e91edb006f33bd2555b2
ChestnutHeng/LeetCode
/384.shuffle-an-array.cpp
C++
cpp
925
no_license
/* * @lc app=leetcode id=384 lang=cpp * * [384] Shuffle an Array */ // @lc code=start // 洗牌算法,遍历数组,交换 nums[i], nums[k] k = [i, nums.size()-1] 随机选一个 class Solution { public: vector<int> data; Solution(vector<int>& nums) { data = nums; } /** Resets the array to its original configuratio...
e7a4261796fe82a8fcb9045c109d1bdc3f1863dd
2acd4b5724dbaafb9d889561ebfa670f6bbd7065
KimHassan/2017_12_14_catch_game
/소스파일/Key.cpp
C++
cpp
299
permissive
#include "Main.h" void KeySetup() { pKeyImgSurface = SDL_LoadBMP("./img/key.bmp"); } void KeyRender() { int x=0, y=0; if (evnt.key.keysym.sym == SDLK_RETURN) GSstate = InGame; SDL_BlitSurface(pKeyImgSurface, NULL, pScreenSurface, NULL); } void KeyRelease() { SDL_FreeSurface(pKeyImgSurface); }
7e45c0b8bc6fa9ee6594dcbf04efa9130bea125c
e85f368bb01906543d961b9c1d29adf5e9100aa9
gaoliqiang/hurricane
/src/hurricane/tool/StartSupervisor.cpp
C++
cpp
1,260
permissive
#include "hurricane/service/Supervisor.h" #include "hurricane/util/Configuration.h" #include <iostream> #include <string> using namespace std; void StartSupervisor(const std::string& configFileName); int main(int argc, char *argv[]) { if ( argc < 2 ) { return EXIT_FAILURE; } StartSupervisor(argv[1]); ret...
3711d69a4967ed8a73863672a4f0ae04c1e68572
8e3b76c4cf5388856c7c45895ec118b62b3f2012
SirHall/volt_gfx
/volt_gfx/src/volt/gfx/global_events/GFXEventMonitor.cpp
C++
cpp
440
no_license
#include "volt/gfx/global_events/GFXEventMonitor.hpp" #include "volt/gfx/GLImport.hpp" using namespace volt::gfx; GFXEventMonitor::GFXEventMonitor(GLFWmonitor *monitor, MonitorEvent event) : mon(monitor), e(event) { } MonitorEvent::MonitorEvent(int v) : val(v) {} MonitorEvent MonitorEvent::Connected() { return M...
7cb68ef95f4168397c8fbd49228291236a3cbe7e
81ee107e0faa2029c6e5270336bc4f802700bd3f
IhorRyzhov/OOP_LB_3_phone_book
/oop_lb3/oop_lb3/call.hpp
C++
hpp
1,088
no_license
#pragma once // (C) 2013-2016, Sergei Zaychenko, KNURE, Kharkiv, Ukraine #ifndef _CALL_HPP_ #define _CALL_HPP_ /*****************************************************************************/ #include "calltype.hpp" #include "datetime.hpp" #include "messages.hpp" /************************************...
f86a2457dbafe7c5a78fd00ea622a6740e831214
626e6ded42a1238003e5301b8b09413ee65a8039
RaisinTheSteaks/MultiplayerCA_2
/GD4SFMLGameWorld/Gun.hpp
C++
hpp
574
no_license
/* Charlie Duff D00183790 */ #pragma once #include "Entity.hpp" #include "ShipID.hpp" #include "ResourceIdentifiers.hpp" class Gun : public Entity { public: Gun(ShipID type,const TextureHolder& textures); private: virtual void drawCurrent(sf::RenderTarget& target, sf::RenderStates states) const; /* Next iterat...
af2041fc69b1c6bb0e5029a634b47affa25cbd60
4fc989b1f75ea58bb55c900d65ab0d8cf5161687
bianzheng123/Simpfer
/Simpfer/file_output.hpp
C++
hpp
2,550
permissive
#include "data.hpp" #include <chrono> #include <unordered_set> /***** pre-processing setting *****/ // variable for time measure std::chrono::system_clock::time_point start, end, init; // computation time double time_pre_processing = 0; double time_norm_computation = 0; double time_lower_bound_computation = 0; doub...
f464c5b4f8a04467deba71868ef65e47de842d94
892c24e991e2662e465a30c843fb50d5c968050c
stand-by/Qt_PostgreSQL_application
/productpicker.cpp
C++
cpp
2,981
no_license
#include "productpicker.h" #include "ui_productpicker.h" ProductPicker::ProductPicker(QWidget *parent, QSqlDatabase db_): QDialog(parent), ModalFormBase(db_), ui(new Ui::ProductPicker) { ui->setupUi(this); disconnect(ui->table_goods, SIGNAL(cellDoubleClicked(int,int)), ui->table_goods, SLOT(handle_cell_doublec...
6eff64816fef03d62d8930e65e87f659049fab0e
71b2cda2062b08c1172d850c43217332b3250a73
hungryCrpt/zcoin
/src/chainparams.cpp
C++
cpp
24,435
permissive
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2015 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 "chainparams.h" #include "consensus/merkle.h" #include "consensus/consensus.h...
25504f5964412b67b67210b26588f1b85bef22ae
864354e0aff16c2e43b0fab40404e572c9107aea
MoonStart/Frame
/development/TL1Services/TL1Core/src/TL1_NotifFxFr.cpp
C++
cpp
748
no_license
/*----------------------------------------------------------------------------- Copyright(c) Tellabs Transport Group Inc. All rights reserved. SUBSYSTEM: Software Services TARGET: AUTHOR: June 16, 2003- Mathieu Lavoie DESCRIPTION: Implementation file for TL1 file transfer result Notificati...
6782f462edb618c806e2e56125a6904082851564
08d10b354a1da2b4adb3bd22dc0895cd4e294609
aliosmanulusoy/Probabilistic-Volumetric-3D-Reconstruction
/core/vpgl/vpgl_utm.cxx
C++
cxx
11,929
no_license
// stub file for IUE class IUE_UTM_geodetic_transform // generated by the IUE LateX macros from file // UTM_geodetic_transform.tex // Copyright (c) 1993 - 1997 Amerinex Applied Imaging, Inc. // 409 Main St Amherst, MA 01002 All Rights Reserved // Reproduction rights limited as described in the COPYRIGHT file. // A @c...
e54668b00462331c1fbca76f79c6c8e8ec02f28d
2f9e9f26e9257aa7a5d4a7516035007c381633ab
TakeMeGH/osn-2019
/osn-2019-mencari-emas/solutions/jonathanirvings_solution-5.cpp
C++
cpp
587
permissive
#include <bits/stdc++.h> using namespace std; struct Point { int x, y; Point(int x, int y): x(x), y(y) {} }; int query(Point P) { printf("? %d %d\n", P.x, P.y); fflush(stdout); int K; if (scanf("%d", &K) == EOF) { exit(0); } return K; } void answer(Point A, Point B) { printf("! %d %d %d %d\n",...
6ef94456ea8e8fe8aa904bb0d308a55f3f2f89e3
c633f4fa62e712e741bef60a188f55661935df51
LineageOS/android_external_v8
/src/compiler/graph-visualizer.cc
C++
cc
44,152
permissive
// Copyright 2013 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/compiler/graph-visualizer.h" #include <memory> #include <sstream> #include <string> #include "src/codegen/optimized-compilation-info.h" ...
5f0cdf8fa251481ac61680f380f733b0d987669e
e9def0044738c407420b52d1109137f572f0a332
nikezono/masstree-beta
/compiler.hh
C++
hh
37,253
permissive
/* Masstree * Eddie Kohler, Yandong Mao, Robert Morris * Copyright (c) 2012-2014 President and Fellows of Harvard College * Copyright (c) 2012-2014 Massachusetts Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation...
0b4af0cbd668312234ffa3e090ccfad6a351f03c
d04e834126433f07a5a3533bb9d35464863ca125
zhoujf620/LeetCode-Practice
/C++/1037.valid-boomerang.cpp
C++
cpp
1,076
no_license
/* * @lc app=leetcode id=1037 lang=cpp * * [1037] Valid Boomerang * * https://leetcode.com/problems/valid-boomerang/description/ * * algorithms * Easy (37.86%) * Likes: 120 * Dislikes: 237 * Total Accepted: 18.9K * Total Submissions: 50K * Testcase Example: '[[1,1],[2,3],[3,2]]' * * A boomerang is...
fa3c4f505186b389bbfc440d61f222ca14f8f661
a88e60050aadf09478d439af02f6d81132ac4990
xchsp/SDL-Mario-Bros.
/AnthonySturdy_Engine_GEC/AnthonySturdy_Engine_GEC/GameScreen_CustomLevel.cpp
C++
cpp
13,563
no_license
#include "GameScreen_CustomLevel.h" GameScreen_CustomLevel::GameScreen_CustomLevel(SDL_Renderer* renderer, int _mapSizeX, int _mapSizeY, GameScreenManager* _manager) : GameScreen(renderer, _manager) { mapSizeX = _mapSizeX; mapSizeY = _mapSizeY; SetUpLevel(); } GameScreen_CustomLevel::~GameScreen_CustomLevel() { ...
4c38e67a409ef34c9f7bd12bc68fdce9625ca9ac
cfe7d23754d420763b8dac086866776ab03589ae
devang191/algorithms_competitions
/codeforces/problem_set/802G.cpp
C++
cpp
866
no_license
#include <bitset> #include <vector> #include <list> #include <map> #include <set> #include <deque> #include <queue> #include <stack> #include <bitset> #include <algorithm> #include <functional> #include <numeric> #include <utility> #include <sstream> #include <iostream> #include <iomanip> #include <cstdio> #include <cm...
177333d14144c166672522bb9aee30fd48fbe016
37626aa14111f5bf76aeeb553b94b274723ea8af
brokenerk/SistemasDistribuidos
/Proyectos/P1 - C++/E6/main.cpp
C++
cpp
957
no_license
#include "Coordenada.h" #include "Rectangulo.h" #include "Ortoedro.h" #include <iostream> using namespace std; int main() { Ortoedro ortoedro; int origenX, origenY, origenZ, lejosX, lejosY, lejosZ; cout << "Ingrese las coordenadas para el vertice mas cercano al origen:" << endl; cout << "X: "; cin >> origenX; c...
df0d5b77f6b03c84898c0f31b226f1bbdbeb41ab
7710162a1fcbf9811d850b90c629cfcf88acebb2
FangyuChou/PCLLearning
/cluster_extraction.cpp
C++
cpp
4,227
no_license
// // Created by zfy on 2019/12/19. // #include <pcl/ModelCoefficients.h> #include <pcl/point_types.h> #include <pcl/io/pcd_io.h> #include <pcl/filters/extract_indices.h> #include <pcl/filters/voxel_grid.h> #include <pcl/features/normal_3d.h> #include <pcl/kdtree/kdtree.h> #include <pcl/sample_consensus/method_types.h...
9bff3f983ce5a20adacc2995ed37a080b86f1d33
68a272ee3a0345aa4cda299ffea7acc279d04a6a
loubaoyu/PowerGate
/Src/editbkrdialog.cpp
C++
cpp
17,153
no_license
#include <QMessageBox> #include "main.h" #include "editbkrdialog.h" BrokerServersDelegate::BrokerServersDelegate(QObject *parent) : QStyledItemDelegate(parent) { } QWidget *BrokerServersDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &/* option */, const QModelIndex &index) const { ...
059c4eb85c1ba423641ebca3ab015e838fb925a1
b688cdc2596323acf9a8a2906703c004bc7ad050
babasahebargade09/LOGICAL-PROGRAM-ON-DATA-STRUCTURE
/Assignment26.cpp
C++
cpp
4,552
no_license
/////////////////////////////////////////////////////////////////////////////////////////////////// // // 26.Write a program which accept source singly linear linked list from user and copy // // the contents into destination singly linear linked in descending order. // ////////////////////////////////////...