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
6fcfdd042e66c8384fc0d7729848d7ff9fa9384f
0893072c3f6e2379f95965e957e10de6009039f3
Dataunder/MFC_IEEE
/MFC_IEEE/MFC_IEEE.cpp
C++
cpp
2,806
no_license
 // MFC_IEEE.cpp: 定义应用程序的类行为。 // #include "pch.h" #include "framework.h" #include "MFC_IEEE.h" #include "MFC_IEEEDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // CMFCIEEEApp BEGIN_MESSAGE_MAP(CMFCIEEEApp, CWinApp) ON_COMMAND(ID_HELP, &CWinApp::OnHelp) END_MESSAGE_MAP() // CMFCIEEEApp 构造 CMFCIEEEApp::CMFCI...
48ded817ef029f0b7b3e86ae28e19c849cfb7fe7
f541ef27a1554e7d88e177799a3f4b858d798cc5
arnaudgelas/PointSetProcessing
/Tests/TestPointSetNormalOrientationToPoint.cxx
C++
cxx
3,182
no_license
#include <vtkFloatArray.h> #include <vtkMath.h> #include <vtkPoints.h> #include <vtkPolyData.h> #include <vtkPointData.h> #include <vtkSmartPointer.h> #include <vtkXMLPolyDataReader.h> #include <vtkXMLPolyDataWriter.h> #include <limits> #include "vtkPointSetNormalOrientationToPoint.h" static void WritePolyData(vtkPo...
18e1f860f086dc82aaa4cfddb88f1654c34b6872
e48414471435085f0a4e15acc4d877d075e6cdc6
Jivo/Cloth-Simulation
/work/src/bending_constraint.hpp
C++
hpp
538
no_license
#pragma once #include "constraint.hpp" #include "particle.hpp" class BendingConstraint : public Constraint { public: BendingConstraint(Particle &a, Particle &b, Particle &c, Particle &d, float target, float stiffness) : a(a), b(b), c(c), d(d), target(target) { this->type = ConstraintType::equality; ...
e494f1e54963ddba10cf6086db11ac2397135d10
3c4c543c9af67753216a583dfd632678797884aa
AranBorkum/Neutron
/eventDisplay/PrintRawDigits.cxx
C++
cxx
2,547
permissive
#include <iostream> #include <fstream> #include <sstream> #include <unistd.h> #include "TFile.h" #include "TCanvas.h" #include "TGraph.h" #include "TH2D.h" #include "TProfile.h" #include "TColor.h" #include "TStyle.h" #include "TPad.h" #include "canvas/Utilities/InputTag.h" #include "gallery/Event.h" #include "larda...
d72b3d5e7f0e8f915bc2a25c17064b05301ec533
2ae0779281813b88d828c3b3fa42d7db56f3e4cd
TencentCloud/tencentcloud-sdk-cpp-intl-en
/mdl/src/v20200326/model/InputStreamInfo.cpp
C++
cpp
5,061
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 ...
c061e43574b254e2e033e85312b07d10c5f3812f
6278a0712dce3f28c8b6e9f66e42bdee8a080808
pbharrin/wookiecoin
/src/util.cpp
C++
cpp
36,667
permissive
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2011-2012 Litecoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "util.h" #include "sync.h"...
8d08fe9b36a3657aee9100f85622af45a90c1727
0cf9eb6fb01b773762df75a57a34c11329fcbe21
johnmay/rdkit
/Code/ChemicalFeatures/Wrap/FreeChemicalFeature.cpp
C++
cpp
2,806
permissive
// $Id$ // // Copyright (C) 2004-2006 Rational Discovery LLC // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #define NO_IMPORT_ARRAY #inclu...
aa9579ad6cb0461ece7ad782d87887a230373c40
c9cb2f8a767632eb910856a992078a169b9a602c
Phirxian/cups-example
/src/network/file_descriptor.cpp
C++
cpp
1,820
no_license
#include "file_descriptor.h" #include "util.h" #include <unistd.h> using namespace std; namespace netsys { const size_t FileDescriptor::BUFFER_SIZE; FileDescriptor::FileDescriptor(const int fd) : fd_(fd), eof_(false), read_count_(0), write_count_(0) { } FileDescriptor::FileDescriptor(File...
75c757e76d0b2325a9d133c9519fe7ba25bedaf6
555674ea1ad0b9c6996f3caa311e163326db86f4
kevinxie4c/kMap
/kMap/FileIO.cpp
C++
cpp
2,086
no_license
#include "stdafx.h" #include "FileIO.h" #include "Graph.h" #include <cstdio> #include "vector.h" #include "tstring.h" #define FILE_NAME "kMap.dat" void ReadString(FILE *f, std::tstring &s) { size_t length; fread(&length, sizeof length, 1, f); TCHAR *buffer = new TCHAR[length + 1]; fread(buffer, sizeof TCHAR, leng...
23c0af82871adc9907e90e515af4c08ad1978477
bbf491136289f9e022b3713232f77ac1e2197fa1
samlewis02/AC_control
/main.cpp
C++
cpp
2,601
no_license
// // IR cotroller for bedroom A/C // Uses input from MQTT at /io.adafruit.com/samlewis02/dashboards/buttons // Uses two stage LED driver so IR PIN must be inverted // // Tested 27/5/18 // /************************** Configuration ***********************************/ #include <ESP8266mDNS.h> #include <ESP8266WebServer....
415c8e34e49fbe4c258e8e29379689b063cc53fc
6d386bc9b54f55ed9941f19ea5ef9527a88f3764
FuSoftware/QOsuBot
/src/ai/neural/neuralnet.cpp
C++
cpp
3,593
permissive
#include "neuralnet.h" NeuralNet::NeuralNet(std::vector<int> topology) { this->init(topology); } void NeuralNet::init(std::vector<int> topology) { this->topology = topology; this->node_count = 0; this->weight_count = 0; //Nodes initialization this->nodes.clear(); this->weights.clear(); ...
f5848fd86f5535d77f7111991c9a165c858f7a5a
42b37042e16196f7ce2fb07332219dcb338fd2c3
risooonho/ViewActivator
/Source/ViewActivator/Private/ViewWidget.cpp
C++
cpp
2,342
no_license
#include "ViewWidget.h" #include "ViewActivatorPlugin.h" #include "WidgetAnimation.h" #include "UObjectBaseUtility.h" #include "ScriptDelegates.h" void UViewWidget::NativeConstruct() { UUserWidget::NativeConstruct(); GetAnimations(); } bool UViewWidget::SetContext_Implementation(UObject* Context) { return true; ...
002b560e2a3752eda91c05c3747b65e8eec3674f
1903fc7b3a65dddaee7c62b13369240261bc6301
caojiaju-2017/libXMedia
/MyFFMPegProject/libmediax/MediaHelper.cpp
C++
cpp
12,494
no_license
#include "stdafx.h" #include "MediaHelper.h" #include <string> #include <iostream> // 全局上一次读包时间---超时处理。 int64_t lastReadPackTime; int TIMEOUT_SECONDS = 30; void MediaHelper::Init() { av_register_all(); avfilter_register_all(); avformat_network_init(); avdevice_register_all(); av_log_set_level(AV_LOG_ERROR); } ...
1683cb1c021229ea181b6fca2c8d6ef6450e8a96
5cf9276cf2fcff71bae821e560c292acf9ac528b
cw100/SoT-SDK
/SDK/SoT_wld_sea_rock_cluster_d_classes.hpp
C++
hpp
3,093
no_license
#pragma once // Sea of Thieves (1.4) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "SoT_wld_sea_rock_cluster_d_structs.hpp" namespace SDK { //--------------------------------------------------------------------------- //Classes //-----------------------------------------------------------------------...
6c9c258c98ddbd9b713e0ccb86d976fd1e65ffc1
3783b24eafc77fe29523058206ff94fdb20bd94e
flylong0204/projects
/src/mains/dime/list_subsampled_images.cc
C++
cc
4,998
no_license
// ======================================================================== // Program LIST_SUBSAMPLED_IMAGES is a little utility program which we // wrote to generate a list of subsampled panoramas that serves as // input to program STABILIZE_PANOS. It also creates a new // subdirectory of /data/DIME/bundler which we...
2cc0a7d771ea4e8b943dd6549f91649f38fda3f9
14194c0138aca04895cfb6fcc4bde721bc66cf63
clefchou/modulation-VNE
/xuniyinshe/simulation.cpp
C++
cpp
745
no_license
#include"Graph.h" #include"Schedule.h" #include"common.h" void main(){ //srand((unsigned)time(NULL)); double lamda; double mu = 1; //scanf("%lf", &lamda); lamda = 2; //for(lamda = 10; lamda <= 100; lamda += 10) { char route[30] = "outputData_00.txt"; route[11] = ((int)lamda)/10%10+'0'; ...
4c63bfc83029e5f1244ea1dc1313896c37644c1b
7cd8fac640fd8411b766f2bead98249e2cde0323
ghutchins/CSC112-Pixel-Linked-List-Class-Part-3
/pixellist1.cpp
C++
cpp
2,888
no_license
/** * @file pixellist1.cpp * @author Georgina Hutchins (hutcgb12) * @date 04/21/2014 * @version 1.0 * * @brief CSC 112, Lab 11, The PixelList Class * * @section DESCRIPTION * * The pixellist1.cpp source file contains the half of the member * function definitions for the PixelList class, which stores...
9a416d64f24fd7fa9f5117b310f943e6f0331f68
fc4981d0a4ed599d85672bb88e900bcc144c06ff
zx105/rmq
/RMQ_segB.cpp
C++
cpp
2,314
no_license
#include "RMQ_segB.hpp" #include <cstdio> RMQ_segB::RMQ_segB(DT* b,int c) { // we need 2 extra nodes int k = log2fast(c+1)+1; this->n = 1<<k; a = new tup[2*n]; a[n] = tup(n,MAX,0); for(int i=1;i<=c;++i) a[i+n] = tup(i+n,b[i-1],0); for(int i=c+1;i<n;++i) a[i+n] = tup(i+n,MAX,0); for(int i=n-1;i>=1;--i) { if(...
0e503536bfd27e425bb454440bbb4fd88db076db
1d35b4df65fecc2f6032a1f777f72de477816488
trizdreaming/CPP_battleShip
/cpp_battle_Ship_v3.01/cpp_battle_Ship_v2/Submarine.cpp
C++
cpp
324
no_license
#include "stdafx.h" #include "Submarine.h" CSubmarine::CSubmarine(void) { m_Name = "Submarine"; m_Type = SUBMARINE; m_HP = 1; } CSubmarine::~CSubmarine(void) { } HITRESULT CSubmarine::HitCheck(Position hitPos) { HITRESULT result = CShip::HitCheck(hitPos); return(result ==DESTROY) ? DESTROY_SUBMARINE : resul...
5c1d3d8aa366a248f5a6cf18a8ce802b0f068464
af69ad59bc8a3d84cf14dfde314941e886e55324
emfomy/mcnla
/include/mcnla/core/matrix/base/vector_ostream_wrapper.hpp
C++
hpp
1,431
permissive
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// @file include/mcnla/core/matrix/base/vector_ostream_wrapper.hpp /// @brief The vector output-stream wrapper. /// /// @author Mu Yang <<emfomy@gmail.com>> /// #ifndef MCNLA_CORE_MAT...
5fff3897d79f58db576c20b0a391a44cbc68f565
1d2772e9d0d581c67a65785b1191c919439db157
leozimmerman/ofxMSATensorFlow
/libs/tensorflow/include/tensorflow/cc/ops/candidate_sampling_ops.cc
C++
cc
16,307
permissive
// This file is MACHINE GENERATED! Do not edit. #include "tensorflow/cc/ops/const_op.h" #include "tensorflow/cc/ops/candidate_sampling_ops.h" namespace tensorflow { namespace ops { AllCandidateSampler::AllCandidateSampler(const ::tensorflow::Scope& scope, ::tensorflow::Input...
39fb8454757c80d7dc7148604124f4c0fe452bef
856a92a4272e4e0d15b9722819d3dfdb541013f4
clb931/SoftwareRenderer
/SoftwareRenderer.cpp
C++
cpp
11,791
no_license
#include "stdafx.h" #include "ATLAS_Model.h" #include "ATLAS_RenderContext.h" #include "ATLAS_Texture.h" #include "ATLAS_Win32.h" INTERN ATLAS::Window window; INTERN ATLAS::RenderContext *pRC; INTERN ATLAS::Texture *font[2]; INTERN ATLAS::Model *model[3]; INTERN int32 font_index = 0; INTERN int32 model_index = 0; LR...
12c05361c4c8690aa1012022c7b00a7ac5fce1d2
c2a1a7c67f3d551e2fcc3d1fd9835a9024b2d141
RahulSundar/PetIBM
/src/linsolver/linsolveramgx.cpp
C++
cpp
2,843
permissive
/** * \file linsolveramgx.cpp * \brief Implementation of LinSolverAmgX. * \copyright Copyright (c) 2016-2018, Barba group. All rights reserved. * \license BSD 3-Clause License. */ #include <cstdio> #include <fstream> #include <iostream> // PetIBM #include <petibm/linsolveramgx.h> namespace petibm { namespace li...
9e228c3223208c00874c6eedcc02d31734ba663d
c8f817cd731a31ab9fe17b3e9009a6257d99b976
wdzeng/cp-solutions
/codeforces/gym/100507/d.cpp
C++
cpp
2,290
no_license
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef pair<double, double> pdd; #define iter(x) x.begin(), x.end() #define ms(x) memset(x, 0, sizeof(x)) #define mss(x) memset(x, -1, sizeof(x)) #define money first #define ad second vector<pii> alone, share; int adone, a...
adee536031429bbfc8316062b5f39fe084e27c28
15fca36e2fe88d206d97e971f267c0e244e912c8
jamaicacoin/jamaicacoin
/src/test/DoS_tests.cpp
C++
cpp
7,246
permissive
// Copyright (c) 2011-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. // Unit tests for denial-of-service detection/prevention code #include "chainparams.h" #include "keystore.h" #include "net.h...
8c84f6a344f993925083fc103bae4a70f8ce1d05
9cc6095ef059de03a890bd1f704c6003583eab44
daring-board/CodeIQ
/7counter.cpp
C++
cpp
1,110
no_license
#include <iostream> #include <string> #include <vector> #include <cctype> #include <cstdlib> #include <math.h> using namespace std; int getDigOne(int num){ return( (num < 7)? 0: 1); } int getDigNum(int num, int d){ return(num*d*pow(10, d-1)); } int main(){ string line; vector<int>...
eea5b4bef816040cbe38ce927cf46fc477b0aa2a
79913c3da737520b5a3c309acb287962e01fc3c0
DDan1l232/SoT-SDK
/SDK/SoT_BP_PromptActor_EmissaryEncounteredAIShip_GH_functions.cpp
C++
cpp
2,864
no_license
// Sea of Thieves (2.0.17) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "SoT_BP_PromptActor_EmissaryEncounteredAIShip_GH_parameters.hpp" namespace SDK { //--------------------------------------------------------------------------- //Functions //--------------------------------------------------------...
73dba7fe0ec85d899deb531069bf4c69c11cfaef
1c7d31081e3bfa45854554370749856ecc6f5d33
xiaokai-wang/kudu
/src/kudu/tablet/transactions/transaction_tracker.cc
C++
cc
9,586
permissive
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
09fcc70d05183b45625e57032417989056db4a3f
333effcf3a6d8de16942f02d0be21c91ec262778
uyongw/Deep-learning-math-kernel-research
/src/kernel/elk_conv_wino_2x2_3x3_weights.hxx
C++
hxx
3,902
permissive
#pragma once #include <x86intrin.h> #include "el_intrin.hpp" #include "elk_def.hpp" #include "el_utils.hpp" #include "elk_conv_wino.hpp" namespace euler { template <typename WeightsType, int V> struct elk_conv_wino_trans_weights<float, WeightsType, ISA_AVX512, 4, 3, V> { constexpr static int A = 4; constex...
3b974177044c3b653a0bd662ea9c26d44b27ed0d
bdd59e245c26ee8aa31d986f42aee78941f0bd74
Kot-Angens/acm
/acmp.ru/379, Game with date/c++/problem.cpp
C++
cpp
3,887
no_license
#include <iostream> #include <vector> #include <map> #include <set> #include <stack> #include <queue> #include <sstream> #include <fstream> #include <iomanip> #include <iterator> #include <numeric> #include <limits> #include <algorithm> #include <string> #include <cstdio> #include <cstdlib> #include <cstring> #include ...
f85ef635181781fccc55f797c8b2a3a5fe7ecebc
773a36ad1cf9617621ee9ffd34fee0ad3a065f69
vikash1976/v8
/src/factory.cc
C++
cc
84,420
permissive
// Copyright 2014 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/factory.h" #include "src/allocation-site-scopes.h" #include "src/base/bits.h" #include "src/bootstrapper.h" #include "src/conversions.h" ...
8ef44f307dff085e6975556364a056ea5af79b9f
0387f64804f96e4b220df3641e6c1063c2d269f4
DDan1l232/SoT-SDK
/SDK/SoT_EmissarySecuredLootOnShip_MA_PromptAccessKey_parameters.hpp
C++
hpp
399
no_license
#pragma once // Sea of Thieves (2.0.17) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "SoT_EmissarySecuredLootOnShip_MA_PromptAccessKey_classes.hpp" namespace SDK { //--------------------------------------------------------------------------- //Parameters //-------------------------------------------...
47f9ca19245beaf6bafc1c79b4c2dacdc335ce44
3d0383ffb23845819115255d65bbdba0ff8233e5
barulicm/cupola
/src/main.cpp
C++
cpp
1,062
permissive
#include <QApplication> #include <QQmlApplicationEngine> #include <QtQml/QtQml> #include "RepositoryListModel.h" #include "GitBackend.h" #include "PersistenceManager.h" int main(int argc, char** argv) { QApplication app(argc, argv); qmlRegisterType<Repository>(); qRegisterMetaType<Repository>(); qmlRegisterTy...
41ed2dfdd11ff4010d384a44cb77167e09772be1
3496f51f909ea3ecc9bb2976de0f6b4909e1e1eb
TSwiftie/ACM
/others/Train1/b.cpp
C++
cpp
685
no_license
#pragma GCC optimize(2) #include <bits/stdc++.h> #include <ext/rope> //#define int long long #define lowbit(x) (x&-x) #define SZ(x) ((int)x.size()) #define all(x) x.begin(),x.end() #define lc (o<<1) #define rc (o<<1|1) #define IOS ios::sync_with_stdio(false);cin.tie(0);cout.tie(0) using namespace std; //mt19937 rnd(tim...
d2a9a8d2ca4d0ae6aff0a751ca9b43e89f0104f5
af20b6047bef52d22c6d70c8b6da870e033ecbac
gge91/EE635-personal
/LAUImageWidget/lauimagewidget.cpp
C++
cpp
18,962
no_license
#include "lauimagewidget.h" #include "locale.h" #include <QVector2D> /****************************************************************************/ /****************************************************************************/ /****************************************************************************/ LAUOpenGLWidge...
66137839eb7bef19b1868a074455c392063cd4b7
c6d77a2c634439f5bcabd962a5635527be9de024
kate-ly-zhao/Eckel_ThinkingInCPP
/Chp10/Questions/C10Q35.cpp
C++
cpp
287
no_license
// C10Q35.cpp /* Without including a header file, declare the function puts( ) from the Standard C Library. Call this function from main( ). */ #include <iostream> using namespace std; extern "C" int puts(const char *str); int main() { puts("Dark side of the moon"); }
5fde946211fa63c9988990d15f05cb9b44fa9d1e
0affddaac28568b1488f64b8d877413b98b6831c
jlblancoc/suitesparse-metis-for-windows
/SuiteSparse/Mongoose/Include/Mongoose_GuessCut.hpp
C++
hpp
1,069
permissive
/* ========================================================================== */ /* === Include/Mongoose_GuessCut.hpp ======================================== */ /* ========================================================================== */ /* -------------------------------------------------------------------------...
8deae1a442a1ce31a7524faa3223f3973c64ec5d
fbbc59a7659b90a3846739bf02ad67c063fb0664
sas/sasm
/src/utils/arg_parse.cpp
C++
cpp
2,360
permissive
#include "arg_parse.h" #include <algorithm> #include <cstdlib> #include <iostream> extern char* __progname; /* From crt0.o */ namespace sasm { namespace utils { auto arg_parse::options_proxy::operator()( char flag, bool has_arg, const std::string& description, bool mandatory ) -> options_proxy& { ...
cee0c8a9c114869b6479b5418e8883c19d05e589
a58aa405acf7add0a8ea28f782e052af7f30a86f
arufonsekun/computer-science-codes
/semester-iii/EDII/seg-tree/dangerPath.cc
C++
cc
1,805
no_license
#include <iostream> #include <vector> #include <tuple> #include <bitset> using namespace std; typedef tuple<int,int,int> iii; vector<int> monsters; vector<iii> tree; int query(int b, int e, int i){ if (get<0>(tree[i]) == b and get<1>(tree[i]) == e) return get<2>(tree[i]); if (get<0>(tree[i]) == get<...
6c99eeed70c0689cbb8dc41043ce66f73029009e
621f53f1af5704be0c02f3adb283dd26a1def651
CentroNet-Marketing/rubinius
/vm/objectmemory.cpp
C++
cpp
38,908
permissive
#include <stdlib.h> #include <iostream> #include <iomanip> #include <sys/time.h> #include "config.h" #include "vm.hpp" #include "objectmemory.hpp" #include "capi/tag.hpp" #include "gc/marksweep.hpp" #include "gc/baker.hpp" #include "gc/immix.hpp" #include "gc/inflated_headers.hpp" #include "gc/walker.hpp" #if ENABLE_...
3c68e8acc88057e801765d7befb7b5489d0c76ad
f9689f10f936e4dd198b801cb372e183073fe04d
zxwnstn/ReturnZero
/02. MapTool/src/Game/GameScene/MapToolScene.cpp
C++
cpp
30,278
no_license
#include "stdafx.h" #include "MapToolScene.h" #include "../../vendor/Json/inc/json.h" //general void MapToolScene::update(float _deltaTime) { cameraMove(); if (m_ptMouse.x < UIOffset) TileWindowUpdate(_deltaTime); else UIupdate(); } void MapToolScene::release() { treeVector.clear(); tileVector.clear(); bus...
bd08430828edeede7bb12a6acb994b85a686bcfd
f89199b19324431609cb513738c59ea7e367e5e4
mvilim/bamboo
/cpp/src/json.cpp
C++
cpp
2,414
permissive
// Copyright (c) 2019 Michael Vilim // // This file is part of the bamboo library. It is currently hosted at // https://github.com/mvilim/bamboo // // 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 Lic...
96ca82f0aabeff9c5a0ab7da33d4b0b150b135d2
f0e23ba99d22b931aeb2623eb9f53e88ae9b3920
adstraw/ngraph
/src/ngraph/op/detection_output.cpp
C++
cpp
4,419
permissive
//***************************************************************************** // Copyright 2017-2020 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://w...
f2df387cb16edf1fe02f29335a5d5c45dc6d6728
f3f81b867b3d865d06b6434929cb120dd8e3611e
AndyJMR/ITK
/Modules/Filtering/Thresholding/include/itkIsoDataThresholdCalculator.hxx
C++
hxx
3,082
permissive
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
ab8f6c599a9a716fd16871990bb7a9e0b97bf8f9
99a7010ba7db1e4d3672953e4bace17e4326c60a
chas-bean/SchoolRepo
/CSE 335/SouthParkAnimationUI/Part2/CanadianExperience/CanadianExperience/ButchFactory.cpp
C++
cpp
3,619
no_license
/** * \file ButchFactory.cpp * * \author Charles Bean */ #include "stdafx.h" #include "ButchFactory.h" #include "ImageDrawable.h" #include "PolyDrawable.h" #include "HeadTop.h" using namespace std; /** \brief Constructor */ CButchFactory::CButchFactory() { } /** \brief Destructor */ CButchFa...
c4645070f9748383b5a4a744731c645adbf54af3
845b739465218181d5c7b23a7f70e521ce75ea26
djalmaloliveira/senai
/Apaga_Caracter_da_Frase.cpp
C++
cpp
820
no_license
/* 3. Crie um programa que recebe uma string e um caractere, e apague todas as ocorrências desses caractere na string. */ #include <stdio.h> #include <stdlib.h> #include <string.h> main(){ char frase[80],frase2[80], caract[10], caracter[10]; printf("Sistema que apaga todas as ocorrecias do caracterna st...
8c7683c4501175d3902f99f75e374c9fe266068c
10ce0037e83900abc0539af66f0b7ee6450db0cd
dusthandler/CITM_Proyecto_1
/Code/LastResort_v02/Application.cpp
C++
cpp
1,416
no_license
#include "Application.h" #include "ModuleWindow.h" #include "ModuleRender.h" #include "ModuleInput.h" #include "ModuleTextures.h" #include "ModuleBackground.h" #include "ModulePlayer.h" #include "ModuleAudio.h" Application::Application() { modules[0] = window = new ModuleWindow(); modules[1] = render = new ModuleRen...
8afb30987d525708035976c5581c28cbaa2f0990
0b23061a71b16d4c724d50076cdbacba8790bf4d
samuel21119/Cpp
/UVa/Code/11062 - Andys Second Dictionary.cpp
C++
cpp
1,427
no_license
/************************************************************************* > File Name: 11062 - Andys Second Dictionary.cpp > Author: Samuel > Mail: enminghuang21119@gmail.com > Created Time: Wed Jan 3 10:09:16 2018 *************************************************************************/ #include <iostream>...
256db07ff5767abe7e5582fe17fd179043bff8e2
8daa69b0614e71bc18f3cf7481ea980a4fb89c93
ljwoo94/LeNet5-CUDA
/src/main.cpp
C++
cpp
6,220
no_license
#include "LeNet5_cpu.h" #include "LeNet5_cuda.h" #include "common.h" #include "util.h" /* Summary: Return format string */ template <typename... Args> std::string format_string(const std::string& format, Args... args) { size_t size = snprintf(nullptr, 0, format.c_str(), args...) + 1; std::unique_ptr<char[]> bu...
1120b453c56c02b44ceb2532800b7149ab2c071f
96c4da0a610a0a86d2a4ba8cb627f588614f3573
s5kumar/pisecuritycam
/main.cpp
C++
cpp
19,446
no_license
/* Includes */ #include <unistd.h> /* Symbolic Constants */ #include <sys/types.h> /* Primitive System Data Types */ #include <errno.h> /* Errors */ #include <stdio.h> /* Input/Output */ #include <stdlib.h> /* General Utilities */ #include <pthread.h> /* POSIX Threads */ #include <string.h> /*...
3d63217c59d718bfd7e755ed514e14f486cbdebc
bfb21bb517eae1d506e292dd6f99dd479f0e947c
majoyz/leetcode
/sort/selectSort.cpp
C++
cpp
519
no_license
/// /// @file selectSort.cpp /// @author majoyz(zmj-miss@live.com) /// @date 2018-06-21 14:00:51 /// #include <iostream> using namespace std; void select_sort(int a[],int n){ int min,tmp; for(int i=0;i<n;++i){ min = i; for(int j=i+1;j<n;++j){ if(a[j]<a[min]) min = j; } if(min!=i){ tmp...
617a5c6a62b083736fb8780d64d569b7dc4c452c
ad88da43e4526f363406775a700b62920e1a3f31
niuxu18/logTracker-old
/second/download/CMake/CMake-old-new/CMake-old-new/Kitware_CMake_patch_233.cpp
C++
cpp
4,115
no_license
@@ -19,13 +19,42 @@ #include <assert.h> -int cmCoreTryCompile::TryCompileCode(std::vector<std::string> const& argv) +int cmCoreTryCompile::TryCompileCode(std::vector<std::string> const& argv, + bool isTryRun) { this->BinaryDirectory = argv[1].c_str(); this->OutputFile = "...
6ae2a83cf9d8d6fd9477919b784ea2fe05e4a49d
65f9b5a8b8aca88055a83abec59e8391d55fffe3
yurkth/OpenSiv3D
/Siv3D/src/Siv3D-Platform/macOS/Texture/GL/Texture_GL.cpp
C++
cpp
19,842
permissive
//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2019 Ryo Suzuki // Copyright (c) 2016-2019 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # include <Siv3D/EngineLog.hpp> # include "Text...
f9869e1ff838b0a953f19690b3a0f688f1d6e5b1
4d65c399e7e684a543680af7b9738d96e32a4b7e
bacilladoro/ZenonEngine
/znRenderDX11/RenderTargetDX11.cpp
C++
cpp
6,726
no_license
#include "stdafx.h" // General #include "RenderTargetDX11.h" namespace { D3D11_RECT TranslateRect(const Rect& rect) { D3D11_RECT d3dRect = { }; d3dRect.top = static_cast<LONG>(glm::round(rect.Y)); d3dRect.bottom = static_cast<LONG>(glm::round(rect.Y + rect.Height)); d3dRect.left = static_cast<LONG>(glm::rou...
143b440421a240b96d2124869dbd1f112203867a
625096943f5279dd3cdc9574d707b0d9aa80170f
jimgao1/competitive-programming
/DMOPC/dmpg15b5.cpp
C++
cpp
495
no_license
#include <bits/stdc++.h> #define MAXN 501 using namespace std; int N, K, L, cnt = 0, intense[MAXN]; int main(){ cin >> N >> K >> L; for (int i = 0; i < N; i++) cin >> intense[i]; for (int i = 0; i < N; i++){ int tl = max(abs(intense[i] - intense[(i + 1) % N]), abs(intense[...
21b58417a1062dad26a6d98d8d78dbe55fafd670
6de4131850371cba1aae16d9082a1a67e6f2e9d9
VitalyVorobyev/B0toD0h0
/CPFit/zAscFit.cpp
C++
cpp
3,220
no_license
using namespace RooFit; void zAscFit(void){ TFile *omegafile = TFile::Open("/home/vitaly/B0toDh0/TMVA/FIL_b2dh_sigOmega_s1_full.root"); TTree *omegatree = (TTree*)omegafile->Get("TEvent"); const double init_scale = 100.; const double z_min = -0.5; const double z_max = 0.5; RooArgSet argset; RooCategor...
8e65bb8f02677afbc58c9abae080c8bcb3e647b6
74e1a93f44900cdcd47ecfbc2bbd7976ca8ceeae
krallin/CMake
/Source/cmAddLibraryCommand.cxx
C++
cxx
12,973
permissive
/*============================================================================ CMake - Cross Platform Makefile Generator Copyright 2000-2009 Kitware, Inc., Insight Software Consortium Distributed under the OSI-approved BSD License (the "License"); see accompanying file Copyright.txt for details. This softwa...
3d093cfda30be25e603bea8c067e97e6fe65a872
9bb6402682295ad603f167c5e1876f9024b24ad5
zhjiang22/CAS_SpMV
/SpMV/.history/v4/Csrsparse_20210614161545.hpp
C++
hpp
2,773
no_license
#include<iostream> #include <hip/hip_runtime_api.h> // hipMalloc, hipMemcpy, etc. #include <stdio.h> // printf #include <stdlib.h> // EXIT_FAILURE #include <hip/hip_runtime.h> #define MIN((a), (b)) ((a) < (b) ? (a) : (b)) #define MIN((a), (b)) ((a) > (b) ? (a) : (b)) enum sparse_operation {operat...
19e454a84e704c9efb5c0dc8b0276aaf44673d1a
2190d97cf633894f83e7eb46b3407c123144bde2
Dormin92/TanksGame
/Battlegrounds/Source/Battlegrounds/TankMovementComponent.cpp
C++
cpp
1,078
no_license
// Fill out your copyright notice in the Description page of Project Settings. #include "TankMovementComponent.h" #include "TankTrack.h" void UTankMovementComponent::Initialise(UTankTrack* LeftTrackToSet, UTankTrack* RightTrackToSet) { if (!ensure(LeftTrackToSet && RightTrackToSet)) { return; } LeftTrack = LeftTra...
8fd14c8568d83b3a74dc4e2c262ef9f587596977
fba4c553e699a35f78f9d887730eebdd25262f6b
Juno12343412/3DFrameWork
/Sky.cpp
C++
cpp
450
no_license
#include "DXUT.h" #include "Sky.h" void Sky::Init() { mesh = IMAGE->FindMesh(L"Sky"); } void Sky::Update() { RotatePos(Vector3(0,D_TIME * 100,0)); } void Sky::Render() { IMAGE->MeshRender(mesh, matWorld, CullMode::NONECULL); } void Sky::Release() { } void Sky::onCollisionEnter(Collider* col1, Collider* col2)...
b4de9f130049c6ef8e718b5a0313ca0ad35f235c
5d4bdbb969968cd5df94e185c6394783ce641c1c
1984xunhuan/SMSGateway
/src/Util/Config.cpp
C++
cpp
3,066
no_license
/** * *@file Config.cpp * *@brief * *@author ding gao tao * *@date 2010-09-07 * */ #include <Config.h> int Config::config_init(string sXmlFile) { doc = xmlReadFile(sXmlFile.c_str(),"UTF-8",XML_PARSE_RECOVER); //解析文件 //检查解析文档是否成功,如果不成功,libxml将指一个注册的错误并停止。 //一个常见错误是不适当的编码...
1757c7542eca30739074fa60a8a8be89f5c03cc1
132f70b3dbfbc2b2b6d370127f4f3345dd16bf5e
t-mb/c-excercises
/course4/homework1/test.cc
C++
cc
1,205
no_license
#include "vector2d.h" #include <cmath> #include <sstream> #include <cassert> #include <iostream> #define EPS 0.0000001 void test_operators() { Vector2d a = Vector2d::fromCarthesian(5, 6); Vector2d b = Vector2d::fromCarthesian(-1, 7); assert(a+b == Vector2d::fromCarthesian(4, 13)); assert(a-b == Vector2d::fromCa...
03798b76da10750897fde47311c1735d406d41c4
fd63c0a1db199b4ab4f5848ea27881f2f27f338b
yagnesh45/c-cpp-files
/income2.cpp
C++
cpp
1,592
no_license
#include<bits/stdc++.h> using namespace std; class Salaried_person{ float income,tax,surchrg; int age; public: Salaried_person(){ cout<<"Enter the Annual Income of person:"; cin>>income; cout<<"Enter Age of the person:"; cin>>age; } Salaried_person(float income,int a...
c3b51ae1433144767bc3d722deac602f109a986e
94c4458d63e9467d5a31f3519768abca8129cf8b
muttleyxd/chromium
/chrome/browser/devtools/devtools_browsertest.cc
C++
cc
110,008
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 <stddef.h> #include <memory> #include <vector> #include "base/bind.h" #include "base/cancelable_callback.h" #include "base/command_line.h" ...
9192822907885d39c8d57820d7c271eb4fad134a
973c60a7595e53bacaa4a3127f0d530919166e63
BenCradick/ProgramTranslation_P1
/main.cpp
C++
cpp
226
no_license
#include <iostream> #include "Parser.h" #include "testTree.h" #include "Scope.h" int main(int argc, char** argv) { Parser parser(argc, argv); auto scope = new Scope; scope->setGlobal(parser.root); return 0; }
10ea8016c4aab5d314bb3cb6b31beb7e4d75f577
77ab6e580d43b6f286cec1336b0dd974d27a36a5
UlyssesZh/AlgorithmTraining
/OnlineJudgeUVa/02/02_hanxin.cpp
C++
cpp
427
permissive
#include <iostream> using namespace std; int main() { for (int i = 1;; i++) { int a, b, c; cin >> a >> b >> c; cout << "Case " << i << ": "; bool not_found = true; for (int n = 10; n <= 100; n++) { if ((n - a) % 3 == 0 && (n - b) % 5 == 0 && (n - c) % 7 == 0) { cout << n << endl; not_fo...
32c9f7519ece489900079cd8f72607195616fb62
9fbed4ff87b91feaa8cb22a0cca30ce67d7af37a
PMArkive/simillimum
/core/Logger.cpp
C++
cpp
12,531
no_license
/** * vim: set ts=4 sw=4 : * ============================================================================= * Simillimum * Copyright (C) 2004-2009 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can red...
b1d96d3e888481de2682de2b6cb0a4253212d950
f2b418389b3456ef4f037f8143dd97c40e7085ce
blackberry/Boost
/boost/fusion/sequence/comparison/detail/greater_equal.hpp
C++
hpp
1,766
permissive
/*============================================================================= Copyright (c) 1999-2003 Jaakko Jarvi Copyright (c) 2001-2011 Joel de Guzman 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...
b7acafb494edd742a0277870873753cb07b0be57
51d251e551c33211f602d8562babc8867fe87d67
mageec/mageec-llvm
/lib/Target/X86/Utils/X86ShuffleDecode.cpp
C++
cpp
10,325
permissive
//===-- X86ShuffleDecode.cpp - X86 shuffle decode logic -------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
3fad3e971ff12a2f612ad79487233eba69da7521
e9d24ed634b0880777c7a066c588c8e8747a32bb
citrixrep/dietbitcoin
/src/test/uint256_tests.cpp
C++
cpp
10,468
permissive
// Copyright (c) 2011-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 "arith_uint256.h" #include "test/test_dietbitcoin.h" #include "uint256.h" #include "version.h" #include <boost/test/...
d552f0d4248f2edcd3b7d74b344d62edbdc75ed0
3329ceaf2b08567745dd97a17da757b15fd396fb
MuhanjalaRE/Midair-1.0.4.9504-SDK
/SDK/UE4_WSkin_GrenadeLauncher_Blood_functions.cpp
C++
cpp
366
no_license
// Unreal Engine 4 (4) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "UE4_WSkin_GrenadeLauncher_Blood_parameters.hpp" namespace SDK { //--------------------------------------------------------------------------- //Functions //--------------------------------------------------------------------------- ...
5083b92d3447ef20452f08b01cba6ecd6b816472
6b784031943e7816d92f5e6e28163813666b8af3
stonewinter/LeetcodeEx
/cpp_LeetCode_algo_304.cpp
C++
cpp
1,776
no_license
#include <iostream> #include <stdlib.h> #include <unordered_map> #include <list> #include <vector> #include <cmath> #include <sstream> #include <memory> using namespace std; inline int sumSqureWRTorigin(const vector<vector<int>>& matrix, int r, int c); void NumMatrix(vector<vector<int>> matrix); int sumRegion(int ro...
679dcb032294667651dc349e61c3c360b664edd4
0df101791d47751fdb2f20d8a39bd7de99703b85
GerardoTaboada/EducaCoin
/src/net.cpp
C++
cpp
90,830
permissive
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2017 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #include <n...
6950493a0684fbfa7671c9c645088dbd8a69d21e
50924035245c060301c8a40c309762562c7f483f
Easimer/kernel
/src/logging.cpp
C++
cpp
4,793
no_license
#include "common.h" #include "logging.h" #include "interrupts.h" #include "utils.h" #include <stdarg.h> struct Log_Destination_Entry { void* user; bool occupied; const Log_Destination* desc; }; #define LOG_DEST_ENTRY_MAXCOUNT (4) static Log_Destination_Entry gEntries[LOG_DEST_ENTRY_MAXCOUNT]; void Log_...
ed60352ca93fb842f6d68e6c060f7f15525f4d91
50be36e32ebe75109408a4b12b04611c02ba3692
JulieEtienne/BEG_String
/main.cpp
C++
cpp
2,443
no_license
#include "String.h" #include <iostream> int main() { printf("\nTP de Cpp\n"); //----- CONSTRUCTOR TESTS //Default constructor test String test; //Copy constructor test String test2(test); //C-string constructor test String test3("coucou"); //String >DEF_SIZE characters String test4("Lorem i...
30cc098e1b8bafc18308a79d3f68ab9b24b705c2
726b6fdf9c14952de3d071e9d1fe554965b536c6
ahmed-f-alrefaie/GAIN-MPI
/BaseClasses/Dipole.cpp
C++
cpp
315
no_license
#include "Dipole.h" #pragma once Dipole::Dipole(){ block_form = false; } void Dipole::RemoveDipole(){ Log("Cleaning up dipole for extra memory\n"); for(int i = 0; i < dipole_me.size(); i++){ delete[] dipole_me[i].dipole_me; BaseManager::FreeGlobalMemory(dipole_me[i].size); } } Dipole::~Dipole(){}
1ea6a7871657ab4d5f916b718624a9eb90170ccb
d5c46d3ede9110a9656a3b32df7801802f9a089f
PT0140PT0141/repo
/dev/g++/projects/embedded/logger/test/testlib.cpp
C++
cpp
6,317
permissive
/** * @file testlib.cpp * @brief Logger test suite. * @author garciay.yann@gmail.com * @copyright Copyright (c) 2015 ygarcia. All rights reserved * @license This project is released under the MIT License * @version 0.1 */ #include <cstdlib> #include <cstring> #include <iostream> #include <algorithm> #inclu...
c515b76e216ac9e3ba9fb2dd7ee3bba3256d18ff
386478194740716232fdf46e0630ec8eb5f48ed3
SaraPeyko/Financial-Engineering-in-Interest-Rates-and-FX
/lecture2/Options04.cpp
C++
cpp
1,201
no_license
// Options04.cpp // // A strike price is the set price at which a derivative contract // can be bought or sold when it is exercised #include "Options04.h" #include "BinModel02.h" #include <iostream> #include <vector> int GetInputData(int& N, double& K) { std::cout << "Enter steps to expiry N: "; std::cin >> N; ...
f75ae73f5607927c39dcec2db9563f19ba8d8ede
b535d9d85273b2c3f7702ef1068608e1918fb22c
Sporknugget/Juliet_prep
/testcases/CWE126_Buffer_Overread/s02/CWE126_Buffer_Overread__new_wchar_t_loop_18.cpp
C++
cpp
2,947
no_license
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE126_Buffer_Overread__new_wchar_t_loop_18.cpp Label Definition File: CWE126_Buffer_Overread__new.label.xml Template File: sources-sink-18.tmpl.cpp */ /* * @description * CWE: 126 Buffer Over-read * BadSource: Use a small buffer * GoodSource: Use a large buffer * Sin...
bfd135e72172df971dec6fa51c13223d39d38228
94ebcb373bb640af82f79356927b4fb50e0f2daa
Betchika99/GRIP-calculator
/dofserv/main.cpp
C++
cpp
1,598
no_license
#include <iostream> #include <event.h> #include <evhttp.h> #include "handler.hpp" #include <stdlib.h> #include <signal.h> #include <bsoncxx/json.hpp> #include <bsoncxx/builder/stream/document.hpp> #include <mongocxx/client.hpp> #include <mongocxx/stdx.hpp> #include <mongocxx/uri.hpp> #include <mongocxx/instance.hpp> ...
02f9694fa9e032a3c567d8dfeb09a04885bec7da
0cf9e07d968531a5edad1251c85c7499873dcce2
cclienti/veriparse
/lib/include/veriparse/AST/initial.hpp
C++
hpp
2,925
no_license
#ifndef VERIPARSE_AST_INITIAL_HPP #define VERIPARSE_AST_INITIAL_HPP #include <veriparse/AST/node.hpp> #include <list> #include <string> #include <cstdint> #include <memory> #include <iostream> #include <type_traits> namespace Veriparse { namespace AST { class Initial: public Node { public: using Ptr = typename Nod...
32500d87a7919719a264c8652e7e9ea13cd0e70e
01023bb5b5b65d9f032ee99fee84f712bc31cc3b
Zachdav/Systems-Programming
/2. Labs/Lab 12/Program/lab12.cpp
C++
cpp
9,181
no_license
//Zachary Davis 811-960-668 //All of the necessary includes for this program. #include <cstdlib> #include <cstring> #include <iostream> #include <unistd.h> #include <vector> //I think using a namespace is lazy so i used the using statements //to avoid using std all those times using std::cout; using std::cin; using s...
5256940c34b0bb8da6bc283ad3226d7bfaededd1
baa98e7bf67e8b10886c2cd1b4a75ec5cfa39726
chiha8888/Code
/round39_dp需前處理O(n^3).cpp
C++
cpp
1,126
no_license
#include<bits/stdc++.h> using namespace std; int n,m,k,mm; int s[505][505]; //s[第i天][用j次機會]=min在學校的時間 int dp[505][505]; //dp[考慮1~i天][用j次機會]=min在學校的時間 int main(){ cin>>n>>m>>k; //預處理 vector<int> vec; char yn; for(int i=1;i<=n;i++){ vec.clear(); for(int j=0;j<m;j++){ cin>>yn; if(yn=='1'){ vec.pus...
90a98a0d23233f950c29cb0ec8a0a88e6300cb43
23945f7f5ef38f3f8ea0ce0a742b74adb5686e6c
j1249845202/chromium
/third_party/blink/renderer/platform/graphics/crossfade_generated_image.cc
C++
cc
5,156
permissive
/* * Copyright (C) 2011 Apple 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: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
8d3e0a04aa083d427673d31b0cedaa6f56549795
6e7b9293d383546a836d055293dc59c24ee809a9
shewenhao/DirectAccess
/DirectAccessTradingSystem/DirectAccessTradingSystem/kdb_function.cpp
C++
cpp
6,511
no_license
#include "stdafx.h" #include <iostream> #include <string> #include <cstdio> #include "kdb_function.h" //////////////////////////////////////////// // Definition of kdb+ Connector //////////////////////////////////////////// kdb::Connector::~Connector() { disconnect(); } bool kdb::Connector::connect(const char* host,...
23311469f586af9bdd049c7c3fb70cf26dc1b504
9ae7e983ab41366279bbece4bf010d5e060c13db
kevin-212/KEVIN_SPOJ_SOLUTIONS
/Spoj_Solutions/HR_WEEK_15_2.cpp
C++
cpp
1,310
no_license
#include<bits/stdc++.h> #define gc getchar #define pc putchar #define pii pair<int,int> using namespace std; inline void rdl(int &x) { x=0; bool check=false; register int c; do{ c=gc(); if(c=='-') check=true; }while(c<48 || c>57); for(;c>47 && c<58;c=gc()){ x=(x<<1)+(x<<3)+c-48; } if(check) x=-x; } inl...
bbfc45771f91b38c66624b5845e62db8149033d3
204791322cfb86207cc0883d44b145fac0dccaeb
s-s-9/UVA-Codes
/11586_traintracks.cpp
C++
cpp
606
no_license
#include<bits/stdc++.h> using namespace std; int main() { int n, i, j, male, female; string allpieces; map<char, int> m; scanf("%d", &n); getchar(); for(i = 0; i<n; i++){ m.clear(); getline(cin, allpieces); for(j = 0; j<allpieces.size(); j++){ m[allpieces[j]...
8341f1926495f00378a94826cfb7496719d86634
62b2485f224ce9f1589ceb4b4edba2a51f585919
kevinumarov/Cppproone
/2.1/main.cpp
C++
cpp
213
no_license
// Created by Kevin // Student number is 201739103 // MArch 22,2021 // C++ programming // Chapter 2 // Exercise 2.1 #include <iostream> int main() { std::cout << "Hello, World!" << std::endl; return 0; }
2f506bf1181703b4cdcced97dd454f71780e8711
5afbe5268ad113b1edd0e5e3fa3ef1ab29c1e5f4
RajathRD/competitive-coding
/SPOJ/Whatsnext.cpp
C++
cpp
269
no_license
#include <iostream> using namespace std; int main() { while(true) { int a,b,c; cin >> a >> b >> c; if(a==0 && b==0 && c==0) break; if((b-a)==(c-b)) { cout << "AP " << (c+b-a) << endl; } else { cout << "GP " << c*b/a << endl; } } return 0; }
f097ab611fa3dbf2dc743062f454226fe64f8639
6021a78aa4785db73dd7e44c36699ce81ea36e95
A-n-k-a/C__
/Change.cpp
C++
cpp
296
no_license
// // Created by 不死鸟Anka on 2019-07-16. // #include "Change.h" #include <iostream> int a =1; int b =2; void swapper1(int m,int n) { auto temp = a; a = b; b = temp; } int main() { swapper1(a,b); std:: cout << "a:" << a; std:: cout << "b:" << b; return 0; }
251cada83067ac6cb079c71ecd0c7f7e9cf1a92a
daafcb8e165f721bcf6a7a93e7c53f3b32f6f018
ItzKaserine/Dovelet
/divisors/385007_WA.cpp
C++
cpp
1,014
no_license
#include<iostream> using namespace std; bool isPrime(unsigned long long n) { if(n == 1) return false; unsigned long long i; for(i=2;i*i<=n;i++) { if(n%i == 0) return false; } return true; } unsigned long long prime[500]; unsigned long long soinsu[500]; unsigned long long sosu[500][500]; unsigned lon...
4ad7e05d93ef639343bb55308d87a3e63eb3f720
678e51b955efdd1d600f16b70c865b490221cc41
hmailserver/hmailserver
/hmailserver/source/Server/Common/Scripting/ScriptObjectContainer.cpp
C++
cpp
4,379
no_license
// Copyright (c) 2010 Martin Knafve / hMailServer.com. // http://www.hmailserver.com #include "StdAfx.h" //#include "../../hMailServer/hMailServer.h" #include "../../COM/InterfaceResult.h" #include "../../COM/InterfaceMessage.h" #include "../../COM/InterfaceClient.h" #include "../../COM/InterfaceEventLog.h" #in...
18dd3aeb4c8cc410ebd00e0e8cab0095edc52569
9837b6b40627c8622694fd6b5814935d05a2e589
NilFoundation/application
/example/tutorial/main_stage3.cpp
C++
cpp
793
permissive
// ----------------------------------------------------------------------------- // Copyright 2011-2013 Renato Tegon Forti // // 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) // // This file is part of tutorial, re...
60f59561b43436f966d8ea13e88eba9870ddb48a
fa190b4582f276f8f13918ce5a2080f972fb9c5f
niuxu18/logTracker-old
/second/download/git/gumtree/git_repos_function_2725_git-2.7.2.cpp
C++
cpp
542
no_license
static void print_line(const char *prefix, char first, long line, unsigned long *ends, void *data, const char *color, const char *reset) { char *begin = get_nth_line(line, ends, data); char *end = get_nth_line(line+1, ends, data); int had_nl = 0; if (end > begin && end[-1] == '\n') { end--; h...
99efadbde232fb826617b4bfba79894db1392e04
235654d2413e0028ef5ff1bbf066bb8e0b844bf8
amoghavs/torless-ns3
/max-bandwidth-bw-nodes/torless-ecmp-topology-2racks.cc
C++
cc
15,685
no_license
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2010 Egemen K. Cetinkaya, Justin P. Rohrer, and Amit Dandekar * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Sof...
4fc0eb87da8c15765a4e41522412e8801fa5a887
28d9417b6eda911649b72add9a39fde0c41a7637
p2l1pfp/cmssw
/SimG4CMS/ShowerLibraryProducer/plugins/HcalForwardLibWriter.cc
C++
cc
5,954
permissive
#include "SimG4CMS/ShowerLibraryProducer/interface/HcalForwardLibWriter.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" HcalForwardLibWriter::HcalForwardLibWriter(const edm::ParameterSet& iConfig) { edm::ParameterSet theParms = iConfig.getParameter<edm::ParameterSet>("hcalForwardLibWriterParameters"); ...
8fb553431ef41650331bef600e798f24d8a6cd72
45e46b56b3fd40dca66a82280382619745c04893
dgkang/ROG
/code/gameholder/regular_maoxian_053.cpp
C++
cpp
13,350
no_license
#include "gameholder_pch.h" #include "regular_maoxian_053.h" #include "scene.h" #include "checkpoint.h" #include "event_define.h" #include "point_monster.h" #include "point_touch.h" #include "point_treasure.h" #include "point_barrel.h" #include "point_trigger.h" #include "monster.h" #include "spawn.h" #include "point_b...
6d16bb5702c4f43dde5553e4bef3f6c23ef517dc
9dbdcae2392d4296e7b1369057377ba47ab67d25
mixxit/solinia-old
/third_party_libraries/include/boost/mpl/begin_end_fwd.hpp
C++
hpp
760
no_license
#ifndef BOOST_MPL_BEGIN_END_FWD_HPP_INCLUDED #define BOOST_MPL_BEGIN_END_FWD_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2000-2004 // // 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) // // See http://www.boost....
69eb12ed9b65e2f3438243d2f5858ef070222b91
f354a9c17339d89157a5f026d57600a47e057103
dicehub/VTK
/IO/SQL/vtkSQLiteDatabase.cxx
C++
cxx
13,352
permissive
/*========================================================================= Program: Visualization Toolkit Module: vtkSQLiteDatabase.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This softwar...
e2a258badcc4137f52494110ffa5c4ac740d10fd
2b05b15dd0c35dd17feec6a9df5d3727be6feaee
young1928/Cpp
/AcWing/买书.cpp
C++
cpp
748
no_license
#include <iostream> #include <algorithm> using namespace std; const int N = 1010; int f[N]; int n; int cnt[] = {10,20,50,100}; int main() { cin >> n; f[0] = 1; for(int i = 0; i < 4; i++) { for(int j = cnt[i]; j <= n; j++) f[j] += f[j - cnt[i]]; } cout << f[n] << endl; ...