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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a40bbdc0b987fb41587c46644b524b5a69eb502c | 3a28980e797e70e2062b22126574de0a8255db83 | /cprApp/com.cn.ihm/VolumeVisualization.cpp | b5527386f8fc5903a5068d0931f1232450b80ebe | [] | no_license | tianhu9102/myplatForm | aaffb93c8e2f4f27137925137a06d9eab66e3453 | 912448f4ac7a5ead973f4db9e50c6f73063b724a | refs/heads/master | 2021-01-17T17:29:32.917412 | 2016-06-27T08:21:46 | 2016-06-27T08:21:46 | 62,037,814 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 10,840 | cpp | VolumeVisualization.cpp | #include "VolumeVisualization.h"
VolumeVisualization::VolumeVisualization(QWidget *parent) : QWidget(parent)
{
this->initVariable();
// this->constructIHM();
}
//!---------------------------------------------------------------------------------
//!
//! \brief VolumeVisualization::initVariable
//!
void VolumeVi... |
7e01925fbc1d77966bceb4598a24b3f589266791 | ddb62798ad2739d32add6190367f110324930f43 | /Source/LudumDare49/Private/Game/HUD/UI/GameUserWidget.cpp | 1ddb817ce800bb83ddb34529c0029716f9a8dbce | [] | no_license | markveligod/LudumDare49 | 977b517ddb727f4c3802d3c4657b7656f7d797ba | 98c7ed069f1992ba97bfc1a2b1324eb6aec2aa39 | refs/heads/main | 2023-09-01T15:46:23.088781 | 2021-10-04T20:52:22 | 2021-10-04T20:52:22 | 412,561,034 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 319 | cpp | GameUserWidget.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "Game/HUD/UI/GameUserWidget.h"
#include "Kismet/GameplayStatics.h"
#include "Sound/SoundCue.h"
void UGameUserWidget::ShowAnimEnd()
{
UGameplayStatics::PlaySound2D(GetWorld(), this->WastedSound);
Super::ShowAnimEnd();
}
|
076912a605113eafb74d2c5ef124d8d05bd85cf7 | 106ca112fb26acd88e2b232594412cb8a1d614a4 | /Module 2/Lab/Lab2b/Lab2b.cpp | 92c398b5bfdf7fe5c4c7c8243c49c6170b5b19d7 | [] | no_license | juliediliberto/CST370 | 3665ffd78eb4ac540ac45675ddfa1bb914a0158a | 4fcdb38819218ce6305ccca253ce3d77b8ff5a92 | refs/heads/master | 2021-01-16T23:24:22.347342 | 2016-06-07T05:53:41 | 2016-06-07T05:53:41 | 60,585,517 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 966 | cpp | Lab2b.cpp | /* Title: CST 370 Lab 2
Author: Julia Diliberto
ID: 002300804
Date: January 17, 2016
File: Lab2b.cpp
Desc: This program will take a decimal number as input from the user.
It will display that number, calculate the binary equivalent,
then display that number.
Usage: Other files required are Stac... |
d0f4cf1c472a847852a97a0bde7d29e2c5c56b21 | e9f0b0896d38c47f86e8b7918f7891f585e3ece7 | /HomeWork5.cpp | 0b6b199031de0979b56d0e8e4d1510cb0fe12be8 | [] | no_license | Tegeram/Course3 | a7e2f34f90d6ba0f8bba50251f75b3353fe3532c | 4638c1cc41acb871e84f6b5812cd72bcb20e3551 | refs/heads/main | 2023-08-06T10:51:01.973708 | 2021-09-19T20:47:47 | 2021-09-19T20:47:47 | 399,941,067 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,965 | cpp | HomeWork5.cpp | #include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <list>
#include <map>
#include <sstream>
#include <boost/algorithm/string.hpp>
using namespace std;
//=====Task 1==========================================================================================================
template ... |
a65a1742337be0a438851cc3cb7ff304afe6113f | 72676705a58fc326540e7ab43c782c2de313f3ba | /reverse-dpct/main.cpp | f54f42357feda1f3f9fda77bc5be007de1420936 | [
"BSD-3-Clause"
] | permissive | xwentian2020/oneAPI-DirectProgramming | dfdff2fb56357b8aef5e7207760926dc7e8327d9 | a3eab529ddc7794af666e71df728313ac027b69d | refs/heads/master | 2023-08-10T12:05:48.601018 | 2021-09-06T01:56:20 | 2021-09-06T01:56:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,286 | cpp | main.cpp | #include <CL/sycl.hpp>
#include <dpct/dpct.hpp>
#include <assert.h>
void reverse (int* d, const int len, sycl::nd_item<3> item_ct1, int *s)
{
int t = item_ct1.get_local_id(2);
int tr = len-t-1;
s[t] = d[t];
item_ct1.barrier();
d[t] = s[tr];
}
int main() {
dpct::device_ext &dev_ct1 = dpct::get_current_dev... |
a6e9c196c148ae12fbd39a2c994606e92bfb06fc | e3c0acd772aa95abb82d026cef77d1cd9e9a941d | /laba 6/tree.h | 69525132ec3a1954f7fe75ba1cbbe963d3996cca | [] | no_license | polinasevko/labs-CPlusPlus | a47dd8a9ab31c44ca29a3974dc79444bcb251144 | deb8d2c2dee779dcceac6b4e880ead71fa2aa282 | refs/heads/master | 2022-09-20T15:56:39.651555 | 2020-06-02T09:57:32 | 2020-06-02T09:57:32 | 259,084,391 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 901 | h | tree.h | #ifndef TREE_H
#define TREE_H
#include <ctime>
#include <cstdlib>
#include <string>
#include <vector>
using namespace std;
class Node
{
public:
int key;
string name;
unsigned char height;
Node* left;
Node* right;
Node();
Node(int k, string str) {key = k; name = str; left = right = ... |
08f77ba8e8569a12aa1c6210b7731684b080f5ae | 64589428b06258be0b9b82a7e7c92c0b3f0778f1 | /URI/1195.cpp | 1490d3707b672081f91e46d49f2055b0ae863a1f | [] | no_license | splucs/Competitive-Programming | b6def1ec6be720c6fbf93f2618e926e1062fdc48 | 4f41a7fbc71aa6ab8cb943d80e82d9149de7c7d6 | refs/heads/master | 2023-08-31T05:10:09.573198 | 2023-08-31T00:40:32 | 2023-08-31T00:40:32 | 85,239,827 | 141 | 27 | null | 2023-01-08T20:31:49 | 2017-03-16T20:42:37 | C++ | UTF-8 | C++ | false | false | 1,352 | cpp | 1195.cpp | #include <cstdio>
#include <cstdlib>
class node{
public:
node(int n){
value = n;
right = left = NULL;
}
virtual ~node(){
if (right!=NULL) delete right;
if (left!=NULL) delete left;
}
int value;
node* left;
node* right;
};
node* add(int n, node* p){
if(p==N... |
25b307fbfe3a04cbcebb326c71d0f5520ebd5a3f | 0a850b2a5853041b4302c1f0b4be3947e9306f70 | /Other124-132/PC.h | bfd5734be5ceb5220e00ac2e62b87b330c31b9e1 | [] | no_license | bifrurcated/LearningCpp | 6e1f36681d2ac6b777baff5ffc687f840ff30a7e | 2f6070db2f83838f1a94c60463b9cdb72238a3ae | refs/heads/master | 2023-06-23T05:30:02.594632 | 2021-07-26T08:08:19 | 2021-07-26T08:08:19 | 380,449,597 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 194 | h | PC.h | #pragma once
class PC {
public:
enum PCState {
OFF,
ON,
SLEEP
};
PCState GetState() { return State; }
void SetState(PCState State) { this->State = State; }
private:
PCState State;
}; |
ef840e62eb07edd775496746bba7015d23f174d5 | 7a2425190626dd2e75dd6cbca9fe47727afbad42 | /src/nstd/file/test_context.cpp | d5aa6621fc548445ca1bed34712937b803fd358f | [] | no_license | dietmarkuehl/kuhllib | fadd4073c9b09992479e92112ef34c367cb90fad | 482ddc2b910870398a9a2bcaa0a77a145e081f78 | refs/heads/main | 2023-08-31T22:13:02.079530 | 2023-08-21T22:14:14 | 2023-08-21T22:14:14 | 3,148,966 | 71 | 7 | null | 2023-08-21T22:14:15 | 2012-01-10T21:49:09 | C++ | UTF-8 | C++ | false | false | 5,122 | cpp | test_context.cpp | // nstd/file/test_context.cpp -*-C++-*-
// ----------------------------------------------------------------------------
// Copyright (C) 2021 Dietmar Kuehl http://www.dietmar-kuehl.de
//
// Permissi... |
7940a12699f65a93a032d8f2f9fa503c62ef6aaf | 02c43cda5f67158c01edbef30866bb5b03206663 | /플밍25기_김종환_할로우 나이트 모작/image+adjRender.cpp | 2f900500b9e21febb5bbc9f35bb7404553747144 | [] | no_license | RKJH-jin/RK_Projects | 81c102a208f2a1a31428154067e67b26ce82c2fe | e568ca59b0a5335805f307aa46c397b8c890117a | refs/heads/master | 2023-03-09T05:59:36.021119 | 2021-02-23T02:51:45 | 2021-02-23T02:51:45 | 341,404,963 | 1 | 0 | null | null | null | null | UHC | C++ | false | false | 2,152 | cpp | image+adjRender.cpp | #include "stdafx.h"
#include "image.h"
#pragma comment(lib, "msimg32.lib")
void image::adjRender(HDC hdc, int destX, int destY, int adjWidth, int adjHeight)
{
if (_trans)
{
GdiTransparentBlt(
hdc, //복사될 영역의 DC
destX, //복사될 좌표 X
destY, //복사될 좌표 Y
adjWidth, //복사될 크기 (가로)
adjHeight, ... |
2be5abfb65c4c89158549b6ffafe569296089f3d | 0daacde345e6409ad01cda5d52d12855cfba4a99 | /ICT_Server/ICT_ServerDlg.h | 9d5a4f78cc42b98d236c2c4fcfe933ac84ba994a | [] | no_license | HanoiGuo/ICT-Socket-Server | 948dc883000fc7012c188ed838816a607bfc56bb | f0da6e18f3dbaacb89e36146f10d0cc1153a5bd0 | refs/heads/master | 2021-01-10T17:45:24.153469 | 2016-02-01T01:03:55 | 2016-02-01T01:03:55 | 50,804,337 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,353 | h | ICT_ServerDlg.h |
// ICT_ServerDlg.h : 头文件
//
#pragma once
#include "MyStatic.h"
#include "OperateFile.h"
// CICT_ServerDlg 对话框
class CICT_ServerDlg : public CDialogEx
{
// 构造
public:
CICT_ServerDlg(CWnd* pParent = NULL); // 标准构造函数
// 对话框数据
enum { IDD = IDD_ICT_SERVER_DIALOG };
protected:
virtual void DoDataExchange(CDataExchan... |
72fa90233a7c1af38c69c3b753dea70e4520e8fa | b2565cb7f7cccda09698a4e87b06a5def3117a2e | /Sources/Level/Loader/Layers/Entities/AnimatedEntity.cpp | 4ff6df168f750ae3b587f154eaeb63f820d3341d | [] | no_license | Olxe/MonsterRules | d147a4a62ebae75fb17f61bbc2f062d02071f071 | 6c61a4dfca924b870a25264519ee690f576339a3 | refs/heads/master | 2022-05-23T17:52:10.635921 | 2020-01-21T23:24:31 | 2020-01-21T23:24:31 | 224,265,373 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,113 | cpp | AnimatedEntity.cpp | #include "AnimatedEntity.h"
namespace entities
{
AnimatedEntity::AnimatedEntity(sf::Sprite* sprite)
: m_sprite(sprite)
, m_currentAnimation(nullptr)
, m_currentTime(0.f)
, m_currentFrame(0)
, isLooped(false)
, isActived(false)
{
}
AnimatedEntity::~AnimatedEntity()
{
}
void AnimatedEntity::setSprit... |
b927fc90654df520f0c181357185d1f3002a359c | 336632b3aab57699812f47e8942b99eca3e4d805 | /lsimd/fastarray_2f32.h | f7f86a8f73417a9b1d520e9b61c90abd945004ac | [
"MIT"
] | permissive | obskera/godot-lsimd | dbfee8192a5a18dc89cab82226385919d8f1a53b | 2d0bd167bc00c31153044d54789966ce2a9f54f2 | refs/heads/master | 2023-03-17T01:56:41.529938 | 2020-08-27T09:52:32 | 2020-08-27T09:52:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,147 | h | fastarray_2f32.h | #pragma once
#include "simd_types.h"
#include "simd_vector.h"
#include "core/reference.h"
#include "simd_f32.h"
class FastArray_2f32: public Reference
{
GDCLASS(FastArray_2f32, Reference);
enum eRangeFlags
{
RF_BEFORE = 1 << 0,
RF_AFTER = 1 << 1,
};
public:
FastArray_2f32();
// sizing
void reserve(int s... |
8598af5d209a575714d1e012becd895c789c9e2d | 5b46738402f4c4f3c46d0e67c0e6fdc08031d9fa | /Contests/Yandex/18/1/B.cpp | 217fb78cdebb7833c367dff9eaf8d132af60d63a | [] | no_license | gafeol/competitive-programming | a57dcd6fbcc7eed9e4aa77815e7cb525c9ace30c | 1af50554afe4b869f341b16681618aef0e291534 | refs/heads/master | 2021-07-07T09:23:51.984327 | 2021-04-18T18:20:21 | 2021-04-18T18:20:21 | 67,904,346 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,169 | cpp | B.cpp | #include <bits/stdc++.h>
using namespace std;
#define fst first
#define snd second
typedef unsigned long long ull;
typedef long long ll;
typedef pair<int, int> pii;
#define pb push_back
#define for_tests(t, tt) int t; scanf("%d", &t); for(int tt = 1; tt <= t; tt++)
#ifndef ONLINE_JUDGE
#define debug(args...) fprintf(st... |
fbea0070f8e468247c3941fdcd91628329ebdc6b | ba7b031365215fe7174959017c5f756fae48bb61 | /impl/filedataprovider/filedataprovider.h | 472bbe5a89128b7841f85783ad904134b68c9bbf | [
"MIT"
] | permissive | sergey-zubkov/2gis-test-app | 10bd372c1686e8541a8780b11491405500502db0 | 4d49794718d3afa2ebbce4f32f39c55294d45d0b | refs/heads/master | 2022-12-05T10:39:21.671720 | 2020-09-07T17:24:03 | 2020-09-07T17:24:03 | 293,588,485 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 545 | h | filedataprovider.h | //
// filedataprovider.h
// 2gis_test_app
//
// Created by Sergey Zubkov on 07.09.2020.
//
#ifndef filedataprovider_h
#define filedataprovider_h
#include <exception>
#include <string>
//
#include "dataprovider.h"
namespace test_app {
class FileDataProvider : public DataProvider {
public:
FileDataProvider(con... |
3dcc74b32cdbf37cb7d7655621634b54d20b4cff | 933c10b822d59422194d9ac2515ae6354eb6a101 | /2017/BSTtest.cpp | ba291295f0c61c81b455faf2cff6bee0bdab4ef4 | [] | no_license | tibousi/PAT_2017 | 9cf8adfd366a27ef1d143b0effebf7040060947b | 4321d04b26503d8b63951694b18664f41b42ac89 | refs/heads/master | 2020-03-23T13:04:35.226042 | 2018-07-20T04:54:36 | 2018-07-20T04:54:36 | 141,597,574 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,455 | cpp | BSTtest.cpp | struct node{
int data;
node* lchild;
node* rchild;
};
void search(node* root,int x){
if(root==NULL){
printf("search failed\n");
return;
}
if(x==root->data){
printf("%d\n",root->data);
}
if(x>root->data){
search(root->rchild,x);
}else{
search(root->lchild,x);
}
}
node* newNode(int ... |
c4258eb679a6cb9354087a272254c924e41dcb30 | 4081245b8ed21b053664ebd66340db8d38ab8c4f | /N-aryTreeLevelOrderTraversal.cpp | 72f97bef24e43d6ccfdff696a6cf5298f278d9b8 | [] | no_license | anandaditya444/LEETCODE | 5240f0adf1df6a87747e00842f87566b0df59f92 | 82e597c21efa965cfe9e75254011ce4f49c2de36 | refs/heads/master | 2020-05-07T15:48:19.081727 | 2019-08-25T16:03:57 | 2019-08-25T16:03:57 | 180,653,012 | 2 | 1 | null | 2019-10-05T13:45:29 | 2019-04-10T19:48:40 | C++ | UTF-8 | C++ | false | false | 1,023 | cpp | N-aryTreeLevelOrderTraversal.cpp | //Q. 429
/*
// Definition for a Node.
class Node {
public:
int val;
vector<Node*> children;
Node() {}
Node(int _val, vector<Node*> _children) {
val = _val;
children = _children;
}
};
*/
class Solution {
public:
vector<vector<int>> levelOrder(Node* root) {
vector<vector... |
2acfeced1730ec315564a4626d45f6c8106ec621 | b2139a7f5e04114c39faea797f0f619e69b8b4ae | /src/logpolarAttention/src/gazeArbiter/src/gazeArbiterThread.cpp | 2273dad22b584666a3760a7d3d0a17ccf66ce1bb | [] | no_license | hychyc07/contrib_bk | 6b82391a965587603813f1553084a777fb54d9d7 | 6f3df0079b7ea52d5093042112f55a921c9ed14e | refs/heads/master | 2020-05-29T14:01:20.368837 | 2015-04-02T21:00:31 | 2015-04-02T21:00:31 | 33,312,790 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 82,355 | cpp | gazeArbiterThread.cpp | // -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
/*
* Copyright (C) 2010 RobotCub Consortium, European Commission FP6 Project IST-004370
* Authors: Rea Francesco
* email: francesco.rea@iit.it
* website: www.robotcub.org
* Permission is granted to copy, distribute, and/or modify this pr... |
309c16b58422a250d04ddd9c4899823a550a060f | 13bcf107dbaa8306ed3dfc0d127c218de1023774 | /AeroSimulator/src/shaders/CHealthbarShader.cpp | 70c42bc7ef57c1d03f7ede7dd2991b5bff731b1e | [] | no_license | prodk/AeroSimulator | e33b99325c1d86ccd64a9dc89cc22530979d29fd | e11555fcf3f22c79c172b970be61492dc352c53d | refs/heads/master | 2021-01-10T04:41:46.830256 | 2017-08-28T20:11:46 | 2017-08-28T20:11:46 | 45,316,526 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,079 | cpp | CHealthbarShader.cpp | #include "CHealthbarShader.h"
#include "../CLog.h"
#include "../CRenderable.h"
#include "../CGeometry.h"
#include <cassert>
using namespace AeroSimulatorEngine;
CHealthbarShader::CHealthbarShader()
: CShader()
, mSquadAttribute(0)
, mRightUniform(0)
, mUpUniform(0)
, mWidthUniform(0)
, mHeightUnifo... |
2b19910763cbfb019204e6b303fddffbf743bfd9 | f6580d41845929bfe4f299c11a62f72362199f05 | /v0.41/Sources/bbAddon.cpp | e3a10a298f04160b568461b554d9617181f0ac53 | [] | no_license | google-code/bbaddon | a45995140ceef30abdf7ca9bf9857b4b6cc586c8 | a7079033880c542e019caf3e35b17031058cb246 | refs/heads/master | 2016-09-06T01:31:27.925276 | 2015-03-15T19:47:20 | 2015-03-15T19:47:20 | 32,280,397 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,162 | cpp | bbAddon.cpp | #include "stdafx.h"
#ifndef DLL_BBADDON_CPP
#define DLL_BBADDON_CPP
#include "bbAddon.h"
typedef unsigned char uchar;
typedef uchar * achar;
const int TobbObject(void*obj) {return rcast_i(obj);};
BBAEXP const float BBACALL Clamp(float v, float min,float max)
{
if (v<min) return min;
if (v>max) ret... |
36c021d0bf74c228e5a34dcc96e481c2e7822230 | a58e4057c052c2f4743236f600d06b5191633ee4 | /lc/174/lc_B.cpp | bbd5922f1301a691863b6f94fa419903c6b81624 | [] | no_license | nysanier/cf | d454c6afeaa503b39c78febd42c6c0ac49c8f290 | ced8246c42dcf5d1f63770c466c327d9bc0b8a18 | refs/heads/master | 2020-09-08T01:42:24.193949 | 2020-07-26T09:38:49 | 2020-07-26T09:38:49 | 220,973,764 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,255 | cpp | lc_B.cpp | #include <bits/stdc++.h>
// #include <bits/extc++.h>
#include "lc.h"
// -------------------------------------------------
namespace {
using namespace std;
// # define DUMP(args...)
class Solution {
public:
int minSetSize(vector<int>& arr) {
unordered_map<int, int> ump;
for (auto a : arr) ump[a] +=... |
fbc52f6985ba9dab71ad4b23dd26635c80ae40c7 | 1a20961af3b03b46c109b09812143a7ef95c6caa | /Book/Windows Graphics Programming Win32 GDI and DirectDraw/Src/Chapt_01/Hello4/Hello4.cpp | c2634bff93dfaabc696d31d1cbb4992d3e9ecaa5 | [] | no_license | JetAr/ZNginx | eff4ae2457b7b28115787d6af7a3098c121e8368 | 698b40085585d4190cf983f61b803ad23468cdef | refs/heads/master | 2021-07-16T13:29:57.438175 | 2017-10-23T02:05:43 | 2017-10-23T02:05:43 | 26,522,265 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,436 | cpp | Hello4.cpp | //-----------------------------------------------------------------------------------//
// Windows Graphics Programming: Win32 GDI and DirectDraw //
// ISBN 0-13-086985-6 //
// ... |
8166f9e059777dcaa5070c197c81e3b8965a8539 | 570fc184f62d1cf8624ca2a5a7fc487af1452754 | /tools/profiler/platform.cpp | 64c8f828bef9637c2e6ee0bbc0ee68d061fd51ad | [] | no_license | roytam1/palemoon26 | 726424415a96fb36fe47d5d414a2cfafabecb3e6 | 43b0deedf05166f30d62bd666c040a3165a761a1 | refs/heads/master | 2023-09-03T15:25:23.800487 | 2018-08-25T16:35:59 | 2018-08-28T12:32:52 | 115,328,093 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 16,684 | cpp | platform.cpp | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <ostream>
#include <fstream>
#include <sstream>
#include <errno.h>
#include "IOInterposer.h"
#include "P... |
2f028e7c02f80c5080876e86911a8212a1f304a6 | d4667eeb25575d0dca8e087e90a7935032a01130 | /assignment1/source/exercise12.cpp | 19ecb596a8b0140ae8716c3feca714f25bc6c0da | [] | no_license | AnBenLa/Realtime-Rendering | ce74142f95fc38a441b183eba3125ee668cfacad | c0250867d76e794d835d9069da06b1cc01324016 | refs/heads/master | 2022-04-03T18:05:41.065062 | 2020-02-04T17:18:43 | 2020-02-04T17:18:43 | 218,351,515 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,067 | cpp | exercise12.cpp | // author: Anton Lammert
// authot: Philipp Tornow 118332
#include <iostream>
#include <algorithm>
using namespace std;
struct point{
double x, y;
};
struct triangle{
point a, b, c;
};
point operator * (double a, point const& b){
return {b.x*a, b.y*a};
}
point operator + (point const& a, point const& ... |
6968b75cb1b9743708719b8c1732c292c24a2e1d | de3bdb02fe65e4bdef2429306aac858b6d87adb9 | /ofApp.cpp | de792d68dafc4b85a439a6cc501b91a5b57600f6 | [] | no_license | junkiyoshi/Insta20181011 | 98c1c16b0fa300e834110db75f9dcbda9bc36f20 | c2ede0df310e050d2372bfdeed590e27bdf382f5 | refs/heads/master | 2020-03-31T20:57:28.465492 | 2018-10-11T09:01:49 | 2018-10-11T09:01:49 | 152,561,823 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 824 | cpp | ofApp.cpp | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup() {
ofSetFrameRate(60);
ofSetWindowTitle("openframeworks");
ofBackground(39);
ofSetColor(239);
ofEnableDepthTest();
for (int i = 0; i < 255; i++) { this->particles.push_back(Particle()); }
}
//--------------... |
bdfb9abe5b667af8e50bd64e0595789fff45c835 | 27efb2b2b38eb97be5d91229af7dafe2febe22fb | /problems/codeforces/Calculating_Function_A.cpp | 04ec88e713170262e85a31631324b323e041cbcb | [] | no_license | MohamedHashim/problem-solving | 55449fac185f7649ddb69b8d0d9e0f23cb557a14 | 0d3bf6827d56d1af17aeb01d36290a9615ff67b1 | refs/heads/master | 2023-03-28T11:21:09.748433 | 2021-03-28T21:39:16 | 2021-03-28T21:39:16 | 285,159,810 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 329 | cpp | Calculating_Function_A.cpp | #include"bits/stdc++.h"
#include<iostream>
using namespace std;
const int N = 1e5 + 7;
int main() {
#ifndef ONLINE_JUDGE
FILE *stream;
freopen_s(&stream, "..//input.in", "r", stdin);
#endif
long long n;
cin >> n;
if (n % 2 == 0)
cout << n / 2;
else
cout << -(n+1) / 2;
ret... |
8cf17520f1ac4097661d308c815918c31590b49b | 2ad2cb0727f3184951e9466fc62473676cd4c7a8 | /AladdiGameC/AladdiGameC/Drill.h | ad2712254b58ed6a3e6ba7b1c9dee865e6d9a2bd | [] | no_license | vantranguit920/AladdinGameC | b0505102c871ed75c667b7abfdb6e5ac8c649298 | e3f9058fd8a46f104871ccae62c60f6cf7de4739 | refs/heads/master | 2022-04-01T19:50:18.070177 | 2019-12-01T09:44:49 | 2019-12-01T09:44:49 | 221,399,389 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 635 | h | Drill.h | #pragma once
#include "Object.h"
#include "Sprite.h"
#include "SpriteSheet.h"
#include "Animation.h"
#include "Keyboard.h"
#include "Viewport.h"
class Drill :public Object
{
protected:
Animation * arrowAnim;
float timecout=0;
Animation * drillAnim;
public:
enum ArrowState
{
oppen,
close,
};
ArrowState st... |
995f4ef646cf19e023ab2ee8761804d083712ae9 | 3bc41de649fbe77486c0f8ee6ba5d49f5c3ae6d5 | /src/subscriber_node.cpp | 0c0a80d8eadbe96fc5e1cdd600c01850d06cdd12 | [] | no_license | rshah18/ros_workshop_fs | 9594170e576f06a0d86ef4d87e88c6cbcf1f501a | e542c7dbf32353786e9df97bf9140748fdbd3a41 | refs/heads/master | 2020-09-23T11:09:25.513222 | 2019-12-02T23:04:37 | 2019-12-02T23:04:37 | 225,485,709 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 389 | cpp | subscriber_node.cpp | #include "ros/ros.h"
#include "demo/mymsg.h"
void callBack(const demo::mymsg:: ConstPtr & msg){
ROS_INFO("Recieve msg = %d", msg->stamp.sec);
ROS_INFO("recieve msg = %d", msg->data);
}
int main(int argc, char **argv){
ros::init(argc, argv, "subscriber_node");
ros::NodeHandle nh;
ros::Subscriber sub = n... |
4599ae5cf04e0d591006a045debca9387ca02753 | a06515f4697a3dbcbae4e3c05de2f8632f8d5f46 | /corpus/taken_from_cppcheck_tests/stolen_664.cpp | ed05b19c85ed104721f927e9fe56f9b61a40a23c | [] | no_license | pauldreik/fuzzcppcheck | 12d9c11bcc182cc1f1bb4893e0925dc05fcaf711 | 794ba352af45971ff1f76d665b52adeb42dcab5f | refs/heads/master | 2020-05-01T01:55:04.280076 | 2019-03-22T21:05:28 | 2019-03-22T21:05:28 | 177,206,313 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 49 | cpp | stolen_664.cpp | void f() {
gchar x[3];
strcpy(x, "12");
} |
9aea75aeabf2ed26421a76b320d3e5098c95d787 | 1690125cab12f4a38c02a4845b63dea2bf464ec2 | /DNBSkellamCode/src/BidPrice/MCMC.cpp | e5961e6619fc2de92c714f7c2a48fb28eab737d5 | [] | no_license | aborowska/DNB | a97997056a994fceef6e401c113a91b2b49d99a1 | ecd33692811d4d6c86e0ac661d549e33307f6fae | refs/heads/master | 2021-01-19T21:37:23.195006 | 2018-07-06T18:05:55 | 2018-07-06T18:05:55 | 88,676,930 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 43,681 | cpp | MCMC.cpp | /*
* MCMC.cpp
*
* Created on: Mar 17, 2014
* Author: istvan
*/
#include "MCMC.h"
#include "struct.h"
//#include "cuda_functions.h"
#include "basic_functions.h"
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
#include <math.h>
#include <time.h>
#include <fstream>
#include <sstream>
#include <string.h>
... |
6fa05b745098a40c7c06e57203b2b436d3b5fd46 | 339b421cd9751bd4d747320f8ed24b8940649b12 | /Xlsx/Drawing.cpp | fd8208de1c6902aa0fcbae9304ef928645f2c33d | [] | no_license | MGniew/simplexlsx | 5d460a5857b5d610594af6ed6a20f32854af60ff | cfa23a27f89d80a8e147228fab5da17db5da4123 | refs/heads/master | 2020-03-30T09:36:01.773282 | 2017-09-14T09:35:52 | 2017-09-14T09:35:52 | 151,082,440 | 0 | 0 | null | 2018-10-01T12:10:45 | 2018-10-01T12:10:45 | null | UTF-8 | C++ | false | false | 4,399 | cpp | Drawing.cpp | #include "Drawing.h"
#include "Chart.h"
#include "XlsxHeaders.h"
#include "../PathManager.hpp"
#include "../XMLWriter.hpp"
namespace SimpleXlsx
{
CDrawing::CDrawing( size_t index, PathManager & pathmanager ) : m_index( index ), m_pathManager( pathmanager )
{
}
CDrawing::~CDrawing()
... |
5ea85db1c1ac4ed0938e2e37e4d3adb2813847a3 | fc8a283e0fc71a14732e06ecf464ce5eec3d5235 | /Abstractions/container.h | 4f768f17e1d78ec87e13d4f6602397930bc04d90 | [] | no_license | alex-t0/clang_examples | b0af2eb1eb268a2cb5b17257cbdd93ab88bc58da | c6bc2566e47139e1ba9d51a3ac33a9c59bf6165a | refs/heads/master | 2021-01-09T06:05:28.213407 | 2017-02-20T21:51:05 | 2017-02-20T21:51:05 | 80,910,858 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 137 | h | container.h | class Container {
public:
virtual double& operator[](int) {}/* = 0*/;
virtual int size() const {}/* = 0*/;
virtual ~Container() {};
}; |
174a08cc095ea5813ee7a4007db08db242196d6b | 9aec97450dbe7291d6bb8937a18daa315f8185ae | /D3DX_PROJECT/cMainGame.h | 3a0be0f8848db2542d33a3ebad8b28220a9ee4a3 | [] | no_license | hyunsang-shim/Project-M | aefc74decc6838114e2b5fdcbcbe4dfa9437254d | 63e03597c1dbfe8dad7e9a913d594f9e81f4244f | refs/heads/master | 2020-04-03T01:54:30.510967 | 2019-01-11T03:53:12 | 2019-01-11T03:53:12 | 154,941,898 | 2 | 3 | null | 2018-12-13T11:38:08 | 2018-10-27T08:21:13 | RPC | UTF-8 | C++ | false | false | 417 | h | cMainGame.h | #pragma once
#include "cSCENE_INGAME.h"
#include "cSCENE_RESULT.h"
#include "cSCENE_TITLE.h"
class cMainGame
{
public:
cMainGame();
~cMainGame();
public:
void Setup();
void Update();
void Render();
void WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); \
void SetSceneChangeTriger(int sceneNum... |
3eb6a96646673763eb43dada2d89642115b8a15e | 6e498f5201d3b42c2da291108eb93c62bf2ad53d | /Class Deliverables/Part 4/Source Code/Personnel.h | 5a6b0f8692cf6bbdbd06521035ea9a5b95c8aca3 | [] | no_license | x2110311x/CPSIC | 2b1379e7f7c1538e65985f9f1d6fb5a9080645d7 | ca5f080ae099e6f3369f99f1ea9c4fc56ab25ede | refs/heads/master | 2022-04-26T23:52:40.166471 | 2020-04-30T15:34:12 | 2020-04-30T15:34:12 | 251,119,965 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,209 | h | Personnel.h | #ifndef PERSONNEL_H
#define PERSONNEL_H
#include <string>
#include "AppointmentSlot.h"
#include<vector>
using namespace std;
class Personnel {
private: ///< attributes
string name; ///< The name of the personnel
string type; ///< The type of the peronnel: Nurse or Counselor
lon... |
4bf8e1bb4d1a1b32c25aff8cd272da69b3d9d199 | 17268ca7f34701bf72bb19265020d736f5b459bd | /cmd/wmii/mouse.cc | b9c16f76858cfc023558ab46ed60ed45347a66bd | [
"MIT"
] | permissive | DrItanium/xnjj | 76f350a97abce0ae08477b4f8eb34e71c1b8fb62 | 2c3f92f65fb14ca055be38323fae7ba257602c21 | refs/heads/master | 2020-05-30T14:15:19.268031 | 2019-06-03T03:56:35 | 2019-06-03T03:56:35 | 189,785,147 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,931 | cc | mouse.cc | /* Copyright ©2006-2010 Kris Maglione <maglione.k at Gmail>
* See LICENSE file for license details.
*/
#include "dat.h"
#include "fns.h"
/* Here be dragons. */
enum {
ButtonMask =
ButtonPressMask | ButtonReleaseMask,
MouseMask =
ButtonMask | PointerMotionMask
};
static Cursor
quad_cursor(Align align) {
swit... |
fceb76ac2208223e3e1a300fa933091c5ff817e8 | ea9f0ca126d575adca0833a0253e02bf52674cfe | /src/Array/MaxDistance.cpp | 99a9a27a70e4db6e4620b461835e393fe2368a02 | [
"MIT"
] | permissive | satyam289/Data-structure-and-Algorithm | f4e62696074677e3046c31abc53b2e08f049db18 | 2056eb5f7c82db50a910658f641f15547acf2313 | refs/heads/master | 2022-05-17T17:29:06.086036 | 2022-05-03T19:56:48 | 2022-05-03T19:56:48 | 143,539,978 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,219 | cpp | MaxDistance.cpp | #include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
//https://www.interviewbit.com/problems/max-distance/
// Given an array A of integers, find the maximum of j - i subjected to the constraint of A[i] <= A[j].
class MaxDistance {
public:
int maximumGap(const vector<int> &num){
... |
a04bedea4dabb0d9a94b210abf78bc3693433dbf | 7fd64b86c7e8f63d6238fe93ccf6e62a4b8ebc66 | /codeforces/900/E.cpp | 4ebcefe0aa0f8359b2d9a0c4541d2d6d70b43343 | [] | no_license | Mohammad-Yasser/harwest | 775ba71303cc2849f71e82652263f31e79bd8e04 | d01834a9a41c828c8c548a115ecefd77ff2d6adc | refs/heads/master | 2023-02-02T23:37:54.186079 | 2013-09-19T19:28:00 | 2020-12-21T14:30:32 | 323,233,072 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,071 | cpp | E.cpp | #ifndef Local
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops,fast-math,O3")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,sse4.2,popcnt,abm,mmx,avx")
#endif
#include <bits/stdc++.h>
#include <ext/numeric>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
using namespace __gnu_... |
9a76eaa0ec8b360be6e8d1727b700ffb6715a46b | db666b5c6b5381c55c716f95818a7ecc241d59c7 | /C++/1223-diceRollSimulation.cpp | c9ce246a4fdd3842ce2e5221a85080cb6755ce26 | [] | no_license | SaberDa/LeetCode | ed5ea145ff5baaf28ed104bb08046ff9d5275129 | 7dc681a2124fb9e2190d0ab37bf0965736bb52db | refs/heads/master | 2023-06-25T09:16:14.521110 | 2021-07-26T21:58:33 | 2021-07-26T21:58:33 | 234,479,225 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 545 | cpp | 1223-diceRollSimulation.cpp | #include <iostream>
#include <vector>
using namespace std;
int dieSimulator(int n, vector<int> &rollMax) {
long p = 1e9 + 7;
vector<vector<long>> dp(n + 1, vector<long>(6, 0));
vector<long> sum(n + 1, 0);
sum[0] = 1;
for (int i = 1; i <= n; i++) {
for (int j = 0; j < 6; j++) {
... |
b955180e4a7606ad90883071f8a05432dd49d43a | 48d4cc56a3494276df563013e46cc29c22931bcf | /vs2017/ui/mainwindow/contact/localsearch/LocalSearchListItemWidget.h | af3d28e1de34cfb151d70923738ef049de8592f6 | [
"MIT"
] | permissive | cheechang/cppcc | 8e8fde9eedc84641b3bc64efac116a32471ffa1d | 0292e9a9b27e0579970c83b4f6a75dcdae1558bf | refs/heads/main | 2023-03-16T23:09:56.725184 | 2021-03-05T09:46:28 | 2021-03-05T09:46:28 | 344,737,972 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 354 | h | LocalSearchListItemWidget.h | #ifndef LOCALSEARCHLISTITEMWIDGET_H
#define LOCALSEARCHLISTITEMWIDGET_H
#include "../group/GroupListItemWidget.h"
namespace ui{
class LocalSearchListItemWidget : public GroupListItemWidget
{
Q_OBJECT
public:
LocalSearchListItemWidget(QWidget *parent=CNull);
~LocalSearchListItemWidget();
private:
};
}
#end... |
b8e656459b6242ce950823512c7ee13594f0b73a | 9e39e452a0bb8c25813003454ee306f03fb535dd | /Assigment1_18435522/Board.h | 5e55dcf0ae51905e77e2ada3a96514c61b7931ef | [] | no_license | vioswift/TicTacToe | 74200615ddd0795cf440d30e8dcdb6c93d92705d | b0880a5e33d0a16958017e5549af056133f18ce6 | refs/heads/master | 2020-08-17T12:27:44.128254 | 2019-10-17T00:06:29 | 2019-10-17T00:06:29 | 215,666,459 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,169 | h | Board.h | #pragma once
#include <iostream>
#include <string>
#include <cstdlib>
#include <time.h>
#include <iomanip>
using namespace std;
class Board {//assuming player X will always make for the first move and the human
private:
const int WHITE = -1;//O
const int BLACK = 1;//X
const int EMPTY = 0;//empty
int numberOfMov... |
fad18e2f8d41d88b63eb6563358defaed7ccc303 | 7ea5365a0424c50be888cfba52c54fab1779b879 | /Old/대건/iseq_11.cpp | 6c2b4be4064b4f909b17e7b60c9939033a7b0668 | [] | no_license | judemin/AlgorithmSolutions | a3e26fb7685f7357fad7fe05743f975fe2fde406 | cef19d14ab7bf9ca70aa73f87d49834f2ee24f31 | refs/heads/master | 2023-06-29T05:22:00.109993 | 2021-08-04T07:07:25 | 2021-08-04T07:07:25 | 259,854,361 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 233 | cpp | iseq_11.cpp | #include<iostream>
using namespace std;
int main(void){
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
int a,b;
cin >> a >> b;
cout << a+b;
if(a+b >= 140)
cout << " 합격";
else
cout << " 불합격";
} |
abcba88804e8d87668363c77c62f62fc57d82f33 | 98921e20fd8b08a5ea2379ac5d65016145f3318b | /0. Test/src/Rectangulo.cpp | a1ab5ab8b0a021b8529865c85f1e059900bdf811 | [] | no_license | OscarArturoGonzalez/Sistemas-Distribuidos | e8769ae6ea17a38c61200f79228d038a3f5e73ab | 782ff5f42a32ecda67a4fb047b98043c0f0ad100 | refs/heads/master | 2020-07-13T08:30:39.999786 | 2019-09-25T23:45:47 | 2019-09-25T23:45:47 | 205,045,369 | 0 | 0 | null | 2019-08-29T00:09:36 | 2019-08-29T00:09:36 | null | UTF-8 | C++ | false | false | 484 | cpp | Rectangulo.cpp | #include "../lib/Rectangulo/Rectangulo.h"
#include "../lib/Coordenada/Coordenada.h"
#include <iostream>
#include <stdlib.h>
#include <math.h>
using namespace std;
Rectangulo::Rectangulo() : superiorIzq(0, 0, 0), inferiorDer(0, 0, 0){
}
Rectangulo::Rectangulo(Coordenada supIzq, Coordenada infDer){
superiorIzq = s... |
b84d69145f76ca1573f8c40789d52267e23f42bc | 1bc2fc2e9bb164371d868bd29b0ce99fb5ae6908 | /海提原图处理/海提final/海提final/海提程序/Unit4.~h | 3f03fc5b99d81077f4698f0ea12b0ef212147e7c | [] | no_license | w351565056/DataMining | a76857675c1280d7f6eb37d2f03afdf0fc564d28 | 10421eff9ffaff247fc078d22e308b8cc6d9b623 | refs/heads/master | 2020-03-28T05:46:12.726721 | 2018-09-07T08:44:33 | 2018-09-07T08:44:33 | 147,795,561 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,884 | Unit4.~h | //---------------------------------------------------------------------------
#ifndef Unit4H
#define Unit4H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#includ... | |
24995c7b5c67e9a3b84467d421f1407ab23c21ff | 745b47b75192fdee5bd5c5a706d425233e172639 | /golden/golden.cpp | afb3b2c7e265b7162fd901d190fd65a1ca7d7de0 | [] | no_license | andy39866821/EE6470-Implement-of-Many-Core-System-Homework6 | 1609567a90ac8da92c1e7cdef6b0688f7d7eff8b | cc73ad32b57b6a5e06093760d589a67680ca6a3c | refs/heads/main | 2023-04-28T23:30:06.135762 | 2021-05-25T05:13:40 | 2021-05-25T05:13:40 | 370,416,717 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,277 | cpp | golden.cpp | #include <bits/stdc++.h>
using namespace std;
unsigned char* image_s = NULL; // source image array
unsigned char* image_t = NULL; // target image array
int width_s = 0; // image width
int height_s = 0; // image height
int width_t = 0; // image width
int height_t = 0; ... |
0365166fe65580996ec163c641c86cd40a79b7e4 | 93c65db089da913177dbcc91b0684e7ef4d6f0ac | /openexr-c/abigen/imf_timecode.cpp | 1eeca07fa5e3ba73b3269c9f74b76b73d85a2513 | [
"BSD-3-Clause"
] | permissive | bgyss/openexr-bind | 2e20075fa7b4d237c694d6afc3ddca6fa54e432c | ee4fd6010beedb0247737a39ee61ffb87c586448 | refs/heads/main | 2023-07-10T11:08:05.099940 | 2021-09-02T08:33:45 | 2021-09-02T08:33:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 251 | cpp | imf_timecode.cpp | #include <OpenEXR/IexBaseExc.h>
#include <OpenEXR/ImfTimeCode.h>
#include "imf_timecode.hpp"
void abi_gen_imf_timecode(std::ostream& os) {
os << "Imf_3_0::TimeCode" << "|" << sizeof(Imf_3_0::TimeCode) << "|" << alignof(Imf_3_0::TimeCode) << "\n";
}
|
5e94288f4410d663e7c6d3ce06897b95d2c633f9 | 013caff69e41c36c4efe9359c8ce2ecfb5f659ab | /Keywords Search-AC自动机.cpp | 7d13fadbf65247d083d42ad0a474cb34098224d0 | [] | no_license | iamsile/ACM | cbe5754bed56b1abb3cfaed6b25b9bffa1ec04a5 | d51e43780e33b51c70007ba0702448909f9d0553 | refs/heads/master | 2016-08-04T02:31:51.523885 | 2013-09-09T05:36:35 | 2013-09-09T05:36:35 | 12,693,702 | 9 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 2,861 | cpp | Keywords Search-AC自动机.cpp | #include <iostream>
#include <queue>
using namespace std;
struct node {
int cnt;
node *next[26],*fail;
node() {
cnt=0;
memset(next, 0, sizeof(next));
fail=NULL;
}
};
void build(char s[],node *root)
{
int i,k=strlen(s);
node *p=root;
for (i=0; i<k; i++) {
if ... |
9a01198d1680cda31fb9c0a8173a2d49f23ea576 | df6c3d7d95507bf452ce8eda24e779a82049fcad | /final-project/simulationInertial/46/phi | bed9acfa0f474ee8b66c781bc9f10aa274308d3f | [] | no_license | aeronau/CFD-course | 5c555e7869f0170f90e9d3532b06f7e78683b770 | e891eb94950cfa0992d6ff003dbe45315af377c5 | refs/heads/master | 2021-09-01T04:18:32.111694 | 2017-12-24T18:18:44 | 2017-12-24T18:18:44 | 104,058,197 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 113,877 | phi | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.1 |
... | |
2f9cc0c3864fe90d3581f76bc5b22d8f1c567144 | 394a46c4fdf0e08aa083161c4b736dae166572ba | /GO_Server/CAdmin.h | 3ea06a4b0248cb0363d371f9d7bf15b78636b21a | [] | no_license | Bia10/Gothic-Sequel-Online | e695511f9f86bf192b37a7570f8545177b907258 | f24ac669310f5ce874ff3bc2020d487f378ff74f | refs/heads/master | 2020-03-29T09:09:32.627161 | 2017-11-27T12:41:01 | 2017-11-27T12:41:01 | 149,744,015 | 1 | 0 | null | 2018-09-21T09:47:41 | 2018-09-21T09:47:40 | null | UTF-8 | C++ | false | false | 186 | h | CAdmin.h | #ifndef CADMIN_H
#define CADMIN_H
//GO Admin interface
class CAdmin
{
public:
CAdmin();
~CAdmin();
void HandleAdminCommand(CPlayer* player, RakString command);
};
#endif //CADMIN_H |
a6803b0af75fcdd5770acb53f11df5d1db2daa71 | 25d01103cdceffd02aa09607791fc85708ba6d50 | /Summer_Training_2018/Final_Exercise/WF_warm_up/D_Defense_Lines.cpp | b65a805ee0c855c8bf3684fea6cd9c5e44456d97 | [] | no_license | MoonChasing/ACM | 3aea87957c695eec5dced21e0cc53c2fcb0fe3e6 | aa5878646a47bf258cb2698d5068edb57fe1d03e | refs/heads/master | 2020-03-24T13:07:31.432360 | 2019-02-27T14:53:10 | 2019-02-27T14:53:10 | 142,735,585 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,380 | cpp | D_Defense_Lines.cpp | #include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
//#define Debug
const int MAXN = 200010;
int n;
int a[MAXN], left[MAXN], right[MAXN];
int dp[MAXN];
void init()
{
left[0] = 1;
right[n-1] = 1;
for(int i=1; i<n; i++)
{
left[i] = 1;
if(a[i] > a[i-1])
... |
5b759a63bed38e655424e07fadcf3dcac5a50108 | f6c7435c2619bd233a884717e96799bfc28975d0 | /Sunfish/src/Develop/checkTableGenerator.cpp | 87bd37a6de49123050a1bc70a60077050b1214df | [] | no_license | sunfish-shogi/sunfish2 | 734c875675480a4510ab23396b146c9bd4dd79d4 | aa62f30be0955dc97899c1267bb85f3e7315f8f4 | refs/heads/master | 2023-01-23T17:30:28.792055 | 2023-01-07T09:17:46 | 2023-01-07T09:17:46 | 15,472,136 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,025 | cpp | checkTableGenerator.cpp | /*
* checkTableGenerator.cpp
*
* Created on: 2012/09/29
* Author: ryosuke
*/
#include "checkTableGenerator.h"
#include "../Shogi/squareDiff.h"
#include "../Shogi/attack.h"
#include <sstream>
namespace Develop {
using namespace Shogi;
std::string CheckTableGenerator::develop() {
std::ostringstream oss;... |
e4baec4ecde801220b9886272ce5800809088861 | 3fb4c7eb4e3ccfee3acd06f1a8b2114c1187e6a0 | /AirQuality/AirQuality.ino | b54aa5454bfec4e527bceb9b217d97abcbe5dd8e | [] | no_license | jamshehan/arduino | b0352c40fe2a5bbd1060e198c47701e31cbd935a | c325a934e43b5740fc9239b114bb5b8c2fbf8e36 | refs/heads/master | 2020-05-15T13:20:14.216199 | 2019-07-02T12:39:20 | 2019-07-02T12:39:20 | 182,297,283 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,631 | ino | AirQuality.ino | #include <ThingSpeak.h>
#include "secrets.h"
#include <WiFi.h>
#include <SFE_MicroOLED.h>
#include <SparkFunBME280.h>
#include <SparkFunCCS811.h>
#define REFRESH_RATE 15000
#define OLED_RESET_PIN 9
#define OLED_JUMPER_MODE 1
#define BME280_ADDRESS 0x77
#define CCS811_ADDRESS 0x5B
#define RFID_ADDRESS 0x7D
#define... |
fbdab216f875385a0c2bf85b5f3c050f8eb99c6f | 18f607b5cad4d48de016182804468a7662af359b | /Robot_MattsTaggedBranch/Sonic/primaryStateMachine.cpp | 07dbffb61b19353ac1fa10faef7e39bcb1a3335d | [] | no_license | redwingman1989/mr-bucket | 458a7004f76c3a4887721343cffa65505ee4169a | 7f46a702620d107da4f3329c118295f649988c7f | refs/heads/master | 2021-01-19T06:12:37.836868 | 2015-04-18T16:10:39 | 2015-04-18T16:10:39 | 34,933,495 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,214 | cpp | primaryStateMachine.cpp | #include "primaryStateMachine.h"
#include "MainExecMachine.h"
#include "DoublePointsStateMachine.h"
#include "Globals.h"
PrimaryStateMachine::PrimaryStateMachine() {
currentState = (state) &PrimaryStateMachine::waitForStart;
}
void PrimaryStateMachine::waitForStart(bool firstTime) {
static bool dpServ... |
9382273724f36d38689b62e3ef0c83d11be71709 | 2720b9cb2cb05b86f5cfdf1799baea0cf706d159 | /3RVX/Skin/AccentColor.h | 13aa2af3b315abca2fb891e16fdeb0029ab34468 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | malensek/3RVX | baa076679437facab4d00315c3f5030be67fc9bd | 556a0fe742922cd732645b2d1e03065d87e39747 | refs/heads/master | 2023-08-23T16:10:29.905393 | 2022-01-20T23:43:07 | 2022-01-20T23:43:07 | 12,887,841 | 368 | 99 | BSD-2-Clause | 2023-03-10T11:29:31 | 2013-09-17T06:22:24 | C++ | UTF-8 | C++ | false | false | 2,999 | h | AccentColor.h | // Copyright (c) 2016, Matthew Malensek.
// Distributed under the BSD 2-Clause License (see LICENSE.txt for details)
#pragma once
#include <Windows.h>
class AccentColor {
public:
/// <summary>Retrieves the instance of the AccentColor singleton.</summary>
static AccentColor *Instance();
/// <summary>
... |
2dc271e5410a245c5a91c578cd957db39fecf586 | fe9217ad7b69812bcc544febd9c8b5cd06146309 | /d05/ex02/PresidentialPardonForm.cpp | ee3ecbc85580022d2388e1965a7fe12413d2281e | [] | no_license | regien/CPP_piscine | e39d040e843ff6ace818af58ef6f99dadd3b6fb3 | 928e88a0a8c59a72a0cf5c83a1bed33a7920e296 | refs/heads/master | 2020-03-29T23:54:08.288865 | 2018-10-31T02:12:03 | 2018-10-31T02:12:03 | 150,495,218 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,036 | cpp | PresidentialPardonForm.cpp | #include "Form.hpp"
#include "PresidentialPardonForm.hpp"
// CONSTRUCTORS
PresidentialPardonForm::PresidentialPardonForm(std::string Target) :
Form("PresidentialPardonForm", 25, 5), _Target(Target) {}
PresidentialPardonForm::PresidentialPardonForm(PresidentialPardonForm const & rhs) :
Form(rhs.getName(), rhs.getGrad... |
f867866607f254eb4c9667acaf7a9fe25e86c022 | 0b5d7059838456db4de2fa210aa583dcb214acdb | /Вторая задача/Product.cpp | f43891ab899b921b20dc626b4fb249ca492bc0e7 | [] | no_license | olya757/2-3 | 5a64c874553876a7aff3794952f29ec1ad48427e | 510e9962ce5d1a9dec82e8377cf23716b56179ae | refs/heads/master | 2020-03-20T21:50:25.561124 | 2018-06-19T21:28:20 | 2018-06-19T21:28:20 | 137,763,562 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,867 | cpp | Product.cpp | #pragma once
#include "Product.h"
#include <stdio.h>
#include <stdlib.h>
Product::Product() {
NumOfStock = 0;
Code = 0;
Name = "";
Life = 9;
Count = 0;
Price = 0;
}
void PrintNum(int num, int N) {
string str = to_string(num);
for (int i = str.size(); i < N; i++) {
str += ' ';
}
str.substr(N);
cout << st... |
0621922f83d12ff9e128953c45cb0238afadd1b9 | 8c1e1569726adca8e52c9860cbb03d8b6dd0b056 | /ADXLib/Source/Player/Player.cpp | 6e9b7c74ef5212f183e0019919b8776239938b4a | [] | no_license | y2a3k2/ADXLib | ed2c7d7e29f3d10221a868922aa007e9b8d241da | 26ac71cdee076e4d3c194831669d580f327594d6 | refs/heads/main | 2020-09-04T22:27:52.910881 | 2019-11-26T00:59:35 | 2019-11-26T00:59:35 | 219,909,037 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 2,892 | cpp | Player.cpp | #include"Player.h"
#include<Library.h>
#include<SceneManager/SceneManager.h>
#include<ResourceManager/ResourceManager.h>
namespace {
GameObject *enemy;
}
struct DATA {
DATA() { num = 0; strcpy_s(name, 256, ""); }
DATA(int nu, const char *na) { num = nu, strcpy_s(name, 256, na); }
int num;
char name[... |
86357ccc131771b47aeb56c9547709a897805907 | 0d79cdeadc76cc3250dee42feae52009259b66d4 | /CubeEngine/Application/CubeGame/Attachment.h | 408d0c0d4441f9c194725b9fce3659d1d6499f63 | [
"MIT"
] | permissive | tigertv/Cube-Engine | 2ef4a49e031c375cb2368c04743dacdd793d0396 | 0677562bf1dfdb9dd0e35ee587874ac9788ad6ac | refs/heads/master | 2021-02-06T19:02:33.047381 | 2020-02-29T09:44:26 | 2020-02-29T09:51:07 | 243,941,293 | 0 | 0 | MIT | 2020-02-29T09:36:37 | 2020-02-29T09:36:37 | null | UTF-8 | C++ | false | false | 871 | h | Attachment.h | #pragma once
#include "GamePartType.h"
#include "Interface/Drawable3D.h"
#include "Collision/PhysicsShape.h"
#include "Math/Ray.h"
#include "Base/GuidObj.h"
#include "rapidjson/document.h"
namespace tzw
{
class GamePart;
struct Attachment : public GuidObj
{
vec3 m_pos;
vec3 m_normal;
vec3 m_up;
Attachment(... |
f7cffadce9e8f4a614405fee787ef3c6b52899da | 0a8b224bd47a65dfd87bb02902e7c01e3e71d8f5 | /ios/library/WhirlyGlobe-MaplyComponent/include/private/sqlhelpers.h | 3e67303cbe7aae9f8345f5b7e453824680bfdbda | [
"Apache-2.0"
] | permissive | mousebird-consulting-inc/WhirlyGlobe | 72ea7ffc7b82006d44d2df8e471238f06e93daeb | 07a710bf6deffda8222a7a7864eb855e95aa73b3 | refs/heads/main | 2023-08-31T07:13:46.124930 | 2022-05-05T17:08:18 | 2022-05-05T17:08:18 | 3,139,032 | 106 | 36 | NOASSERTION | 2023-08-22T20:54:16 | 2012-01-09T18:51:52 | C++ | UTF-8 | C++ | false | false | 2,631 | h | sqlhelpers.h | /* sqlhelpers.h
* WhirlyGlobeLib
*
* Created by Steve Gifford on 9/8/09.
* Copyright 2011-2022 mousebird consulting
*
* 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... |
501b00fe8b57de3df130e2efc2da2370df670f44 | 329ccd2ef076e7c16219dde08dfb648b98f94990 | /Engine/Tank.cpp | 2d04d8da8aed4817def6ae7bbe0e3647db9d317b | [] | no_license | Neithari/Space-Invaders | b52a96f303d7f03b395f0a8e41424036c9061f47 | 9a146ec5d6d9bc39ccd068adbba800da80a74d70 | refs/heads/master | 2021-01-01T16:36:11.630979 | 2018-01-07T13:59:08 | 2018-01-07T13:59:08 | 97,865,905 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,980 | cpp | Tank.cpp | #include "Tank.h"
Tank::Tank( Graphics& gfx ,const Vec2<float>& in_loc, const Rect<float>* in_pPlaySpace, const int in_maxShotCount )
:
gfx( gfx ),
startLoc( in_loc ),
loc( startLoc ),
pPlaySpace( in_pPlaySpace ),
maxShotCount( in_maxShotCount ),
soundShot( L"Sounds\\shoot.wav" )
{
}
void Tank::Restart()
{
lo... |
fda530b2957654d10953ec0fd06577b2d5bea91e | c20b459468fa359a6f4c545db72a211d38298909 | /source/tree-graph/minimalTree.cpp | ae6d288782e1dc0e30ea3ee4aa4bf335638bc31d | [] | no_license | mycppfeed/Leetmap | e0340c6ecb85901c9555900a871e159a16940028 | f1f31085de60adce9dabe5eb2e5c4d66a5ba1572 | refs/heads/master | 2021-11-04T00:13:19.882064 | 2019-04-26T21:18:30 | 2019-04-26T21:18:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,473 | cpp | minimalTree.cpp |
#include<iostream>
typedef struct _Node {
int data;
struct _Node* left;
struct _Node* right;
} node;
void
insert(node** root, int data)
{
if(NULL == *root) {
node* n = new node;
n->data = data;
n->left = n->right = NULL;
*root = n;
} else {
if(data <= (*root)->data) {
if((*roo... |
0ffe5c17aa434ddc3a848055d5ef4d16ab031a90 | 9150f222170c3a12985673c4d696815cd083163a | /include/dex/dex_ir_collectionmap.h | 8fd77e5a14b8259faa5f7209d58a43a3d6eade33 | [] | no_license | strazzere/DexRewrite | d2a586445b326f38746281c20d7710d57991a44a | b9f27e8cbc0ff0d17d46ab3d929891f5e5f0b723 | refs/heads/master | 2022-11-10T11:42:54.643846 | 2020-06-29T19:12:51 | 2020-06-29T19:12:51 | 275,903,611 | 7 | 1 | null | 2020-06-29T19:09:35 | 2020-06-29T19:09:34 | null | UTF-8 | C++ | false | false | 1,638 | h | dex_ir_collectionmap.h | /**
* @ name unpacker
* @ author xiaobaiyey
* @ email xiaobaiyey@outlook.com
* @ time 2019/4/6 9:24 PM
* @ class describe
*/
#ifndef UNPACKER_COLLECTIONMAP_H
#define UNPACKER_COLLECTIONMAP_H
#include <map>
#include "dex_ir_collectionbase.h"
#include <base/macros.h>
#include <base/logging.h>
namespace dex_ir {
... |
aa21f0015caeec74e4ec19b6855764bd79df095e | 767c69a976f4fb9091050d26a3f259f8cde4a002 | /STM32F103_t1/MyInc/ecg_Checksum.h | 1304885a4fcf30d672f0840973d57559505487e7 | [] | no_license | JeffKuang/STM32F103_t1 | a9f542950524549255ae2d9cc5dc01234a8d5c0a | 39cde6df8b35151493cd6a0ca69f82af5d4d6083 | refs/heads/master | 2021-01-10T16:34:25.223577 | 2015-05-24T12:25:23 | 2015-05-24T12:25:23 | 36,061,445 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 604 | h | ecg_Checksum.h | /*
*
* Copyright 2008-2015 PHS, All Rights Reserved
*
* Written by Jeff Kuang (kuangjunjie@phs-med.com)
*
*/
#ifndef ECG_CHECKSUM_H
#define ECG_CHECKSUM_H
#include "ecg_Core.h"
namespace ecg {
////////////////////////////////////////////////////////////////////////////////
typedef dword CRC32;
///////////////... |
0d8a2158caaca324c7aa9ca7dc3906aa8d5dbf0c | c838fa83480722029b96872614816b5c11323d12 | /core_mips_Mips.h | 9b159d9634fb1d4f553d129a86ad9e8975331f44 | [] | no_license | JacquesdeH/BUAA_Compiler2020 | f3fb8581793ee6177ddc8aba037bca2bc5abb92d | c9caa423fc7c9ecc828e37bee47fb5a3d37574ee | refs/heads/master | 2023-02-04T13:18:38.613020 | 2020-12-21T16:03:56 | 2020-12-21T16:03:56 | 306,084,335 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,281 | h | core_mips_Mips.h | //
// Created by JacquesdeH on 2020/11/15.
//
#ifndef PROJECT_CORE_MIPS_MIPS_H
#define PROJECT_CORE_MIPS_MIPS_H
#include <vector>
#include <string>
#include <map>
#include <initializer_list>
#include "core_mips_ObjCodes.h"
#include "utils_inter_typedef.h"
#include "utils_inter_MIR.h"
namespace mips
{
typedef st... |
cef01d39b3b00314c79ba83dcaba58c043ea2e0b | 794e7b157b111fc9fcc396fdf598e22344c6c230 | /Node.h | 535f270beca108abad2a5e7f9f43f23a33929358 | [] | no_license | fonkvan/BST | 51df36b85f019608a7c0e5627250861ec8999233 | 565f2a10b7b2697c79213f3bee83cdc39b2da240 | refs/heads/main | 2023-08-02T02:41:33.808685 | 2021-09-26T19:05:53 | 2021-09-26T19:05:53 | 409,711,337 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 165 | h | Node.h | #pragma once
class Node
{
public:
Node();
Node(int Key, Node* Left, Node* Right, Node* Parent = nullptr);
int Key;
Node* Left;
Node* Right;
Node* Parent;
};
|
81e253cf288ca2557a7395b969e41ebd2890ad1f | 6acb7577385189daf7e2acea8bd2138fd08b7ea1 | /src/Common/gui/chat/ChatTextEditor.cpp | 92271200cf5dde3457eb88ba1f8e243a9e2e372a | [] | no_license | fab672000/JamTaba | c016a731d10fde9bcc656e9e554b079fb7d8f114 | 4bdbe69cfd9bb5a7e5e5842421c9ddf7fba6dc90 | refs/heads/master | 2023-03-16T01:56:03.318215 | 2021-10-30T21:43:13 | 2021-10-31T15:13:48 | 91,271,952 | 1 | 0 | null | 2017-05-14T21:16:23 | 2017-05-14T21:16:23 | null | UTF-8 | C++ | false | false | 1,545 | cpp | ChatTextEditor.cpp | #include "ChatTextEditor.h"
#include <QDebug>
#include <QTextBlock>
#include <QLayout>
#include <QRegularExpression>
ChatTextEditor::ChatTextEditor(QWidget *parent) :
QTextBrowser(parent),
bestWidth(50)
{
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setWordWrapMode(QTextOption::WrapAtWordBoundar... |
96c28df943173c8909f45dde5012784dcd279d6e | e733459e3365e2a28c736961f0e870d547851bac | /Tsinghua/栈和队列/Queue.cpp | 97cafd859d0a055d71e6a8a542847ae6954830ae | [] | no_license | alexhe101/data-structure-mooc--from-Tsinghua-ZJU | c7717760816dc2e42735b4563016e046e23ca828 | 8ee3b73304446fea656d3fc4bb0ac9074fbd4816 | refs/heads/master | 2020-07-08T20:55:31.026949 | 2019-10-29T14:36:40 | 2019-10-29T14:36:40 | 203,774,767 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 201 | cpp | Queue.cpp | #include"List.h"
template<typename T>class Queue:public List<T>
{
public:
void enqueue(T const&e){insertAsLast(e);}
T dequeue() {return remove(first());}
T &front() {return first()->data;}
};
|
1df31e1825324d3c5e661147f3e3733494156044 | c9c8d3ff1152d5ef700e27769ab19bbe04002c05 | /maths/chocolate.cpp | fb09c013395188129858d340e6a59507c18c3453 | [] | no_license | strikerdpk/Cplusplus | ca1b53e86062cbeeb0f99d3d35a69dd5c4eab7bd | 18240feefc498deedab18cd0f345252075d56eed | refs/heads/master | 2023-07-02T05:37:03.257786 | 2021-08-01T16:46:02 | 2021-08-01T16:46:02 | 389,427,816 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 433 | cpp | chocolate.cpp | #include <iostream>
using namespace std;
int chocolates(int rupee)
{
int rchocolates = 0;
int chocolates = rupee;
int wrappers = chocolates;
while (wrappers >= 3)
{
rchocolates = wrappers / 3;
wrappers = rchocolates + wrappers % 3;
chocolates = rchocolates + chocolates;
... |
797d10ab78055cc038c8321cbaa47ccaf4213d76 | dd80a584130ef1a0333429ba76c1cee0eb40df73 | /external/libyuv/files/source/row_common.cc | c5f3ce050f5fce13ff6f08390037b50b0dee0c10 | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | karunmatharu/Android-4.4-Pay-by-Data | 466f4e169ede13c5835424c78e8c30ce58f885c1 | fcb778e92d4aad525ef7a995660580f948d40bc9 | refs/heads/master | 2021-03-24T13:33:01.721868 | 2017-02-18T17:48:49 | 2017-02-18T17:48:49 | 81,847,777 | 0 | 2 | MIT | 2020-03-09T00:02:12 | 2017-02-13T16:47:00 | null | UTF-8 | C++ | false | false | 43,289 | cc | row_common.cc | /*
* Copyright 2011 The LibYuv 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 ... |
0a18fb2a0e6ffcfdfede06bb93f11bf1cbde7e2d | 6321c83c09d1d844237d6e051da43e3326dae4b0 | /BallistaGame/ammo.h | a9dd49af5a7e0c0da14680893300207d113ff5e1 | [] | no_license | progstorage/resume_programs | b1fb7312010b735458901d3db701c9d6608e0569 | ab32bf5cd31456138873a87981970cb73478c77f | refs/heads/master | 2021-01-14T04:23:06.599146 | 2020-08-03T22:20:41 | 2020-08-03T22:20:41 | 242,598,142 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,006 | h | ammo.h | #ifndef AMMO_H
#define AMMO_H
#include <math.h>
#define g 9.81
class Gun {
public:
float HP;
float x, y, R;
Gun(float _x, float _y, float _R = 12, float _HP = 10000) :
x(_x), y(_y), R(_R), HP(_HP) {}
void update(float damage){
HP -= damage;
}
};
class Kernel {
private:
floa... |
ee5378f50ac17ed928d92b5a471810a039a8e551 | 95a327c65243a1851aa6c387e4d5fbc5bcaf79fa | /practical/virtual/crow.h | 9b3a97aab43a50372220c8db8f196a05b34c45f4 | [] | no_license | shunak/cpp-sandbox | 194007d834fcbb1af51a254fc651fb0b4761c67e | 29795b1df850a07758e200ab488d6273fd6b52b7 | refs/heads/master | 2021-06-25T19:34:02.631470 | 2019-07-22T15:20:07 | 2019-07-22T15:20:07 | 148,958,965 | 0 | 0 | null | 2019-07-22T15:20:09 | 2018-09-16T03:14:35 | C++ | UTF-8 | C++ | false | false | 324 | h | crow.h | #ifndef _CROE_H_
#define _CROW_H_
#include "bird.h"
// define bird class
class CCrow : public CBird{
public:
// sing
void sing(){
cout << "カーカー" << endl;
}
void fly(){
cout << "crows fly" << endl;
}
};
#endif
|
e1f023cc22259ccdd4aefd79c1d05ba2de52478a | fd21b6ff7bb56f0671ea41944b98ac07c89b4b25 | /pelican/core/src/PipelineSwitcher.cpp | 17b81e90af73fecbcb68b41d5148bf0279f1ffb7 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | pelican/pelican | 2a17d1555361997f32c62989b7d2e2caf6bc62a7 | 834ae2e5d0e58009500286eb7f7891611d02b50c | refs/heads/master | 2020-12-24T16:15:29.508084 | 2018-07-09T11:20:43 | 2018-07-09T11:20:43 | 349,519 | 7 | 8 | null | 2013-09-13T10:29:40 | 2009-10-26T00:41:12 | C++ | UTF-8 | C++ | false | false | 2,350 | cpp | PipelineSwitcher.cpp | /*
* Copyright (c) 2013, The University of Oxford
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice,
* this list ... |
9cccfdc8243d4989b76d363dbdbc237d622e8244 | a06515f4697a3dbcbae4e3c05de2f8632f8d5f46 | /corpus/taken_from_cppcheck_tests/stolen_812.cpp | 7cf2b2b7060646f9686c7da9cb41f77feda5be7a | [] | no_license | pauldreik/fuzzcppcheck | 12d9c11bcc182cc1f1bb4893e0925dc05fcaf711 | 794ba352af45971ff1f76d665b52adeb42dcab5f | refs/heads/master | 2020-05-01T01:55:04.280076 | 2019-03-22T21:05:28 | 2019-03-22T21:05:28 | 177,206,313 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 156 | cpp | stolen_812.cpp | class F {
char *p;
F(const F &f) {
p = f.p;
}
F(char *str) {
p = malloc(strlen(str)+1);
}
~F();
F& operator=(const F&f);
}; |
7456311d3640709e1371ed797c3827134386cda2 | ae1d4511a93db751a123ccb590503c2b0584dd86 | /src/parts.cpp | 5908c878577eb0da98be1dfe7a8be241b4503a91 | [] | no_license | Kumokage/task6_sum_of_it_parts | c6b594ab3df9f57d205b95e81bc06519818a5500 | 050274578779ffda8e9b78e3de307361fb3919e8 | refs/heads/master | 2023-06-22T22:48:30.902569 | 2020-06-12T17:39:38 | 2020-06-12T17:39:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,513 | cpp | parts.cpp | #include <iostream>
#include "parts.h"
using namespace std;
//**************** Part ****************
void Part::describe(void)
{
cout << "Part " << name << " subparts:" << "\n";
auto it = subpart.begin();
if(it == subpart.end())
{
cout << " " << "It has no subparts" << endl;
... |
d37e4b20956b2bf73f0b102ae7527e2dfb3d9a51 | bbeeea25abd526a9f5b42269071b9d95164d2cef | /test/ut-assert/preparing.h | be5227c07a1f47216c52d8507400d0569193ce96 | [
"MIT"
] | permissive | JaredYeDH/capo | 51949d10a48a8502552f4ff325a393d6846ffed4 | 949355e8a9c018d30dc5a932b0fbeb2a70f3700a | refs/heads/master | 2020-04-05T11:16:11.651792 | 2018-10-23T08:29:29 | 2018-10-23T08:29:29 | 156,829,888 | 1 | 0 | null | 2018-11-09T08:05:25 | 2018-11-09T08:05:25 | null | UTF-8 | C++ | false | false | 365 | h | preparing.h | #pragma once
#include "capo/assert.hpp"
namespace ut_assert_ {
bool b = true;
int i = 1, j = 2;
char what[] = "What's up";
void func_1(void)
{
CAPO_ENSURE_(b = false)(i)(j)(what).msg("func_1 -> capo::assert::context\n").except();
}
void func_2(void)
{
CAPO_ENSURE_(b = false)(i)(j)(what).msg("func_2 -> bool... |
3cf6cec7d7acb7663988513836af0b7b198b9c8e | d120d3135f4e7aa53b637ea6637c376adf90171a | /src/http/message.hpp | 4881a4d97c3d5fd3f62bc3d0537a59e07a59addc | [] | no_license | i6o6i/SimpleWeb | e1d38e1680d04dc5780a1296a14bacf0c8530e12 | d42c1faa98a5b34613a478494cedd691a1e3577a | refs/heads/main | 2023-03-22T12:35:52.511930 | 2021-03-21T08:44:40 | 2021-03-21T08:44:40 | 343,071,675 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,812 | hpp | message.hpp | #ifndef HTTP_MESSAGE_HPP
#define HTTP_MESSAGE_HPP
#include <utility>
#include <type_traits>
#include <iostream>
#include <http/fields.hpp>
#include <http/status.hpp>
#include <http/body.hpp>
namespace http{
enum class verb{
unknown = 0,
delete_,
get,
head,
post,
put
};
inline std::string to_string(verb v){
stat... |
8740d7c1867c33ee5fad8112f33da2033a29f06f | 532e563887c8cf25804e3a6236284be2e1d88314 | /keyproject/keyproject/ParaData.h | 94b03f1219b1053d4d405746ab3f640769b1c0b5 | [] | no_license | KaoGu/Key-Project | e16678a084442898659a0bbd01e5f79acab8b820 | becf0107380480c1b770d9759e0afb246567de1e | refs/heads/master | 2021-06-28T23:31:30.820296 | 2020-03-15T02:05:45 | 2020-03-15T02:05:45 | 73,593,709 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 495 | h | ParaData.h | #pragma once
#ifndef ParaData_H
#define ParaData_H
#include "GlobleType.h"
#include "MyList.h"
#include <Windows.h>
class AnalyticParameter;
class ParaData{
public:
ParaData()
:modelType(UNDEFINE_MODEL),
srcFlag(All_False_Flag)
{
}
void showHelp();
void findModel(AnalyticParameter &analyPara);
MODEL_T... |
28627a1dc41a2808b1ce18e327aced5bebfe09b5 | 44f7f0513aa956e2fe880ab3537255d4f13940ca | /Engine/Code/Engine/Math/PhysicsShape.cpp | 1705e7308f94fa6afd1563682a825c01b0d08fe7 | [] | no_license | ZanneZankyo/Zankyo-Games | ae1862f174d13c80b70657a3a880952fa6279a3c | e75838242cabb0467b6934704a2eeb7dba1c038c | refs/heads/master | 2020-03-17T20:30:07.300836 | 2018-07-09T22:53:51 | 2018-07-09T22:53:51 | 133,913,193 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 271 | cpp | PhysicsShape.cpp | #include "PhysicsShape.hpp"
#ifdef TOOLS_BUILD
PhysicsShape::PhysicsShape(PxShape* pxShape)
: m_pxShape(pxShape)
{
m_pxShape->userData = this;
}
void PhysicsShape::SetTransform(const Matrix4& transform)
{
m_pxShape->setLocalPose(ToPxTransform(transform));
}
#endif |
649860b308d487dc3b432578b2f41f19c375b477 | 0b73dd79ffb40a3e2812ee1c80ac42e7de56e11c | /ResourceType.h | 4029f0ac0066dcd77be9188e50d0c5deaf1bdb5a | [] | no_license | wutaoyang/SpeciesSelectionCpp | 5bc57389c99a6aed303f10a72f258f1470940acd | bd5b5b89efc7c1b3eb90ffd66fa28c8feb197a28 | refs/heads/master | 2021-05-08T23:36:03.668602 | 2018-01-31T16:42:28 | 2018-01-31T16:42:28 | 119,714,270 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 893 | h | ResourceType.h | /*
* File: ResourceType.h
* Author: mre16utu
*
* Created on 15 January 2018, 14:52
*/
#ifndef RESOURCETYPE_H
#define RESOURCETYPE_H
//#include "Species.h"
#include <vector>
#include <string>
using namespace std;
class Species;
class ResourceType {
protected:
int id;
public:... |
f5844e7e4c1b709ad60fcfa51b9885d86ed0543e | d33024b33d0b2f894903916d2db55c69b86306e3 | /src/sema/sema.hpp | a1982589ff2b07e76b391039e032fd479512d269 | [
"MIT"
] | permissive | aaron-michaux/gaffs | 2556f6d81962e7997e5e0678aae6871590e89fdd | de9ba7b24e8ef39f0f13f6f657b7f104d74f58e1 | refs/heads/main | 2022-12-30T02:36:29.142688 | 2020-10-13T13:51:17 | 2020-10-13T13:51:17 | 300,690,761 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 158 | hpp | sema.hpp |
#pragma once
#include "ast/scope.hpp"
#include "build-symbol-table.hpp"
#include "calculate-first-final-follow-sets.hpp"
#include "calculate-ll-rules.hpp"
|
2992b1475c0ab49f8fbfff1abd6dd61a3dd2c704 | 79b3d0eef9163086bf9745c177ea2bc9db02c034 | /ant_code/dsi_framer.cpp | 2cef8d617f48a518f7aebd770bb9e791883d667e | [] | no_license | pepelkod/AntBridge | 8bb36d3ea727711cd1c35c98d0bffa2a0161647f | 2514409914e62a7f3860bfcbb39d299522127022 | refs/heads/master | 2022-09-30T13:40:44.387430 | 2022-09-14T19:25:44 | 2022-09-14T19:25:44 | 113,638,808 | 11 | 1 | null | 2022-09-14T19:25:45 | 2017-12-09T03:33:28 | C++ | UTF-8 | C++ | false | false | 1,281 | cpp | dsi_framer.cpp | /*
This software is subject to the license described in the License.txt file
included with this software distribution. You may not use this file except
in compliance with this license.
Copyright (c) Dynastream Innovations Inc. 2016
All rights reserved.
*/
#include "types.h"
#include "dsi_framer.hpp"
////////////////... |
d5955fa6c9f3fc7638cbf13c4e414f677afdaa49 | 4f41a3ae9e40a7be7a0904112f8430545be4713b | /arduino/fermentationMonitor/fermentationMonitor.ino | 8e9f983d85c82fca3af6998474649dddbe212e4e | [] | no_license | slobrewer/UberFerm | 18c128aaee3d5fad7b3c44a904e8ed69c66f35de | 7780ef54a2fb69a8ae9e5bc35ed45c37af9f40af | refs/heads/master | 2020-04-04T22:35:47.148572 | 2012-06-01T06:57:10 | 2012-06-01T06:57:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,535 | ino | fermentationMonitor.ino | #include <OLEDFourBit.h>
#include "globals.h"
#include "enums.h"
void setup()
{
lcdText[0][20]='\0';
lcdText[1][20]='\0';
lcdText[2][20]='\0';
lcdText[3][20]='\0';
pinMode(coolingPin, OUTPUT);
pinMode(heatingPin, OUTPUT);
pinMode(doorPin, INPUT);
// analog pins are input by default
analogReferen... |
0cf24985955abc4baed811e5be43c49f3d9b3026 | ff4a6135ff3fc9bd69b53d1a906f48570dceff29 | /Content/Simulation/BodyInfo.cpp | 2057181232b97d1b2157c851f24e60a42af468e8 | [
"Unlicense"
] | permissive | jodavis42/NBody | 8999ace01b4f23be9071860c78120bf7f1322bfa | 91a40ca60625494a27c517590d12df4a77f776b4 | refs/heads/master | 2021-01-16T00:56:25.441755 | 2017-08-18T14:48:52 | 2017-08-18T14:48:52 | 99,983,729 | 0 | 1 | Unlicense | 2018-12-07T22:22:13 | 2017-08-11T02:33:41 | C++ | UTF-8 | C++ | false | false | 199 | cpp | BodyInfo.cpp | #include "SimulationPrecompiled.hpp"
void BodyInfo::Load(Cog* cog)
{
mCog = cog;
mPosition = cog->has(Transform)->GetWorldTranslation();
mMass = cog->has(RigidBody)->GetMass();
}
|
de06af1f01c62b916b6040135b25d98f6d21e48d | 6197740e6297da2f3d0c8ffd2a1d7ef5d8b3d2cb | /DotNet/Foundations of C++CLI/Chapter08/sealed.cpp | 19094bd1a082708429f15cecb40a54f292f154b3 | [] | no_license | ssh352/cppcode | 1159d4137b68ada253678718b3d416639d3849ba | 5b7c28963286295dfc9af087bed51ac35cd79ce6 | refs/heads/master | 2020-11-24T18:07:17.587795 | 2016-07-15T13:13:05 | 2016-07-15T13:13:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 123 | cpp | sealed.cpp | // sealed.cpp
ref class C sealed
{
};
//ref class B : C // Error: cannot inherit from a sealed class.
//{
//};
|
d8e4273ae07307801762f4f54c75af05104310b7 | 7741f425ac616209c7af3fa677907a8f1dd7a1c5 | /libbitcoin/test/oldtests/base58-test.cpp | 0dd74958d2f30ce663e08c210167fe777ca37833 | [
"MIT",
"AGPL-3.0-only",
"LicenseRef-scancode-other-copyleft",
"AGPL-3.0-or-later",
"LicenseRef-scancode-linking-exception-agpl-3.0",
"LicenseRef-scancode-philippe-de-muyter",
"GPL-1.0-or-later",
"OpenSSL"
] | permissive | ivanpustogarov/bcclient | 48ed67e7df49b98663d72f39fb8d480eca5ed421 | 086085011c1eaba06fc0b8b36231a1784e163eae | refs/heads/master | 2020-01-23T22:06:46.988589 | 2017-12-18T17:41:39 | 2017-12-18T17:41:39 | 74,610,620 | 12 | 5 | MIT | 2018-01-17T15:28:45 | 2016-11-23T20:14:12 | C++ | UTF-8 | C++ | false | false | 1,334 | cpp | base58-test.cpp | /*
* Copyright (c) 2011-2013 libbitcoin developers (see AUTHORS)
*
* This file is part of libbitcoin.
*
* libbitcoin is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License with
* additional permissions to the one published by the Free Software
* Fou... |
425bac448e447062a08d92423b29443dd9ae1019 | 08068f7092ee809d2447931dc3dd196f3e943108 | /ReproduceState.h | 9af79367a44913455523a92cb4e7ba71acfde2e8 | [] | no_license | Kasia4/Artificial-life-simulator | 103e1895bd3114de8e85abb22f40555797e9315f | 42ea28266e44fdf5813d800ea635f2569a44cdaf | refs/heads/master | 2020-03-14T11:07:46.334899 | 2017-07-02T15:25:40 | 2017-07-02T15:25:40 | 131,583,753 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 354 | h | ReproduceState.h | #ifndef REPRODUCESTATE_H
#define REPRODUCESTATE_H
#include "State.h"
#include "SimulationScene.h"
class ReproduceState : public State
{
public:
ReproduceState();
State* action(Specimen *specimen);
State* clone() const;
void setFactors(Specimen* specimen);
private:
State* reproduce(Specimen* specimen... |
b540cf0dc813418dc8f5fe05e27a795d28a480c0 | 968447bedbea5842c2d0f62ff47c0bd4c2258012 | /demos/umlastah/translations/astah-generated-code/astah-gen-c++/package-class-diagrams/PackageD/AG.h | 1728c662817e6c108b9004a781a2c84c7b640c19 | [] | no_license | paulnguyen/cmpe202 | 5c3fe070515e4664385ca8fde5d97564f35557e4 | 153b243e888f083733a180c571e0290ec49a67dd | refs/heads/master | 2022-12-14T13:14:04.001730 | 2022-11-12T21:56:09 | 2022-11-12T21:56:09 | 10,661,668 | 53 | 441 | null | 2022-12-06T19:25:07 | 2013-06-13T08:09:27 | Java | UTF-8 | C++ | false | false | 460 | h | AG.h | #ifndef PACKAGE-CLASS-DIAGRAMS_PACKAGED_A_G_H
#define PACKAGE-CLASS-DIAGRAMS_PACKAGED_A_G_H
#include <string>
#include <vector>
#include <list>
#include <iostream>
#include <assert.h>
#include "package-class-diagrams/PackageD/G.h"
#include "package-class-diagrams/PackageD/A.h"
namespace package-class-diagrams
{
name... |
9949abda63a9e340ddd05c43fa87a34fd190e2f3 | 1095cfe2e29ddf4e4c5e12d713bd12f45c9b6f7d | /src/mem/cache/write_queue_entry.cc | f71fd1b480931a6385c1a4b03fd1778937a1ba2c | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"MIT"
] | permissive | gem5/gem5 | 9ec715ae036c2e08807b5919f114e1d38d189bce | 48a40cf2f5182a82de360b7efa497d82e06b1631 | refs/heads/stable | 2023-09-03T15:56:25.819189 | 2023-08-31T05:53:03 | 2023-08-31T05:53:03 | 27,425,638 | 1,185 | 1,177 | BSD-3-Clause | 2023-09-14T08:29:31 | 2014-12-02T09:46:00 | C++ | UTF-8 | C++ | false | false | 6,038 | cc | write_queue_entry.cc | /*
* Copyright (c) 2012-2013, 2015-2017 ARM Limited
* All rights reserved.
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementa... |
fd6c0dcf292a748810902398d554b359a2cc4b15 | fa391c1affe497abbde266e6ec70710f7c676b94 | /HardwarePlugins/PluginPhidgets/GPhidgetServoMotorWidget.h | eafc42e5889435d0a60c8850f53631a167353171 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | GaelReinaudi/LabExe-UserPlugins | d936d94271e946a2e8b0ebd998f287b30e22f6aa | 3f9de085115947bf9362a7c6f46fd89d5c0f8daa | refs/heads/master | 2021-01-18T21:34:54.755432 | 2017-11-29T04:50:49 | 2017-11-29T04:50:53 | 10,351,469 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 478 | h | GPhidgetServoMotorWidget.h | #ifndef GPHIDGETSERVOMOTORWIDGET_H
#define GPHIDGETSERVOMOTORWIDGET_H
#include <QWidget>
#include "ui_GPhidgetServoMotorWidget.h"
#include "GPhidgetServoMotor.h"
class GPhidgetServoMotorWidget : public QWidget, public Ui::GPhidgetServoMotorWidget
{
Q_OBJECT
public:
GPhidgetServoMotorWidget(GPhidgetServ... |
ca4e7e7682ba250b85b6c6456b58fe7452630003 | 1bd3aec078858c34b4f5a53839c1062358eb055e | /GA based control system/beast/libs/vector2d.h | 9bca23cc211eba108b7ae69f239d0e9222a23f1b | [] | no_license | yeswhos/COMP5200M-MSc-Project | 321a29e2250cc691b1e0bee6351e169bb8953a8f | 03fd3eebcdcf422363e82b7338b95751e6f1fb74 | refs/heads/master | 2022-12-06T07:34:47.279915 | 2020-08-24T15:21:42 | 2020-08-24T15:21:42 | 289,897,926 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,886 | h | vector2d.h | /**
* \file vector2d.h
* \addtogroup framework
*/
#ifndef _VECTOR2D_H_
#define _VECTOR2D_H_
#include <iostream>
#include <cmath>
#include <float.h>
#include "utilities.h"
#include "random.h"
#include "serialfuncs.h"
/// pi defined to a much greater accuracy than will ever be needed
#define PI 3.14159265358979323... |
8e882089fcda25e406cfa205dd0af6906e7bcea9 | b65af77686e4779759e0afb1af4bed33d37f714f | /StdAfx.h | 7ed11c6073f04e8b0a7c76544545f254e326dcb6 | [] | no_license | kearyo/DM-Helper | 0afa7069a7e6668f011201465d8a724ec469d401 | a90a6bc6d9c3f8f9fe7062a61f1b2888a67e9a50 | refs/heads/master | 2023-05-06T11:49:01.848611 | 2021-05-24T00:38:59 | 2021-05-24T00:38:59 | 80,240,954 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,742 | h | StdAfx.h | // stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#define WINVER 0x0600
#define NO_WARN_MBCS_MFC_DEPRECATION TRUE
#if !defined(AFX_STDAFX_H__4FB782FA_3217_4CF2_9FC1_BAAB14031BE1__INCLUDED_)
#define AFX... |
c196c1fd02d54e511cb3aead0e9c755f692da271 | 989d0607aa4c767b01d3faeb3cb595f12c7e80f8 | /Classes/SelectMakeOponentFewPlacesPlayer.cpp | cc8d768af60471c84455e885623b649e1c9f50ae | [] | no_license | sukesan1984/Reversi | c56dc6293f352c9a82b35960481d34fd8473fc79 | 325bc43545da0e8c6d89aa6eb223e9494c5b7c37 | refs/heads/master | 2021-01-02T13:00:24.092160 | 2015-05-17T08:32:57 | 2015-05-17T08:32:57 | 34,162,892 | 0 | 0 | null | 2015-04-29T07:58:54 | 2015-04-18T11:11:04 | C++ | UTF-8 | C++ | false | false | 1,301 | cpp | SelectMakeOponentFewPlacesPlayer.cpp | //
// SelectMakeOponentFewPlacesPlayer.cpp
// Reversi
//
// Created by Kosuke Takami on 2015/05/04.
//
//
#include "SelectMakeOponentFewPlacesPlayer.h"
#include <math.h>
SelectMakeOponentFewPlacesPlayer::SelectMakeOponentFewPlacesPlayer(Color playerColor, BoardModel* boardModel) : NPCBase(playerColor, boardModel)
... |
bdc67db26b8ec682e4ce9d3a14015a5adb35cc5f | 0f648895eea27b664e9a32035f136ae6ce98bbb4 | /include/Request.h | 8b85ed6817e76ca4a291ae6971a43e587bd15f6a | [] | no_license | Oxbern/CCube_API | d20889a1a3151ca89c1e9e04051fe450a73b4a05 | 003a1030657ca7b0e44e0f5194caf9b1428e7aec | refs/heads/master | 2020-12-24T21:21:31.926289 | 2016-06-10T08:59:41 | 2016-06-10T08:59:41 | 59,000,420 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,344 | h | Request.h | #ifndef REQUEST_H
#define REQUEST_H
/*!
* \file Request.h
* \brief Creates a request
* \version 1.0
*/
#include "OutgoingMessage.h"
/*!
* \class Request
* \brief Class representing the creation of a request
* which is an outgoing message which does not need an answer from the device
*/
class Request : public ... |
6fd0d2de5d40757ffc4074021017bac9d0fbd2db | 386e9266dbd463d261d99a77a7cbe22a80ed61b0 | /K1.SE.14.04.19/Task1/WebPage.h | 32ae07ad7e209ecd11f49db7c68f131b0505f554 | [] | no_license | andy489/Object_Oriented_Programming_with_CPP | f629c756d3aa784a5a5c6fe9fccc6a85717d1633 | 492266ecd99b0de36b3f941b3397d2b69b195206 | refs/heads/master | 2023-04-17T05:38:52.159375 | 2021-05-04T18:16:23 | 2021-05-04T18:16:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 505 | h | WebPage.h | #pragma once
#include <iostream>
#include <cstring>
class WebPage
{
char* address = nullptr;
char* ip = nullptr;
public:
WebPage();
WebPage(const char* address, const char* ip);
WebPage(const WebPage& w);
WebPage& operator=(const WebPage& w);
~WebPage();
const char *getAd() const;
const char *getIp() const;
... |
9b8f41e04c7aea7c790aa701adc787d9508972b2 | 045dc74e7ab07663d815de1d979bd34567066c67 | /common/src/ThreadPool.cpp | 85f12747abfe1e2d81272495f78535e33e84ea4e | [] | no_license | izissise/r-type | 29ad2bd8bd80d6a9cb12020a7b6b937aec754efb | 3f243944596eeb9351db98694c09b0aebd819fdc | refs/heads/master | 2020-04-02T03:11:26.448429 | 2015-05-26T13:25:31 | 2015-05-26T13:25:31 | 26,535,921 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 862 | cpp | ThreadPool.cpp | #include <iostream>
#include <algorithm>
#include "ThreadPool.hpp"
void ThreadPool::ThreadLoop() {
do {
std::function<void()> task;
{
std::unique_lock<std::mutex> lock(_mutex);
_condition.wait(lock, [this]() {return _stop || !_tasks.empty();});
if (_stop && _tasks.empty()) {
... |
3aaaa234081135fa1b6412eb2c0a5e7a5c82eed5 | 5b136479f345e974c20f803d2793e9a470ba33a5 | /src/Texture1D.hpp | b0e2633673c22bafce12c8eddc651cde0cd0666c | [
"WTFPL"
] | permissive | bwiberg/bwgl | d8b0a2810fd3cc644dfab08d5ee3d8fe5e785401 | d3b2cfe2baa723565ad055ea03ca5567d290e8c7 | refs/heads/master | 2021-03-22T02:16:48.810703 | 2016-11-11T04:54:11 | 2016-11-11T04:54:11 | 70,266,340 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 916 | hpp | Texture1D.hpp | #pragma once
#include <gl3.h>
namespace bwgl {
class Texture1D {
public:
Texture1D(GLenum target, GLenum pixelFormat, GLenum dataType);
~Texture1D();
void bind();
void unbind();
void loadImage1D(GLint internalFormat,
GLsizei width,
... |
66fe9ab4411f0f5087eeab1e95910ab1d12f0d44 | 82e20300e4024ec92415fb5923b5e933fdf260a5 | /CENG242/the3/test/mali/Miner.cpp | 20aba90383c6e0f9cea90a3ddc5ee1409509ab78 | [] | no_license | ugurduzel/ODTU-METU | 154e77c03324d09621a03e135db095db496e6889 | 67c87a49ea06d99367916d7f41cb042ec137ac36 | refs/heads/master | 2020-03-27T01:09:28.201973 | 2018-12-05T12:14:42 | 2018-12-05T12:14:42 | 145,682,922 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,904 | cpp | Miner.cpp | #include "Miner.h"
/*
YOU MUST WRITE THE IMPLEMENTATIONS OF THE REQUESTED FUNCTIONS
IN THIS FILE. START YOUR IMPLEMENTATIONS BELOW THIS LINE
*/
int Miner::getNextAvailableBlockchainID() const {
return depo.size();
}
bool Miner::is_in(Koin* p) const {
int l = soft_forked_list.size();
for(int i=0; i<l; ++i) {
... |
b7574c1dd3c4cfbc9a5841c2f3dae7efa9e74f2d | 967cb26a828b7dc35e8c1b6e9f43f9c6310ec263 | /DreamLandWars/FindEmploymant/Soldier.h | 411dc28c3d1fd2b6d078b0bd16d179c3bd2d63d1 | [] | no_license | YuusukeSeki/Presentation-for-employed | bbbab96404f208be129f4c2aafe5d2d897454f0f | d7f149bbd65065c4866f4d829ebad22006692058 | refs/heads/master | 2020-04-03T08:35:10.998568 | 2018-11-22T11:24:02 | 2018-11-22T11:24:02 | 155,138,085 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 2,394 | h | Soldier.h | // author : yusuke seki
// data : 20181114
#ifndef SOLDIER_H_
#define SOLDIER_H_
#include "Unit.h"
class Player;
class BasePoint;
class Tower;
class Castle;
class Collider;
class SoldierCommander;
class SoldierGauge;
class Soldier : public Unit
{
public:
enum Report
{
NONE,
DEATH,
FIND_... |
db705c3d75f21ba00ad9cc565155c0111068ff23 | 5b171fb70f3c1a8080ecf170e980a196b322aa8b | /Merging_Array _in_UnSorted_Order.cpp | 3e775629edcb3b6ddeee24fcf7608707905aa7a9 | [] | no_license | KaushalVasava/DataStructure | f8385e5379bf5d9fb7653776c6116045c15c83a7 | 4c5a593d6bc930e1e57616fee3bd10cbee3c1846 | refs/heads/main | 2023-04-23T15:58:40.536908 | 2021-05-04T09:11:51 | 2021-05-04T09:11:51 | 364,192,100 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 997 | cpp | Merging_Array _in_UnSorted_Order.cpp | //Sorting of two sorted array
//and /* code */ aa vadu merging of two unsorted array.
#include<iostream>
using namespace std;
int main(){
int i,j,n,m;
int a[10],b[10],c[10];
cout<<"\nEnter the size of first array:";
cin>>n;
cout<<"\nEnter the Elements in the array:";
//int a[]={3,2,4,5,6,8};
//i... |
d706a4adf99c1b94d9117a30fdb2f82a41b6163f | 090aae666f6b061a112ba1674c109e09df6a72fb | /FBWinSDK/FBWinSDK.Shared/FacebookLoginButton.h | 8317aa45bc3d90cb8c61b8d18fa0bd7118c29757 | [] | no_license | PhamNguyen/FacebookUWP | f201bb91613207d40c2dc967d8b5839cdff875a8 | ab29897130a9ef1883f72720696e93ebc224b42d | refs/heads/master | 2021-01-10T16:07:05.694925 | 2016-02-23T08:17:46 | 2016-02-23T08:17:46 | 52,340,657 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,796 | h | FacebookLoginButton.h | //******************************************************************************
//
// Copyright (c) 2015 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT L... |
e881e008bb3c8e0d087aa91059fbb32de83bdd81 | 04e0fccc6fed4a310b78017cf505a4f5e4dbb3b4 | /Lab4/Controller.cpp | b2f23240c4dc73a1f7a3d997d21f5c37f9cd63c2 | [] | no_license | viorelyo/Pharmacy_Administration | f75d4362dc55a9c2bf3d4e631d6a5db74840c5e4 | e6098e65e85bffcae96fe8aa8991c20d1a4f5876 | refs/heads/master | 2020-04-22T00:18:16.616957 | 2019-02-10T13:17:39 | 2019-02-10T13:17:39 | 169,974,716 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,883 | cpp | Controller.cpp | #include "stdafx.h"
#include "Controller.h"
#include <algorithm>
Controller::Controller()
{
}
Controller::Controller(const Repository& r)
{
this->repo = r;
}
Controller::~Controller()
{
}
Repository Controller::getRepo() const
{
return repo;
}
void Controller::addMedToRepository(const std::string & nume, doub... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.