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 |
|---|---|---|---|---|---|---|---|---|
056266a388dc351f6ca886e37c818fa7a8eaaabf | 8b42f303d0c56465ccd4256d7a4585c48eac1f76 | etoolkit/Laozi | /CMyExplorer/ShellContextMenu.cpp | C++ | cpp | 13,196 | no_license | // ShellContextMenu.cpp: Implementierung der Klasse CShellContextMenu.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "CMyExplorer.h"
#include "ShellContextMenu.h"
#include <malloc.h>
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new D... |
b24d67b729abc4887ee69436975c7b1e301ecfa0 | 4a91f9ef23da912694e3475c48998e67824d8879 | jkstpierre/Elgar-Game-Engine | /Engine/elgar/core/IO.hpp | C++ | hpp | 2,731 | no_license | /*
Elgar Game Engine
Author: Joseph St. Pierre
Year: 2018
*/
#ifndef _ELGAR_IO_HPP_
#define _ELGAR_IO_HPP_
// INCLUDES //
#include "elgar/core/Singleton.hpp"
#include <SDL2/SDL.h>
#include <glm/glm.hpp>
#include <unordered_map>
namespace elgar {
/**
* @brief The Keyboard captures all key events du... |
f21267d58461caae1b8895aca8ae6f8021e121ee | 57ad8650ce31731214182e62d40d2e91e7710a15 | Ph0en1xGSeek/Cpp-Primer | /14_26_StrVec.cpp | C++ | cpp | 3,676 | no_license | #include "14_26_StrVec.h"
#include <iostream>
void StrVec::push_back(const std::string &s) {
chk_n_alloc();
alloc.construct(first_free++, s);
}
std::pair<std::string*, std::string*>
StrVec::alloc_n_copy(const std::string *b, const std::string *e) {
std::string *data = alloc.allocate(e - b);
return {d... |
d77985e08f444ff1a93fdc9eda53f2a8d762bd39 | 3ba022effdd5447465c72aa3d7c499dca6244078 | qrsforever/yxstb | /middleware/src/app/Keyboard/Keyboard.cpp | C++ | cpp | 763 | no_license |
#include "Keyboard.h"
#include "TAKIN_setting_type.h"
#include "TAKIN_interface.h"
#include "TAKIN_mid_porting.h"
namespace Hippo {
static Keyboard* g_instance = NULL;
Keyboard::Keyboard()
: m_implement(Delegate::Create())
{
}
Keyboard::~Keyboard()
{
if (m_implement)
delete m_implement;
}
Keyboar... |
9a8a2d7f47d782f3c877cac5a7b696bebec5f619 | df13bc06b49c3d97809e304d549e4a2c4f1b5c64 | shashank9aug/DSA_CB | /Searching_Sorting/sorting_Algo/inversionCount.cpp | C++ | cpp | 1,354 | no_license | /*
we have to count the number of inversion we can make if(arr[i]>arr[j] and i>j)
we can do this using merge sort
all the inversions count will come from merge function.
*/
#include <iostream>
using namespace std;
int merge(int arr[], int s, int e)
{
int mid=s+(e-s)/2;
int i=s;
int j=mid+1;... |
a6c5b0bbbba0bed906ce8e816cf268bb565e6963 | 32ae6998c6205f67a575c85535f7ad1c479e0a8b | beaverauv/auv_sonar | /src/main.cpp | C++ | cpp | 1,440 | no_license | #include <auv_sonar/Multilateration.hpp>
#include <alglib/fasttransforms.h>
#include <alglib/linalg.h>
#include <filter/filt.h>
int main(int argc, char *argv[]) {
int i;
Filter *my_filter;
std::cout << "Cross Correlation test start" << std::endl;
// generate white noise signal with distribution(gen)
random... |
bdd4c1ab7af571cf3c1caef59cbff694c291f974 | c363bb42519e0ff42f40da2f22e551f327d23136 | AdrianNostromo/CodeSamples | /CPP_Joc_Windows_Android/SH_Client_Win_Cpp_Cmake/App/src/base/math/Vector1.cpp | C++ | cpp | 1,051 | no_license | #include "Vector1.h"
#include <base/math/Math.h>
Vector1::Vector1()
: x(0.0f)
{
//void
}
Vector1::Vector1(type x)
: x(x)
{
//void
}
Vector1::Vector1(Vector1 const& src)
: x(src.x)
{
//void
}
Vector1* Vector1::set(type x) {
this->x = x;
return this;
}
Vector1* Vector1::set(Vector1 c... |
22f3cc7fd28046a43becb9ad0ea51993fc92daf6 | afbf3ad8d08967579e282c10a173b1f486b1d02a | AnatolyDomrachev/karantin | /is28/fomin28/cpp/zadanie2cpp/3/3.cpp | C++ | cpp | 509 | no_license | #include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
int main()
{ int a[10];
int b,x;
b = 0;
for(int i=0; i < 10; i++)
{
cout << "ввелите число массива ";
cin >> a[i];
}
cout << "ввелите искомое число ";
cin >> x;
for(int i=0; i < 10; i++)
{
if(a[i]==x) {cout << "Число" <<... |
77e9e86b804d1a8c0b519ed424fe4c940138b6d8 | 8f1392d6067e082b1106ca512472266b9ab40a80 | xiaohuo9986/PhoenixRP-Altis-Mission | /life_server/config.cpp | C++ | cpp | 6,269 | no_license | class DefaultEventhandlers;
class CfgPatches {
class life_server {
units[] = {"C_man_1"};
weapons[] = {};
requiredAddons[] = {"A3_Data_F","A3_Soft_F","A3_Soft_F_Offroad_01","A3_Characters_F"};
fileName = "life_server.pbo";
author = "Tonic";
};
};
class CfgFunctions {
... |
d0eeea68f28a383da821a0aedbcb67e0b01f34dc | 41ea1cb6fe41848f06502573a9c5b27fa02ea2c5 | hieule22/trupl-compiler | /tokens/number_token.cc | C++ | cc | 454 | no_license | // Implementation of NumberToken class.
// Copyright 2016 Hieu Le.
#include "tokens/number_token.h"
namespace truplc {
NumberToken::NumberToken(const std::string& attribute)
: Token(TokenType::kNumber), attribute_(attribute) {}
NumberToken::~NumberToken() {}
const std::string& NumberToken::GetAttribute() const... |
7c02ec119d88435308c1b00b9bec4776d896d87a | e326e2cbcfc6e72351f3b1c9b0d19d16096028c5 | shivam675/surface-detection-ros | /swri_profiler/swri_profiler/src/nodes/basic_profiler_example_node.cpp | C++ | cpp | 2,400 | permissive | #include <ros/ros.h>
#include <swri_profiler/profiler.h>
#include <std_msgs/Int32.h>
class BasicProfilerExampleNode
{
ros::NodeHandle nh_;
ros::NodeHandle pnh_;
ros::WallTimer init_timer_;
ros::Timer update_timer_;
ros::Subscriber int_callback_;
int fibonacci_index1_;
int fibonacci_index2_;
publ... |
634353994192acb29e480314b78a0abfc994b469 | ecf89c576cd91364f087593cfd4ced81387298fa | chamow97/Competitive-Coding | /codeforces/Recursive-Queries.cpp | C++ | cpp | 1,751 | no_license | //template by chamow
#include<bits/stdc++.h>
/*-------------------------------------------------------- */
using namespace std;
/*-------------------------------------------------------- */
#define rep(i,val,n) for(ll i=val;i<n;i++)
#define per(j,val,n) for(ll j=val;j>=n;j--)
#define pb push_back
#define pi 3.14157
#... |
bae4281f4becbd02a80a02e418ec7d5ca82137da | 83bad9b0ab67e54a87bff2c1071e1c8dd63dc4bc | ThePotato97/SoT-SDK | /SDK/SOT_HooksClothingCategory_classes.hpp | C++ | hpp | 702 | no_license | #pragma once
// SOT: Sea of Thieves (1.0) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x4)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
// BlueprintGeneratedClass HooksClothing... |
bca3718c3fe55fb72c8e1d8971f86cd1c9697cb2 | 20df4810302ee60173bb7317b6a1dc9c30ecb46e | schost/NTL-extras | /code/mosaic_hankel/test/test_mosaic_mul_left.cpp | C++ | cpp | 2,361 | no_license | #include <NTL/vec_lzz_p.h>
#include <assert.h>
#include "lzz_pX_mosaic_hankel.h"
NTL_CLIENT
void random(Vec<zz_p>& v, long n, long m){
v.SetLength(n+m-1);
for (long i = 0; i < n+m-1; i++)
v[i] = random_zz_p();
}
/*------------------------------------------------------------*/
/* if opt = 1, runs a check ... |
7efaf95e6763a4b8ede5a91941d31217da742ebe | 78adb22af0601af61cbce28df5a38e0efd9defcd | mezaisrael/blackjack-copy | /src/NumberCard.cpp | C++ | cpp | 312 | no_license | #ifndef NUMBERCARD_CPP
#define NUMBERCARD_CPP
#include "../headers/NumberCard.h"
istream& operator>> (istream &in, NumberCard &numberCard) {
in >> numberCard.value;
return in;
}
// ostream& operator<< (ostream &out, NumberCard &numberCard) {
// out << numberCard.value << endl;
// return out;
// }
#endif |
1e510b3f80376ed3f043826f80ff0087aa3cbc71 | a2c5b08f98e077efe93c56f5ed8020f7882433cc | yangchongduo/grpc | /src/core/ext/filters/http/client/http_client_filter.cc | C++ | cc | 25,810 | permissive | /*
* Copyright 2015 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
f64851cb49efddaf84320c8f026ae6a8c94c679a | b39c425e6c83a74d6f27c95c7e62e9ecad9b2459 | iFixit/mcrouter | /mcrouter/tools/mcpiper/test/McPiperVisitorTest.cpp | C++ | cpp | 2,254 | permissive | /*
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#inc... |
0231ea92beaf453b1e91a353e5fecfde6d4f36c9 | 74eb6083216eef862ad1ec8ed6b139ee3e21f7f7 | hiroMTB/dial_composer | /dial_composer/src/dt_ui_zoom.cpp | C++ | cpp | 3,478 | no_license | //
// dt_ui_zoom.cpp
// dial
//
// Created by hiroshi matoba on 9/12/14.
//
//
#include "dt_ui_zoom.h"
#include "ofApp.h"
#include "dt_circle_container.h"
#include "dt_circle_all_containers.h"
#include "ofxModifierKeys.h"
#include "dt_circle_param.h"
dt_ui_zoom::dt_ui_zoom(){
}
void dt_ui_zoom::singleClickStart( ... |
82a37df630a4662bd7dbb88bc8a03d300144b0e5 | 4c6b74235b9d2f471273db7cdec2fcc8f6663017 | senliontec/OpenXLSX | /OpenXLSX/headers/XLCell.hpp | C++ | hpp | 7,510 | permissive | /*
____ ____ ___ ____ ____ ____ ___
6MMMMb `MM( )M' `MM' 6MMMMb\`MM( )M'
8P Y8 `MM. d' MM 6M' ` `MM. d'
6M Mb __ ____ ____ ___ __ `MM. d' MM MM ... |
7594abd3269fe58ff6b32f6c5e0660d465c0d006 | 48ad792c870fc88bf70336ad468e1c7da7f1818b | chosaihim/PODOMotionPractice | /TaskLevelTest/src/ALPrograms/MissionDoor/taskmotion.cpp | C++ | cpp | 17,768 | no_license | #include "taskmotion.h"
#include "joint.h"
TaskMotion::TaskMotion(pRBCORE_SHM _shm, JointControlClass *_joint){
Shm = _shm;
Joint = _joint;
for(int i=0; i<3; i++){
wbPosRF[i] = new TrajectoryHandler(ORDER_1, 0.005);
wbPosLF[i] = new TrajectoryHandler(ORDER_1, 0.005);
wbPosRH[i] = n... |
ae02d92145193fd4afd25dbd1e833de572387e09 | 22214e9c9bf5571b4c635611d0d8ae6dbd9002ca | alissastanderwick/OpenKODE-Framework | /04_Sample/Billiards/Source/Helper.cpp | C++ | cpp | 2,116 | permissive | /* --------------------------------------------------------------------------
*
* File Helper.cpp
*
* Ported By Young-Hwan Mun
* Contact xmsoft77@gmail.com
*
* Created By Quipu on 11/04/09
*
* ------------------------------------------------------------------... |
0769ed695a81939b7682259cf1db3d4f839b44f8 | 2fff73f02be8f7a0deca15d9e157196dd77758c9 | EmbersArc/kRPC_cpp_Skycrane | /main_skycrane.cpp | C++ | cpp | 2,380 | no_license | #include <iostream>
#include "quad_vesselcontrol.h"
#include <ctime>
using namespace std;
int main() {
cout << "Started." << endl;
VesselControl *Skycrane = new VesselControl("Skycrane");
Skycrane->vessel.control().set_sas_mode(krpc::services::SpaceCenter::SASMode::retrograde);
// while... |
4998a783b9688a3cf87fe72492587a59edb02781 | dfec902ce133684c813be26588e400f965556093 | slvlirnoff/valhalla | /src/mjolnir/graphenhancer.cc | C++ | cc | 49,470 | permissive | #include "mjolnir/admin.h"
#include "mjolnir/graphenhancer.h"
#include "mjolnir/graphtilebuilder.h"
#include "mjolnir/countryaccess.h"
#include <memory>
#include <future>
#include <thread>
#include <mutex>
#include <vector>
#include <list>
#include <queue>
#include <unordered_set>
#include <unordered_map>
#include <ci... |
a13f5b1f15739809a2361b04a59962fbfa254f84 | 427cf5199caf0c7a2b5cfb8bcde278110ab48c0c | Chaanks/Ashes | /source/Ashes/Buffer/VertexBuffer.cpp | C++ | cpp | 602 | permissive | /*
This file belongs to Ashes.
See LICENSE file in root folder.
*/
#include "Ashes/Buffer/VertexBuffer.hpp"
namespace ashes
{
VertexBufferBase::VertexBufferBase( Device const & device
, uint32_t size
, BufferTargets target )
: m_device{ device }
, m_size{ size }
, m_buffer{ m_device.createBuffer( size
, ... |
5d3b7ffd2b9ffff520ad7acfe0ae0ec0dbe6db87 | 34e521f6102b1a724c490cb7544b8e077fbe5cdd | duki994/G900H-Platform-XXU1BOA7 | /vendor/samsung/common/packages/apps/SBrowser/src/content/renderer/media/rtc_peer_connection_handler.cc | C++ | cc | 31,480 | 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 "content/renderer/media/rtc_peer_connection_handler.h"
#include <string>
#include <utility>
#include <vector>
#include "base/command_line.h... |
a206d3fefe72c0167482880a283641dd4c125cd0 | 85391113bf9a462573a46a92068d2ac9c1f8dcee | NickVoron/Stable | /Sources/Libraries/resourceShaderGLES/resourceShaderGLES.cpp | C++ | cpp | 2,769 | no_license | // Copyright (C) 2016-2017 Voronetskiy Nikolay <nikolay.voronetskiy@yandex.ru>
//
// This library is distributed under the MIT License. See notice at the end
// of this file.
//
// This work is based on the RedStar project
//
#include "resourceShaderGLES.h"
#include "textFile/library.include.h"
#include "resourceUtils... |
67439bbc0ca2834f12530ed27dd215101107ebe2 | 1733569f3ea1248ab97a779bb52d63213007acea | halide/Halide | /apps/hannk/halide/pool_generator.cpp | C++ | cpp | 6,430 | permissive | #include "Halide.h"
#include "halide/common_halide.h"
using namespace Halide;
using namespace Halide::BoundaryConditions;
using namespace Halide::ConciseCasts;
namespace hannk {
class AveragePool : public Generator<AveragePool> {
public:
// Unsigned 8-bit input tensor, indexed by c, x, y, b.
Input<Buffer<uin... |
ef8472c687cdebfceb18da287ed1c0ff0d8cf538 | 40ae8a6dd0382396d4cbeef856ba81e44099ae5f | niuxu18/logTracker-old | /second/download/httpd/gumtree/httpd_patch_hunk_1750.cpp | C++ | cpp | 2,024 | no_license | /*
* This is in addition to what was present earlier. It is
* borrowed from openssl_state_machine.c [mod_tls].
* TBD.
*/
outctx->rc = APR_EAGAIN;
- return SSL_ERROR_WANT_READ;
+ return APR_EAGAIN;
}
... |
27a517adc90825f5889cf67d38f3c939c57aac3c | 759af9d98d7d266765fd952017b0a5c6578669cd | legosuke/lib | /01_Math/01_NumberTheory/02.01.02_is-prime.fermer-pseudoprime.hpp | C++ | hpp | 553 | no_license | #pragma once
#include <cstdint>
#include "01.02.01_gcd.hpp"
#include "../02_Combinatorics/01.03.02_mod-pow.big-mod.hpp"
#include "../../06_Others/04_Random/01_random-number.hpp"
/**
* @brief 素数判定 (フェルマー擬素数)
* @note O(k⋅log²(n))
*/
bool is_prime(std::uint64_t n, std::uint32_t k = 50) {
if (n <= 2) return (n == 2... |
abcbf307c68ddde6e816846e90146ebea5e80e68 | 0d239d16d270b4937d1371af2a730ef00f353532 | PhamMinhMan/Game_He | /Game/Game/Map.cpp | C++ | cpp | 4,725 | no_license | #pragma once
#include "Map.h"
#include"Zombie.h"
#include"BigFire.h"
#include"Gate1.h"
#include"Door.h"
#include "CandleSmall.h"
#include "Panther.h"
#include"ChangeStage.h"
#include"Vampire_Bat.h"
#include "ActiveVampireBat.h"
#include "HitEffect.h"
void Map::initStages(const char * stagePath)
{
Stage* stage;
fstrea... |
9e4e455cd3fd505c5d6a690e21f87846996fb291 | 442e35bf58f06d5aad2c726bb9fc3156f3783653 | cisluis/CancerSim_old | /CancerSim2/src/Tissue.cpp | C++ | cpp | 18,613 | no_license | //
// Tissue.cpp
// CancerSim2
//
// Created by Luis Cisneros on 11/5/19.
// Copyright © 2019 Arizona Cancer Evolution Center. All rights reserved.
//
// Copyright (C) 2002 Robert Abbott
// This file is part of CancerSim
// This program is free software; you can redistribute it and/or modify
// it... |
ea89611015132a576de9dcd8c5eb05d95c26f3b7 | c755f2eae4537aec30ea8b2b8cb34689e29d581b | zm2417/luogu-cpp | /1119_floyd.cpp | C++ | cpp | 1,555 | no_license | #include <iostream>
using namespace std;
const int MAXW = 20000;
const int MAXN = 205;
int n, m, q;
int x, y, t;
int times[MAXN], dis[MAXN][MAXN];
int now;
// 理解floyd思想的,Floyd算法就是一个利用其它点进行中转来求最短路的步骤。
// 所有的边全部给出,按照时间顺序更新每一个可用的点(即修建好村庄),
// 对于每个时间点进行两点之间询问,求对于目前建设的所有村庄来说任意两点之间的最短路
// 不正好就是Floyd算法中使用前k个节点更新最短路的思维吗?
/... |
b5e86a8cd49c81da3a0b34c6f80262a111833103 | 4839152d3cc733e3590f4a46b49a518a52ba68dc | EzequielLeonardoLeotta/IndustriaPlastica | /ListaColor.cpp | C++ | cpp | 5,963 | no_license | #include "ListaColor.h"
void crearListaColor(ListaColor& lista)
{
lista.primero = finColor();
}
bool listaVacia(ListaColor& lista)
{
return (primero(lista) == finColor());
}
PtrNodoListaColor finColor()
{
return NULL;
}
PtrNodoListaColor primero(ListaColor& lista)
{
return lista.primero;
}
PtrNodoListaColor s... |
479791f0f86a659d95bcc1b55fb5c90ffac55344 | 42107aa76d046ce7c4084f089acb85736a3bb5e8 | kankanla/Cjiajia | /search/search1.cpp | C++ | cpp | 2,024 | no_license | /********************************************************
* search -- Search a set of numbers. *
* *
* Usage: *
* search *
* you will be asked numbers to lookup *
* *
* Files: *
* numbers.dat -- numbers 1 per line to search *
* (Numbers must be ordered) *
*********************... |
4d43d57361b53f6a4484a23ab48d3e97c341e566 | 5b527b2f4c3a440c88def51c757f20104a21d81e | luocheng610/pcl | /features/include/pcl/features/impl/ppfrgb.hpp | C++ | hpp | 8,337 | permissive | /*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2012-, Open Perception, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... |
26624c092b7aec0dee21be9d47353b5845ad10fa | 5b5bcc79f977225fd240cd0ba8df11a2a7a5717d | wrandy44/cpp_exercises | /cpp_d10/ex00/Victim.cpp | C++ | cpp | 394 | no_license | //
// Victim.cpp for azd in /home/debrau_c/cours/piscine/cpp_d10/ex00
//
// Made by Carl DEBRAUWERE
// Login <debrau_c@epitech.net>
//
// Started on Fri Jan 13 14:33:37 2017 Carl DEBRAUWERE
// Last update Fri Jan 13 14:34:15 2017 Carl DEBRAUWERE
//
#include <ostream>
#include "Victim.hh"
std::ostream &operator<<... |
5032325c6cceede8a94758e57d22be0312e220ac | ead0d3ee8ef920fe33332398c3805677937c2da8 | cjmxp/pap_full | /gbk/server/World/World/WorldData/City.cpp | C++ | cpp | 1,127 | no_license |
#include "stdafx.h"
#include "City.h"
#include "WorldTable.h"
City::City( )
{
m_pCityDB = NULL;
}
City::~City( )
{
}
BOOL City::Init(CityDB_t* pCityDB)
{
__ENTER_FUNCTION
if(pCityDB != NULL)
m_pCityDB = pCityDB;
CleanUp();
return TRUE ;
__LEAVE_FUNCTION
return FALSE;
}
VOID City::CleanUp( )
{
__ENTER_F... |
0a3cb75321da7938a86ad6ec01b6eb6e36f662d0 | fc51f2d3b0ffc2546226a197a71255f1b0410ca5 | veskuh/qmldialer | /src/dbustypes.cpp | C++ | cpp | 1,581 | permissive | /*
* dialer - MeeGo Voice Call Manager
* Copyright (c) 2009, 2010, Intel Corporation.
*
* This program is licensed under the terms and conditions of the
* Apache License, version 2.0. The full text of the Apache License is at
* http://www.apache.org/licenses/LICENSE-2.0
*
*/
#include "dbustypes.h"
// Marshal... |
8d14053e22cd51b913fde83beb3305d39d6055ec | e919590140252f86dcbeda7ddafd30ce454f0b60 | reagler/general | /cpp/fractiontest.cpp | C++ | cpp | 788 | no_license | #include "fraction.h"
int main()
{
Fraction a;
Fraction b(4);
Fraction c(6, 8);
cout << "Constructed values " << a << ' ' << b << ' ' << c << endl;
Fraction d(c);
cout << "Value of d is " << d.numerator() << '/' << d.denominator() << endl;
d = b + c;
cout << "4 + 3/4 is " << d << endl;
d = b - c;
cout << "4 ... |
45c7e71ec5ce72e1c52c68b7a9a156db6c4753b6 | d53e67efad6a2c992efff8ede78ff6e3a646647f | yuaom/PUBG-SDK-3.7.19.10- | /SDK/PUBG_CoherentUIGTPlugin_parameters.hpp | C++ | hpp | 23,668 | no_license | #pragma once
// PLAYERUNKNOWN BATTLEGROUND'S ( EDITED BY PHYSXCORE, THANKS TO KN4CKER ) (3.7.19.10) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "PUBG_CoherentUIGTPlugin_classes.hpp"
namespace Classes
{
//---------------------------------------------------------------------------
//Parameters
//----... |
dc31f0ab3dbbee0b0c6172c052cf1a66b033f844 | 38faa6cb5d7cf71f7cd5b5d300219beb5d8a2fe6 | wnwoghd22/NTHU_HW_All | /DataStructure/DS_HW5.cpp | C++ | cpp | 7,858 | no_license | #include <iostream>
bool debug = false;
class Node;
class Level;
class Tree;
class Node
{
private:
public:
bool isTarget;
bool isDead;
bool isPath;
Node* parent;
Node* left;
Node* middle;
Node* right;
Node* sibling;
Node()
{
left = NULL;
right = NULL;
middle = NULL;
sibling = NULL;
isTarget = fa... |
6d78ecbc31bb21e3ca390db5f73d83f514dcb2f0 | 2a14786dad465eaf508dc7a1c6a42a25391561f1 | r14sandeep/Test | /C/c_linux/cpp/poly/pure_virt.cpp | C++ | cpp | 361 | no_license | #include <iostream>
using namespace std;
class Person{
public:
virtual void introduce()=0;
};
void Person :: introduce(){
cout << "hey from person"<<endl;
}
class Student : public Person{
public:
void introduce(){
cout << "hi i am a student"<<endl;
Person ::introduce();
}
};
int main()
{
Student... |
be8031066d7b53e37a1c8f63d5fc2ef8dd9660f1 | 3a028eb186415765e8a2ae4b2757874c916e6df0 | Meixia-mo/Momeixia | /test13-3/Circle.cpp | C++ | cpp | 963 | no_license | // Circle.cpp : 实现文件
//
#include "stdafx.h"
#include "test13-3.h"
#include "Circle.h"
#include "afxdialogex.h"
#include "MainFrm.h"
// Circle 对话框
IMPLEMENT_DYNAMIC(Circle, CDialogEx)
Circle::Circle(CWnd* pParent /*=NULL*/)
: CDialogEx(IDD_DIALOG1, pParent)
, x(0)
, y(0)
, a(0)
, b(0)
{
}
Circle::~Circle()
{... |
fa153d0e55b424229f8359987bdf264f2a5e7abd | f0fef318c299ac7ccbc467413825b7705f1ec9bc | gky360/contests | /atcoder/agc018/d/d.cpp | C++ | cpp | 1,766 | no_license | // AtCoder Grand Contest 018
// D - Tree and Hamilton Path
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<int, int> pii;
typedef pair<ll, int> pli;
const int MAX_N = 100000;
const int INF = (int)1e8;
struct edge {
int to;
ll cost;
};
int N;
vector<edge> G[MAX_N];
int s... |
e8f9bab0ceee4fdd286d7f917526cf12632b3494 | 3c4ffb9ccfc76963deda075dd82dc5235448b2db | GuilhermeEsteves/cplusplus | /data_structures/example2.cpp | C++ | cpp | 669 | no_license | // array of structures
#include<iostream>
#include<string>
#include<sstream>
using namespace std;
#define N_MOVIES 3
struct movies_t {
string title;
int year;
} films [N_MOVIES];
void printmovie(movies_t movie);
int main()
{
string mystr;
int n;
for(n=0; n<N_MOVIES; n++)
{
cout << "Enter title: ";
... |
32da42dc1e552e5d61889e14979092a7faf3b323 | da98a4046c7c9fdacf226b010244cc3d337e6b80 | mwgray/code-samples | /DependencyGraph/DependencyGraphNode.cpp | C++ | cpp | 256 | no_license | // Copyright 2006-12 HumaNature Studios Inc.
#include "CorePch.h"
#include "DependencyGraphNode.h"
namespace core {
DependencyGraphNode::DependencyGraphNode(const CompactString& id)
: mId(id)
{
}
} // namespace core |
1ed0b4b2589d8eef525172bd9618a19cdb21822d | 8329143e9e4290177ed6fe857e5317a8211e437c | drcapps68/CPlusPlus | /HW3_dcapps_PC24WordGame.cpp | C++ | cpp | 1,418 | no_license | //Creator: Dan Capps
//Date Created: 10.8.2017
//Assignment: 3
//Time spent: 1 hour
#include <iostream>
#include <string>
using namespace std;
int main() {
//Initialize variables
string name;
string age;
string city;
string college;
string profession;
string animal;
string pet;
... |
7e25e5ba3a0053459d99fc076ee42dbf5e57d43a | 0cb0f21a34b9c97cd8d0e873ba621f942c285053 | dtylman/ion | /ion/Syslog_WIN32.cpp | C++ | cpp | 732 | permissive | /*
* File: Syslog.cpp
* Author: danny
*
* Created on March 9, 2015, 8:41 PM
*/
#include "Syslog.h"
Syslog::Syslog() : _logger(Poco::Logger::get("Syslog"))
{
}
Syslog::~Syslog()
{
}
void Syslog::log(const EventData& eventData)
{
HANDLE eventLog = RegisterEventSource(0, "ion");
if (eventLog == 0)
{
_logge... |
8b49c06d5947c61ad3ca676c03de404a1755bad2 | 4f519b59525b9bc1ab16e40082a9546d0dd78fde | lorensen/vtk-dicom | /Source/vtkDICOMReader.cxx | C++ | cxx | 55,258 | no_license | /*=========================================================================
Program: DICOM for VTK
Copyright (c) 2012-2015 David Gobbi
All rights reserved.
See Copyright.txt or http://dgobbi.github.io/bsd3.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied ... |
2e5ce6c85324d819d29291d32874ccff9018ddbe | 51719e000c82b35c67b741fc3086aca91120187b | mojocorp/ShaderGen | /source/SGOglNotebook.cpp | C++ | cpp | 1,524 | permissive | #include "SGOglNotebook.h"
#include "SGFixedGLState.h"
#include "SGFrame.h"
#include "SGOglFogNBPage.h"
#include "SGOglLightNBPage.h"
#include "SGOglMaterialNBPage.h"
#include "SGOglTextureCoordNBPage.h"
#include "SGOglTextureEnvNBPage.h"
#include "SGTextures.h"
SGOglNotebook::SGOglNotebook(SGFixedGLState* glState, QW... |
789fc119cbb7f7094026072784b71cc23d352dad | 58cd7d4a6c0252d46c8601b90e41eb105c593a16 | tsteinholz/SpaceShooterIII | /src/gameobjects/physics/projectile.cpp | C++ | cpp | 2,400 | permissive | //-----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2016 Thomas Steinholz
//
// 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... |
0905a03ce03c72a343dcf7b001f8a14e98b36adc | 8d0db92757df82f2cbcb77277c2b22af54af4c79 | xpay01/xpay | /src/qt/signverifymessagedialog.cpp | C++ | cpp | 8,770 | permissive | #include "signverifymessagedialog.h"
#include "ui_signverifymessagedialog.h"
#include "addressbookpage.h"
#include "base58.h"
#include "guiutil.h"
#include "init.h"
#include "main.h"
#include "optionsmodel.h"
#include "walletmodel.h"
#include "wallet.h"
#include <string>
#include <vector>
#include <QClipboard>
Sign... |
a2d505ff65ca74df07aa1693480fd22297efc7eb | aec103f567591f37d766fbcf9deeaff746e485bd | Salsabil007/Grpah | /BFSDFS/1009Ver2LOj.cpp | C++ | cpp | 1,523 | no_license | #include<bits/stdc++.h>
using namespace std;
vector < int > arr[20005];
int main()
{
int t,i,j,k,l,n,m;
cin>>t;
for(int qq=1;qq<=t;qq++)
{
cin>>n;
// arr = new vector < int > [(2*n)+1];
int color[20005+1];
memset(color,0,sizeof(color));
int ara[20005+1];
m... |
de8b4512a485bc33921d0808e96bb8fd7b012e99 | 543cc5058d85d9f8449bc6eef124d0e1e8760a77 | Dixcit-TV/Zeliora-2DGame | /Zeliora/EnemyManager.cpp | C++ | cpp | 2,350 | no_license | #include "pch.h"
#include <cassert>
#include <algorithm>
#include "EnemyManager.h"
#include "LootManager.h"
#include "Enemy.h"
#include "Hero.h"
#include "Spawn.h"
#include "Guard.h"
#include "Witch.h"
EnemyManager::EnemyManager()
: m_pEnemies{}
{}
EnemyManager::~EnemyManager()
{
for (Enemy* pEnemy : m_pEnemies)
... |
d091a7fe20296fde071593a68cd1febc1becb6d9 | 260c00a6691284e78e7f735d0427cee7ea4fc377 | CU-0xff/juliet-cpp | /000/110/677/CWE680_Integer_Overflow_to_Buffer_Overflow__new_fgets_51a.cpp | C++ | cpp | 2,545 | no_license | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE680_Integer_Overflow_to_Buffer_Overflow__new_fgets_51a.cpp
Label Definition File: CWE680_Integer_Overflow_to_Buffer_Overflow__new.label.xml
Template File: sources-sink-51a.tmpl.cpp
*/
/*
* @description
* CWE: 680 Integer Overflow to Buffer Overflow
* BadSource: fgets ... |
dd57424a40dc5ffa3c07b54c55a7f0b16e5a25de | 84e7ca5e6359ceee99eb687797dea3774006e913 | sashank6/HackerEarth | /Dynamic Programming/minCoins.cpp | C++ | cpp | 379 | no_license | #include<iostream>
#include<algorithm>
using namespace std;
int main()
{
int n;
cin>>n;
int arr[n+1];
for(int i=0;i<=n;i++)
arr[i]=INT_MAX;
arr[0]=0;arr[1]=1;arr[3]=1;arr[5]=1;
for(int i=1;i<=n;i++)
{
for(int j=0;j<i;j++)
{
arr[i]=min(arr[i],arr[i-j]+arr[j]);
}
}
cout<<"Minimum Number of ... |
720cd4d2278c0b26b6c34a8d51fe339ebe3c6560 | b05f0e9d0cef96422bb9341d233da9b8f5ac9fb8 | fallfromgrace/xc.cpp | /xclib.cpp/include/xc/detail/frame_buffer_sequence.hpp | C++ | hpp | 1,295 | permissive | #pragma once
#include <vector>
#include "xcliball.h"
#include "xc\detail\frame_buffer.hpp"
namespace xc
{
// This class solely exists to allow getting frame buffer by id.
class frame_buffer_sequence
{
public:
//
frame_buffer_sequence(pxdstate_s* state, int unitmap, size_t buffers)
{
for (pxbuffer_t id... |
4b2b793d31f654d061f243b5adb2b798808b6720 | 58a7d65901b6e0360ade134efc30f9b7cc6964d1 | yangyuan6/HelmetFCEM | /HelmetFCEM/DialogFirstQuota.cpp | C++ | cpp | 3,147 | permissive | // DialogFirstQuota.cpp : 实现文件
//
#include "stdafx.h"
#include "HelmetFCEM.h"
#include "DialogFirstQuota.h"
#include "afxdialogex.h"
#include <cstring>
#include <string>
#define eps 1e-8
#define MAX_COUNT (33) // CheckBox的总个数
#define MAX_ROW (5) // 一排最大放2个CheckBox
#define IDC_CHECKBOX (0x2000) ... |
d8c7a69c42f611835dff1a32c6b739cbce0158b3 | fd41b9248583efb78340e89bbea9c1c67012295d | jrobbin/platoengine | /base/src/PlatoSubproblemLibrary/InvertibleUnitRange/PSL_InvertibleUnitRangeFactory.hpp | C++ | hpp | 528 | permissive | #pragma once
#include "PSL_ParameterDataEnums.hpp"
namespace PlatoSubproblemLibrary
{
namespace AbstractInterface
{
class GlobalUtilities;
}
class InvertibleUnitRange;
InvertibleUnitRange* build_invertible_unit_range(AbstractInterface::GlobalUtilities* util,
invertibl... |
d53568e981b621a60d4d9f369ef5764d2b588c56 | 7d273d48196aeded236ab5fd71f781e62b4f367b | Cjkkkk/SPLCompiler | /src/spl_opt.cpp | C++ | cpp | 8,533 | permissive | //
// Created by DELL on 2019/5/9.
//
#include "spl_SSA.hpp"
#include <stack>
void copyByValue(Operand* res, Operand* source) {
*res = *source;
}
// 沿着DU链如果有指令使用了目标变量就替换成指定对应变量
// copy propagation中 v1 = v2
// 则沿着DU链,如果有变量使用v1 则替换成v2
// const propagation v1 = v2(const) 或者 v1 = v2(const op const)
// 则... |
341633ef102c9e48a312cf806eb9c73be98c91c9 | e6a8aedd5a1f087a1f79aa40c03ac8913de8bfc6 | NamiHaru/Colopons | /Classes/TitleBackground.cpp | C++ | cpp | 1,194 | no_license | #include "TitleBackground.h"
#include "AllTags.h"
#include "TitleTulip.h"
#include "TitleBatterfly.h"
#include "TitleWood.h"
using namespace cocos2d;
using namespace std;
bool TitleBackground::init(int clearedStage)
{
if (!Sprite::init()) return false;
auto tulip = TitleTulip::create(clearedStage);
this->addChild... |
4d963397095b478ab3583a6b30989d6573f584e3 | 2448ed91be54b2cf08871ea4a9e26864f99cff24 | omarKaushru/Numb-UV-Life-activites | /CSE/New folder/Sattar n sir/C Programming/Pyramid.cpp | C++ | cpp | 440 | no_license | #include<stdio.h>
#include<conio.h>
int main()
{
int first,second,sum,num,counter=0;
printf("Enter the term : ");
scanf("%d",&num);
printf("nEnter First Number : ");
scanf("%d",&first);
printf("nEnter Second Number : ");
scanf("%d",&second);
printf("nFibonacci Series : %d %d ",first,second);
while(counter< num... |
4d54b4e63714813c1da63735bcee67033b660a32 | 062ca6080f60bc0d6f784443f6fbae8dc7fde62f | TheFakeMontyOnTheRun/dungeons-of-noudar | /DungeonsOfNoudar486/OPL2LPT/MusicDOS.cpp | C++ | cpp | 6,042 | permissive | #include <stdlib.h>
#include <conio.h>
#include <dos.h>
#include <sys/farptr.h>
#include <dpmi.h>
#include <go32.h>
#include <pc.h>
#include <bios.h>
#include <time.h>
#include <unistd.h>
#include <iterator>
#include <string>
#include <memory>
#include <vector>
#include <array>
using std::vector;
using std::array;
#i... |
e498b19fa565888c01b9575bc5a971a24071d5f9 | 6246ab68b93484e435b7cfd26f68ca24412fe62d | erick2200/CC2 | /euler/p14.cpp | C++ | cpp | 521 | no_license | #include <iostream>
using namespace std;
unsigned long long collatz(unsigned long long &n)
{
if(n%2==0)
n /= 2;
else
n = (n*3)+1;
return n;
}
int contiene(unsigned long long n)
{
int acum=0;
while(n!=1)
{
collatz(n);
acum++;
}
return acum;
}
int main()... |
c7258d81226c5aac63ba047b9732ee4847afc24c | 09059b9d27a189e32f980b98503d75b47b063b30 | bytemaster/GeneralPublicMarket | /programs/free_market/RegisterNameForm.cpp | C++ | cpp | 1,862 | no_license | #include "RegisterNameForm.hpp"
#include "ui_register_name.h"
#include "keychain.hpp"
#include <gpm/block_chain/block.hpp>
#include <gpm/node/node.hpp>
const boost::shared_ptr<gpm::node>& get_node()
;
RegisterNameForm::RegisterNameForm( QWidget* parent, const QString& label )
:QWidget(parent)
{
m_ui = new Ui_Regist... |
2277d1196484327725eb9ba86119103b23e846c4 | d5ace1ee55a204a65d1156e00c9fe4aba6c8a944 | ThoseBygones/ACM_Code | /CodeForces/CodeForces 875C.cpp | C++ | cpp | 5,796 | no_license | #include <bits/stdc++.h>
using namespace std;
#define MAXN 200005
#define MAXE 2000005
class TwoSat
{
public:
int head[MAXN<<1];
struct Edge
{
int to,next;
Edge() {}
Edge(int to,int next):to(to),next(next) {}
} e[MAXE];
int mark[MAXN<<1]; //mark[i<<1]==1,表示点i被选择;mark[i<<1... |
390a39f1ac08edeb2812d6de0c025bd8cd45b059 | c48ded13623f31c6ba4dad74460ee35cb3847906 | asdlei99/soul | /soul/src/common/token.cpp | C++ | cpp | 2,775 | no_license | #include <soul/include/common/token.h>
using eflib::fixed_string;
using boost::shared_ptr;
using boost::make_shared;
BEGIN_NS_SOUL_COMMON();
token_t::token_t(): str("UNINITIALIZED_VALUE"), end_of_file(false)
{
}
token_t::token_t(const token_t& rhs) : file_name(rhs.file_name), span(rhs.span), str(rhs.str), id(rhs.id... |
b4f84ce2e4bb06018db9d7f6d96af6a14a1c52c4 | 53b7d75db2c63c63a0acbd6004bb20f96c065516 | kentoyokoyama/SCXcore | /source/code/providers/support/appserver/jbossappserverinstance.cpp | C++ | cpp | 69,115 | permissive |
/*--------------------------------------------------------------------------------
Copyright (c) Microsoft Corporation. All rights reserved. See license.txt for license information.
*/
/**
\file jbossappserverinstance.cpp
\brief PAL representation of a JBoss application server
\... |
f1e5a574e7253cc36f6b928e18756ed989e5f47f | a3f0910519cd2103259b83cb5048ed95de6cc9a7 | RTcmix/RTcmix | /insts/std/LPCPLAY/setup.cpp | C++ | cpp | 11,116 | permissive | // setup.C -- Other Minc routines used to configure an LPCPLAY session
#include <ugens.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "setup.h"
#include "lp.h"
#include "DataSet.h"
#include <RTcmix.h>
#define THRESH_UNSET (-1)
static const float kDefaultSmoothingFactor = 0.5;
static double lowt... |
4eead38f8693cd27a9e3c4dc022657a8f9dd4f5b | db273491b0e21508226b52f572a89e0659da1b33 | Dyna-CoRE/dart | /dart/dynamics/GenericJoint.hpp | C++ | hpp | 25,787 | permissive | /*
* Copyright (c) 2011-2017, The DART development contributors
* All rights reserved.
*
* The list of contributors can be found at:
* https://github.com/dartsim/dart/blob/master/LICENSE
*
* This file is provided under the following "BSD-style" License:
* Redistribution and use in source and binary forms, w... |
d270040c309c0eef203342daf7e95cd257a144ad | 48b2e923b6947f57bbb3bb3fe458296e5f7e7852 | 4l3dx/DBOGLOBAL | /DboServer/Server/GameServer/BotAiAction_SPS_SendEventToWps.cpp | C++ | cpp | 1,837 | no_license | #include "stdafx.h"
#include "BotAiAction_SPS_SendEventToWps.h"
#include "SPSNodeAction_SendEventToWps.h"
#include "WpsAlgoObject.h"
CBotAiAction_SPS_SendEventToWps::CBotAiAction_SPS_SendEventToWps(CNpc* pBot)
: CBotAiAction(pBot, BOTCONTROL_ACTION_SPS_SEND_EVENT_TO_WPS, "BOTCONTROL_ACTION_SPS_SEND_EVENT_TO_WPS")
{
... |
5ee116a30606ffe8a91ae92685530bddceff1125 | d499e2f164d56c362c4f4289190e86014fe6017d | gstarnberger/libmphoto | /fuzz/remuxer_fuzz_test.cc | C++ | cc | 1,140 | permissive | // Copyright 2020 Google LLC
//
// 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 ... |
1fbd958097de3dea038658555385ecca7430a6d6 | e38c1c4c1d7a6abcfdfe80094ae5726c42c9a316 | repusjh/BOJ | /BFS_DFS/2583.cpp | C++ | cpp | 1,216 | no_license | #include <bits/stdc++.h>
using namespace std;
int m, n, k, cnt;
int ldx, ldy, rux, ruy;
int paper[101][101];
int visit[101][101];
int dx[] = { 0, 1, 0, -1 };
int dy[] = { 1, 0, -1, 0 };
queue<pair<int, int>> q;
vector<int> sizes;
int main() {
ios::sync_with_stdio(0);
cin >> m >> n >> k;
//uncompleted
for (int... |
2cdbcc2c39cc0912bebcaea2b3c2771a1f1558d3 | b7cdae1c6029cf293b71cd9d8b5c7e35919660ab | JustinTArthur/ROCm-OpenCL-Runtime | /runtime/platform/command.cpp | C++ | cpp | 19,251 | permissive | //
// Copyright (c) 2008 Advanced Micro Devices, Inc. All rights reserved.
//
/*!
* \file command.cpp
* \brief Definitions for Event, Command and HostQueue objects.
*
* \author Laurent Morichetti (laurent.morichetti@amd.com)
* \date October 2008
*/
#include "platform/command.hpp"
#include "platform/commandqu... |
c15cf2806033514ec385b0d6212368e2a8f35282 | 90aa371eedf9f5d5cb23eed39bcfc1c9ed863be4 | tmich/AeronPrintWin | /AeronPrintWin/MainFrame.cpp | C++ | cpp | 7,958 | no_license | #include "stdafx.h"
#include "MainFrame.h"
CMainFrame::CMainFrame()
{
SetView(m_view);
LoadRegistrySettings(_T("AeronPrintWin"));
}
CMainFrame::~CMainFrame()
{
}
int CMainFrame::OnCreate(CREATESTRUCT & cs)
{
SetUseReBar(false);
SetUseToolBar(false);
ShowStatusBar(true);
CFrame::OnCreate(cs);
if (::IsWind... |
8e505ba99cb131e471acf561e0b2467fe599a2a9 | 24bddbca4c265b866ecdf48073dcec7f2b96c9da | little-czy/csp | /2013/201312-4.cpp | C++ | cpp | 3,078 | no_license | // #include <iostream>
// #include <cstdio>
// #define MOD 1000000007
// using namespace std;
// int n;
// int a[1005];
// int ans;
// bool check1(int num) //验证第一条法则
// {
// int count = 0;
// for (int i = 0; i < num; i++)
// {
// count |= (1 << a[i]);
// }
// if (count == 15)
// ... |
b6d0dae464c4aa4dafb672cb508f9b2ec16bfb13 | 2421e069a35b2fc092b2b713d7b2e66497c9670e | einzige/Multichannel-noise-generator | /filters/grayscalefilter.cpp | C++ | cpp | 492 | no_license | #include "grayscalefilter.h"
QImage GrayscaleFilter::apply(QImage img) const
{
for (int x = 0; x < img.width(); x++)
for(int y = 0; y < img.height(); y++){
QColor col(img.pixel(x,y));
int red = col.red();
int green = col.green();
int blue = col.blue();... |
34a1a73cf9ed01cd5fae1be7dd810c3725fe859c | ad0f5daa98efef7e780a09b56a8b4393ba98a260 | ckelsel/chromium-4.0.210.0_p26329 | /third_party/icu/source/test/intltest/tztest.cpp | C++ | cpp | 75,805 | permissive | /***********************************************************************
* COPYRIGHT:
* Copyright (c) 1997-2009, International Business Machines Corporation
* and others. All Rights Reserved.
***********************************************************************/
#include "unicode/utypes.h"
#if !UCONFIG_NO_FORM... |
b58a53d6ef82f5f06c1e1b74825120df1cce8d5d | c82e1b3c3c27f80e8a499791876d1a3bd1510907 | aliyun/aliyun-openapi-cpp-sdk | /dytnsapi/src/model/PhoneNumberStatusForVoiceRequest.cc | C++ | cc | 4,498 | permissive | /*
* Copyright 2009-2017 Alibaba Cloud 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... |
ea8de6068c0f4967778c478a84fd5202413ae2e1 | 9150f41f11e29cf5a8828991eb9cd5ac977eea92 | YuriyGulyayev/NaturalGasTrading | /Myself/Prototypes/Prototype52/Prototype52/Prototype52/TEconomicReportReceiverViaUdpConfiguration.cpp | C++ | cpp | 1,093 | no_license | #pragma once
#include "StdAfx.h"
#include "../Common/SourceCodeModel/IncrementHeaderInclusionDepth.hpp"
#include __FILE__
#include "./TEconomicReportReceiverViaUdpConfiguration.hpp"
#include "./TEconomicReportReceiverBaseConfiguration.cpp"
#include "../Common/SourceCodeModel/SourceFooter.hpp"
namespace Prototype5... |
8ca037003c42bf729db02435853a40ce32ffc2c3 | aebcf7aca7325a55338f183e3f17be3940b29fbb | seal-git/atcoder | /2021-01-02-C/main.cpp | C++ | cpp | 781 | no_license | #include <iostream>
#include <string>
#include <stdio.h>
#include <math.h>
#include <queue>
#include <algorithm>
#include <utility>
#include <vector>
#include <tuple>
#include <numeric>
using namespace std;
int main(int argc, char* argv[]){
int N;
cin>>N;
vector<string> S(N);
for(int i=0;i<N;i++){
cin>>S[i];
}... |
e178a55ef7578cc4ba8088edd2725eb0e8c936cc | 3b5352533960ef98b3ea5fee6f3e595fa9139f34 | rcrimp/345-project | /submit/unix_shell/src/main.cpp | C++ | cpp | 2,774 | no_license | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <iostream>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include <string.h>
#include <string>
#include "process.h"
#include "parser.h"
#define BUFFLEN 4096
using nam... |
db193c7ade6cc56bc544e2dffe982e1293aeaf8b | 04bacf03d28f648b4c38b62cab6e8e7de37adba3 | ashutosh0gupta/llvm_bmc | /examples/litmus/c/run-scripts/tmp_5/LB-GRW+R-A+R-A+OB-OB.c.cbmc_out.cpp | C++ | cpp | 79,184 | no_license | // Global variabls:
// 0:vars:5
// 5:atom_0_X0_1:1
// 6:atom_1_X0_1:1
// 7:atom_2_X0_1:1
// 8:atom_3_X0_1:1
// 9:atom_4_X0_1:1
// Local global variabls:
// 0:thr0:1
// 1:thr1:1
// 2:thr2:1
// 3:thr3:1
// 4:thr4:1
#define ADDRSIZE 10
#define LOCALADDRSIZE 5
#define NTHREAD 6
#define NCONTEXT 5
#define ASSUME(stmt) __CP... |
661738644814e1973e47c8b0e247d622ba4e876e | 4a676d3b575d4d2079ce86b1e26f20e579834b74 | akshaymarch7/chromium | /chrome/browser/ui/views/arc_data_removal_dialog_view.cc | C++ | cc | 6,812 | 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 "chrome/browser/ui/app_list/arc/arc_data_removal_dialog.h"
#include "base/macros.h"
#include "chrome/browser/chromeos/arc/session/arc_session_ma... |
ae0cf8446baae874c84454c80bf6c70d7ea88200 | fce2725eae85467ca619087370a155c81820e581 | LongJohnCoder/derplanner | /source/compiler/io.cpp | C++ | cpp | 1,338 | permissive | //
// Copyright (c) 2013 Alexander Shafranov shafranov@gmail.com
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any ... |
0bd713d599048fdc58df7324e6d45baec38dc4f5 | 7d62d3fed091999bf3a45daa4d54562a0ead2d09 | Anish-Saxena/aqua_rowhammer_mitigation | /gem5/src/arch/generic/debugfaults.hh | C++ | hh | 5,499 | permissive | /*
* Copyright (c) 2010 Advanced Micro Devices, Inc.
* All rights reserved.
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implement... |
2bf13787cd85294ec2b84267a7c957a853153cbe | f220a4d8339c14c41d0302fe21715a2d3dd82fb2 | CodingYue/acm-icpc | /msprograming/1A.cpp | C++ | cpp | 1,131 | permissive | // File Name: 1A.cpp
// Author: YangYue
// Created Time: Sun Apr 20 14:42:47 2014
//headers
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <ctime>
#include <string>
#include <queue>
#include <set>
#include <map>
#include <iostream>
#include <ve... |
2851d8cf3cde216c66508f60436886ed49da0320 | fb6107c016d3134fb4b5b183a2e57f366b1bf385 | dachev/libxmljs | /src/xml_node.cc | C++ | cc | 8,849 | permissive | // Copyright 2009, Squish Tech, LLC.
#include "xml_node.h"
#include "xml_document.h"
#include "xml_namespace.h"
#include "xml_element.h"
#include "xml_attribute.h"
namespace libxmljs {
v8::Persistent<v8::FunctionTemplate> XmlNode::constructor_template;
v8::Handle<v8::Value>
XmlNode::Doc(const v8::Arguments& args) {... |
37f96ebca82fff000700d7f4ed0fa231578e5daa | 45fa2277c5a26ed317c5eee75a953c6bf127ea55 | btm1043/COP4634proj1 | /myshell.cpp | C++ | cpp | 1,025 | no_license |
#include "parse.hpp"
int main(int argc, const char* argv[])
{
//Char array to compare user command line argument to set mode to Debug
char debug[] = "-Debug";
//Char array to store user input
char buf[256];
//Create new parse object
Parse p = Parse();
while (p.getFirstArg()!=1)
{
//Command prompt
std:... |
30099d87b69d7b09baaab3cc752ebad607265583 | 5625a55ea52d508f042241e13a4c92a57ccb21e5 | blockyu/algorithm | /암호 만들기.cpp | C++ | cpp | 1,058 | no_license | #include <iostream>
#include <vector>
#include <stack>
#include <algorithm>
using namespace std;
int N, C, LIM;
char moaum[25];
char arr[15];
bool vis[15];
bool compareStr(char lhs, char rhs) {
return lhs<rhs;
}
void printStr(string str) {
int mcnt = 0, gcnt=0;
for(int i=0; i<str.length(); i++) {
if... |
42b10b2b3527a7030cecd0943902f735fd972a43 | 26b2e819539212c6f7fa4d8c7c0f857af7b6810a | alexandraback/datacollection | /solutions_5634947029139456_0/C++/chenxiaoqino/A.cpp | C++ | cpp | 1,331 | no_license | #include <cstdio>
#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <map>
#include <algorithm>
using namespace std;
long long outn[160];
long long reqn[160];
long long cmpn[160];
long long parseln(char s[50],int l)
{
int i;
long long ret=0;
for(i=0;i<l;i++)
{
if(... |
8eb7c04102ef08e1e5794a7152c854e770f0eb69 | 474ab94122b6db884781cfb9f2e917bacfc7e957 | kt117/ProCom | /codeforces/div3/501-600/544/d.cpp | C++ | cpp | 1,337 | no_license | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
const ll MOD = 1e9+7;
const ll INF = 1e18;
#define rep(i,m,n) for(ll i = (m); i <= (n); i++)
#define zep(i,m,n) for(ll i = (m); i < (n); i++)
#define rrep(i,m,n) for(ll i = (m); i >= (n); i--)
#define print(x) cout << (x) << end... |
279bcf53dc38cea045786f199c6e58ed851f495e | 43f331893f5d6768ef0307a382df919f99cb006d | singhsiddharth10/CodeChefDsaLearning | /CodeChefDsaLearning/Complexity/Carvans.cpp | C++ | cpp | 1,407 | no_license | //Most problems on CodeChef highlight chef's love for food and cooking but little is known about his love for racing sports.
//He is an avid Formula 1 fan. He went to watch this year's Indian Grand Prix at New Delhi. He noticed that one segment of the circuit was a long straight road.
//It was impossible for a car to... |
f7dc567594a0faae9b187313c1f36acfb9fbbad4 | 6f97e5b72fcb6ca144c03b314044c64643173483 | imhdx/My-all-code-of-Vjudge-Judge | /HYSBZ/3680/19180802_TLE_0ms_0kB.cpp | C++ | cpp | 1,462 | no_license | ///POJ-2420
///求一个点,使得这个点到n个点的距离之和最小
#include<bits/stdc++.h>
using namespace std;
const double esp=1e-4;
const double pi=atan(1.0)*4;
int n;
/// mt19937 rng((unsigned long long)new char);
double myrand()
{
return (rand() % 1000 + 1) / 1000.0;
}
double x[10003];
double y[10003];
double w[10003];
double getsum(double... |
1a5850b166c4187e86cd2c35aa481f8571947360 | 0669cec7a667a6bda74e9b92dd1ec2844d3a5f03 | nofea/TicTacToe | /Arena/Arena.cpp | C++ | cpp | 13,173 | no_license | #include <algorithm>
#include "Arena.hpp"
#include "DrawGrid.hpp"
using namespace std;
/**
* @brief Construct a new Arena:: Arena object
*
*/
Arena::Arena()
{
objCommons = Commons::GetInstance();
}
/**
* @brief Destroy the Arena:: Arena object
*
*/
Arena::~Arena()
{
}
/**
* @brief Construct a new Arena... |
eb5045f84207c4c343b651dcc3cbc87053701d07 | e621648e5dbcbb4f90b93cf64b7f30617e63f129 | RubisetCie/mario-constructor-master | /Headers/gglobals.hpp | C++ | hpp | 5,910 | no_license | /* Creator : Matthieu (Rubisetcie) Carteron
Language: C++
*/
#ifndef GLOBALS_HPP_INCLUDED
#define GLOBALS_HPP_INCLUDED
#include <SFML/Graphics.hpp>
extern "C"
{
#include <FMODEx/fmod.h>
#include <windows.h>
}
#include <string>
#include <list>
#include "Core/gscene.hpp"
#include "Core/effect.hpp"
#include... |
0e2867ade6ddb45649b517f314004f2ecebfa88e | 2662bb5d7e17b59df5d73c9585d383e556d17cee | jwwangchn/WiSAR-Qt-Yolo | /main.cpp | C++ | cpp | 741 | no_license | #include "mainwindow.h"
#include <QApplication>
#include<QPushButton>
#include<customerview.h>
using namespace std;
using namespace cv;
int WEBCAM_ID = 0;
char VIDEO_FILE[] = "../WiSAR-Qt-Yolo/DJI_0038.MOV";
char INPUT_DATA_FILE[] = "../WiSAR-Qt-Yolo/cfg/voc.data";//coco.data";
char INPUT_CFG_FILE[] = "../WiS... |
facc45e1f1ddd382d52b483a9e19bdaf1d593ba4 | 2c72883f648e8db2e62a5832c68cbd65645a8fa3 | stonejiang/genesis-3d | /Engine/addons/resource/resourceinterface.cc | C++ | cc | 5,266 | permissive | /****************************************************************************
Copyright (c) 2011-2013,WebJet Business Division,CYOU
http://www.genesis-3d.com.cn
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... |
b871ba3de84527af1505fa81b3c37774a7017a30 | 4cbbec19defa8ab862a48d4f2b4a46428aef24d6 | felixyf0124/COMP477_F19_A2 | /OpenGL_Project/OpenGL_dependency/gem/src/app.hh | C++ | hh | 1,470 | permissive | /*************************************************************************
* Copyright (c) 2016 François Trudel
*
* 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, inc... |
340825ae0da03fc8964e45184132473a0d8c59d7 | b7b0349898085ad33e0b3b25bc746640061c0cda | ExpLife/Norton_AntiVirus_SourceCode | /Corporate_Edition/win32/trunk/src/SAVSubmitter/SAVSubmitterTest/SAVSubmitterTest.cpp | C++ | cpp | 5,388 | no_license | // SAVSubmitterTest.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
//#include <iostream>
//#include "SubmissionEngineInterface.h"
#include "SAVSubmitterLoaderHelper.h"
#include "DummyQuarantineSample.h"
#include "DummyAnomaly.h"
#include "ccScanwInterface.h"
#include ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.