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 |
|---|---|---|---|---|---|---|---|---|
0023d1b621d8626476a0751bb0fb53dfd5ad1d3e | 10cc085fc70549c66d06189428202dd3466912a7 | lflo5727/CS201-Labs | /CS201L-Lab4/main.cpp | C++ | cpp | 1,813 | no_license | // Liam Floyd
// 9/28/17
// Lab #4
#include "LibraryBook.h"
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
// File stream variables
ifstream finBooks("books.txt");
ifstream finISBN("isbns.txt");
ofstream fout("checkedout.txt");
string bookName, boo... |
9e36dec27e6bd6219e62485a8baa52c2d3e11f5a | b0f67d1427a607586ab26fc7c4e3947f28e20016 | thorstenhater/arbor | /modcc/printer/gpuprinter.cpp | C++ | cpp | 19,595 | permissive | #include <cmath>
#include <iostream>
#include <string>
#include <set>
#include "gpuprinter.hpp"
#include "expression.hpp"
#include "io/ostream_wrappers.hpp"
#include "io/prefixbuf.hpp"
#include "printer/cexpr_emit.hpp"
#include "printer/printerutil.hpp"
using io::indent;
using io::popindent;
using io::quote;
void em... |
81374c6aa56dc39aee9cac9f23106196ac4107bc | 1377d2a87522d4e361b11a2993dad7df8577ba96 | BrutalD/chromium | /components/page_load_metrics/renderer/metrics_render_frame_observer.cc | C++ | cc | 19,768 | permissive | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/page_load_metrics/renderer/metrics_render_frame_observer.h"
#include <string>
#include <utility>
#include "base/memory/ptr_util.h"
... |
9657b6937ef7237897e0a38afbfc428c97c8f61e | da2deccbde39425a1aecf3a3662cf38c195d54ce | akelsaadi/Chegg-Lessons | /C++ Lessons/Ali's Lesson/Ali's Lesson/main.cpp | C++ | cpp | 317 | no_license | #include "Vector.h"
#include <iostream>
using namespace std;
int main()
{
Vector a(3), b(3), c(3);
b.get(); // user enters 1 2 3
c.get(); // user enters -2 1 0
a = b + c;
cout << "The sum of \n";
b.print();
cout << "\n and \n";
c.print();
cout << "\n is \n";
a.print();
system("pause");
return 0;
}
|
84be531497b6646557898e8c80a689e1c0149cc2 | f70f15fe6d6f230dceb1a8fc82db2b77f3fd712c | kriogenia/shotdown | /Shotdown/Map.cpp | C++ | cpp | 639 | no_license | #include "Map.h"
Map::Map(Game* game) :
game(game)
{
engine = ChipmunkHelper::getInstance();
physicTiles.clear();
tiles.clear();
}
Map::~Map()
{
physicTiles.clear();
tiles.clear();
}
void Map::render()
{
for (auto const& tile : tiles) {
tile->render();
}
}
/* Creates a specified tile */
void Map::loadTMXT... |
4797b0406b769499c03a4f477d4b5e6dda7effd7 | e3d86c59bfd75ee04eccd744c22a5a792261211d | rlkelly/z3 | /src/sat/tactic/goal2sat.cpp | C++ | cpp | 41,973 | permissive | /*++
Copyright (c) 2011 Microsoft Corporation
Module Name:
goal2sat.cpp
Abstract:
"Compile" a goal into the SAT engine.
Atoms are "abstracted" into boolean variables.
The mapping between boolean variables and atoms
can be used to convert back the state of the
SAT engine into a goal.
Th... |
ce3e5b735d38966aae2fc04b671cae3481eb355e | 72a7995de28ea3958bcea88e96ef1be2338718a6 | elliottzheng/Popular_Algorithm | /二叉树遍历.cpp | C++ | cpp | 1,103 | no_license | #include<iostream>
using namespace std;
struct BiNode
{
char data;
BiNode * left_child;
BiNode * right_child;
};
void CreatTree(BiNode*& T,int depth)//以先序的方式构造二叉树
{
char c;
cin >> c;
if (c == '#')
T = NULL;
else
{
T = new BiNode;
T->data = c;
cout << "构造左子树" << depth << endl;
Cr... |
23cb76ecae68dcc4957997a98abe77352fa50bd6 | 40263b2551164a4c9523599264ccd4f85550c187 | lazy-mind/CSCI3280_Multimedia | /project/code/list_all_file2.cpp | C++ | cpp | 748 | no_license | #include <iostream>
#include <dirent.h>
#ifdef WIN32
bool islinux = false;
#else
bool islinux = true;
#endif
int getdir (std::string dir, std::vector &files)
{
DIR *dp;
struct dirent *dirp;
if((dp = opendir(dir.c_str())) == NULL) {
std::cout << "Error(" << errno << ") opening " << d... |
14165eb5f9d6f358eb16b17590d47dab4894043d | dc59b4a2c1c8afad13b32678e00281a1a762f3df | pitrou/arrow | /cpp/src/arrow/flight/sql/server_test.cc | C++ | cc | 34,399 | permissive | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
0afa8f19b82a167bf7ec116198f04f1a3bd60d48 | bb8a191b81fde47959ea9a818767f1348c90436d | mrbeary/MyCppNote | /leetcode/problem11.cpp | C++ | cpp | 1,396 | no_license |
//方法一:暴力遍历所有的可能性,找出最大值
/*
class Solution {
public:
int maxArea(vector<int>& height) {
int res = 0;
for (int i = 0; i < height.size(); i++)
{
for (int j = i+1; j < height.size(); j++)
{
res = max(res,min(height[i],height[j]) * (j - i)); //当前面积是左边与右边较小... |
cea8e2bfe3862853cb3cb101f262984b78d202f8 | 44f5752900ba1091f74f360230ae38a404073238 | luisortiz11/prog-utp | /15062021/funcion_05.cpp | C++ | cpp | 550 | no_license | /*Nombre del Programa:Areacircumferencia01.cpp
Programador: Luis Ortiz
Fecha de compilacion: 15/06/2021
Version del programa: 0
Descripcion: calcular el area de una circumferencia
Area = pi*r^2
*/
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <ctype.h>
#include <math.h>
const float pi = 3.1416;
v... |
5fd4c85230340e3f18cde63443181f5c7adc2b4a | a1f7f3673c8fea5bc8345af664bddedfd3979356 | JamesPeters98/VisualCPPEducation | /Chapter 11/MFCApp/MFCApp/Main.cpp | C++ | cpp | 4,574 | no_license | // Ex11_01.cpp Native windows program to display text in a window
#include <windows.h>
#include <tchar.h>
LRESULT CALLBACK WindowProc(HWND hWnd, UINT message,
WPARAM wParam, LPARAM lParam);
// Listing OFWIN_1
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
WNDCLA... |
7b7597c4b7ce72e1f15f09c31aeddac2b1dfc6c9 | a3b079c324fb2d28d64de9ad311c90710474ba35 | iXit/Mesa-3D | /src/gallium/drivers/r600/sfn/sfn_shader_cs.cpp | C++ | cpp | 3,709 | no_license | /* -*- mesa-c++ -*-
*
* Copyright (c) 2022 Collabora LTD
*
* Author: Gert Wollny <gert.wollny@collabora.com>
*
* 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, in... |
0e76ff49cdb699bf34323f240b427a14082107dc | bf061f5528ac88223e2189ca674e190ea6cac7e5 | Lintik/hackerrank | /Language Proficiency/Cpp/Inheritance/Rectangle Area/rectangleArea.cpp | C++ | cpp | 944 | no_license | #include <iostream>
using namespace std;
class Rectangle{
private:
int length;
int width;
public:
void read_input(){
cin >> length >> width;
};
int getLength(){
return length;
}
int getWidth(){
return width;
}
... |
a8a2f719ae172eab0c1d9e3d999d116c552d8e92 | 875b4086b8e63bd2f63f536e3f3f8d3acf3c203a | yw778/pku_c- | /week5/part_2.cpp | C++ | cpp | 8,408 | no_license | /*
魔兽世界的西面是红魔军的司令部,东面是蓝魔军的司令部。两个司令部之间是依次排列的若干城市。
红司令部,City 1,City 2,……,City n,蓝司令部
两军的司令部都会制造武士。武士一共有 dragon 、ninja、iceman、lion、wolf 五种。每种武士都有编号、生命值这两种属性。
有的武士可以拥有武器。武器有三种,sword, bomb,和arrow,编号分别为0,1,2。
双方的武士编号都是从1开始计算。红方制造出来的第 n 个武士,编号就是n。同样,蓝方制造出来的第 n 个武士,编号也是n。
不同的武士有不同的特点。
dragon 可以拥有一件武器。编号为n的dragon降生时即获得编号为... |
b9b66c57bed64c50df0dedb0048f4d2371049b52 | df85c3a66cbf441959a0cf0413dbf47161ca5c4d | Mathagoris/School | /C++/TwosComplement.cpp | C++ | cpp | 3,577 | no_license | // ============================================================================
// File: TwosComplement.cpp
// Program: Twos_Complement_with_Hexadecimal
// Description: Converts a (SIZE_OF_HEX)-digit Hexadecimal integer to its
// Two's Complement
// Student: Matt Dohlen
// Date: 02/21/2014
// Class: ... |
025edd17186b01d7985c4d8f8c2911f39eff634c | 9da80186c99486f8e5df8f272b35fdba76d0567f | dinrus/WX | /dev/CPP/DinrusVizWXC/src/dataobject.cpp | C++ | cpp | 5,774 | no_license | //-----------------------------------------------------------------------------
// wxD - dataobj.cpp
// (C) 2005 bero <berobero.sourceforge.net>
// based on
// wx.NET - dataobj.cxx
//
// The wxDataObject proxy interface.
//
// Written by Bryan Bulten (bryan@bulten.ca)
// (C) 2003 by Bryan Bulten
// Licensed under the w... |
b795f10bd4128f698a2e37b82e4cb25937533b97 | 04d7a7b28d75179fe2c8f633a5153ccf17178bca | Sunderlandkyl/VTK | /Accelerators/Vtkm/vtkmlib/ArrayConverters.cxx | C++ | cxx | 12,669 | permissive | //=============================================================================
//
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// ... |
461d9f1c7365855ebc89f6aac65b71d93f05740e | 9b71843f8dde3e9f67b637781b5bc7973cc984e3 | blockspacer/cocos | /LobbyPlaypalace/PLayPalaceC++/Classes/Views/Tutorial/Tutorial.cpp | C++ | cpp | 27,238 | no_license | #include "Tutorial.h"
#include "Util/UtilFunction.h"
#include "Constant/Defination.h"
#include "Manager/InfoManager.h"
#include "Manager/PopupManager.h"
#include "Manager/NetworkManager.h"
#include "Manager/PluginManager.h"
#include "Manager/ScaleManager.h"
#include "Views/Lobby/header/HeaderLobbyLayout.h"
#include "Vi... |
47466cbc53f7907562189f4582360232ed30cb9b | 032913a921380afd8acc3f009d298bb71dfb71dd | wsteelman/uslib | /include/USBProbe.hh | C++ | hh | 1,080 | no_license | #ifndef USB_PROBE_HH_
#define USB_PROBE_HH_
#include "types.h"
#include "Image.hh"
#include "Transducer.hh"
namespace uslib
{
class FrameList;
class USBProbe
{
public:
USBProbe();
~USBProbe();
err StartImagingThread();
err StopImagingThread();
err StartFrameCapture();
err StopFrameCaptur... |
601097e87d6f74ada6272eb55a2841cf297e717c | 0b17cf3872211c4f5bfa6d798a8516f0b9ca76a0 | surajkumar-sk/shaka-packager | /packager/media/formats/packed_audio/packed_audio_writer.cc | C++ | cc | 4,698 | permissive | // Copyright 2018 Google LLC. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "packager/media/formats/packed_audio/packed_audio_writer.h"
#include "packager/media/bas... |
10398fa20d9dc9875c301c5cdf9c128173ef3fc9 | 3e7a28d0cf3664e8b053e4dc09f0847a48576ad2 | demonsaw/Code | /ds2/lib_demonsaw/component/server/server_security_component.cpp | C++ | cpp | 1,411 | permissive | //
// The MIT License(MIT)
//
// Copyright(c) 2014 Demonsaw LLC
//
// 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, c... |
4db0f012f9b542121a7f629cacf7492929fa6e58 | 77da24da22a7ea73f5b3566d6f685c16a878a9e0 | pdaca/AFolder | /folds.cc | C++ | cc | 11,653 | permissive | #include <iostream>
#include <utility>
#include <cassert>
#include "folds.h"
#include "tinyxml/tinyxml.h"
using std::cout;
using std::cerr;
using std::endl;
using std::vector;
using std::map;
using std::set;
using std::deque;
using std::pair;
using std::string;
namespace fold {
std::ostream& operator<<(std::ostre... |
e08f2411566654ef05f6bd2595182edc60f0dcd3 | 0a39a8f21639bd20e876167bd172ff5a0118328a | spaghetti-/d2replayanalyzer | /d2replayparser/demodump.cpp | C++ | cpp | 17,150 | no_license | //====== Copyright (c) 2012, Valve Corporation, All rights reserved. ========//
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// Redistributions of source code must retain the above copyright notice, this
// li... |
64ea5dfdd28c15344d8e42e22dbf2ae147acad9f | 5fc6b6cf689ac384cf786e1a4531a972dbb10caf | lucashmorais/taskdep-suit | /parsec/freqmine/src/fpmax.cpp | C++ | cpp | 5,760 | no_license | /*
Author: Jianfei Zhu
Concordia University
Date: Feb. 10, 2004
Copyright (c) 2004, Concordia University, Montreal, Canada
All rights reserved.
OmpSs/OpenMP 4.0 versions written by Dimitrios Chasapis - Barcelona Supercomputing Center
Redistribution and use in source and binary forms, with or... |
f897e438d1e581213e44c151cd8a535d4d304282 | 02e53e7e3bbe3363b623d41ec8895f84ba74069c | Robotawi/Udacitycppractice | /course4-threads/2_passing_data_between_threads/datapass_promise-future-usingwait.cpp | C++ | cpp | 1,002 | no_license | //
// Created by zozo on 2/12/20.
//
#include <thread>
#include <future>
#include <string>
#include <iostream>
using std::cout;
using std::endl;
void modifyMessage(std::promise<std::string> && prms, std::string msg){
std::string modifiedmsg = msg + ", I am the from thread!";
std::this_thread::sleep_for(std::c... |
cae2d17e30377d53da858c682db6cc9af6e1c9e5 | 743da6c3ff6bac6b62b33fe792c0aa75b1713f77 | jerryhanhuan/test-code-backup | /WTL/NetWork/hp-socket/hp-socket-3.0.2/vc2008/TestSocket/TestEcho-PFM/Client/ClientDlg.cpp | C++ | cpp | 10,452 | no_license |
// ClientDlg.cpp : implementation file
//
#include "stdafx.h"
#include "Client.h"
#include "ClientDlg.h"
#include "afxdialogex.h"
#include "../../../Common/Src/WaitFor.h"
#ifdef _WIN64
#ifdef _DEBUG
#pragma comment(lib, "../../Bin/x64/HPSocket_UD.lib")
#else
#pragma comment(lib, "../../Bin/x6... |
e4c6be37ba1a2f3a6c9d89d3184d4d8c0c102c1a | 7cb27e900c7da2b2a1f3dc341b3f25f9a22cfc3b | YurkoHoshko/rhodes | /lib/commonAPI/mediacapture/ext/platform/wm/src/Camera_impl.cpp | C++ | cpp | 1,836 | permissive | #include "../../../shared/generated/cpp/CameraBase.h"
namespace rho {
using namespace apiGenerator;
class CCameraImpl: public CCameraBase
{
public:
CCameraImpl(const rho::String& strID): CCameraBase()
{
/*m_hashProps.put( "display", "LCD");
m_hashProps.put( "sound", "Dolby");*/
}
virtua... |
0b1540c4613e7917717dd570eacd248ad3ac222e | ce8564285f7cb6d9c0091bd6c69142644ada7c52 | craigjlovell/introtocpp-craigjlovell | /ExerciseC++/AIE_03_FileIO_DynamicArray/Application.cpp | C++ | cpp | 1,759 | no_license | #include "Application.h"
#include <iostream>
#include<fstream>
#include <stdlib.h>
#include <time.h>
Application::Application()
{
}
Application::~Application()
{
}
void Application::Run()
{
const char* filename = "data.dat";
srand(time(0));
// how many numbers do we want to create?
m_numbers_count = (rand() %... |
f50b8622efdec0ae8dbb32de802d38d53740525a | 5dc502ff3d022dc8f399c4d4e7aeca132992d2e4 | Justin-Teng/HackerRank | /Algorithms/Implementation/Easy/Between-Two-Sets.cpp | C++ | cpp | 1,105 | permissive | #include <bits/stdc++.h>
using namespace std;
int getTotalX(vector <int> a, vector <int> b) {
int largestA = a.at(0);
int smallestB = b.at(0);
for (int i = 1; i < a.size(); i++) {
if (a.at(i) > largestA)
largestA = a.at(i);
}
for (int i = 1; i < b.size(); i++) {
if (b.a... |
d0371a8a0a00989812747ff2eaf7179f4425cd7c | f447cb8da93c7fb1d4d1cedc60389b4a736bea32 | swdev1202/coding-interview-prep | /leetcode/804_unique_morse_code_words.cpp | C++ | cpp | 796 | no_license | class Solution {
public:
int uniqueMorseRepresentations(vector<string>& words) {
vector<string> morse = {".-","-...","-.-.","-..",".","..-.","--.","....","..",".---","-.-",".-..","--","-.","---",".--.","--.-",".-.","...","-","..-","...-",".--","-..-","-.--","--.."};
std::map<string,int> cou... |
bbe57d80757f0df5205e0096d0d1aba21607167c | 55c73697113c80bdbb02b76e275b541e9887f6e7 | CP-Panizza/MyHttp | /Response.cpp | C++ | cpp | 9,668 | permissive | //
// Created by cmj on 20-3-26.
//
#include "Response.h"
#include "util.h"
#include <string>
#include <iostream>
#include <sys/socket.h>
#include <cstring>
#include <fstream>
#include <sstream>
void Response::set_header(std::string key, std::string val) {
header[key] = val;
}
void Response::write(int code, std... |
631afb18007a5f7a126f3e39f955a6b32cc9c7f3 | 3b7aad0d9827a194f7a1255dcd64bff179c35892 | shirodora2/Shirodora2 | /Shirodora/Classes/ModelManager/Character/Aggregate/All/CharacterAggregate.hpp | C++ | hpp | 2,433 | permissive | //
// CharacterAggregate.hpp
// Shirodora
//
// Created by Ryoutarou Onimura on 2016/07/31.
//
//
#ifndef CharacterAggregate_hpp
#define CharacterAggregate_hpp
//=========================================================================
// 追加のインクルードはここから
//===========================================================... |
68f4fa379277b073ccf4896347cf0400a78f59a6 | 541b37029d6fceafd8cfa9a33e0a452b9c8263d8 | ForseIKomar/Kirsasch | /Kirs/gameobject.cpp | C++ | cpp | 975 | no_license | #include "gameobject.h"
GameObject::GameObject():
QGraphicsObject()
{
priority = 0;
static int nextId = 0;
id = nextId;
nextId++;
this->setZValue(0);
canWalkThrow = true;
type = GAME_OBJECT;
secType = -1;
defintion = -1;
}
GameObject::~GameObject(){
}
int GameObject::getSecon... |
9425fb0a6c9c05ee8b3ecd0520465831aa3f00d9 | 5ad37ed54ff38ad03d9f6afe1da2bc937dfd4211 | yuragri/HLengine | /Common/d3dApp.cpp | C++ | cpp | 14,184 | no_license | //***************************************************************************************
// d3dApp.cpp by Frank Luna (C) 2011 All Rights Reserved.
//***************************************************************************************
#include "d3dApp.h"
#include <WindowsX.h>
#include <sstream>
namespace
{
// Thi... |
b0cd193fd6de3f4a295443acbce3db20cd5fc7e4 | ebcbe94837585012352ab6606e35ec5cde9b944b | albertbpozo/Grup2ProjecteFinalSnakeReevaluacio_AlbertBogunaSergiVillalobos | /Juego/src/Game_Project/Niveles.cpp | C++ | cpp | 2,024 | no_license | #include "Niveles.h"
#include "GameScene.h"
#include "ID.h"
#include "XML.h"
#include "InputManager.h"
#include "Logger.h"
#include "SceneManager.h"
#include <vector>
#include <XML/rapidxml_utils.hpp>
using namespace Logger;
static std::vector <int> xmlVal;
Niveles::Niveles() {
background = { { 0, 0, W.GetWidth(), W... |
7ae8e395365797607cda4f07bbf621e503a90312 | 4cd71c483e823fd961d90d408e554a8ea0e59de5 | return19/All-C-Codes | /orders_encoder.cpp | C++ | cpp | 1,991 | no_license | #include<bits/stdc++.h>
using namespace std;
int n,m;
vector<int> g[101000];
vector<int> tg[101000];
stack<int> s;
int vis[101000];
int scc[101000];
vector<int> ng[101000];
map< pair<int,int>,int > memo;
int rnk[101000];
void dfs(int x){
vis[x]=1;
for(int i=0;i<g[x].size();i++){
if(!vis[ g[x][i] ]){
... |
e943e4ac9e14801bd3722049f1ad3c7c8feab25f | 3f3043e37114b21eb8858e8b91c4f39479470126 | JukkuJukku/mordhau-simple-auto-block-cheat | /Mordhau-Simple-Auto-Block/SDK/Mordhau_BP_ServerBrowserEntry_functions.cpp | C++ | cpp | 4,227 | no_license | // Mordhau (Dumped by Hinnie) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function BP_ServerBrowser... |
7a7606968d8b56ce6b508377aad3a743ad0ecbcf | 1e34f4f5b9f010b2d2b67efc8ad530c98bbf637b | LasseD/uva | /P10530.cpp | C++ | cpp | 724 | no_license | #include <iostream>
int main() {
int n;
char w1[20], w2[20];
while(true) { // Iterate games:
bool cheating = false;
int min = 1;
int max = 10;
while(true) {
std::cin >> n;
if(n == 0)
return 0;
std::cin >> w1 >> w2; // new guess.
if(w1[0] == 'r') {
if(n > max || n < min)
... |
8ae1c6d39e20af95d6b92097496346f77e814672 | 343a85f18afd9673881f6bddb782ada032d60ae5 | fasiondog/hikyuu | /hikyuu_cpp/unit_test/hikyuu/indicator/test_SLICE.cpp | C++ | cpp | 4,375 | permissive | /*
* test_PRICELIST.cpp
*
* Created on: 2013-2-14
* Author: fasiondog
*/
#include "doctest/doctest.h"
#include <fstream>
#include <hikyuu/StockManager.h>
#include <hikyuu/indicator/crt/SLICE.h>
#include <hikyuu/indicator/crt/PRICELIST.h>
#include <hikyuu/indicator/crt/KDATA.h>
using namespace hku;
/**
* ... |
16bbfda82e20c8ba390ad05b2898bcab79bef598 | dc5d4015229a00de6e2ecc39049e987178287859 | prestocore/browser | /modules/dom/src/js/geoloc.cpp | C++ | cpp | 19,450 | no_license | /* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*-
**
** Copyright (C) 1995-2008 Opera Software AS. All rights reserved.
**
** This file is part of the Opera web browser.
** It may not be distributed under any circumstances.
**
*/
#include "core/pch.h"
#if defined(DOM_GEOLOCATION_SUPPORT) && ... |
c023e73880cb63b02bab83ab7e9c072dd0d4a9ab | 49e73c7564c31e96507ea01eaeb4b306d2a3e593 | ShuraDE/ATissueOfLies.pja305 | /CfgUnitInsignia.hpp | C++ | hpp | 523 | no_license | class CfgUnitInsignia
{
class DEVGRU
{
author = "us";
displayName = "DEVGRU";
texture = "pic\orbat\devgru.paa";
};
class MARSOC
{
author = "us";
displayName = "MARSOC";
texture = "pic\orbat\marsoc.paa";
};
class SOCOM
{
author = "us";
displayName = "SOCOM";
texture = "pic\orbat\socom.paa";
... |
7d0af80fe3005750b385c5b80e75855dc128f046 | a13f86a9de5eb796de75f7851bf9313f19e5b357 | Yukee/finite-volume | /KT_solver/flume.cpp | C++ | cpp | 1,451 | no_license | #include <iostream>
#include <fstream>
#include <math.h>
#include <limits.h>
// Solvers
#include "FD1Solver.h"
#include "timeSolver.h"
#include "EulerSolver.h"
//#include "RK2Solver.h"
#include "RK3Solver.h"
// Containers
#include "Vector.h"
#include "ScalarField.h"
#include "PeriodicField.h"
#include "NullField.h"
#... |
bab6023adf358d3464bb410c0c552a58c2d9a03e | a03fbb913f39fc0efe938d198cd0f5062dac8d2b | theMavl/INNO2020CG_Topic1 | /src/clear_rendertarget_main.cpp | C++ | cpp | 714 | permissive | #include "clear_rendertarget.h"
#include <iostream>
#include <chrono>
using namespace std;
int main(int argc, char* argv[])
{
auto start = chrono::high_resolution_clock::now();
try
{
cg::ClearRenderTarget* render = new cg::ClearRenderTarget(1920, 1080);
render->Clear();
auto end ... |
c2789c9a2afe9fd8e7ae0df63c2894910805618b | f8033acf872265a499a4d23e095b41e3d2f7b5e0 | RiyaMadaan/DS_algo-in-cpp | /linkedLists/insertAtLast.cpp | C++ | cpp | 912 | no_license | #include <iostream>
using namespace std;
struct Node {
int data;
struct Node *next;
};
struct Node* head = NULL;
void insert(int new_data) {
struct Node* new_node = new Node();
new_node->data = new_data;
new_node->next = head;
head = new_node;
}
void insertAtLast(int item){
struct Node* last;
las... |
96cd5dcac49df742104831c475e2295a4d13cde9 | 844dae3da6cdcfcd270f691eb326a7db84dc800d | mit-gfx/diff_pd_public | /cpp/core/src/state_force/gravitational_state_force.cpp | C++ | cpp | 1,394 | permissive | #include "state_force/gravitational_state_force.h"
template<int vertex_dim>
GravitationalStateForce<vertex_dim>::GravitationalStateForce()
: StateForce<vertex_dim>(), mass_(0) {}
template<int vertex_dim>
void GravitationalStateForce<vertex_dim>::Initialize(const real mass, const Eigen::Matrix<real, vertex_dim, 1>... |
0036f35008670b8f4bfe7900ff31a5357c656131 | b4e170da029d3585bdc57d25aef001ae8c63dc73 | jhu-asco/gcop | /bin/uuvtest.cc | C++ | cc | 3,296 | no_license | #include <iomanip>
#include <iostream>
#include "ddp.h"
#include "viewer.h"
#include "uuvview.h"
#include "utils.h"
#include "se3.h"
#include "lqcost.h"
#include "params.h"
#include <unistd.h>
#define DISP
using namespace std;
using namespace Eigen;
using namespace gcop;
typedef Ddp<UuvState, 12, 6> UuvDdp;
Params ... |
1326d60b47ccb6ac2205bd3ef6c16f1ab19efb80 | 2709bb82e52e7248cb9b053e3ca020c754b66952 | BeeeOn/server | /src/rpc/AsyncGatewayRPC.cpp | C++ | cpp | 10,754 | permissive | #include "di/Injectable.h"
#include "gwmessage/GWDeviceAcceptRequest.h"
#include "gwmessage/GWListenRequest.h"
#include "gwmessage/GWUnpairRequest.h"
#include "gwmessage/GWUnpairResponse.h"
#include "gwmessage/GWSetValueRequest.h"
#include "rpc/AsyncGatewayRPC.h"
#include "rpc/GatewayRPCUnpairResult.h"
BEEEON_OBJECT_B... |
cb3cc34e022b13e9408dce3cb68a173d0df67245 | 6926b3b6f2bc7c5033dff3822baf8c3cd76f0325 | ArthurDassier/Zia_2019 | /src/config/Config.hpp | C++ | hpp | 3,683 | no_license | /*
** EPITECH PROJECT, 2020
** CPP_zia_2019
** File description:
** Config
*/
#pragma once
#include <filesystem>
#include <fstream>
#include <iostream>
#include <nlohmann/json.hpp>
#include <string>
#include <thread>
namespace cfg
{
/**
* @brief Config object to retrieve the different configuration from a json fi... |
e4f6c2df26222f3a87f09db1ec5297103252dec8 | 6d6f100084791969323dbe12967eae441ee63705 | moviepasscoin/moviepass | /src/rpcserver.cpp | C++ | cpp | 32,425 | permissive | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcserver.h"
#include "base58.h"
#include "init.h"
#include "util.h... |
1cf26dabcc38170a474094d6ca3853186c9994c8 | 53066591838b6f4105ec6257197ef7c02ebf089d | vadimr3b/Travis_Test | /tof/R3BPtofMapped2Cal.cxx | C++ | cxx | 5,058 | no_license | // ------------------------------------------------------------
// ----- R3BPtofMapped2TCal -----
// ----- Created Feb 9th 2017 by R.Plag -----
// ------------------------------------------------------------
/* March 2017
* Reconstructing data into PaddleItems. Each p... |
34fa3fb92372f6359b42691e9598bea944165423 | 17100029912543e49771d6549030f830475f5cac | bluffs/rush00_cpp | /srcs/Executor.cpp | C++ | cpp | 5,369 | no_license | #include <iostream>
#include <unistd.h>
#include "Executor.hpp"
#include "tools.hpp"
Executor::Executor()
: _player(new Player()),
_spawner(new Spawner()),
_enemy(NULL),
_laser(NULL),
_background(NULL),
_start(clock()),
_score(0) {
std::cout << "executor default constructor" << std::endl;
initsc... |
30a58b10b73bfc4bb43371a751ed833150ff3212 | 82bb01deec8de3fc6b1f5925205347703b1c93f7 | ebounds/bricoleurbucks | /src/qt/bitcoinstrings.cpp | C++ | cpp | 13,500 | permissive | #include <QtGlobal>
// Automatically generated by extract_strings.py
#ifdef __GNUC__
#define UNUSED __attribute__((unused))
#else
#define UNUSED
#endif
static const char UNUSED *bitcoin_strings[] = {QT_TRANSLATE_NOOP("bitcoin-core", "To use the %s option"),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"%s, you must set a rpcpa... |
4dd8303f3a73498cf2938832c0601a5ed6b97e40 | 0ddf054cfe35af2542f22c95a831cac5bfd74a8b | xialouis/PointClient | /x86/o-g/.moc/moc_PointClient.cpp | C++ | cpp | 3,042 | no_license | /****************************************************************************
** Meta object code from reading C++ file 'PointClient.hpp'
**
** Created: Fri Feb 22 16:20:54 2013
** by: The Qt Meta Object Compiler version 63 (Qt 4.8.4)
**
** WARNING! All changes made in this file will be lost!
*********************... |
caa7373ede4c71c172bbb3f6609025780c545864 | 6b7323936387f52ec728d4a2a1faf2214ad4e99e | niuxu18/logTracker-old | /second/download/httpd/gumtree/httpd_new_hunk_4231.cpp | C++ | cpp | 12,034 | no_license | h2_iq_clear(m->q);
leave_mutex(m, acquired);
}
return max_stream_started;
}
static void input_consumed_signal(h2_mplx *m, h2_stream *stream)
{
if (stream->input && stream->started) {
h2_beam_send(stream->input, NULL, 0); /* trigger updates */
}
}
static int output_consumed_sign... |
f1a913c70f45430348fbe0583e5ff907f67af808 | 54e2083161e5294b059b981f73cb18ba92dd5f02 | Alonewolf-123/PaydayCoin-Core | /src/protocol.cpp | C++ | cpp | 6,682 | permissive | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The PaydayCoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <protocol.h>
#include <util/system.h>
#include <util/strencodings.h>... |
f7f4151bd9161d581a32bfd0c1c308873a0e2fc3 | 072ede2010afd3d752b9121ae02aee88b71eeaf2 | Jusedawg/WarriOrb | /Source/SOrb/Enemy/SoEnemy.cpp | C++ | cpp | 70,806 | permissive | // Copyright (c) Csaba Molnar & Daniel Butum. All Rights Reserved.
#include "SoEnemy.h"
#include "TimerManager.h"
#include "Components/ShapeComponent.h"
#include "Components/CapsuleComponent.h"
#include "Components/WidgetComponent.h"
#include "Components/SizeBox.h"
#include "Components/ProgressBar.h"
#include "EngineMi... |
dd6267ad17a7f2ced3daf0d0026463d17c2dea21 | 5e3e793815f2a0ce50901fa9876dae18eddbaacc | womo2014/SicilyOnlineJudge | /problems/1036. Crypto Columns.cpp | C++ | cpp | 689 | no_license | //1036. Crypto Columns
#include <iostream>
#include <string>
using namespace std;
int main()
{
string key;
while ( cin >> key && key != "THEEND")
{
string code;
cin >> code;
int column = key.size();
int row = code.size()/column;
char word[row][column];
int i, j, k;
int cnt = 0;
int count = 0;
... |
4037a9ba421332925895ed6754a427f10fca34e2 | 85311a9c32d90bdbe1715e0949b81bc380f75809 | JoshZschiesche/School-Programming-Assignments | /Computer_Science-2014-2015-2016/CSCE_221_Stuff/Programming_Assignment/PA6/Zschiesche-Josh-A6/Zschiesche-Josh-A6/Graph.hpp | C++ | hpp | 909 | no_license | #ifndef Graph_hpp
#define Graph_hpp
#include <stdio.h>
#include <vector>
#include <fstream>
#include <iostream>
#include "Vertex.hpp"
#include <map>
using namespace std;
class Graph
{
public:
// we use a vector to store vertices in the graph
// and use label (int) to be a subscript to access a vertex
... |
d9383e4fd13c516c3536267dbb8fa6043c026ef1 | 21ef432fb34289299ca2a6439688a5ef186c680e | meniossin/src | /third_party/webrtc/rtc_base/sanitizer_unittest.cc | C++ | cc | 4,132 | permissive | /*
* Copyright 2018 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... |
6b4c4b2f1f0396d821573c902607ba79c3d19f8f | adf5ed2558b5832f142fb5feea94c855652bf0b8 | jukkae/rascal | /src/openable.hpp | C++ | hpp | 270 | permissive | #ifndef OPENABLE_HPP
#define OPENABLE_HPP
class Openable {
public:
bool open = false;
private:
friend class boost::serialization::access;
template<class Archive>
void serialize(Archive & ar, const unsigned int version) {
ar & open;
}
};
#endif /* OPENABLE_HPP */
|
8a9a7c12a06a382342be374a95194957192b038d | 8b5c86d683121afba4d7f5fade0ba8a4219275ab | karunmatharu/Android-4.4-Pay-by-Data | /art/compiler/jni/quick/x86/calling_convention_x86.cc | C++ | cc | 5,732 | permissive | /*
* Copyright (C) 2011 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... |
caab884047f939072ff69c69ac86fef6c766b013 | 949ab6140df0bd14d17e2794dbe993b86b13b13a | maxiclass/Esp8266_15.6.2019 | /Drivers_for_esp8266/MadgwickAHRS.cpp | C++ | cpp | 9,044 | no_license | //=====================================================================================================
// MadgwickAHRS.c
//=====================================================================================================
//
// Implementation of Madgwick's IMU and AHRS algorithms.
// See: http://www.x-io.co.uk/nod... |
473cbdc86fa98df7475ab834196c58e47ab27ff0 | a322b50d025584f3b5a47af594015f6cc281e7b6 | jaredballou/Source.Python | /src/core/patches/bms/patches.cpp | C++ | cpp | 1,668 | no_license | /**
* =============================================================================
* Source Python
* Copyright (C) 2012 Source Python Development Team. All rights reserved.
* =============================================================================
*
* This program is free software; you can redistribute it and/or... |
2b55531798f97536d5daf895fc62abbfd178b39d | 89ed2ae9fb079d8cde98c227bfc01498427d347f | licar/Lab4 | /Bodies_/Bodies/Cone.cpp | C++ | cpp | 707 | no_license | #include "stdafx.h"
#include "Cone.h"
CCone::CCone(double height, double radius, double density)
:CSolidBody(density),
m_height(height),
m_radius(radius)
{
}
CCone::~CCone()
{
}
double CCone::GetHeight() const
{
return m_height;
}
double CCone::GetRadius() const
{
return m_radius;
}
double CCone::GetVolume(... |
b77678099872175ad6c69592d74e237c1804951d | d0c8727407ca28bba5bb73d89d5c08e49bf4e93a | c00lerxo/Linear-algebra---Matrices | /src/Matrix.cpp | C++ | cpp | 2,726 | no_license | #include "Matrix.h"
Matrix::Matrix()
{
float rl;
float img;
std::cout << "Enter number of columns:" << std::endl;
std::cin >> n;
std::cout << "Enter number of rows:" << std::endl;
std::cin >> m;
container = new Number*[m];
for(int i = 0; i < m; i++)
container[i] = new Number[n... |
d7dea312661b2459f772cc73639a31e7dcdf79e8 | 5fca1258981594fd2e84c54d17034a412b0966ad | liyajun9/win32TrivialTools | /security/AES.cpp | C++ | cpp | 8,593 | no_license | #include "pch.h"
#include "AES.h"
#include "CipherUtils.h"
#include "MD5.h"
#include "Base64.h"
#include <memory>
#include <vector>
bool YAes::AES64_CBC_Encrypt(const std::string& sKey, const std::string& sIv, const std::string& sSrc, std::string& sEncrypted, int paddingScheme/*= padding_pkcs7*/, int nKeyBits/* = 128... |
fe6c348f1bf2510f595639bb46d7e01b1ab464ac | 73a23fa6ed89fb257b63a1f359d0e54e1a76d009 | hieule22/trupl-compiler | /test/tokens/punctuation_token_test.cc | C++ | cc | 1,537 | no_license | // Unit tests for PunctuationToken class.
// Copyright 2016 Hieu Le.
#include "tokens/punctuation_token.h"
#include <utility>
#include <vector>
#include "gtest/gtest.h"
namespace truplc {
namespace {
TEST(PunctuationToken, GetTokenType) {
const PunctuationToken token(PunctuationAttribute::kSemicolon);
EXPECT_E... |
b31cf9072699b5d17208a55ecc2079e3b01f2004 | 56a338f8a760fe3ee10852394507a83d3833fd9d | blackmoondrago/Game-Engine-proto | /eng/eng/Engine/Camera/Camera.cpp | C++ | cpp | 2,471 | no_license | #include "Camera.h"
#include "..//Core/CoreEngine.h"
Camera::Camera() : position(glm::vec3()), perspective(glm::mat4()), orthographic(glm::mat4()), fieldOfView(0.0f)
{
fieldOfView = 45.0f;
forwardVector = glm::vec3(0.0, 0.0, -1.0f);
upVector = glm::vec3(0.0f, 1.0f, 0.0f);
worldUp = upVector;
nearPlane = 2.0f;
fa... |
b60d84f4a654a866a24dd143d720005ba67e4a14 | ffccf9e9f7c0278ccaf051796b3dac679e90e555 | mshifa/UAS | /modular3.cpp | C++ | cpp | 245 | no_license | #include <iostream>
using namespace std;
// proses baca
void c () {
// variabel global
int a,b;
cout <<"masukan nilai a : ";
cin >> a;
cout <<"masukan nilai b : ";
cin >> b;
cout << a+b<<"\n";
cout << a-b;
}
|
310e171069c314b5cc5ed92905af3ca58899ba89 | c0043ee19e89f0160ba442d05662d2082166874d | oshunter/fuchsia | /src/developer/forensics/last_reboot/tests/last_reboot_info_provider_unittest.cc | C++ | cc | 2,615 | permissive | // Copyright 2020 The Fuchsia 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/developer/forensics/last_reboot/last_reboot_info_provider.h"
#include <optional>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#includ... |
8fd775511d140241e87cada2bb3660c3b8f44631 | 3a223bc91983a303af35fb3c557d59e231142649 | ggg1024/tensorflow | /tensorflow/examples/custom_ops_doc/multiplex_4/multiplex_4_kernel.cc | C++ | cc | 5,561 | permissive | /* Copyright 2021 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
9d9c8def46d6e08ba7e28fd695db5ba3f8c26660 | 03944b666287e770ded29e8a88238f2ff37d2f95 | GeneralMine/BreathEmerge | /main.cpp | C++ | cpp | 2,946 | permissive | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt Charts module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid comme... |
a1c31bae3455893216b66cec94111d53b4b00118 | e47af49d446c0405ba3cada0753e9de43df2ae63 | rogsoares/twophasesim_repo | /src/parmesh/PMA_RefinementSmoothing_3.cpp | C++ | cpp | 3,109 | no_license | /*
* PMA_RefinementSmoothing3.cpp
*
* Created on: 3 de abr de 2016
* Author: rogerio
*/
#include "ParMeshAdapt.h"
void ParMeshAdapt::RefinementSmoothing_part3(){
int base1, level1, leaf1;
int base2, level2, leaf2;
Element *elm2, *elm1, *elm;
//int count = 0;
/*
* Identify which elements are surrou... |
21337d48793af5ecd6236d9756a7e87c7b1371b9 | 5300cf3232297fd6d00044feff7aa9fea56ba959 | anb0s/signals | /demo/track_objects.cpp | C++ | cpp | 3,569 | permissive | /*===================================================================
* Copyright (c) Vadim Karkhin. All rights reserved.
* Use, modification, and distribution is subject to license terms.
* You are welcome to contact the author at: vdksoft@gmail.com
===============================================================... |
6bca601414f76b7860c3550939621b5c2026a003 | 467e92b84ac432bfeeeb320fb28bc65eaac52f81 | baitcenter/kengine | /common/systems/opengl/Highlight.hpp | C++ | hpp | 1,009 | permissive | #pragma once
#include "opengl/Program.hpp"
namespace kengine {
class EntityManager;
}
namespace kengine::Shaders {
class Highlight : public putils::gl::Program {
public:
Highlight(kengine::EntityManager & em);
void init(size_t firstTextureID, size_t screenWidth, size_t screenHeight, GLuint gBufferFBO) overri... |
95be15a462cbebf579786abd6bfd9d17aa91a2ee | 2fe30225b7583adcfab365ac09bdada53d5ad8fd | aogilvie/Tephra | /sources/ejecta/EJCanvas/EJImageData.cpp | C++ | cpp | 492 | permissive | #include "EJImageData.h"
EJImageData::EJImageData(int widthp, int heightp, GLubyte * pixelsp):
width(widthp), height(heightp), pixels(pixelsp), m_texture(NULL) {
//- (EJTexture *)texture {
// return [[[EJTexture alloc] initWithWidth:width height:height pixels:pixels] autorelease];
//}
//texture();
}
EJImageDat... |
4e8957219a3f0ea4cf60de69fa1c3441fafdc91f | 63404fbb48847d009b39b39fac9fba0fdcbbef18 | 946336/Socket | /sockets.cpp | C++ | cpp | 3,532 | no_license | #include "sockets.h"
#include <stdexcept>
Socket::Socket(bool server, const char *s_path)
{
sock_path = s_path;
int len;
if (!server) {
if ((remote_ID = socket(AF_UNIX, SOCK_STREAM, 0))
== -1) {
/* perror("socket"); */
/* exit(1); */
throw ... |
d14cadb7b29373268b37a08edb81eeffc005a068 | b30a2132d9d49e672d25c51ac8dbf828631dc413 | wangdata/COVID_US_2020 | /Data&Code/model_eakf.cpp | C++ | cpp | 14,392 | no_license | /*********************************************************************
* model.cpp
* Keep in mind:
* <> Use 0-based indexing as always in C or C++
* <> Indexing is column-based as in Matlab (not row-based as in C)
* <> Use linear indexing. [x*dimy+y] instead of [x][y]
* Adapted from the code by Shawn Lankton (ht... |
97260f30363fff36b375dc8de74c8006818e9760 | f3900f88deb6b231cd407e87a83ac1cbbf66a6a9 | uncle-ZJ/TLD | /TLD跟踪/TLD.cpp | C++ | cpp | 25,374 | no_license | /*
* TLD.cpp
*
* Created on: Jun 9, 2011
* Author: alantrrs
*/
#include "TLD.h"
#include <stdio.h>
using namespace cv;
using namespace std;
TLD::TLD()
{
}
TLD::TLD(const FileNode& file) {
read(file);
}
void TLD::read(const FileNode& file) {
///Bounding Box Parameters
min_win = (int)file["min_win"];
///Gen... |
8bbe9161516436d7732ef6360e880c0873400fa9 | b31ef0fac1443ee1272e0ab082c6bd182a68d936 | soleil0510/Algorithm | /课后题/chapter2/227-基于链表的两个集合的交集.cpp | C++ | cpp | 983 | no_license | #include<iostream>
using namespace std;
typedef struct LNode{
int data;
struct LNode *next;
}LNode,*LinkList;
//前插法
void CreatList(LinkList &L,int n){
L=new LNode;
L->next=NULL;
LNode *r=L;
for(int i=0;i<n;i++){
LNode *p=new LNode;
cin>>p->data;
p->next=NULL;
r->next=p;
r=p;
}
}
//求交集
LinkList Int... |
ac146cfa2effd89809437bce1334af4ca53e397f | 25148eb7f266a6f8d03b0a7a9b72fb7388a9a260 | Akviloncoin/Akvilon | /src/qt/transactiondesc.cpp | C++ | cpp | 13,943 | permissive | #include "transactiondesc.h"
#include "bitcoinunits.h"
#include "guiutil.h"
#include "base58.h"
#include "main.h"
#include "paymentserver.h"
#include "transactionrecord.h"
#include "util.h"
#include "ui_interface.h"
#include "wallet.h"
#include "txdb.h"
#include <string>
QString TransactionDesc::FormatTxStatus(cons... |
5be945314187a6575214e91a6040d0d1d730a6b7 | 13c3006accbc8d382d9a057364691b22db643adc | ToyamaLab/NewSSQL | /lib/site-library/BH/include/boost/asio/detail/impl/strand_service.hpp | C++ | hpp | 3,627 | no_license | //
// detail/impl/strand_service.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
<<<<<<< HEAD
// Copyright (c) 2003-2017 Christopher M. Kohlhoff (chris at kohlhoff dot com)
=======
// Copyright (c) 2003-2019 Christopher M. Kohlhoff (chris at kohlhoff dot com)
>>>>>>> ddff10c8c1a385735ed59fadb33c4b79e43db9ce
//
// Distributed ... |
c57a5d4ad5c3b0ab4eced6b48b643fe31b78474c | 26b38fd0c23aea50c6cb9cbde37c5c04ce9b1b5e | LIW2333/DB-Project | /MiniSQL/src/CatalogManager.cpp | C++ | cpp | 14,729 | no_license | #include "CatalogManager.h"
catalogManager::catalogManager() { readCatalog(); }
catalogManager::~catalogManager() { writeCatalog(); }
string makeIndexName(string tablename, string indexname) {
return tablename + "-" + indexname + ".index";
}
string makeConfigName(string tablename, string indexname) {
return tabl... |
8a92d82eac1e011d59996184f284eff78fb1fe6d | c93fd1029fd9bf6a96f5b410cdc8dc24e779955d | TWANG006/Programming-Challenges | /Programming-Challenges/src/UVa_12250_Language-Detection.cpp | C++ | cpp | 1,086 | no_license | /*
https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=244&page=show_problem&problem=3402
*/
#include<string>
#include<cstdio>
#include<cstdlib>
#include<algorithm>
#include<iostream>
#include<fstream>
using namespace std;
int main()
{
string s;
int caseNum = 1;
ifstream in("input.txt",... |
9dddedefca4c751c772970240d714e3a42933621 | 624dd8082801f1fee1999285b53a2f3aff913ac2 | aurantst/windows-XP-SP1 | /XPSP1/NT/ds/ds/src/ldap/client/testprogs/kdamour/test.cpp | C++ | cpp | 27,352 | no_license | // Test.cpp : Defines the entry point for the console application. This code uses SASL calling convention
//
// #include "stdafx.h"
//#include "global.h"
// #include <windows.h>
// #include <time.h>
#define SECURITY_WIN32
#include <stdio.h> // printf
//
// Common include files.
//
/*
#includ... |
03066f31714dbf0dfb895320783661e26706649c | 2f14b1f66b05b508f4c764ed2d95023cf5490ecd | willvitorino/IFCE | /S6/CAA/codCad/35.cpp | C++ | cpp | 812 | permissive | #include <iostream>
#include <cstdio>
#include <vector>
using namespace std;
int result;
vector< vector<int> > val;
vector< vector<bool> > mark;
int dy[] = {0, 1, 0, -1};
int dx[] = {1, 0, -1, 0};
void dfs(int y, int x, int n) {
result++;
mark[y][x] = true;
for (int d = 0; d < 4; d++) {
int y2 = y + dy[d... |
2a8188e70dba1a4939dffcac6a4aa6edf5320e08 | c9e5288e9cd2e4c63c8673c1da62561123e05ca7 | the-locksmith/fuchsia | /garnet/bin/media/audio_core/audio_renderer_format_info.cc | C++ | cc | 1,964 | permissive | // Copyright 2017 The Fuchsia 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 "garnet/bin/media/audio_core/audio_renderer_format_info.h"
#include "garnet/bin/media/audio_core/audio_renderer_impl.h"
#include "garnet/bin/media... |
3156d6e5a233d25b2d072f5a79c79c749c473965 | d693362a40d251335f963d7a6a761fa626e09dff | minkcv/pinballnx | /libcross2d/source/skeleton/sfml/ConvexShape.cpp | C++ | cpp | 2,168 | permissive | ////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2019 Laurent Gomila (laurent@sfml-dev.org)
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages a... |
236e567ba8d83e904a1c17336cbe66d143ed2a2b | 71e8b1bb8c8409c25f22be0eddfe98addaf6ee0c | aliyun/aliyun-openapi-cpp-sdk | /edas/src/model/GetGrayAppGroupResult.cc | C++ | cc | 3,484 | 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... |
5c438e35236b54f9957abd02d6d39c58132d4631 | ba2ed8cd27ffe44974484527fa657a5c0a8bfed1 | nguyenla/Ziticode | /Kattis/GRAPH/BFS-DFS/Coast-length/coast.cpp | C++ | cpp | 4,870 | no_license | #include <algorithm>
#include <iostream>
#include <queue>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
struct Point {
Point(const int x, const int y) : x(x), y(y) {}
Point() : x(0), y(0) {}
int x;
int y;
};
// Helper function to display vector
template <class T>
void ... |
ad92c64aa5de1ca33e8a6b0c6557154325591198 | 1b106cd6d22ec3ee3e738d2e67757627b9605263 | mfayaq/competitive-programming | /pythrl1.cpp | C++ | cpp | 685 | no_license | #include <bits/stdc++.h>
using namespace std;
int main() {
int t,n;
cin>>t;
while (t--) {
cin>>n;
long arr[n];
for (int i = 0; i < n; i++) {
cin>>arr[i];
arr[i]*=arr[i];
}
sort(arr,arr+n);
int cur_largest=n-1,right=cur_largest-1,left=0;
while(1){
if(cur_largest==1){
... |
53b1f708bf32a4bf2518d3308246c750b31cb2bb | c7a0462bb2720b6a4b50bb3645dd6b8e789efaea | Ravi1674/Competitive-Programming | /Lec Code/Pattern/NumberPyramid.cpp | C++ | cpp | 272 | no_license | #include<iostream>
using namespace std;
int main(){
int row;
cin>>row;
for(int i=1;i<=row;i++){
for(int j=1;j<=row-i;j++){
cout<<" ";
}
for(int j=1;j<=i;j++){
cout<<j<<" ";
}
cout<<endl;
}
} |
b469694bedb6b10d05170244b25f657aeac69313 | 3b5a0ea4a479ac984b6068712d7b2424766a946f | jmargeta/boost-svn | /boost/polygon/polygon.hpp | C++ | hpp | 2,531 | permissive | /*
Copyright 2008 Intel Corporation
Use, modification and distribution are subject to the Boost Software License,
Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt).
*/
#ifndef BOOST_POLYGON_POLYGON_HPP
#define BOOST_POLYGON_POLYGON_HPP
#define BOOST_POLYGON_VE... |
de6bb5eb3516d46a9863118d78863793b9783c27 | 4c67fc592e29096620b2283809580639d500cdba | ketoo/BansheeEngine | /Source/SBansheeEngine/Source/BsScriptVector2I.cpp | C++ | cpp | 833 | no_license | //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
//**************** Copyright (c) 2016 Marko Pintera (marko.pintera@gmail.com). All rights reserved. **********************//
#include "BsScriptVector2I.h"
#include "BsMonoManager.h"
#include "BsM... |
f7a3747c6bd23b09b6769b9475a462b575a1733a | 59e0a1202de0746f182f595f0316aa0aa9416d04 | nanoonyx/liblsl | /lslboost/boost/fusion/container/vector/detail/cpp03/vector10.hpp | C++ | hpp | 3,835 | permissive | /*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
=========================================... |
9779e7219ccfa05048dfaa6e7505bee1f4490620 | 34430f91f1966eb4e3bc8af11039f267f54fb7eb | pauladams8/chromium | /components/browser_sync/browser_sync_switches.cc | C++ | cc | 2,418 | permissive | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/browser_sync/browser_sync_switches.h"
namespace switches {
// Disables syncing one or more sync data types that are on by default.
... |
59c856989e80203fa0eb88c2f53cb22b4b34bc66 | 7c2505021e7f7730fcb623fb5efaa54c69cb32e8 | opendarkeden/server | /src/Core/GCTradeAddItem.cpp | C++ | cpp | 4,252 | no_license | ////////////////////////////////////////////////////////////////////////////////
// Filename : GCTradeAddItem.cpp
// Written By : 김성민
// Description :
////////////////////////////////////////////////////////////////////////////////
// include files
#include "GCTradeAddItem.h"
#include "Assert1.h"
///////////////... |
f1db22893ee514b3150e0c478358ae430024ca40 | 1777186599d79d06b22fa064a96375b790e5c8ae | msdgwzhy6/swift | /lib/SILGen/SILGenDecl.cpp | C++ | cpp | 71,822 | permissive | //===--- SILGenDecl.cpp - Implements Lowering of ASTs -> SIL for Decls ----===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... |
3b6d63316600b836a6de9db790a1259b65e07f75 | bed19cad2a63c1d41814d776b2acbba90b8ca37e | IDAS-Labratory/Web-of-Things-Firmware | /firmware-back/src/configManager.cpp | C++ | cpp | 6,170 | no_license | #include <EEPROM.h>
#include <Arduino.h>
#include "configManager.h"
bool config::begin(int bytes){
numBytes = bytes;
EEPROM.begin(numBytes);
uint8_t checksumFirmwareData = 0;
uint8_t checksumDeviceData = 0;
uint8_t checksumSensorData = 0;
uint8_t checksumBrokerData = 0;
uint8... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.