blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 247 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 4 111 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 58 | visit_date timestamp[ns]date 2015-07-25 18:16:41 2023-09-06 10:45:08 | revision_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | committer_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | github_id int64 3.89k 689M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 25
values | gha_event_created_at timestamp[ns]date 2012-06-07 00:51:45 2023-09-14 21:58:52 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-08-24 19:49:39 ⌀ | gha_language stringclasses 159
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 7 10.5M | extension stringclasses 111
values | filename stringlengths 1 195 | text stringlengths 7 10.5M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e1b144e6b85a7f71db238ec56be904eb7e28a0a9 | 7a12fbf4a4c5e6017dac3eeb829f7272848ba672 | /WhoAmI_source/include/Level2.h | 1a53625e7d1a7898bbcd1c513a5b17310c3971af | [] | no_license | CH-Kwon/Who_Am_I | 5336f00996b683453828792f8f294cc10fb4bb12 | c21f01b502de36724e3965658575d25ce4740463 | refs/heads/master | 2023-04-11T17:05:46.088709 | 2021-05-04T08:01:19 | 2021-05-04T08:01:19 | 364,178,338 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 501 | h | Level2.h | /**
\file Level2.h
\author Changuk Lee
\par email: leechanguk0510@gmail.com
\par course: GAM200
\date 11/22/2017.
\brief
All content (c) 2017 DigiPen (USA) Corporation, all rights reserved.
*/
#pragma once
#ifndef LEVEL_2_H_
#define LEVEL_2_H_
namespace FindersEngine
{
void Lev... |
75f4f05f74c04516eed88f225a04bfbaba3d793f | b2955406769855ab42617d59805ef643d860db38 | /U2A4/7/main.cpp | f35349d5fa59e85c90924918c53d944a259f34e4 | [] | no_license | lucasbivar/object-oriented-programming | 46ded50a73b92abb7f2d34136499f27a84269769 | 11a6367404985cd4c384ab1997d07db64c455e78 | refs/heads/main | 2023-08-18T14:10:28.503755 | 2021-10-15T00:24:30 | 2021-10-15T00:24:30 | 380,388,577 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,159 | cpp | main.cpp | #include "Imovel.h"
#include "ImovelNovo.h"
#include "ImovelVelho.h"
#include <iostream>
using std::cout;
using std::endl;
int main(){
Imovel i("Rua João Cabral de Melo", 860000);
ImovelNovo iNovo("Rua Cicero Galdino Pessoa Celestino", 920000, 650);
ImovelVelho iVelho("Rua Ciclano da Silva", 320000, 900);
co... |
df341c018cacc2111ba85f2550d27bb8275ae260 | 39aa541c4c7671524fae2b5b3c1ccd93f1a52370 | /Math/cMatrix33.cpp | b9d257510967cb008c6b9da20db057c091f93db3 | [
"MIT"
] | permissive | aoweiding/TorchProteinLibrary | a626c3d21143f81d689624ed443a77210202d085 | 16d302038dee2d056e868f93f2c6464a204b4f4a | refs/heads/master | 2023-01-12T06:57:58.435132 | 2020-11-16T12:48:04 | 2020-11-16T12:48:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,054 | cpp | cMatrix33.cpp |
#include <math.h>
#include "cMatrix33.h"
#include "cVector3.h"
template <typename T> cMatrix33<T>::cMatrix33() {
m[0][0]=m[0][1]=m[0][2]=m[1][0]=m[1][1]=m[1][2]=m[2][0]=m[2][1]=m[2][2]=0.0;
}
template <typename T> cMatrix33<T>::cMatrix33(T v) {
m[0][0]=m[0][1]=m[0][2]=m[1][0]=m[1][1]=m[1][2]=m[2][0]=m[2][1]=m[2]... |
d631b3a08c96b93103969466a528377ca5d1d9ca | 3efc50ba20499cc9948473ee9ed2ccfce257d79a | /data/crypto-competitions/files/Grostl512.cpp | d02a5f04b38695facff4b9b702114d778c5000af | [] | no_license | arthurherbout/crypto_code_detection | 7e10ed03238278690d2d9acaa90fab73e52bab86 | 3c9ff8a4b2e4d341a069956a6259bf9f731adfc0 | refs/heads/master | 2020-07-29T15:34:31.380731 | 2019-12-20T13:52:39 | 2019-12-20T13:52:39 | 209,857,592 | 9 | 4 | null | 2019-12-20T13:52:42 | 2019-09-20T18:35:35 | C | UTF-8 | C++ | false | false | 10,517 | cpp | Grostl512.cpp | ///////////////////////////////////////////////
//
// **************************
// ** ENGLISH - 10/Jul/2017 **
//
// Project: libObfuscate v2.00
//
// This software is released under:
// * LGPL 3.0: "www.gnu.org/licenses/lgpl.html"
//
// You're free to copy, distribute and make commercial use
// of this sof... |
d0b0bb93e0002be4accaaf8b109c3d51d1b55ede | f5843a1d99713880b00efd3100c17705a09ba25a | /cf-788-789/d.cpp | f9a8b1fcf60f6c5dcd4ff973d88f0f3ab2ff0762 | [] | no_license | zjma/codegames | 370af8e94bd1b1e418001072c8ca080427ee2b9c | afb2eef9c1b04994a01720c910a19b29c06d045f | refs/heads/master | 2023-04-27T16:28:46.266892 | 2023-04-15T19:41:13 | 2023-04-15T19:41:13 | 88,573,593 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,814 | cpp | d.cpp | // template.cpp : Defines the entry point for the console application.
//
#include <climits>
#include <cstdio>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <algorithm>
#include <cmath>
#include <vector>
#include <string>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_ma... |
798e62581142899efdbb2e36df63e8941aca3727 | 43d31ec17ab369d20f8908f5f528055a2c69b725 | /clase-03/soluciones/CF_capsLock.cpp | 978de97d39b0d2bdb907f190ce3113d2de07f173 | [] | no_license | Rmg91/Competitive-Programming | e3763d92c4cbd5ae35c1470272b1fa466427df60 | 24afed5ae72ac0a021229fe39cd103c7928b52a0 | refs/heads/master | 2021-01-24T04:13:50.222590 | 2018-10-02T22:37:36 | 2018-10-02T22:37:36 | 122,926,835 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 727 | cpp | CF_capsLock.cpp | #include <bits/stdc++.h>
using namespace std;
int main(){
string s;
cin >> s;
if( islower( s[ 0 ] ) ){
bool hasLower = 0;
for( int i = 1; i < s.size(); ++i ){
if( islower( s[ i ] ) ) hasLower = 1;
}
if( hasLower ) cout << s;
else{
for( int i = 0; i < s.size(); ++i ){
if( isupper( s[ i ] ) ) cout... |
24383c407360aa6367da39c0546c3ad1e851e90c | 331b5fb9eb6c392092ab8826181261276b854181 | /libraries/Catena-Arduino-Platform/src/Catena_Platforms.h | dcbf599741ed03eefdc96990292a290f19f9ce91 | [
"MIT"
] | permissive | cornell-eerl-iot/iotHardware | ceabd45968856e826ee94e5ccb52739687d795b4 | a1213cb57c569850a1fd4da2f1a77617d92c6812 | refs/heads/master | 2020-03-20T10:24:20.510006 | 2018-07-02T14:59:00 | 2018-07-02T14:59:00 | 137,369,594 | 2 | 0 | null | 2018-08-07T03:55:49 | 2018-06-14T14:33:22 | C++ | UTF-8 | C++ | false | false | 2,858 | h | Catena_Platforms.h | /* Catena_Platforms.h Sat Mar 31 2018 19:28:30 tmm */
/*
Module: Catena_Platforms.h
Function:
The global platform definitions.
Version:
V0.9.0 Sat Mar 31 2018 19:28:30 tmm Edit level 8
Copyright notice:
This file copyright (C) 2016-2018 by
MCCI Corporation
3520 Krums Corners Road
Ithaca, NY 14850
An ... |
62cfacc52566ed836bfd0931a94df00fc0e2743e | 4b79b1dd71484e6dd64afcda3e8bace3568fdf1f | /vector_erase.cpp | 3c76bfa2c72da44249cae17ffeeb946230c35074 | [] | no_license | jason7531/jason_happyplace | 0c98d26c76713d0882c9c0aded673377f4eb19c3 | b5bd61f808af7cfbba647b9702c84d92a9cd2114 | refs/heads/master | 2020-07-19T05:53:56.647736 | 2020-05-17T14:18:01 | 2020-05-17T14:18:01 | 206,387,118 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 672 | cpp | vector_erase.cpp | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
vector<int> vec;
int size;
cin >> size;
for(int i=0;i<size;i++) {
int element;
... |
ce185ce55834a24676e5381f4dae9b7a4942e3b6 | 38b0dad5e219e60a60c892dd85ea8dd1cd2a657b | /src/AppFontIndex.h | da3af646d60c559ad89876f9cef734b7e2928d72 | [] | no_license | garyng/LabBookingSystem | ac15db48c51167226bcb83df270badea7336f3cf | 59d927a471b202b6728001e89a1a5075ac9cb4eb | refs/heads/master | 2021-01-19T19:43:44.079239 | 2017-10-02T17:41:08 | 2017-10-02T17:41:08 | 101,204,025 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 522 | h | AppFontIndex.h | #pragma once
class AppFontIndex
{
private:
AppFontIndex(int index) : Index(index)
{
}
public:
static AppFontIndex RobotoRegular_Normal;
static AppFontIndex RobotoLight_Title1; // 30pt
static AppFontIndex RobotoBold_Normal;
static AppFontIndex RobotoRegular_Title;
static AppFontIndex MaterialIco... |
08095d78d5018e054319221a69d1aa2900053cef | 0dd9cf13c4a9e5f28ae5f36e512e86de335c26b4 | /LeetCode/leetcode_the-kth-factor-of-n.cpp | 27134679c09f47282e7de8655c3524f6dae845e2 | [] | no_license | yular/CC--InterviewProblem | 908dfd6d538ccd405863c27c65c78379e91b9fd3 | c271ea63eda29575a7ed4a0bce3c0ed6f2af1410 | refs/heads/master | 2021-07-18T11:03:07.525048 | 2021-07-05T16:17:43 | 2021-07-05T16:17:43 | 17,499,294 | 37 | 13 | null | null | null | null | UTF-8 | C++ | false | false | 418 | cpp | leetcode_the-kth-factor-of-n.cpp | /*
*
* Tag: Math
* Time: O(n)
* Space: O(1)
*/
class Solution {
public:
int kthFactor(int n, int k) {
if(n < 1 || k > n) {
return -1;
}
for(int i = 1, cnt = 0; i <= n; ++ i) {
if(n%i != 0) {
continue;
}
++ cnt;
... |
b680c89648667a433e63bcafc122033569ed5952 | 6ee17843303434b9d23673637d85e1494cf801b1 | /Source/AncientWorld/Private/LevelManager.cpp | 1f7feb17b51f8d12fda0609b2bbcad2ce17222fd | [] | no_license | plutoshe/AncientWorld | f27d1dd51412219233201416cd937439266778d6 | ca12dff255c05babc0b1c55e2dc890dbc68763c6 | refs/heads/master | 2020-07-14T08:44:19.761886 | 2019-09-10T04:54:59 | 2019-09-10T04:54:59 | 205,284,938 | 0 | 1 | null | 2019-09-10T04:14:26 | 2019-08-30T01:58:09 | C++ | UTF-8 | C++ | false | false | 1,253 | cpp | LevelManager.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "LevelManager.h"
#include "Engine/Classes/Kismet/GameplayStatics.h"
#include "Engine/World.h"
#include "Engine/Classes/GameFramework/Character.h"
// Sets default values
ALevelManager::ALevelManager()
{
// Set this actor to call... |
cf338ac82c5e224002c65e7ffb43010662fc8c65 | 7db128b256020f45bcb100eb081eddd58dba038f | /BombermanClient/Bomb.cpp | a7b8089389059929879b2c1395658be9c1f9fa98 | [] | no_license | CarolineChaudey/BombermanClient | 423015abcb97d61fb0cf65ee1734118581090d57 | b4391ae3e1dd8325c770ead3651a290a5bd3a17b | refs/heads/master | 2020-03-17T23:45:33.667393 | 2018-07-16T01:18:19 | 2018-07-16T01:18:19 | 134,059,167 | 0 | 0 | null | 2018-07-13T22:11:34 | 2018-05-19T12:18:47 | C++ | UTF-8 | C++ | false | false | 908 | cpp | Bomb.cpp | //
// Bomb.cpp
// BombermanClient
//
// Created by Benjamin Metaut on 19/05/2018.
// Copyright © 2018 Caroline Chaudey. All rights reserved.
//
#include "Bomb.hpp"
Bomb::Bomb() {
this->actived = 0;
this->distance = 0;
this->delay = 100;
this->x = 0;
this->y = 0;
}
Bomb::Bomb(int distance, in... |
0dd220defdaebaa545ec8da5ed9e1c192bbdcdec | 5c3be725d299f984b734bdf526e4a5ddc5c82a92 | /mdf/Logger.h | d21ca17f78b76edaf7b5bf589e1878d70c5ab216 | [] | no_license | leiwenbin/include | 5c6f05f52dc620b7397558fae63374e48f644583 | dd3edb5a0963674e21697e07a33dd13c27cc8e82 | refs/heads/master | 2021-07-04T16:27:58.898632 | 2021-06-09T10:30:13 | 2021-06-09T10:30:13 | 59,184,728 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,629 | h | Logger.h | // Logger.h: interface for the Logger class.
//
//////////////////////////////////////////////////////////////////////
#ifndef MDF_LOGGER_H
#define MDF_LOGGER_H
#include <stdio.h>
#include <string>
#include "Lock.h"
namespace mdf {
typedef enum {
LEVEL_LOG_FAILED = 1, //faild
LEVEL_LOG_ERROR, //... |
7946b46c9689f80432f0d96f0a4f9fd1e43efd98 | cb52c3adae798e50b814c3d1e529c4d96ff64aad | /src/el/element_animation.cc | 5c0bf2ef07f492f7c7c531c9124adc747409b9a8 | [
"Zlib"
] | permissive | xenia-project/elemental-forms | 0719e5643c9a6d39bcc0f591492577c1604a7c53 | 3e7d961fea8cf8a857292d21106834c8566903f2 | refs/heads/master | 2021-01-12T22:30:13.707035 | 2015-11-28T16:19:05 | 2015-11-28T16:19:05 | 38,601,491 | 4 | 3 | null | 2015-11-28T16:19:05 | 2015-07-06T06:28:34 | C++ | UTF-8 | C++ | false | false | 4,608 | cc | element_animation.cc | /**
******************************************************************************
* Elemental Forms : a lightweight user interface framework *
******************************************************************************
* Copyright 2015 Ben Vanik. All rights reserved. Licensed as BSD 3-clause. ... |
a207a06bb03d866696be46673302c0c7888ca008 | 8c5fd6d091a13637959939e880149c0927a27645 | /Engine/AudioSystem/ASGeometryImpl.h | 8bd4ce2ee941782c4922215eafc02d086991fd45 | [
"MIT"
] | permissive | hulcyp/GuildhallProjects | f1223f0f83a947b256fbfad02c3591083c93bdaa | 2c5c558992daa505867c4b37b73cec61e1c8d2d0 | refs/heads/master | 2021-01-17T17:06:31.480272 | 2014-03-13T16:00:21 | 2014-03-13T16:00:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,021 | h | ASGeometryImpl.h | #pragma once
#include <CommonEngineIncludes.h>
#include <vector>
#include <fmod.hpp>
namespace Monky
{
class ASGeometryImpl;
class Buffer;
class VtxBufferAccessor;
class BufferAccessor;
class ASGeometryImpl
{
public:
ASGeometryImpl( Buffer* vertices, VtxBufferAccessor* vtxAccessor,
Buffer* indices, Buffe... |
e055d54c488cb02cef0cb7d2ff8bf7db7a29f2d9 | c296c81507494483c278e50c8c88dd1b36c5bdc4 | /Datas/CPersonnes.h | 7edcf0f4a7ce81168c2cd4b60cb7610e462538c2 | [] | no_license | Stroff/Amonsoft | 4278839f932032b6b90455ec241444e7cb00768f | 5a8e464951aeafb9e04c990845abc4e83ed5d240 | refs/heads/master | 2021-01-25T04:01:59.383581 | 2012-03-31T10:06:22 | 2012-03-31T10:06:22 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 13,121 | h | CPersonnes.h | /*
* This software is a part to the amonsoft solution
*
* Copyright Amon & Sesam Micro
* Developper contact pascal.bart@sesam-micro.Fr
*
* $Id: CPersonnes.h,v 1.22 2006/08/04 11:21:48 pascal Exp $
* $Log: CPersonnes.h,v $
* Revision 1.22 2006/08/04 11:21:48 pascal
* Version 0.2.2
* Nouvelles fonctionnalité... |
867241624225ebffa1622124d0152c834f3ffbc7 | 30b7ffd17845db982883a91ce8d04551281658c4 | /Codeforces/Round/Round 501/New folder/Ada and Game.cpp | be5a3c3f053c3b8d57857cc2639dd056c81b3b38 | [] | no_license | shas9/codehub | 95418765b602b52edb0d48a473ad7e7a798f76e5 | bda856bf6ca0f3a1d59980895cfab82f690c75a2 | refs/heads/master | 2023-06-21T01:09:34.275708 | 2021-07-26T14:54:03 | 2021-07-26T14:54:03 | 389,404,954 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,963 | cpp | Ada and Game.cpp | #include <bits/stdc++.h>`
#define slld(longvalue) scanf("%lld", &longvalue)
#define plld(longvalue) printf("%lld\n", longvalue)
#define slf(longvalue) scanf("%lf", &longvalue)
#define plf(longvalue) printf("%lf\n", longvalue)
#define sc(letter) scanf("%c", &letter)
#define pc(letter) printf("%c", letter)
#... |
8115c2ac8e9f297cc01584ffb3ef1333d0326bd4 | 7db45c07515791f0e7a0631d1d57df8bb8281707 | /i4/gui/list_box.cc | 29acd4ddbdf80b4d8994ac7ff406ac82246efca6 | [] | no_license | TheStormkeeper/golgotha | ec53befc4c793f3a0d293febff222dfccefcc68f | b61bf92ec6af3c4df8b399bce35c829b8e027a95 | refs/heads/master | 2021-01-12T15:26:18.713429 | 2015-11-06T18:00:53 | 2015-11-06T18:00:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,096 | cc | list_box.cc | /********************************************************************** <BR>
This file is part of Crack dot Com's free source code release of
Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
information about compiling & licensing issues visit this URL</a>
<PRE> If that doesn't help, con... |
26c8bc99af7699580e4cad787af0a8496c5b024c | 160bcde05999a97edc11836ff3bd0ffdd8bcda2a | /CPP Programming/Day2/11.1 reference.cpp | 2fadea880140a1a3ef6bee9ee03117254534ed23 | [] | no_license | hrishipate/precat_data | 7097b20ea272ebbe9a48a63c8359e06d07d6d9f2 | e47fc7ae296352eb842aac243157cbf15a6e8cac | refs/heads/master | 2023-02-01T08:35:19.578441 | 2020-12-17T06:49:02 | 2020-12-17T06:49:02 | 322,202,240 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 973 | cpp | 11.1 reference.cpp | #include <iostream>
using namespace std;
int main()
{
int a=10;
int &r=a; // r is a reference of a
//int * const r= &a;
cout<<"a = "<< a <<" &a = "<<&a<<endl;
cout<<"r = "<< r <<" &r = "<<&r<<endl;
cout<<"=========================="<<endl;
a++;
cout<<"a = "<< a <<" &a = "<<&a<<endl;
cout<<"r = "<< r <<" &r... |
76bc71c01c9536abb1306d88b811912eb72bdfd5 | a1c2b9386d367c0622a7d226e36004e2a8ca05ac | /A - Petya and Origami.cpp | 835ea71bc5d34ab4a3c8b3511e1a363d99332ca1 | [] | no_license | Rajjani1277/Codeforces-Submissions | ba060cac59cbfec58ed4f4bad12a8dfa9daa1554 | 9a16209457328aa26928e73fbe73307a655ff787 | refs/heads/master | 2021-04-01T06:28:51.579954 | 2020-03-18T07:19:16 | 2020-03-18T07:19:16 | 248,163,469 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 478 | cpp | A - Petya and Origami.cpp | #include<iostream>
#include<bits/stdc++.h>
#include<math.h>
using namespace std;
main()
{
double n,k,r=2,b=5,g=8,i=1,sum;
double red,blue,green;
long long int re,bl,gr;
cin>>n>>k;
red = (double)((n*r)/k);
red = ceil(red);
blue = (double)((n*b)/k);
blue = ceil((double)... |
d4d2b3e27a343998a3c0e89678105095289aceb3 | c31ee8136a57a96649196081e1cfde0676c2a481 | /larcv/core/DataFormat/IOManager.cxx | aeee5f7fe39819a1690f2458cc7c15a863ab8e62 | [
"MIT"
] | permissive | DeepLearnPhysics/larcv2 | b12b46168e5c6795c70461c9495e29b427cd88b5 | 31863c9b094a09db2a0286cfbb63ccd2f161e14d | refs/heads/develop | 2023-06-11T03:15:51.679864 | 2023-05-30T17:51:19 | 2023-05-30T17:51:19 | 107,551,725 | 16 | 19 | MIT | 2023-04-10T10:15:13 | 2017-10-19T13:42:39 | C++ | UTF-8 | C++ | false | false | 23,282 | cxx | IOManager.cxx | #ifndef __LARCV_IOMANAGER_CXX__
#define __LARCV_IOMANAGER_CXX__
#include "IOManager.h"
#include "DataProductFactory.h"
#include "larcv/core/Base/LArCVBaseUtilFunc.h"
#include <algorithm>
#include <mutex>
std::mutex __ioman_mtx;
namespace larcv {
IOManager::IOManager(IOMode_t mode, std::string name)
: larcv_bas... |
335e2b4fef65b801ed44375e9776de3d3a8927a5 | 1787693b9097fab1a0b6405b0c740b38c9cab449 | /assignment_8/7_Smrity_Banerjee.cpp | ec8b63b40e17f2d89455947acb4571aff83d89f9 | [] | no_license | sree714/cpp_lab_assignment | f5056fe95a1de24b984f938cb98773f469080000 | c905c9e2eb243c7c7c26e96c8679a851339fd7c5 | refs/heads/master | 2022-11-22T14:21:35.658295 | 2020-07-22T06:47:03 | 2020-07-22T06:47:03 | 273,167,332 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 432 | cpp | 7_Smrity_Banerjee.cpp | /*
Write a function to count the number of blank present in a text file named "OUT.TXT"
*/
#include<fstream>
#include<iostream>
using namespace std;
void blankspace()
{
ifstream fin;
fin.open("out.txt");
char ch;
int count=0;
while(!fin.eof())
{
fin.get(ch);
if(ch==' ')
count++;
}
cout... |
17b7f20013401e43ffd3ca1c4f1ea5c4cbd8df60 | 9df04f9b9883a235c71b9d47560fe3bc79071a42 | /LSM9DS3.ino | 0ed8f181f1f9bec49d466a2b4a67aa8930a540eb | [] | no_license | ishotjr/LSM9DS3 | f62cc99c039ebb7d9bdaa2626704741b0817b38a | c444e5e7016ccce6d2d489ee0ee63b277b3afb8f | refs/heads/master | 2022-06-20T07:59:22.570388 | 2020-05-13T04:47:52 | 2020-05-13T04:47:52 | 258,938,881 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,502 | ino | LSM9DS3.ino | #include <Arduino_LSM9DS1.h>
#include <ArduinoBLE.h>
// calibration
const int empty = 0;
const int quarterFilled = 350;
const int halfFilled = 400;
const int threeQuarterFilled = 420;
const int filled = 430;
const float standingTolerance = 0.05;
const int sensorPin = A0;
const int redPin = 22;
const int greenPin = ... |
7e54d6f2a8fb1c76c083d19cb5272ea0d0cc1322 | 76171660651f1c680d5b5a380c07635de5b2367c | /SH1_43mps/0.005/T | 6417b892eb65df82c1294793fa4041a2ed4b529d | [] | no_license | lisegaAM/SH_Paper1 | 3cd0cac0d95cc60d296268e65e2dd6fed4cc6127 | 12ceadba5c58c563ccac236b965b4b917ac47551 | refs/heads/master | 2021-04-27T19:44:19.527187 | 2018-02-21T16:16:50 | 2018-02-21T16:16:50 | 122,360,661 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,553 | T | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 3.0.x |
... | |
3500a189bdc87afa254f587f324c1361ab111947 | 5360bb4414ea30c18ffd1367cbfb003c2e9b63ab | /client_t.cpp | 5ecec1b37d444695e109c4939d61e382c5681e4e | [] | no_license | jaffer786/homework1 | 219645d3bf426af693be7c4139460977ab58e727 | 663f228357d5a7c191b3a50614a0cd4a003879a0 | refs/heads/master | 2021-01-25T09:00:09.245266 | 2015-03-11T14:04:14 | 2015-03-11T14:04:14 | 31,628,081 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,466 | cpp | client_t.cpp | #include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<errno.h>
#include<string.h>
#include<netdb.h>
#include<sys/types.h>
#include<netinet/in.h>
#include<sys/socket.h>
#include<arpa/inet.h>
#include<string>
#include<iostream>
#include<cstdlib>
using namespace std;
using std::string;
#define PORT "3490" // ... |
a5d94b1796aee4979b3d71195f611c0817e36511 | a4ace471f3a34bfe7bd9aa57470aaa6e131012a9 | /LintCode/724_Minimum-Partition/724_Minimum-Partition.cpp | 6cccef2f4dba6803ee9e7614e449ffdeba1d4bd2 | [] | no_license | luqian2017/Algorithm | 52beca787056e8418f74d383f4ea697f5f8934b7 | 17f281fb1400f165b4c5f8bdd3e0500f6c765b45 | refs/heads/master | 2023-08-17T05:37:14.886220 | 2023-08-08T06:10:28 | 2023-08-08T06:10:28 | 143,100,735 | 1 | 3 | null | 2020-10-19T07:05:21 | 2018-08-01T03:45:48 | C++ | UTF-8 | C++ | false | false | 702 | cpp | 724_Minimum-Partition.cpp | class Solution {
public:
/**
* @param nums: the given array
* @return: the minimum difference between their sums
*/
int findMin(vector<int> &nums) {
int n = nums.size();
if (n == 1) return nums[0];
int sum = 0;
for (int i = 0; i < n; ++i) {
sum += nums... |
2790908899124ea49d635ecbde5bfba09ec7ab9c | f9252139df903b0fe566d555c07562a95ce08784 | /ll/ll5deleteRec.cpp | ec5d042410e06384b2c2f46f4516437352523f32 | [] | no_license | dthinkcs/cpp_dsalgo | 0f4326035dc3c3ff0916db7825a48bc8140125ee | d563a5d64884bd25a6bf2c27cc0726b6f8958bf1 | refs/heads/master | 2021-04-06T19:58:26.349318 | 2019-06-19T18:23:22 | 2019-06-19T18:23:22 | 125,250,550 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 486 | cpp | ll5deleteRec.cpp | /**********
* Following is the Node class that is already written.
class Node{
public:
int data;
Node *next;
Node(int data){
this -> data = data;
this -> next = NULL;
}
};
*********/
Node* deleteNodeRec(Node *head, int i) {
if (head == NULL)
return NULL;
if (i == 0)
{... |
3de75e4e73ecb43c045e2382c1df0407a9be55ae | e34f036ba305009ff9ecb705bc20eee7939f9ed1 | /Reactor_OF_POCO/SingletonHolder.h | df5ef9f51a4cd479839ba36146a24169c7bebc6b | [] | no_license | smartegg/practice | 1c83cf5afa3742c95a29ccf26781ccc314f0c351 | e7cba1f5cfefc8abbbb41df1e3d65acf6263542f | refs/heads/master | 2021-01-19T13:01:40.424384 | 2012-04-01T08:37:08 | 2012-04-01T08:37:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 285 | h | SingletonHolder.h | #ifndef SINGLETON_HOLDER_H
#define SINGLETON_HOLDER_H
template <class S>
class SingletonHolder {
public:
SingletonHolder() : pS_(0) {
}
~SingletonHolder() {
delete pS_;
}
S* get() {
if (!pS_)
pS_ = new S;
return pS_;
}
private:
S* pS_;
};
#endif
|
c1f43422a374c5cad2dd76cb99c158fca19d175e | dd296e4ce663222db78a3aa7230cabe4b6620747 | /Programs/ParticleCloner/src/main.cpp | 7323792e0605b5d6ce9b0d857bb1692df1b65e9f | [] | no_license | vienis/mcbuddiapfel | 42213684b253d7a0dae8b785c58a13853d6c9efd | e4d5c6b91d2f9f3b2d0de011cca3298a4e266d89 | refs/heads/master | 2021-01-10T02:13:50.149299 | 2011-01-22T13:56:56 | 2011-01-22T13:56:56 | 36,045,662 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,656 | cpp | main.cpp | /*
* main.cpp
*
*For testing purpose only...
*
* Created on: 28.06.2009
* Author: Bastian
*/
#include <iostream>
#include "libm2/modeleditor.h"
using namespace std;
FILE *Input,*Output;
char *f,*o;
int FileSize,OutSize;
int main(int argc, char **argv) {
_TF("M2Class.log");
_Tn("main... |
14419b9cb50ce1adbe8906b9ebf98ee4b7798e2e | 666be92afa4d0b0ff227d8eac9cf5dfc6493534b | /DualScaling/main.cpp | 3dd70b82b25457631dcbaef2befda214a95c7c4e | [] | no_license | altobellibm/CEDERJ_2019_ALEX_SOUZA_E_JOSE_SAMPAIO | 81db821d6b60756c5c5929c2c695ce7109735589 | 230b834da271807ef547409ae35b79c8e2cce74b | refs/heads/master | 2020-04-29T08:52:04.542917 | 2019-06-25T01:07:43 | 2019-06-25T01:07:43 | 176,002,167 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,184 | cpp | main.cpp | #include <iostream>
#include <chrono>
#undef NDEBUG
#include <assert.h>
#include <fstream>
#define EIGEN_RUNTIME_NO_MALLOC // Define this symbol to enable runtime tests for allocations
#include "dual_scaling.h"
#include "leitorbasenumerica.h"
typedef std::chrono::high_resolution_clock Time;
typedef std::chrono::... |
f08202273e9e1e8ac57bbd159bdff03ca0122f64 | db39602191dacb7fa09d29de53211e98b69c0ac6 | /Input.cpp | 0419baa6a3c7bc7d87ee41236e531cbf219757b0 | [] | no_license | PhillipAColes/ExoMatch | 728d6c652763dd808700ffdf862b01f5a398eaa1 | 3fe4e6b0e609986922a53e1e8ff6ae9409704a49 | refs/heads/master | 2022-11-15T18:23:29.796471 | 2020-07-09T19:04:09 | 2020-07-09T19:04:09 | 253,502,705 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,341 | cpp | Input.cpp | /*
* Input.cpp
*
* Created on: 2 Apr 2020
* Author: Phillip
*/
#include "Input.h"
#include "Utils.h"
Input::Input(): obs_range_lw(0.0),
obs_range_up(50000.0),
calc_range_lw(0.0),
calc_range_up(50000.0),
obs_int_thresh(1.0e-40),
calc_int_thresh(1.0e-40),
per... |
65e664bc64a0bb7ea85ce1961be3a7f5908ae2b3 | 6b9b358b0a2579a8256f3e4bc7b21a84cf73f654 | /src/widget/label.cpp | e7394aaa6c5dc05f55f639125fab4e0eb6817fc7 | [] | no_license | ternence-li/dummyclient | 897b6a77e4afe0dbf81f855262d26fec25b6df25 | 89953169c28cbcf5377c7bb4af7d66740fdbdc60 | refs/heads/master | 2022-03-29T04:52:48.859670 | 2019-11-12T10:58:36 | 2019-11-12T10:58:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,232 | cpp | label.cpp | #include "widget/label.hpp"
namespace Widget {
Label::Label(Visual& parent)
: Widget(parent) {}
Label& Label::setCaption(const std::string& caption) {
m_caption.setString(caption);
return *this;
}
Label& Label::setFontSize(int fontSize) {
m_caption.setCharacterSize(fontSize);
return *this;
}
La... |
f9275ee24c363eb3dfba5260376bc6e8870a224c | 5c0bf818e2b4a9c9d19e5a8d043e0795a0f9bc88 | /src/proj/Qt/entboost/ebwidgetvoicebar.h | 624630eeb30acbd637bb1a85b07861acafae0b02 | [] | no_license | entboost/ebc | 4e55f45053b8816f7318dd552f94d9f9f893d402 | b05c4ddbbb3221ebb1126b8a75c7eabc6be9f1f8 | refs/heads/master | 2021-01-19T20:29:18.207141 | 2020-09-22T07:36:43 | 2020-09-22T07:36:43 | 67,870,859 | 31 | 9 | null | null | null | null | UTF-8 | C++ | false | false | 846 | h | ebwidgetvoicebar.h | #ifndef EBWIDGETVOICEBAR_H
#define EBWIDGETVOICEBAR_H
#include <QWidget>
#include <QPainter>
#include <QTimerEvent>
/// 音量显示条
class EbWidgetVoiceBar : public QWidget
{
Q_OBJECT
public:
explicit EbWidgetVoiceBar(QWidget *parent = nullptr);
virtual ~EbWidgetVoiceBar(void);
/// 0-10
void setValue(in... |
63fbea1d1d34fe5ad93fdb0350120bda6c0af0f4 | 44bee3f4d8a92a353db08532e613a0b05d2f8c31 | /third/basic_lib/lib2-64/bsl/include/bsl/archive/bsl_binarchive.h | e4ef44dc7892ae6ae00cab1c43b7bb4ef1149b83 | [] | no_license | tengyue-ma/spokenlanguageunderstand | 73e4acb90295f9b38e3ab40355729560f614d75a | 8877ba7c20aee5b0a597b842974c50a51b804bda | refs/heads/master | 2020-04-23T13:35:57.015770 | 2019-02-18T05:41:34 | 2019-02-18T05:41:34 | 171,202,326 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,491 | h | bsl_binarchive.h | /***************************************************************************
*
* Copyright (c) 2008 Baidu.com, Inc. All Rights Reserved
* $Id: bsl_binarchive.h,v 1.5 2008/12/15 09:56:59 xiaowei Exp $
*
**************************************************************************/
/**
* @file bsl_binarchive.... |
8ff07c8dc172ff305c8b55b6b1bd1e6bfb3bb150 | a0ee7fad829a10225a2d23c65e697889078119b3 | /Client/src/Treasurechest.h | 974774e52c30c27b08225d29bb58b6f62236abe0 | [] | no_license | iso5930/SRTeam-Portfolio | 47196d27e03e6349997653aa316423812c24b36d | 04894f7211609367d3d40788cbeeeed7abea5399 | refs/heads/master | 2021-08-23T07:54:05.404543 | 2017-12-04T06:27:39 | 2017-12-04T06:27:39 | 112,998,633 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 1,375 | h | Treasurechest.h | /*!
* \file Treasurechest.h
* \date 2016/06/19 21:19
*
* \author Administrator
* Contact: user@company.com
*
* \brief ½Åµ¿À±
*
* TODO: long description
*
* \note
*/
#ifndef Treasurechest_h__
#define Treasurechest_h__
#include "Client_Include.h"
#include "etc.h"
namespace ENGINE
{
class CTerrainInfo;
clas... |
dec503a18ce2893c16e9ae312ccbde4eba1ffb87 | f14d59655745d7a44217516565bf12ed6a75d7eb | /C++/Object oriented/Assignement 2/ConsoleApplication1/Passenger.h | 93dee50b4a462b6167f12edbcbc2a8164c1b06c6 | [] | no_license | christsfeir/Material-learned | 72a7bb2998c44caa03423af1261285a61bca7324 | 75aeb5f672674354c05bc6128d5639d90ccacc94 | refs/heads/master | 2023-05-11T05:40:47.836908 | 2023-04-26T18:22:35 | 2023-04-26T18:22:35 | 262,879,818 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 228 | h | Passenger.h | #pragma once
#include "Person.h"
#include "vector"
class Passenger : public Person{
public:
Passenger();
~Passenger();
Passenger(int j);
void getReq();
protected:
int requestNum = 0;
int num;
std::vector <int> req;
};
|
cffa5e0b627cdd4732b2cebc599da3f8d13ff32e | 459169854b00da23128297dc434de6ce005a3dd7 | /#16 2D Array Challenges/matrix_Transpose.cpp | bd75cd7bd6721c419609079562a4ec423dfb3f2d | [] | no_license | khizerkamal/DSA_FAANG | 8a9b2c7947b3d28d7760609ee6b9617be14a0724 | 7c1f07720a48180242799529288a2e69deb5282f | refs/heads/master | 2023-08-10T01:42:18.801383 | 2021-09-13T16:38:47 | 2021-09-13T16:38:47 | 339,289,977 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 667 | cpp | matrix_Transpose.cpp | #include <iostream>
using namespace std;
int main()
{
// Making a 2D Array
int n, m;
cin >> n >> m;
int a[n][m];
for (int i = 0; i < n; i++)
{
for (int j = 0; j < m; j++)
{
cin >> a[i][j];
}
}
// Main Logic
for (int i = 0; i < n; i++)
{
... |
d29e63480157d42e3381e3c43b411ec0cfd34485 | 4ee2d09877f1395b6ec57d4497fbfd0604a998d1 | /Parking.cpp | 0da160b371a9be2eab3a7ff5844d072e4e5c5429 | [] | no_license | mohandsakr/-my-problem-solving-solutions-on-UVA-- | 6599295b13d3ad4a02684f6fe2992cbe5ecd0a77 | 635c05809a581f5055087817eca0df42013c8cfe | refs/heads/master | 2021-01-19T17:44:35.687776 | 2017-12-07T12:33:08 | 2017-12-07T12:33:08 | 88,340,309 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 782 | cpp | Parking.cpp | //============================================================================
//problem link :https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2349
// Name : Parking.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hell... |
439861e795583ca77a6be00eacf1615228e721ca | eedd4e2998249bdeae3455ea5b6aa68beb83b1f0 | /src/PSRamFS.cpp | 262534d10222c7400ef0603f8401fca196d00213 | [
"MIT"
] | permissive | DanBar1971/ESP32-PsRamFS | 5ec3ce0191570082505fc5fad170192d56cf22a3 | 204f537208f25a7abb89cf257f721aac6f5de7f4 | refs/heads/main | 2023-08-06T23:13:54.022896 | 2021-09-22T15:44:07 | 2021-09-22T15:44:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,239 | cpp | PSRamFS.cpp | /*\
MIT License
Copyright (c) 2021-now tobozo
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... |
4e76d0f8a4b82c735e7824ad4526405abab6e8ba | 5b0339aefd839aed3d153fcd2f8c6d110ab3d8ee | /coursework/src/src/Bxf03uObstacle.cpp | b5174c6c15243212137d06bf6cdaee19ecd678ac | [
"MIT"
] | permissive | bashforgo/G52CPP | 383d212e37e912f5f2a1c8083d348dd4669b8190 | 2f5da053ee41028ceb39b8584101e15f958ebc61 | refs/heads/master | 2023-02-25T07:56:02.814192 | 2015-05-19T15:00:00 | 2015-05-19T15:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,578 | cpp | Bxf03uObstacle.cpp | #include "header.h"
#include "templates.h"
#include "Bxf03uStage.h"
#include "Bxf03uObstacle.h"
Bxf03uObstacle::Bxf03uObstacle(BaseEngine* engine, Bxf03uStage* stage, int stageX, int stageY, int diameter)
: DisplayableObject(engine)
, stageX(stageX)
, stageY(stageY)
, radius(diameter/2)
, stage(stage)
{
//choos... |
331d4b90135e3d2b6d19c7469a2280f6f82346ad | 2d5b147e9fce070bc2a21a22a6b71c8b3a7cde30 | /elseifcomm.cpp | acc6e5e44ce247c7de5f1b5740915ebdee3ace2c | [] | no_license | AnthonyGOAT/Interactive-Fiction-Interpreter | 90ad49a014c169fce9cd35b4675e941c4cafa4e8 | 0fed4e44c4f8d4114661b76b5222b2ebe06bc786 | refs/heads/master | 2020-07-19T14:56:03.438336 | 2019-09-05T03:56:52 | 2019-09-05T03:56:52 | 206,468,162 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 682 | cpp | elseifcomm.cpp | #include "elseifcomm.h"
using namespace std;
ElseIfComm::ElseIfComm(PartToken& in){
type = in.getType();
stype = "Else-If";
istringstream iss(in.getText());
iss.ignore(10, ':');
iss >> variable;
string temp;
iss >> temp; //temp should now be "is"
... |
14f868cbbc06cc8dde8a970fbe796d22fd90886e | b99385a6b743bf91a03e7702d7617fd969292605 | /test-11_4/test-11_4/源.cpp | 92ce916e81bc1c068f663652850382872fd0b18c | [] | no_license | weijilin/ListNode_21 | a3ad0a8f20e1b11eaf127da752b8bf8845e0efe3 | 8f419cf3c188b0008727ac0e26a1cd4ebf8a0e92 | refs/heads/master | 2020-09-03T18:32:36.767440 | 2019-11-04T15:34:55 | 2019-11-04T15:34:55 | 219,534,250 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,013 | cpp | 源.cpp | #define _CRT_SECURE_NO_WARNINGS 1
#if 0
// stack就是将双端队列重新封装
// 适配器:将一种数据结构进行封装,形成一种新的结构
// 容器适配器
#include <deque>
namespace bite
{
template<class T, class Container = deque<T>>
class stack
{
public:
stack()
: _con()
{}
void push(const T& data)
{
_con.push_back(data);
}
void pop()
{
_con.pop... |
27f4ca7d23eb3d8f518c84cee2a1af725313cf4e | bb99a5ca991b2dc85e579ab8c81a99f6ff0a69a5 | /c++/DSA/negativeOneSide.cpp | a511ecbe4013fb9c2bca001ebc98ef188262218b | [] | no_license | nikeshSaini/coding | 50a7c1af66a3ba3948764bf2a58466776e923e57 | 50026e773bf067705d18901c00a77cea212347d9 | refs/heads/main | 2023-08-16T10:22:11.186079 | 2021-10-10T04:02:09 | 2021-10-10T04:02:09 | 415,480,120 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 858 | cpp | negativeOneSide.cpp | #include <bits/stdc++.h>
using namespace std;
void swap(int arr[],int i,int j){
int temp;
temp=arr[i];
arr[i]=arr[j];
arr[j]=temp;
}
void rearrange(int arr[],int size){
int j=0;
for (int i = 0; i < size; i++)
{
if(arr[i]<0){
if(i!=j){
swap(arr,i,j);
... |
08b1938a2815003552d1d9d234c348a0af35d8b0 | 158adb2cb59a7771c7dd80661dce04b13df6d9c8 | /Sorting-and-Searching/smallest-string.cpp | 8b54d54908d6203b477e10550cda1ac5fc080218 | [] | no_license | PratypartyY2K/UDEMY_DSA | 13a44f102164713ccafd526f92f6e13b918a4234 | 03e12a9553904accb38cb3495be3b9b0a35d2ea3 | refs/heads/main | 2023-08-24T22:49:18.740733 | 2021-10-16T17:42:15 | 2021-10-16T17:42:15 | 381,898,829 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 672 | cpp | smallest-string.cpp | /*
You are given a list of n strings a1,a2,....,an. You would like to concatenate them aogether in some order such that the resulting string would be lexicographically smallesy. Given the list of strings, output the lexicographically smallest concatenation.
Input
-----
3
c
cb
cba
Output
------
cbacbc
Input
-----
3
... |
87fc4d119e55c5bfde5e50bbaf68a1baf0b1163b | 10e8995fc9e97266203bfee400d89f1f7e302252 | /Server/FreezeBombServer/FreezeBombServer/MyInclude.h | 36cd122533cc9e8e799533e5a1e9537969bd964c | [] | no_license | LeeWooSang/Capstone_Design_TeamProject | 2e6871a92a7662bb340d5a672d0eef5e8df0c9ec | ed79076f64f41bb66a928a5923166f8277028d5b | refs/heads/master | 2022-03-13T07:46:51.219818 | 2019-11-18T12:52:45 | 2019-11-18T12:52:45 | 155,352,121 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 367 | h | MyInclude.h | #pragma once
#define _CRT_SECURE_NO_WARNINGS
#include <WinSock2.h>
#include <Windows.h>
#include <fstream>
#include <vector>
#include <map>
#include <mutex>
#include <thread>
#include <random>
#include <queue>
#include <chrono>
#include <iostream>
#include <string>
using std::cout;
using std::mutex;
using std::vector... |
d94c12e740cda57e1bce1c7246462d4e4ad551bd | 0d3f7c2f8d0f6ccc5c143bed1d68c3fb0785212a | /OsShell/PcbManager.h | 913326be78a9e519500eb461de53ebc73d157b1a | [] | no_license | Jamescwg/SimulateOfOS | 345d2ad1e19aad9a792c3f302d6a9da36ea5c8d6 | f723fba9d9e91bd7e6fb3032c127021b8c17624d | refs/heads/master | 2020-03-19T12:09:46.698368 | 2018-05-31T03:56:17 | 2018-05-31T03:56:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 736 | h | PcbManager.h | #pragma once
#include "PCB.h"
#include "PcbList.h"
#include <vector>
#include <string>
class PcbManager {
private:
PcbList totalList;
PcbList readyList;
PcbList blockList;
int priorityMax;
public:
PcbManager(int prio = 3);
~PcbManager();
int createPcb(Pcb * par, std::string nm = "Unknown", int prio = 1);
bo... |
acd977ff33e85d60e7ba5cb01cd178db13b3da80 | 12399c604110c00549e6448088cc65722773bf14 | /include/Plane.hpp | f7e75d58d8b5f05db5ddc908049ddd2f8acee6a0 | [] | no_license | Moumou38/FlappGL_Monia | dd76f11b7b27c0f4171808f183cbbd301519146d | 427d8610a21c9425b84fb0587364ff863fbb7467 | refs/heads/master | 2021-01-10T21:30:35.040042 | 2015-03-22T20:37:14 | 2015-03-22T20:37:14 | 32,693,706 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 372 | hpp | Plane.hpp | #pragma once
#include <vector>
#include <GL/glew.h>
#include <Vertex.hpp>
class Plane {
private:
unsigned int m_verticesCount;
GLuint m_VAO;
GLuint m_VBO[2];
std::vector<Vertex> m_vertices;
Plane(const Plane&);
Plane& operator=(const Plane&);
void initVertices();
public:
Plane(){}
void init(float tex... |
26baeb9e186134637de517edff6a459a3da9e5ac | 8c11882715894e3531417398e30cbb0eb823a08c | /homework/fs2021/solutions/hw6/Codemon.h | b67f2c77952a38ab79e9c6ace347f22df10e1600 | [] | no_license | HenryCWong/HenryCWong.github.io | 163278eb61283c97d50711fbb2deb712a7dc6e86 | 93e4e95ceeca8b8c88ef71ceef2baa957ab0e325 | refs/heads/master | 2023-05-11T12:46:07.842502 | 2023-05-08T03:59:35 | 2023-05-08T03:59:35 | 51,191,174 | 2 | 5 | null | 2021-11-16T00:35:10 | 2016-02-06T05:39:31 | CSS | UTF-8 | C++ | false | false | 679 | h | Codemon.h | //
// Created by San Yeung on 11/8/21.
//
#ifndef FS2021_CS1570_HW6_CODEMON_H
#define FS2021_CS1570_HW6_CODEMON_H
#include "Skill.h"
const int MAX_SKILL_SIZE = 6;
class Codemon{
friend class Contestant;
public:
Codemon(){}
Codemon(const string name, const string type, const int level, const int hp);
... |
df7056f4500a6e0a31ab93eb8028dc058f1ed623 | 6bbe5c1be7c9aab31251ef3ef3e8ae220d5b862f | /ベースプログラム/ベースプログラム/CWindowAPI.h | a21faef8d3ac475ec71af17f4b06d19a568e73da | [] | no_license | MusicGameCreate/Music_Game | 17ff4fb81694c1eb0f5e325f5544ea97f0fe5b0a | 290ceefe0925d1a36497fb90f828597dec25becb | refs/heads/master | 2021-01-23T18:44:58.459566 | 2017-09-22T01:23:36 | 2017-09-22T01:23:36 | 102,805,664 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,880 | h | CWindowAPI.h | //***********************************************************************************************************
//
// WindowAPI情報一括管理クラス
//
//***********************************************************************************************************
#pragma once
//********************************************************... |
d36b5e9019143398783d3e3b06fb63ff591c2d6c | d1baa78969c29f5309e8274283ed4a5f96aede08 | /src/utils/GTypes.h | 83816c41f9a37d1b0765fdd65a332dbe0c8bfa8a | [] | no_license | G43riko/GraphicsProject | 18178ebec286ab09fd15618d0833902bf1d80f99 | e4d9fe1f9ea67dfc3e9f9c71e42dfa84844c3be7 | refs/heads/master | 2020-12-25T22:37:22.756723 | 2017-07-16T18:37:46 | 2017-07-16T18:37:47 | 68,990,036 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,433 | h | GTypes.h | //
// Created by gabriel on 6.5.2017.
//
#ifndef GAMEENGINE_GTYPES_H
#define GAMEENGINE_GTYPES_H
#include <vector>
#include <string>
#include <memory>
#include <map>
#include "GConst.h"
class DirectionalLight;
class MaterialedModel;
class ParticleTexture;
class CubeTexture;
class BasicShader;
class GameObject;
class... |
bf004ec768a17cd42bd836575bf102b3306051dc | 94e24058d31d7ee6c95cb5c26123319b061d6f3e | /QSha/client/deskwidget.cpp | 032c85370b9f1eeda538ed6b28e9df554f2057b0 | [] | no_license | luxiaodong/Qt | c7711799f732ba1d9593686def29adb7ceb505b0 | 69e74efac3298f0463138aeb34ffc33b281c5b45 | refs/heads/master | 2020-06-08T01:26:19.129048 | 2018-05-15T08:12:28 | 2018-05-15T08:12:28 | 9,055,289 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 229 | cpp | deskwidget.cpp | #include "deskwidget.h"
#include "ui_deskwidget.h"
DeskWidget::DeskWidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::DeskWidget)
{
ui->setupUi(this);
}
DeskWidget::~DeskWidget()
{
delete ui;
}
|
5e9a31b95eeff0ec62aa08de2ea22196a5b1749e | 5842723fd78882a6744d6ddde167e1296bb35b0d | /Bs2KstKst/src/BDTForPID.cc | d280ffcfbf52874d1ffab6e2c421714a565d47ce | [] | no_license | kevinkraft/LHCbAnalysis | 57ac581e441f6150af3fa3a8f1aec8e6ac6aeb79 | ab7988475bcaaebd05dcdb3785df2e1364d77d76 | refs/heads/master | 2021-01-11T18:35:32.788565 | 2017-06-23T10:06:44 | 2017-06-23T10:06:44 | 79,577,213 | 0 | 0 | null | 2017-01-20T16:45:36 | 2017-01-20T16:45:36 | null | UTF-8 | C++ | false | false | 3,842 | cc | BDTForPID.cc | #include "BDTForPID.h"
#include "TString.h"
using namespace std;
using namespace TMVA;
Bs2KstKst::BDTForPID::BDTForPID(TString _name, Variables_Analysis *_v, TMVAWrapperBase::mode _rMode):
TMVAWrapperBase(_name, _v, _rMode),
v(_v)
{}
Bs2KstKst::BDTForPID::~BDTForPID(){}
void Bs2KstKst::BDTForPID::setCategories(... |
a4c8e6d44e9c6fbf18f412a2c2a4cb68d5281c15 | 077d8d3ec3906370580a4b4d57150eb676563a50 | /洛谷/宝物筛选/main.cpp | bd5b7aec66667f76f524cff663dfc82b03a13a4a | [] | no_license | byx2000/OJ | 8955053987ccd9eb8bb0e575269082d9114764ab | ec1c9b1ac6a6982f099481364761ea01a82c7db0 | refs/heads/master | 2023-03-07T18:03:49.294014 | 2021-02-19T13:59:07 | 2021-02-19T13:59:07 | 287,937,848 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,860 | cpp | main.cpp | // https://www.luogu.com.cn/problem/P1776
#include <iostream>
#include <vector>
using namespace std;
// 解法1:转化为01背包问题(TLE)
class Solution1
{
public:
Solution1(const vector<int>& weights, const vector<int>& values, const vector<int>& amounts,int space)
: weights(weights), values(values), amounts(amounts), space(sp... |
eb459ffcca98efeed2297eca9b03a7cac2b46ae1 | 7ca900ba1f7a319eee2b875a63f0fa4767793f07 | /C++/STL/config1.cpp | 6dcf8699a3cff2a194c76776fe89dc1a7ba4390d | [] | no_license | pingyangtiaer/DataStructureAlgorithmDesign | d5a1c5e8c72086644927d9bd438d42b441b39fea | 9de1da8c532e5080e7b85fe18a1c322761d7b101 | refs/heads/master | 2020-03-17T16:39:31.623348 | 2015-05-14T12:07:01 | 2015-05-14T12:07:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 254 | cpp | config1.cpp | #include<vector>
#include<iostream>
using namespace std;
int main()
{
# if defined(__sgi)
cout<<"__sgi"<<endl;
# endif
# if defined(__GNUC__)
cout<<__GNUC__<<" "<<__GNUC_MINOR__<<endl;
cout<<__GLIBC__<<endl;
# endif
return 0;
}
|
5112c555b99bbdf81b2df22ec4c546d6e421d9c2 | 193a66bee070ed11b6c795a9d40502d4c502667b | /spoj/KMIN_.cpp | c23bda17e5852a8f67fea2954a8f8d3995b5ead9 | [] | no_license | 1tygoime/a | d3603b0f9dc043f3249b2574af060ed487193ac2 | a5ca1c8193959e8619adebf3430d35b652f5d399 | refs/heads/main | 2023-08-11T09:53:13.925780 | 2021-10-11T16:28:49 | 2021-10-11T16:28:49 | 416,415,399 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 649 | cpp | KMIN_.cpp | #include <bits/stdc++.h>
using namespace std;
#define f first
#define s second
int a[50001], b[50001], m, n, k;
priority_queue <pair <int, int>, vector <pair <int, int>>, greater <pair <int, int>>> pq;
int main(){
int m, n, k;
cin >> m >> n >> k;
for(int i = 1; i <= m; i++) cin >> a[i];
for(int i = 1; i <=... |
751f9936cd92391f063fde0c1dc914a555478b23 | 4c36d21c357042cc0f981b90c05ae9f3f03152ec | /1 (1).cpp | 67dc61d80a21eb798908be0fcbc5f4f60e35c09f | [] | no_license | wwwzbwcom/oi-codes | 09e3192372741815c97821cc96a63b57541db835 | 97dac2e3eacb0c7ce6cf673b52c079bff058dc71 | refs/heads/master | 2023-04-03T17:25:23.237560 | 2021-04-13T07:36:23 | 2021-04-13T08:09:26 | 357,472,761 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 156 | cpp | 1 (1).cpp | #include<iostream>
using namespace std;
int main()
{
int n;
cin>>n;
long long ans=(((((n*(n+1))%10007)*(2*n+1))%10007)*3336)%10007;
cout<<ans<<endl;
}
|
dc3b881f34a9324a290b08a45c56e517b18d2216 | b58fb41d6021277579b8481aa50f0eaa9ed2317f | /include/fragments/combiner.hpp | 74d93c363e541b8987ca061449ac3ba2baf14de7 | [
"MIT",
"BSL-1.0"
] | permissive | aristidb/fragments | b051e9b7694bfbd388b4469508425231a9a2c21b | 5bcf566b02a77f97d9726a0ba91425ca15a1f946 | refs/heads/master | 2020-05-28T12:13:15.831805 | 2009-10-16T23:19:00 | 2009-10-16T23:19:00 | 328,182 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,562 | hpp | combiner.hpp | // vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp:
// Copyright (c) 2007 Aristid Breitkreuz, Ruediger Sonderfeld, Christian Uhrhan
//
// Distributed under the Boost Software License, Version 1.0 and under the MIT
// License.
//
// See accompanying LICENSES.txt or
// <http://fragments.sourceforge.net/LICENSES.txt> or,... |
e79b6f3e4633cff775dad2cbe750a3b9d59e4d89 | f4dc1073def4c95a19d4183475405c439cfc0aff | /Include/Core/AresMemberFunctionSlot.h | b1bc074328d91387177b6b5173ce22b1caa26cd8 | [] | no_license | timi-liuliang/aresengine | 9cf74e7137bb11cd8475852b8e4c9d51eda62505 | efd39c6ef482b8d50a8eeaa5009cac5d5b9f41ee | refs/heads/master | 2020-04-15T15:06:41.726469 | 2019-01-09T05:09:35 | 2019-01-09T05:09:35 | 164,779,995 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,524 | h | AresMemberFunctionSlot.h | #pragma once
#include <vector>
#include <boost/any.hpp>
using namespace std;
using namespace boost;
namespace Ares
{
//-----------------------------------------
// 任意参数类型 2010-11-19 thanks boost
//-----------------------------------------
typedef vector<any> AresAnyParams;
//----------------------------------... |
bed6a03664bd7b62a0c39959aef5a43609859184 | b11ac6722b744e665249cbd6878bdf57aa3392ae | /OpenFlipper/src/Plugin-FirstPlugin/Segmenter2.hh | 468e45db55af2c7ad257a828315447b486f93d8d | [] | no_license | crowsfoot/ComponentControllers_CGVI | 30ad4fa73c4c6e3688e40455dafc598e81662b46 | e022da490528a839ab4355179c072f150de1a428 | refs/heads/master | 2016-09-15T20:27:04.064812 | 2012-05-25T11:12:20 | 2012-05-25T11:12:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,262 | hh | Segmenter2.hh | /*
* =====================================================================================
*
* Filename: Segmenter2.hh
*
* Description: Contains:
* MeshSegmentT<>: Template class describing an individual segment with name and ID handle.
* MeshSegmentCollectionT<>: per model container for collections of... |
87a7579ae51d071232bdedc442bb3f7d1c66e894 | 6c243231e7d533e2e80a8310be8a39a0cb067b91 | /UVA-11538.cpp | 10859e305903eb63b2b3a5afffa7545fe5ac65e7 | [] | no_license | afcidk/uva | 877bf8047acc7d6299f14a652267e1ced6e304da | b81564fc44162ff2c4e39ee32ed10393111f7b27 | refs/heads/master | 2021-01-24T18:25:56.909634 | 2017-11-01T03:40:35 | 2017-11-01T03:40:35 | 84,436,738 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 422 | cpp | UVA-11538.cpp | #include<cstdio>
#include<iostream>
using namespace std;
int main() {
long long int a, b;
/*straight lines + slanting lines*/
while(scanf("%lld%lld", &a, &b)==2 && (a||b)){
long long int ans=a*b*(a+b-2), slant=0;
long long int i, j;
long long int mi=min(a,b), ma=max(a,b);
slant+=(mi-1)*mi*(mi*2-4)/3;// /3=... |
9b62023f8dd6a62d9a8429b8284c7952775c04f3 | c3706fb223910ae7275649eddb1c8185c6893926 | /Data Struct 3/main.cpp | 2bbfdaed6a1c99f402d0a057ab41e73f99ee5572 | [] | no_license | MagedMahmoud/C-Codes | 1994e196ed6959be6ca675d2041f91270c85849a | 495029269c9d09ab2e503bea1222545f2dd1774b | refs/heads/master | 2021-05-02T06:35:49.208348 | 2018-02-09T05:25:42 | 2018-02-09T05:25:42 | 120,860,846 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,770 | cpp | main.cpp | // Maged Mahmoud
// main.cpp
// HOME4
#include <iostream>
using namespace std;
class Tree{
private:
class TreeNode
{
friend class Tree;
int value;
TreeNode *left;
TreeNode *right;
TreeNode( int value1,
TreeNode *left1 = NULL,
... |
65022d638a92e7520d368f7f9ae43f438933296c | 6ebf06725e1d3fb2fa8d1439298d65cf9e90dea5 | /search/missing_numbers.cc | 34f19ac59c696a6eabca3487c65694ce403b24f5 | [] | no_license | thayumanavar77/prep | 77f55518c9b8f96b5365ce502f59e1bdfe3b42c2 | 26bfebf16c40df80cfdd8c6639c51d00d62a8593 | refs/heads/master | 2021-06-03T05:50:54.931513 | 2015-06-18T17:19:39 | 2015-06-18T17:19:39 | 15,416,428 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 693 | cc | missing_numbers.cc | #include <iostream>
#include <map>
using namespace std;
int xl[1000001];
int
main(int argc,char** argv)
{
int x,y;
map<int, int> yl;
map<int,int>::iterator yliter;
cin>>x;
for(int i=0;i<x;i++) {
cin>>xl[i];
}
cin>>y;
int inp;
for(int j=0;j<y;j++) {
cin>>inp;
yliter = yl.find(inp);
if (... |
e19a342445c455e81782f53a0b18209bc9ded563 | dce68f605e674795f257685c01e1d9a8acf7ea2f | /src/upl/errors.cpp | 129f6d76cd81506f14a6d0a20ec8575b80052131 | [
"MIT"
] | permissive | declued/upl | 0141405fd7271ddbcf173d9dace8a1ddca44375b | cf320c255555eb6067a5ab34cf8c5a00fb5e8f19 | refs/heads/master | 2020-06-08T06:25:49.068940 | 2015-01-30T15:41:28 | 2015-01-30T15:41:28 | 24,270,606 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,785 | cpp | errors.cpp | //======================================================================
#include <upl/errors.hpp>
//======================================================================
namespace UPL {
namespace Error {
//======================================================================
//----------------------------------... |
79f96036ab09235ac7e267bb4557caef213dede7 | de8de73b064620b288c0128f1beaf533c6f049c7 | /rhythm/cpp/BarlowAnalysis.hpp | 38de3f636fcb088b7ace3abb940689d11d8035c5 | [
"MIT"
] | permissive | garnetgrimm/BarlowTheoryLib | 3c907eb2cffd94b95d715e6d18a1755ed35bdf5a | 5a98d07eab436d6fd794f1f72a267e6096b92e31 | refs/heads/main | 2023-09-04T00:29:16.486449 | 2021-11-07T17:48:08 | 2021-11-07T17:48:08 | 421,667,725 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 558 | hpp | BarlowAnalysis.hpp | #pragma once
#include <vector>
using std::vector;
class BarlowAnalysis {
static int pyMod(int a, int b);
static int omega(int x);
static int phiNonPrime(vector<int> const& p, int n, int z);
static int phiPrime(int h, int n);
public:
static int signatureOrder(int x);
static vector<int> primeFactors... |
15b1b76eac25da2f43a5fe2bdfb9588899eb61ab | 2f00933024020bf5e6024c22c93b7bf04e4e7355 | /Editor-Sections/authorization.cpp | 48a32e19bdeada67e50058d8361ae02265630e77 | [] | no_license | Reiider/EditorSections | 7532d62d1663dff8195f9a8ff5ea76be5d2e9b3c | 2e87c6178c1e117003ef8305949185fa0d88d688 | refs/heads/master | 2022-11-13T12:37:04.779155 | 2020-07-06T11:14:06 | 2020-07-06T11:14:06 | 274,376,951 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,034 | cpp | authorization.cpp | #include "authorization.h"
#include "ui_authorization.h"
Authorization::Authorization(QWidget *parent, DataBase *db) :
QWidget(parent),
ui(new Ui::Authorization)
{
ui->setupUi(this);
this->db = db;
QSqlQuery query(db->getDb("Authorization"));
query.exec("SELECT Login FROM Authorization;");
... |
b89a70657f4d7e3222db61011675a0470d5aea5a | 2822dcf0ccf6497f1a17184c6f504e070b904c80 | /array/Medium/Merge k Sorted Arrays.cpp | 91d16b974ba78ccc795a6961d5a5f9d32fac6eec | [] | no_license | DangZhonghua/CodingPractice | a57893a9ed03f48ac8193dff05d1e002abf1b198 | 2ca27e153ba844f6b82a4de274821743b797ddd2 | refs/heads/master | 2021-01-24T04:30:04.091210 | 2019-11-10T11:27:34 | 2019-11-10T11:27:34 | 122,940,460 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,898 | cpp | Merge k Sorted Arrays.cpp | /*
Merge k Sorted Arrays
https://practice.geeksforgeeks.org/problems/merge-k-sorted-arrays/1
Given K sorted arrays arranged in a form of a matrix, your task is to merge them. You need to complete
mergeKArrays function which takes 2 arguments, an arr[k][k] 2D Matrix containing k sorted arrays
and an integer k denoting ... |
32ddbd407636cfbbb13e71a22c5e2379dd9f5094 | a81bfc4ebf924828d89f353d033bb7d654a999bf | /ZZU/summer/c2/A.cpp | b5687ed17599d78d13b196a5535730325a9ca987 | [] | no_license | someoneAlready/Summer-Code | 2ce3f7c270e8deb9d1a0ed566762983d58806b20 | cc576fb0412fe78905ee741df7ca2fc9c1caa23d | refs/heads/master | 2021-05-26T14:34:49.923499 | 2013-10-16T10:59:53 | 2013-10-16T10:59:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,769 | cpp | A.cpp | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <climits>
#include <cctype>
#include <ctime>
#include <algorithm>
#include <iostream>
#include <queue>
#include <vector>
#include <set>
#include <map>
#include <stack>
using namespace std;
typedef vector<int> vi;
typedef... |
aa80f69dde8caa1d117a883dab9afe34e7fabaf4 | 952a5c1bafc5e40b555136d2f69a44aa3bac5b8d | /string_example.cpp | 09ca3c6ed8ca61636a279d7df5918c8581322dc9 | [] | no_license | haihttran/c- | 5d54a2c4e65874198904d0117532277fe9c360b9 | afaf84272bb4fd2963a8391cb8e4a4b170672952 | refs/heads/main | 2023-01-19T06:54:08.751280 | 2020-12-01T12:20:13 | 2020-12-01T12:20:13 | 317,528,986 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 346 | cpp | string_example.cpp | #include <iostream>
#include <stdio.h>
using std::cin;
using std::cout;
using std::endl;
int main()
{
char str[100];
cout << "Enter a string: ";
cin >> str;
cout << "You entered: " << str << endl;
cout << "\nEnter another string: ";
cin >> str;
cout << "You entered: "<<str<<endl;
std::g... |
34a3e8d857ac75d98ce39a917b776b7130f6a7bd | 589dac07bd795574f629612b7a31490d4976f074 | /ClsLib/clsimpl.h | de1af9530212f9439aa9a44f158de5f85f269c6d | [] | no_license | superactive/JavaCall | f5516767f1a2eb01847e56787bb7f37c739e27b5 | 2b38e548c8b0d28f16eb506c6f8d93e2e61ab5a9 | refs/heads/master | 2021-01-22T06:44:59.007039 | 2012-08-21T14:07:30 | 2012-08-21T14:07:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 323 | h | clsimpl.h | #ifndef CLSIMPL_H
#define CLSIMPL_H
#include "clslib.h"
class ClsImpl : public ClsApi {
public:
virtual void init() {}
virtual void registerSpi(ClsSpi *spi) {
mSpi = spi;
}
virtual int reqLogin(int loginId) {
mSpi->onLogin(loginId);
}
private:
ClsSpi *mSpi;
};
#endif // CLSIMPL... |
d8ce98dba8bd6f48b58ba2077f33971a66892879 | c78991e44b96945d561a54c3ee532556ca1dab94 | /SfmlGame/Level.cpp | b1498aa118c368f5ee2ccd436812580ddadb0f68 | [] | no_license | JamieMulvihill/SfmlGame | a0be41dadc7d471b5b4aa2e1a9dd0208e66afee7 | f228f1c618fe05b864d899fadc5d327ce0ae3825 | refs/heads/master | 2020-07-27T14:27:43.619793 | 2019-10-18T13:45:26 | 2019-10-18T13:45:26 | 209,123,860 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,757 | cpp | Level.cpp | #include "Level.h"
Level::Level(sf::RenderWindow* hwnd, Input* input)
{
window = hwnd;
inputRef = input;
spawnPoints[0] = sf::Vector2f(500, 420);
spawnPoints[1] = sf::Vector2f(960, 220);
spawnPoints[2] = sf::Vector2f(350, 220);
spawnPoints[3] = sf::Vector2f(900, 420);
backGround.setPosition(0, 0);
backGround.... |
1e3fbada21e915b01c43a351f5baed75ab2eb90e | d4afe854f6cb83c02c5d495cf8bf69ff4f5e1d17 | /C&CPP/CPPCode/CPPExercises/08PolymorphismAndVirtualFunction/A021Test.cpp | 2b49c68af931b30d5eaa8375c60704e4ec96d6e0 | [] | no_license | wolflion/GitHubCode | 359ac3a6f7b3249756b8a7c7b52a3724d92e8724 | f42371471c73a920bfe22bbbe5fc7aaa92b9b044 | refs/heads/master | 2021-01-17T18:06:21.044485 | 2018-04-15T06:36:35 | 2018-04-15T06:37:08 | 56,121,686 | 3 | 1 | null | null | null | null | GB18030 | C++ | false | false | 753 | cpp | A021Test.cpp | // 20170901
// 5-21 利用类型转换函数将stringc类类型转换成一般的字符串类型。
#include <iostream>
#include <string>
using namespace std;
class stringc
{
private:
char str[50];
public:
stringc(char *s)
{
strcpy(str,s);
}
operator char*() // 类型转换函数
{
return str;
}
};
int main()
{
stringc s("This is a test\n");
char *ptr1,*ptr2,s1... |
0d13c7130c685fd50baec263d61a2bacda26e0c0 | 401c864dbe6fbdc0f2b74bda9ac02e0e43159cc3 | /Arduinosy/_HotPlate/Arduino/Bolo/buzzer_do_drukarki_termicznej/buzzer_do_drukarki_termicznej.ino | 05358c7e9bb8068e5c87b52eb172bdabfe9f83c0 | [] | no_license | cytrus77/Arduinosy | 9cc400027444f73255743b46cd291e4f9d49c031 | 4cbb6a69d15105b343ce145f1270ae2847252989 | refs/heads/master | 2020-12-10T16:56:16.017422 | 2018-07-01T10:00:51 | 2018-07-01T10:00:51 | 34,057,272 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,730 | ino | buzzer_do_drukarki_termicznej.ino | const int ADC_PIN = A0;
const int BUZZER_PIN = 3;
const int LED_PIN = 9;
int minVoltage = 255;
int maxVoltage = 0;
void setup()
{
Serial.begin(9600);
analogReference(INTERNAL);
pinMode(ADC_PIN, INPUT);
pinMode(BUZZER_PIN, OUTPUT);
digitalWrite(BUZZER_PIN, LOW);
pinMode(LED_PIN, OUTPUT);
digit... |
fecd791c0d5e7a099669c1da3525958e773e5289 | c91cdac0f64da6010418a882dbc05531871e6e0b | /openmit/executor/trainer.h | 3c18c44ee70218c15f52de5f97ae355818a9f6c1 | [
"Apache-2.0"
] | permissive | openmit/openmit | a48fadcf38f29537b6cec38842f8cf4745b0928c | 01e3262d69d47fbe38bad1ba95c7d1ade110d01e | refs/heads/master | 2021-01-12T17:23:16.681863 | 2018-05-06T13:39:17 | 2018-05-06T13:39:17 | 71,553,747 | 15 | 3 | Apache-2.0 | 2018-05-06T13:39:18 | 2016-10-21T10:01:12 | C++ | UTF-8 | C++ | false | false | 2,093 | h | trainer.h | /*!
* Copyright (c) 2016 by Contributors
* \file trainer.h
* \brief machine learning task trainer.
* \author ZhouYong
*/
#ifndef OPENMIT_EXECUTOR_TRAINER_H_
#define OPENMIT_EXECUTOR_TRAINER_H_
#include <memory>
#include <string>
#include <unordered_map>
#include <vector>
#include "dmlc/logging.h"
#include "ps... |
604aa5cb04d71c3c20969b9c2f13aab3faef5a81 | da99896293e812f2c5473440f47d702024afc537 | /hamming.cpp | 8c67fda79ec3bbf2dab9e08920adb2d1635ef182 | [] | no_license | MadCatDestiny/Hamming-messenger | 45807d794f20751255310f0fbd75353accae7e23 | 51a48642b0d819bdfd77b132070770c6b1e5fe49 | refs/heads/master | 2020-04-22T22:09:56.554035 | 2019-02-22T14:32:41 | 2019-02-22T14:32:41 | 170,698,373 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,827 | cpp | hamming.cpp | #include "hamming.h"
QByteArrayList encode(QByteArray data,const size_t lenth)
{
QByteArrayList list = make_list(data,lenth);
for (int i =0; i< list.size(); i++) //вставляем контрольные биты
put_control_bits(list[i],lenth);
return list;
}
void put_control_bits(QByteArray &word,con... |
47a7946683feb517d5e6f5347312b187a5076067 | 778e399b18140b73f8c22e81985cf608784e0cca | /CS226_Lab.ino | 88ab4557180b9781b61a171c5f42fc7cb53966ae | [] | no_license | CITIZENDOT/Home-Automation | 1266234588ce7f443215a726d90661c4c7082305 | 2d72730ce427f75902fdf62c34e0653518dfa3e2 | refs/heads/main | 2023-07-15T01:58:51.315139 | 2021-08-27T17:19:33 | 2021-08-27T17:19:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,782 | ino | CS226_Lab.ino | #include "UbidotsESPMQTT.h"
// Please note that, above header doesn't mean it is official UbidotsESPMQTT Library.
// If you want to run this locally, Download my fork as zip file and Add the zip library
// Download Link https://github.com/CITIZENDOT/ubidots-mqtt-esp/archive/refs/heads/master.zip
#include <DHT.h>
#... |
ab946c661321f52a1f9bf7211bb848b2cbaff09f | f1ae49086a9de49f84b9e828e9cd54b6f964c0d3 | /ver201604template.sdk/test_sd/src/markstat/p2Task.cpp | 2f576c744cc10792f7366bbf2d796e03683be396 | [] | no_license | vivozhang/zynq_zturn_template_prj | ccb43d69a782062a2e54146c31043567ba9d7876 | f370466cce75f814223d0c3a0c225a7e4baf6117 | refs/heads/master | 2021-01-20T07:20:46.081080 | 2017-08-26T17:09:45 | 2017-08-26T17:09:45 | 89,991,870 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,846 | cpp | p2Task.cpp | ///////////////////////////////////////////////////////////////////////////////
//
// TITLE: Line Product Level Task Drivers
//
// DESCRIPTION:
// This file provides the top level product code task drivers for
// that are called by Xops.
//
// COPYRIGHT: Copyright (c) 2013
// by GENERAL E... |
37d48d46e4c48a6236df96fa0c68b1338ff096a2 | 6377557e7c2bd3a03f2ba38eddebf90071d14e7f | /OpenCASCADE6.6.0/ros/samples/mfc/standard/10_Convert/src/WNT/OCCDemoDoc.cpp | 70798193fb03b83567fc108636b39fb310224200 | [] | no_license | tianxiao/occ660 | 41bb8806148e34d64eb6809991609ef88eb994d1 | a88ca70c0e3aa25c3394c5acf2fcf0e2f329a800 | refs/heads/master | 2021-01-01T06:38:30.967872 | 2013-11-07T23:52:39 | 2013-11-07T23:52:39 | 14,130,644 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,947 | cpp | OCCDemoDoc.cpp | // OCCDemoDoc.cpp : implementation of the COCCDemoDoc class
//
#include "stdafx.h"
#include "OCCDemo.h"
#include "OCCDemoDoc.h"
#include "OCCDemo_Presentation.h"
#include "OCCDemoView.h"
#include <Standard_ErrorHandler.hxx>
#include <Standard_SStream.hxx>
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[] = __F... |
2ce971dccc2399f5a1eb1b1e71361efac6eedc99 | 64589428b06258be0b9b82a7e7c92c0b3f0778f1 | /Codeforces/Gym/100159 2011-2012 Facebook Hacker Cup 2012/E.cpp | 6979211a0252cfd7b547ec3a519359e57b4d5384 | [] | no_license | splucs/Competitive-Programming | b6def1ec6be720c6fbf93f2618e926e1062fdc48 | 4f41a7fbc71aa6ab8cb943d80e82d9149de7c7d6 | refs/heads/master | 2023-08-31T05:10:09.573198 | 2023-08-31T00:40:32 | 2023-08-31T00:40:32 | 85,239,827 | 141 | 27 | null | 2023-01-08T20:31:49 | 2017-03-16T20:42:37 | C++ | UTF-8 | C++ | false | false | 1,550 | cpp | E.cpp | #include <bits/stdc++.h>
using namespace std;
#define MAXN 10009
typedef pair<int, bool> ii;
vector<ii> adjList[MAXN];
bool vis[MAXN];
int N, M, K;
bool checkCycle(int s, int t) {
memset(&vis, false , sizeof vis);
stack<int> dfs;
dfs.push(s);
vis[s] = true;
while(!dfs.empty()) {
int u = dfs.top();
dfs.pop();... |
ad418437ac9911c9c0dff10ce6a88aa48ac82dee | b9404a88c13d723be44f7c247e1417689ce7981a | /include/External/stlib/packages/geom/mesh/simplex/SimplexCondNum.h | 90cc885cc3fd831d7e9f1f49cce40e80de598be4 | [
"BSD-2-Clause"
] | permissive | bxl295/m4extreme | c3d0607711e268d22d054a8c3d9e6d123bbf7d78 | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | refs/heads/master | 2022-12-06T19:34:30.460935 | 2020-08-29T20:06:40 | 2020-08-29T20:06:40 | 291,333,994 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,686 | h | SimplexCondNum.h | // -*- C++ -*-
/*!
\file SimplexCondNum.h
\brief Implements the condition number quality metric.
*/
#if !defined(__geom_SimplexCondNum_h__)
#define __geom_SimplexCondNum_h__
#include "SimplexAdjJacQF.h"
#include <limits>
namespace geom {
//! Implements the condition number quality metric.
/*!... |
d4d33ff40be7dafae3c2a82fec1a2163926710af | 39adfee7b03a59c40f0b2cca7a3b5d2381936207 | /codeforces/100090/E.cpp | e86bb8165864ba1c61ebb511a7af60414f243fd5 | [] | no_license | ngthanhtrung23/CompetitiveProgramming | c4dee269c320c972482d5f56d3808a43356821ca | 642346c18569df76024bfb0678142e513d48d514 | refs/heads/master | 2023-07-06T05:46:25.038205 | 2023-06-24T14:18:48 | 2023-06-24T14:18:48 | 179,512,787 | 78 | 22 | null | null | null | null | UTF-8 | C++ | false | false | 942 | cpp | E.cpp |
#include <bits/stdc++.h>
#define FOR(i,a,b) for(int i=(a),_b=(b); i<=_b; i++)
#define FORD(i,a,b) for(int i=(a),_b=(b); i>=_b; i--)
#define REP(i,a) for(int i=0,_a=(a); i<_a; i++)
#define EACH(it,a) for(__typeof(a.begin()) it = a.begin(); it != a.end(); ++it)
#define DEBUG(x) { cout << #x << " = "; cout << (... |
dff1be351c553273ac82fda0c3043e0314269956 | 11211916f39b9d98027b64d778e52743d0c519a1 | /L3/utils.cpp | 74806bf1a29480fcbc9e0ac140a7b00fb17e9b59 | [] | no_license | mantasruigys3000/Group-Task | 87baf1bc2747323c0508f6f32ef733c3f4b50978 | 6790d74ae7fa0fe6b13733efcd75a9f4aca70ab0 | refs/heads/master | 2020-04-23T20:54:09.696659 | 2019-02-22T01:29:53 | 2019-02-22T01:29:53 | 171,454,102 | 0 | 0 | null | 2019-02-19T10:31:09 | 2019-02-19T10:31:08 | null | UTF-8 | C++ | false | false | 280 | cpp | utils.cpp | Ipsum magnam est magnam labore porro.
Consectetur quaerat quisquam quiquia quiquia eius.
Dolore ipsum velit sit.
Adipisci velit adipisci sit.
Username: Bert
Password: hopeful
Etincidunt dolore adipisci quaerat consectetur numquam.
Magnam numquam voluptatem voluptatem etincidunt.
|
f288c6775a8c501ff7dc933f458c8e019259135f | 77b9dcb5e5e1c080d8fb894c97113668fb6516f1 | /Compilador/Compilador.h | 3ed63107e4e71d9bbd9ea2c752e474f43c76e87a | [
"MIT"
] | permissive | MartinX122/CompiladorC- | 3f1f925a494e1cd779cdc8379b3147a79bd60ce8 | 89873915b7b235a81a65fea3523aad2e65045016 | refs/heads/master | 2022-04-24T04:38:20.177235 | 2020-04-28T23:34:27 | 2020-04-28T23:34:27 | 189,281,356 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,677 | h | Compilador.h | #include <iostream>
using namespace System::Collections;
using namespace System;
public ref class Codigo
{
public:
static String^ CodigoIntermedio = "";
};
namespace AnalizadorLexico
{
public enum Etiqueta
{
AND = 256,
BASIC = 257,
BREAK = 258,
DO = 259,
ELSE = 260,
EQ = 261,
FALSE = 262,
... |
a09970be2cbabffa4649bc5313f24503f9e32753 | d3ec1c89e881204395d6cef69ad1bc0ca3038915 | /Source/Filter/Network/TCPDataReceiverFilter.cpp | 6eb35ddb21159e5e8c09771088d7367ede7b8092 | [] | no_license | nyxrobotics/Sophie | c4d34af3d1ba606c6bf169a4c48e8ca5bff1d941 | e5e9cedd9b01f32a1d67bc4c38ef58f6039feab7 | refs/heads/master | 2023-08-28T21:34:36.149345 | 2021-11-01T02:36:28 | 2021-11-01T02:36:28 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,312 | cpp | TCPDataReceiverFilter.cpp | #include "boost/bind.hpp"
#include "boost/make_shared.hpp"
#include "Error.h"
#include "Time/XTime.h"
using Time = framework::time::Time;
#include "Pin/Pin.h"
#include "Data/Buffer.h"
#include "Network/ASIO/Session/TCPSourceSession.h"
using TCPSourceSession = framework::network::asio::TCPSourceSession;
using TCPSourceS... |
f3ed29b47d8f5d36420c375ba684f2a7d835057e | 18fd2e690eeee8d038509c44657afae4c2886bd0 | /SessionZero/SessionZero/Window.h | c5892edd86fde45661c475650401f59eed4aa7ff | [] | no_license | AaronCFreytag/SessionZero | 7a8c150e91189d6209431e997102ab050617fb8a | ac9fb5a6f39cb8477855f465cf7641fa64ce0d63 | refs/heads/master | 2023-02-03T17:19:06.713797 | 2020-12-22T09:48:56 | 2020-12-22T09:48:56 | 323,583,044 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 495 | h | Window.h | #pragma once
#include <string>
#include <windows.h>
namespace SessionZero {
class Window
{
public:
Window(HINSTANCE instance, const std::wstring title, int width = CW_USEDEFAULT, int height = CW_USEDEFAULT, int windowDisplayState = SW_SHOW) noexcept;
private:
static void setupWindowClass(HINSTANCE instance);
... |
a9c5968b913a444fe31e35ec6bd26033e8625ad2 | 6f874ccb136d411c8ec7f4faf806a108ffc76837 | /code/Windows-classic-samples/Samples/DesktopToasts/CPP/DesktopToastsSample.cpp | e7b25bb3fad3b3b8064a2bcfbf06eeff57a19d11 | [
"MIT"
] | permissive | JetAr/ZDoc | c0f97a8ad8fd1f6a40e687b886f6c25bb89b6435 | e81a3adc354ec33345e9a3303f381dcb1b02c19d | refs/heads/master | 2022-07-26T23:06:12.021611 | 2021-07-11T13:45:57 | 2021-07-11T13:45:57 | 33,112,803 | 8 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 23,335 | cpp | DesktopToastsSample.cpp | #pragma comment(linker,"\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
#include <SDKDDKVer.h>
#include <Windows.h>
#include <Psapi.h>
#include <strsafe.h>
#include <ShObjIdl.h>
#include <Shlobj.... |
caafaf4d042dafe3a516d4fad348ef80f960e064 | 8225c405432d674a6dacf6e6528d0cc13f0722c9 | /animal.cpp | dec295a37e911d297624f3ac4e096130665256e2 | [] | no_license | victorrfl/TP-Zoo | fdb5f76f689614fb47452fc0cb93c231dbb51cf0 | 8a1894837879f50fc98f2159391e21e379c8d466 | refs/heads/master | 2022-05-26T16:56:38.925139 | 2020-05-03T20:20:07 | 2020-05-03T20:20:07 | 261,013,362 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 98 | cpp | animal.cpp | #include "animal.h"
#include <iostream>
using namespace std;
Animal::Animal()
{
}
|
6eb2313c2e500fc49e53ca3207e605a063ebaf84 | d304634419fe3af024239d3431ed7835d2a4fb2f | /src/memo/cli/xattrs.hh | bbfe8853aa2f79baa5866ffdeb4ac961239b4c4b | [
"Apache-2.0"
] | permissive | holajiawei/memo | 851cb91abee757dbbe94bf75935193279f6517ab | 3a8394d0f647efe03ccb8bfe885a7279cb8be8a6 | refs/heads/master | 2021-09-28T02:59:52.130173 | 2018-11-13T19:17:23 | 2018-11-13T19:17:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 835 | hh | xattrs.hh | #pragma once
#include <string>
#include <boost/filesystem.hpp>
#include <boost/optional.hpp>
namespace memo
{
namespace cli
{
namespace bfs = boost::filesystem;
void
set_xattr(std::string const& path,
std::string const& attribute,
std::string const& value,
b... |
592275743499307e8ed4474937c21b53fd2ffd21 | 401aa02f1b23d451c856e038bb71b91baec13eb4 | /NeoML/src/TraditionalML/OneVersusOneModel.cpp | 82a4980765e4d0eec50d934c990089a4fa419775 | [
"Apache-2.0",
"NCSA",
"BSD-3-Clause",
"LLVM-exception",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-protobuf",
"LicenseRef-scancode-arm-llvm-sga",
"MIT",
"Intel"
] | permissive | neoml-lib/neoml | fb189a74e0ce1474fdbe8c01d73fcb08d28d601c | b77ff503c8838d904f8db5f482eafb41de61c794 | refs/heads/master | 2023-08-18T13:28:19.727210 | 2023-08-17T12:49:49 | 2023-08-17T12:49:49 | 272,252,323 | 788 | 141 | Apache-2.0 | 2023-09-14T11:59:19 | 2020-06-14T17:37:36 | C++ | UTF-8 | C++ | false | false | 6,818 | cpp | OneVersusOneModel.cpp | /* Copyright © 2017-2021 ABBYY Production 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 writing,... |
8676904c3520a6a6a7dba48b37c78d4d0ceec3bb | 2b971fba3e6458017878629267ff3aaa56f52a4a | /libs/cegui/impl/include/sge/cegui/impl/texture_target.hpp | 1ee7de96fe5afb4049596fadd0c9ff9e45b5f456 | [] | no_license | BlenderCN-Org/spacegameengine | 31c592ae411989a14593bd432b519a0bf185f12f | 8df13fe9b9d734b19591dbed8fd753342e87ef5c | refs/heads/master | 2020-05-23T23:59:49.731228 | 2019-04-28T09:23:04 | 2019-04-28T09:23:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,466 | hpp | texture_target.hpp | /*
spacegameengine is a portable easy to use game engine written in C++.
Copyright (C) 2006-2016 Carl Philipp Reh (carlphilippreh <at> gmail.com)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License
as published by the Free Software Foundation... |
3d67461d3cfd0f252cf22524260b2ef83da7fc18 | 8f421001634923dbfb032389ecd094d4880e958a | /modules/bioinspired/src/imagelogpolprojection.cpp | 871658acbffd4da48ae690b71731df046a3456f1 | [
"Apache-2.0"
] | permissive | opencv/opencv_contrib | ccf47a2a97022e20d936eb556aa9bc63bc9bdb90 | 9e134699310c81ea470445b4888fce5c9de6abc7 | refs/heads/4.x | 2023-08-22T05:58:21.266673 | 2023-08-11T16:28:20 | 2023-08-11T16:28:20 | 12,756,992 | 8,611 | 6,099 | Apache-2.0 | 2023-09-14T17:35:22 | 2013-09-11T13:28:04 | C++ | UTF-8 | C++ | false | false | 23,130 | cpp | imagelogpolprojection.cpp | /*#******************************************************************************
** IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
**
** By downloading, copying, installing or using the software you agree to this license.
** If you do not agree to this license, do not download, install,
** copy or u... |
fd392574d6a73a71fc73985dec430926faeadeaf | 7e3b429db7c3c16684897e41146a99c27335e424 | /Trees/BinTree/ConstructNormalBSTtoBalancedBst.cpp | e8d46ea5fd91769750207532230146b04281e0b0 | [] | no_license | kailasspawar/DS-ALGO-PROGRAMS | 21d2ef01bbbcc82d3894ceb48104620b79cd387e | 4ae363d1d51406248b8afb38347c3e4cd92af5c3 | refs/heads/master | 2020-04-05T20:48:26.510384 | 2018-11-12T10:28:11 | 2018-11-12T10:28:11 | 157,195,857 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 968 | cpp | ConstructNormalBSTtoBalancedBst.cpp | #include<iostream>
#include"Bintree.h"
#include<vector>
using namespace std;
void storeBst(bnode root,vector<bnode>&bnodes)
{
if(root)
{
storeBst(root->left,bnodes);
bnodes.push_back(root);
storeBst(root->right,bnodes);
}
}
bnode builtTree(vector<bnode>&nodes,int start,int end)
{
if(start > end)
return NUL... |
fbae1ab71e6e3e9ec612035c296a3af3d16d4d15 | b66715c97e48731ebba2afb8d81d02beb695c691 | /UVa/10295 - Hay Points.cpp | 0b8c580ea810328cfc742b50306c6f396cc5228e | [] | no_license | justHusam/Competitive-Programming | c105b982108db914d80c759741302a9828b123b4 | 4c86037370774dc18beb1f2b302a59f2e84979d4 | refs/heads/master | 2020-03-19T10:26:12.874772 | 2018-09-14T12:24:41 | 2018-09-14T12:24:41 | 136,369,844 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 590 | cpp | 10295 - Hay Points.cpp | #include<bits/stdc++.h>
using namespace std;
/*
* You got a dream, you gotta protect it.
*/
typedef long long ll;
char s[10001];
int main(int argc, char **argv) {
int n, m;
while (scanf("%d%d", &n, &m) > 0) {
map<string, int> hs;
while (n-- != 0) {
char s[50];
int u;
scanf("%s%d", s, &u);
hs[s] ... |
22034a4ee9d26d28778362b23b4aabd8b77bc49b | 3565842770fac9d8034f259b0e9718d7bbe10c49 | /iRODS/lib/core/src/irods_stacktrace.cpp | f6663cb1163249556619400bcb6c5c835e5be0ab | [
"BSD-3-Clause"
] | permissive | pombreda/irods | b99f17acce6d505d3c698372544b40a91ffbefc3 | 32b35e66e30a6b61339460d27b93a8a191f75701 | refs/heads/master | 2021-01-20T05:04:41.746385 | 2015-04-30T03:41:28 | 2015-04-30T03:53:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,386 | cpp | irods_stacktrace.cpp | #include "irods_stacktrace.hpp"
#include "rodsErrorTable.hpp"
#include "irods_log.hpp"
#include <iostream>
#include <execinfo.h>
#include <stdlib.h>
#include <cxxabi.h>
namespace irods {
static const int max_stack_size = 50;
stacktrace::stacktrace( void ) {
}
stacktrace::~stacktrace( void ) {
... |
bec49270c026f0a7d264354d10778715c300fbee | 04bbdb8a4ecd5897415762d12329043aa6bc42fe | /PrintUsers.cpp | bedae39ecf6238802251509cd73868f4ad603441 | [] | no_license | Cypherman1/LearnCPP | 8ad352c044f0fa536e6eef1e48e5e4f7682f79f0 | 6f1cecd07d5fb09b867cb112f459b86b144a1366 | refs/heads/master | 2022-01-19T12:59:27.151834 | 2019-03-31T08:31:21 | 2019-03-31T08:31:21 | 178,661,911 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 847 | cpp | PrintUsers.cpp | #include <iostream>
using namespace std;
int main()
{
string Name1, Address1, Phone1, Name2, Adderss2, Phone2;
cout << "First User" << endl;
cout << "Enter Your Name:" << endl;
getline(cin, Name1);
cout << "Enter Your Address:" << endl;
getline(cin, Address1);
cout << "Enter Your Phone:" << ... |
b194b3b2e972b43a94d2d2637a626597b00cbb58 | 88a40203ebdbf2810a21688fb84a3f56d2ebb1b3 | /cc/library/viewer/key_handler.cc | 500302ced46be9b1ad265903d90e93c3078dcfc3 | [] | no_license | aushani/flsf | 2ae356338f08f2ba48a499fadb3eb91d6c01f66f | a1782b3accffa4ebb5f231e76a6e1d958d16b714 | refs/heads/master | 2020-03-28T13:08:19.554199 | 2018-08-23T21:47:15 | 2018-08-23T21:47:15 | 148,369,543 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 478 | cc | key_handler.cc | #include "library/viewer/key_handler.h"
#include <iostream>
namespace library {
namespace viewer {
bool KeyHandler::handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa) {
if (ea.getEventType() == osgGA::GUIEventAdapter::KEYDOWN) {
KeyPress(ea);
return false;
}
return false;
}
bool Ke... |
4124ab0de142d1a89d01691f1f69a12128bd3592 | 4c3ed23a4767f2bee7c64f0f7fdefec62d696a73 | /Jit/Allocation/Registers/RegisterSet/RegisterPriorityQueue.h | 73dba9238f8086dfe9585b59154af226d5dea353 | [] | no_license | sircodesalotOfTheRound/VerbOS | daa1fcc112c7f8160bdc7f44a8d8bb4020bbb817 | 2eef81eac92f58f10a075c33ba6a1a64c58a807e | refs/heads/master | 2021-01-17T13:10:09.052979 | 2014-12-14T00:31:26 | 2014-12-14T00:31:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,428 | h | RegisterPriorityQueue.h | //
// Created by Reuben Kuhnert on 14/9/30.
// Copyright (c) 2014 Reuben Kuhnert. All rights reserved.
//
#ifndef __RegisterPriorityQueue_
#define __RegisterPriorityQueue_
#include <unordered_set>
#include <set>
#include <queue>
#include "VariableContainer.h"
#include "Intelx64Registers.h"
namespace jit {
class R... |
24c9eed35a48bff28ecbbb8b721198b0353df4cd | 0eaecdffc6e279d1120dbb4401cd2d30d3ee691b | /Old/personal projects/Numerical analysis library/Sets (work in progress, old, didn't know trees existed).cpp | 8fe9796d9888cceb8dadd546bbf57e87de0fd278 | [] | no_license | datoad4510/My-Projects | d61250dc4b1c20bc3fea04ec6bc658ddf6bc35cf | fec9c94c76f8bc36905fa53afd0d02310e0bad4f | refs/heads/master | 2022-02-14T03:12:24.821374 | 2022-01-18T16:31:04 | 2022-01-18T16:31:04 | 215,118,966 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,992 | cpp | Sets (work in progress, old, didn't know trees existed).cpp | #include <vector>
#include <iostream>
using namespace std; //assuming there are no duplicates in the sets. normalize deletes duplicates
template<typename A>//fix the functions
void normalize(vector<A>& v);
template<typename A>
vector<A> set_intersection(vector<A>&, vector<A>&);
template<typename A>
vector<A> set_uni... |
1b24f90a7311f094d1350b3154587b5affaa8555 | 0b5f08af03144a396465c15ff48b77d971638b24 | /src/ChessBoardSizeValidator.hpp | 8d109bd982050e2cfd044dea1cb01e13eff34066 | [] | no_license | virtustron/elementary_task_WSL_1_ChessBoard | 25353a7fc6d02284e87c73120f07f15d56780505 | f34c9224761f5fb4635e8848547b12fea8f77767 | refs/heads/master | 2023-08-18T12:05:21.446109 | 2021-09-28T17:18:16 | 2021-09-28T17:18:16 | 409,842,439 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 109 | hpp | ChessBoardSizeValidator.hpp | #pragma once
class ChessBoardSizeValidator
{
public:
static bool IsValid(int height_or_width);
};
|
dc3e81a3d8279a18d57c3585dc17a621162e8c2c | 4b3cdd153f32b89b32c306d10351094b49216202 | /dungeon/Object.cpp | 720dd589a611b1d865d62dcca22ef53e290ab1c9 | [] | no_license | rhythm-games-maker/Duntam | 4ac091c4ae2f6d2392e66beefc237d53fe699e95 | e22cafb37346c1050759a05908913f7018f3293c | refs/heads/master | 2020-05-20T18:23:31.820009 | 2018-11-26T15:14:21 | 2018-11-26T15:14:21 | 185,705,421 | 2 | 0 | null | 2019-05-09T01:38:37 | 2019-05-09T01:38:37 | null | UHC | C++ | false | false | 7,613 | cpp | Object.cpp | #include "Object.h"
#include "GameManager.h"
Object::Object(int posX, int posY)
{
this->positionX = posX;
this->positionY = posY;
this->lookingDir = NONE;
this->prevMove = NONE;
this->moveDelay = 0;
this->frozing = 0;
this->TypeName = 0;
this->interactionCount = 0;
this->drawCount = 0;
}
Object::~Object()
{
... |
9066b403f239dc3fd50195d633b650e0952815d7 | b3ec952d36f01c219d0355c3eee6d7f15d643d19 | /wrapper/zeromq/include/ZMQEnums.h | 463ef11b2792580b51d20283eebcb5aac22cf9d3 | [] | no_license | nasa/GMSEC_API | 5e3ee2005f2ebce028b692a0c100a511bf848bfe | 1022a61c842c4903e53b847e233d6d56a3671160 | refs/heads/master | 2023-06-22T02:30:39.227932 | 2023-06-08T13:39:14 | 2023-06-08T13:39:14 | 292,371,811 | 17 | 4 | null | 2023-06-08T13:39:05 | 2020-09-02T19:09:19 | C++ | UTF-8 | C++ | false | false | 587 | h | ZMQEnums.h | /*
* Copyright 2007-2023 United States Government as represented by the
* Administrator of The National Aeronautics and Space Administration.
* No copyright is claimed in the United States under Title 17, U.S. Code.
* All Rights Reserved.
*/
/**
* @file Enums.h
* Holds the declaration of ZeroMQ HeartbeatType enu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.