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 |
|---|---|---|---|---|---|---|---|---|
2a27182a932aef5bc8b0d827e3e0367e67e2cfe3 | 6a838b7d16eda51ab8c19620684dfcc5f2d947bc | embiway/Junior_Training | /D2/D_Prefixes_and_Suffixes.cpp | C++ | cpp | 2,118 | no_license | #include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
using namespace std;
typedef long long ll;
#define speed ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define mp make_pair
#define pb push_back
#define ff first
#define ss second
#define vi vector<int>
#define vll vector... |
5e2748cce9c0eb8bc0c9f48facc8d281a570e899 | 1c96fd6de604628a6f87e43cb4f1e3a8bb0c1747 | mxmlnkn/indexed_bzip2 | /src/core/BitStringFinder.hpp | C++ | hpp | 11,168 | permissive | #pragma once
#include <algorithm>
#include <array>
#include <cassert>
#include <climits>
#include <cstring>
#include <cmath>
#include <cstddef>
#include <cstdint>
#include <cstdio>
#include <limits>
#include <memory>
#include <sstream>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>
#inc... |
2f00d02a1263585d7a4a05a9ab9644d67e50771f | 69084894611f6ac64e5dc74b9992008d789f18ad | BGCX261/zombigame-svn-to-git | /trunk/Code/Engine/PhysX/PhysicActor.cpp | C++ | cpp | 7,750 | no_license | #include "Actor/PhysicActor.h"
#include "Math/Matrix44.h"
//----PhysX Includes-------------
#undef min
#undef max
#include "NxPhysics.h"
//-------------------------------
CPhysicActor::CPhysicActor(CPhysicUserData* userData)
: m_pUserData(userData)
, m_pPhXActor(NULL)
, m_pPhXActorDesc(NULL)
, m_pPhXBody... |
876a0eaf1d7e1e8c669c73f3e86ef0ff37a9a378 | e971158e555a8b6ae16fd92f97e1ae039b6c0751 | robinwithes/WithesElectricChair | /addons/Withes_ElectricChair/config.cpp | C++ | cpp | 5,309 | no_license | class CfgPatches
{
class Withes_ElectricChair
{
units[] = {""};
weapons[] = {};
requiredVersion = 0.1;
requiredAddons[] = {"A3_Weapons_F"};
};
};
class CfgAddons
{
class Withes_ElectricChair
{
list[]=
{
"Withes_ElectricChair"
};
};
};
class CfgVehiclesClasses
{
class Withes_ElectricChair
{
... |
34e561123423dadae122629869338d9102159be5 | 0f952e726a084df5e89daba4b7ebb001395f6422 | HBPVIS/nest-in-situ-vis | /niv/include/niv/consumer/arbor_multimeter.hpp | C++ | hpp | 2,199 | permissive | //------------------------------------------------------------------------------
// nest in situ vis
//
// Copyright (c) 2017-2018 RWTH Aachen University, Germany,
// Virtual Reality & Immersive Visualisation Group.
//------------------------------------------------------------------------------
// ... |
62e806f7f5096083ff3595a1f92558b31551ecc7 | db0f728ab14102c98500fb4410480426ae4db7d2 | exaos/PKUXIADAQ | /GUI/LogicTrigger.cc | C++ | cc | 79,582 | no_license | // LogicTrigger.cc ---
//
// Description:
// Author: Hongyi Wu(吴鸿毅)
// Email: wuhongyi@qq.com
// Created: 四 7月 28 18:18:03 2016 (+0800)
// Last-Updated: 六 11月 23 14:00:12 2019 (+0800)
// By: Hongyi Wu(吴鸿毅)
// Update #: 217
// URL: http://wuhongyi.cn
#include "LogicTrigger.hh"
#include "Global.hh"
#i... |
62da154d0eca1dd683ab6a29eafbcd19a2613749 | e2c206e7e9df786a9ac5af8c8369d16669979be9 | brunolauze/openpegasus-providers | /src/Providers/UNIXProviders/RoutersInBGPCluster/UNIX_RoutersInBGPCluster_FREEBSD.hxx | C++ | hxx | 1,825 | permissive | //%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... |
9c16551b272daa2a97b9870f59678ce808476139 | 225f267cb6f6674a0aa7ee8714652cbc6d6026d0 | Vaa3D/vaa3d_tools | /hackathon/hanchuan/sscope/smartscope_util.cpp | C++ | cpp | 9,261 | permissive | //smartscope_util.cpp
//some utility functions for the smartscope controller
// by Hanchuan Peng
// 2011-May-13
#include "stackutil.h"
#include "smartscope_util.h"
#include "configfileio_lsm.h"
//#include "smartscope_gui.h"
#include <QDateTime>
void wait_milliseconds( V3DLONG milliseconds )
{
clock... |
678a95e7e8ce7aa0c138be41b06e7eb0889da023 | 0dcaf8578183af62eab9435fd4dc5d831ef227d9 | suppertails66/lonely | /liblonely/src/gamedata/LaylaObjectSets.cpp | C++ | cpp | 2,988 | no_license | #include "gamedata/LaylaObjectSets.h"
namespace Lonely {
LonelyLaylaObjects::LonelyLaylaObject
LaylaObjectSets::lonelyID(int setNum, int objNum) {
switch (setNum) {
case 0:
return set0[objNum];
break;
case 1:
return set1[objNum];
break;
case 2:
return set2[objNum];
break;
case ... |
c01e3670d642e60d4eebe1402d43e66552a4a707 | e0e2a09192f005375163acf0b824c1fdbaabc132 | c-dilks/spinlong | /src/deprecated/LevelTwo_via_chars/LevelTwo.cxx | C++ | cxx | 8,274 | no_license | // Implementation of L2 trigger daq ids, used for masking
// L2sum in the trigger files
#include "LevelTwo.h"
ClassImp(LevelTwo)
namespace
{
const Int_t N_TRIG = 12;
enum trigger_enum
{
kAll,
kHT0,
kSmBS0,
kSmBS1,
kLgBS0,
kLgBS1,
kJP1,
kJP2,
kDijet,
kLED,
kBase,
... |
f12af7fb92554f2a18ce145981cd4039e26f9903 | 9d680ae217709979548bc585a389b294ade4863c | umariqb/Action4Pose_FG2017 | /cpp/body_pose/body_pose_types.hpp | C++ | hpp | 970 | permissive | #ifndef BODY_POSE_TYPES_HH
#define BODY_POSE_TYPES_HH
namespace body_pose{
// TYPE_BODY_J[Number of Joints] // pose style
enum BodyPoseTypes { FULL_BODY_J13 = 13, /* /\
/| |\ [head, l_sho, r_sho, l_hips, r_hips, l_elb, l_wri, r_elb, r_wri, l_knee, l... |
78dcaad951c17d07b0fb010e4ea9cf669e436cb0 | c90d6832458c94ede8658555970c42ebe78c451b | supiccc/Algorithm-learning | /并查集/quick-find/uf/QuickFindUF.hpp | C++ | hpp | 438 | no_license | //
// QuickFindUF.hpp
// quick-find
//
// Created by 陈树沛 on 02/04/2018.
// Copyright © 2018 supiccc. All rights reserved.
//
#ifndef QuickFindUF_hpp
#define QuickFindUF_hpp
#include <stdio.h>
class QuickFindUF {
private:
int * id;
public:
QuickFindUF(int);
bool connected(int, int);
void... |
0b770c65cd4c8693f2daff909a4708e0839c3f26 | 51c4d53d01f0823ba3a8b3e18ad3eb80abba56c1 | cow-coding/algorithm | /BOJ/C++/2164.cpp | C++ | cpp | 383 | no_license | #include <iostream>
#include <queue>
using namespace std;
int main()
{
queue<int> card;
int test;
cin >> test;
for (int i = 1; i <= test; i++)
{
card.push(i);
}
while (card.size() != 1)
{
card.pop();
card.push(card.front());
card.pop();
... |
97f2d957e2eecaef58cfaef92cd030ccc20ea14a | b202f1c9b29b9c2ea86137b0655f19266ba19c7d | MotherOfAllVoids/bachelor_thesis | /src/bcve_otfe/bcve_otfe.cpp | C++ | cpp | 8,769 | permissive | #include <vector>
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <unistd.h>
#include <botan/block_cipher.h>
#include <botan/cipher_mode.h>
#include <botan/hex.h>
#include "BUSE-master/buse.h"
#include "bcve_rsc_parser.h"
using namespace std;
//preprocesses the sector number for XTS to pass to ... |
6e24c933a8f686f2b6a522e3a7a837677706bd2d | d746dbb64343d9eff8e2a1c78e28ee4178c4a721 | 218730/PAMSI | /LAB2/src/test.cpp | C++ | cpp | 419 | no_license | #include "../inc/test.hh"
void Test::Przygotuj(){
srand(time(NULL));
unsigned int tmp;
/*Tablica:*/
cout << "Podaj rozmiar tablicy, ktory chcesz uzyskac: ";
cin >> tmp;
dyn_tab.ustawliczbetestow(tmp);
}
void Test::Wykonaj(){
srand(time(NULL));
S.start();
dyn_tab.dopisz();
S.stop();
//dyn_tab.wielkos... |
e6b43b6586b81e2f832938da64fef2804038eef5 | 9bb18cd084096345ee380dde2dac68e9d4e3d5cf | muhtasim-neon/CodeForces_Problem_Solution | /Arrival of the General.cpp | C++ | cpp | 1,424 | permissive |
███ ██ ███████ ██████ ███ ██
████ ██ ██ ██ ██ ████ ██
██ ██ ██ █████ ██ ██ ██ ██ ██
██ ██ ██ ██ ██ ██ ██ ██ ██
██ ████ ... |
01a080b23c07b8c32ffb78229028396242e28f40 | a3115be4f0d2e9e16b9e3ae52f6f75c5d6101ad5 | mcwiet/vending_machine | /project/VendingMachineRunner/VendingMachineRunner.cpp | C++ | cpp | 1,659 | no_license | #include "VendingMachine.h"
#include "DLLTemperatureController.h"
#include <Windows.h>
#include <thread>
#include <chrono>
#include <exception>
#include <iostream>
class DLL_Load_Exception : public std::exception {};
typedef ITemperatureController& (__cdecl* TEMPCONTROLLER)();
typedef IItemSelector& (__cdecl* ITEMSEL... |
b66c3d721ef7ca919cb2ae757814cf2df36c1622 | a3f0710e7e9eabcce9afbda5c89e3c4ef89645ed | whycoding126/chromium | /chrome/browser/ui/views/frame/opaque_browser_frame_view.cc | C++ | cc | 25,455 | 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/views/frame/opaque_browser_frame_view.h"
#include "build/build_config.h"
#include "build/buildflag.h"
#include "chrome/br... |
86b1c334d2062c1171c9c0e311b32e480c31830a | 6afb08ea1c0c2fbeeec257aa1bfd7a4773b84f76 | bothameister/oxlm | /lbl/train_sgd.cc | C++ | cc | 35,293 | no_license | // STL
#include <iostream>
#include <fstream>
#include <algorithm>
#include <iterator>
#include <iterator>
#include <cstring>
#include <functional>
#include <omp.h>
#include <time.h>
#include <math.h>
#include <float.h>
#include <set>
// Boost
#include <boost/program_options/parsers.hpp>
#include <boost/program_option... |
27451e9aba24e559ddfd631ddf88f4377323298a | 850e57fe069b4e13b54dabfa506ea718c5678c48 | radtek/RSCertSafe | /RSyncControl.cpp | C++ | cpp | 3,031 | permissive | // RSyncControl.cpp: CRSyncControlApp 和 DLL 注册的实现。
#include "stdafx.h"
#include "RSyncControl.h"
#include "Cathelp.h"
#include "objsafe.h"
#include <cassert>
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
CRSyncControlApp theApp;
//const GUID CDECL _tlid = { 0xa8de96ca,0x374b,0x497d,{0xaa,0x5f,0x3c,0x0... |
055c59bcce86e6030128d9f801ae0a807a5af602 | 9e273c2bff8a51a83d43a1a0021d431318e8b528 | zjpanghao/market_info | /src/pub/tools/tools.cc | C++ | cc | 10,380 | no_license | // Copyright (c) 2015-2015 The restful Authors. All rights reserved.
// Created on: 2015/11/24 Author: jiaoyongqing
#include <string>
#include <sstream>
#include <map>
#include <list>
#include "tools/tools.h"
#include "tea/tea.h"
#include "net/typedef.h"
#include "net/error_comm.h"
#include "logic/logic_unit.h"
#incl... |
1d6b837296856b358aad0dcaf09581a0490f1297 | 3e8d71b8f8df3b417ef73fa0ea446d5c5e9dfd4e | Suryansh555/CPP | /MajorityElement-II.cpp | C++ | cpp | 1,054 | no_license | #include<bits/stdc++.h>
using namespace std ;
class Solution {
public:
vector<int> majorityElement(vector<int>&a) {
vector<int> ans;
int n = a.size();
int num1 = INT_MIN;
int num2 = INT_MIN;
int count1 = 0;
int count2 = 0;
for(int ... |
4223efbf81773ed5f8a12c2203343bb1a133049b | c804e38a08eb8e0e1b5ae404d8a0ddf3da317e79 | ghassanpl/reflector | /Source/DB.cpp | C++ | cpp | 239 | permissive | #if __has_include("Options.h.mirror")
#include "../Reflection/Database.reflect.cpp"
#else
#include "../Include/ReflectorClasses.h"
namespace Reflector
{
Class const* Classes[] = { nullptr };
Enum const* Enums[] = { nullptr };
}
#endif
|
584444f5d6b4a6fc2182828024851d35aee63254 | d8b2d44ce6e47af611902fad1cb3b6790128f38f | ohmlim123/Game-suraj-Ohmlim | /SFML_GAME/Bullet.cpp | C++ | cpp | 726 | no_license | #include "stdafx.h"
#include "Bullet.h"
Bullet::Bullet(float x, float y,float z)
{
this->texture_bullet.loadFromFile("Resources/Images/Sprite/bullet/sword_wave2.png");
this->sword_wave.setPosition(x, y);
this->sword_wave.setTexture(texture_bullet);
direction = z;
this->sword_wave.setScale(-1* direction, 2);
... |
1c8fc3b0d902bf683a3541b2e3e009dc6cc7fb5e | 5b2db99cc7cabed02aab7285c8beb94a272b1894 | Ahmad-Shafique/General-purpose-programming | /Summer 2014-2015/Programming Language 2/Ahmed - Final term - Lab 2/Products in shopping mall/main.cpp | C++ | cpp | 1,462 | no_license | #include <iostream>
using namespace std;
class item{
char *name;
int product_id;
public:
item(char *n,int pID):name(n),product_id(pID){}
void show(){cout<<"Product name ="<<name<<endl<<"Product ID ="<<product_id<<endl;}
};
class utility_item:public item{
int discount;
public:
u... |
4a80da49636be3a57c50f8cae48bdb4d8438ff7c | 6107f847d9259168d9788ac9bf816e74f5ee05db | facebook/folly | /folly/experimental/exception_tracer/ExceptionTracerLib.cpp | C++ | cpp | 7,566 | permissive | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... |
0cbab1c30215007ccd586a8ebe97f16519dc52dc | dc4b5c3d4f187236b8fb693547b8ad1957156d67 | dragonbra/acm-codes | /Template/数据结构/RBtree.cpp | C++ | cpp | 2,168 | no_license | template<class T>
struct RBtree{
#define l _M_left
#define r _M_right
#define p _M_parent
#define node _Rb_tree_node_base
#if __cplusplus<=199711L
#define key _M_value_field.first
#define size _M_value_field.second
#else //c++11
#define key _M_storage._M_ptr()->first
#define size _M_sto... |
7a0411dabe4a63938bce2899f2564397c67c8e9f | e732e1b89228e25a47a0b5d998d648527f538849 | ZetaTwo/dd2458-library | /labb3/labb3-library/rational.hpp | C++ | hpp | 4,531 | permissive | // KTH DD2458 popuph14
// authors: magolsso@kth.se
// carlsven@kth.se
#pragma once
#include <cmath>
#include "math.hpp"
template<typename T>
class rational {
public:
rational() : numerator(0), denominator(1) {}
rational(const rational& other) : numerator(other.numerator), denominator(other.denominator) ... |
3cdf837bc59190b3a87ea414784e725a6cc4ae25 | bb143ed33438e539d93e1d82fdc8c16b3005f9dd | AurelienBallier/xfstk | /xfstk-sources/plugins/downloader/cloverview/xfstkdldrpluginuserinterface.cpp | C++ | cpp | 30,388 | no_license | /*
Copyright (C) 2015 Intel Corporation
This library 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; either
version 2.1 of the License, or (at your option) any later version.
This... |
73fb24adee50d09c51e7c8c47b49302952352854 | fa2e0bd137aa1efbfd9a888c442e0b36c10c0785 | hstone1/Simulation-Stencil | /src/graphics/camera.cpp | C++ | cpp | 3,847 | no_license | #include "camera.h"
#include <iostream>
Camera::Camera()
: m_pitch(0), m_yaw(0),
m_look(0, 0, 1),
m_target(0, 0, 0),
m_up(0, 1, 0),
m_viewDirty(true), m_projDirty(true),
m_fovY(90), m_aspect(1), m_near(0.1f), m_far(50.f),
m_zoom(1),
m_view(Eigen::Matrix4f::Identity()),
... |
c4512a2a8d4795da747092d82a3f8e56a7b3ed21 | 7b21021d38c50c6c060a9d08db4172ea6691cd5a | ChihMin/OS_project | /OS_homework2/Bonus/miku.cpp | C++ | cpp | 1,085 | no_license | #include "Miku.h"
void Miku::setSpeed( int _speed ){
speed = _speed ;
}
void Miku::changeMiku( int _x , int _y ){
x = _x, y = _y ;
repaint() ;
}
void Miku::setPosition(){
repaint() ;
x = x + speed ;
if( x >= 1367 ) x = -265;
emit timeout() ;
}
void Miku::paintEvent( QPaintEvent *event ){
QPixmap pixI... |
e2edaf742c47b436b3f8aae4890ec9b1dd48b8a9 | 4b6632d244f5fb21601352cc01b00e0978f71f57 | PixelExperience/frameworks_base | /libs/hwui/tests/common/scenes/RoundRectClippingAnimation.cpp | C++ | cpp | 2,908 | permissive | /*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
53b1f6193d0b39f8516c5b0ab0f6f8e9347911b3 | 33f4d95c19388b0553b103578377105ff290c96d | jameszang/ACM | /RussianCodeCup2ndQualifiers2017/A.cpp | C++ | cpp | 1,327 | no_license | #include <iostream>
#include <vector>
#include <cmath>
using namespace std;
#define nl '\n'
int main() {
int t;
cin >> t;
for (int test = 0; test < t; test++) {
int n, m;
cin >> n >> m;
vector<vector<int>> diagonals;
diagonals.resize(n+m-1);
int currDiago... |
4fe4e50b9281887b15448962c16b01243318ef28 | 4573a856044e52a94c5a4070f074337915f82199 | wangyum/Anaconda | /include/dynd/kernels/arithmetic.hpp | C++ | hpp | 21,691 | permissive | #pragma once
#include <dynd/option.hpp>
#include <dynd/types/option_type.hpp>
#include <dynd/kernels/apply.hpp>
namespace dynd {
namespace nd {
#define DYND_DEF_UNARY_OP_KERNEL(OP, NAME) \
namespace detail { ... |
0f7b77d01fab7a9ecb8ec67dec2aa3bf192e8900 | 725467fa1153729dfa3988805f1b23430a039c21 | yjhu/ljy2002 | /5-b7/5-b6-1.cpp | C++ | cpp | 7,925 | no_license | /* 2053862 刘竞元 信18班*/
#include <iostream>
#include <iomanip>
using namespace std;
int A1[10] = { };
int B1[10] = { };
int C1[10] = { };
int i= 1;
int top1,top2,top3;
void shuchu()
{
cout << "A: ";
for (top1 = 0; top1 <= 9; top1++)
{
if (A1[top1] > 0)
cout << A1[top... |
df66452983033b86d972d88e55ad5cffa441f1b1 | d6d404ccc55409191fd569665e65e97ecad9c45a | TeamVault/tauCFI | /C++ Benchmark Programs/Benchmark Files 1/classtester/autogen-sources/source-6824.cpp | C++ | cpp | 2,613 | no_license | struct c0;
void __attribute__ ((noinline)) tester0(c0* p);
struct c0
{
bool active0;
c0() : active0(true) {}
virtual ~c0()
{
tester0(this);
active0 = false;
}
virtual void f0(){}
};
void __attribute__ ((noinline)) tester0(c0* p)
{
p->f0();
}
struct c1;
void __attribute__ ((noinline)) tester1(c1* p);
struct c1
{
bool ac... |
3b3b3de6f048d6b942b0502e76d70265f13de5a3 | 033ba565e89629c38878553295101c82011b9a60 | stardog-union/boost | /libs/contract/example/features/friend_invariant.cpp | C++ | cpp | 1,735 | permissive |
// Copyright (C) 2008-2018 Lorenzo Caminiti
// Distributed under the Boost Software License, Version 1.0 (see accompanying
// file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt).
// See: http://www.boost.org/doc/libs/release/libs/contract/doc/html/index.html
#include <boost/contract.hpp>
#i... |
56a9030279ebe7f18e258beb090b3733be994bd9 | f93b1ea512542dc2a0e1e00fa49aefcea5ab15c0 | plahera/FRCRobot2016 | /src/Commands/MoveServos.cpp | C++ | cpp | 1,506 | no_license | #include "MoveServos.h"
bool closed = false;
#define hi
MoveServos::MoveServos():Command()
{
// Use Requires() here to declare subsystem dependencies
// eg. Requires(chassis);
}
// Called just before this Command runs the first time
void MoveServos::Initialize()
{
joy = Robot::oi->getDriveJoy();
}
// Called r... |
f71a58f1ed6fd9d3e576a357f3f7c6fd59bf84b1 | 02e79c38b794a20b9a8130b47502196638b63cf8 | anindya028/Programming-Contest-Problems | /UVa/v106/10684.CPP | C++ | cpp | 574 | no_license | #include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
//#define Long __int64
//#define Long long long
int main()
{
int n,*num,max,runsum,i;
while(scanf("%d",&n)==1)
{
if(!n)break;
num=(int *)calloc(n,sizeof(int));
for(i=runsum=max=0;i<n;i++)
{
scanf("%d",&num[i]);
... |
a61535b27840a34f53c2c7c9dd63bdaf8d296765 | 2c0d48a0ceb504af279a44c23648e9a0e90c55c2 | jessexm/intel80tools | /c-ports/plm80/plm.cpp | C++ | cpp | 14,791 | no_license | // $Id: plm.cpp,v 1.2 2004/11/30 23:48:08 Mark Exp $
#include "plm.hpp"
#include "common.hpp"
#include "trace.hpp"
byte *address::memory = new byte[0x10000];
address topMem;
address botMem;
address botInfo;
address topInfo;
address topSymbol;
symbol_pt botSymbol;
symbol_pt curSymbol_p;
info_pt curInfo_p;
word offNe... |
36b61791e1534425473f275dc120b20329c1b170 | 1e0f3631371b1c4371bddca18aa6d73a8a718440 | mm-project/qt_painter | /src/painter/icommand_base.hpp | C++ | hpp | 1,541 | no_license | #ifndef icommand_base_hpp
#define icommand_base_hpp
#include <string>
#include <iostream>
enum CommandType { Interactive = 0, Directive };
class ICommand
{
public:
//virtual void pre_execute() = 0;
virtual void execute() = 0;
//virtual void post_execute() = 0;
virtual void abort(... |
1771af3bfe52ce6b934229a8bca583d4ee134ad3 | 68fb05c15ff392e749f0347597e9c17fb19f5854 | rodrigoAMF/competitive-programming | /Upsolving/URI/1257.cpp | C++ | cpp | 1,359 | no_license | #include <bits/stdc++.h>
#define ALFA 256
#define MOD 1000000007
#define INF 0x3f3f3f3f
#define INFLL 0x3f3f3f3f3f3f3f3f
#define EPS 1e-9
#define PI 3.141592653589793238462643383279502884
#define FOR(x, n) for (int x=0; (x)<int (n) ; (x)++)
#define FOR1(x, n) for (int x=1; (x) <= int (n) ; (x)++)
#define REP(x, n) for... |
ab7c31a931a5a3743759cf297d25d6c6c6f18e70 | febd5d71c4f5c48434cff74fc93ac72e6c15e53a | yonasadiel/cp | /Contests/2018_Ideafuse/Qual_F_ThumbUpThumbDownCuteCat.cpp | C++ | cpp | 453 | no_license | #include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define fi first
#define se second
#define mp make_pair
#define vi vector<int>
#define pii pair<int,int>
#define pll pair<ll,ll>
#define pdd pair<double,double>
#define DEBUG if (debug)
using namespace std;
const bool debug = false;
int main() {
int... |
d333a32c592b07621ca1fb0fc4fb2f6c4697ac9e | 2df50f896aed05b5d58846f3527abbad9c49cf83 | kenlig/oi-wiki-code | /docs/math/code/poly/lagrange/lagrange_1.cpp | C++ | cpp | 773 | no_license | #include <cstdio>
const int maxn = 2010;
long long mod = 998244353;
long long n, k, x[maxn], y[maxn], ans, s1, s2;
long long powmod(long long x, long long n) {//快速幂
long long ret = (long long)1;
while (n) {
if (n % 2 == 1) ret = ret * x % mod;
x = x * x % mod;
n /= 2;
}
return ret;
}
long long i... |
4d20f8c370ebd13ef02e6108d9002fd52f5603d9 | 0363a3dbd5c82ec08cc6dee6a4697ed93f5ba3bf | bdnguye2/divergence_mbpt_noncovalent | /data/s66/mp2/cp_corrected/40/AB/cc-pVQZ/1_ghosts/restart.cc | C++ | cc | 444 | no_license | $chkbas= 55718.8254273299
$nucrep= 203.685388007392
$chkaux= 317968655.126278
$chkupro= 1.00000000000000
$chkipro= 2.00000000000000
$chklasrep= 1.00000000000000
$chkisy6= 4.00000000000000
$chkmos= 779.932429606132
$chkCCVPQ_ISQR= 23398.4387137862
$chkbqia= 29.0113807144190
$chkr0... |
cb4a7020a892c8bcd1b57245f9460d54b1927d25 | de2d82a0196f226db3bca75c0bea17892850b267 | J-Olmos/OlmosJohn_CSC_5_Winter_2018 | /Homework/Assignment_2/Gaddis_8thEd_Chap3_Prob01_MPG/main.cpp | C++ | cpp | 1,015 | no_license | /*
* File: main.cpp
* Author: John Olmos
* Created on January 10, 2018, 12:27 PM
* Purpose: Calculate miles per gallon
*/
//System Libraries
#include <iostream>
#include <iomanip>
using namespace std;
//User Libraries
//Global Constants - Math/Physics Constants, Conversions,
// 2-D Array Di... |
e9e530f9d710967d5b1ab7698fe9d9101e342a42 | 47919066b69df9794f95cfde35a924b8a4ebf109 | jongilm/ColourRamp_Win32 | /ColourRamp.cpp | C++ | cpp | 4,041 | no_license | /*****************************************************************************
* FILE NAME : ColourRamp.cpp
* MODULE : ColourRamp
* AUTHOR : Jonathan Gilmore
* CREATION DATE : 13/11/2011
*
*****************************************************************************
*
* DESCRIPTION : D... |
49c53b5bb531ea42c4908f7b9c0bfe5db80094c5 | fa140d5ce18f006039d93bc20b950681ee799aac | pankajdevrath96/Cpp | /Basic_cpp/array of objects.cpp | C++ | cpp | 770 | no_license | #include "iostream"
using namespace std;
class demo
{
int age;
char name[50];
public:
void input()
{
cin>>name>>age;
}
void logic(demo a[],demo b[],int n)
{
int l1=0,l2=0,i,x=0,y=0;
for(i=0;i<n;i++)
{
if(a[i].age>l1)
{
x=i;
l1=a... |
a210e1c292c62626a0d86986f581942afcd8ab6b | e82746128214768f24d1a4a396e50d028adb4c5d | alinous-core/codablecash | /src_test/p2p/instance/test_p2p_client_connection.cpp | C++ | cpp | 3,514 | permissive | /*
* test_p2p_client_connection.cpp
*
* Created on: 2023/08/11
* Author: iizuka
*/
#include "test_utils/t_macros.h"
#include "bc_network/NodeIdentifierSource.h"
#include "bc_network/NodeIdentifier.h"
#include "bc/CodablecashConfig.h"
#include "bc/DebugDefaultLogger.h"
#include "bc/CodablecashNodeInstance.h... |
9c25b61d5bc229964aeea518e4810eb5004049ee | 223171744c9ef9d6c6d14e8874526012c2e634ba | kimsin3003/X10 | /study/cocos2d 스터디/week1/Classes/Scene3.cpp | C++ | cpp | 3,168 | permissive | #include "Scene3.h"
#include "Scene4.h"
#include "ui/UIButton.h"
#include <iostream>
using namespace cocos2d::ui;
USING_NS_CC;
Scene* Scene3::createScene()
{
// 'scene' is an autorelease object
auto scene = Scene::create();
// 'layer' is an autorelease object
auto layer = Scene3::create();
/... |
ca9a8056e54249b76665649eacf2e91068cef824 | 4495e087058ae39aaf1b613fb85798235995678e | ximenzhuyu/mir2x | /server/monoserver/src/npcharop.cpp | C++ | cpp | 6,943 | no_license | /*
* =====================================================================================
*
* Filename: npcharop.cpp
* Created: 04/12/2020 16:27:40
* Description:
*
* Version: 1.0
* Revision: none
* Compiler: gcc
*
* Author: ANHONG
* Email: anhonghe@gmail... |
70dcb93fbbc6e289d2fca0d0f5ab1d0812e13f61 | 83ac0822cf1c10f9e999c8226e9ac32c8083ddec | A0nameless0man/Pile | /ProblemSet/HDUOJ/Multi-University2020/TrainingContest3/Data/std/1002/std.cpp | C++ | cpp | 2,271 | no_license | #include <bits/stdc++.h>
using namespace std;
long long n, N, L, R, sum, ans;
vector<pair<long long, long long>> v;
struct Queue
{
deque<pair<long long, long long>> v;
deque<pair<long long, long long>>::iterator p;
void push(pair<long long, long long> x)
{
ans += x.first * x.second;
while (p != v.end... |
2693164f4f97d8a5562a36d3149c793f1107d8b7 | 349b098b6830688bf49071eb527af1829dfe5325 | wellesleywatson/Comp-3180-Lab5 | /src/stream_wrap.cc | C++ | cc | 21,417 | permissive | // Copyright Joyent, Inc. and other Node contributors.
//
// 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, modi... |
f023b20a9656b07ed77a77a5d7c6c752025930b5 | 35fe7fa895e38213ea810afaf66801cd7ea8a9a4 | zowhair/chromium | /device/bluetooth/dbus/bluetooth_agent_manager_client.cc | C++ | cc | 5,274 | permissive | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "device/bluetooth/dbus/bluetooth_agent_manager_client.h"
#include "base/bind.h"
#include "base/logging.h"
#include "base/macros.h"
#include "dbu... |
3608854b3aed0afea2edcf8ab129be644f3ff5a8 | 106639096bcc979dd7b91fc2955d0cd7b1a8298c | gabides/LTM-Engine | /LTM-Engine/drawScreen.cpp | C++ | cpp | 4,925 | no_license | //
// drawScreen.cpp
// LTM-Engine
//
// Created by Gabriel Dittrick on 18/04/2018.
// Copyright © 2018 Gabriel Dittrick. All rights reserved.
//
#include "Header.h"
void drawScreen( Mat& img, int AU, Point tl, Point br, string emotion, int nColor)
{
vector<string> actionUnits;
int xleft, ytop, xrigh... |
2511ca906cb89c87613d1d4e6d07e5e7a27acb30 | fd34f5e0605309a6dedaac4c4078db7546d90a1a | Z3r0B7i55/Escape-Hatch | /GAM312_FinalCharacter.cpp | C++ | cpp | 18,191 | no_license | // Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#include "GAM312_FinalCharacter.h"
#include "GAM312_FinalProjectile.h"
#include "Animation/AnimInstance.h"
#include "Camera/CameraComponent.h"
#include "Components/CapsuleComponent.h"
#include "Components/InputComponent.h"
#include "GameFramework/Inp... |
748eea6db4cd534aa3e58e0690bde72989c28ccd | 7ebba7ddae464113a1a3ab3eb1c4a7079312be05 | shlomif/Impatience | /game_state.cpp | C++ | cpp | 1,733 | permissive | /* Copyright (c) 2012 Ivan Rubinson, Nitin Reddy Katkam
*
* 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,
* ... |
052dc599975b42a1e7b204b6515fba79662c349f | 4f226c00cc756926782cf4ac205c450983f0af79 | docp0/opencv | /android/service/engine/jni/NativeService/PackageInfo.cpp | C++ | cpp | 12,328 | no_license | #include "EngineCommon.h"
#include "PackageInfo.h"
#include "HardwareDetector.h"
#include "IOpenCVEngine.h"
#include "StringUtils.h"
#include <assert.h>
#include <vector>
#include <utils/Log.h>
#include <dlfcn.h>
using namespace std;
map<int, string> PackageInfo::InitPlatformNameMap()
{
map<int, string> result;
... |
da35e708178dfe42243fb31a238c4e7624ce846e | 3e81235e65fa308e9504cfc1742d6ef1dd73e9de | zzzlight/pat | /1135.cpp | C++ | cpp | 2,064 | no_license | #include<stdio.h>
#include<vector>
#include<algorithm>
#include<math.h>
using namespace std;
vector<bool> result;
bool flag=true;
struct Node
{
int data;
Node* leftchild;
Node* rightchild;
int blackcount;
};
int inorder[100];
int preorder[100];
vector<int> black;
bool cmp(int a,int b)
{
return abs(a)<abs(b);
}
N... |
aa21058cd1438c8909fbcba13660c644c2a9bd5f | 1ad2be056349d3eff22d76493e7faa13f256362b | Noiri/Competitive_Programming | /Atcoder/ABC_s1/ABC_122/C-GeT_AC.cpp | C++ | cpp | 1,327 | no_license | #include <bits/stdc++.h>
using namespace std;
int a[1000001];
int main(){
int n, q;
cin >> n >> q;
string s;
cin >> s;
for(int i=1; i<n; i++){
bool flag = false;
if(s[i-1] == 'A' && s[i] == 'C'){
a[i-1]++;
a[i]++;
}
a[i+1] =... |
42dc50c14e9e5e3be8f9a543b1e7dc9856cd25b5 | 87f2f491e6e53a6f2deafa6704b9419a2c95b138 | adriaanbosch/Uni-Gem-Shooter | /Solo Assignment/Game/GemShooter/Framework/gem.cpp | C++ | cpp | 509 | no_license | #include "gem.h"
#include <vector>
Gem::Gem()
{
GameObject();
}
Gem::~Gem()
{
}
bool Gem::Initialise(Sprite* sprite)
{
return GameObject::Initialise(sprite);
}
const char* Gem::GemRandom()
{
int rannum = 1 + rand() % 5;
switch (rannum)
{
case 1:
return "gemblue.png";
break;
case 2:
return "gemred.png"... |
30b5650d611396c5bfd196b455ba1ee53d66f2cc | c48d01920b1504dcfd531ccde8d446cc15a2406f | elenaleegold/golde584_dtOF_2018 | /wk06_interstellar/src/Mover.cpp | C++ | cpp | 2,433 | no_license | //
// Mover.cpp
//
// Created by Tyler Henry on 10/4/18.
//
#include "Mover.hpp"
Mover::Mover()
{
pos = glm::vec2( ofRandom(ofGetWidth()), ofRandom(ofGetHeight()) );
mass = ofRandom(1,5);
vel = glm::vec2(0,0);
acc = glm::vec2(0,0);
color = ofColor(255);
glowEnl = 3.5;
}
Mover::Mov... |
17a154a7d59257873f45ef0e182777d3604dded5 | 263c5ad50468fabb54e6ffd376e516d9427ec788 | Breeze0806/leetcode | /cpp/343. Integer Break.cpp | C++ | cpp | 373 | no_license | func _pow(n int) int{
ans := 1
for i := 0; i < n; i++{
ans *= 3
}
return ans
}
func integerBreak(n int) int {
if n == 2 {
return 1
}
if n == 3 {
return 2
}
if n % 3 == 0 {
return _pow( n / 3 )
}else if n % 3 == 1 {
return 4 * _pow(n / 3 - ... |
05349088fed5bab41a101e9af2b2903b237a9d4e | 167f6bb2c0b2fe53e991c88d04100fc969c09d17 | unkindypie/task10 | /task10/task1.cpp | C++ | cpp | 1,120 | no_license | #include <iostream>
#include "task1.h"
#include <stdio.h>
void taskOne()
{
int mounth[13];
int theBiggest[13];
int theSmallest [13];
int biggestMonth = 0;
int smallestMonth = 0;
int periodLow;
int periodHight;
printf_s("\nSelect the first mounth of the period:");
scanf_s("%d", &periodLow);
printf_s("\nSelect... |
e911d331eb0facc97e74ca4aaa44c9e437b240b2 | aeada080373b9151d2a5fff56820f9656d66286f | bharatmazire/Win32_COM_.NET_WINRT | /WinRT/2-GUI/1-IDE/Hello/MainPage.xaml.cpp | C++ | cpp | 722 | no_license | //
// MainPage.xaml.cpp
// Implementation of the MainPage class.
//
#include "pch.h"
#include "MainPage.xaml.h"
using namespace Hello;
using namespace Platform;
using namespace Windows::Foundation;
using namespace Windows::Foundation::Collections;
using namespace Windows::UI::Xaml;
using namespace Windows::UI::Xaml... |
1195cc86ac9e2fe46654f10d391521391bb5b77e | b621d5f8e0d11eff465258ee245cc8456c44d96e | mahesh6947/kdenliveaudiomixer | /timeline2/model/trackmodel.cpp | C++ | cpp | 38,053 | no_license | /***************************************************************************
* Copyright (C) 2017 by Nicolas Carion *
* This file is part of Kdenlive. See www.kdenlive.org. *
* *
* This pr... |
a24fd85a069432744eb6e3c4774ebf70c40f898c | 0d22ca7dd905f694491cabd792129029a56a4b8c | yetote/OboeDemo | /app/src/main/cpp/audio/OboePlayer.cpp | C++ | cpp | 5,022 | no_license | //
// Created by ether on 2019/3/27.
//
#include "OboePlayer.h"
void OboePlayer::readData(AudioStream *pStream) {
size_t wFrameCount = 0;
Result result;
char *buffer = new char[44100 * 2 * 2];
do {
wFrameCount = fread(buffer, 44100 * 2 * 2, 1, file);
result = pStream->write(buffer, 4... |
9e836b7b8a7f80e1bc18c5d4a9b3d8d943813cc3 | 57028941be6355c688a3e6cb9907e3c29e83e912 | winlp4ever/cvisionworkspace | /basics/ransac.cpp | C++ | cpp | 4,295 | no_license | #include <iostream>
#include <opencv2/core.hpp>
#ifdef HAVE_OPENCV_XFEATURES2D
#include "opencv2/calib3d.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/features2d.hpp"
#include "opencv2/xfeatures2d.hpp"
using namespace cv;
using namespace cv::xfeatures2d;
using std::cout;
using std... |
4fb5fa123dfe60279220c1f5075551fa6f7792c4 | 9d338d13a38c8e03c0457bd43da8568bfa011a6d | pulcherriman/Programming_Contest | /AtCoder/AHC/001-010/AHC002/ahc002_a.cpp | C++ | cpp | 9,810 | no_license | #pragma region Perfect Template
#pragma region Unsecured Optimization
#pragma GCC target("avx")
// #pragma GCC optimize("O3,inline,omit-frame-pointer,no-asynchronous-unwind-tables,fast-math")
#pragma GCC optimize("unroll-loops")
#pragma endregion
#pragma region Include Headers
#if defined(ONLINE_JUDGE) || defined(_DEB... |
0de1527965035da485558b95c48e7934bc6ef0f5 | d67424c6ce54f4c6cd3707dc81ef53a591c6f82e | boa85/min_path | /command_handler/include/command_handler.hpp | C++ | hpp | 1,620 | no_license | //
// Created by boa on 09.08.17.
//
#ifndef MIN_PATH_COMMAND_HANDLER_HPP
#define MIN_PATH_COMMAND_HANDLER_HPP
#include <string>
#include <functional>
#include <memory>
#include "icommand.hpp"
namespace min_path {
namespace command_handler {
/**
* @class CommandHandler - in classical descri... |
78394c8ab4649df884b279398df335ec6a0e445b | f80732a6a5f45066469d9228f8bfea3de5ea3953 | apdaza/bookprogramming | /ejercicios/c++/ejercicio087.cpp | C++ | cpp | 878 | no_license | #include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
//procedimiento que llena aleatriamente la matriz
void llenado_aleatorio(int[3][4]);
//procedimiento que muestra en pantalla la matriz
void ver_matriz(int[3][4]);
int main(int argc, char *argv[]) {
int matriz[3][4];
int divisor;
srand(t... |
cd90543b6639afc7f942801ef0a44385c32aa748 | bec523ff4c7e978cb0603b5ee42fb25414582a1d | lzieniew/zero_sum_game_algorithm | /ut/BoardSecondPhaseTests.hpp | C++ | hpp | 4,025 | no_license | #include "gtest/gtest.h"
#include <utility>
/*
test board
W - white pawn
B - black pawn
o - empty field
B-----o-----B
| | |
| o---W---o |
| | | | |
| | B-B-W | |
| | | | | |
W-B o W-W-B
| | | | | |
| | W-B-B | |
| | | | |
| o---W---o |
| | |
W-----B-----W
*/
namespace {
const std::vec... |
0cd08cc0476eac812bbc590c453df13109aec437 | 8262f05fd86a4e0474c709cfde88b4d9691c3543 | NJUxlj/DataStructure | /数据结构课程设计/排序.cpp | C++ | cpp | 10,149 | no_license | #include<iostream>
#include<ctime>
#include<fstream>
using namespace std;
#define test0 "test0.txt"
#define test1 "test1.txt"
#define test2 "test2.txt"
#define test3 "test3.txt"
#define test4 "test4.txt"
#define test5 "test5.txt"
#define test6 "test6.txt"
#define test7 "test7.txt"
#define test8 "test8.txt"
#define tes... |
91364c4ef7067d7f28bbf33ac18120412803bd8c | 96817c0329c29baa5bc210b5d25fe350db2267c4 | JordiSubirana/ATEMA | /src/Atema/Graphics/RenderResource.cpp | C++ | cpp | 1,771 | permissive | /*
Copyright 2023 Jordi SUBIRANA
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute,... |
6c1b8b4f6ccf4f4fbc361d7954de3a9014b6b260 | 5437b0f79dd4c806118571c5a10f1423bc8e1410 | swift-embedded/swift | /test/Inputs/BaremetalSupport/commandline.cpp | C++ | cpp | 886 | permissive | #include <vector>
#include <string>
#include <cstring>
extern "C" char* get_commandline(int* outLen);
char** _user_get_commandline(int* outArgLen) {
int cmdline_len;
char* buffer = get_commandline(&cmdline_len);
std::vector<char*> args;
int start_pos = 0;
while (start_pos < cmdline_len) {
int end_pos... |
fe1b2a4ec16fa1e841880cc85186fbcaee4105cd | 00a10658f489d944a83de32c140da1abcc974336 | resonai/google-cloud-cpp | /google/cloud/storage/oauth2/authorized_user_credentials_test.cc | C++ | cc | 13,990 | permissive | // Copyright 2018 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 w... |
a8abfaa3f825ea34062476cee070cb1771020759 | 349292a41c6c684301f310146540c153f937d325 | myerco/ProjetoPlataforma | /Source/ProjetoPlataforma/core/PlataformaGameInstance.cpp | C++ | cpp | 295 | no_license | // Fill out your copyright notice in the Description page of Project Settings.
#include "PlataformaGameInstance.h"
void UPlataformaGameInstance::Init()
{
//UE_LOG(LogTemp, Warning, TEXT("Classe do menu %s"), *MenuClass->GetName());
UE_LOG(LogTemp, Warning, TEXT("Inicializando o menu"));
}
|
d5ec842fcef807e8520ca74453787e156063adba | 7e9597c43b8012c47a65db78269164489aab7017 | tutran171093/Programming_Challenges | /The3nPlus1/The3nPlus1_TuTran.cpp | C++ | cpp | 1,377 | no_license | /*
The 3n + 1 Problem
Technique: Dynamic Programming (Memoization - Top Down)
Author: Tu Tran
*/
#include <iostream>
#include <stdio.h>
using namespace std;
long dataTableOfPreviousCal[1000000];
long sizeOfDataTable = 1000000;
int countCycleLength(unsigned long long n);
int main() {
//Cycle length of 1 is 1
dataT... |
1130d25be53c53ca001e1b763cc44348415261e9 | e67f621bdc0c3cffe342a285da5a9abf1f397179 | maqsoftware/Simple-Class | /goa/cocos2d/cocos/renderer/CCGroupCommand.cpp | C++ | cpp | 2,757 | permissive | /****************************************************************************
Copyright (c) 2013-2016 Chukong Technologies Inc.
http://www.cocos2d-x.org
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 th... |
c5706f274ad62cc34142037514d5f39652097d99 | abf5d6a649edbb3c8ee579e42f8e3af6fbe6cc24 | IsisEden/v8 | /src/wasm/wasm-js.cc | C++ | cc | 33,154 | permissive | // Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/api-natives.h"
#include "src/api.h"
#include "src/asmjs/asm-js.h"
#include "src/asmjs/asm-typer.h"
#include "src/asmjs/asm-wasm-builder.h"... |
9250062447f31a665fd82da35b4e5483e6df9958 | 49f980aaad247130f34db0c52e25077800d9e326 | enlarsen/pdf2xml | /pdf2xml/xpdf/xpdf/Annot.cc | C++ | cc | 7,702 | no_license | //========================================================================
//
// Annot.cc
//
// Copyright 2000-2003 Glyph & Cog, LLC
//
//========================================================================
#include "aconf.h"
#ifdef USE_GCC_PRAGMAS
#pragma implementation
#endif
#include <stdlib.h>
#include "gmem... |
968ea300060980041d3a0577c5c0f46037f3c7c5 | 1ea8baa92edea2fb9ec9fa442cccf41d679a9d3c | pb-cdunn/blasr_libcpp | /alignment/datastructures/alignmentset/SAMSupplementalQVList.hpp | C++ | hpp | 907 | no_license | #ifndef _BLASR_SAMSUPPLEMENTALQVLIST_HPP_
#define _BLASR_SAMSUPPLEMENTALQVLIST_HPP_
#include "SMRTSequence.hpp"
#include "SAMQVConversion.hpp"
class SupplementalQVList {
public:
//enum QVList {InsertionQV=0x1, DeletionQV=0x2, SubstitutionQV=0x4, MergeQV=0x8, SubstitutionTag=0x10, DeletionTag=0x20};
//enum QVIndex {I... |
f245c69007b6b04ac8ed4f86fd9e2d4109181c80 | 1025bcd928a83ced40adb854a830956fb944bd9a | Let0s/node | /deps/v8/src/mips64/code-stubs-mips64.cc | C++ | cc | 68,302 | permissive | // Copyright 2012 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.
#if V8_TARGET_ARCH_MIPS64
#include "src/api-arguments.h"
#include "src/bootstrapper.h"
#include "src/code-stubs.h"
#include "src/codegen.h"
#include "s... |
292555e2587049a01c5b4c52f1c6726c3bb5d18a | c1437c7983a7e313fd139f4b024ddd8168e9fa83 | kmmao/VideoMonitor | /Video Monitor/QT/cwskcontrolwin.cpp | C++ | cpp | 10,933 | no_license | #include "cwskcontrolwin.h"
#include "ui_cwskcontrolwin.h"
#include <QPainter>
int WndNum[] = {1,2,4,8,16,32,64};
cwskcontrolwin::cwskcontrolwin(QWidget *parent) :
QWidget(parent),
ui(new Ui::cwskcontrolwin)
{
ui->setupUi(this);
this->setWindowTitle("多屏监控");
for (int i = 0; i< WND_MAX_NUM; i++)
... |
67ba307a078056aead9263e12f9ab4cc86cabfe4 | 3ce7c6a7f835e490047e8e366c2ef79d767e2a96 | ChrisCN97/poj | /1001.cpp | C++ | cpp | 1,866 | no_license | #include <vector>
#include <string>
#include <iostream>
using namespace std;
/*
123.123 2
use string to save number
use vector to save number one by one
multi() to calculate one time multiplication
add the dot
*/
vector<int> multi(const vector<int> result, const vector<int> numList) {
vector<int> temp(numList.size()... |
32ffee62d6daf4d35b85e316786c61392342e4d9 | d7f0518db0320857474694caf041db9d92d577ab | FedorSupran/lab_individual | /SUPRAN_F_K_INDIVIDUAL/SUPRAN_F_K_INDIVIDUAL.cpp | C++ | cpp | 4,183 | no_license | #include <iostream>
#include <algorithm>
#include <ctime>
#include <random>
#include <cmath>
/*
* Индивидуальное задание
* Автор: Супран Федор Константинович
* Группа: ПИ2-2
*/
/*
* Одна функция будет разделять массив на числа меньше нуля и числа больше нуля,
* то есть в левой части массива положительны... |
893745c27fc3f85c8e689f783910e4f04c19792e | 84daacfac4895d5af11813c391d45b7be1f3442c | igorglotov/tizen-vk-client | /src/ui/widgets/attach/IElementActionListener.cpp | C++ | cpp | 326 | permissive | /*
* IElementActionListener.cpp
*
* Created on: Nov 23, 2013
* Author: Igor Glotov
*/
#include "IElementActionListener.h"
IElementActionListener::IElementActionListener() {
// TODO Auto-generated constructor stub
}
IElementActionListener::~IElementActionListener() {
// TODO Auto-generated destructor st... |
2ba0208d06c61ff566ed3449183803c455976038 | b7c9faa85cad5e5eb882d6b29175ec7b5988a9c7 | kwonalbert/kkz_pokerbot | /src/kkzpokerbot/lib.hpp | C++ | hpp | 13,250 | no_license | #ifndef __LIB_HPP__
#define __LIB_HPP__
#include <iostream>
#include <string>
#include <sstream>
#include <time.h>
#include <vector>
using namespace std;
struct newgame {
std::string your_name;
std::string opp_name;
int stack_size;
int bb;
int num_hands;
double time_ba... |
41e5589e30129a9f3ad9bc61008431dd9221a759 | 06d17cdfccb89c31917465e55e36150d40c57f87 | BackupTheBerlios/qedo-svn | /tags/rel_0_0_3/examples/general/philosopher/IDL/dinner_ObserverImpl.cpp | C++ | cpp | 6,454 | no_license | //
// generated by Qedo
//
#include "dinner_ObserverImpl.h"
// BEGIN USER INSERT SECTION file
#include "ExecutorValuetypes.h"
#include <iostream>
using namespace std;
// END USER INSERT SECTION file
namespace dinner {
// BEGIN USER INSERT SECTION ObserverSessionImpl
// END USER INSERT SECTION ObserverSessionIm... |
d102eb3c9c09a090c8dbeb1cce12cd6249d1f0b4 | aaae3ee2449b557af7e7c986545a23dae16a5768 | abhi25g/CPP | /Arrays/rearrangement/mcss.cpp | C++ | cpp | 546 | no_license | #include<iostream>
using namespace std;
int main()
{
int *arr,*ms,size,sum;
cout<<"\nEnter the size of the array ";
cin>>size;
arr=new int[size];
ms=new int[size];
cout<<"\nEnter the array ";
for(int i=0;i<size;i++)
{
cin>>arr[i];
ms[i]=arr[i];
}
for(int i=0;i<size;i++)
{
sum=arr[i];
int j=(i+1)%size... |
17981fa3562574211e49e0ef68ff1e9b5ca01082 | 61fc7fd0cdf802ff7b0a17f8bef80455e9dd098d | RMMichael/GeneralAlgorithms | /minDistanceStrings/main.cpp | C++ | cpp | 1,101 | no_license | //
// main.cpp
// minDistanceStrings
//
// Created by Richard Michael on 9/7/19.
// Copyright © 2019 Richard Michael. All rights reserved.
//
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
int main(int argc, const char * argv[]) {
std::string s1,s2;
std::cin >> s1;
std::c... |
61716c53c88f62a964d2eafd82652e2f47b83b74 | 6ae0919e6df6e0df9a24240e89967eec7e8c6b93 | Liljan/LearnOpenGL | /src/Main.cpp | C++ | cpp | 4,973 | no_license | //#define GLEW_STATIC
#include <GL\glew.h>
#include <GLFW\glfw3.h>
#include <iostream>
// Shaders in here like a dumbass.
const GLchar* vertexShaderSource = "#version 330 core\n"
"layout (location = 0) in vec3 position;\n"
"void main()\n"
"{\n"
"gl_Position = vec4(position.x, position.y, position.z, 1.0);\n"
"}\0"... |
4b5238b536d896b416aaf4352c90f4982899a60c | 674757acb65b60921ca1dd0f34f3889a120dd711 | fourthbox/hackatomb | /src/engine.hpp | C++ | hpp | 1,443 | no_license | #ifndef ENGINE_HPP_
#define ENGINE_HPP_
#include "player.hpp"
#include "map_builder.hpp"
#include "maps_manager.hpp"
#include "root_console_manager.hpp"
#include "ui_manager.hpp"
class Engine {
public:
// Singleton stuff
static Engine& GetInstance() {
static Engine instance;
return instance;
... |
5500b56c28e2e41e4223fb08674e6adfcea1003a | c51c62f67e3019acefbbfa2231e3a33f593c7e1d | wangrangzhi/ACM-code--fragment | /Parsing.cpp | C++ | cpp | 2,351 | no_license | #include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#define MAXTOKENS 100
#define MAXTOKENLEN 64
enum type_tag {IDENTIFIER, QUALIFIER, TYPE};
struct token
{
char type;
char string[MAXTOKENLEN];
};
int top = -1;
struct token stack[MAXTOKENS];
struct token this;
#define pop stack[top--]
#... |
d5f61b17831ce09f6846b29e5db9acb0a2b8641b | 2d188b7c72c50468f9ac96c57dac39b8433ca046 | jobez/LiveTuiles | /src/gui/TuileParamGroup.hpp | C++ | hpp | 681 | no_license | /***************************************************************************
* TuileParamGroup.h
* 2012-2013 Florent Berthaut
* ANR INEDIT Project
* This file is part of LiveTuiles
****************************************************************************/
#ifndef _TuileParamGroup_H
#define _TuileParamGroup... |
1f3137ca631fae2f3a376a2e07f0a9b16769cfe1 | 472380f6009b9371b8c1e16770f1ee61680c84e3 | smagri/uni_masters | /pms/lecturesPlusTutorials/week4.virtualFns.fnOverloading/proj/wrks/preOperatorOverload/inClass/orig/shapefunctions.cpp | C++ | cpp | 344 | no_license | #include "shape.h"
namespace shape_functions {
double getAreaOfBoundingShapes(Shape ** shape_array, int num_shapes, double x, double y) {
double total_area = 0;
for (int i = 0; i < num_shapes; i++) {
if (shape_array[i]->pointIsInShape(x,y)) {
total_area += shape_array[i]->area();
}
}
re... |
6338162378a3a6bf1f7d14aaa4b9183aa31d7d77 | 032048a349a968d28218ef56ab075b0a35b9b62e | Zwysun/AUH | /参考资料/5/树莓派程序/LineDetect.hpp | C++ | hpp | 1,079 | no_license | #include <opencv2/opencv.hpp>
#include <iostream>
#define RED 1
#define GREEN 2
#define BLUE 3
#define PI 3.14
using namespace cv;
using namespace std;
class LinePointFinder
{
private:
//检测到的线段端点
Point pointBegin;
Point pointEnd;
//检测参数
int colorMode; //检测颜色模式
int lineWidth; //检测的最小线宽
int pointNum; //待拟合直线的... |
fc4f1710a561f07fd89635ccbe604d1b496e4d46 | 94053184ed9c2d40b37e4b1fb15b0041581f7cd4 | SanjirSalsabil/Coding_Questions | /String and Arrays/permutaions.cpp | C++ | cpp | 933 | no_license | #include<iostream>
#include<cstring>
#include<unordered_map>
using namespace std;
int main()
{
string name1,name2;
cin>>name1>>name2;
unordered_map<char,int> record;
int len1 = name1.length();
int len2 = name2.length();
if(len1 != len2)
{
cout<<"Not an identical pa... |
2f2e41306708ff72db06a9815b92a7438f892658 | eb98a6d4bb12c605f142d33951c4ae53040b9447 | SecMeant/pwr-pea | /doc/rap2/invert_op.cc | C++ | cc | 652 | no_license | template<init_strat_e strat>
struct invert_op
{
using parent_t = tabu<invert_op, strat>;
void
operator()(Path::iterator a, Path::iterator b)
{
this->swap(a, b);
}
void
swap(Path::iterator a, Path::iterator b)
{
std::reverse(a, std::next(b));
}
struct try_swap_res
{
cost_t cost;
... |
f0e11f96a05db0ed913d85801fc7335e7c8f7dcd | cdcba5a9627112463a61294b3a4dbd4d5898a0ee | jonasohland/si_headtracker_net | /src/net.cpp | C++ | cpp | 6,484 | no_license | #include "net.h"
#include "debug.h"
// #define ZEROCONF_IP 0xA9FE2D01
#define ZEROCONF_IP 0x012DFEA9
#define ZEROCONF_SUBNET 0x0000FFFF
#define HEADTRACKER_SERVICE_PORT 11023
byte mac[] = { 0x00, 0x19, 0x7C, 0xEF, 0xFE, 0xED };
void si_eth_hwprepare()
{
digitalWrite(SI_HWRESET_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.