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
d23333cca679a83ea75ab3d203b3cc3c49e960b0
daeaf5646701a07c66cb479bc6223615065318cc
sadrulhc/chromium
/ui/views/examples/button_example.cc
C++
cc
5,743
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 "ui/views/examples/button_example.h" #include <memory> #include <utility> #include "base/strings/utf_string_conversions.h" #include "ui/bas...
f8efa5cd60cbb502c9d589134fb7a23e905f986b
d97f329b050d82bb00e2921ddff7d6674b4d0e4b
manimod7/Prep
/trees/MaxSumNodes.cpp
C++
cpp
2,402
no_license
//*Max Sum nodes such that if there is edge between two nodes than at max only one of them is included // C++ program to find maximum sum from a subset of // nodes of binary tree #include <bits/stdc++.h> using namespace std; /* A binary tree node structure */ struct node { int data; struct node *left, *right; }; ...
15dc545de19525a8d48a985ef12ff04fc1987e6f
b45211f8b65f8d03ea181646069f96d9f1453bf8
Ujjwalupadhyay123/CPPcodes
/sumoddandevendigit.cpp
C++
cpp
277
no_license
#include<iostream> using namespace std; int main(){ int i=1,evensum=0,oddsum=0,n; cin>>n; while(n){ int rem=n%10; if(i==1){ oddsum+=rem; } if(i==-1){ evensum+=rem; } i*=-1; n=n/10; } cout<<oddsum<<endl; cout<<evensum<<endl; return 0; }
0d3cb8ede3db931c0972494123329b605a13cdfe
1b20c4aa516273c3380acf4a3f4203b1069fd2e1
jjheaton99/SDL2GameOfLife
/source/Entities/GameObject.cpp
C++
cpp
1,058
no_license
#include "GameObject.h" GameObject::GameObject(std::string fileName, double xPos, double yPos, double xVel, double yVel, double colliderWidth, double colliderHeight) : TextureObject(fileName, xPos, yPos), m_collider{ colliderWidth, colliderHeight }//, m_velocity{xVel, yVel} {} GameObject::GameObject(double xPos, ...
9a5e69adb4d9ebadf3a2a2928b181bfe584203c7
a7a385a19f6e1403cf6be5134c3a776ed525bb52
alexandraback/datacollection
/solutions_5670465267826688_0/C++/decltypeNULL/main.cpp
C++
cpp
3,938
no_license
#include <iostream> #include <fstream> #include <string> #include <cassert> using namespace std; enum Quat { ONE = 0, NONE = 1, I = 2, NI = 3, J = 4, NJ = 5, K = 6, NK =7 }; Quat INV_TABLE[8] = { ONE, NONE, NI, I, NJ, J, NK, K }; Quat MUL_TABLE[8][8] = { { ONE, N...
de1a3f75a5d5fc8d371397ac8b0fac77ea07cb8f
d54ce03281aff18f76cee77a809d5ceaadd53974
niuxu18/logTracker-old
/second/download/httpd/gumtree/httpd_repos_function_36_httpd-2.3.8.cpp
C++
cpp
6,131
no_license
int main(int argc, const char * const argv[]) { apr_pool_t *pool; apr_status_t rv; apr_size_t l; char pwi[MAX_STRING_LEN]; char pwc[MAX_STRING_LEN]; char errbuf[MAX_STRING_LEN]; const char *arg; int need_file = 1; int need_user = 1; int need_pwd = 1; int need_cmnt = 0; ...
152542cd2f4679b433e804677dc709a36a6250e3
899ef5903572ecb22a839540dbb8889a8e63acce
Kadoarc/ViruscideMaster
/ViruscideMaster/ViruscideMaster/Animation.cpp
C++
cpp
774
no_license
#include "Animation.h" Animation::Animation(sf::Texture& texture, sf::Vector2u & noOfFrames, float frameTime) : noOfFrames(noOfFrames), frameTime(frameTime), totalTime(0) { frameSize.width = texture.getSize().x / float(noOfFrames.x); frameSize.height = texture.getSize().y / float(noOfFrames.y); } Animation::~Anim...
e48b719fbf94ed3b193e79ea1ee2d88bebff620d
ffb19f08c5defcda3eb374bd96ff0c7a27f11b23
tac0x2a/ClickHouse
/src/Processors/Executors/PipelineExecutor.cpp
C++
cpp
21,851
permissive
#include <Processors/Executors/PipelineExecutor.h> #include <queue> #include <IO/WriteBufferFromString.h> #include <Processors/printPipeline.h> #include <Common/EventCounter.h> #include <ext/scope_guard.h> #include <Common/CurrentThread.h> #include <Processors/ISource.h> #include <Common/setThreadName.h> #include <Inte...
cfdfde703fed2288c90098e46c9eb2c05be98ed0
a4f5e98b3ce4c9b6af5f065241c3fe2dabb4c026
benehret/MulticopterSim
/Source/HackflightModule/pawns/HackflightPhantomPawn.cpp
C++
cpp
992
permissive
/* * Class implementation for Phantom pawn in MulticopterSim * * Copyright (C) 2019 Simon D. Levy * * MIT License */ #include "HackflightPhantomPawn.h" #include "SimMotor.hpp" AHackflightPhantomPawn::AHackflightPhantomPawn() { _phantom.build(this); } void AHackflightPhantomPawn::PostInitializeComponents() { ...
686d97c9ef2adadbc61a658eefff1312b8cd5160
a9b427eae524e367df76c7abe022bc29e065b609
jpkenny/sst-macro
/sumi-mpi/mpi_api_probe.cc
C++
cc
3,584
permissive
/** Copyright 2009-2021 National Technology and Engineering Solutions of Sandia, LLC (NTESS). Under the terms of Contract DE-NA-0003525, the U.S. Government retains certain rights in this software. Sandia National Laboratories is a multimission laboratory managed and operated by National Technology and Engineering...
855601aa70a6eaea8d4f2241d67730d1eb3ca538
44e3338e6d4c1ca7816b2c99e1e0493d0b4aaae6
glancing/binaryen
/src/passes/SimplifyGlobals.cpp
C++
cpp
8,974
permissive
/* * Copyright 2019 WebAssembly Community Group participants * * 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...
96cad0fd315a1cf5164e9cd90b5cf695f8551ba8
0314aa37d606872c82510bb0ca789575d203d336
whunmr/circa
/src/symbols.cpp
C++
cpp
2,775
permissive
// Copyright (c) Andrew Fischer. See LICENSE file for license terms. #include "common_headers.h" #include "hashtable.h" #include "names_builtin.h" #include "source_repro.h" #include "symbols.h" #include "tagged_value.h" #include "term.h" #include "type.h" namespace circa { Value* g_runtimeSymbolMap; // Maps stri...
747800bdb26316699ddd09d8f6d1791531d75f17
e6a55a9ccc6df9beac6e78b66eaa15f22c903e4b
crdroidandroid/android_system_vold
/model/VolumeEncryption.cpp
C++
cpp
3,290
no_license
/* * Copyright (C) 2020 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...
c87520ca18b80d09e72e19081f8f35614c3f5839
18258a70b8ac1342753fa85b0db2b5948dc88277
JayQuantRise20/My_Projects
/ADEMethod.cpp
C++
cpp
1,235
no_license
//XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX // LatticeMethod.cpp //XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX #include <cmath> #include <vector> #include <stdexcept> #include <algorithm> #include "ADEMethod.h" #include "pde.h" #includ...
966091353903b260309b32ba3d32def398d38325
c2a1745475c9fda2cc666b0dc1c1f1f52b5206e1
SoundMetrics/aris-integration-sdk
/common/code/ManagedProtocolSupport/ArisFramestreamWrapper/dllmain.cpp
C++
cpp
525
permissive
// WARNING: This code is meant for integration testing only, it is not production-ready. // THIS CODE IS UNSUPPORTED. // dllmain.cpp : Defines the entry point for the DLL application. #include "stdafx.h" BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, L...
a8e556bc15d62d27b27eac3b9f5b0db7dda3aee7
4acfa9ed2c5597dd2d16a125cf6e43acfecc3181
knetikmedia/knetikcloud-tizen-client
/src/Rule_Engine_ExpressionsManager.cpp
C++
cpp
13,600
no_license
#include <glib-object.h> #include <json-glib/json-glib.h> #include "Rule_Engine_ExpressionsManager.h" #include "NetClient.h" #include "Helpers.h" #include "Error.h" #include "RequestInfo.h" using namespace std; using namespace Tizen::ArtikCloud; Rule_Engine_ExpressionsManager::Rule_Engine_ExpressionsManager() { } ...
f173c6cbd78fe3d46f76cb9bdac16a7789de0db3
1b12b34627997e0c9b204846cb046ea7ef36bd35
kyos1704/aoj
/C++/Volume000/AOJ-0042-20121127(dp ナップサック 盗賊).cpp
C++
cpp
770
no_license
#include<iostream> #include<cstdio> #include<string> #include<vector> #include<cmath> #include<cstdio> #include<algorithm> #include <utility> using namespace std; int main(){ int dp[10100]; int W,N; int v[1010],w[1010]; int count=0; while(cin>>W,W){ cin>>N; count++; for(int i=...
e02351c76bc654a0abdee6d5fd0703b1652a48de
b449373ef65559398883f53cb9b37a1f5f4367fc
Baymxs/FIT-OOP
/C++/Lab_3/ViewFactory/Views/SFMLView/WindowFactory/Windows/OptionsWindow.cpp
C++
cpp
1,376
permissive
// // Created by Bayramov Nidjat on 16.12.18. // #include "OptionsWindow.h" #include "../WindowFactory.h" #include "../WindowCreators/OptionsCreator.h" //Initialize the window before running main //Anonymous namespace namespace { //Global function bool initializeOptionsWindow() { WindowFactory::getIn...
aa1196fc172611a85e598eadb9bff2ca5e3412f3
263234e6f0d4cd13f42cdd4054bd164e0514bba4
schreibikus/nmPlayer
/Source/IO/COpenSSL.cpp
C++
cpp
2,760
no_license
/************************************************************************ VisualOn Proprietary Copyright (c) 2012, VisualOn Incorporated. All Rights Reserved VisualOn, Inc., 4675 Stevens Creek Blvd, Santa Clara, CA 95051, USA All data and information contained in or disclosed by this document are confiden...
57b3c0d4b6c6a4c1d639effa59bb1012b35bcfc8
4303f240930691d013498b4b1fba2b9a10438dcb
iridium-browser/iridium-browser
/chrome/browser/extensions/forced_extensions/install_stage_tracker_factory.cc
C++
cc
1,460
permissive
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/forced_extensions/install_stage_tracker_factory.h" #include "base/no_destructor.h" #include "chrome/browser/extensions/forced_extensions/in...
46ae02a67bcd33ba84c72c3d5ac0b8ade5c141bc
b100b31e2bc2445a08f131b58f048a137a189e8d
stitchEm/stitchEm
/lib/src/core/pyramid.hpp
C++
hpp
6,949
permissive
// Copyright (c) 2012-2017 VideoStitch SAS // Copyright (c) 2018 stitchEm #pragma once #include "gpu/uniqueBuffer.hpp" #include "gpu/stream.hpp" #include "libvideostitch/logging.hpp" #include <stdint.h> #include <vector> namespace VideoStitch { namespace Core { /** * @brief A class that computes pyramids of imag...
341d5338fb8854acda75d5683ef95e6835bc1ec7
507bcddf768076fac27d8974b32fb986d37e693e
tars0x9752/atcoder
/pana2020/c.cpp
C++
cpp
476
no_license
#include <bits/stdc++.h> #define all(x) (x).begin(), (x).end() using namespace std; using ll = long long; using P = pair<ll, ll>; const string ln = "\n"; constexpr int INF = 1001001001; constexpr int MOD = 1000000007; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); ll a, b, c; cin >> a >> b >> c; ...
f3c1b54d9474f20022c591aad91e249db467ed60
5c3f9d3bd7507a8d5f9d2b23fbc1ec2135074243
wolfspider/foundationdb
/fdbserver/Status.actor.cpp
C++
cpp
104,610
permissive
/* * Status.actor.cpp * * This source file is part of the FoundationDB open source project * * Copyright 2013-2018 Apple Inc. and the FoundationDB project 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 obt...
a336d41bf7bb8b2cf406b969808b8ebda0deaf59
abc32de02c56d62188c44e461202df1293a51a78
potatoxf/ue-plugins
/MORT/Source/MORT/Private/MORT.cpp
C++
cpp
503
permissive
#include "MORT.h" #define LOCTEXT_NAMESPACE "FMORTModule" void FMORTModule::StartupModule() { // This code will execute after your module is loaded into memory; the exact timing is specified in the .uplugin file per-module } void FMORTModule::ShutdownModule() { // This function may be called during shutdown to cle...
98ae276f3f749e2fc317f3b74c2efbc4d4e4b465
8cdf878c2bc3645e00108f479158971b7178b1bf
Dulun/Cplusplus
/demo_this_pointer/Array.cpp
C++
cpp
675
no_license
/************************************************************************* > File Name: Array.cpp > Author: dulun > Mail: dulun@xiyoulinux.org > Created Time: 2016年06月06日 星期一 21时27分08秒 ************************************************************************/ #include<iostream> #include "Arra...
ba270a320fa1e6a8008fb13ba2aed9b00993d5f7
6caf1ce520891d3941f965e0c69d0f3e565eb843
dreadlord1984/mace
/mace/ops/target_rms_norm.cc
C++
cc
5,463
permissive
// Copyright 2018 The MACE 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 appl...
530a14544a704d13b8b54148178b5519cd9cec27
b400fe68963e767d2e2e69ef9b0ab31074af87d1
GroinGuy/GroinCoin-GXG
/src/compressor.cpp
C++
cpp
5,202
permissive
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2017 The Bitcoin Core developers // Copyright (c) 2014-2018 The Groincoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <compressor.h> ...
41cbf3e3a8b3e9e90e6892d89ccfb6fa3de46726
230f15e1416359403049c0ec7c25bbaa96ca4d57
SymbianSource/oss.FCL.sf.mw.messagingmw
/messagingfw/msgsrvnstore/server/test/unit/src/T_MSGS_BACKUPFAIL.cpp
C++
cpp
11,956
no_license
// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" // which accompanies this distribution, and is available // at the URL "http://www.eclipse.org/legal/e...
f0a82a0c3b3072e4d732cadd84eca200ca35f50f
bef8e02db02350dee93f793b06afb191e0e86a2d
ashutosh0305/Geeks-for-Geeks-Must-do-coding-Questions-Bootcamp
/union and intersection of two sorted arrays/main.cpp
C++
cpp
611
no_license
#include <iostream> using namespace std; int printunion(int arr1[],int arr2[],int m,int n) { int i=0,j=0; while(i<m&&j<n) { if (arr1[i]<arr2[j]) { cout<<arr1[i++]<<" "; } else if(arr2[j]<arr1[i]) cout<<arr2[j++]<<" "; else { cout<<arr2[j++]<<" "; i++...
40f7eb6b94b12ef6d026031829c3aede844c28be
940842ce658e2e2f7bba006b4c8cc79acadd76ed
invisibel/fedoracoin
/src/qt/bitcoinstrings.cpp
C++
cpp
9,735
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 recomm...
3d146b1c283e33059c52e0bc96e45c7ed2d99766
ded9fc595ebf3c2bbaf282399650c443e44a9a0f
Rauell/neuron
/maxcode/neuron/iv/src/lib/Dispatch/rpcbuf.cpp
C++
cpp
15,183
permissive
#ifdef HAVE_CONFIG_H #include <../../config.h> #endif /* * Copyright (c) 1987, 1988, 1989, 1990, 1991 Stanford University * Copyright (c) 1991 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provi...
42f9bf6c6cdca6ac9b675272b71fd5dc921028bd
da65290107555c916ccfe2a46ca651dc28a69516
JonnyBanana/botnets
/VirusPack/beispiel/Socks5_rootkit_bot/bot_sec_str/crc.cpp
C++
cpp
3,313
no_license
#include < windows.h > #include < stdio.h > //#include "rebel-strings.cpp" DWORD WINAPI CRC32( char *szApi, DWORD dwApiLen ); char *WINAPI eL_NextStr( char *szPointer ); DWORD WINAPI eL_StrLen( char *szPointer ); int main ( ) { static char szApis[ ] = "================[ kernel32 ]===================...
476af771e0b958c069345c6bf7f4e28c7d441385
a4ff345ed77b898d9620fcac882c842b47908d58
tivtag/nperplex
/include/Npe/System/Compiler.hpp
C++
hpp
1,337
no_license
#pragma once /* Defines: Compilers Lists supported compilers. NPE_COMPILER_MSVC - Microsoft Visual C++ NPE_COMPILER_GCC - GNU G++ Define: NPE_COMPILER Specifies the current compiler. See <Compilers>. Define: NPE_COMPILER_VERSION Specifies the version of the compiler...
f5f5d670c00d19d3dfdcef31eb6e90cf06367b3d
cc02c83c36245bb4541b2b63af51c1b3138f0ccc
david-crumley/Dora
/nodes/3d_mapping_control/src/stop_3d_mapping.cpp
C++
cpp
465
no_license
#include <ros/ros.h> #include <zed_interfaces/stop_3d_mapping.h> int main(int argc, char** argv) { ros::init(argc, argv, "stop_3d_mapping"); ros::NodeHandle n; ros::ServiceClient client = n.serviceClient<zed_interfaces::stop_3d_mapping>("/zed/zed_node/stop_3d_mapping"); zed_interfaces::stop_3d_mapping start; ...
d4be3adb447a024db0e9737f82d697f83b1333f7
53d423e4d1ef247247e3aec325e76ecbbdd94c02
wangjiaqingll/UMICH-Physical-Design-Tools
/ShellPart/bbFMPart.cxx
C++
cxx
3,996
permissive
/************************************************************************** *** *** Copyright (c) 1995-2000 Regents of the University of California, *** Andrew E. Caldwell, Andrew B. Kahng and Igor L. Markov *** Copyright (c) 2000-2002 Regents of the University of Michigan, *** Saurabh N...
569c71c5140945eb50b9c5363258cb84d35d7b7d
696a39c48eace15c3cdfed4660b25405ce7649d2
xifoxy/OnlineJudge
/Boj/4000/4101(크냐).cpp
C++
cpp
209
no_license
#include <bits/stdc++.h> using namespace std; int a, b; int main(){ while(1){ scanf("%d%d", &a, &b); if(!a && !b) break; if(a > b) puts("Yes"); else puts("No"); } } // 말하지 않아도 알아요~
3f1ab354f204d9b8c482babec4c70da6b3cc771c
377a2c39d0a5a41f65b10ba0324f05ebe43f128a
karthik2883/ABCCoin
/src/util.cpp
C++
cpp
26,490
permissive
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include "config/bitcoin-config.h" #endif #include "u...
4b71826eb3ac3ed856fddc5e34bcf4032fc120d1
0f34e2e23a7cb73d4c070e027698961ad8c2231e
viagostini/raytracing
/test/tuple_test.cc
C++
cc
5,408
no_license
#include "gtest/gtest.h" #include <cmath> #include <stdexcept> #include "tuple.h" const float sqrt14 = sqrt(14); TEST(Tuple, defaultTuple) { Tuple tuple; EXPECT_FLOAT_EQ(tuple.x, 0.0); EXPECT_FLOAT_EQ(tuple.y, 0.0); EXPECT_FLOAT_EQ(tuple.z, 0.0); EXPECT_FALSE(tuple.isPoint()); EXPECT_TRUE(tu...
40658d1364f5d7838a26a6b3b704d0aefb19ecbd
65e905e437f8c781e0c56ddba2d692c7c71e1f88
amoylel/fcppt
/include/fcppt/math/interpolation/perlin_fifth_degree.hpp
C++
hpp
1,187
permissive
// Copyright Carl Philipp Reh 2009 - 2015. // Copyright Philipp Middendorf 2009 - 2015. // 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 FCPPT_MATH_INTERPOLATION_PERLIN_FIFT...
94c2e7fc0063cb17062b48be05c724437783af05
94c73277d579be380c9507491002cf918d2cbed6
emptyewer/MAPster
/helpers/runqueue.cpp
C++
cpp
7,980
permissive
#include "runqueue.h" #include "helpers/files.h" RunQueue::RunQueue() {} RunQueue::~RunQueue() { delete proc; } void RunQueue::add_job(Parameters p) { QString error_string = NULL; if (p.output_filename == NULL) { error_string += "Output Filename is Not Valid!"; } if (error_string == NULL) { queue.ap...
18d3a5168d14b5a5e6dedbe6c9175a5faf69a6a5
68398b000d21d22a9f62c458a48948e1d2bb60df
PaddyReid/Cormac
/ChickenGame/ChickenGame/Button.cpp
C++
cpp
2,056
no_license
#include "Button.hpp" #include "Utility.hpp" #include <SFML/Window/Event.hpp> #include <SFML/Graphics/RenderStates.hpp> #include <SFML/Graphics/RenderTarget.hpp> namespace GUI { Button::Button(const FontHolder& fonts, const TextureHolder& textures) : mCallback() , mNormalTexture(textures.get(Textures::ButtonNor...
172c411ed1291678a4344b43199909c092ee11be
9f606f5b9641563fc82fc019ac5cb7024d63ab73
Pandinosaurus/HLx_Examples
/Acceleration/memcached/buildUoeMcdSingleDramPCIe/src/hls/axiDataMoverReadConverter/globals.cpp
C++
cpp
4,516
permissive
/************************************************ Copyright (c) 2016, Xilinx, 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: 1. Redistributions of source code must retain the above copyright noti...
b126128a5a2ceb15f8c0a7fb3585605925f55d12
3a3cc0eec6529de9e34af1bdf797d5dc12237822
guoyu07/trabalhoPRG3
/Carro/compra.cpp
C++
cpp
711
no_license
#include "compra.h" Compra::Compra() { } int Compra::getCompraID() const { return compraID; } void Compra::setCompraID(int value) { compraID = value; } QString Compra::getFormaPagamento() const { return formaPagamento; } void Compra::setFormaPagamento(const QString &value) { formaPagamento = value...
5126e1bf1ae6920b262a626032937afd24612542
c1f0b754b306ce46ba9429e6fd35fe04ffb8e151
simquest/opensurgsim
/SurgSim/Graphics/RenderTests/OsgTextRepresentationRenderTests.cpp
C++
cpp
6,790
permissive
// This file is a part of the OpenSurgSim project. // Copyright 2013, SimQuest Solutions Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICE...
2f25e8f86594da140a3f9a782ff9651debb6eb34
70da09b68b05044982351a7f5a763100cac3cb0a
masterhong1634/lineage
/quitScene.cpp
C++
cpp
512
no_license
#include "stdafx.h" #include "quitScene.h" quitScene::quitScene() { } quitScene::~quitScene() { } HRESULT quitScene::init() { IMAGEMANAGER->addImage("quitScene", "images/quitScene.bmp", WINSIZEX, WINSIZEY, true, RGB(255,0,255)); return S_OK; } void quitScene::release() { } void quitScene::update() { RECT _rect{...
48da0a60894265a9ae2d0f0d8a3230d862561f58
75dc9f61650542452176b367321bdbad4f58b985
miyako/console-tcp-listener
/tcp-listener/main.cc
C++
cc
4,338
no_license
#include "main.h" static void usage(void) { fprintf(stderr, "Usage: tcp-listener -p port -t timeout -\n\n"); fprintf(stderr, "One-shot TCP listener\n\n"); fprintf(stderr, " -%c port: %s\n", OPT_PORT , "tcp port number to listen (default=8080)"); fprintf(stderr, " -%c timeout: %s\n", OPT_TIMEOUT , "time to k...
571dd6415c870055ab4337c4a649915c5445ed38
e737ade9fa217c70f86308493964ef320574d920
tuyen1998/Juliet_test_Suite
/testcases/CWE762_Mismatched_Memory_Management_Routines/s03/CWE762_Mismatched_Memory_Management_Routines__delete_char_realloc_54a.cpp
C++
cpp
2,767
no_license
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__delete_char_realloc_54a.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete.label.xml Template File: sources-sinks-54a.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management Routines ...
24004de7fdbc9935660a60ebe5b1289a0abd4cef
4554b2bc2f41f1e2ffb9de44c121e71a1ab04388
giada1198/3D_Pacman_Go
/src/main.cpp
C++
cpp
26,117
no_license
#include <iostream> #include <stdio.h> #include <string> #include <sstream> #include <stdlib.h> #include <math.h> #include <vector> #include "fssimplewindow.h" #include "ysglfontdata.h" #include "yssimplesound.h" #include "maze.h" #include "playImage.h" #include "menu.h" #include "score.h" #include "rule.h" #include "m...
458906fb5129e2e63e6189318c585fb59fbe71ef
c1a6c7677be4084969e7750e016474b39c52d3d1
moteesh-in2tive/chromium
/components/autofill/core/browser/field_filler.cc
C++
cc
39,094
permissive
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/autofill/core/browser/field_filler.h" #include <stdint.h> #include <vector> #include "base/feature_list.h" #include "base/i18n/case...
f3a61377d1c58c17953c4a1b569dc484acd46192
569acef92e1b5a7f5f2a25b75194ecaf85ebaa88
koobonil/Boss2D
/Boss2D/addon/_old/webrtc-qt5.11.2_for_boss/media/sctp/sctptransport.cc
C++
cc
42,008
permissive
/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
c181eff36425f788ec5d3f168eff2676e3bb7b02
f899b779e18229b54473e3c2382ec7bb063d5c20
thinhman/C-plus-plus
/DiggerMan_Game/DiggerMan_skeleton/DiggerMan/DiggerMan/Actor.cpp
C++
cpp
19,766
no_license
#include "Actor.h" #include "StudentWorld.h" // Students: Add code to this file (if you wish), Actor.h, StudentWorld.h, and StudentWorld.cpp /* can only use this GraphObject's member functions in our program GraphObject(int imageID, int startX, int startY, DIRECTION startDirection, float size = 1.0, unsigned int dept...
45b8049ade2b25911a609145f14ea8e51b82ccb3
868532883bebd2427a160203440821af1eccb139
Bluscream/TS3PatchExtensions
/qtTest/QtConfig.cpp
C++
cpp
458
no_license
#include "QtConfig.h" #include "config.h" QtConfig::QtConfig(QWidget *parent) : QMainWindow(parent) { ui.setupUi(this); ui.checkBox->setChecked(config->testBool); Qt::WindowFlags flags = this->windowFlags(); this->setWindowFlags(flags &~Qt::WindowMinMaxButtonsHint); this->setMinimumSize(this->size()); this->s...
b9bc0cdc140d9a6ec1c65a3618af2edf4a224f82
bd88060c97022fc480b9f2136fd61da140e65bd7
aws/aws-sdk-cpp
/generated/src/aws-cpp-sdk-iot/source/model/ListOTAUpdatesResult.cpp
C++
cpp
1,542
permissive
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/iot/model/ListOTAUpdatesResult.h> #include <aws/core/utils/json/JsonSerializer.h> #include <aws/core/AmazonWebServiceResult.h> #include <aws/core/utils/StringUtils.h> #include <aws/core/...
06b2ae806186abef56abceafa730d819a449f6e3
63759fe7cf9a9d94a2312d1f1541136d23ffc071
SYaroslav2/KPI
/Algorithms and Data Stuctures/2 term/Lab 1/Source.cpp
C++
cpp
1,347
no_license
#include<math.h> #include<stdio.h> #include<conio.h> #include<iostream> int main() { const int m = 7, n = 6, s = 6; float A[m][n], r; int i, j, l; printf("\n"); printf("\n"); printf("\n"); printf(" Matrix\n"); printf("\n"); printf("\n"); for (i = 0; i <= m - 1; i++) { for (j = 0; j <=...
3a7586e033eee62be85fa11f87d9798bce56869d
e4090ff31f0bf7bdbfbd4d4b59dda61422a9c818
Oh-kyung-tak/Algorithm
/Baekjoon/baekjoon_16496.cpp
C++
cpp
564
no_license
#include <iostream> #include <string> #include <string.h> #include <vector> #include <algorithm> #include <set> #include <map> #include <queue> #include <stack> #include <math.h> using namespace std; vector<string> v; int N; bool cmp(string s1, string s2) { if (s1 + s2 > s2 + s1) return true; else return fals...
c2ed9b104fc26611c7f7e00779bd80d2993fc07b
b2791253d430b14a7c5094d88725bfd99c3e2431
kwangsing3/Asteroid-GE-archive-
/src/Component/BoxCollision.cpp
C++
cpp
3,255
permissive
#include <Component/BoxCollision.hpp> #include <SceneManager.hpp> #include <Window.hpp> #include <glm/gtc/matrix_transform.hpp> #include "btBulletDynamicsCommon.h" void BoxCollision::SaveFile(pugi::xml_node* _node) { if (_node == NULL) return; _node->append_attribute("_BoxCollision") = 1; _node->append_child("Box...
6336c4e992758449938afdfc3d0f79e31d6a837d
6fbd763bcdc7f60a5692490b3901944b248e6eb6
mathcoder23/wechat_web_devtools
/package.nw/node_modules/nodegit/src/ignore.cc
C++
cc
9,149
permissive
// This is a generated file, modify: generate/templates/templates/class_content.cc #include <nan.h> #include <string.h> extern "C" { #include <git2.h> } #include "../include/nodegit.h" #include "../include/lock_master.h" #include "../include/functions/copy.h" #include "../include/ignore.h" #include "nodegit_wrapp...
203044b73554f94d5d8f518f7b34bd37e11ef1c2
6439c61ddaafaa578c4f01da1551ddf90c4a8614
salvanicola/ProgettoPAO1819
/uozapp/mainwindow.cpp
C++
cpp
2,030
no_license
#include "mainwindow.h" #include <QLabel> #include "Controller-View/controlcore.h" #include <QLineEdit> #include <QPushButton> #include <QGridLayout> #include <QApplication> #include <QDesktopWidget> mainwindow::mainwindow(QWidget *parent) : QMainWindow(parent) { resize(QDesktopWidget().availableGeometry(this).si...
970dd3d1414ab9ff525f3a286f2730957ef66e49
72b7ad47e090965dfc6d10e884d8690fdb8dce83
tonysidaway/llvm
/lib/CodeGen/MachineScheduler.cpp
C++
cpp
132,275
permissive
//===- MachineScheduler.cpp - Machine Instruction Scheduler ---------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
e9731f6794db6a841be7710a139809fda62c703a
63af60ceb5d84bf19c90cf2b7a39ec7031330cd0
satya-arjunan/visiocyte
/released_plugins_more/visiocyte_plugins/sort_neuron_swc/sort_func.cpp
C++
cpp
8,014
permissive
/* * sort_func.cpp * io functions for domenu and do func * * Created by Wan, Yinan, on 02/01/2012. */ #include <visiocyte_interface.h> #include "visiocyte_message.h" #include "sort_func.h" #include "openSWCDialog.h" #include "customary_structs/visiocyte_neurontoolbox_para.h" #include <vector> #include <iostre...
a98ffe47e5b42b075cf6124c5fb07be124115d11
b68a9d20a0d5fea8672253036c79ec7927f8723d
snjumaheshwari/ProblemSetting
/brute.cpp
C++
cpp
5,126
no_license
/*input */ // #include<bits/stdc++.h> #include <iostream> #include <cstdio> #include <cstdlib> #include <algorithm> #include <cmath> #include <vector> #include <set> #include <map> #include <unordered_set> #include <unordered_map> #include <queue> #include <ctime> #include <cassert> #include <complex> #include <string...
a6977225fe2e6a784cbf70e11e131db8038e5730
b1e51f6eb86e32dd2042cea35a77c2d0986bbfb4
SREERAGI18/chromium
/extensions/renderer/runtime_custom_bindings.cc
C++
cc
2,601
permissive
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "extensions/renderer/runtime_custom_bindings.h" #include <stdint.h> #include <memory> #include "base/bind.h" #include "extensions/common/exten...
38a0311e277e350044f88a712461436600c42887
6edd35b29048cd8b9970c81a366d53c8bfb39db3
arslanaarslan/dcoder
/CPP/Pointer.cpp
C++
cpp
303
no_license
#include <iostream> using namespace std; //Compiler version g++ 6.3.0 int main() { int a = 20; int *b = &a; // Bir değişkenin adresini başka bir değişkene atamak için atanacak değerin bir pointer işaret etmesi gerekir. cout << b << endl; cout << &a << endl; cout << *b; }
4282041e3020a950550696dc93291454a1e3b6c1
5e6b5c12f7e2bcc5559f578e4d7081dac676bcfb
convenient/hyper-dimensional-mazes
/src/lib/cxxopts/test/options.cpp
C++
cpp
3,420
permissive
#define CATCH_CONFIG_MAIN #include "catch.hpp" #include <initializer_list> #include "../src/cxxopts.hpp" class Argv { public: Argv(std::initializer_list<const char*> argv) : m_argv(new char*[argv.size()]) , m_argc(argv.size()) { int i = 0; auto iter = argv.begin(); while (iter != argv.end()) {...
f37f3c31754df5f25f114d0ddb3f5066d9d12b3c
0e2ad2823b539da6dbbdf4516bb57fcb903eead6
catch4/yisoo
/week_4/13460_구슬-탈출-2.cpp
C++
cpp
2,369
no_license
#include <stdio.h> #include <algorithm> #include <queue> // 백준 13460번 구슬탈출 2 // fail // 참고한 코드 제출. using namespace std; struct balls { int depth; int rx, ry, bx, by; }; int irx, iry, ibx, iby, hx, hy; int n, m, ans = -1; int map[10][10]; int dir[4][2] = { {1,0},{0,1},{-1,0},{0,-1} }; bool visit[10][10][10]...
3300a2bcfd12313617cbd2527fa60a0d0151542a
fe1c13bf0f95fa5202809f787805f3220fedca77
bretonium/my-infclass-server
/src/game/server/entities/hero-flag.cpp
C++
cpp
4,769
permissive
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ #include <game/server/gamecontext.h> #include <engine/server/roundstatistics.h> #include "hero-flag.h" CHeroFlag::CHeroFlag(CGa...
49493eb23a8f7f44eaf4f1acd367a91ffc12b410
85eb206185f41b1d3d9226e1ae981869701fa5b5
LinuxComilla/contrail-controller
/src/vnsw/agent/test/test_util.cc
C++
cc
156,150
permissive
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #include <boost/foreach.hpp> #include "base/os.h" #include "test/test_cmn_util.h" #include "test/test_init.h" #include "oper/ecmp_load_balance.h" #include "oper/mirror_table.h" #include "oper/physical_device_vn.h" #include "ksync/ksync_sock_user...
7c7641e5bd21ce2301965192833a380f6bca7f55
5dd228f335dea647586b095be0411c5fae1dfb0f
niuxu18/logTracker-old
/second/download/git/gumtree/git_new_hunk_2778.cpp
C++
cpp
1,015
no_license
*/ cache_tree_invalidate_path(&the_index, path); return commit; } static struct commit *find_single_final(struct rev_info *revs, const char **name_p) { int i; struct commit *found = NULL; const char *name = NULL; for (i = 0; i < revs->pending.nr; i++) { struct object *obj = revs->pending.objects[i].it...
7ec13f46ba6bdbdd03b37b5ae49c9adb4eb5b426
bae5ba3780e11bb5d9059d1b28e8373eb1b02372
ocefpaf/PyGnome
/gnome1/gui_gnome/CurrentCycleMover.cpp
C++
cpp
107,491
no_license
#include "Cross.h" #include "Uncertainty.h" #include "GridVel.h" #include "CurrentCycleMover.h" #include "OUtils.h" #include "DagTreeIO.h" #include "netcdf.h" #include "NetCDFMover.h" #include "TShioTimeValue.h" #include "PtCurMover.h" enum { I_GRIDCURNAME = 0 , I_GRIDCURACTIVE, I_GRIDCURGRID, I_G...
6ffcf3f2cbb76a3ec0677599ff4ec86cbfa69076
8e923222d0bb683b24ad53f878136948c695b8e3
toha993/Codeforces-My-Code
/1255B.cpp
C++
cpp
935
no_license
#include<cstdio> #include<sstream> #include<cstdlib> #include<cctype> #include<cmath> #include<algorithm> #include<set> #include<queue> #include<stack> #include<list> #include<iostream> #include<fstream> #include<numeric> #include<string> #include<vector> #include<cstring> #include<map> #include<iterator> #include <iom...
ab32b0ad966d220fa67bf3cc193a0697a36299e7
14795b5465bef2b18a275d32f7fa679e4f7f700c
dabraude/llvm-project
/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
C++
cpp
163,194
permissive
//===-- RISCVISelLowering.cpp - RISCV DAG Lowering Implementation --------===// // // 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 // //===---------------------------...
fc88cf9786273a86b632efced5be2f3452245711
5760e1cfca0341b54cbd6067ccd02723f21781a2
qkeunebr/UTComputer
/rationnel.cpp
C++
cpp
688
no_license
#include "rationnel.h" #include <QString> /** * \fn const QString Rationnel::toString() const * \brief Méthode toString() pour la classe Rationnel. * * \param * \return Objet de type QString représentant un objet de type Rationnel. */ const QString Rationnel::toString() const { QString string; if(numera...
23610afd2c5bba5383d16a79cd41bea8e3fa8dbe
06776a7af702cc768cf667166ccbdcc01fcab520
sunnyps/chromium
/ui/ozone/platform/wayland/gpu/drm_render_node_path_finder.cc
C++
cc
1,958
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/ozone/platform/wayland/gpu/drm_render_node_path_finder.h" #include <fcntl.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h...
fac4c502382ce654e13c9a38b1f695dfc35d950d
21cf302c803d45aec68f74dddeacb0b177bf5c8a
manumena/pap-tp2
/src/ej3/ej3.cpp
C++
cpp
4,334
no_license
#include "./ej3.h" /* ** Exercise 3 ** Problem solver */ // --------------- Global Variables ---------------- vector<int> depth; vector<int> low; vector<bool> bridge; vector<int> bridge_component_of_node; vector<int> bridge_component_nodes; int bridge_component_counter; // -------------------- Code --------------...
7f3a9e28ed6f042aa59e96b391b2c2de21d46ff2
2e317e45cdf868201a5852e0ec9766bb66ab9b80
AlexeyG/HackerRank
/implementation/StrangeCounter/main.cpp
C++
cpp
1,092
no_license
#include <iostream> #include <cmath> using namespace std; #define max(a, b) ((a) > (b) ? (a) : (b)) long long get_counter(long long t) { long long full_cycles = floor(log2((t - 1) / 3.0 + 1)); long long full_steps = 3LL * (pow(2LL, full_cycles) - 1LL); long long initial_value = 3LL * pow(2LL, full_cycles...
a6846cb935c0190d96f663e98877242de6dbe0e5
3163b6561a1e0f0046e2cdf129341686ff8c8dae
zhouchengming99/ros2-performance
/performances/performance_test/src/ros2/tracker.cpp
C++
cpp
4,396
permissive
/* Software License Agreement (BSD License) * * Copyright (c) 2019, iRobot ROS * All rights reserved. * * This file is part of ros2-performance, which is released under BSD-3-Clause. * You may use, distribute and modify this code under the BSD-3-Clause license. */ #include <sstream> #include "performance_t...
2b72d4ddebeb27aeaa200d2b29b31f2a21007450
fa379a545aebcceae757d0080d4ab45a7e491bda
fakecoinbase/GrinPlusPlusslashGrinPlusPlus
/src/P2P/Pipeline/TransactionPipe.cpp
C++
cpp
2,827
permissive
#include "TransactionPipe.h" #include "../Messages/TransactionKernelMessage.h" #include <Common/Util/ThreadUtil.h> #include <Infrastructure/ThreadManager.h> #include <Infrastructure/Logger.h> #include <BlockChain/BlockChainServer.h> TransactionPipe::TransactionPipe(const Config& config, ConnectionManagerPtr pConnecti...
0891ed82c5400c360ac86ce3b11e2ad78ab24bf2
ca1cd66ebb73a8fb9929f27f3431464340093c1b
AoEiuV020/kiwibrowser-arm64
/gen/third_party/blink/renderer/bindings/modules/v8/v8_background_fetch_options.cc
C++
cc
6,852
no_license
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This file has been auto-generated from the Jinja2 template // third_party/blink/renderer/bindings/templates/dictionary_v8.cpp.tmpl // by the script cod...
0911c1fd5a4c4e8157e73d0853a91551bba86028
6d7527be39cd4c5898282f8fe1cd4cb6410172c1
kvirund/codingame
/medium/the.paranoid.android/main.cpp
C++
cpp
2,488
permissive
/** * \author Anton Gorev aka Veei * \date 2014-11-06 */ #include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; /** * Auto-generated code below aims at helping you parse * the standard input according to the problem statement. **/ int main() { int nbFloors; // numb...
0c03ef8d6d69e631750203fdad9a437068ef8984
c6d0fb6efa6be3e101ae1a896b7033cc10d9ee5c
gokulvanan/Learning
/cplusplus/adjList.cpp
C++
cpp
387
no_license
#include<iostream> #include<vector> using namespace std; vector <int> adj[10]; int main() { int x, y , nodes, edges; cin >> nodes; cin >> edges; for(int i = 0; i< edges; ++i) { cin >> x >> y; adj[x].push_back(y); } for (int i=0 ; i<= nodes; ++i) { cout << " ...
e378808d28e0859f222d5704cf61d95f07e3d4bc
7306e71f56e0109a62088f8b2bbf2c6de606a853
ishtanbul/llvm-project
/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
C++
cpp
172,769
permissive
//===- InstructionCombining.cpp - Combine multiple instructions -----------===// // // 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 // //===---------------------------...
3a88e2309c42106d142b62deb83757e37467ef9b
ad6dd80f71d8a66715dc5064a66797dc96644a51
gomson/OpenGL-Tech-Demo
/OpenGL_Tech_Demos/HDR_Demo.cpp
C++
cpp
8,694
no_license
#include "HDR_Demo.h" HDR_DEMO::HDR_DEMO() : renderLights(true), initalizeScene(true), bloom(true), exposure(0.100f) { } HDR_DEMO::~HDR_DEMO() { if (woodTextureID) glDeleteTextures(1, &woodTextureID); if (hdrFBO) glDeleteBuffers(1, &hdrFBO); if (colorBuffers) glDeleteBuffers(2, colorBuffers); if (rboDepth...
6e2cb2331f908f3f5880cf492ebf2ce914daf90e
5d33e51de418c49d94fd0212dd7cb550bc42acc4
byte4byte/cloudretro
/chrome/browser/previews/previews_prober.cc
C++
cc
20,098
permissive
// Copyright 2019 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/previews/previews_prober.h" #include <math.h> #include <cmath> #include "base/base64.h" #include "base/bind.h" #include "base/g...
88d23012cc73c2d0969ad06fde07ef05738bf306
2ee4efd4556661dc7141ac1a310d7f295490b74a
cheungti/CS361_TeamExtreme
/Social-Avoidance-Game/Social-Avoidance-Game/GameBoard.cpp
C++
cpp
23,915
no_license
#include "GameBoard.hpp" const int boardWidth = 51; const int boardHeight = 27; const int boxHeight = 5; #if defined(_WIN32) || defined(_WIN64) || defined(_WINDOWS_) #define PLATFORM_NAME "windows" // Windows #include <conio.h> #elif defined(__APPLE__) || defined(__linux__) #define PLATFORM_NAME "apple" /...
4e75052b01728c8e3899b924e155e65d5259f625
07a38e6fa92850bf7a9df5ae291ba4d5cc06c9c3
Adarsh144/Hackerrank
/C++/Class&obj.cpp
C++
cpp
2,320
no_license
/*Employees have a employee number; name; salary details like basic, DA, income tax, net salary; and rank. When an employee is first recruited then all these are given values of 0. Upon confirmation, the actual values of these are entered for the employee. Their rank can be incremented by 1 and when this happens an emp...
c5094189ea686e3f28c4c724280b5864cc0cdef8
0ed1a93287dc529a2cbb3d308c625eb7643a427d
ybouret/yocto
/src/yocto/yocto/math/types.hpp
C++
hpp
7,134
no_license
#ifndef YOCTO_MATH_TYPES_INCLUDED #define YOCTO_MATH_TYPES_INCLUDED 1 #include "yocto/math/complex.hpp" #include "yocto/sequence/array.hpp" #include "yocto/functor.hpp" #include <cmath> namespace yocto { namespace math { //! default "real" type: type itself template <typename T> struct real_of ...
8a86f84918b500c6d04e23daffbebdc5e9e0f38b
2898ae11ab5b8c14d964abb17434e5bd57a197ee
zhenfei2016/FFL-v2
/ffl/include/net/FFL_NetConnectManager.hpp
C++
hpp
932
permissive
/* * This file is part of FFL project. * * The MIT License (MIT) * Copyright (C) 2017-2018 zhufeifei All rights reserved. * * FFL_NetConnectManager.hpp * Created by zhufeifei(34008081@qq.com) on 2018/07/14 * https://github.com/zhenfei2016/FFL-v2.git * * 连接管理器,创建保存连接 */ #ifndef _FFL_NETCONNECT_MANAGER_HPP_ #de...
cb53b856030bd4069d2e43ffe8f40eca6f13b043
3b9def78c3c04265391af35df2c2cedbf9d6c264
PravosudD/New-Kurcach
/CortexLib/AbstractHardware/Registers/STM32F303/tim4registers.hpp
C++
hpp
17,681
no_license
/******************************************************************************* * Filename : tim4registers.hpp * * Details : General purpose timer. This header file is auto-generated for * STM32F303 device. * * *******************************************************************************/ ...
d921e8d2f172311e98e9a9f814dca43dfffdee85
03b436f731fc4063efc9b56905529ad20542efa4
OscarMeyer/DD2380-Artificial-Intelligence
/Tic-Tac-Tow/Cpp_skeletons/TTT/gamestate.cpp
C++
cpp
6,845
no_license
#include "constants.hpp" #include "gamestate.hpp" #include <cstdlib> #include <inttypes.h> namespace TICTACTOE { /** * Initializes the board to the starting position */ GameState::GameState() { // Initialize the board (empty) for(int i=0;i<16;i++) { mCell[i]=CELL_EMPTY; } // Initialize move related variable...
152a57a72897b659824338ad133c1301f8c015ff
7da949ecaa71686262c8b0657af18c8fdf29dbc3
kkm000/openfst
/src/extensions/compact/compact8_acceptor-fst.cc
C++
cc
512
permissive
// See www.openfst.org for extensive documentation on this weighted // finite-state transducer library. #include <fst/fst.h> #include <fst/compact-fst.h> namespace fst { static FstRegisterer<CompactAcceptorFst<StdArc, uint8>> CompactAcceptorFst_StdArc_uint8_registerer; static FstRegisterer<CompactAcceptorFst<Lo...
cc60285417135e7f77ed9c6973ca59e24eec2eff
965b40ef9e2aedbc6a65142ab83819314938dc60
maneeshpm/competitive
/test.cpp
C++
cpp
1,774
no_license
#include<bits/stdc++.h> using namespace std; #define ll long long int #define pb push_back #define pop pop_back #define rep(iz, n) for(ll iz=0;iz<n;iz++) #define foi(iz,a,b) for(ll iz=a;iz<b;iz++) #define mp make_pair #define vll vector<ll> #define pll pair<ll,ll> #define vpll vector<pair<ll,ll>> #define all(v) v.begi...
28c6b673c43abb6aabea1febb559b648bee703f0
7c544bfb9ee7c20aad2ceef5b4e20f98aeff4070
metux/chromium-suckless
/components/spellcheck/browser/pref_names.cc
C++
cc
948
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 "components/spellcheck/browser/pref_names.h" namespace spellcheck { namespace prefs { // Boolean pref to define the default values for using sp...
91bc473cecfe40311dd73a69e5daa22db32d74f2
92481c6fd2991adec5c29570d48dc84d8db26fa5
Flexi21/Demo
/mtk/sensor1.0/hal/sensor/sensors-1.0/SensorManager.cpp
C++
cpp
17,482
permissive
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein * is confidential and proprietary to MediaTek Inc. and/or its licensors. * Without the prior written permission of MediaTek inc. and/or ...
a48a80ec99ed18775175dd783329cb0047408ac3
8d9830f9c46135fb8ed73acf3c4169c644bf6cc2
xubingyue/SGS-Server
/server_game/gserver_local.cpp
C++
cpp
19,886
no_license
/*************************************************************************** *************************************************************************** (c) 1999-2006 Ganymede Technologies All Rights Reserved Krakow, Poland www.ganymede.eu *********************...
950f8703a9290a373c0b8f707ec97d15c6c90869
0f44438e200608f482fde34a2980a15cfce5e702
peaceminusones/ZYL-Leetcode
/Leetcode/数据结构/栈和队列/leetcode155_MinStack.cpp
C++
cpp
845
no_license
#include <iostream> #include <stack> using namespace std; class MinStack { int minim = INT_MAX; stack<int> datastack; stack<int> ministack; public: MinStack() {} void push(int x) { datastack.push(x); minim = min(x, minim); ministack.push(minim); } void pop() ...
dc0bcb2c7189caed1341b83d9f996b1766569f33
3ecde920f610b2abdc8715a450fb54104bef84d5
KqSMea8/sstd_library
/sstd_boost/sstd/libs/numeric/odeint/test/rosenbrock4_mp.cpp
C++
cpp
4,483
permissive
/* [auto_generated] libs/numeric/odeint/test/rosenbrock4.cpp [begin_description] This file tests the Rosenbrock 4 stepper and its controller and dense output stepper. [end_description] Copyright 2009-2012 Karsten Ahnert Copyright 2009-2012 Mario Mulansky Distributed under the Boost Software License, Version...
122e33bc7be9e51d413c67ff43dbdf0bcc794aea
5d0dfe53fd312e4887aa490e21d6962d4622121f
Sanchitgoyal2000/Array-Data-Structure
/Frequencies Of Limited Range Elements.cpp
C++
cpp
722
no_license
#include <iostream> //time complexity O(n) using namespace std; int main() { //counting of frequency elements from 1 to n //code //array will contain elements less than equal to n int t; cin>>t; while(t-->0) { int n; cin>>n; int a[n]; for(int i=0;i<n;i++) { cin...
ebba12095b66d44809cd374cb7379ec733d6a2ec
f4738221cd6b6def8a2559fb997eaf588c031b18
Aazka/CPP_Codes
/Banking_System_Adts/Bank_Account.cpp
C++
cpp
1,392
no_license
#include "Bank_Account.h" #include "string.h" Bank_Account::Bank_Account() { Title = new char[100]; AccountNumber = 0; Balance=0; } Bank_Account::Bank_Account(char*T, double A, double B) { int l = strlen(T); Title = new char[l + 1]; for (int i = 0; i < l; i++) { Title[i] = T[i]; } Title[l] ...
77d29e22191acb0cc9a452ec17e71a3c324665b1
49f9b785a7f693ed93662568c52cae4378fcdc0a
Hnobles12/AERO306-FEA
/include/parameters.hpp
C++
hpp
1,747
no_license
#ifndef _PARAMETERS_HPP #define _PARAMETERS_HPP #include <vector> #include <iostream> #include "../Eigen/Core" #include "../Eigen/Dense" using namespace Eigen; typedef Matrix<double, 4, 4> Matrix4d; typedef Matrix<double, 4, 1> Vector4d; class Node { public: int id; float x; Node(); Node(int, doubl...
08d53c96ab471592863a35d56dfe52a9eadd9fdf
6d6ba714b7d27156cfa8a99fdcd2ef4ddfa19c38
niuxu18/logTracker-old
/second/download/CMake/CMake-gumtree/Kitware_CMake_repos_basic_block_block_1904.cpp
C++
cpp
1,093
no_license
{ // now we can match every flags as space + flag + space buf[len + 1] = ' '; std::string cpuflags(buf, len + 2); if ((cpuflags.find(" FPU ") != std::string::npos)) { this->Features.HasFPU = true; } if ((cpuflags.find(" TSC ") != std::string::npos)) { this->Features....