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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ad2d122f19ac0bd341c5ef1f3bf3888c0c309d2a | d9921b68e2eaf57c857d2d1f7a0e97da69df3b23 | /rsyn/src/rsyn/util/geometry/Polygon.cpp | 2aa230da84816754a7699045003ca966880003fe | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | cuhk-eda/cu-gr | 111217ea04816d82d8e21a57110ba0d0b414790c | 7c6428ad759d4de63be7c5ade97cc0d36f0df0d0 | refs/heads/master | 2023-03-06T11:39:49.671750 | 2022-09-22T16:43:01 | 2022-09-22T16:43:01 | 224,609,852 | 103 | 34 | NOASSERTION | 2020-11-11T14:39:27 | 2019-11-28T08:52:13 | C++ | UTF-8 | C++ | false | false | 7,893 | cpp | Polygon.cpp | /* Copyright 2014-2018 Rsyn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
7d86b9442764e2a167808466937e883028c5ef5c | 0ec1b847cc15e235f883c85a1d29ac1ca3ab74fc | /ss.h | 019177008b0abde82bae17ed8df8314d855c5d8b | [] | no_license | Lovestone/homework | 0f04760541b9b695913c173e33574c9a9176cc84 | add5e83476eb3e122ec8b7e3ca964b22c33011e7 | refs/heads/master | 2021-01-18T13:41:44.263728 | 2011-09-21T16:14:45 | 2011-09-21T16:14:45 | 2,430,642 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,523 | h | ss.h | //define my class--MyArray
//writen by 192101-01李汉
class MyArray
{
public:
MyArray (int leng);
~MyArray();
void Input();
void Display();
protected:
int* alist;
int length;
};
MyArray::MyArray(int leng)
{
alist=new int [length=leng];
for(int i=0; i<length;i++)
{*(alist+i)=0;}
}
MyArray::~MyArray()
{delete al... |
9f00fc077fd2c0386135a72527291e82742f69b7 | dbd2c28e9f7b661fe6ead5d4ff88d7c316ef8e7c | /Src/AliCe/src/PhotoSensor.cpp | 759ab6a1e3b77b2019fb01d5319de28e0493b324 | [] | no_license | AYATAKA-WORKs/AliCe | a675be59c6e0b4a3de33ba45222bbb31c22e2004 | 034690cd7aa4ee722d6bdaad33b45140bea0d3d5 | refs/heads/master | 2020-03-21T10:45:39.932579 | 2018-12-05T03:30:22 | 2018-12-05T03:30:22 | 107,755,502 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,895 | cpp | PhotoSensor.cpp | /*
* PhotoSensoer.cpp
*
* Created on: 2017/09/14
* Author: KOTA-NPC2
*/
#include "PhotoSensor.h"
#include "iodefine.h"
void PhotoSensor::ADCenable(void) {
S12AD.ADCSR.BIT.ADST = 1; // AD変換開始
}
void PhotoSensor::ADCdisable(void) {
S12AD.ADCSR.BIT.ADST = 0; // AD変換停止
S12AD.ADCSR.B... |
28057257d2ceca9533c2b5711ee793d10e0bbb47 | bf43d386300e5f9b57e6bb229ae58a57761627f5 | /binary-write/src/main.cpp | 11bed727d5a47deb0fec69440b67bad0239b529b | [] | no_license | DTPrince/Prince-CSCI2270-FinalProject | 782fcf17b44f865ed25b158c5b2fb1c76a6f6a04 | 4048c25601eb2d9f79e6ec5640e6574602981b16 | refs/heads/master | 2021-05-30T03:58:44.966808 | 2015-05-23T20:47:51 | 2015-05-23T20:47:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,033 | cpp | main.cpp | /*
Derek Prince
Binary conversion program for 14ers hashmap.
*/
#include<fstream>
#include<iostream>
#include<string>
//specify -v for vertex and -e for edge? Probably for this program. Not for the main program. That will need default (-t -> text) -b binary
//come to think of it, edge files have no predefined structu... |
6eff2c5d498c7a76d2ef261ea4219c0acbd64aa4 | c36eb448fcba984c7b7296e712521e1ad464133e | /src/cpp/rsa.cpp | 471ec8817f8d105705995ca50b9cde2874008df6 | [] | no_license | griels/gojsonsm | 397e3d6ee48c5006d3e70240dfb8fc5138745cef | 42bc464e1ea4b711940b9b395e5dac947f1b0afb | refs/heads/master | 2020-03-23T08:14:28.863402 | 2018-07-17T16:37:26 | 2018-07-17T16:37:26 | 141,315,809 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 33,442 | cpp | rsa.cpp | std::tuple<moku::slice<uint8_t>, moku::error> EncryptPKCS1v15(
Reader rand, PublicKey *pub, moku::slice<uint8_t> msg)
{
Int *c{std::nullptr};
moku::slice<uint8_t> em{};
moku::error err{};
int k{0};
Int *m{std::nullptr};
moku::slice<uint8_t> mm{};
moku::slice<uint8_t> ps{};
{
... |
4904bdead6ee7e66f158d0c96be31d83dae7badd | fe9e62f8aa9fd3447868bebc72b9fc61d9d733e7 | /2016-ICPC-Europe-SWERC/K.cpp | be211229e99d96a8facbdb1290107ecaafa92d1f | [] | no_license | chanhanyi0923/some_teams_naive | c03eaebee4970cc956e92a7df2c1c1a8e090dc28 | c0bfdb0c637b9351a60a3a51512d46034a03e011 | refs/heads/master | 2021-01-19T12:43:52.109572 | 2018-03-05T07:53:32 | 2018-03-05T07:53:32 | 100,802,993 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,894 | cpp | K.cpp | #include <bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define mp(a, b) make_pair(a, b)
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<pair<int, int>, int> ppi;
typedef pair<ppi, ppi> ppp;
map<ppp, int> E1;
map<ppp, int> E2;
#define SIZE 100005
ppi P1[SIZE];
ppi P2[SIZE];... |
85754237a4c0c909aecfbbe2aa7113278b0d52a3 | ffb3027c11db1b51569414815bcae0066c00c37f | /scripts/general/NtupleClasses.hh | d31a945408407093107037d63203474aa968b518 | [] | no_license | syuvivida/usercode | af8e4eba513a4791aa27d6e8075c111cf521eb8a | 54c57e39fa4765a7ead478bbf34e302c7df6d9d5 | refs/heads/master | 2020-06-05T19:41:20.506171 | 2016-12-14T17:05:38 | 2016-12-14T17:05:38 | 11,925,748 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,996 | hh | NtupleClasses.hh | #ifndef NTUPLECLASSES_HH
#define NTUPLECLASSES_HH
//////////////////////////////////////////////////////
//
// Classes to fill my ntuples with
//
////////////////////////////////////////////////////////
#include "TObject.h"
#include "TChain.h"
#include <TBranch.h>
#include <TLeaf.h>
#include <vector>
namespace SY_NT... |
d46f324370985fdac72d6f269f36599446cfe608 | 212736267849de9b39eb4d0ce89c672f7c9ee430 | /double_dispatch/main.cpp | 004ee4b88dd54ce43bf93d83844213b987469b43 | [] | no_license | thomashope/learn_cpp | eae796f686f260b085d6cfe552f6e01f2843fa3b | d328333aedf78723af24efd9ef5042ceaa5cebb7 | refs/heads/master | 2023-03-13T20:27:42.684020 | 2023-02-21T01:30:52 | 2023-02-21T01:30:52 | 68,058,662 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,573 | cpp | main.cpp | #include <iostream>
#include <vector>
// Inspired by https://www.youtube.com/watch?v=uFq1T4UL11o
// Video Title: C++ Messaging Systems
// Channel: Game Engine Architecture Club
// Compile with -std=c++11
// Forward declare the IMessageHandler so Message knows about it
class IMessageHandler;
// Need to forward declare... |
3c32a76c461372fa4965a0ff81a755e73f045a26 | 4943e8fda0963de82aa94016412712375a48f602 | /Dia04/lst04-02.cxx | 534958ca332a92258b6ebc08f4d5bd6916bcc537 | [] | no_license | javileyes/curso-cpp | baa650c5769d09dafe7e3b3522d3ca91c709b6e0 | 478f71791859a769d76c58d383ffe8c2587ee425 | refs/heads/master | 2023-03-08T09:59:31.254490 | 2021-02-28T08:33:17 | 2021-02-28T08:33:17 | 342,924,852 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 412 | cxx | lst04-02.cxx | // Listado 4.2 - muestra la resta y
// el desbordamiento de enteros
#include <iostream.h>
int main()
{
unsigned int diferencia;
unsigned int numeroGrande = 100;
unsigned int numeroChico = 50;
diferencia = numeroGrande - numeroChico;
cout << "La diferencia es: " << diferencia;
diferencia = numeroChico ... |
5a64b8b92bfb101222ab19ba2a0ca9057fa8a195 | bd78b02de70ede1d04558d9378994284b2b46b2e | /interviewbit/MaxContinousSeriesOf1.cpp | 7754a7d4f01e7a6c91126bb3be26960c5e6e7afd | [] | no_license | 15999shivam/interviewQuestion | dacd10d21d0fea53580c40b6877c073bcf306c87 | 61ff13bac605e975b88fbe18e18bbc3ad48a9412 | refs/heads/master | 2020-08-22T13:43:38.381968 | 2019-12-12T18:19:25 | 2019-12-12T18:19:25 | 216,407,638 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,058 | cpp | MaxContinousSeriesOf1.cpp | /**
* @input A : Integer array
* @input n1 : Integer array's ( A ) length
* @input B : Integer
*
* @Output Integer array. You need to malloc memory, and fill the length in len1
*/
int *maxone(int *A, int n1, int B, int *len1)
{
int stored;
int i;
int sum = 0;
int limit = B;
int max = 0;
i... |
d5f4198ef0f7ab9b6e3db6e0df0bc3cab19c2214 | 6538d899bf0c0e04c4b39f6ce66a6a5c96ae22da | /src/util.cpp | 73ebd88cff8be8c48c62ae26c2054fb28720583e | [
"MIT"
] | permissive | wmbr/Orbit | e28c582163e62750dc0d19dae34e03111bfe81da | f718b99451d6188f4490cd552bd7a82a22a11deb | refs/heads/master | 2021-01-02T08:33:05.162712 | 2017-04-21T04:07:18 | 2017-04-21T04:07:18 | 39,076,622 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,516 | cpp | util.cpp | #include <SFML/System/Vector2.hpp>
#include "util.hpp"
sf::Color darken(sf::Color color)
{
return sf::Color(color.r/2, color.g/2, color.b/2, 128);
}
sf::Color randomColor(double bodyRadius)
{
sf::Color color;
do{
color = sf::Color(rand()%255, rand()%255, rand()%255);
}while(bodyRadius * brightness(color) < 50... |
7ac44caf8ef3a60d35e9d6df238623c864928450 | 31287dccda1fa0be67d87c61175fc7e9206134e8 | /IDReader/bean/Room.h | c487a4f85778c345e1f3eef611ccab4375604cdd | [] | no_license | xtuer/Qt | 83c9407f92cef8f0d1b702083bb51ea29d69f18a | 01d3862353f88a64e3c4ea76d4ecdd1d98ab1806 | refs/heads/master | 2022-06-02T02:32:56.694458 | 2022-05-29T13:06:48 | 2022-05-29T13:06:48 | 55,279,709 | 15 | 13 | null | null | null | null | UTF-8 | C++ | false | false | 217 | h | Room.h | #ifndef ROOM_H
#define ROOM_H
#include <QString>
class Room {
public:
Room();
QString toString() const;
QString roomCode;
QString roomLocation;
int seatNum;
};
#endif // ROOM_H
|
b3a9135638a693dd6a35a93d1ae941b668597c4f | c507645952553f2a7e93c14ec19ff3246feca49b | /src/PhysicsSystem.cpp | 8d6fea17a8a1cf7b4d19fbdf3e6ba8593e9ae07c | [] | no_license | LeifNode/KinectProject | 33a6fc002b7a513245ce0202829c55b3365f0b86 | 68b9fe0279dbf672670ae2b6ed92a0656dc5732d | refs/heads/master | 2021-03-12T23:19:26.096556 | 2015-01-13T23:57:41 | 2015-01-13T23:57:41 | 20,317,533 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,281 | cpp | PhysicsSystem.cpp | #include "PhysicsSystem.h"
#include "InputSystem.h"
PhysicsSystem::PhysicsSystem()
:mConstraintRenderer(0.01f, XMFLOAT4(1.0f, 0.0f, 0.0f, 1.0f)),
mResolver(100)
{
mMaxContacts = 1000;
mpContactArr = new ParticleContact[mMaxContacts]();
}
PhysicsSystem::~PhysicsSystem()
{
for (auto it = mForceGenerators.begin(); ... |
ab527b9fdc72b8f44735858c91d1b3812c46af2c | 8a87f5b889a9ce7d81421515f06d9c9cbf6ce64a | /3rdParty/boost/1.78.0/libs/math/tools/hyp_2f1_data.cpp | 7978e2bdc058832e20cfbd54e93a1677ce65760c | [
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause",
"ICU",
"Zlib",
"GPL-1.0-or-later",
"OpenSSL",
"ISC",
"LicenseRef-scancode-gutenberg-2020",
"MIT",
"GPL-2.0-only",
"CC0-1.0",
"LicenseRef-scancode-autoconf-simple-exception",
"LicenseRef-scancode-pcre",
"Bison-exception-2.2",
"LicenseRef-scancode... | permissive | arangodb/arangodb | 0980625e76c56a2449d90dcb8d8f2c485e28a83b | 43c40535cee37fc7349a21793dc33b1833735af5 | refs/heads/devel | 2023-08-31T09:34:47.451950 | 2023-08-31T07:25:02 | 2023-08-31T07:25:02 | 2,649,214 | 13,385 | 982 | Apache-2.0 | 2023-09-14T17:02:16 | 2011-10-26T06:42:00 | C++ | UTF-8 | C++ | false | false | 2,604 | cpp | hyp_2f1_data.cpp | // (C) Copyright John Maddock 2006.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#define BOOST_MATH_MAX_SERIES_ITERATION_POLICY 10000000
#include "mp_t.hpp"
#include <boos... |
0120d245541f15e166768abcb61f9e808efd0b2e | b3cda0c4510ae6d0b9b74e18816c02b8dc931049 | /sandboxed_api/sandbox2/testcases/namespace.cc | 9036fd5a9451551d696eb89d5ecfbb8bbe313dd3 | [
"Apache-2.0"
] | permissive | google/sandboxed-api | 7770c109242c67ce130a631fd436603853b4e6bb | e23acfd7e7a8f63ab07306ee197b076a2cd1b4fa | refs/heads/main | 2023-09-01T08:31:38.080330 | 2023-08-31T20:49:41 | 2023-08-31T20:50:26 | 174,313,852 | 1,706 | 212 | Apache-2.0 | 2022-05-04T08:18:57 | 2019-03-07T09:30:45 | C++ | UTF-8 | C++ | false | false | 4,328 | cc | namespace.cc | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
edda6b243bc9c928407681f521984e1daafeed23 | b5146be87a6d3f0082a925abbf4f04eb9a5947d6 | /Zsubject.cpp | 539d8702334ab25212012cf0e3ce27947aec5333 | [] | no_license | Si-Min1/open_cv_study | a9a132b5efe232074b4ef37c78ac581349011c5d | 27878a610f45829f9dfe0d77dd38dd88b1047afb | refs/heads/master | 2023-06-06T05:12:26.315684 | 2021-06-15T23:57:53 | 2021-06-15T23:57:53 | 377,320,942 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,781 | cpp | Zsubject.cpp | #include "pch.h"
#include <iostream>
#include "opencv2/highgui.hpp"
#include "opencv2/imgproc.hpp"
using namespace cv;
using namespace std;
String str = "Sample Text"; //화면에 보여줄 텍스트
int lx = -10;
int p = 0;
int mx = 20, my = 20;
int x = 1, y = 1;
Mat frame;
int main() {
Mat logo = cv::imread("C:\\User... |
8003c31714876f57f45f3c62f6e6655ea452efe8 | 0214f25be3a9d3185cdc6689087a9d27a13c8553 | /132.cpp | 01e0d87a9a051ae968685a63a61fe0f2d14426bc | [] | no_license | BUIDUCTAI2105/hackerrank_algorithms | a0e4120cdffb858f5999b535e3c5f5b68a2073f0 | c3dec3c6f5c30738505157aed0422a89909b3393 | refs/heads/master | 2023-02-16T20:36:15.643551 | 2021-01-15T11:57:33 | 2021-01-15T11:57:33 | 286,758,725 | 1 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 1,084 | cpp | 132.cpp | // viet ham liet ke các gia tri chan trong mang 1 chieu
// B1: viet ham nhap va xuat mang 1 chieu a[i]
// nhap vao n neu n <= 0 hoac n > MAX ( MAX 100 ) thi bi loi va nhap lai
// B2: viet ham liet ke cac sô chan trong mang
// duyet tu dau mang den cuoi mang neu có phan tu nao chia het cho 2 ( a[i] % 2 == 0 ) th... |
a395635d393a02ac64d3deae57c2debec108315c | 874ccdc2260ac36cff42d26cbb82e15d067b134f | /examples/FightingGame2D/Stages/StageLayer.cpp | cdf7253f49be10bf90e3d5f8a059906d014f34cc | [
"MIT"
] | permissive | xcasadio/casaengine | ae0441d6d3fa7225fdbd8717b9e6f3dfc95ba16b | 4d96abab857fdbcc0892f8807b0e455fae9a9ed6 | refs/heads/master | 2023-03-16T04:58:43.882766 | 2023-03-11T10:19:05 | 2023-03-11T10:19:05 | 40,560,096 | 0 | 0 | null | 2020-10-08T10:32:12 | 2015-08-11T19:08:08 | C | UTF-8 | C++ | false | false | 858 | cpp | StageLayer.cpp | #include "Stage.h"
#include "Game/Game.h"
#include "Sprite/SpriteRenderer.h"
using namespace CasaEngine;
StageLayer::StageLayer(Stage* stage)
{
m_pStage = stage;
}
StageLayer::~StageLayer()
{
}
void StageLayer::AddTexture(Texture* texture)
{
m_Textures.push_back(texture);
}
void StageLayer::Update(const GameTim... |
c139e6bf6b7b018469ea1cba8219199abd73fe04 | 303b48eb9354338542e0a4ca68df1978dd8d038b | /src/FogInfo.cpp | 0e0be0d2b89b9c64629a5159ca4ab61e359a8adf | [
"BSD-3-Clause"
] | permissive | ldematte/beppe | fa98a212bbe4a27c5d63defaf386898a48d72deb | 53369e0635d37d2dc58aa0b6317e664b3cf67547 | refs/heads/master | 2020-06-04T00:05:39.688233 | 2013-01-06T16:37:03 | 2013-01-06T16:37:03 | 7,469,184 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,366 | cpp | FogInfo.cpp | /*******************************************************************\
* Bezier Patch Editor --- FogInfo *
* *
* Utilizzata internamente dal Fog Manager, questa classe e' *
* in grado di memorizzare i parametri d... |
78c21689d8025b7d58fb84c427ed6851d862267f | afb7006e47e70c1deb2ddb205f06eaf67de3df72 | /gfx/skia/skia/src/sksl/ir/SkSLChildCall.h | 830715ad5c01903332e75a967d904380eec7f5e7 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | marco-c/gecko-dev-wordified | a66383f85db33911b6312dd094c36f88c55d2e2c | 3509ec45ecc9e536d04a3f6a43a82ec09c08dff6 | refs/heads/master | 2023-08-10T16:37:56.660204 | 2023-08-01T00:39:54 | 2023-08-01T00:39:54 | 211,297,590 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,641 | h | SkSLChildCall.h | /
*
*
Copyright
2021
Google
LLC
*
*
Use
of
this
source
code
is
governed
by
a
BSD
-
style
license
that
can
be
*
found
in
the
LICENSE
file
.
*
/
#
ifndef
SKSL_CHILDCALL
#
define
SKSL_CHILDCALL
#
include
"
include
/
private
/
SkSLDefines
.
h
"
#
include
"
include
/
private
/
SkSLIRNode
.
h
"
#
include
"
include
/
sksl
/
S... |
be6ceea370223fe1b8b66216d3d9dd3678aa5670 | ab333d79a2efc24b6c846d30bd1c490d30f4f998 | /src/test_core.h | 05e30c87c13e047092864b3f1aa05c296b48b475 | [] | no_license | dulm-today/lib | d87ef49a65c51cc07506a1a7839359c395b5c3ed | dcf8b9bec4f85efeec797faa3d524fc2d99b7190 | refs/heads/master | 2016-08-11T09:43:48.655349 | 2016-02-26T09:22:57 | 2016-02-26T09:22:57 | 49,948,545 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 246 | h | test_core.h | #ifndef __TEST_CORE_H__
#define __TEST_CORE_H__
#include <stdio.h>
/* return number of error */
typedef int (*test_main)();
class Test
{
public:
Test(const char* name, test_main fn, int total);
};
#endif // __TEST_CORE_H__
|
8135714b318681dba17033012ddbe86781c75d13 | 1f8bbea9bbc4886981a05fc8f193410a9c33fe06 | /ClassCode/W06-Fn/hiName.cpp | 3eb57174c762fc6e3e085143c1161088c630ca87 | [] | no_license | fuzzpault/UIndy-SCSI155-2016-I | fe4ba1691a5450e8207c48e8a3c1e25f9f8b282b | 46839576a04685274da5b16084f2e1d685246a55 | refs/heads/master | 2020-12-04T13:54:15.803945 | 2016-12-19T04:54:16 | 2016-12-19T04:54:16 | 66,765,567 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 366 | cpp | hiName.cpp | /* Name: Paul Talaga
Date: 10/6/16
Desc: An example of passing multiple parameters to a function.
*/
#include <iostream>
#include <string>
using namespace std;
void sayHi(string name, int times){
for(int i = 0; i < times; i++){
cout << i << ": Hi " << name << endl;
}
}
int main(){
sayHi("B... |
e6400e398aced2742e3f4e1b3d2352fb4504eb9f | 80a96581255056a03f126e19b081276d5a66dd2e | /MyBitmap.cpp | 211be88bdd9d9e570c3e9ec7fc8e061acacde279 | [] | no_license | patchell/FrontCad | 6c1c9e4e7642eafe8a8a556c17e098f32077c548 | b2567d6d0b57b22a29efa64aa42d583cd1a457b8 | refs/heads/master | 2023-07-07T04:24:40.368564 | 2023-06-29T03:42:46 | 2023-06-29T03:42:46 | 75,502,957 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,041 | cpp | MyBitmap.cpp | /----------------------------------------
** CLASS CMyBitmap
**
** Derived from CBitmap, this class adds
** the functionality of being able to
** load a CBitmap from a file.
----------------------------------------/
#include "pch.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW... |
36ec0e7f13e008016fca1aaecef42fb0a3157e49 | c995e6caa6dc526f84276a4fb89475079f3280bc | /leetcode解答/图-克隆图-133.cpp | 7d60b0eab78cfbea0793b2f6549fd11b83645a9d | [] | no_license | cocoa0409/LeetCodeSolutions | 3e32228fe1d42f766b1d63b4ed9a8ba96e32c6a2 | 3297073006018cf8ce7924ec9e9292fa805a05d8 | refs/heads/master | 2021-03-24T02:08:25.840311 | 2020-06-02T10:59:54 | 2020-06-02T10:59:54 | 247,506,085 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,261 | cpp | 图-克隆图-133.cpp | //
// 图-克隆图-133.cpp
// LeetCodePlayground
//
// Created by 兆吉 王 on 2020/4/21.
// Copyright © 2020 兆吉 王. All rights reserved.
//
using namespace std;
class Node {
public:
int val;
vector<Node*> neighbors;
Node() {
val = 0;
neighbors = vector<Node*>();
}
Node(int _val) {
... |
ce0dd2b3e4401046a533b0263e29c24fc4484351 | 0c774a628e198b8cc561a43e2266c571cb332f10 | /A2/Command.h | 046642483c1730127f9636c8114fae4d66be3f77 | [] | no_license | xmithd/xs_line_editor | 2087269e1e62973808643013f79253e491ccc03b | 0674acffb748bb028aab989c488a6f403fa6dc0b | refs/heads/master | 2020-03-17T12:56:05.360771 | 2018-05-16T04:25:07 | 2018-05-16T04:25:07 | 133,609,870 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,650 | h | Command.h | #ifndef Command_h
#define Command_h
#include <string>
using namespace std;
enum CommandType {
PRINT,
QUIT,
WRITE,
INSERT,
APPEND,
REMOVE,
PRINT_CURRENT_LINE,
PRINT_WITH_LINE_NUM,
MOVE_UP,
MOVE_DOWN,
CHANGE,
INVALID
};
/**
* Class to translate a user command input int... |
ece1ac72825b5785b02ee231b3a641d9b9a7252b | 4fc1e78d401305cb8bf91e58566e29d526a58cfe | /Josephus/Program.cpp | e63e4cad711b095adf9f44e5bf2d4564c53d39a6 | [] | no_license | peterloos/Cpp_Josephus | ab2224a8cdca11d2796119e7e2e82e764498a25a | e8f7769ae380d995d05fa136bb32ce0c21c62179 | refs/heads/master | 2021-01-20T19:42:29.669315 | 2016-06-14T19:44:30 | 2016-06-14T19:44:30 | 61,150,987 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,836 | cpp | Program.cpp | #include <iostream>
using namespace std;
#include "Soldier.h"
#include "Josephus.h"
// using namespace SolutionUsingLinkedList;
using namespace SolutionUsingArray;
void Test01();
void Test02();
void Test03();
void Test04();
void Test05();
void Test06();
void main()
{
Test01();
Test02();
Test03();
Te... |
885120a72f55570575fe46ea63545565cd545c8f | 2a7be1d97ce8f946dbfba0c17b2db26e9c6064cf | /Week12_Recursion/task06_S.cpp | ca227a7b4fb22ac97c4611773390e95fed6d9903 | [] | no_license | snikolova27/UP-2.0 | 0c400cddf50a23d4bcb64c5a2b19c7c8c6b3109c | 8411e58111d410f60c3058e1608c03e4961d30bb | refs/heads/master | 2023-07-11T01:09:31.903709 | 2021-08-18T08:01:15 | 2021-08-18T08:01:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 721 | cpp | task06_S.cpp | #include <iostream>
#include <cmath>
bool isPrimeHelper(int num, int i)
{
if (i > sqrt(num))
{
return true;
}
if (num < 2 || num % i == 0)
{
return false;
}
return isPrimeHelper(num, i + 1);
}
bool isPrime(int n, int i = 2)
{
if (n <= 2)
{
return (n == 2) ... |
f4fe46e41e05c2e478c03375ed116b9d7419c511 | c2c9771c106aef1ccac37424db34b119fa0ddea5 | /src/comms.cpp | dbe30a72bbd96be286b17baefcbf17e317b0cd2e | [] | no_license | themrb/Team-Reverwesome | a002c7d248fb0e923f0852917ff42573b385e80f | 1065b718e881c238dbc5d697ae1d78e3a08a6c6a | refs/heads/master | 2021-01-02T15:33:56.557950 | 2012-06-08T10:55:24 | 2012-06-08T10:55:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,354 | cpp | comms.cpp | /*****************************************************************************
** COMP3130 GROUP PROJECTS IN COMPUTER SCIENCE, SEMESTER 1, 2012
** Copyright (c) 2012, Stephen Gould
** All rights reserved.
**
******************************************************************************
** FILENAME: comms.cpp
** AUTH... |
46a5de88765ea26d0f00c956b18968c589b9f3cd | dad69254ffa71ead2b045a852ca0e071308d07cf | /study/07/linked_list/linkedlist.cpp | 9836df2c6b9aec9dcd814ded358ef8b77d7ac6e2 | [] | no_license | pid011-study-archive/data-structure-study | 92e7dda1c5663cf751789ea3bb440934559b76bc | 99bbc21739660902e970de278f38a46db417ba0f | refs/heads/main | 2023-02-06T10:13:28.080128 | 2020-12-18T04:39:12 | 2020-12-18T04:39:12 | 292,492,183 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,095 | cpp | linkedlist.cpp | #include "linkedlist.hpp"
LinkedList::LinkedList() { }
LinkedList::~LinkedList() {
Node* cnode = _head;
while (cnode != nullptr) {
Node* tmpnode = cnode;
cnode = cnode->Next;
delete tmpnode;
}
}
void LinkedList::add_first(int data) {
Node* tmpnode = _head;
_head = new Node... |
c2c63f20ec7b8c5503241a5e174ad8238bb232bd | 0769bb399c7ef945e91d3a2dc227d08214438795 | /BilliardsGame/ImageUI.h | a407d19d6e414bc20b6a48f564c8ae740f463951 | [] | no_license | ogasho/BilliardsGameDX | 307353762d4c9a0147c7fac12dc849dcabbc6207 | 52e9f7f41c7bfe8b5f2fcc37c0e7ffaa7b23a522 | refs/heads/master | 2021-01-13T13:56:56.313095 | 2016-12-14T16:37:42 | 2016-12-14T16:37:42 | 72,931,827 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,323 | h | ImageUI.h | /* イメージUIクラス */
// 画面上に表示する画像の描画管理クラス
#pragma once
#include <d3d11.h>
#include <DirectXMath.h>
using namespace DirectX;
class Texture;
class ImageUI
{
private:
struct VertexType
{
XMFLOAT3 pos;
XMFLOAT2 tex;
};
public:
ImageUI();
~ImageUI();
bool Init(ID3D11Device* device, ID3D11DeviceContext* deviceCon... |
1c0af725c5ad40e93ba15c62a8cfbfb3e8ec5c9c | 75fdc93810cfd992af3dee6dce5e654836a075ac | /3.cpp | 73cf45d463c92fdd4736911a5589fb077ebb907a | [] | no_license | arpitmanit01/PPL-projects | 23dca98fe59115405c1afcc89c58c619322a3317 | 0b58e6fa5c22d8c60cdee877f32418512459123c | refs/heads/master | 2020-09-11T16:35:14.930268 | 2019-11-16T16:30:35 | 2019-11-16T16:30:35 | 222,127,513 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,012 | cpp | 3.cpp | #include<iostream>
#include<cstdlib>
#include<string>
using namespace std;
void reversearr(int* a, int n) {
int m = (n - 1) / 2;
int temp;
for (int i = 0; i <= m; i++) {
temp = a[i];
a[i] = a[n - 1 - i];
a[n - 1 - i] = temp;
}
}
void reversestring(string& str) {
int n = str.length();
in... |
509b05f4a923dc92daf56296f3b2c47184b88880 | 213bc8aae8f13dc68a701f770dc0c61fbbf6d0c9 | /src/LogicComponent.cpp | 7ddca39932b1bfb1620c775edd7194f16c8acead | [] | no_license | antonioagostino/GameOfLife | 788ce11513d1c3bb17528a3db4ede6bd4b7a1bfa | 38a8e5f391c4bed01c828ffbd0922f5c56baf8dc | refs/heads/master | 2020-06-28T00:48:59.975982 | 2019-08-01T18:40:15 | 2019-08-01T18:40:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,572 | cpp | LogicComponent.cpp | #include "../include/LogicComponent.h"
LogicComponent::LogicComponent(){
startMPI();
createMatrices();
fillInitialMatrix();
loadGraphicComponent();
}
void LogicComponent::createMatrices(){
//Inizializzo le celle tutte a "morte", per ogni processo
for(int i = 0; i < DIMV; i++){
for... |
cb26513ec89a6820470953ff5ce07701768e78bd | 96eac7ad95a4fab9af94eecc5e70a8f085010fe4 | /threes-puzzle/main.cpp | 11d54900c4de53bfe25e4ab84dbdb4e8810fd093 | [] | no_license | shiftking/threes-puzzle | e40e5f14610780b945bfeb367819e3725b535477 | d5529ea2a187b56fc4899adb0bf388c4d355798e | refs/heads/master | 2020-12-13T19:59:07.375665 | 2014-01-31T22:37:52 | 2014-01-31T22:37:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,772 | cpp | main.cpp | /*
* main.cpp
*
* Created on: Jan 25, 2014
* Author: Nammy
*/
#include <iostream>
#include <iomanip>
#include <math.h>
using namespace std;
bool isThreeFirstOrLast (int number);
bool isDoubleSinglePrime (int number);
bool isSingleDoublePrime (int number);
bool isCubeFind (int number);
boo... |
d2e394b963c3e5012621e14c9e67a13e743c992d | 41ea3585cad164c345a622a130056f77c0548eb2 | /ScientificFloating/scientificFloating.cpp | 7849b97ce02c41848e1745d8a453d668a632207a | [] | no_license | bmmliu/Assambly-Code-Programs | 9b2e591c6bdb3d0f1c5661ad579d00174af76b36 | cac7b0f2e9564cec89d0fd7db73282ed8fa6e1af | refs/heads/master | 2021-01-04T06:49:58.355811 | 2020-02-14T05:47:25 | 2020-02-14T05:47:25 | 240,437,378 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,263 | cpp | scientificFloating.cpp | #include <iostream>
#include <math.h>
#include <deque>
#include <stdio.h>
int main() {
float float_num;
int above_one;
int remain;
int float_remain;
char sign = 'p';
std::deque<int> head;
std::deque<int> tail;
std::cout << "Please enter a float: ";
std::cin >> float_num;
if (fl... |
e3e6c0bcbe98b7c731a65ebe732f7a1777f1c057 | 0e08d948f73152fbafabee185a457ff076a63080 | /virtools/CKMessage.cpp | 280ab45ce378c8b5c4ea9e16e150dc40f44706ac | [
"LicenseRef-scancode-free-unknown",
"MIT"
] | permissive | Gamepiaynmo/BallanceModLoader | a492f6e14e4d07b9a7cb1790258216a93be57706 | 852651edde57475379c653e1959977c5911c0708 | refs/heads/master | 2023-05-12T23:47:20.120249 | 2023-05-09T08:34:52 | 2023-05-09T08:34:52 | 252,963,888 | 58 | 8 | MIT | 2023-08-23T02:08:36 | 2020-04-04T10:09:40 | C++ | UTF-8 | C++ | false | false | 1,265 | cpp | CKMessage.cpp | #include "CKMessage.h"
#include "CKBeObject.h"
NAKED CKERROR CKMessage::SetBroadcastObjectType(CK_CLASSID type) {
JUMP(0x24007FE6);
}
NAKED CKERROR CKMessage::AddParameter(CKParameter*, CKBOOL DeleteParameterWithMessage) {
JUMP(0x24007EFE);
}
NAKED CKERROR CKMessage::RemoveParameter(CKParameter*) {
JUMP(0x24007F6... |
59cbd92234bb9d96234f74742112e98cf99b9599 | 81e71315f2f9e78704b29a5688ba2889928483bb | /src/Plugin/Plugin FLT/FaceRecord.cpp | b4902bca69d691ba3877a57206575d3db93719e5 | [] | no_license | Creature3D/Creature3DApi | 2c95c1c0089e75ad4a8e760366d0dd2d11564389 | b284e6db7e0d8e957295fb9207e39623529cdb4d | refs/heads/master | 2022-11-13T07:19:58.678696 | 2019-07-06T05:48:10 | 2019-07-06T05:48:10 | 274,064,341 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,571 | cpp | FaceRecord.cpp | // FaceRecord.cpp
#include <Plugin flt/flt.h>
#include <Plugin flt/Registry.h>
#include <Plugin flt/FaceRecord.h>
#include <Plugin flt/Input.h>
using namespace flt;
////////////////////////////////////////////////////////////////////
//
// FaceRecord
//
////////////////////////////////////... |
0237d70722e1d35a5a3cdbf0f13f4fafd0a1d650 | 9127cac62f24676c421c7fe675d7f885c3d75de6 | /2015/DirectXWork2/DirectXWork2/MyGame/GamePlay.cpp | eeaddac856d828b8dafe13ff2d6aded3c95d7008 | [] | no_license | ANANC/StudentGame | 81514cb68b793a77a66c03f92ddb47aa3caf29c8 | c1addd15e8a86bc0e5158840390a84809450c998 | refs/heads/master | 2022-11-29T18:51:29.006061 | 2020-08-08T02:59:24 | 2020-08-08T02:59:24 | 285,591,627 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 6,556 | cpp | GamePlay.cpp | #include"GamePlay.h"
#define KEY_SHIFT (GetKeyState(VK_SHIFT) & 0x80)>0 ? true : false
#define KEY_CTRL (GetKeyState(VK_ESCAPE) & 0x80)>0 ? true : false
CGamePlay::~CGamePlay()
{
}
CGamePlay::CGamePlay()
{
pCGameScene = GameScene::GetInstance();
pCGameScene->GetHinder(Hinder);
pCGameScene->GetGamePass(GamePass... |
c87d6dda22b47c62b128839ab934ab862b278f3d | 549416f8235821dae94f5f1c3dd2742f915ac4f5 | /common/kvstore/KeyValueStore.cc | adf30bdc6452fa3a85960d4e703814c8e23efcf4 | [
"Apache-2.0"
] | permissive | keanulee/sorbet | 301d37af0637c8ac555a620497ee7ba870ccc047 | 8677db8d7933ad1b21330253cd8aa313b9f492b1 | refs/heads/master | 2021-05-19T10:41:53.662201 | 2020-03-28T20:58:51 | 2020-03-28T20:58:51 | 251,654,943 | 0 | 0 | Apache-2.0 | 2020-03-31T15:57:29 | 2020-03-31T15:57:28 | null | UTF-8 | C++ | false | false | 8,038 | cc | KeyValueStore.cc | #include "common/kvstore/KeyValueStore.h"
#include "common/Timer.h"
#include "lmdb.h"
#include <utility>
using namespace std;
namespace sorbet {
constexpr string_view OLD_VERSION_KEY = "VERSION"sv;
constexpr string_view VERSION_KEY = "DB_FORMAT_VERSION"sv;
constexpr size_t MAX_DB_SIZE_BYTES =
2L * 1024 * 1024 * 1... |
78b492a94b0c49ee314e7f1a6b5612aa0299f4fe | d8fe65c431e73e96b4b273dbaa2b6a28f50ee650 | /CfrServer/src/typical_cards.cpp | ffe5f582dc259e16aeeec6567fdd4c492d954eea | [
"MIT"
] | permissive | deeptexas-ai/MasterAI-1.0-1vs1-Limit | eebba13819977e5f7387687e42b85f19f9ac8ad0 | f06b798d18f2d53c9206df41406d02647004ce84 | refs/heads/main | 2023-08-16T15:32:37.505341 | 2021-10-19T04:10:45 | 2021-10-19T04:10:45 | 415,269,205 | 12 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 18,731 | cpp | typical_cards.cpp |
#include <algorithm>
#include <vector>
#include <stdio.h>
#include <stdlib.h>
#include <memory>
#include "typical_cards.h"
#include "cards.h"
#include "s_game.h"
#include "global_def.h"
#include "help_functions.h"
using std::unique_ptr;
using std::vector;
TypicalCards::TypicalCards(int n, const Card *previous, i... |
4e59d7491a97fb8c0ca27e165a68d78f2ddc729e | 9083182cf900ed4bd3f6166bbc5c9acb6c71d98f | /src/main/FLuaG.cpp | c501b185c02c3ed867401a721e98a8e91c73b16e | [
"Zlib"
] | permissive | Youka/FLuaG_rework | 750ec91f1b75008d9932ef3e0d33cbdc8efb035f | 6de19f87d2717a3ceee966e7e9b54c06d480cb2a | refs/heads/master | 2021-01-18T21:19:16.229326 | 2016-05-14T18:53:22 | 2016-05-14T18:53:22 | 48,962,402 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 8,120 | cpp | FLuaG.cpp | /*
Project: FLuaG
File: FLuaG.cpp
Copyright (c) 2015-2016, Christoph "Youka" Spanknebel
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software f... |
9f2228bbaa5b3516834a457d6435224c2f882a91 | 6d8adaaa4d85dfb33f903770d7e5a8ef4c60773f | /ivp/src/uQueryDB/main.cpp | cf6b8b3ebbb4486caf6f1fdda76effcb30b71084 | [] | no_license | moos-ivp/svn-mirror | 3509614f054dbc9d2ecc19d503b3f20298138f66 | d537fa58f7891688bb64220e35c267ae6ef4f476 | refs/heads/master | 2023-06-25T15:10:16.009010 | 2023-06-14T12:45:58 | 2023-06-14T12:45:58 | 82,476,527 | 6 | 9 | null | null | null | null | UTF-8 | C++ | false | false | 5,100 | cpp | main.cpp | /*****************************************************************/
/* NAME: Michael Benjamin */
/* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */
/* FILE: main.cpp */
/* DATE: Dec 29th 2015 Happy Birthday Dan! ... |
ec35fedb760031f028a51c45187d4d1c7ba31798 | be31580024b7fb89884cfc9f7e8b8c4f5af67cfa | /CTDL1/New folder/VC/crt/src/ThreadVirtualProcessor.cpp | 6c5d658417a355338a6b7d017d99212d8bac2042 | [] | no_license | Dat0309/CTDL-GT1 | eebb73a24bd4fecf0ddb8428805017e88e4ad9da | 8b5a7ed4f98e5d553bf3c284cd165ae2bd7c5dcc | refs/heads/main | 2023-06-09T23:04:49.994095 | 2021-06-23T03:34:47 | 2021-06-23T03:34:47 | 379,462,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 933 | cpp | ThreadVirtualProcessor.cpp | // ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
// =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
//
// ThreadVirtualProcessor.cpp
//
// Source file containing the ThreadVirtualProcessor implementation.
//
// =-=-=... |
6ac6d3971d558eb904ce322351b5f9ef15e4f60f | 125ae0adb562478b184bbb35d40f2c43b335415c | /HobartUI/Settings/tHVDisplayListDialog.cpp | 9ce6e5e028997bf09a84fa6fb948c15587154b57 | [] | no_license | dulton/53_hero | ff49ce6096c379931d7649b654c5fa76de4630de | 48057fe05e75f57b500a395e6ff8ff9c06da6895 | refs/heads/master | 2020-02-25T04:19:18.632727 | 2016-05-20T03:44:44 | 2016-05-20T03:44:44 | 62,197,327 | 3 | 2 | null | 2016-06-29T05:11:41 | 2016-06-29T05:11:38 | null | WINDOWS-1252 | C++ | false | false | 20,191 | cpp | tHVDisplayListDialog.cpp | /*****************************************************/
// Copyright © 2007-2012 Navico
// Confidential and proprietary. All rights reserved.
/*****************************************************/
/*!
\class tHobartTimeDialog
\brief Dialog for time and date system settings
*/
#include <StdAfx.h>
#include ... |
2e3421e0fb6be7408640856dfacc24cffe6857b5 | c7ddaad7fa061218d1e547a974fc6a7853e69c7a | /chrome/browser/safe_browsing/safe_browsing_store_sqlite.h | f9d4381180391add7362810e6993c576904932b1 | [
"BSD-3-Clause"
] | permissive | cha63506/chromium-29 | 9adcc9ba819ced9dfe1f5da4807ad10516896142 | 9df275a67dc9038e300bfcad34f634b20dc9e8bc | HEAD | 2017-05-27T06:59:00.183474 | 2011-05-03T04:06:05 | 2011-05-03T04:06:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,855 | h | safe_browsing_store_sqlite.h | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_STORE_SQLITE_H_
#define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_STORE_SQLITE_H_
#pragma once
#i... |
bf36b5488a1498db40dbfbc54a84910ee65fa247 | 6cc8b8de9575e40cd73bbee7c219dcd288350729 | /C++/003 Longest Substring Without Repeating Characters.h | b3cccf718022cf2be3956fb40e9dfa1bde5ab7f3 | [] | no_license | ms5932867/LeetCode | 7ff897d18037b10d470b4fe2f128372e4bdd8b3c | a7b36e8b3c97ab093af515c55628603478c16c39 | refs/heads/master | 2023-04-06T19:59:09.405556 | 2021-04-10T06:01:49 | 2021-04-10T06:01:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 533 | h | 003 Longest Substring Without Repeating Characters.h | class Solution {
public:
int lengthOfLongestSubstring(string s) {
unordered_map<char, bool> r; // whether a character exists in current window s[b, e)
int b = 0, e = 0, m = 0;
while(e < s.length()){
char c = s[e];
if(r[c] == true){
m = max(m, ... |
47b6ba57807ff3a20ba5fec8d59966f1013d34a9 | ffb5a8b5c9e4c6dacaf55c2f5df19a083a6ef021 | /l4/pkg/hello_ipc/client.h | 21cffc1e36a97ac1b6e8bc3e3d9cc4bc5bdc660a | [] | no_license | hermannloose/kpr2009 | aa656ab8ff4d58c83a7ab8bbcbe347d047f69ce7 | 7ea93bf838cc3270a96138897baaec9c30740999 | refs/heads/master | 2021-01-20T10:10:13.777886 | 2010-04-13T14:58:45 | 2010-04-13T14:58:45 | 473,278 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 180 | h | client.h | #ifndef HELLO_CLIENT
#define HELLO_CLIENT
class Hello_client{
public:
Hello_client(char const * name);
void show(char const * str);
private:
char const * name;
};
#endif
|
5a7e4b50077ebc781336f75219c1ad827dacbf61 | 6a56f4e8bfa2da98cfc51a883b7cae01736c3046 | /ovaldi-code-r1804-trunk/src/probes/windows/MetabaseProbe.cpp | a60b81aca2b0f3808b54b3be42d2e2614322d8bb | [] | no_license | tmcclain-taptech/Ovaldi-Win10 | 6b11e495c8d37fd73aae6c0281287cadbc491e59 | 7214d742c66f3df808d70e880ba9dad69cea403d | refs/heads/master | 2021-07-07T09:36:30.776260 | 2019-03-28T19:11:29 | 2019-03-28T19:11:29 | 164,451,763 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 22,378 | cpp | MetabaseProbe.cpp | //
//
//****************************************************************************************//
// Copyright (c) 2002-2014, The MITRE Corporation
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are ... |
7cded7fc244ffc01e8f71b92fcfe94a18f6480c4 | d792df669bc50e43c7ee5494d85c223e97d3b2b4 | /CardGame/Classes/MainScene.h | 9a68dd8d27e0bfb570661add717ede6e07a82d01 | [] | no_license | doridoridoriand/Cocos2d-XBasicSamples | ab4c59d72a79a521b7620eaec7a8bb039bf8aaa1 | 3fb787531d0023fa9ae30d08345c975de8f48867 | refs/heads/master | 2021-01-02T04:54:15.498159 | 2015-09-08T14:18:27 | 2015-09-08T14:18:27 | 41,932,199 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 992 | h | MainScene.h | #ifndef __HELLOWORLD_SCENE_H__
#define __HELLOWORLD_SCENE_H__
#include "cocos2d.h"
// カードの種類を定義
enum CardType {
Clubs = 0,
Diamonds,
Hearts,
Spades
};
// カード
struct Card {
int number;
CardType type;
};
// カードを表示する位置
struct PosIndex {
int x;
int y;
};
class Main : public cocos2d::Lay... |
250e3fd39b239ee55a9950a89838632548f84dff | c3a1700be86b3783ba2a85ada442cf5397f522d6 | /include/Artist_/Artist/Artist.hpp | fafd1613c67eaab55556f905021f3efb4d81b8d2 | [
"MIT"
] | permissive | RageLog/BloodyMoon_openCV | b90d6918452d0d102ca5b5c2f0fb3c24419b49d2 | 4016cbf56bcebd8487f6c7971b83c32da2081a85 | refs/heads/master | 2023-03-19T22:27:39.909273 | 2021-02-27T10:43:33 | 2021-02-27T10:43:33 | 283,479,658 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,953 | hpp | Artist.hpp |
#pragma once
#include <vector>
#include <functional>
#include <thread>
#include <condition_variable>
#include <atomic>
#include <complex>
#include "opencv2/opencv.hpp"
//#include "Artist_export.h"
//ARTIST_EXPORT
namespace cft{
// !
class Picture;
class Artist
{
private:
std::vector<std::shared_... |
d7a328b19cce4ec805f1165e901d1c0ffa36814a | b792f1f9399a098cb4c428314b313ccc57a6c90e | /main.cpp | bb2338f371ca9fbea2b9fa1829f3d2c878b5555a | [] | no_license | una-eif201-progra1-19G01/lab-3-libro-calificaciones | 3d140a43110cbf584938a15ada80afc257c1b30a | 7a23dc14ffd8dff703b2d131fa15423ee8b0219d | refs/heads/master | 2022-02-26T14:09:07.641272 | 2019-09-06T14:08:51 | 2019-09-06T14:08:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,082 | cpp | main.cpp | /*
* =====================================================================================
*
* Filename: main.cpp
*
* Description: Permite mostrar las calificaciones de un curso
*
* Created: 2019-08-12
*
* Author: Maikol Guzman Alan mikeguzman@gmail.com
* Organization: Universid... |
7726128a7846cebb797e2881a78ceab0e8af2975 | 0cf70fbb8ef87c7c25d6ddc7d6e925deef0517ef | /dco_cpp/examples/p1f/main.cpp | d648310d1e7cf7390d38c515a3bbf444834d2be5 | [] | no_license | rshankar1069/MinSurf_Source | ec74684894dbfe92f094c94c1f8b298d27222db6 | 4287978d3523c39f1a8208d0fcec4f3155f16014 | refs/heads/master | 2023-06-14T11:34:12.601327 | 2020-02-28T19:24:00 | 2020-02-28T19:24:00 | 384,783,137 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,918 | cpp | main.cpp | /*
dco/c++ v3.4.1
- Algorithmic Differentiation by Operator Overloading in C++
COPYRIGHT
The Numerical Algorithms Group Limited and
Software and Tools for Computational Engineering @ RWTH Aachen University, 2017
This file is part of dco/c++.
*/
#include <iostream>
using namespace std;
#include "dco.hpp" // defi... |
10ab894f08c9ff98ac0fdef2801c747fbc55d7b9 | 3c078c619096943a2eff75c88ba84fb556107987 | /src/Atema/VulkanRenderer/VulkanPhysicalDevice.cpp | 9e78700c64ba22cf67a4c50781a4f0346a83879c | [
"MIT"
] | permissive | JordiSubirana/ATEMA | d6a778c3b3090456052660ea94fad2c9c20c3c1d | c8e4044f60e1afe4e38ddcf80921ee2e644f46ea | refs/heads/master | 2023-08-31T15:32:50.295905 | 2023-08-24T22:58:05 | 2023-08-24T22:58:05 | 56,619,922 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,665 | cpp | VulkanPhysicalDevice.cpp | /*
Copyright 2022 Jordi SUBIRANA
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute,... |
4bdea4973f67a8ab911062833156b44b38768570 | 67a7a5e7ca68a6ea6a59f688845404b564f3626a | /Practical-06_Task-6.cpp | a95e6701a06d3df3883824b297ec4ca9027384c5 | [] | no_license | Rahulbohra05/opps-with-c- | 2c2dc9a85e5eccc7eb38dd9e0b8144e20aaf2988 | 3bc0bb730688fac703d041a3d7717a711d927acb | refs/heads/main | 2023-08-07T05:28:46.650774 | 2021-10-09T16:08:16 | 2021-10-09T16:08:16 | 415,343,978 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 145 | cpp | Practical-06_Task-6.cpp | #include <iostream>
using namespace std;
int main()
{
string a = "Hello";
cout<<&a<<endl;
a[0] = 'J';
cout<<&a<<endl;
cout<<a<<endl;
return 0;
}
|
cb2b54ae770d1b12e91114398d32885b630b6dc6 | 2cc05662e00ac324ebe1c3d3a6728f250caa6463 | /src/testmain.cpp | 018a4f3ed01f1252160b1f3784b7309dc9c62e7b | [] | no_license | bauer-san/CarND-Unscented-Kalman-Filter-Project | adee89f2e2c8185d5a013b22ee43238104d60552 | ccbef36a9b4d1488d5ad06ec8ae1215f86863f6c | refs/heads/master | 2021-01-20T04:09:00.603713 | 2017-10-28T02:13:02 | 2017-10-28T02:13:02 | 89,648,255 | 0 | 0 | null | 2017-04-27T23:20:33 | 2017-04-27T23:20:33 | null | UTF-8 | C++ | false | false | 5,061 | cpp | testmain.cpp | #include <fstream>
#include <iostream>
#include <sstream>
#include <vector>
#include <stdlib.h>
#include "Eigen/Dense"
#include "ukf.h"
#include "ground_truth_package.h"
#include "measurement_package.h"
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
int main() {
UKF ukf;
/*... |
bbc8c9497459eae805bfcd5e12c13aa6e65e2d4f | 9cfc317d9b4f555ff3148f2f8a7f0dc4c3301322 | /ieee80211_amrr.cpp | b37a20e458a5cc7f4eaf62d28cff12267ec94fdf | [
"BSD-2-Clause"
] | permissive | Avatarchik/VoodooIntel3945 | efb35f95dfbd354323ce0d3b589b3582fb426800 | 912ce8c833705689e84e863657998bceeb4bf5b2 | refs/heads/master | 2020-03-22T13:37:34.290187 | 2016-03-15T20:53:35 | 2016-03-15T20:53:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,844 | cpp | ieee80211_amrr.cpp | /* $NetBSD: ieee80211_amrr.c,v 1.2 2007/12/11 12:40:10 lukem Exp $ */
/* $OpenBSD: ieee80211_amrr.c,v 1.1 2006/06/17 19:07:19 damien Exp $ */
/*-
* Copyright (c) 2006
* Damien Bergamini <damien.bergamini@free.fr>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without f... |
cdce00e58349ff7df9818d1a3680f28acd745dcc | fcb607ca959b11a06903570a80e007f4fb11a7e9 | /game_servers/view_manager_server/msg_handlers/view_manager_frame_handle.h | 869680f170e9bc850a66f0a7347b5ea19c0ef303 | [] | no_license | yeshui01/TRServers | 19d6ec78d61cbadc53f5ace3a9676b8f0735eab5 | 04560b583fb7b17d2f3201f9bb58d6680e7c772c | refs/heads/master | 2021-06-10T03:42:50.877136 | 2021-05-15T08:37:52 | 2021-05-15T08:37:52 | 182,347,435 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,096 | h | view_manager_frame_handle.h | /*=======================================================
# Author : mknight
# Last modified: 2020-02-03 15:36
# Email : 824338670@qq.com
# Filename : view_manager_frame_handle.h
# Description :
# =======================================================*/
#ifndef __TR_VIEW_MANAGER_FRAME_HANDLE_H__
#de... |
aae7c5f59a8f448b827b984feb11d0c52bb27b14 | 939da43a76e3099263f5128a3fea34331280b71f | /Template/ds/fenwick/tests/fenwick_2d_array_max_test.cpp | 2332d7926f95549999604941f1f4c76123f7e80b | [] | no_license | Jialin/ICPC | 3cd24c47741820f3798b133975fbf11183d82b2e | 3d31ffa6d88fb6f280773145b99a154f488e89c9 | refs/heads/master | 2022-06-18T16:00:12.389561 | 2022-06-03T16:09:40 | 2022-06-03T16:09:40 | 173,838,133 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,959 | cpp | fenwick_2d_array_max_test.cpp | #include "gtest/gtest.h"
#define BASE_FENWICK_2D_ARRAY_CALC_PREFIX
#include "ds/fenwick/base_fenwick_2d_array_macros.h"
#include "ds/fenwick/fenwick_2d_array_max.h"
using namespace std;
namespace ds {
TEST(Fenwick2DArrayMax, basic) {
ds::Fenwick2DArrayMax<int, 3, 4> fen;
fen.init(3, 4);
fen.update(1, 2, 10)... |
edc1a95d0d8ad4e105ed0fb9ee6f1bd81d81340b | b2f3d0cadf4e399a9ea1e722fb6b066fb2623dfd | /Stacks/ImplementStackUsingTwoQueues/MakePopOperationCostly.cpp | 6e528a6beb9ef60fc65eacc695cb53ad5e225465 | [] | no_license | Surbhi-Kohli/DSandAlgo | ade89afa3840ca7374f34bc600890003c3b4df5f | 6b539af12b08e9016373ef6bbe6b10022c238eaa | refs/heads/master | 2021-06-27T21:02:07.158580 | 2021-03-08T13:39:07 | 2021-03-08T13:39:07 | 218,819,088 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,690 | cpp | MakePopOperationCostly.cpp | /*
Method 2 (By making pop operation costly)
In push operation, the new element is always enqueued to q1. In pop() operation, if q2 is empty then all the elements except the last, are moved to q2.
Finally the last element is dequeued from q1 and returned.
1. push(s, x) operation:
* Enqueue x to q1 (assuming size of ... |
c913a2a4bff25788fc01b79761cc8ba786e4372f | 2b52337a6248f1f2381d70744f1ecd06d45b7774 | /1316.cpp | 31237647abb2a45c43ed8098aa87b1f9f7b05305 | [] | no_license | myeongjin1115/baekjoon | 5f56aa616b57c2d174d4b23e3a58ce314e03c430 | 83067ee88de5c2b397581ef0f7eb5b280ba65c0c | refs/heads/master | 2022-01-14T11:57:22.152068 | 2021-12-29T01:25:04 | 2021-12-29T01:25:04 | 214,807,354 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 605 | cpp | 1316.cpp | // https://www.acmicpc.net/problem/1316
#include <iostream>
#include <cstring>
using namespace std;
bool isWord(char buffer[]) {
char alpha[26] = { 0 };
char tmp = buffer[0];
alpha[tmp - 'a']++;
int len = strlen(buffer);
for (int i = 1; i < len; i++) {
if (tmp == buffer[i]) continue;
alpha[buffer[i] - 'a']++... |
8c6e59a21c165ffe82c399e2d74a0c07bed49240 | 54ad1876e127f524e72fe537f5051fdcede611b5 | /game.cpp | f2b3fb0dca8fda34ce7eaf33e8e19886194d3666 | [] | no_license | VladislavSputnik/Asteroids | 1ae8d34b5a352f0337db95683ea5aa90c598ac68 | 6ff1616db7833921c4f76bb2d79abdbabb59468c | refs/heads/main | 2023-02-19T22:30:41.308161 | 2021-01-15T15:40:06 | 2021-01-15T15:40:06 | 329,943,772 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,060 | cpp | game.cpp | #include "precomp.h" // include this first in every .cpp file
#include "game.h"
#include "render.h"
#include <ctime>
namespace Tmpl8
{
// -----------------------------------------------------------
// Initialize the application
// -----------------------------------------------------------
void Game::Ini... |
4cf1a0793e79fc85577b1e2aad577ec4fee3fc63 | d80cb32c69b11fbf65cccc003a88f315ab8e5d1b | /New BackEnd/BackEnd/mainwindow.cpp | 6c6dce6a628ddd8216affa31a8f0fef324d77318 | [] | no_license | stan12138/Filer | 13de088bee9ef05c2ddf8533c1b437344714baf7 | cce03e1e6b641e537460c9e32e91ab54689e25fc | refs/heads/master | 2020-03-22T14:25:31.511627 | 2020-03-10T13:14:44 | 2020-03-10T13:14:44 | 140,178,525 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,487 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QDebug>
#include <QByteArray>
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
connect(ui->Btn, &QPushButton::clicked, this, &MainWindow::push1);
connect(ui->Btn2, &QPushButton... |
35bc140835dea9390f9bd9a16f2956d2ab17e634 | d6cd3e78ef5d0a5bc9ca405140116d524fca3ff2 | /MFC_Detection/MFC_DetectionDoc.cpp | 6d3ccee13c497632fc65f450d7a858b8208d273f | [] | no_license | cumthugo/SilkDetect | dde7938299647c0853ebfaf5f8b5c27e5e195cf5 | 4c2e530f65c7cdc05e7b322d846082d80d3343cf | refs/heads/master | 2021-01-19T05:55:26.664520 | 2016-07-11T14:05:40 | 2016-07-11T14:05:40 | 61,722,573 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,331 | cpp | MFC_DetectionDoc.cpp |
// MFC_DetectionDoc.cpp : CMFC_DetectionDoc 类的实现
//
#include "stdafx.h"
#include "MFC_Detection.h"
#include "MFC_DetectionDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CMFC_DetectionDoc
IMPLEMENT_DYNCREATE(CMFC_DetectionDoc, CDocument)
BEGIN_MESSAGE_MAP(CMFC_DetectionDoc, CDocument)
END_MESSAGE_MAP()
/... |
55a1af79d45e23d5d0fc5979368e5504a7834fe3 | 34df9552187628754e0696ffecd53770a8d20c8e | /ProjectPart2/ProjectPart2.ino | e73159b7e8b8af68389b026e2a5219b00e505170 | [] | no_license | jackhueber/Org-Arch | dac79c87d58e35ac7ee9d8a97719cf62b57af71c | e4832664628c01784b85dd71f08bae4438f41759 | refs/heads/master | 2020-12-07T14:18:41.178030 | 2020-01-09T06:18:04 | 2020-01-09T06:18:04 | 232,736,650 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,316 | ino | ProjectPart2.ino | /*
This Simon Says game consists of 4 LED lights that are related to four of the aligned buttons.
After the setup has started the lights will falsh and to begin the game you must select any button.
The rues are to press the buttons in order of the sequence played. A new instruction will be added each round.
When l... |
4b7a4c4343d0c2791994227668beff2f20a555c4 | 24cce1b7889c8e023dd498fda49fcc48d0c852d6 | /stromx/runtime/Counter.cpp | 458b44a072c955b497cf8ec6507fb8abacdde8c4 | [
"Apache-2.0"
] | permissive | Nfreewind/stromx | 4410e72bb2efae9c4a17808d5320c5ecb94edc9d | 5aff42008c576ca4aa9dbb1fdd238dac1d875ece | refs/heads/master | 2020-06-21T00:55:24.687194 | 2018-01-31T20:57:57 | 2018-01-31T20:57:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,692 | cpp | Counter.cpp | /*
* Copyright 2011 Matthias Fuchs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
be6e5a96e1575a29278a232419672ed7849b73fc | 77c3bd9cc21a47f0dc5b2de26b425e9131b78ab3 | /Game301Engine/DemoApp.cpp | 37a7942d17b490dba8f1881e91ae4cf09b7e3531 | [] | no_license | AJPuntillo/Game301Engine | 30772ef6a9ad563a52af2cc4217b5c87f39502c9 | 2406f872e9236caeb04106c213365f57fc574c78 | refs/heads/master | 2021-09-05T08:59:32.135651 | 2018-01-25T21:06:56 | 2018-01-25T21:06:56 | 103,178,629 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 97 | cpp | DemoApp.cpp | #include "DemoApp.h"
using namespace ENGINE;
DemoApp::DemoApp()
{
}
DemoApp::~DemoApp()
{
}
|
c4154a06e9d21b4f6cb17167a035078079ddbb72 | d6a8d896a7100362ab63f1ec2b0f0e4663ea4ff2 | /SAE921-GRP4100-SFML-master/03b-Events/src/main.cpp | 4faf6c43881f045e91c20ec4b40dac8e41817a81 | [] | no_license | Ivok18/SAE-SFML | 7a9b777c59ec110113ea110d2f42c4149ab868ce | 42059d2389b47b52c309de77009b28104d704392 | refs/heads/main | 2023-09-06T05:51:15.889215 | 2021-11-11T14:09:46 | 2021-11-11T14:09:46 | 426,938,103 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,176 | cpp | main.cpp | // SAE921-GRP4100-03a-Events.cpp : Ce fichier contient la fonction 'main'. L'exécution du programme commence et se termine à cet endroit.
//
#include <cmath>
#include <iostream>
#include "SFML/Window.hpp"
#include "SFML/Graphics.hpp"
int main()
{
// Setup
sf::RenderWindow window(sf::VideoMode(800, 600), "... |
e54cfa4e2c95648f78a5a527c1bbf0610395f2c1 | ef4f43c6c22705e8a6f7f9a64ca94b0a7086ca61 | /src/Fractal.h | 67fb0b69bddc53d009ed665ab644e7ac24e6d3ca | [] | no_license | Baczyn/Fractal-Generator---wxWidgets | 069cc34aeb46ecadab64a169408454826b87c569 | 0ad565869eb0b2b32ae6b1cee8c605abf8f5ab63 | refs/heads/master | 2021-01-05T17:10:29.990702 | 2020-02-17T11:10:52 | 2020-02-17T11:10:52 | 241,086,481 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,637 | h | Fractal.h | #pragma once
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <utility>
long int ITERATION_MAX = 30000; /* liczba iteracji - punktow z ktorych sklada sie kazdy fraktal
- im wiecej tym dokladniejszy fraktal, lecz tym wolniej dziala caly program... |
970bc1ac01f4987d3851926b872d0beb7fdd9a80 | 79cdb342fbfee0ac7bea290f143de6ae77dbb0e5 | /spec/test/AdjacentNumbersTest.cpp | 6b3649ad7ef683c9f0b94e383d271ada8f94ea7f | [] | no_license | alexcodreanu86/C_exercises | 3506cc4bc1bf0a82035390dd62c9982a1de2d546 | fb73cb3be0e451ac7b5dc595dc772f59897d4aa1 | refs/heads/master | 2021-01-01T05:45:23.738544 | 2016-06-04T02:17:06 | 2016-06-04T02:17:06 | 57,088,615 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,088 | cpp | AdjacentNumbersTest.cpp | #include "CppUTest/TestHarness.h"
extern "C"
{
#include "AdjacentNumbers.h"
}
TEST_GROUP(AdjacentNumbers) {};
TEST(AdjacentNumbers, returnsProductOfLargestTwoNumbers)
{
char * digits = (char *) "23";
UNSIGNED_LONGS_EQUAL(6, AdjacentNumbers_GetLargest(digits, 2, 2));
}
TEST(AdjacentNumbers, returnsProductOfTwoOu... |
a02f742969fb0ea26d75ca367ba7a008709555d3 | 5321b33859228ea22d26c5daa28ee172f8fdd3d1 | /chap 4/4.17.cpp | 279d868c2b4222e5eec71053ceb8938cee995826 | [] | no_license | biya230/C- | 5006d08e2f8c80e80a83660ee6a9cd14f69e6e06 | 8da25bab188f560b4fc598fc5b9ea6b654dfba4b | refs/heads/master | 2020-11-28T11:29:59.687629 | 2019-12-23T17:57:34 | 2019-12-23T17:57:34 | 229,799,165 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 361 | cpp | 4.17.cpp | #include<iostream>
#include<string>
using namespace std;
main(){
int counter = 1;
int units;
int max= 0;
while(counter <=10){
cout<<"please Enter unites for salesman # "<<counter<<" ";
cin>> units;
if(max< units){
max = units;
}
counter++;
}
cout<<"The maxi... |
eb9c1b5b2f4d58b977695611665da08010588342 | 0335521931f42bcd4b31d9cd3c36a6abec1aad92 | /Sources/Windows/Inputs/TInputContext.h | 73045aecd7bd79f96dad61deeff5df0276de9fab | [] | no_license | rogergithubbing/CapriceForEveryone | 88a048976781c2e8c28b39b3fe33d530890cef4f | ae252a7acd909ea2954640bb778f08c718511c0a | refs/heads/master | 2021-08-18T09:39:26.622545 | 2019-04-14T16:34:26 | 2019-04-14T16:34:26 | 178,580,655 | 2 | 0 | null | null | null | null | ISO-8859-2 | C++ | false | false | 7,913 | h | TInputContext.h | /*
CaPriCe Forever - Amstrad CPC 464/664/6128 emulator
Copyright (C) 2014-2017 by Frédéric Coste
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 3 of the License, o... |
5dee3a380e4a8d2664b9e9d70856299a64428ed8 | e7b1b888338afc330a91c1af6284a14b03f4aaba | /program/votetop30/votetop30.cpp | 0b4c5ff0c2fe5027011ec83dcfcda1224d839c62 | [
"Apache-2.0"
] | permissive | chen15959/vote4LUO | 10b131d77d3aec8534857a774d7b97eb24e08d7f | 9ff23bbb393c0ec03d28bcc83d7363055a8bc486 | refs/heads/master | 2020-03-22T19:21:33.914295 | 2018-07-12T14:17:39 | 2018-07-12T14:17:39 | 140,522,799 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,604 | cpp | votetop30.cpp | // votetop30.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
int main(int argc, char * argv[])
{
if (argc == 4)
{
FILE * fp = fopen(argv[1], "r");
if (fp)
{
char * buffer = (char *)malloc(1048576 * sizeof(char));
fread(buffer, 1, 1048576, fp);
fclose(... |
a136377a74c9a072a330e898fc2bc2daa97b5493 | 01103a7d4c2be369eff107a29574ad6c9cd8f22b | /Container/array.h | e1e8d14c7da3dbd6a8f8c6facc31c915c536cdea | [] | no_license | luffyhwl/ClySTL | c673f0e31a87494621e52ea28c5497e235d54940 | f28cc5c627e125289f34bae50355099da6e4ebfa | refs/heads/master | 2021-05-30T23:52:42.835081 | 2016-03-06T12:52:44 | 2016-03-06T12:52:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,028 | h | array.h | #ifndef array_h
#define array_h
#include <iostream>
#include <memory>
template<typename T,std::size_t N>
class stl_array{
public:
typedef T value_type;
typedef std::size_t size_type;
typedef std::ptrdiff_t difference_type;
typedef value_type& reference;
typedef const value_type& ... |
0881c5ebaa5c55a7d8057023e0df919bcaf4de8c | 282cbec47a2501dd2358dd85173787cbf4112d47 | /Source/Component/WindowComponent/Src/MainWindow.cpp | b9c866b1f4090b03808dbc654dd1c57bcee04b06 | [] | no_license | Colocasia/VisualServerFramework | a3de549af5654a11fc47537e8783e3232ef08e1b | 514eac27bd224994c3b8c614dd891a9c75d8c70e | refs/heads/master | 2021-05-04T19:08:53.837112 | 2017-10-18T07:39:07 | 2017-10-18T07:39:07 | 106,653,509 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 473 | cpp | MainWindow.cpp | // TestDlg.cpp : 实现文件
//
#include "stdafx.h"
#include "WindowComponent.h"
#include "MainWindow.h"
// CTestDlg 对话框
IMPLEMENT_DYNAMIC(MainWindow, CDialog)
MainWindow::MainWindow(CWnd* pParent /*=NULL*/)
: CDialog(MainWindow::IDD, pParent)
{
}
MainWindow::~MainWindow()
{
}
void MainWindow::DoDataExchange(CDataExc... |
0fcd3ba6c5b0da3842b92f98d5660f5e081ed34a | f6ab96101246c8764dc16073cbea72a188a0dc1a | /volume120/12004 - Bubble Sort.cpp | c2dcf948fb287311a75b40362906e044e2a0d62a | [] | no_license | nealwu/UVa | c87ddc8a0bf07a9bd9cadbf88b7389790bc321cb | 10ddd83a00271b0c9c259506aa17d03075850f60 | refs/heads/master | 2020-09-07T18:52:19.352699 | 2019-05-01T09:41:55 | 2019-05-01T09:41:55 | 220,883,015 | 3 | 2 | null | 2019-11-11T02:14:54 | 2019-11-11T02:14:54 | null | UTF-8 | C++ | false | false | 603 | cpp | 12004 - Bubble Sort.cpp | #include <stdio.h>
typedef long long Int64;
struct frac {
Int64 num, den;
void print() {
simpler();
if(den != 1)
printf("%lld/%lld\n", num, den);
else
printf("%lld\n", num);;
}
void simpler() {
Int64 g = gcd(num, den);
num /= g;
den /= g;
}
Int64 gcd(Int64 x, Int64 y) {
if(x == 0) return y;
... |
d18888d59d05d4e67547790e653cd698fc072911 | 1fa28a841de89c45c44e8f8532aaf75bc1b868bf | /06_ModernStorkGame/Texture.h | ae313e33e5d05980c291768670fe3a77a46e3d3c | [
"MIT"
] | permissive | szedenik-adam/Computer-Graphics-Homeworks-BME-2013 | 196083bc6ad4c4f716c2c8a171db0c6672b4f512 | 020769e0842da7483a01d0e6ff9e1f3576ea13b1 | refs/heads/main | 2023-06-29T14:30:47.339172 | 2021-07-04T17:28:09 | 2021-07-04T17:28:09 | 369,323,595 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,816 | h | Texture.h | #pragma once
#ifdef __EMSCRIPTEN__
// For emscripten, instead of using glad we use its built-in support for OpenGL.
#define GLEW_STATIC
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <emscripten.h>
#else
#include <glad/glad.h>
#endif
#include <glm/glm.hpp>
#define Color glm::vec3
class MaterialBase {
sta... |
dd3bad9594c24a71e9a9f3c0ac3567e954de81ca | f38c19dfd0b67d3103bddb04d848e90805a771ed | /Project 6/Truck.cpp | 218460b0e610b11becf2a49a9e997f45f19a8e1e | [] | no_license | maxwellpeck/CS120-Advanced-Programming | 4df5243b676fb9460aac65e9d0b36b40c6d34fb2 | 8b21ec49af18c688033ba53a27cd0e2b26d7a1d4 | refs/heads/master | 2020-12-22T11:26:17.553864 | 2020-01-28T15:42:39 | 2020-01-28T15:42:39 | 236,766,321 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 529 | cpp | Truck.cpp | //
// Created by Maxwell Peck on 3/28/18.
//
#include "Truck.h"
void Truck::calculateMilesPerGallon() {
//Tank Size of 18
milesPerGallon = milesDriven / 9;
std::cout << milesPerGallon << std::endl;
}
Truck::Truck() {
name = "unknown";
hasLights = false;
hasWindows = false;
milesDriven = 0... |
4d8dce7994ca184386cd79e5ade04040aa933d20 | 8d8b618bed48595e2475cfef3ddc502810024026 | /Stack/Infix_To_Postfix.cpp | 83bcff3a6d6927b9911404d9fd05be9e9d8c7d4e | [
"MIT"
] | permissive | AABHINAAV/InterviewPrep | acef002b69be61ca1ff0858559f1b4bd24ce2203 | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | refs/heads/master | 2022-01-09T20:06:41.828170 | 2019-05-21T09:33:52 | 2019-05-21T09:33:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,405 | cpp | Infix_To_Postfix.cpp | //Infix to postfix expression
/*
if operator is alphanumeric then print
else:
if it is ( :
then push
else if ):
then pop till you get ( .and pop ( also
else you get an operator:
pop stack elements till the top has lower or equal priority than the current op
(for left associativity ) [for right asso... |
23f7ef9c0ee7202d29d640982bb32ee25e00b775 | d9cfe5dd9bcbd5e168c780c0f4ede892b9e9df63 | /pfs-types/include/pfs/dimension.hpp | 9b0579706d10787a338ab7d462947e34480e20c1 | [] | no_license | semenovf/archive | c196d326d85524f86ee734adee74b2f090eac6ee | 5bc6d21d072292dedc9aa4d7a281bc75a1663441 | refs/heads/master | 2022-05-30T11:04:17.315475 | 2022-04-27T03:33:56 | 2022-04-27T03:33:56 | 130,155,339 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,484 | hpp | dimension.hpp | /*
* size.hpp
*
* Created on: Mar 29, 2016
* Author: wladt
*/
#ifndef __PFS_DIMENSION_HPP__
#define __PFS_DIMENSION_HPP__
namespace pfs {
template <typename T, T ZeroValue = T(0)>
class dimension
{
private:
T _w, _h;
public:
dimension ()
: _w(ZeroValue), _h(ZeroValue)
{}
dimensio... |
ece4ff4ebb803395c743e8c7fc6d4bd6640a21cb | 0ea9ee47a93a324d9d4d151e4e6c2210b81667f7 | /IFRN/LIG_4 - 2014/remontagem/lig4_tabuleiro2.cpp | 4a2756a8a0edb1cb3fccffe51fe3198c93f63071 | [] | no_license | markleylopes/ProjetosAcademicos | 983c6598f1a53156d0e2f5ec2a47977572d28308 | fdbacb4a59e7f1c910ea12107361e55bc9120a6a | refs/heads/master | 2020-03-29T22:47:21.013237 | 2018-09-26T16:25:36 | 2018-09-26T16:25:36 | 150,440,503 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 873 | cpp | lig4_tabuleiro2.cpp | #include <iostream>
#include <fstream>
using namespace std;
string t[7][10];
void zerar()
{
for(int i=0; i<7; i++)
{
for(int j=0; j<10; j++)
{
t[i][j]=" ";
}
}
}
void tab()
{
cout<<" 1 2 3 4 5 6 7 8 9 10";
for(int i=0; i<7 ;i++)
{
f... |
f1c99ea28e2c7355ac4bf5199831d61d04c1f2db | c170bc90f6cc3b89a523d1cd6c0cdb0ae7a5142f | /c++.learn/day06/30.cpp | 051718be351715e2c705d6a2ec62030029e88c18 | [] | no_license | sheldon2015/reading | 2a43e7c7e9d0c0d3aee34de69ab0196b0ae86acd | 903de7d232ff6490dfc357f6712d90019f0394ed | refs/heads/master | 2020-05-09T22:10:47.592805 | 2019-04-26T07:02:04 | 2019-04-26T07:02:04 | 181,458,846 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 573 | cpp | 30.cpp | #include <iostream>
#include <fstream>
using std::cerr;
using std::cout;
using std::endl;
using std::ifstream;
using std::ofstream;
using std::string;
int main()
{
//* 输出流
ofstream outf("Sample.dat");
if (!outf)
{
cerr << "Uh oh, Sample.dat could not be opened for writing!" << endl;
exit(1);
}
ou... |
e588da9270f8cde2385591b681f1886c92ea3ca9 | d4e40d56993c54c6fe4e3dd0debd454f700963d0 | /libplatformconfig/ConfigParser.h | 7aadc8f223693d739be1c691ba68eb93bc044e5d | [
"MIT",
"Apache-2.0"
] | permissive | Descendant-XI/hardware_qcom-caf_sm8150_media | 12ac73650df72c10e3eaf40c352a51d3c621540e | 3a2ffe5b82e98201b30c2589fea963fd07f35003 | refs/heads/eleven-staging-sm8150 | 2023-03-03T11:18:09.752356 | 2015-02-24T03:59:57 | 2020-12-07T14:02:06 | 334,302,686 | 1 | 2 | null | 2021-02-04T06:35:13 | 2021-01-30T01:27:14 | C++ | UTF-8 | C++ | false | false | 2,692 | h | ConfigParser.h | /*
* Copyright (c) 2017 - 2018, The Linux Foundation. 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, ... |
9e49732a713390734e525912104d581f4c50f0dc | a52ca01fcd1250ce5dbbdd969f85cbd72255d69f | /EngineUAB/Code/GUI/DebugGUIManager.cpp | 45befe4f97ae30194ff7e3f1503719646da98c5f | [] | no_license | kusku/red-forest | b089c8a76ed211ec126e07a32cd5c2cee90f6c12 | 24a104f06cce6031a66a6a920c0c170d059f38fb | refs/heads/master | 2021-01-10T08:00:46.367896 | 2012-10-26T02:35:34 | 2012-10-26T02:35:34 | 53,213,277 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,313 | cpp | DebugGUIManager.cpp | #include "DebugGUIManager.h"
#include "RenderManager.h"
#include "Fonts\FontManager.h"
#include "DebugOptions\DebugOptions.h"
#include "DebugInfo\DebugRender.h"
#include "LogRender\LogRender.h"
#include "Stadistics\Stadistics.h"
#include "Utils\Timer.h"
#include "Console\Console.h"
#include "Modifiers\Modifier... |
1afacdc7bf52cf190a026a19a6433f762a0fc36d | 6233b3a70ab5d3d78338361b99788772fbc67b2c | /MonthConsumeList.cpp | 75d2eb5622f87529a78d6d384a497d40439cb70a | [] | no_license | Aden2018/hospital-2 | c20a8e96deff4a81eba391b4bc707de5765cd18b | dcc38c0705ac1933c7fed0d5f5b815a541e5dd85 | refs/heads/master | 2021-05-31T12:39:49.665038 | 2016-05-12T11:00:25 | 2016-05-12T11:00:25 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 8,714 | cpp | MonthConsumeList.cpp | // MonthConsumeList.cpp: implementation of the CMonthConsumeList class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "his2.h"
#include "MonthConsumeList.h"
#include "progressIndicate.h"
#include "chartView.h"
#include "selectView.h"
#include "manMedused.h"
#inc... |
9ce9487e3007ae720e2e0e90852030ddae70e100 | 63c637fc2773ef46cd22e08e3334121512c31074 | /3wkSeries/Day1/ELBOW_CASES/elbow_quad/36/phi | 8bd8ac9362036da8825cf0c79bc8f0493aee9fd3 | [] | no_license | asvogel/OpenFOAMEducation | 438f811ad47631a414f6016e643dd12792613828 | a1cf886fb6f9759eada7ecc34e62f97037ffd0e5 | refs/heads/main | 2023-09-03T17:26:24.525385 | 2021-11-05T18:08:49 | 2021-11-05T18:08:49 | 425,034,654 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 41,370 | phi | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 9
\\/ M anipulation |
\*-------... | |
8e9594318fe56f0bcf7d88e9dc0cd2678cbe8c8e | e49fdfeb76b89f40566eb02eea8b8fb1a6c7f778 | /my_traject_main.cpp | 191a83d53a07ad7e0de4d0da25add83cd959e5dd | [] | no_license | lhc610github/trajectory_test | c1766cf76e760ff3252399adc85cb05c8220864e | c5e8cb7ba96d2dcd3aedaaf30e1992b68d15783c | refs/heads/master | 2021-01-22T10:51:12.961817 | 2017-06-14T09:11:19 | 2017-06-14T09:11:19 | 92,658,060 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,941 | cpp | my_traject_main.cpp | #include "my_traject_main.h"
int
main(int argc, char **argv)
{
int order = 6;
int m = 5;
int n = 4;
float mu_r = 1;
float mu_psi = 1;
int k_r = 4;
int k_psi = 2;
float t_index[6] = {0,2,4,6,8,10};
float ** keyframe;
keyframe = new float *[6];
for(int i=0;i<6;i++)
{
keyframe[i]... |
5b6649077269831ebd99399f7d5e2aa0dc002938 | 228c7003d5d2bd0d9f8fb0b24be2c946a204f0d6 | /algorithms/217.Contains_Duplicate/sort_nlogn.cpp | 86a5846e63af75a1ad5648218ad1ac2530248c90 | [] | no_license | shitangdama/leetcode | ddb94acc91a67116215eefc4f688967c6848d87f | f8c2db40f74b2e7dd657b7f45c3922d33673bb46 | refs/heads/master | 2020-05-03T20:04:49.931596 | 2020-03-04T00:10:52 | 2020-03-04T00:10:52 | 33,526,926 | 9 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 600 | cpp | sort_nlogn.cpp | <<<<<<< HEAD
#include <bits/stdc++.h>
using namespace std;
class Solution {
public:
bool containsDuplicate(vector<int>& nums) {
sort(nums.begin(), nums.end());
return unique(nums.begin(), nums.end()) != nums.end();
}
};
int main() {
return 0;
}
=======
#include <bits/stdc++.h>
using na... |
885995a918d058bca76dbf36eaf3dd00e038090f | 5f4d46c8034f71657cb02b474ec4b6fad3d49012 | /C++/ACM/PAT/第四题/第四题/源1.cpp | 5ae411b3a6ebc6b9b8a10be55f951f9d73a04363 | [] | no_license | GaryCao97/CodeWarehouse | 516c3da660070a574be40e34e290345c54fef692 | d6290d0f115c8dd350844bfe697abc07998a9f4c | refs/heads/master | 2020-03-31T19:52:02.786213 | 2018-10-12T08:29:46 | 2018-10-12T08:29:46 | 152,515,319 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 716 | cpp | 源1.cpp | #include <iostream>
#include <cstring>
typedef struct Student{
char name[11];
char num[11];
int score;
}Student;
int main(){
int i, n;
struct Student Student[2];
Student[0].score = -1;
Student[1].score = 101;
scanf("%d", &n);
for (i = 0; i<n; i++){
char name[11], num[11];
int score;
scanf("%s %s %d", nam... |
874f765931e761ed8cf94361f42e7d81a3b5ea18 | 8d33183047688856ca9b260784205e9b7be482d3 | /lab3/List.h | fea49a2e9f6a67374331b5faa9809c4c96b74a69 | [] | no_license | sanyo678/lab3 | 56dec685ec0c4259c7bcafa4faec464c01cc36a1 | 68fa7c25bbae3d36b07064eb8ff41ff60a3c5d1f | refs/heads/master | 2021-01-22T04:40:31.666768 | 2014-03-21T06:01:51 | 2014-03-21T06:01:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 210 | h | List.h | #pragma once
#include "listNode.h"
class List
{
public:
listNode* head;
listNode* tail;
int length;
void insert(listNode*,int);
int get(int);
void remove(int);
List(void);
~List(void);
};
|
56fc34738f71812c5ba0d08c43cc6ad7c70a1eb0 | 84dd296283499ea8f59b19c13238474bffc45926 | /Антон Целищев/Task 2/2.9.cpp | 9e8b454fe8f35a6a2c83f8907b2056af98be0137 | [] | no_license | ElenaSmirnova/1c2013 | e526f9aa2703a4efd95809cbd555627fe5cf4f86 | 3659c081634a93e2c005ae618efcc3f0df3708ae | refs/heads/master | 2016-09-06T04:51:38.422949 | 2014-05-30T10:45:46 | 2014-05-30T10:45:46 | 32,135,801 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,009 | cpp | 2.9.cpp | #include <math.h>
#include <time.h>
#include <iostream>
using namespace std;
struct list
{
list *next;
int data;
};
void inputkey (list *&l)
{
list *c = 0;
for (int i = 0; i < 10; i++)
{
int x;
scanf("%d", &x);
c = new list();
c->next = l;
c->data = x;
l = c;... |
44847bd13506fada91456782d9ae69b76a20a5a3 | a5e4eb23de50cb4726c5810a86dc2a601028493a | /project/demo/lib_test/StatementGrammarDemo.cpp | 379e12c234d97cf6e11a8f89bd15bffd7fbb9c24 | [] | no_license | mishakeryta/myInterpreter | 08379bc856d73113eb459e3cc69544f83e77ec55 | d73493b39a0ddd204b48f99d74b48ac230c89a04 | refs/heads/master | 2020-05-05T07:44:40.110989 | 2019-05-06T19:15:24 | 2019-05-06T19:15:24 | 179,836,154 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 952 | cpp | StatementGrammarDemo.cpp |
#include "grammar/StatementGrammar.hpp"
#include "grammar/LiteralGrammar.hpp"
#include "ast/helper/ExpressionASTPrinter.hpp"
#include "ast/helper/StatementASTPrinter.hpp"
#include <boost/variant/apply_visitor.hpp>
#include "ast/StatementAST.hpp"
#include <iostream>
#include <vector>
#include <string>
using namespace... |
c8489c8ac20a1145c76c8447d0fbd1be83e36c12 | a4f986e20b5973514582c586c26816a45ec21092 | /main.cpp | 00683e6233e96d2dfcb4f42017206d613b2d669a | [] | no_license | flack3r/chip8emu | bb7686642d9ab2a07fc07db12c2b57a8c9b48a23 | 7b0ddce36e6e303c4abc2e0c4de49f45d93f8afc | refs/heads/master | 2020-03-26T02:57:08.759511 | 2019-04-21T16:36:10 | 2019-04-21T16:36:10 | 144,432,550 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 323 | cpp | main.cpp | #include <stdio.h>
#include <iostream>
#include "Cpu.h"
#include "Chip8.h"
using namespace std;
int main() {
const char* fileName = "invaders";
printf("Easy Chip8 emulater\n");
Cpu* cpu = new Chip8CPU();
if (cpu->loadProgram(fileName) < 0) {
return -1;
}
cpu->run();
printf("done\n");
delete cpu;
return 0... |
b5111499b1370f58495eac281d0899ae223f3b3a | 3216cfbd95c57824e96c076e40aeba49038db4b6 | /CFblocktowerD/main.cpp | 98057e3f67e7566864098c8450f43eadab70e9ee | [] | no_license | ciupmeister/Surse | 178f1ce7ea09ff380361941c7d851038ee4f4a93 | a44208b78532f6d59cd6b9525da510150c21899d | refs/heads/master | 2021-05-10T12:09:51.110482 | 2014-02-18T15:55:35 | 2014-02-18T15:55:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 996 | cpp | main.cpp | #include <iostream>
#include <vector>
#define DN 505
using namespace std;
int n,m,dx[]={1,0,-1,0},dy[]={0,1,0,-1},pre[DN][DN];
char mt[DN][DN];
vector<char> t;
vector<int> x,y;
int ok(int i,int j) {
return (i>=0 && j>=0 && i<n && j<m);
}
void dfs(int a,int b) {
mt[a][b]='B';
t.push_back('B'); x.push_back(a); y... |
0ac8f83f90fc1a3fd6c687b58226c221ab8ecbb0 | 62a40dce754e000ba7428574a04550cf33a3b825 | /y/y/io/Reader.h | 6981eb8e335a2157f971c16f17b47f7e4601cab2 | [
"MIT"
] | permissive | lineCode/Yave | 21dfc62c6204254fb3e04af44d63a96028756ec4 | 44b8cb6a474671251e3ef2a63cf856aa10360eee | refs/heads/master | 2020-05-19T22:25:12.616794 | 2019-05-06T01:15:34 | 2019-05-06T01:15:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,419 | h | Reader.h | /*******************************
Copyright (c) 2016-2019 Grégoire Angerand
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy... |
54c79fc0314c23c16fd4d5dce51e4cf499f5fa5c | 776f5892f1395bb8d30731a60466e4c756a44c8c | /contests/abc127/abc127_b/main.cc | e7e4ad996640b7cee602513478e068704a023baf | [] | no_license | kkishi/atcoder | fae494af4b47a9f39f05e7536e93d5c4dd21555b | f21d22095699dbf064c0d084a5ce5a09a252dc6b | refs/heads/master | 2023-08-31T18:37:13.293499 | 2023-08-27T21:33:43 | 2023-08-27T21:33:43 | 264,760,383 | 0 | 0 | null | 2023-03-10T05:24:07 | 2020-05-17T21:30:14 | C++ | UTF-8 | C++ | false | false | 130 | cc | main.cc | #include <bits/stdc++.h>
#include "atcoder.h"
void Main() {
ints(r, d, x);
rep(y, 10) {
x = x * r - d;
wt(x);
}
}
|
5b003f9cb380c333a2fca0629dd7b7b237ab33b5 | a512ac4454eac4d2ffc7c0484269ae33522425bd | /trtlab/core/tests/test_common.cc | cdedea73e0361ec6d79bbe86dda76b4db5045255 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | junkin/tensorrt-laboratory | 443a6ac2c4ed2b81695f92bc36afdf3b6f696e2f | 33b6fdf2935cd49944ae7d16601cc58f6199cd49 | refs/heads/v2 | 2023-06-18T23:10:45.637265 | 2020-09-30T09:14:56 | 2020-09-30T09:14:56 | 386,116,417 | 0 | 0 | BSD-3-Clause | 2021-07-15T00:45:56 | 2021-07-15T00:45:56 | null | UTF-8 | C++ | false | false | 3,687 | cc | test_common.cc |
#include "test_common.h"
#include <glog/logging.h>
std::size_t log_tracker::node_total = 0;
std::size_t log_tracker::node_count = 0;
void TrackedTest::SetUp()
{
ASSERT_EQ(log_tracker::node_total, 0);
ASSERT_EQ(log_tracker::node_count, 0);
}
void TrackedTest::TearDown()
{
DVLOG(1) << "^^^ deallocation o... |
6f0c36b638bdb3b85d1814f08cc01e7d12dc9701 | 960e01fbaeefa4cd54d83b46ae04999710e2b00c | /输出小数点后2位.cpp | e8f89b1af3fe7772b966c47fb52c38ad2ee48e89 | [] | no_license | 971902686/AT89C51 | 8b33948181f951b7ccf46d985fd9ccdcf507aebb | bd7f1c5d6ae357605b04cdd550b9797f335312a1 | refs/heads/main | 2023-01-06T23:41:58.875708 | 2020-10-28T12:54:23 | 2020-10-28T12:54:23 | 308,008,131 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 332 | cpp | 输出小数点后2位.cpp | #include<stdio.h>
int main()
{
int i,j;
scanf("%d,%d",&i,&j);
float h;
h=(float) (i*100/j)/100; /* 15/4=3.75,而15和4为int,相除为int,会强制取整,
但*100后取整时就带上了2位小数,再除以100取
float型,就出小数点后2位*/
printf("%.2f",h);
} |
46f14241c3111b73214e785bd13e0407af0aa72b | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2463486_1/C++/Toby/p3.cpp | c069dcb1dd16c3189a208181433089397fed87fe | [] | 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 | 3,603 | cpp | p3.cpp | #include <iostream>
#include <cstring>
using namespace std;
#define LEN_MAX 120
class Num {
public:
int v[LEN_MAX];
int len;
Num() {
memset(v, 0, sizeof(v));
len = 0;
}
Num(const string &value) {
Set(value);
}
void Set(const string &value) {
memset(v, 0,... |
6881f58751e292fee5cf33de3615fbc1f9572364 | cd8fce255f404d3e0d646b6863a25dfc03f1579a | /swig_mwe/is_even.cpp | 4dd897b34340cfc68b2054403574655acfd33bb0 | [] | no_license | NAThompson/SWIGExamples | ca941aab6069e87985397bccde6ab42530a908f1 | f2355ce9104f9a3df822711140c73a6bf1c0c800 | refs/heads/master | 2020-05-16T23:03:28.157250 | 2015-07-21T22:25:35 | 2015-07-21T22:25:35 | 35,912,259 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 112 | cpp | is_even.cpp | #include "is_even.hpp"
bool is_even(int n)
{
if(n & 1)
{
return false;
}
return true;
}
|
f9841306d07b094f875dd032d2c987adc64faec7 | 9852671b6638cabfefec1453e93c98826c41af21 | /views/map/headers/mapwidget.h | 327526b0df4e3c7dbd2f7d991d3ae3208ae2de8d | [
"MIT"
] | permissive | andredebuisne/AIS | ee746aab5a70fc3180a725206c80dab9ea8273ca | 5bc23036ad68c811e626b66d5877c806680bcf35 | refs/heads/master | 2021-09-01T02:49:49.476337 | 2017-12-24T11:44:21 | 2017-12-24T11:44:21 | 115,005,154 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 218 | h | mapwidget.h | #ifndef MAPWIDGET_H
#define MAPWIDGET_H
#include <QWidget>
class MapWidget : public QWidget
{
Q_OBJECT
public:
explicit MapWidget(QWidget *parent = nullptr);
signals:
public slots:
};
#endif // MAPWIDGET_H |
a2c4ff4e920cbe61115df19854c353f771181f7f | 8357f29e132e386d44f6c645695d1ed3c34c52da | /pacman/source/leader_boared.cpp | fbbdcf29dab72bd6635dcdec4f54be7f69cc1ad5 | [
"Apache-2.0"
] | permissive | LEEFEI-aka-DELEE/simple-Pacman-program | cdb4e402b725429717a68ce4ef6850f9119f8320 | cca26c76d8ec6e06fa85d126f167e7fc745934e4 | refs/heads/master | 2022-06-17T23:25:48.518642 | 2020-05-16T11:52:53 | 2020-05-16T11:52:53 | 264,425,860 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 566 | cpp | leader_boared.cpp | #include"leader_boared.h"
void read_in_leaderboard(FILE *oldlea,leaderboard_top10 *leainfo)
{
int i = 0;
while(!feof(oldlea))
{
fscanf(oldlea,"%s %d",leainfo->top10[i].play_name,&leainfo->top10[i].score);
leainfo->top10[i].uesd = 1;
leainfo->player_on_board ++;
i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.