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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ce8c467794ef96d2d81eda736b37b79f246013aa | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2755486_0/C++/Martynas/C-small-0.cpp | b5a806071e6b84b1301f909ddf0a3758aa639b28 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,997 | cpp | C-small-0.cpp | #include <cstdio>
#include <map>
#include <vector>
#define MAXDAYS 677777
#define INF 2000000000
using namespace std;
struct Attack
{
int w, e, s;
Attack(int _w, int _e, int _s):
w(_w), e(_e), s(_s)
{ }
};
bool success(map<int, int>& wall, Attack& attack)
{
map<int, int>::iterator it = --(wall.upper_bound(atta... |
754617a1376610f3c7414cfd4590660190ebd451 | 059d13adb54bd33703aac40cce9a1f386e9e94d0 | /samples/ooftst05.cpp | 99fa4e3d1462b16ef2970d6b84486e58a42a8daa | [] | no_license | AndyDentFree/oofile | 9e5bf44fc927db891f8faabbf05ab3167778ec48 | c30de14a25c4e41f2908d4f71ca51c46d109cc89 | refs/heads/master | 2020-04-06T04:03:50.487740 | 2012-03-20T06:01:42 | 2012-03-20T06:01:42 | 33,068,851 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,026 | cpp | ooftst05.cpp | // Copyright 1994 A.D. Software. All Rights Reserved
// OOFTEST5
// Simple stream I/O is used to interact with the user.
// to demonstrate the date and date-time parsing
#include "ooftest.h"
void getStringMaybeBlank(char* readInto);
void testDate();
void testTime();
void testDateTime();
int
main()
{
cout << "OOFI... |
4cda3d6ac0a1fd41e1e4ed2f905879d66837cf5f | aa87d3ce0e0f4b1db28e40385bd155e2ba31ef56 | /LearnEnglish/LearnEnglish.cpp | 4df3cfc27ca4af8d2e171484215c94e34f6b2c76 | [] | no_license | foocoder/HUAWEIOJ | b7a6bc38632db2703d95550d5ca568b4377ea927 | fe0b14dbc59623c7c1e3a3a70f10972c21d8eda6 | refs/heads/master | 2021-01-20T06:14:30.699878 | 2017-05-15T06:18:30 | 2017-05-15T06:18:30 | 83,869,448 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,191 | cpp | LearnEnglish.cpp | // ---- Program Info Start----
//FileName: LearnEnglish.cpp
//
//Author: Fuchen Duan
//
//Email: slow295185031@gmail.com
//
//CreatedAt: 2017-03-21 11:27:57
// ---- Program Info End ----
#include <stdio.h>
#include <string.h>
#define MAX_ENG_LEN 1000
#define MAX_WORD_LEN 100
char cOnesAlphets[10... |
93929c5d292ca02f9ad3ec5f9960a6495fd38cd4 | 1004ee27e1f187ac9b333e3be77d975639b65c5e | /Magma/magma.h | fd002f3ba5798d5a8ac8e478cd247fd5e5862619 | [] | no_license | michead/VulkanSPH | 8349c4fe2541ffb5dadb5b91fb7aa0bdf93d904f | 974bca4823b1326c6b11dee80cab6ff4e3e3a408 | refs/heads/master | 2021-09-08T00:29:51.749918 | 2018-03-04T10:06:56 | 2018-03-04T10:06:56 | 88,916,330 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,109 | h | magma.h | #pragma once
#include <SDL2\SDL_syswm.h>
#include <iostream>
#include "magma_context.h"
#include "config.h"
#include "event_handler.h"
#include "fluid_simulation.h"
#include "perf.h"
#include "hud.h"
#include "scene.h"
#include "gfx_context.h"
#include "pipeline.h"
// Magma display name
#define MAGMA_DISPLAY_NAME "Mag... |
8fd77f61929b4c59dc8b51c001bcc758872d8be4 | 9ed54046af4bb2a9ffbf19f7d73394161b03145c | /MyOpenGLStudy01/Model.cpp | 96c546fbe59395781f5d5c4b8a6a249a6bf94799 | [] | no_license | HHHHHHHHHHHHHHHHHHHHHCS/MyOpenGLStudy01 | 7b078d5b62e673a2623145cc4feb66519812b937 | 707c1d92ccf07aed5d564b64f581fdc76534d6be | refs/heads/master | 2022-02-24T05:03:40.762937 | 2022-02-09T03:56:33 | 2022-02-09T03:56:33 | 191,728,226 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,650 | cpp | Model.cpp | #include "Model.h"
#include "ImageHelper.h"
Model::Model(const std::string& path)
{
LoadModel(path);
}
Model::~Model()
{
}
std::vector<Mesh> Model::GetMeshes() const
{
return meshes;
}
std::vector<Texture*> Model::GetTextures() const
{
return textures_loaded;
}
void Model::Draw(Shader shader)
{
for (unsigned... |
44a6be9dfdf57e448ed213b58419b6a15bb7dacb | 0225a1fb4e8bfd022a992a751c9ae60722f9ca0d | /3party/osrm/osrm-backend/contractor/contractor.hpp | ccfabbc8f34831c322823541f5d61efceeecdb1f | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | organicmaps/organicmaps | fb2d86ea12abf5aab09cd8b7c55d5d5b98f264a1 | 76016d6ce0be42bfb6ed967868b9bd7d16b79882 | refs/heads/master | 2023-08-16T13:58:16.223655 | 2023-08-15T20:16:15 | 2023-08-15T20:16:15 | 324,829,379 | 6,981 | 782 | Apache-2.0 | 2023-09-14T21:30:12 | 2020-12-27T19:02:26 | C++ | UTF-8 | C++ | false | false | 40,284 | hpp | contractor.hpp | /*
Copyright (c) 2015, Project OSRM, Dennis Luxen, others
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list
of conditions ... |
ed2a69bbc1b9a9a5712efbe7206b163cc1e67d07 | 54065bcaa1c80f235ba58951adc2820b10b7213b | /implicitcolorizer.cpp | 7c43b69839df50e9ab3511d3e3fcd0ff0c4a70e1 | [] | no_license | Gomer3261/CSC486A-Modelling | 7918f7b3e292de23a7ab5933d6bbc6d26be6e73a | 6b5eab04e3b528b1a77c007036680bce956cddc7 | refs/heads/master | 2016-09-10T18:24:04.927582 | 2015-02-26T19:56:08 | 2015-02-26T19:56:08 | 31,385,695 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 786 | cpp | implicitcolorizer.cpp | #include "implicitcolorizer.h"
ImplicitColorizer::ImplicitColorizer(ImplicitObject *child) :
ImplicitObject(),
m_child(child)
{
}
float ImplicitColorizer::getFieldValue(QVector3D point) {
return m_child->getFieldValue(point);
}
PointFlavour ImplicitColorizer::getFlavour(QVector3D point) {
PointFlavou... |
217df8daa2288fbb6bca556c2907be580beccd21 | 9f9660f318732124b8a5154e6670e1cfc372acc4 | /Case_save/Case20/Case/case4/1600/alphat | 7b9f48714586ae38be7397270b73de2cec949faf | [] | no_license | mamitsu2/aircond5 | 9a6857f4190caec15823cb3f975cdddb7cfec80b | 20a6408fb10c3ba7081923b61e44454a8f09e2be | refs/heads/master | 2020-04-10T22:41:47.782141 | 2019-09-02T03:42:37 | 2019-09-02T03:42:37 | 161,329,638 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,433 | alphat | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
a8ddfb2b59ba409d6801513e4a8993519d3fd510 | 32fe79149d81bd93890d9b4e907a7fc62812b47a | /consumer/src/main.cpp | a7e121a8524c1f10ba280fd1c678eebda7ca2364 | [] | no_license | dmi3s/snt | c6db25ed054b65444d9340a45803b1ba2698903d | 3580110138e28f0c71e6a23b992f4ed492ee8bc6 | refs/heads/master | 2021-07-22T18:12:20.780727 | 2017-10-06T16:45:52 | 2017-10-06T16:45:52 | 95,818,380 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,813 | cpp | main.cpp | #include <string>
#include <iostream>
#include <iomanip>
#include <vector>
#pragma warning(push, 3)
#include <boost/process.hpp>
#pragma warning(pop)
#include <boost/filesystem.hpp>
#include "sample.hpp"
namespace bp = boost::process;
namespace fs = boost::filesystem;
using namespace std;
using namespace sn_test;
... |
157adc8e5046fc9467f5f778342033aba0f7c32f | f14626611951a4f11a84cd71f5a2161cd144a53a | /SERVER/setup/NewSkillList.cpp | 116c7d71d9b5f300a97a833f7fa99082b6365193 | [] | no_license | Deadmanovi4/mmo-resourse | 045616f9be76f3b9cd4a39605accd2afa8099297 | 1c310e15147ae775a59626aa5b5587c6895014de | refs/heads/master | 2021-05-29T06:14:28.650762 | 2015-06-18T01:16:43 | 2015-06-18T01:16:43 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,384 | cpp | NewSkillList.cpp | ///////////////////////////////////////////////////////////////////////////////
/// NewSkillList.cpp
///
/// PATH: E:\alienbrainWork\Game_Program_Develop\guangmang\SERVER\setup
///
/// CREATED: 08/06/2007 13:49:01 PM by 陈先进
///
/// PURPOSE: 技能类
/////////////////////////////////////////////////////////////... |
6cb76d5e03e4ad9e29ad12477c653deb213d386f | 041202ea37e90e1555bbe615871e7822e0a8cecf | /uva/392.cpp | 7b3eaebb6e4ba9d6b9ed61d826cd3f9b094b72ae | [] | no_license | 5fe6eb50c7aa19f9/OJ | 64d9d6c407f864102b359cb98626d1f687914187 | 24827c9f006211917386c002facd3192496eb0e6 | refs/heads/main | 2022-04-23T08:21:57.339331 | 2022-04-16T15:23:10 | 2022-04-16T15:23:10 | 205,539,787 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 908 | cpp | 392.cpp | #include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
#define abs(x) ((x)<0?(x)*-1:(x))
int main(){
int data[9],head,i;
while(scanf("%d",data)==1){
head=1;
for(i=1;i<9;i++)scanf("%d",data+i);
for(i=0;i<9;i++){
if(data[i]){
if(head){
... |
bbed9d6ff38002baf79090d188da6e44cebb3e7c | 0286b14ac24c77dff693814a5951b907914db940 | /idlcpp/src/SourceFile.h | 926c099f51f600aab5b6589141d9fae155b589d2 | [
"MIT"
] | permissive | show0925/idlcpp | e9f5400eefb889cb99c7c57ca50ca6ebaa93e433 | 8d9a8867985a3930096ecabc621abad2336c0bee | refs/heads/master | 2020-04-06T03:48:15.534256 | 2016-03-15T14:15:29 | 2016-03-15T14:15:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,478 | h | SourceFile.h | #pragma once
#ifdef __cplusplus
extern "C"
{
#endif
int enterSourceFile(const char* fileName);
int leaveSourceFile();
const char* getCurrentSourceFileName();
const char* getMainSourceFileName();
const int import_file_failed = -1;
const int import_file_succeeded = 0;
const int import_file_already_import = 1;
//v... |
bcfdf3ad9836db7deef3ed7478680fddfa67cb1a | 45d300db6d241ecc7ee0bda2d73afd011e97cf28 | /OTCDerivativesCalculatorModule/Project_Cpp/lib_static/FpmlSerialized/GenClass/fpml-variance-swaps-5-4/VarianceSwap.cpp | 7978cd546a92c5197588bbd94e25332a3913760a | [] | no_license | fagan2888/OTCDerivativesCalculatorModule | 50076076f5634ffc3b88c52ef68329415725e22d | e698e12660c0c2c0d6899eae55204d618d315532 | refs/heads/master | 2021-05-30T03:52:28.667409 | 2015-11-27T06:57:45 | 2015-11-27T06:57:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,489 | cpp | VarianceSwap.cpp | // VarianceSwap.cpp
#include "VarianceSwap.hpp"
#ifdef ConsolePrint
#include <iostream>
#endif
namespace FpmlSerialized {
VarianceSwap::VarianceSwap(TiXmlNode* xmlNode)
: NettedSwapBase(xmlNode)
{
#ifdef ConsolePrint
std::string initialtap_ = FileManager::instance().tap_;
FileManager::instan... |
18afff69b9484f88d44c2a0d2cf6569ea907dff1 | e1a22dd68c3b84a96853a843c93d906af2bb79d3 | /Gravity2/Renderer/RenderBuffer.h | a3472c4685b80766f927ab5806e0648d8ae0f062 | [] | no_license | yeongasm/grvt-engine | f4d312870d8ba72763d428d5f0c43d760ea88617 | 7ee400ad85da9bb1d4221eda5834a0ec90659b58 | refs/heads/master | 2020-06-07T05:58:23.474654 | 2020-05-12T15:26:11 | 2020-05-12T15:26:11 | 192,941,649 | 0 | 0 | null | 2019-09-09T07:39:41 | 2019-06-20T15:09:29 | C++ | UTF-8 | C++ | false | false | 1,121 | h | RenderBuffer.h | #pragma once
/**
* RenderBuffer data structure.
*
* The idea of a RenderBuffer is to seperate the Renderer from the Application's sequential pipeline.
* RenderBuffer only acts as a container to store data and does not manipulate data in any way.
* As of 13.07.2019, multi-threading has not been implemented into the en... |
e52414d283c91e6385ae5ba6a19c35a5a7baed38 | b102dc30de767ec3189b38f133fc1f4193e26526 | /C++ Networking/Lab2/can/Node.h | 64fbdbaf2a3003ecd92f9350abefa526ac3d76f2 | [] | no_license | Ardric/School-Projects | 7b2d456bed9f7be146b81c133e6463985cb044dc | 9923ae13b1d2a6bcc926f50e695a215671077c6e | refs/heads/master | 2020-03-16T21:05:41.660196 | 2018-11-30T04:51:27 | 2018-11-30T04:51:27 | 132,984,531 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 693 | h | Node.h | #ifndef NODE_H
#define NODE_H
#include <iostream>
#include <string>
#include <unordered_map>
#include <vector>
//#include <utility>
using namespace std;
typedef struct Points
{
double x, y;
};
class Node{
public:
Node();
~Node();
//void Print();
string MessageHandler( string msg, double xl, double xu, do... |
a8caf811fe926fb8d4c94d6269ec8009771bfd6b | c49ea222f9c12b4bc5a318cef0edde7bd80ee289 | /BankingSystemV2/Deposit.cpp | 93fe4992ed650a4ad12469d1720c2818fd678889 | [] | no_license | bradbow/BankingSystem | 042179adb46b375abddd0166e344fed666ff44f2 | 36d4128e3ff613f3424d1a28d6e9f2cb9cd6b3e9 | refs/heads/master | 2021-01-01T18:06:38.370763 | 2011-10-30T13:10:50 | 2011-10-30T13:10:50 | 2,629,659 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 935 | cpp | Deposit.cpp | #include "stdafx.h"
// ----------------------------------------------------------------------------------------- //
// Constructors / Destructors
Deposit::Deposit
(
int id, double amount, Date dt, int accountId
) : Transaction(id, amount, dt)
{
_transactionType = "Deposit";
_accountId = accountId;
}
// ----------... |
9d31b82d2009c5ac2f7f60d35e06fc0d44920786 | 33240f213025de3d515a0264eab49021120eed8d | /1153.cpp | a9e9abec53f1e694264e65a93f1a42c8952d0dce | [] | no_license | lannooo/PAT | b842790ab0a8fa3196647411d26edd58c0affd22 | b15578f154f1453e28f2f27d8da5441ffb3710a5 | refs/heads/main | 2023-03-28T07:55:26.224689 | 2021-03-18T05:33:28 | 2021-03-18T05:33:28 | 348,948,542 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,738 | cpp | 1153.cpp | #include <cstdio>
#include <string>
#include <map>
#include <unordered_map>
#include <vector>
#include <algorithm>
#include <iostream>
using namespace std;
struct PatCard{
string cardNumber;
int score;
}cards[10000];
struct Cite{
int cnt;
int score;
Cite(){}
Cite(int _cnt, int _score):cnt(_cnt... |
33ecae4791637401e8a8b2d7c564f3e891a3cfd0 | d0c2487ee5b6c46f3b44fe0b740876c9485a2c01 | /animationcontroller.h | 3827df0c8ef7b3e41f9c8513f95fa4e01a6446d6 | [
"MIT"
] | permissive | spenCM/DinoVR | 837162938ede56aea492dece96fce5d02c9a5803 | d35efcb3df894a3e5d5cb61162dbfaddf17f1460 | refs/heads/master | 2020-09-11T18:25:01.761158 | 2019-12-04T01:22:57 | 2019-12-04T01:22:57 | 222,152,186 | 0 | 0 | MIT | 2019-12-04T01:22:58 | 2019-11-16T19:57:44 | null | UTF-8 | C++ | false | false | 1,125 | h | animationcontroller.h | #pragma once
#include <chrono>
/**
* AnimationController controls the timing of the animation.
* The primary purpose is to keep the animation synchronized between the various nodes.
* The secondary purpose (currently disabled) is to keep a constant animation rate despite changing framerate.
* To operate the get... |
78dfd2c0afee5db200d3e3411ca3083822ab30ba | dbbe188f5a75f4c6d2e6e0809cd8263c9e0c3a53 | /src/motor.cpp | 98798e51959d66c0ee40b8060f9b8653a5a55381 | [] | no_license | acastles91/Upu | 40cefe537d552155052ec5503e6cd00fec26e7a1 | 05d6f52d694b404ac811fca21c7940d081ba6744 | refs/heads/master | 2021-02-10T04:18:44.757480 | 2020-03-02T13:37:31 | 2020-03-02T13:37:31 | 244,351,268 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,116 | cpp | motor.cpp | #include <motor.h>
#include <TMCStepper.h>
#include <TeensyStep.h>
Motor::Motor(const int dirPinArg, const int stepPinArg, const int enabPinArg, const int chipSelectArg, const int mosiSdiArg, const int misoSdoArg, const int clkArg, float rSenseArg) :
driver(chipSelectArg, rSenseArg)
//motor(stepPinA... |
bf59099d35142a0a441bee0c660df44517bed846 | b28f7ae59fb4a3470f26c5128c80bbaefeb58c12 | /src/io/io.hpp | 4fc1ee9587f767674735e369521f01cf024f4347 | [
"MIT"
] | permissive | pepng-CU/pepng | ae9b97528bf5972f4ad1d5dbfa93f13c2eca39dc | 6030798b6936a6f85655d5e5d1ca638be282de92 | refs/heads/main | 2023-04-02T06:00:49.822754 | 2021-04-19T20:09:36 | 2021-04-19T20:09:36 | 354,163,654 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,306 | hpp | io.hpp | #pragma once
#include <vector>
#include <memory>
#include <string>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
enum AxisType {
FIRST, SECOND, THIRD, FORTH
};
enum DeviceType {
MOUSE, JOYSTICK, KEYBOARD, NONE
};
class Device;
class Input;
/**
* An abstract Device unit (Button, Axis, etc).
*/
class Dev... |
0f5041b979027e16f62ed8cdab9aa83d9c9dd1d1 | 8914acd84a1e51ece18e81a6334e08226219a119 | /Code/Source/Rendering/UISytstem.h | fad96f3b7a6bbdec1ba622b03993ca55ad609633 | [] | no_license | erdnaxela01/WonderEmporium | 9437e2cef71db136f57e304bfe4e879cd1250bf5 | 0eebbfb554eec9a82662424682b482c1b494a4b7 | refs/heads/master | 2021-01-10T11:50:03.632148 | 2016-01-19T19:37:45 | 2016-01-19T19:37:45 | 49,336,556 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 949 | h | UISytstem.h | #ifndef __UI_SYSTEM_H
#define __UI_SYSTEM_H
#include "MyLibs\OpenGL\UniformBuffer.h"
#include "Core\SystemCallback.h"
#include "Scene\Scene.h"
#include "MyLibs\OpenGL\ShaderProgram.h"
#include "UIComponent.h"
namespace WE
{
//this will use a forward rendering to draw things that are part of the ui
class UISys... |
2b356895385d0527e494312dd0579fa91ea05493 | ba0d580d07acf20f4907ed93a8495096110b86f2 | /src/ramp/main.cpp | 698fa9c99b397421e94ff2e18856a1e449145e21 | [] | no_license | navrkald/4-colour-ramp | 62f4e83e316a70680dfb03457fd220dfbc28675f | 4d42a2b2817e6df4215a30719823bd59977672dd | refs/heads/master | 2021-01-23T20:26:08.957514 | 2017-09-12T18:24:48 | 2017-09-12T18:24:48 | 102,858,595 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 640 | cpp | main.cpp | #include "Display.h"
#include "ParamParser.h"
#include "ColourRamp.h"
#include <string>
#include <iostream>
using namespace std;
int main(int argc, const char* argv[])
{
ColourRGB565 topLeft, topRight, bottomLeft, bottomRight;
const char* displayName;
Error err(ok);
if ((err = ParamParser::ParseArguments(argc, ... |
4ddcd8214666dff127bbb0d4bfedcfb63d224583 | 1de9a7f6dd421798b87fa1abc562347343236337 | /test/test_hand_statistics.cpp | 1e02d35716ee4ca5bcae09f2587d8d3c1b68f554 | [
"MIT"
] | permissive | kam3k/crib_hand_helper | 4e79641520d84d0e017c9015b99e860154d3803b | bc7d67c44817701bc32bf0e1efb105e8b7b20d4b | refs/heads/master | 2021-01-11T03:09:30.047245 | 2016-12-01T21:56:20 | 2016-12-01T21:56:20 | 71,085,683 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,884 | cpp | test_hand_statistics.cpp | #include "catch.hpp"
#include "crib_hand_helper/hand_statistics.h"
using namespace crib;
TEST_CASE("Bad hands")
{
auto hand_statistics =
get_hand_statistics({Card("2h"), Card("4d"), Card("7c"), Card("Qs")},
{Card("As"), Card("Ah")});
REQUIRE(hand_statistics.worst == 0);
REQUIRE(h... |
3ca9d56a825744edc43848aea831b297397bb6be | f2b70f0f8d6f61899eb70b9f2626f1eb44f68cc7 | /libs/qtutil/include/qtutil/VoxoxErrorMessageLabel.h | 1858fdde9c75271008cd65cf9e747877d21b17f2 | [] | no_license | vikas100/VoxOx | cc36efcbb9a82da03c05ea76093426aafba3bd8c | d4fae14f3f5a4de29abad3b79f4903db01daa913 | refs/heads/master | 2020-05-18T06:57:08.968725 | 2011-05-14T01:56:29 | 2011-05-14T01:56:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,501 | h | VoxoxErrorMessageLabel.h | /*
* WengoPhone, a voice over Internet phone
* Copyright (C) 2004-2006 Wengo
*
* 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) any ... |
d9583198b25d1a280f4f34e83569da39bf46daa0 | f34aafa1f0415de4db2d888a5d25ae341aa3e069 | /wjrpc/errors/errors.hpp | be28dea4d527c76924f35f04fe2088e34cf9287f | [
"MIT"
] | permissive | mambaru/wjrpc | 59fe91f0df5f8e861ae6d27e067c74b506a81322 | aabea1d07c707111c55a35e160b5a3f34e93ae5c | refs/heads/master | 2023-08-25T00:15:54.734860 | 2023-08-03T21:57:06 | 2023-08-03T21:57:07 | 71,155,902 | 5 | 2 | MIT | 2021-04-22T12:38:31 | 2016-10-17T15:59:20 | C++ | UTF-8 | C++ | false | false | 1,714 | hpp | errors.hpp | //
// Author: Vladimir Migashko <migashko@gmail.com>, (C) 2011-2016
//
// Copyright: See COPYING file that comes with this distribution
//
#pragma once
#include <string>
#include <wjrpc/basic_types.hpp>
namespace wjrpc{
enum class error_codes
{
NoError = 0,
ParseError=-32700,
InvalidRequest = -32600,
Pr... |
dad2b94306ac8e8e3368657ed733db06bcf8d624 | a42eb17fdfbcf62a1e8ff38d2941a2eb4a8984cf | /lecture7/main.cc | 4e39cc1ed62357b70fda59127b9b089871cfa580 | [] | no_license | ankenman/CS162_Winter2020 | 71375e95ae34c11da7c9bff99fac88402c05d55e | b777c7197b3c5433b90c3eac87389531126a1da8 | refs/heads/master | 2020-12-12T00:28:46.337987 | 2020-03-17T23:59:10 | 2020-03-17T23:59:10 | 233,995,323 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 520 | cc | main.cc | #include "rectangle.h"
int main() {
cout << "getNumRectangles(): " << Rectangle::getNumRectangles() << endl;
Rectangle rect = Rectangle(3, 4);
//cout << "Area: " << rect.getArea() << endl;
cout << "getNumRectangles(): " << Rectangle::getNumRectangles() << endl;
if (true) {
Rectangle rect2 =... |
f3a24f4b55670a59b8fb3d8fe669c99ad0b832ee | 89edd785fe88d2fafc6d6d1847cfa24b7bd855bd | /grbl_controller_esp32/actions.cpp | 393c16e55de73b1625bae76080f0fcc9bf339db6 | [] | no_license | mstrens/grbl_controller_esp32 | a6f65a96bf9911121f3a92231690f3b540993de6 | 014861320d4872bec7209abe03ac99c6ea363805 | refs/heads/master | 2023-05-24T18:47:37.110322 | 2022-05-24T06:59:23 | 2022-05-24T06:59:23 | 170,190,948 | 156 | 82 | null | 2023-05-10T07:20:29 | 2019-02-11T19:45:27 | C | UTF-8 | C++ | false | false | 29,415 | cpp | actions.cpp | #include "config.h"
#include "language.h"
#include "draw.h"
#include "setupTxt.h"
#include "TFT_eSPI_ms/TFT_eSPI.h"
#include "FS.h"
#include "actions.h"
#include "menu_file.h"
#include "telnet.h"
#include "cmd.h"
#include "com.h"
#include "log.h"
#include "bt.h"
// create for touchscreeen
extern TFT_eSPI tft ;
extern ... |
c64e59625d2d65c73ac8daee3716a867c150eb54 | c1c5a8dc79cacf3b419bad77881213c5db2f80c3 | /UVa/C++/12460.cpp | 5e14d4f8123e5aa2e9e8fb4185fbf2c81730f57c | [] | no_license | EoinDavey/Competitive | 7ff8b6b6225814ac60c3ace659bb63190eb52420 | b2b6909b93f5c073b684477f8a4b06dac22ec678 | refs/heads/master | 2023-01-08T00:06:19.076941 | 2022-12-26T14:00:31 | 2022-12-26T14:00:31 | 67,259,478 | 17 | 1 | null | 2022-01-19T18:17:59 | 2016-09-02T22:46:26 | C++ | UTF-8 | C++ | false | false | 967 | cpp | 12460.cpp | #include<iostream>
#include<map>
#include<cstdio>
#include<string>
using namespace std;
map<string,string> p;
map<string,int> r;
string find_parent(string i){
if(p[i]==i)
return i;
return p[i] = find_parent(p[i]);
}
void join(string i, string j){
string pi = find_parent(i);
string pj = find_... |
db679fcd2fa2737b4a5a3a6e9e656f1c6972e510 | 757d80d5e76344ee5a53e0ae37510e1f9ee6e793 | /Class Work/Final Winter 2017/CSC5_Final_Prob3_EvenOddFunctions/main.cpp | ffeb1c02ce93ae9f436f1473a21a280aff4daf9b | [] | no_license | vcuchilla/Cuchilla_Victor_CSC5_40107_RCC | a7f720dc23a82a6544c86041611ad787f14231a7 | 1d795e7db46dfc22e24527eb975e5b6b5dad3b96 | refs/heads/master | 2021-01-12T03:00:13.517701 | 2017-02-13T02:20:02 | 2017-02-13T02:20:02 | 78,146,272 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,171 | cpp | main.cpp | /*
File: main.cpp
Author: Victor Cuchilla
Created on February 10th, 2017, 10:00 PM
Purpose: This program uses vectors and arrays to fill a column of even or odd
numbers that are randomly generated.
*/
//System Libraries
#include <iostream> //Input output stream
#include <cstdlib>
#include <cti... |
19adc3f014c29b7c13a43544dd89022ff7834eb0 | 65e3391b6afbef10ec9429ca4b43a26b5cf480af | /TOF/TOFbase/AliTOFLTMSummaryData.cxx | 1bb1501acc27b258901994d1f4cd978b92d46b89 | [] | permissive | alisw/AliRoot | c0976f7105ae1e3d107dfe93578f819473b2b83f | d3f86386afbaac9f8b8658da6710eed2bdee977f | refs/heads/master | 2023-08-03T11:15:54.211198 | 2023-07-28T12:39:57 | 2023-07-28T12:39:57 | 53,312,169 | 61 | 299 | BSD-3-Clause | 2023-07-28T13:19:50 | 2016-03-07T09:20:12 | C++ | UTF-8 | C++ | false | false | 4,286 | cxx | AliTOFLTMSummaryData.cxx | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... |
515493fef84a5551d585abf0e4a3b343dfbdbed1 | b838bb4e9a855b91c0b9a4dc2f244bc7eba5843d | /Practice-05--Loops--For--While--Do-While/Solutions/20-Binary-to-Decimal.cpp | d3e2365376d722edd1034f3ed521e6a241368746 | [] | no_license | dako98/Introduction-to-Programming--2019-2020 | 2ae0898bf60c56c7f10e47b240f80fc083eb82cb | f4b313f208fa5ac76aeb7a3cf7ef3ccd3325524a | refs/heads/master | 2020-08-01T20:47:53.671349 | 2020-01-18T10:38:17 | 2020-01-18T10:38:17 | 211,112,344 | 11 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 891 | cpp | 20-Binary-to-Decimal.cpp | /**
* This file is part of the Introduction to Programming
* course 2019/20 held by Alexander and Dako.
* @file 20-Binary-to-Decimal.cpp
* @brief Solution for Problem 20 from Practice 5
* @author Alexander Dimitrov
*
* Problem:
* Read a whole non-negative binary number
* and print the decimal representation.
... |
3735c823dae2ecd2a4d4cc2e87f6505742da05a1 | cb4a6ece41f8183a73bfede55d4156e01743c848 | /ofApp.cpp | 9e65464726347a67701db6d31068644dfd72d3fe | [] | no_license | davidwang501/OpenCVPocketCubeSolver | e4938d80ad8e2dba53c30fa7cb2c940c9027c343 | 946630f42d28bfc41d448b0ba0a93eb0ff7180ab | refs/heads/master | 2020-04-17T16:45:29.841544 | 2019-01-21T05:37:06 | 2019-01-21T05:37:06 | 166,754,186 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,773 | cpp | ofApp.cpp | #include "ofApp.h"
#include "Solver.h"
using namespace cv;
using namespace ofxCv;
//--------------------------------------------------------------
void ofApp::setup(){
cam.initGrabber(433,300);
font.load("/Users/david/Downloads/of_v0.10.0_osx_release/apps/myApps/finalProject2/bin/data/tnr.ttf",22);
... |
4663a368fc29632f24f48fbb33d7209f5ad18efc | 44f42c9fc68fd3d44fc1436dea9fdf79d235c7ba | /TestAtomic/main.cpp | 26ce76b9eaabea3a0fa724a54b49abce641a7dab | [] | no_license | MyBW/RayTracing | e174afa26ec1c5241fb67bce8c170cb2c1ba6b2e | f62ce57198a777dfd06d49fa2e2476144913d421 | refs/heads/master | 2021-06-11T04:20:24.523894 | 2021-02-19T09:40:27 | 2021-02-19T09:40:27 | 152,522,444 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 932 | cpp | main.cpp | #include <iostream>
#include <atomic>
#include <vector>
struct TestStruct
{
TestStruct() = default;
TestStruct(const TestStruct& T)
{
}
std::atomic<double> TestAry[3];
};
std::vector<std::vector<TestStruct>> Test2D;
class A
{
public:
template<typename T>
virtual void Test(T a) = 0;
};
class B
{
public:
temp... |
b4a419d2f81647cfd468980bfb9290bf249bd203 | 489a45659476fafb66934427e42bfce3d60a0116 | /Sources/IntExpr.h | 78494029e09c05bd729e6e92bd74ec1205c6d4a6 | [] | no_license | billw2012/Caveman2Cosmos | 3a8c6ea347e75dbe2de9519fe70e6b38e0cf6dbe | 2382877536e1669972dd024ce2d0f3d0d5ffd988 | refs/heads/master | 2020-07-19T00:14:48.856106 | 2019-09-03T23:20:42 | 2019-09-03T23:21:02 | 197,989,388 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 7,832 | h | IntExpr.h | #pragma once
// $Header:
//------------------------------------------------------------------------------------------------
//
// FILE: IntExpr.h
//
// PURPOSE: Integer expressions for Civ4 classes
//
//------------------------------------------------------------------------------------------------
#ifndef INTEX... |
272827a5706ab8cfa56e53ee22d424c029879b27 | 5013750dde6990bf5d384cfd806b0d411f04d675 | /leetcode/c++/1624. Largest Substring Between Two Equal Characters.cpp | d0d3ae7e7faf720061440a9a107e86aaabe0ed04 | [] | no_license | 543877815/algorithm | 2c403319f83630772ac94e67b35a27e71227d2db | 612b2e43fc6e1a2a746401288e1b89689e908926 | refs/heads/master | 2022-10-11T10:31:17.049279 | 2022-09-25T15:11:46 | 2022-09-25T15:11:46 | 188,680,726 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 583 | cpp | 1624. Largest Substring Between Two Equal Characters.cpp | // 哈希表
// 时间复杂度:O(n)
// 空间复杂度:O(n)
class Solution {
public:
int maxLengthBetweenEqualCharacters(string s) {
int n = s.size();
unordered_map<int, int> record;
for (int i = 0; i < n; i++) {
if (record.find(s[i]) == record.end()) {
record[s[i]] = i;
}
... |
70e9dd8748339aa44c09d562a646f830afbc3d05 | aab561d22c80ff9ec04c9caed64fa5428af26e63 | /include/librorc/sysmon.hh | 30ef8b4c0b85feb3e58ee917291f67812fa537ab | [] | no_license | heikoengel/alice-hlt-librorc | 4b08cdaeda578965a56206ca03f2a9af5783a555 | 85636db408e15845453e9a51cc833512f6d9b045 | refs/heads/master | 2021-10-07T20:57:10.738167 | 2021-10-04T19:27:17 | 2021-10-04T19:27:17 | 166,049,748 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,604 | hh | sysmon.hh | /**
* Copyright (c) 2014, Heiko Engel <hengel@cern.ch>
* Copyright (c) 2014, Dominic Eschweiler <dominic.eschweiler@cern.ch>
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Re... |
524d96346e66b6a51cd45e23d259cf20c40ebcad | 12e679b0dd491f2b5462e2401e0c320fa193a8a6 | /Mychat/Mychat/title.h | 0fc5f45483335bbe9833949c94e455468581a85e | [] | no_license | ruokaic/Qt-project | e295d7eab93d031cc7335d352feefba33a934045 | bda42fa7918bdcdb53399f84179e45a554fa6b2a | refs/heads/main | 2023-08-20T06:21:22.304075 | 2021-10-18T03:52:00 | 2021-10-18T03:52:00 | 418,325,403 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 418 | h | title.h | #ifndef TITLE_H
#define TITLE_H
#include <QWidget>
#include <QMouseEvent>
#include <QMenu>
#include <QActionGroup>
#include <QAction>
namespace Ui {
class Title;
}
class Title : public QWidget
{
Q_OBJECT
public:
explicit Title(QWidget *parent = 0);
~Title();
private slots:
void on_CloseBtn_clicked... |
505740c6654fb1ab4086d9dd34054ef2649c7c48 | d9a642ed3b0047b56045a05e243a018069dc8133 | /source code/2352_반도체 설계.cpp | 57b8130758812585b567a80776d1585be3f0c683 | [] | no_license | kingkk31/BOJ | 7562c7b92a1761120ad159653107e0ec23be2b29 | 03335203cd880607803d28a1fb5cd862e7013e4b | refs/heads/master | 2021-05-04T11:39:05.781066 | 2018-01-09T16:52:15 | 2018-01-09T16:52:15 | 49,325,443 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 850 | cpp | 2352_반도체 설계.cpp | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <queue>
#include <vector>
#include <stack>
#include <set>
#include <map>
#include <list>
#include <string>
#include <string.h>
#include <math.h>
#include <algorithm>
#include <malloc.h>
#include <functional>
#pragma warning(disable:4996)
using namespac... |
00e59d53008cb675f20dbae8c8985fa13dcf808b | 9aaa160fb4e092266cc856ae203cb7c0ac411ef2 | /playGround.cpp | d9023d9cbaf01ca3a5c6b63eef3e141552b1cf2c | [] | no_license | Zeniz/farland | 0711f67d4a20b98122c62359ec855e1a1c345f0f | 54d4483a4a951c4a0a271442b97c89b048275965 | refs/heads/master | 2020-04-26T12:41:22.937420 | 2019-03-31T22:38:00 | 2019-03-31T22:38:00 | 173,557,544 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 2,177 | cpp | playGround.cpp | #include "stdafx.h"
#include "playGround.h"
playGround::playGround()
{
}
playGround::~playGround()
{
}
HRESULT playGround::init()
{
gameNode::init(true);
_mapEditor = new mapEditor;
_testMap = new testMap;
_stage1 = new stage1;
_mainmenu = new mainmenu;
_bossStage = new bossStage;
_gameover = new gameover;
... |
e240d73dfa2026f66458c418b46e2427501966c1 | ec79b0d29a3b041fe4c2809ec8f8875d299048f0 | /Macierz.h | ec235ee48d53461ad7a30361b9414e475a41e3d9 | [] | no_license | jaskoll/Matrix | 7e30646906f0a7d46c2d53874ee3bf0b88534b69 | a0e3fc50bffb4d136b60ccf7601d3a570f72dc67 | refs/heads/master | 2021-01-19T22:53:43.790722 | 2017-04-20T16:12:06 | 2017-04-20T16:12:06 | 88,885,715 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 514 | h | Macierz.h | #pragma once
#include <iostream>
#include "LiczbaZespolona.h"
class Macierz
{
private:
LiczbaZespolona **tablica;
int M, N;
public:
Macierz(int m = 1, int n = 1);
Macierz(const Macierz &mac);
Macierz &operator=(const Macierz &mac);
~Macierz();
void setM(int x);
void setN(int y);
LiczbaZespolon... |
f5b76d36829d31f8cf10abd28735fa998c945c19 | d655b54747775c2828bc70761d431e11bc8911d0 | /初级算法/回文链表.cpp | f63d2b118804a8500d37af9ea2d8bc012d747e25 | [] | no_license | ChangWenWu/Leetcode | 1857e05ff406f9e15f8d0318ccdebc25b7b7574b | 9b2899e12ab1a791fdd0acd2e5d83ddcaddc4a53 | refs/heads/master | 2021-07-20T02:35:43.726269 | 2018-11-29T03:24:37 | 2018-11-29T03:24:37 | 141,366,124 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,073 | cpp | 回文链表.cpp | //
// 回文链表.cpp
// Leetcode
//
// Created by jarvis on 2018/7/26.
//
#include <stdio.h>
//先使用龟兔赛跑思想取得链表中间的节点,之后将节点后的链表反转,一一比对
class Solution {
public:
ListNode* getMiddle(ListNode* head){
ListNode* fast = head;
ListNode* slow = head;
while(fast && fast->next){
fast = fast->n... |
02c188f755931e0537f4716dce5eb1167ab2cff3 | 1de094a15fa0067b63e8a7106209dfe29e803ea9 | /Disjoint_set/union_by_rank_path_compression.cpp | c61436902d370f3b0ec44f56bc623e97a60fc1de | [] | no_license | jigsaw5071/algorithms | 70146537d2e617c02f6253549abc8a32d9361272 | 9144b2c117f2845ab125b89aeec6b33891c98dd3 | refs/heads/master | 2020-07-20T19:03:11.431940 | 2019-10-17T22:17:36 | 2019-10-17T22:17:36 | 66,913,566 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,514 | cpp | union_by_rank_path_compression.cpp | /**
@ Shubham Sharma
date: 24/04/2017
Ref:https://www.topcoder.com/community/data-science/data-science-tutorials/disjoint-set-data-structures/
*/
/**======================DISJOINT SET ==================================================
1. The time complexity of m opertaions on an array of size n is <= O(4*m)
2. The... |
c1ceb4f91832202bc06007a4183129aafa97da09 | c21c8cba94f4f73aa23de98e555ef77bcab494f0 | /Codechef/FORESTGA.cpp | 4a1db4b28ab5711de4896636e09e2816e15c2988 | [] | no_license | hoatd/Ds-Algos- | fc3ed0c8c1b285fb558f53eeeaea2632e0ed03ae | 1e74995433685f32ce75a036cd82460605024c49 | refs/heads/master | 2023-03-19T05:48:42.595330 | 2019-04-29T06:20:43 | 2019-04-29T06:20:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,138 | cpp | FORESTGA.cpp | #include<bits/stdc++.h>
#define mp make_pair
#define ll long long
#define pb push_back
#define si(x) scanf("%d",&x)
#define slli(x) scanf("%lld",&x)
#define pi(x) printf("%d",x)
#define mx5 100005
#define mx6 1000006
#define mod 1000000007
#define rep(i,n) for(int i=0; i<n; i++)
#define fast std::ios::sync_w... |
c2ecfa2d12b8c752153e5fab48b31c5c26fbe005 | 6bf865081abaeee8bc86982c21b5b04c34af8967 | /main.cpp | d1723aadea4e73d06f9db1f1c38f17134f99c0bb | [] | no_license | wangjiwang/BankSystem | 37badf0ef350f3ee916919b3592220cd815aefd8 | 778f33cfbf8cc60e3e59ca33cf6df549fd1cad86 | refs/heads/master | 2021-01-17T08:52:32.567854 | 2017-03-05T13:08:24 | 2017-03-05T13:08:24 | 83,967,318 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 25,868 | cpp | main.cpp | #include <iostream>
#include "Account.h"
#include "linkList.h"
#include <fstream>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include<windows.h>
#include <time.h>
using namespace std;
#define n 10
bank bank;
SLNode *rear;
void welcome()
{
cout<<"iriiiiiiiiiiBB i... |
9b81e66dee9e4213d2e8d023e64d186098ac03ca | 0e8dad8b6ee61b4d4ca9cd040b6c0ccd4e8f3e07 | /src-Teensy/TeensyGoNogo/SerialParser.h | 7bce1b3ce52a304da4b0252b54101bcf229a0430 | [
"MIT"
] | permissive | emaleepeterson/TeensyGoNogo | 9842a83ebc14a0bf0610a97f96d2ab55f0fb0c99 | ca9cab249f05ad014f663ca1656a2ace9ddd81b3 | refs/heads/master | 2020-04-06T19:30:17.496118 | 2018-11-19T16:34:24 | 2018-11-19T16:34:24 | 157,739,570 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 481 | h | SerialParser.h | #ifndef _SerialParser_h_
#define _SerialParser_h_
#include <Arduino.h>
typedef void (*interpreter)(char* cmd, int num_args, long* args);
class SerialParser
{
public:
static const int MAX_ARGS = 10;
static const int MAX_CMD = 128;
private:
HardwareSerial _serial;
interpreter _interp;
String _usbMessage;
long _a... |
8bd5ed837311acbf5f96275a7d8d31aecfb35161 | 6cb9f535c40a11a22a4abbfb3c05adb1fd8aec96 | /BaoCao/BC_DHMT/Source/Bai2.cpp | ab7e46b3b93fdd98f518e6b47c98aca05e9001ca | [] | no_license | ceontgroup/public-project | f77449a000176dfd4fdceaf65853d44fda217e7e | c311e143cad7d552cfdc47ce70cdbc61ba00e433 | refs/heads/master | 2016-08-11T18:06:59.377421 | 2013-06-02T17:46:36 | 2013-06-02T17:46:36 | 48,648,449 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,140 | cpp | Bai2.cpp | #include <stdio.h>
#include<iostream>
#include<math.h>
#include "graphics.h"
int init();
int close();
int pause();
int drawLine(int xa,int ya,int xb,int yb,int color=0);
int drawCircle(int x0,int y0,int R,int c=0);
int main()
{
drawLine(0,300,23,123,3);
drawCircle(200,200,200,4);
return 0;
}
/... |
dac43ccb93b00f7ea26b7dd9af65f5483bce0bfb | c8814f2e344cf72bc25ad84e2e596505bbddcdf2 | /0 通用/0.2 输入输出挂/0.2.3 fread输入.cpp | c1f591492e2e281197d21ccf5df5aae20c26a95b | [] | no_license | Hukeqing/ACM-Template-SingDanceRap | b648d7058f05be8e6c268e27cc63e18fa2168f1a | 3c61332d5630ab466a48b95b9c67de31e1e63087 | refs/heads/master | 2023-02-02T14:38:07.376220 | 2020-12-24T01:57:44 | 2020-12-24T01:57:44 | 189,908,584 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 877 | cpp | 0.2.3 fread输入.cpp | /*
* fread快读,最强快读
* 不可以与其他任何读入重用
* 可以判断是否为文件结束
* 使用:
* int a;
* FastRead (a);
*/
struct fastio
{
static const int s = 1 << 24;
unsigned p, l;
fastio() { p = l = 0; }
char gc()
{
static char bf[s];
if (p == l)
p = 0, l = fread(bf, 1, s, stdin);
return p == l... |
2eadb9d3ecd2ef659de896e73012817c237d45f6 | 46a6f2d120608c7483052ab60f4f107b3d85a815 | /meta_manage/meta_menage/3rd/unispace_library/include/util/math/us_size.hpp | 8337f23c4e244a6ac46227a700f8722e3bf9eda5 | [] | no_license | radtek/httpcms | fe38f4e0d9eed566ea5b217747acff81c5ea2fc7 | 93911b10411ddc987e98826f728056ece0fb0075 | refs/heads/master | 2020-06-11T01:13:25.089747 | 2018-11-21T10:06:34 | 2018-11-21T10:06:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,619 | hpp | us_size.hpp | /**********************************************************************//**
* @file math\us_size.hpp
*
* Declares the size class.
*************************************************************************/
#ifndef __US_SIZE_HPP__
#define __US_SIZE_HPP__
#ifndef __US_VEC2_HPP__
#include "us_vec2.hpp"
#endif
// #i... |
a8be07ff337b1960fb1ce7aa47da5bd07eb10ae8 | a41d36f0dac61f59ba988ddcf7f696e6a15be3fe | /AsteroidShooter/includes/MapBackground.h | b9fb3473a9488d7fbb44b8ea45edade380f1341d | [
"MIT"
] | permissive | htmlboss/OpenGL-2D-Game-Engine | 54847f070639cec91170a146dea661af4650a3e0 | 1908e5a6ab781585381bcb7bcae6a595506354b2 | refs/heads/master | 2021-01-17T19:01:17.609130 | 2016-10-22T12:16:35 | 2016-10-22T12:16:35 | 71,636,806 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 500 | h | MapBackground.h | #ifndef MAP_BACKGROUND_H
#define MAP_BACKGROUND_H
#include <string>
#include <InputManager.h>
#include <SpriteBatch.h>
class MapBackground {
public:
MapBackground();
~MapBackground();
void Init(const std::string& BackgroundPath, Engine::InputManager* inputMgr, const glm::vec2& cameraPosition);
void Update();
... |
46115048ccc1561be85ad825dc74a3178a717d4a | dccd1058e723b6617148824dc0243dbec4c9bd48 | /aoj/itp1_cpp/itp111b.cpp | a3dda09e0e2816905429797e3c212474ca56d4b2 | [] | no_license | imulan/procon | 488e49de3bcbab36c624290cf9e370abfc8735bf | 2a86f47614fe0c34e403ffb35108705522785092 | refs/heads/master | 2021-05-22T09:24:19.691191 | 2021-01-02T14:27:13 | 2021-01-02T14:27:13 | 46,834,567 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 861 | cpp | itp111b.cpp | #include <cstdio>
#include <iostream>
using namespace std;
struct dice{
int q1,q2,q3,q4,q5,q6;
};
void mN(dice &d){
int tmp=d.q1;
d.q1=d.q2;
d.q2=d.q6;
d.q6=d.q5;
d.q5=tmp;
}
void mE(dice &d){
int tmp=d.q1;
d.q1=d.q4;
d.q4=d.q6;
d.q6=d.q3;
d.q3=tmp;
}
void mW(dice &d){
int tmp=d.q1;
d.q1=d.q3;
d.q3=d.... |
e6d0cc4a33c85227f2361b7ce236b5deb871c803 | 9a5776aab7b866b4542aa08dd2d49afb177899f1 | /src/utils/uint_seq.cpp | cab09195f792dc68c576db0b0e6f61f2c5504d13 | [] | no_license | cxxcunow/mybit | 767778d39436bc380f23b666848e40c50bf1a391 | 2ba822d8da60199c7bfe163be98bfe6bfb649c8e | refs/heads/master | 2020-03-20T17:47:49.720089 | 2018-06-16T08:36:17 | 2018-06-16T08:36:17 | 137,565,967 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,327 | cpp | uint_seq.cpp | #include "uint_seq.h"
#include "uitil.h"
#include "stdio.h"
#include "string.h"
template <unsigned int BITS>
base_seq<BITS>::base_seq(const std::vector<unsigned char>& vuc)
{
memcpy(data, vuc.data(), sizeof(data));
}
template <unsigned int BITS>
std::string base_seq<BITS>::GetHex()
{
return ... |
23b951385e2425d236f57f50241a53b6b27a1316 | 508b3822cb78b4e9f20d8bdcd16a3a14338b9336 | /CavaEngine/Engine/BaseObject.cpp | 0c0e53651ad36f6643216ce767317c3284b3e743 | [] | no_license | hittoSepi/CavaEngine | 30d4873f9eca605a56699ef5c2b175b14fc58c81 | 65c82100076f0f3d90c6f7f8ad717c0baef6b85c | refs/heads/master | 2023-07-05T07:45:20.040967 | 2021-08-29T09:31:50 | 2021-08-29T09:31:50 | 396,976,975 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 242 | cpp | BaseObject.cpp | #include "Core/Cava.h"
#include "Engine/BaseObject.h"
namespace Cava
{
BaseObject::BaseObject()
{
LogError("Don't use with default constructor!");
}
BaseObject::BaseObject(std::string name)
{
id = Engine::GetId(name);
}
}
|
8fa5126babad435a630a6ec1cd69512dcae58b3c | f979deecf55ce316483d170762ba2731dd241f89 | /include/plane_detector/plane_detector.hpp | e35500f8e0a8ac58d095b160844d1fd92e184b6a | [
"MIT"
] | permissive | robotics-upo/plane_detector | 2334f243c3ce2fe75d5c7fdcb36d361c4ecd491c | fda2e7b76103263a0800d43a073bfeb59673b8d3 | refs/heads/master | 2022-02-05T09:23:19.038448 | 2022-01-27T11:03:02 | 2022-01-27T11:03:02 | 139,177,385 | 58 | 10 | null | null | null | null | UTF-8 | C++ | false | false | 12,109 | hpp | plane_detector.hpp | #ifndef PLANE_DETECTOR__
#define PLANE_DETECTOR__
#include <vector>
#include <random>
#include <queue>
#include "detected_plane.hpp"
#include <eigen3/Eigen/Geometry>
#include <eigen3/Eigen/Eigenvalues>
#include <boost/array.hpp>
#include <boost/thread.hpp>
#include <exception>
#include <opencv2/opencv.hpp>
#include <i... |
3771812d4f074136ed418f21c0402fc9e85d4cb7 | f662401bbb2bc91f1a28e831e5fe476258404cca | /Estructuras de datos y Técnicas algorítmicas/Árboles de búsqueda avanzados/3. Rango de claves en un árbol binario de búsqueda/TreeMapRango.h | edc8fb1a70e2ee736b970cfea0c60564c2041ced | [] | no_license | Joncarre/CPlusPlus-language | 4b1ff82d3986085293453bdfd406fa7daf98a54e | 56a7c274e4907e188ef25c732221836176a9215b | refs/heads/master | 2023-02-07T23:38:02.247708 | 2023-02-03T19:13:39 | 2023-02-03T19:13:39 | 95,282,321 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,860 | h | TreeMapRango.h | //
// TreeMapRango.h
//
// Extensión de tablas <clave, valor> como árboles de búsqueda AVL
// con una operación para consultar las claves en un rango
//
#ifndef TREEMAPRANGO_H_
#define TREEMAPRANGO_H_
#include <vector>
#include "TreeMap_AVL.h"
template <typename Clave, typename Valor, typename Comp... |
9059719a6a007d810fd883088ee7f552186271b6 | 47de94fb364e9c5e7ef07c3d5a9529a7420d7e1c | /greedy/CF519C.cpp | 435195aed98ae94658f016c569149b1ca979a12f | [] | no_license | Dainerx/Competitive-programming | 5490c4acf2f82f5aa88955b5ab38083a7846b376 | edb9757681d8c241b5b7c523591c1136e4ac9008 | refs/heads/master | 2021-01-19T22:05:40.931873 | 2019-05-21T15:37:07 | 2019-05-21T15:37:07 | 88,751,997 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,290 | cpp | CF519C.cpp | #include <algorithm>
#include <vector>
#include <iostream>
#include <fstream>
#include <string>
#include <stdio.h>
#include <cmath>
#include <complex>
#include <math.h>
#include <string>
#include <string.h>
#include<ctype.h>
#include <map>
#include <set>
#include <numeric>
using namespace std;
#define MAX(a,b,c) max(a... |
b992d6a5346dfbc36c6b06ef1623d89a762407df | fc30dbc3a456aa4c309eb80a13fc2c1b998f4f42 | /Sorts, heap, binsearch/Количество инверсий.cpp | 3f12bdfcdd51a79e7803ae3b40e0b048f48c8c7e | [] | no_license | Konstantin343/Algorithms-ITMO | 3121887d60d7fc937e645aa35f33b8d0b32c6f20 | 883a4a725d35edbe6c50cba9cceda5a934a09576 | refs/heads/master | 2020-05-17T20:26:17.950991 | 2019-05-31T20:42:14 | 2019-05-31T20:42:14 | 183,945,261 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 967 | cpp | Количество инверсий.cpp | #include <iostream>
using namespace std;
int a[500000];
long long t = 0;
void merge (int left, int middle, int right) {
int res[500000];
if(a[middle] > a[middle + 1] && (right-left) % 2 == 1)
middle++;
int i = left, j = middle;
while (i < middle || j < right) {
if (a[i] < a[j] && i !=... |
70f830edd9afdf341ea64fa30c208e2b740f17f2 | b6d2cb74a76194fd25fdc3607ef828e94d98039e | /Codeforces/870C.cpp | 1b58d7a771215e95d7edb9ee14bc2871d7f41536 | [] | no_license | giovaneaf/CompetitiveProgramming | 22d63481015ab45a03d527c866cae339cffeb5fb | 863f6bc61497591cb98e50973aa23bfcb9879ab8 | refs/heads/master | 2021-06-07T20:28:45.116299 | 2021-05-25T00:38:16 | 2021-05-25T00:38:16 | 131,643,425 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 823 | cpp | 870C.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
typedef pair<int, bool> ib;
#define FOR(a, b, c) for(int a = b; a < c; ++a)
#define RFOR(a, b, c) for(int a = b; a >= c; --a)
#define mp(a, b) make_pair(a, b)
#define all(v) v.begin(), v.end()
#define ii pair<int, int>
#d... |
f6f115fdd2e69b6d79c5f0e907a69a97966465f1 | bd91a68c3ed8072ae292191b50bea3349b2f55bc | /ASTNodes/HatOp.cpp | 92d4fb8413d22d3b8ec8c5a544fbba6a6f0ee895 | [
"MIT"
] | permissive | jonathan-beard/Raft | 0e28d5ea72e840441b2f42f46b45ec2f5b08371e | 6b2c250c915b5ce1db84277e6e5722977e8ebbba | refs/heads/master | 2021-01-17T05:24:36.314552 | 2019-04-23T16:03:09 | 2019-04-23T16:03:09 | 8,226,622 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 312 | cpp | HatOp.cpp | /**
* HatOp.cpp -
* @author: Jonathan Beard
* @version: Tue Feb 11 12:51:41 2014
*/
#include "HatOp.hpp"
using namespace Node;
HatOp::HatOp() : BitOperation( "HatOp" )
{
class_tree.addRelation( typeid( Node::BitOperation ).hash_code(),
typeid( Node::HatOp ).hash_code() );
}
|
c7b040421e8ff56944aff6a8647bc1d99d63d97a | e7f68328593453d949f382f52b323d6a9bf7499d | /EUVanguardTIOWAddonML700AceCompat/Cfgweapons.hpp | b5b8bdb1e9ece08abdd3b728b4b5181cf06af58b | [] | no_license | OnkelDolf/EUVanguardTIOWAddonML700Compat | e848fedc30830536e41f63719e4f728683a5c037 | b9cb2690dc0e939e6c843054e5a1bf6e0851907d | refs/heads/master | 2020-08-30T08:37:33.723363 | 2020-01-01T00:34:10 | 2020-01-01T00:34:10 | 218,321,072 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 78,482 | hpp | Cfgweapons.hpp | // Generated by unRap v1.06 by Kegetys
class Cfgweapons {
class InventoryItem_Base_F; // External class reference
class ItemCore; // External class reference
class UniformItem; // External class reference
class HeadgearItem; // External class reference
class VestItem; // External class reference
class Rifle; // ... |
de5d79dfba8867eeb0cc077c07c07ba720d3cff4 | 5929456eb5e3853863f1d70ebbe1b5b5838305f1 | /src/World.h | fb1db1393fd79628753ac464eab31ae2a2177b4f | [] | no_license | tschicke/Cubes | 48f53abb0fc1698f7cc38980efecded58e896241 | fb90a0254d6ce7098f27df167eb4b65d03150b59 | refs/heads/master | 2021-01-01T15:49:54.288594 | 2013-07-11T03:49:09 | 2013-07-11T03:49:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 900 | h | World.h | /*
* World.h
*
* Created on: Mar 26, 2013
* Author: Tyler
*/
#ifndef WORLD_H_
#define WORLD_H_
#include "Common.h"
#include "ChunkManager.h"
#include "Player.h"
#include "Character.h"
#include "SelectedBlock.h"
namespace ts {
class World {
public:
World();
virtual ~World();
virtual void handleInput(... |
d892d6e05357287b79692ef530e8c07e69a72e8d | e63de97193cfdfe03c691975f2cf0195c1d0c7c7 | /UVa_00516_PrimeLand.cpp | cadf63f40d8e7bca4a10951553644078ff98eb30 | [] | no_license | Abdoronic/UVa-Solutions-Cpp | a2df3ffebcdb24e92eeda6315a0aaaa323ae6553 | 85a0685167cc2dc2692e509c756bbed9be337aef | refs/heads/master | 2020-03-22T00:53:13.916458 | 2018-09-30T21:58:03 | 2018-09-30T21:58:03 | 139,270,793 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,400 | cpp | UVa_00516_PrimeLand.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;
#define sz(c) int((c).size())
#define all(c) (c).begin(), (c).end()
#define pb push_back
#define INF int(1e9)
#define EPS 1e-9
#define MOD int(1e9 + 7)
vector<int> primes;
... |
c516ef2e46ab4f840c17291bc2e32a9bee4816a1 | d44026a7e3386e8f94de39e766220fdf2a6acaa2 | /Algorithm/Sorting/P07-Quicksort-2-Sorting.cpp | 2a29cbb3c2cd234058a77d1f1a63550939e019c5 | [] | no_license | velamen2009/HackerRank | 23a4ebf3c6aeffed23bfe7ba2565ddcd4134e1a7 | 2825cbe6b1305c5bcf0475d2a9bf33befb493581 | refs/heads/master | 2020-04-06T03:58:17.207289 | 2017-04-07T22:49:15 | 2017-04-07T22:49:15 | 83,093,511 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,162 | cpp | P07-Quicksort-2-Sorting.cpp | #include <bits/stdc++.h>
using namespace std;
//fake partition
int partition(vector<int>& arr, int L, int R){
int pivot = arr[L];
vector<int> tmp(R - L + 1, 0);
int k = 0;
for(int i = L; i <= R; ++i){
if(arr[i] < pivot){
tmp[k] = arr[i];
++k;
}
}
for(int i = L; i <= R; ++i){
if(a... |
c94e8bc835fc9ab36ebe18b3b697419d84e83ea7 | 87448c28abede2ceb4723ce3019a4d3ad0f65ed6 | /GPENakaoFDM/src/GPE5CSolver.h | b1dba751a63fe3d60483779e264c44a555242588 | [
"Apache-2.0"
] | permissive | tomaszhof/interval_arithmetic | 6158491b64723b0253a90572c8760df1b67b1037 | 0d1e7c842803f8ca211bf2a9d7239f7541452492 | refs/heads/master | 2021-06-03T10:41:11.837756 | 2021-04-10T20:03:12 | 2021-04-10T20:03:12 | 12,877,600 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,723 | h | GPE5CSolver.h | /*
* GPDESolver.h
*
* Created on: 25-01-2014
* Author: thof
*/
#ifndef GPE5CSOLVER_H_
#define GPE5CSOLVER_H_
#include "Solver.h"
#include "THashMap.h"
#include "ExampleGPE01.h"
#include "ExampleGPE02.h"
#include "ExampleGPE03.h"
#include "ExampleGPE04.h"
#include "ExampleGPE05.h"
#include "ExampleGPE06.h"
... |
6efc7ad3697958d29b6a343e05d49aed8bbcb083 | 67d5a3661034b26b8f8f4aac78954d08679939c9 | /src/FrameConstantsBuffer.cpp | 7e84a8697f3f0a1990c565dd742553d066afdefc | [] | no_license | RohacekD/Bachleor-Thesis-Shadow-Mapping-Opengl | ee67be95c6a54b0e41be3b8f75f03608285926ff | 05b16ee20ffeffa119f30966e53f07ef7806c4c7 | refs/heads/master | 2021-03-27T19:46:27.891132 | 2018-05-11T21:44:35 | 2018-05-11T21:44:35 | 118,285,361 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,010 | cpp | FrameConstantsBuffer.cpp | #include "FrameConstantsBuffer.h"
#include "glm\gtc\type_ptr.hpp"
//=================================================================================
C_FrameConstantsBuffer::C_FrameConstantsBuffer(const std::string& blockName, unsigned int index)
: C_UniformBuffer(blockName, index)
{
const auto matSize = sizeof(glm... |
98ec86757b60337cdcb631854e45916d1010f851 | 2fe6eb81b6c420aa2371f2328b4e3fbbc5e94132 | /SnakeAndLadder/utils.cpp | e18f2de6cb42bbbae0d140d86925b4dcfa16ecfe | [] | no_license | Kamal-Singh/ObjectOrientedDesign | cd79b43c6adc6ade64fcf9d0f9e4ad838d3f68dc | 900395329c60c3fcce030669d933c18172b8a57d | refs/heads/master | 2023-03-27T17:44:01.014002 | 2021-04-03T14:17:17 | 2021-04-03T14:17:17 | 354,309,829 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 204 | cpp | utils.cpp | #include<bits/stdc++.h>
#include "utils.hpp"
using namespace std;
// Helper Functions
void handleErrorAndExit(string message) {
cout<<message<<endl;
cout<<"Exiting the Game"<<endl;
exit(1);
} |
b09983a137d3fc0f501ae80b1417ba9312186b0d | a1faac8530885629c561e60c14e7faf532efedc4 | /graph/classOrdering/classOrder.cpp | 3a2fc7c6ce3206cfa0e6d63f51f32e8820e4ed79 | [] | no_license | echenyu/interviewPracticeProblems | c420cccc87ca21bfcfeea12fb9fb945c20e8a28f | 5a102d09403415b511471e68a6ae3b4828c7b797 | refs/heads/master | 2020-04-06T07:11:08.988128 | 2016-09-14T18:10:54 | 2016-09-14T18:10:54 | 61,405,799 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,914 | cpp | classOrder.cpp | #include <unordered_set>
#include <unordered_map>
#include <queue>
#include <iostream>
#include <vector>
#include <ctime>
#include <stack>
using namespace std;
bool canFinish(int numCourses, vector<pair<int, int>>& prerequisites);
void removeEdge(int front, unordered_map<int, int> &prereqs, vector<unordered_set<int>>... |
2d7f91725be83592a1eb02a2fbfa88ed42436a6b | f2ec1b91bac114462da146bae86c194e301f1198 | /demo/design_patterns/chain_of_responsibility.hpp | 6534c3c691a1ef76c1b082785078c0aab189e48b | [] | no_license | congzhibin/yjkd | a35d89be9a54c9857ac40abcde6dba3d57258709 | 8c69e170bb1cee39f590f00d9caa4648018e6935 | refs/heads/master | 2020-03-28T05:17:34.419291 | 2017-08-22T01:25:16 | 2017-08-22T01:25:16 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,735 | hpp | chain_of_responsibility.hpp | #pragma once
// 责任链模式
// 1. Put a "next" pointer in the base class
// 2. The "chain" method in the base class always delegates to the next object
// 3. If the derived classes cannot handle, they delegate to the base class
class CHandlerBase
{
public:
CHandlerBase() : m_pNext(0) {}
virtual ~CHandlerBase() ... |
76b0f6eaab3b29819acfd326024e12c1ea9b1935 | 0b2748e3d25c4daf628e8b728f581931f024a833 | /source/sdk/include/Comm/win32.h | b2f9fc97bdbdebe9b6df47f82fd0a8225dbfe8c1 | [] | no_license | Zoltan3057/N_Kunhou_Arm_sdk | b4c3653705e2bb76935f3ac07fae503f09172dd8 | e50f60d3e7f19715bbedc9ccc55ca6280d13ad1b | refs/heads/master | 2020-03-21T17:27:50.975966 | 2018-03-03T05:34:10 | 2018-03-03T05:34:10 | 138,833,358 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 655 | h | win32.h | #ifndef _WIN32_DRAND48_KYOSHO_2015_08321_
#define _WIN32_DRAND48_KYOSHO_2015_08321_
#if defined(_WINDOWS)
#define MNWZ 0x100000000
#define ANWZ 0x5DEECE66D
#define CNWZ 0xB16
#define INFINITY 0xFFFFFFFFF
int labelsize;
int dim;
static unsigned long long seed = 1;
namespace W32_RAND{
double drand... |
81d0d0e79024e781a6164dfb16d1e1bc92bc3271 | ba1e90ae6ea9f8f74d9b542e159825341c717712 | /2015/ebay1.cpp | 5e7c32d165b7fcc5b49db9c20ea8430bcc8cc852 | [] | no_license | sailesh2/CompetitiveCode | b384687a7caa8980ab9b9c9deef2488b0bfe9cd9 | 5671dac08216f4ce75d5992e6af8208fa2324d12 | refs/heads/master | 2021-06-24T22:39:11.396049 | 2020-11-27T05:22:17 | 2020-11-27T05:22:17 | 161,877,355 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,114 | cpp | ebay1.cpp | #include<stdio.h>
#include<iostream>
#include<vector>
using namespace std;
long long int k,n;
long long int ctr=0;
void fun(vector<long long int> *,long long int,long long int *);
int main()
{
long long int i,j,a,b;
cin>>n>>k;
vector<long long int> arr[n+1];
for(i=0;i<n-1;i++)
{
... |
f565ddfaa3d4853ffd034503aef191c9d189b31a | f806d792bf22bc8306a0926f7b2306c0b3dd4367 | /CS203/Lab 6/D.cpp | 3281274535eab8420e6917deb55934271775224e | [
"MIT"
] | permissive | Wycers/Codelib | d7665476c810ddefd82dd758a4963f6b0e1b7ac1 | 7d54dce875a69bc998597abb1c2e2c814587c9b8 | refs/heads/master | 2023-03-05T13:57:44.371292 | 2022-09-22T02:23:17 | 2022-09-22T02:23:17 | 143,575,376 | 28 | 4 | MIT | 2023-03-04T22:05:33 | 2018-08-05T01:44:34 | VHDL | UTF-8 | C++ | false | false | 910 | cpp | D.cpp | #include <cstdio>
#include <cstring>
using namespace std;
const int N = 1e5 + 10;
struct Edge
{
int to, next;
} edge[N];
int head[N], cnt;
void insert(int u, int v)
{
edge[++cnt] = { v, head[u]};
head[u] = cnt;
}
int n, d, tag;
void dfs(int now, int fa, int dis)
{
if (dis > d)
{
tag = now;
... |
fa164b050820044c164c3129f6151f9a9c314236 | a4391f2d2d8eae762a04686ad3dbbac96215479c | /coursera_yellow_belt_cpp/week5/PA003_figures/figures.cpp | 106f94951b9edf35cbb57be7eb7a80a6d67dfddd | [] | no_license | svspirivm/cpp_development_fundamentals | c34a828d66e1ddd326adec66ebfae321a102bb70 | 6c5670bc6288d92ca2524b38c17ec7778590a686 | refs/heads/main | 2023-01-28T06:41:02.943164 | 2020-12-10T12:02:03 | 2020-12-10T12:02:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,444 | cpp | figures.cpp | #include<iostream>
#include<vector>
#include<memory>
#include<string>
#include<sstream>
#include<iomanip>
#include<cmath>
using namespace std;
class Figure {
public:
Figure() { }
virtual string Name() const = 0;
virtual double Perimeter() const = 0;
virtual double Area() const = 0;
private:
};
class Rect : publ... |
305cdabf37fd2ff1e68db347199d12522cc126aa | 5428c2d8a5df241bf2dbdccc41aeef726e1a02fa | /Editor/Angulo.h | 829a49c9c192f95615a19d1a444901f72a43e080 | [] | no_license | tomasmussi/tatucarretarun | 10671201b2c94fc0d84cdf1d6496f1d62092d770 | 75e9ada7d4867d96dd600602db080b55ff6b5f96 | refs/heads/master | 2021-01-24T09:15:34.564344 | 2016-10-03T15:31:23 | 2016-10-03T15:31:23 | 69,884,040 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 238 | h | Angulo.h | #ifndef ANGULO_H_
#define ANGULO_H_
#include "constantes.h"
class Angulo
{
public:
static void corregir(long* valor);
/* Pasajes */
static double aRadianes(long grados);
static long aGrados(double radianes);
};
#endif /*ANGULO_H_*/
|
07744a5e66d3d2aab995308545ba0713466ddc6e | 09882ac9f3d0949cadc9743544f24a7b12f962fd | /src/html/tagstack.h | 9d41ae02720fb976c2ba16a108de171cceb6990e | [] | no_license | ousttrue/w3m1 | ddcc240c5d9017ce78dd41cca3197c6bd191f0a1 | eaf5969cdacb3f9ae19e1fa32a652c88695fbf4c | refs/heads/master | 2022-12-08T23:58:04.264222 | 2020-09-03T13:30:24 | 2020-09-03T13:30:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,065 | h | tagstack.h | #pragma once
#include "readbuffer.h"
#define MAX_UL_LEVEL 9
#define UL_SYMBOL(x) (N_GRAPH_SYMBOL + (x))
#define UL_SYMBOL_DISC UL_SYMBOL(9)
#define UL_SYMBOL_CIRCLE UL_SYMBOL(10)
#define UL_SYMBOL_SQUARE UL_SYMBOL(11)
#define HR_SYMBOL 26
struct TextLineList;
struct environment
{
HtmlTags env = HTML_UNKNOWN;
... |
5ab3fdb77e2c336e5d5937ca5a1cb6d9960d3afc | 2ffd002d702d5e281a94ce85cec050fe822664d0 | /Header files/Platform.h | 7c814a629539f62538494b983d66d3a6886bd80e | [] | no_license | Salman0115/C-Game- | 1a14d0d525698b079305926ea8b892653be167b7 | c206b1f7da3f68b4e2036ade8131a4b8280eeba3 | refs/heads/main | 2023-02-17T06:33:35.142265 | 2021-01-16T17:01:11 | 2021-01-16T17:01:11 | 330,210,446 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 356 | h | Platform.h | /*!
\file Platform.h
*/
#pragma once
#pragma once
#include"SFML/Graphics.hpp"
#include <Box2D/Box2D.h>
#include "Col_Def.h"
class Platform : public sf::RectangleShape, public Col_Def
{
public:
Platform();
Platform(b2World * world, const sf::Vector2f& Position, const sf::Vector2f& Size, const float& orientation, sf::T... |
cedcce05458baba1fca914e748950cc3dc953c65 | 1e7759ceadb45cb7b441f5ecfed1ea5e90016e31 | /CS-162/Assignments/Assignment 4/main.cpp | dc68095994f7e576a168c37537767bec061d5237 | [] | no_license | bpranaw/CS-Assignments | 166fe3899e4091944a57de8018dc9273e3970253 | 974382882f439abfa1ea74d5e5c25f106130d720 | refs/heads/master | 2020-12-20T13:58:50.738834 | 2020-08-22T13:23:08 | 2020-08-22T13:23:08 | 236,100,148 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,231 | cpp | main.cpp | #include "gameplay.h"
#include <iostream>
#include <stdlib.h>
#include "room.h"
using std::cout;
using std::cin;
void facilitate_game(int, bool, int);
int main(int argc, char* argv [])
{
int dimensions = 3;
bool debug = false;
//Light Error Handing_______________________________________________________________... |
ed62c41571d5c45046d955c2f97c2b715f330beb | 76ca52991ca1a1e50d066e9f7c4827b6a4453414 | /libs/hwui/FrameInfoVisualizer.h | 3040a77ef0d440d21f3060dfc3e869240fa9fb9d | [
"Apache-2.0",
"LicenseRef-scancode-unicode"
] | permissive | ResurrectionRemix/android_frameworks_base | 3126048967fa5f14760664bea8002e7911da206a | 5e1db0334755ba47245d69857a17f84503f7ce6f | refs/heads/Q | 2023-02-17T11:50:11.652564 | 2021-09-19T11:36:09 | 2021-09-19T11:36:09 | 17,213,932 | 169 | 1,154 | Apache-2.0 | 2023-02-11T12:45:31 | 2014-02-26T14:52:44 | Java | UTF-8 | C++ | false | false | 2,723 | h | FrameInfoVisualizer.h | /*
* Copyright (C) 2014 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... |
24cb1b6dfb81acc9b95044436c971a7b15d4d526 | fe8e8951eb7e7a489eb92612ebb4548027374d58 | /headers/Document.h | c00727f6cc86afc8e45dd0dd98a496706c583061 | [] | no_license | cfernandomaciel/pattern-recognition | 60a7c2a94e845dcf06b4dd597b94b061efe9b382 | 8aa031762e38d53f1188505d620d2b9c891965d3 | refs/heads/master | 2022-12-10T11:20:53.457336 | 2016-10-22T16:01:39 | 2016-10-22T16:01:39 | 288,463,909 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 703 | h | Document.h | #ifndef DOCUMENT_H
#define DOCUMENT_H
#include "opencv2/opencv.hpp"
#include <QString>
using namespace std;
namespace dynengines {
namespace detector {
class Document {
public :
Document(string name);
cv::Mat setTextBlocks(cv::Mat imgIn);
cv::Mat setTextBlocks(... |
adf1cf0610d260e9030be40905b9d9fa8ed039a3 | 75b54f62c18f420bc81262df202b781a63120087 | /Cell.cpp | 918c80510061ec1271dd20074524c3a649a2699d | [] | no_license | xSeditx/Evolving_Networks | 8bb4aaaab3b18e3e24f170db2a5e31a32b9bb677 | 5f7088527f6d275c48a2fa02eac8825938b8a53d | refs/heads/master | 2021-09-09T19:09:38.448739 | 2018-03-19T04:21:05 | 2018-03-19T04:21:05 | 123,770,338 | 1 | 0 | null | 2018-03-15T07:54:12 | 2018-03-04T08:27:12 | C++ | UTF-8 | C++ | false | false | 14,234 | cpp | Cell.cpp | // ... |
0274b4a844f425b42e8984d121e4b21f4dbe21e2 | 1dff02275f30fe1b0c5b4f15ddd8954cae917c1b | /ugene/src/plugins/external_tool_support/src/utils/ExternalToolSupportAction.cpp | 003ed6f93580500ad0a1d4570b3605eec3a5e5c9 | [
"MIT"
] | permissive | iganna/lspec | eaba0a5de9cf467370934c6235314bb2165a0cdb | c75cba3e4fa9a46abeecbf31b5d467827cf4fec0 | refs/heads/master | 2021-05-05T09:03:18.420097 | 2018-06-13T22:59:08 | 2018-06-13T22:59:08 | 118,641,727 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,638 | cpp | ExternalToolSupportAction.cpp | /**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2012 UniPro <ugene@unipro.ru>
* http://ugene.unipro.ru
*
* 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... |
de1ce1ae5973aa082e077514907a9ef8757c9eaa | 896f155af23de87003a9bf8d557363f5b4ffa1c9 | /src_old/src/objective/classify.cpp | e654849f84a55c0cbce865672e450a6464023d89 | [] | no_license | teodorvb/phd-track-import | f7c5cb87a7305f8f808999c61edca97382aca4f7 | f19ce8d46050632a83732ddf3cb1714af10e7afd | refs/heads/master | 2022-12-25T00:58:03.088455 | 2020-09-20T14:55:32 | 2020-09-20T14:55:32 | 297,099,387 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,377 | cpp | classify.cpp | #include "objective/classify.hpp"
#include "objective/common.hpp"
namespace track_select {
namespace objective {
Classify::Classify(unsigned int p_size,
unsigned int v_size,
Classify::FitnessType f_type,
unsigned int data_dim,
... |
14bf57d18649f7dadcf3452ba2d16a658c89f2d1 | 564202fe2e6eead9981a85f10c1cc6d84f48aa21 | /EjercicioUno/ejer6prac3.cpp | 7378b619aa7d89ab0978d03426731042a1cbf0bd | [] | no_license | JhosefRea/EjercicioUno-1 | 6be8c52a942657194f4c921af7c192fe10ed4bd2 | 753e0c3cf27f323b377bf6c932d320211b2f184a | refs/heads/master | 2022-11-25T18:47:52.979147 | 2020-08-04T22:23:57 | 2020-08-04T22:23:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 504 | cpp | ejer6prac3.cpp | #include <iostream>
#include <string>
#include <iomanip>
using namespace std;
int main() {
int b=0,d=1,a;
while(d<=5){
while(b==0){
cout<<d<<". Ingrese el número: ";
cin>> a;
if(a>=1 && a<=30){
b=1;
}else{
cout<<"el número ... |
298a04123a3f91a41456043814cc161dffc25a60 | 0dc37855b2ea3cbb5a76119435a857919d9284c4 | /08定义与声明/08定义与声明/main.cpp | d5aafc2162f1ee7867bfe03473fbf323b9b08d4f | [] | no_license | andangel/CPP | 1e337c82fa97e8a16d4bd2a76665a4c8fcb424ff | 435487482316e0c521220e9518fb7a04140b5122 | refs/heads/master | 2018-09-30T02:10:14.995622 | 2018-09-09T17:47:50 | 2018-09-09T17:47:50 | 110,524,237 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,035 | cpp | main.cpp | #include "main.h"
/*
编译器在main函数调用其他函数,只会往上找函数的定义
如果找不到函数的定义 则找函数声明,如果没有函数声明,编译器则会警告 c++会报错
如果调用一个没有定义的函数则会报错
*/
int main(int argc, char * argv[])//argv类型是char * 的数组,其实就是二维字符串数组
{
char str[] = { "Hello!" };
int length = sizeof(str) / sizeof(char);
//数组传递的是指针.所以不能在数组里面判断数组元素.因为它返回的都是指针的长度
OutputString(length, str)... |
ca8dd145d9d6377b2ea38c10e6e22c7d43ac42f1 | eda4cab2ee431fababa9cc39eff0d5eaaaf0df79 | /twoDvector.h | c00ff7ae7df2637aac9bfabdc29ee482f7d297c0 | [] | no_license | mpily/billiards | b8ad483292f6f64c515a2f0b92301b6e36caa065 | ff23aa1f76b9fa8b3dbf64b0696fd87d21f78482 | refs/heads/master | 2020-12-09T19:47:37.526824 | 2020-01-22T08:11:22 | 2020-01-22T08:11:22 | 233,403,211 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,274 | h | twoDvector.h | #ifndef PI
#define PI 3.1415926535897932
#endif
#ifndef TWODVECTOR
#define TWODVECTOR
class twoDvector {
private:
/* data */
public:
double xcomp;//to represent x component of vector
double ycomp;//to represent y component of vector
double magn;//to represent magnitude of the vector
double a... |
21072a4070475dda38b7f3812e67b18bccbacb96 | 23010d729fd4af75fecba6c988581370d6400884 | /src/libtpm2/include/crypto_tools.h | 214bf31bf10fc72fc8921768d28c85d3b1ad3fc4 | [] | no_license | erbth/TPM2 | 013a5b533e5e7562026909db327d47c96f3391d2 | 0142dba45fa899ea7d63d3f374e0fb835897a727 | refs/heads/master | 2021-11-22T14:09:05.779943 | 2021-08-22T02:28:42 | 2021-08-22T02:28:42 | 252,819,285 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 336 | h | crypto_tools.h | /** Cryptographic tools */
#ifndef __CRYPTO_TOOLS_H
#define __CRYPTO_TOOLS_H
#include <string>
/* Warning: Both functions modifiy the position within fd */
bool verify_sha256_fd (int fd, std::string digest);
/* digest is of size 32 bytes */
bool verify_sha256_fd (int fd, const unsigned char* digest);
#endif /* __CR... |
b618497b08552ecab2981fa99918a59504eafa6a | 2eb51675c54f2eeae69ffde1e6bff3de7d8650dd | /.history/code/LRU_20200917230240.cpp | babe46bd572bb61dc1870977a6262fe56c50aa04 | [
"Unlicense"
] | permissive | nlwmode/Cpp_Interview_Guide | c9a2f53311db90c8a10890c6b1e36c9991e4420e | a196d875e46ae77df6ad3b40d8d279d7919cc3f2 | refs/heads/master | 2022-12-17T09:58:05.716082 | 2020-09-17T18:03:15 | 2020-09-17T18:03:15 | 295,740,193 | 10 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,314 | cpp | LRU_20200917230240.cpp | #include<iostream>
#include<list>
#include<unordered_map>
using namespace std;
class LRU
{
private:
int capacity;
list < pair<int , int> > cache; //用于保存当前缓存窗口
unordered_map<int , list< pair<int , int> >::iterator > umap; // 编号以及在list中的下标,方便删除
public:
LRU(int cap): capacity(cap)
{}
// 往缓存中插入新值
... |
cee855621cd87e482582c1d578b60ca62241b92d | 30912d948683f21c1b9bad4e13dfca7d1ed1721a | /Inc/OVRTOS/OVThread.hpp | 0794e3110013895cf746c7d6d910ad3d4fdcabe2 | [] | no_license | alsaibie/OpenVentilatorFW | e2350e281a50ceda46a24bc80d5233bce587ebe6 | 71795f724e4e3b3c7366c039787e87aa01bdda14 | refs/heads/master | 2021-05-20T02:29:49.435194 | 2020-05-01T23:01:45 | 2020-05-01T23:01:45 | 252,148,090 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,641 | hpp | OVThread.hpp | #ifndef OVTHREAD_HPP_
#define OVTHREAD_HPP_
#include "FreeRTOS.h"
#include "task.h"
namespace OVRTOS {
class OVThread {
public:
inline uint32_t start() {
// TODO: Add check guards
if (xTaskCreate(&task, thread_name, thread_stack_depth, (void *)this, thread_priority, &task_handle) ==
... |
121a552f52cca75cd9f37fa4245ed0d5a54508d1 | 439d88c4935bd9f325bda1c65283cb40fa704e7e | /sketch/stepper/stepper.ino | e3792a7cbec8652d599bd67e44869ccb2e0e21fb | [] | no_license | pamtdoh/orchestrion | a1b602ce03d8014415e9f63891422ea4994b543d | d061d74ee06b47a6da1a5793dddca5d35ec7effb | refs/heads/master | 2020-07-13T21:00:49.669067 | 2020-05-27T08:25:58 | 2020-05-27T08:25:58 | 205,154,391 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,675 | ino | stepper.ino | #include "component.h"
#include <Wire.h>
unsigned int periods[] = {
65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535,
65535, 65535, 65535, 64793, 61156, 57724, 54484, 51426,
48540, 45815, 43244, 40817, 38526, 36364, 34323, 32396,
30578, 28862, 27242, 25713, 24270, 22908, 21622, 20408,
19263, ... |
d79e364761d8d3f9772106e191409b51da460d9b | 3f6b4edcc87fc49e7ded7f08ea781020665fd5fc | /PropertiesStorage.h | 15aa82e0267801b8e504fa0cf5109a27cede3242 | [] | no_license | r-lerman/PropStorage | f4f934ffdf0650a706cf5444361eeb92de649d5d | d7e105270736d4fb68074f62f56cb9530254909f | refs/heads/master | 2023-03-17T09:40:12.496359 | 2021-03-04T04:40:14 | 2021-03-04T04:40:14 | 312,428,661 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,147 | h | PropertiesStorage.h | #pragma once
#include <sstream>
#include <iostream>
#include <map>
#include <typeinfo>
namespace Storage
{
typedef signed __int64 Int64;
typedef signed __int32 Int32;
typedef std::string String;
typedef double Double;
enum class PropertyType
{
Type_Unknown,
Type_St... |
0bcb7188de2ba01495ab0b949f10dbbaa15416fb | 6af6a8a36e81cd8bd8ec62e0d6c91c1341553525 | /aspirant_application/Sublayout.EnemyStats.cpp | 47eead7059392aa8835a691fd588dde2a7a90c3e | [
"MIT"
] | permissive | playdeezgames/dcjam2021 | 0c9511b30134bcc95d72a0e29761013101810c9b | b0846eb8d61ae1a6d2fa22cd016f4316c1b17839 | refs/heads/main | 2023-05-21T22:57:27.769257 | 2021-06-15T20:40:44 | 2021-06-15T20:40:44 | 353,330,612 | 3 | 0 | MIT | 2021-04-15T10:52:47 | 2021-03-31T11:21:00 | C++ | UTF-8 | C++ | false | false | 3,295 | cpp | Sublayout.EnemyStats.cpp | #include <sstream>
#include "Application.OnEnter.h"
#include "Visuals.Texts.h"
#include "Game.Avatar.h"
#include "Game.Creatures.h"
#include "Game.Avatar.Statistics.h"
namespace sublayout::EnemyStats
{
const std::string LAYOUT_NAME = "Sublayout.EnemyStats";
const std::string HEALTH_TEXT_ID = "EnemyHealth";
const std... |
7f2e1c38063290a457acc11b804d620b002596b8 | 9f520bcbde8a70e14d5870fd9a88c0989a8fcd61 | /pitzDaily/339/pa | 0ca5893d823ec288b5dda3f0a531e50fbf5821b7 | [] | no_license | asAmrita/adjoinShapOptimization | 6d47c89fb14d090941da706bd7c39004f515cfea | 079cbec87529be37f81cca3ea8b28c50b9ceb8c5 | refs/heads/master | 2020-08-06T21:32:45.429939 | 2019-10-06T09:58:20 | 2019-10-06T09:58:20 | 213,144,901 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 104,702 | pa | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1806 |
... | |
1c3e74729e115e361bf3ee382c27f757f261b988 | 7bb951c4ff12631ea58ad0d1b9900a9cfbff8672 | /02 栈、队列与哈希/02 如何实现队列/题目/2.cpp | 5cd2330a51156279d5028ddbe24e235073d1109b | [] | no_license | Newbie-W/ProgrammerAlgorithmInterview | 8dc9293ab9f3a03a09e549b374e47ceda1de6957 | 376a0b8e6276ccbaf2ecc50e189534c5d341b6c5 | refs/heads/master | 2021-07-10T14:00:04.142741 | 2021-03-12T03:50:53 | 2021-03-12T03:50:53 | 235,237,131 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,455 | cpp | 2.cpp | /*
实现一个队列的数据结构, 使其具有【入队列】、【出队列】、【查看队列首尾元素】以及【查看队列大小】等功能
法二:链表实现
1. 分别用两个指针指向队列的首元素和尾元素。pHead指向队列首元素。pEnd指向队列尾元素
2.
入队列:将队尾加入新结点,然后移动队列尾指针
出队列:队列首元素指针后移
*/
#include <stdio.h>
#include <stdlib.h>
#define MAXSIZE 10
#define TRUE 1
#define FALSE 0
typedef int T;
typedef int Status;
// typedef int bool;
typedef struct ... |
09a1826086e7cf14cf8c52426f821bb2b75938be | 0e933dcbe2ead513c8cb8dff4487c78f2bfa3f18 | /src/search.cpp | 61502958ace2915e7e63a37fb2b9da8f43f45e4d | [] | no_license | xzijoq/chessBingen | 89d9fe4fa79ee93ae8917b556ea1bbf267f0a18f | eeed4d90741925a0d9635f3045f626c9d8ef60fb | refs/heads/master | 2020-05-17T00:48:58.810486 | 2019-05-19T07:46:45 | 2019-05-19T07:46:45 | 183,401,550 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20 | cpp | search.cpp | #include<data.h>
|
bbc294fda7423ac403267146c668f0a8ea9b5fbf | 73a7b4aa23e861ad2a8d5dda0a700bb6a7fa2fa4 | /Preenchimento de Vetor I.cpp | 3c88614920c7f1819704a37c9776053e75feabef | [] | no_license | jacksonn455/Exercicios | 127300c92d84d0dfdd304e9a25e0d3db05678ce2 | f31978c0425188e7b2a5efff0144854d8cf32048 | refs/heads/master | 2020-04-25T18:05:03.607794 | 2019-06-18T14:28:32 | 2019-06-18T14:28:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 314 | cpp | Preenchimento de Vetor I.cpp | #include<iostream>
#include<iomanip>
using namespace std;
int main(){
double x[100],y[100];
int i;
for(i=0;i<100;i++){
cin >> x[i];
y[i] = x[i]*4;
if(y[i]<0){
y[i] = y[i] * -1;
}
cout << fixed << setprecision(1);
cout << "Y[" <<i <<"] = "<<y[i]<<endl;
}
}
|
6d10ec03357b85052b98bff6aabc9428007795f9 | 1745d6834e3d294917f4a23964a203723620ddcb | /mainform.h | 23bac30e94c7a78e8a57705acc7b17061b7074a1 | [] | no_license | maxiprogram/CopyData | 9f53b38ffb1edef6f80fafaf72650e05b87ea136 | ea15c960cfb8f816fcb48fd30cad80624010ad6d | refs/heads/master | 2021-01-25T07:07:38.457316 | 2015-03-25T10:23:56 | 2015-03-25T10:23:56 | 32,796,664 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,152 | h | mainform.h | #ifndef MAINFORM_H
#define MAINFORM_H
#include <QMainWindow>
#include <QSettings>
#include <QMessageBox>
#include <QFileDialog>
#include <QTimer>
#include <QSystemTrayIcon>
#include <QCloseEvent>
#include "about.h"
#include "threadcopy.h"
namespace Ui {
class MainForm;
}
class MainForm : public QMainWindow
{
Q_... |
24a7e66f68ee27bf34775fdb364711233b5e19dc | efb30f8d69b0a4499f737c6de27d79f4d00940f8 | /p256_pbc/mdrun.hpp | ebdd6908fc6f05aedf60c594bb2570a33b6a4ea7 | [] | no_license | nabehironagoya/cppmd | 9f6a0ace4d0d614a63c83d51c78509b0b3159431 | 84cbabe6fa82f568383e3ae3bd0c06ac88249d29 | refs/heads/master | 2020-06-21T04:34:30.350610 | 2019-07-24T07:09:03 | 2019-07-24T07:09:03 | 197,345,176 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,027 | hpp | mdrun.hpp | #include <iostream>
#include <string>
#include <cmath>
#include <vector>
using namespace std;
double mod(double, double);
class Atom{
static int n_atoms;
int num;
int resnr;
string resname;
string atomname;
double mass;
double epsilon;
double sigma;
double r[3];
double v[3];
... |
81df3b2609560c5b83ed347107adecb978cf4c1b | f9ad1b06b1f80675eccb23d70009f79e8c4af0d7 | /dal/network/tcpclient.cpp | 36c96538d26e713cca077617ff761e991693655b | [] | no_license | canispeakchinese/farm_client | 5531ff0fbddd7d3a3bd6b0497ddce5715cc5ad9e | e9b1465a1af652213a15f3347b577dcc8f724ec0 | refs/heads/master | 2020-03-11T04:47:54.893603 | 2018-05-26T08:47:44 | 2018-05-26T08:47:44 | 129,785,317 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,304 | cpp | tcpclient.cpp | #include "tcpclient.h"
#include <QDataStream>
#include <QIODevice>
#include <QMessageBox>
#include <QHostAddress>
TcpClient::TcpClient(MainView* parent): QTcpSocket(new QTcpSocket()), parent(parent) {
totalBytes = 0;
inBlock.resize(0);
connect(this, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT... |
5fd115c065e168b1d66d127b228666e8e4ca1629 | c9822f8c49046088715ea96762dbffedd014a0b0 | /hardwork/STL/queue.hpp | 35e0fe3b88bc34afebf26fed811042c838a0e5e4 | [
"MIT"
] | permissive | jskyzero/Cplusplus.Playground | 471d6b6068c5ad9119db86c346143e9f9103f5f8 | b4a82bb32af04efcffb6e251ac8956a3cc316174 | refs/heads/master | 2023-01-07T00:23:48.900807 | 2020-11-12T04:49:21 | 2020-11-12T04:49:21 | 201,798,526 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,136 | hpp | queue.hpp | /*
Queue (abstract data type)
In computer science, a queue (/ˈkjuː/ kyew) is a particular kind of abstract
data type or collection in which the entities in the collection are kept in
order and the principal (or only) operations on the collection are the addition
of entities to the rear terminal position, known as enqu... |
e9450a63a81e6e971a178ff0be01f294e7dc0552 | 590c5838440cac897007f8dfb1d5f68bc35928c3 | /Exercicios/Lista 5 - Exercícios de Vetores/exercicio17.cpp | 11728bf3da2d34ed7839265d664da1b877bf89fc | [] | no_license | luizsilvadev/algoritimos | 3f8360814246805887cd5c28c4520d2acb884483 | 9ea895482a719cc4ca3278b5da0b3d5a0c15cef6 | refs/heads/master | 2022-11-21T10:10:46.323109 | 2020-07-26T01:10:49 | 2020-07-26T01:10:49 | 282,448,527 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 432 | cpp | exercicio17.cpp | #include <iostream>
using namespace std;
int main(){
int tam;
bool encontrou=false;
cin>>tam;
char vetor[tam],busca;
for (int i=0;i<tam;i++){
cin>>vetor[i];
}
cin>>busca;
for (int i=0;i<tam;i++){
if (vetor[i]==busca){
cout<<i<<" ";
... |
e1ce7776d52a939ae7e08e5c876e507e8c2ece8a | efe79a0c8a5a48220bce63e7c35be993b5e6c3a8 | /src/backends/multicore/intrin_avx512.hpp | 1ef6354dfd55f594f6f760b932c01b1f6445964a | [
"BSD-3-Clause"
] | permissive | kabicm/arbor | 4d4a4b731f64c80b9d181bae830d572637490f04 | cfab5fd6a2e6a211c097659c96dcc098ee806e68 | refs/heads/master | 2021-09-05T10:04:34.454500 | 2018-01-16T10:47:32 | 2018-01-16T10:47:32 | 94,232,576 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,203 | hpp | intrin_avx512.hpp | #pragma once
// vector types for avx512
// double precision avx512 register
using vecd_avx512 = __m512d;
// 8 way mask for avx512 register (for use with double precision)
using mask8_avx512 = __mmask8;
inline vecd_avx512 set(double x) {
return _mm512_set1_pd(x);
}
namespace detail {
// Useful constants in ... |
83f7ac78e9b7b3ec17c011f4f64de79da050e226 | fa161bf3f18e18726ee939d16ed34bf9d0a080ba | /src/lib/asg/postgres_backend_model/data_schema.cpp | 7c1cc1a0a1d967441d2ff813431358be234663dd | [] | no_license | appstackgen/appstackgen | c6b50565f59d609225eb6e6f667f4fb57ad026bf | 1dabb43a984ce8d81b1bf746f5d4b8bd0c8b6602 | refs/heads/master | 2021-01-20T07:13:35.267281 | 2015-06-09T06:12:27 | 2015-06-09T06:12:27 | 34,614,112 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 270 | cpp | data_schema.cpp | /*
* This file is part of Project 'appstackgen'.
*
* Copyright (c) 2015, Johannes Lochmann
*
* All rights reserved.
*/
#include "data_schema.h"
namespace asg {
namespace postgres_backend_model {
string data_schema::static_node_type_name { "data_schema" };
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.