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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ac5dbd25ed0567627cc3a0c09614da5384febae7 | d2c89d6da56a30c0d8a09399b48e98bf9d57efcb | /Interpret/Interpret.h | d7b322f33267e8d386eee82f490edb46148d6328 | [] | no_license | protectors/Design-pattern | 5699ae9b3862a9cde6daf5582967476e9d8ee420 | 7eeaa183efb2d06b7b20088c5e5d8a60577abba6 | refs/heads/master | 2020-11-25T17:56:52.378850 | 2020-02-18T03:34:35 | 2020-02-18T03:34:35 | 228,782,165 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,097 | h | Interpret.h | #ifndef _INTERPRET_H_
#define _INTERPRET_H_
#include <string>
#include <iostream>
using namespace std;
class Context{
public:
Context(){}
~Context(){}
};
class AbstractExpression{
public:
virtual ~AbstractExpression(){}
virtual void Interpret(const Context& c){}
protected:
AbstractExpression(){}
... |
cfc7f99531ae787ff2df47799cae90ba46057000 | e14ffcfbf7f037584b909776d9f1a126cbe6bdcd | /build/ros_cellulo/ros_cellulo_core_autogen/4CJARJP7H4/moc_CelluloZoneAngleInterval.cpp | 895e0e1727d2c04f95b0f0167b0c46e7e274a558 | [] | no_license | LucaFetz/swarm2 | 5c1be70c2f365cd464d2ec08918b98d90e14fa34 | 5cc4c21d9bda0b4f2108caf8c2d6da5071ec1719 | refs/heads/master | 2020-04-29T18:33:20.334552 | 2019-03-18T16:41:23 | 2019-03-18T16:41:23 | 176,327,454 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,514 | cpp | moc_CelluloZoneAngleInterval.cpp | /****************************************************************************
** Meta object code from reading C++ file 'CelluloZoneAngleInterval.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.11.1)
**
** WARNING! All changes made in this file will be lost!
*******************************************... |
eaa5478503c68f416cd33bad41f35cf7f204256c | 604a45107ff36a0362ac9e6a6051b306ef8f186c | /SparkCode/DisplayLine.h | 309a7baaccd5ddc178e0fed801b37783d4bff91d | [
"MIT"
] | permissive | pierreca/SparkLedMatrix | 831997ae0350ed62b950e47bde08780226c67857 | a7f3628820f29a76780f56b76b30029028ff08d7 | refs/heads/master | 2021-01-10T21:25:04.396885 | 2015-06-08T02:56:28 | 2015-06-08T02:56:28 | 30,475,629 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 622 | h | DisplayLine.h | #include "LedControl.h"
#define SPARK_API_MSG_SIZE 63
class DisplayLine {
private:
LedControl *ledDisplay;
ColumnsTable *colsTable;
char message[SPARK_API_MSG_SIZE];
int messageLength;
int displayCount;
int scrollIndex;
int scrollDelay;
public:
... |
77495876b6c509cb1c9c3581b7c90bb203606eaa | dde7dc50b7231f03d215091ebf41d3f242b22024 | /INF1010_TP/TP2/TP2_1905682_1582075/TP2/Rayon.cpp | 09404ae10fc0ee2337c685f586f6a3ba9a3242f9 | [] | no_license | jmlasnier/INF1010 | 2f7f4f29fb90d74faf27867451f5fdd514b30499 | 7687a931132df96a7d59e9a850f765fd64755b52 | refs/heads/master | 2021-05-02T18:39:41.024516 | 2020-09-19T22:18:53 | 2020-09-19T22:18:53 | 120,663,957 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,426 | cpp | Rayon.cpp | /********************************************
* Titre: Travail pratique #2 - Rayon.cpp
* Date: 25 janvier 2018
* Auteur: Timoth�e CHAUVIN
*******************************************/
#include "Rayon.h"
Rayon::Rayon(const string& cat) :
categorie_{ cat }
{
}
Rayon::~Rayon()
{
}
// Methodes d'acces
string Rayon::obt... |
8d355094a192994d678d4318b5d915c8b4b6ab8f | 0c1476444ca5c5a2f4f08df879c11ad57a74f304 | /zerojudge/d066.cpp | 13978f0176dee10e8fc0998cf85646cdba44e8d3 | [] | no_license | SanhornC/Code | f44c932c59ed3d9efe9325f8c5f7acdd47bc36e6 | 51c86df86c67cceabdfdd2c1e17b96c5cb7f175a | refs/heads/master | 2023-01-24T03:06:58.846966 | 2020-11-28T12:37:33 | 2020-11-28T12:37:33 | 289,411,306 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 377 | cpp | d066.cpp | //
// main.cpp
// d066.cpp
//
// Created by Sanhorn on 2020/9/1.
// Copyright © 2020 Sanhorn. All rights reserved.
//
#include <iostream>
using namespace std;
int main(int argc, const char * argv[]) {
int h, m; cin >> h >> m;
int cnt = 60 * h + m;
if(cnt <450 || cnt >=1020)
cout << "Off School"... |
e7338457e7ec09d42e2deb37e4ef1156db225bb5 | ad81708312010e1b90fa2f5e1d638531ae179b19 | /A3/A3.cpp | 02999f206c556b9dfa1d0b7afd101eb5e29529a4 | [] | no_license | JacobBush/cs488 | 474350c93c6ff462dfed6dd350f2bbe3b4241973 | df2991edaa73b66c13898783293c1fa80cb5c577 | refs/heads/master | 2022-03-06T22:21:55.203097 | 2018-07-24T01:48:22 | 2018-07-24T01:48:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 31,259 | cpp | A3.cpp | #include "A3.hpp"
#include "scene_lua.hpp"
using namespace std;
#include "cs488-framework/GlErrorCheck.hpp"
#include "cs488-framework/MathUtils.hpp"
#include "GeometryNode.hpp"
#include "JointNode.hpp"
#include <imgui/imgui.h>
#include <stack>
#include <list>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtx/io.hpp>... |
b3cbeba83707e4e5a54c76506a08808deee4ff9a | 74a69eeb6d035659e10046d4e9255f7759874b25 | /kernel/include/os/Syscall.hpp | f893ee31a680d6c65f9f25ca5ca3f3bb2e867ae7 | [] | no_license | pleasewhy/startos | af5a61e0e56ef7c9f7f3c9c2f5ea6eac78fcc470 | 4876b2dc51c369c3df449ae060afaa17962d8a90 | refs/heads/master | 2023-06-20T12:10:03.293755 | 2021-07-19T13:13:53 | 2021-07-19T13:13:53 | 370,990,136 | 12 | 0 | null | 2021-06-01T13:51:34 | 2021-05-26T10:13:33 | C++ | UTF-8 | C++ | false | false | 421 | hpp | Syscall.hpp | #ifndef SYS_CALL_HPP
#define SYS_CALL_HPP
#include "types.hpp"
#include "StartOS.hpp"
void syscall(void);
void syscall_init();
uint64_t argraw(int n);
int argint(int n, int *addr);
int argfd(int n, int *fdp, struct file **fp);
int fetchaddr(uint64_t addr, uint64_t *ip);
int argaddr(int n, uint64_t *ip);
int fetchstr(... |
ca3133efc32c03ed20380931fd33cf5ae69919bd | 879681c994f1ca9c8d2c905a4e5064997ad25a27 | /root-2.3.0/run/tutorials/multiphase/twoPhaseEulerFoam/RAS/fluidisedBed/0.87/Theta.particles | a73423ab18bd3a59d357b89739f09443cf6bb1e2 | [] | no_license | MizuhaWatanabe/OpenFOAM-2.3.0-with-Ubuntu | 3828272d989d45fb020e83f8426b849e75560c62 | daeb870be81275e8a81f5cbac4ca1906a9bc69c0 | refs/heads/master | 2020-05-17T16:36:41.848261 | 2015-04-18T09:29:48 | 2015-04-18T09:29:48 | 34,159,882 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 68,875 | particles | Theta.particles | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
... |
37072f2dcc1842addcca19425353ac2a84318be0 | f0ffd0c22a7136d82b8cb22ef28ffe037052d1ca | /cequal-interpreter/src/classes/value/LiteralBool.cpp | 367004a6e116ef84fd92990adea162852c88e33c | [] | no_license | 0Cristofer/CEqual | e161c6d3818ea14ca67d15a45c8b6f25e5be5604 | c4cd63ec49d1d644049f0a022abdd54adde0bfd2 | refs/heads/master | 2020-03-28T21:32:19.750425 | 2019-08-16T06:01:16 | 2019-08-16T06:01:16 | 149,164,111 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 252 | cpp | LiteralBool.cpp | /* Leaf node for booleans definitons
Authors: Bruno Cesar, Cristofer Oswald and Narcizo Gabriel
Created: 18/10/2018
Edited: 18/10/2018 */
#include "include/LiteralBool.hpp"
LiteralBool::LiteralBool(bool b): Literal(BOOL, "bool"), val(b){
}
|
f467993f4b5a33a06d6712163b0450ea2db1878f | 3a3e910d4ab0ae266ca3af46a80f2a59507c2cf9 | /CCS/shared/system/private/windows/type_p.h | 52e8af4abad749f618c72583819b77e7eb58d9af | [] | no_license | feliciwithme/Multi-machine-Fusion | e17c472374b120f76ab081e06488f1e96d8de943 | 66cc7a506f82c338ba64d04c95eabddf7a69dc46 | refs/heads/master | 2022-08-03T05:07:03.748508 | 2020-05-29T03:36:30 | 2020-05-29T03:36:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 265 | h | type_p.h | #ifndef TYPE_P_H
#define TYPE_P_H
#include "private/system_type_p.h"
class type_p : public system_type_p
{
bool isWOW64() const;
public:
type_p();
virtual OSType os_type();
virtual PlatformType platform_type();
};
#endif // TYPE_P_H
|
79924e4603f1c0b3bbf77082a964e63ae4477db3 | 966bbfeba1be9aa7c0707c13f0dc0d7039f9e4f9 | /src/tools/LWPRType.h | 24496ff3b187cd4467cc73a7f06b65e1320e8e3f | [] | no_license | Warren5382/remotingclient | 21ba231fd0108edc8111f744b8ede4b1de3274b6 | 738d28cb8a2b171d320a6545f4c8b46cab14545e | refs/heads/master | 2020-12-24T14:45:01.995379 | 2013-10-07T02:47:03 | 2013-10-07T02:47:03 | 12,721,790 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 1,937 | h | LWPRType.h | #ifndef LWPR_LWPR_TYPE_H__
#define LWPR_LWPR_TYPE_H__
#include <cassert>
#include <signal.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/msg.h>
#include <sys/types.h>
#include <sys/select.h>
#include <sys/time.h>
#include <unistd.h>
#include <pthread.h>
#include <vector>
namespace LWPR
{
... |
d6b39fc35128436544be8697e54c7757fff672f4 | d92f31835946d64473a036efc5f97ed55b9ceacf | /src/object.cpp | 179c9259b584aaa9369ec6e64b92a620dcada952 | [] | no_license | vncp/GraphicsIntro | 9b00a08434be08a63ed3400e08b3c84b6c882f22 | 2972e72063646692e47c8a67182e8260a23b496c | refs/heads/master | 2023-08-01T12:07:15.435089 | 2021-09-13T17:14:40 | 2021-09-13T17:14:40 | 406,062,146 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,495 | cpp | object.cpp | #include "object.h"
Object::Object(Args *args)
: Object3D(args),
angleOrbit(0.0f),
angleSpin(0.0f),
isSpinning(true),
isSpinClockwise(true),
isOrbitting(true),
isOrbittingClockwise(true),
spinMultiplier(1.0f),
orbitMultiplier(1.0f)
{
/*
# Blender File for a Cube
o Cube
v 1.000000 -1.000... |
4030d1ea631ca7ce22c66d21c2d928864a62aaaa | 1f7736bca0ea40ea989f8e3b5598e21aa853c997 | /sling/util/arena.h | 00a855627bba7e62637608c131ea9cfb010350c9 | [
"Apache-2.0"
] | permissive | google/sling | 93045899c975ef244a3bdd09b4cea3c536db098d | f408a148a06bc2d62e853a292a8ba7266c642839 | refs/heads/master | 2023-05-31T19:30:22.235743 | 2021-01-22T19:30:50 | 2021-01-22T19:30:50 | 89,349,679 | 2,069 | 322 | Apache-2.0 | 2021-01-22T21:43:15 | 2017-04-25T10:47:40 | C++ | UTF-8 | C++ | false | false | 2,623 | h | arena.h | // Copyright 2017 Google Inc.
//
// 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 ... |
7f5ba2c1a8a574a9974156b5f108af2a8aff3533 | 65dda9db8260a9830f23a90b2883e5c2260f2948 | /gtl/gtl/range/iterator_range.h | f2109a90b294ee3bd3861900d96ad057837bd418 | [
"Apache-2.0"
] | permissive | kevinic/gtl | 00040745757f085ec20290a41835ff025473285b | 3f3f3c89ba608932bfd30747e40b4eef07e9f417 | refs/heads/master | 2021-01-23T13:59:43.110657 | 2013-09-12T04:52:05 | 2013-09-12T04:52:05 | 12,751,797 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,471 | h | iterator_range.h | /**
* Copyright 2013 Kevin Lin
*
* 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 i... |
c7c0cd31d73e58c8d15c71d3ef50f26bbe528086 | 027db7d8309e6f43567476aade755753ce90ae9e | /MapProject.h | 183d58c0e0245181784f8404c0af6545e34e95b6 | [
"MIT"
] | permissive | linyuehzzz/GISGraphics | 4ae7f45da644dc5322e7589015eada8d8e9e060f | 54818dcbeb01c4801a877fb465898e2a32d13616 | refs/heads/master | 2020-03-15T18:51:40.361839 | 2019-12-14T20:35:12 | 2019-12-14T20:35:12 | 132,293,886 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 686 | h | MapProject.h | // MapProject.h: interface for the CMapProject class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAPPROJECT_H__E02D5215_9AA0_464A_B486_5A40E466D9BD__INCLUDED_)
#define AFX_MAPPROJECT_H__E02D5215_9AA0_464A_B486_5A40E466D9BD__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#en... |
df86e3f83dcff64143739329fe7d68e68c528bad | 8cbdfde45d4ee766971c04347d1b9270fb822b82 | /sliding_tile/sliding_tile.h | 872d26005e2dee538ce07a998ba022e765f28a00 | [] | no_license | tinamil/dibbs | b4e6f2ca87525ddc1982303b865c2dc07c04bd94 | af0953b84fa12b1a1efc8f9044ecab1808018092 | refs/heads/master | 2023-06-17T09:43:17.441819 | 2021-06-17T01:29:24 | 2021-06-17T01:29:24 | 152,330,796 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,302 | h | sliding_tile.h | #pragma once
#include <cstdint>
#include <cassert>
#include <cstring>
#include <cmath>
#include "hash.hpp"
constexpr int NUM_TILES = 16;
constexpr size_t MEM_LIMIT = 100ui64 * 1024 * 1024 * 1024; //100GB
enum class Direction { forward, backward };
inline Direction OppositeDirection(Direction d) {
if (d == Directio... |
dec5bfff7da9bf370435563150c34e78f4d62b59 | 1bb929ed638a7205c7b0f5207e95d158016ff42f | /hero.h | 280642f6e2baae05f40ee2ca348c9d5021e38295 | [] | no_license | SelYui/RunGame | f847e9823c5db5f298e3034d254a2b03723c3c42 | 26dba32625d15116bf58c65b8877044d5c19cce2 | refs/heads/main | 2023-03-01T02:12:28.354685 | 2021-02-10T17:55:32 | 2021-02-10T17:55:32 | 337,803,794 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,818 | h | hero.h | #ifndef HERO_H
#define HERO_H
#include <QObject>
#include <QGraphicsItem>
#include <QGraphicsScene>
#include <QPainter>
#include <QDesktopWidget>
#include <QImage>
/* Подключаем библиотеку, отвечающую за использование WinAPI
* Данная библиотека необходима для асинхронной проверки состояния клавиш
* */
#include <win... |
7c4aff658147c31c6b6d544fc4219d3a2c90ca0f | 98c7cc6e4436c2deb43bd965935f42ed6ab5396f | /Server/AException.cpp | 48a649de8ddc12ad15f5be15001a0b4bc7c6c84d | [] | no_license | AndreiVladescu/Noodle | 276c172fe3288bf5da8d49b936b0d327462fc68e | a737a9f196ff44ed2bedc707fb82fa28e4bbbf6e | refs/heads/main | 2023-08-28T03:20:11.616796 | 2021-11-04T16:20:01 | 2021-11-04T16:20:01 | 357,468,256 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 388 | cpp | AException.cpp | #include "AException.h"
AException::AException(string exceptionMessage
, int exceptionCode) : p_exceptionCode(exceptionCode), p_exceptionMessage(exceptionMessage)
{
}
string AException::getMessage()
{
return p_exceptionMessage;
}
int AException::getCode()
{
return p_exceptionCode;
}
AException::~AExcep... |
2c627d1074a38f392897a9420e924450fbc37abf | 295181f54d0fe13641e72698f85a62996951dc4e | /src/main.cc | e7f553917ae2357b476c0d9a5723da3b3b80b7e6 | [] | no_license | FengShang/geek_training | 97496c33b27311b5d5bb6971ce4aeaf0e9a96ea2 | 6028642a5e01f85d215518bee92d1aaee961456e | refs/heads/master | 2020-04-15T02:28:18.834695 | 2014-04-06T07:11:25 | 2014-04-06T07:11:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 118 | cc | main.cc | #include "game_center.h"
int main(int argc, char *argv[])
{
demo::geek::GameCenter game;
return game.run();
}
|
2b3adb484aa0cb781e00a0db7f2ff7c5aec0051e | 90c8e33d17c6cafe9bebd439974585182b01466b | /team_19s_1/E/20627966_nico123_E.cpp | 0c00ae8438ec4393276b6ba00de7de7f5dfafe63 | [] | no_license | neverac/codes | fa89f6bb2aeef868b07e3bacefa1b7051e5c9af6 | 816d5039b48a44d5e940fba85dab0649d5427983 | refs/heads/master | 2020-06-20T10:57:31.191587 | 2019-07-28T08:46:20 | 2019-07-28T08:46:20 | 197,100,521 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,246 | cpp | 20627966_nico123_E.cpp | #include<bits/stdc++.h>
#define LL long long
using namespace std;
LL A[30],M[80][80],SS[80],S[80];
int main()
{
LL T,i,N,cursor,j,L,Q,X0,Y0,X1,Y1,ql,qr,l,r,len,SS1,ans;
scanf("%lld",&T);
while(T--)
{
scanf("%lld",&L);
for(i=0;i<L;i++)scanf("%lld",&A[i]);
if(L%2==0)N=2LL*L;
else N=L;
cursor = 0;
for (i =... |
386efcf90ac917e2b9ff796aa8e9c330362d13b9 | 3d36c46c13c50d68ea7405a0443cc5fccb2871d7 | /Graphs/24.2 Check if given Graph is Strongly Connected or not.cpp | 42e5493ee9ca7e3b6d378d23c88e22639d768467 | [] | no_license | arpit353/DSA-Codes | 41f30daf7ebc03356b50c15629620880661eb0a0 | 5e688e1b53e56336936a0e60038fa7ab0fc4161c | refs/heads/master | 2021-03-16T09:10:07.639621 | 2018-05-07T16:43:22 | 2018-05-07T16:43:22 | 115,899,291 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,268 | cpp | 24.2 Check if given Graph is Strongly Connected or not.cpp | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
/*
Can we do better?
We can say that G is strongly connected if
1. DFS(G, v) visits all vertices in graph G, then there exists path from v to every other vertex in G and
2. There exists a path from every other vertex in G to v
Proof... |
c329656e8876ef6e1fd82369d6b0dfdae95633de | b19878a8a4b9c948a0e7460c983384782f9be96c | /libxbn/xslt_plugins/1_0/xslt_value_of.cpp | 1cab72c0c4d410252b7e71447a63f6ae08e9d4fb | [] | no_license | manumehta123/xbn | a3ad77467f73fdee8aba6e01c68f0a05e147ff90 | 41ca285e094721b58078043bb3a4be47f8a8cd3d | refs/heads/master | 2021-01-19T09:41:45.441130 | 2012-02-09T23:34:48 | 2012-02-09T23:34:48 | 38,676,912 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,452 | cpp | xslt_value_of.cpp | /*
libxbn is a small and tiny xml binary node
Copyright (C) 2010 Thomas Kraus (thomentor@gmx.de)
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
(a... |
eb51ffdccca8f4267eef86d95012bfb507ccfecd | f8dc2eb94958206c03d39ec133d51c6856660784 | /src/ControlComponent.h | 9bf5f162d784789d11c0268b90e46907f762c72d | [
"MIT"
] | permissive | FroxCode/Portfolio-VTA | d997bde5447ade1c9d1b75398f06e600da89a48a | 9379ff2b8d4a4e26df9b149cad57575915ed0998 | refs/heads/master | 2020-05-03T03:50:43.872971 | 2019-03-29T13:44:09 | 2019-03-29T13:44:09 | 178,407,367 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 741 | h | ControlComponent.h | #pragma once
#include "Component.h"
class ControlComponent : public Component
{
private:
SDL_Point velocity = { 0, 0 };
double angle = 0;
const int MAX_VELOCITY_X = 10;//need to be edited for pickups
const int MAX_VELOCITY_Y = 10;
public:
ControlComponent() : Component("Control")
{
angle = 300;
};
~ControlCo... |
65b87bfdc5f30f0ad13527fadfc68e5647b0c2ad | ed65e4b26fc0d32c099ddd326f87fed54f2f02ce | /C++/SelectionsSort/source.cpp | 30d2da20df32196305f9f30b0cd1bd33ea3dce85 | [] | no_license | yu-tree/Algorithm_Basic | 3798d834821ef50e1b6ca6d92afad4267adfee97 | 2b80e7a8ee9a426ebf9b1bb98b3c7ac94732b82f | refs/heads/master | 2023-08-21T17:55:13.246885 | 2021-10-13T12:55:19 | 2021-10-13T12:55:19 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 558 | cpp | source.cpp | #include<stdio.h>
int main(void) {
int i, j, tmp, index,min;
int arr[10] = { 1,10,5,8,7,6,4,3,2,9 };
for (i = 0; i < 10; i++) {
min = 999;
for (int j = i; j < 10; j++) {
if (min > arr[j]) {
min = arr[j];
index = j;
}
}
printf("This is min : %d\n", min);
//현재 arr[j]자리에는 i이후의 숫자중에 최소의 값이 들어있음
... |
287a40c37c23c407560b1f8cf9aee6752a260590 | 5a680f2e4d07539148753f620360b566fc8fbc67 | /CSharpClasses/MyField.cpp | 7e04eeceb4c89f575d6d7b2d289ee131ed20fcc9 | [] | no_license | olferuk/CPP_SharpClasses | c582b85920b0c221809bcb78c2f953bccfcd6497 | ffd91bf2d5f98adf7632446e72e8e03c62504639 | refs/heads/master | 2021-05-29T17:34:34.702401 | 2015-04-28T19:08:41 | 2015-04-28T19:08:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 47 | cpp | MyField.cpp | #include "MyField.h"
MyField::~MyField()
{
}
|
7db7fe445b047f57dd9e9cc5acab815323c0ef5f | 253b6e90a3d00de25e3d82e096dd38bfc6020be1 | /src/model.cpp | aab9249a6ec074f681c6f2944532191895b71214 | [] | no_license | pwon111/binary | 0cc1aed2b46706ffa4ad059c36f8c8fcca223332 | a952e895f1dcc2a01917bafca449ecb007c6ff6a | refs/heads/master | 2021-01-10T04:45:10.448627 | 2015-11-17T02:15:16 | 2015-11-17T02:15:16 | 46,317,131 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,294 | cpp | model.cpp | #include "model.hpp"
/****************************** ModelID Controller ****************************/
const ModelID registerNewModelID() {
return next_model_id++;
}
/******************************* ModelName Struct *****************************/
// ModelID ModelName::max_id = 0;
// unordered_map<ModelID, ModelN... |
0495b5d26135088c2e2b2982ca7c468ad90139c5 | a403b2e9308c22fb699e5d1336db081921732a35 | /CommonAsduAnalyzer103/Common103Analyzer.cpp | 84a09e8fb5050447b958d7986cc19f24853186aa | [] | no_license | CMCC-WY/IEC103PacketAnalyzer | 358278104943a161188f7d3d85ff6c1512d0c018 | db19bcd4e09fe87f22f42b7e84b83e825b0b6f56 | refs/heads/master | 2020-09-10T22:57:33.207435 | 2018-12-24T03:03:23 | 2018-12-24T03:03:23 | 221,858,839 | 0 | 3 | null | 2019-11-15T06:27:48 | 2019-11-15T06:27:45 | null | GB18030 | C++ | false | false | 48,732 | cpp | Common103Analyzer.cpp | #include "Common103Analyzer.h"
#include <stddef.h>
#include <string>
CCommon103Analyzer::CCommon103Analyzer(void)
{
}
CCommon103Analyzer::~CCommon103Analyzer(void)
{
}
int CCommon103Analyzer::SetDuiValue(int nCotNum, int nCommonAddrNum)
{
m_nAsduNum = ASDU_TYPE_NUM_103;
m_nVsqNum = VSQ_NUM_1... |
7de4f1380345fe297c51c375fda4fc0df813358a | 9f33e0b5854750c8872524ad37d1d7e2827340ae | /1/1.4/main.cpp | 4cbdd5e9b5a5a7b32f8644c369ae273918604848 | [] | no_license | olegbukatchuk/book-cpp-the-examples-and-tasks-part-2 | e20582d98150b9e44649a6cfab975293c370d40b | 6391c66aa902ee88e322dbe3a4d4ee80e65ded5e | refs/heads/master | 2021-09-07T14:00:04.245315 | 2018-02-23T21:01:46 | 2018-02-23T21:01:46 | 115,825,139 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 201 | cpp | main.cpp | #include <iostream>
using namespace std;
int main() {
double v;
double t=1.2;
double g=9.8;
v=12.3;
double s=v*t-g*t*t/2;
cout<<"Heught level is "<<s<<"\n";
return 0;
} |
ba3bfff1d055dde5ecef7af650e373238b536f32 | 0b2f4d37675f91adf6673f94ba40fb20d6c71af0 | /PWGGA/PHOSTasks/PHOS_Run2embedding/AliPHOSEmbeddingRun2.h | 34b22c6c1caa973b0363af95fa968e958adc2479 | [] | permissive | AMechler/AliPhysics | 7a7af8b459b1c2af55b749e9a44574cdb354a7e7 | e89a1d4f0104c8f0c78f43815fb30722c082f640 | refs/heads/master | 2022-11-08T07:30:11.943491 | 2022-09-23T12:01:24 | 2022-09-23T12:18:01 | 87,077,759 | 1 | 0 | BSD-3-Clause | 2021-05-27T07:48:59 | 2017-04-03T13:33:59 | C++ | UTF-8 | C++ | false | false | 3,917 | h | AliPHOSEmbeddingRun2.h | #ifndef AliPHOSEmbeddingRun2_h
#define AliPHOSEmbeddingRun2_h
// Class to perform embedding on the AOD level
// Author: D.Peressounko
class TChain ;
class TClonesArray ;
class TH2F ;
class AliPHOSClusterizerv1 ;
class AliPHOSReconstructor ;
class AliAODEvent ;
class AliESDEvent ;
class AliESDtrack ;
class AliESDCalo... |
cd353b0b342c0636063b5ede43c1b6c1ebed8f60 | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/webrtc/api/transport/test/feedback_generator_interface.h | 6e5118cbf41020950b07aef898eb691f8c68836c | [
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later",
"LicenseRef-scancode-google-patent-license-webrtc",
"BSD-3-Clause",
"LicenseRef-scancode-google-patent-license-webm",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | C++ | false | false | 1,431 | h | feedback_generator_interface.h | /*
* Copyright 2019 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... |
16f522051dad24f957e36d0bdeec9dd56683e26b | ca66721a830468cff42304f7d345a4a4f1605268 | /rts/optics/material.h | 33b704f958a4ce1c69382a980666bb9b595d6c83 | [] | no_license | seberisha/bimsim-cuda | f5c484d8e3beb813b244fac8649df95b9f507919 | a36c95da05c3f605dd64e1d9cfe02ecb7914973e | refs/heads/master | 2020-03-15T07:49:33.946879 | 2018-05-03T19:04:35 | 2018-05-03T19:04:35 | 132,037,894 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,719 | h | material.h | #ifndef MATERIALSTRUCT_H
#define MATERIALSTRUCT_H
#include <vector>
#include <ostream>
#include <iostream>
#include <fstream>
#include <complex>
#include <algorithm>
#include <sstream>
#include "rts/math/complex.h"
#include "rts/math/function.h"
//#define PI 3.14159
namespace rts{
enum field_type {field_microns, f... |
dbda8b16d3664d8ef891223a123d534d4a6c96c0 | 8eed18ed5726fd6aefacb52cfd3c3095c05f7ef7 | /vacas.cpp | 0d177384d5260193ea3dcd6ebe5168c6b462c95d | [] | no_license | Luis-Brandao/Competitive-Programming | 8cdc0742819dd9522e1f8d28db5bc1c95dce2e64 | 258b0005d7805917aa8abf931b23ef151e0c0d28 | refs/heads/master | 2020-04-02T00:27:27.195115 | 2018-10-19T15:41:40 | 2018-10-19T15:41:40 | 153,805,879 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 773 | cpp | vacas.cpp | #include <iostream>
#include <set>
using namespace std;
set<int> stalls;
bool fits(int k, int c) {
int start = *stalls.begin();
int count = 1;
for(int x : stalls) {
if(x - start >= k) {
start = x;
count++;
}
}
return count >= c;
}
int search(int low, int high, int c) {
int count, start;
int mid = ... |
6842c496eec04543ba0e5dfa870569ba0bd0aa29 | 7f69d17fa5b84eb3375e17cd7efa96bb01aeb160 | /Micro/3Dddd/model/Utilities/modelMacros.h | e47e43e6ba60d28ba98949547463c4e710a7de31 | [] | no_license | ARUN-PRAKASH-95/TMS-3rd_Sem_Programs | 9a7f8984942b5abd43354d207321dfe904f923d2 | d2a3a969e26643b4603ac397beeef24a291dc5c2 | refs/heads/master | 2020-12-09T19:32:07.177455 | 2020-02-03T12:49:20 | 2020-02-03T12:49:20 | 233,398,215 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,363 | h | modelMacros.h | /* This file is part of MODEL, the Mechanics Of Defect Evolution Library.
*
* Copyright (C) 2013 by Giacomo Po <gpo@ucla.edu>.
*
* model is distributed without any warranty under the
* GNU General Public License (GPL) v2 <http://www.gnu.org/licenses/>.
*/
#ifndef _model_macros_h_
#define _model_macros_h_
// s... |
4153a16e3168e241e2dcf7fbef619bd664de420a | 7d132eae1c4d1e572f42869bf1da5b094c53c25b | /Assignments/hw5/stack.h | 13a641e936a5057490668e768d11fd79f2c18e28 | [] | no_license | afreet220/CSCI104_DataStructure | bf8c83c3b61814daa3fbc550b152a2093ed5af35 | fb05514608489a858ff36b33cfeec7e531c22b5c | refs/heads/master | 2021-01-10T14:54:38.028428 | 2015-10-15T10:47:03 | 2015-10-15T10:47:03 | 44,303,931 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,222 | h | stack.h | #ifndef STACK_H_
#define STACK_H_
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <string>
#include <exception>
#include <cstddef>
#include <stdexcept>
#include "ilist.h"
#include "arraylist.h"
using namespace std;
template <class T>
class Stack : private ArrayList<T>
{
public:
// add appropri... |
5f0011771bf492b6cc940021ae2626d5423d20cd | fc25227f1972606fcc3c13219abe52b1af01e7c3 | /CoursEra/The art of developing in modern C++/1 Basics/Homework/ProductPrice.cpp | 6c618f7886770f07e91fc2507e5b1722d83fe086 | [] | no_license | G1nger19/Courses | adc379fde90de6d57b8714b3351ecf72b2dfe090 | 41b1db6eacf87908c22098a18ca52935af8a046f | refs/heads/master | 2022-09-05T15:04:13.185381 | 2020-05-30T14:23:52 | 2020-05-30T14:23:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 244 | cpp | ProductPrice.cpp | #include <iostream>
using namespace std;
int main(){
double n,a,b,x,y;
cin>>n>>a>>b>>x>>y;
if(n>a && n<=b){
cout<<(n-(n/100*x));
}
else if(n>b){
cout<<(n-(n/100*y));
}
else{
cout<<n;
}
} |
6e2531c2dd40869dc194b159415e78df8aba3cbc | 6894f4c7ea0968d4f1582796aeb650478cd61424 | /depends/include/zsummerX/common/common.h | 61355b8775c7e9e813684c112ab7749e67f04c2b | [
"Apache-2.0"
] | permissive | Johance2/breeze | 4cf8677fff91e9cb6dbf2b38a68e3b50c5fee28b | 9c8f34f34e59f7b9570c507668dc4c50e20c2769 | refs/heads/master | 2021-01-10T23:58:25.636783 | 2016-09-05T12:36:04 | 2016-09-05T12:36:04 | 70,777,598 | 3 | 0 | null | 2016-10-13T06:50:57 | 2016-10-13T06:50:56 | null | UTF-8 | C++ | false | false | 7,975 | h | common.h | /*
* zsummerX License
* -----------
*
* zsummerX is licensed under the terms of the MIT license reproduced below.
* This means that zsummerX is free software and can be used for both academic
* and commercial purposes at absolutely no cost.
*
*
* =====================================================================... |
f323da14166e32fddf66d64395e12cc6ba2968cd | a01fb6831ce9fbcf20c318be6333a54f5e7bb122 | /ocean_effect.hpp | eb5ebd7cfc28c0ac1a469273e0cce735e2d00943 | [] | no_license | Retardigrades/visuals | 37ae665d66ce9f582057d1c0d2e3f97d7046fb98 | 2209d8175c838140ca7f74aa4a813a8947defffa | refs/heads/master | 2021-01-20T09:49:04.854347 | 2018-02-21T22:46:04 | 2018-02-21T22:46:04 | 90,289,348 | 0 | 1 | null | 2017-06-16T20:40:51 | 2017-05-04T17:12:44 | C | UTF-8 | C++ | false | false | 221 | hpp | ocean_effect.hpp | #ifndef OCEAN_EFFECT_HPP
#define OCEAN_EFFECT_HPP
#include "effect.hpp"
class OceanEffect : public Effect
{
public:
OceanEffect();
void fill(EffectBuffer& buffer, const EffectState& state) override;
};
#endif
|
678a7f46aa051b279b205b25045a71cf4be7742a | 9f314c14556a1d2ede69c08ff75d9c3e730adc4f | /oink/xform_cmd.h | 8e7efa82af5923ae07b0ab80ab3bdc933f7cae6c | [
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-public-domain"
] | permissive | zhouzhenghui/oink-stack | c1077394f6a64c8aec2f3b4d4a322ada3993bc74 | 12901ab95b3ea60360906b63f6602f060ac3de1f | refs/heads/master | 2020-04-13T07:32:05.388961 | 2016-10-21T00:47:35 | 2016-10-21T00:47:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,738 | h | xform_cmd.h | // see License.txt for copyright and terms of use
// Process command-line arguments.
#ifndef XFORM_CMD_H
#define XFORM_CMD_H
#include "oink_cmd.h"
#include "oink_file.h" // File
class XformCmd : public virtual OinkCmd {
public:
// print out every declaration allocating a var on the stack
bool print_s... |
d9231921a1636857f11efc779df1af1ae0d86373 | 59e024b1dc5ca1e9effa813adf109324c5d43d4c | /ReflectionSystem-Cpp/ReflectionSystem-Cpp.cpp | 3405248a4408511dda55498bafde81a56997ed91 | [] | no_license | kaushikswapnil/ReflectionSystem-Cpp | cada0e50b55186136fd98a757715cf321d4493d1 | cbc0079c16240d92b21a09d4f9e33c34e039ad15 | refs/heads/master | 2022-09-11T15:20:20.517682 | 2022-08-17T23:19:33 | 2022-08-17T23:19:33 | 185,035,092 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,021 | cpp | ReflectionSystem-Cpp.cpp | // ReflectionSystem-Cpp.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include <typeinfo>
#include "Reflect.h"
#include <windows.h>
struct Node
{
int key{};
double value{};
std::string name{};
std::vector<int> children{};
REFLECT() // Enable reflec... |
84a9d5df7166fa43e34bdcee7ffa03bf0126b31e | 98e4e8685174748ce91c817c7eeb7d2dc193f177 | /bulgeDeformer.cpp | 60fcdc62f7db30d742945e28e7077f244b04df89 | [] | no_license | digideskio/Maya-blendMesh | 6f31fc44baf38f405b77b61731d0d39896bdc263 | d6f78890d4627a71cf2a24307e459ac93aa75882 | refs/heads/master | 2020-12-11T05:27:32.115648 | 2014-01-13T22:47:35 | 2014-01-13T22:47:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,587 | cpp | bulgeDeformer.cpp | #include "bulgeDeformer.h"
MTypeId BulgeDeformer::id(0x00007174);
MObject BulgeDeformer::aBulgeAmount;
BulgeDeformer::BulgeDeformer()
{
}
BulgeDeformer::~BulgeDeformer()
{
}
void* BulgeDeformer::creator()
{
return new BulgeDeformer();
}
MStatus BulgeDeformer::deform(MDataBlock& data, MItGeometry& itGe... |
0de639d8c72165c513fdd2a886dc3a223749796d | c53b4c5176f72239ab3107753bd2aea1fe88af81 | /aslam_cv_calibration/src/target-aprilgrid.cc | 18a1922952043290d7d2e69292fc23b6133f5d2e | [
"Apache-2.0"
] | permissive | ethz-asl/aslam_cv2 | a7e0c1c4b8feaa467cf749c5011481525eae577a | 8df54bda80c7c562d19e035fbad3fdb5459059ae | refs/heads/master | 2023-09-04T16:04:25.877334 | 2023-03-30T07:59:26 | 2023-03-30T07:59:26 | 103,947,833 | 200 | 65 | Apache-2.0 | 2023-03-25T16:22:54 | 2017-09-18T14:13:12 | C++ | UTF-8 | C++ | false | false | 10,971 | cc | target-aprilgrid.cc | #include <algorithm>
#include <memory>
#include <vector>
#include <apriltags/TagDetector.h>
#include <apriltags/Tag36h11.h>
#include <aslam/common/yaml-serialization.h>
#include <Eigen/Core>
#include <glog/logging.h>
#include <opencv2/calib3d/calib3d.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgp... |
0039e74f831d90c7d25cb774f9fb665c55091774 | 25d2e23145f4a3302642b8b1f4b95b5f6cb32d6a | /Legacy/621/Final/Osal/SslSocket.cpp | 8172b6b0101ef59673c9d0c0566cdd176960eb26 | [] | no_license | mfeingol/almonaster | 3b167043b29144e96d50e620f03d1015bc74c4a3 | 57caeda258bc4bce60e37f61e122b791767147e7 | refs/heads/master | 2023-01-11T07:57:28.278474 | 2023-01-03T23:45:48 | 2023-01-03T23:53:09 | 223,525,538 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 33,608 | cpp | SslSocket.cpp | // Socket.cpp: implementation of the Socket class.
//
//////////////////////////////////////////////////////////////////////
//
// OSAL - Operating System Abstraction Library
// Copyright (C) 1998 Max Attar Feingold (maf6@cornell.edu)
//
// This library is free software; you can redistribute it and/or
// modify... |
6a546b40a392b6fc5e1be3fec78aaf7263eb3c90 | 14fe9cb57f1751a0747f371ae26186c5a2528ec4 | /assign3/blackbear.cpp | 66bb360dee67aec144d621247c50a4e21025c52e | [] | no_license | raginid20/CS162 | 68dc08f106cc69ea013d632cabd00960effa4be5 | a6c1e59857c65e1ceea58fc2be715e50e19028d8 | refs/heads/main | 2023-08-15T04:07:49.897327 | 2021-10-02T03:47:04 | 2021-10-02T03:47:04 | 412,678,276 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 702 | cpp | blackbear.cpp | /******************************************************
** Program: blackbear.cpp
** Author: Ragini Dindukurthi
** Date: 5/6/2021
** Description: Zoo Tycoon Game
** Input: N/A
** Output: game statements and information
******************************************************/
#include <iostream>
#include <str... |
469ed85dca592085cc6bd97d9a57371c8ebb7155 | b7f1234d71b5523348caf492ef99ce3b52f52369 | /PhysiCell/addons/PhysiBoSS/src/maboss_network.h | 52c4f619999095257c29442fcce4958d5e039d82 | [
"BSD-3-Clause"
] | permissive | pc4covid19/COVID19 | 9614a0e73d167ff2ed5ae33ef41d591b43c75aa9 | 3bb1047fc12b3062b940126513959f3193e78fd7 | refs/heads/master | 2023-05-12T23:54:43.614661 | 2021-10-19T14:56:07 | 2021-10-19T14:56:07 | 250,146,377 | 5 | 9 | BSD-3-Clause | 2021-10-19T14:55:58 | 2020-03-26T02:55:14 | Jupyter Notebook | UTF-8 | C++ | false | false | 4,050 | h | maboss_network.h | #ifndef _MaBoSS_Net_h_
#define _MaBoSS_Net_h_
#include "StochasticSimulationEngine.h"
#include "BooleanNetwork.h"
#include "RunConfig.h"
#include "utils.h"
#include "../../../core/PhysiCell_utilities.h"
/**
* \class MaBoSSNetwork
* \brief Interface with MaBoSS software
*
* \details The MaBOSS network class conta... |
c2e78552992a8ea4899afdad318e36f1fa33445b | 58a0ba5ee99ec7a0bba36748ba96a557eb798023 | /Data Structures/Graph/Centroid Decomposition.cpp | fcba435a422bae57703d4c4709e99e6b1a90393c | [
"MIT"
] | permissive | adityanjr/code-DS-ALGO | 5bdd503fb5f70d459c8e9b8e58690f9da159dd53 | 1c104c33d2f56fe671d586b702528a559925f875 | refs/heads/master | 2022-10-22T21:22:09.640237 | 2022-10-18T15:38:46 | 2022-10-18T15:38:46 | 217,567,198 | 40 | 54 | MIT | 2022-10-18T15:38:47 | 2019-10-25T15:50:28 | C++ | UTF-8 | C++ | false | false | 1,793 | cpp | Centroid Decomposition.cpp | #include <bits/stdc++.h>
using namespace std;
#define N 100100
int n, x, y;
vector < int > graph[N];
struct CentroidDec {
int root, visited[N], siz[N], layer[N], parent[N];
vector < int > centroidTree[N];
void init() {
for (int i = 0; i < N; i++) {
visited[i] = siz[i] = layer[i... |
5f6ea22cc6b9472119799e321676beaed66bb06a | a3560e20b1a610860466974cb374f4b84098a214 | /Src/Flute/Flute_Default.ino | 86073f35ca2047648b15a94359dfbd2c93c567dc | [] | no_license | visvash/Martian-Harmony | 45c16603a0b3a18c5d7776e62f4f2f9ba4b335fe | f0c4df13812f8434985ccd152929491fd92ca85c | refs/heads/master | 2020-05-05T03:09:29.145426 | 2019-04-15T15:47:51 | 2019-04-15T15:47:51 | 179,662,745 | 2 | 0 | null | 2019-04-05T10:33:19 | 2019-04-05T10:33:19 | null | UTF-8 | C++ | false | false | 16,802 | ino | Flute_Default.ino | #include <Servo.h>
#include <Stepper.h>
#define SIZE 200
#define OPEN 0
#define HALF 1
#define FULL 2
#define STEPSPR 150
Servo myservo1,myservo2,myservo3,myservo4,myservo5,myservo6,myservo7; // create servo objects to control a servo. Twelve servo objects can be created on most boards
Stepper stepper(ST... |
7e05922076ce6a27640307f3a1de1a2936d0e9e7 | 5b331ae8fabcc43e2ec8d80c8750d87f23d4388b | /点云自动配准文章shot.cpp | 64db574696c9de4fc3c6209a0f8b6e4249c3eaaf | [] | no_license | huabowen/Point-cloud-automatic-registration-article-shot | 249a1df2592906fa2805417243845e76282c6a88 | c7b5bf7012f64ab344586e893958f6045ab6114f | refs/heads/master | 2020-07-19T23:32:44.662816 | 2019-09-05T10:00:38 | 2019-09-05T10:00:38 | 206,531,921 | 5 | 1 | null | null | null | null | GB18030 | C++ | false | false | 59,000 | cpp | 点云自动配准文章shot.cpp | #include <iostream>
#include <pcl/io/pcd_io.h>
#include <pcl/io/ply_io.h>
#include <pcl/point_types.h>
#include <pcl/point_cloud.h>
#include <pcl/kdtree/kdtree_flann.h>
#include <vector>
#include <string>
#include <pcl/features/normal_3d_omp.h>
#include <pcl/visualization/pcl_visualizer.h>
#include <pcl/features/fpfh_O... |
57c45ebfc5b72123272039ef850292dd76903fc4 | 4fa753608f790ba9233d8b3b7e2a277c580c54d8 | /e2fdb-helper/Thumb.cpp | 346ddb6d03859415d6b647e8596c0124dd17ae13 | [
"MIT"
] | permissive | txe/e2fdb | f3b91eb28308978192a7403906a5438c35453042 | 005ef4f3268e6a6e44422cf07bba2099de9aae85 | refs/heads/master | 2020-12-24T14:35:45.277922 | 2014-04-15T11:01:29 | 2014-04-15T11:01:29 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 3,527 | cpp | Thumb.cpp | #include "StdAfx.h"
#include "Thumb.h"
#include <shlobj.h>
#include <atlimage.h>
//-------------------------------------------------------------------------
bool thumb::ExtractThumbnail(const std::wstring & strDirectory, const std::wstring& strFileNameOnly, const std::wstring& strThumbnailFileNameOnly, int nSi... |
dec3a17c10691a4f98e4fddd3b550e234795f557 | adf9e2a78f91c5689073f476703a93cc0ddeb190 | /findInformativeReads.cpp | 7d444bc3c042fc0fa85d84ac20db70951ede0a4b | [] | no_license | rdcrawford/ATLAS | 27230066ddb62d7a33d03492b16d735bb7bffc73 | 409e3a8ae4d7750d2fa45648c57870f146a6d731 | refs/heads/master | 2020-03-11T14:53:37.067819 | 2018-04-19T22:31:10 | 2018-04-19T22:31:10 | 130,068,356 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,456 | cpp | findInformativeReads.cpp | #include "api/BamAlignment.h"
#include "api/BamMultiReader.h"
#include "api/BamWriter.h"
#include "BarcodeClass.h"
#include <string>
#include "constants.h"
#include "readData.h"
using namespace BamTools;
// -------------------------------------------------------------------------- //
// Author Ryan D. Crawford
// Dat... |
187b474d2779d016947762705f559f269e7d794c | 2f8875802666be2637b32387ae12203d4e2458cc | /Cpp_primer/p91-p257/p246/7.24.cpp | e328235ebcfc1844c5ffe37120de27d5f7cc7e81 | [] | no_license | suzumiyayuhi/GrayHistory | 41394c87dc15cf2700b3c4b1e24b296442d9e143 | 72db503e5a8a13c890152c7c9143f1918a9ec8f5 | refs/heads/master | 2020-06-17T17:23:55.278186 | 2017-02-20T08:54:48 | 2017-02-20T08:55:58 | 74,980,202 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 400 | cpp | 7.24.cpp | #include<iostream>
#include<string>
#include<vector>
using namespace std;
class Screen
{
public:
typedef string::size_type pos;
Screen() = default;
Screen(pos a, pos b) :height(a), width(b) { contents=(a*b, ""); }
Screen(pos a,pos b,char c):height(a),width(b),contents(a*b,c){}
private:
string::size_type curspr = 0... |
54df25c77683f039445c0a491d064fd0df927a63 | f38566e7816d955dac2f50e0cf71766a52b2abc1 | /node_modules/ngmaker/node_modules/nodegit/include/treebuilder.h | 0f8feda752f3fd23f933ef63542420728e3419a3 | [
"MIT"
] | permissive | hsleonis/healthy-entrepreneurs | 410ef4d2a6fea80d3888886cc580701fc38ce6a1 | b54eda81909d9f94338d79589055bc9e7f4d2a2e | refs/heads/master | 2021-01-10T10:11:46.373397 | 2016-04-30T10:27:13 | 2016-04-30T10:27:13 | 49,309,530 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,388 | h | treebuilder.h | #ifndef GITTREEBUILDER_H
#define GITTREEBUILDER_H
// generated from class_header.h
#include <nan.h>
#include <string>
extern "C" {
#include <git2.h>
}
#include "../include/tree_entry.h"
#include "../include/oid.h"
#include "../include/repository.h"
#include "../include/tree.h"
// Forward declaration.
struct git_treeb... |
0097a84ca162b9841464cd35d51f675a71fe816f | a7a53c06d9c9bcadd475a160f0b51681f5cd98e4 | /core/sqf/monitor/linux/reqnodeadd.cxx | e82dcf462ecf980a9fa1012b83be2fb8b70e5caa | [
"Apache-2.0",
"LicenseRef-scancode-generic-export-compliance",
"BSD-3-Clause",
"MIT"
] | permissive | Wang1995/trafodion | 182ee82dde03db75db66fcee0643efbf21d9b980 | 1585ac4fa78ecbf2aff86be5c285c14b55f1c138 | refs/heads/master | 2020-07-08T18:04:04.938085 | 2019-08-14T16:20:10 | 2019-08-14T16:20:10 | 193,495,001 | 1 | 0 | null | 2019-06-24T11:46:49 | 2019-06-24T11:46:49 | null | UTF-8 | C++ | false | false | 9,711 | cxx | reqnodeadd.cxx | ///////////////////////////////////////////////////////////////////////////////
//
// @@@ START COPYRIGHT @@@
//
// (C) Copyright 2012-2015 Hewlett Packard Enterprise Development LP
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License... |
87e414647ac1bb0fa0c327245cd3ddbe28a1cff7 | 6a3a50538c544c9f8d65bcb8f96d4e3b68a4e848 | /Sources/Menu/Welcome.hh | 1e0477c8a0f8feb3f7e1003a6371e0e74597e654 | [] | no_license | lejard-h/cpp_bomberman | 8f2d7eabebc1b872e189f066caeee78bc2550569 | 3ba7dcbc77ac87fb47be006446c537da7055b2dc | refs/heads/master | 2016-09-06T08:57:09.230787 | 2014-07-11T08:55:12 | 2014-07-11T08:55:12 | 21,691,750 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 663 | hh | Welcome.hh | //
// Welcome.hh for in /home/maigna_j/rendu/cpp_bomberman/menu
//
// Made by jeremy maignan
// Login <maigna_j@epitech.net>
//
// Started on Thu May 22 13:03:40 2014 jeremy maignan
// Last update Sun Jun 15 02:07:55 2014 Imad Roughi
//
#ifndef WELCOME_HH_
#define WELCOME_HH_
#include "Menu.hh"
class Score;
clas... |
b481c719204b22f2892d223bb0247c5759396f00 | 588c8918a348d46d32d6fead870e235ac869b4df | /CCButton.cpp | 5af9fd2b52a44487c1df96b890f0e98d14adc255 | [
"MIT"
] | permissive | Hyacinth/cocos2dx-ext | 602988e6056779caae91604dd48d485ef390e2f7 | b242aca7866ca7e8fb87ceb1631acabcb422928a | refs/heads/master | 2021-01-18T04:42:47.426195 | 2013-03-25T18:18:51 | 2013-03-25T18:18:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,057 | cpp | CCButton.cpp | /****************************************************************************
Copyright (c) 2012-2013 Igor Zavorotkin <ivzave@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without res... |
a440c4231222b043de27d58f8315038ac30ffb9b | a4c7d958e45fc68bf8ca43caff4dbfb7cef6a068 | /GumballGame.cpp | 3a6c1c71bf0c61a318634874c0bd03268494e3de | [] | no_license | traviskaufman/Gumball-Game | 5e7b60906087a5b1c4f31e6f402776c1c51694f0 | 63380d53aa64dd385d633aec93413ebeea1d963b | refs/heads/master | 2020-04-06T07:21:17.431127 | 2012-02-28T02:14:54 | 2012-02-28T02:14:54 | 3,425,258 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,766 | cpp | GumballGame.cpp | /**
* @file GumballGame.cpp
*
* Implements a Game using gumballs where the goal of the game is to get a Yellow gumball
* Author: Travis Kaufman
* Class: Web Programming - Spring 2012
* Version: 1.0.2
*/
#include "GB_Global.h"
#include "GumballMachine.h"
vector<GUMBALL> findMaxColors(vector<GUMBALL>& chosen_co... |
bfd93e44b267996339c88ccf943da9dbdaeb5068 | 26eecfac0f92adcd74a33f4b9825d35d86b97033 | /ProjectClass/system.h | 6450b1f7718b7e618049005b8db9ed82b33dd58c | [] | no_license | Katczajk/ProjectClass | 691145dbe5ac7fd7c43266ad6bd515d36141b2b2 | 92e51c87fb62c20e0e05762874eb181d4d219741 | refs/heads/master | 2022-07-16T03:02:10.341886 | 2020-05-15T07:16:31 | 2020-05-15T07:16:31 | 264,018,067 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 176 | h | system.h | #pragma once
#ifndef system_h
#define system_h
// Inlcude Guard
#endif // !system_h
class MyPart {
private:
bool sysstat;
public: static void info();
};
int main(); |
623ed08b2cbfe3865485ba70568b7624aa3d9af5 | 184a1ff89af3db673c096ea684d87d3bced61486 | /source/src/node/buffer/beat-cutter.cpp | 0f19dbb65a132a33274955454bcfb0b74f0c198b | [
"MIT"
] | permissive | zeos/signalflow | 9d4de067208fbb34018d9526424783f8ca7ce45a | 1c75030862eeaf6dbe341e23d276880f2f0a991f | refs/heads/master | 2023-05-31T22:03:01.766834 | 2021-06-13T22:56:37 | 2021-06-13T22:56:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,538 | cpp | beat-cutter.cpp | #include "signalflow/core/random.h"
#include "signalflow/node/buffer/beat-cutter.h"
#include <stdlib.h>
namespace signalflow
{
BeatCutter::BeatCutter(BufferRef buffer,
int segment_count,
NodeRef stutter_probability,
NodeRef stutter_count,
... |
3891a8c6c4ca7a729044e0c71db205c8656a3c8d | 32e8da727732ffc5ba6de149daf2a4ca0b57b292 | /Duskfall/Source/Duskfall/Components/Equipment/Shield/AdvBaseShield.cpp | b6a153294cc54da89ad07e4489b6893e6e3839ba | [] | no_license | RoseBush1404/Duskfall | 3f8160c4f6c5bdff675d372eacee646c7bb5782a | 94532c78fd52872c9d681c3c25ec4311d866f661 | refs/heads/master | 2020-08-06T14:19:25.540441 | 2020-07-01T21:13:46 | 2020-07-01T21:13:46 | 213,003,404 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,168 | cpp | AdvBaseShield.cpp | // Duskfall - Michael Rose - r015676g
#include "AdvBaseShield.h"
#include "Components/AnimBillboardComponent.h"
AAdvBaseShield::AAdvBaseShield()
{
//Set Equipment Type
EquipmentType = EEquipmentType::ET_Shield;
EquipmentSize = EEquipmentSize::ES_OneHanded;
}
void AAdvBaseShield::Equipped(UEquipmentManager* Equip... |
582e75a1f6021446686907704f33ba04c7e3f764 | 80b02bff8cfa850dc60497db67e9ff263f671be6 | /proj/calc2dcmd/src/console/mmCommandLine.cpp | 9f0b32a5c81565d48678ec0399cd0d5b86031291 | [
"MIT"
] | permissive | ogx/Calculation2D | 68a3188e59d9842647af0e00c52fefe036b16d06 | 79f9d05986227e4677a8f88309c2eb6512a3de69 | refs/heads/master | 2016-08-03T05:06:23.720417 | 2015-03-26T12:45:07 | 2015-03-26T12:45:07 | 3,526,351 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,200 | cpp | mmCommandLine.cpp | #include <console/mmCommandLine.h>
mmConsole::mmCommandLine::mmCommandLine(void) : m_sElements(1, L"") {
m_sCursor.sElement = m_sElements.begin();
m_sCursor.sCharacter = m_sCursor.sElement->begin();
}
mmConsole::mmCommandLine::mmCommandLine(mmCommandLine const & p_sCommandLine) : m_sElements(p_sCommandLine.m... |
18eaee557cad751236df88fb3a1a7b6d96e38610 | d36ddabd41274bde9a9fea394ad38277ee22bd7e | /TP2_PowerRangers_BMPTerreno/srcBMPTerreno/Parcela.cpp | d32912c6055cf7f3505db006cb08b461b743db7c | [] | no_license | AgustinLeguizamon/PowerRangers-Granjeros-V2.0 | 408b564c1f97b1fc5dea649e9accdbedc7799e09 | 78299e99daed8abdcdd238e08df1ad5e1c46542d | refs/heads/master | 2020-03-15T01:35:21.874169 | 2018-06-30T00:22:46 | 2018-06-30T00:22:46 | 131,897,089 | 0 | 1 | null | 2018-05-19T16:33:12 | 2018-05-02T19:31:25 | C++ | UTF-8 | C++ | false | false | 2,418 | cpp | Parcela.cpp | #include "Parcela.h"
#include <string>
#include <iostream>
using namespace std;
Parcela::Parcela(){
this->cultivo = 'X';
this->estadoCosecha = false;
this->estadoRiego = false;
this->estadoSiembra = false;
this->tiempoCrecimiento = 0;
this->tiempoRecuperacion = 0;
this->cultivoPodrido = false;
this->cultivoSec... |
4c6a658ed218e8087757146d2dbe866353d66acb | 0470293a1b01604579feaa5b376ac0b55685b6e5 | /Project/Source/Game/Core/StateCore/StateCore_Default.h | 5c37b94fcb48c4524326dfe0ae3d6820122a0abf | [] | no_license | TanakaHirokiHalTokyo/DX9-Game | 42c5383039d1278deb37527d40edc3158afb4d7e | 4aebd3fd7e91e3a3492e595f5f7bccafa901e967 | refs/heads/master | 2020-03-30T07:19:45.110520 | 2018-10-02T09:52:29 | 2018-10-02T09:52:29 | 150,932,548 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 302 | h | StateCore_Default.h | #pragma once
#include "StateCore.h"
class StateCore_UpDown;
class StateCore_Default :public StateCore
{
public:
StateCore_Default();
~StateCore_Default()override;
void UpdateCore(Core* core)override;
void ChangeMoveState(StateCore_UpDown* state);
private:
StateCore_UpDown* state_ = nullptr;
}; |
99101f281d944cf32ec10393271b41289e3e9845 | 6e9b20902f4e232d12e865f192ea5128ae253ba7 | /Fluid/3.9/U | d551ff797dc692c6c00ecda07fbe7efbd13950e9 | [] | no_license | abarcaortega/FSI_3 | 1de5ed06ca7731016e5136820aecdc0a74042723 | 016638757f56e7b8b33af4a1af8e0635b88ffbbc | refs/heads/master | 2020-08-03T22:28:04.707884 | 2019-09-30T16:33:31 | 2019-09-30T16:33:31 | 211,905,379 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 59,589 | U | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*-----... | |
cf2c48bd7a695479d776e6215a0c6dea3d1cf177 | 88678d6377075eb1589fb53e59c908dbc7f26071 | /angel_1_1/Code/Tetris/TetrisRenderer_OpenGL.h | ff818ded2e12573eab5e524b3d4fb39850ceba8b | [] | no_license | chrishaukap/GameDev | 89d76eacdae34ae96e83496f2c34c61e101d2600 | fb364cea6941e9b9074ecdd0d9569578efb0f937 | refs/heads/master | 2020-05-28T11:23:41.750257 | 2013-08-08T21:59:30 | 2013-08-08T21:59:30 | 2,401,748 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 417 | h | TetrisRenderer_OpenGL.h | #pragma once
#include "cdhBase.h"
namespace CDH
{
namespace Tetris{
class Game;
}
class TetrisRenderer_OpenGL
{
public:
TetrisRenderer_OpenGL(const Tetris::Game& game);
~TetrisRenderer_OpenGL();
void render() const;
private:
const Tetris::Game& m_game;
TetrisRenderer_OpenGL(const TetrisRend... |
920ebcc2386666eac691655a5dac09d4f1583569 | 73bd731e6e755378264edc7a7b5d16132d023b6a | /CodeForces/914B-4.cpp | 43d9c14ec673d818510cf9ec9398f5a2cecfcdd8 | [] | no_license | IHR57/Competitive-Programming | 375e8112f7959ebeb2a1ed6a0613beec32ce84a5 | 5bc80359da3c0e5ada614a901abecbb6c8ce21a4 | refs/heads/master | 2023-01-24T01:33:02.672131 | 2023-01-22T14:34:31 | 2023-01-22T14:34:31 | 163,381,483 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 473 | cpp | 914B-4.cpp | // BISMILLAHIR RAHMANIR RAHIM
#include <bits/stdc++.h>
#define MAX 100005
using namespace std;
int main()
{
ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
int n, counter[MAX] = {0}, value;
vector<int> arr;
cin>>n;
int sum = 0;
for(int i = 0; i < n; i++){
cin>>value;
sum ^= ... |
6f5620781065535e062b5f3ab445c3eec03aed06 | ffdc77394c5b5532b243cf3c33bd584cbdc65cb7 | /mindspore/core/ops/sparse_to_dense_v2.h | 67f549fbed3ed9b25e192b7b81ac596f51b46bbd | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"MPL-1.0",
"OpenSSL",
"LGPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause-Open-MPI",
"MIT",
"MPL-2.0-no-copyleft-exception",
"NTP",
"BSD-3-Clause",
"GPL-1.0-or-later",
"0BSD",
"MPL-2.0",
"LicenseRef-scancode-f... | permissive | mindspore-ai/mindspore | ca7d5bb51a3451c2705ff2e583a740589d80393b | 54acb15d435533c815ee1bd9f6dc0b56b4d4cf83 | refs/heads/master | 2023-07-29T09:17:11.051569 | 2023-07-17T13:14:15 | 2023-07-17T13:14:15 | 239,714,835 | 4,178 | 768 | Apache-2.0 | 2023-07-26T22:31:11 | 2020-02-11T08:43:48 | C++ | UTF-8 | C++ | false | false | 2,022 | h | sparse_to_dense_v2.h | /**
* Copyright 2022 Huawei Technologies Co., Ltd
*
* 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... |
7cfe357d1ba5c242f91f9650e0fb1ce328df4ba2 | cb543047ffa1bdae7453a739e52b0283e44cf963 | /Zork/Sources/Zork.cpp | 3c59248301de2fb0927b209e863cd8bce7fa950d | [] | no_license | JoshMcGiff/CS4076Project | 463d15d45fecb4148521a2113d7d25e32e5d1872 | e6bead1c1963e8630e9a72ab43681ebff5861c3a | refs/heads/main | 2023-04-18T17:07:13.293529 | 2021-04-29T23:07:26 | 2021-04-29T23:07:26 | 332,938,199 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 8,005 | cpp | Zork.cpp | #include "Zork.hpp"
#include "Item.hpp"
#include <ctime>
__attribute__((unused)) bool thisIsAUsefulVariable = false; //Unused Global Variable, only here due to the spec
namespace Game {
Zork::Zork() : curWorld(nullptr), playerInventory() { //Zork constructor
srand(time(NULL));
/* Generate World 1 */
Ga... |
bccea7f1d1f4bc90f656ffe23e15580779e9bf62 | 05749e63e400dfb2e919e2236b7f2d6ec4108f9e | /halley/src/stdafx.h | 612275829879cdec9049c855115bab0a9822d17a | [] | no_license | Aegisub/kanjimemo | db91f27185d04fbeb5d9b94f848d4bc444fbc873 | a50d86cbb007ac64db900b5d6a8ed93c6e2b26ef | refs/heads/master | 2016-09-05T18:08:57.895036 | 2012-08-09T20:14:39 | 2012-08-09T20:14:39 | 5,360,803 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 166 | h | stdafx.h | #include <wx/wxprec.h>
#include <map>
#include <vector>
#include <list>
#include <string>
#include <SDL.h>
#include <SDL_opengl.h>
#undef rad1
#undef rad2
|
d6da140239b9e320e88fb15de9212df7c2ab0e4e | 6f8176e2f5f9e459fd7c40bd9f7f1d9ea3f9eaeb | /Ch11AppE04.cpp | bec6fe5e4feef376ed81e13f9fbb30e8c51057a4 | [] | no_license | LewisAndClark-CSD/Cpp5th | cfcab8b78bea4ea2bfa740a2c851b9f86ea8f043 | 492c8cfbee088c0b3abb06f75c47e08b6215f328 | refs/heads/master | 2021-05-27T12:38:01.335017 | 2014-11-04T16:09:37 | 2014-11-04T16:09:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 445 | cpp | Ch11AppE04.cpp | //Ch11AppE04.cpp
//Updates the prices stored in a one-dimensional array
//Created/revised by <your name> on <current date>
#include <iostream>
#include <iomanip>
using std::cout;
using std::cin;
using std::endl;
using std::fixed;
using std::setprecision;
int main()
{
cout << fixed << setprecision(2);
//declare ar... |
918aea8c366b19e321acde7629c18c468001490c | 15e69e7b247e219a8bc89f1f6a1da18ff4d1cdaf | /03 从尾到头打印链表.cpp | 856751a2d555e01742adc00d264322fcc7abb9c0 | [] | no_license | liangzai90/Coding-Interviews | dd6470fb4a9b5f5edef8510948028b3bb71dcfbc | c07bfd6d2d1716d11f19b829f8e24318bffb7234 | refs/heads/master | 2020-09-01T15:45:40.251186 | 2017-04-28T06:55:08 | 2017-04-28T06:55:08 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 467 | cpp | 03 从尾到头打印链表.cpp | //3、输入一个链表,从尾到头打印链表每个节点的值。
struct ListNode {
int val;
struct ListNode *next;
ListNode(int x) :
val(x), next(NULL) {
}
};
class Solution {
public:
vector<int> printListFromTailToHead(ListNode* head) {
vector<int> val;
ListNode* currentNode = head;
while (currentNode != NULL)
{
val.in... |
5ed80b85da01b0b20cae2902555203b144c43871 | 44289ecb892b6f3df043bab40142cf8530ac2ba4 | /Sources/Elastos/Frameworks/Droid/DevSamples/jpk/JSGallery2/elastos/devsamples/node/jsgallery3d/CNodeApp.cpp | e3fe0737a2dd6a5ff4c70723b80bc13d0d5ec75d | [
"Apache-2.0"
] | permissive | warrenween/Elastos | a6ef68d8fb699fd67234f376b171c1b57235ed02 | 5618eede26d464bdf739f9244344e3e87118d7fe | refs/heads/master | 2021-01-01T04:07:12.833674 | 2017-06-17T15:34:33 | 2017-06-17T15:34:33 | 97,120,576 | 2 | 1 | null | 2017-07-13T12:33:20 | 2017-07-13T12:33:20 | null | UTF-8 | C++ | false | false | 212 | cpp | CNodeApp.cpp | #define JSActName CAppGalleryAppImpl
#include "CNodeApplication_impl.h"
#define JSActName CAppMovieActivity
#include "CNodeActivity_impl.h"
#define JSActName CAppGalleryActivity
#include "CNodeActivity_impl.h"
|
c06f2c7b1f58fcb051ef2114d1386423ba276d45 | a95d068549aea5e5b9a2f5606106d8575af9ecd5 | /Solved/3182.cpp | 74024150194e26c4defd69583e990d8710eaffee | [] | no_license | cstrnull00/baekjoon | 1ba40fa0a1b81c76c464908c2572001acb4ad60a | b91db6c99ebdc9a500af27efce1e71032a8d97b2 | refs/heads/main | 2023-07-19T22:52:07.930285 | 2021-09-01T12:25:59 | 2021-09-01T12:25:59 | 330,640,166 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 767 | cpp | 3182.cpp | #include <iostream>
#include <cstdio>
#include <vector>
using namespace std;
void list_clear(int* origin, vector<int>* arr, int n) {
if (arr->size() != 0)
for (int i = 0; i < n; i++)
arr->pop_back();
for (int i = 0; i < n; i++)
arr->push_back(origin[i]);
}
int main() {
int N, max = 0, temp, ans = 0, index,... |
49a48871d1a1c4d9f79435c894db7095abb0a6fa | 1cfa70f861279ca3acd1e982faa29937b3027e26 | /Board.cpp | 97877715af1cd185b7105baff70955dfc2aed8dd | [] | no_license | dasv/OOPChess | 1d6ac117180d705b5bf9216e9b872be975a979fa | 21be218cd4848805c2c85f1c05591e64f534d546 | refs/heads/master | 2021-01-14T14:32:52.037327 | 2016-01-26T05:26:21 | 2016-01-26T05:26:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,200 | cpp | Board.cpp | /*
* Board.cpp
*
* This class implements a Board class for a variety of games.
*
* Author: David M. Hansen
* Written: 10/5/2004
*
*/
#include "Board.h"
#include "Square.h"
// Constructors
// Default constructor
Board::Board(int dimension)
{
// Create a vector of squares as a template that we can... |
4fd0d13fabc0353e408986ec52c93582b609af75 | 54173a065504ee27204d2dd4881ae93b3cc557c1 | /Commands/RequestPlayersCommand.h | 6dcb814ffc4ebcddfe2caaf6118ecc6c81dd1da6 | [] | no_license | arturstaszczyk/QTourneyManager | 71e99702ab7cb5b4cbc43aec7dbeb479b7531e96 | 620ed286f29f582b51a4a2f04eac16cc45db4d9f | refs/heads/master | 2021-01-17T22:12:11.584136 | 2016-08-02T20:19:16 | 2016-08-02T20:19:16 | 63,812,240 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 506 | h | RequestPlayersCommand.h | #ifndef REQUESTPLAYERSCOMMAND_H
#define REQUESTPLAYERSCOMMAND_H
#include "Command.h"
#include <QJsonObject>
#include <QNetworkReply>
class RequestPlayersCommand : public Command
{
Q_OBJECT
public:
explicit RequestPlayersCommand(QString hostAddress, QObject* parent = nullptr);
void execute() override;
... |
08d72d3c8f8c16f80886eef754530e348dbb4ad2 | 3eed3c222aa15765e38573a9a2fedf17c04b8a06 | /algorithms/DP sums/longest-bitonic-sequence.cpp | bb31ec36cd2844893a9e9b71a9c286923cec855b | [] | no_license | ManoharGovind/algorithms | 6d1e05229dbdc51c08a382ba413ed52926c68cdf | b56b84c34feffe1ffd0e7555152a433729ac790b | refs/heads/master | 2022-06-14T05:27:08.531026 | 2020-05-11T18:04:28 | 2020-05-11T18:04:28 | 197,895,382 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 824 | cpp | longest-bitonic-sequence.cpp | // longest bitonic sequence
#include <bits/stdc++.h>
#define usl unsigned long long int
#define lli long long int
#define mod 1000000007
using namespace std;
int main(){
int n,i,j;
cin>>n;
int a[n];
for(i=0;i<n;i++)
cin>>a[i];
int mx=0;
int b[n],c[n];
//memset(c,1,n*sizeof(c));
//memset... |
f70cd365283b6dc3fe16e5885629cf9e5b374a06 | a2fc06cf458f896d2217592ac92098863e755a9c | /src/library/tracker/trackcore.cpp | 2e55eb1c562838f8b70d51d7e36ec66c18adb79a | [] | no_license | MrBrood/Stanford-Junior-self-driving-car | ba3f2a07a9366d3566def59fd25f90bad55748d2 | d999e94bb287933666dac82129cad6702923a8e1 | refs/heads/master | 2023-07-18T04:56:02.055754 | 2020-08-21T01:31:46 | 2020-08-21T01:31:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,514 | cpp | trackcore.cpp | #include <roadrunner.h>
#include <lltransform.h>
#include <ipc_interface.h>
#include <gls_interface.h>
#include "trackcore.h"
#include "projected_scan.h"
using std::vector;
using namespace dgc;
int point_count = 0;
int use_count = 0;
LaserTracker::LaserTracker(RndfLookup *rl,
SensorManager *sensorManage... |
eb1fbec47f3f361593ae9b0fb58fea5a9888dc89 | 37853435f14557740f4147586150d70aeab80f5c | /EventMarket/FedEventSender.cpp | 074c2d9e89c86a4205641ecefb4e7f85ce991f22 | [] | no_license | rhzg/GERTICO | 7e1f399e96989c1606a991a8c8ff5e1fc326a70f | 1bc6642f5fbb447cbd90ccadafc1bcf4debf5f48 | refs/heads/master | 2020-07-26T20:56:26.577367 | 2019-09-16T09:45:00 | 2019-09-16T09:45:00 | 208,763,474 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 27,151 | cpp | FedEventSender.cpp | /*******************************************************************************
**
** Copyright (c) Fraunhofer IOSB
** All rights reserved.
**
** FedEventSender.cpp
**
*******************************************************************************/
#include "FedEventSender.h"
#include "Util/GeRtiTypes.h"
#include "Ut... |
d002cbc347917096025fb0401032df410829b231 | a2badfee532cf096e9bd12b0892fdce3b49e54c8 | /src/blackboard.h | d005ddfd8ac98d73092b35014bb78fb9def735f0 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | unghee/TorchCraftAI | 5e5e9b218990db8042198a12aeef78651b49f67b | e6d596483d2a9a8b796765ed98097fcae39b6ac0 | refs/heads/master | 2022-04-16T12:12:10.289312 | 2020-04-20T02:55:22 | 2020-04-20T02:55:22 | 257,154,995 | 0 | 0 | MIT | 2020-04-20T02:51:19 | 2020-04-20T02:51:18 | null | UTF-8 | C++ | false | false | 8,775 | h | blackboard.h | /*
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include "cherrypi.h"
#include "common/circularbuffer.h"
#include "module.h"
#include "task.h"
#include "unitsinfo.h"
#incl... |
ae966f8347441c4049aa727369cbafdf23a77da1 | 9e889555277ac34cd20532b40c10369d132373f3 | /Codechef/DISTCODE_TESTdata.cpp | 3bd741b88d02ecb5da7cdd80d1141c0619e76747 | [] | no_license | devanshu0987/Competitive-Programming | a756a093b9ec5fe684e7ceacaa37aba6ec32cd3b | 000853cb4fd054c3d1328df11c6068d5e7d54aa9 | refs/heads/master | 2021-09-24T07:17:14.042005 | 2018-10-02T11:48:00 | 2018-10-02T12:54:40 | 60,449,318 | 0 | 5 | null | 2018-10-05T05:02:08 | 2016-06-05T07:55:41 | C++ | UTF-8 | C++ | false | false | 403 | cpp | DISTCODE_TESTdata.cpp | #include<iostream>
#include<stdlib.h>
#include<time.h>
#include<string>
using namespace std;
char A[26];
int main()
{
srand(time(NULL));
char c='A';
for(int i=0;i<26;i++)
A[i]=c++;
int T;
T=100;
cout<<T<<endl;
while(T--)
{
int len=rand()%20;
if(len==0 || len==1) len=5;
string s;
while(len--)
{
st... |
2e7c4ee66e50cd87947e2180ef570ade19b4f9f4 | 0636e69f7cc3a94c49d6d481c0120d168d832ebf | /Solutions/TopCoder/TCO_10/Qualifier_1A/Palindromize3.cpp | 98b123ab13941a54633b73192b9bc28ab19f0c95 | [] | no_license | TurtleShip/ProgrammingContests | 33e0e261341e8f78c3d8d3bd66bbad0f511acc61 | 2ebd93f9b3d50c10a10c8731d17193e69382ca9b | refs/heads/master | 2021-01-13T02:07:37.539205 | 2016-11-30T18:50:46 | 2016-11-30T18:50:46 | 18,936,833 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,594 | cpp | Palindromize3.cpp | #include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <string>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cm... |
61c408bdf1e302e4072ca65e9abc64da3fdefa13 | c7ddaad7fa061218d1e547a974fc6a7853e69c7a | /chrome/common/worker_messages.h | 28fec6245adcb1a8ddd0fdc0f3d9381418ffeee0 | [
"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 | 2,531 | h | worker_messages.h | // Copyright (c) 2009 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.
// Defines messages between the browser and worker process, as well as between
// the renderer and worker process.
#ifndef CHROME_COMMON_WORKER_MESSA... |
254754d189b3d07a995f00388ff7e6e9bebd2f10 | efd7adff589e37ca98d2e3eb245aaeb23f64496e | /src/libs/utils/htmldocextractor.h | f8b563b327de4cb13f5c66b8e1a57059abb8deb7 | [] | no_license | Andersbakken/CPlusPlus | 3cf03c28968243587fa1d4661e7e5a388e62eb43 | 400f0b8f19de1c3fc9b794228c7aeec2259fce81 | refs/heads/master | 2021-01-10T20:24:54.067140 | 2013-05-28T03:46:50 | 2013-05-28T03:46:50 | 9,491,173 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,005 | h | htmldocextractor.h | /****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this f... |
98e8957fb706b154b05f3411934afdc4c9719260 | 67e35916e278f5296feb7756dfc1fa2f8c1acd70 | /q4/q4.cpp | c5d13126293c97f29c57130778a7790c25fa1b6b | [] | no_license | toiinnn/lab05 | 7cf7ea2be56df219a882dd6d0ba3875e742b6b8a | 765eda60db0621006b14ba6c01364a84b54cb7dc | refs/heads/master | 2020-03-18T13:17:42.075409 | 2018-05-29T20:25:50 | 2018-05-29T20:25:50 | 134,774,076 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,489 | cpp | q4.cpp | /**
* @file q4.cpp
* @author Silvio da Costa Sampaio
* @author Antonio Marcos Oliveira
* @since 28/05/2018
* @date 28/05/2018
*/
#include <iostream>
using std::cout;
using std::endl;
#include <iterator>
using std::back_inserter;
#include <vector>
using std::vector;
#include <algorithm>
using std::tra... |
2cbe3d12d1562f9d9574622a51442be570e68470 | 8f00d6de3c7dc47ab83b782dcb2aa16d1ce36b40 | /Diablo Edit2/DlgWayPoints.h | 96ce592d71f7f948a49072cf8757f46e76a73db2 | [
"MIT"
] | permissive | daidodo/diablo_edit | d93935e842fdf75ea51a64b6faacabbeb22d4d3b | 89adae5067a54bbde7eaa23c4ca80385b488a866 | refs/heads/master | 2023-02-27T16:23:30.594060 | 2023-02-07T01:12:31 | 2023-02-07T01:12:31 | 245,823,454 | 142 | 39 | MIT | 2022-12-06T02:45:41 | 2020-03-08T13:52:01 | C++ | UTF-8 | C++ | false | false | 1,079 | h | DlgWayPoints.h | #pragma once
#include "CharacterDialogBase.h"
#include "afxwin.h"
// CDlgWayPoints 对话框
class CDlgWayPoints : public CCharacterDialogBase
{
DECLARE_DYNAMIC(CDlgWayPoints)
public:
CDlgWayPoints(CWnd* pParent = NULL); // 标准构造函数
virtual ~CDlgWayPoints();
// 对话框数据
enum { IDD = IDD_DIALOG_WayPoints };
protected:... |
4638af29f7640d6c2306b73ca459a73caf223c67 | 71d9abce508f1e99d96de71adf0c60ff9681ec50 | /IOI-2007船帆.cpp | da0c97f48f1ca4b0da457f597c4e658c37c21fe4 | [] | no_license | mirache/oi_code | ccfe56fb327f6963cf47b3ba86ffa5a7373c8c69 | 306491342ed4f711aa9cd1bb21f1bf481c10f906 | refs/heads/master | 2020-05-31T16:30:45.408566 | 2019-06-06T12:13:36 | 2019-06-06T12:13:36 | 190,383,470 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,283 | cpp | IOI-2007船帆.cpp | //bzoj-1805
#include <bits/stdc++.h>
inline void read(int&x){
char ch=getchar();x=0;while(!isdigit(ch))ch=getchar();
while(isdigit(ch))x=x*10+ch-'0',ch=getchar();
}
const int N = 101000;
int tag[N<<2], ls[N<<2], rs[N<<2];
int n, H; long long ans = 0ll;
struct node {
int h, k;
inline void in() {read(h), read(k);}... |
0de900908b68387d54f0e7eb12ac97cb52713285 | e398a585764f16511a70d0ef33a3b61da0733b69 | /3790.1830/src/wdm/bda/europa/src/dgtltransportout.cpp | e0430a60328f60e0485aea1ee5c93492f9dd249b | [
"MIT"
] | permissive | MichaelDavidGK/WinDDK | f9e4fc6872741ee742f8eace04b2b3a30b049495 | eea187e357d61569e67292ff705550887c4df908 | refs/heads/master | 2020-05-30T12:26:40.125588 | 2019-06-01T13:28:10 | 2019-06-01T13:28:10 | 189,732,991 | 0 | 0 | null | 2019-06-01T12:58:11 | 2019-06-01T12:58:11 | null | UTF-8 | C++ | false | false | 23,515 | cpp | dgtltransportout.cpp | //////////////////////////////////////////////////////////////////////////////
//
// (C) Philips Semiconductors 2001
// All rights are reserved. Reproduction in whole or in part is prohibited
// without the written consent of the copyright owner.
//
// Philips reserves the right to make changes w... |
b4da018762712cff33a6c42690a75f5aebf13e7e | 6f874ccb136d411c8ec7f4faf806a108ffc76837 | /code/VCSamples/VC2008Samples/Attributes/General/AutoThread/AutoServer/AutoServer.cpp | 9a18465ef9e9c7cb7ce137a14dbeb3032b9c4e41 | [
"MIT"
] | permissive | JetAr/ZDoc | c0f97a8ad8fd1f6a40e687b886f6c25bb89b6435 | e81a3adc354ec33345e9a3303f381dcb1b02c19d | refs/heads/master | 2022-07-26T23:06:12.021611 | 2021-07-11T13:45:57 | 2021-07-11T13:45:57 | 33,112,803 | 8 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 2,932 | cpp | AutoServer.cpp | // This is a part of the Active Template Library.
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code is only intended as a supplement to the
// Active Template Library Reference and related
// electronic documentation provided with the library.
// See these sources for detailed inform... |
93f27122a92d1cd53d48623a69ee665b7c6a826b | eabe92ff958be0e5894ed7501780d8eb608b6ae9 | /app/app_paths.cc | 4b0c873ceaa99effe2b061758c1e233fad71c034 | [
"BSD-3-Clause"
] | permissive | meego-tablet-ux/meego-app-browser | 51bf8a8b8f15d702151a3f32a2598d4621b6926d | 0f4ef17bd4b399c9c990a2f6ca939099495c2b9c | refs/heads/master | 2021-01-10T21:33:19.677680 | 2011-07-20T01:19:53 | 2011-08-01T07:18:37 | 32,045,345 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,572 | cc | app_paths.cc | // 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.
#include "app/app_paths.h"
#include "base/command_line.h"
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/logging.h"
#include ... |
be8935ecfc22791d5ad1312e8b6969924a52c6d2 | 9931d3b3722eb19b218e648e3a3dfc2dfebc236c | /Hard/StringSearching/srch.cpp | cbc26d00fb1324131da76374fadd1f922f02df2a | [] | no_license | DonaldCameron77/CodeEval | cdb14c319cc63fc528833846bc4dfde46607c41e | 58d59e54d9bf15bce963a615a6b538f2f033a894 | refs/heads/master | 2021-01-21T21:48:42.174334 | 2016-03-18T22:41:12 | 2016-03-18T22:41:12 | 17,155,845 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,046 | cpp | srch.cpp | /*
STRING SEARCHING - CodeEval Hard challenge
CHALLENGE DESCRIPTION:
You are given two strings. Determine if the second string is a substring
of the first (Do NOT use any substr type library function). The second
string may contain an asterisk(*) which should be treated as a regular
expression i.e. matches zero or mor... |
f42ff5a1834dd09a01377f592825e166d8fba564 | c1228cb737f22622eba656078f1cd6ca1341b175 | /code/OpenNiPrac01.cpp | ac469167eeeed1959f27ff74ca3a3391c052d22d | [] | no_license | yosse95ai/OpenNIPrac | 78f23d18855c5df2be5779ad72e035706c45c1de | cb0c55fbe7f48fb5c71f90bac8cc371843443487 | refs/heads/master | 2022-12-09T16:53:17.506804 | 2020-08-21T16:16:49 | 2020-08-21T16:16:49 | 288,198,578 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,486 | cpp | OpenNiPrac01.cpp | #include <iostream>
#include <stdexcept>
#include <OpenNI.h>
#include <opencv2/opencv.hpp>
class DepthSensor
{
public:
void initialize()
{
// デバイスを取得
openni::Status ret = device.open(openni::ANY_DEVICE);
if (ret != openni::STATUS_OK) {
throw std::runtime_error(... |
a0e08c620e93bb1be4c128abfe6c13f3b5f8be35 | 4fd7c6b467277c80d84bed41cf1403600f5f3a29 | /Graphs/1082 - Componentes Conexos.cpp | 3f4c895e56326263d7ee28a3ef114ba02b9777f3 | [] | no_license | EvertonCa/ProgrammingMarathon | 188259db07cf808833c4526a32cdacbd947401ad | f36563aba883e4ff281142c2f7000392c36c046b | refs/heads/master | 2021-01-25T09:52:53.287663 | 2018-08-21T18:42:21 | 2018-08-21T18:42:21 | 123,321,150 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,969 | cpp | 1082 - Componentes Conexos.cpp | #include<iostream>
#include<vector>
#include<queue>
#include<map>
#include<list>
using namespace std;
#define PRETO 0 // Descendentes já estão pretos ou não tem descendentes.
#define CINZA 1 // Descoberto.
#define BRANCO 2 // Não descoberto.
int *cor;
int contador=0;
list<int> componentes;
list<int>::iterator it3;
... |
20c0a00d446e66c6ae60fb61b69d51e614a3d882 | 6839815d8871e878057ff8aa761923b84172f0ec | /samples/example_main/main.cpp | b0d7aa81e51c1db93967c761685695224906ac9b | [
"BSD-3-Clause"
] | permissive | graphprocessing/graph_coarsening | 7e2d96b9fae5628ecf93a58c4dadaef237b7135f | c570c7c301be5fe8d521c418402f20c76b147433 | refs/heads/master | 2021-07-13T12:11:12.183890 | 2020-06-24T01:00:24 | 2020-06-24T01:00:24 | 164,952,532 | 3 | 7 | BSD-3-Clause | 2020-06-24T01:00:26 | 2019-01-09T23:09:28 | C++ | UTF-8 | C++ | false | false | 786 | cpp | main.cpp | // Copyright [year] <Copyright Owner>
#include "modules/pch/include/precomp.h"
int main(int argc, char** argv) {
(void) argc; (void) argv;
std::cout << "main" << std::endl;
// Timer sample
std::cout << std::fixed;
std::cout << "Execution time for washington_test (n = 2): "
<< Timer:... |
df97b5f7ca0d23c4e14024fcc855ca39e6c7f9ca | 80b618f3667f97319b7164ac28d65f5c82ea6a6e | /Source/SparkPlug/Image.h | 885a3d28193b897836c5778bd7350021210d2615 | [] | no_license | henry4k/sparkplug-core | 1929d1e5b5ad13587cea297dc61aaeee84c85f3d | f8c0a27c6e9bdc65b74516a63ae99a806eb3610b | refs/heads/master | 2021-01-23T13:41:41.338324 | 2013-10-14T17:23:00 | 2013-10-14T17:23:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 876 | h | Image.h | #ifndef __SPARKPLUG_IMAGE__
#define __SPARKPLUG_IMAGE__
#include <SparkPlug/Pixel.h>
namespace SparkPlug
{
class Image
{
public:
Image();
Image( PixelFormat format, int width, int height, int depth );
~Image();
/**
* (Re-)Initializes an image with new content.
* IMPORTANT: The pixel data is not memcopied,
... |
4ea11d063a99737882da061e64523dcb5b8ac14f | 72bb6deb4a8657fc494777847e356c328fe8550d | /gicp/gicpwrapper-fuerte/src/ColorOctreeImpl.cpp | 2b947de1fc034a949af877848e901e455dcd67fe | [] | no_license | rising-turtle/study | daafeac486e274af47268e9c7d66feacd3476a44 | 76b414d0a47692f997539b34b356c34a3528f34d | refs/heads/master | 2021-12-09T07:23:41.800642 | 2021-12-02T19:34:44 | 2021-12-02T19:34:44 | 90,572,871 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,622 | cpp | ColorOctreeImpl.cpp | #include "ColorOctreeImpl.h"
#include "ros/ros.h"
using namespace octomap;
ColorOctreeImpl::ColorOctreeImpl(float res):ColorOcTree(res){}
ColorOctreeImpl::~ColorOctreeImpl(){}
gl_color ColorOctreeImpl::s_octree_color(getRed());
void ColorOctreeImpl::setOctreeColor(gl_color& new_color){ColorOctreeImpl::s_octree_color ... |
a1b96ca77ab5ef2420216e7c89850a5f9b958f5e | ac4e8f26a0c38bd34b4c55d0acc3d8215d55ac9c | /dla_barneya/Kod/Kod/RiskApp.cpp | 83447b8ca6563859ec0d22a55906e3c90dcf887b | [] | no_license | kamciak/Ryzyko | 6e58d13905271328184ea0a76c976d09b910427b | e9c758b754b3e0fe5a351e534466e357805a9bfd | refs/heads/master | 2021-01-01T15:41:10.621076 | 2013-01-21T12:17:15 | 2013-01-21T12:17:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 537 | cpp | RiskApp.cpp | //---------------------------------------------------------------------------
//
// Name: RiskApp.cpp
// Author: Piotrek
// Created: 2012-10-19 20:31:21
// Description:
//
//---------------------------------------------------------------------------
#include "RiskApp.h"
#include "RiskFrm.h"
... |
5b84f8ba1c322a0476b7644ff9b40216d1a9723d | 65ce464a6361d2d4096ee8d0d97bca76c8025a5e | /P1_Discrete_Event_Simulation/src/Config.cpp | 19e9f66b8d6aa2de528b5d7ba9c4ebca63a9cf55 | [] | no_license | tuh37046/CIS3207 | 857a7aa85ab62cba75481bb31b951e3862799d0c | e98219c47930eae59dc7775ae1ef81dd89087752 | refs/heads/master | 2020-07-20T08:45:02.680671 | 2019-12-09T05:46:30 | 2019-12-09T05:46:30 | 206,610,915 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 151 | cpp | Config.cpp | #include "Config.h"
int find(const std::string &s, char c) {
for(int i=0;i<s.size();i++) {
if(s[i] == c) return i;
}
return -1;
}
|
e4cae152a59fa377245946743c7aba75fdaf5350 | 81e051c660949ac0e89d1e9cf286e1ade3eed16a | /quake3ce/code/game/g_cmds.cpp | 7b19c852ccc653fb7c8b868fc7a16faf94c75a01 | [] | no_license | crioux/q3ce | e89c3b60279ea187a2ebcf78dbe1e9f747a31d73 | 5e724f55940ac43cb25440a65f9e9e12220c9ada | refs/heads/master | 2020-06-04T10:29:48.281238 | 2008-11-16T15:00:38 | 2008-11-16T15:00:38 | 32,103,416 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 44,729 | cpp | g_cmds.cpp | /*
===========================================================================
Copyright (C) 1999-2005 Id Software, Inc.
This file is part of Quake III Arena source code.
Quake III Arena source code is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License as
... |
95130540b694f945e37411d0e03ea3e11ae69f3e | c80f25d24cee6ed8dba1513c227886c07d83cf75 | /WeaponGirl_1/Client/trunk/Classes/Mgr/BbsMgr.h | f45923e8bbac99489287fb68ed2d2af0b42dd693 | [
"MIT"
] | permissive | cnsuhao/newProBase | c250e54ead43efb57363347d1700649a35617d15 | 4fe81d30740a2a0857ca6e09a281fed1146e6202 | refs/heads/master | 2021-08-23T14:19:24.568828 | 2015-11-27T13:37:54 | 2015-11-27T13:37:54 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 1,083 | h | BbsMgr.h | ////////////////////////////////////////////////////////////////////////
// Copyright(c) 2015-9999, WuHan GoodGame, All Rights Reserved
// Moudle: BbsMgr.h
// Author: ÅíÎÄÆæ(Peng Wenqi)
// Created: 2015/11/04
////////////////////////////////////////////////////////////////////////
#ifndef _JYP_BbsMgr_H_
#define ... |
3ecbca9111f4b1d919dc018d4e577903ff7ce3a9 | 539bd4489cc30c25a806b2de9816ca354ebb4abf | /tests/unit_tests/src/data_structures/match_request_table.cpp | d705b2dd500bd5f3eae111fe845845f5a85b41b0 | [
"LicenseRef-scancode-philippe-de-muyter"
] | permissive | kittobi1992/parkway | f4debf2826f73c5df55572a806d907f81ddb9f52 | 6501c96268acc1997894bb577cbca0e21c5e2ac8 | refs/heads/master | 2021-05-18T15:04:36.085704 | 2020-03-31T10:35:29 | 2020-03-31T10:35:29 | 251,291,502 | 0 | 0 | null | 2020-03-30T11:59:54 | 2020-03-30T11:59:53 | null | UTF-8 | C++ | false | false | 274 | cpp | match_request_table.cpp | #include "gtest/gtest.h"
#include "data_structures/match_request_table.hpp"
using parkway::data_structures::match_request_table;
TEST(MatchRequestTable, Construction) {
match_request_table table_(10);
ASSERT_EQ(table_.size(), 0);
ASSERT_EQ(table_.capacity(), 10);
}
|
47e7c73216c143a2a077ed436121bd3aa114f345 | b840893a944c17d57aebd0fa7dcbc40590c210fe | /Engine/source/EtRendering/GraphicsTypes/FrameBuffer.cpp | 6fc988e6fbd462b7a6c1ed53ffa585a0b36fe8fc | [
"MIT"
] | permissive | NeroBurner/ETEngine | cedd0f5199fed8ef5111c82715474c8be054f1c6 | 3fe039ff65cd1355957bcfce3f851fa411a86d94 | refs/heads/master | 2020-12-19T14:39:18.573281 | 2020-01-23T03:03:00 | 2020-01-23T03:03:00 | 235,763,127 | 1 | 0 | MIT | 2020-01-23T09:34:13 | 2020-01-23T09:34:12 | null | UTF-8 | C++ | false | false | 5,065 | cpp | FrameBuffer.cpp | #include "stdafx.h"
#include "FrameBuffer.h"
#include "Shader.h"
#include "TextureData.h"
#include <EtCore/FileSystem/FileUtil.h>
#include <EtCore/Content/ResourceManager.h>
#include <EtRendering/GlobalRenderingSystems/GlobalRenderingSystems.h>
namespace et {
namespace render {
FrameBuffer::FrameBuffer(std::stri... |
ba3864a6e8849137b97f05affa49e1ed9667bdbe | 8c837cb96f462e77ccac0711d139656d8c9a970e | /KGC/agreement.h | 73589a00ee19ab91b137716bcb1f2d5b90f0d300 | [] | no_license | caixianzhang/key_management_base_SM9 | 9e809eca869e39678464a2699c0f8564e2d2814c | be885e90a98803afedcd2111841d05e10effee64 | refs/heads/main | 2023-04-29T23:39:52.385603 | 2021-05-17T14:26:18 | 2021-05-17T14:26:18 | 368,194,974 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,693 | h | agreement.h | #ifndef AGREEMENT_H_
#define AGREEMENT_H_
#include "sm9-sign.h"
#include "sm9-verify.h"
#include "sm9-exchange.h"
#include "sm9-encrypt.h"
#include "sm9-decrypt.h"
#include <string>
using namespace std;
/*
系统主密钥报文协议
盐值由响应方发送给发起方,
发起方生成主密钥后,利用公钥加密主密钥,
填入encmsk[256]中去,然后对盐和密文主密钥签名,
明文主密钥清零。
*/
struct mskmessage{... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.