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
089a3cbe14d90fd0eab9ecec047eb0d0fa2cb523
ad1248658c37525187f003229c5ef968f7511a86
snip89/wsnsim-preprocessor
/widgets/renamingNodeTypeDialog.cpp
C++
cpp
1,066
no_license
/** * * File: renamingNodeTypeDialog.cpp * Author: Alexander Yarygin <yarygin.alexander@gmail.com> * **/ #include "renamingNodeTypeDialog.h" #include "ui_renamingNodeTypeDialog.h" RenamingNodeTypeDialog::RenamingNodeTypeDialog(QString nodeType, QWidget* parent) : QDialog(parent), m_ui(new Ui::RenamingNodeTyp...
36bf93cb16440aa2c2cc678bd04a3a3f57842995
f455dc43630321d135147984e1418a13e446742f
decrispell/vxl
/core/vil1/file_formats/vil1_jpeg_decompressor.cxx
C++
cxx
4,063
permissive
// This is core/vil1/file_formats/vil1_jpeg_decompressor.cxx //: // \file // \author fsm #include <iostream> #include "vil1_jpeg_decompressor.h" #include "vil1_jpeg_source_mgr.h" #include "vil1/vil1_stream.h" #ifdef _MSC_VER # include "vcl_msvc_warnings.h" #endif #define trace if (true) { } else std::cerr //: using...
6547cc353a396b1612c39d27419546400ffa3cc8
d0600fc0aa556f6b11d721ea320bec6d60fa481d
Suckzoo/CS322
/Project3/PreProject1/StateClaim.cpp
C++
cpp
1,843
no_license
#include "State.hpp" #ifdef __CLAIM__ #include "func.hpp" #include "Machine.hpp" #include <functional> using namespace std; /* Your langset goes here * Usage: Just save your langset to variable 'lang'. */ void Machine::GenerateLanguageSet() { wstring lang = L"ab"; //You can define your own language set int i; ...
2772a3ee45cf216fa6b7a6320ce892849c7d8b26
935a457e27d8822a532dcbac4091143a3cda49ef
randyL78/Observable-C-plus-plus
/WeatherData.cpp
C++
cpp
776
no_license
// // Created by Randy Layne on 4/4/20. // #include "WeatherData.h" #include <iostream> WeatherData::WeatherData() :WeatherData(0.0, 0.0, 0.0) { } WeatherData::WeatherData(float temperature, float humidity, float pressure) { setMeasurements(temperature, humidity, pressure); } void WeatherData::measurementsChang...
9dc1f489497ba7a4d10b87911d2cb25134badc54
1ae27a5e7f1f2ca1e8b6404fbe8b658c8125f858
Ownasaurus/gc-n64-nes-snes-Saleae-Analyzer
/src/NES_SNESAnalyzer.cpp
C++
cpp
5,759
no_license
#include "NES_SNESAnalyzer.h" #include "NES_SNESAnalyzerSettings.h" #include <AnalyzerChannelData.h> using namespace AnalyzerEnums; NES_SNESAnalyzer::NES_SNESAnalyzer() : Analyzer2(), mSettings( new NES_SNESAnalyzerSettings() ), mSimulationInitilized( false ) { SetAnalyzerSettings( mSettings.get() ); } NES_SNES...
ffefbacf926573f429a3d9b8b82fc8d5e03b535c
091c5459191f63153ca2f4281af18397ab8ed119
smoe1/ThesisCode
/dogpack-developer/scalar/lib/2d/unst/DogParamsUnst2.cpp
C++
cpp
3,455
no_license
#include "DogParamsUnst2.h" DogParamsUnst2 dogParamsUnst2; DogParamsUnst2::DogParamsUnst2() { NumElems = -1; NumPhysElems = -1; NumGhostElems = -1; NumNodes = -1; NumPhysNodes = -1; NumBndNodes = -1; NumEdges = -1; NumBndEdges = -1; is_initializ...
73536e6342cdbf36209ee72c2f58cea307fa209e
fa93341e9118fb1b61579f8ede15fcc7b95d3588
cool2528/miniblink49
/v8_6_7/src/debug/debug-scopes.cc
C++
cc
35,934
permissive
// Copyright 2015 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/debug/debug-scopes.h" #include <memory> #include "src/ast/ast.h" #include "src/ast/scopes.h" #include "src/debug/debug.h" #include "src/...
3303580f865f3860c8ee9fae63e472fa3ade54db
4882db89c76bd24f608c9f732de55543cafe5c16
lenge31/QN8027_driver_hal_service_app
/frameworks/base/services/core/jni/onload.cpp
C++
cpp
4,635
no_license
/* * Copyright (C) 2014 MediaTek Inc. * Modification based on code covered by the mentioned copyright * and/or permission notice(s). */ /* * Copyright (C) 2009 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with th...
1a46324dbb1cab443455f417490eaa485ec7b301
cc35b36560933e5fd9676b07633d314635b7f344
mauriciocarazas/CC1-2017
/lab 04 en clase/main.cpp
C++
cpp
677
no_license
#include <iostream> using namespace std; //definimos el for /* int funtion_for(int i=0 ,int a){ if(i==a){ return 0; } else{ cout << i << endl; return funtion (++i,a); } }*/ int main() { /* //1 definimos el for funtion_for(0,4); */ //HACER UNA FUNCION QUE IMPRIMA LOS NUMER...
81b838ad934c8369849b33dd50c99ae9b2d7916c
4621b57303eb9c88a7122358d8eaafd512ee507e
Wonz5130/My-ACM-Road
/hdu/2844.cpp
C++
cpp
2,535
no_license
#include <iostream> #include <cstdio> #include <algorithm> #include <cstring> #include <cmath> using namespace std; int dp[10010]; struct goods{ int value; int size; int weight; }good[10010]; int maxx(int a,int b) { return a>b?a:b; } //完全背包 void CompletePack(int v, int w, int m){ for(int i = v; i <= m; ++i){...
129cd779b7b4b9ffa5326fc00828d96363f8f744
191aa126131ffa567639687580ba951ba19e2c6a
xuezeao/git_program
/Qt_Dev/v1.1/build-IPTest/platforminputcontexts/moc/moc_pinyininputmethod.cpp
C++
cpp
3,469
no_license
/**************************************************************************** ** Meta object code from reading C++ file 'pinyininputmethod.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.2.1) ** ** WARNING! All changes made in this file will be lost! ***************************************************...
fea2eeecb8d4ebc30950def94706a7917fea5324
b9fce6534e1032f552d7e3ea831e74b48e40200c
santanusen/cryptcpp
/include/cryptcpp/digital_signature.hpp
C++
hpp
2,001
permissive
// // Copyright 2021 Santanu Sen. All Rights Reserved. // // Licensed under the Apache License 2.0 (the "License"). You may not use // this file except in compliance with the License. You can obtain a copy // in the file LICENSE in the source distribution. // #ifndef __CRYPTCPP_DIGITAL_SIGNATURE_HPP__ #define __CRYP...
47af2d0920b532d99623be751a61d6927de49e00
54179272b3312b3c4f47c6bf934aced3a9d6fdbb
EnriqueH73/qtBowlingCalc
/qtBowlingWidgets/bowlpinmap3d.cpp
C++
cpp
1,212
no_license
/** * @file bowlframesplugin.cpp * @brief A PlaceHolder for advanced 3D widget of 10 radio buttons to indicate the state of each bowling pin.. * @details All 10 blowing pins are representative in this custom widget. When the * radio button is selected (or down), that means the pin is still standing up. * ...
5c8b44accc939166d844bf9f8148ea081dd03cd1
eaf78ad04be72280869a838a2df8780f9f076926
junxuezheng/chromium
/components/update_client/url_fetcher_downloader.cc
C++
cc
5,903
permissive
// Copyright 2014 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 "components/update_client/url_fetcher_downloader.h" #include <stdint.h> #include <utility> #include "base/bind.h" #include "base/files/file_uti...
ee38ebcd3ad888786ea414cb9d3946efe05c9bec
a0d50f9086350f9c70f3c840d82696505625859a
pesmerga/poker-program-c
/get_action.cpp
C++
cpp
4,431
no_license
// Library implementation of get_action.cpp // get_action takes a table with a currentplayer selected and determines // the action that players wants to take. It looks at a player's character // input under player[].action, when 'f' is fold, 'c' is call, 'b' is bet, // 'e' is un-declared, and any other character is an...
fa33b67d7a0c20a1777438c38f07316234fcd98b
ac3e1c8f002b2d7be7d03b65534ef22afad62b52
mtrempoltsev/msu_cpp_autumn_2017
/homework/Gorbushin/05/test.cpp
C++
cpp
3,449
permissive
#include <iostream> #include <vector> #include "matrix.cpp" #include <string> #include <unistd.h> using std::cout; using std::endl; using std::vector; using std::string; int bad = 0; int N = 1; string s; void startTest(string name) { s = name; if (N == 1) cout << "==========================================="...
511c4686edebdfb5225dbd83c40a17a0422e104c
9ce9998f831fc857cdf26e25bc146a61f85b86fa
tatiandu/MARP
/Semana 4 - FULL/13.SEM4/Guardias.cpp
C++
cpp
3,744
no_license
// Tatiana Duarte Balvís // Comentario general sobre la solución, // explicando cómo se resuelve el problema #include <iostream> #include <fstream> #include "Grafo.h" class ColocarGuardias { public: ColocarGuardias(Grafo const &g) : visit(g.V(), false), guardia(g.V(), false), totalGuardias(0), imposible(false) ...
933e16a773c6ea3a871ef073c2742a679cf2aafb
acbfe173ca9f6a4b2b3a599f0905ce79f85f0cbf
QPC-database/aws-sdk-cpp
/aws-cpp-sdk-clouddirectory/source/model/GetLinkAttributesResult.cpp
C++
cpp
1,205
permissive
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/clouddirectory/model/GetLinkAttributesResult.h> #include <aws/core/utils/json/JsonSerializer.h> #include <aws/core/AmazonWebServiceResult.h> #include <aws/core/utils/StringUtils.h> #incl...
ff8a5334dc2b771813c40b20ea917af5880f9f4f
3c85c41fdcbebff86af5962600b3d440a97d61b5
kyleg907/leocad
/common/lc_application.cpp
C++
cpp
30,107
no_license
#include "lc_global.h" #include <stdio.h> #include "lc_application.h" #include "lc_library.h" #include "lc_profile.h" #include "project.h" #include "lc_mainwindow.h" #include "lc_qpreferencesdialog.h" #include "lc_partselectionwidget.h" #include "lc_shortcuts.h" #include "view.h" #include "lc_previewwidget.h" lcApplic...
cf8ef6b8809389f3d9be897b453326265443d72b
804e1f8576eb4b829442dc3e6c516167b0821e88
SongLomin/GameMath
/p4/totalFunction.cpp
C++
cpp
4,919
no_license
#include "stx.h" //________________________________________________________________________________________________ // // -totalFunction 주석- // 사용자 정의 전역 함수를 여기에 정의한다. //________________________________________________________________________________________________ //______________________________________________...
ba01559b1d5ffc45eacb7fc059a103bd0f338362
c3941b0ee2597336fc233516091c1cda6c5b9026
zenoalbisser/chromium
/chrome/test/chromedriver/server/http_handler.cc
C++
cc
32,299
permissive
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/test/chromedriver/server/http_handler.h" #include "base/bind.h" #include "base/callback.h" #include "base/json/json_reader.h" #inclu...
baf040c032a44a2d087b6a97fb8b8bdfbdf8f7f9
1ab02bce7ed345d8f9a0dde22433019492446eee
CU-0xff/juliet-cpp
/000/113/996/CWE762_Mismatched_Memory_Management_Routines__delete_array_wchar_t_calloc_63b.cpp
C++
cpp
1,607
no_license
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__delete_array_wchar_t_calloc_63b.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete_array.label.xml Template File: sources-sinks-63b.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Manage...
a2b5c9392e5dd2a41d5859168659e6b6cacf595d
0ceea08166b8e0e4f18284dd0fe010b9f43b2bc3
ousttrue/imnodes
/imnodes.cpp
C++
cpp
71,023
permissive
// the structure of this file: // // [SECTION] internal data structures // [SECTION] global struct // [SECTION] editor context definition // [SECTION] ui state logic // [SECTION] render helpers // [SECTION] API implementation #include "imnodes.h" #include <imgui.h> #define IMGUI_DEFINE_MATH_OPERATORS #include <imgui_...
b459948f3f2aa68394329479b234bff4a711f255
70624de2d37fe4a5fd1c27b7ad5a63aa4630ab34
9il/simdjson
/tests/readme_examples.cpp
C++
cpp
6,809
permissive
#include <iostream> #include "simdjson.h" using namespace std; using namespace simdjson; using error_code=simdjson::error_code; void basics_1() { const char *filename = "x.txt"; dom::parser parser; dom::element doc = parser.load(filename); // load and parse a file cout << doc; } void basics_2() { dom::pa...
7743133dcba732c3b8dc5407923c6fc6f7df5779
d90dbab64f845b5e2bdb355bc229fc76a9515c65
kagasan/atcoder
/NAIST/NAIST1126/4.cpp
C++
cpp
630
no_license
#include "bits/stdc++.h" using namespace std; typedef long long ll; typedef pair<ll, ll> P; #define rep(i, n) for(ll (i) = 0; (i) < (n); (i)++) #define rep1(i, n) for(ll (i) = 1; (i) <= (n); (i)++) #define rrep(i, n) for(ll (i) = (n) - 1; (i) >= 0; (i)--) #define rrep1(i, n) for(ll (i) = (n); (i) >= 1; (i)--) const ll ...
21389775037e2a56168451320691a73074dfca32
0ba566786e6ec9fd7bacecad0b5da2cfb7ceee05
classicnerd/frameworks_base
/services/surfaceflinger/Layer.cpp
C++
cpp
21,762
permissive
/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
e93bdc8da30250c6237e8f0410e8491b284806db
a29da6a48b9264faac07f11d56f7dabd4ceaa7c4
DgrinderHZ/Competitive-Programming
/Codeforces/A - Team.cpp
C++
cpp
1,432
no_license
#include <cmath> #include <deque> #include <queue> #include <stack> #include <string> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; //Macros #define PI 3.14159265359 #define all(v) v.begin(),v.end() #define sortva(v) sort(all(v)) #define sortvd(v) sort(v.rbegin(),v.r...
c97ea0aec36deb2c5c2f4e9a382b969ef50a7276
86ef7bdd83414a637816b649e8be487d006c5367
IsraMekki/tiramisu_code_generator
/cmake-build-debug/programs_tiling/function14303/function14303_schedule_0/function14303_schedule_0.cpp
C++
cpp
714
no_license
#include <tiramisu/tiramisu.h> using namespace tiramisu; int main(int argc, char **argv){ tiramisu::init("function14303_schedule_0"); constant c0("c0", 64), c1("c1", 64), c2("c2", 64), c3("c3", 128); var i0("i0", 0, c0), i1("i1", 0, c1), i2("i2", 0, c2), i3("i3", 0, c3), i01("i01"), i02("i02"), i03("i03...
5d3f5e959c5b5cd8da934ba73294b1fa99900db8
fec256f8f51d212951127a5d0643265fd0c4950d
lych4o/competitive-programming
/online/2018/Qingdao/gen.cpp
C++
cpp
452
no_license
#include<iostream> #include<cstdio> using namespace std; const int maxn = 1e5; int a[maxn]; int main(){ freopen("g.in","w",stdout); int T = 10; printf("%d\n",T); while(T--){ int n = maxn; printf("%d\n", n); for(int i = 0; i < n; i++) printf("%d ", rand()%maxn+1), a[i] = i+1; puts(...
57c1fd9f87955a3f00a681812743858993c2c4de
d96f7a4836689900a36b3e892fb8fa322000f82a
bjadidi/Problem_Set_5_AE-ME8112
/Test_Test1.cpp
C++
cpp
7,013
no_license
#include<iostream> #include <math.h> #include<cmath> #include <fstream> using namespace std; /*////////////////Begin_Header/////////////////////////////////////////////////// ================================================================================ // This C++ code was written by Behrooz Jadidi_Student ID:50100...
de9549d1c150199ab918dc18032054dae196051f
1076d1036c16e4b2bfaa81f4018cff4e212714ae
knarflin/opencl-training
/src/12_scratch.cpp
C++
cpp
9,833
no_license
//OpenGL scratch - reference implementation of OpenGL >= 3.3 rendering code //Author: Ugo Varetto //Requires GLFW and GLM, to deal with the missing support for matrix stack //in OpenGL >= 3.3 //g++ ../src/12_scratch.cpp \ // -I/usr/local/glfw/include \ // -DGLM_FORCE_RADIANS // -DGL_GLEXT_PROTOTYPES -L/usr/local/gl...
8bb988ba86bb70f423db2ae9c3b0871e1c88006f
2cfd4e40d0092c871696794932ef285bb653daf4
guidotripodi/mn20211ctps
/TP220211C/RTP2/src/eigen.cpp
C++
cpp
1,168
no_license
#include <algorithm> #include <chrono> #include <iostream> #include "eigen.h" #include <cmath> using namespace std; pair<double, Vector> power_iteration(const Matrix& X, unsigned num_iter, double eps) { Vector b = Vector::Random(X.cols()); Vector old = Vector::Zero(X.cols()); double eigenvalue; b.norm...
6d7b1b7c890053d3f2c19a600e227fed177f6adc
727915fdfb7ed7a387da543b4dfcb9829baad8e3
zhangf911/GCEDemo
/libs/gce/include/gce/actor/match.hpp
C++
hpp
1,859
no_license
/// /// Copyright (c) 2009-2014 Nous Xiong (348944179 at qq dot com) /// /// 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 https://github.com/nousxiong/gce for latest version. /// #ifndef GCE_ACTOR_MAT...
0be50f8e064b78fa6577762c40b4ec48535390d2
f21f88dfa22e4a7d3d05d474498cdbe11d0e31a2
MothCreations/gavlanWheels
/tensorflow/core/lib/io/recordio_test.cc
C++
cc
10,510
permissive
/* Copyright 2015 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
f9dc378b7ca86692844b37762952408018018b0e
70b0b70678706a8409a33cb51f3a966e3b8c6b6c
sonyeo/com2us_cppNetStudy_work
/halfnetwork/HalfNetwork/ACE_wrappers/ace/ATM_Stream.cpp
C++
cpp
9,039
permissive
// $Id: ATM_Stream.cpp 84262 2009-01-29 10:34:33Z johnnyw $ #include "ace/ATM_Stream.h" ACE_RCSID (ace, ATM_Stream, "$Id: ATM_Stream.cpp 84262 2009-01-29 10:34:33Z johnnyw $") #if defined (ACE_HAS_ATM) #if !defined (__ACE_INLINE__) #include "ace/ATM_Stream.inl" #endif /* __ACE_INLINE__ */ ACE_BEGIN_VER...
b06bdb5524f0b74505ec8dded05dbadac323f46d
b6ebd64ab696fb45a0bbacfa11196863c5be154e
shashankrnr32/WaveCLI
/est/speech_tools/base_class/EST_SMatrix.cc
C++
cc
4,176
permissive
/*************************************************************************/ /* */ /* Centre for Speech Technology Research */ /* University of Edinburgh, UK */ /* ...
df090d327673c956c9f44b670b416bf712e6fc36
eb45329fdb473349f71b4dda803e47fcbbc0c989
bartholmberg/openvino
/inference-engine/tests/functional/plugin/shared/include/subgraph_tests/reshape_permute_reshape.hpp
C++
hpp
959
permissive
// Copyright (C) 2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #pragma once #include <tuple> #include <vector> #include <string> #include <memory> #include "functional_test_utils/layer_test_utils.hpp" #include "ngraph_functions/utils/ngraph_helpers.hpp" #include "ngraph_functions/builders.hpp" names...
6cf56e079c50f5589b434f33d1c6819257ef5c6c
45f127a068ed64ece46735b8d9cc936e2cf8ba5d
DanHefrman/stuff
/NETFLIX/NfWebCrypto/plugin/ppapi/ppapi/shared_impl/resource_tracker.cc
C++
cc
8,392
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 "ppapi/shared_impl/resource_tracker.h" #include "base/bind.h" #include "base/compiler_specific.h" #include "base/message_loop.h" #include "p...
6ce0b6748bb77b32b3cbb39d3847b5f19e2b0bff
35c28f9f719b051bbae813d0c2b8d29a87ae677d
zvoronz/unet
/src/Datagram/Datagram/src/Datagram.hpp
C++
hpp
2,194
no_license
// Unix-network (unet) - Object-oriented high-level C++ Unix network framework. // Copyright (C) 2013 Oleynikov Nikolay // // 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, either version ...
30d67fe4cca8075aa739a2b2015e03b364167872
475c2cbbd13e0433df243bfe242ed242afca299c
gavtyler88/perfectioncoin
/src/bench/checkblock.cpp
C++
cpp
1,769
permissive
// The PerfectionCoin developers // file COPYING #include <bench/bench.h> #include <chainparams.h> #include <validation.h> #include <streams.h> #include <consensus/validation.h> namespace block_bench { #include <bench/data/block413567.raw.h> } // namespace block_bench // These are the two major time-sinks which hap...
7cb604efacd538d123dec23f4032a8afca622184
148d2ee57e4f8ac57893705628350e35d3734a47
Driver55/Adafruit_BME280_Library
/Adafruit_BME280.cpp
C++
cpp
18,331
permissive
/*************************************************************************** This is a library for the BME280 humidity, temperature & pressure sensor Designed specifically to work with the Adafruit BME280 Breakout ----> http://www.adafruit.com/products/2650 These sensors use I2C or SPI to communicate, 2 or 4 ...
7cef7f9ad0acb0fd48fec56d24a06d777b2bf9de
ded29225989268725576c99556e527c6cabbc4ae
Eudaemonal/C-17
/source/lec8/enable_if.cpp
C++
cpp
2,083
no_license
#include <iostream> #include <list> #include <string> #include <type_traits> #include <vector> struct EuclideanVector { template <typename RandomIt> EuclideanVector(RandomIt begin, RandomIt end) { // requires is_arithmetic on the value_type of the iterator // this version will be optimised for a random acc...
58b623c4cfd975cd260322fe8022001ef574ecfc
26ddb76042077fa1e67177db9d2bbeaf7692a0ea
samwensko/COMS-171
/examples/2-16.cpp
C++
cpp
259
no_license
#include <iostream> using namespace std; int main() { float distance; double mass; distance = 1.495979E11; mass = 1.989E30; cout << "The Sun is " << distance << " meters away.\n"; cout << "The Sun\'s mass is " << mass << " kilograms.\n"; return 0; }
5c85aa925d04d4b67dd2cd8a2726017f85051548
fb91014c652214128057bc01fecc8aaadfceb74f
taninme/Agorithms
/hw4/cmdint.cpp
C++
cpp
2,813
no_license
// cmdint.cpp - command interpreter program to test Binary Heap module #include "binheap.h" //#include <iostream> #include <string> #include <time.h> // For use in timing heap-sort in Assignment # 5 using namespace std ; int main() { string comment ; char choice ; KeyType key ; BinHeap H ; // Thi...
1f223abf167351e60e1f880f40cf9d494f1bbbbd
dfe312b9c832643c7d83788060b56b9503cd65de
hitSongXiao/Overlap-Set-Similarity-Joins
/sizeAware/mergeSkip.cpp
C++
cpp
1,709
no_license
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <iostream> #include "divideSkip.h" #include "mergeSkip.h" extern FILE*logFp; extern FILE *logs2; using namespace std; long long MergeSkip(int** rel, int threshold) { int **inverted,**inverted_temp; size_t start, end; long long rVa...
b381908adbfc8eefb76a55bf06ea7589c26d0836
b8d6ab77c9588fb11e67252bad6436c91a97ae0c
TencentCloud/tencentcloud-sdk-cpp
/clb/src/v20180317/model/ZoneInfo.cpp
C++
cpp
6,575
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 ...
1c0d3c0cee010d9d7f8d7dcb29df4062cfca55be
e9c458748c63a4795ec5891c0d8388e530d24383
brexocoin/brexocoin
/src/test/sighash_tests.cpp
C++
cpp
7,140
permissive
// Copyright (c) 2013-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 "consensus/validation.h" #include "data/sighash.json.h" #include "hash.h" #include "validation.h" // For CheckTransa...
3c319055797c2c85b80e1d250ef6a69372c12ca0
f1a13d709ee45d929e4143107c123066f8bce550
staticfloat/liblsl
/lslboost/boost/mpl/vector/aux_/item.hpp
C++
hpp
2,464
permissive
#ifndef BOOST_MPL_VECTOR_AUX_ITEM_HPP_INCLUDED #define BOOST_MPL_VECTOR_AUX_ITEM_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.bo...
327b6019422b58ec7dc5ba4c8608a1637016e2a4
99c2798257b805151ed9f2f532b33ec968408907
jainamandelhi/Geeks-For-Geeks-Solutions
/Graphs/Floyd Warshall.cpp
C++
cpp
1,038
no_license
#include<bits/stdc++.h> using namespace std; #define mp make_pair #define pb push_back #define fast ios_base::sync_with_stdio(false) #define ll long long ll mod=1000000007; ll gcd(ll a,ll b) { return (b==0)?a:gcd(b,a%b); } int main() { ll t,flag; cin>>t; while(t--) { ll n; cin>>n; ...
6da356af2e1da95e5f84584f6383b2e95d14f0f6
d43da15ba89e06a9697bbbb3c5adb79d824c6ded
hewuhun/OSG
/FreeEarthSDK/src/FeEffects/GlareDef.cpp
C++
cpp
13,727
no_license
// File provided by Masaki Kawase // http://www.daionet.gr.jp/~masa/rthdribl/ // GlareDefD3D.cpp : Glare information definition // #include <FeEffects/GlareDef.h> using namespace FeEffect; // Static star library information static STARDEF s_aLibStarDef[NUM_BASESTARLIBTYPES] = { // star name line...
fa52d508483733480fc2d25674ed18f9fdbae56a
d73afcf8dcc41ca8c17bc652a994be347494667b
AnomalousMedical/Engine
/MyGUIWrapper/Src/LayerManager.cpp
C++
cpp
1,010
permissive
#include "Stdafx.h" extern "C" _AnomalousExport MyGUI::LayerManager* LayerManager_getSingletonPtr() { return MyGUI::LayerManager::getInstancePtr(); } extern "C" _AnomalousExport void LayerManager_attachToLayerNode(MyGUI::LayerManager* layerManager, String name, MyGUI::Widget* item) { layerManager->attachTo...
8eb9cf6d913117e8f483b86487e9f3046498dba4
97494570ad91ffd7a80d3b184c823fccbed41365
18120211/HeDieuHanh
/code/nachos-3.4/code/userprog/progtest.cc
C++
cc
2,803
permissive
// progtest.cc // Test routines for demonstrating that Nachos can load // a user program and execute it. // // Also, routines for testing the Console hardware device. // // Copyright (c) 1992-1993 The Regents of the University of California. // All rights reserved. See copyright.h for copyright notice and limitatio...
a5260194b362dc493cce118f6df7451528f5d2c6
6e8fb5e4c19a08530254acfd27ed6e5170e11461
rishabhSharmaOfficial/CompetitiveProgramming
/DSA/Math/Linear Sieve/sieve.cpp
C++
cpp
1,971
no_license
// Linear Sieve - Regular bool is_prime[MAXN]; vector<int> prime; void sieve() { clr(is_prime, true); is_prime[0] = is_prime[1] = false; for(int i = 2; i < MAXN; i++) { if(is_prime[i]) prime.pb(i); for(int j = 0; j < sz(prime) && i * 1LL * prime[j] < MAXN; j++) { is_p...
2ce9d0cf625c14d6a46cb90e146d8655aceced08
dc69d1e3fb6581b5c4b625885bc67d3004737e10
mwoehlke/viboes-std-make
/include/experimental/fundamental/v2/none.hpp
C++
hpp
6,877
permissive
// 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) // // Copyright (C) 2014-2015 Vicente J. Botet Escriba #ifndef JASEL_FUNDAMENTAL_V2_NONE_HPP #define JASEL_FUNDAMENTAL_V2_NONE_HPP # if defined __clang__ || defin...
5a91b57754d2ca506f364d0c6943958435e3f7f6
d33d1c7d2dac708ea9dbf82c2f2a098cfa9d7b4e
mechmaster/VisualizationLibrary
/src/vlCore/Transform.hpp
C++
hpp
17,775
permissive
/**************************************************************************************/ /* */ /* Visualization Library */ /* http://visualizationlibrary.org ...
eda5af816cf20aba4d2e540c58a46d7286f91920
33fdbc457b63fcf6b8c4b66ad3d0c0ccedb0a0df
muncrypto/muncoin
/src/test/sighash_tests.cpp
C++
cpp
7,141
permissive
// Copyright (c) 2013-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 "consensus/validation.h" #include "data/sighash.json.h" #include "hash.h" #include "validation.h" // For CheckTransa...
94908a8ff5118198c49772b9dccc76842ba50547
446aca2ccc59ae813729aa944ccd54ca29fe32aa
Juhye/c-study
/자료형과 연산-정수상수/정수상수.cpp
C++
cpp
515
no_license
//숫자를 적으면 컴파일러가 가장 작은 자료형을 자동으로 선택 #include <iostream> using namespace std; // 이름공간설정 int main() { int x = 10; // 10은10진수이고 int형이고 값은 십진수로 10이다. int y = 010; // 010은8진수이고 int형이고 값은 십진수로 8이다. int z = 0x10; // 010은16진수이고 int형이고 값은 십진수로 16이다. cout << "x = " << x << endl; cout << "y = " << y << endl; cout << "z = " <...
ac13d975ba5c969bd0181e3719e16244bd8a4828
7793012b8fe4d5ecb8ba2acf74901df196c01c9f
ice8scream/IVSWCodeSamples
/Systems/Resources/StaminaComponent.cpp
C++
cpp
1,810
no_license
// Fill out your copyright notice in the Description page of Project Settings. #include "StaminaComponent.h" // Sets default values for this component's properties UStaminaComponent::UStaminaComponent() { // Set this component to be initialized when the game starts, and to be ticked every frame. You can turn the...
28d0da5d19dc51a2e15e2346d978d454b60c6310
8017a241b20a691fefe0879c923e3fa4d7328b0a
Woking-34/raytracinginoneweekend
/rtow_ch07_diffuse/main.cc
C++
cc
2,611
permissive
//================================================================================================== // Written in 2016 by Peter Shirley <ptrshrl@gmail.com> // // To the extent possible under law, the author(s) have dedicated all copyright and related and // neighboring rights to this software to the public domain worl...
356d98bc309b4990ec367c9584b693d6849b5df4
28e8e008e20433ba6eec8b3eef39e3753e457274
1cekrim/boj
/5622/5622.cc
C++
cc
457
no_license
#include <iostream> #include <vector> #include <algorithm> #include <string> int main() { std::ios_base::sync_with_stdio(false); std::cin.tie(0); std::cout.tie(0); std::vector<int> times = {3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10}; std::string s; std::...
362795a7d260fbde37fc74ac788c38645be52197
289e0873bc423302ac28e7505ba310960afc2cdd
Alipashaimani/Competitive-programming
/Codeforces/567A.cpp
C++
cpp
740
permissive
#include<bits/stdc++.h> using namespace std; const int MAXN = 1e5 + 10; typedef long long ll; #define F first #define S second map<int,pair<ll,ll> > mip; pair<int,int> arr[MAXN]; int m; int main(){ ios_base::sync_with_stdio(false); cin >> m; for (int i = 1 ; i <= m ; i++){ cin >> arr[i].F; a...
430d8d58594f2f29ddcf7edd21acbddf77d8a8f2
1733530347cf1d16c5bf1dd7f29419704623e880
ArenKasner/Resume
/Programming113C++/SourceCode/Chapter11/pr11-17.cpp
C++
cpp
2,132
no_license
#include <iostream> #include <string> using namespace std; // This program illustrates aggregation, composition // and object lifetimes. #include <iostream> #include <string> using namespace std; class Date { string month; int day, year; int personID; //ID of person whose birthday this is. public: Dat...
b00cdd100f8c6f58584bd685eca802682976e764
40e6140c5e0661fd0b790b5c8e4481a73c65ce35
ronaltboum/robot-cleaner
/robotic-cleaner-tester/robotic-cleaner-tester/House.cpp
C++
cpp
7,528
no_license
//#include "stdafx.h" #include "House.h" #include <string> House::House() { initiallize(); } House::House( int houseWidth, int houseHeight) { initiallize(); _floor = Matrix<char>(houseHeight,houseWidth); } House::House(int houseWidth, int houseHeight, string shortName, string longName, int maxSteps, string er...
62db65ab73e6a8a04b19e0733a8bcb137db4d8d9
89b7145448e76c92f7823ec4f3f21830d9739cd2
CollegicoinCLG/collegicoin-old
/src/masternode.cpp
C++
cpp
36,046
permissive
// Copyright (c) 2014-2017 The Dash Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "activemasternode.h" #include "base58.h" #include "init.h" #include "netbase.h" #include "masternode.h" #include "m...
cb21b9f11da03333d1151cb8d84a0cc6ee7e2a13
af818e920c67d1b85b625be5908075915a933ce8
DouglasRMiles/QuProlog
/src/compare.cc
C++
cc
15,202
permissive
// compare.cc - Contains a function which compares the 2 terms // passed to it and returns the result of the // comparison in X2. // // ##Copyright## // // Copyright 2000-2016 Peter Robinson (pjr@itee.uq.edu.au) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may...
587cbc459f747088970168ef56136acf3fe4e281
89434626ad61f85e1866f874a910c20795c4f797
vipyami/libgdx-cpp
/src/gdx-cpp/graphics/g2d/BitmapFontCache.cpp
C++
cpp
10,394
permissive
/* Copyright 2011 Aevum Software aevum @ aevumlab.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by app...
cda713fd43064840407260ef2a993104ed232e24
8fff6b1ccc1a66c5103693e36731115fe231f718
nikola-tesla-448/iwill
/plugins/mongo_db_plugin/include/iwillio/mongo_db_plugin/mongo_db_plugin.hpp
C++
hpp
1,066
permissive
/** * @file * @copyright defined in iwill/LICENSE.txt */ #pragma once #include <iwillio/chain_plugin/chain_plugin.hpp> #include <appbase/application.hpp> #include <memory> namespace iwillio { using mongo_db_plugin_impl_ptr = std::shared_ptr<class mongo_db_plugin_impl>; /** * Provides persistence to MongoDB fo...
17ba939fbf3f843b5c98a1d7afd377d4b8afa992
dd10fc56d0eeb7db2b4cd43af17cb645820eeb5f
xinggangw/apollocaffe
/include/caffe/loss_layers.hpp
C++
hpp
35,290
permissive
#ifndef CAFFE_LOSS_LAYERS_HPP_ #define CAFFE_LOSS_LAYERS_HPP_ #include <string> #include <utility> #include <vector> #include "caffe/blob.hpp" #include "caffe/common.hpp" #include "caffe/layer.hpp" #include "caffe/neuron_layers.hpp" #include "caffe/proto/caffe.pb.h" namespace caffe { const float kLOG_THRESHOLD = 1e...
5714d6f41d832afbdb1c116f623af96dc9d45a3e
8662a7567a3e69fb406fc0df25f1442618d56cda
martinknafve/hmailserver
/hmailserver/source/Server/Common/Mime/MimeCode.cpp
C++
cpp
29,627
no_license
/* Copyright (c) 2003, Jeff Lee 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 conditions and the following dis...
097fc4aa8d1e166f74f516e1d707d4970795d502
b69c37af33f60fc988efc31a97596596422e2a9f
LynnaPan/leetcode
/c++/8string-to-integer-atoi.cpp
C++
cpp
1,252
no_license
class Solution { public: int myAtoi(string str) { str.erase(0, str.find_first_not_of(" ")); long result = 0; int sign = 0; for(int i = 0; i < str.length(); i++){ if(i == 0) { if(str[i] == '+') sign = 1; else if(str[i] ...
7680541fef421e0e5b53f2c4065c254f1e91d770
5e2659dc9de40430656c7325d4610ab954b7b449
Mabraygas/Data_Fenfa
/src/thread_update.cpp
C++
cpp
14,504
no_license
/** * @file data_verify.cpp * @brief 数据校验 * @author Yuantu * @version ver 1.0 * @date 2012-11-19 */ #include <string> #include <iostream> #include <net/if.h> #include <tinyxml.h> #include "thread_update.h" #include "DayLog.h" #include "SmsNotify.h" #define LOG(format, args...) g_log.TWrit...
123c31d67940fa18a3fae53f56a9ce95132a6c67
11242621558bdffea90c6dd928b64c8ce06e7b05
neuroradiology/clasp
/src/core/lisp.cc
C++
cc
94,546
no_license
/* File: lisp.cc */ /* Copyright (c) 2014, Christian E. Schafmeister CLASP is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. See...
7de1796e2b114d1502125ae29cbdaef0d322dac1
1f193e25ad59aabbc7f4527893d1de75dc21f0c1
KimSung-gon/Capstone1
/Client/StringTokenizer.cpp
C++
cpp
1,289
permissive
#include "StringTokenizer.h" StringTokenizer::StringTokenizer(string str) { mStr = str; mDelims = ""; mReturnDelims = false; tokenizer(); } StringTokenizer::StringTokenizer(string str, string delims) { mStr = str; mDelims = delims; mReturnDelims = false; tokenizer(); } StringTokenizer::StringToke...
1793f44f4a955f8282878da50f97debe7bba69f4
267deaffa356d7d534428035e974d6bfef15fec4
finnickniu/tensorflow_object_detection_tflite
/include/tensorflow/lite/tools/make/downloads/absl/absl/synchronization/internal/mutex_nonprod.cc
C++
cc
8,819
permissive
// Copyright 2017 The Abseil Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
8e40f97ad64d18195987838cdd3e08fb16edb5bd
dfe304eca9d5aef71d173294399d397bd992175d
lineCode/ZFFramework
/ZF/ZFUIKit/zfsrc/ZFUIKit/ZFUISysWindowEmbedNativeView.cpp
C++
cpp
2,127
permissive
#include "ZFUISysWindow.h" #include "protocol/ZFProtocolZFUISysWindowEmbedNativeView.h" ZF_NAMESPACE_GLOBAL_BEGIN // ============================================================ zfclass ZF_ENV_EXPORT _ZFP_ZFUISysWindowEmbedNativeViewImpl : zfextends ZFObject, zfimplements ZFUISysWindowEmbedImpl { ZFOBJECT_DECLARE...
0650102881ad807d57aff91046bf51bcdd9050d2
992bb0b9a868289aee2160888e99f3b7221984ec
trizdreaming/GameServerProgramming
/HW_07_LOG_DUMP/EduServer_IOCP/Log.cpp
C++
cpp
1,619
no_license
#include "stdafx.h" #include "Log.h" #include <iostream> void ThreadCallHistory::DumpOut(std::ostream& ost) { //todo: 현재 스레드의 call history를 ost 스트림에 쓰기 uint64_t count = mCounter < MAX_HISTORY ? mCounter : MAX_HISTORY; ost << "===== Recent Call history [Thread:" << mThreadId << "]" << std::endl; for ( int i = 1;...
d4089bcbf79acc3373f495915dd54453061bbb57
a460ce63f605ad52ab2a68fbc434ed2669ceea61
suryathejareddy/CPrograms
/count.cpp
C++
cpp
651
no_license
/* OVERVIEW: Given 2 integers (num1, num2), write a function that returns the count of numbers between the num1..num2 that are divisible by num1. E.g.: count(3, 15) returns 5 (3, 6, 9, 12, 15). Note : You need to consider Inclusive range INPUTS: Two numbers num1, num2. num1, num2 >= 0. OUTPUT: Return th...
03aaa7b0cd8a43f50ee3a5bd42204febbff384a9
21f763656e36ab5cfffea6783a3f2ef2afb82258
tri-water/MembraneModel
/main.cpp
C++
cpp
6,024
no_license
#include "mesh.h" #include <iostream> #include "IonSystem.h" #include "thermodynamics.h" #include <map> #include "potentialSignal.h" #include "solver.h" #include "equationCoefficients.h" #include "utility.h" #include <string> #include "ErrorTypes.h" #include <sstream> using std::cin; using std::cout; typ...
4f65ccc3143fbf3b71bc92959dcbd72b4b8572f6
fe14b21f0c370db1d87503154c12471ed0daeb54
qwertyran3/coding
/GFG/arrays/10.cpp
C++
cpp
1,741
no_license
#include<bits/stdc++.h> using namespace std; #define ll long long #define ini(arr, val) memset(arr, (val), sizeof(arr)) #define loop(i,n) for(ll i=0; i<n; i++) #define loop1(i,n) for(ll i=1; i<=n; i++) #define all(a) (a).begin(),(a).end() #define dupli(a) unique(all(a)),(a).end() #define exist(s,e) (s.fi...
6f56bd2a9cca87499d3f7e64dfbada1d7a7c9553
8d3599594650d750619be4f33b96524868c3c191
BitcoinBankProject/bitcoinbank
/src/net.cpp
C++
cpp
56,365
permissive
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "db.h" #include "net.h" #include "init.h" #include "addrman.h" #include "...
5ee07e90e2c075e2ce106a5f4cd4297acb67dd03
ca20a8501fde5f4e8faf332d2fb74d9a3cb62897
salvAuri/optimisationRefactoring
/refactoringOptimisation/differentiatedCAD/occt-min-topo-src/src/STEPConstruct/STEPConstruct_ExternRefs.hxx
C++
hxx
5,543
no_license
// Created on: 2000-09-29 // Created by: Andrey BETENEV // Copyright (c) 2000-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 a...
1d3094e0894cf6d4fa5741739871a4ef51f30977
c2775b385780ed22253ac60c85bcc0115cc7117e
michalsvagerka/competitive
/arch/a2oj/c/Cactus.cpp
C++
cpp
1,827
no_license
#include "../l/lib.h" #include "../l/mod.h" #include "../l/graph.h" #include "../l/bridges.h" #include "../l/util.h" class Cactus { public: void dfs(int u, int p, vector<int>&B, const vector<vector<int>>&E) { if (p != -1) B[u] += B[p]; for (int v:E[u]) if (v != p) dfs(v, u, B, E); } void sol...
8c3f3078f327849c6bc732a030233a89ad95a119
55a2e3d2c0a813864ca41c17d18aac047c6fce06
forhappy/rocksdb
/table/block_based_table_builder.cc
C++
cc
16,310
permissive
// Copyright (c) 2013, Facebook, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. // // Copyright (c) 2011 The...
f912593fcf26e0b6c6821e152fc101e9648ea5bf
2f38506e9b976e721f74f599c696c88b74c542e1
ws2356/beast
/test/doc/websocket_snippets.cpp
C++
cpp
7,841
permissive
// // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com) // // 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) // // Official repository: https://github.com/boostorg/beast // #include <boost/beas...
c13a1e2aa5b9613ec5d64cbafbd228924a213ab8
315964cb21fc5da7abad69b4d11316ddfcabed75
ping28198/SeperateParcels
/Projects/HKvisionDemo/SimpleSamples/Grab_ActionCommand/Grab_ActionCommand.cpp
C++
cpp
9,404
no_license
#include <stdio.h> #include <Windows.h> #include <process.h> #include <conio.h> #include "MvCameraControl.h" bool g_bExit = false; bool g_bReceive = false; unsigned int g_nPayloadSize = 0; unsigned int g_DeviceKey = 1; unsigned int g_GroupKey = 1; unsigned int g_GroupMask= 1; // ch:等待按键输入 | en:Wait for key press void...
8d2ddcee29362c9947d38d99bb4c44f31f824782
f156e96e12bc5fadf13a14c58b08f5de5025ee32
Challis-yin/-c-
/散装/实验五(2).cpp
C++
cpp
202
no_license
#include<iostream> using namespace std; int main() { int n; cin>>n; int *a = new int[n]; for(int i = 0;i<n;i++){ cin>>a[i]; } for(int i = 0;i<n;i++){ cout<<a[i]; } delete [] a; return 0; }
313a39b05a095a330cb760c6e700f770901ebb9c
da8850e69500b2e42d64ea87478d4aeeb05d0fca
MohamedGhareeb933/CPP-Code-Camp
/STL/Vector/Vector/Vector.cpp
C++
cpp
1,060
no_license
#include <iostream> #include <string> #include <iterator> #include <map> #include <vector> #include <sstream> #include <limits> void intVector() { std::vector<int > intVector({ 5, 2, 3, 5, 7, 6, 9, 12 }); intVector.push_back(1); intVector.push_back(2); intVector.push_back(3); intVector.push_back(4); intVector....
28ca246e6be84dacad5caee1db812aa9e0e278b9
fd9b931ce089d4d8d578ba17ff11aaecc216ad94
15831944/job_mobile
/lib/lib_XT12/Samples/UserInterface/GUI_OneNote/PaneNew.cpp
C++
cpp
3,945
no_license
// PaneNew.cpp : implementation file // // This file is a part of the XTREME TOOLKIT PRO MFC class library. // (c)1998-2008 Codejock Software, All Rights Reserved. // // THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE // RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WITHOUT THE EXPRESSED WRITTEN // CONS...
d712a4e4a65fcea7d2a362b44a49290892d39ff6
0b12f8aa88335bc95d7f405934c3c5e98b3c764f
HampsterEater/VoxelEngine
/Source/Engine/Renderer/OpenGL/OpenGL_ShaderProgram.cpp
C++
cpp
2,759
no_license
// =================================================================== // Copyright (C) 2013 Tim Leonard // =================================================================== #include "Engine\Renderer\OpenGL\OpenGL_ShaderProgram.h" OpenGL_ShaderProgram::OpenGL_ShaderProgram(GLuint id, std::vector<Shader*>& shaders) ...
35e299ce8beb19a7c155172b114b57724e269ca1
9a3ecf968e00ead907e1f43a975b54547b5d3388
vigneshm2/cp
/solutions/codeforces/750A.cpp
C++
cpp
1,538
no_license
// Created by Vignesh Manoharan #include <iostream> #include <vector> #include <algorithm> #include <cstdio> #include <cmath> #include <map> #include <queue> #include <stack> #include <set> #include <numeric> using namespace std; typedef long long ll; typedef vector<int> vi; typedef pair<int,int> i...
dedd12d598bf17b84c95d03593d007e860e64a64
5b1a12f597adba40b302f693f89ba12e1a817342
henryzhang6686/myAlgorithmCode
/prim算法.cpp
C++
cpp
1,935
no_license
#include<bits/stdc++.h> using namespace std; void Prim(int n,int A[ ][100]) { int weight[100];//未加入最小生成树的点到已经加入最小生成树的点集的最小边的权值 int adjvex[100];//加入最小生成树的点到已经加入最小生成树的点集的最小边的出发点 bool flag[n+1];//表示是否已经为最小生成树顶点,初始为false memset(weight,0,sizeof(weight)); memset(adjvex,0,sizeof(adjvex)); flag[1]=tr...
396ce91a8681e0bbef9a9a92b2d554305ba84333
9c65099c1d6be10693c867d13405d76f7a55392e
danielphan2003/olympic-tin-badiem
/misc/kn/kn.cpp
C++
cpp
518
no_license
#include <fstream> using namespace std; ifstream in; ofstream out; int n, k; int C[15]; void ghi_nghiem() { for (int i = 1; i <= k; i++) out << C[i] << ' '; out << endl; } void to_hop(int i) { for (int v = C[i-1]+1; v <= n-k+1; ++v) { C[i] = v; if (i == k) ghi_nghiem(...
ac878c4bc0ff9f8d01112d142606fc65291bf462
d52c38c1f1474c35e67fee8e7223a71cc91176c3
nagyist/mapd-core
/DataMgr/ForeignStorage/ParquetShared.cpp
C++
cpp
3,715
permissive
/* * Copyright 2022 HEAVY.AI, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
68955b13d3bcc7d7e16523d0bf7052447082e591
4cbdc1c8ab8e7402babaaa9a6d11def119337e9f
Waza474/Mastermind-Game
/MasterMind_Game/Assignment2/Board.cpp
C++
cpp
3,274
no_license
/* Board Class File */ #include "Board.h"; // Constructors and Destructors Board::Board() { boardCollumns = 0; boardCollumns = 0; boardCurrentRow = 0; } Board::Board(int Row, int Collumn) { boardRows = Row; boardCollumns = Collumn; boardCurrentRow = 0; /* vector<string> boardPlayerMoves; ...
5f6484525539f4074c1d763395632634b548d232
e896e96d8b461ac72d887fdf4d864bd17f45bf7f
itrail/imageProcessing
/Task4/Grayscale/main.cpp
C++
cpp
564
no_license
#include <iostream> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgcodecs.hpp> int main() { cv::Mat image = cv::imread("C:/QTProjects/Zadanie4/Gdynia.jpg",cv::IMREAD_GRAYSCALE); if (image.empty()) { std::cout << "Błąd w odczycie pliku"; ...
409a74266a8bca8441514157b0f5e8278df13d9d
b4a56acd285e48788e73d7a72d51f65363f480b0
cazireth-llc/ikebots
/playerbot/strategy/values/EnemyPlayerValue.cpp
C++
cpp
4,976
no_license
#include "botpch.h" #include "../../playerbot.h" #include "EnemyPlayerValue.h" #include "TargetValue.h" using namespace ai; using namespace std; /*class FindEnemyPlayerStrategy : public FindTargetStrategy { public: FindEnemyPlayerStrategy(PlayerbotAI* ai) : FindTargetStrategy(ai) { } publi...
91e720d7dc5eca5028e397b60c56f81c0cc9cddd
7f2da7ca14e112fc8d522a23ce21d4347ff01dcf
kennkino/2013teresAI
/2013teresAI/2013teresAI/Init_Tagger.cpp
C++
cpp
2,197
no_license
/*鬼を初期化する関数です。*/ #include "Data.h" void init_Tagger(Tagger *tagger,int Stage[WIDTH][HEIGHT],Takara takara){ Tagger *init_tagger = tagger; /*************************************** *本番で、誰が鬼をやるかランダムで決定する ***************************************/ /*int tagger_num = 0; do{ tagger_num = GetRand(TAGGER_N...
9b90b170f3eb419f6dc1bdd23bbcc1a32f74719d
2a5ca320d4daa44571dbf239e66a329e47c1eb57
NERanger/Vision-SLAM-Algorithms
/visual_odometry/icp_svd/main.cc
C++
cc
6,853
no_license
#include <iostream> #include <chrono> #include <opencv2/core/core.hpp> #include <opencv2/features2d/features2d.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/calib3d/calib3d.hpp> #include <Eigen/Core> #include <Eigen/Dense> #include <Eigen/Geometry> #include <Eigen/SVD> using namespace st...
b0aa2e7ec92c2ebf6589a19ae9d200913c9b5cf1
2a5d7f2336151375617a65d00f2bbbd5abfb5bf8
verdande2/CST211-Spring-12
/Assignment 11/Assignment 11/main.cpp
C++
cpp
3,107
no_license
/*********************************************************** * Author: Andrew Sparkes * Title: CST 211 Assignment 11 * Filename: main.cpp * Date Created: 5-24-12 * Modified: 5-26-12 : documentation, small tweaks * * Overview: * This program is a driver demonstrating the basic * capabilities of a undirected graph c...
df3a921a84ce9389a269160808e8a663d36eba09
861742f5a6ecde779cf7f65c26a00651145e4c60
Run542968/scut_DataStructureLab
/lab3/InsertSort/insertsort.cpp
C++
cpp
3,064
permissive
/**************** * @ File: intsertsort * @ Author: 杜佳润 (201830060183) * @ Date: 2019-11-4 * @ Description:InsertSort ****************/ #include<iostream> #include<ctime> #include<windows.h> #include<fstream> using namespace std; void swap(int a[], int i, int j) {//函数实现 int p; p = a[i]; a[i] = a[j]; ...