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
7f5cd9e4d2aca3ff4164f7d4666bd5d53721411f
7eafaa794bcb1ca983fdb1f4f681d45b9bea0e9f
leapmotion/librealuvc
/third-party/libtm/libtm/src/Main.cpp
C++
cpp
24,835
permissive
/******************************************************************************* INTEL CORPORATION PROPRIETARY INFORMATION Copyright(c) 2017 Intel Corporation. All Rights Reserved. *******************************************************************************/ #include <string.h> #include <stdio.h> #include <stdlib.h...
0097168e8ee911809c0203941675eecc89ede789
c9fca1ae4dc9095626ba5383221b95abec7ee446
jpreiss/bitdoku
/xwing.cpp
C++
cpp
1,730
no_license
#include "passes.h" #include "sudoku.h" #include "bitwise.h" // cache the digit_to_column_map for the whole board void digit_to_column_allrows(Sudoku &sudoku, int maps[9][9]) { for (int i = 0; i < 9; ++i) { sudoku.digit_to_column_map(i, maps[i]); } } // doing this one as a class because it has tons of nested lo...
5497616fc2ef68ced8bd5833075f2590d03ea62d
9d06feb0a75a4d8a3b27e7bf97046a292cf16bf6
saiias/Online_Judge
/poj/2260.cpp
C++
cpp
1,455
no_license
#include<iostream> #include<stack> #include<vector> #include<algorithm> #include<stack> #include<queue> #include<cstdio> #include<string> #include<cstring> #include<cmath> #include<complex> #include<sstream> #include<map> #include<set> #define DEBUG(x) cout<<"line"<<__LINE__<<":"<<#x" == "<<x<<endl #define REP(i,n) for...
146779d9dc181d39daae6387a6449229df94b913
61c47cafbedce303b262aa86f74f25e646b0466d
pianoman373/voxel-game
/src/client/Window.hpp
C++
hpp
715
no_license
#pragma once #include "Math.hpp" #include <string> struct GLFWwindow; class Window { private: public: static GLFWwindow *window; static void create(const vec2i &resolution, const std::string &title, bool fullscreen, bool vsync=true); static bool isOpen(); static void begin(); static void e...
acc7166f342f01203a2135c4601e53e137353bd0
db59d8f2d52d4367017c38171179900e1776fd45
Teffin/CPP-module
/module04/ex00/Sorcerer.hpp
C++
hpp
1,540
no_license
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Sorcerer.hpp :+: :+: :+: ...
dffa1feb6db0f959e5eb1473dce5475286c28238
40ecbd5510f598e932e651da550738190c3e9e15
keoni29/game_structure
/src/main.cpp
C++
cpp
2,020
no_license
/** Filename: main.cpp ** Author: Koen van Vliet <8by8mail@gmail.com> **/ /* Include Files */ #include <SDL2/SDL.h> #include <SDL2/SDL_image.h> #include <vector> #include <string> #include <iostream> #include "environment.h" #include "input.h" #include "gameobject.h" #include "renderer.h" #include "event.h" int TIL...
ce627d67a8a901845db07ae583d0408ceb10dc6b
f1b980fba8337b67177330eb67ec89e54a3dfda5
otcshare/chromium-src
/chrome/browser/feedback/feedback_util_chromeos.cc
C++
cc
2,460
permissive
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/feedback/feedback_util_chromeos.h" #include "base/bind.h" #include "base/callback.h" #include "chrome/browser/feedback/feedback_...
000d4182736bf345ca24196e7aff3f0ae84cebc0
d5256fc24ec54684c58b9a9793cef5ff9fb7eb69
mcclure/old-Polycode
/Core/Contents/Source/PolyGLTexture.cpp
C++
cpp
3,398
permissive
/* Copyright (C) 2011 by Ivan Safrin 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, modify, merge, publish, distri...
8307fc6b73a90850d89c1ba682aab75cae14ef33
a03b5a02a5af1bf60c79d5a447c3ae622a6563cc
biswanaths/competition
/cf/1038/c.cpp
C++
cpp
1,782
no_license
#include <vector> #include <list> #include <map> #include <set> #include <queue> #include <deque> #include <stack> #include <bitset> #include <algorithm> #include <functional> #include <numeric> #include <utility> #include <sstream> #include <iostream> #include <iomanip> #include <cstdio> #include <cmath> #include <cst...
caf7923c27f852c822bec75abd12173a6898b12b
e2b6187cdb035ca3fb0012721abe8195467e1687
meissnerlab/moabs
/src/mcomp/lib/stan/prob/distributions/univariate/continuous/von_mises.hpp
C++
hpp
6,174
no_license
#ifndef STAN__PROB__DISTRIBUTIONS__UNIVARIATE__CONTINUOUS__VON_MISES_HPP #define STAN__PROB__DISTRIBUTIONS__UNIVARIATE__CONTINUOUS__VON_MISES_HPP #include <stan/agrad/partials_vari.hpp> #include <stan/math/error_handling.hpp> #include <stan/math.hpp> #include <stan/meta/traits.hpp> #include <stan/prob/constants.hpp> #...
f643695695a3bba0c6638c96badf27f2ff76162a
69d9e40dd86935b079f309f969601a0289ca8029
Gab-Menezes/Graph
/Graph/src/OpenGL/ShaderProgram.cpp
C++
cpp
6,292
no_license
#include <pch.h> #include "ShaderProgram.h" ShaderProgram::ShaderProgram(const std::string & filepath) { ShaderProgramSource source = ParseShader(filepath); m_ShaderProgram = CreateProgram(source.VertexSource, source.FragmentSource, source.GeometrySource); } ShaderProgram::~ShaderProgram() { glDeletePro...
2479f0ac83c52c6204273f92f3fe6369557383cc
ac06ea83988ed143c888290392961910b6dffcd4
ParzivalSec/Spark
/src/MemorySystem/Allocator/NonGrowing/DoubleEndedStackAllocator.cpp
C++
cpp
6,821
no_license
#include "DoubleEndedStackAllocator.h" #include "Pointers/PointerUtil.h" #include "../../VirtualMemory/VirtualMemory.h" namespace { #ifdef STACK_ALLOC_LIFO_CHECKS struct AllocationHeader { uint32_t allocationOffset; uint32_t allocationSize; uint32_t allocationId; }; #else struct AllocationHeader { uint32...
898b06e906d11583614c17b1331e18798f383b6a
8f8a6c3640ba37c6c8c7be9d9dbd2e85812df11b
kmjp/procon
/codeforce/221-240/cf233/b2.cpp
C++
cpp
1,206
no_license
#include <cstdlib> #include <cstring> #include <memory> #include <cstdio> #include <fstream> #include <iostream> #include <cmath> #include <string> #include <sstream> #include <stack> #include <queue> #include <vector> #include <set> #include <map> #include <algorithm> using namespace std; typedef sig...
7e9b988538ae4310d77516030d2cac6546d403b1
1e62b10d9b5c88a390dd66936a44d039dfcca16a
IAmAnubhavSaini/cryptoAlgorithm-nt5src
/Source/XPSP1/NT/admin/wmi/wbem/sdk/activex/controls/eventviewer/container/container.cpp
C++
cpp
9,631
no_license
// Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved // Container.cpp : Defines the class behaviors for the application. // #include "precomp.h" #include "resource.h" #include "Container.h" #include <objbase.h> #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #...
896b529ac130754b8f242c53a27f27267acc4bf6
65009e3ca9f34117a68fb6deb8c32b0ff3cae904
IsraMekki/tiramisu_code_generator
/cmake-build-debug/programs_tiling/function14315/function14315_schedule_6/function14315_schedule_6.cpp
C++
cpp
681
no_license
#include <tiramisu/tiramisu.h> using namespace tiramisu; int main(int argc, char **argv){ tiramisu::init("function14315_schedule_6"); constant c0("c0", 2048), c1("c1", 128), c2("c2", 256); var i0("i0", 0, c0), i1("i1", 0, c1), i2("i2", 0, c2), i01("i01"), i02("i02"), i03("i03"), i04("i04"); computa...
cf8987e3476c9652ab3e0e767ee745d18d3be259
aeb395d1ba7c75d86ba91e8abb4d7c90453f3491
sarubiina/portfolio
/c++/adventuregame/Room.cpp
C++
cpp
1,638
no_license
//================================= //C++ OOP //Name: Katariina Pohjola //Student id: 1201141 //Assignment: the adventure game 6 //================================== //////////////////////////////////////////////////////////////////////////////// #include "Room.h" #include "MoveCommand.h" #include <cstdlib> ///////////...
2f6690eaa1cacaa9088a84fc23b7e09c6b50268b
7cfc6b28623978b45c9be788aa477d86e14639f0
nneesshh/wxLua53
/wxlua-wxwidgets311/wxLua/modules/wxlua/debugger/wxluadebugger_bind.cpp
C++
cpp
34,008
no_license
// --------------------------------------------------------------------------- // ../modules/wxlua/debugger/wxluadebugger.cpp was generated by genwxbind.lua // // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- ...
e54969fe7ef7e58dbd709d283881da1e2ea5aefc
1191668d3f6b9eae61054b2ed67609e3c1f4b6be
tikisi/Dangomushi
/Game/Game/src/Main.cpp
C++
cpp
3,244
permissive
// // OpenSiv3D v0.4.3 ゲームテンプレート // // // macOS では README.md と同じフォルダに // include と lib をコピーしてください。 // # include "Common.hpp" # include "Title.hpp" # include "Game.hpp" # include "GameOver.hpp" # include "CharaSelect.hpp" # include "Asset.hpp" # include "GameClear.hpp" # include "BattleScene/BattleSce...
1d0dcdcf0e7170a9db3f826a39dc9c8ed1833b81
7a860694a9f9dd19d88b89b12b9867123b06d977
darkrecher/pru-pra-prok
/code/splash/SoundPlayer.hpp
C++
hpp
1,196
permissive
#include <SDL.h> #include "ConfigInfos.hpp" #include "MovieEvent.hpp" #include <SDL_mixer.h> class SoundPlayer { private: int mixFrequency; int outputSoundChannelsQty; int chunkSize; int mixChannelQty; int SoundDeviceInitiated; MovieEvent **listOfMovieEvent; long int movieEventQty; ...
c616ad2de5aa8db34e1997bd4794baf7b8006b38
d68c577ded15a2233cfdbca807032bb5707864fa
Ace314159/Voxel-Engine
/Voxel-Engine/World.cpp
C++
cpp
5,077
no_license
#include "stdafx.h" #include "World.h" World::World() : shader("block"), blockAtlas("blocks.png") { glGenVertexArrays(1, &VAO); glBindVertexArray(VAO); glEnableVertexAttribArray(0); glEnableVertexAttribArray(1); glEnableVertexAttribArray(2); glVertexAttribFormat(0, 3, GL_FLOAT, GL_FALSE, offsetof(Mesh::Verte...
52212489186511d62a69ed5ea5a3a08a6861c77c
c5096a82bf31742c0e0074cba98dd396cb5f121e
wanghao15536870732/StudyNotes
/C/C语言-期末项目/Ege/demo/src/egetetris.cpp
C++
cpp
12,806
no_license
#include "graphics.h" #include <time.h> #include <stdio.h> #include <string.h> #include "ege/fps.h" const int g_width = 400; const int g_height = 520; /*记录7种形状及其4种变化的表*/ static int g_trs_map[8][4][4][4]; /*变化数目表*/ static int g_map_mod[] = {1, 4, 4, 4, 2, 2, 2, 1, 0}; /*初始化全局数据及图形显示*/ void initgr()...
d80aa2daf1ec88e19a9836fcfafc3d72ba0aea7f
f47f0be675b3200aba2139626bebb0241717ba49
cms-sw/cmssw
/L1Trigger/CSCTriggerPrimitives/test/GEMCSCLUTAnalyzer.cc
C++
cc
20,021
permissive
#ifndef L1Trigger_CSCTriggerPrimitives_GEMCSCLUTAnalyzer_h #define L1Trigger_CSCTriggerPrimitives_GEMCSCLUTAnalyzer_h /** \class GEMCSCLUTAnalyzer * * Makes the lookup tables for the GEM-CSC integrated local trigger * in simulation and firmware * * authors: Sven Dildick (Rice University) */ #include "FWCore/Mes...
070f3a25c131e8b1bf69ea5655d64d574376da51
9c85d3e2f719d5651d9e8a2098222b39d7313c74
wem-wem/ToTheTop
/src/actorManager.cpp
C++
cpp
4,701
permissive
 /** * @file actorManager.cpp * @brief アクターをマネージメントする関数群が置かれています * * @author y.akira * @date 2016.12.14 */ #include "precompiled.h" //! @brief AddActorを使って登録されたアクターはこのリストにまとめられます std::list<shared_ptr<Actor>> g_actorsList; /** * @brief アクターを追加します * @param [in] actor 登録するアクターです * @note 先に...
