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
4033771c2e5d340a9351c8551ed7a47911346ebc
6a8c56e8b5af30faf46ee3398e22e85b8b0836cd
lgv2018/powersupply_arduinopowered
/pow_potCurrentControl.cpp
C++
cpp
1,050
no_license
/** Here the max control current is driven by a simple analog pot between GND and VCC and connected to pin */ #include "Arduino.h" #include <Wire.h> #include "pow_currentControl.h" /** */ class potMaxCurrentControl : public MaxCurrentControl { public: potMaxCurrentControl(int pin) : MaxCurrent...
51d20cc2c8ad70f60286d58290c6e4ebd4cbb599
99d337691fd2fe2ef7c8b3af6a7e732f7eeb714c
jw291/programmers-Level3
/가장 먼 노드/main.cpp
C++
cpp
1,595
no_license
#include <string> #include <vector> #include <queue> #include <iostream> #include <algorithm> using namespace std; int solution(int n, vector<vector<int>> edge) { int *dis = new int[n+1]; fill_n(dis,n+1,2147000000); int *ch = new int[n+1]; fill_n(ch,n+1,0); queue<int> Q; vector<int> graph[n+1]...
7f7493919bae2e6d9fc8a818d6688cf7d728f5a5
8652583c0b7b91529bef8c5bce1fa0c91d27e8c2
CyberWolf37/Project-Police
/Police/Src/StateStack.cpp
C++
cpp
2,070
no_license
#include <StateStack.hpp> #include <Foreach.hpp> #include <cassert> StateStack::StateStack(State::Context context) : mStack() , mPendingList() , mContext(context) , mFactories() { } void StateStack::update(sf::Time dt) { // Iterate from top to bottom, stop as soon as update() returns false f...
b63a331247b0c177819870aafb16a377dfd0fa5f
2752d99afc03b8617c082e1f3204d774ab785338
nika-gromova/computer_graphics
/lab_06/lab_06_cg/my_paintwidget.cpp
C++
cpp
6,836
no_license
#include "my_paintwidget.h" #include <stdio.h> #include <dos.h> #include <windows.h> #define EPS 1e-10 my_paintwidget::my_paintwidget(QWidget *parent) : QWidget(parent) { int image_height = Y_max; int image_width = X_max; my_image = QImage(image_width, image_height, QImage::Format_RGB32); my...
a2d6389bd77b7b4e96756018915a97f93623fe5e
4e83353802f9274739e14918403666b9166c325e
ZoeZhou98/BaikalDB
/src/exec/access_path.cpp
C++
cpp
20,351
permissive
// Copyright (c) 2018-present Baidu, 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 b...
a9fec9c1ab437ac3647eec8600cbf1b910dfc7d9
f279503c6fca5070d577f82306627d51e4acfa60
nagyist/ParaView
/Qt/Core/pqImageUtil.cxx
C++
cxx
4,332
permissive
// SPDX-FileCopyrightText: Copyright (c) Kitware Inc. // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation // SPDX-License-Identifier: BSD-3-Clause #include "pqImageUtil.h" #include "vtkErrorCode.h" #include "vtkImageData.h" #include "vtkSMUtilities.h" #include <QBuffer> #include <QImage> // NOTES: // - QIma...
c867dd928699059acc2c3b1322f12802464a1e95
82dcea2da937d3c4806a4efe111d075718ce56e9
brucelevis/o2
/Editor/Sources/o2Editor/Core/UIStyle/BasicUIStyle.cpp
C++
cpp
57,763
permissive
#include "o2Editor/stdafx.h" #include "BasicUIStyle.h" #include "o2/Animation/Tracks/AnimationFloatTrack.h" #include "o2/Animation/Tracks/AnimationVec2FTrack.h" #include "o2/Animation/Tracks/AnimationColor4Track.h" #include "o2/Render/Sprite.h" #include "o2/Render/Text.h" #include "o2/Scene/UI/UIManager.h" #include "o...
fead41d99693a44b51d4bf7ec0da2ad6e55a1afd
81f73f465d0492e0731620ff6238ea9a2f66a06d
corefan/FbxPipeline
/FbxPipeline/FbxViewerv2/vk/CommandQueue.Vulkan.cpp
C++
cpp
20,877
permissive
//#include <GameEngine.GraphicsEcosystem.Precompiled.h> #include <CommandQueue.Vulkan.h> #include <CityHash.h> #include <TInfoStruct.Vulkan.h> /// ------------------------------------------------------------------------------------------------------------------- /// CommandBuffer /// -------------------------...
da63256b71cb059c16e1d252c5cf5ecc564da516
193f78b70d14cc0a4f78e026f989dd8939641253
antiwar3/WXY-SDK
/FN/SDK/FN_Level2BoxWIdget_parameters.hpp
C++
hpp
4,162
no_license
#pragma once // Fortnite (1.6.4) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "../SDK.hpp" namespace SDK { //--------------------------------------------------------------------------- //Parameters //--------------------------------------------------------------------------- // Function Level2BoxWI...
676ce9f76a9733155a565a42728efbda4cbc51b0
53345d5c400d9c50eac990d4e696bae1e83e1178
avajadi/meter_lingon
/src/meter_reader.cpp
C++
cpp
1,373
permissive
#include "Arduino.h" #include "meter_reader.h" #include <climits> const unsigned long TIME_UNITS_PER_SECOND = 1000; volatile unsigned long pulseCount; volatile unsigned long lastInterval; volatile unsigned long lastNow; void countPulse() { pulseCount++; unsigned long now = millis(); lastInterval = now - lastNow; ...
5ee8837faed599cd2900f06c816ee1a7c02f5fbf
65d8322b9a26eb380b879f99895be85d60724c67
JWojcieszonek/ProblemMSCN
/CRandom.cpp
C++
cpp
420
no_license
#include "CRandom.h" CRandom::CRandom(int seed) { generator = mt19937(seed); } CRandom::CRandom() { random_device rd; generator = mt19937(rd()); } int CRandom::getInt(int min, int max) { uniform_int_distribution<> distribution(min, max); return distribution(generator); } double CRandom::getDouble(double min, d...
a3e070e2923aed7eab93b1c68dde0b8586fd21f9
543deab208a85b1688dcb5fa954da75665b00802
Ivanplat/DirectXProject
/drtx2/Keyboard.cpp
C++
cpp
1,917
no_license
#include "Keyboard.h" bool Keyboard::KeyIsPressed(unsigned char KeyCode) const noexcept { return keystates[KeyCode]; } Keyboard::Event Keyboard::ReadKey() noexcept { if (keybuffer.size() > 0u) { Keyboard::Event e = keybuffer.front(); keybuffer.pop(); return e; } else { ...
7aaaa79b551a0c69c3ff88de0358f128ccb927e6
be80e023ef7354c31e8e5b7af41aa6c13eb95296
cha63506/copperspice
/src/plugins/generic/tslib/main.cpp
C++
cpp
1,896
no_license
/*********************************************************************** * * Copyright (c) 2012-2016 Barbara Geller * Copyright (c) 2012-2016 Ansel Sermersheim * Copyright (c) 2012-2014 Digia Plc and/or its subsidiary(-ies). * Copyright (c) 2008-2012 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved....
0f54b5c88980f0fa02b5082e146479252192a3ea
05f04d9b28826574a256a2dc35f5df23cef42469
nikebrego/pz-MAI
/task3.cpp
C++
cpp
3,938
no_license
#include <iostream> #include <cstdlib> #include <cmath> #include <vector> #include <string> using namespace std; class Base{ int coordinates, maxcoordinates; int width = 3; public: Base(){maxcoordinates = 50; coordinates = rand()%maxcoordinates+1;} int get_coordinates(){ return coordinates;} int get_width(){ ret...
e75658a035163b6f8adfad7b4767d3cc5a6d8939
75cc1f3d8d9309e1ecaa4c305578b907031a13a6
andrewle19/DataStructure_DoublyLinkedList
/Project3/Source.cpp
C++
cpp
73,751
no_license
// Project 3 // Andrew Le // andrewle19@csu.fullerton.edu #include <iostream> #include <string> #include <algorithm> using namespace std; // doubley linked list class List { private: // student object node struct struct student{ string intials; // intials of student string name; // student name bool seat; //...
69dc8ab28791cb7dbc0d0eccd9430d4415a3b576
b0918cc1e9245cc4e26471bc81abea3ce7f9ce2b
AnkurGel/Backup
/Project_Euler/10.cpp
C++
cpp
271
no_license
#include<iostream> #include<stdio.h> using namespace std; int main() { long int sum=2; long int i,j; int flag; for(i=3; i<=2000000; i++) { flag=0; for(j=2; j<=i/2; j++) { if(i%j==0) { flag=1; break;} } if(flag==0) sum+=i; } cout<<sum; return 0; }
a40299eceaf86d8df6564aa3edf82c9eafc4a175
736f359edf2c86249a8b53f2771727cd700f7edb
PrzemekTomczyk/warpbreak
/WarpBreakProj/src/Main.cpp
C++
cpp
2,690
no_license
#ifndef SFML_STATIC #ifdef _DEBUG #pragma comment(lib,"sfml-graphics-d.lib") #pragma comment(lib,"sfml-system-d.lib") #pragma comment(lib,"sfml-window-d.lib") #pragma comment(lib,"sfml-audio-d.lib") #pragma comment(lib,"sfml-main-d.lib") #pragma comment(lib,"sfml-network-d.lib") #pragma comment(lib,"thor-d.lib") #prag...
c87011c3356b1a89c5bb9de048c622e9808bb531
0c5e40e7b912da7f3b9f616af5c3b6334d37e972
github/codeql
/cpp/ql/test/query-tests/jsf/4.10 Classes/AV Rule 76/test.cpp
C++
cpp
1,660
permissive
class Class1 // good: no pointer members, default assignment operator and copy constructor { }; class Class2 // bad: pointer members, default assignment operator and copy constructor { private: int* _a; public: Class2(int* a):_a(a) { } }; class Class3 // bad: pointer members, custom assignment operat...
6c66180daf329461bb040f2006b43dca3e100138
0794f4ba604bd530cf15bedaf6f13d2529aec5dd
Mogball/open-earth-compiler
/lib/Conversion/StencilToStandard/ConvertStencilToStandard.cpp
C++
cpp
21,257
permissive
#include "Conversion/StencilToStandard/ConvertStencilToStandard.h" #include "Conversion/StencilToStandard/Passes.h" #include "Dialect/Stencil/StencilDialect.h" #include "Dialect/Stencil/StencilOps.h" #include "Dialect/Stencil/StencilTypes.h" #include "Dialect/Stencil/StencilUtils.h" #include "PassDetail.h" #include "ml...
99ce797bf9800ea03255c1c521ea00609c4608cb
211f73958c12e9bafb3771491e9bee5469efbcf7
copydev/CodeForces
/EduCodeforces80/B.cpp
C++
cpp
390
no_license
#include <bits/stdc++.h> using namespace std; #define ll long long #define REP(i,n) for(ll i = 0;i<n;++i) ll getNmin(ll dig){ ll ans = 1; while(dig--){ ans *= 10; } return ans; } int main() { int t; cin>>t; while(t--){ ll a, b; cin>>a>>b; ll getb = 9; ll ans = 0; while(getb <= b){ ans += a;...
4597343c4da9c07068e3da41fcf803733d4ad79c
59ce3dd87bcc108d5525fd80a00c0ab513fdb3c2
mikeedwards/Cinder-poScene
/samples/TextSampleAdvanced/src/ViewController.cpp
C++
cpp
1,137
no_license
#include "ViewController.h" #include "cinder/app/App.h" namespace sample { ViewControllerRef ViewController::create() { ViewControllerRef ref(new ViewController()); ref->setup(); return ref; } ViewController::ViewController() { } void ViewController::setup() { // Create the text component mTextCom...
18555ccf4e937dde4d09851b093cee95b7cd57f9
078bece94d2c49fbca5796bd4386bea2189d0565
lgh710681042/parsecore
/analyzecore/TestStructuredStorage/TabStop.cpp
C++
cpp
322
no_license
#include "stdafx.h" #include "BaseStream.h" #include "BinaryReader.h" #include "TabStop.h" TabStop::TabStop() { } TabStop::TabStop(shared_ptr<BinaryReader> spBinaryReader) { this->Distance = spBinaryReader->ReadUInt16(); this->Alignment = spBinaryReader->ReadUInt16(); } TabStop::~TabStop() { }...
e0dc06406ba54713f0c24ae44e07fdbf54d80277
2eb5d8b6c83bd048d6e2d8e992f7fa2c11844787
HexColors60/GoblinCamp
/Source/Config/Serialization.cpp
C++
cpp
9,598
no_license
/* Copyright 2010-2011 Ilkka Halila This file is part of Goblin Camp. Goblin Camp is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Goblin Ca...
e8e2f5a0223e84943952825778ca14f36dc91f1f
0d060136d72b7d76f389bc57471cd1a38a587bc0
uel-dataexchange/Opencascade_uel
/drv/PTopoDS/PTopoDS_FieldOfHArray1OfHShape_0.cxx
C++
cxx
1,992
no_license
// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #include <PTopoDS_FieldOfHArray1OfHShape.hxx> #ifn...
e42cfa58f98b4898b4f6c61340763998773a1967
bddeb07202a70bdd0b44ed500483c416bc2dc33a
ValveSoftware/GameNetworkingSockets
/src/steamnetworkingsockets/steamnetworkingsockets_shared.cpp
C++
cpp
10,333
permissive
//====== Copyright Valve Corporation, All rights reserved. ==================== #include <atomic> #include <tier1/utlbuffer.h> #include "steamnetworkingsockets_internal.h" #include "../tier1/ipv6text.h" // Must be the last include #include <tier0/memdbgon.h> namespace SteamNetworkingSocketsLib { std::string Indent...
23f5db68d32c5d837dcfea6cf519e13a714a9169
8b2f11d0eabed19a1031d8002cb7e80caba1b277
PriyanshMaheshwari/DataStructure-Codes
/assign-18/verticalsum.cpp
C++
cpp
1,403
no_license
#include <bits/stdc++.h> using namespace std; struct btnode { int data; int hd; struct btnode* lchild; btnode *rchild; }; typedef struct btnode *BTPTR; BTPTR newnode(int x){ if(x != 0){ BTPTR temp = new struct btnode; temp->data = x; temp->hd = -1; temp->lchild = temp->rchild = NULL; return temp;} else re...
ad06536fa9679f8ad2e6647edc4c6181ef617357
4c4c263680de3e832eb8713413dbfbafa8cad62e
alinous-core/codablecash
/src_smartcontract_db/trx/transaction_log_alter_modify/AlterDropPrimaryKeyCommandLog.cpp
C++
cpp
2,352
permissive
/* * AlterDropPrimaryKeyCommandLog.cpp * * Created on: 2020/09/10 * Author: iizuka */ #include "trx/transaction_log_alter_modify/AlterDropPrimaryKeyCommandLog.h" #include "lang_sql/sql_ddl_alter_modify/AlterDropPrimaryKeyCommand.h" #include "trx/transaction/CdbTransactionManager.h" #include "engine_lock/...
0b82b664f027c585c67ae64648cd25892e701427
846a8ce6fc59a1215c582ad36e6e54d3d627bd4d
frankshe/comsci31
/project_1/logic_error.cpp
C++
cpp
1,032
no_license
// Code for Project 1 // Report poll results #include <iostream> using namespace std; // see p. 36-37 in Savitch book int main() { int numberSurveyed; int forObama; int forRomney; cout << "How many registered voters were surveyed? "; cin >> numberSurveyed; cout << "How ...
52dce68312fec9f2218a10a6a54910b2d4c421f1
fc63792763a279636a29303ba8e38855f8f8bfb6
alexanderqchen/ICPC-Practice
/Binary Protocol.cpp
C++
cpp
424
no_license
//http://codeforces.com/problemset/problem/825/A #include <iostream> #include <string> using namespace std; int main() { int n; cin >> n; //ignore n, not needed string s; cin >> s; int ans = 0; int curr = 0; for (size_t i = 0; i < s.size(); i++) { if (s[i] == '0') { ans *= 10; ans += curr; curr =...
02d573c102d4c38ca4aa920fa96696073658b712
3e3f9dc67e3ca5453ef18687c8566148c9dd0d8c
Robowerewolf/EliasDailyCodeSpring2018
/RandomCircle.cpp
C++
cpp
1,340
no_license
#include <iostream> #include <allegro5/allegro.h> #include <allegro5/allegro_primitives.h> #include <ctime> using namespace std; int main() { srand(time(NULL)); ALLEGRO_DISPLAY *display = NULL; ALLEGRO_EVENT_QUEUE *event_queue = NULL; ALLEGRO_TIMER *timer = NULL; al_init(); al_init_primitives_add...
814c334cb92ff1e2ba3ece01619dbcbd6556b156
b97dad2c4835291b40f0265c54e5eaac7d66154c
nlslatt/sst-macro
/sstmac/common/messages/vector_payload.cc
C++
cc
1,409
permissive
/* * This file is part of SST/macroscale: * The macroscale architecture simulator from the SST suite. * Copyright (c) 2009 Sandia Corporation. * This software is distributed under the BSD License. * Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, * the U.S. Government ret...
dd1ad11c8c9b63ef4eb507b4844fe4e32b1640c5
21b35abee2c516c9b0767913faddee58ff3ae819
z0CoolCS/CompetitiveProgramming
/Codeforces/510A-FoxandSnake.cpp
C++
cpp
453
no_license
#include<stdio.h> void print(short m,char c){ while(m--) printf("%c",c); } int main(){ short n,m; bool aux=true; scanf("%hd %hd",&n,&m); for(short i=0;i<n;i++){ if(i%2==0) print(m,'#'); else{ if(aux){ print(m-1,'.'); printf("#"); aux=false; } ...
cdb7b6f86b58d363faff84a6b2217e8f7b93f8c6
1d1f785888281b63cacf5e2f6016f0ef4ca7a02d
OrigenesZhang/-1s
/codeforces/R523/CF1061E.cpp
C++
cpp
3,973
no_license
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pii; #define FOR(i, a, b) for (int (i) = (a); (i) <= (b); (i)++) #define ROF(i, a, b) for (int (i) = (a); (i) >= (b); (i)--) #define REP(i, n) FOR(i, 0, (n)-1) #define sqr(x) ((x) * (x)) #define all(x) (x).begin(), (x).end() #de...
e420e16421871e6e6f051ee094fce06042923754
c9f90fdaa5458de5e1b97b8895dab5b10232056a
OttoPattemore/Hazel-Linux-Support
/Hazel/src/Hazel/Core/Application.cpp
C++
cpp
1,954
permissive
#include "hzpch.h" #include "Hazel/Core/Application.h" #include "Hazel/Core/Log.h" #include "Hazel/Renderer/Renderer.h" #include "Hazel/Core/Input.h" #include <GLFW/glfw3.h> namespace Hazel { Application* Application::s_Instance = nullptr; Application::Application() { Log::Init(); HZ_CORE_ASSERT(!s_Instan...
329e7cfd947dcf5c6b21dcffc5fd099c7a73720a
c326039ec281f4148364ae0bc3548b0be4d55bc6
rewolfiluac/swig-for-python-example
/1_hello_world/hello.cpp
C++
cpp
233
permissive
#include "hello.h" void hello() { std::cout << "Hello World!" << std::endl; } MyHello::MyHello(const std::string &name) : _name(name) { } void MyHello::hello() { std::cout << "Hello " << _name << std::endl; }
56acded45ac7cd23628e3f7d8b2bd94e703f7447
cc00317bd1850d1958ba7d3054a099ed5bff0664
wrtcoder/cpp-surveillance-cli
/SDK/English/DemoCode/ClientDemo2/ColorDlg.cpp
C++
cpp
4,738
no_license
// ColorDlg.cpp : implementation file // #include "stdafx.h" #include "ClientDemo.h" #include "ColorDlg.h" #include "ClientDemoDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CCol...
dfb53a8f1797fdcf8b69533c6b35a1503d7b6a1f
b1e92cc2451f6f399775b7634dc0f1d7fac9fea6
doceallaigh/RAMparts
/RAMparts/Header/ConfiguredMemoryPool.hpp
C++
hpp
2,460
no_license
#pragma once #pragma region Library Includes #include <memory> #pragma endregion #pragma region Local Includes #include "Interfaces/IMemoryPool.hpp" #pragma endregion #pragma region Forward Declarations class IMemoryIterator; class IMemoryBlock; struct MemoryPoolConfig; #pragma endregion #pragma region Type Definit...
76a04e310458b530bd8a9471a632c226596ad607
d3a727df20558f0dcda4aa412e678827151fb002
Alanzjc-pro/MSc_project
/Vivado/Code/BIN/main.cc
C++
cc
5,326
no_license
// Standard Library #include <stdio.h> #include <stdlib.h> #include <iostream> #include <fstream> #include <string> // FPGA Library #include <xestimate_fr.h> #include <xparameters.h> #include <xscugic.h> #include <xil_printf.h> #include <xtime_l.h> #include "platform.h" #include "test_data_3.h" using namespace std...
288d9f562a27a80fa887fc9950e037bd643f3960
e59ba682a3ffc1352bfbd9c7a1955d6a3edde2f2
amechu/TP2EDA
/TP2EDA/TP2EDA/Main.cpp
C++
cpp
5,253
no_license
#include "allegro.h" #include "gen.h" #include "parseCmd.h" #define _USE_MATH_DEFINES #include <math.h> #include <iostream> int main(int argc, char ** argv) { using namespace std; int error = 0; float vert[MAX_VERT] = { 0 }; //Arreglo de vertices usados en fractal de poligono const float angleConvert = M_PI / 180;...
def354d52734d4edc79dea0ed7bedc13af69392b
4510e13c875772d7a5a6d3d0b759b113d77759d2
alexrez/msu_spring_2019
/1/hw1.cpp
C++
cpp
2,061
no_license
#include<iostream> #include "numbers.dat" // Генерация решета Эратосфена void eratosphen(bool* array, size_t size){ array[0] = false; array[1] = false; for (size_t i = 2; i < size; ++i) array[i] = true; for (size_t i = 2; i*i < size; ++i){ if (array[i]){ for (size_t j = i*i; j < s...
a0c9a1aded907430f53d53b544ab769d87cb2023
080dda7e731ee345e8986229df7cfbc51d4048fa
Biyorne/learningcpp
/race-math/main.cpp
C++
cpp
2,693
permissive
#include <SFML/Graphics.hpp> #include <cmath> #include <iostream> float calcPos( const float startPos, const float velocity, const float timeSec, const float acceleration) { return (startPos + (velocity * timeSec) + (acceleration * timeSec * timeSec)); } float calcOvertakeTimeSec( const float slowStartPo...
6405dc606a70e1b7c31def3523603d6667bb2507
18602f27858bf5f6b0dfa0aa09954615c8e4fb1c
brianchowlab/BcLOV4-FEM
/FELICITY/Demo/Image_Processing/Scratch_Dir/Curv_Vector_Sigma.cpp
C++
cpp
1,265
permissive
/***************************************************************************************/ /* Tabulate the tensor for the local element contribution */ void SpecificFEM::Tabulate_Tensor(const CLASS_geom_Sigma_embedded_in_Sigma_restricted_to_Sigma& Mesh) { const unsigned int NQ = 3; // Compute element tensor usi...
e466c66e99d0395989e2e828392b0e4a13526bb2
8d907f7640d03471fc710589f4c430e8280f3b0c
arangodb/arangodb
/3rdParty/boost/1.78.0/boost/asio/traits/connect_member.hpp
C++
hpp
2,984
permissive
// // traits/connect_member.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #ifndef BOOST_ASI...
0edc4135089ac775aa6323b05270362e1581107f
7960685fdf9a9e27bd145d632d9bbf0051852eef
hjj0525/acmicpc_Baekjoon
/그래프/1260.cpp
C++
cpp
1,685
no_license
#include <iostream> #include <cstdio> #include <vector> #include <queue> #include <stack> #include <algorithm> #pragma warning(disable: 4996); using namespace std; const int MAX = 1001; bool visited[MAX]; vector<int> adj[MAX]; queue<int> Q; stack<int> S; void DFS(int x) { visited[x] = true; printf(...
f40eb6940a49dd775cc6243974c053a6a3480d61
5bf180569368a3c0528a3ae75e9bb0bf0487f817
Nikhil-Wagh/Competitive-Coding
/467 B/Vile Grasshoppers.cpp
C++
cpp
1,902
no_license
#include<bits/stdc++.h> using namespace std; typedef long long int LL; typedef long double ld; #define maxx 10000000000 #define sz 100009 typedef vector<LL> v1; typedef vector<v1> v2; typedef pair<LL,LL> ii; #define pb push_back #define all(c) (c).begin(),(c).end() #define tr(c,i) for(typeof((c).begin() i = ...
6b8f28582b1e0ea1e23b62ecc54c6f4c74124291
b2a1a5518a26bf75c5a9dd84e68ea907adea8355
Zumida/swo
/src/patternbrush.cpp
C++
cpp
554
permissive
/* * patternbrush.cpp * * Last modified: <2014/01/30 16:40:44 +0900> By Zumida */ #include "swoconfig.hpp" #include "patternbrush.hpp" using namespace swo; PatternBrush::PatternBrush() { bmp = nullptr; } PatternBrush::PatternBrush(const Bitmap& bmp) { this->bmp = const_cast<Bitmap*>(&bmp); } ...
8e4ac01c9bcdd9708f6bd9f02128b81114f169a5
bc44eb1c009f551d0713822e8e389c6bd7087d07
padanes/chromium
/chrome/browser/extensions/extension_view_host.cc
C++
cc
12,065
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/extensions/extension_view_host.h" #include "base/strings/string_piece.h" #include "chrome/browser/browser_process.h" #include "c...
fcd6d660bbe628895c5e7595b4eb2604fcc290a9
73500dbf7897b19ba6631944f405f7a0c47977a4
KNata/c-Perform
/Building/Flat.cpp
C++
cpp
697
no_license
// // Flat.cpp // Exam_Kiselyk // // Created by Natalia on 4/22/15. // Copyright (c) 2015 Home. All rights reserved. // #include "Flat.h" Flat::Flat() : _roomCount(0), _rooms(new Room*[100]) { #ifndef NDEBUG #endif }; Flat::Flat(int roomCount, Room** rooms) : _roomCount(roomCount), _rooms(rooms) { #ifndef N...
5f7c289ffce592ed4e6c1359f890cfa15cf40715
8303b141c2fcbfbf98f53384ccc538be36917e7c
kalectro/pcl_groovy
/mobile_apps/android/BodyParts/tools/pcd2rgbd.cpp
C++
cpp
1,622
permissive
#include <cstdlib> #include <fstream> #include <iostream> #include <boost/cstdlib.hpp> #include <pcl/io/pcd_io.h> #include <pcl/point_types.h> struct RGBDHeader { boost::uint32_t width; boost::uint32_t height; }; struct RGB { boost::uint8_t r, g, b; boost::uint8_t dummy; // ensure alignment }; int main(int ...
d808b32fb686c7b41b299ae8c43068568aa77fd7
7d1eca64b11698fcb8b53e58902f2e7ec1c52ec7
krzysiekp25/szkola_programowania
/chapter_8/zad4/zad4.cpp
C++
cpp
1,008
no_license
#include <iostream> using namespace std; #include <cstring> struct stringy { char * str; int ct; }; void set(stringy & struktura, char * napis); void show(const stringy & struktura, int ile = 1); void show(const char * napis, int ile = 1); int main() { stringy beany; char testing[] = "Rzeczywistosc to ...
093dd05a38d6c958752d64eb94e283bcb43f2030
27a7f766ef357664c5cf8addf9bd52c19e5a9d7c
karlacordovafez/Programacion_Avanzada_UPIITA
/Parcial 2/10.12.2020 Ejercicio Archivos.cpp
C++
cpp
497
no_license
//Crear archivo que guarde numeros del 1 al 100 #include <stdlib.h> #include <stdio.h> FILE *archivo; char nombre_archivo[] = "Numeros.html"; //.rtf para un word char buffer[200]; int main(){ archivo = fopen(nombre_archivo,"w"); if(archivo != NULL){ // fprintf(archivo,"Este es mi primer archivo"); ...
6817ccec91b9f7e9afe5bf14b38e608862c6e72d
9fa0c1f6353c672817536dc37b68fd7baeb971a1
519984307/master
/Qt/src/chapter09/ks09_06/pagetogglebutton.cpp
C++
cpp
2,224
no_license
#include "pagetogglebutton.h" CPageToggleButton::CPageToggleButton(const QString &text, const qint32 pageId, QWidget *parent) :QPushButton(text, parent), m_PageId(pageId) { setObjectName(text); setFlat(true); connect(this, SIGNAL(pressed()),this,SLOT(onClicked())); } CPageToggleButton::~CPageToggleButton() { } ...
d6ed48068b94ebc500d236a79e3764a41b151bd8
ef947bb5019212b2bb72a6facbb74378306fd2ae
SherlockThang/sidecar
/GUI/ConfigEditor/TreeModel.cc
C++
cc
3,383
permissive
#include "TreeModel.h" #include "RootItem.h" #include "TreeItem.h" using namespace SideCar::GUI::ConfigEditor; TreeModel::TreeModel(QObject* parent) : QAbstractItemModel(parent), root_(new RootItem(this)) { ; } int TreeModel::columnCount(const QModelIndex& parent) const { return kNumColumns; } QVariant Tree...
f73af3c3d024b05deb885a44d3946af7eb0d6eb4
c65ae31850a9506a34db5445b59c99c2dcd4d525
JMMackenzie/RMQV
/wand_data.hpp
C++
hpp
6,839
permissive
#pragma once #include "binary_freq_collection.hpp" #include "rankers.hpp" #include "succinct/mappable_vector.hpp" #include "util.hpp" #include "wand_data_raw.hpp" class enumerator; namespace ds2i { template<typename block_wand_type=wand_data_raw> class wand_data { public: using wand_data_enumerat...
8bcdfed24850c5a9375c98f8f2f32da90c11d0f0
d81415ecf50e1f5e5a313fa3c86411d58a61ee1d
Snapdragon-Computer-Vision-Engine-Team/msm8974-sources2
/qcom/proprietary/mm-http/IPStream/Source/HTTP/src/DASHMediaRepresentationHandler.cpp
C++
cpp
78,328
no_license
/************************************************************************* */ /** * DASHMediaRepresentationHandler.cpp * @brief Implements the DASHMediaRepresentationHandler. Each such object * is DASH resource manager that handles a DASH representation and * manages all the media segments (resources)...
ccd7b144b596e6565090db78b4c31800891449c1
f1ab34d614191ca3e6c751a092b753e74e7c0e4a
microsoft/tensorflow-directml
/tensorflow/compiler/xla/service/bfloat16_normalization.cc
C++
cc
15,775
permissive
/* Copyright 2018 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...
ff4eab8ee97b9b99c25118cd8055444d44977a21
3dd3fef1dc96c48c21ccbbd4e2f80ef2a8b915e5
LeoChazl/ayrolespeguin
/src/server/server/CommandService.cpp
C++
cpp
1,203
no_license
#include "server.h" #include <iostream> using namespace server; using namespace std; //engine::Moteur& moteur; CommandService::CommandService (engine::Moteur& moteur): AbstractService("/command"), moteur(moteur){ listeCommand["tailleCmdAdverse"]=0; listeCommand["tabCmdAdverse"][0]=""; } HttpStatus CommandService...
5ee4ea5750af904bf57e25203002463d3a442e70
f2f4f6f34d071657d53249058c5a750f0801ca20
vricteam/Vricoin
/src/checkpoints.cpp
C++
cpp
3,580
permissive
// Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2018-2019 The Vricoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses...
37e183a1cea9ea520b8e0590163138086e2dff21
1cd123d7db6839362e92f1f9aef1071e657af6e9
swq0553/Unigine_FPS_Demo1
/source/firstPlayerActorSkinned.cpp
C++
cpp
5,694
no_license
#include "common.h" #include "firstPlayerActorSkinned.h" CFirstPlayerActorSkinned::CFirstPlayerActorSkinned(PlayerActorPtr& ptr): m_shoot(false), m_zoom(false), m_enabled(false) { m_playerActor = ptr; //set first person's arms if (Editor::get()->findNode("arm_0") != -1) { m_armsMesh = ObjectMeshSkinned::crea...
e409a9e32fc9460b14e2c074d9a99e2aa4bdd962
97187fb867227b64a9275284bf607b1722f9a0b8
TeamVault/tauCFI
/C++ Benchmark Programs/Benchmark Files 1/classtester/autogen-sources/source-8002.cpp
C++
cpp
2,885
no_license
struct c0; void __attribute__ ((noinline)) tester0(c0* p); struct c0 { bool active0; c0() : active0(true) {} virtual ~c0() { tester0(this); active0 = false; } virtual void f0(){} }; void __attribute__ ((noinline)) tester0(c0* p) { p->f0(); } struct c1; void __attribute__ ((noinline)) tester1(c1* p); struct c1 { bool ac...
a8a920b0fa3d14b3b2453355dbd5a978bbd2aa0f
c320aef640fbab72454d9f75c48bdb872a307bd6
Jacob1048596/meet
/src/database.hpp
C++
hpp
1,078
no_license
#pragma once #include<stdio.h> #include<string> #include<mysql/mysql.h> #include"tools.hpp" class DataBaseSvr { public: DataBaseSvr(std::string& host,std::string& user,std::string passwd,std::string db,uint16_t port) { host_=host; user_=user; passwd_=passwd; ...
c3eed7203b586d3a65a7b895355e85ef9cb0f71a
c49a91e0501b35fd844185c2af9e0793ccff7cf8
MyGitWk/project_10659664.cc
/projectwork.cpp
C++
cpp
19,183
no_license
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //SCHOOL MANAGEMENT PROGRAM ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //Headers inclusion #include<iost...
1dcfb9f9d7468d663977bea72d06911a8a73fa13
9718a63ea3eb3494b7394a1276f055a244ffdd46
Psidium/unisinos-procgraf-trabga
/JogoGA/GameObject.cpp
C++
cpp
548
no_license
// // GameObject.cpp // JogoGA // // Created by Psidium on 4/18/16. // Copyright © 2016 Psidium. All rights reserved. // #include "GameObject.hpp" GameObject::GameObject(int posX, int posY) { this->posX = posX; this->posY = posY; } void GameObject::incCurrentFrame() { this->currentFrame = ++currentFr...
102c036edc94508038a23e9b67851c3057254814
8fd847a97e4f8ffe480c926b29d30bb117c683f4
fgoujeon/magnum
/src/Magnum/Platform/WindowlessEglApplication.cpp
C++
cpp
13,910
permissive
/* This file is part of Magnum. Copyright © 2010, 2011, 2012, 2013, 2014, 2015 Vladimír Vondruš <mosra@centrum.cz> 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 Softwar...
6d7f0a2aa7986d90cbec2dd2e9cc4632292121ef
820da3cb0807d814044eaa24afb81b312bb0367c
ssrivats/serenity
/Userland/DevTools/HackStudio/ClassViewWidget.cpp
C++
cpp
6,013
permissive
/* * Copyright (c) 2021, Itamar S. <itamar8910@gmail.com> * * SPDX-License-Identifier: BSD-2-Clause */ #include "ClassViewWidget.h" #include "HackStudio.h" #include "ProjectDeclarations.h" #include <AK/BinarySearch.h> #include <AK/StdLibExtras.h> #include <LibGUI/BoxLayout.h> #include <string.h> namespace HackStu...
e4de21510549417d6fbdcab24d884980c09137e8
fe9064962948e5c9a51c2c9053a6c44c15aecfbf
Dan-Rizea/BaccalaureateAlgorithmsCPP
/vectori/vectori_12/main.cpp
C++
cpp
400
no_license
#include <iostream> #include <fstream> using namespace std; int main() { int m,n,ok,i,j,nr=0,a[100],b[100]; fstream f("bac.txt"); f>>m>>n; for(i=1;i<=m;i++) f>>a[i]; for(i=1;i<=n;i++) f>>b[i]; for(j=1;j<=n;j++) { ok=0; for(i=1;i<=m;i++) if(b[j]==a[...
72fea24ad675d59b54d00f99a85682db6d0a0f58
4629c97c75635caa696be6797837a34049e888d9
adidesh20/C89-Compiler-and-Python-Translator
/include/ast/ast_operators.hpp
C++
hpp
28,945
no_license
#ifndef ast_operators_hpp #define ast_operators_hpp #include <string> #include <iostream> #include <cmath> #include "ast.hpp" class Operator : public AST_Node { private: NodePtr left; NodePtr right; protected: Operator(NodePtr _left, NodePtr _right) : left(_left) , right(_right) {} ...
b2a2cbc519946f17c4fad2b51301dfd3ec2ddfd2
7625f78d11a7af56bc55fc626019475565d78171
Norrman95/AdvancedCppProgramming
/Labb6/Labb6/String.cpp
C++
cpp
660
no_license
#include "String.h" #include "memory.h" #include <iostream> #include <utility> #include <cassert> #include <algorithm> using namespace std; String::String(const char* cstr) { currContent = strlen(cstr); currCapacity = strlen(cstr); cString = new char[currCapacity + 1]; for (size_t i = 0; i < currContent + 1; i...
b64eedb6920e55db0937cbaa841a3aeb9e403f69
319335a43266f8551390461846cf660528837f96
KurejiMilan/Cpp_semester_work
/lab4_problem5/main.cpp
C++
cpp
1,513
no_license
#include <iostream> using namespace std; class Inverntory { int quant; int recorder; double price; char *descrip; public: Inverntory(int q,int r,double p,char *d); ~Inverntory(){} void print(); }; class Auto:public Inverntory { char *manufacturer; public: ...
a4093b0b939eba708c4788ffbf013acbe8090dac
a006ab944a8152633af9201fe67a689d67266bf9
jke-zq/my_lintcode
/Continuous Subarray Sum II.cpp
C++
cpp
2,664
no_license
class Solution { public: /** * @param A an integer array * @return A list of integers includes the index of * the first number and the index of the last number */ vector<int> continuousSubarraySumII(vector<int>& A) { // Write your code here vector<int> nocircle(2);...
3d74efa4d02bc58f8e7d1a1513ea93b8465eee33
0e405285164e66ae49ab412120d81ac176971532
jialinwu17/caffe
/include/caffe/layers/base_conv_layer.hpp
C++
hpp
6,693
no_license
#ifndef CAFFE_BASE_CONVOLUTION_LAYER_HPP_ #define CAFFE_BASE_CONVOLUTION_LAYER_HPP_ #include <vector> #include "caffe/blob.hpp" #include "caffe/layer.hpp" #include "caffe/proto/caffe.pb.h" #include "caffe/util/im2col.hpp" namespace caffe { /** * @brief Abstract base class that factors out the BLAS code common to ...
35edace7de6f4c86626fd65ad1024bc473f4aa99
74e266f7078e6de984f7bc50af8397b88ecf7d66
crdroidandroid/android_hardware_interfaces
/health/storage/aidl/default/main.cpp
C++
cpp
1,519
permissive
/* * Copyright (C) 2021 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
7f534a22b9931828f44de10521bc262783c4bebe
1c3af9fb7f15a69d37138f026d625f516b699bfe
MS-Astra/nebula-trifid
/code/render/coreanimation/jobs/animjobsamplemix.cc
C++
cc
2,037
permissive
//------------------------------------------------------------------------------ // animjobsamplemix.cc // (C) 2009 Radon Labs GmbH // (C) 2013-2015 Individual contributors, see AUTHORS file //------------------------------------------------------------------------------ #include "jobs/stdjob.h" #include "animjobuti...
23bb54f474b18fcee121020562351726a1a8df0f
e317f3722a5dede13cdefea85f141ed528d77596
Xclooad/electroneum-classic
/src/mnemonics/electrum-words.cpp
C++
cpp
18,709
permissive
// Copyright (c) 2018-2019, The Electroneum Classic Project // Copyright (c) 2014-2018, The Monero Project // // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are // permitted provided that the following conditions are met: // // 1. Redistributions of sou...
40bba452c3df7185abdd2a47d2f08792f7d54649
91a52b7b8e625721a2fc05754a0f8acc6f9d4f9f
FX196/cloudburst
/cloudburst-cpp/src/scheduler/list_handler.cpp
C++
cpp
1,044
permissive
// Copyright 2019 U.C. Berkeley RISE Lab // // 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...
6c8fb84343a0cf6fd73e1789e56c389454e2dd8f
b0ea8ec165dbe1cd114da92f2d9d73f36a816fa4
VB6Hobbyst7/CNCStepper
/Sketch/libraries/StepperLib/src/HAL_AVR.cpp
C++
cpp
8,375
no_license
/* This file is part of CNCLib - A library for stepper motors. Copyright (c) Herbert Aitenbichler 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 l...
278a824add157f091754659cf718f4badbe9e6c2
0ba54df5c70464736ba23e74ce7b20096268373a
naimulhaider/acm
/contest/NSU_PRACTICE/Geometry_Marathon_2/tester_2.cpp
C++
cpp
545
no_license
#include<bits/stdc++.h> using namespace std; int main () { freopen( "output.txt" , "w" ,stdout ); double n; while(cin>> n) { if( n == 0 ) continue; // cout << n - 100000000 << endl; printf( "%lf\n", n - 1000000000000 ); } return 0; } /* 7 11111011111111.000000 -2408483734...
3b9063d619d84449e7794f97c6ed6e3ec54b0de1
1c1978e5d07ee638e7bfe919bc625baa93015d28
BBR2394/pool-CPP
/cpp_pool_d10/ex00/Victim.cpp
C++
cpp
889
no_license
// // Victim.cpp for in /home/baptiste/rendu/piscine_cpp_d10/ex00 // // Made by Bertrand-Rapello Baptiste // Login <bertra_l@epitech.net> // // Started on Fri Jan 16 11:19:17 2015 Bertrand-Rapello Baptiste // Last update Fri Jan 16 12:16:32 2015 Bertrand-Rapello Baptiste // #include "Victim.hh" Victim::Victim(s...
146b07a876336dc6763d419398525109645f303d
1310662f309fd586748ddd36f35a2760e00c7ee2
blend2d/blend2d
/src/blend2d/bitset_test.cpp
C++
cpp
32,990
permissive
// This file is part of Blend2D project <https://blend2d.com> // // See blend2d.h or LICENSE.md for license and copyright information // SPDX-License-Identifier: Zlib #include "api-build_test_p.h" #if defined(BL_TEST) #include "bitset_p.h" #include "random.h" #include "simd/simd_p.h" #include "support/intops_p.h" //...
64297f7395008dd1fdd16af6e09027feeb8212bb
6db9290490296d513cba084283833cec6ca5d4f3
julimit139/MojeRepo
/ProjektSemestralny/ProjektSemestralny/karta.cpp
C++
cpp
865
no_license
#include "karta.h" Karta::Karta() { this->wartosc = dziewiatka; this->kolor = pik; } Karta::Karta(Wartosc w, Kolor k, std::string n) { wartosc = w; kolor = k; nazwaObrazu = n; } Wartosc & Karta::odczytajWartosc() { return this->wartosc; } Kolor & Karta::odczytajKolor() { return this->kolor; } std::string Ka...
d71d67a38d383eaeca5cb18cc539ea069ca0629e
8927f58746ab202bf7224b7b433c8c20ef682e50
asdlei99/ImGuiFontStudio
/src/Helper/SelectionHelper.cpp
C++
cpp
45,575
permissive
// This is an open source non-commercial project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com /* * Copyright 2020 Stephane Cuillerdier (aka Aiekick) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exce...
30557aafbf6bd15cce1caa895946b090abe77345
634d15771af268115dbdf2d90e078a15ecd1c452
Luzhiled/ushi-library
/math/fft/subset-convolution.cpp
C++
cpp
2,514
permissive
/** * @brief Subset Convolution */ template< typename Mint, int _s > struct SubsetConvolution { using fps = array< Mint, _s + 1 >; static array< int, (1 << _s) > pop_count; static constexpr int s = _s; SubsetConvolution() = default; static void init() { if(pop_count.back() == 0) { pop_count[0] = ...
ee40c8cf18d1d81d3d18729ba45556fd148a34f3
7914af95deb97a1c13e2a666a04921ebe2f4f6a3
iridium-browser/iridium-browser
/buildtools/third_party/libc++/trunk/test/std/ranges/range.adaptors/range.split/sentinel/ctor.default.pass.cpp
C++
cpp
1,268
permissive
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
af58ad44eadd3b9938048545ce8a39c0b72a4f35
c7cd630b8b27cbe0554200d731216aa19eee42b9
zkerriga/irc-server
/src/loggers/CommandLogger.cpp
C++
cpp
2,138
no_license
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* CommandLogger.cpp :+: :+: :+...
fbe5d4ca274d92190ac85d277fb36d09469f2c88
38bbcae3fbd91c19deb4c2ef10dad58cd1db8a18
kkoopa/js-bson
/ext/bson.cc
C++
cc
35,702
no_license
//=========================================================================== #include <stdarg.h> #include <cstdlib> #include <cstring> #include <string.h> #include <stdlib.h> #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wunused-parameter" #endif #include <v8.h> // this and the ...
1c428c5886271fe0c2ad54bff1778552da3eae9a
61b9d52f01bf3657037141f629db4ddf3ef4879a
federal-geospatial-platform/fgp-metadata-proxy
/périmé/scripts/pycsw/geos-3.3.3/src/algorithm/locate/IndexedPointInAreaLocator.cpp
C++
cpp
3,854
permissive
/********************************************************************** * $Id: IndexedPointInAreaLocator.cpp 2868 2010-01-18 00:59:21Z mloskot $ * * GEOS - Geometry Engine Open Source * http://geos.refractions.net * * Copyright (C) 2001-2002 Vivid Solutions Inc. * * This is free software; you can redistribute a...
286ee4943b10655a971274c6bd4262cb5eaed539
295a1539fae616c7f6f00283e436f0247a6c7059
rohitbhatghare/c-c-
/Sept-16-20/assignment82.cpp
C++
cpp
402
no_license
#include <iostream> #include <string> using namespace std; //introduces namespace std int main() { int a,b,sum,sub; cout<<"Enter the First Integer"<<endl; cin>>a; cout<<"Enter the Second Integer"<<endl; cin>>b; sum=a+b; sub=a-b; if(sum==5 ||a==5 || b==5 || sub==5) { ...
15b20a51c908d5a4460d18fbf05329d62d29daf3
2ef076361a6601015b102276919852715b973747
AlistairMills/mantid
/Code/Mantid/Framework/CurveFitting/src/ConvolveWorkspaces.cpp
C++
cpp
3,482
no_license
/*WIKI* Convolution of two workspaces using [[Convolution]] from CurveFitting. Workspaces must have the same number of spectra. *WIKI*/ //---------------------------------------------------------------------- // Includes //---------------------------------------------------------------------- #include "MantidCurveF...
fcaed14390fe59933df5fd1748648f99e1714ddc
ac2c4fd393b96c6880b8fc378dafd02a13fb4d09
sanesedu/CompetitiveProgramming
/codeforces/B/680a/main.cpp
C++
cpp
1,003
no_license
#include <bits/stdc++.h> #define pb push_back #define all(x) (x).begin(), (x).end() #define fori(i, n) for(int i = 0; i < (int)(n); ++i) #define forid(i, n) for(int i = (int)(n) - 1; i >= 0; --i) #define forl(i, n) for(long long i = 0; i < (long long)(n); ++i) #define forld(i, n) for(long long i = (long long)(n) - 1;...
44606cbb4ae0504c64d18e2b3cadbc42343946de
1e5a573e582ef6c07fc50d7fc32e5537fe981e90
Sunder-AK/chromium
/ui/accessibility/ax_table_info.cc
C++
cc
21,339
permissive
// Copyright 2018 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 "ui/accessibility/ax_table_info.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_util.h" #include "ui/access...
367a78a6de530eb801e4866c6329a591e64b1c70
b3e8a6131f13dca83d1234e9f2ef8014d8a632ce
hbrulin/CPP_Modules
/tests/streams/istream.cpp
C++
cpp
747
no_license
#include <iostream> #include <fstream> using namespace std; int main() { ifstream monFlux("C:/Nanoc/C++/data.txt"); //Ouverture d'un fichier en lecture /*Il y a trois manières différentes de lire un fichier : - Ligne par ligne : getline(); - Mot par mot : chevrons >>; - caractère par caractère : get().*/ stri...
d38f43de2ad5b497c953ea599599a93f3fc1b855
58e29d613f0e94aebc304d03ef9775566bb5ad7f
mesalock-linux/llvm
/lib/CodeGen/RegisterCoalescer.cpp
C++
cpp
145,748
permissive
//===- RegisterCoalescer.cpp - Generic Register Coalescing Interface ------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
61ee2d8563f531a57a07242e2540d4e932ca6ec7
ef2dd4ecbf523d6da149165e96efc514939affd0
Pro/mdnsd
/tests/fuzz/fuzz_mdns_xht.cc
C++
cc
2,184
permissive
/* This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize copy...
410c03d13d8c3e9b5414ed9ed3288819e9cdc4d6
bb0cbbde03ebf8ae5116108f772d0bd584cf221f
strigazi/athena
/Tracking/TrkVertexFitter/TrkVertexSeedFinderUtils/src/Mode3dTo1dFinder.cxx
C++
cxx
3,879
permissive
/* Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration */ /********************************************************************* Mode3dTo1dFinder.cxx - Description in header file *********************************************************************/ #include "TrkVertexSeedFinderUtils/M...
d177223370fcbb033237f7bb64dfb8ce5d4b457b
d3da15b9f3ecde6d44b63852d5932305d7924d5e
marius-18/networkit
/networkit/cpp/centrality/LocalPartitionCoverage.cpp
C++
cpp
1,007
permissive
/* * */ #include <networkit/centrality/LocalPartitionCoverage.hpp> NetworKit::LocalPartitionCoverage::LocalPartitionCoverage(const NetworKit::Graph &G, const NetworKit::Partition &P): Centrality(G, true, false), P(P) { } void NetworKit::LocalPartitionCoverage::run() { hasRun = false; scoreData.clear(); ...
0c1c0f0009ca1a3bc2b9177a6051a8f52d5ecd9b
1f946c1ab0aff36d69293cb7cb89c64fb743a53a
pawankishorsingh/SymbolsExport
/Export class from C++ DLL using declSpec/Employee/CEmployee.cpp
C++
cpp
389
permissive
#include "CEmployee.h" #include <string> CEmployee::CEmployee(int id, const char* name) { _EmployeeId = id; _EmployeeName = new char[strlen(name) + 1]; strcpy_s(_EmployeeName, strlen(name) + 1, name); } CEmployee::~CEmployee() { delete[] _EmployeeName; } int CEmployee::getId() { return _Employe...
a2511a7b579522aa89881e2dc4a79e2eafe59863
43a4a1438e81cc69a0498f1503d654775e7605b2
zhuangli1987/LeetCode
/Valid Palindrome.cpp
C++
cpp
725
no_license
class Solution { public: bool isPalindrome(string s) { // Start typing your C/C++ solution below // DO NOT write int main() function string m = ""; for (int i = 0; i < s.size(); ++i) { if (s[i] >= 'a' && s[i] <= 'z') { s[i] = s[i] - 'a' + 'A'; ...
abdf841b4aa6827458640af1d1c424716fa62c08
2c19c964fb7cca5fe17e17178f4675f1d4db0f26
anjingbin/starccm
/xercesc/xerces-c1_7_0-linux7.2/include/xercesc/util/regx/ClosureToken.hpp
C++
hpp
5,256
permissive
/* * The Apache Software License, Version 1.1 * * Copyright (c) 2001 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source c...
acbb6c1175c1b4eb28b07ccfc33e2f5abdfd46ca
2af5281f1360d2ecea6045778ad439f3f38b1605
christianscheuer/aaf
/meta/headergen/propertyDefUid.cpp
C++
cpp
3,462
no_license
//=---------------------------------------------------------------------= // // $Id$ $Name$ // // The contents of this file are subject to the AAF SDK Public Source // License Agreement Version 2.0 (the "License"); You may not use this // file except in compliance with the License. The License is available // in AAFSD...
a6fed98db54f0b05d2b475014c9d3e4774b80137
bd087e8e43ee79f3f3073076ff4c5338331b3f78
FollowMyVote/botan
/src/cli/speed.cpp
C++
cpp
37,631
permissive
/* * (C) 2009,2010,2014,2015 Jack Lloyd * (C) 2015 Simon Warta (Kullo GmbH) * * Botan is released under the Simplified BSD License (see license.txt) */ #include "cli.h" #include "../tests/test_rng.h" // FIXME #include <sstream> #include <iomanip> #include <chrono> #include <functional> // Always available: #include ...