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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a51a7a5740e9b4cb74c8fb96d17cb12e8f0828e1 | e3897a46fe664015a2556a6eb5b89b49c1503124 | /Programni Ezici/oblak1Avtomobili.cpp | 991eb22a1fd757ce62da3e9061e7c36e10fb4894 | [] | no_license | martinesco/TechUni | c04142af76e3ca37893e6d43355d3063c46a07a0 | 59c7f08111ee28a26d7eaa67432422727cc6aabb | refs/heads/master | 2023-06-14T20:40:45.552099 | 2021-01-09T21:48:46 | 2021-01-09T21:48:46 | 255,327,935 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,156 | cpp | oblak1Avtomobili.cpp | /*
Даден е базов абстрактен клас Auto, който съдържа полетата тип на автомобила (лек, товарен).
Съдържа символен низ със съответната дума - марка на автомобила и година на производство.
Инициализиращия конструктор да задава стойност на тези полета чрез параметри.
Реализирайте абстрактен метод за извеждане на съдържани... |
9767aeef9b9a3e4d91719db6eaff89ee8c53d596 | 84c1035316183bf1a79d1359145c0e34f5cd62bc | /SubSystems/MusicSubSystem/MusicSubSystem.cpp | d7807c752bbb2358a1655f7364cfbd2c335e2fd5 | [] | no_license | OpenEngineDK/extensions-LuaScriptSystem | 3dd90e2edae27bf56832e7dafbcf8a5bd8d13c22 | f979ed8349282f36b791b5f12d8d62cd2e3e1191 | refs/heads/master | 2016-09-13T10:19:14.876359 | 2009-11-14T16:09:46 | 2009-11-14T16:09:46 | 58,073,116 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,117 | cpp | MusicSubSystem.cpp |
#include "MusicSubSystem.h"
#include "../../ScriptSystem.h"
string ScriptISound::classname = "ISound";
CPPToLuaBinder<ScriptISound>::RegType ScriptISound::Register[] = {
{"IsStereoSound", &ScriptISound::IsStereoSound},
{"IsMonoSound", &ScriptISound::IsMonoSound},
{"IsPlaying", &ScriptISound::IsPlaying},
{"Pla... |
f8e968bdcd9f5d86855961df4031c641a0ab6c3c | 8e7f8cc3761d213add1abd55941a6681abdc8e0c | /src/io/console/msgstream.h | d39c97d8bb65d9c8a9c68d5e9360f8cfa2ee0286 | [
"MIT"
] | permissive | szynka12/deiimos | 7fb6d338ef3845812cae4920b66f4703b8cf9753 | 9cab00bc869d9d672cbd24271812ae7643317377 | refs/heads/master | 2020-12-27T21:11:22.572284 | 2020-04-03T16:14:14 | 2020-04-03T16:14:14 | 238,057,007 | 0 | 0 | MIT | 2020-04-03T16:14:15 | 2020-02-03T20:37:09 | C++ | UTF-8 | C++ | false | false | 1,808 | h | msgstream.h | #ifndef SRC_IO_CONSOLE_MSGSTREAM_H
#define SRC_IO_CONSOLE_MSGSTREAM_H
#include <iostream>
#include <memory>
#include <utility>
namespace deiimos
{
class MsgObject
{
public:
// verbosity
enum v_level
{
SILENT = 0,
INFO1 = 1,
INFO2 = 2,
INFO3 = 3
};
private:
... |
c956cfa5796d80f7293ab0626052c05ecdf9cc35 | 4466dd4070921a82abb124c3f3ac5cf6f993b727 | /insearch.cpp | 63361c6022adc0e968aedb191f9b4f9211a85699 | [] | no_license | vasanth9/codeforces | a9e058e7f90b152dd94268d2187f69a5dcdb4941 | 316920e6a3d3f27508adebfe827fa77b2e528ef6 | refs/heads/master | 2021-05-18T02:50:53.980491 | 2020-12-08T12:48:37 | 2020-12-08T12:48:37 | 251,072,114 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 152 | cpp | insearch.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n;string s="EASY";
cin>>n;int b;
while(n--)
{
cin>>b;
if(b==1)
s="HARD";
}
cout<<s;
} |
a7d5f32bba570d2ba75db6f35335406612800678 | 0ae071be2636ffc1135096ec7aaffac725b5fe65 | /EOD_SUIT/Config.cpp | 4cf26b8a5bac42b71685f1ed3783cfd82a679080 | [] | no_license | kennychr/ied_test | a86b45334de602b8cd9eae566a2680b71d5049c7 | ca03f51f4775f1f659c8e86f888027de86732273 | refs/heads/master | 2020-03-22T20:11:12.964162 | 2018-07-15T01:26:27 | 2018-07-15T01:26:27 | 140,579,371 | 1 | 2 | null | 2018-07-12T21:41:47 | 2018-07-11T13:30:38 | C++ | UTF-8 | C++ | false | false | 39,087 | cpp | Config.cpp | class DefaultEventhandlers;
class CfgPatches
{
class EOD_SUIT
{
units[]={};
author="Mr Ewok, NorX Aengell,Burnes15th";
weapons[]={"EOD9_HELMET","EOD_SUIT_vest","EOD_Uniform"};
requiredVersion=0.1;
requiredAddons[]={};
};
};
class Extended_PostInit_EventHandlers
{
EOD_SUIT_Init="if (hasInterface) then {[] ... |
13aa14617c76569bb448e066cc53a69832672d36 | 54c4a6f4c05ac93257f65a571171287a3d9ad5f4 | /Depth_First_Search/11724/main.cpp | 982706e89dad632220b29389f7c9afef44259de0 | [] | no_license | DaeHwanGi/BAEKJOON_solution | 747d202117d642268d2a80932a763544d879266e | bdf823d196d336ca509931638e843fd36716f0bf | refs/heads/master | 2020-04-26T08:29:34.725920 | 2019-03-11T13:02:07 | 2019-03-11T13:02:07 | 173,424,591 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 654 | cpp | main.cpp | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
vector<vector<int>> adj;
vector<bool> visited;
int dfs(int pos) {
visited[pos] = true;
for (int next : adj[pos]) {
if (!visited[next]) dfs(next);
}
return 0;
}
int main() {
int N, M;
cin >> N >> M;
adj.resize(N);
visited.resiz... |
f617900a8706617cf9c5bc4684769d5f44558022 | a5a7c59b04a1a64fe34653c7970c3cf173f9c1df | /externals/numeric_bindings/boost/numeric/bindings/lapack/computational/potrf.hpp | f64a511b5578c36e8dd5b98adaa9e1ac240bcc3f | [
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | siconos/siconos | a7afdba41a2bc1192ad8dcd93ac7266fa281f4cf | 82a8d1338bfc1be0d36b5e8a9f40c1ad5384a641 | refs/heads/master | 2023-08-21T22:22:55.625941 | 2023-07-17T13:07:32 | 2023-07-17T13:07:32 | 37,709,357 | 166 | 33 | Apache-2.0 | 2023-07-17T12:31:16 | 2015-06-19T07:55:53 | C | UTF-8 | C++ | false | false | 7,285 | hpp | potrf.hpp | //
// Copyright (c) 2002--2010
// Toon Knapen, Karl Meerbergen, Kresimir Fresl,
// Thomas Klimpel and Rutger ter Borg
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// THIS FILE IS AUTOMATICALLY GENERATED
... |
980e5cb11ccc5bc907807f858d0cb2cdbf34d4f7 | c2c00be02ed71f5d3bc172f48a5f07e62e4171e3 | /CasseTete/View/piecep.h | d8721fb6492be29312abd55355cd86ba8539f0bb | [] | no_license | PierreGranier/CasseTete | 243074be4da11a995a06ac92cf5a7aba21912c89 | 9a921669ff66476c87890266dc38e1a4db35f043 | refs/heads/master | 2021-09-06T22:04:14.833341 | 2018-02-12T10:28:29 | 2018-02-12T10:28:29 | 103,412,947 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 155 | h | piecep.h | #ifndef PIECEP_H
#define PIECEP_H
#include "pieceView.h"
class PieceP : public PieceView {
public:
PieceP();
void show();
};
#endif // PIECEP_H
|
29741cee7c7e7449b5523614e75755e8ff72e5e6 | 95014609f589edb735b7ed85eb3c29c233e1bc0b | /Day106(Identical_BT).cpp | 1daaefcbf7497e6a4194cd62944ede6e8d6e5a71 | [] | no_license | RohiniRG/Daily-Coding | ea1ad3132e1699907b6eaa7a7a3f217aa62ffd61 | c0ef846670d62acd829d2f5f4920364f7895a269 | refs/heads/main | 2023-08-25T02:54:54.086587 | 2021-09-30T13:20:12 | 2021-09-30T13:20:12 | 335,008,278 | 11 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 361 | cpp | Day106(Identical_BT).cpp | /*
Two trees are identical when they have same data and arrangement of data is also same.
*/
bool isIdentical(Node *r1, Node *r2)
{
if (r1 == NULL && r2 == NULL) return 1;
if (r1 == NULL || r2 == NULL) return 0;
return
(
(r1->data == r2->data) && isIdentical(r1->left, r2->left) && isIde... |
e497c114494dded0ec5a05f0418ec5fd4e3f2215 | 98455cb378a00b23c33facf97d0e9a00a19dc575 | /1.secuenciales-y-estructuras-de-control/e-55.cpp | d778395e9afab245639cbb59f84c74280aa9ddb9 | [] | no_license | Shair17/exercises-university | ea10e5ac42cdecc549a7c0dd1949dd29d72d1d82 | 541a5538d6a745d34c03e6ddd58af03385264d33 | refs/heads/master | 2022-12-05T03:09:01.813661 | 2020-08-21T05:07:05 | 2020-08-21T05:07:05 | 282,010,780 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 995 | cpp | e-55.cpp | /**
* Al cerrar un expendio de naranjas, 15 clientes que aun no han pagado recibirán
* un 15% de descuento si compran más de 10 kilos. Determinar cuanto pagará cada
* cliente y cuanto percibirá la tienda por esas compras.
*/
#include <iostream>
using namespace std;
int main() {
int index = 1;
float totalP = 0... |
e1aeb0a84a77df70920b5840ba48e49b9e16de9c | cf9fbc6e502cff2888f67faf0981c163a19742d7 | /resources/testUnits/mainTrain.cpp | 1fed5cabbcf5f1b5f09b6b3968d81cfd3f9c0224 | [] | no_license | noacoh/colmanProject | 9877f981b35ada0c6d250cd0a74447084c7df56b | fbc7a50b1b146312d3f06992365d7573f062927d | refs/heads/master | 2023-01-03T08:47:40.475931 | 2019-08-21T06:46:22 | 2019-08-21T06:46:22 | 188,271,354 | 0 | 0 | null | 2022-12-22T11:15:10 | 2019-05-23T16:36:19 | JavaScript | UTF-8 | C++ | false | false | 2,758 | cpp | mainTrain.cpp | #include <iostream>
#include "Polynomial.h"
static const std::string computationResults[] =
{
"8x^4+7x^3+5x^2+4x-1",
"40x^5-21x^4-24x^3-15x^2-33x+7",
"200x^5-105x^4-120x^3-75x^2-165x+35",
"200x^5-105x^4-120x^3-75x^2-165x+35",
"0",
"400x^5-210x^4-240x^3-150x^2-330x+70",
"200x^5-105x^4-120x^3... |
f39f75c72cfc8d3291cad3caa76b950df7bafabc | e6317162fd2ac60acf13090eec30c6e577f5bcb1 | /SourceCode/_person.cpp | f2d3b32b4e42105d5620431e9ffa1606d32fef01 | [
"Apache-2.0"
] | permissive | CainHsu/ProgramStudy-leetcode | 024a9fb093a0ce9cdaab6b8ece82ba94ede5b5c2 | 23653e8927902aed64ba13a23a1d6c983b7ea5d5 | refs/heads/master | 2021-06-26T10:35:34.447660 | 2021-05-16T12:47:04 | 2021-05-16T12:47:04 | 226,617,577 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 644 | cpp | _person.cpp | //
// Created by xuche on 2019/12/25.
//
#include "person.hpp"
person person::operator-(int year){
this->age -= year;
return *this;
}
person person::operator-(){
this->age = -this->age;
return *this;
}
person operator-(int year, person & man){
return (-man + year);
}
using std::cout;
using std:... |
4b42cb30495b70da1e1469d900808d177c7609f4 | 1606ddbf3cfd40df03384d248fb2beeb19b2a496 | /Knowledge_Work/C++/Copy_Constructor/copy_constructor.cpp | 5e592208a4b6e5f0d8ada206db6bb0ee324a1d91 | [] | no_license | Monojit7/Linux_Programming | 2106c13f85ebeae9cb6ec52963092695083686c1 | 4aa19bcfe7019af8ed42792ca2deae413b5ab788 | refs/heads/master | 2022-05-29T15:12:59.955553 | 2022-03-26T10:34:39 | 2022-03-26T10:34:39 | 88,253,138 | 0 | 0 | null | 2017-04-17T13:58:05 | 2017-04-14T09:17:30 | C | UTF-8 | C++ | false | false | 1,110 | cpp | copy_constructor.cpp | #include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <cstring>
using namespace std;
class String
{
public:
char* str;
int size;
String(const char* str = '\0')
{
cout << "constructor : String" << endl;
size = strlen(str);
this->str = new char[size + 1];
strcpy(this->str, str);
}
void print()
{
... |
7c24c59c110921594c74df9c756b00ea16c7dc73 | f0de0d4d8e6e392175d4df4d69d5dafe60a4a7f7 | /ExceptionHandlingTest/src/CleanClass.cpp | ef649ef2d9fab3f2a812c4ec4df88db075008118 | [] | no_license | FHV-ITM13/C-CPP | fa59c1783f748b9809645cb37e1bd79e69a69376 | 18d8d053348e30af591053d5d188d09d3b1d5120 | refs/heads/master | 2020-05-20T11:37:41.093389 | 2014-01-30T16:38:59 | 2014-01-30T16:38:59 | 15,846,948 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 446 | cpp | CleanClass.cpp | /*
* CleanClass.cpp
*
* Created on: 18.01.2014
* Author: Stefan
*/
#include <string>
#include <iostream>
#include "CleanClass.h"
using namespace std;
CleanClass::CleanClass() {
name = new string("Clean");
}
CleanClass::~CleanClass() {
cout << "Clean class destructor call";
delete name;
... |
71e013fd1b5b25847d6655d898c0fc99896ae661 | 81c05a185292d9af9b591d35cda533c7ab9a69a3 | /textrender.hpp | 4031a39cf829941087c017c416464472908f00ff | [] | no_license | JYP2011/cyclimb | 9f74d75e8281c2cff51057a945f7f3692508cec8 | 993f4736af9abf4eb4089da8c3f14e3b39e925a7 | refs/heads/master | 2022-06-02T18:43:24.002065 | 2020-04-06T07:16:08 | 2020-04-06T07:16:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 643 | hpp | textrender.hpp | #include <map>
#include <string>
#include <gl/glew.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <d3d11.h>
#include "util.hpp"
struct Character {
GLuint textureID;
glm::ivec2 size, bearing;
GLuint advance;
};
struct Character_D3D11 {
ID3D11Texture2D *t... |
07307c19c8bfb4127fb1d197a86287d7a841b9a6 | 435a32fff97a829d82e3cdafa13604929a8aa33c | /Plugins/D3D11/D3D11GraphicFactory.cpp | 65ada1079bc4ccf5f79c4283244c332ea9e0ceda | [
"BSD-2-Clause-Views"
] | permissive | DarkMagicCK/UKN | b2d264183a5788ef8a01d29dc34a9ec37c6863fc | 2e48607d7bb2a660371296223ea6a48b8a328af1 | refs/heads/master | 2021-01-23T21:01:43.595581 | 2013-08-27T19:19:19 | 2013-08-27T19:19:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,888 | cpp | D3D11GraphicFactory.cpp | #include "D3D11GraphicFactory.h"
#include "D3D11GraphicDevice.h"
#include "D3D11FrameBuffer.h"
#include "D3D11RenderBuffer.h"
#include "D3D11GraphicBuffer.h"
#include "D3D11Shader.h"
#include "D3D11Texture.h"
#include "D3D11RenderView.h"
#include "D3D11BlendStateObject.h"
#include "D3D11SamplerStateObject.h"
#include ... |
0219eb596e4daba40bea96d2b30495e4c0798f4b | a4d36e56c9d6532534526a659763433eadead7e1 | /src/ca/libs/libca/taskinfo.cpp | 8e5051f4dfb3cf704ab716078e7d45e4fda5fa45 | [] | no_license | cooljeanius/CodeAnalyst-3_4_18_0413-Public | d7d837e746901590a0ba4112ecf97194748615de | 610306a675712baf108b468c48658184b546ebb2 | refs/heads/master | 2021-10-09T22:30:40.273174 | 2021-09-29T11:12:38 | 2021-09-29T11:12:38 | 8,549,327 | 0 | 1 | null | 2023-09-04T10:52:45 | 2013-03-04T06:06:50 | C++ | UTF-8 | C++ | false | false | 19,504 | cpp | taskinfo.cpp | //$Id: taskinfo.cpp,v 1.3 2006/08/28 21:00:32 ssuthiku Exp $
/*
// CodeAnalyst for Open Source
// Copyright 2002 . 2005 Advanced Micro Devices, Inc.
// You may redistribute this program and/or modify this program under the terms
// of the GNU General Public License as published by the Free Software
// Foundation; eit... |
7655ca664ceb0f4e3fc119016231114923a947e6 | 2f10f807d3307b83293a521da600c02623cdda82 | /deps/boost/win/debug/include/boost/fusion/include/move.hpp | 4383d8d858eb7820c7e59760f5dd113084815e7f | [] | no_license | xpierrohk/dpt-rp1-cpp | 2ca4e377628363c3e9d41f88c8cbccc0fc2f1a1e | 643d053983fce3e6b099e2d3c9ab8387d0ea5a75 | refs/heads/master | 2021-05-23T08:19:48.823198 | 2019-07-26T17:35:28 | 2019-07-26T17:35:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 128 | hpp | move.hpp | version https://git-lfs.github.com/spec/v1
oid sha256:329109fb34f8da1dc3c81275f6179f6aa1ed1634ad1458400b0c3ade15f2e946
size 527
|
ef6f98f0b85832a9503b25128e09b3678bc131f9 | 65381e87330fa20b70cfc7ee2a1ef2cf891078d0 | /PrisonCellsAfterNDays.cpp | ffb902c7ce9eb48746dfa986f749cff93696d150 | [] | no_license | mittaldivya01/LeetcodeJulyChallenge | 9354d4a904113e6e2202a09cab0a620a0bbc9581 | 8331c9eb5d8d60076b98600a0690c9f9f4620de6 | refs/heads/master | 2022-11-26T01:13:48.907764 | 2020-08-04T04:28:42 | 2020-08-04T04:28:42 | 276,438,471 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 525 | cpp | PrisonCellsAfterNDays.cpp | class Solution {
public:
vector<int> prisonAfterNDays(vector<int>& cells, int N) {
if(N==0)
return cells;
if(N%14 ==0)
N=14;
else
N=N%14;
for(int i=0;i<N;i++)
{
vector<int> tmp(8,0);
for(int j=1;j<7;j++)
... |
3b92a50bfb591fbefed7c77f30d0546fbbca9947 | 8f35d04da185bbc681534394c030013228340982 | /scene/SceneStack.h | 34c0cf09e4c1d87cc8299f009c78ebd4573f86ea | [] | no_license | larryaubstore/force-brute | ff1b744fb61f666724d0c62ffff7e7a66eb060b0 | 01267991f0615482b5c68383b9c3a1799b7c7457 | refs/heads/master | 2021-01-19T01:44:13.238716 | 2013-12-17T03:21:41 | 2013-12-17T03:21:41 | 4,174,721 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 890 | h | SceneStack.h | /**
* @file SceneStack.h
* @brief
* @author Laurence Morin-Daoust
* @version 1.0
* @date 2013-06-06
*/
#ifndef SCENE_STACK_H
#define SCENE_STACK_H
#include <vector>
#include <string>
#include <sstream>
#include "ISceneStack.h"
#include "Animation.h"
#include "../TypeDefEngine.h"
class SceneStack : public ISceneSta... |
4fe76f07645314bc02fbc5ef57e5db742bfb9e2e | 7a71449197d4db9bf545b161e047af3c06f8b870 | /NiirdPad/QScriptEditWindow.cpp | de0e508c81c672a7c5995d1bf8abe60f0ca2cde6 | [] | no_license | TheEclectus/NiirdPad | ff2d29a6b65e5f4b695577a1c33bd0dbbda23a82 | c75bc14e85646e12e67cb65139124cda0579734c | refs/heads/master | 2022-11-21T05:58:33.436283 | 2020-07-27T04:27:46 | 2020-07-27T04:27:46 | 282,791,453 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,818 | cpp | QScriptEditWindow.cpp | #include "QScriptEditWindow.h"
#include <QMessageBox>
#include <QTextBlock>
#include <QTextDocument>
#include <strtk.hpp>
#include "Node.h"
#include <thread>
// Consider further retooling, pertaining to the proper fade-in of the window when it's reopened.
QScriptEditWindow::QScriptEditWindow(QWidget *parent, Scri... |
6756ff2314836ccf6264e1c3bb0ff7ea6c76a0e9 | bd91a68c3ed8072ae292191b50bea3349b2f55bc | /ASTNodes/ClassImplements.hpp | 06479ed97a6c5b4f31606374b684708a2d16f6b6 | [
"MIT"
] | permissive | jonathan-beard/Raft | 0e28d5ea72e840441b2f42f46b45ec2f5b08371e | 6b2c250c915b5ce1db84277e6e5722977e8ebbba | refs/heads/master | 2021-01-17T05:24:36.314552 | 2019-04-23T16:03:09 | 2019-04-23T16:03:09 | 8,226,622 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 387 | hpp | ClassImplements.hpp | /**
* ClassImplements.hpp -
* @author: Jonathan Beard
* @version: Sun Jan 19 08:24:19 2014
*/
#ifndef _CLASSIMPLEMENTS_HPP_
#define _CLASSIMPLEMENTS_HPP_ 1
#include <string>
#include "ClassInherit.hpp"
namespace Node {
class ClassImplements : public ClassInherit {
public:
ClassImplements();
virtual ~ClassI... |
de38ffdecfd4c2a6f2ee25ba7473b69a5f76f11c | 2de766db3b23b1ae845396fbb30615c01cc1604e | /codeforces/176/1/B.cpp | 4c8b0dfc44f7fc8774f45dfbc62f42826cbd1a5a | [] | no_license | delta4d/AlgoSolution | 313c5d0ff72673927ad3862ee7b8fb432943b346 | 5f6f89578d5aa37247a99b2d289d638f76c71281 | refs/heads/master | 2020-04-21T01:28:35.690529 | 2015-01-29T13:38:54 | 2015-01-29T13:38:54 | 8,221,423 | 1 | 0 | null | 2013-04-09T15:10:20 | 2013-02-15T16:09:33 | C++ | UTF-8 | C++ | false | false | 531 | cpp | B.cpp | #include <cstdio>
#include <algorithm>
using namespace std;
const int MAXN = 1000000 + 86;
int x[MAXN<<1], n;
inline int nxt(const int x, const int k) { return x % k == 0 ? x - k : x / k * k; }
int main() {
scanf("%d", &n);
for (int i=0; i<n; ++i) x[i] = i + 1;
for (int k=2; k<=n; ++k) for (int i=n,j; i>0; i=j) ... |
e675974edf806d34410c679db2587037a3cead77 | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /Codes/AC/3468.cpp | 72605d60e544c5def982a058291eb01e36576f97 | [] | no_license | thegamer1907/Code_Analysis | 0a2bb97a9fb5faf01d983c223d9715eb419b7519 | 48079e399321b585efc8a2c6a84c25e2e7a22a61 | refs/heads/master | 2020-05-27T01:20:55.921937 | 2019-11-20T11:15:11 | 2019-11-20T11:15:11 | 188,403,594 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,107 | cpp | 3468.cpp | #include<iostream>
#include<algorithm>
#include<cstring>
#include<iomanip>
#include<stdio.h>
#include<math.h>
#include<cstdlib>
#include<set>
#include<map>
#include<ctime>
#include<stack>
#include<queue>
#include<vector>
#include<set>
#define ll long long int
#define INF 0x7fffffff
#defi... |
ec069e871874a7a8c0f37710387a2469d32176e6 | afee7d79003616df7e215715aad78a8ec01657e2 | /UVA/624 - CD.cpp | ec429317c6883790a1e7fcd35ba259f59a8334f5 | [] | no_license | elgharib94/Problem-Solving-Solution | d8c7eb0cac4f555bb7cba84687bc8fa0fca64fd6 | e9ae560bddcafa6f91c7d586e40ff22ad18fe92e | refs/heads/master | 2023-01-04T17:35:41.741788 | 2020-10-29T13:09:21 | 2020-10-29T13:09:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 502 | cpp | 624 - CD.cpp | #include <bits/stdc++.h>
using namespace std;
#define SZ(X) (int)(X).size()
#define ALL(X) (X).begin(),(X).end()
#define ALLR(X) (X).rbegin(),(X).rend()
using namespace std;
int main() {
long long n, m, x, c = 0;
set<long long> a;
while (cin >> n >> m && (n != 0 || m != 0)) {
c = 0;
for (int i = 0; i < n; ++i... |
b57e322d87df4202268d8674fb3c4c5a4766b5b7 | 4e74645771b2b3457906a52958fd0a2f5931b72c | /Chapter-15/TextQuery/query.cc | 9b3548d47292c658046c799f89ac2ae0dc603b02 | [] | no_license | chushu10/cpp-primer | 750b09a058ab45a8b629312a55f2ac43acd981f7 | 1bd1c90ab46bc02cf0bd039672e489c5cd91bef8 | refs/heads/master | 2022-02-23T00:59:03.861091 | 2019-09-10T13:49:33 | 2019-09-10T13:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,889 | cc | query.cc | #include "query.h"
Query::Query(const std::string& s): q(new WordQuery(s)), use(new std::size_t(1))
{
std::cout << "[Query] Created a Query with " + s + " and " + std::to_string(*use) << std::endl;
}
void Query::decr_use()
{
if (--*use == 0) {
delete q;
delete use;
std::cout << "[Query... |
696578edb6799c9210cab65f5fbfdd0b8da461b9 | ff3c1cfaf467867e79b44cbcd1469c6f21154ded | /system/videobox/IPU/G1JDEC/G1JDEC.cpp | 56bf3f3ddaa897f96da0a15dfe30c0cd801fc522 | [] | no_license | trigrass2/buildroot-ltc | 6d493323c2b624727f26d9d38f21c02f78d661a9 | 31cf5593a5bb4de4608425886e93f4be628f87f4 | refs/heads/master | 2021-08-29T21:55:10.393171 | 2017-12-15T04:29:22 | 2017-12-15T04:29:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,910 | cpp | G1JDEC.cpp | /*
* Copyright (c) 2016~2021 ShangHai InfoTM Ltd all rights reserved.
*
* 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... |
f86d90686603985e21be65d6f248eeb8f4a56d11 | ff9efbebfbd4e4bdb1ab0ff4033aa785d5bfe853 | /d04/ex03/AMateria.hpp | 647fedb97db1c9805025a71e4f12a9079090dd45 | [] | no_license | ViictorD/42-piscine_cpp | df4bbf9f3f7f81f31bc66498b0d95ed89dd69695 | 3c69ccd0b6f43c2316b6abfe4c59293b22d45d4f | refs/heads/master | 2022-11-28T22:52:15.780639 | 2019-05-13T15:40:59 | 2019-05-13T15:40:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 496 | hpp | AMateria.hpp | #ifndef AMATERIA_H
# define AMATERIA_H
# include <string>
# include <iostream>
# include "ICharacter.hpp"
class AMateria
{
private:
std::string _type;
unsigned int xp_;
AMateria(void);
public:
AMateria(std::string const & type);
AMateria(AMateria const &src);
virtual ~AMateria();
AMateria &operator=(AMa... |
cc8f0b93326c9374ff844475e7e9ef6867ac43fe | 580547141fea058c70e2069828bb43d4e98018e6 | /fenetreprincipal.h | 6c6b23b21f9472f9bacd80b51e043d778012dc52 | [] | no_license | MohamedHalim-A/GUI_QuestionAnswer | e8a94568bbe916fa013ef8144a8719bd736cc23d | c235f20b433ad1c18b2c74adc9acc31d3784b2d6 | refs/heads/master | 2022-11-08T17:01:25.483619 | 2020-06-15T01:13:53 | 2020-06-15T01:13:53 | 272,312,517 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 276 | h | fenetreprincipal.h | #ifndef FENETREPRINCIPAL_H
#define FENETREPRINCIPAL_H
#include <QMainWindow>
#include "modelgeneral.h"
class fenetrePrincipal : public QMainWindow
{
Q_OBJECT
public:
explicit fenetrePrincipal(QWidget *parent = nullptr);
signals:
};
#endif // FENETREPRINCIPAL_H
|
fc6f8dcb62d5b1db1d2a971f65c6ab4d7a80829f | 8862c89bb5d575653a6d07f27f1b29bd118cb22c | /src/modules/DepositionPointCharge/DepositionPointChargeModule.cpp | 2c1cdd6307c86aa3d3ace7567e5b794182ec959a | [
"CC-BY-4.0",
"MIT",
"BSD-3-Clause",
"BSL-1.0"
] | permissive | simonspa/allpix-squared | c1e475e2ba9d6de83a5006a1e526ea6403fd5ca2 | 62242b5c5b39a418309b7d2efb6336ff47d1b4d2 | refs/heads/master | 2021-06-05T16:01:31.969564 | 2020-02-28T11:40:57 | 2020-02-28T11:40:57 | 104,188,159 | 7 | 4 | MIT | 2021-12-03T03:31:33 | 2017-09-20T08:30:26 | C++ | UTF-8 | C++ | false | false | 10,999 | cpp | DepositionPointChargeModule.cpp | /**
* @file
* @brief Implementation of a module to deposit charges at a specific point
* @copyright Copyright (c) 2017-2020 CERN and the Allpix Squared authors.
* This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md".
* In applying this license, CERN does not wai... |
db40e2de3abf2154aea7dbf05a1e396460fd0eea | d7085a2924fb839285146f88518c69c567e77968 | /KS/SRC/ks/dxt1_codebook.h | 3f650176d66744c9a3707c01515e83bda9bc3b5e | [] | no_license | historicalsource/kelly-slaters-pro-surfer | 540f8f39c07e881e9ecebc764954c3579903ad85 | 7c3ade041cc03409a3114ce3ba4a70053c6e4e3b | refs/heads/main | 2023-07-04T09:34:09.267099 | 2021-07-29T19:35:13 | 2021-07-29T19:35:13 | 390,831,183 | 40 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,324 | h | dxt1_codebook.h |
#ifndef INCLUDED_DXT1_CODEBOOK_H
#define INCLUDED_DXT1_CODEBOOK_H
#include "global.h"
#include "dxt1_table.h"
class cbVector
{
private:
unsigned char pData[4];
public:
cbVector() {;}
~cbVector() {;}
inline unsigned char *GetPtr(void) {return pData;}
inline unsigned char &operator[](int i) {... |
809f57c63107535e3a9fcad1f8d866abd4c9e5d0 | a6376e1ada58384cdc0065ce5a4a96728e84f04f | /SDK/include/modules/base/processors/utility/metadataextractor.cpp | 9721e50cee871fc6242fc019d8c6c2f8a867a7e4 | [] | no_license | widVE/Voreen | be02bac44896e869a6af083c61729d5e154c28f1 | c8a5c66f15d31f8177eeceefa19358f905870441 | refs/heads/master | 2021-08-17T23:46:19.556383 | 2020-06-22T20:21:11 | 2020-06-22T20:21:11 | 196,454,037 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 9,598 | cpp | metadataextractor.cpp | /***********************************************************************************
* *
* Voreen - The Volume Rendering Engine *
* ... |
3489fedd0c2c1303a8b8e3d82ceadd9c46b6f3a2 | 805fb697a151db0da2c84990972377eb1ea8fbc3 | /Ulam_Week_3/code/.gen/include/Ue_10188Stretchy10.tcc | 0cca508129348f1f226bd555ac5c8f3dd70f23bf | [] | no_license | bmatthews1/Ulam_Development | fc3a6e0ae7fdce3b1eb8338e323dc2dd005837ef | 3b22496159fc55075cfc7ef147bd801bf863a4fc | refs/heads/master | 2021-01-20T09:45:11.906552 | 2017-10-02T02:39:11 | 2017-10-02T02:39:11 | 101,605,409 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 22,018 | tcc | Ue_10188Stretchy10.tcc | /** -*- mode:C++ -*- */
//Include other classes: //gcnl:SymbolTableOfClasses.cpp:556
#include "Uq_10106UrSelf10.h"
#include "Uq_10109211EventWindow10.h"
#include "Ue_10105Empty10.h"
#include "Uq_1010919AtomUtils10.h"
namespace MFM{
template<class EC>
Ue_10188Stretchy10<EC>::U... |
a8694f55757518c5056c7b35ca031e1d858a5524 | 705683d98811159f33d71ff5f55c26ddbb541034 | /transaction.hh | a14873f03eb6ce9114cc0636faca7a22d0522941 | [] | no_license | KReload/proj-paradise | 700b4a0cb16464d6990eca16d5b2ab68b5fb3b73 | a2a78374d4720e2506b6ee846621e64be2ad8348 | refs/heads/master | 2021-09-04T22:25:05.912405 | 2018-01-22T17:42:53 | 2018-01-22T17:42:53 | 115,535,803 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 404 | hh | transaction.hh | #pragma once
#include <string>
#include "lieux.hh"
#include "nom.hh"
class Transaction
{
public:
Transaction();
Transaction(std::string nom, int montant, std::string lieux, float preussite);
virtual std::string toString() = 0;
virtual int evaluate() = 0;
virtual int montant() =0;
protected:
s... |
7f9151a4d4690e91e561dfee0d0a871de0de9e4a | 59dc69a22f1e2ea41074d2a9d32f461518eb13e2 | /src/a2d/math/vector.hpp | a8081db59c0662f07b0d6fc6b2d95bdac113b04b | [
"MIT"
] | permissive | mowenli/A2D | 4956140152e64fa402bad816fbe0ba36e6017352 | 278b8e40be74c0f0257b1062f009995462f983fa | refs/heads/master | 2022-01-19T20:53:48.286678 | 2019-05-30T23:42:05 | 2019-05-30T23:58:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,743 | hpp | vector.hpp | //
// Created by selya on 26.10.2018.
//
#ifndef A2D_VECTOR_HPP
#define A2D_VECTOR_HPP
#include <a2d/math/math_defines.hpp>
#include <a2d/utils/utils.hpp>
namespace a2d {
// Vector base template
template<int L, class T>
class Vector;
typedef Vector<2, float> Vector2f;
typedef Vector<3, float> Vector3f;
typedef Vec... |
979e6c412d6e6b515ad99947cab58b9d7c533d54 | 6b57df76567fc391ba3f7e9f741a742d792b606b | /DataStructures/23-AdvBST/programs/BSTDiam.cpp | b165673247bcb7d8d40e7a35917adfb598ee5169 | [] | no_license | nolan-downey/SchoolCodingWork | 66393a9839c807a1a7ba5f1de6fe4a4fe8562da0 | 4592791d67a7191b9bfc2cb78232fef230b36c39 | refs/heads/master | 2022-04-13T12:30:24.494405 | 2020-04-06T00:22:30 | 2020-04-06T00:22:30 | 253,351,666 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,337 | cpp | BSTDiam.cpp | #include "../classes/BST.h"
#include <iostream>
#include <string>
void testExample(){
BST<int> theTree;
theTree.Insert(12);
theTree.Insert(10);
theTree.Insert(8);
theTree.Insert(11);
theTree.Insert(14);
theTree.Insert(13);
theTree.Insert(16);
theTree.Insert(15);
theTree.Insert(17);
... |
00eed2528b08d0c269f8212f46130c3c565e1f91 | af424ed127cb0fcdc729b1417f2884c4839adc03 | /SkyBox.cpp | 523b034daa1c95b397edfdd2a2b7be502ffb35d8 | [] | no_license | ComputerGraphicsLesson/Computer-Graphic-Project | caf16375cd5c2295f1dbbd6bd438e827916986ca | cc8bfd9785f2ba9b89cf45337ef38b1f303fdea4 | refs/heads/master | 2021-01-21T17:06:16.839299 | 2017-05-14T08:38:42 | 2017-05-14T08:38:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 923 | cpp | SkyBox.cpp | //
// Created by hao on 4/26/17.
//
#include "SkyBox.h"
SkyBox::SkyBox(Camera* camera, Model *model, const vector<string> texturesPath) : cubemapTex(texturesPath) {
this->camera = camera;
this->model = model;
}
void SkyBox::Render(Shader &shader) {
glDepthMask(GL_FALSE);
shader.Use();
m... |
bbabd7ed8f1dcc2537593770671bea08c2e0b3ff | 8026b467f625c3a0e219fdab70e6ed3f2547dd5d | /src/dconnectedcompdistance.cpp | f182d555b5f275cc526a8582bc7b16b4b0cccd15 | [] | no_license | herobd/handwriting | 4151d0957827e43b3393da51743629b8545cdeff | aa4a5d9eb851e54735536e367847482c7851f196 | refs/heads/master | 2021-01-01T06:45:32.863209 | 2014-09-11T23:29:57 | 2014-09-11T23:29:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,557 | cpp | dconnectedcompdistance.cpp | #include "dconnectedcompdistance.h"
///for now, this just calls getCCDistAndNearestCC_() and discards imgNearestCC
void DConnectedComponentDistance::getCCDist_(DImage &imgCCDist,
const DImage &imgCCs){
DImage imgTmp;
getCCDistAndNearestCC_(imgCCDist, imgTmp, imgCCs);
}
///for now, this just calls getCCD... |
57c823fd74bdb0fecfb7b66399d13a8a0f2816f2 | 8f902f218d5bd66327d08816458071962fb2df86 | /test3/monthly_care_plan.hpp | fb9746058d251f2bbc6a7abc89bb062bcca64e89 | [] | no_license | kumagi/qttry | 665a6039ed0b893b45af00ca78f437089fe7e1b3 | 8a89035e22266efba5a0bb617d60cd9b9c22b0c4 | refs/heads/master | 2020-04-05T22:48:31.271629 | 2010-12-22T17:22:42 | 2010-12-22T17:22:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,584 | hpp | monthly_care_plan.hpp | #ifndef MONTHLY_CARE_PLAN_HPP
#define MONTHLY_CARE_PLAN_HPP
#include <iostream>
#include <QWidget>
#include <QBoxLayout>
#include <QLabel>
#include <QListWidget>
#include <QApplication>
#include <QSplitter>
#include "one_human.hpp"
class monthly_care_plan :public QWidget{
public:
QWidget *verticalLayoutWidget;
QVB... |
401623671a7d9d0b10505ce582ca232e183f4625 | ac1c9fbc1f1019efb19d0a8f3a088e8889f1e83c | /out/release/gen/third_party/blink/public/mojom/native_file_system/native_file_system_directory_handle.mojom-shared-internal.h | 90adc9f148b805b207713748ddc6cc7361735cbd | [
"BSD-3-Clause"
] | permissive | xueqiya/chromium_src | 5d20b4d3a2a0251c063a7fb9952195cda6d29e34 | d4aa7a8f0e07cfaa448fcad8c12b29242a615103 | refs/heads/main | 2022-07-30T03:15:14.818330 | 2021-01-16T16:47:22 | 2021-01-16T16:47:22 | 330,115,551 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,895 | h | native_file_system_directory_handle.mojom-shared-internal.h | // third_party/blink/public/mojom/native_file_system/native_file_system_directory_handle.mojom-shared-internal.h is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found ... |
de043ed3743ff3787efb101acb7fa406290d77ec | 389126d9baf09ce8b9c6fd642026b9221cbbd149 | /EACRipper/Dialog.h | df167faee60c16de5401f4e5ab70231557dbe381 | [] | no_license | nitric1/EACRipper | c4e559586d011766251fea139902e90eeda9350a | ffb778887455062f060cb241cd7abcf462e8b3ff | refs/heads/master | 2021-01-18T01:41:00.146200 | 2012-09-02T04:48:38 | 2012-09-02T04:48:38 | 1,365,535 | 8 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 547 | h | Dialog.h | #pragma once
#include "Window.h"
namespace EACRipper
{
class Dialog : public Window
{
private:
enum { WM_APP_ENDDIALOG = WM_APP + 100 };
private:
std::vector<uint8_t> dlgData;
bool isDialogEnded;
intptr_t endDialogResult;
protected:
explicit Dialog(HWND = nullptr);
virtual ~Dialog() = 0;
protecte... |
51d331dcae6a51014289027395b4feab4726c30f | 529d508ab420872fd34f95fe680e2b61e75d55e4 | /dbms/src/Formats/BlockOutputStreamFromRowOutputStream.cpp | d2542d96c76a2251ead792b59560b52d26eb654f | [
"Apache-2.0"
] | permissive | filimonov/ClickHouse | 55c78adf722a9df45b19be3bc171810eb44b37df | c036cb103ba5fa9cd85dc377fff5182627cd7afa | refs/heads/master | 2023-09-03T16:46:23.889293 | 2018-12-10T12:54:48 | 2018-12-10T12:54:48 | 114,752,158 | 4 | 2 | Apache-2.0 | 2019-06-21T12:46:04 | 2017-12-19T10:33:51 | C++ | UTF-8 | C++ | false | false | 1,440 | cpp | BlockOutputStreamFromRowOutputStream.cpp | #include <Core/Block.h>
#include <Formats/BlockOutputStreamFromRowOutputStream.h>
namespace DB
{
BlockOutputStreamFromRowOutputStream::BlockOutputStreamFromRowOutputStream(RowOutputStreamPtr row_output_, const Block & header_)
: row_output(row_output_), header(header_) {}
void BlockOutputStreamFromRowOutputStr... |
5d806b2d628827110bec14bc173aae39f9838304 | aaeeb54ded4fa3829bfe5da8e50f44822ed2d1ab | /The Problem 6(structures).cpp | 0cb0b45c0700d667636a7b9ada963462663e5f63 | [] | no_license | PPPPParadise/IntroductionToCoding | b32b3e54f4d0f92ce23fc27f43a251307320735d | c1a0b9195b71923683bd59e74a35aaae6947ed93 | refs/heads/master | 2021-07-11T02:26:31.994843 | 2017-10-13T22:40:58 | 2017-10-13T22:40:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 693 | cpp | The Problem 6(structures).cpp | #include <string>
#include <iostream>
using namespace std;
struct class1
{int ID;
string name;
int points;};
int main()
{ int i,n,maximum;
cout<<"Please input the size of the class"<<endl;
cin>>n;
class1 student[n];
for(i=0;i<n;i++)
{
cout<<"student "<<i<<"'s "<<"ID ";
cin>>student[i].ID... |
d07bbee143fd19df441630d9ffaeec733275f57c | 5669216e2725494f5af6f8093a536eb2e1945cd2 | /Arduino Code/Voice/speechRecognition/speechRecognition.ino | 4f70a563773b1ddd30693bd6be3c043730173758 | [] | no_license | benjofisch/inch | 623d7d4f40058e66927836a6276a7061e8a9c814 | fc8593644da8bc57d4e49962c5e4b2a82962681e | refs/heads/master | 2021-01-19T23:06:18.302247 | 2017-04-21T02:24:07 | 2017-04-21T02:24:07 | 88,921,221 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,476 | ino | speechRecognition.ino |
#include "Arduino.h"
#include <Wire.h>
#include "SoftwareSerial.h"
// Shield Jumper on SW (using pins 12/13 or 8/9 as RX/TX)
SoftwareSerial port(12, 13);
#define pcSerial SERIAL_PORT_MONITOR
#define ADDRESS 13
#define DEBUG 1
#include "EasyVR.h"
EasyVR easyvr(port);
int group;
int idx;
int word1, word2, word3;
int... |
6614776eb11c7a1e9f7612e5f2ccf2b5a2906a2a | 52377fae2f8155f68594fa7675a5c9bbc60e09ae | /ardynia/src/entities/sword.cpp | 20ad685b591a796d7757ccd733884447a8e3eb7f | [
"MIT"
] | permissive | Pharap/ardynia | 862cf40f3ed2db1181f7fd77db97fc1f8e869a9e | e07fafd1d076481c6fe3c0f85695c98e2dc976d6 | refs/heads/master | 2023-04-27T10:57:37.313871 | 2021-05-13T15:35:17 | 2021-05-13T15:35:17 | 367,087,560 | 1 | 0 | NOASSERTION | 2021-05-13T15:12:18 | 2021-05-13T15:12:18 | null | UTF-8 | C++ | false | false | 938 | cpp | sword.cpp | #include "sword.h"
#include "../util.h"
EntityType Sword::update(Entity* me, Entity& player, uint8_t frame) {
int16_t px = player.x;
int8_t py = player.y;
switch (player.dir) {
case LEFT:
me->x = px - 18;
me->y = py - 4;
me->currentFrame = 0;
me->mir... |
d1a8bc440bccd43c4629fc98e5c1bf858d7e4adb | 011c66eaeb32f1855022810a897d6de96140828b | /src/RemoteGyro.h | 5150e329ed1367ebabb1941d22698047c4adc7c3 | [] | no_license | Bearbotics-2358/Smokey-VIII | d7b5a42bd4c0143a06d37be8f67f889686431dea | 27e113a1fd8aceb3a4f26021f9b8645743372fe5 | refs/heads/master | 2021-01-21T21:39:16.282840 | 2016-03-10T00:51:45 | 2016-03-10T00:51:45 | 29,067,824 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 322 | h | RemoteGyro.h | #ifndef _REMOTE_GYRO_H_
#define _REMOTE_GYRO_H_
#include <atomic>
#include <thread>
class RemoteGyro {
public:
RemoteGyro();
~RemoteGyro();
double GetAngle();
private:
void Run();
// ZeroMQ data
void *_ctx;
void *_sub;
std::atomic<double> _angle;
std::thread _thread;
};
#endif // _REMOTE_GYRO_H... |
dcb0db619d8d9c08e395269c527d43258b6c9ee5 | d61bef1c247c2d454612f37055ef2555802f1ca2 | /139.cc | 365ebe73f36c67602611c2e393f8b70aeaded137 | [] | no_license | li-chunyu/leetcode | 14abb171c70981445ec2c47aafc8940610227cc3 | b7156943519f13542986b5da0baabde6a3bb120c | refs/heads/master | 2021-07-23T11:46:59.921027 | 2021-05-28T05:02:28 | 2021-05-28T05:02:28 | 69,959,598 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 494 | cc | 139.cc | class Solution {
public:
bool wordBreak(string s, vector<string>& wordDict) {
s = " " + s;
vector<bool> dp(s.size(), false);
dp[0] = true;
for (int i = 1; i < dp.size(); ++i) {
for (auto w : wordDict) {
if (w.size() <= i && s.substr(i-w.size()+1, w.size())... |
39fd3b5cacc8ef62bbc065bbc4b4b7ce74c39a10 | 8ee0be0b14ec99858712a5c37df4116a52cb9801 | /Client/Sfx/SFXManager.h | c559d54529da09942cf8b31f862b333c673a227f | [] | no_license | eRose-DatabaseCleaning/Sources-non-evo | 47968c0a4fd773d6ff8c9eb509ad19caf3f48d59 | 2b152f5dba3bce3c135d98504ebb7be5a6c0660e | refs/heads/master | 2021-01-13T14:31:36.871082 | 2019-05-24T14:46:41 | 2019-05-24T14:46:41 | 72,851,710 | 6 | 3 | null | 2016-11-14T23:30:24 | 2016-11-04T13:47:51 | C++ | UTF-8 | C++ | false | false | 1,266 | h | SFXManager.h | #ifndef _SFX_MANAGER_
#define _SFX_MANAGER_
#include <list>
#include "../Util/JSingleton.h"
class ISFX;
//-------------------------------------------------------------------------------------------
///
/// class CSFXManager
/// @brief manager of sfx in game.
///
//---------------------------------------... |
a60aeb14dec5c925f6cf94f8b1a98feb83d47267 | 60359e93b6a33aefe6c1222a7bc09c84085ae07c | /sdk/System/PiProcess.h | c00c6da0d2086a2c28dbc81a94943c2224a745a5 | [] | no_license | 15831944/ncdb | 6d57eb9adc5eb4100ebde71e1421eb2e97ee39d9 | 5dabeaa0692af9bede5a4878bf5307cda667538f | refs/heads/master | 2021-07-05T11:03:47.811347 | 2017-09-29T09:23:47 | 2017-09-29T09:23:47 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 526 | h | PiProcess.h | #pragma once
#include "PiTypeDef.h"
#include "PiProcessDef.h"
Pi_NameSpace_Begin
class CPiProcess
{
public:
CPiProcess(void);
~CPiProcess(void);
public:
static bool IsProcessNameExist( tcpchar szProcessName );
static bool IsExistModule( tcpchar szModulePath );
//枚举获取进程ID
static bool EnumProce... |
f2f0a61e8119469217e6d25eec5da1c5145124ac | 8f9737c22dd7fa4d18401cc20dcffa0cad4b13a2 | /src/Gibbs.hpp | 1825561aebf541f19c270f23b6a867182fdadbc0 | [] | no_license | JunwenBai/PIAFD | 7c7f0d6cb29ab4b25e8ca8f8bd8f297c3f45003f | 1c066bb8d11c6c2cf362c2c69511a61dd972082b | refs/heads/master | 2022-05-22T08:58:38.605313 | 2020-04-26T03:29:14 | 2020-04-26T03:29:14 | 258,930,270 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 514 | hpp | Gibbs.hpp | #pragma once
#include <iostream>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <cstring>
#include <vector>
#include <armadillo>
#include <queue>
// #include "Projection.hpp"
#include "KMax.hpp"
using namespace arma;
using namespace std;
class Gibbs
{
public:
static void relax(std::vector<mat> ... |
ee69d50a70dfdc2211edc8e5b38fee4c05e94896 | 9c6850880976b0882236e2368a8120b955302abe | /AllJoyn/aj_sw_crypto.cpp | c3fdb8532b8620e5b9c11fe37fb2245f61d14dcf | [
"ISC"
] | permissive | neptcloud/Triton | 44ef3b6eb1efea5732f648f39df422d82ddfa161 | 9faeebe479db4fffb0d3f208d41388401696f651 | refs/heads/master | 2021-01-13T02:28:00.174382 | 2014-11-06T16:14:38 | 2014-11-06T16:14:38 | 24,129,185 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 11,220 | cpp | aj_sw_crypto.cpp | /**
* @file
*/
/******************************************************************************
* Copyright (c) 2013, AllSeen Alliance. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
*... |
faf92c22fea79606697a3afef9b80f6542a3f072 | 57a13f246da599958b39d9ea51922f2567b8ef7b | /function/function9.cpp | 055c9ac98aa6511fad79f3bd24ee4f3a349cb3a1 | [] | no_license | itsss/SASA_ComputingBasics | 01a580c403089c2fe54c77921626f8f1ced3e8f4 | d0c03b4aff86d0e323e956361952ceb13d72f643 | refs/heads/master | 2021-01-23T00:39:26.480897 | 2017-07-14T03:05:46 | 2017-07-14T03:05:46 | 92,827,072 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 322 | cpp | function9.cpp | #include <stdio.h>
void func01(void)
{
printf("func01\n");
}
void func02(int a)
{
printf("+_+: %d\n", a);
}
int func03(void)
{
return 2015;
}
int func04(int a, int b)
{
return a > b ? a - b : b - a;
}
int main(void)
{
func01();
func02(5);
printf("%d\n", func03());
printf("%d\n", func04(5, 10));
return 0;
... |
ba8653b4a67221434ac2459f0ef4ecf445d0da01 | d75aebb3f082f445f1689d6a140320642dc62ef1 | /server/session_map.h | 35b6e2952657f9908afbc51effa8ee7ac47a2b47 | [
"MIT"
] | permissive | zhangjiexhx/niba2.0 | cee2df0fcdfef9508809b02963e50401b64bfc08 | 8421b2f5d3155d33723c2e85bfd92c2f1b63db4c | refs/heads/master | 2022-12-02T06:51:42.798389 | 2020-08-12T02:51:20 | 2020-08-12T02:51:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,292 | h | session_map.h | #pragma once
#include "logger.h"
#include <memory>
#include <shared_mutex>
#include <string>
#include <unordered_map>
namespace nibaserver {
class server_session;
// A map of user_id -> session ptr
// Needs to be thread safe
// forward declare as server_session also need a session_map
class session_map {
public:... |
a810eb58c3a30f435049d5d37d2ce1ac4ec93ab9 | 88741a823cd49b5667d7ea6a374cb722e316ef6c | /cipher.cpp | 1cb1dfeb4b2dc5d63f0fdf0619eb132302dd2522 | [] | no_license | t-joseph/systemC_CPU | 45a8ae1fdc164249bea5d2efb894995faa369b97 | cdbd76b4b5b56daf3a0220bd75bf1b90596920d3 | refs/heads/master | 2020-03-18T14:54:57.782076 | 2018-06-12T22:14:22 | 2018-06-12T22:14:22 | 134,874,885 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 559 | cpp | cipher.cpp | #include "key.h"
#include "controller.h"
#ifndef FIFO_LEN
#define FIFO_LEN 64
#endif
void MOD_NAME::Cipher_main(void) // Scoping operator(::) means that the thread Cipher_main belongs to Module Cipher
{
char var;
char result;
while(1){
wait(cipher_security_event);
wait(500, SC_MS);
for(int i=0; i<=... |
319f7638b70e96482f74a4b5a1f894f73deee845 | 2194cf0946da4bc571b125a28eccfc3dad430b20 | /bipartite_graph.cpp | ddd894ade86073b8a9589d9a215f1f6d3ab2585d | [] | no_license | 1779296311/luogu | a25801492aa79d29c24aa35bf4500883ac3557b8 | 3d75cdafd021aab31583629e86d777dcd5c16273 | refs/heads/master | 2023-03-04T18:52:13.827891 | 2021-02-13T19:13:11 | 2021-02-13T19:13:11 | 330,155,681 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,989 | cpp | bipartite_graph.cpp | /*********************************************
* ------------------------
* ------------------------
* file name: bipartite_graph.cpp
* author : @ JY
* date : 2021--01--16
**********************************************/
#include <bits/stdc++.h>
namespace p1963{
const int N = 1e5 + 12;
... |
0bb48a6a7832465c60e20940672a1a3820ac3cfc | 22a5d5b013e856b714b526f1b166881c38253a98 | /Tests/EnemyTankTest.cpp | 60663937714c149c713d73ca1aa0d22b48ea51df | [] | no_license | teo3fl/Battle-City | 8e3ba7f0b5c51c5b6237fa1792de23bc27c8fda9 | 921f51a9a2d3648394bdfc0528f3ad4efd272a04 | refs/heads/main | 2023-07-10T09:49:48.172968 | 2020-01-21T13:03:29 | 2020-01-21T13:03:29 | 399,222,430 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 603 | cpp | EnemyTankTest.cpp | #include "pch.h"
#include "CppUnitTest.h"
#include "ArmorTank.h"
#include "BasicTank.h"
#include "FastTank.h"
#include "PowerTank.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace Tests
{
TEST_CLASS(EnemyTankTest)
{
public:
TEST_METHOD(BasicTankType)
{
BasicTank basicTank;
Asse... |
abbf9e40cfbf7c2829b02ec2f5aa227dab1383b2 | 5857ccbf6ddc65e80ae0284df70b47653bd36c22 | /cses1196.cpp | 1b3ae2c8159f99175ca056422beb7d86cf431e8d | [] | no_license | ernest-lu/cses | cc771d6d88fbf5fdf4c8bff292eacd6a79379ce1 | 601713607379e6042c04aba0187922938cfb0627 | refs/heads/master | 2022-12-13T23:20:46.951099 | 2020-09-11T19:22:56 | 2020-09-11T19:22:56 | 269,250,929 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,115 | cpp | cses1196.cpp | #include<bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef pair<LL, LL> pii;
typedef pair<LL, pii> ppi;
#define FOR(i, n) for(int i = 1; i<=n; i++)
#define F0R(i, n) for(int i = 0; i<n; i++)
#define mp make_pair
#define pb push_back
#define f first
#define s second
//var
LL n, k, m, t1, t2, t3;
vecto... |
95d435e45411e9bee8b2317976f2fd7e6584304a | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/httpd/gumtree/httpd_old_log_2141.cpp | 49cc42f91bb96e8de56a70aec4cc13771f62f595 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 103 | cpp | httpd_old_log_2141.cpp | printf("Server loaded: APR %s, APR-Util %s\n",
apr_version_string(), apu_version_string()); |
7af223699876f92bbd5d997dd853fca8e3e73152 | d96ebf4dac46404a46253afba5ba5fc985d5f6fc | /third_party/libwebrtc/third_party/abseil-cpp/absl/strings/internal/cord_rep_consume.cc | d91c6c9aec875ce5004c0275f72a0b6109aa5fde | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | marco-c/gecko-dev-wordified-and-comments-removed | f9de100d716661bd67a3e7e3d4578df48c87733d | 74cb3d31740be3ea5aba5cb7b3f91244977ea350 | refs/heads/master | 2023-08-04T23:19:13.836981 | 2023-08-01T00:33:54 | 2023-08-01T00:33:54 | 211,297,165 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,011 | cc | cord_rep_consume.cc | #
include
"
absl
/
strings
/
internal
/
cord_rep_consume
.
h
"
#
include
<
array
>
#
include
<
utility
>
#
include
"
absl
/
container
/
inlined_vector
.
h
"
#
include
"
absl
/
functional
/
function_ref
.
h
"
#
include
"
absl
/
strings
/
internal
/
cord_internal
.
h
"
namespace
absl
{
ABSL_NAMESPACE_BEGIN
namespace
cord... |
cb8b86d3e16607bf1b6e7c6a1e8daa126670db20 | db507912e598b291811a5a73db5f8ba33c8be2f9 | /client/win/Utility.cpp | 568e67a88b58bb0a3c05503987f9a8bc60559eef | [] | no_license | biniyu/k-line-print | ab3ee023876adaa9de8dd98b14dbd362a0b2810a | d1e033f79044d6ae62f86e6116cc902b6a7eeb83 | refs/heads/master | 2016-09-06T14:19:55.887544 | 2013-08-25T14:59:21 | 2013-08-25T14:59:21 | 40,391,671 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 12,470 | cpp | Utility.cpp | #include "StdAfx.h"
#include "KLinePrint.h"
#include "Utility.h"
#include "direct.h"
#include "io.h"
#include <fstream>
#include <sstream>
using namespace std;
Utility::Utility(void)
{
}
Utility::~Utility(void)
{
}
int CStringToInt(const CString& str)
{
int ip = atoi((LPCTSTR)str);
return ip... |
7491979fdc6b3fd6667069e726d43b1d449eb3e2 | 72742d4ee57fb66cfe3f10290ccb596dcde1e59e | /HackerRank/weekly/w12/c.cpp | b08e658a578e2f2f828b8c385a3f3c6a63d477e0 | [] | no_license | mertsaner/Algorithms | cd5cf84548ea10aafb13b4a3df07c67c1a007aef | f7aecb7e8aadff1e9cf49cc279530bc956d54260 | refs/heads/master | 2023-03-18T03:18:26.122361 | 2016-02-14T22:48:31 | 2016-02-14T22:48:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 748 | cpp | c.cpp | #include <iostream>
#include <vector>
#include <set>
using namespace std;
vector<int> edges[1000001];
set<int> noin;
bool found[1000001];
int ind[1000001];
int main()
{
int n,k,t,l,node;
cin >> n;
for(int i=0;i<n;i++)
{
cin >> k;
for(int j=0;j<k;j++)
{
cin >> t;
if(j>0)
{
ind[t]++;
edges[l]... |
5d19eed649f76bc1af710b3b955125ad22985036 | ac4bc337b1007723f3eb2a248e7649df8807a6af | /deleteElements.cpp | fd5a738b9fdf388f27cd361da3efaf0e38cbf5d1 | [] | no_license | pickou/leetcode | 9d1357a783b35be14abcfef942616f7b54b90fbf | 8f00d225fcd296655c4c4d008f72a2f697c85238 | refs/heads/master | 2021-05-12T05:40:35.753985 | 2018-08-02T09:37:46 | 2018-08-02T09:37:46 | 117,200,598 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,011 | cpp | deleteElements.cpp | /*
Remove all elements from a linked list of integers that have value val.
Example
Given: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6
Return: 1 --> 2 --> 3 --> 4 --> 5
*/
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL... |
1f85488962f15abb8cb3a8590b86bb7b98dc2ac8 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /third_party/skia/include/views/SkOSWindow_Unix.h | 9d1b8e0392964a0c6e7039bbb95c366f334fd55b | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | C++ | false | false | 1,998 | h | SkOSWindow_Unix.h | /*
* Copyright 2006 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkOSWindow_Unix_DEFINED
#define SkOSWindow_Unix_DEFINED
#include <GL/glx.h>
#include <X11/Xlib.h>
#include "SkWindow.h"
class SkEvent;
struct S... |
c760e402317de13d66d572a4145726fd3fea28f5 | c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64 | /Engine/Source/ThirdParty/PhysX/PhysX_3.4/Source/PhysXExtensions/src/ExtFixedJoint.h | 1ba8778c67fef1395eea1b950ae4dc679e625cd8 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | windystrife/UnrealEngine_NVIDIAGameWorks | c3c7863083653caf1bc67d3ef104fb4b9f302e2a | b50e6338a7c5b26374d66306ebc7807541ff815e | refs/heads/4.18-GameWorks | 2023-03-11T02:50:08.471040 | 2022-01-13T20:50:29 | 2022-01-13T20:50:29 | 124,100,479 | 262 | 179 | MIT | 2022-12-16T05:36:38 | 2018-03-06T15:44:09 | C++ | UTF-8 | C++ | false | false | 5,508 | h | ExtFixedJoint.h | // This code contains NVIDIA Confidential Information and is disclosed to you
// under a form of NVIDIA software license agreement provided separately to you.
//
// Notice
// NVIDIA Corporation and its licensors retain all intellectual property and
// proprietary rights in and to this software and related documentation... |
cb1917c722743cdaa5531e729e9f256d7c5ad419 | 475897accc433baa4ab4b681b40193fa80276d6f | /Queue/Source.cpp | 9217f1e2910f6322af8aa0516af27f0d1e2df6e8 | [] | no_license | DangNguyen146/WeCode | aa1a136408df33510a4f3c677bbce629d557048a | 08f8fbe03f046aa3af29477af81a42a295dde557 | refs/heads/master | 2022-11-18T22:15:51.598818 | 2020-07-07T17:32:12 | 2020-07-07T17:32:12 | 277,856,916 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 661 | cpp | Source.cpp | #include<iostream>
using namespace std;
struct node
{
int key;
node* pNext;
};
struct Queue
{
node* pHead;
node* pTail;
};
void CreateQueue(Queue& q)
{
q.pHead = q.pTail = NULL;
}
node* GetNode(int x)
{
node* p = new node;
if (p == NULL)
exit(-1);
p->key = x;
p->pNext = NULL;
return p;
}
void EnQueue(Queue&... |
8c6764be4c96b6231bd6fe2e56a01552b44e4d86 | cfc920c6f428a0bb92b430448df4af38cd7bc971 | /GOF/抽象工厂AbstractFactory/cpp/maze/wall.h | 14491f56c9e1c00b5b4aa67c836a624d60726748 | [] | no_license | whywhywhywhygo/Design-Patterns | 386af210fdce40462bbbd967bd2a8487caac4a89 | 8d89569890277df6955569258be4d1dce5ef52af | refs/heads/master | 2020-04-28T14:44:19.315438 | 2019-04-02T01:12:53 | 2019-04-02T01:12:53 | 175,347,250 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 194 | h | wall.h | //
// Created by gaojian on 19-2-27.
//
#ifndef CPP_WALL_H
#define CPP_WALL_H
#include "mapsite.h"
class Wall : public MapSite {
public:
~Wall() override = default;
};
#endif //CPP_WALL_H
|
2df68ba142d088f9aca573d68e9be8d7404cb1a4 | 0679e995ea3ed3015359ddaea64901d82ca6a187 | /src/is_class.cpp | c773b8ae5c32e0487ae7e820245ffbffc0035d2e | [] | no_license | pangsanjin/practice_interation_gtest | 467ac8ed0d257d800b2154be30e0afffb364b13c | 853a51af7796dd96c7094084c373b56e3d4bf4be | refs/heads/master | 2020-07-06T22:55:52.658887 | 2019-08-19T12:22:21 | 2019-08-19T12:22:21 | 203,164,430 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,209 | cpp | is_class.cpp | //
// Created by xxx on 2019/8/19.
//
#include <iostream>
#include "../deps/googletest/googletest/include/gtest/gtest.h"
using namespace std;
template<typename T>
class IsClassT {
private:
typedef char One;
typedef struct { char a[2]; } Two;
template<typename C> static One test(int C::*);
template<typ... |
865e6bd736ed2c4832be0b4f4ce9aab5f001f486 | 70886f0e37bf919c8b17b5c58dd6764057166809 | /youtubeC++/vectorOne.cpp | 325ebec6fe200a0cee2a48769001bc1fd6f3e790 | [] | no_license | pritamSarkar123/linux_c- | eeb97d2467fbdc06880b21588f7a4d208ae80df1 | 3c5bffd9e6ce45db2e58140cec363ca407d60d76 | refs/heads/master | 2022-11-01T17:10:48.249517 | 2020-06-11T16:17:46 | 2020-06-11T16:17:46 | 268,751,417 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 708 | cpp | vectorOne.cpp | #include<iostream>
#include<vector>
using std::cout;
using std::cin;
using std::vector;
using std::endl;
void print_vectorVal(vector<int> data){
data.push_back(12);
for(int i=0;i<data.size();i++){
cout<<data[i]<<"\t";
}
cout<<endl;
}
void print_vectorRef(vector<int> &data){
data.push_back(1... |
d0d46cd2a970f78d013c2326cce63fbf847ff0b5 | ef5fe6b55f3d9a697392a252617e1dc79b184222 | /AtCoder/ABC164/D.cpp | 558b66a946136c864536fd830540ba8990fc4012 | [] | no_license | kunichan9292/Programing-contest | 15110f1dbf00a9957d524c6163cd165b3828803f | 9126d5c63b80f170de8108ca74c7ae7a2bf9c921 | refs/heads/master | 2022-06-18T04:40:45.662188 | 2020-05-12T19:49:16 | 2020-05-12T19:49:16 | 263,432,210 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 459 | cpp | D.cpp | #include<iostream>
#include<algorithm>
using namespace std;
int main(){
string S;
cin >> S;
if(S.size()==1 || S.size()==2 || S.size()==3){
cout << 0 << endl;
}
else{
int count=0;
for(int i=4;i<=S.size();i++){
for(int j=0;j<S.size()-(i-1);j++){
string A;
for(int k=j;k<i+j;k+... |
6db471f21a9e6155dd4a9d2d2cccaa83f5a5170c | 602310e1e4c2380d6982e71e758b038b618f79a1 | /UIUC_ICPC_FA_16_ADV_SEP_26/C.cpp | 7cbafc48e452393a929544aaef0f181c065dd868 | [] | no_license | 15joeybloom/ICPC | f8f35cbade6ce124927f37590ccbb16c846e9d19 | e83a7cadb7feecb6f8639f7fe917f8f52c5b00be | refs/heads/master | 2021-01-13T01:11:10.605516 | 2018-11-13T22:11:00 | 2019-01-20T11:55:37 | 52,038,228 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 597 | cpp | C.cpp | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <algorithm>
#include <cmath>
#include <climits>
#include <vector>
#include <queue>
#include <cstring>
#include <iterator>
#include <list>
#include <set>
#include <map>
#include <bitset>
using namespace std;
typedef long long LL;
int main()
{
int H... |
6d302d43463c0d1107ba2ade6dea4e7449237c66 | d60e722dee815d123d757fe2bd77e10758379166 | /CPP/OOP/1102/1102/Creatures.cpp | e2cf821a23ff0f508774894c42fd42a94be1bfd8 | [] | no_license | LJP-TW/NTUST | 54998e3869ca5f5dd05a1601bd1c90179f39f519 | 02063b7e5c589949ca7ae16481812c811bbcbec2 | refs/heads/master | 2021-04-26T22:55:03.861434 | 2019-10-27T09:03:12 | 2019-10-27T09:03:12 | 123,893,438 | 1 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 793 | cpp | Creatures.cpp | // Name: ±i®Ñ»Ê B10615025
// Date: 2018/5/19
// Last Update: 2018/5/19
// Problem statement: Creatures
#include "Creatures.h"
Creature::Creature() : strength(10), hitpoints(10)
{
}
Creature::Creature(int newStrength, int newHit) : strength(newStrength), hitpoints(newHit)
{
}
int Creature::getDamage()
{
int damage;
... |
e31aefabec5ab5635ef91c9d58a338963778a8a9 | 0dcafdeb5f3b039b0db1718a5801885ff168f242 | /main.cpp | b172861e4262d58d684fdc86cfa15d056ec8080f | [] | no_license | rimever/first_sdl | 08b02101a18308ff85a7d80fab3d9c10b12fe03a | a51b2b7ee19310952a8536d742b2c533885a035b | refs/heads/main | 2023-02-26T12:53:31.152173 | 2021-02-02T12:48:21 | 2021-02-02T12:48:21 | 335,283,919 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 721 | cpp | main.cpp | #include <SDL.h>
// http://nyaocat.hatenablog.jp/entry/2014/01/27/153145
int main(int, char ** const)
{
SDL_Init(SDL_INIT_VIDEO);
SDL_Window* window = SDL_CreateWindow("Hello SDL",SDL_WINDOWPOS_CENTERED,SDL_WINDOWPOS_CENTERED,640,480,0);
SDL_Renderer* render = SDL_CreateRenderer(window, -1, 0);
SDL_... |
331e84991654220f0c30fe129b5b04d9b005d537 | 9732ad51b09956a1770ba827d32e35c03e9deade | /305_Lab11_Q1/Queue.h | c0b612b6244187c1f323449f374c403e9225fdec | [] | no_license | shihabawal/JavaLabs | dd1ae3f04cfdaaf4405bf92cc1cb2992e8475a89 | d09ce12db46860d3a48d306d76fa303d8017dce6 | refs/heads/master | 2021-01-22T17:52:49.916508 | 2017-03-15T07:44:58 | 2017-03-15T07:44:58 | 85,040,339 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 379 | h | Queue.h | #ifndef Queue_H
#define Queue_H
class FullQueue {
};
class EmptyQueue {
};
template<class ItemType>
struct NodeType;
template<class ItemType>
class Queue {
public:
Queue();
~Queue();
void MakeEmpty();
void Enqueue(ItemType);
void Dequeue(ItemType&);
bool IsEmpty() const;
bool IsFull() const;
private:
NodeTy... |
4bfb387b2f9029d6f8b9eb28cc11171c1f04a144 | e1890fed44c38a4b6fc6e9de734e48e2cb2b400d | /ramiLukata_Assignment8/Sketche/Curve.cpp | 1a71d22f157c10b6b0ef765d5846d681fd0aace7 | [] | no_license | rlukata/IS375 | 45126a10a8299151d939b05e3710586e3feeeb1b | d52f855755c5198658204a918e68917ba3b5d3d7 | refs/heads/master | 2021-04-26T22:14:30.989451 | 2018-03-06T09:10:16 | 2018-03-06T09:10:16 | 124,048,255 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,291 | cpp | Curve.cpp | #include "stdafx.h"
#include "Curve.h"
#include <algorithm>
IMPLEMENT_SERIAL(CCurve, CElement, VERSION_NUMBER)
CCurve::CCurve()
{
}
CCurve::~CCurve()
{
}
// Constructor for a curve object
CCurve::CCurve(const CPoint& first, const CPoint& second, COLORREF color) :
CElement(first, color)
{
// Store the second point... |
aff6dc2778aa8d4e6d21f302fe2cbc87eba25e9b | def5627f3cafb100cb4f5e617f27e1c06cf24820 | /src/myengine/MeshRenderer.h | b6c91f51e3ab91c12eda4f7113762a0c0397c761 | [] | no_license | HiddenRealm/myengine | 716bca574369f8abf51d257918601f6c93cde14c | 341c5a6ddd8ddaed637185811bab80b8334852d9 | refs/heads/master | 2020-03-30T03:59:12.647412 | 2018-11-26T12:12:22 | 2018-11-26T12:12:22 | 150,718,474 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 941 | h | MeshRenderer.h | #ifndef MESHRENDERER_H
#define MESHRENDERER_H
#include "Component.h"
#include "VertexBuffer.h"
#include "VertexArray.h"
#include "ShaderProgram.h"
#include "Texture.h"
#include <SDL2/SDL.h>
#include <GL/glew.h>
#include <glm/ext.hpp>
#include <iostream>
#include <string>
#include <memory>
namespace myengine
{
clas... |
e453cd9ce3eac9f1ea7c991ae63c06db1a9642be | daecca13678e4f602cf1db483d1325bd8875614a | /Code/Code/HTSConsts.hpp | 18f9eab582e9e6868981ae6528d9b922299e26fb | [] | no_license | sudarshan-shinde/HTS | 85c7a98fd12bf1d338bcac202857a8da3a28257a | c511c44c0b2e1f7a80dc6e116832ce2e50d1f043 | refs/heads/master | 2021-03-12T23:17:12.503215 | 2016-01-31T08:52:13 | 2016-01-31T08:52:13 | 35,410,701 | 2 | 1 | null | 2015-11-18T10:15:18 | 2015-05-11T08:12:10 | TeX | UTF-8 | C++ | false | false | 2,571 | hpp | HTSConsts.hpp | #ifndef _HTS_CONSTS_HPP_
#define _HTS_CONSTS_HPP_
#define HTS_OK (0)
#define HTS_NOT_OK (1)
#define HTS_TRUE (1)
#define HTS_FALSE (0)
#define THREAD_REQUEST_BUFFER_SIZE (512)
#define REQ_QUEUE_SIZE ... |
4266b0a3ea2303fb74fd03eda3922821fc0ef959 | 5784bbe9280b84c2c58d373da65c52ad763f59ad | /trackpagehandler.cpp | 1354b0450d1a89250db1cefd7a10d477fcc26529 | [] | no_license | erewalk/eva-UAV | 0bd890e24bd38c700abc2dce0c9b0177275f5adb | 094dabb4a04cd6b2c2a71ceb7a275083db5b90fa | refs/heads/master | 2021-01-18T14:58:55.898224 | 2015-07-14T01:53:59 | 2015-07-14T01:53:59 | 39,063,918 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 74 | cpp | trackpagehandler.cpp | #include "trackpagehandler.h"
TrackPageHandler::TrackPageHandler()
{
}
|
2ad109b84ea45380de682e615f2249658630be3e | f7ec5cbc4c628a595b8a0c074d353332c8b52055 | /PixeltrackSD/src/VideoOutput.cpp | c511acc46dc24fbe3dbcf44bff8d945e19d0f58e | [] | no_license | sonnysk76/modules | ba6cef9dabc3afcac9cd86dd7ca51dded382c742 | 62339f4b0aa0fef1ae9e696daea3d6e555243744 | refs/heads/master | 2020-06-05T08:39:26.912796 | 2018-07-26T07:40:34 | 2018-07-26T07:40:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,455 | cpp | VideoOutput.cpp | /*
Copyright (C) 2013 Stefan Duffner, LIRIS, INSA de Lyon, France
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program... |
01e4abc019201f4225419504e2cddb91f3aff8c6 | 2ad3d9bc7ed0752575a86ac65d53f5535ccf762a | /player.h | 1dab05e20a953c19d610a836fa5f3c8174078b7b | [] | no_license | maashok/othelloAI | c1e02f1f9fbe9f86fd18defa6c2c97296921ec8f | 45b5fbb09cf7164216d96f8d6677295cec9df86e | refs/heads/master | 2021-01-10T07:46:46.929456 | 2016-03-15T05:33:15 | 2016-03-15T05:33:15 | 52,929,979 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 471 | h | player.h | #ifndef __PLAYER_H__
#define __PLAYER_H__
#include <iostream>
#include "common.h"
#include <limits>
#include "board.h"
using namespace std;
class Player {
Side me;
Side opp;
Board *board;
public:
Player(Side side);
~Player();
bool haveTime;
int depth;
void setBoard(Board *newBoard);
Move *doMo... |
2f80576506824213a0713ae95a69f1a45bb76951 | 1cfe775850da34579e8cbc739a897da79855469b | /include/objpipe/reader.h | 36bdc777c07bdbf1e170f01a51330b509565e760 | [
"BSD-2-Clause"
] | permissive | nahratzah/objpipe | 722fcde9cf5ed8abe50bfc324ab131f99fdf8587 | 677bc14faef2c0301b7fca919efbbdc3e8160763 | refs/heads/master | 2021-05-25T10:22:09.419047 | 2020-04-04T00:59:40 | 2020-04-04T00:59:40 | 127,082,498 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 619 | h | reader.h | #ifndef OBJPIPE_READER_H
#define OBJPIPE_READER_H
///\file
///\ingroup objpipe
#include <objpipe/detail/fwd.h>
#include <objpipe/detail/virtual.h>
namespace objpipe {
/**
* \brief An object pipe reader.
* \ingroup objpipe
*
* \tparam T The type of objects emitted by the object pipe.
*/
template<typename T>
cl... |
a972fd5b2164610bdd64fc690ec7a124044597d1 | 2d3d4bc4b3fa577801e80bcc58d60e92bf355892 | /Ch15_drills/Main.cpp | 57ca64ea2160f1931b331f2a64388e15e59db997 | [] | no_license | VassZsolt/Prog1 | 529f31e329efa5d7083b37d0851ef8ad5bb842a9 | 90ff7f9c502ca7d957705d0f804065f13d8e9116 | refs/heads/main | 2023-05-04T01:28:45.539258 | 2021-05-27T12:33:51 | 2021-05-27T12:33:51 | 335,318,846 | 0 | 0 | null | 2021-05-27T12:33:52 | 2021-02-02T14:37:16 | C++ | UTF-8 | C++ | false | false | 1,579 | cpp | Main.cpp | #include "Simple_window.h"
double one(double x) { return 1; }
double slope(double x) { return x / 2; }
double square(double x) { return x * x; }
//double cos(double x) { return cos(x); }
double sloping_cos(double x) { return cos(x) + slope(x); }
int main()
{
int xmax = 600;
int ymax = 600;
int x_orig = xmax / 2;
... |
0617120841b0159d0602ea57a0c4d4a15a1c424d | 195c78931b7920146baf087aa323321f045620f4 | /task2/codeforces/nextround.cpp | 91113646513a3084170db83789cb845d69f000b9 | [] | no_license | kasthuri28/amfoss-tasks | afc5dd2987b71d875680a04fb1fefa1cc67dfa57 | 2d47e5060fe4cd9a6a7b17e570340439e9529d83 | refs/heads/master | 2020-06-26T15:09:53.663047 | 2019-11-03T18:39:31 | 2019-11-03T18:39:31 | 199,669,001 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 235 | cpp | nextround.cpp | #include <iostream>
using namespace std;
int main()
{
int p,f;
int s=0;
int a[10];
cin>>p>>f;
for(int i=0;i<p;i++)
cin>>a[i];
for(int j=0;j<p;j++)
{
if(a[f]>=a[j])
s++;
}
cout<<s;
return 0;
}
|
27c8fb38d7a78659cf9399e515b29ca3bc1dc24e | af80f56928b5f006e31e5fb76523848e9e1b1fda | /counting_components/distcount.h | 685575310a352b128b1c09fcf822ee866a2285cc | [] | no_license | jeremy-murphy/gensearch | 86387a247f148671aa27ea66ae06cbeb6973e3b1 | 80a0113fca0945b0e8b971d4adde2bb6493f4e79 | refs/heads/master | 2021-01-20T11:41:27.979953 | 2016-09-03T08:56:36 | 2016-09-03T08:56:36 | 53,176,766 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,879 | h | distcount.h | /*
Defines class distance_counter<RandomAccessIterator, Distance,
Counting>, for use in measuring the performance of certain STL generic
algorithms. Objects of this class behave like those of type Distance
(which should be a type capable of representing the difference between
iterators of type RandomAccessIterator) b... |
9bd8e140c16862c89d78fadde54bde0eb0e459de | f353c743a163023ec23e2e80c6f38cf80da6a76e | /Piece.cpp | eba448666040c1390b9898b814ab7e76f7acb0ea | [] | no_license | vdogmr25/chess | 898189f8d5d57d7fbf3f9ab7f0f9dc85b8adf2c5 | dc6c1b66c3a666dc5e0c83bff8cd1d12cc0e4288 | refs/heads/master | 2021-01-23T06:35:23.756917 | 2014-08-26T18:17:25 | 2014-08-26T18:17:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,811 | cpp | Piece.cpp | //
// Piece.cpp
// Chess
//
// Created by Christian Bodnar on 3/18/13.
// Copyright (c) 2013 George Fox University. All rights reserved.
//
#include "Piece.h"
#include "Player.h"
Piece::Piece(std::string color, bool white) : _color(color), _white(white) {}
bool Piece::moveTo (Player& byPlayer, Square& to)
{
... |
a57b5c984b0b3d6df54f10194f42c1e14b1ec91d | 1ae05cf29c69a2fce84f1f3e285cc618b84143d9 | /Bridge/Report.h | a7af91881dfc9df753fe0d6d30e1c79042e7a1e5 | [] | no_license | Bylinka/Bridge | 7a66b579b7df6c2249b418bf1862a9d63960dbf3 | 771f9453d4d882b8dbd3df8fd97a4b5ccd81e858 | refs/heads/master | 2020-03-26T02:03:55.013626 | 2018-08-11T17:06:21 | 2018-08-11T17:06:21 | 144,395,536 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,407 | h | Report.h | #pragma once
class ITool {
public:
virtual void printLine(const char* str) = 0;
virtual void printHeader(const char* str) = 0;
virtual ~ITool() {}
};
class IPDFTool : public ITool {};
class PDFTool : public IPDFTool {
public:
void printLine(const char* str) {
cout << "PDF Line: " << str << endl;
};
void print... |
6df5215e27886b4aa718aa972145ea15ca7db29f | c6b1309a7d1ab5af0c6338634ef7f9e886afb8a8 | /seekur_12.04/packages/CAMERA_STEREO/mobile_ranger/include/mobile_ranger/libfrdev/FrStereoRectMap.h | fba680820cc38d49262d141ff0ce01f96420bc52 | [] | no_license | wserrantola/SeekurJr | bd6aa1c075508b091e65cbdecb67f42b583a1b3d | d7d6f83b4050ec2dbace13c50fac105ef7066e51 | refs/heads/master | 2020-06-23T17:19:42.173959 | 2019-06-24T19:17:41 | 2019-06-24T19:17:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,265 | h | FrStereoRectMap.h | /****************************************************************************
* Copyright (c) 2006-2008 by Focus Robotics.
*
* All rights reserved. No part of this design may be reproduced stored
* in a retrieval system, or transmitted, in any form or by any means,
* electronic, mechanical, photocopying, recording... |
db78242132a0e14c633814cce9c77035786b9691 | c33e840f5503365b39ad0118ce12200bc79dd428 | /Implementacao/Fila.hpp | c1edb82a25ded302539e11d91391b07db695f4b1 | [] | no_license | gabrielissantos/JvTron-3.0 | 24d0a823f83e3e13471cd3983f5089b05b9edd89 | d2523f078372d721c4f2f73df2913054bb542435 | refs/heads/master | 2020-12-25T19:03:12.534108 | 2017-07-15T19:55:55 | 2017-07-15T19:55:55 | 94,019,172 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,351 | hpp | Fila.hpp | /*
JvAsteroids: Trabalho 3
Departamento de Computação
UFSCar Universidade Federal de São Carlos
Disciplina: Estrutura de Dados
Professor: Roberto Ferrari
Aluno(a): RA:
João Gabriel Melo Barbirato 726546
Leonardo de Oliveira Peralta 726... |
51edc9da65cb58abc3d0979d0b89b81e054e7e14 | 65daad5f59caa2336888fa71d31502e8abbb6721 | /Client/NodeInterface_Shape.h | 9ebad34c8e01ef643b49aa33de1ee564ea4b710a | [] | no_license | Naeferith/CPP-Client | d9f98f7bf0505a243eef7468586c4abe07c441a3 | 81b127f94e5f4b1443e0c32bef0fe45e63a7756b | refs/heads/master | 2020-03-31T14:57:36.640181 | 2019-01-24T19:07:54 | 2019-01-24T19:07:54 | 152,317,383 | 0 | 4 | null | 2019-01-25T13:00:38 | 2018-10-09T20:34:16 | C++ | ISO-8859-1 | C++ | false | false | 414 | h | NodeInterface_Shape.h | #pragma once
#include "NodeInterface.h"
/** @brief L'expert de Forme de la COR*/
class NodeInterface_Shape : public NodeInterface {
public:
/** @brief Le constructeur par défaut. */
NodeInterface_Shape(NodeInterface* ni);
/** @brief Le destructeur. */
virtual ~NodeInterface_Shape();
/** @see NodeInterface.exec... |
ca8707ef272a69fbdb64d8320392c8b65d874874 | 5f4d46c8034f71657cb02b474ec4b6fad3d49012 | /C++/try/学籍成绩管理/学籍成绩管理/SearchDlg.h | e8c6c1b8e296ca40db9f6c33d78bc238a66f8823 | [] | no_license | GaryCao97/CodeWarehouse | 516c3da660070a574be40e34e290345c54fef692 | d6290d0f115c8dd350844bfe697abc07998a9f4c | refs/heads/master | 2020-03-31T19:52:02.786213 | 2018-10-12T08:29:46 | 2018-10-12T08:29:46 | 152,515,319 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 1,031 | h | SearchDlg.h | #pragma once
#include "afxcmn.h"
// CSearchDlg 对话框
class CSearchDlg : public CDialogEx
{
DECLARE_DYNAMIC(CSearchDlg)
public:
CSearchDlg(CWnd* pParent = NULL); // 标准构造函数
virtual ~CSearchDlg();
// 对话框数据
enum { IDD = IDD_Search };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
... |
1d2c01f94d8554591b6fd1b6dc676313e5252542 | 504920274f287ac89b344d1292a6299771829b08 | /ptr_fun_dx/main.cpp | 588b562ad683bf401b8d7307f513b0d7681981a6 | [] | no_license | sakishum/My_STL | 0d732bc948e9e519010b6eb8b25a98a3caa9211a | 7ae399c57b4f4fbf0a3eebb7fae16ebed4bbe0ff | refs/heads/master | 2021-01-13T05:13:05.507907 | 2017-02-08T00:17:19 | 2017-02-08T00:33:29 | 81,268,601 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 693 | cpp | main.cpp | #include <iostream>
#include <cstdlib>
#include <algorithm>
#include <functional>
int sum(int arg1, int arg2) {
std::cout << "arg1 = " << arg1 << std::endl;
std::cout << "arg2 = " << arg2 << std::endl;
int sum = arg1 + arg2;
std::cout << "sum = " << sum << std::endl;
return sum;
}
int main(void) {
// ptr_fun ... |
82c67288046b00803673a59dfd29ed19a315b3d2 | 27a0328fdf0ae552a0f1d2f799e6e8846dc8f0e4 | /src/ngraph/runtime/gpu/gpu_memory_manager.hpp | d7fad23c52c5648e6a2b62db9e28d21ee05ab09f | [
"Apache-2.0"
] | permissive | darchr/ngraph | d58698ee62d4d6dac1ba3394a36f3c1ec618f4d0 | 7c540e5230f8143ecb6926685c7b49305f0f988a | refs/heads/master | 2021-07-10T03:58:12.711797 | 2019-08-29T18:31:40 | 2019-08-29T18:31:40 | 171,505,991 | 1 | 0 | Apache-2.0 | 2019-08-29T17:35:24 | 2019-02-19T16:10:45 | C++ | UTF-8 | C++ | false | false | 2,993 | hpp | gpu_memory_manager.hpp | //*****************************************************************************
// Copyright 2017-2019 Intel Corporation
//
// 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://w... |
af8db77ba38817755d24c3756d84fea34ca3ab44 | 450757ee3d890672bb3f6af42f01430ca3dea34c | /revreaddyC/include/ReactionEvent.h | 7ab02aacf44e694a983c08a7a5f07826d3aca51e | [] | no_license | chrisfroe/revreaddy | f173035c2d2e6aef6da7a69ef73187a743689208 | 66b8e7d003f94e969dc1f202937a699ae4604585 | refs/heads/master | 2020-05-21T22:59:29.498375 | 2016-11-10T18:59:47 | 2016-11-10T18:59:47 | 26,339,851 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 690 | h | ReactionEvent.h | /* ReactionEvent.h
* This small structure describes a particle or a pair of
* particles, which is a candidate for a certain reaction. */
#ifndef __REACTIONEVENT_H_INCLUDED__
#define __REACTIONEVENT_H_INCLUDED__
#include <vector>
struct ReactionEvent
{
ReactionEvent(
unsigned int inReactionId,
bool inForwardOrB... |
fcf4b996f6c4a846f6a9db1504f092396754aca1 | 7008d4e39c15ea01d9dcc59c37c7ed517ee67d7c | /NeWS/ice/Fontobj.cc | 375e9b923600bbae2320e7c6d76e0e4572d2f1ff | [] | no_license | LegalizeAdulthood/OpenLookCDROM | d99b829a446cfa281947c449c8496943f944fd2a | 2aa032ddc0a737bb420463c0a508a0f4867c1667 | refs/heads/master | 2023-03-19T12:02:53.777816 | 2021-03-11T14:36:41 | 2021-03-11T14:36:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 595 | cc | Fontobj.cc | /*
* Copyright (c) 1990 by Columbia University.
*/
#include "Fontobj.h"
extern "C" {
char * strcpy(char *, char *);
int strlen(char *);
}
Fontobj::Fontobj()
{
fontname= (char *) 0;
}
Fontobj::Fontobj(Dlnk **objhd, char *f)
{
if (objhd == (Dlnk **) 0)
;
else if (*objhd == (Dlnk *) 0)
*objhd= (Dlnk *) this... |
94d0f91652c9f3cf3e686aa438bee58f8d2c0d3c | ee026a2b32db9679245c7203151b54c8b81ab587 | /EmgApp/MainWindow.cpp | d3e9d5c24bd5bda6d88bab815e707415039640fd | [] | no_license | liyi6/EmgApp | c6fe23095a575a45f7095d8399b73bdc17118c46 | 3d2f8becdf199855a43a8b5827afd3a90b48758c | refs/heads/master | 2020-04-07T12:35:55.915854 | 2018-11-22T02:26:30 | 2018-11-22T02:26:30 | 158,373,655 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,460 | cpp | MainWindow.cpp | #include "MainWindow.h"
#include "ui_MainWindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
updateUi();
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::updateUi()
{
setWindowIcon(QIcon("res/logo.ico"));
setWindo... |
96761562ce67f8b2f5a6e9c19b925609545cefbe | 717b46277594cb7d3cd38dc0870fb61f8e64b5c5 | /Rearrange/main.cpp | 64d4bddd53d5a081406f905fbfbc8fe65f8296dc | [
"MIT"
] | permissive | colorhistory/data-structure-and-algorithm | bda642732e31e03083b5cff992e739724dd82d98 | 402d1ab29e627ebd471632080e5b7194fe892a78 | refs/heads/master | 2020-05-30T12:54:12.846239 | 2019-07-04T22:46:06 | 2019-07-04T22:46:06 | 183,998,674 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 368 | cpp | main.cpp | #include <iostream>
using namespace std;
template <typename T>
void Rearrange(T a[], int n, int r[]) {
T *u = new T[n + 1];
// move elements
for (int i = 1; i != n; ++i) {
u[r[i]] = a[i];
}
for (int i = 1; i != n; ++i) {
a[i] = u[i];
}
delete[] u;
}
int main() {
co... |
5d1cb99f11e053fb8a021931aa2460633fc57116 | e45e32605372dbcea6aedc6b751660f0132ea48b | /1ShootingGame/Effect.h | ba537955a277a4ec096bb4c608e53a471171ddcb | [] | no_license | taehwan642/THFramework | 6beb7af823c723fdb62651f73e7f709facf0c874 | 31dd426df383cc71a13e75eda9b0d312fec160c3 | refs/heads/main | 2023-09-05T14:21:48.408068 | 2021-10-05T05:34:23 | 2021-10-05T05:34:23 | 330,841,582 | 10 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 331 | h | Effect.h | #pragma once
#include "Singleton.h"
#include "Sprite.h"
class Effect :
public Sprite
{
public:
Effect();
void Update() override;
};
class EffectManager :
public Singleton<EffectManager>
{
public:
vector<Effect*> effects;
void CreateEffect();
void SpawnEffect(Vec2 pos);
void DeleteE... |
f276b50f106fd716143169e1275fdd2b51f6f8d0 | 1bf8b46afad5402fe6fa74293b464e1ca5ee5fd7 | /SDK/ST_CutsceneReplaceActorInfo_structs.h | 87e82b50921a91585162b6795a49192ee3df979e | [] | no_license | LemonHaze420/ShenmueIIISDK | a4857eebefc7e66dba9f667efa43301c5efcdb62 | 47a433b5e94f171bbf5256e3ff4471dcec2c7d7e | refs/heads/master | 2021-06-30T17:33:06.034662 | 2021-01-19T20:33:33 | 2021-01-19T20:33:33 | 214,824,713 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,375 | h | ST_CutsceneReplaceActorInfo_structs.h | #pragma once
// Name: Shenmue3SDK, Version: 1.4.1
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
// Script Structs
//---------------------------------------------------------------------------
// UserDefinedStruct ST_Cuts... |
cf9ebb0bd4f0b7ae528c16058b9b2f281cb07e55 | d07da6c4924b053a9bbc2d434015bbbd5a31905b | /Ghost XpressView.h | e32e80b9e700328b2be911cea8d7626a5994a9c2 | [
"MIT"
] | permissive | theghostofc/Ghost-Xpress | d4b519581c50d1bfedd9528d34ef093e76eeba08 | d0e476f4d854d4c19a0ac61a093cb07fbc7ee1f5 | refs/heads/master | 2021-08-23T02:56:39.190994 | 2017-12-02T18:53:23 | 2017-12-02T18:53:23 | 112,861,629 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,292 | h | Ghost XpressView.h | // Ghost XpressView.h : interface of the CGhostXpressView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_GHOSTXPRESSVIEW_H__7CBB600E_B7F7_11D9_B539_FF062122A253__INCLUDED_)
#define AFX_GHOSTXPRESSVIEW_H__7CBB600E_B7F7_11D9_B539_FF062122A253__INCLUDED_
#i... |
666ab069d5f0b7837e8b46886848acf0bb06acec | 96f3e2fc82536e5963bda2445035f8f4fb71aabc | /win-client/src/Modules/UserList/IUserListModule.cpp | cac99c05a756f61fd12ae231b29d9076e17d265f | [
"BSD-2-Clause",
"Apache-2.0"
] | permissive | jdtsg/TeamTalk | 5266083f9fcfc901aec287235969d7a9b99e97ff | 69fe6ac5a64f0679f61b81f8c77e01aca8716155 | refs/heads/master | 2020-03-21T12:25:03.406263 | 2018-06-25T09:04:04 | 2018-06-25T09:04:04 | 138,551,294 | 1 | 0 | Apache-2.0 | 2018-06-25T06:16:41 | 2018-06-25T06:16:41 | null | UTF-8 | C++ | false | false | 1,987 | cpp | IUserListModule.cpp | /*******************************************************************************
* @file IUserListModule.cpp 2014\8\26 16:36:25 $
* @author 快刀<kuaidao@mogujie.com>
* @brief
******************************************************************************/
#include "stdafx.h"
#include "Modules/IUserL... |
7b504e968f3d0736004c6e64f92beb6df494aa1f | dcda4f97fbe3e42c72b516dc22e0bf115e536d5f | /src/core/runtime/ipc_signal.cpp | 485a5c915a7c584750034f2d653757cfc09e9088 | [
"LicenseRef-scancode-unknown-license-reference",
"NCSA"
] | permissive | maxmckone7/ROCR-Runtime | ec9f200cf3af301475afa371366d17783aafe72b | f114e4d4153f89c1e712f679b307b83ce099240d | refs/heads/master | 2023-06-30T21:51:43.392886 | 2021-07-30T22:10:20 | 2021-07-30T22:10:20 | 393,473,813 | 1 | 1 | NOASSERTION | 2021-08-06T18:56:33 | 2021-08-06T18:56:00 | null | UTF-8 | C++ | false | false | 3,818 | cpp | ipc_signal.cpp | ////////////////////////////////////////////////////////////////////////////////
//
// The University of Illinois/NCSA
// Open Source License (NCSA)
//
// Copyright (c) 2014-2020, Advanced Micro Devices, Inc. All rights reserved.
//
// Developed by:
//
// AMD Research and AMD HSA Software Development
//... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.