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
9e8def60a05bde10f833531a23258409f16717a1
4507791c281d2aac6ad4080cf9d63577941e89d5
ayush8799/cp-templates
/A.cpp
C++
cpp
1,543
no_license
#include <bits/stdc++.h> #include<ext/pb_ds/assoc_container.hpp> #include<ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; template <typename T> using PBDS = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>; #define F_OR(i, a, b, s) for (int i=(a); (s)>0?i<(b):i...
8866b7daf39fabd7676a0f82f2451ffc1d39c695
aff9788dc9ab39d706f71cfedf76ef2d63c46e18
tschoonj/geant4tomosim
/src/FluorescenceSD.cc
C++
cc
4,915
permissive
#include "FluorescenceSD.hh" #include "G4HCofThisEvent.hh" #include "G4Step.hh" #include "G4SystemOfUnits.hh" #include "G4UnitsTable.hh" #include "G4HCofThisEvent.hh" #include "G4Step.hh" #include "G4SDManager.hh" #include "G4RunManager.hh" #include "PrimaryGeneratorAction.hh" #include "G4VUserPrimaryGeneratorActio...
9355cab8a5d56fddba4d18aa6af27bc176e53717
28da118839622cc02b51cda6b550ea88430e8906
radgeRayden/2D-Game
/Game/Main.cpp
C++
cpp
7,729
no_license
#include <iostream> #include <cstdint> #include <vector> #include <SDL2/SDL.h> #include <GL/gl3w.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include <cpplog/cpplog.hpp> #include <soloud.h> #include <soloud_wav.h> #include <soloud_wavstream.h> #include <imgui/imgu...
c07604eb296c2d2cfca839b7e39658ed9f16b865
58b607a8aa696dcb6ac1293055f62f5f3e9a65b4
demeter4444/uni
/algoritmika/lab6/dtim1806_L6_8.cpp
C++
cpp
2,319
no_license
//Demeter Tamás //511/2 /* Egy programozói versenyen több első, második és harmadik díjat osztanak ki. Ezeknek a száma x, y, z. A szponzoroktól kapottértéktárgyak mind különböző értékűek. A bizottság az x + y + z nyertesnek m darab érték[i] (i = 1, 2, ..., m) értékű tárgyat fog kiosztani, úgy hogy a díjak értéke cs...
fb6df42956b214f9055b18e4b9bc0b053681a017
35e22b9640ee1992d64281907a0c53b3c603e065
marv3fan/ETS2-Helper
/Vector.cc
C++
cc
237
no_license
#include "Vector.h" namespace ets2helper { Vector* Vector::vector_instance = NULL; Vector* Vector::Instance() { if(!vector_instance) vector_instance = new Vector; return vector_instance; } } //namespace ets2helper
96ea358427801e349e4c13396e0cda9d1ad30df0
5f143a92012f4d29be601833bd03c464be5fbbe5
ldube/ecos
/packages/services/memalloc/common/current/src/memfixed.cxx
C++
cxx
5,719
no_license
//========================================================================== // // memfixed.cxx // // Memory pool with fixed block class declarations // //========================================================================== //####COPYRIGHTBEGIN#### // ...
64204cf0a7b448a046f77ef29988529c82d3b0b7
cf0e4128d7c38c796da25e2ede1f63ec8c7484ea
shouth/CompetitiveProgramming
/ABC/ABC101-200/ABC111-120/ABC112/A_programming_education.cpp
C++
cpp
498
no_license
#include <utility> #include <bitset> #include <tuple> #include <string> #include <deque> #include <queue> #include <stack> #include <vector> #include <map> #include <set> #include <algorithm> #include <complex> #include <numeric> #include <iostream> #include <iomanip> #include <cmath> using namespace std; int main() ...
74e7023ed03b06ba9a7396eba541d271861b1d6f
fa6f7a60dd02bb6a6432c54a3e565f30c2d189a8
SBlincov/parallel-programming
/1608/blintsov_sd/lab1/main.cpp
C++
cpp
1,714
no_license
#include <iostream> #include "mpi.h" #include <cmath> double f(double a) { return (4.0 / (1.0 + a*a)); } void find_integral(double a, double b, int steps) { double t1 = 0, t2 = 0, step, result = 0; t1 = MPI_Wtime(); if (steps > 0) { step = (b-a) / (double) steps; for (int x = 0; x...
dd27f429f94b63836dc16affa9152914021b1fd8
6dbf2669a09b077ad2c0a5a06d4211b863fa979d
LeeWooSang/Capstone_Design_TeamProject
/Client/FreezeBomb/Code/GameObject/GameObject.cpp
C++
cpp
55,802
no_license
#include "../Stdafx/Stdafx.h" #include "GameObject.h" #include "../Texture/Texture.h" #include "../Material/Material.h" #include "../Shader/Shader.h" #include "Shadow/Shadow.h" #include "Billboard/LampParticle/LampParticle.h" #include "../SoundSystem/SoundSystem.h" #include "../FrameTransform/FrameTransform.h" #include...
3c3c35fb628c0dddfd2dfc4bee35ddd2c8053b5a
68b5186a0e8668677a1eca5ff2fd4268a4a25796
thomassjerin3/CyberEngineTweaks
/src/scripting/Scripting.cpp
C++
cpp
22,444
permissive
#include <stdafx.h> #include "Scripting.h" #include "Options.h" #include "GameOptions.h" #include <sol_imgui/sol_imgui.h> #include <d3d12/D3D12.h> #include <console/Console.h> #include <reverse/Type.h> #include <reverse/Array.h> #include <reverse/BasicTypes.h> #include <reverse/SingletonReference.h> #include <reve...
d51038fc9eca9baccff825a3de9a1f6a222d2744
33ecbc108b0ff0372a913d655bc1d65faa333a52
icoins/telos
/contracts/eosio.system/delegate_bandwidth.cpp
C++
cpp
18,932
permissive
/** * @file * @copyright defined in eos/LICENSE.txt */ #include "eosio.system.hpp" //#include <../trail.service/trail.definitions/traildef.voting.hpp> #include <eosiolib/eosio.hpp> #include <eosiolib/print.hpp> #include <eosiolib/datastream.hpp> #include <eosiolib/serialize.hpp> #include <eosiolib/multi_index.hp...
f8fda41f208fb0eac94a647482a64be420168229
0c46fc2e46e9db1f1f11a171a64558fc8c4e9bdc
Ccolt/cs61
/pset1/test024.cc
C++
cc
499
no_license
#include "m61.hh" #include <stdio.h> #include <assert.h> #include <string.h> // A correct execution should not report errors. int main() { for (int i = 0; i < 10; ++i) { int* ptr = (int*) malloc(10 * sizeof(int)); for (int j = 0; j < 10; ++j) { ptr[i] = i; } free(ptr); ...
fca76cf57afd2f67f35fbcf4bd5d34d23c735ec0
75dddd0337e65ca45903d5a218946ebc962e8a51
tonyodoherty86/Genie-Reverse
/Source/Engine/RGE/MasterObject_Static.hpp
C++
hpp
4,355
no_license
#pragma once /** * @file Engine\RGE\MasterStaticObject.hpp * @author Yvan Burrie * @date 2018/06/30 * @version 1.0 */ #include "Sprite.hpp" class RGE_Player; class RGE_Game_World; #ifndef RGE_MASTER_STATIC_OBJECT_TYPE #define RGE_MASTER_STATIC_OBJECT_TYPE 10 #endif #define RGE_MASTER_STATIC_OBJECT_...
f2baafb86d813cfb85840f38b67b405ce62a37d1
c94566143be43d3bb38a241fcc949673b5833086
webosce/chromium53
/src/third_party/libvpx/source/libvpx/test/active_map_refresh_test.cc
C++
cc
4,274
permissive
/* * Copyright (c) 2015 The WebM 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributin...
a2e77bb3daf361077dfe4eea66107926d0e0128f
f654cf894242006a9a957face56d2f947a23367c
howtowhy/udacity_robotics_software_engineering
/project1/workspace/myrobot/script/welcome_message.cpp
C++
cpp
384
no_license
#include <gazebo/gazebo.hh> namespace gazebo { class WorldPluginMyRobot : public WorldPlugin { public: WorldPluginMyRobot() : WorldPlugin() { printf("Welcome to Stella's World!\n"); } public: void Load(physics::WorldPtr _world, sdf::ElementPtr _sdf) { ...
b7dfa647b234955ce5534d9eb5c154949bc4d5ee
74c877d8e6aa73f148c6f15b80e8fe978aeb4d25
webbjiang/skia
/gm/complexclip.cpp
C++
cpp
8,152
permissive
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm.h" #include "SkCanvas.h" //#include "SkParsePath.h" #include "SkPath.h" //#include "SkRandom.h" namespace skiagm { static const SkColor gPathColor = SK_ColorBLA...
6da5c7ce918272964f86e9b666953545556d25d1
8c90ada9d47710212fa9fc8d920fac201c0fb855
irvifa/online-judges
/codeforces/arpa-mehrad/arpa-obvious.cpp
C++
cpp
325
no_license
#include <bits/stdc++.h> using namespace std; typedef long long int ll; const int N = 10e6+5; int arr[N]; ll n, x, t; ll ans, idx; int main() { scanf("%I64d %I64d", &n, &x); memset(arr, 0, sizeof(arr)); while(n--) { scanf("%d", &t); idx = x^t; ans += arr[idx]; arr[t]++; } printf("%I64d\n", ans); return ...
9df528a1c89ed2216726835aadbe353677ae125a
2ff3af633ff35d3c6554a428530ba8ef7cfdf935
vishal7201/node
/src/node_stat_watcher.cc
C++
cc
5,922
permissive
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modi...
0c3daf1ecfa4068a71aec76a3fd223c6199edd3c
c765fc0b5bba4fd97e337bdef99b733a9bd8348a
BBlack-Hun/cpplearn
/Chapter_7/fun_ptr.cpp
C++
cpp
992
no_license
//fun_ptr.cpp -- 함수를 지시하는 포인터 #include<iostream> using namespace std; double gildong(int); double moonsoo(int); // 두 번째 매개변수는 int형을 매개변수로 취하는 // double형 함수를 지시하는 포인터 void estimate(int lines, double (*pf)(int)); int main() { int code; cout << "필요한 코드의 행 수를 입력하시오: "; cin >> code; cout << "홍길동의 시간 예상:...
2e1bcf27575741f8c27480bd838b32b7fbff25cf
b5afb215e1320ef8780810ccfb2443367a9980d8
Shoukat488/Data-Structure
/Searching/BinarySearch.cpp
C++
cpp
524
no_license
#include<iostream> using namespace std; int binarySearch(int array[] , int tail , int head , int key) { if(tail <= head) { int mid = (tail + head )/2; if(array[mid] == key) return array[mid]; if(array[mid] > key) binarySearch(array , tail , mid - 1 , key); if(arr...
625116c92131bc5c29edb110907160d5fd1fa681
34a33f098020bd2ac432c8979564e61235ac3074
Kiritow/OJ-Problems-Source
/hihoCoder/1070_crackpotisback.cpp
C++
cpp
1,497
no_license
#include <iostream> #include <cstdio> #include <cstring> #include <cmath> #include <algorithm> #include <climits> #include <vector> #include <queue> #include <cstdlib> #include <string> #include <set> #include <stack> #define LL long long #define pii pair<int,int> #define INF 0x3f3f3f3f using namespace std; const int m...
2052fa59344a6751d8c4c102ba907f0287464a23
b9dc0f813075ef477e036ef1168a9e695212e267
bengoana/TerrainGenerator
/src/terrain_material.cc
C++
cc
1,533
permissive
/*--------------------------------------------------------------------- Copyright (c) 2020 Pablo Bengoa (bengoana) https://github.com/bengoana This software is released under the MIT license. This program is a college project uploaded for showcase purposes. -----------------------------------------------------...
b0987d0fd481402e4dbfc8f68968ae21bd0934b6
06b602c9a5647532793f6b37ca489d2a2e31c164
pradeeptakdas/ThunderNanoServices
/Compositor/lib/Wayland/Westeros.cpp
C++
cpp
14,623
permissive
#include "Wayland.h" #include <westeros-compositor.h> #include <png.h> namespace WPEFramework { namespace Westeros { static const char* connectorName = "/tmp/keyhandler"; class Compositor : public Implementation::IServer { private: Compositor() = delete; Compositor(const Compositor&) = d...
ca57c06729ac8ee7162b7f22f98f06d342fcadec
6e1012261ce0c40f3f3fccaa00fefffb18925396
EllianCarlos/gema-bixo-contests
/Contest 6/A - Viagem no Tempo.cpp
C++
cpp
894
no_license
#include <bits/stdc++.h> // #include <algorithm.h> using namespace std; int main() { int n, m, k; cin >> n >> m >> k; queue<int> a; // vector<int> a_map; for(int i = 0; i < n; i++){ int n; cin >> n; a.push(n); //a_map.push_back(n); } for(int p = 0; p < m; p++) { k = min(k,...
3a92f05967e2171090a8115e9dd08db42e2a6ec8
a321d63967a97d8b3deeb9259b68ba44d7a6c374
apache/openoffice
/main/jvmfwk/plugins/sunmajor/pluginlib/gnujre.cxx
C++
cxx
8,656
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 y...
8f202c1f28c6e0116dccfc49483e7e4bb94b2989
87b32728961b0bf414f7ad9700028212fee8efb3
dimaLytvyniuk/OOP
/Laba_6/Laba_5/PointEditor.cpp
C++
cpp
1,649
no_license
#include "stdafx.h" #include "PointEditor.h" PointEditor::PointEditor() { } PointEditor::~PointEditor() { } void PointEditor::OnLBup(HWND hWnd) { if (curr_length < MY_SHAPE_ARRAY_SIZE) { pcshape[curr_length] = new PointShape(); POINT pt; GetCursorPos(&pt); ofstream fout("data_types.txt", ios_base::out...
80e39bdb7f8bbb481c62a5b38d6ecb7112ff275d
704862cae7733d3d932859b27465ebaccbe8a6fc
avikodak/ProgramsV3
/src/Websites/GeeksForGeeks/LinkedList/Page 1/DeleteNodesWhichHaveGreaterValueRightSide.cpp
C++
cpp
2,798
no_license
/* * DeleteNodesWhichHaveGreaterValueRightSide.cpp * * Created on: Mar 18, 2013 * Author: Avinash */ // // Testing Status // #include <string> #include <vector> #include <cstdlib> #include <cstdio> #include <cmath> #include <algorithm> #include <ctime> #include <list> #include <map> #include <set> #include <...
b67cac99ef4933de1cc05e53751a4b8ff5db392f
d44ab0e3381da13957b69bec90c7283c5f36b273
meiwise123/Programming-Principles-and-Practice-Using-Cpp
/Section_9/sect9_drill3.cpp
C++
cpp
2,382
no_license
/* Written by Jtaim Date 13 Jan 2019 Programming Principles and Practice Using C++ Second Edition, Bjarne Stroustrup Section 9 Drill 3 This drill simply involves the sequence of versions of Date to work 9.4.3. For each version define Date called today initialized to June 25, 1978. Then, define a Date called tom...
e1197b4757332a0a68a4780c56ea34ee28654f63
0a395b0a3ef66820358c147bb281e58ff801c305
jchuahtacc/mixed_reality_table
/tech_tests/detect_markers.cpp
C++
cpp
10,845
no_license
/* By downloading, copying, installing or using the software you agree to this license. If you do not agree to this license, do not download, install, copy or use the software. License Agreement For Open Source Computer Vision Library (3-clause BSD License...
c0d65761cc3430ee7cb063aa411875e55366cd3d
a52df54eb3ea76f5d4991d4a198bf8be6b519b35
shiver/blaze-lib
/blazemark/src/boost/TSMatTDMatAdd.cpp
C++
cpp
4,672
permissive
//================================================================================================= /*! // \file src/boost/TSMatTDMatAdd.cpp // \brief Source file for the Boost transpose sparse matrix/transpose dense matrix addition kernel // // Copyright (C) 2013 Klaus Iglberger - All Rights Reserved // // This fi...
f20029243af5f00984a3ac9825c0fa18a80b0200
e132680fa9167ffc70a5c3ef752228ce5f5b67f7
klemmster/TheiaSfM
/applications/extract_features.cc
C++
cc
4,730
no_license
// Copyright (C) 2013 The Regents of the University of California (Regents). // 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...
b44c190ec6122c5d511b866311208f57d72bea3d
c3ca901007f61c5c4dc5d0d1279a22377624784e
aval95/road_sign_recognition
/src/FinalProject.cpp
C++
cpp
2,997
no_license
/* Computer Vision Final Project - Road Sign Recognition Valente Alex - 1173742 UniPD - A.A. 2017-2018 */ #include "SVMclassifier.h" #include "RoadSignDetector.h" #include <cmath> #include <cstring> #include "opencv2/imgcodecs.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" #include ...
9d24ad644623198018e72415313f7bb15da8e764
c9e1cf9595cb53c1bf6eb87917bf2504773c7a63
Shell-Wataru/AtCoder
/Codeforces/670/A.cpp
C++
cpp
792
no_license
#include <iostream> #include <algorithm> #include <vector> #include <deque> #include <queue> #include <set> #include <iomanip> #include <map> #include <cmath> #include <iterator> // std::rbegin, std::rend #include <functional> using namespace std; using ll = long long; int solve() { ll n; cin >> n; vector<ll> A...
edb55b692889f9462b2e627bc58c58ad6119f2b6
81b2673ce5e66f1d66b4ecd439be966a2813f66b
dudochkin-victor/gogoo-app-camera
/plugin/viewfinder.cpp
C++
cpp
20,817
permissive
/* * Copyright 2011 Intel Corporation. * * This program is licensed under the terms and conditions of the * Apache License, version 2.0. The full text of the Apache License is at * http://www.apache.org/licenses/LICENSE-2.0 */ #include <sys/statvfs.h> #include <QTimer> #include <QDateTime> #include <QDir> #inc...
467d222a0fa1e2acba9d8b09f36ad8fcb5df509f
7eef46e3d74e6ed287687f9f50d5f07fe5ff093d
errNo7/Duilib
/Control/UIList.cpp
C++
cpp
74,235
no_license
#include "..\duipub.h" namespace DuiLib { // // CListUI::CListUI() : m_pCallback(NULL), m_bScrollSelect(false), m_iCurSel(-1), m_iExpandedItem(-1) { m_pList = new CListBodyUI(this); m_pHeader = new CListHeaderUI; Add(m_pHeader); CVerticalLayoutUI::Add(m_pList); m_ListInfo.nColumns = 0; m_Li...
ebecbfec52ed51c04f01006dab98c00df1ba5c46
7729ec2eb2c8afe90ae6351ccccd28376b2f9bc0
celestebarnaby/ImageEye
/eusolver/thirdparty/z3/src/muz/rel/dl_sieve_relation.cpp
C++
cpp
28,032
permissive
/*++ Copyright (c) 2006 Microsoft Corporation Module Name: dl_mk_explanations.cpp Abstract: <abstract> Author: Krystof Hoder (t-khoder) 2010-11-08. Revision History: --*/ #include <sstream> #include"ast_pp.h" #include"dl_sieve_relation.h" namespace datalog { // -------------------------------...
f189979da0a0c19526ae31357356b81aa734b034
a6c6f33cf779f6117d0dda9a9eca279bd846ac84
cryoco/Paddle
/paddle/fluid/inference/analysis/ir_passes/anakin_subgraph_pass.cc
C++
cc
10,966
permissive
// Copyright (c) 2018 PaddlePaddle 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...
d966212554320b887b4a4ce3e3571e87bb171252
2686df36ebe9154df5e7e6185610f54cc34d07db
stephenDiosDev/CPSC591-Project
/wxRaytracer/raytracer/Materials/Material.cpp
C++
cpp
815
no_license
#include "Material.h" // ---------------------------------------------------------------- default constructor Material::Material(void) {} // ---------------------------------------------------------------- copy constructor Material::Material(const Material& m) {} // ---------------------------------------------...
fb1964055686ffc62132716c4aa5760efa16cd82
fcc17c0ad06e4ae97d1e722338a5b8bc15d70325
perryuwang/engine
/flow/layers/fuchsia_layer_unittests.cc
C++
cc
32,936
permissive
// Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <deque> #include "gtest/gtest.h" #include <fuchsia/ui/scenic/cpp/fidl.h> #include <fuchsia/ui/scenic/cpp/fidl_test_base.h> #include <lib/async-l...
9b7e6bcf0a68253db2491f4bb2715b96a48d17f9
ee6a5c3eb80b24049fe8fc13c2572899b62055e3
Graff46/OGSR-Engine
/ogsr_engine/xr_3da/xr_area.cpp
C++
cpp
6,596
permissive
#include "stdafx.h" #include "igame_level.h" #include "xr_area.h" #include "xr_object.h" #include "xrLevel.h" #include "feel_sound.h" #include "x_ray.h" #include "GameFont.h" using namespace collide; extern BOOL g_bLoaded; void IGame_Level::SoundEvent_Register(ref_sound_data_ptr S, float range) { if (!g_bLoaded...
f0b7420cb590720cc0ca8af698650d69859a3e8f
dac3c1ed57b159a1f8d52d3620bcebd36ffab427
JohanssonDaniel/hangman
/evilhangman/src/evilhangman.cpp
C++
cpp
6,378
no_license
#include <iostream> #include <fstream> #include <string> #include <set> #include <map> using namespace std; const string alphabet = " abcdefghijklmnopqrstuvwxyz"; void initGame(); void createDict(set<string>& dictionary) { string filename = "di2.txt"; ifstream input; input.open(filename.c_str()); w...
0da104af2814b0db211b27b7dace3d307548b5c9
eefb45a4e3c8a0fb31927305b5e29f18db9d7e46
sudodata/VIPRE
/include/vipre/Log.hpp
C++
hpp
5,620
no_license
// // Log.hpp // vipre // // Created by Christian Noon on 12/2/11. // Copyright (c) 2011 Christian Noon. All rights reserved. // #ifndef VIPRE_LOG_HPP #define VIPRE_LOG_HPP #define VIPRE_LOG_ENABLED_ENVIRONMENT_VARIABLE "VIPRE_LOG_ENABLED" #define VIPRE_LOG_FILE_ENVIRONMENT_VARIABLE "VIPRE_LOG_FILE" ...
59013763d6517bee1885609a87c4f45f60c3de00
8df1b5d84362d7cf6cad9a549d93c07d508df1ae
zyex1108/OPS
/apps/c/CloverLeaf_3D/OpenACC/advec_cell_kernel1_zdir_openacc_kernel.cpp
C++
cpp
11,941
no_license
// // auto-generated by ops.py // #include "./OpenACC/clover_leaf_common.h" #define OPS_GPU extern int xdim0_advec_cell_kernel1_zdir; int xdim0_advec_cell_kernel1_zdir_h = -1; extern int ydim0_advec_cell_kernel1_zdir; int ydim0_advec_cell_kernel1_zdir_h = -1; extern int xdim1_advec_cell_kernel1_zdir; int xdim1_advec_...
f25e413a55be374f21c09d60f9a26e8c9948838b
21ee3379e9c1bbf3ce7cff12124fa615e7493997
andriybun/learn
/cpp/DataStructures/list/main.cpp
C++
cpp
2,130
no_license
#include "stdafx.h" #include "containers.h" int _tmain(int argc, _TCHAR* argv[]) { std::vector<std::vector<int> > adjacencyMatrix; size_t nVert = 10; adjacencyMatrix.resize(nVert); for (size_t i = 0; i < nVert; i++) { adjacencyMatrix[i].resize(nVert); } adjacencyMatrix[0][1] = 220; adjacencyMatrix[0][2] = 10...
46b7672ead6db18ce1c4cc4ae819596b310db55f
f9fc180e396ee5ee9a2f7fc40d4e09256e5890c9
johnschmuff/Galactis2D
/game.cpp
C++
cpp
24,531
permissive
//AsterBlaster Game Source file //John Schmuff //March 2009 #include "game.h" #include "ship.h" #include "weapon.h" #include "explosion.h" //how many columns/rows of enemies to draw //increase for more enemies //decrease for less enemies #define COLUMNS 5 #define ROWS 4 //background image LPDIRECT3DS...
f25337f355f686b679143d3fe9b34ae5f5a5201a
8eac0e16ba40375f82f2c7718c1c3abd3ae15323
CMSTrackerDPG/cmssw
/SimG4Core/PhysicsLists/src/MonopoleTransportation.cc
C++
cc
24,483
permissive
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... // // This class is a process responsible for the transportation of // magnetic monopoles, ie the geometrical propagation that encounters the // geometrical...
2e78898c5db66032f16e7a72a8e6d4c734ec5620
2e7a12f565f38043f62c5fad060b43b7a6d6b5b7
lam2003/MediaServer
/src/http/http_request_splitter.cpp
C++
cpp
2,286
permissive
#include <http/http_request_splitter.h> #include <common/config.h> #include <common/logger.h> #define SMS_HTTP_HEADER_END "\r\n\r\n" #define SMS_HTTP_HEADER_END_LEN 4 namespace sms { HttpRequestSplitter::HttpRequestSplitter() { } HttpRequestSplitter::~HttpRequestSplitter() { } size_t Ht...
6eb7a0c94a17ae241e1512c9177a667c4fbd02e1
4933678070bf8a8d79a7835785c4a1aae7d55152
alexandraback/datacollection
/solutions_2449486_0/C++/ImCrAcKiNgThEwOrLd/qual_b.cpp
C++
cpp
1,401
no_license
#include <iostream> #include <vector> #include <string> using namespace std; int a[100][100], cur[100][100]; bool good[100][100]; int main() { freopen("input.txt","r",stdin); freopen("output.txt","w",stdout); int t = 0; cin >> t; for (int counter = 1; counter <= t; ++counter) { cout << "Case ...
146cc9e4de48b4b75ff74a759031118de3c150d3
4574ef50ab729eaa64a38ed2e6c172ccb4ff9ea7
wushangshikongyonghengdazizai/okteta
/gui/bytearraycolumnview.cpp
C++
cpp
4,096
no_license
/* This file is part of the Okteta Gui library, made within the KDE community. SPDX-FileCopyrightText: 2003, 2007-2010 Friedrich W. H. Kossebau <kossebau@kde.org> SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include "bytearraycolumnview.hpp" #include "bytear...
b791946311cd8ec522232e5d064059df47f79cab
68af6191641db6f1550962b01b098f24853ea833
nguyenkim495/L3DP-TheFirst
/ExternalLibs/irrLicht/src/irrLicht/video/Null/Writer/CImageWriterTGA.cpp
C++
cpp
3,924
no_license
// Copyright (C) 2002-2012 Nikolaus Gebhardt // This file is part of the "Irrlicht Engine". // For conditions of distribution and use, see copyright notice in irrlicht.h #include "CImageWriterTGA.h" #ifdef _IRR_COMPILE_WITH_TGA_WRITER_ #include "..\Loader\CImageLoaderTGA.h" #include "IWriteFile.h" #include "..\..\Nu...
684f6bbaf731a9f478a6854714c25da2cd053e7c
665d067b62e437c0c0f4054a5ef6a11d99b5a5be
qqyc/Practice_of_Programming
/RealPractices/05/10.MyClass.cpp
C++
cpp
672
permissive
#include <iostream> using namespace std; class CMyClassA { int val; public: CMyClassA(int); void virtual print(); }; CMyClassA::CMyClassA(int arg) { val = arg; printf("A:%d\n", val); } void CMyClassA::print() { printf("%d\n", val); return; } class CMyClassB : public CMyClassA { int val2...
3b659f74d91702462ca4b3c5b6e19bd72a6c7e3e
069eb1fac5d0fceee65ff0ae13acd65255c58cdf
adfilm2/algorithm
/dongmin/045-파이프 옮기기1/main.cpp
C++
cpp
1,786
no_license
#include <iostream> #include <vector> using namespace std; enum ROT{ HOR=0, VER, DIA }; int go[3][2] = {{0,1}, {1,0}, {1,1}}; vector<vector<vector<int> > > must_empty = { { {0,1} }, { {1,0} }, { {0,1}, {1,0}, {1,1} }}; struct Pos {int r,c;}; struct State { Pos p; ROT r; }; int ans = 0; bool canGo(Pos p, ve...
ab7cc22b25677bb6748815d0c81bb88c71388681
e9eb81acda811d41d56cf249737c604857149042
unofficial-opensource-apple/clang
/src/projects/compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc
C++
cc
11,133
permissive
//===-- tsan_rtl_mutex.cc -------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
30b15c361b63a3681f3fed3218f7b1c93b53511f
bcfafc17c77f5e2d2a7292c7fec21dd76b087242
LiberatorUSA/GUCEF
/dependencies/libRocket/Source/Core/TextureLayoutTexture.cpp
C++
cpp
5,215
permissive
/* * This source file is part of libRocket, the HTML/CSS Interface Middleware * * For the latest information, see http://www.librocket.com * * Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software a...
179c329f27804e2c86bebbd6df31347448495589
70df961cf81eb272a389c38c14b7d7bc83be6297
matthiasware/ArtifactRemoval
/bin/convert_svgs.cpp
C++
cpp
3,676
no_license
#include "convert_svgs.h" #include <dirent.h> #include <atomic> #include <omp.h> #include <iostream> #include <string> #include <vector> using namespace std; inline string replace_string(std::string result, const std::string &original, const std::string &newstr){ auto pos = result.find(original); if(pos != std::...
ab3ae7156b5a136fe621b223d29e82ed35a354e6
607081a56206d48628eff3083143f62803238ab8
arangodb/arangodb
/3rdParty/V8/v7.9.317/src/execution/arm64/frame-constants-arm64.cc
C++
cc
1,262
permissive
// Copyright 2013 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/execution/frame-constants.h" #if V8_TARGET_ARCH_ARM64 #include "src/execution/arm64/frame-constants-arm64.h" #include "src/codegen/arm6...
03dabe9d0b5c296a52a957b310913c580df11970
1e30f31a7baf3a2436a3215f9703bfb89bbcbabd
cms-patatrack/pixeltrack-standalone
/src/cudacompat/bin/main.cc
C++
cc
7,080
permissive
#include <algorithm> #include <chrono> #include <cstdlib> #include <filesystem> #include <iomanip> #include <iostream> #include <string> #include <vector> #include <tbb/global_control.h> #include <tbb/info.h> #include <tbb/task_arena.h> #include <cuda_runtime.h> #include "EventProcessor.h" #include "PosixClockGettim...
0f0193fa02cd037e0f9a5804c865fe35416afc7e
8fab427259be82682323f2c46883e5efe4402854
tangbin1566/Sophus
/test/core/test_rxso3.cpp
C++
cpp
12,663
permissive
#include <iostream> #include <sophus/rxso3.hpp> #include "tests.hpp" // Explicit instantiate all class templates so that all member methods // get compiled and for code coverage analysis. namespace Eigen { template class Map<Sophus::RxSO3<double>>; template class Map<Sophus::RxSO3<double> const>; } // namespace Eige...
67f4e6f98243971f19b0cf5e9ff05d9e4d73c0f3
b299ead5f407549f5a21a1eb9fa376e89c64c0c4
DavidKinder/Windows-Inform7
/Interpreters/Glulxe/I7Glk.cpp
C++
cpp
52,118
permissive
extern "C" { #include "glk.h" #include "gi_blorb.h" #include "gi_dispa.h" } #include "I7GlkChannel.h" #include "I7GlkCmd.h" #include "I7GlkFile.h" #include "I7GlkStream.h" #include "I7GlkBlankWindow.h" #include "I7GlkGfxWindow.h" #include "I7GlkGridWindow.h" #include "I7GlkPairWindow.h" #include "I7GlkTe...
5f7a87c007b1b0c98831822f2076e041a8b76789
4822659e6110078a0ad103278781d7d7bfd08299
jonathanopalise/legacy-ibm-pc-emulator
/pic.cpp
C++
cpp
3,344
no_license
/* Legacy (trunk) - a portable emulator of the 8086-based IBM PC series of computers Copyright (C) 2005 Jonathan Thomas Contributions and fixes to CPU emulation by Jim Shaw This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Licens...
d5a04d63b740f4b9e35cfe891832d3cbf0795a12
350f134358db1c829b267e346ce7d6cb89fb4e77
FlappyMan/HttpWebSocket
/UserCenter/UserCenterServer/Model/TradeBatchModel.hpp
C++
hpp
2,151
no_license
/* * @Author: your name * @Date: 2020-04-03 01:45:55 * @LastEditTime: 2020-05-26 00:53:39 * @LastEditors: your name * @Description: In User Settings Edittoken * @FilePath: /ukexserver/UserCenter/UserCenterServer/Model/TradeBatchModel.hpp */ #ifndef _TRADEBATCH_MODEL_HEADER_ #define _TRADEBATCH_MODEL_HE...
14ad2018472beae6964d12d58c81b6b20a154a4e
e89299b8110b3cf0fa535a80042060441b97b611
pranav1698/Competitive-Programming
/Datastructures/Stacks/next_greater_circular_element.cpp
C++
cpp
1,012
no_license
// Next greater element in circular array // SlothyCoder16 // July 17, 2020 class MyStack { public : int numElements; int stack[1000000]; MyStack() { this->numElements = 0; } void push(int x) { this->stack[this->numElements] = x; this->numElements = this->numElements + 1;...
1edc5fdb1fd8b5a1da7d8a29c3aa6899f0f633a0
eb3f35411eed36180e48cff783b4a93688e72857
zyjiang0571/Anvil
/src/wrappers/semaphore.cpp
C++
cpp
3,697
permissive
// // Copyright (c) 2017 Advanced Micro Devices, Inc. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights /...
7c31867411c47e0542ca2b1a4fe8c6cbdc07a93d
dd5b022ece4e5ad06d18c0ff5f135eb18903c0d8
uffbruno/Map-editor
/src/bounding_box.cpp
C++
cpp
2,806
no_license
#include <allegro5/allegro_primitives.h> #include "bounding_box.hpp" bounding_box::bounding_box(float x, float y, float w, float h, bool ic): position(x, y), w(w), h(h), ignore_collision(ic), color() { } bounding_box::~bounding_box() { } void bounding_box::draw() const { al_draw_rectangle(position.x, positi...
67941cefa7d5b091ef993c225a0f4ff7ecc4439c
4cac69a5bfe11b1c2c4df12330b1f2cbd314e93f
DanielaDominguez/ESFM-
/cd progra/área de un polígono.cpp
C++
cpp
836
no_license
//área de un polígono /*Librerias*/ #include <iostream> #include <stdio.h> #include <math.h> #include <stdlib.h> #include <conio.h> #include <dos.h> using namespace std; //este renglon nos permite poder usar el cout y el cin int main () { setlocale(LC_CTYPE,"Spanish"); ofstream archivo; remove("DonEst.txt...
f25a45599e19a6c50619630627a72963e4111c65
5c964730fced7a4231d5220ccc3e2a73a88c1463
TheCodingRook/Chrono
/Source/Chrono/ChronoCharacter.cpp
C++
cpp
7,612
no_license
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved. #include "ChronoCharacter.h" #include "HeadMountedDisplayFunctionLibrary.h" #include "Camera/CameraComponent.h" #include "Components/CapsuleComponent.h" #include "Components/InputComponent.h" #include "GameFramework/CharacterMovementComponent.h" #include "Ch...
6e078d5a7b19451da5d5dedb411055b766d69e84
343388f43f694ce753a144a132dc22c17b6addbc
akjapesh/Algorithms_Library
/Content/linecontainer.cpp
C++
cpp
1,334
no_license
/** * Description: Given set of lines, computes the greatest y-coordinate(minmax=0) or smallest y-coordinate(minmax=1) for any x * Source: KACTL * Verification: CSA Squared Ends */ bool Q; struct Line { mutable ll k, m, p;//slope, y-intercept, last optimal x bool operator<(const Line& o) const { return Q ? p < ...
88c9fa600b283a459ec984bb42f9db2e6b3a51ce
8b48541fbad0eaf1be154671d8717d9e79760a76
orirei/webcrawler
/search-engine.cpp
C++
cpp
7,555
no_license
#include <string.h> #include <stdio.h> #include <stdlib.h> #include <assert.h> #include "search-engine.h" #include <time.h> #include <math.h> #include "array-dictionary.h" #include "avl-dictionary.h" #include "bsearch-dictionary.h" #include "hash-dictionary.h" #include "webcrawl.h" SearchEngine::SearchEngine( int po...
fa58df3ed0fee9d74d2eb190662330077308836e
3ce8901d9e13fb848bac2c5655249b5925fcdc34
lyxm/blaze
/blazetest/src/mathtest/dmatdmatadd/SDbHDa.cpp
C++
cpp
4,036
permissive
//================================================================================================= /*! // \file src/mathtest/dmatdmatadd/SDbHDa.cpp // \brief Source file for the SDbHDa dense matrix/dense matrix addition math test // // Copyright (C) 2013 Klaus Iglberger - All Rights Reserved // // This file is par...
c1ae75f72d7469cadb05d11f258ca7d35ec2b71f
645562d7fa3c21c64b3b32e6efe74ee1151f04c3
Oh-kyung-tak/Algorithm
/Baekjoon/baekjoon_2863.cpp
C++
cpp
598
no_license
#include <iostream> #include <string> #include <string.h> #include <vector> #include <math.h> #include <algorithm> #include <map> #include <queue> using namespace std; double A, B, C, D; double first, second, third, forth; double max_num = -1; int main() { cin >> A >> B >> C >> D; first = (A / C) + (B / D); seco...
c7a99edcc1964f0618090a8c29c1640de5ad5c68
28df9c2d3623624ecd9c34604f3c37cb648a9b92
akashmodak97/Competitive-Coding-and-Interview-Problems
/Code Chef/Chef and Wedding Arrangements.cpp
C++
cpp
3,180
permissive
/* Code Chef */ /* Title - Chef and Wedding Arrangements */ /* Created By - Akash Modak */ /* Date - 20/8/2020 */ // There are N guests (numbered 1 through N) coming to Chef's wedding. Each guest is part of a family; for each valid i, the i-th guest is part of family Fi. You need to help Chef find an optimal sea...
bbf83f53d752a297f4b769dcd36b7d260f58225c
46e35a2662db08504e71494202aae6a7a7b9de75
ghmkorol/Huffman
/utilities/GenHuffmanCode.cpp
C++
cpp
7,019
no_license
/** * S19 CSCI 332 Design and Analysis of Algorithms * * Huffman Image Compression * (and Hashing) * * Phillip J. Curtiss, Assistant Professor * pcurtiss@mtech.edu, 406-496-4807 * Department of Computer Science, Montana Tech */ #include <cstdlib> // std c/c++ library routines #include <iostream> // i/o rout...
061e63adb7b6eae0a909c6912bf0f75f3f52a77c
023268048d878a804429db5871f8189734517285
kirillPshenychnyi/AEP
/vlog_data_model/api/vlog_dm_unpacked_dimension.hpp
C++
hpp
562
no_license
#ifndef __VLOG_DM_UNPACKED_DIMENSION_HPP__ #define __VLOG_DM_UNPACKED_DIMENSION_HPP__ /***************************************************************************/ #include "api\vlog_dm_dimension.hpp" /***************************************************************************/ namespace VlogDM { /****************...
16a5a4fc639a5cbf028df9b2075a16f2282d830b
4807ee7e47ac156209841b0a6fc0d9a617e4db06
phongth7/hello-cpp
/learncpp.com/basic/c-string.cpp
C++
cpp
1,634
no_license
// Copyright[2016] <Vex Woo> #include <iostream> #include <string> /* C++ provides following two types of string representations: - The C-style character string. - The string class type introduced with Standard C++. */ /* strcpy(s1, s2); - Copies string s2 into s1 strcat(s1, s2); - Concatenates stri...
c1860c0ce089e87993d876d1bc93ac89d2421871
abbed4e760019d802052d126e900df5cdc3eefe9
navrajsaini/Red-Black-Trees
/RB-T.cpp
C++
cpp
6,216
no_license
#include <iostream> using namespace std; struct node { int key; node *parent, *left, *right; char colour; }; class R_B_tree { public: node *root; node *q; //functions void LRotate (node*); void RRotate (node*); void Delete (node*); void Insert (/*node*/); void Insertfix (node*); v...
b827321b99a387d9bd62915d5c1b0e75cc50e5bd
966ee128b74fd78b5a325d6c4531437b108205d2
rsenwar/Codechef-Solutions
/SURCHESS.cpp
C++
cpp
1,198
no_license
#include<bits/stdc++.h> using namespace std; int n,m,qv,q,a[202][202],b[202][202]; int c[202][202],dp1[202][202],dp2[202][202]; vector <int> ch(201); void __init() { for(int i=1;i<=200;i++) for(int j=1;j<=200;j++) b[i][j] = (i+j)&1, c[i][j] = !((i+j)&1); } void make_dp() { for(int i=1;i<=200;i++) ch[i] = IN...
be420bb458d081031694a7727a6a5b52e2af703c
17cb07a5f1d82cb89bce0b04ac422a63421d6360
xgy1221/jdcoin
/src/qt/bitcoinaddressvalidator.cpp
C++
cpp
2,663
no_license
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The JDCOIN developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "bitcoinaddressvalida...
417f9c266e1afa04e243809806458b401b86d429
e006362300f3915f71f38321c294b673863ee606
grape0919/DocumentsClassification
/Classify/DDPView.cpp
C++
cpp
5,339
no_license
// DDPView.cpp : 구현 파일입니다. // #include "stdafx.h" ///#include "Classify.h" ///#include "DDPView.h" ///#include "DDPDoc.h" //#include <regex> //#include "ClassifyMethod.h" //#include "UtilFunction.h" using namespace std; // DDPView IMPLEMENT_DYNCREATE(DDPView, CFormView) DDPView::DDPView() : CFormView(IDD_DDPVIEW) ...
75e20de6d8b5aeca426a8e3a102e0e9b218a9586
55478405799983ca812a2d89a516b5e7a1909344
Usman032/DelMarCSi.cpp
/Chapter-2-Intro-to-C++/Programming Challenges/13.cpp
C++
cpp
935
permissive
/******************************************************************** * * 13. CIRCUIT BOARD PRICE * An electronic company sells circuit boards at a 35 percent * profit. Write a program that will calculate the selling price * of a circuit board that costs $14.95. Display the result on * the scree...
b091b68dd1d21d8e3bdeaf6ce1ed8eee5b46bb4e
a4e0a6679e24b7398e16c360877d90a8098a19b4
NCAR/lrose-core
/codebase/apps/ingest/src/hiResNidsEchoTop2Mdv/Main.cc
C++
cc
8,967
permissive
// *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* // ** Copyright UCAR (c) 1990 - 2016 // ** University Corporation for Atmospheric Research (UCAR) // ** National Center for Atmospheric Research (NCAR) // ** Bo...
ca70cbd999392b3214ea5a4e15470e85848d2375
44299c7fd23dc1fde9ce93fad6849c694a3b97d4
ArneZarg/Zargar
/Stats.cpp
C++
cpp
2,228
no_license
//Arne Zargarian //CSIS 135 //lab8p2 #include <string> #include <iomanip> #include <iostream> #include <fstream> #include "Stats.h" using namespace std; Stats::Stats(void) { for (int x = 0; x < 12; x++) { rainData[x] = 0.0; } } void Stats::setValue(int subscript, double value) { if (value ...
6dbe65ab3874cdc79a5c0951b87ff6a18137a9c0
5a73c548e9204e57fbd766c1ef7d39a712419633
abeaumont/competitive-programming
/codeforces/0935/a.cc
C++
cc
222
permissive
// http://codeforces.com/contest/935/problem/A #include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int c = 0; for (int i = 1; i <= n/2; i++) if ((n - i) % i == 0) c++; cout << c << endl; }
b6fa3d26c3ff4de7eb8fd3ce34c1f3afa71b6f3b
17042fc66ffe32d96f155f1084986fc00684c58d
SaxonRah/ActionRPGGame
/Source/ActionRPGGame/AREditorEngine.cpp
C++
cpp
982
permissive
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved. #include "ActionRPGGame.h" #include "Types/ARStructTypes.h" #include "GameplayTagsModule.h" #include "AREditorEngine.h" UAREditorEngine::UAREditorEngine(const class FPostConstructInitializeProperties& PCIP) : Super(PCIP) { } void UAREditorEngine::Init(IE...
0b91ae61b630f7aa84fb22dbf67a8ab5ce6c0fe7
6282dd13953bb798aec01dc9c919442861ab1eeb
PAYPROCOINPRO/PayProCoin
/src/qt/csvmodelwriter.cpp
C++
cpp
1,878
permissive
// Copyright (c) 2011-2013 The PayProCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "csvmodelwriter.h" #include <QAbstractItemModel> #include <QFile> #include <QTextStream> CSVModelWriter::CSVMode...
52745cfac8a1eacd25f8d6957aa9872aa15fe1cc
f4531df52ac7e1d6a4599f35b1f1a82c224fae57
trabs/DCMTK
/dcmimgle/libsrc/dimo2img.cxx
C++
cxx
8,174
permissive
/* * * Copyright (C) 1996-2005, OFFIS * * This software and supporting documentation were developed by * * Kuratorium OFFIS e.V. * Healthcare Information and Communication Systems * Escherweg 2 * D-26121 Oldenburg, Germany * * THIS SOFTWARE IS MADE AVAILABLE, AS IS, AND OFFIS MAKES NO WARRA...
d705b8302b3ec89f9d3067d36da0988bee0e12f4
cb5b4ba562377bce0c8ee423c14b3ce166f82664
gyuchang/r17
/np1/rel/recordset/io/mandatory_translate_record_input_stream.hpp
C++
hpp
5,280
permissive
// Copyright 2012 Matthew Nourse and n plus 1 computing pty limited unless otherwise noted. // Please see LICENSE file for details. #ifndef NP1_REL_RECORDSET_IO_MANDATORY_TRANSLATE_RECORD_INPUT_STREAM_HPP #define NP1_REL_RECORDSET_IO_MANDATORY_TRANSLATE_RECORD_INPUT_STREAM_HPP namespace np1 { namespace rel { namespac...
9537c96c67be50c51e7ec34934f549ae150e620f
5a5b358c3cabe43b24a024f4e21fa8e3d47d73d5
thewtex/LesionSizingToolkit
/include/itkLesionSegmentationMethod.hxx
C++
hxx
4,779
permissive
/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkLesionSegmentationMethod.hxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reserved. See ITKCopy...
dff9518cd5714bfc196ed6e29a341ebb0797ee5c
859f00602ef4d7ca40c51359c76c9529d55c809c
crashALot/CS162_L1_Matrix_Calculator
/readMatrix.cpp
C++
cpp
3,336
no_license
/********************************************************************* ** Author: Glenn Kiefer ** Date: 7/01/2018 ** Description: This program is used to validate and input int values * into a 2D dynamic array. An associated header file * contains the needed prototype func...
b649c52e41b1f933174fa75932027b7fc90f1ab7
eb82ed07bbc5557885164b152202df39c426172c
mmozercern/DevTools-Ntuplizer
/plugins/HLTMatchEmbedder.cc
C++
cc
6,485
no_license
// HLTMatchEmbedder.cc // Embed trigger matching #include <regex> #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/stream/EDProducer.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "FWCore/ParameterSet/interface/Pa...
0a3b729e704b4a7f7b8e68d48a7dd78c81e7c84b
a4464f9c436d7e14f9714bdf809ce6d7033152da
btparker/ofxMoment
/src/ofxMoment.cpp
C++
cpp
7,510
no_license
// // ofxMoment.cpp // ofxMoment // // Created by Tyler Parker on 4/19/15. // // #include "ofxMoment.h" ofxMoment::ofxMoment(){ valid = true; Poco::DateTime cdt; currDT = Poco::LocalDateTime(currDT.tzd(), cdt); } ofxMoment::ofxMoment(string timeStr){ int tzd; Poco::DateTime cdt; valid = P...
5b1e2560f9990b7c989dd4a1fd80bc899e33e6b7
76dd8a0a0dcce64f65da5605d325912fbf2d23a1
SeraphinaMJ/Reformed
/Source/Engine/TempestEngine/Components/MinionGroup_3.hpp
C++
hpp
2,012
no_license
#pragma once #include "Component.hpp" #include "../EngineInterfaces/Public/IComponentRepository.hpp" class minionGroup_3 : public componentCRTP<minionGroup_3> { public: /*!*************************************************************************************** \brief componentType getter \return The type of compo...
81b3f17bda07fe1b48aecce5f8883065cacf8704
9bde54e05d1c0112514a6f4a0c28e46717c83bd9
breneroliveira/estrutura-de-dados-1
/Aula 9 - Lista com descritor/L9ex1.cpp
C++
cpp
645
permissive
#include <iostream> #include <cstring> using namespace std; #include "listaComDescritor1.hpp" int main(void) { setlocale(LC_ALL, "Portuguese"); Lista *lista = new Lista(); /// Executa o construtor (inicializa a lista) insereInicioL(lista, 10); insereInicioL(lista, 20); insereInicioL(lista, 30);...
e08dc049848fcaa3c26b3542e03ad65da6846ed1
dfa4382830a8394d5410b74e46f716741236fef9
Smartuil/slamook2
/ch9/bundle_adjustment_ceres.cpp
C++
cpp
2,632
no_license
// // Created by smartuil on 2020/3/23. // #include <iostream> #include <ceres/ceres.h> #include "common.h" #include "SnavelyReprojectionError.h" using namespace std; void SolveBA(BALProblem &bal_problem); int main(int argc, char **argv) { BALProblem bal_problem("../problem-16-22106-pre.txt"); bal_problem.N...
f920dabb2a2fc8f947203d36171c952087ef22d6
1a5c1bdb54c18d3a208a739ee50ab4d178542819
compy-art/SoT-SDK
/SDK/SoT_Proposal_Merchant_Rank10Reward_004_classes.hpp
C++
hpp
798
no_license
#pragma once // Sea of Thieves (1.4) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "SoT_Proposal_Merchant_Rank10Reward_004_structs.hpp" namespace SDK { //--------------------------------------------------------------------------- //Classes //-----------------------------------------------------------...
25160b220223d3fa85251448e4ff6973544646ef
f92ca14484a3b927bfdd2715b838cba175bf0938
Somil2104/Leetcode
/DCP/Medium/CP26.cpp
C++
cpp
865
no_license
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x), next(nullptr) {} * ListNode(int x, ListNode *next) : val(x), next(next) {} * }; */ class Solution { public: ListNode* removeNthFr...
6618df4766b1598e7b010f2d2a6e5de084eab951
cf683039a0da248a33e5926b91f5329ead7fd7e7
Moltov/Time-Voyager
/Time-Voyager/TVSource/Managers/PropertyManager.hpp
C++
hpp
6,480
no_license
/** * Provides a class that manages properties for some class (e.g. IEntity). By * providing a PropertyManager class, other classes can easily add a flexible * property management system if desired. * * @file include/GQE/Entity/classes/PropertyManager.hpp * @author Jacob Dix * @date 20120615 - Initial Release *...
ff9ad90f924c6797f3e1eec0316de489dc225ae6
82e8a256bacdf3d892b608f07fa87fc48b6ad555
JacquetThomas/piscine_cpp
/D04/ex01/PlasmaRifle.cpp
C++
cpp
1,347
no_license
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* PlasmaRifle.cpp :+: :+: :+: ...
e9d67c0fcbfe4ac022e859419c6639a3fb2a9adf
b2ddab7d83abd06e1493d56909fab6711cc7017b
lbguilherme/duvidovc-app
/java/include/android.app.ProgressDialog.hpp
C++
hpp
4,147
no_license
#pragma once #include "../src/java-core.hpp" #include <jni.h> #include <cstdint> #include <memory> #include <vector> #include "java.lang.Object.hpp" #include "android.app.AlertDialog.hpp" namespace android { namespace app { class ProgressDialog; } } namespace android { namespace content { class Context; } } namespac...
5018bea368b6592fea39704298995a8ab3038864
043e6a673f0026e6cd781e03ab55d7b548c9bce6
ericbenedetto16/college-coursework
/CSC126/lab7/exercise2/Source.cpp
C++
cpp
1,721
no_license
#include <iostream> using namespace std; void initializeMap(); void displayMap(); void makeReservation(); void validateFunction(int seat, int row); void prompt(); char seatChart[13][6]; int num = 0; int main() { bool ended = false; initializeMap(); while (!ended) { prompt(); switch (num) { case 1: dis...
9981a49b8e594adc1a527d1849708a6a8d5927db
5a8f72050a4a2cbca5c1836e0b49fc3f5b7d9345
PoorlyDefinedBehaviour/data-structures-and-algorithms
/cpp/data_structures/arrays/Matrix.hpp
C++
hpp
5,466
permissive
#pragma once #include <stdexcept> #include <vector> #include <iostream> template <typename T> class Matrix { private: void assert_same_size(Matrix const &one, Matrix const &other) { if (one.rows != other.rows || one.columns != other.columns) throw std::length_error("Matrix A size must match Matrix B siz...