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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
72657ed7c0558e5f13ffee8c6e247e0460c694d8 | ea19ea0929a84362a4dd9f6c8a02d3ea185d5fa5 | /software/examples/cpp/01-temperatures/main.cpp | 5823edba817b87163874d4386f03e9cbe7abb7ab | [
"MIT"
] | permissive | esysberlin/lufo-ifez-datenkonzentrator | bc96568d8a65f775332536514e6a1fac69d9580e | f803724b316e2df46e69afab91afa22c64a8d920 | refs/heads/master | 2020-04-15T05:48:02.151118 | 2019-10-21T15:31:57 | 2019-10-21T15:31:57 | 164,437,649 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 570 | cpp | main.cpp | #include "now.h"
#include "spi.h"
#include <iostream>
int main()
{
const auto NUM_QUERIES = 1000;
std::string spiResponse = "";
auto begin = Now::msSinceEpoch();
for (auto i = 0; i < NUM_QUERIES; ++i)
{
spiResponse = Spi::query(Spi::SLAVE_THERMO_ELEMENTS, Spi::CMD_THERMO_ELEMENTS_GET_TEMPERATURES);
}... |
4ea3672759c274f565461712dcfcc8862c9e0f1e | 8ee0be0b14ec99858712a5c37df4116a52cb9801 | /Client/Interface/DLGs/CSeparateDlg.cpp | 5e2c2815e1d53282bb7286d29a390ca2ebd61cb1 | [] | no_license | eRose-DatabaseCleaning/Sources-non-evo | 47968c0a4fd773d6ff8c9eb509ad19caf3f48d59 | 2b152f5dba3bce3c135d98504ebb7be5a6c0660e | refs/heads/master | 2021-01-13T14:31:36.871082 | 2019-05-24T14:46:41 | 2019-05-24T14:46:41 | 72,851,710 | 6 | 3 | null | 2016-11-14T23:30:24 | 2016-11-04T13:47:51 | C++ | UHC | C++ | false | false | 8,659 | cpp | CSeparateDlg.cpp | #include "stdafx.h"
#include ".\cseparatedlg.h"
#include "../CDragItem.h"
#include "../icon/ciconitem.h"
#include "../it_mgr.h"
#include "../command/uicommand.h"
#include "../../common/cinventory.h"
#include "../../gamedata/event/cteventseparate.h"
#include "../../gamedata/cseparate.h"
#include "../../gamecomm... |
e83ed006915605e3ead6673f85fd778d8490e5f4 | a8ed4ea435be7b035c6d086208559221863811ba | /src/Main.cpp | a568ef6d786310a0fe903b8d73db0c3987f5157b | [] | no_license | Tequilac/SpaceInvaders | 8e34027d0ae2fd32a1764035f0a44f5b38556970 | ab962d5bb9ae2943d64000f795e7a368c566227f | refs/heads/master | 2023-02-09T00:21:07.580848 | 2020-12-31T12:34:42 | 2020-12-31T12:34:42 | 325,796,526 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,773 | cpp | Main.cpp | #include <iostream>
#include <vector>
#include <memory>
#include <SFML/Graphics.hpp>
#include "Object.h"
#include "Laser.h"
#include "Player.h"
int main()
{
sf::Texture playerTexture;
playerTexture.loadFromFile("res/enemy.png");
sf::Sprite playerSprite;
playerSprite.setTexture(playerTexture);
Play... |
897b51af11f923254c6506026f0cbede488d4ae2 | fa1563c5a3fd3e800a3e586fcc2db920ea34a8ab | /permut2.cpp | e65b0b6abc5aec983fe4d37bafbba215d85c328a | [] | no_license | pratz1997/SPOJ | 2d1ea5d3bc013772d8f65072c5ba7f75e19c5256 | f2a81e7eca1dcdd90691ef04b1ff69e6cf99731e | refs/heads/master | 2021-08-30T11:18:56.573808 | 2017-12-17T17:41:21 | 2017-12-17T17:41:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 470 | cpp | permut2.cpp | #include<iostream>
#include<vector>
using namespace std;
int main()
{
while(1)
{
int n;
cin>>n;
if(!n)
break;
else
{
unsigned int f=0,k,i;
vector<unsigned int> v;
while(n--)
{
cin>>k;
v.push_back(k);
}
vector <unsigned int>::iterator it;
for(i=1,it=v.begin();it!=v.end();i++,it... |
d581ba8496e40b3c7d08e22976a930540060c172 | 9dc21dc52cba61932aafb5d422ed825aafce9e22 | /src/appleseed/foundation/utility/api/specializedapiarrays.cpp | 306c41381eaba8d77c602255d337fa871fd67e47 | [
"MIT"
] | permissive | MarcelRaschke/appleseed | c8613a0e0c268d77e83367fef2d5f22f68568480 | 802dbf67bdf3a53c983bbb638e7f08a2c90323db | refs/heads/master | 2023-07-19T05:48:06.415165 | 2020-01-18T15:28:31 | 2020-01-19T11:52:15 | 236,110,136 | 2 | 0 | MIT | 2023-04-03T23:00:15 | 2020-01-25T01:12:57 | null | UTF-8 | C++ | false | false | 3,024 | cpp | specializedapiarrays.cpp |
//
// This source file is part of appleseed.
// Visit https://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited
// Copyright (c) 2014-2018 Francois Beaune, The appleseedhq Organization
//... |
97b5b4993692b0e2755ce752ea23d657f5591b88 | 6e69ef80d5743105c192df5867110ab2fbc197f6 | /src/actions/single_action/single_action_class.h | df96776a8d086f0744d35e6f93904fd2c94ea5c5 | [] | no_license | domischi/simpimc | b632b1af87184cda3873b280edad5bfca6de74c5 | 5c062959be49ec6e5a67a12b1b7a0605531ff72f | refs/heads/master | 2021-01-16T19:47:18.081454 | 2015-09-02T13:46:45 | 2015-09-02T13:46:45 | 42,102,631 | 0 | 0 | null | 2015-09-08T09:24:30 | 2015-09-08T09:24:30 | null | UTF-8 | C++ | false | false | 1,190 | h | single_action_class.h | #ifndef SIMPIMC_ACTIONS_SINGLE_ACTION_CLASS_H_
#define SIMPIMC_ACTIONS_SINGLE_ACTION_CLASS_H_
#include "../action_class.h"
/// Action class for actions affecting only a single species of particles
class SingleAction : public Action
{
protected:
double i_4_lambda_tau; ///< 1/(4\lambda\tau)
double lambda; ///< h_ba... |
6b7fa6ddea6fb75892b9e56b16c9b7a772c1a945 | e1b83db0ce6f8c9c840bfb36a8357469ba1a97c7 | /ocam_calibration.h | 69f58044d355b85fc83bbb6c55e11d0dbe4a4132 | [] | no_license | siposcsaba89/ocam-calib-cpp | b09082e0b081afa3d3c159c8ae72db891374ab0a | 056cd13b592cea293de77455bb0ba710c97bb3f6 | refs/heads/master | 2023-02-20T19:35:26.990515 | 2023-02-08T15:22:05 | 2023-02-08T15:22:05 | 62,483,078 | 29 | 16 | null | null | null | null | UTF-8 | C++ | false | false | 457 | h | ocam_calibration.h | #pragma once
#include <vector>
#include <opencv2/opencv.hpp>
struct OcamCalibRes
{
std::vector<double> ss;
std::vector<double> ss_inv;
double center_x;
double center_y;
std::vector<std::vector<double>> R;
std::vector<std::vector<double>> T;
};
double calibrateCameraOcam2(const std::vector<std::vector<cv::Poin... |
74acd4649ddc5d65f782a7a58ae8ae70c1c6252c | 0c9cae0ec0f276b6f727cab8b0829b831dd0b7fb | /RotateImage/RotateImage/RotateImage.cpp | 3c39aee9adf97dcbfd50124755b6090b8d5986ec | [] | no_license | timruning/leecode | e7b97bd52cf2e064b3873d980c81d040043090a6 | 899643daeb40a8f6b4ebe975f3c76ff1865f7959 | refs/heads/master | 2021-01-19T02:55:42.357388 | 2016-07-26T14:02:13 | 2016-07-26T14:02:13 | 45,767,185 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 379 | cpp | RotateImage.cpp | // RotateImage.cpp : 定义控制台应用程序的入口点。';
//
#include "stdafx.h"
#include<vector>
#include<iostream>
using namespace std;
class Solution {
public:
void rotate(vector<vector<int>>& matrix) {
for (int i = 0; i < matrix.size(); i++){
for (int j = 0; j < matrix[0].size(); j++){
}
}
}
};
int _tmain(int argc, _... |
185d632cd39f832cb11c782e9904d00e10069981 | 8d5c4edf79d4127186ea085244401339f6db1f19 | /hospitalv5.cpp | 7ebd77a868d4b3e2a639cc6b9259b49cddcee362 | [] | no_license | Seemanthini/Hospital_Mgmt | 289c7f0b4debc575ad6551594df76783e68e6b7e | 29a4f26e2ab24fdd4278ddda498dc3d57a60524d | refs/heads/master | 2016-08-12T13:05:02.369761 | 2015-06-06T20:43:31 | 2015-06-06T20:43:31 | 36,993,700 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 12,529 | cpp | hospitalv5.cpp | #include<iostream>
#include<new>
#include<cstdlib>
#include<cstring>
#define MAXPATIENTS 200
#define MAXROOMS 200
using namespace std;
int deluxe=0,semi=0,normal=0;
int numOfPatients=0,numOfRooms=0;
// the structure containing the node... info and a link *next to point to the next node
struct nod{
... |
b39a6708ae562034971ce8e85c9f13e0796f4049 | b6d1df49c1ec621a02204b1100312ecbb3e76ad3 | /src/video/photoannotationdbfuncs.cc | 572db6d252eecd880d268469499cecba16055fac | [] | no_license | flylong0204/projects | 5271acde325cf3947fac7433077353b52fa07bc4 | b1e5c918d4aeb34c36576dababc5509dbb89afd1 | refs/heads/master | 2017-12-06T06:35:20.926786 | 2017-01-24T23:53:13 | 2017-01-24T23:53:13 | 79,988,197 | 1 | 2 | null | 2017-01-25T06:11:23 | 2017-01-25T06:11:23 | null | UTF-8 | C++ | false | false | 16,511 | cc | photoannotationdbfuncs.cc | // ==========================================================================
// Photoannotationdbfunc namespace method definitions
// ==========================================================================
// Last modified on 1/18/11
// ==========================================================================
#in... |
1b7dd607dba11041737aa225319105b552e851ee | f3a9174535cd7e76d1c1e0f0fa1a3929751fb48d | /SDK/PVR_BP_KillCam_classes.hpp | 159f9eab8381d714e1473e1bca81bac20a0dc421 | [] | no_license | hinnie123/PavlovVRSDK | 9fcdf97e7ed2ad6c5cb485af16652a4c83266a2b | 503f8d9a6770046cc23f935f2df1f1dede4022a8 | refs/heads/master | 2020-03-31T05:30:40.125042 | 2020-01-28T20:16:11 | 2020-01-28T20:16:11 | 151,949,019 | 5 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 636 | hpp | PVR_BP_KillCam_classes.hpp | #pragma once
// PavlovVR (Dumped by Hinnie) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
// BlueprintGeneratedCla... |
cbcae2ae4f6ffca8356da63ba3b344f40ad888c7 | 5109f1bdba55c119b1b754b0359a87a8af3f9dd5 | /Source/FNX_LineShape.cpp | a652e4a61578864a0838db7d308dd656c988bdc2 | [
"MIT"
] | permissive | krzysztofzablocki/Fenix_2003 | 2db8317a3866339a63ac313caaf8091a22d9401a | c0259a1ff3a0670a3c364671b37d2bc5c51e0114 | refs/heads/master | 2021-01-10T07:59:48.386893 | 2015-10-01T14:46:24 | 2015-10-01T14:46:24 | 43,500,734 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,662 | cpp | FNX_LineShape.cpp | #include "FNX_PhysInc.h"
#include "FNX_BaseShape.h"
#include "FNX_LineShape.h"
#include "FNX_Actor.h"
FNX_LineShape::FNX_LineShape(FNX_Actor *actor, const FNX_LineShapeDesc &desc)
: FNX_BaseShape(actor, desc)
{
int Dir=1;
if(desc.Start.y>desc.End.y)Dir=-1;
FNX_Vector v1,v2;
v1=FNX_Vector(Dir,0);
v2=desc.End-d... |
3ee494af1c5255b2d58753e8128e7ff66da260fe | 62c976bbd8ba0e2bbfa251ba21a24b3005484dd2 | /CalificaArreglo/CalificaArreglo/main.cpp | 74eb4e9c0ac788e7d6154742d897fc92b4e1e7fe | [] | no_license | PatricioSaldivar/FundamentsOfProgramming | 7e5c81c79cd48fd273880d0590630d52c65284d7 | f66ee4cd7b34db72111c5bcb303e0b61900996a6 | refs/heads/master | 2020-03-29T06:56:07.857308 | 2018-09-20T17:37:38 | 2018-09-20T17:37:38 | 149,634,691 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,182 | cpp | main.cpp | //
// main.cpp
// CalificaArreglo
//
// Created by Pato Saldivar on 30/10/17.
// Copyright © 2017 Pato Saldivar. All rights reserved.
//
#include <iostream>
#include <cmath>
using namespace std;
void PideDatos(char respuestas[], int &tam){
do{
cout<< "Cuantos datos?";
cin>>tam;
}while... |
4fc0b23223994e0ea681411188058ed976e20d40 | d32b701f6ccd833293c8571b5411fa55a57b0cb9 | /src/select_module.h | 810201563e1c11511408eecd633f4266f0c072ef | [] | no_license | mitchellgordon95/GraphicsFromScratch | d0108795d50eb500a3d166602f761cad102e4ea7 | 30b678f713597a95370411eaf48450737a3d2399 | refs/heads/master | 2020-05-29T21:14:59.508395 | 2015-05-05T05:14:45 | 2015-05-05T05:14:45 | 35,078,624 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 379 | h | select_module.h | #ifndef SELECT_MODULE_H
#define SELECT_MODULE_H
#include "cli_module.h"
// Implements the select command for the cli
class CLI_Select: public CLI_Module
{
private:
// Configures the filter that is used, globally.
void execute(std::vector<char *> ¶ms);
public:
CLI_Select(): CLI_Module("select", 1) {};
... |
a05fbd214c8a43f791c95ab287c24999b9091d27 | d2b81ede3d3a516f5313835ce07dfea97db46c87 | /farey/farey_threads.cpp | 9706acad39be8f3b59a5070892ae0491977664dc | [] | no_license | p15-git-acc/code | 8b847ad95cd59a13446f595ac65d96d6bc45b512 | 59337447523018dfab71cbbbda53b4bb88b7ce59 | refs/heads/master | 2022-12-16T14:38:09.073676 | 2020-09-16T09:23:00 | 2020-09-16T09:23:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,794 | cpp | farey_threads.cpp | // compute Farey discrepancy sigma (p/q-l/m)^2
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <gmp.h>
#include "A005728_table.h" // from https://oeis.org/A005728/b005728.txt
#include "pthread.h"
#include "slint.h"
#include "inttypes.h"... |
cd135ed38c3562f5967cb7d1825b9676c74348b0 | 66ac7cc546a5ffbb39601e479276d926782fe7b2 | /include/cloudapi/bean/ConfirmBean.h | eb5cdabfebcc262a34dbe00b691ed548afd4a9fb | [] | no_license | fengfansky/cloudappclient_linux | 487035f69f77aa2657b64087e419907399b6a2b4 | 90a806e7b4c1cabd741e3d0f6ebc658a7e3b2339 | refs/heads/master | 2021-01-01T17:45:59.630445 | 2017-08-23T11:30:41 | 2017-08-23T11:30:41 | 98,153,489 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 932 | h | ConfirmBean.h | //
// Created by Fan Feng on 2017/8/7.
//
#ifndef CLOUDAPPCLIENT_CONFIRMBEAN_H
#define CLOUDAPPCLIENT_CONFIRMBEAN_H
#include <vector>
#include "../action/BaseAction.h"
namespace CloudAppClient{
class ConfirmBean {
private:
std::string confirmIntent;
std::string confirmSlot;
std::vecto... |
e2db3148293a5d45470a5da00736e5b688e04b98 | 9a879c0669bc70facf5dc2fadaca2eff54bb8a53 | /alljoyn/common/inc/qcc/StringSource.h | 13ff2f71cec2d5b9e62a62de586e824d0ca035b2 | [
"ISC"
] | permissive | octoblu/alljoyn | d86c4d2bb60f989f52f3a3f9a0ce8d11ef5cd3f9 | a74003fa25af1d0790468bf781a4d49347ec05c4 | refs/heads/master | 2021-01-21T12:47:18.034834 | 2016-03-15T16:23:31 | 2016-03-15T16:23:31 | 21,958,119 | 37 | 29 | null | 2016-03-15T16:12:35 | 2014-07-17T21:24:28 | C++ | UTF-8 | C++ | false | false | 2,769 | h | StringSource.h | /**
* @file
*
* Source implementation used to retrieve bytes from qcc::String
*/
/******************************************************************************
* Copyright (c) 2009-2011, 2014, AllSeen Alliance. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any... |
b6eba1d73f38639919e82904d9d05d65051d9958 | 9f5846ee31946ac0defb7d0a11a9fa5da78feaf4 | /Points in Segments (II).cpp | 215f2020cd12e105294496ea519994b50c7d178c | [] | no_license | MohamedAboBakr/LightOJ | 565a44b42b951b96dc8ec2c0194e4163d0e508c7 | 9287a04771a01b12d6872febdd5cbcd4d7b570b4 | refs/heads/master | 2020-03-13T19:16:37.255696 | 2018-04-27T05:41:49 | 2018-04-27T05:41:49 | 131,250,438 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,053 | cpp | Points in Segments (II).cpp | #include<bits/stdc++.h>
using namespace std;
typedef long long ll ;
typedef pair<int,int>pi;
int readInt () {
bool minus = false;
int result = 0;
char ch;
ch = getchar();
while (true) {
if (ch == '-') break;
if (ch >= '0' && ch <= '9') break;
ch = getchar();
}
if (ch == '-') minus = true; e... |
31d6d0e41f266642ea82309b11efd5bc4d4f251c | a11366c47aca47cd9dc186c0dc950359571648ef | /3-POTENCIOMETRO/Entrada_Analogica/Entrada_Analogica.ino | 3feffb95c801d0645a194ed28ca2ea2ece3a5c1b | [] | no_license | Canal-Eletronica-Facil/Projeto3_U2_Potenciometro_ESP32 | f8174d6cbb2022be8fca29fe976b9efaead45410 | 7399d064fc44434dc7b4c4755cc57806379a2bf4 | refs/heads/master | 2022-03-30T13:58:58.863216 | 2020-01-30T20:45:43 | 2020-01-30T20:45:43 | 237,302,187 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,425 | ino | Entrada_Analogica.ino | //... Livro IoT na Prática - PROGRAMA 3 - Leitura de Entradas Analógicas ...//
//............. BLOCO 1 - NOMEAR PINOS USADOS NO PROJETO .............//
int POTENCIOMETRO = 34; // Seleciona o nome POTENCIOMETRO para o GPIO 34 do ESP32
int Leitura_POT = 0; // Variável que irá salvar o valor obtido da conversão ADC... |
f702fd86e8d533d20ae238321ab0383b9575951d | b28630e51de521151d56a3489c402bde14fd9ffb | /Mx/Input/MxGamepad.h | eda1adb1b0ecf15a4f0ae0614c9613f363450581 | [] | no_license | hitsz-ldjam/MixEngine | d1f9891ed15621e47f9c4ebdb4a8e371831eba99 | 005f4c9341d55b38f8d0b5955d32951887b08d46 | refs/heads/master | 2020-04-13T19:41:06.377357 | 2019-12-21T13:08:24 | 2019-12-21T13:08:24 | 163,409,978 | 4 | 5 | null | 2019-11-26T11:34:50 | 2018-12-28T12:48:40 | C++ | UTF-8 | C++ | false | false | 1,167 | h | MxGamepad.h | #pragma once
#ifndef MX_GAMEPAD_H_
#define MX_GAMEPAD_H_
#include "../Engine/MxPlatform.h"
#include <SDL2/SDL.h>
namespace Mix {
class Input;
class Gamepad :GeneralBase::NoCopyBase {
friend class Input;
public:
Gamepad(int _index, Input* _input);
~Gamepad();
Gamepad(Gamepad&& _other) noexcept;
Ga... |
8c9a9c7b75a4eb872f76400916c5aebb39f905c3 | a02220745ccf218c81353edc04becfbf0e9bcc82 | /kinematics.h | f7fe3b7d7acbb500065c2dc40ab507c6f61871d6 | [] | no_license | Yuancheng-Zhang/Romi-Line-Following-Task | c034f853398ef1bf2403cc3327c6e6895d286187 | 3c12487433905acc7c3e9dda8d9abcf34c6db0dc | refs/heads/master | 2022-12-17T08:45:46.295891 | 2020-09-22T00:47:21 | 2020-09-22T00:47:21 | 297,494,787 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,193 | h | kinematics.h | #ifndef _Kinematics
#define _Kinematics_h
#define PI 3.1415926535897932384626433832795
//You may want to use some/all of these variables
const float WHEEL_DIAMETER = 70.0f; // Diameter in mm.
const float WHEEL_RADIUS = 35.0f; // Radius in mm.
const float WHEEL_SEPERATION ... |
65bbe17ac0e2fb8bbafb3a6426ff4619cf2a2575 | 3dd49f1ebae3af35d6d24c58ade47880dbdfa11f | /exercise/chapter16/ex16_13.cpp | 0f390bde7595f7e3977e2043658ed38032a554c5 | [] | no_license | xiaoqiangkx/cpp_primer | dc6be8e602247f4bd0c6346ecefac8049b7f1207 | 37c51fcb1559b80dbe871fff22c8abb05396a608 | refs/heads/master | 2021-01-23T12:37:43.916372 | 2014-10-10T07:58:41 | 2014-10-10T07:58:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 332 | cpp | ex16_13.cpp | #include <iostream>
#include <vector>
using namespace std;
template <typename T>
void printElem(const T &container) {
typename T::size_type len = container.size();
for (int i=0; i<len; i++) {
cout << container[i] << endl;
}
}
int main() {
vector<int> data(5, 1);
printElem(data);
... |
6ae00ced4522937575392be4484ac955e94f2eb6 | 0085c801412b5695c824ca53cd0d103daff37027 | /qnod3d/itool.cpp | 7f26f0c7c1693c21d47b6e0a4071c77840edc332 | [] | no_license | alesegdia/qnod3d | f8926b9d516a23e8bf6005be57689974309728c6 | 5e71c56d02333b8640910a171d417b3a9e2a452c | refs/heads/master | 2021-01-22T10:21:16.531096 | 2015-08-31T01:48:09 | 2015-08-31T01:48:09 | 39,013,661 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 63 | cpp | itool.cpp | #include "itool.h"
ITool::ITool()
{
}
ITool::~ITool()
{
}
|
d875b0f64192e3ab1bddeb5bd37281adaf4b3b6a | 67a6e8dfe7952cecfd7ce69255f8fdc54de4a2fa | /loon/code/util.cpp | 9da33594a24d7092efc089dbbb6d2e2b3f833902 | [
"MIT"
] | permissive | stoman/HashCode2017Warmup | 3749fa5c83fc9cfa393b8eda75063022177b5082 | 14e0a07822321e9cb6c02fcf4570418c3ab231e1 | refs/heads/master | 2020-04-06T04:41:40.399316 | 2017-03-31T08:48:36 | 2017-03-31T08:48:36 | 82,566,422 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,275 | cpp | util.cpp | #pragma once
typedef long long ll;
#include <algorithm>
#include <iostream>
#include <limits>
#include <map>
#include <string>
#include <time.h>
#include <utility>
#include <vector>
#include <queue>
using namespace std;
//util classes
struct Cluster {
double center_r, center_c;
int id;
vector<pair<int, int>> cel... |
b748ea91c76399de957466822dfad72c03c37044 | 75baca9483e9f9f107d21b75910db826b93954c1 | /Git.cpp | a35ae71e26697070539b6577d0b6fccd1ce9f8df | [
"MIT"
] | permissive | effolkronium/GitChat | 365588e8784bdec01ae167d55114c2d034052670 | 82abbdefe50bd8718fcf655fbb2fe3981c89ade9 | refs/heads/master | 2020-09-12T01:02:25.065416 | 2019-12-09T23:46:09 | 2019-12-09T23:46:09 | 222,249,445 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,322 | cpp | Git.cpp | #include "Git.h"
#include <QDir>
#include <QProcess>
#include <QUuid>
#include <QMessageBox>
#include <QFile>
#include <QTextStream>
#include <stdexcept>
#include <iostream>
using namespace std::literals;
Git::Git(QString gitUrl, QString login, const QString& password)
: m_gitCredUrl([&]{
return std::move... |
5663a70c26ed45c4c4c8c7aed4b28e83c82ed7c4 | 77175d4ea07c21ae29b774568f9728fa0d033776 | /xtc/InDatagramIterator.hh | f6306a90298dbec907a8400b55f58c7a56b4185c | [] | no_license | lcls-daq/pds | e7c8e33250df6bf172d26966d687fb6b4b9eb2d4 | 2f23434a8b215a0b17097732226e9f56fb208d1b | refs/heads/master | 2023-08-31T20:03:35.704427 | 2023-08-17T10:16:05 | 2023-08-17T10:16:05 | 87,124,361 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 781 | hh | InDatagramIterator.hh | #ifndef Pds_InDatagramIterator_hh
#define Pds_InDatagramIterator_hh
#include <sys/socket.h>
namespace Pds {
class InDatagramIterator {
public:
virtual ~InDatagramIterator() {}
// skip over "len" bytes
// returns number of bytes skipped
virtual int skip(int len) = 0;
// read "len" bytes a... |
fd4a89942f14895078a624903f1f951cf29f21fa | dc44574b58526b5f6d6271a4df6e85fb715d4372 | /Binary_Tree_Maximum_Path_Sum.cpp | d289fb4c0ca83d5950aa04ff999d414866aab989 | [] | no_license | asuo1986/LeetCode-1 | d94ed17ce83320f50dddbca140802ad93b8a0e4f | 39ef37d1c25277685686f31dd4032e36d0c63d21 | refs/heads/master | 2020-04-05T23:36:31.013517 | 2017-03-03T22:53:05 | 2017-03-03T22:53:05 | 22,616,447 | 0 | 0 | null | 2017-03-03T22:53:06 | 2014-08-04T19:09:38 | C++ | UTF-8 | C++ | false | false | 1,349 | cpp | Binary_Tree_Maximum_Path_Sum.cpp | /* Given a binary tree, find the maximum path sum.
The path may start and end at any node in the tree.
For example:
Given the below binary tree,
1
/ \
2 3
Return 6.
*/
/**
* Definition for binary tree
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* Tre... |
e3217c17c7e9094dc84fbf048af4485413d9760d | 6b4e2a7f51647524db22208eb98e925d1537fb6b | /String/2456. Most Popular Video Creator.cpp | ba7d70e9ce0dd664b4b217bb5c34163f3cbc701e | [] | no_license | denis-gubar/Leetcode | a099e0fd07600ae63456059753332f90ddd96542 | ad54bee10fdf59644cc762218277a2f9de9b3509 | refs/heads/master | 2023-07-21T04:25:57.949932 | 2023-07-09T12:46:24 | 2023-07-09T12:46:24 | 218,048,440 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 773 | cpp | 2456. Most Popular Video Creator.cpp | class Solution {
public:
vector<vector<string>> mostPopularCreator(vector<string>& creators, vector<string>& ids, vector<int>& views) {
int N = creators.size();
vector<vector<string>> result;
unordered_map<string, long long> M;
unordered_map<string, vector<pair<int, string>>> P;
... |
531bf1b70e9f6c708b2e0baa7a2d57f6777bd07c | 6e8c0b99a8156e28dd8bb35bb5085d3e4167ad4e | /smart-room/heater_server/heater_server.ino | 5384b8ae479aec87d0cf707d8a648e03c9e8077c | [] | no_license | bhatt-007/smart-home | 3bd49ebfa3055f6446ae5d0c8003be11900ffab6 | 81598ca7168920577508f957a7ac2152d88f5690 | refs/heads/main | 2023-02-05T21:44:39.996528 | 2020-12-27T17:57:16 | 2020-12-27T17:57:16 | 324,815,185 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,197 | ino | heater_server.ino | #include <ESPmDNS.h>
#include <WiFi.h>
#include <WebServer.h>
#define POWER_ON 1
#define POWER_OFF 0
// Replace with your network credentials
const char* ssid = "Toofan";
const char* password = "NahiBataunga";
// Set web server port number to 80
WebServer server(80);
int heaterpin = 23;
int status = 0;... |
7fd61199bcf16b3c749a4398707bd9915b93ef6b | 1bbbb810b5b74130c4e0ae89de7c0157573f14c3 | /Plugins/Wwise/Source/AkAudio/Private/AkWaapiUMG/Components/SAkItemBoolProperties.cpp | e47d475c55ade2b322492a1267fa57355c44e40d | [
"MIT"
] | permissive | marcowchan/GMTK2021 | 0ce8be50662784b4776fcdd91561332fec632c4f | d638a7ae3ab1fa56839b77e9d15abf70ac3bde7f | refs/heads/new-main | 2023-06-02T05:47:45.688156 | 2021-06-17T22:49:41 | 2021-06-17T22:49:41 | 374,914,307 | 0 | 0 | MIT | 2021-06-17T22:49:42 | 2021-06-08T07:03:59 | C++ | UTF-8 | C++ | false | false | 8,740 | cpp | SAkItemBoolProperties.cpp | /*******************************************************************************
The content of the files in this repository include portions of the
AUDIOKINETIC Wwise Technology released in source code form as part of the SDK
package.
Commercial License Usage
Licensees holding valid commercial licenses to the AUDIOK... |
24ad06fff20192603aeac14987cd894ced7dc173 | f511554b0e1d08d4bf4f4837a9c464fc8dafee3f | /Dynamic_Programming/KS01.cpp | 48d133a0df429ffb27b972b47bf7b0228fc7f748 | [] | no_license | Subrat2196/Placement_CB | f0770415ddebc1a27474e3a6e9753c9662651154 | 04923eb5c9f114d920906f30b34125b7b65f7e5d | refs/heads/master | 2023-06-17T13:27:03.843544 | 2021-07-04T12:48:28 | 2021-07-04T12:48:28 | 369,576,385 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 581 | cpp | KS01.cpp | #include <iostream>
#include <climits>
using namespace std;
int KS01(int m,int n,int profit[],int wt[])
{
//base case
if(m==0||n==0)
return 0;
if(wt[n-1]>m)
return KS01(m,n-1,profit,wt);
else
{
int a=KS01(m-wt[n-1],n-1,profit,wt) + profit[n-1];
int b=KS01(m,n-1,profit,wt);
int c=max(a,b);
retur... |
871f3152b2ca01ea1b5430491da36d1297121eac | fa04d2f56c8d4ebfb931968392811a127a4cb46c | /trunk/Cities3D/src/UICore/ChatWindow.h | da0b1a249a085b68ed12a35f8dc15a03f71c56ff | [] | no_license | andrewlangemann/Cities3D | 9ea8b04eb8ec43d05145e0b91d1c542fa3163ab3 | 58c6510f609a0c8ef801c77f5be9ea622e338f9a | refs/heads/master | 2022-10-04T10:44:51.565770 | 2020-06-03T23:44:07 | 2020-06-03T23:44:07 | 268,979,591 | 0 | 0 | null | 2020-06-03T03:25:54 | 2020-06-03T03:25:53 | null | UTF-8 | C++ | false | false | 4,287 | h | ChatWindow.h | /*
* Cities3D - Copyright (C) 2001-2009 Jason Fugate (saladyears@gmail.com)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
*... |
0c0ccdbfba0e84ff09a366c23862f530b0ab9544 | 5aa4d7c5815346144a4654f807bded1dd12b6e0b | /src/Probe/Hardware.cpp | b6e0e4657a742bab4291d2c609d427b2c6fb4ebd | [] | no_license | janemxq/Scope | dce82f192750da730ccf52f294e6b0d03e050ade | c3cdda7ec5246fea3380fd879aa4e8db3dca9fbe | refs/heads/master | 2023-03-29T03:57:04.330659 | 2017-03-18T11:02:27 | 2017-03-18T11:02:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 364 | cpp | Hardware.cpp | #include "Hardware.h"
void hardware_init()
{
// Initialize outputs.
pinMode(DO_BEEPER, OUTPUT);
// Setup fast ADC.
bitSet(ADCSRA, ADPS2);
bitClear(ADCSRA, ADPS1);
bitClear(ADCSRA, ADPS0);
}
void beep(uint8_t times)
{
while (times > 0)
{
digitalWrite(DO_BEEPER, HIGH);
delay(1);
digitalWrite(DO_BEEPER, L... |
5306a0f7e010b8a1b39fc313e58f7178fb9bc9f3 | 95f8132db29d4ad024df35f2a3220dc0aa881d39 | /LinkedList/doublyLLandImpl.cpp | bbfe0bf37186c93af09d372645dc005aad52e088 | [] | no_license | jakaria9001/20DaysOfDS | c42b8e7e01a7b8c7edb9c2ee6924d8098984b5dc | 764b19c0fa604510e3ecc3ee1b115c7efa530f6c | refs/heads/main | 2023-03-31T21:33:59.297245 | 2021-04-13T19:15:05 | 2021-04-13T19:15:05 | 354,094,219 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,624 | cpp | doublyLLandImpl.cpp | #include <bits/stdc++.h>
using namespace std;
struct Node{
int data;
Node *next;
Node *prev;
Node(int x) : data(x) , next(NULL) , prev(NULL) {}
};
// advantages: reverse lookup;
// disadvantage: extra memory for prev node;
Node *insertAtBeg(Node *head, int x){
Node *newnode = new Node(x);
if(!h... |
659ca635214f54d8f83320728a572fe7379408eb | f7d4abf7da3af463f48b9d3f690671007513cc38 | /quadcopter_test/src/main.cpp | 10e67f95f64a096772a80f037291cd4bee0729fc | [] | no_license | chicagoedt/iarc_mission7 | 12314eee7fe029b1093c292b4f0c03b204cfd9bc | 1a14b198591a820eedea9974431c3040a1cda854 | refs/heads/master | 2021-09-07T11:15:48.606887 | 2018-02-22T05:12:58 | 2018-02-22T05:12:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,815 | cpp | main.cpp | #include "flight_test.h"
int main(int argc, char **argv)
{
ros::init(argc, argv, "talker");
flight fl;
fl.run();
/* ros::Publisher pub = n.advertise<geometry_msgs::Twist>("cmd_vel", 1);
ros::Subscriber sub= n.subscribe("ground_truth_to_tf/pose", 1, callback);
ros::Rate loop_rate(1);
geometry_msgs... |
9f146e02b158022486193bb0a6103bca5962952a | 239091e0ea1412e76e29c43acdfb969bc6a5f1dc | /OpenPass_Source_Code/openPASS/Components_PCM/Sensor_Collision/sensor_collision_implementation.cpp | da97817e28a5398f81843e92bb75e47c8b832c5a | [] | no_license | hlrs-vis/openpass | 080a2625d6427ffff835bdc122954df8d022f382 | 7375cb9cd5bd77c8aad5094766169ddb225c7f13 | refs/heads/master | 2021-05-15T14:00:49.331352 | 2019-11-05T14:20:55 | 2019-11-05T14:20:55 | 107,249,522 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,856 | cpp | sensor_collision_implementation.cpp | /*******************************************************************************
* Copyright (c) 2019 in-tech GmbH
* 2017, 2018 ITK Engineering GmbH
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.ec... |
370c89a33192991e2a81f05d3a0a9aae0c8e2eed | 7c3da5fec7f36ce8c82879ed8df6f22d3521011e | /controller/dloginwarningdialog.h | ec697214bf4e99edfeae68e083d6f0af34b6189a | [] | no_license | xiaoduge/controller_Code | 000c20e38369173516b002833aa326aae2ce6ebe | 26e9f933d2dfbb556a611eed1d6c7f1748735260 | refs/heads/master | 2022-03-25T00:45:44.834280 | 2019-12-03T05:41:19 | 2019-12-03T05:41:19 | 166,188,535 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 995 | h | dloginwarningdialog.h | #ifndef DLOGINWARNINGDIALOG_H
#define DLOGINWARNINGDIALOG_H
#include <QDialog>
class QLabel;
class QVBoxLayout;
class QPushButton;
class DLoginWarningDialog : public QDialog
{
Q_OBJECT
private:
explicit DLoginWarningDialog(QWidget *parent = 0);
DLoginWarningDialog(const DLoginWarningDialog ... |
a150c446b9a6178598b2aa6ab0b0409fa5bbca93 | 4db59c173b73c45559331ed90476fc13dbde735d | /Codes/ConWMWater2.cpp | 234221b8f51177550371e561d47eaaa0cb17cba1 | [] | no_license | 36V3mA21Hz/LeetCodePractice | 3410c2bd9483d16bba5899255aa0c64e0c437d1b | 1c39d99e0206483d945ed23c577afe8d2859ecd6 | refs/heads/master | 2021-01-18T19:21:52.316991 | 2015-04-03T01:51:00 | 2015-04-03T01:51:00 | 15,559,534 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,015 | cpp | ConWMWater2.cpp | class Solution {
public:
int maxArea(vector<int> &height) {
if (height.empty())
return 0;
int n = (int)height.size();
int max = 0, mL = height[0], mH = height[0], iL = 0, iH = 0;
for (int i = 1; i < n; i++) {
int ai = height[i];
int m1 = min(ai, mL) * (i - i... |
c6454aacdb396d1ddefc4755acc059540428fbe1 | 79eb737b20cfd332c84d5a6926365868f94ebdad | /include/yarp/os/impl/RunCheckpoints.h | 229c0fec8a013ba7bea7419d142e59efec302c1b | [] | no_license | johnty/libYARP_OS_iOS | 70d6555d8e0bc05b7feaa8711fca6efe9277e16c | 65bc7bf382e3de1004acff408b110808da3ff9c0 | refs/heads/master | 2020-08-26T20:08:47.955399 | 2014-02-12T01:02:00 | 2014-02-12T01:02:00 | 16,746,103 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,386 | h | RunCheckpoints.h | // -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
/*
* Copyright (C) 2007-2009 RobotCub Consortium
* CopyPolicy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT
* author Alessandro Scalzo alessandro.scalzo@iit.it
*/
#ifndef __YARPRUN_RUN_CHECKPOINTS__
#define __YARPRUN_RUN_C... |
83c90498d409d2169ad294c31c1c81727db0091c | 05ca2db4e7b0a2be23f3e2e35244c1fb500f482e | /(2019.12.31) 628. Maximum Product of Three Numbers/kai.cpp | 51bb8005b7bfef0fcdc0089df270d12f509567a7 | [] | no_license | William1Wu/Leetcode-Practice | 2d8cc370260706b257c0a31c4cd4659e965015f7 | fdb80f23eacdd52d6cda24c4511d23bfa5f8c932 | refs/heads/master | 2020-09-16T19:11:15.495132 | 2020-02-08T14:07:52 | 2020-02-08T14:07:52 | 223,863,342 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 295 | cpp | kai.cpp | class Solution {
public:
int maximumProduct(vector<int>& nums) {
sort(nums.begin(), nums.end());
int right = nums[nums.size()-3]*nums[nums.size()-2]*nums[nums.size()-1];
int left = nums[0]*nums[1]*nums[nums.size()-1];
return max(right, left);
}
}; |
2a4d631973a957d3366ec97b4544f3f0bc8207db | fcae25b75fbb83de18bb6dd46a50d7a1eb8f396c | /HistogramMerger.cpp | 270bc70576864afb8d91280bb960be2d52e40d3f | [] | no_license | joe-singh/ringFitterSystematics | 9d649c7b891a5229fb7b8aa23156e36da9fc61cc | 87e374a4383448ca964214722f9d87579d6fafb3 | refs/heads/master | 2020-12-02T11:05:45.690310 | 2017-08-14T02:15:51 | 2017-08-14T02:15:51 | 96,599,101 | 0 | 1 | null | 2017-07-24T16:37:44 | 2017-07-08T05:52:27 | C++ | UTF-8 | C++ | false | false | 11,776 | cpp | HistogramMerger.cpp | /** @class HistogramMerger
* Takes a nominal, lower, and upper file and
* merges the histograms as appropriate, changing errors
* where needed.
* @authors Jyotirmai Singh, Max Smiley */
#include <cmath>
#include "HistogramMerger.h"
#include "HistogramMaker.h"
HistogramMerger::HistogramMerger(TFile* nomFile, T... |
2e9152642f95edc909ea5419262e672c4c065d61 | caec6295097544335ad3a269ba5274a4c048e11d | /WpnAutoFire.h | 66516cf0e9241c0c38b31ab6405bddcfa196cba3 | [] | no_license | henningerlandsen/SpaceShooterConsole | 66816ca4ab062a0ae2f2827868da1fb68202651c | 1f6645b0d56d3bb28cc72146547acbe288b44da1 | refs/heads/master | 2020-04-17T22:54:40.702547 | 2014-03-03T10:24:11 | 2014-03-03T10:24:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,749 | h | WpnAutoFire.h | #pragma once
#include "Weapon.h"
class WpnAutoFire : public Weapon
{
float _pHeight;
float _pWidth;
int _counter;
void resetProjectile(Projectile &p); // Resets a projectile to initial state.
public:
WpnAutoFire(DrawingAssistant *drw, Vector2d* position, bool *fireControl);
~WpnAutoFire();
void draw();
void ... |
fed9b5ec502047cbc0d461f14c8fb6fa4f47019a | bbe049dba23a04d9f48359ecedd2b4d682960027 | /todoitem.cpp | ac8fef590254ecfce15c17da85dead539599f680 | [] | no_license | orgnnice/OrgNNice | f6e3e2e83fe621ff397986f29abc6c56af4bf309 | 81f318deb46c7c04dc110f901d42bf1c88da377e | refs/heads/master | 2021-01-10T06:03:30.075540 | 2016-03-29T11:25:44 | 2016-03-29T11:25:44 | 45,345,710 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,122 | cpp | todoitem.cpp | #include "todoitem.h"
#include <dbhandler.h>
#include "main.h"
ToDoItem::ToDoItem()
{
}
/**
* @brief ToDoItem::ToDoItem
* @param fach_name
* @param beschreibung
* @param deadline
* @param done
*/
ToDoItem::ToDoItem(QString subject_name, QString description, QDateTime deadline, bool done)
{
this->subject... |
643c6354f700499b6aa3a0673ba643d37cc2e107 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/base/fs/utils/ufat/inc/eaheader.hxx | f5de1602211233344be426e67f770b61d8576bcf | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 4,253 | hxx | eaheader.hxx | /*++
Copyright (c) 1990 Microsoft Corporation
Module Name:
eaheader.hxx
Abstract:
This class models the header and tables of the EA file.
Author:
Norbert P. Kusters (norbertk) 28-Nov-90
Notes:
Luckily all the structures are well aligned.
--*/
#if !defined(EA_HEADER_DEFN)... |
86e87543ffea180acb1566e1aaeb57370bd1ada1 | 8d5ec68b918279bd47ab6b57fa2cce7567c4b3a6 | /Framework/Environment/Scattering.cpp | 5db0ea3a0b9034aa8238fb5abf18a709465d2dff | [] | no_license | sork777/PortFolio | 7d6a77a595ca35f821486f620a0b1318d6e7511c | 152d9d8b3d38f490ffccb644691f5a052b677307 | refs/heads/master | 2022-12-30T17:10:58.267379 | 2020-01-11T05:32:26 | 2020-01-11T05:32:26 | 232,132,922 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 5,166 | cpp | Scattering.cpp | #include "Framework.h"
#include "Scattering.h"
Scattering::Scattering(Shader * shader)
: shader(shader), width(256), height(128), domeCount(32)
{
mieTarget = new RenderTarget(width, height, DXGI_FORMAT_R32G32B32A32_FLOAT);
rayleighTarget = new RenderTarget(width, height, DXGI_FORMAT_R32G32B32A32_FLOAT);
depthStenc... |
c3bf23ff3e1cca483bab0bc8cfe3d0fbf4da6d45 | ca0e6f4bfa50d8750bad3e95a7bb3c30aa4b6113 | /Triangulation.hpp | cd15d3dba4fcb223b0c26221bf9be765fddd8709 | [] | no_license | MohFarahani/WaveFEM | 876126e39aec6f3f801f62ca39575d6dfa78cbcd | 113493bbdd95a602f4bb5d164d13380dba325f63 | refs/heads/main | 2023-04-19T18:06:44.046979 | 2021-05-04T16:35:05 | 2021-05-04T16:35:05 | 364,320,316 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,227 | hpp | Triangulation.hpp | #ifndef TRIANGULATION_HPP
#define TRIANGULATION_HPP
#include<iostream>
#include<fstream>
#include<vector>
#include <algorithm>
#include<string>
#include"Vertex.hpp"
#include "Triangle.hpp"
#include <stdlib.h>
//***********************************************************************************************************... |
df50c17552506a379398fc3dc261e0a578f31112 | e897ad3b1cb19f822f9c56d6daa2dbb8172e768a | /cpp/uva/00787.cpp | fcc8236e6e5cc70ec222503d4d895ad4c7908434 | [] | no_license | cocoslime/AlgoProblem | 409cb8257cc05bfcebe13a8d6c662cd3308a5678 | b9d66df04ad95917e0765cb8a4c7305016ca48ee | refs/heads/master | 2023-02-20T03:19:26.226799 | 2023-02-05T08:15:01 | 2023-02-05T08:15:01 | 103,516,243 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,290 | cpp | 00787.cpp | #define _CRT_SECURE_NO_WARNINGS
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
#include <cmath>
#include <vector>
#include <climits>
#include <queue>
#include <map>
using namespace std;
typedef pair<int, int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;
#define REP(i, a, b) for (in... |
6d73cda3288ee829337d1913fe49a921a4d16c9a | d49ae7489f1c26de887f7b521a935b55e66c83c7 | /234.回文链表.cpp | 476ee69e903d5b069ad92f9dc0460a1381b502ad | [] | no_license | Sander-houqi/leetcode-cpp | 391d4c97c5dbbc7b7a9690539409c156090a867f | c0b6a06d246555ece17cebcb35309209f31e22bf | refs/heads/main | 2023-05-02T20:39:34.811841 | 2021-05-21T08:08:51 | 2021-05-21T08:08:51 | 341,105,472 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,304 | cpp | 234.回文链表.cpp | /*
* @lc app=leetcode.cn id=234 lang=cpp
*
* [234] 回文链表
*/
// @lc code=start
/* struct ListNode{
int val;
ListNode *next;
ListNode() : val(0),next(nullptr) {}
ListNode(int x) : val(x), next(nullptr){}
ListNode(int x, ListNode* next): val(x),next(next){}
}; */
#include<vector>
using namespace std;
class Solu... |
b9c4c0284c54bb9f6320a60bb3a24c0fad93715f | 82facc6a8f6d5e07983fb6a9d58b072c75a769c8 | /core/src/BoundingBox.hpp | 972402d7849edf5dc158992c1320e95d5f52c093 | [
"Apache-2.0"
] | permissive | YoucefSklab/utymap | d0e1c9db8b5bfd657cb57207b30b436bbf154c97 | d8b777d0713a9450931732b8f42af1e6f0a0bedf | refs/heads/master | 2020-03-27T23:20:50.488234 | 2018-09-04T08:20:08 | 2018-09-04T08:20:08 | 147,311,520 | 1 | 0 | Apache-2.0 | 2018-09-04T08:14:51 | 2018-09-04T08:14:51 | null | UTF-8 | C++ | false | false | 3,294 | hpp | BoundingBox.hpp | #ifndef BOUNDINGBOX_HPP_DEFINED
#define BOUNDINGBOX_HPP_DEFINED
#include "GeoCoordinate.hpp"
#include <algorithm>
namespace utymap {
/// Represents geo bounding box
struct BoundingBox final {
/// Point with minimal latitude and longitude.
GeoCoordinate minPoint;
/// Point with maximum latitude and longitude.
... |
aa62ab9256091bea5589cd25d9db4d354588ed77 | 28996e87064acfd1e5c5d7554b18ccaee2da3b9d | /include/imlab/util/Operator.h | 4817c25545256a9731d2671827fd8e6eaf8cb712 | [
"MIT"
] | permissive | JigaoLuo/Data_Blocks | c1615417ffd5518ab0804684f38fcb5b14fcc53c | 72ba7e352118ca25f4d0cb5d07853e4e0976e07e | refs/heads/main | 2022-12-28T05:51:49.731597 | 2020-10-10T20:35:48 | 2020-10-10T20:35:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,967 | h | Operator.h | // ---------------------------------------------------------------------------------------------------
// IMLAB
// ---------------------------------------------------------------------------------------------------
#ifndef INCLUDE_IMLAB_UTIL_OPERATOR_H
#define INCLUDE_IMLAB_UTIL_OPERATOR_H
// --------------------------... |
7733a6427d7d259b96108d9615c2e33776daae97 | 4910c0f3d03935fc8ee03f1e9dc20dfdb2c7c04b | /Codigos estudiantes por lenguaje/C++/Bryann Valderrama/Strings/boyerMoore.cpp | c468ea03756e9a65a9a710bac917d4769c284c6b | [] | no_license | roca12/gpccodes | ab15eeedc0cadc0735651262887b44f1c2e65b93 | aa034a3014c6fb879ec5392c51f9714bdc5b50c2 | refs/heads/master | 2023-02-01T13:49:27.563662 | 2023-01-19T22:50:58 | 2023-01-19T22:50:58 | 270,723,328 | 3 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 1,417 | cpp | boyerMoore.cpp | #include <bits/stdc++.h>
#include <cstdlib>
using namespace std;
#define NO_OF_CHARS 256
int maximo(int a, int b)
{
return (a > b) ? a : b;
}
//string str
void badCharHeuristic(char str[], int tam, int badchar[])
{
int i;
for (i = 0; i < NO_OF_CHARS; i++)
{
badchar[i] = -1;
}
for (i = ... |
d4213b61967daf41b19d286c51f4f482f83e3280 | 7202e3375199793f5c36c6c16e0e90b773a5e66e | /IControlsSolution/IControls/AnimationviewItem.cpp | 8c111446214bacc6215ae35b557de0291db841d4 | [] | no_license | gsueros/itourperu1 | cdddbfbfdbd893e7835270c8dda84e0491900148 | 731e53d6eff1bf816f979e2793733fb24ca2d8d9 | refs/heads/master | 2021-05-27T00:04:52.581331 | 2013-03-21T16:21:40 | 2013-03-21T16:21:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,033 | cpp | AnimationviewItem.cpp | #include "pch.h"
using namespace IControls ;
using namespace Platform;
using namespace Windows::Foundation;
using namespace Windows::Foundation::Collections;
using namespace Windows::UI::Xaml;
using namespace Windows::UI::Xaml::Controls;
using namespace Windows::UI::Xaml::Controls::Primitives;
using namespace Windows... |
26c9831358458fc9705e2fb30076f585c5f2cb0d | 6c2d4fe52afff8516fa51e2fd7f8d804e4b4bcb1 | /include/circle.h | e0ffe36ff0c5c95f9a813792019b73fce7c324a4 | [] | no_license | evankersey/chaosEC3 | cdca5171c03d7787ee9761253fbd031b8eeba382 | c232dbeb5c25b3efd45d43bebe9165df6bea32be | refs/heads/master | 2022-06-21T10:56:19.629406 | 2022-06-15T19:20:23 | 2022-06-15T19:20:23 | 183,584,313 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 279 | h | circle.h | #ifndef CIRCLE_H
#define CIRCLE_H
class circle
{
public:
circle(int maxWidth, int maxHeight);
virtual ~circle();
int centerX;
int centerY;
int radius;
const double pi = 3.14159265359;
protected:
private:
int diameter;
};
#endif // CIRCLE_H
|
6d1822ec8c4b7936afaee5c50603478963c749f7 | 9fdd3494a80d2eed0ab7f399fabf68fd80d3d678 | /DirectX11/Project/Include/Script/IronGolemAttack13State.h | e41720de27e47813065c587885911032f2b3e7ff | [] | no_license | minesammul/DirectX11-Project | 490053cc5540643b4bbec96ebd480cf8309457c7 | 23fd4d5ae6df7661cf0168bdd13906c77eb84461 | refs/heads/master | 2022-06-20T17:01:25.772676 | 2020-05-15T10:41:39 | 2020-05-15T10:41:39 | 196,714,638 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 111 | h | IronGolemAttack13State.h | #pragma once
class IronGolemAttack13State
{
public:
IronGolemAttack13State();
~IronGolemAttack13State();
};
|
f1ac54216188d3dbe1b13e2907687bf116baeb6d | 714423f3011f41ffd26d0534ed99640e482dbf93 | /FtsUtilityAI/Source/FtsUtilityAI/Private/Score/FtsUtilityAIMultiScoreModifier.cpp | f7f46ced55101bf839fee75ca4098641fb54a340 | [
"MIT"
] | permissive | FreetimeStudio/FtsUtilityAI | 2053abd9e4e3ab9f415686e24b7de9d58cfc426c | cf1f214d685fcc3c24f426881bdad6c8257e36e3 | refs/heads/main | 2023-02-25T02:00:40.624764 | 2021-02-03T21:03:00 | 2021-02-03T21:03:00 | 312,661,459 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 380 | cpp | FtsUtilityAIMultiScoreModifier.cpp | // (c) MIT 2020 by FreetimeStudio
#include "Score/FtsUtilityAIMultiScoreModifier.h"
#if WITH_EDITOR
void UFtsUtilityAIMultiScoreModifier::ClearInputs()
{
ModifiedScores.Empty();
}
void UFtsUtilityAIMultiScoreModifier::AddInput(UFtsUtilityAiObject* NewInput)
{
auto Score = Cast<UFtsUtilityAIScore>(NewInput)... |
a43e0d1708449f43b971175e676891ead2b3667f | 75b0a6967d1de8c11276f2cf07d20b4d2958dafa | /RingBuffer.h | 11cfcdb6510653eeca805043548618cdfe369b66 | [] | no_license | CodeByKim/IOCP-Sample | 38968330969bd4b52dd6687b5110ed9ab87ad089 | e72f95e1dbdaec954948b5c6cf156d0a73fc6ac8 | refs/heads/master | 2023-04-24T12:10:21.700726 | 2021-05-15T10:50:29 | 2021-05-15T10:50:29 | 367,604,252 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 575 | h | RingBuffer.h | #pragma once
#include <Windows.h>
class RingBuffer
{
public:
RingBuffer(int size);
~RingBuffer();
bool Enqueue(char* data, int size);
bool Dequeue(char* outData, int size);
bool Peek(char* outData, int size);
void MoveFront(int size);
void MoveRear(int size);
bool IsEmpty();
int GetRemainQueueSize();
int G... |
c69ca667cff70da5a1a8c179d587afa67da4f307 | 32fd4f562e5ac49b52352dc3f5b9cc00e0d7e05d | /hw/api_irq.hpp | 16c99dd7b7227d040e3ff976e2ebb2a205dd67b8 | [
"MIT"
] | permissive | JehTeh/jel | 986dd663179f00220b929e1e4d581df1abd8117a | 2c43cf23ea7b89e7ec0f7c2e9549be74ab0bbc4b | refs/heads/master | 2021-03-30T18:26:42.429234 | 2019-01-05T03:59:33 | 2019-01-05T03:59:33 | 118,649,373 | 14 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,945 | hpp | api_irq.hpp | /** @file hw/api_irq.hpp
* @brief General interrupt controller interface routines are exposed via this interface.
*
* @detail
*
*
* @author Jonathan Thomson
*/
/**
* MIT License
*
* Copyright 2018, Jonathan Thomson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy o... |
adebdea11b4c69ba08e49027845c9c77a71eff31 | 1dd791ef8132ed6bebc458d7c3c1ba5a9c8ca985 | /src/rx/core/assert.cpp | c8bbf94720172a8435d091fd9b747ada01834e71 | [
"MIT"
] | permissive | BuckeyeSoftware/rex | e4ef1a743745b027eb02c629541edf85faf1d026 | a0380e2e3ce26e610b4c9fcbe0ece19ecc8c3531 | refs/heads/main | 2021-12-20T17:41:51.163916 | 2021-12-05T04:07:52 | 2021-12-05T04:07:52 | 171,078,375 | 40 | 7 | MIT | 2020-12-15T03:24:33 | 2019-02-17T03:38:52 | C++ | UTF-8 | C++ | false | false | 555 | cpp | assert.cpp | #include "rx/core/abort.h" // abort
#include "rx/core/assert.h"
namespace Rx {
[[noreturn]]
void assert_message(const char* _expression,
const SourceLocation& _source_location, const char* _message, bool _truncated)
{
abort("Assertion failed:\n"
" Expression: %s\n"
" Location: %s:%d\n"
... |
a08ac84a9e767edc97efe5a320cc1313e2fda32c | db21ae7bfcad8d0917ac8695a077d824a09738e9 | /source/xdynamics_object/xMassSpringModel.cpp | d77374f3271acdcde513d8fc165a5d7fdf4782e4 | [] | no_license | miniwooki/xdynamics_dll | 11dfa7ebf1ff02c7900742f6b11d016749707863 | 30723bf724ce0c6b83c1b863f2bd69e586f2959b | refs/heads/master | 2022-04-25T09:47:47.100655 | 2020-04-27T06:50:43 | 2020-04-27T06:50:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 245 | cpp | xMassSpringModel.cpp |
#include "xdynamics_object/xMassSpringModel.h"
xMassSpringModel::xMassSpringModel()
: xObject()
{
}
xMassSpringModel::xMassSpringModel(std::string _name)
: xObject(_name, MASS_SPRING_MODEL)
{
}
xMassSpringModel::~xMassSpringModel()
{
}
|
204653570879dc51a00bffb3ade86ef76fe64e45 | 73227b7289fcbdcc81f72b28660f6856d097bf63 | /practice_17_另类加法 .cpp | 91692a59de60240d4c72d7a52916025b98fea6b7 | [] | no_license | Adenson/Practice_Code | 699245c0ef974796a5837995e549cb6b701d5c97 | 2170227d3639b12b6f36f87b2aa312b2791d402a | refs/heads/master | 2020-09-09T13:56:47.044883 | 2020-06-09T15:29:58 | 2020-06-09T15:29:58 | 221,464,616 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 749 | cpp | practice_17_另类加法 .cpp | 题目ID:25083 --另类加法
链接:https://www.nowcoder.com/practice/e7e0d226f1e84ba7ab8b28efc6e1aebc?tpId=8& &tqId=11065&rp=1&ru=/activity/oj&qru=/ta/cracking-the-coding-interview/question-ranking
class UnusualAdd {
public:
int addAB(int A, int B)
{
int add = 0;
int tmp = 0;
while (B != 0)
{
add = A ^ B;//对应位的和
tm... |
64e5a0d1206b59d53217d876eef513a0a3ee762e | 708a93b5f83894b9a01f3283e04f66ddd974b1b5 | /src/kivm/classpath/classLoader.cpp | 313ad3dca3c95c1f25268e38397a0605ffd57250 | [
"LicenseRef-scancode-free-unknown",
"MIT"
] | permissive | imkiva/KiVM | 6efac67905ef2892a7fde24dc46ee64b4c113afb | 879e0586eaf24a799a4d1318730bbfe4335c2996 | refs/heads/master | 2022-04-29T12:43:11.088601 | 2022-03-10T13:46:49 | 2022-03-10T13:46:49 | 122,769,206 | 241 | 38 | MIT | 2022-03-10T13:46:51 | 2018-02-24T18:49:14 | C++ | UTF-8 | C++ | false | false | 2,384 | cpp | classLoader.cpp | //
// Created by kiva on 2018/2/27.
//
#include <sparsepp/spp.h>
#include <kivm/classpath/classLoader.h>
#include <kivm/classpath/system.h>
#include <kivm/oop/klass.h>
#include <shared/lock.h>
namespace kivm {
static RecursiveLock &bootstrapLock() {
static RecursiveLock lock;
return lock;
}
... |
fcd0fcc4c9e92ebfe5d78d0b29e45925a2eb5657 | f477976db292ec51fd16f3b67f4255820002c62f | /src/Channel.h | 53a34882dea5d057af5d120e79e0279c9ad8290f | [] | no_license | shine4net/RabbitMQClient | 7c534b5634fa9f5c4512238eb86a7003fed38788 | 4511dd6b7dc7f58cd1b4940432b695f4a25e00e8 | refs/heads/master | 2021-01-22T13:52:51.752124 | 2017-08-18T09:59:59 | 2017-08-18T09:59:59 | 100,695,371 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 791 | h | Channel.h | #pragma once
#include "Corlib.h"
//
class RabbitMQClient;
class Channel
{
public:
Channel();
Channel(RabbitMQClient* client, int channel_no);
~Channel();
private:
bool closed = false;
int channel_no;
amqp_connection_state_t conn;
public:
Channel& exchange(char* exchange, char* exchangetype);
Channel& queue... |
617115028399a6af960a8fba9c379809b4261404 | 97e642461856458e1912627510619fe2cd3f27be | /code/utils/lipschitz.h | 9d4c61c1863988398c748b849a361e557df8bafc | [
"Apache-2.0"
] | permissive | eth-sri/deepg | 390d3da1a04af7fc46564dc13518aff0df17b0c6 | f7e553028eaffd99eb59a1594c9e58ef830a80b1 | refs/heads/master | 2023-04-06T20:26:25.654823 | 2021-07-15T13:38:19 | 2021-07-15T13:38:19 | 218,042,975 | 16 | 6 | Apache-2.0 | 2023-03-24T23:25:37 | 2019-10-28T12:35:53 | Python | UTF-8 | C++ | false | false | 3,327 | h | lipschitz.h | #include "domains/interval.h"
#include "utils/constants.h"
#include "utils/utilities.h"
#include <iostream>
#include <vector>
#include <cassert>
#include <cmath>
#include <tuple>
#include <algorithm>
#include <functional>
#include <random>
#pragma once
using namespace std;
class PointD {
public:
vector<double> ... |
031c016e288c30cac2c950c750ea275cfd37801e | 6990b0b5e1d4c5d38f5e4ec74551a82962d916e3 | /ANR/Gordian/Source/GordianEngine/FileIO/Public/StackableIniReader.h | 0ce5c11028e20c15233b28ab811e4f9637d71a52 | [] | no_license | danieljluna/ANR | f832c11cd6036235262fb5e3cea41b610e10808d | ce7fcc2dcba4c10a176c04ac10703577c496a7d6 | refs/heads/master | 2022-12-16T07:52:37.044123 | 2022-07-24T06:13:47 | 2022-07-24T06:13:47 | 119,308,824 | 0 | 0 | null | 2022-11-22T02:14:08 | 2018-01-28T23:48:05 | C | UTF-8 | C++ | false | false | 854 | h | StackableIniReader.h | // Gordian by Daniel Luna (2019)
#pragma once
#include <string>
#include "inih/INIReader.h"
namespace Gordian
{
// Reads ini files, mapping string keys to the last declared value found
// in the read ini. Can read multiple files, stacking any settings on top
// of values found in previous inis.
class FStackableIn... |
3c5a721af0f596993d66cb43f50321c9ef68c490 | 233b7240a05471c55e43ddd162603520b2db78ca | /musicplayerl_finalone/pausetimer.h | 17925ab3f7581c654315e441b6c5d398e05ba990 | [] | no_license | xinruxiao/simple-music-player | 691fa074aca891f9e4711a472647a44dc38a4554 | 7d403c46d65aacf2c13b2d22280d7c478423a87d | refs/heads/master | 2022-12-03T02:23:28.581018 | 2020-08-19T16:14:53 | 2020-08-19T16:14:53 | 288,779,320 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,525 | h | pausetimer.h | #ifndef PAUSETIMER_H
#define PAUSETIMER_H
#include <QDialog>
#include <QTimer>
#include <QTime>
namespace Ui {
class PauseTimer;
}
class PauseTimer : public QDialog
{
Q_OBJECT
QTimer *timer;
public:
explicit PauseTimer(QWidget *parent = 0);
~PauseTimer();
signals:
// 这个信号是发给父窗口的。
void Child... |
7ebf24a0ca7e678ec66d5822d5c87f23515168a0 | 268d59529b0b81b906d11151dff53c3c03f49fee | /vstgui4/vstgui/lib/cvstguitimer.cpp | e3101239aa39aebf7fd09d3949ceae102a0d0106 | [] | no_license | jazzman31/VST3-SDK | 4396d3d3f0b8080b02e43686c72426e3e704dce1 | 9da168bc8c9207e64b5c9ad0210d642094887f1f | refs/heads/master | 2016-09-07T14:20:44.175681 | 2014-03-06T18:02:06 | 2014-03-06T18:02:06 | 17,487,209 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 5,202 | cpp | cvstguitimer.cpp | //-----------------------------------------------------------------------------
// VST Plug-Ins SDK
// VSTGUI: Graphical User Interface Framework for VST plugins
//
// Version 4.2
//
//-----------------------------------------------------------------------------
// VSTGUI LICENSE
// (c) 2013, Steinberg Media Technologi... |
400099be51be309949d40d268dc68452d5f8e312 | 78c67291179b41e9d15c28f78fe2af215c2efda1 | /Szkoła Programowania/Rozdział 18 Listing 18.9 variadic/Rozdział 18 Listing 18.9 variadic/variadic.cpp | d9e526aa8583f5bb39e7240a56469515dd6837aa | [] | no_license | piotrpopiolek/Code | 4d2da9e964a2cf11e64b6f8269a64e143ae90c61 | 4cb7979df951eea18e9986f7dc8d743f64959ffd | refs/heads/master | 2021-01-13T10:45:24.855860 | 2016-12-18T05:35:58 | 2016-12-18T05:35:58 | 76,739,674 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 473 | cpp | variadic.cpp | #include<iostream>
#include<string>
//definicja dla pustej listy parametrow -- wywolanie konczace rekurencje
void show_list3(){}
//definicja dla jednego badz wielu parametrow
template<typename T, typename... Args>
void show_list3(T value, Args... args)
{
std::cout << value << ", ";
show_list3(args...);
}
int main()
{... |
ed8da96708bc9e4b300e5fa633fd80391c7dca94 | 08cde8de37c109b7ee222d01c371b31cdba013b7 | /codecheaf/FINXOR.cpp | 30621df1b7bfedde4168755b3faefa4e062bc459 | [] | no_license | ayanchyaziz123/all-competitive-programming-documents-and-problem-solving | 6ec534e70ccc78c7744cb662899ca4639bb047f5 | cebc6a6e596a00d4e69d41927f672f82241ef402 | refs/heads/master | 2023-07-12T07:03:48.966461 | 2021-08-21T13:53:51 | 2021-08-21T13:53:51 | 289,900,378 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,248 | cpp | FINXOR.cpp | #include <bits/stdc++.h>
#define mod 1000000007
using namespace std;
int subMain()
{
long long n, answer = 0;
cin >> n;
vector<long long> xorsum;
long long x;
for (long long i = 1; i <= 20; i++)
{
cout << 1 << " " << (1ul << i) << endl;
cout.flush();
cin >> x;
xo... |
7be7f1a653cac927e7ed6e897546be74d870ef9d | a7adadec859eaf69eebfd6c0fec2e9f63a9e6a2a | /XenoBand/midieditorcore.h | 54ca26f3c5e5eac4369732bc79290fc59ff87512 | [] | no_license | yuxiangmusic/XenoBand | a01676ef930e304474c618b352ddf44d012882ff | e4dff6e02cec1a0c7057bd6c927edd79c62266b1 | refs/heads/master | 2020-06-14T01:16:27.967061 | 2017-04-02T08:12:24 | 2017-04-02T08:12:24 | 75,687,529 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,072 | h | midieditorcore.h | #ifndef MIDIEDITORCORE_H
#define MIDIEDITORCORE_H
#include "core.h"
#include "midinoteevent.h"
#include <QGraphicsRectItem>
class MIDIEditorCore
{
public:
MIDIEditorCore();
QList<MIDINoteEvent *> noteEventList;
/* binary search for position and then insert */
void insertNoteEvent(MIDINoteEvent *eve... |
5eaca42806001a7f9507f830b7c354e830aca7a0 | ae05c77c2417098b1cd6d19dda1087f0dc97ba40 | /Tictocs-master/PinControl.h | 571534dc02d5dee10023df166969b2b8fa17f436 | [] | no_license | francoiswindels/arduino-libraries | 4e6238a12f85d351d0d44e11663b600b720ab573 | 784c18797333ccfe0054ff9b76996b13e45a46e1 | refs/heads/master | 2021-01-23T16:13:31.581211 | 2017-06-04T03:17:58 | 2017-06-04T03:17:58 | 93,286,909 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,788 | h | PinControl.h | /*
Copyright (C) 2012 J. Coliz <maniacbug@ymail.com>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
version 2 as published by the Free Software Foundation.
*/
#ifndef __PINCONTROL_H__
#define __PINCONTROL_H__
// STL includes
// C includ... |
97e82df24041c07f09a180623a3ac1ae8c1dff0e | e0c04fd4b5150b3f969f3e3a525d480c86bced6f | /C++ Fibonacci Sayısı.cpp | 352c73824b561fcee17209e43c8b91d2a6512263 | [] | no_license | vankenobi/my_first_examples | b709b432eb507ccf573656a587662360286811de | 3ede50c1448fe4a64c5c5fad23bc5a1aab3c33fe | refs/heads/master | 2021-07-11T18:47:20.805584 | 2020-06-14T18:11:27 | 2020-06-14T18:11:27 | 148,028,984 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 378 | cpp | C++ Fibonacci Sayısı.cpp | #include<iostream>
using namespace std;
int num1=1, num2 = 1,toplam = 0, r;
int main()
{
cout << "Lutfen pozitif bir sayi giriniz: ";
cin >> r;
cout <<"Fibonacci Series:"<<endl<<toplam <<endl<<num1<<endl<<num2<<endl;
toplam = num1 + num2;
while (toplam<=r)
{
cout << toplam << endl;
num1 = num2;
num2 = to... |
0c69b6bbe111ca0743f0084532ec07b00a8ccb46 | 02bd12b9b15cf70ed33bbf2dd3fec3539ec6e91d | /SampleCode/kennir-drawstory_client/drawstory/Classes/PaintingScene_PaintingLayer.h | fd2ec847045fd835b9206d6df27e3b399d8c2a85 | [] | no_license | zephyroal/CC2DXLuaSample2 | f146993b1411f895ed44dc9e217519ee80e6d3bc | f6d9540ac32aef9231fe853bded0f696fbfef7f0 | refs/heads/master | 2021-01-04T14:10:52.023053 | 2012-10-15T12:08:26 | 2012-10-15T12:08:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 830 | h | PaintingScene_PaintingLayer.h | //
// PaintingScene_PaintingLayer.h
// drawstory
//
// Created by 张 靖宇 on 12-4-2.
// Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//
#ifndef drawstory_PaintingScene_PaintingLayer_h
#define drawstory_PaintingScene_PaintingLayer_h
#include "cocos2d.h"
#include "Brush.h"
#include "PaintCommand.h"
na... |
bea103f252b19b383b6bf2b1992a8821235cd170 | 120710380f3aa89cae316ffa84f2944c17b56535 | /day06/complex.cpp | 10b9059196332e8016632f8c0f2ed89663b63712 | [] | no_license | liuqingtao/daneicplusplus | 1ca51b22803ada435b1216e4763f8e5a88c6aaef | 2be2a7ebd71542c6ca526732d92ff98fb93904c4 | refs/heads/master | 2020-03-19T00:13:06.419057 | 2018-06-12T03:10:29 | 2018-06-12T03:10:29 | 135,463,216 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 315 | cpp | complex.cpp | #include<iostream>
using namespace std;
class Complex{
public:
Complex(int r=0,int i=0):m_r(r),m_i(i){}
void print(void) const{
cout<<'('<<m_r<<'+'<<m_i<<"i)"<<endl;
}
private:
int m_r;
int m_i;
};
int main(void){
Complex c1(1,2);
Complex c2(3,4);
c1.print();
return 0;
} |
1969c26a4609fb335f7258080e1cc69dfda271e1 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/admin/pchealth/upload/client/uploadmanager/module.cpp | 7ddd7f81b71194534a7ca792eefb3550240d13cb | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 20,973 | cpp | module.cpp | /******************************************************************************
Copyright (c) 2000 Microsoft Corporation
Module Name:
module.cpp
Abstract:
This file contains the implementation of the CServiceModule class, which is
used to handling service-related routines.
Revision History:
... |
55e3d34c592100a9ce44d7239a7a92921dffaf72 | 8a8087142e60dbf5c10568604a6c665dcf60496e | /ATV/1165/main.cpp | 0acbca0822f68d93e24226d0fa01e92386e3b604 | [] | no_license | luizalexandrewarchive/URIOnlineJudge | 786b0b7c8584f1db3f2b99552455b7b22bf2ba9a | 11644dbe76d2f8a30af8d2997e4b506f8c0f8e88 | refs/heads/master | 2021-06-19T07:50:47.408237 | 2017-05-16T00:22:22 | 2017-05-16T00:22:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 745 | cpp | main.cpp | #include <iostream>
#include <stdio.h>
#include <math.h>
using namespace std;
int main(){
int i,j,k,nuu,n,count=0;
while(scanf("%d",&k)==1){
for(i=1;i<=k;i++){
scanf("%d",&n);
if(n==1 || n==0){
printf("%d nao eh primo\n",n);
}else {
count... |
39285eb2d84750e25e1201d033601fa0eaea453d | 274e1169a03062140871e4fddaf4836e30cce503 | /src/LogATE/Net/TcpJsonPerformanceTest.manual.cpp | 10f6109d4e3d2b71b4aedb066d03f25f11475554 | [
"BSD-2-Clause"
] | permissive | el-bart/LogATE | 38df676a9874c42d9ec862cf3090e0e31bc134f2 | 88569417c0758318a049205bb69f3ecee4d13a32 | refs/heads/master | 2023-08-29T14:45:26.924602 | 2023-07-25T17:55:13 | 2023-07-25T17:55:13 | 152,469,962 | 3 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 3,233 | cpp | TcpJsonPerformanceTest.manual.cpp | #include "LogATE/Net/TcpServer.hpp"
#include "LogATE/Net/TcpRawClient.hpp"
#include <But/Threading/JoiningThread.hpp>
#include <iostream>
#include <thread>
#include <chrono>
using Clock = std::chrono::system_clock;
using Thread = But::Threading::JoiningThread<std::thread>;
int main()
{
const auto port = LogATE::Ne... |
2c784f5bbdba72c436d95c02f2dd06c33cadee3a | 0e0a39875ad5089ca1d49d1e1c68d6ef337941ff | /deps/NVIDIATextureTools/src/nvimage/DirectDrawSurface.h | 9a964e4aa0d55bc001023641c348234f4734015b | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | FloodProject/flood | aeb30ba9eb969ec2470bd34be8260423cd83ab9f | 466ad3f4d8758989b883f089f67fbc24dcb29abd | refs/heads/master | 2020-05-18T01:56:45.619407 | 2016-02-14T17:00:53 | 2016-02-14T17:18:40 | 4,555,061 | 6 | 2 | null | 2014-06-21T18:08:53 | 2012-06-05T02:49:39 | C# | UTF-8 | C++ | false | false | 12,100 | h | DirectDrawSurface.h | // Copyright NVIDIA Corporation 2007 -- Ignacio Castano <icastano@nvidia.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, including without limitation the r... |
80651b40e3a7d36186de48693320c63fbcc927db | 0372536877e68ba414619d4abe9965dd9e86a2c7 | /Rook.cpp | db1a82047bbd7c0038d81de001ccf22b56dd9347 | [] | no_license | Benelcoding/Chess | 95e80cc681d503487662824cf1e3e4885b45397c | 11176352ffbd4217533d4749c9cfcf3d5871c75a | refs/heads/master | 2021-01-05T05:12:20.668756 | 2020-03-26T12:06:10 | 2020-03-26T12:06:10 | 240,891,994 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 360 | cpp | Rook.cpp | #include "Rook.hpp"
Rook::Rook() {}//default constructor.
Rook::Rook(int x, int y,int p)//constructs Rook.
{
Piece::init(x, y, p,ROOK_SYMBOL);
}
int Rook::valid_move(int target_x, int target_y) { //Checks if the coordinated inputted are considered a valid move for the Rook.
if ((target_x == get_x()) || (target_y ==... |
92b3b0ed23cd9dd78bc230719e35c82ccc8fdd30 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/mutt/gumtree/mutt_new_log_215.cpp | 20900eeda9746219edfdeafad72cdb2f4085fde9 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 47 | cpp | mutt_new_log_215.cpp | state_puts (_("Error: copy data failed\n"), s); |
651862c8eca7d57959c2c035919a9c3f47134eb1 | 62d7b7f0a47d600ddb86e63a5181b6837086536c | /include/feats/segmentations/equal_nb_of_segments.hxx | 5f8684ca585e5b923033b651332043777fa2fb6c | [] | no_license | vishalbelsare/FEATS | 9492d9b6785275def64e6f3ebfa1eb74242eaacb | de83f78f73989c81b3311cdee2a90ae0ceb0b367 | refs/heads/master | 2021-05-27T22:16:23.266745 | 2012-05-10T13:39:57 | 2012-05-10T13:39:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,546 | hxx | equal_nb_of_segments.hxx | #ifndef EQUAL_NB_OF_SEGMENTS_HXX
#define EQUAL_NB_OF_SEGMENTS_HXX
#include<vector>
#include <boost/shared_ptr.hpp>
namespace feats{
namespace segmentations{
/*
this class computes segmentations over a set of time series
Static Parameters
segmentation algorithm i.e. optimal_split<linear0_mod... |
83b4bc29ee675e4e16920ab299530e4422ecf749 | 4d107a97633559963f6510767bb9297febbcbb02 | /applications/ContactStructuralMechanicsApplication/custom_conditions/ALM_mortar_contact_condition.cpp | 93bc51a90e84ef05f4ac43e8095384844d5ff3a6 | [] | no_license | asroy/Kratos | 45dc4a9ad77a2b203ab2e0c6c5fe030633433181 | e89d6808670d4d645319c7678da548b37825abe3 | refs/heads/master | 2021-03-24T13:28:43.618915 | 2017-12-19T15:38:20 | 2017-12-19T15:38:20 | 102,793,791 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 65,243 | cpp | ALM_mortar_contact_condition.cpp | // KRATOS ___| | | |
// \___ \ __| __| | | __| __| | | __| _` | |
// | | | | | ( | | | | ( | |
// _____/ \__|_| \__,_|\___|\__|\__,_|_| \__,_|_| MECHANICS
//
// License: BSD License
// license: StructuralMechanicsApplication/license.txt
//
// Main aut... |
acd1b7cba827634bb49c19efe171699608c3ceba | b116936c9b44d82199058b1069d60c0bff9a30d6 | /apps/srba-slam/srba-slam_common.h | 000aab60bfc067dc6b2ea5c6033bb7ab45dd3650 | [
"BSD-3-Clause"
] | permissive | rubengooj/srba | a38efd24c1b85796da5a1ef8bc701ad5ee002b8f | ee939939f652347c5cc1876ef1a620d6416c0ad4 | refs/heads/master | 2021-01-16T20:27:02.350452 | 2016-04-19T08:26:27 | 2016-04-19T08:26:27 | 50,524,638 | 3 | 2 | null | 2016-01-27T17:26:40 | 2016-01-27T17:26:40 | null | UTF-8 | C++ | false | false | 4,868 | h | srba-slam_common.h | /* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... |
53d8d5d81e585cbc8fb9bb890e1ee19ffc1aab00 | 8a5c16899c2d516b36f830f5343f0818eedd2e05 | /mask.h | d3f78ef021a44817036e6ff2961843212f7b06e7 | [
"MIT"
] | permissive | fundies/PolyEditQT | 3da959f235451d1a9fb08bd893db3c9a275b6f6e | cdcd1c7a14f9731eb2372d7c10d362e23fed096e | refs/heads/master | 2020-06-09T17:36:25.490140 | 2015-08-10T20:13:03 | 2015-08-10T20:13:03 | 37,226,365 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,574 | h | mask.h | #ifndef MASK_H
#define MASK_H
#include <QList>
#include <QOpenGLWidget>
#include "coordinate.h"
#include "shapes.h"
/**
* @brief The Mask class
*/
class Mask
{
public:
/**
* @brief Mask Constructor
* @param parent parent
*/
Mask(QOpenGLWidget *parent);
/**
* @brief addc add c
... |
bad5ee158e3ac838190c2bb7c9de0bfaa537e1b2 | b3ed13ce7fc528b75e41439ebf38d94e7fbe90da | /libstats/socket/tests/stats_writer_test.cpp | 749599ff3143324a38b4423b2c59359e26ef799f | [
"LicenseRef-scancode-unicode",
"Apache-2.0"
] | permissive | Descendant-XI/system_core | b88ba0b88664e94f2e36e918a5ee9cbf28b8fe3b | ed51e0ccf3d3a34f7272f69f29cdecbdbfbc83aa | refs/heads/eleven-staging | 2023-06-04T19:09:22.006961 | 2021-06-16T17:27:32 | 2021-06-16T17:27:32 | 334,330,936 | 1 | 6 | NOASSERTION | 2021-03-09T07:33:53 | 2021-01-30T04:54:05 | C++ | UTF-8 | C++ | false | false | 1,204 | cpp | stats_writer_test.cpp | /*
* Copyright (C) 2020 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... |
218ad514ace543dc73485e722632e29ae17c74f6 | 367d4dba6b3ff0d26a1e8f8d6238e7d4232165c6 | /isoRPG/include/systems/mouse_clicked.h | 427799e47dfdbbae108a9972ab7a5706de8b19f0 | [] | no_license | osjurso/IsometricRPG | 2f5d708c804aa76fb0487efe97ad56e49211c6a8 | a635eef4e8889ef8cdf358e0cbecc9db44b0325e | refs/heads/master | 2023-04-04T18:02:30.504974 | 2021-04-21T19:40:37 | 2021-04-21T19:40:37 | 157,831,119 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,040 | h | mouse_clicked.h |
#ifndef ISORPG_MOUSE_CLICKED_H
#define ISORPG_MOUSE_CLICKED_H
#include <anax/System.hpp>
#include <states/state_base.h>
#include <components/Comp_size.h>
#include <components/Comp_mousedOver.h>
#include <components/Comp_position.h>
#include <iostream>
#include "loot.h"
#include "talk.h"
#include <include/systems/pa... |
660b618fcab32edb1889bf4c6a590152065dad3c | 820c845012656cdd73c3a2ad7e873be8c1b39488 | /twoHashTable.cpp | 3d8b9b68be7587be358493c96862d569e9b54023 | [] | no_license | amritspandher/GroceryHashTable | 014937a2f5c1b8340187c8e866b69ef04e142c02 | 4060cb006b8c931300aabaa6cb1cce50ca02985f | refs/heads/main | 2023-03-06T23:48:26.501785 | 2021-02-18T19:36:00 | 2021-02-18T19:36:00 | 340,156,959 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,837 | cpp | twoHashTable.cpp | //twoHashTable.cpp
//Amrit Pandher
//12/4/2020
//twoHashTable implementation file
#include "twoHashTable.h"
#include "UPCEntry.h"
#include "list.h"
#include <fstream>
#include <iostream>
using namespace std;
TwoHashTable::TwoHashTable(string filename, int size){ //creates a dynamic array of lists and i... |
363d7ea8c6400b4970f0f70fb9a78ec08b5100e9 | 5990d4faa44eb4010cb62b693eb2b777e02ff599 | /Les1/ScheduleOption2/ScheduleOption2/DateTime.h | aec280e4f4caa84c696b38ca6973178be8e32c9f | [] | no_license | gijsoman/INOOP | bb75179709c63d2ace6cd8d1a8e10e740c9d188a | 046e2bfc4d845f595ade33f6430fe768dc89b635 | refs/heads/master | 2021-07-20T03:44:33.372575 | 2017-10-27T18:01:59 | 2017-10-27T18:01:59 | 103,014,695 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 172 | h | DateTime.h | #pragma once
#include <ctime>
class DateTime
{
public:
DateTime();
~DateTime();
int dateYear;
int dateMonth;
int dateDay;
time_t beginTime;
time_t enndTime;
};
|
e1b2eae78f57872a0f524fc15ef205bcdae21aa4 | 433286e87672a10b0cfc08f8e0df4664d03b3d2f | /510B Fox And Two Dots.cpp | 25bdbc9ce82c8f7fb021bfaf62744ee6fb8972ee | [] | no_license | LeeTaeSoon/Codeforces | ed4115888d23bf26162319358e0cf4f60011b598 | e298c0456b6d72f43293170f0523f54350e2679a | refs/heads/master | 2021-04-12T08:15:56.254939 | 2018-06-05T09:11:30 | 2018-06-05T09:11:30 | 126,024,414 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,846 | cpp | 510B Fox And Two Dots.cpp | /*
B. Fox And Tow Dots
여우 Ciel 은 "Tow Dots" 라고 불리는 모바일 퍼즐 게임을 하고있다.
기본 레벨들은 n x m 크기의 판에서 진행된다.
각 셀은 같은 색의 점을 포함한다. 우리는 다른 색을 표현하기 위해 다른 라틴 대문자를 사용할 것이다.
이 게임의 열쇠는 같은 색의 점들을 포함하는 원을 찾는 것이다.
예를 들어 그림에서 원을 만드는 4 개의 파란 점을 볼 수 있다.
공식적으로 우리는 d1, d2, ..., dk 의 아래 조건을 만족하는 연속되는 점을 원이라 부른다.
1. k 개의 점들은 모두 다르다. : 만약 i != j ... |
a415c9b096d615fc954bcb40f8f54e305bc86ec0 | fdbfbcf4d6a0ef6f3c1b600e7b8037eed0f03f9e | /manipulation/util/test/robot_plan_interpolator_test.cc | 5c3dd9496cfdc6f354498b6fa58eea5d4bad5f34 | [
"BSD-3-Clause"
] | permissive | RobotLocomotion/drake | 4529c397f8424145623dd70665531b5e246749a0 | 3905758e8e99b0f2332461b1cb630907245e0572 | refs/heads/master | 2023-08-30T21:45:12.782437 | 2023-08-30T15:59:07 | 2023-08-30T15:59:07 | 16,256,144 | 2,904 | 1,270 | NOASSERTION | 2023-09-14T20:51:30 | 2014-01-26T16:11:05 | C++ | UTF-8 | C++ | false | false | 8,643 | cc | robot_plan_interpolator_test.cc | #include "drake/manipulation/util/robot_plan_interpolator.h"
#include <gtest/gtest.h>
#include "drake/common/find_resource.h"
#include "drake/lcmt_robot_plan.hpp"
namespace drake {
namespace manipulation {
namespace util {
namespace {
static const int kNumJoints = 7;
const char* const kIiwaUrdf =
"drake/manipul... |
33c2ec2e271a96b9ca99e7427df9381d147545cd | f5f2da1cee9b84463fbb5af8657e42bed14666ba | /GAME_MAP.cpp | 8cb4f8877693786234d858ba5227491f02b9e7d6 | [] | no_license | hosigawa/MYGAME | 1b3a329adfb1db8acaabdeb76f52b7c9a0e6c36a | 3897d3279a14a2d82ce0ec69206fa0fc34d6761d | refs/heads/master | 2021-01-23T11:40:28.623979 | 2015-03-15T16:52:45 | 2015-03-15T16:52:45 | 32,271,513 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,968 | cpp | GAME_MAP.cpp | #include "StdAfx.h"
#include<stdio.h>
#include"GAME_MAP.h"
#include"GAME_ROLE.h"
extern int GameState;
extern MAN man;
extern GAMENPC npc;
MAP::MAP()
{
mapd=NULL;
}
MAP::~MAP()
{
if(mapd)
{
free(mapd);
mapd=NULL;
}
}
void MAP::GetClntInfo(HWND hWnd,LPARAM lParam)
{
gamew=LOWORD(l... |
34fe1478989e2f930df73542e89899f7a2fb0978 | e36dc5abcbe07d57a79b0f3c091a3a3a4e44a770 | /CentralBank.cpp | af42d8599ad079100185a01d63c6ed17ec6d04d6 | [] | no_license | sophiepeneva/CurrencyBank | 9b97498b14abad9359b920730fd5d0cf72e32707 | 0323d431fa4e6cb7f619fdc95f82c10b25b7b329 | refs/heads/master | 2020-03-21T09:27:42.559590 | 2018-06-23T13:00:33 | 2018-06-23T13:00:33 | 138,400,836 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,905 | cpp | CentralBank.cpp | # CurrencyBank
#include "CentralBank.h"
CentralBank::CentralBank(const char* name, std::vector<Currency> currencies,
std::vector<Observer*> observers)
{
setName(name);
this->currencies = currencies;
for(int i=0;i<observers.size();i++)
{
this->observers[i] = observers[i];
}
}
void CentralBank::CopyFrom(cons... |
78cb1d557e3fd85cd535f36fffe965c55e17409c | ef34de2efecd0c98854c1a34d21b54277bb30e9d | /hw8/fifo-lifo2/fifo-lifo2/funcs.cpp | 4f7de58b9b6bea300dcc96ef06cb48ae0a78d86f | [] | no_license | nowirak/cs201 | 9ce92bae90af15e4ae32d80048d098d9b2fbe17f | 2a3f6833b583760a7e9574f3d64abed5be1eabb3 | refs/heads/master | 2023-04-11T05:09:01.165269 | 2021-04-30T07:37:19 | 2021-04-30T07:37:19 | 332,578,018 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,161 | cpp | funcs.cpp | /**
filename: funcs.cpp
author: Nick Wirak
date: 4/26/2021
summary:
TestFifo: Automatically pushes a sequence of strings to a vector. The
sequence is defined in the source code. Then automatically pops,
according to fifo, the strings from the first vector to a second
vector. The resulting sequ... |
136ba3bcad95b49d11cf05d1e8fc57176b5a2b84 | 4ebca3da4bbf909d27fe2051695ab2e011b81927 | /GameDemo/Classes/Menu.h | cf003a8af274d76fe407a24dd9e83647951591bd | [] | no_license | 980538137/cocos2dx-demo | 7218bbe82d2fe645554cfe65085589917454872f | 51a32b08218bbaf61deafd1c595b976857d1a4d1 | refs/heads/master | 2021-01-17T17:07:20.495360 | 2014-01-02T14:38:10 | 2014-01-02T14:38:10 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 714 | h | Menu.h | //------------------------------
//项目名称:打地鼠
//------------------------------
//功能模块:菜单界面
//作 者:孤狼
//最后修改时间:2013/07/30
//------------------------------
#ifndef __MENU_SCENE_H__
#define __MENU_SCENE_H__
#include "cocos2d.h"
#include "Box2D/Box2D.h"
#include "SimpleAudioEngine.h"
#include "cocos-ext.h"
USING_NS_CC;
USING_... |
2889e6b922ade04a2441e40155cd58029f610377 | b91023982fc98e348ca3d8539704e827ecb3a33f | /synthsoma2/databus.h | 19022b2377b880ad770f66bfda5ba2004d8c9a8c | [] | no_license | somaproject/synthsoma2 | 833f1a61090fd5743e92dc49248783c8379b78cc | dd819ef23500b9bfa4ad1f358038b4c7ab3738a8 | refs/heads/master | 2016-09-06T05:24:49.802259 | 2009-11-24T15:33:42 | 2009-11-24T15:33:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,993 | h | databus.h | #ifndef __SYNTHSOMA2_DATABUS_H__
#define __SYNTHSOMA2_DATABUS_H__
#include <boost/thread/condition_variable.hpp>
#include <synthsoma2/types.h>
#include <synthsoma2/netdataserver.h>
#include <somanetwork/tspike.h>
#include <somanetwork/wave.h>
#include <somanetwork/raw.h>
namespace synthsoma2
{
class IDataBus
{
... |
be6902d39350ef89b8d3c3c7c2c7427ddfed01e2 | f4c05c00bedd9252b70f7436804644dba5d2fb95 | /剑指offer_c++/60_把二叉树打印成多行.cpp | 5392bd1eea617b3b5e0f0e27f447af805ddb1021 | [] | no_license | zhugege215/JianzhiOffer_C | af0768556947a2a2592b61f6635dedc54c3ab2b7 | 7072c21f261fd40eafcd80668e35112d0bc9e766 | refs/heads/master | 2021-05-02T03:59:00.404897 | 2019-03-06T00:59:54 | 2019-03-06T00:59:54 | 120,907,479 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 683 | cpp | 60_把二叉树打印成多行.cpp | #include <vector>
#include <queue>
using namespace std;
struct TreeNode {
int val;
struct TreeNode *left, *right;
TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
};
class Solution {
public:
vector<vector<int>> Print(TreeNode* pRoot) {
vector<vector<int> > vec;
if (pRoot == nullptr)
return vec;
... |
18c7e4d4775a52e88fbc57f380f1d85a9fc3ed68 | 03eb3f665c8c9830a6c06d359f3a7e998b781db9 | /src/lib/operators/table_scan/column_vs_column_table_scan_impl.hpp | f7a82c64e9af4e52bf7ce8b4a7deb5688331460b | [
"MIT"
] | permissive | hyrise/hyrise | 25f8f396fcf3be2e4a4f7c3b432e3999ee0d6c60 | 46f13fa510aa7e8b232b3081ee1a25b7f0958e55 | refs/heads/master | 2023-09-01T10:35:56.802881 | 2023-08-25T07:18:08 | 2023-08-25T07:18:08 | 87,414,843 | 687 | 156 | MIT | 2023-09-14T21:17:51 | 2017-04-06T10:03:31 | C++ | UTF-8 | C++ | false | false | 1,884 | hpp | column_vs_column_table_scan_impl.hpp | #pragma once
#include <memory>
#include "abstract_table_scan_impl.hpp"
#include "types.hpp"
namespace hyrise {
class Table;
/**
* @brief Compares two columns to each other
*
* Supports:
* - comparing columns of different numerical data types
* - comparing dictionary and value segments
* - comparing referenc... |
5a546895d667bab01575a7f9665033712b01efa8 | 01aa77758f69215e3fe559140c1fd91f314fb536 | /ml/base/math.h | 6bba9fd67cff9395ecd0a6b8bdf4d12684a0559e | [] | no_license | yuchenguangfd/Longan | 30f1acc66d76a859363a9421bf719b9d9a50f4f8 | da895e2704731c055ba36df2f05297186bbdf9fa | refs/heads/master | 2020-05-30T06:09:19.404290 | 2015-06-02T11:32:18 | 2015-06-02T11:32:18 | 22,028,930 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 480 | h | math.h | /*
* math.h
* Created on: Jan 26, 2015
* Author: chenguangyu
*/
#ifndef ML_BASE_MATH_H
#define ML_BASE_MATH_H
#include "common/math/math.h"
#include "common/math/vector.h"
namespace longan {
inline Vector64F Sigmoid(const Vector64F& vec){
Vector64F result(vec.Size());
for (int i = 0; i <... |
a641b556bddf57bc74dcc4bd151c121217a74b99 | cadb836d9ac9c9e3b618cf44c936015a0aea24a8 | /ge2500/LT2512_2023-01-30_Reward_Top_K_Students.cpp | d897baa405d7ae2ac9ca8f3c9eaec17d7a24e890 | [] | no_license | checkoutb/LeetCodeCCpp | c6341a9fa5583a69046555a892bb41052624e83c | 38832f7ccadf26b781cd8c9783c50916d1380554 | refs/heads/master | 2023-09-03T22:35:50.266523 | 2023-09-03T06:31:51 | 2023-09-03T06:31:51 | 182,722,336 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 5,209 | cpp | LT2512_2023-01-30_Reward_Top_K_Students.cpp |
#include "../header/myheader.h"
struct MyTrie
{
MyTrie* next[26] = {};
int status; // point.
MyTrie(int status) : status(status) {}
MyTrie() {}
};
void showMyTrie(MyTrie* mt, string s)
{
if (mt->status != 0)
{
cout << s << " ==== " << mt->status << endl;
}
//for (My... |
9bc78de9fcdc2290738658b6f703633d3276da88 | fe93ba244d637aa6ae9716c67cc80b0c3b7e7eab | /lib/ecs/sources/components/Component.cpp | 7031f0b9f47d6c60006e5c1b34fef9aaee017138 | [] | no_license | Pywwo/rtype | 1d2ad47e2caa950b7f844416b92816644dbab341 | d12260798d9889aa189aaae4024f77360a9048ff | refs/heads/master | 2021-01-09T14:09:54.871199 | 2020-02-22T11:38:22 | 2020-02-22T11:38:22 | 242,329,815 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 275 | cpp | Component.cpp |
/* Created by Romain FOUYER on 05/11/2019 at 10:14. */
#include "components/Component.hpp"
ecs::components::Component::Component(ecs::entities::Entity &entity)
: _entity(entity)
{
}
ecs::entities::IEntity &ecs::components::Component::getEntity()
{
return _entity;
}
|
3ef4341fb51a0f8fb1ac682937621f0131e4a4b1 | 7030bdc16a529c04ebacc9d18c5eff9251320ca9 | /stable/player/core/playmanager/v1_02/src/PlayManagerImp.cpp | 546dec7fa62e8f6f059e8f781987c5f17d8e0616 | [] | no_license | pleasemarkdarkly/iomega_hipzip | cd770e6cf1b1e719098d5e33e810d897249c0f69 | ee741ddf30d3f0875420384837ba8eb9581f5bf2 | refs/heads/master | 2021-05-24T18:53:04.662340 | 2020-04-07T08:22:21 | 2020-04-07T08:22:21 | 253,705,949 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,794 | cpp | PlayManagerImp.cpp | //
// PlayManagerImp.cpp
//
// Copyright (c) 1998 - 2001 Interactive Objects (TM). All rights reserved
//
// This file was distributed as part of the Dadio (TM) Software Development Kit
// under the Dadio (TM) Software Development Kit license. Please see the file
// "Dadio Software Development Kit license agree... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.