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
18608b5f9310cfc7d695f1662eda9f6857848d08
d7161838d67fd2aae2486711bb495e59a88d8c63
SSjunLee/muduo-learning
/Timer.cc
C++
cc
330
no_license
#include "Timer.h" Timer::Timer(TimerCallback cb,int interval,Timestamp expiration) :cb_(cb), interval_(interval), expiration_(expiration), repeated_(interval_ >0.0) {} Timer::~Timer(){} void Timer::restart(Timestamp now){ if(repeated_) expiration_ = addTime(now,interval_); else expiration_ = Timestam...
d65cbf7a1c02dda989951e9ce610650be5694e65
30e6fb2aec7144c1a31c7d33786b6964d7d54d5f
marqzbrendon/Procedural-Programming-Class
/assignment32.cpp
C++
cpp
1,918
no_license
/*********************************************************************** * Program: * Assignment 32, Strings (e.g. Assignment 10, Hello World) * Brother Christensen, CS124 * Author: * Brendon Marques * Summary: * Enter a brief description of your program here! Please note that if * you do not ...
85496b2a558b6968275c9a2a1f916c13b16195bd
1e7851a27633e14a85b88da758f1b7fb6bb8761d
iomeone/PudgeNSludge
/Source/Utilities/CollisionLib/CollisionPlane.cpp
C++
cpp
9,828
no_license
////////////////////////////////////////////////////////////////////////////////////// // Filename: CollisionPoint.cpp // Author: Josh Fields // Date: 5/24/12 // Purpose: This class holds on to the information for a plane ////////////////////////////////////////////////////////////////////////////////////// #include...
bbe20bb0b7d864e44bbe16925ca44408f7663ed2
e842beeca6733a2b7a095de4c2cf5dd6ecf5ac6f
hackerlank/YAPOG
/YAPOG.Client/include/Gui/PokemonStatsInfoWidget.hpp
C++
hpp
3,009
no_license
#ifndef YAPOG_CLIENT_POKEMONSTATSINFOWIDGET_HPP # define YAPOG_CLIENT_POKEMONSTATSINFOWIDGET_HPP # include "YAPOG/Macros.hpp" # include "Gui/PokemonFrontInfoWidget.hpp" # include "Gui/PokemonExperienceBarWidget.hpp" # include "Gui/IPokemonSummaryWidget.hpp" namespace ycl { class Pokemon; class PokemonStatsInfoW...
f38be1be4224d0d0b757584a5bdd1c7cc722213b
569d9cf1b803104282bbcf0b5e008ea58a579960
Kritikagoel1/DAA
/Week_0/binarysearch.cpp
C++
cpp
556
no_license
using namespace std; int binarySearch(int arr[], int l, int r, int x) { if (r >= l) { int mid = l + (r - l) / 2; if (arr[mid] == x) return mid; if (arr[mid] > x) return binarySearch(arr, l, mid - 1, x); return binarySearch(arr, mid + 1, r, x); } return -1; } int main(void) { int arr[] = { 2, 3, 4, 1...
4f6a264e9a1b00fbbccef6242b41be80014a6348
c69ee9a0824b6f31a659231f9dd30518c5a91c84
robinhood90/stormancer-sdk-cpp
/stormancer/stormancer-sources/include/public/stormancer/external/ctti/nameof.hpp
C++
hpp
3,439
no_license
#ifndef CTTI_NAMEOF_HPP #define CTTI_NAMEOF_HPP #include "detail/pretty_function.hpp" #include "detail/name_filters.hpp" #include "detail/meta.hpp" #include "detail/language_features.hpp" #include "type_tag.hpp" #include "static_value.hpp" #include <type_traits> #include <cstdint> namespace ctti { template<typename ...
031566bda66aab78841bfa2c526dfd2c0bd48e33
2944993b5d389b07be4b72cdd3cbe44d64329735
MarcoCarnevali/opencv-package-test
/OpenCV.xcframework/ios-arm64_armv7/OpenCV.framework/Headers/core/opencl/ocl_defs.hpp
C++
hpp
3,733
no_license
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. // Copyright (C) 2014, Advanced Micro Devices, Inc., all rights reserved. // Third party copyrights are property of their res...
747900919e3b29783eeede49a5db7f03e04363a3
921415d808b728a7c8830b62c8a6ed650769e257
SymbianSource/oss.FCL.sf.mw.uiresources
/layouts/aknlayout2/generated/Vga4_touch_uiaccel/aknlayoutscalable_abrw_hvl4_c_vga4_lsc_tch_large.cpp
C++
cpp
49,625
no_license
/* * Copyright (c) 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/epl-v10.h...
9514d47e663ca4c1a95b8826522b48a4215f5442
eef306a6a14dd000b0b21415b38f0e258529ba4e
feiTian/algo
/CodeTemplate/StringAlgorithm/AC_Automaton.cpp
C++
cpp
2,700
no_license
/* * AC_Automaton with pointers */ #define MAXK 27 struct Node { Node *fail; Node *next[MAXK]; int id;//The identity of the word in the input int count;//The occurences of the word Node() { id = 0; fail = NULL; count = 0; memset(next, 0, sizeof(next)); } }; int cnt[1111]; char keyWord[1111][55]; char st...
b1f458d075c3687193a823ae63d3fb942c41407b
a3532bcb5a602f22044e72710a8a450dea1dc37f
0265727207/evandrix.github.com
/defcon/slowhttptest-1.3/src/slowurl.cc
C++
cc
2,774
no_license
/***************************************************************************** * Copyright 2011 Sergey Shekyan * * 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/li...
1a5f94ec4f0b225a7b95fb868228cbaea7522e4f
75a401233ca6b0c7a7dec17bc57fe6559722314e
forrestpangpang/connectedhomeip
/src/app/server/CommissioningWindowManager.cpp
C++
cpp
10,210
permissive
/* * * Copyright (c) 2021 Project CHIP Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
f67fb7885f4459687a02c900808bbe9773f9f74a
e3f6f8a7db9e64d3e0f8f1043e6f1c5b38e6053e
allfn123/switch-oss
/src_1.19.3/rocrt_nro.cpp
C++
cpp
8,516
no_license
/*--------------------------------------------------------------------------------* Copyright (C)Nintendo. All rights reserved. These coded instructions, statements, and computer programs contain information of Nintendo and/or its licensed developers and are protected by national and international copyri...
dc7b91598908b75a314cef20b309a2345aa10f3a
5ec9d5490df1cde40f267a12edd391223e89d148
evenmatrix/mediasoup
/worker/src/RTC/IceServer.cpp
C++
cpp
12,228
permissive
#define MS_CLASS "RTC::IceServer" // #define MS_LOG_DEV #include "RTC/IceServer.h" #include "Logger.h" #define MS_STUN_SERIALIZE_BUFFER_SIZE 65536 namespace RTC { /* Class variables. */ uint8_t IceServer::stunSerializeBuffer[MS_STUN_SERIALIZE_BUFFER_SIZE]; /* Instance methods. */ IceServer::IceServer(Listener...
dc2f29b3adbcc4cc8923f08cbb66804fa43d0873
65ce4c6671d2e32015b79c5fbc9493970721470d
maato-origin/DirectX9Game
/GameEngine2/graphics.cpp
C++
cpp
17,014
no_license
// Programming 2D Games // Copyright (c) 2011,2012 by: // Charles Kelly // Chapter 4 graphics.cpp v1.1 #include "graphics.h" //============================================================================= // Constructor //============================================================================= Graphics::Graphics...
dbf2ed18384f78a826e88e4e6d309edeb0cef534
ab53c452f892c10f20faea87bb3ab110be5e606f
githubdu/Governor-Test
/SyncThread/detector.cpp
C++
cpp
21,820
no_license
#include "detector.h" #include "gonvernor.h" #define demo 0 /*全局变量*/ TCHAR g_sType[10]; TCHAR g_sId[10]; TCHAR g_sType0[10] = {NULL}; TCHAR g_sId0[10] = {NULL}; double g_dwDia; double g_dwRatedSpeed; double g_dwRatedSpeedLimitLow; double g_dwRatedSpeedLimitUp; double g_dwElecSpeed; double g_dwMechaSpeed; int g_iOr...
fe0a0fe3ef37ac9d774f1143c00744f5f8e659d1
be4a5d1c05565b9d11c6fa265b1dbedbcb41f8c7
Nuckelavi/CClone
/Tutorial01/d_GaussianBlurEffect.cpp
C++
cpp
5,954
no_license
#include "d_GaussianBlurEffect.h" #include <DirectXColors.h> GaussianBlurFX::GaussianBlurFX() : _pConstantBuffer(nullptr) { for (int i = 0; i < RTTS; ++i) { _pCustomRenderTarget[i] = nullptr; _pCustomRTV[i] = nullptr; _pCustomSRV[i] = nullptr; } } GaussianBlurFX::~GaussianBlur...
a9e420c77ef0e08aca156fb23415c40deaf65373
84ec5fa2bf83f8bf99fe274bfc1f6d7bb6f5e004
VinayMV/CodeDebuggingKHMWar
/Vinay-Question2.CPP
C++
cpp
965
no_license
#include<iostream> #include<math.h>//math header file has been added using namespace std; int main () { int num, d = 0, n, r, p = 0, a = 1; char choice; cin >> num;//<< has been added cin >> choice;//<< has been added switch (choice)//switch { case 'a':// colon and '' has been added n = num; ...
8a61d4c5ca4e403ba00234f2b315ac3856a0271a
825a8c78927e00b23206486a83fe79b18f66dba7
dinodragon/mygooglecode
/CppBasics/Exam/JikeExam/main.cpp
C++
cpp
559
no_license
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <assert.h> #include "reverse.h" #include "myatoi.h" #include <vector> #include "MyVector.h" //随意写的几个题目,关于人民搜索笔试题 int main() { //const char a[] = "1234457"; //int i = atoi(a); //int b = myatoi(a); //assert(i == b); //printf("%d %d\...
809e43da6d6027152844a3e48714419dcef53443
97628f437271a100ea2e43c65ddb60baad4ceed9
mushasun/mapinect
/openFrameworks/apps/addonsExamples/mapinect/apps/drawing/src/main.cpp
C++
cpp
251
no_license
#include "Drawing.h" #include "IMapinect.h" //======================================================================== int main() { mapinect::IApplication* app = new drawing::Drawing(); mapinect::startMapinect(app); delete app; return 0; }
7aa2c4f6aa610b0728cd9b7e33c8c2c15140a365
5d617ce9c90ea021a18a7fd64932b395f4a2aafd
mashoujiang/openvino
/inference-engine/tests/functional/plugin/cpu/shared_tests_instances/single_layer_tests/interpolate.cpp
C++
cpp
7,661
permissive
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <vector> #include "single_layer_tests/interpolate.hpp" #include "common_test_utils/test_constants.hpp" using namespace LayerTestsDefinitions; namespace { const std::vector<InferenceEngine::Precision> netPrecisions = { ...
b9adb2439f08e9af738d657fa0a9bcc945413280
499492938c1afb6e682a21cddf0c5eb32ace35fd
manucastilla/supercomp
/material/aulas/02-03-implementacao-c++/tarefa6.cpp
C++
cpp
1,047
no_license
#include <iostream> // std::cout, std::fixed #include <iomanip> // std::setprecision #include <math.h> // std::setprecision #include <vector> using namespace std; int main() { int n; std::cin >> n; vector<double> x; vector<double> y; double inputX, inputY; for (int i = 0; i < n * 2; i++) ...
e9aaf965af5a241019d77521c7a3406a20c45a7c
398ad488f6d5ea20c424128c37dc33b43edcc9f9
somasun/rsocket-cpp
/experimental/yarpl/src/Observable_Subscription.cpp
C++
cpp
731
permissive
#include "yarpl/Observable_Subscription.h" namespace yarpl { namespace observable { std::unique_ptr<Subscription> Subscription::create(std::function<void()> onCancel) { return std::unique_ptr<Subscription>(new Subscription(onCancel)); } std::unique_ptr<Subscription> Subscription::create(std::atomic_bool &cancelled)...
0659abec9020cef3fada7827c7752c534c2f30fb
e088a2d646b2420e038f8fc1eff661f481580c5a
ManageIQ/mk4rb
/ext/metakit_raw/bytes.cpp
C++
cpp
2,341
permissive
#include "mk4rb.h" VALUE cBytes; VALUE cBytesPtr; static VALUE bytes_new (VALUE self, VALUE data, VALUE len) { return wrap_bytes (new c4_Bytes (StringValuePtr (data), NUM2INT (len), true)); } static VALUE bytes_default_new (VALUE self) { return wrap_bytes (new c4_Bytes ()); } static VALUE b...
5e16362e1bf648c99ec8574f4aac480366d0c869
a6a329d2473e6f8e730a4dd0a2fd5087eb27fd0e
Safe3/Blackbone
/src/TestApp/TestApp.cpp
C++
cpp
1,343
permissive
#include "Tests.h" /* */ void TestPEB( Process& proc ) { _PEB32 peb32 = { 0 }; _PEB64 peb64 = { 0 }; std::wcout << L"PEB info test\n"; auto ppeb32 = proc.core().peb( &peb32 ); std::wcout << L"PEB32 address 0x" << std::hex << ppeb32 << L". Ldr address 0x" << peb32.Ldr << std::endl; ...
265fac9354fd29a3e6e03114be34b0eaece1224d
e03a62461bd0d8d5906dbeb09d2acfcf3f0164d2
demonsheart/C-
/rongyu/homework1/file/2018192048_1044_运行错误_609.cpp
C++
cpp
383
no_license
#include<iostream> using namespace std; int main(){ int t,i,j,m,n; int **p; p=new int*[100]; for(i=0;i<100;i++) p[i]=new int[100]; cin>>t; while(t--){ cin>>m>>n; int max=0,min=9999; for(i=0;i<m;i++) for(j=0;j<n;j++){ cin>>p[i][j]; if(max<p[i][j]) max=p[i][j]; if(min>p[i][j]) mi...
67f6aad4153204abc7b5dcb4673335054d463c19
0c1f543c5ee2af809ba48c65d4594a9ddae4eb4e
ALEHACKsp/legacy-source
/legacy/source-sdk/valve/common.hpp
C++
hpp
5,179
no_license
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ // //=============================================================================// #ifndef DATATABLE_COMMON_H #define DATATABLE_COMMON_H #ifdef _WIN32 #pragma once #endif #ifndef PROGRAM_H #define PROG...
00681aa28a6658b223f34659dd13588b61adcb0f
418a060a739b3c1cbe506ecf4a685328773a9f94
alexvakimov/xtensor
/include/xtensor/xmath.hpp
C++
hpp
91,466
permissive
/*************************************************************************** * Copyright (c) 2016, Johan Mabille, Sylvain Corlay and Wolf Vollprecht * * * * Distributed under the terms of the BSD 3-Clause License. * * ...
71e11eaf44e8a284b7fbaf08a8b15c669a2e835f
cef9e596ba43e2256f1524b6caea3a5669701d55
antimodular/ofxSoundObjects
/src/ofxSoundRecorderObject.cpp
C++
cpp
4,280
permissive
// // ofxSoundRecorderObject.cpp // example-soundRecorder // // Created by Roy Macdonald on 5/16/19. // // #include "ofxSoundRecorderObject.h" //-------------------------------------------------------------- ofxSoundRecorderObject::ofxSoundRecorderObject():ofxSoundObject(OFX_SOUND_OBJECT_DESTINATION), recState(ID...
37ab030d3649fdf0b17ad39a5ed774a45aac6eb8
f64e84df5262430bb7c600921c859caadee7d8b6
gjhbus/sh_project
/p2pserver_v2/track/sources/thelib/src/netio/epoll/udpcarrier.cpp
C++
cpp
5,530
no_license
/* * Copyright (c) 2010, * sunlei (leisun@sohu-inc.com) */ #ifdef NET_EPOLL #include "netio/epoll/udpcarrier.h" #include "netio/epoll/iohandlermanager.h" #include "netio/baseprocess.h" #define SOCKET_READ_CHUNK 65536 #define SOCKET_WRITE_CHUNK SOCKET_READ_CHUNK UDPCarrier::UDPCarrier(int fd) ...
88a8c925f970406f51ba4ac8aa94e8abe6ea2282
f8f37a894f6659a022bb264a13e747ef1b4437e5
GybGoodLuck/OpenGLNative
/app/src/main/cpp/object/Cube.cpp
C++
cpp
837
no_license
// // Created by yuanbin on 19-8-9. // #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include "Cube.h" #include "../shape/CubeInfo.h" void Cube::init() { glViewport(0, 0, m_width, m_height); glGenBuffers(1, &VBO); glGenVertexArrays(1, &VAO); glBindVer...
04a061fe66da73aa04a706d4ddf59651f6c8b4ba
ec82091d66470071da59fe2744de4139a8c34ee9
qbleuse/Cookie-Engine
/CookieEngine/src/editorMain.cpp
C++
cpp
445
permissive
#include "Editor.hpp" #include "UIcore.hpp" #pragma comment(lib, "dxguid.lib") extern "C" { __declspec(dllexport) int NvOptimusEnablement = 1; __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1; } using namespace Cookie; using namespace Cookie::Core; using namespace Cookie::Core::Math; int main(...
7bccee8679275f02be44fa49c893e2b2588842b7
c9d9382f5de2983cf3e0d4a73d9f3d9024bb702c
ladevieq/FrameWorkIA
/LibMath/Vector4.hpp
C++
hpp
2,241
permissive
/*Documentation */ /*@author : Quentin Ladevie */ /*@file : Vector4.hpp */ /*@date : 19/11/2015 */ /*@brief : Fichier d'en-tête des vecteurs à 4 Dimensions */ #ifndef __VECTOR4_H_ #define __VECTOR4_H_ #include "ExportMath.hpp" namespace DadEngine { class Matrix44; ...
020457996f2290ccb33f0ab7f599dd3b0544ddd4
c1031f93c40ba487b35c5f08fe9beb4faeefa6a3
Doohl/Cataclysm
/action.cpp
C++
cpp
3,467
no_license
#include "game.h" #include <fstream> action_id look_up_action(std::string ident); void game::load_keyboard_settings() { std::ifstream fin; fin.open("data/keymap.txt"); while (!fin.eof()) { std::string id; fin >> id; if (id == "") getline(fin, id); // Empty line, chomp it else if (id[0] != '#') { acti...
9d3122f5748dbef3915754b8834ecc9a3beb5843
dacfa4107473875d8fec70718650b8ebf4fb80a1
Stanbroek/BakkesModSDK-JavaScript
/Scripts/out/v8pp-module/bakkesmod/wrappers/items/LoadoutWrapper.cpp
C++
cpp
1,084
permissive
void bind_LoadoutWrapper([[maybe_unused]] v8::Isolate* isolate, v8pp::module& module) { v8pp::class_<LoadoutWrapper> cl_LoadoutWrapper(isolate); cl_LoadoutWrapper.inherit<ObjectWrapper>(); cl_LoadoutWrapper.ctor<uintptr_t>(); cl_LoadoutWrapper.set<bool(LoadoutWrapper::*)() const>("IsNull", &LoadoutWrapper::IsNull)...
a791746d3537070cb7173f0a4357e6f9339824fe
eb737cb93c245f86d7113bdd03513f192e9f1b80
youth0532/v8
/test/unittests/compiler/node-test-utils.cc
C++
cc
97,965
permissive
// Copyright 2014 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "test/unittests/compiler/node-test-utils.h" #include <vector> #include "src/assembler.h" #include "src/compiler/common-operator.h" #include "...
d6068fa2c8e11a8744cd6ef3dff35386a6b58efa
db6f7b57c9829420979a8cfadc555aa332eb6394
webosce/chromium53
/src/v8/src/builtins/builtins-proxy.cc
C++
cc
1,104
permissive
// Copyright 2016 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/builtins/builtins.h" #include "src/builtins/builtins-utils.h" #include "src/counters.h" #include "src/objects-inl.h" namespace v8 { name...
b7e7d3eeac9f412877f505a8233051350b6e0250
c41de0345101caeab36fca0f06e85c4194e6dd1f
MarcusRoos/Designpatterns
/Laboration_5/src/Helper.cpp
C++
cpp
4,266
no_license
// // Created by Marcus Roos on 2021-02-22. // Mittuniversitet // StudentID: Maro1904 // #include "Helper.h" int reset() { remove("Hanoi.log"); int discs; std::cout << "How many discs should the towers be loaded with?: "; std::cin >> discs; std::cin.get(); ofstream logfile; logfile.open("...
1d078800be8ec29915a30499127b384ae2b6da9b
8c4cf0d7675090f63cce2edbac063331aea798ea
Blackstate/Sot-SDK
/SDK/BP_GlitterbeardLoreBook_MyMaidenVoyage_functions.cpp
C++
cpp
988
no_license
// Name: SoT, Version: 2.1.0.1 #include "../SDK.h" /*!!DEFINE!!*/ /*!!HELPER_DEF!!*/ /*!!HELPER_INC!!*/ #ifdef _MSC_VER #pragma pack(push, 0x01) #endif namespace CG { //--------------------------------------------------------------------------- // Functions //----------------------------------------------------...
59c0c04edea69a87f7fe20d6208206c60d7bcb69
9b2c6c14a98ea73f466f697f3567951c862754d4
NeoTim/EXEgesis
/exegesis/x86/architecture_test.cc
C++
cc
23,546
permissive
// Copyright 2018 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
e7f548e3991c22dd47bc8df85ffc4b3b300fbb3e
80bf226dc1886b8859312acc9c40b49be3e47465
git-Charlie/ARK-SDK
/SDK/ARKSurvivalEvolved_DmgType_Melee_TorpPoison_DmgMetal_functions.cpp
C++
cpp
394
permissive
// ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_DmgType_Melee_TorpPoison_DmgMetal_parameters.hpp" namespace sdk { //--------------------------------------------------------------------------- //Functions //------------------------------------------------...
da15132dedb56ab8aa512a243ab2d297353ae0aa
62234510d63dec79ed0079ed6b830b2c9b0a6928
Moto0116/CoolSkater
/CoolSkater/CoolSkater/CoolSkater/Main/Application/Application.cpp
C++
cpp
6,524
no_license
/** * @file Application.h * @brief アプリケーションクラス実装 * @author morimoto */ //---------------------------------------------------------------------- // Include //---------------------------------------------------------------------- #include "Application.h" #include "Debugger\Debugger.h" #include "DirectX11\GraphicsD...
45133414955301318123bfb2bef7ae79bf388ff8
18130ae920263732ca8c4eaff801266f9c496b49
wangkai222/seastar
/include/seastar/core/seastar.hh
C++
hh
14,322
permissive
/* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may not use this file except in compliance with the License. * * You may ...
52eb522ef38d7d5ecddc223ee1dcf40b18e86ac8
a74db5206f220485b9f6c53525d378ea87f49e7e
starUnvs/ImageToonify
/code/cartoonize.cpp
C++
cpp
3,101
no_license
#include "cartoonize.h" Cartoonize::Cartoonize(QWidget *parent) : QMainWindow(parent) { ui.setupUi(this); camera = new QCamera(this); QCameraViewfinder *viewfinder = new QCameraViewfinder(this); ui.horizontalLayout->addWidget(viewfinder); camera->setViewfinder(viewfinder); QCameraImageCapture *capture = new QC...
71e50e7fbf39d80440938267ca3e1f33ffb66126
381dd6c453abe5c3880eff19de29211bf7997db1
fantasydreams/VS
/General_NetSDK_Chn_Win32_IS_V3.42.0.R.141029/NetSDK_Chn_Bin/演示程序源码/分类应用/IVS-B/Alarm.cpp
C++
cpp
18,092
no_license
// Alarm.cpp : implementation file // #include "stdafx.h" #include "DemoIVSb.h" #include "Alarm.h" #include "DemoIVSbDlg.h" #include "Preview.h" #include <atlconv.h> #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif /*****************************************************...
76c01dc6af2059d5e6e56c7359b67b5fe8b3337b
fb01558751482f043882aa636e8db23739a98a43
kmjp/procon
/atcoder/abc001-040/abc020/d.cpp
C++
cpp
1,530
no_license
#include <bits/stdc++.h> using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x,to) for(x=0;x<to;x++) #define FORR(x,arr) for(auto& x:arr) #define ITR(x,c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++) #define ALL(a) (a.begin()),(a.end()) #de...
6cb2293fb6ba6cba295fd3d94d745485fd08f7ca
81885e818d94902ea97ab2648beca0462b602d44
dayday89/redis-cerberus
/core/command.cpp
C++
cpp
32,859
permissive
#include <sstream> #include <algorithm> #include "message.hpp" #include "command.hpp" #include "exceptions.hpp" #include "proxy.hpp" #include "subscription.hpp" #include "stats.hpp" #include "slot_calc.hpp" #include "utils/logging.hpp" #include "utils/random.hpp" using namespace cerb; namespace { Server* select...
d19e1f4aaba6e0dc944ada09942c42288bc5c140
c6f4f2ee3124d89484549fb1ace1b8fde3cd5357
soelusoelu/OneButtonRunning
/DirectX_Practice/DirectX_Practice/Component/PlayerMoveComponent.cpp
C++
cpp
4,377
no_license
#include "PlayerMoveComponent.h" #include "TransformComponent.h" #include "../Actor/Actor.h" #include "../Actor/ComponentManagementOfActor.h" #include "../Device/Physics.h" #include "../UI/Score.h" #include "../Utility/Collision.h" #include "../Utility/Input.h" #include "../Utility/Math.h" PlayerMoveComponent::Player...
770bea53a6b2ff6697b56bcfb6e7447fb0d44856
f9dfdfef89d34ba1a7db20a5e461381c905a7023
ravi956/dsa-in-cpp
/Graph (GFG)/16_prims_algo_to_find_minimum_spanning_tree.cpp
C++
cpp
1,062
no_license
// Time Complexity => O(V*V) // Which can be reduced to O(E*log(V)) by doing optmizations // like using adjacency list in place of matrix and using minHeap // Minimum Spanning Tree is only calculated for graphs which are // undirected, weighted, connected #include <bits/stdc++.h> using namespace std; #define V 4 int...
9f9082ae4eb1361328acc6e49d1332249ef53a6e
66fe9d7c4d2d53ee284f21a455aae90f87670f14
tymicki/advanced-cplusplus
/CapturingThisWithLambdas/src/main.cpp
C++
cpp
464
no_license
#include <iostream> using namespace std; class Test { private: int one{1}; int two{2}; public: void run() { int three{3}; int four{4}; auto pLambda = [&, this]() { one = 111; cout << one << endl; cout << two << endl; cout << three <...
ef4b8078f02d495a56370e5788d8f49ebbe40f8d
2bc5aac2cc602e0d31e61a17dc1ac42bf7f522d4
wyrover/downloader
/chrome/browser/ui/webui/history_ui.cc
C++
cc
10,345
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 "chrome/browser/ui/webui/history_ui.h" #include <string> #include "base/command_line.h" #include "base/memory/ref_counted_memory.h" #includ...
549b682569e43f45cac0f041d1a5c0e75ab83539
363df3486a7b2955551dae0f1cedfd42282d1b98
ldfaiztt/algorithm-3
/cf/109_Div2/C.cpp
C++
cpp
1,047
no_license
#include <vector> #include <list> #include <map> #include <set> #include <queue> #include <deque> #include <stack> #include <bitset> #include <algorithm> #include <functional> #include <numeric> #include <utility> #include <sstream> #include <iostream> #include <iomanip> #include <cstdio> #include <cmath> #include <cst...
e3d263ae3667be5bddcaa4d98bbfb5758e65ee89
6814ce42e4f6eabe95417cb9acb3cb751f2765dd
zhaonaiy/MaxDB_GPL_Releases
/7.6.00.32/V76_00_32/MaxDB_ORG/sys/src/SAPDB/DBProc/liveCache/LVCPS_PacketRegion.hpp
C++
hpp
1,564
no_license
/*! * \file LVC_PacketRegion.hpp * \author MarkusSi * \brief ProcServer packet for handling of regions / critical sections. */ /* ========== licence begin GPL Copyright (c) 2002-2005 SAP AG This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...
16660224c8bf7fba9a3e87288cc14d4f9abd0583
8bf537292d5231e471937e5bb20d93973a3df777
warrenjl/DLfuse
/src/DLfuse_st.cpp
C++
cpp
47,333
no_license
#include "RcppArmadillo.h" #include "DLfuse.h" using namespace arma; using namespace Rcpp; // [[Rcpp::depends(RcppArmadillo)]] // [[Rcpp::export]] Rcpp::List DLfuse_st(int mcmc_samples, Rcpp::List y, Rcpp::List z, Rcpp::List sample_size, ...
6bbfc61274997d8ece17535c3acc0987d80ccee8
55c174f2562299c897db816e117096783123bf5f
ppyenqq/SysprogMine
/Scanner/src/String.cpp
C++
cpp
2,891
no_license
#include "../../Scanner/includes/String.h" #include <math.h> #include <iostream> int String::getLength(char* _str) { int _length = 0; for (int i = 0; _str[i]; i++) { _length++; } return _length; } String::String() { str = ""; length = 0; } String::String(char* _str) { length = getLength(_str); str = new c...
893b2d95cb24f570ce7f87db733c7007efa4fdf0
db8b90d048d9b8e6b71f1f88b9401b94d58a9e4c
REXJJ/uva-judge-solutions
/441/src.cpp
C++
cpp
784
no_license
#include <bits/stdc++.h> using namespace std; void print(){} template<typename T,typename... Args> void print(T Contents, Args... args) { #ifdef DBG std::cout<< (Contents) << std::endl;print(args...); #endif } void get_sol(vector<int>& game) { int n=game.size()-6; if(n<0) return; for(int a=0;a<=n;a++) for(in...
1d3a7024018b3d746efc5bd2108dee3297a96a33
10d56b8f11506ad34327d400d75384f2b1696b35
minhaz1217/My-C-Journey
/0. Vision 2019/2. February/vj_F - Rare Easy Problem_WA.cpp
C++
cpp
950
no_license
#include<bits/stdc++.h> //#include<iostream> using namespace std; #define check(a) cout << a << endl; #define cc(a) cout << a << endl; #define msg(a,b) cout << a << " : " << b << endl; #define msg2(a,b,c) cout << a << " : " << b << " : " << c << endl; #define msg3(a,b,c,d) cout << a << " : " << b << " : " << c << " : "...
33acfda93ec4c56325b13bb50e55cc1acd0e6174
2861a2780137c36dac42fe0bef579ce7fe4e4a57
raddinet/raddi
/node/dns.cpp
C++
cpp
7,253
permissive
#include "dns.h" Dns::Dns () : provider ("DNS") , thread (CreateThread (NULL, 0, WorkerFwd, this, CREATE_SUSPENDED, NULL)) { this->events [0] = CreateEvent (NULL, FALSE, FALSE, NULL); this->events [1] = CreateEvent (NULL, TRUE, FALSE, NULL); if (this->thread && this->events [0] && this->events [1...
fd8b1c65bc906ff31bebf8bf7abd2de56e6f8032
f7b57da1b322a341b01776f9d6cc51e189e99887
vslavik/poedit
/deps/boost/libs/metaparse/test/repeated.cpp
C++
cpp
357
permissive
// Copyright Abel Sinkovics (abel@sinkovics.hu) 2010. // 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) #include <boost/metaparse/repeated.hpp> using boost::metaparse::repeated; #define TEST_NAME rep...
6f9ccd2b3c15eec9e09dc737b393d72c7eda5318
765898809a6232d5d857e93021dc58d9ffd742c2
Unarmed1000/RapidVulkan
/include/RapidVulkan/Debug/Strings/VkImageCreateFlagBits.hpp
C++
hpp
4,306
permissive
#ifndef RAPIDVULKAN_DEBUG_STRINGS_VKIMAGECREATEFLAGBITS_HPP #define RAPIDVULKAN_DEBUG_STRINGS_VKIMAGECREATEFLAGBITS_HPP //*************************************************************************************************************************************************** //* BSD 3-Clause License //* //* Copyright (c) 201...
550889f7d2c275f880e36bf234625249cf1b5fd2
4153d07940b47c573d0497824f3e22efe1c24860
sunshinejunge/neptune
/src/base/fs/FsName.cpp
C++
cpp
5,184
no_license
#include <string.h> #include "FsName.h" #include "base/include/Base.h" using namespace std; namespace neptune { namespace base { static const char SMALL_DFS_FILE_KEY_CHAR = 'T'; static const char LARGE_DFS_FILE_KEY_CHAR = 'L'; static const char* KEY_MASK = "NEPTUNE"; static const int32_t KEY_MASK_LEN = strlen(KEY_M...
59d606a20f2a29191c0a4f7c6369dc7bb842874a
aa5ad11476e6abb4142a10a1acbfcdb0e990a97e
gubaojian/CrawUI
/UiLib/Control/UIGifAnim.cpp
C++
cpp
4,923
no_license
#include "StdAfx.h" #include "UIGifAnim.h" namespace UiLib { REGIST_DUICLASS(CGifAnimUI); CGifAnimUI::CGifAnimUI(void) { m_pGifImage = NULL; m_pPropertyItem = NULL; m_nFrameCount = 0; m_nFramePosition = 0; } CGifAnimUI::~CGifAnimUI(void) { DeleteGif(); m_pManager->KillTimer( this, EVENT_TIEM...
62bd035a6303c6fb4ed5e33d08b8d3d95f76f453
1f558468bc3432f4c143b864fea2e583be18331e
timthedev07/100algo-in-100days
/day8/8-insertionSort.cpp
C++
cpp
953
no_license
/** * Day 8 - Insertion sort * * Time complexity: O(n^2) */ #include <iostream> #include <vector> #include "../helpers/Helpers.h" using namespace std; class Solution { public: template <typename T> void solve(vector<T> arr) { cout << "Original array: " << arrayStringify(arr) << endl; cout << "Sort...
e7a46db2167474146e9f41334aaeb0523033ae2a
b1ee62b8217596cf29ff8e2ef140204c91199a80
CaptainTsao/gaussian-models
/lib/demo_cv.cpp
C++
cpp
2,536
permissive
#include <cstdio> #include "matrix.hpp" #include "scggm_cov_decompose.hpp" #include "scggm_cv.hpp" #include "scggm_indirect_SNP_decompose.hpp" #include "scggm_indirect_SNP_overall.hpp" #include "scggm_predict.hpp" #include "shared.hpp" int main(int argc, char *argv[]) { event_start(); //--------------------------...
d1589123b084ca83fd2a3bf38226fb6559af8db7
a1d2d25ab064220821f61e57714cb881c6e893be
ddemidov/viennacl-dev
/examples/benchmarks/benchmark-utils.hpp
C++
hpp
2,053
permissive
#ifndef _BENCHMARK_UTILS_HPP_ #define _BENCHMARK_UTILS_HPP_ /* ========================================================================= Copyright (c) 2010-2014, Institute for Microelectronics, Institute for Analysis and Scientific Computing, TU Wien. Porti...
12d4c33070659bd21b04a8b1c2762a6f97a7b48d
6a1cb01432640e4584221057943ea2648cfe1603
turbin/chromium
/chrome/browser/ash/login/signin/oauth2_browsertest.cc
C++
cc
47,239
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 <map> #include <memory> #include <string> #include <utility> #include "ash/public/cpp/login_screen_test_api.h" #include "base/bind.h" #include "...
75fc8ac167221f1abf62b4a488d80d0993b8da82
85272a11fc674c9c7f83c6544ccf26c199dfefc4
mohamed96/ImageProcessing
/test/RGBPixelTests.cpp
C++
cpp
1,167
no_license
// // Created by mohamed on 15/07/16. // #include "gtest/gtest.h" #include "../RGBPixel.h" TEST(RGBPixelTest, DefaultConstructor) { RGBPixel rgbPixel; ASSERT_EQ(0, rgbPixel.getR()); ASSERT_EQ(0, rgbPixel.getG()); ASSERT_EQ(0, rgbPixel.getB()); } TEST(RGBPixelTest, AssignmentOP) { RGBPixel rgbPix...
82f6f4d0e30e09a960f63e9cc85cd48e63475d3a
99988118f86e289656f5460d89462e51f6fddaef
AmbujaAK/practice
/competition/geeks/impo/Array/kth-smallest-element.cpp
C++
cpp
390
no_license
/* INPUT : 2 6 7 10 4 3 20 15 3 5 7 10 4 20 15 4 Output : 7 15 */ #include<iostream> #include<algorithm> using namespace std; int main(){ int t; cin>>t; while(t--){ int n; cin>>n; int arr[n]; for(int i=0; i<n; i++) cin>>arr[i]; int k; c...
a57c1c345084319be7d1e6c3178897a387484f02
d52bb0edd552c72b2bcb72f5ddb477b3a4006e47
may5hap/CPP-learning
/公司笔试/输入输出/test4.cpp
C++
cpp
282
no_license
#include<iostream> #include<vector> using namespace std; int main(){ int n; cin >> n; vector<int> data(n); for(int i = 0; i<n; i++){ cin >> data[i]; } for(int i = 0; i<n; i++){ cout << data[i] << " "; } cout << endl; return 0; }
2bc8351194742175b76f13f8589a730cf635a078
75c178d4bd787d268d24029be5672b418c9ca24d
alexzhirkevich/All.sklad
/Assembler/lab 3 proc/lab 3 proc/Source.cpp
C++
cpp
4,374
no_license
#include <iostream> #include <vector> using namespace std; extern "C" int __stdcall nbrCntStdCall(int* array,int len); extern "C" int __fastcall nbrCntFastCall(int* array, int len); extern "C" int __cdecl nbrCntCdecl(int* array, int len); int main() { //Создание динамического массива setlocale(LC_ALL, "Rus"); vecto...
5501545eda9653e443168b43a502f7ddf752c18e
37df8fb33ec7f6b9d34d482e07d1facae9b2baf0
aadarpandita/DS-basic-programs
/sort.cpp
C++
cpp
2,023
no_license
#include<iostream> using namespace std; void enternum(int arr[],int size) { for(int i=0;i<size;i++) { cin>>arr[i]; } cout<<endl<<"Thanks.. "<<endl; } void swapnum(int &a, int &b) { int temp; temp=a; a=b; b=temp; } void display(int arr[],int size) { cout<<endl<<endl<<"Sorted array is : "; for(int i=...
bef7c21a61434a6adf697c5838d2fb7ddb37c037
611897551d432b48ec66dc1a5da0bc19879a2d10
BlenderCN-Org/spacegameengine
/plugins/opengl/include/sge/opengl/xrandr/set_resolution.hpp
C++
hpp
1,510
no_license
/* spacegameengine is a portable easy to use game engine written in C++. Copyright (C) 2006-2016 Carl Philipp Reh (carlphilippreh <at> gmail.com) This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation...
b1b83e05d14213106343308261cea1a65f4de6f8
1e3082ac15fc883dfb837ed3ee8b300787da3599
tristanheywood/protobuf
/stubs/status_test.cc
C++
cc
4,877
no_license
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
3238cfeb06ab486194cb9d1d52685ab889a84546
153bd58298976f3855fd204d5e02abb372fd3d1d
Kujanenj/ohjelmointi3
/Game/buildings/rangedaltar.cpp
C++
cpp
1,330
no_license
#include "rangedaltar.h" namespace Whiskas { RangedAltar::RangedAltar(const std::shared_ptr<gameEventHandler>& eventhandler, const std::shared_ptr<gameManager>& objectmanager, const std::shared_ptr<Course::PlayerBase>& owner): AltarBase(eventhandler,objectmanage...
8003fc607c403e3250b0f7337f729f96085e2a64
e5d2228d8bad9344f0fcce47c76feb70112ad9b7
fmidev/smartmet-qdtools
/main/qdcombine.cpp
C++
cpp
17,338
permissive
// qdcombine Tekijä Marko 30.8.2005 // Yrittää yhdistää halutusta hakemistosta löytyneet tiedostot // aikojen/parametrien/leveleiden mukaan ja tuottaa niistä yksi // yhteinen data tiedosto. #include <newbase/NFmiArea.h> #include <newbase/NFmiAreaFactory.h> #include <newbase/NFmiCmdLine.h> #include <newbase/NFmiFastQue...
671f0301c605020834c846037b0d22879267a27e
b1f6e5f260258d5ed37da5ea1865261965ddd396
Benin45/CPP-LAB
/CPP LAB/SESSION 7/Q4.cpp
C++
cpp
550
no_license
/* Using main method, input an integer below 60. Using a class called Fib generate the Fibonacci series till this integer. Use constructor. */ #include <iostream.h> #include <conio.h> #include<dos.h> class Fib{ int Number; public: Fib(int N){ Number=N; } // ==> Doesn't matter what you are working o...
13ffcc5f5bc3836f59c0f575be324ed1751703ad
b7c0f6fff075c9960f6dfeae40a116039673b163
techtim/trippybird
/app/src/main/jni/ndk_helper/tapCamera.cpp
C++
cpp
6,922
no_license
/* * Copyright 2013 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 applica...
29f23fcce215a90f94c32eb7145b48f84ce265ab
d1169ee639a72593a6535239a7d7d79dbb8d9d98
ClinicalGraphics/u3d
/RTL/Component/BitStream/IFXHistogramDynamic.cpp
C++
cpp
20,412
permissive
//*************************************************************************** // // Copyright (c) 2000 - 2006 Intel Corporation // // 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 // // ...
55494a742653804fdbe0bae1d4e715972c7cf364
d390049ec54e7567dee1f5fe70d57a0afba15021
meshula/openexr
/src/examples/generalInterfaceExamples.cpp
C++
cpp
8,031
permissive
// // SPDX-License-Identifier: BSD-3-Clause // Copyright (c) Contributors to the OpenEXR Project. // //----------------------------------------------------------------------------- // // Code examples that show how class InputFile and class OutputFile // can be used to read and write OpenEXR image files with an arbitr...
24dfb8db11d926a03fc9d731cd5f18fc0e011f92
a887a8e26e917976f27f0622ed2a179a9cbc8323
sagniknitr/iceoryx
/iceoryx_posh/source/popo/sender_port.cpp
C++
cpp
14,991
permissive
// Copyright (c) 2019 by Robert Bosch GmbH. 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...
2ad6af8a4525f3fc518becf697e67baad8050a2b
33dbc4fcabbd02e6b1f6dc20179cee4bfa5c6e0d
Chikoreto/ScrollGame
/Action_Game/Key_Input.hpp
C++
hpp
1,122
no_license
#ifndef KEY_INPUT_H #define KEY_INPUT_H # include <Siv3D.hpp> #include"constant_num.hpp" //入力に関するクラス //Inputのラッパー //Scene共有に宣言するためSceneないなら使える //実際の入力検知はsiv3dクラスInputが行う //このクラスはその判定用(キーコンフィグ対応予定) class Key_Input { private: //決定キー1,2,3 wchar decide_key_1, decide_key_2, decide_key_3; //キャンセルキー1,2,3 wchar canc...
26616bd8dabb63a4ce1718f45def0cb1ab9eea4a
72a65c65f0fe2b97526fd5add3f4b4cc2718f2b3
njrafi/Competitive-Programming-Solutions
/CodeForces/893B - Beautiful Divisors - 32604223.cpp
C++
cpp
2,702
no_license
#include <bits/stdc++.h> #ifndef ONLINE_JUDGE #define gc getchar #define pc putchar #else #define gc getchar_unlocked #define pc putchar_unlocked #endif using namespace std; #define vi vector<int> #define si set<int> #define vs vector<string> #define pii pair<int, int> #define vpi vector<pii> #define pri priority_queue...
71d3d1c0d46f8a09188727b3d09f92183fbc9e12
fd6cfb311ba5b2a61098067e4ef186339bbd70b4
zhiguangli/Qml-Examples
/ScreenCapture/screencapture.cpp
C++
cpp
2,095
no_license
#include "screencapture.h" #include <QDebug> #include <QQuickView> #include <QQuickItemGrabResult> #include <QSharedPointer> #include <QTimer> #include <QImage> #include <QScreen> #include <QDir> class ScreenCapturePrivate { public: QTimer timer; QObject *m_currentView; ImageProvider *imageP...
b64586410c2926ba25a9a2eacce7455f4a85f0ac
d6a97b5c9f6586720221116ccc272d0a51e73e69
snowflip/training
/cplusplus/hello.cpp
C++
cpp
323
no_license
#include <iostream> using namespace std; int main() { //cout << "hello world!" << endl; //cout << "(\") (\\)" << endl; char a = 'a'; wchar_t b = 'b'; cout << "char length is " << sizeof(a) << endl; cout << "wchar_t length is " << sizeof(b) << endl; //cout << "a\tb" << endl; return 0; ...
21b495802daff5cfd896120aa91651fa29bf1931
0c08a0df60d7c55b9913066569432a62bf734c21
creep06/competitive-programming
/AOJ/1350.cpp
C++
cpp
3,664
no_license
#include <bits/stdc++.h> using namespace std; //#define int long long #define reps(i,s,n) for(int (i)=(s);(i)<(n);++(i)) #define rep(i,n) reps(i,0,n) #define rept(i,n) rep(i,(n)+1) #define repst(i,s,n) reps(i,s,(n)+1) #define reprt(i,n,t) for(int (i)=(n);(i)>=(t);--(i)) #define repr(i,n) reprt(i,n,0) #define each(itr,...
3b577a72a28c534e9cb8a7448f971e696d612269
5f3227f08c63636538dcfb522c2aafac341c8b95
QYPan/qt-note
/Network/talkCs/server/frmmain.cpp
C++
cpp
4,106
no_license
#include "frmmain.h" #include <QListWidget> #include <QPushButton> #include <QHBoxLayout> #include <QVBoxLayout> #include <QLabel> #include <QLineEdit> #include <QSpinBox> #include <QtNetwork> #include <string.h> #include <QDebug> frmMain:: frmMain(QWidget *parent) : QWidget(parent) { server = new myTcpServer(this); ...
7845a19d2a6dfab1fea13eadb2adc270fe22e3bc
dcb69666446dcb166d3497da88044e9b1d873df7
claritydevs/clarity
/src/test/sanity_tests.cpp
C++
cpp
657
permissive
// Copyright (c) 2012-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "compat/sanity.h" #include "key.h" #include "test/test_clarity.h" #include <boost/test/unit_test.hpp> BOOST_FIXTUR...
7fb4fdf09f75fd15b1afe4fb75ccbf811ac0b794
421181e241699d9dd3d6b44aebbdf2104f1183a3
mirok0/leechcraft
/src/plugins/blogique/plugins/metida/postoptionswidget.cpp
C++
cpp
14,618
permissive
/********************************************************************** * LeechCraft - modular cross-platform feature rich internet client. * Copyright (C) 2010-2012 Oleg Linkin * * Boost Software License - Version 1.0 - August 17th, 2003 * * Permission is hereby granted, free of charge, to any person or organiz...
527214d5afb89ddf4c3a6ed26843c22fd8b9175d
15c1d616beef1e35285685d631fb3d5dcc419875
IanAWatson/Lilly-Medchem-Rules
/Molecule/target.cc
C++
cc
40,751
permissive
#include <stdlib.h> #include <assert.h> #include <iostream> /* Class for substructure matching. There will be one of these atoms for each one in the target molecule. Attributes are computed as they are required. All values are assigned TARGET_ATOM_NOT_COMPUTED initially Each atom has a pointer */ #define TA...
21c28aa2452064d86ffa886603dd8eb043cc975f
e8eba49863aa0ea0ba722d5abc22cd85a63a17fc
Matrix89/serenity
/Userland/Utilities/markdown-check.cpp
C++
cpp
12,347
permissive
/* * Copyright (c) 2021, Ben Wiederhake <BenWiederhake.GitHub@gmx.de> * * SPDX-License-Identifier: BSD-2-Clause */ /* * You may want to invoke the checker like this: * $ cd Build/lagom * $ ninja * $ find ../../AK ../../Base ../../Documentation/ ../../Kernel/ ../../Meta/ ../../Ports/ ../../Tests/ ../../Userland...
1582766df16e70b392f49cfd1906b7f49714aba6
073179c90a080b47de6e005284fb8eb7c39fc57d
guso9085/CSCI
/C++/ClassEx2.cpp
C++
cpp
315
no_license
#include <iostream> using namespace std; class MyDate { // Data Members public: // Methods public: }; int main() { cout << "Lecture 19-2 example!" << endl; MyDate today; MyDate bday; // Get today’s date // Get birthday date // Compare dates, print appropriate message return 0; }
08c8111040ce498672090503b08a332ee6ce0306
9d54e51036013660880aeed05535419265a1379c
svarvel/browser-android-tabs
/chrome/browser/client_hints/client_hints_observer.cc
C++
cc
3,684
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 "chrome/browser/client_hints/client_hints_observer.h" #include <memory> #include "base/metrics/histogram_macros.h" #include "base/values.h" #in...
54930542356fd6c111c1d10325d5e776ab137fcf
99d89aff13a3a12fc66db31e0045841d899a3d24
cchudant/piscinecpp
/cpp05/ex03/ShrubberyCreationForm.cpp
C++
cpp
1,910
no_license
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ShrubberyCreationForm.cpp :+: :+: :+: ...
8d1c39d11ad1fd1090979c049368398658db68c7
69bf275b7b6b9b20815c6fa09b2dd9d041a1eec8
ghidra/IogramSource
/ThirdParty/iogram_components/Sets_LogisticGrowthSeries.cpp
C++
cpp
3,403
no_license
// // Copyright (c) 2016 - 2017 Mesh Consultants Inc. // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, mod...
4dcb2741fb7711885c1fce459873ad80f99d55e3
c833a7e53e748f4e5ea5a2d77a105fb7b79a623b
xuanyuantd/ToolsBuilder
/Classes/third_party_lib/boost/boost/mpl/aux_/lambda_arity_param.hpp
C++
hpp
815
permissive
#ifndef BOOST_MPL_AUX_LAMBDA_ARITY_PARAM_HPP_INCLUDED #define BOOST_MPL_AUX_LAMBDA_ARITY_PARAM_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2001-2004 // // 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) // // See...
9265a6dca533815cbb2344b3898c8fe4dcd1a3b3
267c6db1d2c7b39d18d01acc44df91c263ab7fe2
barbaragd/SSI
/P08_modoscifbloque/src/main.cpp
C++
cpp
5,195
no_license
#include <iostream> #include "../include/rijndael.hpp" #include <sstream> std::vector<std::vector<int>> convert2matrix(std::vector<int> v) { std::vector<std::vector<int>> m; m.resize(4); for (int i = 0; i < 4; i++) { m[i].resize(4); } int iter = 0; // pasar a una matriz for (int j = 0; j < 4; j++) { for (i...
c72c0981f455cbc8d3fc9edd1954809f93096b70
81c23ef0f7ab0b6e4f401403d93f551b05c1ecfb
Mitchell707/CSCI211Labs
/211/p7/bst.cpp
C++
cpp
3,740
no_license
//bst.cpp //Beck, Mitchell //mbeck16 #include <iostream> #include <string> #include <vector> #include "bst.h" using namespace std; Bst::Bst() { m_root = new Node; //m_root->right = NULL; //m_root->left = NULL; } Bst::~Bst() { } bool Bst::insert(string str, Node *cur) { //cout << m_root->m_value <...
7855a178095fe0200152ef415514eec329505858
e33edd1b8477c5320cae98ec116304c9f16e8788
Zombeh2133/edgy
/src/rpc/rawtransaction.cpp
C++
cpp
39,564
permissive
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The Dash Core Developers // Copyright (c) 2018 The EDGY Core Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-l...
5da5614c096930f3ad0f4c12c7b027ae659b7867
af42d2d0846d7e12718fe72be87f4d34faa5c37c
ejspeiro/HackerRank
/all_domains/algorithms/dynamic_programming/the_maximum_subarray.cpp
C++
cpp
659
permissive
#include <iostream> // For std::cout. #include <vector> // For std::vector<>. // Function template to find the one-past-end pointer to the array template<typename T, int N> int *end(T (&arr)[N]) { return arr + N; } int MaxSumSubarrays(const std::vector<int> &aa) { int max_ending_here = 0; int max_so_far = ...
2d33a910d46a49cf8b7d60948218be7c8880ce90
935b5d719b9bbc0c969ef069665f1d249f36159a
Gabriel0402/leetcodeNew
/reverseBits.cpp
C++
cpp
381
no_license
#include <iostream> using namespace std; class Solution { public: uint32_t reverseBits(uint32_t n) { uint32_t count = sizeof(n)*8; uint32_t reverse_n = 0; for(int i=0;i<count;i++){ if(n&(1<<i)){ reverse_n |=(1<<(count-1-i)); } } retur...
02a0a7d4b7372b1a686e25567cdbc6a20ea99a0e
3cfcb2100356a5939504a15eb3d8ab43451d3aa2
TheLimpo/Lab-4
/Task 3/Point2D_3.cpp
C++
cpp
765
no_license
#include "Point2D.h" #include <math.h> using namespace std; Point2D::Point2D() { x = 0; y = 0; } Point2D::~Point2D() { } Point2D::Point2D(float x, float y) { this->x = x; this->y = y; } Point2D::Point2D(const Point2D &o) { x = o.x; y = o.y; } float Point2D::distanceP(const Point2D &o) { float d = sq...