bf5baa829c6d85a0bc2fac318aa586de526847ee
d83045c4a52ec8f81343c5d244b9012cb39ac2f8
ESultanik/pretendo
/mappers/Mapper159.cpp
C++
cpp
4,148
no_license
#include "Mapper159.h" #include "Bandai.h" SETUP_STATIC_INES_MAPPER_REGISTRAR(159) //------------------------------------------------------------------------------ // Name: Mapper159 //------------------------------------------------------------------------------ Mapper159::Mapper159() : mapper_(new Bandai) { } //-...
fdb9ea297580fddcb4b792b2bedda8a7c9716ce9
3b460064b1b93c55474513c70e5fda1e62e62bd3
qqsskk/scenario_simulator_v2
/openscenario/openscenario_interpreter/include/openscenario_interpreter/syntax/traffic_signals.hpp
C++
hpp
1,943
permissive
// Copyright 2015-2020 Tier IV, Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
78e8abf03142e93a45c771e233f25d993e8eba63
12c0b6ca11d8cb8ac3531b5107e43628af4874a9
lemire/Code-used-on-Daniel-Lemire-s-blog
/2022/09/14/bench.cpp
C++
cpp
1,412
permissive
#include <benchmark/benchmark.h> #include <random> #include <vector> #include "escape.h" std::random_device rd; std::mt19937 gen(rd()); std::uniform_int_distribution<uint32_t> dp(0, 100); template< size_t SIZE, size_t NUM, size_t PROB, typename Fn > static void StringReplace(benchmark::State& state) { // Create a b...
727b01146e7cad7fc5318dde68b24cbe10dec0e5
4621033f8d5bdad3fd5ae30136e3253eb86835aa
Durian2022/v8
/src/compiler/bytecode-graph-builder.cc
C++
cc
185,747
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/compiler/bytecode-graph-builder.h" #include "src/ast/ast.h" #include "src/base/platform/wrappers.h" #include "src/codegen/source-position...
68daa2121e28da39971fb9eb68b28d7b4989033d
8e592529486c558d4b55d86e259a98c63e130661
MarcusWichelmann/shaka-packager
/packager/media/event/vod_media_info_dump_muxer_listener.cc
C++
cc
5,119
permissive
// Copyright 2014 Google Inc. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file or at // https://developers.google.com/open-source/licenses/bsd #include "packager/media/event/vod_media_info_dump_muxer_listener.h" #include <google/protobuf/te...
ab2e2d23d7dda733150a9e3bc12321568b9ea7e5
6dd0751a13ed1463adcf295d93b0fd9f51b4a960
Cardman/tutorials
/qt/projet_pokemon/pokemon_app/ihm/hors_combat/fiches/fichepkutequipe.cpp
C++
cpp
5,810
no_license
#include "ihm/hors_combat/fiches/fichepkutequipe.h" #include "ihm/combat/etiquettes/etiquetteattaque.h" #include "serialisable/pokemon/pokemonutilisateur.h" #include "base_donnees/donnees.h" #include "base_donnees/pokemon/fichepokemon.h" #include "ihm/hors_combat/gestionequipe.h" #include <QVBoxLayout> #include <QHBoxL...
8277dfab83e10a663e41d8d1c236fc536378641b
a634c3f753d398fbd63b3e52a55f64140b4514eb
ShyArivn/TEST-DSEP
/net/netserver.cpp
C++
cpp
322
no_license
#include "netlib.h" namespace netlib { NetServer::NetServer() { } void NetServer::_AddProcessHandler(NetHandleBuffer *processhandler) { _ProcessHandler = processhandler; } NetHandleBuffer *NetServer::_GetProcessHandler() { return _ProcessHandler; } NetTimeOut *NetServer::GetTimeOut() { return &_TimeOut; } ...
586bb8b3656319971ae2ae54c3a498e61ba35f29
12f783d9bb11e05f3f0f808be7f16a42a3eb8c67
Poltron/GeneticAvoiders
/Genetic/src/ObstacleManager.cpp
C++
cpp
2,327
no_license
#include "ObstacleManager.h" #include "Obstacle.h" #include <iostream> ObstacleManager::ObstacleManager() { } auto ObstacleManager::initialize(sf::Vector2u _terrainSize, float _spawnDelta, float _obstacleSpeed, float _obstacleSize) -> void { terrainSize = _terrainSize; spawnDelta = sf::Time(sf::seconds(_spawnDelt...
776f33e2101f60fbfb4b8e7e14076ff244a51ced
cd907f63714f6da8f4d0b0235edf8d5f72c66056
DonaldFoss/lmdb-queue
/src/module.cc
C++
cc
8,519
permissive
#include <nan.h> #include "topic.h" #include "producer.h" #include "consumer.h" using namespace std; using namespace v8; using namespace node; enum DataType { STRING_TYPE = 1, BUFFER_TYPE }; template<DataType DT> class BatchWrap { public: void push(const Local<Value>& val); public: Producer::BatchT...
11912ca78ade696092f88ed35a9876bfd17313ab
a1dee6caade3c2a8241c42622a82430e48c6191a
shurik111333/spbu
/olympic/classwork/25.09.15_bruteforce/ProjectD/ProjectD/ProjectD.cpp
C++
cpp
873
no_license
// ProjectD.cpp: определяет точку входа для консольного приложения. // #include <fstream> #include <cstring> using namespace std; ifstream fin("name.in"); ofstream fout("name.out"); int n; int sum = 'a' + 'b' + 'c'; void gen(char *str, int len, char last1, char last2) { if (len == n) { for (int i = 0; i < len; ...
436449c138bcd1759708f6764a23da588764b19d
1544b7d115168bce29ceecd2d7c942f8647dca79
apache/openoffice
/main/dbaccess/source/filter/xml/xmlAutoStyle.hxx
C++
hxx
2,008
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...
eeb03ac31201881e5e7b0e74f73bcc13d28217cf
512e7d3c4fc39488c829afe341af7265e6108efc
stefansu28/public-breeze-bruisers
/source/states/StateManager.cpp
C++
cpp
3,551
no_license
#include "../../include/states/StateManager.h" #include "../../include/states/GameState.h" #include "../../include/STexture.h" SDL_Renderer *StateManager::screen = NULL; //!!!!@@@TODO check for collisions and call on_collision on the correct entities // Initiate game int StateManager::Init() { // Initiate vid...
b4051e430e0c5408356ee39fd0d62cb50e06775f
a963fd56d678f4574c3f6f69bfc4cf1834105f64
Dvora-Tenenboim/cpp-exercises
/Zoo/main.cpp
C++
cpp
554
no_license
/*#include "lion.h" #include "goose.h" #include "clownfish.h" #include "whail.h" #include "zoo.h"*/ #include <iostream> int main() { /*Zoo myZoo; Lion A("Simba"); Lion B("Mufasa"); Goose C("Akka"); Goose D("Morten"); Clownfish E("Nemo"); Whail F("Tigo"); myZoo.addAnimal(&A); myZoo.addAnimal(&B); myZoo.addAnim...
676dd2fa7be7f296fc84a5e2cdd4effbeee536de
1b6d46585a73e8e72ba4bf3de339c66cb0ff0b87
mirzaei-ce/core-shahbit
/src/rpcprotocol.cpp
C++
cpp
3,783
permissive
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpcprotocol.h" #include "random.h" #include "tinyformat.h" #include "util.h...
3887ff7a0d018fca0d91d324bbc59afec39e0173
39fb4a4a63f2bd8c8cda779d6f0eee7e664c38ce
ramagottfried/optic
/jit.pcl/jit.pcl.convexhull/chan.convexhull.cpp
C++
cpp
3,478
no_license
#include "jit.common.h" struct HullPt { double x, y, z; HullPt *prev, *next; void act() { if (prev->next != this) prev->next = next->prev = this; // insert else { prev->next = next; next->prev = prev; } // delete } }; const double INF = 1e99; static HullPt hNIL = {INF, INF, INF, 0, ...
74265ea38a86e5e180dff6a3c1ac3c5d9085c4f0
14502f11566706b40430e18086dfdea6ecacc565
Reynau/Lemmings
/Lemmings/02-Lemming/Menu.cpp
C++
cpp
9,286
no_license
#include <iostream> #include <cmath> #include <algorithm> #include <GL/glew.h> #include <GL/glut.h> #include <glm/gtc/matrix_transform.hpp> #include "Menu.h" Menu::Menu() { map = NULL; } Menu::~Menu() { if (map != NULL) delete map; } void Menu::init(Cursor *cursor) { glm::vec2 geom[2] = { glm::vec2(0.f, 0.f)...
78e34978ba3e5bff71e175b1f3f4addcc2c3901c
8d707634e21914ca70d33b93305e30a7a396dc3b
AnupamDey/LC_codes
/213.cpp
C++
cpp
1,882
no_license
//Problem: #include <bits/stdc++.h> using namespace std; #define MAXX 1001 #define INFF 0x3f3f3f3f #define pb push_back #define pob pop_back #define mp make_pair #define fo(i,n) for (int i = 0; i < n; ++i) #define rfo(i,n) for (int i = n; i >= 0; --i) #define fo1(i,n) for (int i = 1; i <= n; ++i) #define test_case ...
45812f09e22e85b9b322a3cdbaaae4ae50875c48
edcdfe8a7ed9f2d588269bcd82e79a23cb1a9ca1
AnnaKolla/Kolla075-sims2014
/w01_h04_shapercntrl/src/testApp.cpp
C++
cpp
2,489
no_license
#include "testApp.h" #include "ofMain.h" //-------------------------------------------------------------- void testApp::setup(){ ofSetVerticalSync(true); ofBackground(30,30,30); // set the "a" and "b" positions of the rectangle... for (int i = 0; i < 10; i++){ myArect[i].posa.x = 0; ...
bbbbcad321e84a3ff170a432d44b70bcd0c6e55a
a43862704602cdd7be9057fa7d72a83d779be56f
k0c0u/FTest
/Source/FTest/AttackStartNotifyState.cpp
C++
cpp
766
no_license
// Fill out your copyright notice in the Description page of Project Settings. #include "AttackStartNotifyState.h" #include "FTestCharacter.h" void UAttackStartNotifyState::NotifyBegin(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation, float TotalDuration) { if (MeshComp != NULL && MeshComp->GetOwner...
67d7c5ede6d39deec4220fb0b166562afa26eb00
097448365f5f6c17032988210e2c0d701251cfd8
RoseKavalier/H3API
/include/h3api/H3Constants/H3CstHeroes.hpp
C++
hpp
9,899
permissive
////////////////////////////////////////////////////////////////////// // // // Created by RoseKavalier: // // rosekavalierhc@gmail.com // // Created or last upda...
d0c8dfc0cf42ab3fb397770c2765c29e07b4ed41
00b8817af593629c9ba74302c68a2f506a9bf604
hyeonjikim-kr/Absolute-Cpp-Solutions
/Chapter 6/Programming Projects/10.cpp
C++
cpp
1,542
no_license
/*Create a Temperature class that internally stores a temperature in degrees Kelvin. Create functions named setTempKelvin , setTempFahrenheit , and setTempCelsius that take an input temperature in the specified temperature scale, convert the temperature to Kelvin, and store that temperature in the class member var...
40a2894e90ae4a88bdccb022bf444d182dc859c7
1e5796ef216a835c47a825de389782c95eafb41f
hydrays/SAPHRON
/src/Worlds/World.cpp
C++
cpp
14,910
permissive
#include "World.h" #include "../Simulation/SimException.h" #include "../Validator/ObjectRequirement.h" #include "schema.h" #include <random> using namespace Json; namespace SAPHRON { void World::AddParticleComposition(Particle* particle) { int id = particle->GetSpeciesID(); // If ID doesn't exist yet, create i...
7e3aac8a656fa462afcf42ccb88d7650d5d438a1
1cc2691cf621d0b8e39be65b244ec3d766543a53
Aast12/competitive-programming
/uva/12289.cpp
C++
cpp
457
no_license
#include <iostream> using namespace std; int main() { int n, err; string word, one = "one"; cin >> n; while (n--) { cin >> word; if (word.size() == 5) cout << 3 << endl; else { err = 0; if (word[0] != 'o') err++; if (word[1] != 'n') err++; ...
a75addbdcb88b23b1fe58bd17cf13874ae25efb0
223210b42172571306eb952b63c060b8d3397b95
buu342/FCT-XilinxIntel8086
/isim/work/testbenchwaveform8086/xsimtestbench_arch.cpp
C++
cpp
2,747
no_license
static const char * HSimCopyRightNotice = "Copyright 2004-2005, Xilinx Inc. All rights reserved."; #ifdef __MINGW32__ #include "xsimMinGW.h" #else #include "xsim.h" #endif #include "C:/Xilinx92i/vhdl/hdp/nt/ieee/std_logic_1164/std_logic_1164.h" #include "C:/Xilinx92i/vhdl/hdp/nt/std/textio/textio.h" #include "C...
091b7aaedcbc2dee2773ca556696304d509bc42f
21964c3ca1e9591274979e3ed888d3c3d24c5bed
itohdak/AtCoder
/ABC/old/previous/05-/051/A.cpp
C++
cpp
477
no_license
#include <bits/stdc++.h> using namespace std; #define ll long long #define REP(i,m,n) for(int i=(int)(m); i<(int)(n); i++) #define rep(i,n) REP(i,0,n) #define REPL(i,m,n) for(ll i=(ll)(m); i<(ll)(n); i++) #define repl(i,n) REP(i,0,n) #define all(v) v.begin(), v.end() const int inf = 1e9+7; const ll longinf = 1LL<<60; c...
a31e8c2ba7bf2e1f433c69dbd65c2d5dfc77735b
de2c9122aa080d9370bbf55c45b7911eb57619aa
wafzam/Contact-Phone-Numbers
/Contact-Phone-Numbers/Contact-Phone-Numbers.cpp
C++
cpp
3,225
no_license
// Contact-Phone-Numbers.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <iostream> #include <map> #include <string> #include<fstream> #include<set> #include<iomanip> using namespace std; template<class T1, class T2> void showMultiMap(multimap<T1, T2> m) { cout <...
1bf6e5f782e0cbfa2503d6b2ce682eae2d924ce0
88b3e19f827268df7cb300bb370bb711843208da
gogo392539/algorithm_seo
/one_dimensional_ordering/one_dimensional_ordering_3052/one_dimensional_ordering_3052.cpp
C++
cpp
636
no_license
// one_dimensional_ordering_3052.cpp : 이 파일에는 'main' 함수가 포함됩니다. 거기서 프로그램 실행이 시작되고 종료됩니다. // #include "pch.h" #include <iostream> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(); cout.tie(); int nCount = 0; int narData[10] = { 0, }; int narData2[10] = { 0, }; int narData3[42] = { 0, ...
f13af5f98ebc42a66b2b6e9ce3458666460fcc27
ac518c4a89d52e5df614c5faa973fb6f7725daec
qq77457051/template2
/src/app/view/form/frmdbtcpclient.cpp
C++
cpp
5,137
no_license
#include "frmdbtcpclient.h" #include "ui_frmdbtcpclient.h" #include "quiwidget.h" #include "dbtcpclientthread.h" frmDbTcpClient::frmDbTcpClient(QWidget *parent) : QWidget(parent), ui(new Ui::frmDbTcpClient) { ui->setupUi(this); this->initForm(); this->initConfig(); } frmDbTcpClient::~frmDbTcpCli...
102b1af7c740cb20ba01f75b1a961cbb3a8a6876
4bd2fdf96cd78c7af99a36440d4dd2700bd092f5
RogerTheUnicornHive/litecoincash-1
/src/chain.cpp
C++
cpp
10,073
permissive
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2017 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <chain.h> #include <chainparams.h> // LitecoinCash: Hive #include...
8bd07e52b5247a9e9b5e58cb3ff83dc4c6960ffd
eba78f12ec12cf7ddfd6fe80fb8122765e9708cf
unisys12/phalcon-hhvm
/ext/kernel/session.cpp
C++
cpp
2,739
permissive
/* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2014 Phalcon Team (http://www.phalconphp.com) | +------...
d2f6c2ac18f993d4df5608aa31ba82a746e94768
83fd15b048c8f9256b4665371cdc7ef53aa12745
aaronlahcoin/lahcoin
/src/init.cpp
C++
cpp
46,175
permissive
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 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 "txdb.h" #include "walletdb.h" #include "bitcoinrpc.h" #include "net.h" #...
faaf6fb159311da2905bf8040d342985190223cb
6ea2c8ce5898d795439902f56ce6321ce88b8629
Hengle/zRemnant-SDK
/Cpp/SDK/BP_City_PlywoodTable_01a_functions.cpp
C++
cpp
1,628
no_license
// Name: Remnant, Version: 1.0 #include "../pch.h" /*!!DEFINE!!*/ /*!!HELPER_DEF!!*/ /*!!HELPER_INC!!*/ #ifdef _MSC_VER #pragma pack(push, 0x01) #endif namespace CG { //--------------------------------------------------------------------------- // Functions //----------------------------------------------------...
83965c4ea0ecf2cf05f60957d4055c21665f0f22
024e12b06e31a0843f7645a48b5a4d3e7e28e372
LosFuegos/CarND_Term2_Project3
/CarND-Kidnapped-Vehicle-Project/src/particle_filter.cpp
C++
cpp
11,022
no_license
/* * particle_filter.cpp * * Created on: Dec 12, 2016 * Author: Tiffany Huang */ #include <random> #include <map> #include <algorithm> #include <iostream> #include <numeric> #include <math.h> #include <iostream> #include <sstream> #include <string> #include <iterator> #include "particle_filter.h" using na...
f9373d3e8c4dda552f80df4e92e7bf374e80a57b
97ac95dcfc5fc32704f9263b9e377bdb1d601c36
urdnot2000/test-project
/Stores/SimpleComputerStore.cpp
C++
cpp
1,253
no_license
// // Created by urdnot on 10/15/15. // #include "SimpleComputerStore.h" #include "AsusMotherBoard.h" #include "MSIMotherBoard.h" #include "AsusComputer.h" #include "AcerComputer.h" #include <iostream> SimpleComputerStore::SimpleComputerStore() { } MotherBoard * SimpleComputerStore::buyMotherBoard(const std::string...
d22bd0ca9085af975df8bf852a519b5e03b5b0d8
98d6128d283ad7611acd18d642bab82274274838
Tartan-AUV/TAUV-ROS-Packages
/src/packages/tauv_common/src/tauv_utils_cpp/transforms.cpp
C++
cpp
810
no_license
#include <ros/ros.h> #include <tf/transform_listener.h> #include <tf/transform_datatypes.h> #include <eigen3/Eigen/Dense> #include "transforms.h" namespace transforms { TransformClient::TransformClient(ros::NodeHandle &n) : tf_listener(n) { } void TransformClient::transform_vector(Eigen::Vector3d &vin, ...
24ed9ff57c048967b5374ac5a3697d1c51e5f535
9342203a73a0f6fcbe9b1c182ebb0e09bb6ffab2
nahid597/Codeforces-Problems
/E.cpp
C++
cpp
1,743
no_license
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef unsigned long long ull; typedef pair<int, int> PII; typedef map<int, int> MII; typedef priority_queue<int> P_QI; typedef priority_queue<string> P_QS; typedef vector<int> VI; typedef vector<long long> VLL; ...
1bb7902cf6eb646c534bfc5908cf495a4c7b6703
792e1f898451630c372f19c9017c6739acb9ad1c
lewandowski-jan/pro1-sfml
/Camera.hpp
C++
hpp
282
no_license
#pragma once #include <SFML/Graphics.hpp> #include "Constants.hpp" #include <iostream> class Camera { public: Camera(); ~Camera(); sf::View update(float, float); float getPosX(); float getPosY(); private: float posX; float posY; sf::View view; };
13dc3c23df8c016546a6ddcc173cd8e8f612ec0b
eb502000838da3f273bfa23c7a87a3a1c738431d
iamh2o/octopus
/src/core/csr/facets/read_assignments.cpp
C++
cpp
9,056
permissive
// Copyright (c) 2015-2021 Daniel Cooke // Use of this source code is governed by the MIT license that can be found in the LICENSE file. #include "read_assignments.hpp" #include "core/tools/read_realigner.hpp" #include "utils/genotype_reader.hpp" namespace octopus { namespace csr { const std::string ReadAssignments...
067fe966b3ae9400d663b67f75080902fda37734
900f8a560a2842b8a01bff7aa2e9ec00ec52bd58
roussukke/Yorozuya
/library/ATF/_CMInvokeCommandInfoEx.hpp
C++
hpp
724
permissive
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> #include <HWND__.hpp> #include <tagPOINT.hpp> START_ATF_NAMESPACE struct _CMInvokeCommandInfoEx { unsigned int cbSize; unsigned int fMask; ...
7b0787bc67aa74a6fa857182159ae413048141c1
9b0d839947ed83cf77c93dc834a23a469ce55d8d
Silverutm/Soluciones-UVA
/Concurso/Prueba/B.cpp
C++
cpp
604
no_license
#include <iostream> #include <vector> #include <algorithm> using namespace std; typedef pair <int, int> ii; typedef vector < ii > vii; bool f(ii a, ii b) { return a.first > b.first; } int main() { int n,m,x,x0, x1,res; cin>>n>>m; --m; --n; vii arreglo; while (n--) { cin>>x; arreglo.push_back( ii{x, 0} ); ...
e5879fcff2e5bf55a273c93e48bb18e225ef435a
5ebb57c732ed7e90d24c827735c50ca885ecf6c3
BasicCoder/TryToFindJob1
/LetCode120.cpp
C++
cpp
514
no_license
#include <iostream> #include <vector> #include <string> #include <algorithm> using namespace std; class Solution { public: int minimumTotal(vector< vector<int> >& triangle) { int n = triangle.size(); vector<int> minlen(triangle.back()); for(int layer = n -2; layer >= 0; --layer){ ...
376423a630535fb964b2782f832c21185ac4a723
6105a6e400e5b381215423498e181be505226eed
superwood/incubator-trafodion
/core/sql/exp/ExpHbaseInterface.cpp
C++
cpp
43,894
permissive
/* -*-C++-*- **************************************************************************** * * File: ExpHbaseInterface.h * Description: Interface to Hbase world * Created: 5/26/2013 * Language: C++ * * // @@@ START COPYRIGHT @@@ // // Licensed to the Apache Software Foundation (ASF) under one //...
a159e8293a5f3e0c0eb5a6ff0c120b4fa51c3359
02e7bc7cc09d1c52975431a80b50b0303548d1be
jinzhengyu1212/Clovers
/XJ Contests/2020/10.30/pastel/pastel.cpp
C++
cpp
5,015
permissive
/* the vast starry sky, bright for those who chase the light. */ #include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> pii; #define mk make_pair const int inf=(int)1e9; const ll INF=(ll)5e18; const int MOD=998244353; int add(int x,int y){x+=y; return x>=MOD ? x-MOD : x;} int sub(int x...
91fab91f137e94e308f1f395ccb0080ff654365b
c101b9445fedb5d7f6f5f01aceb4947bd65ac5fc
jaesungj/EECS481meshLab
/meshlab/src/meshlabplugins/edit_texture/moc_edit_texture_factory.cpp
C++
cpp
2,795
no_license
/**************************************************************************** ** Meta object code from reading C++ file 'edit_texture_factory.h' ** ** Created: Mon Nov 23 17:00:32 2015 ** by: The Qt Meta Object Compiler version 63 (Qt 4.8.1) ** ** WARNING! All changes made in this file will be lost! **************...
4c2712056ea205c0374d41c24b419937e348978a
1b7e9aa6292bc2fda28140572f19bdeb25a86b97
RahulRanjan-TPL/cobalt-1
/src/starboard/android/shared/video_render_algorithm.cc
C++
cc
4,338
permissive
// Copyright 2017 The Cobalt 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 ap...
ef11b2ac9e280533025a2b341c8f379303fc538e
703184b48efbb2d218cf97125aa2158ce759a613
ccdxc/logSurvey
/data/crawl/git/hunk_5602.cpp
C++
cpp
889
no_license
strbuf_addf(&buf, "fetch %s %s\n", sha1_to_hex(posn->old_sha1), posn->name); - write_in_full(helper->in, buf.buf, buf.len); - strbuf_reset(&buf); + } - if (strbuf_getline(&buf, file, '\n') == EOF) + strbuf_addch(&buf, '\n'); + if (write_in_full(data->helper->in, buf.buf, buf.len) != buf.len) + die_er...
f4b58aa8871eacbe312eccbbf2dcd8aad584fb0c
41b479898e76bdafb0aecab9a358de9871e6b23c
iboB/BlockOut3000
/game/Vertex.hpp
C++
hpp
273
permissive
// BlockOut 3000 // Copyright(c) 2017-2022 Borislav Stanimirov // // Distributed under the MIT Software License // See accompanying file LICENSE.txt or copy at // http://opensource.org/licenses/MIT // #pragma once #include "lib/vec3.hpp" struct Vertex { vec3 pos; };
e71c815c4635747198e75e0c3164e2b393cdf4c4
33594455ee31e0245df4022f5be689a48a414d25
satorusasozaki/COMSC165
/lecture/class_object/lab/patient_bill_lab_for_template/patient_bill_lab/Surgery.cpp
C++
cpp
386
no_license
#include "Surgery.h" #include <string> #include <vector> #include <ostream> using std::string; using std::vector; using std::ostream; Surgery::Surgery () { initList(); } void Surgery::initList() { Item s; for (int i = 0; i < 5; i++) { items.push_back(s); items.at(i).name = "surgery" + std:...
2d685244bc0b2ce26e86a0f609d64a0832cf19ec
7c861b8c1389c695fa1cefb972959160f32bfb29
younglhome/Hi06701A
/record/main.cpp
C++
cpp
7,039
no_license
#include <stdio.h> #include <unistd.h> #include <signal.h> #include <fcntl.h> #include <sys/types.h> #include <string.h> #include <pthread.h> #include "stream_manager.h" #include "stream_define.h" #include "utils_log.h" #include "utils_common.h" #include "mp4_muxer.h" #include "nalu_utils.hh" #include "h264_stream.h...
681f7b97a0b03b01d3c67c39b918598ff25a46ac
cda5ab67c03071c38d007ee65efb300564971fd7
xeTaiz/inviwo-marketplace
/modules/brushingandlinking/src/processors/brushingandlinkingprocessor.cpp
C++
cpp
3,170
permissive
/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2016-2021 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided th...
1df18fc44c96b46b4633650a680f4ed6bb0ae0e1
64114c8331b8c05678846798b709bd9bd66de64d
zyzyzy3zy/tvm
/src/auto_scheduler/compute_dag.cc
C++
cc
50,875
permissive
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
d8e93fd1cf1605776c533974c5747efd3883d13f
fd81f4b738d0ab2c55c111fe761873645a30d4c3
spajic/Enisey
/EniseySolution/test/perf_slae.cpp
C++
cpp
4,582
no_license
/** \file perf_slae.cpp Замер производительности классов SlaeSolverI.*/ #include "gtest/gtest.h" #include "test_utils.h" #include <vector> #include <string> #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/json_parser.hpp> #include <boost/foreach.hpp> #define foreach BOOST_FOREACH ...
73ee195e8ed053bad69d9350a3bdbc2534244f9a
ca4eb80d0a0c84a801290355a34279e927156cd5
ashutosh0gupta/llvm_bmc
/examples/litmus/c/run-scripts/tmp_5/MP+dmb.sy+ctrl-fri-rfi-[fr-rf]-addr.c.cbmc_out.cpp
C++
cpp
65,847
no_license
// Global variabls: // 0:vars:3 // 7:atom_1_X8_0:1 // 3:atom_1_X0_1:1 // 4:atom_1_X2_0:1 // 5:atom_1_X5_1:1 // 6:atom_1_X6_2:1 // Local global variabls: // 0:thr0:1 // 1:thr1:1 // 2:thr2:1 #define ADDRSIZE 8 #define LOCALADDRSIZE 3 #define NTHREAD 4 #define NCONTEXT 5 #define ASSUME(stmt) __CPROVER_assume(stmt) #defin...
0f274357b1f713e22a9c9400e9a9979b8da7d252
5349016ea5b980ae29ad419639b31377a5c5a943
gg1711/CSES-problem-set-solutions
/introductory/weird.cpp
C++
cpp
980
no_license
#include<bits/stdc++.h> using namespace std; #define FAST ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);cout << fixed << setprecision(10); #define chk(a) cerr<<"check "<<#a<<" = "<<a<<endl; #define chk2(a,b) cerr<<"check "<<#a<<" = "<<a<<" , "<<#b<<" = "<<b<<endl; #define chk3(a,b,c) cerr<<"check "<...
8a6a6e548fe66135a83319aa713cf98ec5ca30b5
98eeec0b2e298661c481e7dec5f355301a5f97d3
brotherb/myleetcode
/Same Tree.cpp
C++
cpp
659
no_license
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: bool isSameTree(TreeNode *p, TreeNode *q) { // IMPORTANT: Please reset any member d...
bfd729eadf8ad4b70bb8abeff51e3a96db41e19f
20e926ec666549b00beaa67a74472d2333ddb641
qicqock/cpractice
/algo/fib.cpp
C++
cpp
379
no_license
#include <iostream> #include <vector> #include <time.h> #include <algorithm> using namespace std; int fib(int n){ if (n <= 1){ return n; } else { return fib(n-1) + fib(n-2); } } int main(void){ iostream::sync_with_stdio(0); // cin.tie(0); cout << "fibonacci number\n"; ...
395888b961f1e04892324f638d17bd865ccf90b0
539d1d5739be016a10ee4552444ea3cc3dff741a
supreethms1809/mpas-insitu
/Source/PV/build/VTK/Wrapping/Python/vtkImageIslandRemoval2DPython.cxx
C++
cxx
13,773
no_license
// python wrapper for vtkImageIslandRemoval2D // #define VTK_WRAPPING_CXX #define VTK_STREAMS_FWD_ONLY #include "vtkPythonArgs.h" #include "vtkPythonOverload.h" #include "vtkConfigure.h" #include <vtksys/ios/sstream> #include "vtkIndent.h" #include "vtkImageIslandRemoval2D.h" #if defined(VTK_BUILD_SHARED_LIBS) # defin...
7d7b0b82e3220892dbf51338ef4a2352e82aff30
09e6547ac289bbff76e734f597cf9d94434952be
birkeh/qtKodiAdmin
/main.cpp
C++
cpp
912
no_license
#include "cmainwindow.h" #include <QApplication> #include <QTranslator> #include <QSettings> #include <QSplashScreen> #include <QPixmap> int main(int argc, char *argv[]) { QTranslator translator; translator.load("qtKodiAdmin_de"); QApplication a(argc, argv); a.installTranslator(&translator); a.setApplicati...
7cf3ed82dd3f1b0d4c41d5a737e0722912da3cd1
7933d51b39ff3c8f97ea24a35974018d953a915e
mariobadr/synfull-isca
/booksim/src/networks/flatfly_onchip.cpp
C++
cpp
37,629
permissive
// $Id: flatfly_onchip.cpp 5188 2012-08-30 00:31:31Z dub $ /* Copyright (c) 2007-2012, Trustees of The Leland Stanford Junior University All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistribut...
376a3a44207600c210122312d9c5304fb53d829f
5f0ce21209b037088e1b038e3234b476aee56ae3
ChoiWheatley/OpenGLWithQt-Tutorial
/code/Tutorial_07/TestDialog.cpp
C++
cpp
2,291
permissive
/************************************************************************************ OpenGL with Qt - Tutorial ------------------------- Autor : Andreas Nicolai <andreas.nicolai@gmx.net> Repository : https://github.com/ghorwin/OpenGLWithQt-Tutorial License : BSD License, see https://github.com/ghorwin/Ope...
1a34ee3d3e2c4b621bd54e3c526e93e5c210f3b7
910a8e2d6c64e7e137895cfbfe6b269cf1d16ec1
danielaparker/jsoncons
/test/corelib/src/json_encoder_tests.cpp
C++
cpp
3,383
permissive
// Copyright 2013-2023 Daniel Parker // Distributed under Boost license #include <jsoncons/json.hpp> #include <jsoncons/json_encoder.hpp> #include <catch/catch.hpp> #include <sstream> #include <vector> #include <utility> #include <ctime> using namespace jsoncons; TEST_CASE("test_byte_string_serialization") { std...
1e3322b9f77e1e308e15e60629cd6afe84be90a9
be0aa66359021b0f89a874485eb8173d0543d287
kuroyam/Sketch
/Projects/Sketch/src/Scenes/Sketch170414.cpp
C++
cpp
726
no_license
// // Sketch170414.cpp // Sketch // // Created by Shun Kuroda on 2017/04/15. // // #include "Sketch170414.hpp" void Sketch170414::setup() { ofSetWindowShape(500, 500); ofBackground(255); ofSetColor(0); } void Sketch170414::update() { } void Sketch170414::draw() { float centerX = ofGetWi...
e47d2737c5403c9d58040fc6cd697b1678a53be7
f5720ece5ad0f40e745b58b74a311b4399e3d82a
jebape/TankWar
/TankWar/Source/TankWar/Private/TankAmingComponent.cpp
C++
cpp
2,099
no_license
// Fill out your copyright notice in the Description page of Project Settings. #include "TankAmingComponent.h" #include "Components/SceneComponent.h" #include "Kismet/GameplayStatics.h" #include "TankBarrel.h" // Sets default values for this component's properties UTankAmingComponent::UTankAmingComponent() { // Set ...
36371a9ba1e725b8d847a6000b391677bc076ec3
40a519703ce7dc92cc90f4b61a565e5e63998dd9
deveshmirani15/stats-in-real-life
/oopsproject.cpp
C++
cpp
2,827
no_license
#include<iostream> using namespace std; class A { public: virtual void calc()=0; }; class B:public A{ public: int i,j; int x,y; int temp,count=1; float large=0; void calc() { cout<<"enter the number of slots"<<endl; cin>>x; cout<<"ente...
20f4f9745b44079352b43ae7c23f6d3334cccce8
1a6b1a15f74b764b6b7c7198fedbc23b5500d585
tasteSoGood/PAT_code
/1110.cpp
C++
cpp
1,041
no_license
#include <iostream> #include <string> #include <vector> #include <queue> using namespace std; int N; struct node { int left, right; }; vector<node> tree; int main() { cin >> N; tree.resize(N); string str1, str2; vector<bool> test(N, false); for(int i = 0; i < N; i++){ cin >> str1 >> str2; tree[i].left = str1 ...
8303eeae05460140ef29aeaa729dea6634c09a37
2356ed6ddd58e192eeb329caf2be51cbb43bdd8f
lacroi-m/abstractVM
/incs/parsing.hpp
C++
hpp
687
no_license
/* ** Loris */ #ifndef PARSING_HPP_ # define PARSING_HPP_ #include <iostream> #include <exception> #include <sstream> #include <algorithm> #include <fstream> #include <vector> #include <map> class Parsing : std::exception { public: Parsing(const char *); ~Parsing(){}; void checkContent(); void show_me_the_...
c8cedcc55b554a49631d381a9789cb195a80acab
47c5c9b566d192d821c1e9f5273720845bd0a29f
Samsung/TizenRT
/external/libcxx-test/std/strings/basic.string/string.modifiers/string_erase/iter.pass.cpp
C++
cpp
2,588
permissive
/**************************************************************************** * * Copyright 2018 Samsung Electronics 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...
8053734dff30ed2079e414fc3e9457c555878e73
ff423a5d7f41b9af3397d4f1911dbe1f391f3789
luizsilvadev/algoritimos
/Exercicios/Lista 10 - Exercícios de Ordenação/exercicio8.cpp
C++
cpp
1,184
no_license
#include <iostream> using namespace std; struct equipe{ string nome; int pontos,v,sgols; }; void selection_sort(equipe vet[],int tam){ int menor; for(int i=tam-1;i>0;i--){ menor=i; for (int j=i-1;j>=0;j--){ if (vet[j].sgols<vet[menor].sgols){ menor=j; ...
717b7ef8acb4bce913b4f72b26e6d7e73e48f851
9bb2203994b7e55a41039cbe9879688671fdf915
shoeisha-books/directx12_samples
/Chapter9_Refactored/Application.cpp
C++
cpp
40,108
permissive
//コンスタントバッファで行列を転送 #include "Application.h" #ifdef _DEBUG #include<iostream> #endif #pragma comment(lib,"DirectXTex.lib") #pragma comment(lib,"d3d12.lib") #pragma comment(lib,"dxgi.lib") #pragma comment(lib,"d3dcompiler.lib") using namespace DirectX; using namespace std; using namespace Microsoft::WRL; ///@brief ...
274759280bdf6037f679a5271e4c2ca86d5818a8
257571a941b111b34755685f6814dce3958f4379
mane-paata/C-_HPC
/ps4/grader/candidate/bench.cpp
C++
cpp
5,802
no_license
// // This file is part of the course materials for AMATH483/583 at the University of Washington, // Spring 2018 // // Licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License // https://creativecommons.org/licenses/by-nc-sa/4.0/ // // Author: Andrew Lumsdaine // #include "Matrix....
5820fbd73c7bdd35f726cda348546f0c09965b7f
c84f4f0a1fb8f43252aa960b5c06941eefb840fe
WiViClass/cef-3.2623
/chromium/src/chrome/browser/media_galleries/media_galleries_scan_result_controller_unittest.cc
C++
cc
16,359
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 <stddef.h> #include "base/bind.h" #include "base/command_line.h" #include "base/files/file_path.h" #include "base/macros.h" #include "base/memor...
36191fec561f2213a6f0cedb96b104d17c350b1f
6a39f5dfc39f06c89fb608827180ff3434c14b1b
msrosarino/compute-runtime
/opencl/test/unit_test/libult/os_interface.cpp
C++
cpp
338
permissive
/* * Copyright (C) 2018-2020 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/os_interface/os_interface.h" #include "shared/source/memory_manager/memory_constants.h" namespace NEO { bool OSInterface::osEnableLocalMemory = true; void OSInterface::setGmmInputArgs(void *args) {} }...
d34430843492ae7d19ca7247500baf8636526cd5
d8c2ca6b3fbfe78290558a691d4889ce371489b5
mayanksoni2020/CP2_CIPHERSCHOOLS
/LongestSubstringWithoutRepeataion.cpp
C++
cpp
1,284
no_license
class Solution { public: int lengthOfLongestSubstring(string s) { int maxi = 0; //for checking all 256 characters visited or not. vector<bool>vis(256, false); //deque to check repeated charater. //we pop queue from front until repeated character is not found. deque<int>q; ...
9a487a9e98d514ce1319e10d79bf88fc5553c1da
c82ccb74da4155655026d4912c68533753ffae2c
pint1022/tf-coriander
/tensorflow/core/kernels/cast_op_gpu.cu.cc
C++
cc
2,293
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...
b2848295ee9822d500a0428397f94e7166a8779e
3037f8affacc244ab2dbe055ba8abb8db01def5d
alexisgquinto/algorithms
/Algorithm III/Algorithms III/III Data Structures/Elementary Data Structures/Linked List/main.cpp
C++
cpp
1,691
no_license
// // main.cpp // Linked List // // Created by Alexis Quinto on 6/6/20. // Copyright © 2020 Alexis Quinto. All rights reserved. // #include <iostream> #define NIL 0 class Node { public: int key; Node* next; Node* prev; Node(int k) { key = k; } }; class List { public: Node* n...
56a49616943e9222d5825224d06b06e3ab398461
322f4f891379c898bb42e5fbcb42253fca64033e
JotaroS/Atcoder-Jotaro-Solutions
/abc154/C/main.cpp
C++
cpp
2,522
no_license
#include<stdio.h> #include <vector> #include <list> #include <map> #include <set> #include <deque> #include <stack> #include <bitset> #include <algorithm> #include <functional> #include <numeric> #include <utility> #include <sstream> #include <iostream> #include <iomanip> #include <cstdio> #include <cmath> #include <cs...
394904b072b6001c0c2587b8b9ab0ee526e5e615
75e8f4ea75de2c42a5ec9fc7248cf17f61970b35
pnosker/protcad
/src/ensemble/chain.cc
C++
cc
65,041
no_license
#include "chain.h" typedef vector<chainPosition*>::iterator iterCP; typedef vector<UInt>::iterator iterUINT; typedef vector<int>::iterator iterINT; typedef vector<vector<int> >::iterator iterINTVEC; UInt chain::howMany = 0; void chain::initialize() { itsResidues.resize(0); itsChainPositions.resize(0); itsSecondaryS...