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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7922504f2b32a7a3ed6697daadb12d4e7063609b | 62f68894747c3653ebc349bf1fa97a28d41ea75f | /A-dragons/main.cpp | a7011ed51284e6cfbc01d495e762c67b347539a3 | [] | no_license | AryanRaj315/CompetitiveProgrammingSolutions | 017329cd0cfe32b636b4ef95e2585863854308f5 | 641561db53ad54c326d813f53e54a914963793a5 | refs/heads/master | 2022-11-14T12:25:48.149561 | 2020-07-08T05:07:48 | 2020-07-08T05:07:48 | 232,072,674 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 985 | cpp | main.cpp | #include<bits/stdc++.h>
using namespace std;
#define loop(i, start, end) for(int i = start; i <= end; i++)
#define ll long long int
#define arrayInput(arr, n) loop(i, 0, n-1){ cin >> arr[i];}
#define arrayDisplay(arr, n) loop(i, 0, n-1){ cout << arr[i] << " ";}
#define GODSPEED ios_base::sync_with_stdio(false);cin.tie... |
34043d757995a53ee9fd9f9e1257f930ad7e80d0 | 401e2729d36c466f0306a60cebc310ab34321180 | /tests/GraphGeneratorFile/GraphGeneratorFileTest.cpp | 645d62537b5f3ad9a49675381dc51cd9238c1d5d | [] | no_license | hlscalon/TrabalhoTeoriaGrafos | 073f83cf80ca98279280dbf6c315449dcf70316c | 2b19c08276198ee45ad4de823d7e490354117cb7 | refs/heads/master | 2021-06-09T03:49:52.219127 | 2016-12-11T22:16:39 | 2016-12-11T22:16:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 189 | cpp | GraphGeneratorFileTest.cpp | #include <iostream>
#include "../../src/GraphGeneratorFile.hpp"
int main()
{
GraphGeneratorFile g1{"graph1.g"};
std::cout << "graph1\n";
g1.getGraph().printGraphMatrix();
return 0;
} |
99a335196fd66fb6a183a4743adf6e9c79a9bfa7 | 3e24f87bb9ffc5c733b98858ae380c267869e7ce | /ios/PSPClientKit/bridge/generated-src/cpp/clientsdk/VideoFrameOrientation.hpp | 60efc9b003e4ffb935f4634c528e2ae6d1fd3396 | [] | no_license | proximax-storage/sirius-stream-client-mobile-sdk | b051892d5e71f28f5d12248654b0ef77596c1a8d | 7544449c5d09e003034a80dc76282743e12a787c | refs/heads/master | 2022-04-08T23:37:02.937024 | 2020-03-03T14:57:05 | 2020-03-03T14:57:05 | 195,406,885 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 525 | hpp | VideoFrameOrientation.hpp | // AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from VideoStreamer.djinni
#pragma once
#include <functional>
namespace clientsdk {
enum class VideoFrameOrientation : int {
ROTATE0,
ROTATE90,
ROTATE180,
ROTATE270,
};
} // namespace clientsdk
namespace std {
template <>
str... |
bb9b0ed551830ee0028d4ccbd7589e6fc275d4b3 | d0f57a1f699f5dea4a8c8aa4fd9b67a6b9141cfc | /Competitions/DeterminationOfSeries/DeterminationOfSeries/main.cpp | d05ad792a901223098e451651576749c643b293e | [] | no_license | kawer/Competitive_Programming | 315ebe86a078f99caba64ada5ffc6f5b35d54c30 | d0441532c28ba399a7fa66c545c6df397b7abea0 | refs/heads/master | 2021-01-12T12:27:15.019533 | 2016-11-02T20:48:51 | 2016-11-02T20:48:51 | 72,497,551 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 775 | cpp | main.cpp | ////
//// main.cpp
//// Determinf0tionOfSeries
////
//// Created by Lazaro Kawer on 10/24/16.
//// Copyright © 2016 Kawer. All rights reserved.
////
//
#include <iostream>
#include <math.h>
using namespace std;
int main(int argc, const char * argv[]) {
int f0, f1, f2;
while(cin >> f0 >> f1 >> f2) {
... |
72d121758f208d8dfd0e2ea38b1a29ac72bb64f8 | f43f7b91b4f782e463349f61f8fe63fafef94a88 | /src/keva_lite.hpp | 2693876f125c5da52f080a8efb6a2171d94fed6b | [] | no_license | lawben/keva-lite | 22ae66350c073317b8b1aac391bf92c5183841e4 | 9f1d1551a32b4640ac16dfc3bfe113846e92127d | refs/heads/master | 2021-09-10T14:41:24.587953 | 2018-03-27T23:45:01 | 2018-03-27T23:45:01 | 118,145,239 | 4 | 0 | null | 2018-03-27T23:45:02 | 2018-01-19T15:53:05 | C++ | UTF-8 | C++ | false | false | 1,384 | hpp | keva_lite.hpp | #pragma once
#include <sstream>
#include <string>
#include "db_manager.hpp"
#include "utils.hpp"
namespace keva {
template <typename K, typename V>
class KevaLite : public Noncopyable {
public:
KevaLite();
explicit KevaLite(std::string db_file_name);
V get(const K& key);
void put(const K& key, const V& v... |
37e810286338ea596d1a35c2f5a09a81b9987ee4 | 63a9fdb34e9aa87102c9ffef4fcf2f8925d17656 | /ResponsiveGrassDemo/src/BoundingBox.h | bea856b76130b9961212706490bc6f8245aebbd0 | [
"BSD-3-Clause"
] | permissive | klejah/ResponsiveGrassDemo | 3ab3fd31a67df5e6afca46377e6535585dcaecaa | 6ce514717467acc80fd965a6f7695d5151ba8c03 | refs/heads/master | 2021-01-12T08:46:39.984454 | 2017-02-22T02:21:21 | 2017-02-22T02:21:21 | 76,689,713 | 12 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,366 | h | BoundingBox.h | /**
* (c) Klemens Jahrmann
* klemens.jahrmann@net1220.at
*/
#ifndef BOUNDINGBOX_H
#define BOUNDINGBOX_H
#include "Common.h"
#include "BoundingObject.h"
#include "Plane.h"
#include "Camera.h"
class BoundingBox : public BoundingObject
{
public:
BoundingBox();
BoundingBox(float xMin, float xMax, float yMin, float yMa... |
4b6853bfcdbf70a4cf59ca2e34a4e9e3e6d0a663 | 6815633d4f1d06c8753da6aba85abbdf6a7b0aad | /Memo/Ini.cpp | ecff7aa99718e550728f0d961c659d0901860aff | [] | no_license | XiaofengCode/Memo | 73f591076b0972098209d716cc4ecb16a6975886 | 9684533f3fa9c1b6f66bc78067aa703203231cab | refs/heads/master | 2022-11-19T12:55:28.838204 | 2020-07-14T04:55:21 | 2020-07-14T04:55:21 | 279,485,597 | 1 | 1 | null | null | null | null | ISO-8859-15 | C++ | false | false | 3,436 | cpp | Ini.cpp | // Ini.cpp: implementation of the CIni class.
// Author: Bjarke Viksøe
//
// Description:
// Thin wrapper around the Win32 Windows Profile (Ini-file configuration)
// interface.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Ini.h"
#ifdef _DEBUG
#undef THIS_FIL... |
b39f0827a581b2d0c5150204a2ea8030914d6e1a | fe33e825f4bc31370e50cebcd322b5671eb5c113 | /src/Selections/QCDConversionsAsymJetsSelection.cpp | bc2757e64920cd74ed593d2c7e898e74bb22d097 | [
"Apache-2.0"
] | permissive | jjacob/AnalysisSoftware | 8acbfbc00639da2829b38977fea87bf176d046bc | 670513bcde9c3df46077f906246e912627ee251a | refs/heads/master | 2020-02-26T17:10:09.327556 | 2015-05-05T10:46:40 | 2015-05-05T10:47:17 | 7,603,134 | 0 | 0 | null | 2013-05-03T22:02:57 | 2013-01-14T11:30:13 | C++ | UTF-8 | C++ | false | false | 674 | cpp | QCDConversionsAsymJetsSelection.cpp | /*
* QCDEPlusJetsPlusMETConversionSelection.cpp
*
* Created on: 17 Apr 2012
* Author: kreczko
*/
#include "../../interface/Selections/QCDConversionsAsymJetsSelection.h"
namespace BAT {
QCDConversionsAsymJetsSelection::QCDConversionsAsymJetsSelection(unsigned int numberOfSelectionSteps) :
QCDConversionsS... |
a06d25fb4ba81acd377639fe43ceb5e05d1bd6fa | e0bf5836e4f0d75b28b1f787446e655cdeeb8b03 | /files/chapd.cpp | 709d64142c744d67fa5dc8135b260d8b4f37651b | [] | no_license | arunnsit/allcodes | 3f0b73facdee06e802455c6c3fb5de7baae702c2 | 5e6a8bf3883d0c5f67dfa7cc3dc026dbb4c63a71 | refs/heads/master | 2021-01-10T13:58:24.900593 | 2017-10-03T18:11:34 | 2017-10-03T18:11:34 | 50,598,937 | 0 | 2 | null | 2019-09-30T20:16:32 | 2016-01-28T17:06:03 | C++ | UTF-8 | C++ | false | false | 440 | cpp | chapd.cpp | #include<stdio.h>
long long int gcd(long long int a,long long int b){
if(b==0)return a;
else return gcd(b,a%b);
}
int main(){
int t;
scanf("%d",&t);
while(t--){
long long int a,b,x;
scanf("%lld %lld",&a,&b);
while(b!=1){
x=gcd(a,b);
if(x==... |
34b9112884aa1c17294f844fe7c7dc643e3c4c98 | cdac9db245781ea60b9c5b56e1ae03ab7422613d | /q3_inheritance/couples.cpp | cbe76c99844e2a75dbea45501e7763b3723f08fb | [] | no_license | PPL-IIITA/ppl-assignment-bd96 | 308035efa0a1ca57ce0e2b6fcd71d7d5241da221 | 6b50abb93b4ac2bf6dd9f1a8bc1a642be279732d | refs/heads/master | 2021-01-21T06:24:22.449380 | 2017-04-09T22:53:38 | 2017-04-09T22:53:38 | 83,225,560 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,294 | cpp | couples.cpp | #include <bits/stdc++.h>
#include "couples.hpp"
using namespace std;
void couples:: formcouples(couples c[], boy B[], girl G[], int number_of_boys, int number_of_girls, int *count)
{
int i,j;
int max,f;
for ( i = 1; i <= number_of_girls; i++ ) {
//cout << "Girl " << i <<" is " << G[i].committed << endl;
i... |
8bf50355bfb2373a358188c19bda3ebef3892ba4 | 183ef6fe7cf0cd78e823d9d63ff97882e83e272f | /hevent.h | 4b8746e4cd7f04ca691aa4efc66b74a383590054 | [] | no_license | israel-fl/SimpleWeddingPlanner | 155da4726a6df8156b7ba615726c2cd9326e9aa8 | 2bcf9116632028d0ca01c220cbb4ab519daa0035 | refs/heads/master | 2020-04-11T11:45:47.531890 | 2015-10-19T08:51:52 | 2015-10-19T08:51:52 | 44,522,487 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 871 | h | hevent.h | #pragma once
#include <string>
#include <ostream>
#include "dateconv.h"
class HEvent
{
public:
// Parametrized Constructor
HEvent(unsigned long long& time, std::string& name,
std::string& type);
unsigned long long epochTime;
std::string holidayName;
std::string holidayType;
unsigned int year;
unsigned int m... |
be1a9638d825d4373bb8d94f402ef4945a8939d6 | 417bfea5338c7bf9f36ddac28767cdfdc02a1ed3 | /swarmros/src/swarmros/bridge/TelemetryForwarder.cpp | ee59edbe0d293eeef89ff59b0b5974c0941ee062 | [
"Apache-2.0"
] | permissive | cpswarm/swarmio | 02f9d5e174b8c1ff22984d9538fe8fa314564cb9 | 798ae469ec48b958f9e88cf89e4f88b3f5b519fe | refs/heads/master | 2022-05-09T23:58:44.159895 | 2022-04-21T09:23:32 | 2022-04-21T09:23:32 | 173,924,826 | 7 | 1 | Apache-2.0 | 2019-11-07T11:58:34 | 2019-03-05T10:23:27 | C++ | UTF-8 | C++ | false | false | 1,700 | cpp | TelemetryForwarder.cpp | #include <swarmros/bridge/TelemetryForwarder.h>
#include <swarmros/bridge/MessageMismatchException.h>
#include <swarmros/introspection/VariantMessage.h>
using namespace swarmros;
using namespace swarmros::bridge;
void TelemetryForwarder::UpdateReceived(const introspection::VariantMessage::ConstPtr& message)
{
if ... |
8bbf4210be70c9603ce6d018049d9fa00e8f298d | afb7006e47e70c1deb2ddb205f06eaf67de3df72 | /third_party/wasm2c/src/sha256.cc | 6ecdb2df1f5a717eb81f924a741dd9881fb62631 | [
"Apache-2.0",
"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,425 | cc | sha256.cc | /
*
*
Copyright
2017
WebAssembly
Community
Group
participants
*
*
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
... |
0e476a2e95b04b10795496ba757dcafa094cd804 | 608174cf3981edd40d34ff7a2cee5b4f0d35bd59 | /ScoreSegmentTable.cc | de883a7f1901b4f0b5629fac70c509552b1498b0 | [] | no_license | nachiket/ScoreRuntime | 896e8797a349fb1110d9036e977a228b95fa2813 | d8ed281a5baf19052161ae9fa1d1ac02754a7a1b | refs/heads/master | 2016-09-01T21:14:01.047675 | 2013-05-09T05:15:15 | 2013-05-09T05:15:15 | 317,934 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 21,904 | cc | ScoreSegmentTable.cc | //////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 1999 The Regents of the University of California
// Permission to use, copy, modify, and distribute this software and
// its documentation for any purpose, without fee, and without a
// written agreement is hereby grante... |
f6128338cbb8d52bd8526ed3934e9854a8b8f738 | 3c86117fc3bd2f1096b81d08f67fe2c249aa60cf | /coloredCircle.cpp | bfec48a3bde8a956d3ab1f23d903da3eec66c62e | [] | no_license | dktdc91/Codefights | 167037dec842422b16cdc03111602b9154b91bcf | 7709bd9a55a6b4823f80b034e0a1bb707d294b5c | refs/heads/master | 2021-01-25T09:32:16.635370 | 2018-05-29T03:59:21 | 2018-05-29T03:59:21 | 93,848,662 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 319 | cpp | coloredCircle.cpp | int countCircleColorings(int points, int colors) {
int colorsArray[2] ={0, colors};
for (int i = 1; i < points; i++) {
int tmp = colorsArray[0];
colorsArray[0] = colorsArray[0] * (colors - 2) + colorsArray[1] * (colors - 1);
colorsArray[1] = tmp;
}
return colorsArray[0];
} |
11de07ea4e380bfacca40faec615b5bc7fe3f07b | 7c105b8d2c2dcf781292d47b0f464430e3028905 | /problemset/PAT/Basic Level/1004.cpp | d9ab2c8418f01c88bea99aa66855033d9e2d2102 | [] | no_license | jiafeimao-gjf/BasicKnowledgeofCS | e0b751452c647aa068283a56640a06b58421a15f | 49e4d80a7f1a0e9924b491f5e7dbe8ff6c84c02f | refs/heads/master | 2023-07-06T14:07:40.552273 | 2023-07-02T04:59:28 | 2023-07-02T04:59:28 | 181,401,725 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 810 | cpp | 1004.cpp | // 1004. 成绩排名 (20)
#include <iostream>
#include <string>
using namespace std;
//学生信息结构体
typedef struct{
string name;
string id;
int score;
}STU_INFO;
int main(){
STU_INFO stu_info[1000];
int t;
cin >> t;
int i = 0;
while(t--){
cin>>stu_info[i].name>>stu_info[i].id>>stu_info[i].score;
i++;
... |
27853dbf05221fccbc698023c9bcbc02eadb1ea3 | 89016fcda83d19cf880a3671e7923d69b8cb7c39 | /spriterengine/animation/animationinstance.h | 86581da77f61d186a42795ac26a2e53ae00692d4 | [
"Zlib"
] | permissive | lucidspriter/SpriterPlusPlus | 9f83e68cd81295642dd3814ab800cd92967ee6c0 | 8fb550e1633036b42acd1cce0e05cfe60a3041c0 | refs/heads/master | 2023-08-10T10:29:03.386422 | 2021-02-17T22:13:10 | 2021-02-17T22:13:10 | 45,448,363 | 97 | 55 | NOASSERTION | 2023-07-23T13:17:31 | 2015-11-03T07:09:45 | C++ | UTF-8 | C++ | false | false | 2,194 | h | animationinstance.h | #ifndef ANIMATIONINSTANCE_H
#define ANIMATIONINSTANCE_H
#include <vector>
#include <string>
#include "mainlinekeyinstance.h"
namespace SpriterEngine
{
class MainlineKeyInstance;
class EntityInstanceData;
class Animation;
class TimelineInstance;
typedef std::vector<MainlineKeyInstance*> MainlineKeyInstanceVect... |
06787d968b843f8318dc81b81d629b95ab45c80b | 1d33665606a2006d75012d111984f29a18fe10ac | /src/drag_race_iarrc/src/LidarObstacleManager.cpp | 8ed052da15f5a3b2414f84fbb942c47524c9a56e | [] | no_license | WilliamGu98/Snowflake | 7524ba7ddb8886ed24a6046528c2387ace84ceb7 | 7ad17ba393c601b66fd4db3eda8065d68d4fff29 | refs/heads/master | 2020-03-29T12:30:26.744321 | 2019-02-16T21:30:48 | 2019-02-16T21:30:48 | 149,903,103 | 1 | 0 | null | 2018-09-22T18:02:02 | 2018-09-22T18:02:02 | null | UTF-8 | C++ | false | false | 13,676 | cpp | LidarObstacleManager.cpp | /*
* Created By: Gareth Ellis
* Created On: July 4, 2017
* Description: TODO
*/
// STD Includes
#include <cmath>
#include <numeric>
#include <stack>
// Snowbots Includes
#include <LidarObstacleManager.h>
// TODO: We should probably get rid of the default constructor here.....
LidarObstacleManager::LidarObstacleM... |
c321123165be4e50115d3786a8aee09e70c40677 | 976be5ede76c33d029b6606941cbe57507b10c86 | /ini_parser/main.cc | 735bd044fe3a452f915b503851eceb6c5cd6891d | [] | no_license | wei-xu/interview | 62ad19c0af1f33d4a255f4f29a43986cbb3bcafc | 87f3fccc2d256bc8879ebc6e35f8b9154122022f | refs/heads/master | 2021-01-17T06:01:05.799339 | 2014-08-08T03:52:57 | 2014-08-08T03:52:57 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,006 | cc | main.cc | #include "ini_parser.h"
#include <iostream>
#include <assert.h>
void test1()
{
const char* ini_text= "a=1\nb=2\n";
qh::INIParser parser;
if (!parser.Parse(ini_text, strlen(ini_text), "\n", "=")) {
assert(false);
}
const std::string& a = parser.Get("a", NULL);
assert(a == "1");
st... |
e80341b600fcf086385f63e302f4e58e02e83cf3 | 9b4f4ad42b82800c65f12ae507d2eece02935ff6 | /src/Media/TimedImageList.cpp | ee2c9a72a39394e1fafb1690d327b9c602b092ad | [] | no_license | github188/SClass | f5ef01247a8bcf98d64c54ee383cad901adf9630 | ca1b7efa6181f78d6f01a6129c81f0a9dd80770b | refs/heads/main | 2023-07-03T01:25:53.067293 | 2021-08-06T18:19:22 | 2021-08-06T18:19:22 | 393,572,232 | 0 | 1 | null | 2021-08-07T03:57:17 | 2021-08-07T03:57:16 | null | UTF-8 | C++ | false | false | 4,203 | cpp | TimedImageList.cpp | #include "Stdafx.h"
#include "Data/ByteTool.h"
#include "Media/TimedImageList.h"
void Media::TimedImageList::ScanFile()
{
UInt64 currOfst = 16;
UInt8 indexBuff[32];
this->flags &= ~2;
this->changed = true;
this->fs->SeekFromBeginning(16);
while (this->fs->Read(indexBuff, 32) == 32)
{
if (ReadUInt... |
3f5994716dc4bcb1f1c30750cce6839b852d9b63 | 62917ce95d514e6404193acfc341bfc0e3e6b5af | /src/tools.cpp | e882955682f3f5851544cfaf02d03a1219c103cb | [] | no_license | ssailer/ExpandingBEC2D | 7db2756abc6643e9211a238eb56cdbef630fa21d | 3eb1e5fdda01237fb6c102d46cfad467fb6320b1 | refs/heads/master | 2023-07-02T13:55:19.821817 | 2021-08-12T09:46:12 | 2021-08-12T09:46:12 | 51,006,853 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,790 | cpp | tools.cpp | #define EIGEN_VECTORIZE
#define EIGEN_NO_DEBUG
#include "tools.h"
void toDimensionlessUnits(Options &opt){
if(!opt.isDimensionless){
const double m = 86.9091835 * 1.660538921 * 1.0e-27;
const double hbar = 1.0545718 * 1.0e-22;
const double epsilon = 0.1;
double a0 = sqrt(hbar / ( ... |
b6816884574701799a18f30653be0006b267b65b | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2692487_1/C++/xfighter/mote.cpp | d048ab164624d11d5b8748fe4f02a51b8523e48f | [] | 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 | 895 | cpp | mote.cpp | #include <iostream>
#include <algorithm>
#include <cassert>
#define INF 100000000
using namespace std;
int M[101];
int WT;
int steps (int x, int N) {
WT = x;
if (N < x) return 0;
if (x == 1) return INF;
int st = 0;
while (x <= N) {
x += (x - 1);
++st;
}
WT = x;
return st;
}
int main () {
... |
7a27c68383ec98603e975b9fac4e3eee2bcaef28 | 4e003d375c712139c87993a9350f958d100365b9 | /NightLightStudio_Engine/Source/Component/ComponentWayPointMap.h | ff9726d3cff0b7686950b257032a23647db863aa | [] | no_license | calvin0116/NightLight-Studio | e19d72c53758e88ca6df8a4f2a116946d53f1ec6 | fb77dd7f653847528192e1547e13f58377fc1002 | refs/heads/master | 2023-04-11T02:56:44.345964 | 2021-04-27T11:10:24 | 2021-04-27T11:10:24 | 294,657,463 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,878 | h | ComponentWayPointMap.h | #pragma once
//#include "../Ai/WayPointManager.h"
#include "..\\..\ISerializable.h"
#include "ComponentWayPoint.h"
#include "../Ai/AiGraph.h"
//Component where it stores the list of way point and produce an map of paths
typedef class ComponentWayPointMap : public ISerializable //: public IComponent
{
LocalVector<Way... |
b647a04df312e11730526be797d76b484cd69f17 | 3ce966f6bead3bf8854dd92539acf4a1ad168054 | /libqicore-compat/src/behaviorexecuter.cpp | 61a41925954012238804264d9ec2777165b3007f | [] | no_license | gale320/libqicore | 2a15188d48b67a2265331b48ae6206f655ef7ec6 | 47104d4f932cf4a89e9bd3b1e4b895258b5c59f2 | refs/heads/master | 2020-12-14T08:56:09.591864 | 2014-09-23T16:43:46 | 2014-09-23T16:43:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,528 | cpp | behaviorexecuter.cpp | /**
* @author Aldebaran Robotics
* Aldebaran Robotics (c) 2013 All Rights Reserved
*/
#include <boost/python.hpp>
#include <qicore-compat/model/boxinterfacemodel.hpp>
#include <qicore-compat/model/boxinstancemodel.hpp>
#include <qicore-compat/model/linkmodel.hpp>
#include <qicore-compat/model/contentmodel.hpp>
#inclu... |
c70053e7c2da1cf1adad90f65ddaccf435d1007e | 59abad66e06665e3b58e8400bf94bb4b82adb87e | /FODRobot2015/src/Commands/PneumaticsAuto.cpp | 83bd565ff16ea1c7d0554cbfc87538a1fd53a766 | [] | no_license | thedarknebula/2015code | a15aeb29a4be0b1175abb16986bbf8c6b771c2e2 | 55b95eb5124fa495bb81d2c24b8738fbf49c3c6f | refs/heads/master | 2021-04-30T18:03:09.745992 | 2015-03-07T19:00:54 | 2015-03-07T19:00:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,206 | cpp | PneumaticsAuto.cpp | #include <Commands/PneumaticsAuto.h>
PneumaticsAuto::PneumaticsAuto(bool left, bool right, bool oc)
{
// Use Requires() here to declare subsystem dependencies
Requires(Robot::gripperArm);
time_timer = 0;
time_run = PNEUMATIC_DELAY;
timer = new Timer();
PneumaticsDone = false;
leftArm = left;
rightAr... |
d2d20fe82ea071a361b9b016c049e808c737f954 | c8a3f2f6f7eda6369a5c13f637a333be865a838c | /fsm_share/fsm_cpp_in_practice/jump_cpp/view/common/ShareToIntenet.cpp | 3a5690cffd0935c1bc5d8f76692b87164c4673ce | [] | no_license | PenpenLi/tools_script | e3a73775bb2b19fb13b7d15dce5d47c38566c6ca | 8f0fce77799e4598ff00d408083597a306f8e22e | refs/heads/master | 2021-06-07T22:38:17.214344 | 2016-11-21T02:10:50 | 2016-11-21T02:10:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,169 | cpp | ShareToIntenet.cpp | //
// ShareToIntenet.cpp
// HiFly
//
// Created by Artuira on 14-7-16.
//
//
#include "ShareToIntenet.h"
#include "C2DXShareSDK.h"
#include "TextFloatLabelLayer.h"
USING_NS_CC;
using namespace cn::sharesdk;
ShareToIntenet* g_ShareToIntenet = nullptr;
ShareToIntenet* ShareToIntenet::getInstance()
{
if (nullpt... |
edc4fa327e3742fa10e2fb1b741601721d537e8a | 80b10a9a27c4db09ea6659be03e9bf7b12e80255 | /uva/10935.cpp | 5bede40dae3f9319db3a1d19996d449a49e69489 | [] | no_license | HhTtLllL/algorithm | e1d777672dc8abdac9207ed7ea4b17a4efcbe9f3 | 4e331cb6dd15d9a6b8ff6ce6b61fa3887a05f9f8 | refs/heads/master | 2021-09-06T20:50:24.157469 | 2021-08-11T11:49:41 | 2021-08-11T11:49:41 | 203,563,187 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 374 | cpp | 10935.cpp | #include<iostream>
#include<cstdio>
#include<queue>
using namespace std;
queue<int> q;
int main()
{
int n;
while(cin >> n && n)
{
while(!q.empty()) q.pop();
for(int i = 1;i <= n;i++) q.push(i);
while(q.size() != 1)
{
cout << q.front() << " ";
q.pop();
int temp = q.front();
q.pop();
q.push(... |
8b79b69526f7801ee5983cc468915ef57ef277f0 | 8d705d8d3fb123cc4ec7e84e52821c5c1883d380 | /ICPC.Regional.Preliminary/2008.Hefei.Preliminary/poj3697.cpp | 8bf3199e3fe1234e0703dbe3e047fedb94363da7 | [] | no_license | ailyanlu1/ACM-ICPC-OJ-Code | 446ceff5ad94d64391ce4d86bb706023323cb1f1 | 344b2c92f75b428d0241ba732c43de780d08df40 | refs/heads/master | 2020-03-22T21:09:01.656511 | 2015-03-11T00:10:27 | 2015-03-11T00:10:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 972 | cpp | poj3697.cpp | // 2008 Hefei Preliminary: USTC campus network
// POJ 3697
#include <cstdio>
#include <vector>
#include <cstring>
#define N 10006
using namespace std;
int used[N];
vector<int> G[N];
int solve(int n) {
vector<int> v;
int i, j, ans = 0, nt;
v.push_back(1);
used[1] = 1;
while (1) {
int notgo[N];
f... |
d1f6ff82b3b8f5ac9a664826bc00954ace6f7861 | 62015a8056c46f16adbb885cdcbe4553c4e2c231 | /Engine/core/inc/itpmath.h | c72d0ef8568565594ee495eb08635989d23644c0 | [] | no_license | bejado/Bengine | 6e61e8131dc033eab0cc14040f1bf75b1c6abee0 | 07cfa2e344203772e99320d6f2a6f00a815b9ff4 | refs/heads/master | 2020-12-21T05:02:33.940907 | 2016-08-07T03:38:14 | 2016-08-07T03:38:14 | 56,739,193 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,207 | h | itpmath.h | // math.h will tell our engine whether or not to use the SIMD library
#ifndef _MATH_H_
#define _MATH_H_
#include "fastmath.h"
namespace BNG
{
typedef FastVector3 Vector3;
typedef FastMatrix4 Matrix4;
typedef FastQuaternion Quaternion;
}
namespace BNG
{
//helper operator overloads to make using library not terribl... |
791bf914a898a545867d65717b9388de54407583 | 2079c0bae0fd7289941b0825c0b3b93b87a02795 | /Source/System.cpp | 0a20d3629e4d078058bf480688df1ebe68ff747e | [] | no_license | spacejumpunreal/Demo18 | 91bf7886ea51914f8f1fcdb0c1165c6d53d48d15 | bf894714c11b29c2d600e3cfc6a30e62bdca5880 | refs/heads/master | 2021-04-27T04:54:01.417009 | 2018-02-24T01:37:06 | 2018-02-24T01:37:06 | 122,588,122 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,015 | cpp | System.cpp | #include "Demo18.h"
#include "System.h"
#include "Time.h"
#include "Utils.h"
#include "Debug.h"
#include "TickModule.h"
#include "InputModule.h"
#include "TestMainModule.h"
#include "WindowModule.h"
#include "FileModule.h"
#include "RendererModule.h"
#include "RenderDeviceModule.h"
#define ADD_MODULE(TYPE)\
{\
auto... |
16611c55365b98883923997f4cc83e8b0a6de9ea | 91a882547e393d4c4946a6c2c99186b5f72122dd | /Source/XPSP1/NT/termsrv/admtools/winutils/tsadmin/badsrvvw.h | 0cb462f46a60dcf2965d12631027631bbe77081a | [] | no_license | IAmAnubhavSaini/cryptoAlgorithm-nt5src | 94f9b46f101b983954ac6e453d0cf8d02aa76fc7 | d9e1cdeec650b9d6d3ce63f9f0abe50dabfaf9e2 | refs/heads/master | 2023-09-02T10:14:14.795579 | 2021-11-20T13:47:06 | 2021-11-20T13:47:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,680 | h | badsrvvw.h | /*******************************************************************************
*
* badsrvvw.h
*
* declarations for the CBadServerView class
*
* copyright notice: Copyright 1997, Citrix Systems Inc.
* Copyright (c) 1998 - 1999 Microsoft Corporation
*
* $Author: butchd $ Don Messerli
*
* $Log: M:\NT\PRIVATE\UTILS... |
dd857917b2d3ceaef9a0ef4876c28e854c0eab7b | acbd77a818e640177187c594eac26cc744d0a296 | /02-线性结构2 一元多项式的乘法与加法运算 (20分).cpp | 13479d3e7bd997a6f5f7aed0aeb9bd3f49953317 | [
"MIT"
] | permissive | Wodnerstruck/Data-Structure | 549cc8bba0182ca5e4fd7fc13a3fd4cb89c30d0c | 8022dbeda1743005f26685c5b08e761fe34f32f2 | refs/heads/master | 2021-02-11T00:26:10.908117 | 2020-04-20T14:50:11 | 2020-04-20T14:50:11 | 244,433,361 | 0 | 0 | null | 2020-03-10T12:23:32 | 2020-03-02T17:33:07 | C++ | UTF-8 | C++ | false | false | 3,619 | cpp | 02-线性结构2 一元多项式的乘法与加法运算 (20分).cpp | #include <cstdio>
using Polynomial = struct PolyNode*;
struct PolyNode
{
int coef;
int expon;
Polynomial link;
};
void Attach(int c, int e, Polynomial &Rear) {//传尾指针引用(或指针的指针也可)
Polynomial P;
P = new PolyNode;
P->coef = c;
P->expon = e;
P->link = nullptr;
Rear->link = P;
Rear = P;
}
//读入多项式
... |
eb6aa2151643aa0717b7bc4b7afe3327865350ac | 90474b456a59fbb16d96d1d08d151f292e7fc715 | /czas.cpp | bc6e8b9ff3dc6ee3ef6768c7f18b8d4d75311b72 | [] | no_license | radmat/rektorat | cafabfb2545a4ca8d5034c6ee5d1f4c2ccdde3e6 | af802e825c907e2224e6a17463fd89927a5746c2 | refs/heads/master | 2016-09-06T13:49:59.680789 | 2015-09-07T07:23:51 | 2015-09-07T07:23:51 | 42,002,373 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,056 | cpp | czas.cpp | /*Radoslaw Matusik
Program bada czasy wyswietlania roznej liczby elementow*/
#include<iostream.h>
#include<conio.h>
#include<time.h>
main()
{
time_t start,stop;
int i;
start=clock();
for(i=0;i<10000;i++)
cout<<"x";
stop=clock();
cout<<"\nCzas wypisywania 10000 elementow: "<<(double)(stop-start)/CLOCKS_PER_S... |
6e8a7bf5cf48ab69f86b8ddf945426765d8c2169 | ee27f8158e8c0302d6fb1ee775a98bef2b370c5d | /Uts_Mulmed/Unit2.h | 6a73a06f0c750c4c53cf26c98d737d08a6bc4858 | [] | no_license | irfanheru66/Uts_Mulmed | d63f976ddf4cd9371ceb278da37939c3ece87f6c | b8bd0216c8f6ec772401d2307db6cfc1c4bd5bcb | refs/heads/master | 2023-02-08T15:31:22.552988 | 2020-10-31T10:13:16 | 2020-10-31T10:13:16 | 308,825,188 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,193 | h | Unit2.h | //---------------------------------------------------------------------------
#ifndef Unit2H
#define Unit2H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <MPlayer... |
4718630cf8510f68e390e75fae043096bffd8477 | 865fe9e4cbfa2e9eeb5b7dc1144ff112331759d1 | /Final Project/Bezier - main files/game2.h | b8f6abe4a63cbd43a604a4aed318e1191276a1d2 | [] | no_license | yotamolenik/Graphics | 0b4fc2127407147ba1f1babbfe3de217f6e0cf42 | e7cee5e9446e470a956dfbcf18598810e4a3215f | refs/heads/main | 2023-03-16T17:36:55.928839 | 2021-03-07T19:29:02 | 2021-03-07T19:29:02 | 345,432,073 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,447 | h | game2.h | #pragma once
#include "scene.h"
#include "Bezier1D.h"
#include "Bezier2D.h"
class Game2 : public Scene
{
public:
Game2();
void Init();
void Add3DBezier();
void AddControlPoint(int indx);
void MoveControlPoint(int indx, float x, float y);
void MoveControlPoint(int segment, int indx, float x, float... |
3db6a3ae1f532291ba7614fe1cdf40a574166be7 | b00f0208ac175b11dda2dd1cbcb7448ed9c6ed62 | /code/lib/function.h | be44b28dcbf466d8512d39d8bcfd1209bab90fea | [] | no_license | AjaniBilby/fiber | 01accb2a9565d90bc452f1eee1fce66fab137a0d | aea43cbfb1d8d83108b28c46e7ac5cfec469e7c2 | refs/heads/stable | 2020-03-14T10:58:02.472837 | 2018-07-10T04:51:07 | 2018-07-10T04:51:07 | 131,579,984 | 1 | 0 | null | 2018-12-09T08:16:35 | 2018-04-30T09:54:24 | C++ | UTF-8 | C++ | false | false | 1,940 | h | function.h | #ifndef Function_H
#define Function_H
/*
Purpose:
To take tokens and simplify them into a form quicker to be interperted
These function also execute their code as part of their code,
However this execution is controlled by individual instances,
of which supply and hold register information, as well a... |
0f8e92031c137dac2b6544bd1567a5322bde9c3c | 05fe7532d69ac6126036cd84dec8248fc1288e6f | /Questions/206.cpp | a03acef9fc7683d146ea346808784978dce36bf6 | [
"MIT"
] | permissive | xianghn/LeetCode | ae143997f0848d0f6a51b1c98cd629b0c6e15169 | fe8900cca6fad5ff5efe6311b30594c01661b4e7 | refs/heads/master | 2020-12-30T04:13:53.838560 | 2020-02-09T10:43:32 | 2020-02-09T10:43:32 | 238,856,591 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,249 | cpp | 206.cpp | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
#include <iostream>
using namespace std;
struct ListNode {
int val;
ListNode *next;
ListNode(int x) : val(x), next(NULL) {}
};
class Solution {
pub... |
fd3ab23aca012370775d33bde6982b7b9a1e7c7a | bc677ff45c44383cfe9b4f3233d33c5dd6283dbc | /二进制插入/源.cpp | 93dcc136cd388b17a8980326ed1e0805e9f15793 | [] | no_license | zh593245631/nowcoder | 16a168fb470cb9134bfb2fb9ce764aecb559e670 | 695ca9f2c45a888bfb5d04d8ae416d3b0a0a6659 | refs/heads/master | 2022-02-22T02:51:03.570356 | 2019-09-11T10:15:24 | 2019-09-11T10:15:24 | 191,264,578 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 127 | cpp | 源.cpp | class BinInsert {
public:
int binInsert(int n, int m, int j, int i) {
// write code here
m = m << j;
return m + n;
}
}; |
41f6e4fdf7b2a97651bfd231c3c489e502d7f88c | 5906f113f1d26f6786eac86b3b557987a42dc2d6 | /DreamZEngine/Engine/Core/EngineClass.h | 42cfb481896a9f33532fc455436ce9495b729e47 | [] | no_license | klixoft/DreamZEngine | 4574a52fcac2f991a34de3a562be20ade5a39705 | e58fe434c10fb4a88fb4f65f28ff974fccef6f2d | refs/heads/master | 2020-04-26T06:17:56.009196 | 2019-04-03T11:31:08 | 2019-04-03T11:31:08 | 163,892,023 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,337 | h | EngineClass.h | #pragma once
#define DEFAULT_BUFLEN 512
#define DEFAULT_PORT "27015"
#ifndef EngineClass_H
#define EngineClass_H
#include <memory>
#include "Window.h"
#include "SceneManager.h"
#include "Timer.h"
#include "../Timers/MasterClock.h"
#include "../InputHandling/InputManager.h"
#include "../Debuging/Settings.h"
#include ... |
eb0e4ca46cc189e79112b5f6034fa778c656e3d9 | 3b6a98851480d7d4c0b32fbe83ac73710c2664ff | /Week4/Day3/18-1_김영훈_20210728.cpp | 995dd76e229d2f30897a935b42666cd440ed9a50 | [] | no_license | yhoon5171/Algorithm-Problems | ac946c919ad48e4260690239a41bb4ff25661a41 | 7eee76f8f8b3bcc9c5e558972a0a63b9ac1790ec | refs/heads/main | 2023-07-01T18:12:27.059892 | 2021-07-30T13:18:07 | 2021-07-30T13:18:07 | 383,520,071 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 410 | cpp | 18-1_김영훈_20210728.cpp | //https://leetcode.com/problems/counting-bits/
class Solution {
public:
vector<int> countBits(int n) {
vector<int> countBits(n + 1);
for (int i = 0; i < n + 1; i++){
int tmp = i , cnt = 0;
while(tmp != 0){
if (tmp % 2 == 1) cnt++;
tmp /= 2;
... |
f2a4b764becd923ccf276ecb8176263a3391f507 | 5464cac5e8d7a4e2b27d6afbed1a95afb149bb87 | /Rule-Grammar/rule_grammar_tester.cpp | 6c22c259de015c01a33c39559836f5d9a945a386 | [] | no_license | dan-whelan/CLab1 | e627a23c9c99293a4d7c91a6715cf931606aa14f | 119f793504826ba35c33cc564f150cd341ee1e26 | refs/heads/master | 2023-04-28T08:08:21.761655 | 2021-05-25T17:26:24 | 2021-05-25T17:26:24 | 310,631,607 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 491 | cpp | rule_grammar_tester.cpp | /***************Test for Rule and Grammar classes**********************/
#include "Rule-Grammar.h"
#include <iostream>
#include <stdlib.h>
using namespace std;
int main(int argc, char *argv[]) {
if(argc != 2) {
cout << "Need to give a grammar filename\n";
return 0;
}
string fname;
fname = string(argv[... |
a9f2fc2256878132f966942d200a1b0ae0321c26 | 92dfebbd6715dcfbf8117546337dca3addd5278e | /src/observer/peerconnectionobserver.cc | 7d52f7afdeb2cf315ea0c032794233093729986c | [
"Apache-2.0"
] | permissive | aisouard/node-webrtc | 5a80bb874d5489f73c70d9e2e280cd20a41fb935 | c22586a47b7878e3eb4d870a8e2b8d85840e85a9 | refs/heads/develop | 2021-08-19T13:49:18.839693 | 2017-11-26T13:37:10 | 2017-11-26T13:37:10 | 81,979,226 | 24 | 3 | null | 2017-03-15T10:00:16 | 2017-02-14T19:06:01 | C++ | UTF-8 | C++ | false | false | 2,649 | cc | peerconnectionobserver.cc | /*
* Copyright (c) 2017 Axel Isouard <axel@isouard.fr>
*
* 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 appli... |
d110820e0aa06e42e46f6b70c12124c689b9681b | 9a437b4d67ecdc5ee0174773dff2e9825f5b1bb8 | /lab3 q17.cpp | bdb91fd1d2e098dbe88e04bc94f189c06912491a | [] | no_license | mackswane/Lab3 | 7cd715d838e954739182c0a6ab69331eb60c90af | 341e61169942082eec22551966c706968159a8ba | refs/heads/master | 2021-01-21T13:26:00.060814 | 2017-09-15T11:50:19 | 2017-09-15T11:50:19 | 102,121,212 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 848 | cpp | lab3 q17.cpp | # Lab3
//ques 17
#include <iostream>
#include<cmath>
using namespace std;
int main()
{
float a,b,c,r1,r2,d;
cout << "\nenter coefficient of x^2 :";
cin>>a;
cout << "\nenter coefficient of x :";
cin>>b;
cout << "\nenter the constant part :";
cin>>c;
d=b*b-4*a*c;
cout<<"\nd="<<d;
... |
50f155972257eefc2036885beb4763ebb589db99 | d23712cc880949e0e090283240af1f4be356ab5f | /src/ccd_cpu_bvh_cd.cpp | 0cf1a8136ebe73d497c43f581d1684fdd4a0c93c | [] | no_license | lidan233/objCDchecker | 4b093d9a83e18c4d589e990723bb519263a3b425 | 7f0360a5854e44a887838715c13343edc2d2dbf3 | refs/heads/master | 2023-03-08T13:00:56.483752 | 2023-02-19T17:03:53 | 2023-02-19T17:03:53 | 314,605,517 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,617 | cpp | ccd_cpu_bvh_cd.cpp | //
// Created by lidan on 17/11/2020.
//
#include "ccd_cpu_bvh_cd.h"
inline static std::vector<int> isInteract(TreeBoundBox* bvh,BoundBox* box)
{
std::vector<int> stack ;
std::vector<int> result ;
stack.push_back(0) ;
while(stack.size()!=0)
{
int t = stack.at(stack.size()-1) ;
s... |
8d88baf070e8bc747d65db5c3bfe32bea7d68e41 | 045d55e037339d1e2aa9ae1a05d59aa9e1ef62cc | /src/spatial/orientation.h | d285307897981260270d49fdd01256ae96209b96 | [] | no_license | PlumpMath/voxel_engine | cdd12f4330e3aa154f374f56130487019222b96c | 737bba4959bb11fcba3d2de0f583e724d7907f60 | refs/heads/master | 2021-01-25T07:01:16.432201 | 2015-07-13T06:16:38 | 2015-07-13T06:16:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 607 | h | orientation.h | #pragma once
#include <glm/glm.hpp>
#include <glm/gtc/quaternion.hpp>
class Orientation
{
public:
Orientation();
Orientation(const glm::quat& quaternion);
void rotate(const glm::vec3& axis, const float degreesOfRotation);
Orientation operator*(const Orientation& rhs) const;
glm::mat4 get_rotation_matrix() cons... |
335cea3587f90aa121758aeb02868645874fa370 | 187ea2e6d74edbe84532817515b7bd510356f046 | /BloombergECN.hpp | a3d3a05a8af2834deaee970794749eb785855505 | [] | no_license | icprog/TestFactory | 8182cabb75ae883c8f6da0a65622059df112df36 | 19291d73136bf8bb85917a0aefedfb28612cdb72 | refs/heads/master | 2020-04-07T01:23:04.896978 | 2016-06-20T10:43:19 | 2016-06-20T10:43:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 392 | hpp | BloombergECN.hpp | //
// BloombergECN.hpp
// TestFactory
//
// Created by chris folan on 18/06/2016.
// Copyright © 2016 chris folan. All rights reserved.
//
#ifndef BloombergECN_hpp
#define BloombergECN_hpp
#include "ECN.hpp"
/*Derived class Reuters from Ecn */
class BloombergECN: public Ecn
{
public:
BloombergECN();
void... |
22df671f10ca48372b8482750ef0589180fecfea | 62b440a501eab0cd4e7cc750df0d9e9a863b40d7 | /Source/Core/Visualization/Object/LineObject.h | a04d61c863e18ae386ee4a8b3d592d9d2044365e | [
"BSD-3-Clause",
"MIT",
"Zlib",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | naohisas/KVS | b67d8adca623d1970e4cc4ab9c317d34d04800ff | 4d652aadc9db816674b1dda57dd14f8e56ce0a42 | refs/heads/develop | 2023-07-06T05:00:41.766940 | 2023-06-27T07:26:21 | 2023-06-27T07:26:21 | 28,217,308 | 47 | 32 | BSD-3-Clause | 2021-04-28T15:16:03 | 2014-12-19T06:25:52 | C++ | UTF-8 | C++ | false | false | 8,344 | h | LineObject.h | /*****************************************************************************/
/**
* @file LineObject.h
* @author Naohisa Sakamoto
*/
/*****************************************************************************/
#pragma once
#include <kvs/GeometryObjectBase>
#include <kvs/ValueArray>
#include <kvs/Type>
#incl... |
8dcda22a25a1254e8f7a7325858f1a7ae26a2991 | 432193d5910d61a13cfa8bf342f69c36ec6facec | /hashtable.cpp | 8a56d532b65127995482721715561b52b7400694 | [] | no_license | Yonhoo/hash_table | 05601a20474602cf4a084523c45f89408d8d209e | 900e21cb8d7d6a885ada5af77f341106d7aef0df | refs/heads/master | 2020-09-15T06:12:03.066963 | 2019-11-22T09:16:21 | 2019-11-22T09:16:21 | 223,364,958 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 296 | cpp | hashtable.cpp | #include "hashtable.h"
int main(int argc, char const *argv[])
{
hashtable<string, string> abb(20);
auto it=abb.insert_unique("sda");
auto it2=abb.insert_unique("sdfdfsdfsdfa");
cout<<it.first.cur->val<<" "<<it.second<<endl;
cout<<it2.first.cur->val<<" "<<it2.second<<endl;
return 0;
}
|
f9d054815b5b427dbdbce5b667180b4f951bc6b3 | 0ac37e503ddc7d412ef18e79324092263907599e | /a244/a244.cpp | ecbf964f0b59f4212b829ddc7c098a18b983891c | [] | no_license | IvanaGyro/ZeroJudge-Answers | 4c554a75c396f5a82bb136102155c10dfd3174f7 | f8d4257b1890aae476316dbbe8fd098b43158a16 | refs/heads/master | 2021-06-02T12:53:19.510283 | 2016-08-08T17:25:47 | 2016-08-08T17:25:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 914 | cpp | a244.cpp | #include <iostream>
using namespace std;
int read_int(int& n){
static char c;
static int neg;
n = 0;
while ((c = getchar()) != '-' && (c < '0' || c > '9')) if (c == EOF) return 0;
if (c == '-') neg = -1;
else{
neg = 0;
n = static_cast<int>(c - '0');
}
while ((c = getchar()) >= '0' && c <= '9'){
n = (n <... |
b9ab5f709841e1e27b6a6391ae617e2ffaa11249 | 03dc4128478a970b32911d7bc74e2b4dd2e46e65 | /inc/mmsgui/mmsimagewidget.h | 2c3a58bb4f384855f55ee097d0e6de0b88be2cdc | [] | no_license | RomTok/disco-light | 4046337dfedff3a18eb7c72fe9f1ab5c2b6b14b8 | 507c0e0d78770027bd757db777e73d7d251b0237 | refs/heads/master | 2021-01-02T08:45:36.406162 | 2014-02-19T13:08:39 | 2014-02-19T13:08:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,134 | h | mmsimagewidget.h | /***************************************************************************
* Copyright (C) 2005-2007 Stefan Schwarzer, Jens Schneider, *
* Matthias Hardt, Guido Madaus *
* *
* Copyrig... |
71f6b8d79c8581be0bd2bf90b09d9d0504513401 | 031f7354f569f118d73b5bf9ce0d4f860fb5eabf | /libkroll/net/proxy_config.h | 46cf2cc245cbe249a0fc0e9a5ebe92e391822fb9 | [
"Apache-2.0"
] | permissive | psycho-pas/kroll | 706e3a55bf390e3f447d619ad158c840ff176506 | 12fc8ead138984a84681b7d7a526d58f5b44e3bc | refs/heads/master | 2020-05-24T08:15:08.637812 | 2019-05-19T09:29:16 | 2019-05-19T09:29:16 | 187,138,484 | 0 | 0 | NOASSERTION | 2019-05-17T03:12:14 | 2019-05-17T03:12:14 | null | UTF-8 | C++ | false | false | 1,454 | h | proxy_config.h | /*
* Appcelerator Kroll - licensed under the Apache Public License 2
* see LICENSE in the root folder for details on the license.
* Copyright (c) 2009 Appcelerator, Inc. All Rights Reserved.
*/
#ifndef _KR_PROXY_CONFIG_H_
#define _KR_PROXY_CONFIG_H_
namespace kroll
{
class KROLL_API BypassEntry
{
public:
Bypas... |
9d56ae029c309443c8f6aa9cfed08e1fd891c0d6 | c40baa933e17d65ba9b8fb07fbc85a232c6d5958 | /syncitbaby/communicatorXP/PESParser.cpp | 215593f025a764a4321812d9291612c106d6ff55 | [] | no_license | BackupTheBerlios/mobicar | 62ba0a8053422f19b96c8b1e59bffdfade86aa61 | ceaf49157eac67b5bfc3b168afc9484319e25f02 | refs/heads/master | 2021-01-20T07:10:26.348042 | 2005-11-02T19:26:06 | 2005-11-02T19:26:06 | 40,040,049 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 17,402 | cpp | PESParser.cpp | /******************************************************
**
** Video at Home; SEP SS 2005
**
**
** Description:
** Own implementation of a MPEGII-Parser !
** Copyright (C) 2005 by Michael Golebski
**
**
**
** Modifications:
** Date: Name: Changes:
** 2005-07-04 Golebski Initial Versi... |
1211322da27207ec91e60a616b56a0db1fefb688 | 528bfd13b020fa7022f160bf32214534dfed86a1 | /Socket/Socket/selectServer2.cpp | 7dec18f7f73d6404283e69e6650171d3df677521 | [] | no_license | hyunkin2127/SocketProgram | 16e37babaf18fa57c5eda3e3c7d31937ad244918 | 4d15d021084a59f60b8ef1f9d561436f5742f61d | refs/heads/master | 2020-03-19T04:15:14.029103 | 2018-07-12T15:05:40 | 2018-07-12T15:05:40 | 135,810,234 | 0 | 3 | null | 2018-07-10T06:29:43 | 2018-06-02T10:56:51 | C++ | UHC | C++ | false | false | 5,807 | cpp | selectServer2.cpp | #include "main.h"
#define MAXBUF 1024
#define MAX 100
#define ALL 1
#define USER 20
char greet[] = "접속 되었습니다";
char no_greet[] = "접속 되지 않았습니다";
//메세지 전송 함수
void writeMessage(void * client_message, void * num, int basefd, int maxfd);
//클라이언트가 보낸 메세지와 전송받을 클라이언트의 이름을 저장
struct message {
char user[USER];
char s... |
92987e7670aeab320b55d60a8d6021ee5ce4fc68 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /ui/gl/gl_surface_egl_unittest.cc | c98029bdc7f328e2d6026acc0aa970bbec878917 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 4,140 | cc | gl_surface_egl_unittest.cc | // Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_surface_egl.h"
#include "base/memory/raw_ptr.h"
#include "build/build_config.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/inclu... |
d3afaa69e387976641fda5da52391f5d2d9fd649 | 126bad2f4eb070378100985d27b1dce8c61d7dec | /question5.cpp | 43f0ad81bfc30cec771c7ba7c3b8ec610d932083 | [] | no_license | pamitduggal/work-in-c-plus-plus | 1a56569cd48568a1f068517438082e4d701817da | a65bb404ec14e37a791d78e1c232b196d52d5110 | refs/heads/main | 2023-04-18T23:09:11.559618 | 2021-04-30T12:06:19 | 2021-04-30T12:06:19 | 363,127,876 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 458 | cpp | question5.cpp | #include <iostream>
using namespace std;
int number(int val)
{
if(val<=100) {
cout<<"\t"<<val;
number(val+1);
}
}
int numberrev(int valrev)
{
if(valrev>=1)
{
cout<<"\t"<<valrev;
numberrev(valrev-1);
}
}
int main() {
int val = 1;
int valrev=1... |
08ca78c9f93359a3c86d6d5d031c8900e06dc54f | 69abc9415e7e5644c4f52420d5eb7441f43c7010 | /deprecated-code/compress.cpp | f4ae36e7c8484a77a7545ade4ef180bd5e4d6b32 | [] | no_license | dajmcdon/cplr | 059ec023b988ef3fc9f37c3bf929c227c0434887 | f60de399a837ec46c107c9ba05f78ba439d15de9 | refs/heads/master | 2021-01-23T04:09:38.688327 | 2019-01-08T21:13:04 | 2019-01-08T21:13:04 | 86,161,946 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 919 | cpp | compress.cpp | #include <Rcpp.h>
using namespace Rcpp;
// [[Rcpp::export]]
List compressCpp(NumericMatrix const &X, int q, NumericVector const &Y, int s) {
int p = X.ncol();
int n = X.nrow();
NumericMatrix QX(q, p);
NumericVector QY(q);
double u1, u2;
double rescale = sqrt(q/s);
double prob = 1.0 - 1.0/s;
RNGScope... |
4c578a3e62bfa71f18af06150b7847ca9eda2835 | 3211ef2ce88b13ad2cbbc3c7307017e52ff2cb51 | /eDataServer/LogProc.cpp | 9fa83b7061bbb23c8be23a5878a0ff27e41318b6 | [] | no_license | YucelCeyhun/KingMuOnline | 887d84fe6bf688679f0bd45920a2b1e3eff33222 | f0191fb4b99b6f5b04ac6c5834a6dff0014059e6 | refs/heads/master | 2022-04-10T19:14:51.778327 | 2020-03-26T07:53:24 | 2020-03-26T07:53:24 | 249,654,970 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,486 | cpp | LogProc.cpp | #include "StdAfx.h"
#include "LogProc.h"
int m_cline; // Current Line of Log
static FILE* logfp; // FILE Variable for LOG
static char m_szLogFileName[100]; // Log Name
char LogText[LOG_TEXT_LINE][LOG_TEXT_LENGTH];
short LogTextLength[LOG_TEXT_LINE];
BYTE LogTextViewType[LOG_TEXT_LINE];
// Functions Pointers... |
7ba85b0ba892fe6355ca876e333fe02cf004f597 | f3a35f1e9d803a1ad409bec1e58024e825f87141 | /08/GraduDeMIS/ChoiStatusDlg.h | c12ce96840afe3246245d56ab7e1504497d12fc5 | [] | no_license | xuezchuang/C-Project | ed4406f913e853b981063e726ab505ada36b1f90 | 4d5a64429fde2d37ba77974dd6cf7526833e55be | refs/heads/master | 2020-03-24T20:04:26.082584 | 2017-11-14T10:11:40 | 2017-11-14T10:11:40 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,353 | h | ChoiStatusDlg.h | #if !defined(AFX_CHOISTATUSDLG_H__7AE2883B_B24D_405A_9D9B_E38375766610__INCLUDED_)
#define AFX_CHOISTATUSDLG_H__7AE2883B_B24D_405A_9D9B_E38375766610__INCLUDED_
#include "ChoiceSubSet.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ChoiStatusDlg.h : header file
//
//////////////////////////////////////... |
2cd86ab1f4e1d7338405730098bd46e4b540fea1 | 0d542294bbc3ba3176a2065b2dd593fb897e8647 | /GraphicsEngine/Common/Common/IncludeReplacer.cpp | c7241830f19da4f92ff102887717851a4777c66b | [] | no_license | JPMMaia/Graphics-Engine | 2d6e4ae706c9e291ec90e1a0253c3d538647cd60 | 8ae3cb94fe7c5032fcd5a9cbbc9d8eeaf7a2ffcd | refs/heads/master | 2020-12-07T03:57:51.647732 | 2017-08-31T19:20:21 | 2017-08-31T19:20:21 | 48,298,893 | 0 | 2 | null | 2016-10-09T20:04:13 | 2015-12-19T22:11:49 | C++ | UTF-8 | C++ | false | false | 1,763 | cpp | IncludeReplacer.cpp | #include "IncludeReplacer.h"
#include "Helpers.h"
using namespace Common;
using namespace std;
void IncludeReplacer::ReplaceIncludes(const std::wstring& inputFilename, const std::wstring& outputFilename)
{
auto filePath = Helpers::GetFilePath(inputFilename);
vector<char> content;
Helpers::ReadData(inputFilename,... |
df604d529674c4ce74bd53cf3e1e9d6ac7d0825c | e22dcc1db07006337aa73c30fa41c954c46bbd53 | /Phase 1/video.cpp | 9d7b9a810bf9bb91e93588b8feec189b98b7d14b | [] | no_license | ESE-Class-2017/Embedded-Controller-Robot | 39854767289e095ebb4ec2ac77efc1ca302d5e0f | 1ef8c85ec38cc970c0337fdcc625fa6f8d2a7467 | refs/heads/master | 2021-01-18T23:10:19.967276 | 2016-06-06T22:56:16 | 2016-06-06T22:56:16 | 45,561,081 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,124 | cpp | video.cpp | #include <iostream>
#include <cv.h>
#include <highgui.h>
#include <imgproc.hpp>
#include <opencv2/opencv.hpp>
#include "opencv2/core.hpp"
#include <string>
#include <vector>
#include <iomanip>
#include <cmath>
#include "video.h"
#include <unistd.h>
using namespace std;
char key;
int video_cap()
{
int i;
int j;... |
d97be710443564d3876a6647d89b992c4d761c24 | 81a942d959f8712491be7a92e535020f24c7096d | /source/extensions/filters/http/jwt_authn/filter_config.cc | 82d0fdd3ae425bfc26c8e4dceed7e713c5b3142a | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | siepkes/envoy-smartos | c83d4498a11eb6e866f81b19bfe0b439af9a3a8b | e5ffbbb24f7b53d594f6acf6b3f74df82b1c972d | refs/heads/smartos-v1.18.4 | 2023-08-16T11:33:19.306548 | 2021-10-21T07:58:51 | 2021-10-21T07:58:51 | 135,030,335 | 7 | 0 | Apache-2.0 | 2021-10-05T23:36:57 | 2018-05-27T08:51:09 | C++ | UTF-8 | C++ | false | false | 3,591 | cc | filter_config.cc | #include "extensions/filters/http/jwt_authn/filter_config.h"
#include <algorithm> // std::sort
#include "common/common/empty_string.h"
using envoy::extensions::filters::http::jwt_authn::v3::RequirementRule;
namespace Envoy {
namespace Extensions {
namespace HttpFilters {
namespace JwtAuthn {
void FilterConfigImpl:... |
def128f2cec606b07c594b9e514fbfd7154996c1 | 283dbaa2586d69a19822f3047f2cca1106fa20ce | /point.h | 7acbaab4f14b9fa92959f64d22904649661a7277 | [] | no_license | altimosk/boostgraph | 5c1aaa8a6ab09734c17fd2ebe1eb76ec4bc19db2 | 414d789d683fcacbb0be6fdf72701de821da18e5 | refs/heads/master | 2016-08-12T05:54:59.604814 | 2016-02-04T12:21:58 | 2016-02-04T12:21:58 | 51,073,963 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,529 | h | point.h | #pragma once
#include "geom_base.h"
#include <utility>
class tPoint : public std::pair<int, int>
{
public:
tPoint() { SetXY(0, 0); }
tPoint(int x, int y) { SetXY(x, y); }
void SetXY(int x, int y) { first = x; second = y; }
void Set(int i, int z) { (i ? second : first) = z; }
... |
bcb4b85d5c96de43ba31da7086195483fbd200a1 | 3f870f239f01d02dbd157bb26c2e366a0c8cd842 | /UVa1225-Digit Counting.cpp | d3d9ef6b8f7d98d109fe171de1c27afc7e6956d8 | [] | no_license | daisp92/AlgorithmContest | f3ded100e21db2fd08ca09c457c64be5f4cca236 | 6686f4158a4d7875dc19e6502e77681d7635cfc4 | refs/heads/master | 2021-09-08T02:59:47.013066 | 2018-03-06T10:16:41 | 2018-03-06T10:16:41 | 120,171,261 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 785 | cpp | UVa1225-Digit Counting.cpp | #define LOCAL
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main() {
#ifdef LOCAL
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
#endif
int n,t,tmp;
cin>>t; //t为案例个数;
while(t--){
cin>>n;
int ans[10]={0};//初始化,ans[10]保存的是0-9每个数字出... |
78fa64fa2311dfb7006a5ff2bdc6b82a2c3049f2 | aa2ac425a8bb957a26763ae17e50d50f1cce8956 | /src/Addons/GeoWay/gwXML_StandardMetaData/type_gmi.CMI_RequestedDate_Type.h | 9db5b21cea15c53d9e2b7560df33d4fb78c8abde | [] | no_license | radtek/CGISS | c7289ed19d912c432aae81d0cdbb6b080b4f5458 | 3f7cfa19d8024a67a5350d51e3f2f40a5e203576 | refs/heads/master | 2023-03-16T21:23:56.948744 | 2017-06-17T14:14:09 | 2017-06-17T14:14:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,284 | h | type_gmi.CMI_RequestedDate_Type.h | #ifndef _ALTOVA_INCLUDED_gie_ALTOVA_gmi_ALTOVA_CMI_RequestedDate_Type
#define _ALTOVA_INCLUDED_gie_ALTOVA_gmi_ALTOVA_CMI_RequestedDate_Type
#include "type_gco.CAbstractObject_Type.h"
namespace gie
{
namespace gmi
{
class CMI_RequestedDate_Type : public ::gie::gco::CAbstractObject_Type
{
public:
gie_EXPORT CMI_Re... |
02fa23aa2fbd3aa3ef2ef10fe7c9d00d24d1e94a | 96a616b0502afb035dced40726b57ddf330ef05e | /Lab9/lab_9.cpp | 89d086a3dbf6ea448e6fe98f44d2aa6264c40f4a | [] | no_license | GalaxyHorder/CSCI-21-FALL-2015 | e7c3f9958ef01ac916d890cde8928403fafd3ffb | 100117c156414fe34177fef64abcb15522007524 | refs/heads/master | 2021-01-10T16:43:02.376910 | 2016-05-17T00:31:25 | 2016-05-17T00:31:25 | 50,547,652 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,267 | cpp | lab_9.cpp | /*
* Name : lab_9.cpp
* Author : Xavier Winsor
* Description : Building a Spaceship Class
*/
#include "lab_9.h"
// CODE HERE -- CLASS FUNCTION DEFINITIONS
void Spaceship::set_name(string name){
name_=name;
}
void Spaceship::set_top_speed(double top_speed){
top_speed_=top_speed;
}
void Spacesh... |
7a147bc2d96b745a2def72a6dce705843f034132 | 0af13c6830fdf1694e78613261ecbf1dfeeb76db | /Chapter03/Section-3.5.4/section-exercises/exercise-3.38/src/main.cpp | a4ac1d77c16d80ec4f04359e211a79c3f6560bf1 | [] | no_license | djtorel/cpp-primer | 28bfb57929f8d6ee0c66c20779d05e63200e133c | 7a2d728910eef2437f19ca610d14a5336958e342 | refs/heads/master | 2021-01-01T20:45:19.858189 | 2018-05-22T21:36:47 | 2018-05-22T21:36:47 | 98,927,234 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 371 | cpp | main.cpp | /**
* Exercise 3.38: In this section, we noted that it was not only illegal but
* meaningless to try to add two pointers. Why would adding two pointers be
* meaningless?
*
* A: A pointer is an address in memory. Adding two addresses would have almost
* no use, as there isn't a real scenerio where that would retur... |
f69e8f47981ee33c89e60e1069478e2690676ae5 | 18e123ed01ba0cc7e4af1ae8fa7f290ce09efb1f | /所有学习程序/语言/CppTest_1/CppTest_1/FixedSet.cpp | ab05c9bbce6d9d440d8fc8b909f87b274e813a15 | [] | no_license | phpkangwang/test | afbe881d17c1eb61e5f55de438935e0e5250f0a9 | 76a952197f85d8bfb90e2d15badf21290c69e69d | refs/heads/master | 2021-01-10T05:34:13.269095 | 2015-06-02T06:23:33 | 2015-06-02T06:23:33 | 36,422,858 | 0 | 1 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 1,184 | cpp | FixedSet.cpp | #include "StdAfx.h"
#include "FixedSet.h"
#include<iostream>
using namespace std;
CFixedSet::CFixedSet(void)
{
m_nCount = 0;
}
CFixedSet::~CFixedSet(void)
{
}
void CFixedSet::Print(void)
{
if(m_nCount <= 0)
return;
cout<<"{";
for(int i =0;i <m_nCount-1;i++)
cout<<m_nBuf[i]<<",";
cout<<m_nBuf[m_nCount -1]<<... |
8178c7951cf43b6c5c4bf47bfb8382ba590072cb | 08ff892af644642d3d75c727d52200443e39796c | /module-03/ex02/main.cpp | 5c629e523f34ec1cea5c2701ee355d81ccce627e | [
"MIT"
] | permissive | kotabrog/CPP-module | 9bf0f1866a34fb42e1ae949b6e88a90cddaef80e | db858e57ac194d4ca9b38667ff3820418b42e9c8 | refs/heads/main | 2023-07-02T06:28:53.931788 | 2021-08-14T07:03:54 | 2021-08-14T07:03:54 | 387,164,790 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 484 | cpp | main.cpp | #include "FragTrap.hpp"
int main()
{
FragTrap a;
std::cout << "hitpoints: " << a.getHitpoints() << std::endl;
std::cout << "energyPoints: " << a.getEnergyPoints() << std::endl;
std::cout << "attackDamage: " << a.getAttackDamage() << std::endl;
a.takeDamage(3);
FragTrap b(a);
b.takeDamage(3)... |
7c219864ab67566c762dc13538bba7e6487e66b9 | 76c54c8d1de7e8f8b34993cee5dea4084eff01c5 | /Utils/DimensionSizes.h | 51a0cbe152f51819179819515d6eaa929eb6ddf1 | [] | no_license | jacobwjs/AO-KWave-MCBoost | f05d130568e80380b7ed61c05036f0dafb7a0840 | 25af3707ea8f10e47ebae1a420993451cfae31bd | refs/heads/master | 2021-05-01T06:49:42.330836 | 2013-08-17T09:40:57 | 2013-08-17T09:40:57 | 7,180,789 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,378 | h | DimensionSizes.h | /**
* @file DimensionSizes.h
* @author Jiri Jaros \n
* CECS, ANU, Australia \n
* jiri.jaros@anu.edu.au \n
*
* @brief The header file containing the structure with 3D dimension sizes
*
* @version kspaceFirstOrder3D 2.13
* @date 9 August ... |
481a397d5f91fc0c7f13dfc1987896fb82e6a9f6 | 89019d6fc0b0d41105222adb3cdb41f23ca93e9a | /str_vec/str_vec.hh | a39569e309c395ce5b98a2845103fcf6531d3555 | [] | no_license | vitmy0000/cpp_primer_example | d21a259c8bce96583795cf40f7a07f1c982049c5 | fe4b05b5798751ea524ea643fd97bfbc56f0f5fb | refs/heads/master | 2020-12-02T18:06:08.407213 | 2017-08-28T20:24:07 | 2017-08-28T20:24:07 | 96,473,208 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,547 | hh | str_vec.hh | #ifndef STR_VEC_HH
#define STR_VEC_HH
#include <memory>
#include <string>
namespace cpp_primer {
class StrVec {
public:
StrVec();
StrVec(const StrVec&);
StrVec(StrVec&&) noexcept;
StrVec& operator=(const StrVec&);
StrVec& operator=(StrVec&&) noexcept;
~StrVec();
void push_back(const std::string&); // ... |
7422b91458241161091113238702ac56ba6e2aa5 | 883c7ddf58c4dbc99285c923d71af95320f1353f | /lab2/insertion.cc | c41a72bf36b455f28560f1b91baece5122d17a74 | [] | no_license | lorenzodb1/ubc-cpsc221-labs-projects | 5fc9de8f3ec5c9966727534a7a8e765a2a797a24 | 9b3a05692f401dbb6f761c5f134908bfc7f9bd45 | refs/heads/master | 2016-09-14T06:38:47.708129 | 2016-05-04T01:46:46 | 2016-05-04T01:46:46 | 58,007,450 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,553 | cc | insertion.cc | #include <iostream>
#include <cstdlib>
#include "insertion.h"
// insertion sort with several errors
// store command-line arguments in x[] array
void getArgs( int argc, char **argv ) {
x_size = argc - 1;
for(int ii = 0; ii < x_size; ii++ )
x[ii] = atoi( argv[ ii + 1 ] );
}
void scootOver( int jj ) {
for(int kk... |
4d6fae73afcaea8e328ae5cfadceacec316bc69a | 5abd571c3d803d1a6a69bac0b6edddd422cc7fb4 | /snake.cpp | 25a4efed1ec73da8d55897434fd2f9a8e15f3a3d | [
"MIT"
] | permissive | AInoob/HA | 5693fd612ebf871f6094a5eaa2bf3b90a3d2386c | 713bcbe0c475668fb180a52d70cea4b6fa8f8495 | refs/heads/master | 2020-05-17T02:53:45.567708 | 2014-05-20T01:09:00 | 2014-05-20T01:09:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,404 | cpp | snake.cpp | #include "stdafx.h"
using namespace std;
HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
boolean ask(string question)
{
char response = 'x';
cout << question << "enter y or n to choose" << endl;
cin >> response;
response = tolower(response);
while (!(response == 'y' || response == 'n'))
{
cout << "invalid... |
5bee4a7d7ac06df9ac0d39c53e7670e71146b1d0 | e8fa46e0e5318c229a49b2803910e12e4d29884e | /leetcode/347.cpp | 1252ca649cce9116abbb55fcf296b6e6f74ec801 | [] | no_license | igorbragaia/algorithms | e6bc71b0612a65b2650c259aa2cdec593b9f6c53 | 0b4204c5a11d736c7299bd8c485e325eed630a19 | refs/heads/master | 2021-12-12T13:49:13.226739 | 2021-11-27T02:51:23 | 2021-11-27T02:51:23 | 106,027,078 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 659 | cpp | 347.cpp | class Solution {
public:
vector<int> topKFrequent(vector<int>& nums, int k) {
unordered_map<int,int> hashing;
for(int num : nums){
if(hashing.find(num) != hashing.end())
hashing[num]++;
else
hashing[num] = 1;
}
priority_queue<pa... |
75bda07eaee08f08610d561e397176e289f1e868 | cc843c464b8c52c947782efc8131f6e978f902a2 | /CaptionPanel.h | 07080c4ccc57103ac43b2fecb20c0db79564b3e3 | [] | no_license | ntxbaby/broswer | 81f32e90a6b904139341155ae604e6b153ba4265 | 3d1670b311ff58516961efcce41d4479edf10ccf | refs/heads/master | 2020-04-09T05:47:44.933129 | 2013-12-07T06:39:27 | 2013-12-07T06:39:27 | 15,001,523 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 478 | h | CaptionPanel.h | #pragma once
#include "Panel.h"
#include "LeftCaption.h"
#include "CenterCaption.h"
#include "RightCaption.h"
class CCaptionPanel :
public CPanel
{
public:
CCaptionPanel(void);
public:
~CCaptionPanel(void);
DECLARE_MESSAGE_MAP()
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
private:
CLeftCaption m_leftC... |
ff7e2c78a394fa0538a5ea2ab00c15382d47198c | f6d271233b8a91f63c30148cdcdb86341ba45c2f | /external/TriBITS/tribits/examples/TribitsExampleProject/packages/mixed_lang/src/MixedLang.cpp | 7b1bd60171d0d80f1f109b08f672f01de126efa0 | [
"BSD-2-Clause",
"BSD-3-Clause",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-permissive",
"MIT"
] | permissive | wawiesel/BootsOnTheGround | 09e7884b9df9c1eb39a4a4f3d3f8f109960aeca0 | bdb63ae6f906c34f66e995973bf09aa6f2999148 | refs/heads/master | 2021-01-11T20:13:10.304516 | 2019-10-09T16:44:33 | 2019-10-09T16:44:33 | 79,069,796 | 4 | 1 | MIT | 2019-10-09T16:44:34 | 2017-01-16T00:47:11 | CMake | UTF-8 | C++ | false | false | 96 | cpp | MixedLang.cpp | #include "MixedLang.hpp"
std::string tribits_mixed::mixedLang()
{
return "Mixed Language";
}
|
257eaddc90f14389e1342cdf4e3b86a73b0d8733 | 28e7d0e0dbc0d38cf5c4d823af1c0b1ef42cf343 | /Solutions/136.cpp | 2200cd3fae28d44a5a5c525680d0895f71866f0e | [] | no_license | tr0j4n034/Project-Euler | 33a530c6ad3a4eb5ec29c2962ee6f7576ccaac15 | 7da7a23f4b95d831d63ee6c55a575506c0f138e7 | refs/heads/master | 2020-05-09T21:07:06.732358 | 2019-04-15T07:12:57 | 2019-04-15T07:12:57 | 181,430,393 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 807 | cpp | 136.cpp | //
// main.cpp
// practice
//
// Created by Mahmud on 6/10/18.
// Copyright © 2018 Mahmud. All rights reserved.
//
#include <iostream>
#include <cmath>
using namespace std;
const int MAX = 50000000;
int ways[MAX];
int main() {
cerr << "done in: " << 1. * clock() / CLOCKS_PER_SEC << endl;
for (int ... |
c09276c6b1db8b587f428b905641c879429f7552 | 8e75847867a2ab519b6b9472d5af970e57447391 | /Source/OperationCode/Interpreter/Lexer/Tokens/Keywords/T_For.cpp | 2a0d7b3813e0b9fc6434e1702bbe365eb958c29a | [] | no_license | glitchhunter/OperationCode | d06ef5979a275368988b4c26eeb01774e60d4e2b | 5a32862ab15702ab454e5322513f1dd57ddc4f9b | refs/heads/master | 2023-01-06T16:05:05.082126 | 2019-03-22T14:09:28 | 2019-03-22T14:09:28 | 147,513,982 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 149 | cpp | T_For.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "T_For.h"
UT_For::UT_For()
{
TokenName = TEXT("For");
}
|
508534e8c4f666e0b2249e43c86b02f5a031bb21 | 05f6ae92ac91a49039851311707d0f695f6c4167 | /LeerXML.cpp | b353d254c9603dc5caecab5f14f9a30b6d514f3e | [] | no_license | ablasco86/Real-time-RGB-D-data-processing-on-GPU-architecture | 41753abfc95505b74371f11ff8110f1c2e7f4d76 | c36d249e3b7168f7444ebac57d44f769135a80ff | refs/heads/master | 2021-01-16T01:01:41.877242 | 2014-02-18T13:34:28 | 2014-02-18T13:34:28 | 16,948,919 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,419 | cpp | LeerXML.cpp | #include "LeerXML.h"
/* Leer un fichero XML
*
* Carga un fichero de tipo XML donde se almacenan los valores de los parámetros que usaremos en cada prueba
* del sistema.
*
*/
float ReturnFloat (TiXmlDocument &doc, const char* nameVariable)
{
TiXmlNode* node = 0;
float valor = 0.0;
String variable;
node = doc... |
b7018c54851911b9e2ffd76b6e96b830bfe62a18 | 29693ceaa63ffcc47a69253a063c39f6dafa0b24 | /Buttons/Game/physics constants.hpp | 783db548971cf0f82b78b62334ba1de135d27a1a | [] | no_license | indianakernick/Buttons | cd4c5d7647cca9e3a1978ab6c0c039e96631c9b8 | 3e010f2626c0a6d7335c5cb7c2125588641bfc45 | refs/heads/master | 2022-05-16T18:43:09.120460 | 2018-10-06T09:20:59 | 2018-10-06T09:20:59 | 109,796,074 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 644 | hpp | physics constants.hpp | //
// physics constants.hpp
// Buttons
//
// Created by Indi Kernick on 7/11/17.
// Copyright © 2017 Indi Kernick. All rights reserved.
//
#ifndef physics_constants_hpp
#define physics_constants_hpp
#include <Box2D/Common/b2Math.h>
const b2Vec2 GRAVITY = {0.0f, -9.80665f};
constexpr int32 VELOCITY_ITER = 16;
con... |
fccb89a18bcf0beff3e5cf59bb3b73aa48a88112 | e759afc08c16a4a85a2dba283e5fd1d6ea3b5c05 | /acm.1110.cpp | b9b685607c903d2babbd440160348ce9008efb4e | [] | no_license | ZNWhahaha/C-Cpp | 35a2cd50e046776b1c30125a81a18c47b91aaafb | 23029d002e14f34c0419206703c919b11891a563 | refs/heads/master | 2020-07-24T22:51:41.868010 | 2016-11-15T06:55:29 | 2016-11-15T06:55:29 | 73,784,085 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 103 | cpp | acm.1110.cpp | #include<stdio.h>
main()
{ int a,b,t;
scanf("%d %d",&a,&b);
t=a;
a=b;
b=t;
printf("%d %d",a,b);
}
|
6b580503a33e5ac2b9e472fec1c63685f3e4872a | bde14002d00d0a46a760ad7d301c40da9dacdb44 | /src/Node.cpp | d883aa1baeb9c1d85c6618c309b09b3d9f65affb | [] | no_license | BackupTheBerlios/glui-ng | 7a77ed9ed47bead8e5b731d6a3ea80d383a0feaa | 73c2cb2b9c54bca90c71bf2d72252b6b5b4ec51e | refs/heads/master | 2020-04-26T19:11:23.343505 | 2010-04-04T09:04:27 | 2010-04-04T09:04:27 | 39,715,137 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,257 | cpp | Node.cpp | /*
GLUI-ng, an openGL widget toolkit. Copyright (C) 2010 MALET Jean-Luc
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 2.1 of the License,
or (at your option) ... |
d523e7797ee32da365fb8f0870f498118b3f45b4 | 492976adfdf031252c85de91a185bfd625738a0c | /src/Game/AI/AI/aiAttackGraveChase.cpp | 233f23df66a40f7b1b3c09242473d1e02d6c3c45 | [] | no_license | zeldaret/botw | 50ccb72c6d3969c0b067168f6f9124665a7f7590 | fd527f92164b8efdb746cffcf23c4f033fbffa76 | refs/heads/master | 2023-07-21T13:12:24.107437 | 2023-07-01T20:29:40 | 2023-07-01T20:29:40 | 288,736,599 | 1,350 | 117 | null | 2023-09-03T14:45:38 | 2020-08-19T13:16:30 | C++ | UTF-8 | C++ | false | false | 789 | cpp | aiAttackGraveChase.cpp | #include "Game/AI/AI/aiAttackGraveChase.h"
namespace uking::ai {
AttackGraveChase::AttackGraveChase(const InitArg& arg) : ksys::act::ai::Ai(arg) {}
AttackGraveChase::~AttackGraveChase() = default;
bool AttackGraveChase::init_(sead::Heap* heap) {
return ksys::act::ai::Ai::init_(heap);
}
void AttackGraveChase::e... |
58e749ca791beda4278213a352336a88d2fd69c7 | ea658fac119b77892bb4ac316364edf4d2102bbe | /APL/Heap/src/BinomialHeap.h | a1fb905531ce89a1c87cb778901849904edd0110 | [
"MIT"
] | permissive | abilng/MTech-Assignments | fc9aef4a3b410062d5b7e7344a7b3c97a410f6c5 | edb7a468eef6d8364551e8b6c04acf7c79831138 | refs/heads/master | 2020-04-17T11:34:34.714564 | 2014-05-03T17:14:58 | 2014-05-03T17:14:58 | 18,207,633 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,066 | h | BinomialHeap.h |
#ifndef BINOMIALHEAP_H_
#define BINOMIALHEAP_H_
#include "Heap.h"
#include <fstream>
using namespace std;
class BinomialHeap: public Heap
{
private:
struct BinomialNode
{
Priority key;
BinomialNode *parent;
BinomialNode *child;
BinomialNode *sibling;
int degree;
};
BinomialNode *head;
... |
649df3204fffc5b1e6c74447667775cbe1da8f16 | eec6fc365c7415835b4a69eaceb23a224f2abc47 | /BaekJoon/2020/회장뽑기 (2660번).cpp | 4e478ef866f4f9325b7876fc1f20885b36a380c2 | [] | no_license | chosh95/STUDY | 3e2381c632cebecc9a91e791a4a27a89ea6491ea | 0c88a1dd55d1826e72ebebd5626d6d83665c8431 | refs/heads/master | 2022-04-30T23:58:56.228240 | 2022-04-18T13:08:01 | 2022-04-18T13:08:01 | 166,837,216 | 3 | 1 | null | 2019-06-20T10:51:49 | 2019-01-21T15:32:03 | C++ | UTF-8 | C++ | false | false | 898 | cpp | 회장뽑기 (2660번).cpp | #include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int N;
int p[51][51];
vector<int> res;
int main()
{
cin >> N;
for (int i = 1; i <= N; i++)
for (int j = 1; j <= N; j++)
p[i][j] = 51;
while (true) {
int a, b;
cin >> a >> b;
if (a == b && a == -1) break;
p[a][b] = p[b... |
0d7470833f375983c476eba197ce709316bff0e7 | 658129adb8f10b4cccdb2e432430d67c0977d37e | /cpp/cs311/profs_examples/selection_sort.cpp | 932e0cc2ade0b868c3ba942a91c64924d44cb387 | [] | no_license | amiel/random-useless-scripts | e2d473940bdb968ad0f8d31514654b79a760edd4 | 166195329bc93c780d7c8fd088d93e3a697062a0 | refs/heads/master | 2020-12-24T13:21:37.358940 | 2009-03-29T06:08:26 | 2009-03-29T06:14:02 | 140,835 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,488 | cpp | selection_sort.cpp | // selection_sort.cpp
// Glenn G. Chappell
// 9 Oct 2006
//
// For CS 311
// Selection Sort on an Array
#include <iostream>
using std::cout;
using std::endl;
#include <algorithm> // for std::swap
// selectionSort
// Do Selection Sort on a given array.
// Requirements on Types:
// operator< must ... |
6eadfc47e00bf9b42c6ec894a0b08851049ca678 | 983786cac7fccdbfde0ecf549f9d43101e6daacb | /Source/BehaviorUnit.h | 05432f9fdbe20c6f6c68a1b08fb3f34fc68533f7 | [] | no_license | Saftur/pow | a31ed7a90eb1e061418c2c010179737e10ffd3bf | ff992ccffacf807a44bea61950e99dd70cc3c336 | refs/heads/master | 2018-09-08T14:37:50.956036 | 2018-08-24T01:53:01 | 2018-08-24T01:53:01 | 120,832,124 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 7,116 | h | BehaviorUnit.h | //------------------------------------------------------------------------------
//
// File Name: BehaviorUnit.h
// Author(s): Doug Schilling (dschilling)
// Project: MyGame
// Course: CS230S17
//
// Copyright © 2017 DigiPen (USA) Corporation.
//
//------------------------------------------------------------... |
2e0e5c6714179ce85d45cfba669de3d1e057f924 | adbf3ae9a2c8db8c60dd12efe3612e360f833da3 | /Algorithm in Cpp/WARSHLL1.cpp | fe448705027e5a90c12a9b837566ee672ba25d19 | [
"MIT"
] | permissive | mdabdullahibnaharun/Algorithms | 74369bf071361b536c3469d7e3036cbc9eca95e8 | a64763d1609af5f1a1b6b1ac0ee52910f23952e1 | refs/heads/main | 2023-04-09T18:09:30.472063 | 2021-04-26T03:02:09 | 2021-04-26T03:02:09 | 327,311,867 | 5 | 1 | MIT | 2021-03-23T10:56:14 | 2021-01-06T12:57:02 | C++ | UTF-8 | C++ | false | false | 1,781 | cpp | WARSHLL1.cpp | #include<iostream>
#include<algorithm>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<conio.h>
using namespace std;
#define TRUE 1
#define FALSE 0
#define MAX_VERTEX 20
int main()
{
int i = 0,
j = 0,
k = 0,
vertices = 0,
path[MAX_VERTEX][MAX_VERTEX],
adj... |
bf7c4b6e312ea582e2f825842a85fcb0d5c14938 | d9f1cc8e697ae4d1c74261ae6377063edd1c53f8 | /src/misc/Color.h | 59d7da2e659ec2e22a74f0fb03189409802add28 | [] | no_license | commel/opencombat2005 | 344b3c00aaa7d1ec4af817e5ef9b5b036f2e4022 | d72fc2b0be12367af34d13c47064f31d55b7a8e0 | refs/heads/master | 2023-05-19T05:18:54.728752 | 2005-12-01T05:11:44 | 2005-12-01T05:11:44 | 375,630,282 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 514 | h | Color.h | #pragma once
struct ColorModifier {
int Red;
int Green;
int Blue;
};
struct ColorModifiers {
char Name[256];
ColorModifier Body;
ColorModifier Legs;
ColorModifier Head;
ColorModifier Belt;
ColorModifier Boots;
ColorModifier Weapon;
};
extern ColorModifiers g_ColorModifiers[];
extern int ... |
c73a26c52f892b2540c18484b5e0d7d2730ac43f | 775f05d41ccfb35980818691255d9bb1fd08ec36 | /include/Utils.h | fa3fcda1e202abd90fc22371df7b0a5e7ddeee4e | [
"BSD-3-Clause"
] | permissive | lvchigo/rt-cqt | b55afb0c48ef1bd869b64c32e129c132bb1e1fe1 | bd33116fcc279f8f8e06b74a0867e2023d374dcd | refs/heads/main | 2023-07-18T06:30:03.463550 | 2021-08-19T21:08:43 | 2021-08-19T21:08:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 986 | h | Utils.h | /*
==============================================================================
This file is part of the rt-cqt library. Copyright (C) the rt-cqt developers.
See LICENSE.txt for more info.
==============================================================================
*/
#pragma once
namespace Cqt
{
templat... |
0004e809ef3133b1f9bf9a5373f61f0288f36ea5 | 0aa8eb62eb56f0c1679e57ea54fb8ccd4d7a4e8a | /CabbageGame/Elements/Blocks/CElementBlockFlag.h | bd78ca20a87c0deb4e2283f6b81948b95714c52f | [] | no_license | iondune/HappyCabbageAdventure | 03f15d6bd3529ef6a5d7bcad52b99d0a89d94788 | 1c031c982834a0f8ec6f5cb0069d77919109caab | refs/heads/master | 2022-09-05T18:35:14.744242 | 2017-01-17T21:46:01 | 2017-01-17T21:46:01 | 266,990,924 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 744 | h | CElementBlockFlag.h | #ifndef __CFLAG_H____
#define __CFLAG_H____
#include "../CGameplayElement.h"
#include "CElementBlock.h"
class CElementBlockFlag : public CElementBlock {
public:
enum FlagRole {
NEXT = 0,
SECRET = 1
};
private:
FlagRole Role;
public:
virtual void OnColl... |
8b3c5d133e16e1ef516de7fa5493df1300ce0cd1 | 5042603e9ced3a23a6058f5e77ba4c1e7fe27ef2 | /test/testRegionModelChecker.cpp | 0248be11cf7488b8a9e9cd5f168b44b0dbfeccc4 | [] | no_license | jannikhuels/hpnmg | 378647f17c52113e01cf61dd4f1bae30b738cca9 | eb366c6043dbb3ac59a6f9fb2c157b1ec66a1b9c | refs/heads/master | 2021-06-06T02:54:59.894465 | 2020-03-25T11:43:47 | 2020-03-25T11:43:47 | 114,992,963 | 1 | 0 | null | 2019-11-11T12:21:13 | 2017-12-21T10:21:20 | C++ | UTF-8 | C++ | false | false | 23,969 | cpp | testRegionModelChecker.cpp | #include "gtest/gtest.h"
#include "modelchecker/Conjunction.h"
#include "modelchecker/ContinuousAtomicProperty.h"
#include "modelchecker/DiscreteAtomicProperty.h"
#include "modelchecker/Formula.h"
#include "modelchecker/Negation.h"
#include "modelchecker/RegionModelChecker.h"
#include "modelchecker/Until.h"
#include "... |
90620f74ee78c32301caf68b44a7511e7b1f378f | f1b43dddc88b6f04aa44119a902bbc2b6610a68b | /Year3/LLP/RayTraceApplication/RayTraceApplication/_Configuration/PropertyMetadata.h | 8e0530c21bfcc1790966f513da2afa62411682a7 | [] | no_license | GRMaverick/University | fbf453348e50f111c68f68230768ccda5e1725fc | 7f213df8f5a1c81b5b20f30587d347dac3ac1a41 | refs/heads/master | 2023-03-28T13:50:56.705583 | 2021-03-31T20:47:11 | 2021-03-31T20:47:11 | 353,469,640 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 387 | h | PropertyMetadata.h | #pragma once
template<typename Class, typename T>
struct PropertyImpl
{
constexpr PropertyImpl(T Class::*aMember, const char* aName)
: member{ aMember }, name{ aName }
{
}
using Type = T;
T Class::*member;
const char* name;
};
template<typename Class, typename T>
constexpr auto property(T Class::*member, ... |
28e290727d47c402eb7cf1504e60d245c24b7733 | 7dddfe758643603d83e5eeec78dfe1d5b8f38cef | /tdt/tdt/controllable_camera.cc | 3d5c79b8cf714b01525efdca6c690195eef30441 | [] | no_license | steplee/lidarRender | a3f4ea742b080c4192e4a1e60dc799f1ba57221a | 62addfb43a7603b5e6adf40421460135b81486dd | refs/heads/main | 2023-08-02T11:58:42.012449 | 2021-09-30T22:49:27 | 2021-09-30T22:49:27 | 359,317,075 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,190 | cc | controllable_camera.cc | #include "controllable_camera.h"
#include <Eigen/Core>
#include <Eigen/Geometry>
#include <iostream>
ControllabeCamera::ControllabeCamera(const CamSpec& cs)
: Camera(cs)
{
}
void ControllabeCamera::setPos(const double t[3]) {
this->t[0] = t[0];
this->t[1] = t[1];
this->t[2] = t[2];
}
void ControllabeCamera::s... |
fd88aa144769cf1a01a5231410597e173720ad8a | 50f74e9e0749cfb43b2db7c97ae4e580c87a301f | /include/redux/logging/logitem.hpp | 79e70f578394ab95c7b865a9bffd610ec6684779 | [] | no_license | ISP-SST/redux | 298e264b161004d61af0a36d90bd13968d5486cf | 2bd80ec796d4dd7d7120e0dd26d84fe252b86eaa | refs/heads/master | 2023-05-27T11:07:57.088498 | 2023-05-23T11:25:41 | 2023-05-23T11:26:02 | 45,384,045 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,145 | hpp | logitem.hpp | #ifndef REDUX_LOGGING_LOGITEM_HPP
#define REDUX_LOGGING_LOGITEM_HPP
#include "logentry.hpp"
namespace redux {
namespace logging {
class Logger;
struct LogItem {
inline void setLogger( Logger* lg ) { logger = lg; }
inline... |
b76005d517ca07f3cae505c6ae5248f806160ec3 | 950b506e3f8fd978f076a5b9a3a950f6f4d5607b | /cf/398-div2/D.cpp | 0ada8d492ba112d3119c889dbfc6e43d40761f21 | [] | no_license | Mityai/contests | 2e130ebb8d4280b82e7e017037fc983063228931 | 5b406b2a94cc487b0c71cb10386d1b89afd1e143 | refs/heads/master | 2021-01-09T06:09:17.441079 | 2019-01-19T12:47:20 | 2019-01-19T12:47:20 | 80,909,953 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,921 | cpp | D.cpp | #include <bits/stdc++.h>
#define fi first
#define se second
using namespace std;
using ll = long long;
const int N = 1e7;
vector<int> g[N + 1];
int have[N + 1];
int nxt[N + 1];
int over[N + 1];
int main() {
#if __APPLE__
freopen("D.in", "r", stdin);
freopen("D.out", "w", stdout);
#endif
int n, m, k;
... |
d54db6ecb2b4e730ac8f61ea7d1c847639534c0a | 08b8cf38e1936e8cec27f84af0d3727321cec9c4 | /data/crawl/git/hunk_335.cpp | c02e016bb0713582eb1983f26706e3be34cce66f | [] | no_license | ccdxc/logSurvey | eaf28e9c2d6307140b17986d5c05106d1fd8e943 | 6b80226e1667c1e0760ab39160893ee19b0e9fb1 | refs/heads/master | 2022-01-07T21:31:55.446839 | 2018-04-21T14:12:43 | 2018-04-21T14:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,987 | cpp | hunk_335.cpp | } while (lo < hi);
return -lo-1;
}
-
-/*
- * Conventional binary search loop looks like this:
- *
- * unsigned lo, hi;
- * do {
- * unsigned mi = (lo + hi) / 2;
- * int cmp = "entry pointed at by mi" minus "target";
- * if (!cmp)
- * return (mi is th... |
bbe99bc92a9c8343dc56d8c7291e2e122d10629e | 9ed1564e46c1d6f7bfb2138e328d3c6d0cb4931c | /source/widget/megalcdnumber.h | ae8c4b0f277eb58facfd48a11dd26c09b95d72d6 | [] | no_license | ww4u/mct-t4 | c66a399fd2f4d281d1aa1cb6db1aded7edf781f1 | b4ff50ce2947e7d69972d500633aec991cd13c57 | refs/heads/master | 2022-12-14T22:36:39.047386 | 2019-08-05T04:32:15 | 2019-08-05T04:32:15 | 296,253,721 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 375 | h | megalcdnumber.h | #ifndef MEGALCD_H
#define MEGALCD_H
#include <QLCDNumber>
class MegaLcdnumber : public QLCDNumber
{
Q_OBJECT
public:
explicit MegaLcdnumber(QWidget *parent = 0);
~MegaLcdnumber();
public:
void display( float v );
void display( double v );
void display( int n );
void di... |
beabc881982b547b5307a3ab773d7d974780a3ec | 1061216c2c33c1ed4ffb33e6211565575957e48f | /cpp-tizen/src/RealTimeEventsManager.cpp | c1d60e69ee07c9f4e8543ba76470db25a806af2d | [] | no_license | MSurfer20/test2 | be9532f54839e8f58b60a8e4587348c2810ecdb9 | 13b35d72f33302fa532aea189e8f532272f1f799 | refs/heads/main | 2023-07-03T04:19:57.548080 | 2021-08-11T19:16:42 | 2021-08-11T19:16:42 | 393,920,506 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 23,013 | cpp | RealTimeEventsManager.cpp | #include <glib-object.h>
#include <json-glib/json-glib.h>
#include "RealTimeEventsManager.h"
#include "NetClient.h"
#include "Helpers.h"
#include "Error.h"
#include "RequestInfo.h"
using namespace std;
using namespace Tizen::ArtikCloud;
RealTimeEventsManager::RealTimeEventsManager()
{
}
RealTimeEventsManager::~Re... |
dc09d01f38f45da69d1e53669c7ffd2f852adbbf | 567d8fff1e71de5a23ddfc20b5288965adc8a547 | /cplus_training/77.cpp | 4ad65b40977c7715d9c62ee5eb68db7dc5143003 | [] | no_license | zhengjunrui/C-training | cff87f398b845573b32c2f6dd25081b5f015a678 | 18a99e21e38cdced02b66a60c59aaf32106ceed2 | refs/heads/master | 2021-05-06T23:45:28.865462 | 2018-01-07T02:49:10 | 2018-01-07T02:49:10 | 112,983,834 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 247 | cpp | 77.cpp | #include<stdlib.h>
#include<iostream>
using namespace std;
int main()
{
const char *s[]={"q","a","b","c","d"};
const char **q;
for(int k=0;k<5;k++)
{
q = &s[k];
cout<<*q<<"\n";
}
cout<<endl;
return 0;
} |
e132fe1e08f646b1ce33e9f7918ed932ef38a5b0 | 1c027949aa9c9b255c994ccdef9cffb34a6746c2 | /heap.cpp | 8cd0680286e74f63f46294b97a0d85a815d7d852 | [] | no_license | overmind2/sanya-cpp | dee7e81a7d061c2497e42eb6ad4114a5d7fd657d | 7ba15f18d103f3fdcfed95faad0bebb8b415414d | refs/heads/master | 2016-09-06T01:15:30.747847 | 2011-11-09T04:38:15 | 2011-11-09T04:38:15 | 2,727,418 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,627 | cpp | heap.cpp |
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <utility>
#include "heap.hpp"
#include "objectmodel.hpp"
#include "inlines.hpp"
namespace sanya {
Heap *Heap::default_s = NULL;
Heap::Heap(size_t size)
: size_(size),
usage_(0),
from_space_(new char[size]),
copy_usage_(0),
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.