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
da5db8d2ac422a1d3bf51b68d9aad03ad2d50503
fe6ddf81a18a5e949d6f856bf3c676c440ced591
loriswit/rllib
/include/rllib/game/Scene.hpp
C++
hpp
5,395
permissive
#ifndef RLLIB_SCENE_HPP #define RLLIB_SCENE_HPP #include <rllib/stream/ByteStream.hpp> #include <rllib/bundle/Bundle.hpp> #include <rllib/locator/Locators.hpp> #include "Entity.hpp" #include <optional> #include <functional> namespace rl { /** * The scene represents a world filled with entities that the game engine...
c0bebb567abda9bc9c5a5863d1a200af5289bff9
107d785a4c943d2527562be5a8bd25bf94f33644
sighttviewliu/Bitcoin-sCrypt
/src/netbase.cpp
C++
cpp
32,518
permissive
// Copyright (c) 2013-2015 The Bitcoin sCrypt developers // Copyright (c) 2009-2013 The Bitcoin developers // Copyright (c) 2011-2012 The Litecoin developers // Copyright (c) 2009-2010 Satoshi Nakamoto // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/l...
470134051e1184899a2135e925f59637ac51a540
857bd0665e858a9ca61a1778c067ed8b467ef37f
thegamer1907/Code_Analysis
/Implementation/2930.cpp
C++
cpp
1,026
no_license
//Code of C#oder Born_confused #include <bits/stdc++.h> using namespace std; #define loop(n) for(int i=0;i<n;++i) #define FORD(i,a,b) for(int i=a;i>=b;--i) #define pb push_back #define mp make_pair #define all(x) x.begin(),x.end() #define ll long long #define s(x) scanf("%d", &x) #define sd(x) scanf("%lf", &x) #define ...
55ccc1462219910a1f7dbda21cd8fd27a0915928
16b1a21a612baea39b802da561d87f311211482f
swlynch99/pytorch
/torch/csrc/jit/python/script_init.cpp
C++
cpp
58,991
permissive
#include <torch/csrc/jit/python/script_init.h> #include <torch/csrc/Device.h> #include <torch/csrc/jit/api/module.h> #include <torch/csrc/jit/frontend/ir_emitter.h> #include <torch/csrc/jit/frontend/sugared_value.h> #include <torch/csrc/jit/mobile/import.h> #include <torch/csrc/jit/mobile/module.h> #include <torch/csr...
540a69db0737fb6da3dedc7c500a4eeea9be3794
9d767a13162fe21ee0bd636e6cc11699a0dbc56b
portsip/resiprocate
/resip/dum/CertMessage.cxx
C++
cxx
3,286
permissive
#include <ostream> #include "rutil/Data.hxx" #include "resip/dum/CertMessage.hxx" #include "rutil/WinLeakCheck.hxx" using namespace resip; using namespace std; CertMessage::CertMessage(const MessageId& id, bool success, const Data& body) : mId(id), mSuccess(...
48886c5cf044dda4330380afd4989588ed97e0c8
432b39202803910c9a028c329f7884cbea5c6d88
ahmedibrahim404/CompetitiveProgramming
/Codeforces/1469B/main.cpp
C++
cpp
543
no_license
#include <iostream> using namespace std; int t, n, m; int main(){ scanf("%d",&t); while(t--){ scanf("%d",&n); int no, mx1=0, cur=0;; for(int i=0;i<n;i++){ scanf("%d",&no); cur += no; mx1=max(mx1, cur); } scanf("%d",&m);...
bd0af15820fa42ea9a521245cf2f1b10a960df1a
01a76988157803a1f24bb595081f1f8959e8fd72
kurdtkobain/DBOGLOBAL
/DboShared/DboTrigger/DboTSEMColRgn.cpp
C++
cpp
7,610
no_license
#include "precomp_trigger.h" #include "DboTSEMColRgn.h" #include "DboTSCoreDefine.h" #include "NtlTSMemIO.h" /** Event mapper collision region receiver */ struct sCOLRGN_PARAM { sCOLRGN_PARAM( void ) : bFind( false ) { return; } bool bFind; }; class CDboTSEMColRgn_Recv : public CNtlTSRecv { public: NTL_T...
295398b52a0d7a3be4edd62724fb6deb13e33a5f
18f71e4c96c806ef0b59c0c13659e093e9ffa0ad
xyliuke/plan9
/common/src/network/ahttp.hpp
C++
hpp
13,217
no_license
// // ahttp.hpp // anet // // Created by ke liu on 22/10/2017. // Copyright © 2017 ke liu. All rights reserved. // #ifndef ahttp_hpp #define ahttp_hpp #include <stdio.h> #include <string> #include <map> #include <functional> #include "common/common_callback.hpp" #include "common/char_array.h" namespace plan9 { ...
e6c0c9dfdb527d88fe5674ee1e190f68c0d9228f
1e8203abc6663bf3d22c1b77124a289fb1b4ed29
cjq/GameServer-2
/ObjCore/dllmain.cpp
C++
cpp
443
no_license
// dllmain.cpp : Define el punto de entrada de la aplicación DLL. #include "stdafx.h" #include "ObjCore.h" PLUGIN_ENTRYPOINT(CObjCore); BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { switch (ul_reason_for_call) { case DLL...
3b5e6e5c4a4ed3bc8f1247e72e5d483c0240abe9
e8e5b7e3f940ac51562dae894cfdbd0e1bcb3680
XinYao1994/pmls-caffe
/ps/src/petuum_ps/thread/oplog_meta.hpp
C++
hpp
3,021
permissive
#pragma once #include <map> #include <utility> #include <boost/noncopyable.hpp> #include <glog/logging.h> #include <petuum_ps/thread/context.hpp> #include <petuum_ps/thread/naive_table_oplog_meta.hpp> #include <petuum_ps/thread/random_table_oplog_meta.hpp> #include <petuum_ps/thread/random_table_oplog_meta_dense.hpp>...
d42a7f869c1341c17ac970a346801e8fea68a060
bfe5dca2560f28993f887cc90583d963d433e9cb
WolfireGames/overgrowth
/Libraries/imgui-1.85/backends/imgui_impl_dx11.cpp
C++
cpp
28,599
permissive
// dear imgui: Renderer Backend for DirectX11 // This needs to be used along with a Platform Backend (e.g. Win32) // Implemented features: // [X] Renderer: User texture binding. Use 'ID3D11ShaderResourceView*' as ImTextureID. Read the FAQ about ImTextureID! // [X] Renderer: Support for large meshes (64k+ vertices) w...
52fc5304a24a62b1fb3143ea1a2d9473079e4db9
d9cf06ba1ea8ccadebc662b9a3bda38e4eeb3cf4
XuQianJin-Stars/zetasql
/zetasql/public/value.cc
C++
cc
81,919
permissive
// // Copyright 2019 ZetaSQL Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
cffb0211d49f033dcdb8772ac433dd7bc0d68687
10030866d0f7ae8b7e06b9b362bae7eca180183a
ayushmankumar7/tensorflow
/tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/transforms/legalize_trigonometric_to_approximation.cc
C++
cc
11,767
permissive
/* Copyright 2020 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...
3150d1c00dd4ceee664fdfc4651485e184657774
72f83438334ba47ddaaa94cbe906bb6f221a8689
teotikalki/vivaldi-source
/chromium/chrome/browser/install_verification/win/module_ids.cc
C++
cc
3,114
permissive
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/install_verification/win/module_ids.h" #include <utility> #include "base/logging.h" #include "base/macros.h" #include "base/str...
eaf129749c7c020205f7f6e3961264c371d33abf
3310153fe5d5bf8dc699fb42b053641610115070
besser82/libblocxx-deb
/blocxx-2.3.0/src/blocxx/SyslogAppender.hpp
C++
hpp
2,694
no_license
/******************************************************************************* * Copyright (C) 2005, Quest Software, Inc. All rights reserved. * Copyright (C) 2006, Novell, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the ...
f6b766f14a4f61b4e883fa23860d2df316ce3c66
d5017994dc9f116629597a0e13742fb30ad7aa7c
brokenpc00/SMFrameWork_CPP
/Classes/SMFrameWork/Base/ViewAction.cpp
C++
cpp
19,044
no_license
// // ViewAction.cpp // SMFrameWork // // Created by KimSteve on 2016. 11. 3.. // // #include "ViewAction.h" #include <2d/CCActionEase.h> #include <2d/CCTweenFunction.h> #include <cmath> #include <algorithm> #include <cocos2d.h> #include <2d/CCGrid.h> #include <2d/CCNodeGrid.h> using namespace ViewAction; /* Ri...
3ff30b1c5ef04e4ab30255904537aa4325eaaa65
d840c3801a6a5363ced81585228acbab734b2921
celeritas-project/celeritas
/src/celeritas/io/EventWriter.hh
C++
hh
2,978
permissive
//----------------------------------*-C++-*----------------------------------// // Copyright 2023 UT-Battelle, LLC, and other Celeritas developers. // See the top-level COPYRIGHT file for details. // SPDX-License-Identifier: (Apache-2.0 OR MIT) //-------------------------------------------------------------------------...
d24815d0cd8b43570b3114a62e94bea3f38dc1c1
157f013f27548313c0342e25a2a41a6b120c0650
xloremxx/opengl
/benny-05-camera-and-perspective/src/main.cpp
C++
cpp
1,468
no_license
#include <iostream> #include <GL/glew.h> #include <display.h> #include <shader.h> #include <mesh.h> #include <texture.h> #include <transform.h> #include <camera.h> #define WIDTH 800 #define HEIGHT 600 int main(int argc, char *argv[]) { Display display(WIDTH, HEIGHT, "Window!"); Shader shader("data/default"); ...
b9bf4dbf975daa7b7c70560cd9f00e00db49433d
41a4e4e0033c1157ca0d40e84670eec890850e85
Jerry-Jinfeng-Guo/mitsuba-renderer
/src/luminaires/point.cpp
C++
cpp
4,155
no_license
/* This file is part of Mitsuba, a physically based rendering system. Copyright (c) 2007-2011 by Wenzel Jakob and others. Mitsuba is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License Version 3 as published by the Free Software Foundation. ...
1c505424f7b31db57c2371ad090abe7d3b1a4759
75be9247387115e7643782c40fba7de065f24f45
PowerfulMing/ros2_practice
/path_planning_server/src/graph_lib/Track.cpp
C++
cpp
1,395
no_license
/** * Project Alice */ #include "Track.h" #include "jsoncpp/json/json.h" Track::Track():BasicMapElement() { start_point_radius_ = 5; end_point_radius_ = 5; start_point_fill_color_ = "red"; end_point_fill_color_ = "black"; start_point_border_color_ = "black"; end_point_border_color_ =...
5d93272b76fcedff0ac36ec627734c2f3a435599
5f133ef82e3c418023d83a5ab2f87e7b1b74b968
rsunkad/fboss
/fboss/agent/test/ArpTest.cpp
C++
cpp
53,256
permissive
/* * Copyright (c) 2004-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #inc...
4548f24c25ba13e85d8945085ad1e8bdc6e488f0
bcc4b8de633bcaca86aa56899f08589500b99f29
Laura-lc/leechcraft
/src/plugins/azoth/plugins/vader/proto/packetfactory.cpp
C++
cpp
5,986
permissive
/********************************************************************** * LeechCraft - modular cross-platform feature rich internet client. * Copyright (C) 2006-2014 Georg Rudoy * * Boost Software License - Version 1.0 - August 17th, 2003 * * Permission is hereby granted, free of charge, to any person or organiz...
7e138eb888e9aff506c6dc9a312d2605436b94dc
cbfa6f993ed54a37a1d78fdd58c8b7cb98ee1b24
EricSmith16/NullCoreProject
/NC/iRektKit/SDK/NetVarManager.cpp
C++
cpp
3,121
no_license
#include "../SDK.h" void CNetVarManager::Initialize( ) { m_tables.clear( ); ClientClass *clientClass = I::Client->GetAllClasses( ); if ( !clientClass ) return; while ( clientClass ) { RecvTable *recvTable = clientClass->m_pRecvTable; m_tables.push_back( recvTable ); clientClass = clientClass->m_pNext; ...
e1490d57df54324fe6229f073b2c90e07ab037b2
6406331f8b6a682c4d9d70305eedf79bedd56111
SoffidIAM/esso
/libmazinger-engine/src/main/native/web/WebMatcher.cpp
C++
cpp
4,064
no_license
/* * ComponentMatcher.cpp * * Created on: 15/02/2010 * Author: u07286 */ #include <MazingerInternal.h> #include "WebMatcher.h" #include "WebApplicationSpec.h" #include <AbstractWebApplication.h> #include <Action.h> #include <ConfigReader.h> #include <string> #include <stdlib.h> #include <stdio.h> #include <...
92bf4730a016007c05a09911ee13bd38a38e8d93
218298fc05862a9e357c38302f4d0289239732e8
BarakChamo/Sketches
/TouchDesigner/CPlusPlusSamples/CHOP/dll/CHOP/CPlusPlusCHOPExample.cpp
C++
cpp
8,437
permissive
/* Shared Use License: This file is owned by Derivative Inc. (Derivative) and * can only be used, and/or modified for use, in conjunction with * Derivative's TouchDesigner software, and only if you are a licensee who has * accepted Derivative's TouchDesigner license or assignment agreement (which * also govern the...
f23a82fe77a405561075eb124e9165980bed8e24
dd9eda9f8def1388e8460646077cf89d247e89d0
concentrasinglesrc/book-analyzer
/tst/validators.cc
C++
cc
3,249
no_license
#include "validators/input-validator.h" #include "gtest/gtest.h" #include <string> #include <vector> enum ValidatorType { ORDER_VALIDATOR, REDUCE_ORDER_VALIDATOR, ADD_ORDER_VALIDATOR }; struct ValidatorData { std::vector<std::string> const args; bool ret_val; enum ValidatorType type; }; class InputValida...
f5602f87cc9705339199a61adaaa1caa27c58d28
1e26861b14bee6da7ce694ed913bf5ef87f74e96
czxxjtu/wxPython-1
/tags/wxPy-2.9.5.0/src/os2/dcprint.cpp
C++
cpp
7,430
no_license
///////////////////////////////////////////////////////////////////////////// // Name: src/os2/dcprint.cpp // Purpose: wxPrinterDC class // Author: David Webster // Modified by: // Created: 10/14/99 // RCS-ID: $Id$ // Copyright: (c) David Webster // Licence: wxWindows licence ////////////...
581ee63706d8a896720b8fa59d719993f1df9d07
c11a2b6a4c0dc618c49cb1e792214e6f59e163c9
OnlineGamingCoin/OnlineGamingCoin
/src/qt/bitcoingui.cpp
C++
cpp
35,770
permissive
/* * Qt4 bitcoin GUI. * * W.J. van der Laan 2011-2012 * The Bitcoin Developers 2011-2012 * The Litecoin Developers 201-2013 */ #include "bitcoingui.h" #include "transactiontablemodel.h" #include "addressbookpage.h" #include "sendcoinsdialog.h" #include "signverifymessagedialog.h" #include "optionsdial...
5ec6f74890d88ee560a5232e6a3813de0fc6af1c
5fee0e0e163c1824c903cffdb55ee265eaec2404
kuronekodaisuki/pytorch
/torch/lib/c10d/reducer.hpp
C++
hpp
20,727
permissive
#pragma once #include <atomic> #ifdef USE_CUDA #include <ATen/cuda/CUDAEvent.h> #endif #include <memory> #include <mutex> #include <tuple> #include <unordered_map> #include <vector> #include <c10/util/intrusive_ptr.h> #include <c10d/ProcessGroup.hpp> #include <c10d/Utils.hpp> #include <c10d/comm.hpp> #include <c10d/d...
1ed804f07631ef72db9ad05045bd0e2c20ab579e
5604f1c4bce7d23dee44c565a36a73722160e716
ruan875417/DataStructureAndAlgorithm
/2队列/循环队列.cpp
C++
cpp
3,244
no_license
#include<stdio.h> #include<stdlib.h> #include<math.h> #define MAXQSIZE 10 typedef struct{ int *data; int front; int rear; }SqQueue; void menu(){ printf("----------------------------------------------------------------\n"); printf("1:初始化操作,建立循环队列\n"); printf("2:返回循环队列元素个数\n"); print...
2585fa0dcbbd11375acd2d0e89ad521bfb2ae621
6a05a05183c6239f9a0f5d689fe07b4f96230939
quinsmpang/game-LostStar
/Classes/SpriteHelper.cpp
C++
cpp
15,878
no_license
#include "SpriteHelper.h" using namespace std; string SpriteHelper::splicingNum_String(const char* format,int num) { char temp[128]; sprintf(temp,format,num); return temp; } void SpriteHelper::pauseSubNodeAndChildrenInParentNodeByTag(CCNode* parent,int tag) { if (!parent) { return; } CCArray* children = pa...
b67509ec6f39cf2ab41ea426f8fba120526befcd
ef684ec49047c275be70f9d20032362e693e00d4
vbarsuk/HELICS
/ThirdParty/helics/external/cereal/types/queue.hpp
C++
hpp
4,749
permissive
/*! \file queue.hpp \brief Support for types found in \<queue\> \ingroup STLSupport */ /* Copyright (c) 2014, Randolph Voorhies, Shane Grant All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met...
f9ba17eb0f7a58bb48e671cfa96bfe5b921c7fa2
1e5059f44973d296f458b8aa201512140ad96b5a
clowncrew/jokecoin
/src/qt/rpcconsole.cpp
C++
cpp
37,725
permissive
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2019 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpcconsole.h" #include...
202aae9356ee42f63fcb97407137b75d88a662d8
ddb5aff2b2852bc481d7ae4923d45aca7a97f886
Ishrak-Tawsif/Accepted-Codes
/Ishrakk_Tawsif-ac/UVA/1185/7275306_AC_1030ms_0kB.cpp
C++
cpp
377
no_license
#include<bits/stdc++.h> using namespace std; int main(){ int testcase,n; cin>> testcase; while(testcase--){ cin>> n; double ans=0; for(int i=1; i<=n; i++) ans+=log10(i); ans = floor(ans)+1; ...
bfb642f4611d759b60c65a1c8a20908d53259a4c
74fd9a42aac8d87127681c84cfef29d56ff6ceeb
FlyTheThings/GCSWidgets
/dial.cpp
C++
cpp
5,813
no_license
#include "dial.h" #include <QPainter> #include <cmath> #include <QDebug> #include <QKeyEvent> Dial::Dial(int32_t w, int32_t h, QWidget *parent) : QWidget(parent), m_width(w), m_height(h) { } void Dial::setCautionRange(int32_t min, int32_t max) { m_cautionMin = min; m_cautionMax =...
8c8f6390c31c352fdec26ff4c344c7ff0b097256
6748d4a19bed7ce9894b04cd7e500fd62d03bce4
brotherpem/CS-200
/Lab9/Lab9part1.cpp
C++
cpp
594
no_license
//Pierre Edward Mendy //Lab 9 part1 //11/08/2017 #include <iostream> using namespace std; void addLetterS(const char orig[], char plural[]); void main() { char a[10]; char b[10]; cout << "Enter word "; cin >> a; addLetterS(a, b); cout << "The plural version is " << b << endl; } void...
e617992e96cd59b4c9ac670d0c1f7f94a8dc09c0
2fc68267f54dd9a6f27572a86f51ca66b6f1911e
naman238/Data-Structures
/Binary_search_tree/path length between two nodes.cpp
C++
cpp
1,727
no_license
#include <iostream> using namespace std; struct bstnode { bstnode * lc; int data; bstnode* rc; }; typedef bstnode* Bstptr; void insert(Bstptr &T,int x) { if(T==NULL) { Bstptr l=new bstnode; l->data=x; l->lc=l->rc=NULL; T=l; } else { if(T->d...
9a834db90e49286031f2c447476b1b3af2ab644c
fb4c8c0917d02eb7f4e7ff6c3ec640f9c32c3736
Roglerto/SolarSystem
/esfera-satelite.cpp
C++
cpp
4,790
no_license
#include <ctype.h> #include <cmath> #include <iostream> #include <vector> #include <GL/gl.h> #include <GL/glut.h> #include "jpg_imagen.hpp" #include "materiales.hpp" #include "objetos-4.hpp" #include "esfera-satelite.hpp" #include "luz.hpp" using namespace std; //**************************************************...
e514d3cdab4e6dc6c68c8c5b444c9630fb27bc23
32fdd131e21e140d0253206a9ed1a5fe8ec8d9f0
zouyonghao/Algorithm
/leetcode/168.excel-sheet-column-title.cpp
C++
cpp
1,028
no_license
/* * [168] Excel Sheet Column Title * * https://leetcode-cn.com/problems/excel-sheet-column-title/description/ * * algorithms * Easy (26.95%) * Total Accepted: 1.6K * Total Submissions: 6.1K * Testcase Example: '1' * * 给定一个正整数,返回它在 Excel 表中相对应的列名称。 * * 例如, * * ⁠ 1 -> A * ⁠ 2 -> B * ⁠ 3 -> C...
f1086791328dfc227fe3d0d4b97b4e6b3f2befe8
08b6cd47d1442065d442211e7f806149e6801ee4
Zagoshipda/Algorithm
/boj/done/1012.cpp
C++
cpp
1,538
no_license
#include <bits/stdc++.h> using namespace std; #define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); #define endl '\n' #define ll long long // range : -9*10^18 ~ 9*10^18 int T; int M, N, K; int X, Y; int ans; int graph[50][50]; bool visited[50][50]; bool check_range(int row, int col){ return (0 <= ro...
650d7d8ecf8bc783afbff14aeb9dda7cd49b8abe
2324f7871e767f724c81c3be0a6f094541bc5009
fengxuewei-dev/C-plus-plus-Learning
/basement/example/Animal/Dog.cpp
C++
cpp
565
no_license
#include "Dog.hpp" Dog::Dog(const char * const name) : Animal(){ int len = strlen(name)+1; if(this->name == NULL){ this->name = (char *)malloc(sizeof(char) * len); strcpy(this->name, name); } } Dog::~Dog(){ if(this->name != NULL){...
4ec669b6a87de3a3f9f2d3b3ade6f884a9c96b47
cebdd487ff8fecebe9910e29ba340f19b718fdfe
usnistgov/ucef-cpp
/examples/MapperEx/MapperEx-generated-cpp/cpp-federates/MapperEx-rti-cpp/src/main/c++/StartModifyToHLAPacketsAttack.cpp
C++
cpp
7,989
no_license
// This code has been generated by the C2W code generator. // Do not edit manually! #include "StartModifyToHLAPacketsAttack.hpp" void StartModifyToHLAPacketsAttack::init( RTI::RTIambassador *rti ) { static bool isInitialized = false; if ( isInitialized ) { return; } isInitialized = true; OmnetCommand::ini...
ba59cd8a543da8aeacabb88eba7b0ec2450b2c8f
2de5bf760317a10028624d9057557c399bf68b64
mjhobby88/Henchmen_beta
/Source/Henchmen/Private/HenchmenGameInstance.cpp
C++
cpp
5,410
no_license
#include "HenchmenGameInstance.h" #include "Json.h" #include "JsonUtilities.h" #include "TextReaderComponent.h" UHenchmenGameInstance::UHenchmenGameInstance() { UTextReaderComponent* TextReader = CreateDefaultSubobject<UTextReaderComponent>(TEXT("TextReaderComp")); ApiUrl = TextReader->ReadFile("Urls/ApiUrl.txt"); ...
06e43abb89c80d2cb86857eda27fb7dc97c72268
ebc7a83988c3438acb000bfc411dda1048db61f5
abdelrhmanali29/competitveprogramming
/codeforces/CF732-D2-A.cpp
C++
cpp
1,388
no_license
#include<iostream> #include<algorithm> #include<cmath> #include<math.h> #include<iomanip> #include<string> #include<vector> #include<set> #include<map> #include<stack> #include<queue> #include<sstream> #include<bitset> #include<cstring> #include<stdio.h> #include<math.h> #include<cmath> using namespace std; typedef lo...
df7ea4b4b19d38cc1c6cfce65cfdb5d7f85bc118
7d2fe5986edd01d32bbd93f8426af87f87bf7b68
jack20951948/NCTU--OOP-C-
/Ch10/lec10-8.cpp
C++
cpp
842
no_license
#include <iostream> #include <cstdlib> #include <cstring> using namespace std; template <class T, int MAXSIZE> class CStack { T elems[MAXSIZE]; int top; public: CStack() { top=0; } bool empty() { return (top==0); } bool full() { return (top==MAXSIZE); } void push(T e) { if (top==MAXSIZE) { cout << "...
af94e1b411514bf689e97e2d7b9c7f663c7bbce1
78ea191492c210c28d08cc970a1d78733fa477fa
Spritutu/AdamoIDE
/source/Ide2/ConfFind.cpp
C++
cpp
2,784
no_license
// ConfFind.cpp : implementation file // #include "stdafx.h" #include "ide2.h" #include "adamoglobal.h" #include "conftreeview.h" #include "conffind.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif /////////////////////////////////////////////////////////////////////...
603fc3fc0ac25d39eb28312c03cdcfb5ad700f88
8b5b8076da7f5ee43935799ebedce4504c9b0111
sniler/maya-ml-rivet
/src/pluginMain.cpp
C++
cpp
1,812
permissive
/*MIT License Copyright (c) 2020 Mauro Lopez 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, dis...
1e03d44a82e121272dc8abd0db7bfb011b335651
3377054061400631430c5c9ab43c1c2e6323206a
husarion/rosbot-firmware-ros2
/lib/ros2udds/geometry_msgs/PoseStamped.hpp
C++
hpp
2,115
permissive
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). // // 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 re...
6b4d6b196bcc97b04d8ac08ea697db5c20577957
9e35755ebdc15da25a2ac01d002d62a2baa7aad3
theMagicDunky/EGP-410
/GameAI/steering/AlignmentSteering.cpp
C++
cpp
788
no_license
#include "AlignmentSteering.h" #include "Game.h" AlignmentSteering::AlignmentSteering(KinematicUnit* pMover) : mpMover(pMover) { } //applies velocity based off velocity of other boids to make them align Steering* AlignmentSteering::getSteering() { mLinear = Vector2D(); int boidCount = 0; for (int i = 0; i < gpGam...
a975c598fc3fd4128c0ec6430d5efe865a53ddcd
9537a105475a3a3c5a7d8d866cca4149c25f8472
abirftw/Tetris
/newgame.cpp
C++
cpp
1,821
no_license
#include<iostream> #include <SFML\Graphics.hpp> #include "newgame.h" #include <SFML\Graphics\VertexArray.hpp> #include<cmath> using namespace std; using namespace sf; NewGame::NewGame() { dx=0; dy=0; angle=0; ShapeA.setPointCount(8); ShapeA.setPoint(0, Vector2f(0.f, 0.f)); ShapeA.setPoint(1,...
691685297d86762a9095d67318400435c05013cc
2f54e2f84a398b06b6d0bcd04759692af63da0fc
ajunlonglive/ext-vanillagenerator
/lib/generator/overworld/populators/SwamplandPopulator.cpp
C++
cpp
1,300
permissive
#include <lib/objects/constants/BiomeList.h> #include "SwamplandPopulator.h" void SwamplandPopulator::InitPopulators() { sandPatchDecorator_.SetAmount(0); gravelPatchDecorator_.SetAmount(2); treeDecorator_.SetAmount(2); treeDecorator_.SetTrees({{1, swampTree}}); flowerDecorator_.SetAmount(1); flowerDecorat...
40b839c02bbd404d7b148e281ecbd632713149b9
0faba82b8a8050a7599a74c3aca3ed4353ef9eda
rtohid/blaze
/blazetest/src/mathtest/smatdmatadd/LCaDDa.cpp
C++
cpp
4,127
permissive
//================================================================================================= /*! // \file src/mathtest/smatdmatadd/LCaDDa.cpp // \brief Source file for the LCaDDa sparse matrix/dense matrix addition math test // // Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved // // This file ...
a4ffe72f8f02b49c1428a33d44c7b714f01feb5c
a178e375d3d457de8f10d77bff4b076d853949cb
MuchToMyDelight/llvm-lua-2
/llvm-lua/load_liblua_main.cpp
C++
cpp
1,553
permissive
/* Copyright (c) 2009 Robert G. Jakabosky 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, publis...
d048a2b3e4bb187edfcf51b603f169c5c2cd5f2b
375dc52805c2c6f0f8080d77ab59882a9175051e
Knoxort/BE-SST
/sst-elements-library-6.0.0/src/sst/elements/scheduler/SimpleMachine.cc
C++
cc
1,630
no_license
// Copyright 2009-2016 Sandia Corporation. Under the terms // of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. // Government retains certain rights in this software. // // Copyright (c) 2009-2016, Sandia Corporation // All rights reserved. // // This file is part of the SST software package. For licens...
4b9141b8196eccb80ce7996ff82511006394c265
ab5eeee0605a134671bc0a2479f410392655df65
phanngocchien1986/machinecoin-core
/src/test/cuckoocache_tests.cpp
C++
cpp
14,959
permissive
// Copyright (c) 2012-2017 The Machinecoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/test/unit_test.hpp> #include "cuckoocache.h" #include "test/test_machinecoin.h" #include "random.h" #inclu...
28cc7cee05f7697ba70bdaead4b8dfe481af534b
480e83c56a82b40649cf2e6eb4416d2188811d98
jimregan/fnTBL
/src/fnTBL-train.cc
C++
cc
49,635
permissive
/* The training program for TBL. This file is part of the fnTBL distribution. Copyright (c) 2001 Johns Hopkins University and Radu Florian and Grace Ngai. Permission is hereby granted, free of charge, to any person obtaining a copy of this software, fnTBL version 1.0, and associated documentation files (...
f2e9175348357018a1d4f3d4ab811eb6462d2fc7
4f8b684a17ba0635c0173850abde6754bac275ea
arvindjp/laminarSMOKE
/solvers/openSMOKEpp4laminarSMOKE/kernel/kinetics/ReactionPolicy_CHEMKIN.hpp
C++
hpp
110,752
no_license
/*-----------------------------------------------------------------------*\ | ___ ____ __ __ ___ _ _______ | | / _ \ _ __ ___ _ __ / ___|| \/ |/ _ \| |/ / ____| _ _ | | | | | | '_ \ / _ \ '_ \\___ \| |\/| | | | | ' /| _| _| |_ _| |_ | | | |_| | |_) |...
8a255314a05694d53f27cea58c3617fec9d02be8
7b081966c489767781555d78130cb16154a4f648
ishivamshukla/v8
/src/wasm/module-instantiate.cc
C++
cc
83,939
permissive
// Copyright 2019 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/wasm/module-instantiate.h" #include "src/api/api.h" #include "src/asmjs/asm-js.h" #include "src/base/platform/wrappers.h" #include "src/l...
0468c4df36e61e8ea012885ea0af7223607f528f
fd0cbabe6685d1df5094345faa2a0fa2cd1ca627
open-pwa/open-pwa
/packages/node-mobile/deps/v8/src/compiler/representation-change.cc
C++
cc
77,645
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/representation-change.h" #include <sstream> #include "src/base/bits.h" #include "src/codegen/code-factory.h" #include "src/comp...
589899828deec5f3e950e47eb3557c71cb500d6f
ea1f2974250ebc6f4be4bc7e0ef03f246f69271e
helennn/habitat-sim
/src/esp/gfx/Simulator.cpp
C++
cpp
10,796
permissive
// Copyright (c) Facebook, Inc. and its affiliates. // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #include "Simulator.h" #include <Corrade/Containers/Pointer.h> #include <Corrade/Utility/String.h> #include <Magnum/ImageView.h> #include <...
db095e8670820e29efa109f2b9a1cc8f5d1b98ae
28c50be32308b7f480c9e13a6c4b2532d0f9e2bb
GorePradnyesh/OpenCLOn12
/src/resource_migrate.cpp
C++
cpp
8,226
permissive
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #include "resources.hpp" #include "task.hpp" #include "queue.hpp" #include "wil/resource.h" template <typename T> using unique_comptr = D3D12TranslationLayer::unique_comptr<T>; class CopyCrossAdapter : public Task { Resource& m...
cc9b38936839d50791a902def6761c98f796e7e8
093de03a805129b9e3beaef9206af38cd20c0448
ejawe/cpp
/CPP05/ex03/Bureaucrat.hpp
C++
hpp
1,748
no_license
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Bureaucrat.hpp :+: :+: :+: ...
6bdf53c3e93df63129261e27f8ca81e2c6c367b7
382dde9eb958644a29545bc6900ea65f204a21fa
blockspacer/cobalt-clone-cab7770533804d582eaa66c713a1582f361182d3
/src/starboard/android/shared/log_flush.cc
C++
cc
715
permissive
// Copyright 2016 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...
f25dc8bc8a2af86178a37a0db8a2e3186c74d046
4baed480c9e6f8a5cff791e094e4b9d74c38a6fb
behollis/muViewBranch
/common/src/SCI/SimpleHistogram.cpp
C++
cpp
896
no_license
#include <SCI/SimpleHistogram.h> #include <SCI/Utility.h> using namespace SCI; SimpleHistogram::SimpleHistogram( int _bins, float _minv, float _maxv ){ bins.resize(_bins); minv = _minv; maxv = _maxv; ClearBins(); } void SimpleHistogram::Reinitialize( int _bins, float _minv, float _maxv ){ bins.re...
aaa2537d0b2b93aca2ad1238c8112250e3491e46
ed265e4712db267df1c6a2b6d7fbac2df75f3476
Kuangcp/varcoin
/tests/net_load_tests/srv.cpp
C++
cpp
7,735
no_license
// Copyright (c) 2017-2018 YxomTech // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <mutex> #include <thread> #include "include_base_utils.h" #include "misc_log_ex.h" #include "storages/levin_abstract_invoke2.h" #...
de313864b698a1129b4c59dcc04d12da8e54b9f6
2caaee8a54709964f6bc0a761a30a24d6ced8400
verticalcoin/verticalcoin
/src/qt/platformstyle.cpp
C++
cpp
4,311
permissive
// Copyright (c) 2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "platformstyle.h" #include "guiconstants.h" #include <QApplication> #include <QColor> #include <QIcon> #include <QImage...
d7b34a45350eb1fa6d9377d42e0e910380442e84
5b8193f8d30dd390be582240cb71dc7f7586935a
ollie314/chromium
/chrome/browser/extensions/api/tabs/tabs_api_unittest.cc
C++
cc
11,036
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 "base/strings/stringprintf.h" #include "base/strings/utf_string_conversions.h" #include "chrome/browser/extensions/api/tabs/tabs_api.h" #include ...
208aaafe7ef4da892b3d5c0e742f5794b444a67c
e1c05d7ce30fbcb2c5eb63bdc919bd05bf033af1
Paulxia/SlicerVTK
/Common/vtkCollectionIterator.cxx
C++
cxx
3,398
permissive
/*========================================================================= Program: Visualization Toolkit Module: vtkCollectionIterator.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This sof...
c4f039d08e30a18a90454533273d9f2ca385089a
5d5b5d9e189628a70e192cfbcb9d8d09b5b396a1
chrisfranko/aiden
/src/qt/bitcoinstrings.cpp
C++
cpp
13,578
permissive
#include <QtGlobal> // Automatically generated by extract_strings.py #ifdef __GNUC__ #define UNUSED __attribute__((unused)) #else #define UNUSED #endif static const char UNUSED *bitcoin_strings[] = { QT_TRANSLATE_NOOP("bitcoin-core", "" "%s, you must set a rpcpassword in the configuration file:\n" "%s\n" "It is recomme...
880c1b237a533a96c8b711590169f4a15900b003
7cdf508328fb3ef36e73223eafaf9a3ef92d134e
MetroHomeschoolRobotics/MHR-FRC-2019-Plankbot
/src/main/cpp/subsystems/Positioning.cpp
C++
cpp
2,828
no_license
#include "subsystems/Positioning.h" #include "RobotMap.h" Positioning::Positioning() : frc::Subsystem("PositioningSubsystem") { //distanceSensor = RobotMap::lidarDistanceSensor; ultrasonicAnalogSensor = RobotMap::ultrasonicAnalogDistanceSensor; ultrasonicSensor = RobotMap::ultrasonicDistanceSensor; gyro = RobotMap...
fcfe85d39cbed708cb5540f0818de849ee4ed378
2262aefacab87710600f3b29aafa8b2fe5ef0652
chengtianle1997/Cpp_Learning
/function_pointer/function_pointer.cpp
C++
cpp
1,102
no_license
#include <iostream> #include <vector> void HelloWorld() { std::cout << "Hello World!" << std::endl; } void PrintValue(int a) { std::cout << "Value: " << a << std::endl; } // pass the function pointer void ForEach(const std::vector<int>& values, void(*func)(int)) { for (int value : values) func(value); } int ma...
ba31d27f06d3504da9d8b3953dcbc6cb8428e7d7
651aec17db2da933ce400b7fb6ed8df5c5e55cb0
jerryhanhuan/test-code-backup
/WTL/DecryptionDLP/ex/windows_ipc/pip/npipe/testpipe.cpp
C++
cpp
360
no_license
#include "stdafx.h" #include "testpipe.h" #include "testpipeDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #endif BEGIN_MESSAGE_MAP(CTestpipeApp, CWinApp) END_MESSAGE_MAP() CTestpipeApp::CTestpipeApp() { } CTestpipeApp theApp; BOOL CTestpipeApp::InitInstance() { CTestpipeDlg dlg; m_pMainWnd = &dl...
b4dbcd79db026e0750d70fa91f6f286a717653c4
70e21ef5df2dca811a68a20b43c29adb27a60600
Alex-Beng/ojs
/FuckPointingOffer/07.cpp
C++
cpp
827
no_license
#include <vector> #include <iostream> using namespace std; struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) {} }; class Solution { public: TreeNode* buildTree(vector<int>& preorder, vector<int>& inorder) { return build(preorder, ...
3176aa78a8b08fd5abab06f4c5511e309f837e61
c07db69a6fe767399cae124d622e246739ff58e4
Mistrator/contestlib
/src/sparse_segtree/sparse_segtree_prog.cpp
C++
cpp
1,578
no_license
#include <iostream> using namespace std; typedef long long ll; const int N = 1<<30; // max element index struct node { ll s; node *l, *r; node (int cs) : s(cs) { l = nullptr; r = nullptr; } }; node *st = new node(0); // segtree root node void update(int k, ll val, int nl = 0, int nr = N-1, node *nd = st) {...
88717f142f3d463e38c293ba730161af3d4a79a3
1a4d57011f51972e1ddefedfa7f2e52dd07a0dec
gitsly/QtSpotify
/src/spotifyalbum.cpp
C++
cpp
2,483
permissive
#include <QtSpotify/spotifyalbum.h> #include <QtSpotify/spotifysession.h> #include <QtSpotify/spotifyartist.h> SpotifyAlbum::SpotifyAlbum(sp_album *album) : QObject(nullptr), m_available(false), m_artist(nullptr), m_name(""), m_year(0), m_type(AlbumType::Unknown) { sp_album_add_...
7e322d16eb83391c577301fb734d9526d0aafa87
74404c1cb49d89e604abb01c97c4002e67e5b742
ResurrectionRemix/android_vendor_qcom_opensource_system_bt
/test/suite/rfcomm/rfcomm_test.cc
C++
cc
2,674
permissive
/****************************************************************************** * * Copyright (C) 2016 Google, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://ww...
398ff1949638f3602c453cae1ddc7d7748575242
2b61034d629dcfc1c68cb012feb040e2286215e7
jbernard-McMaster/PMIT
/PMIT/GeneticAlgorithmPMIT.cpp
C++
cpp
1,534
no_license
#include "stdafx.h" #include "GeneticAlgorithmPMIT.h" GeneticAlgorithmPMIT::GeneticAlgorithmPMIT(GeneticAlgorithmConfiguration<int>^ Configuration) : GeneticAlgorithmP<int>(Configuration) { } GeneticAlgorithmPMIT::~GeneticAlgorithmPMIT() { } //void GeneticAlgorithmPMIT::Survival() //{ // for (size_t i = 0; i < this...
2241dbe40ddc9e1fda6ab9d3efc9400859ddecac
ff08689ab07f2d140ae774fb5de3488fc889b266
dspellman/Guildhall_projects
/SimpleMiner/Code/Game/World.cpp
C++
cpp
19,661
no_license
#include "Game/World.hpp" #include "Game/Game.hpp" #include <direct.h> #include "Game/BlockDefinition.hpp" #include "Game/Entity.hpp" #include <sys/stat.h> #include "ChunkGenerateJob.hpp" #include "ChunkLoadJob.hpp" #include "ChunkSaveJob.hpp" constexpr bool doMultithreaded = true; World::~World() { if (m_player) {...
096643ef5eba1fdc8e0ea8d2372fefd603950d15
f1d91b06f4a914c617e037c304d4c94340e19dd7
kunalbarchha/bitcoinrtx-old
/src/leveldbwrapper.cpp
C++
cpp
2,909
permissive
// Copyright (c) 2012-2014 The Bitcoinrtx developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "leveldbwrapper.h" #include "util.h" #include <boost/filesystem.hpp> #include <leveldb/cache.h> #include <leveldb/e...
0508474ff08a0095054bfcf4c9fb185b0bda17d5
28a248479dcb80bcef627f0c4184bcd33c5e9aee
bbanerjee/ParSim
/ThirdParty/Peridigm/src/io/Peridigm_OutputManagerContainer.hpp
C++
hpp
3,461
no_license
/*! \file Peridigm_OutputManager_Container.hpp */ //@HEADER // ************************************************************************ // // Peridigm // Copyright (2011) Sandia Corporation // // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, // the U....
09b2edec9df75b5f59695f61a844d42e1aa8f930
d834fc39ee396ca1bb3d8b473ffd3f8e044fa430
lahmatbiy/SeaBattle
/client/src/qmlView/qmlField.cpp
C++
cpp
3,095
no_license
#include "qmlField.h" #include "QDebug" #include "types.h" QmlField::QmlField(QObject* fieldWidget): mFieldWidget(fieldWidget) { mField = mFieldWidget->property("array").toList(); //qDebug() << mField; //connect(mFieldWidget.data(), SIGNAL(attack(int)), this, SIGNAL(attack(int))); //connect(mFieldWidget.data(), S...
069a39881adf69d5cef46ec2acd58ed3b3943dec
712e44002a85f93c3bfe87735e5432b227dfa84a
rafan/vespa
/searchlib/src/vespa/searchlib/test/fakedata/fpfactory.cpp
C++
cpp
2,346
permissive
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "fakeegcompr64filterocc.h" #include "fakefilterocc.h" #include "fakezcbfilterocc.h" #include "fakezcfilterocc.h" #include "fakememtreeocc.h" #include "fpfactory.h" #include "fakewordset.h" n...
7ff1ae0d3ab93191f02e04728ab1c6cb713a53aa
b9df9341f3a690c3f540fac8a46af05847386440
kisyr/shamblr
/dep/include/entt/entt.hpp
C++
hpp
729
permissive
#include "core/algorithm.hpp" #include "core/family.hpp" #include "core/hashed_string.hpp" #include "core/ident.hpp" #include "entity/actor.hpp" #include "entity/entity.hpp" #include "entity/entt_traits.hpp" #include "entity/helper.hpp" #include "entity/prototype.hpp" #include "entity/registry.hpp" #include "entity/sna...
7098f9cee9a35403510eb1285dc6cd1490bf5480
8007c0bd9b6cc42027b445868234b42b6284a78b
ohjiwooo/c-algorithm-
/baekjoon/n1260.cpp
C++
cpp
963
no_license
#include<iostream> #include<queue> #include<stack> using namespace std; //const int max_num = 1001; int graph[1001][1001]; bool visited[1001]; bool visited1[1001]; int n; //노드의 개수 int m; //간선의 개수 int now;//시작점 int a, b; //입력때 쓰임 stack <int> s; void bfs(int now) { queue<int> q; q.push(now); visited[now] = true; ...
6fc1a9eda6dc816f553b777cf4f0deaf22ef3038
904ccff68082dbd82c5056dbfdc4b59c65b52dcb
anilharish/LCPP
/Chapter2/quiz2main.cpp
C++
cpp
565
no_license
/* 1. Request the user to enter two floating point numbers stored as doubles input1 and input2 2. Request the user to enter the operator inbetween the two numbers stored as characters 3. Write a function to calculate the operation and return the result in double. 4. Write a function to print the output */ #inc...
5495b69d1ab6018c356155ef099bdabf48c4655c
b91ba15495154beb8e27edffe4c10106cc79db5e
anjhergustavo/Aprendiendo-C-plus-plus
/3 pedir datos al usuario.cpp
C++
cpp
218
no_license
// Lectura o entrada de datos #include <iostream> using namespace std; int main() { int numero; cout<< "\nDigite un número: "; cin>>numero; cout<< "\nEl número que digitó es: "<< numero; return 0; }
cbdfb32210226d69ad9504a6cce133ac0611e41f
6252d837f24f29ea3c5339bc54e09fe1df33be45
bino7/chromium
/chrome/browser/ui/views/download/download_danger_prompt_views.cc
C++
cc
12,846
permissive
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/download/download_danger_prompt.h" #include "base/compiler_specific.h" #include "chrome/browser/download/download_stats.h" #incl...
a74e5eec6782cd687ab356fc75f66a4b391583b5
819064f9ab92149427041601ebc39e44af8e5f73
Nahvin00/GeometryCalculator
/One.cpp
C++
cpp
1,819
no_license
#include <iostream> #include <iomanip> using namespace std; #define pi 3.14159 int main(){ int num; double r,ac,l,w,ar,b,h,at; cout<<"Geometry Calculator\n\t1. Calculate the Area of a Circle\n\t2. Calculate the Area of a Rectangle" <<"\n\t3. Calculate the Area of a Triangle\n\t4. Quit\n\n"; cin...
8b643c8f7e247daa63ce15c9056a3c8963e70ac2
84ddf514de887029e46053cd3fec6d7a100793a9
NilanshBansal/DataStructures
/programstool/linked list all programs/linked list 1/linkedListRecursive.cpp
C++
cpp
821
no_license
Length of LL (recursive) Send Feedback Given a linked list, find and return the length of input LL recursively. Input format : Linked list elements (separated by space and terminated by -1) Output format : Length of LL Sample Input : 3 4 5 2 6 1 9 -1 Sample Output : 7 /********** * Following is the Node class that is...
9879966b170526d421aa2ab6e00bae9abd47a88f
7b0938fa051bd7e92c7f3b6b0d5d2d91c8f2e519
rapyuta-robotics/rclUE
/ThirdParty/ros/include/geometry_msgs/msg/detail/point32__rosidl_typesupport_introspection_cpp.hpp
C++
hpp
1,012
permissive
// generated from rosidl_typesupport_introspection_cpp/resource/idl__rosidl_typesupport_introspection_cpp.h.em // with input from geometry_msgs:msg/Point32.idl // generated code does not contain a copyright notice #ifndef GEOMETRY_MSGS__MSG__DETAIL__POINT32__ROSIDL_TYPESUPPORT_INTROSPECTION_CPP_HPP_ #define GEOMETRY_M...
f5d73098d59a7b24d2ae3e84444906848d230735
fc911eef9bdd0c6d4af8c17b18772bdab66c74ee
blubb3rr/leetcode
/5.cpp
C++
cpp
729
no_license
class Solution { public String longestPalindrome(String s) { if (s == null || s.length() < 1) return ""; int start = 0, end = 0; for (int i = 0; i < s.length(); i++) { int len1 = expandAroundCenter(s, i, i); int len2 = expandAroundCenter(s, i, i + 1); int len = Math.max(le...
dc26eed7414738ddb680e85eede59ada9f2dbc58
753f03ad05cbe48ed178ed73634a3521fb713acf
kelvinblaser/EulerProject
/Euler/Euler229/Euler229.cpp
C++
cpp
2,114
no_license
/***************************************************************************** Euler 229 - Four Representations Using Squares http://projecteuler.net/problem=229 ------------------------------------------------------------------------------ First Attempt: Going to try to brute force it by trying all possible ...
5d6975aebd6594360caf044b56b41bddbea1d308
50c56f77d9488e5de69aaadac7bf89ef1fb82e75
kaan3434/gvindelen
/4Delphi/jvcl/examples/JvInspector/BCB/TestForm.cpp
C++
cpp
717
no_license
//--------------------------------------------------------------------------- #include <vcl.h> #pragma hdrstop #include "TestForm.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TfrmTest *frmTest; //-----------------------...
012ecab2ffb9586a40979db2e2ebd13b32fd35fd
2655add5889005b1ef47c4a7aaa80af09d3c8380
parsa/blaze
/blazetest/src/mathtest/operations/dvecdvecmin/VUaV6a.cpp
C++
cpp
3,742
permissive
//================================================================================================= /*! // \file src/mathtest/operations/dvecdvecmin/VUaV6a.cpp // \brief Source file for the VUaV6a dense vector/dense vector minimum math test // // Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved // // T...
c2017216c489c2e2b066e723465ff65a0feb791f
b1c9dbb82a85af8c2d6740579519b94a107a9f6d
jjzhang166/dcx
/Classes/dcxrebar.cpp
C++
cpp
28,278
no_license
/*! * \file dcxrebar.cpp * \brief blah * * blah * * \author David Legault ( clickhere at scriptsdb dot org ) * \version 1.0 * * \b Revisions * * © ScriptsDB.org - 2006 */ #include "defines.h" #include "Classes/dcxrebar.h" #include "Classes/dcxdialog.h" #include "Dcx.h" /*! * \brief ...
ebeafb00f95730cfd3dd19101eb1501db95b021c
bcd87a7037372e7b728f336125a341dff27d64f9
SunBlack/pcl
/surface/include/pcl/surface/impl/gp3.hpp
C++
hpp
61,094
permissive
/* * Software License Agreement (BSD License) * * Copyright (c) 2010, Willow Garage, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code mu...
6b37ea35a9a70108d1b7a70847e8ac0ff8b00324
051a7f09bf59360c9acff72190cc97311718784f
DeanChensj/LeetCode
/Easy/237_Delete-Node-in-a-Linked-List.cpp
C++
cpp
472
no_license
#include <iostream> using namespace std; struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} }; void deleteNode(ListNode* node) { *node = *(node->next); } int main(int argc, char const *argv[]) { ListNode *t = new ListNode(0); ListNode *q = t; for (int i = 0; i < 1...
90cfe221fc5c6dd4fe3c7ac1cc5d946cf86d8ff5
9231f6be7517288ea5e09c88efb1e7fcd15cb3c8
Jonathan-source/SchoolProject
/SchoolProject/ShadowMap.cpp
C++
cpp
5,293
permissive
#include "pch.h" #include "ShadowMap.h" //-------------------------------------------------------------------------------------- ShadowMap::ShadowMap(D3D11Core* pD3D11Core, Window* pWindow, ResourceManager * pResourceManager) : pD3D11Core(pD3D11Core) , pWindow(pWindow) , pResourceManager(pResourceManager) ...
08abbd9749196efe631daa94378a215334f1fd52
c28ed149c0cfa3aff82864a15307f58496a1b4b6
huhisoft/huhi-android
/content/public/common/url_constants.cc
C++
cc
4,256
permissive
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "build/build_config.h" #include "content/public/common/url_constants.h" namespace content { // Before adding new chrome schemes please chec...
94cc72b1f0f0beb98f4e54380528e7fe93566ac8
c546e94283532c1d238ff5dc881b1544a93e8456
leisheyoufu/study_exercise
/algorithm/exercise/Gcd/main.cpp
C++
cpp
411
no_license
#include<stdio.h> #include<algorithm> #include<conio.h> using namespace std; int gcd(int a,int b) { do { int c = a%b; a = b; b = c; } while(b!=0); return a; } int gcd2(int a,int b) { int c=a%b; if(c!=0) { return gcd2(b,c); } return b; } int main() { p...