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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
65ceaa28c7c35c3faae51b06fc97609f3bd0e0aa | 70301063eb87584b81d473b06851bb7b3daac662 | /src/db/migrations/Migration_20120612130803_add_flarm_id.h | ac6b06ea63ddb323caf2a3d334995a9ebe093850 | [] | no_license | Akaflieg/startkladde | a2bd4d5f798408d8249cfd3c53e0a2cf434c5734 | 92d7be1a03f8ff2ad11654e8026915c818b8b101 | refs/heads/master | 2023-08-31T07:03:29.558395 | 2023-08-19T20:00:22 | 2023-08-19T20:00:22 | 27,086,136 | 6 | 6 | null | 2022-11-27T20:38:53 | 2014-11-24T17:18:56 | C++ | UTF-8 | C++ | false | false | 427 | h | Migration_20120612130803_add_flarm_id.h | #ifndef MIGRATION_20120612130803_ADD_FLARM_ID_H_
#define MIGRATION_20120612130803_ADD_FLARM_ID_H_
#include "src/db/migration/Migration.h"
/**
* TODO migration description
*/
class Migration_20120612130803_add_flarm_id: public Migration
{
public:
Migration_20120612130803_add_flarm_id (Interface &interface);
vir... |
b8b4cf52c946d7c065a7fab8df08ac778a180bfc | 4473652d8ea80584c826ce9cb1b2a988a8274fce | /src/singleSonar.cpp | 7f9adbc491f59c6ee895223c84625d904fea5e29 | [] | no_license | Desoky01/sonar_ros | 50a2acba9b29d869b9ecb88fe532e7f1f9e623bd | ca58db0ec9e56c95c2d2081206fbc86c86113738 | refs/heads/master | 2020-11-26T00:51:04.469655 | 2017-11-01T09:18:30 | 2017-11-01T09:18:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,646 | cpp | singleSonar.cpp | #include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <wiringPi.h>
#include "ros/ros.h"
#include "ros/time.h"
#include "sensor_msgs/Range.h"
#define ECHO_0 0
#define ECHO_1 22
#define ECHO_2 06
#define ECHO_3 19
#define ECHO_4 21
volatile double distance0 = 0.0;
volatile double distance1 = 0.0;
volatile... |
4059166c3b163f41e8fa0f8bdaedb5d3e7096b1b | 0f8e0e4f61f9e924744b4512d2c11fa21fa23e29 | /Codeforces/611/b.cpp | 3518284299de28e0c996a420b92353d4a72f8a23 | [] | no_license | ldorelli/icpc | 7ce91d793fc2c1a10a9f91303b023c2b77d05078 | e3116c89852726be036dd3d6fcfa3b3fab6f4400 | refs/heads/master | 2021-01-10T09:16:48.414540 | 2016-02-23T01:02:27 | 2016-02-23T01:02:27 | 51,770,503 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 676 | cpp | b.cpp | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long int ll;
int solve (ll x) {
if (x == 0) return 0;
if (x == 1) return 0;
int p;
for (p = 63; p >= 0; --p) {
if ((x>>p)&1) break;
}
int zer = 0;
ll ans = 0;
for (int i = 0; i < p; ++i) {
an... |
5fdd210c912a5085cad8cb0b273e8a897f96b946 | 3051df81cce8ed9b747efc9bb51ffd20a76106f2 | /Algorithm/dictionary.cpp | 95ee05be14213f0d24de5fc94cb309a8ff5393d4 | [] | no_license | lailaiforNTUIM/For-interview | b739bca2cea966b8ac6d4d01cc19ce566e8e95b4 | 0e7495cb98448d944b812be0dcda677ffd244825 | refs/heads/master | 2021-05-14T01:56:19.281456 | 2018-01-07T16:48:54 | 2018-01-07T16:48:54 | 116,579,080 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 490 | cpp | dictionary.cpp | #include<iostream>
#include<fstream>
#include<stdlib.h>
#include<string>
using namespace std;
int main(){
int a=rand()%100000;
int b=rand()%100000;
ofstream myfile;
string name;
string def;
string as;
string bs;
myfile.open("word.txt");
for(int i=0;i<100000;i++){
a=rand()%1000000;
b=r... |
ea646c6be03db518cc43ee97a53e5d7608c019bc | 58cf4bdd92fe9fd7941c8ffb5680df7f35bfa625 | /efusewriter/inc/mdt_efusewriter_cefusewriterlockfile.h | 58c54accc8124e30e5ffa6353253289a7243f7f6 | [] | no_license | zlr3538/Multiport_download | 0566ca75a8a7bcebdbdffffcc282098e42dfa3a4 | ca15ba59deff57d3c737f6870b290e6cee610315 | refs/heads/master | 2020-03-18T14:10:29.731513 | 2018-05-25T09:28:23 | 2018-05-25T09:28:23 | 134,834,265 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,793 | h | mdt_efusewriter_cefusewriterlockfile.h | /*****************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used o... |
6be3c7f5a547308c87bea35b35b64bee9b988f2d | 42fa435e8fdc7c29e58a3e3e75efaf5932a40129 | /PremiumSubscription/261-graph-valid-tree.cpp | ae877fb4a4c41fb6786a38b1b7829617d11dc110 | [] | no_license | yaoshun/LeetCode | 34db9b8e99be019b2ad7fa40d26b414aa934e250 | 3eb9e899e22d0299fdc511a3d10d939db3d8eeba | refs/heads/master | 2021-06-29T03:32:09.230415 | 2020-10-03T01:42:24 | 2020-10-03T01:42:24 | 41,387,653 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,818 | cpp | 261-graph-valid-tree.cpp | // LeetCode problem
//
// Given n nodes labeled from 0 to n - 1 and a list of undirected edges (each edge is a pair of nodes), write a function to check whether these edges make up a valid tree.
//
// For example:
//
// Given n = 5 and edges = [[0, 1], [0, 2], [0, 3], [1, 4]], return true.
//
// Given n = 5 and edges =... |
4b6190ab9052920cfa1dccdf6d1843f50edb214b | bdf425c54f5a42eb3fa4d4b14cad76486aa761b0 | /algorithm/11052.cpp | 1ebfccf52a73ebe81cbd4f3f67eeb43f6fd56be4 | [] | no_license | SoHyunJiiiiiii/myCode | 130332fde96fc86e008efcce5386a37dde74d832 | 3df247a1a32daef6333c39b6dfe5336589babe31 | refs/heads/master | 2020-12-30T15:53:52.630922 | 2017-10-09T01:36:31 | 2017-10-09T01:36:31 | 91,177,182 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 837 | cpp | 11052.cpp | //
// main.cpp
// 붕어빵판매하기
//
// Created by 지소현 on 2017. 7. 29..
// Copyright © 2017년 지소현. All rights reserved.
//
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(int argc, const char * argv[]) {
// insert code here...
int N;... |
86b5bb6fcaed5a95dfd8f160d21fa6c65c950df5 | 3821e537c0e03e602ba4ac770dcce0d741d026a7 | /UVA/12425.cpp | 851a5179fcb447e4513fa96417df5e2118e05e7b | [] | no_license | msyashik/CPPS | 6766992e40c30f112d959b5c57e1af5487d885a9 | ae163a3a75dade8bc51f566ae529ea4f9075db97 | refs/heads/master | 2023-07-13T00:08:32.465275 | 2021-08-22T02:41:23 | 2021-08-22T02:41:23 | 161,633,625 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,510 | cpp | 12425.cpp |
//UVA Best Friend
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define Coming ios_base :: sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define endl "\n"
vector<ll>vv;
ll euler_phi(ll n)
{
ll ans = n;
vector<ll>v;
if(n%2 == 0) v.push_back(2);
while(n%2 == 0)
{
n /= 2;
}
ll ... |
6093560a85c7db7c3370f3600df0210e5355036d | a0d30db13a97d84ab04e8d910b833d3c619ffa5a | /src/maverick/include/Shader.h | 8e8f0c4bd5183ea461b35a7fe930e7dfb6bc8e1a | [] | no_license | buter-brod/gunfire | 986e71cff356f36de840867127b623b80226d2ed | ca72413917cce14ca94f30af58c7ef94e2ec13b1 | refs/heads/master | 2020-03-25T18:41:35.207369 | 2019-02-19T11:42:38 | 2019-02-19T11:42:38 | 144,044,529 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 662 | h | Shader.h | #pragma once
#include <memory>
#include <string>
class Shader;
typedef std::shared_ptr<Shader> ShaderPtr;
class Shader {
public:
explicit Shader(const std::string& name);
virtual bool Load(const std::string& vF, const std::string& fF) = 0;
virtual void SetUniform(const std::string& name, const float v1) = 0;
v... |
aeba15d34aa3ac60fac227d5079bd663cbf17e5d | 96087808a05a1a6beba14207b813ac7a152ef28a | /AlgorithmQuestions/cses/Trailling-Zeros.cpp | 9c6ced85362cd74a5f08e31d7aa7ef028c37ca85 | [] | no_license | phonism/notes | d76dd50d1e5b9463c2b65eafca7a596bd97e523b | 97e72472657dfbabdf858fe812308790c0214a0b | refs/heads/master | 2022-09-10T04:23:39.394736 | 2022-08-17T12:28:30 | 2022-08-17T12:28:30 | 24,148,792 | 12 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 229 | cpp | Trailling-Zeros.cpp | #include<bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
long long tmp = 5;
long long ans = 0;
while (tmp <= n) {
ans += n / tmp;
tmp *= 5;
}
cout << ans << endl;
}
|
2d8ea72be3d533767ce51b706d10d81406e67de9 | e778b7a42cf9635f15fc2cc2ee9c45292ce7f4de | /BehavioralPatterns/Iterator/TV.h | 12eaba8426ab7509a2756117b0a22f04463cbc36 | [] | no_license | 9Tempest/23DesignPatterns | 9658e2b8d4e8b664cd8051a5d1a71bd67bc4b00d | 29e2b47cc4074a8bdee7f651a2bafb15637b4588 | refs/heads/master | 2022-12-11T05:54:49.174137 | 2020-09-02T05:42:40 | 2020-09-02T05:42:40 | 290,981,752 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,586 | h | TV.h | #ifndef _TV_
#define _TV_
#include "DigitalMedia.h"
class TV: public DigitalMedia {
int episode;
int season;
std::string series;
public:
// Sets key, title, duration, episode, season, and series information.
// Raises: std::length_error if key.length() < 1 or title.length() < 1
// std... |
2a277a50ff4666bb1df65d99ac310956041c6378 | 9d3ce3376415cc8b5214cf57d9bc82ed066106f4 | /Cpp/Medium/11. 盛最多水的容器.cpp | c100baf784048fffd62e9d934debeb4815c63eb5 | [] | no_license | Mrhuangyi/leetcode-Solutions | e83984bcbb07e36cb08fff31cea6a55e928599c2 | a0abfa335ec3f35575da396d05bc8900be366d66 | refs/heads/master | 2021-06-06T23:53:33.093538 | 2021-05-08T07:51:11 | 2021-05-08T07:51:11 | 130,051,244 | 8 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,577 | cpp | 11. 盛最多水的容器.cpp | /*
给定 n 个非负整数 a1,a2,...,an,每个数代表坐标中的一个点 (i, ai) 。在坐标内画 n 条垂直线,垂直线 i 的两个端点分别为 (i, ai) 和 (i, 0)。找出其中的两条线,使得它们与 x 轴共同构成的容器可以容纳最多的水。
说明:你不能倾斜容器,且 n 的值至少为 2。
*/
//
// maxArea11.cpp
// LeetCode
//
// Created by a on 2018/10/25.
// Copyright © 2018 Leetcode. All rights reserved.
//
#include <cstdio>
#include <cmath>
#i... |
e4edd1fa39520c0cf32d9df7948f2a6bec704fac | b4f7073600455d0938d153a902e4e1a9d0b990ff | /practical_exercises/10_day_practice/day9/异常例子/3.cpp | 378376278900507bff6b324e13cfaea90fb99a80 | [] | no_license | Neflibatata/CPPThings | 34784cb0d13b79484874e53e6f791a6448d283c2 | 52c5794f529396d438e447f5800836f56413cef5 | refs/heads/master | 2023-03-29T12:07:21.258987 | 2021-04-02T05:48:14 | 2021-04-02T05:48:14 | 353,918,825 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 482 | cpp | 3.cpp | #include<iostream>
using namespace std;
void temperature(int t)
{
try{
if(t==100) throw "It's at the boiling point.";
else if(t==0) throw "It reached the freezing point";
else cout<<"the temperature is OK..."<<endl;
}
catch(int x){cout<<"temperature="<<x<<endl;}
catch(char const*... |
0f4cd4245156ee29971d453fb178ee2f317eda36 | 29b0d9ffe4f16385b48e779411ef40900867e94d | /src/DetectorConstruction.cpp | 78720daefa389aa462f5d56b7dc23b64fded8d6d | [] | no_license | vayeroshenko/tl-stereo | 0f2fde795a4e2a1396f9f46f81dd7837ae7eac65 | 55ed2541274089a6553323e68d9ce74aa48a1334 | refs/heads/main | 2023-03-08T01:55:27.507147 | 2021-02-12T09:50:30 | 2021-02-12T09:51:10 | 332,831,396 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26,320 | cpp | DetectorConstruction.cpp | /*
* DetectorConstruction.cpp
*
* Created on: Oct 2, 2018
* Author: vsevolod
*/
#include "DetectorConstruction.h"
DetectorConstruction::DetectorConstruction() {
// DefineMateials();
}
DetectorConstruction::~DetectorConstruction() {
}
G4VPhysicalVolume* DetectorConstruction::Construct() {
LS... |
e0467d8b1f880e3cb1ad0e31be21e1cf3b3a4efb | 20a9ce8382f5e2383997a72cb9a12cad1624789b | /MeshModifier/src/ofApp.h | 29be448c53faac81f461f912038014642dfa2f87 | [
"MIT"
] | permissive | golanlevin/DigitalArt | bc86d2d55dcabe65078b4156e4de5f73e74c4a06 | 285509006632a9c16b40e964b5697dcb27b1cf2b | refs/heads/master | 2021-01-10T20:59:24.082241 | 2014-10-07T05:06:45 | 2014-10-07T05:06:45 | 10,161,662 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 578 | h | ofApp.h | #pragma once
#include "ofMain.h"
#include "ofxCv.h"
#include "ofxUI.h"
#include "PlusOne.h"
#include "MinusONe.h"
using namespace ofxCv;
using namespace cv;
class ofApp : public ofBaseApp {
public:
void setup();
void setupGui();
void update();
void draw();
void keyPressed(int key);
ofDirectory dir;
... |
747f1dcb61786dd9d7e1e688d1efa8d8229fdec7 | bc2542191c6bd9fe54ca5df4a32ab2558fa9cc9c | /Remnants/Source/Remnants/Core/Items/ShootergameBeam.cpp | 93e4fdaa2b5ebb55b0eccef42c8ab0324fb2287e | [] | no_license | KevinHinker93/Remnants | da7d791c139d61e7f9e4d00129559168a444bc3e | 9260bbe7a6b029cb7e939823d9edf55c864484f5 | refs/heads/master | 2023-05-28T12:14:30.006247 | 2020-12-03T14:58:48 | 2020-12-03T14:58:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,494 | cpp | ShootergameBeam.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "ShootergameBeam.h"
#include "Components/BoxComponent.h"
#include "Runtime/Engine/Classes/Particles/ParticleSystemComponent.h"
#include "Components/SceneComponent.h"
#include "ElementDamageType.h"
#include "Kismet/GameplayStatics.h... |
d13512b721f11baf0f9c272c33f379f83ab0ef90 | 9e25445be95969dbbc78c5dd6fb3d1f221c425c3 | /ExampleGame/Code/Player.cpp | 1021e2b9712f662cfb3787017c3d966ed910bf17 | [] | no_license | cjharper1/ludem-dare-44 | 36a547cf04f78821422284ce5d82c03bc753d005 | a51fe2b2719c52a74b35974464b6ed36a5007037 | refs/heads/master | 2020-05-17T12:18:08.296345 | 2019-07-14T01:14:52 | 2019-07-14T01:14:52 | 183,707,372 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,383 | cpp | Player.cpp | #include "Player.h"
/// Constructor.
/// \param[in] initial_position - The initial position of the player.
/// \author CJ Harper
/// \date 04/28/2019
Player::Player(const sf::Vector2<float>& initial_position, const sf::VideoMode& screen_resolution):
Velocity(sf::Vector2<float>(0,0)),
AngleOfRotationInDegrees(0),
Hi... |
370f320aac9c91c04493893d5b8c4f0424da4787 | 1913435a363e836c5272757d10c9ee0db08c3687 | /pointer/pointer1.cpp | d297c352d3fabb1383672ea4ebdae016d661d475 | [] | no_license | xibeilang524/programming-c-cpp-learning | 7e9ead76a2b02d162a255336341a7b19fcb3bd1a | 40e8803c9cc6952ec0bb9c778adec69d4bf78fe5 | refs/heads/master | 2021-01-21T08:20:12.638514 | 2016-03-20T13:56:04 | 2016-03-20T13:56:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 391 | cpp | pointer1.cpp | #include <iostream>
using namespace std;
int main()
{
int var = 20;
int *ip;
ip = &var; // pointer ip content is address of var
cout << "Value of var variable: " << var << endl;
cout << "Address stored in ip variable: " << ip << endl;
cout << "Value of *ip variable: " << *ip << endl;
cou... |
4815edc804b63ec81dafc955e003f629cac047a5 | a74077b30c3611af5f15a05bd019414a7a4f9d48 | /src/KMP.cpp | e535faadd038db119f2d73f65a126e4009ddd4f4 | [] | no_license | Akuva2001/psearching | 85670910198b36987753d868880849ce8457cc01 | be430046e5c4d4b37c2d8c5bf0882e21cda4c1c0 | refs/heads/master | 2020-09-12T19:06:15.544160 | 2020-05-13T20:44:26 | 2020-05-13T20:44:26 | 222,520,802 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,577 | cpp | KMP.cpp | #include <psearch/KMP.h>
#include <stdio.h>
void prefix_function (char* s, int *pi, int str_len) {
pi[0] = 0;
for (int i=1; s[i]!=0; ++i) {
int j = pi[i-1];
while (j > 0 && s[i] != s[j])
j = pi[j-1];
if (s[i] == s[j]) ++j;
pi[i] = j;
}
#ifdef KMP_DEBUG
cout<<"\n";
for(int i=0; i<str_l... |
8adba40f16d057413ec71dd7563099704f084938 | 4897b9d75d851a81606d19a0e046b32eb16aa1bd | /problemset-new/000/00066-plus-one/66-tiankonguse.cpp | 5dc4bfd9de3952442fd83f73979416bdc99822cc | [] | no_license | tiankonguse/leetcode-solutions | 0b5e3a5b3f7063374e9543b5f516e9cecee0ad1f | a36269c861bd5797fe3835fc179a19559fac8655 | refs/heads/master | 2023-09-04T11:01:00.787559 | 2023-09-03T04:26:25 | 2023-09-03T04:26:25 | 33,770,209 | 83 | 38 | null | 2020-05-12T15:13:59 | 2015-04-11T09:31:39 | C++ | UTF-8 | C++ | false | false | 2,257 | cpp | 66-tiankonguse.cpp | /*************************************************************************
> File Name: plus-one.cpp
> Author: tiankonguse
> Mail: i@tiankonguse.com
> Created Time: Tue Mar 12 00:26:06 2019
************************************************************************/
#include<cstdio>
#include<iostream>
... |
9270b212c50899db5140465ffadd86e99d69a218 | 1824e5bdc0f1ec0b23fc603a5f54c727e63e8bb6 | /Arduino/JimHung_HeliSketch_NoMultiplexing/JimHung_HeliSketch_NoMultiplexing.ino | 95384f068e81865c3eefe6f9774ce54cb6a4460b | [] | no_license | mhuesch/heli | b2c602bb71867db8393877f9d6fd77a6d6ee4e1d | 8a36e555469b22b889ab9887529f61a07c982599 | refs/heads/master | 2021-01-10T21:06:12.419297 | 2014-06-04T16:04:17 | 2014-06-04T16:04:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,589 | ino | JimHung_HeliSketch_NoMultiplexing.ino | #define LED 12
#define statusA 8
bool finished;
bool handshakeComplete;
byte inputbufferA[5];
int incomingByteHeader = 0;
int heli_id = 0;
static byte dataPointer, maskPointer;
static const byte mask[] = {1, 2, 4, 8, 16, 32, 64, 128};
static byte data[4];
void setup() {
pinMode(LED, OUTPUT);
pinMode(statusA, ... |
001ac1b049927cbe8944d0e727ca81fbaf36e3ee | 1e1b29b24c6afd169f3488636ddeb9f5d17da8f2 | /SVAF/layer/CenterPointLayer.cpp | d35ce29ffb6e68c64c45989cb1fa067465b0609c | [
"BSD-2-Clause"
] | permissive | Ewenwan/RVAF | 76e398990e936c7bc85290bfa94e0e9db3705cfd | 4f6dd3e3fa0ca55b43582995b8eff83c864163eb | refs/heads/master | 2021-08-16T14:52:22.149648 | 2017-11-20T02:45:23 | 2017-11-20T02:45:23 | 125,170,276 | 0 | 1 | null | 2018-03-14T07:08:38 | 2018-03-14T07:08:37 | null | UTF-8 | C++ | false | false | 1,093 | cpp | CenterPointLayer.cpp | #include "CenterPointLayer.h"
namespace svaf{
CenterPointLayer::CenterPointLayer(LayerParameter& layer) : Layer(layer)
{
}
CenterPointLayer::~CenterPointLayer()
{
}
bool CenterPointLayer::Run(vector<Block>& images, vector<Block>& disp, LayerParameter& layer, void* param){
CHECK_GE(images.size(), 2) ... |
cee5cff5dc09c07b20192027a0d176420c596453 | eeba96c8cb690bc483e7480bb683ecf41ac7fd9e | /tests/testPasswordAnalyser.cpp | 992154f1dbfc98be1d4b998ee549a64fb65b07c6 | [
"Apache-2.0"
] | permissive | velezladonna/mwc-qt-wallet | 2c49f679db87fbc530a9f1989e35f406ad0c6345 | bd241b91d28350e17e52a10208e663fcb992d7cc | refs/heads/master | 2021-03-27T07:00:49.876985 | 2020-03-09T17:38:03 | 2020-03-09T17:38:03 | 247,798,961 | 1 | 0 | Apache-2.0 | 2020-03-16T19:24:02 | 2020-03-16T19:24:00 | null | UTF-8 | C++ | false | false | 2,368 | cpp | testPasswordAnalyser.cpp | // Copyright 2019 The MWC Developers
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... |
5771de52a3dcb13787cf7b2d83b34bedb47f14b2 | c00c65f5f85bec7f5a20b649cacc1b873fb58b1c | /Assigment1/main.cpp | 39b247cd3699030e189746b19f4dad4a38e11879 | [
"MIT"
] | permissive | ThiagoSBastos/ComputerGraphics | 04031663a7da97567a7cd232b02acdb633cfdd95 | cd3a5925d2d8f31f3a3b75ee5fc798813430004c | refs/heads/main | 2023-07-13T12:13:58.331281 | 2021-08-30T14:34:58 | 2021-08-30T14:34:58 | 397,403,594 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,455 | cpp | main.cpp | #include <GL/freeglut.h>
#include <GL/gl.h>
#include <array>
#include <cmath>
#include <cstdio>
namespace cfg {
static constexpr std::array<int, 2> window_sz = {600, 400};
static constexpr std::array<float, 3> center = {0.0f, 0.0f, 0.0f};
static constexpr std::array<float, 3> up_dir = {0.0f, 1.0f, 0.0f};
static conste... |
3150a70ff82d3d51135aa3fee41de200e5b18ae4 | 3cb635004677c95db974b79b7c2f736d74eeaf17 | /packages/teamplay/src/stores/heightMapStore.cpp | 185737ede0c23faed8e8dfc5dc7216cc5653e8df | [
"Apache-2.0"
] | permissive | Falcons-Robocup/code | 46ca709cf8680edc45494a40dc2db54e579dffe6 | dca3ffdfd7020a9913e6af6b555eac107b38a4ca | refs/heads/master | 2023-02-07T10:47:58.550403 | 2023-01-21T16:29:47 | 2023-01-21T16:29:47 | 102,643,355 | 6 | 7 | NOASSERTION | 2019-09-24T21:05:13 | 2017-09-06T18:22:44 | C++ | UTF-8 | C++ | false | false | 6,364 | cpp | heightMapStore.cpp | // Copyright 2017-2020 Coen Tempelaars (Falcons)
// SPDX-License-Identifier: Apache-2.0
/*
* heightMapStore.cpp
*
* Created on: Nov 9, 2017
* Author: Coen Tempelaars
*/
#include "int/stores/heightMapStore.hpp"
#include <stdexcept>
#include "int/heightmaps/hmAvoidBall.hpp"
#include "int/heightmaps/hmAvoidO... |
e4495c88dda336e48a2564a41b02f829078bc95d | 7baaf0fdd88bbe3c53eb94544847c9f86133494f | /prime1/CSpherePrimitive.hpp | b87b86b7c7fd560f2237916c762b3b59e4626179 | [] | no_license | MetroidPrimeModding/PrimeMemoryDumping | 4962d2813f47953eedbf543c8ade179496c8deaf | 56a70c37f718a51e46a6a1ac366b712fbf384c7b | refs/heads/master | 2023-06-29T07:38:30.163527 | 2021-08-07T21:43:01 | 2021-08-07T21:43:01 | 78,320,277 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 423 | hpp | CSpherePrimitive.hpp | #ifndef DOLPHIN_EMU_CSPHEREPRIMITIVE_H
#define DOLPHIN_EMU_CSPHEREPRIMITIVE_H
#include "game_value.h"
#include "CVector3f.hpp"
class CSpherePrimitive : public game_value<> {
public:
CSpherePrimitive(uint32_t base_ptr, uint32_t ptr_offset = 0) : game_value(base_ptr, ptr_offset) {}
CVector3f origin = CVector3f... |
e808c2eee49a6992750eee74bef1474526d13308 | 803a33aa957a5f584a47acd564d31ec0faf0de8e | /Ryujin/ECS/TransformComponentManager.cpp | 977a8706fa83f28480e690ef8446040a5e6c1826 | [] | no_license | yggdrasil-917/Ryujin | 00d5758ad95290a0dd103b99d33db530b027c010 | 376f2354d13d0be40128b271ef9994a7c7f81f05 | refs/heads/master | 2021-05-15T20:10:44.374984 | 2017-11-14T02:03:41 | 2017-11-14T02:03:41 | 107,832,584 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,864 | cpp | TransformComponentManager.cpp |
#include "TransformComponentManager.hpp"
namespace Ryujin
{
const uint32 TransformComponentManager::INVALID_INDEX = NumericLimit<uint32>::Max();
const TransformComponentManager::Instance TransformComponentManager::INVALID_INSTANCE = { INVALID_INDEX };
TransformComponentManager::TransformComponentMa... |
7bd6331322c7b4e784da41778fda2ab8b2814fa3 | ac5069d2f7cf73d50d9130d36f216e5127be889f | /bundle_tool/frameworks/include/shell_command.h | 2fe6aec2f02ddd5c5d227468b5bba7ae75727e58 | [
"Apache-2.0"
] | permissive | openharmony/appexecfwk_standard | ca28a523372a7e7f342787663b257372d08ceab6 | 8be8ba1414ae75a742c1026d80e33d8ba2ac72eb | refs/heads/master | 2022-07-22T12:28:39.065764 | 2022-05-24T11:56:43 | 2022-05-24T11:56:43 | 400,083,775 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,001 | h | shell_command.h | /*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
012e591d89dd4da42fafa18540ea9c190469df11 | f2789f265fbbeec80cce94045aabaff7e913dfb2 | /test_conformance/commonfns/test_unary_fn.cpp | 91b5c215bf3352323d4a53de088d3f2f7361b189 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | KhronosGroup/OpenCL-CTS | 1ea9d0f8958cede6dbbe354a3bf092e8485d4d64 | c511ac62b095a6d54a34f188aa7e87c62c2fa98a | refs/heads/main | 2023-09-04T05:50:15.872643 | 2023-08-29T16:19:45 | 2023-08-29T16:19:45 | 91,338,943 | 169 | 170 | Apache-2.0 | 2023-09-14T20:49:42 | 2017-05-15T13:06:40 | C++ | UTF-8 | C++ | false | false | 13,104 | cpp | test_unary_fn.cpp | //
// Copyright (c) 2023 The Khronos Group Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law... |
8f1d2f6f6525126155ce0d9a9e61020ed9cae453 | 4d04b7b0a8e9418f729ddee54bda43484657d52f | /Мої/Балда/1/3/Unit2.cpp | 04eb4b3d0348999d5a2775e02a1b84f84c04b505 | [] | no_license | BREAK350/myCProgram-old | 359c021d7bcfa9e44fa831498a417294703a0c1e | 10bbfdd3cadd8c8d91b078591d6d646da20b48cb | refs/heads/master | 2021-01-10T20:04:20.229647 | 2015-01-28T06:51:00 | 2015-01-28T06:51:00 | 29,954,421 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,990 | cpp | Unit2.cpp | //---------------------------------------------------------------------------
#pragma hdrstop
#include "Unit2.h"
#pragma package(smart_init)
//---------------------------------------------------------------------------
TMatrix::TMatrix()
{
n=0;
m=NULL;
p=NULL;
}
//-------------------------------------------... |
f208d98f05f967a92cc70e289e36e46554dafc46 | d5099afcca0de8af1550602ccb675577ab75a6dc | /Source/AITesting/NewAISystemExperiment.cpp | cd58e13f096c01452165f494350a241f9d83bc63 | [] | no_license | Kazuma506/AI-Testing | 9b3acbaed7e9254a14b79e50ea42f6855a4bf39c | 3777442692d3ec9121176a1256f3917b7ab5e7a6 | refs/heads/master | 2020-03-08T11:37:53.534234 | 2018-04-05T03:46:04 | 2018-04-05T03:46:04 | 128,103,715 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 638 | cpp | NewAISystemExperiment.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "NewAISystemExperiment.h"
ANewAISystemExperiment::ANewAISystemExperiment()
{
//locationNames.Add(TEXT("Blacksmith Shop"));
// locations.Add(FVector(5090, -700, 1260));
arrayPosition = 0;
}
void ANewAISystemExperiment::MoveTo... |
7b1f0a2db13a35ece760be96a70c096890ca4916 | a8cb0193efeab292ab03aedede8070ba86e77073 | /Week 3 Cstrings/Cstrings_Characters_C++Strings.cpp | f0e41ccae048cca12027411d85ca9c549dbd6aa4 | [] | no_license | elzaksspro/CS22B-Data-Structures | 7473efaad7455e6ac34b05fae6e1a729ea72d409 | 23d89ad2ed97bf728756123c02d4d00beda931a3 | refs/heads/master | 2023-03-19T12:11:14.389040 | 2017-10-27T03:02:36 | 2017-10-27T03:02:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,209 | cpp | Cstrings_Characters_C++Strings.cpp | // This program demonstrates characters, c strings, and c++ Strings
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
// explain these include files:
#include <cctype> // library for character functions
#include <cstring> // library for c strings
#include <string> // library for c++ strings
using namespa... |
1291cf68fe51a6fe76639d1cebbbc10c95a91277 | e695a6ac27944d0d1dcbc38a23f3491a07b684bc | /CPP/CPP_Primer/chapter3/basic_pointer_operation.cpp | 235d599a3d6507f56bae559155d7efb3afb8f889 | [] | no_license | aresowj/ExerciseCodes | f0775f2b21ebd91d3c8009d0eb18fb7ef79d8da6 | c4478394e5fe9c6ea1c9e7b58ae0329c316a5f4a | refs/heads/master | 2023-06-11T20:10:41.052352 | 2023-06-06T18:39:14 | 2023-06-06T18:39:14 | 40,627,916 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 267 | cpp | basic_pointer_operation.cpp | #include <iostream>
using std::cout;
using std::cin;
using std::endl;
int main()
{
int arr[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
int *e = &arr[10];
for (int *b = arr; b != e; ++b)
cout << "Value at " << b << " is " << *b << endl;
return 0;
}
|
1cb949b4f3f7e42b40da284e1f7d301aa6ce5e56 | 60619a8daa4603fb65f4f86f383a6ddde841e326 | /2014-04-09/J2.cpp | 9d352653be746986fe903fd3bfd98580a4b0add5 | [] | no_license | MYREarth/secret-weapon | f4b1d4b995951546b2fb1e40190707a805fb88b5 | 77f3ff1111aafaaae8f56893b78e3be9134437a9 | refs/heads/master | 2020-05-22T02:29:43.024017 | 2015-10-03T08:17:46 | 2015-10-03T08:17:46 | 186,199,326 | 3 | 0 | null | 2019-05-12T01:46:13 | 2019-05-12T01:46:13 | null | UTF-8 | C++ | false | false | 1,515 | cpp | J2.cpp | #include<map>
#include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>
using namespace std;
const int N = 100005;
map<int, long long> mem[N];
long long solve(long long n, long long m, long long k) {
if (mem[n].count(m)) {
return mem[n][m];
}
long long ret = 0;
if (k < n) {
... |
2660147c533595fc46eb644c26f00e56676903b6 | 70450f0c551adf47b450468e424f4f90bebfb58d | /serialization/private/test/test_shared_ptr_132.cpp | e671b97b7de30b3baa56062c7fdd4589b7e4c8e4 | [
"MIT"
] | permissive | hschwane/offline_production | ebd878c5ac45221b0631a78d9e996dea3909bacb | e14a6493782f613b8bbe64217559765d5213dc1e | refs/heads/master | 2023-03-23T11:22:43.118222 | 2021-03-16T13:11:22 | 2021-03-16T13:11:22 | 280,381,714 | 0 | 0 | MIT | 2020-07-17T09:20:29 | 2020-07-17T09:20:29 | null | UTF-8 | C++ | false | false | 7,314 | cpp | test_shared_ptr_132.cpp | /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// test_shared_ptr.cpp
// (C) Copyright 2002 Robert Ramey- http://www.rrsd.com - David Tonge .
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or cop... |
23a1d7eb506dc10a62d9b4f6dbbb1ca7baae1542 | 05bafec1c5bb9ab3fc435b6148386304575d6b44 | /applications/integrationtests/mechanics/CreepLaw.cpp | 76988580713c8236d11c016a34ef33d1152af3c2 | [
"BSL-1.0"
] | permissive | nutofem/nuto | 7b816b645b0a855bc393065798d999c5d14a59b2 | c416c4f1ac954e783a9f7e5bf0bb97758c75b6ee | refs/heads/develop | 2020-04-12T03:56:09.670125 | 2018-09-19T05:52:34 | 2018-09-19T05:52:34 | 63,241,285 | 20 | 7 | BSL-1.0 | 2018-09-19T05:52:35 | 2016-07-13T11:42:57 | C++ | UTF-8 | C++ | false | false | 14,926 | cpp | CreepLaw.cpp | #include "BoostUnitTest.h"
#include "nuto/base/Group.h"
#include "nuto/math/EigenSparseSolve.h"
#include "nuto/mechanics/cell/Cell.h"
#include "nuto/mechanics/cell/CellInterface.h"
#include "nuto/mechanics/cell/SimpleAssembler.h"
#include "nuto/mechanics/constitutive/LinearElastic.h"
#include "nuto/mechanics/constitu... |
e14e8fd5ca1cc7792c8ad47fc94b1c004306f052 | 3656058d94337045214c6f7d98220087b1fdceda | /生辰计算.cpp | 6e01d752078ab5bf7d44f0fcc5ef957e461865f6 | [] | no_license | mbaronin/clesson | 0873958c96fcdb5e30d0011722a4da395848b2f8 | 448bd72ac4b3832ca27987c62fc9119d5227b564 | refs/heads/main | 2023-08-21T22:10:58.818217 | 2021-10-13T06:22:45 | 2021-10-13T06:22:45 | 397,696,371 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 420 | cpp | 生辰计算.cpp | #include<stdio.h>
int main()
{
int yb,mb,db,y,m,b,count;
int yn=2021,mn=8,dn=3;
int b[12];
printf("请输入生日(1997-03-28):");
scanf("%d-%d-%d", &yb, &mb, &db);
for (y=yb;y<=yn,y++){
0==y%400 || (0==y%4 && 0!=100) ? b[1]=29 : b[1]= 28;
}
//太难了不做了!!
/*
for (i=0; putchar() !='\n';i++... |
ecadcc0c1f416a83d981473a5105e6cadc6b412d | f97ce0a588e023675eaa980f2f105f0a9c25ce18 | /UVa/v103/10302.CPP | ae7b953ce5b8c0a731c1706e8b91618d001b1520 | [] | no_license | anindya028/Programming-Contest-Problems | a5c49653d990391a6e2003f2ec9d951222cabbe2 | 7038b6267432189de72539ef5ad046d38e730ee8 | refs/heads/master | 2023-03-17T06:27:38.339049 | 2021-02-23T22:58:06 | 2021-02-23T22:58:06 | 277,399,320 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 290 | cpp | 10302.CPP | //Easy Math
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
//#define Long __int64
//#define Long long long
int main()
{
unsigned long long n;
while(scanf("%llu",&n)==1)printf("%llu\n",(n*(n+1)/2)*(n*(n+1)/2));
return 0;
}
|
58ee617642abef25557022f7592602a1f2163abe | dced74f929ae07d29a0d9d99be4db20fc68458d9 | /Cpp/basics/problem.cpp | a86990ee80e79b21473d4dceb65593af9a4f96a8 | [] | no_license | goyalankit/basic_programs | 7f84d5e0b1faff7793418f557313b522e9fd4245 | 6e55d3382237036afc1375734978bb0e27c41ae8 | refs/heads/master | 2021-01-17T07:06:10.921650 | 2017-01-08T00:06:24 | 2017-01-08T00:06:24 | 12,975,755 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,197 | cpp | problem.cpp | /*
* =====================================================================================
*
* Filename: problem.cpp
*
* Description:
*
* Version: 1.0
* Created: 02/05/2014 11:38:04
* Revision: none
* Compiler: gcc
*
* Author: Ankit Goyal
* Organization:... |
060005c21dde2537d566f048352bc0eab43eca91 | 3f56fbdb9c59e6e38e43f49f3c70c01b706b0f57 | /lib/resultsmodel.h | 6bb7c5107e453acf4edb2695a27d3030b4f48387 | [] | no_license | KDE/milou | f84cb2064e882859ea98c72936dff9a480071e57 | 06d1086e2b32835a420b41615618675784e9e702 | refs/heads/master | 2023-08-31T16:12:13.016001 | 2023-08-28T02:59:25 | 2023-08-28T02:59:25 | 42,723,458 | 12 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 414 | h | resultsmodel.h | /*
* SPDX-FileCopyrightText: 2019 Kai Uwe Broulik <kde@broulik.de>
*
* SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
#pragma once
#include <KRunner/ResultsModel>
namespace Milou
{
class ResultsModel : public KRunner::ResultsModel
{
Q_OBJECT
public:
explicit Re... |
4516206d797233afac5b748d7fa10b199903dbcc | 33f8b4e60bcc08eeb90df9a66ed65b13ed81ec10 | /genericite_et_Cpp/TPs/00/exo1/matrix.hh | 8d7b0818faac84b50ca677c66e35118721ef5091 | [] | no_license | technolapin/E4 | 4e4aa0a00a3012c59db24c49d3e34bc427b43b5d | a79c179493aff43fa1c8305a03237846dcff0428 | refs/heads/master | 2020-07-18T13:46:16.912579 | 2020-02-26T12:09:01 | 2020-02-26T12:09:01 | 206,256,837 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,534 | hh | matrix.hh | class matrix
{
private:
int nl;
int nc;
int* data;
public:
matrix(int nl, int nc)
{
this->nl = nl;
this->nc = nc;
this->data = new int[nl*nc];
}
matrix(const matrix& maite)
{
this->nc = maite.nc;
this->nl = maite.nl;
this->data = new int[maite.nc*maite.nl];
for (int i = 0; i... |
17dfe63ed24be552d265b62beb8ea4efee08c9e9 | b2ada748d391209322edfa2096bf9fcf946c7f0b | /1DAM/programacion en c++/ejercicios y practicas/UD3/ecuacion.cpp | 5489e40c7a5836e56e3cb47257447b6c18988c66 | [] | no_license | antonioguerrerocarrillo/1DESARROLLO-DE-APLICACIONES-MULTIPLATAFORMA | c790e9fcd1664485178c2c43d250180e8b667ce6 | 2906b345775bacc2d29a4ee9670597c781d5c7e4 | refs/heads/main | 2023-03-01T22:46:28.126945 | 2021-02-05T00:15:15 | 2021-02-05T00:15:15 | 336,117,504 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,235 | cpp | ecuacion.cpp | #include <iostream>
#include <cmath>
using namespace std;
/**
* @brief funcion que le pedira los datos al usuario
* @info la pasamos por referencia ya que vamos a cambiar el valor de estas
* @pre le pasamos a,b y c y lo hacemos por referencia ya que vamos a cambiar el valor de estas
* @post al pulsar la tecla ca... |
7153d96560e3a2d58adc71146aaad81abb7de85a | 403cf1ab051258cba2feff840d4d6f24ddd9581a | /inc/CHakHomogenize.h | a895fdf12db88aff6aca1065d29fe97675c007d5 | [] | no_license | jiamingkang/bles | c731ab8869ba210da645e6d4ca3f00204d4d23d5 | 939394f241f8e01a296d38ff52feac246793cbc9 | refs/heads/master | 2021-01-22T09:43:08.072469 | 2015-03-20T16:01:49 | 2015-03-20T16:01:49 | 39,889,501 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,174 | h | CHakHomogenize.h | /*
* CHakHomogenize.h
*
* Created on: 22 Feb 2015
* Author: knai20-admin
*/
#ifndef CHAKHOMOGENIZE_H_
#define CHAKHOMOGENIZE_H_
const static double BHom[24] = {-1.0, 0.0, 1.0, 0.0, 1.0, 0.0, -1.0, 0.0,
0.0, -1.0, 0.0, -1.0, 0.0, 1.0, 0.0, 1.0,
... |
a58f8af3f532137aabce571176d21cf7b95fe22f | d1a70aea21c7aea899c51f8d548f72464faea29f | /Ribe2/TobiHightArrow.cpp | 536472840536f4f021ee2616925c49c6dde8e97d | [
"MIT"
] | permissive | ttlatex/SpiritualBlade-GeraHa | a3af09a08c21bcd77bf31436503d09f5650a0fa1 | 57ff8a7335a29adbe74f95a75d934291e9cba23d | refs/heads/master | 2021-04-28T21:07:05.335303 | 2017-11-17T00:34:53 | 2017-11-17T00:34:53 | null | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 478 | cpp | TobiHightArrow.cpp | // TobiHightArrow.cpp: TobiHightArrow クラスのインプリメンテーション
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "TobiHightArrow.h"
//////////////////////////////////////////////////////////////////////
// 構築/消滅
//////////////////////////////////////////////////////////////... |
1602d84bd7c165eba02adfff31a8ec67e6900fb6 | 1497386b0fe450e6c3881c8c6d52d9e6ad9117ab | /trunk/CrypTool/DiffieHellmanParty.h | 7ba5857a56f5fcb5d82e2f76cfd105b76d54b691 | [
"Apache-2.0"
] | permissive | flomar/CrypTool-VS2015 | 403f538d6cad9b2f16fbf8846d94456c0944569b | 6468257af2e1002418882f22a9ed9fabddde096d | refs/heads/master | 2021-01-21T14:39:58.113648 | 2017-02-22T14:10:19 | 2017-02-22T14:10:19 | 57,972,666 | 0 | 5 | null | null | null | null | ISO-8859-1 | C++ | false | false | 3,239 | h | DiffieHellmanParty.h | /**************************************************************************
Copyright [2009] [CrypTool Team]
This file is part of CrypTool.
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 a... |
3114e62ea955912c7d5336ee0da54be3a35fa02e | cb6432ee858b00f8ad336a87fc55922cb7c3e75c | /CS13500/Date.cpp | 9d913ae11ed18da1d7538994f9c15b48942698b6 | [] | no_license | hjiang4332/cuny2x | e51ae078cc5514de62c5a557f1d45ef9de5cfa9e | c1a37876e4f11675edccd78c4e54fedbce20a494 | refs/heads/master | 2021-05-02T05:03:12.872234 | 2020-01-14T08:36:00 | 2020-01-14T08:36:00 | 120,911,471 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,648 | cpp | Date.cpp | #include <iostream>
#include "main.h"
#include <cstdlib>
using namespace std;
/*Date::Date(int yearValue, int monthValue, int dayValue){
year = yearValue;
month = monthValue;
day = dayValue;
testDate();
}*/
Date::Date(int yearValue, int monthValue, int dayValue): year(yearValue), month(monthValue), day(... |
f70d76f5c3ec809c4c8c066caaaa8638f51d6010 | 10ed28a1f87820db9e5482a67cb1802bd2c8b0b7 | /greedy/chooseActivity/chooseActivity.cpp | 4f41346e13db4e40e78ff392d6ca5d1a2f106f34 | [] | no_license | vildenH/algorithm | 583a4376ab513ca1022bed79214a2d975c827b94 | 40362b14508229cdc3206b4fee0706125ff7ccaf | refs/heads/master | 2021-01-22T23:01:29.065913 | 2017-08-21T01:02:32 | 2017-08-21T01:02:32 | 92,795,589 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,246 | cpp | chooseActivity.cpp | #include <stdio.h>
#include <iostream>
using namespace std;
template <class Type>
void GreedySelector(int n, Type s[], Type f[], bool A[]);
const int N = 11;
int main()
{
//从下标1存储活动开始时间
int s[] = {0, 1, 3, 0, 5, 3, 5, 6, 8, 8, 2, 12};
int f[] = {0, 4, 5, 6, 7, 9, 9, 10, 11, 12, 14, 16};
bool A[N + ... |
758b16b0dc999a4da405be17c798915f6eccd612 | f1a3f24bd38cd3cd0ab94c92fce82e5847d10d70 | /src/ledger/BalanceHelperImpl.cpp | 88deaad26b2070a19fb382726918b7c319c0c456 | [
"MIT",
"BSD-3-Clause",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | gusiri/swarm-core | 7329447e95f621f2a3d64a772f972b620cd3026c | ae47a1eaaae5bc55cd933a365646292a5b477304 | refs/heads/master | 2020-04-06T09:16:53.247487 | 2018-10-05T14:19:04 | 2018-10-05T14:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,154 | cpp | BalanceHelperImpl.cpp | #include "BalanceHelperImpl.h"
#include "ledger/LedgerDelta.h"
#include "ledger/StorageHelper.h"
#include <memory>
#include <xdrpp/marshal.h>
#include "util/basen.h"
using namespace soci;
using namespace std;
namespace stellar
{
using xdr::operator<;
BalanceHelperImpl::BalanceHelperImpl(StorageHelper& storageHelper... |
81a0e7069845b187dac4b526d8a583044dbeced0 | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-waf/source/model/IPSetDescriptor.cpp | 29770728923d86898c2399edbd66fc4f08597232 | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 1,406 | cpp | IPSetDescriptor.cpp | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf/model/IPSetDescriptor.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace... |
83f196042596238bd4fb2dcdaee649edb751d553 | 1beb795879861ef63eb189d646e73895eba9c323 | /example/ExampleUtil.h | 7fc694fd422cedb194224bc0bac723a6e70060c5 | [] | no_license | kelingjie1/BooksDocuments | 7f80979913429fe744bdf84f22664267c9fbe7d0 | ba7ca8230e9230e7984ddfa0cdff9d2ac9fc2823 | refs/heads/master | 2021-05-14T16:02:32.052018 | 2019-08-26T11:20:09 | 2019-08-26T11:20:09 | 116,009,759 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,045 | h | ExampleUtil.h | //
// ExampleUtil.hpp
// BookExamples
//
// Created by lingtonke on 2018/3/9.
// Copyright © 2018年 lingtonke. All rights reserved.
//
#pragma once
#include <string>
#include <iostream>
#include <QFile>
#include <QImage>
#include <QOpenGLFunctions_3_3_Core>
#include <QOpenGLExtraFunctions>
#include <glm/glm.hpp>
#i... |
7feb5ed083e375c02ad24cfc3da4f2370c1337ce | fdf7babb39893cbbb6550e46449b5eaa6cee674c | /room.h | 677168ef1cd02c98f76cfaa157636d222073015c | [] | no_license | BradleyMcKee/CS250SemesterProject | 70875d9c5e111e17221f02cf685ffc27bd41488e | 1267f90eb0798f0195060f6528b6c6a5f32b698d | refs/heads/master | 2021-08-23T01:09:23.084352 | 2017-12-02T02:34:22 | 2017-12-02T02:34:22 | 111,479,127 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 170 | h | room.h | //Bradley McKee
#ifndef ROOM_H
#define ROOM_H
#include <string>
using namespace std;
class room
{
public:
room()
{
}
string vacancy = "vcnt";
};
#endif
|
f598b6aa3dcd7288785398a660cae44ac898440e | acea7803f63b5ea6d5b4b4487433fc575c50687e | /HomeEasyByNoopy.h | 126e988a4b18eeebf8f1069c6715b56e5e771f43 | [] | no_license | landru29/HomeEasyByNoopy | 274f9f424af1af0afd7d4a0169e4c30d484af27f | 36b42b1c1461a84430c6fb4705f974063a64cb35 | refs/heads/master | 2021-01-10T08:06:48.436044 | 2018-06-14T18:47:11 | 2018-06-14T18:47:11 | 54,506,707 | 5 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 2,107 | h | HomeEasyByNoopy.h | #ifndef HomeEasyByNoopy_h
#define HomeEasyByNoopy_h
#define HE_ON 1
#define HE_OFF 0
#define HE_OPEN 1
#define HE_CLOSE 0
#define HE_GLOBAL 1
#define HE_NOT_GLOBAL 0
#define HE_DEVICE_1 0x00
#define HE_DEVICE_2 0x01
#define HE_DEVICE_3 0x02
#define HE_DEVICE_4 0x03
#define HE_DEVICE_A ... |
a3faebc86adce35011fc5d10f9c5e4bcebf43606 | 3fc73aebd994a39fd3e0473fc9da4acf4de5eeb7 | /simplekv_test_readwrite/KeyValueLog.h | dfdf62e0705504e308d09920c729ce576326aafe | [] | no_license | H00ly666/simeplrkvsvr | 244d83d577d2e7424d98af48c310adc5e64ed2ed | c49d0de69be0779814a741d77fc86b3492f345ee | refs/heads/master | 2020-05-31T05:09:33.531656 | 2019-08-02T08:56:30 | 2019-08-02T08:56:30 | 190,113,486 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 8,798 | h | KeyValueLog.h | /**
* Created by 刘嘉辉 on 11/22/18.
* Copyright (c) 2018 刘嘉辉 All rights reserved.
* @brief To immplmente mmap keyFiles and get fd of valueFiles.
*/
#ifndef ENGINE_KEYVALUELOG_H
#define ENGINE_KEYVALUELOG_H
//#include <stdin.h>
#include <string>
#include <string.h>
#include <stdlib.h>
#include <sstream>
#include <io... |
f124d5d630362ec0e296379d0c9230aea88ee9e1 | da624ce03ab848154eefce4f04d397eba3e67006 | /C++/exercise-7/youtubeplaylist.hpp | 21246d2736ca31a25ecd76b3f4a47afc72887831 | [] | no_license | sarapetrovic2350/Object-oriented-programming | d4895941c8936f2b38b755101d6bb63b749acbc7 | 328f45ca4b351fe58af8a52dbe0b74b31953e047 | refs/heads/main | 2023-04-24T15:37:21.747567 | 2021-01-09T00:04:22 | 2021-01-09T00:04:22 | 324,605,379 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,910 | hpp | youtubeplaylist.hpp | #ifndef YOUTUBEPLAYLIST_HPP_INCLUDED
#define YOUTUBEPLAYLIST_HPP_INCLUDED
#include "dinstring.hpp"
#include "videolist.hpp"
class YoutubePlaylist : public VideoList{
private:
DinString naziv;
DinString autor;
public:
YoutubePlaylist() : naziv(""), autor("") {}
YoutubePlaylist(... |
ff3b8bf5be01eb224dff623c10ba91d438024a39 | 29d63e19acace97be302db9819323b352668e9f4 | /main.cpp | a2f077f25c40d3ed532c0cc14498ca640969cdc0 | [] | no_license | doubleboggy/script_engine_irco | ed34d9311f074f713b5e2742c24734deda6fe6ea | cb54e74de1664a14aa8a09c90cd98e7f0e023e3c | refs/heads/master | 2020-04-02T05:42:42.968143 | 2018-10-22T06:59:40 | 2018-10-22T06:59:40 | 154,099,567 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 227 | cpp | main.cpp | #include <iostream>
#include "ParseDriver.hpp"
int main(int argc, char *argv[]) {
if (argc != 2) {
printf("\n\nusage: %s <filename>\n\n", argv[0]);
return 1;
}
ParseDriver driver;
driver.run(argv[1]);
return 0;
}
|
e4a4e86c6f449a0ecda0f9f26c5f0134636e5d1c | 48ace7e403cfc6b51598f1da247a64aa2150d847 | /FZX_Expression_Evaluation.cpp | 1e5e7a569a5e04d23afcd1b677eca81a627f4beb | [] | no_license | Hankoki/Data-Structure-Experiment-in-XJTU | 014bede11addfc1f37480c23a3fb02206e952882 | fba66399f1d3ece4228408de516ee498549d2376 | refs/heads/main | 2023-02-08T00:51:04.073261 | 2020-12-19T01:52:53 | 2020-12-19T01:52:53 | 322,744,704 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,612 | cpp | FZX_Expression_Evaluation.cpp | //程序名:利用栈进行表达式求值
//开发环境:VS2019
//最后修改:2020/12/19
//存在问题:魔鬼数字,未初始化,未free分配的内存,单字母变量过多
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#define STACK_INIT_SIZE 100
#define STACKINCREMENT 10//不加分号
#define OVERFLOW -2
#d... |
ea6aed2abe3f03e85054b8427cefd2d80408a9e4 | af89790dd0c9f5e45053aa70f036326222ff90f3 | /Zephyr/src/zephyr/core/DispatcherTask.hpp | 1ea31a349d603e996155c991620faaf4901ba13a | [] | no_license | marcinlos/zephyr | cc6ede5903bb7842543a22980dcf1bfe94ff0ae2 | b39e146f46f905caf2f8c1d7d40029b677d505a0 | refs/heads/master | 2016-09-06T13:31:02.777957 | 2013-09-24T01:45:13 | 2013-09-24T01:45:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,039 | hpp | DispatcherTask.hpp | /**
* @file DispatcherTask.hpp
*/
#ifndef ZEPHYR_CORE_DISPATCHERTASK_H_
#define ZEPHYR_CORE_DISPATCHERTASK_H_
#include <zephyr/core/Task.hpp>
#include <zephyr/core/MessageQueue.hpp>
#include <zephyr/core/MessageDispatcher.hpp>
namespace zephyr {
namespace core {
/**
* @ref Task implementation that handles messa... |
aadf4724a312d9595eed4eb20da8c7bcfa155d87 | bbecaaff08cb8b91035d48d9a9b69f16844ac1c1 | /include/G4CascadeChannelTables.hh | ac9ad9a2ebd164e8282684df85cdf4e4fca3893e | [] | no_license | gxbert/gxbert | 91889e25273144ad5c6fb82beb24cd7f1ebce296 | 76d2434d0488d309b098ef44dee011c6fb48d14a | refs/heads/master | 2021-04-15T10:26:30.993776 | 2018-07-12T18:38:35 | 2018-07-12T18:38:35 | 126,356,840 | 1 | 1 | null | 2018-07-12T20:58:06 | 2018-03-22T15:34:55 | C++ | UTF-8 | C++ | false | false | 3,694 | hh | G4CascadeChannelTables.hh | //
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration... |
e0fe686f3c80125da4f4afe402cda339abfe8db9 | b11b3bf4f96f295c53323d54fb346dde7b949f8d | /GameClear.h | 9b840ba4e4ad1ff5eb85aeb14afe2d536507a8e9 | [] | no_license | TangorNeko/FlightGame | a56ac7f4effbf0182905eb08efd37a38f9f8708d | b39f43d4f39616b9eb68cdd62a1055a950cc9975 | refs/heads/master | 2023-06-22T23:30:55.546941 | 2021-01-26T08:08:42 | 2021-01-26T08:08:42 | 313,158,570 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 486 | h | GameClear.h | #pragma once
class Player;
class GameScoreManager;
class GameScene;
class GameClear : public IGameObject
{
public:
void OnDestroy();
bool Start();
void PostUpdate();
Player* m_player = nullptr;
GameScoreManager* m_gameScoreManager = nullptr;
GameScene* m_gameScene = nullptr;
prefab::CFontRender* m_fontRender =... |
32649a239f3c08f4e80acdba69cc3cf33d2c1492 | 211f01b13e9165bde8e3a87128ed3fe74113b536 | /C++/문제_14650번.cpp | fb520fac3bfec15586f4ae3e01f4ea83b9c525d9 | [] | no_license | portfolioExpert/BackJoon | 9ee9d631322443e856d7d5a14f8f7379a32f9e05 | e38c7a1ac9f5e9ddc5d84ae9135791fc7c701e52 | refs/heads/master | 2023-08-03T10:21:41.119294 | 2023-07-24T22:33:17 | 2023-07-24T22:33:17 | 223,161,598 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 605 | cpp | 문제_14650번.cpp | //문제 14650번 걷다보니 신천역 삼(Small) -> 백트래킹
int n;
long long sum = 0;
int cnt = 0;
void dfs(int index){
if(index == n){
if(sum % 3 == 0)
cnt++;
return;
}
for(int i = 0;i<=2;i++){
sum*=10;
sum+=i;
dfs(index + 1);
sum-=i;
sum/=10;
}
}
int main(... |
5c011db5df6dfe5b95e6c64bbc1c346ac99388d9 | f8c68c66f1072dae95bd7ee731d8b2514bcfc61d | /helper/qkd-net-stack-helper.h | 001444035ebeae42b534a6192ee22c7d55e93cec | [] | no_license | StuWjy/qkdcns | 12d62245c6040414139e5021f58fd72346e8194e | b88acdf43cd04d289f44c8fbc0589e88580aaa61 | refs/heads/main | 2023-07-26T15:06:10.426205 | 2021-09-01T02:15:57 | 2021-09-01T02:15:57 | 396,279,069 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,681 | h | qkd-net-stack-helper.h | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2021 Innovation Academy for Microsatellites of CAS
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Found... |
ec06df731c656840467f9aa6208c6d7e2721762d | d81c7d67a73ba52bf6d5954fab38262fef4279c7 | /sorting_algo_comparison/sorting_algo_comparison1/Element.signed/Element.cpp | 6a41366133fb04ef94f2f7a1fc81df620ba55b49 | [] | no_license | manika1511/cmpe180-92-data-structures-C- | 66eebc5f7c697ab9eaf812f77a6341756c5eaa6e | 31711dcb71a5515cf3bdcf0887a65bd9de474603 | refs/heads/master | 2021-01-23T05:56:12.132569 | 2017-06-01T20:27:24 | 2017-06-01T20:27:24 | 93,001,199 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,290 | cpp | Element.cpp | /*
*Assignment #12: Sorting Algorithms
*Author : Manika Kapoor
*Student ID : 011539203
*/
#include <iostream>
#include "Element.h"
using namespace std;
long Element::copy_count = 0; //static variable to store copy constructor calls
long Element::destructor_count = 0; //static varia... |
1a3778afb0fb66b995b21c59343540872b29b823 | ca0b8d79fbce09ecbab4b9279fb230c2a7ad370a | /Esami/2008-2009/Soluzioni/a.6ric.2009.cpp | 0024112ead0a8cd21fe5c8f5750003a56794297c | [] | no_license | FIUP/Programmazione-1 | 6523e4d7a5c64370eef5b7ac8e6c5687b620ffd8 | a897af997a5ded0d6e167f9f03d846d54a161add | refs/heads/master | 2021-06-03T16:22:01.190618 | 2020-09-30T20:57:12 | 2020-09-30T20:57:12 | 80,129,830 | 23 | 39 | null | 2020-09-30T20:57:13 | 2017-01-26T16:01:07 | C++ | UTF-8 | C++ | false | false | 1,978 | cpp | a.6ric.2009.cpp | #include<iostream>
using namespace std;
struct nodo{int info; nodo* next;
nodo(int a=0, nodo*b=0){info=a;next=b;}};
struct coppiaL{nodo* a,*b;
coppiaL(nodo*c=0,nodo*d=0){a=c;b=d;}};
nodo*riempi(int k)
{if(!k)
return 0;
return new nodo(k, riempi(k-1));
}
void stampa(nodo*L)
{ if(L)
{ cout<<L->info<<" ";
stampa(L... |
1988383ab45a59790c2aa1437731bef80e180920 | 77ca225abac3091fd9d6efc7b2b0b58d2d85ff03 | /ata_host.h | 51e2f3edeb7b13871fbf12c2ed3bcd9e6e7c5273 | [] | no_license | yaniv-x/nox | 6d9a7f1bdce8535b8ef60569b46c4ec9a5a2af07 | dc03b10f8f184e5ff12372d18f16fd31e19f392d | refs/heads/master | 2020-09-14T02:25:56.408832 | 2019-12-02T10:11:16 | 2019-12-02T10:11:16 | 222,984,760 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,995 | h | ata_host.h | /*
Copyright (c) 2013-2017 Yaniv Kamay,
All rights reserved.
Source code is provided for evaluation purposes only. Modification or use in
source code for any other purpose is prohibited.
Binary code (i.e. the binary form of source code form) is allowed to use for
evaluation purposes only. Modi... |
c96ca346afa7f93509508fdf7b011a502a4b2202 | 6ccff9f0cc190526f55bc8b1fce5f646c87308d7 | /adRec-5/src/ofApp.h | f24ce51fa2fed823f82f3cbd89e54c2414e4f4f2 | [] | no_license | khniehaus/Assembling-Desire | f57842bb0ffce9d6301ae80b96cc6126f9214a2f | 1cb5dcc1cdefbdcd38862587919a532727d6d2e2 | refs/heads/master | 2020-07-20T12:51:16.633160 | 2016-09-11T19:30:06 | 2016-09-11T19:30:06 | 67,947,988 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 609 | h | ofApp.h | #pragma once
#include "ofMain.h"
#include "ofxOsc.h" //system communication
#include "ofxOMXPlayer.h" //for playing videos on the Raspberry Pi
#define PORT 12435 //define osc receiver port, must be consistent with port number in Processing
class ofApp : public ofBaseApp{
public:
void setup();
void update();
... |
2ad0d654e52c4653a75bab197c8ae2a64327957e | 635c344550534c100e0a86ab318905734c95390d | /wpilibc/src/main/native/cpp/simulation/ADXL362Sim.cpp | ac5bb5a0267859847dd8c9580535a81547b5e9e6 | [
"BSD-3-Clause"
] | permissive | wpilibsuite/allwpilib | 2435cd2f5c16fb5431afe158a5b8fd84da62da24 | 8f3d6a1d4b1713693abc888ded06023cab3cab3a | refs/heads/main | 2023-08-23T21:04:26.896972 | 2023-08-23T17:47:32 | 2023-08-23T17:47:32 | 24,655,143 | 986 | 769 | NOASSERTION | 2023-09-14T03:51:22 | 2014-09-30T20:51:33 | C++ | UTF-8 | C++ | false | false | 758 | cpp | ADXL362Sim.cpp | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "frc/simulation/ADXL362Sim.h"
#include "frc/ADXL362.h"
#include "frc/simulation/SimDeviceSim.h"
using namespa... |
eb411faad430f79e8175183723999ce194a8b018 | 087c08f2453d62da46ec0a31855ac7dc1e94a64e | /muduo_se/test/EventLoop.cc | 28c246cb351aea136cc0fdd62ff15aba63a6de0f | [] | no_license | ILoveYukino/muduo_se | 7ad255c453d8b956303074b29dd78e85d5e1273a | 2c731c5e2dafff181bf29b94413b9a26c7401de2 | refs/heads/master | 2023-03-15T00:42:35.669672 | 2021-03-20T03:46:31 | 2021-03-20T03:46:31 | 318,942,187 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 92 | cc | EventLoop.cc | #include "net/EventLoop.h"
#include <iostream>
int main(){
EventLoop a;
a.loop();
} |
96c289f0e2fb7290da5d78331a4eb39213d53362 | 7e5bd27ebdc180ba3c9e1c8bdca9e2dd2e4b476e | /Hardware/obsolete/thermostatNode/thermostatNode.ino | 2ae7e557edc35f2c85ddba99d21a351d2056d17d | [] | no_license | emmaanuel/EcoPlug | 4b8207ef9f6518e699fd3f1335b00a7b75ce8931 | 796a6b62fb9a7b4bfbe0f5fe02e4915da1cd8081 | refs/heads/master | 2020-04-12T01:29:33.712592 | 2017-02-05T16:10:24 | 2017-02-05T16:10:24 | 35,061,615 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,954 | ino | thermostatNode.ino | #include <RFM69.h> //get it here: https://www.github.com/lowpowerlab/rfm69
#include <SPI.h>
#include <LowPower.h> //get library from: https://github.com/lowpowerlab/lowpower
#include <ECOCommons.h>
#include "U8glib.h"
#define NODEID NODE_THERMOSTAT //unique for each node on same network
#define FREQUENCY ... |
384403d6f01f31f92a97fec4e722ca663edba7df | 7c13bb60c18b43b9e60d44f676a50c0c62279cb7 | /Game_running_cat/Game_running_cat/first_game_page_ui.cpp | 35ebfdb7e202a540673ace7c1f32b67e72d3ebba | [] | no_license | nayoon030303/Game_running_cat | d465245c97861842d72c4515da44247627b4cb86 | 359b296761668d5e418cd586f6fabf0e05776d43 | refs/heads/master | 2023-03-15T00:25:42.565490 | 2021-03-01T04:47:05 | 2021-03-01T04:47:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,748 | cpp | first_game_page_ui.cpp | #include "global.h"
#include <tchar.h>
#include "first_game_page_ui.h"
#define STAGE_UI_WIDTH 1510
#define STAGE_UI_HEIGHT 60
#define STAGE_UI_CAT_WIDTH 40
#define STAGE_UI_CAT_HEIGHT 40
FirstGamePageUI::FirstGamePageUI()
{
HDC hDC = GetDC(NULL);
int nLogPixelsY = GetDeviceCaps(hDC, LOGPIXELSY);
ReleaseDC(NULL, h... |
bba16eabc6d01160af6b6f60773c3347a6cf39c6 | 33150d08da648803df7ecd4e52b200a6a27f88a8 | /INFO-F209/Project/Phase3/SRC/GUI/menuoption.cpp | 41541440c42ab12724e3bb401d406a9debb1cf64 | [] | no_license | stsana/Project-ULB | bea666875de6e6cd147206871915241a0e1c2165 | de8c4cdee149598e0f8e672d45538f42bef4cfc9 | refs/heads/master | 2023-03-16T00:17:29.790083 | 2018-02-03T20:47:53 | 2018-02-03T20:47:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,931 | cpp | menuoption.cpp | #include "menuoption.h"
#include "ui_menuoption.h"
MenuOption::MenuOption(QWidget *parent) :
QDialog(parent),
ui(new Ui::MenuOption)
{
ui->setupUi(this);
ui->playButton->setEnabled(false);
this->movie = new QMovie("../GUI/test.gif");
ui->gifLabel->setMovie(movie);
movie->start();
this->... |
13092a673f9d86bb6dc6fbfbb4a39e6a27caa713 | d928143913c7b298b7bc637c2dcfa2ae617229e7 | /src/Menge/Account.h | 25cc769100ccbee283137a14d56016aaaccc73c3 | [] | no_license | hackerlank/Mengine | d7e649c29ab6cfd861bd85c75e514939ba7a09d6 | 108491a9ef86946fc4abed0662b0beafbde4fda4 | refs/heads/master | 2021-01-12T06:19:27.136456 | 2016-12-13T00:55:25 | 2016-12-13T00:55:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,094 | h | Account.h | # pragma once
# include "Interface/AccountInterface.h"
# include "Interface/ArchiveInterface.h"
# include "Config/Typedef.h"
# include "Core/ConstString.h"
# include "stdex/stl_map.h"
# include "pybind/object.hpp"
namespace Menge
{
class Account
: public AccountInterface
{
pub... |
50d4bda19050dacaa769bb9d1938894c9c0e9262 | 523770310dd8acdd0768c34b6ec0b061b75f89cc | /AsynchCorners/main.cpp | ec4a64b3c619c30421ebf318f0eb1f4409dc33ba | [] | no_license | ThomasWilliamWallace/AsynchCornerDetection | 2f9b95d4b260a2d2cd54e0ff5e2c47aac7b3c440 | 9fc6892694c79bad54a3bc532569a2e7d9b990c0 | refs/heads/master | 2020-05-15T08:12:59.950096 | 2019-04-21T22:40:36 | 2019-04-21T22:40:36 | 182,155,853 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,510 | cpp | main.cpp | #include <fstream>
#include <string>
#include <iostream>
#include <opencv2/core.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/highgui.hpp>
#include "Event.hpp"
#include "Image_sequence.hpp"
#include "Sobel_filter.hpp"
#include "Harris_filter.hpp"
#include <opencv2/imgproc.hpp>
void Print_corner(Event &event,... |
7de2ffe0f7cc110be2f8c8b6bc94f8d548694d12 | 9b18bc8676b556e8c4f046edd48ce7956c316e73 | /NotationConverter.cpp | 9814fc23513930564835af9e1947067e73f8d095 | [] | no_license | philipchang411/Notation_Converter | 7d3cb137aa9fd6c61d06545f3cb9f68bb6a54a8a | 70bf701cf9d9ab9ac8bee17c26730e954a6ac099 | refs/heads/master | 2020-09-09T14:26:28.747912 | 2019-11-13T13:56:45 | 2019-11-13T13:56:45 | 221,471,263 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,003 | cpp | NotationConverter.cpp | #include "NotationConverter.hpp"
#include <iostream>
#include <stdio.h>
#include <sstream>
#include <algorithm>
//Constuctor that just sets the string in the node as empty
node::node()
{
data = " ";
}
//Just creates the head and tail of the node.
NotationConverter::NotationConverter()
{
start =... |
951eeb3f5350260a314d7d58275997c97baa6236 | e8580d1e5b8d7cb5eea3d9e3a77a166cdb4162f0 | /base/samples/sample06Durablerequests.cpp | ef70847d65970413943be5aa28d2b8cd6b3f3b86 | [
"Apache-2.0"
] | permissive | djdron/gamesparks-cpp-base | ea149f88eddd34b4a942ecb5181fafd960821eb3 | 00b8af5dc2b58b7954cfa5d99c5ea7ded7115af8 | refs/heads/master | 2020-12-21T20:36:59.789667 | 2019-02-19T11:25:03 | 2019-02-19T11:25:03 | 236,551,142 | 0 | 0 | Apache-2.0 | 2020-01-27T17:36:19 | 2020-01-27T17:36:18 | null | UTF-8 | C++ | false | false | 2,951 | cpp | sample06Durablerequests.cpp | //#include <iostream>
#include <GameSparks/GS.h>
#include <GameSparks/generated/GSRequests.h>
#include <GameSparks/generated/GSMessages.h>
#include <GameSparks/IGSPlatform.h>
#include "./extra/usleep.h"
#include "sample_configuration.h"
int main(int argc, const char* argv[])
{
(void)(argc); // unused
(void)(... |
6c7e79f6e8c2aa109fa042c779e62185fc06a78e | 50fd7caec8b1283e9753f012ef7767b626477545 | /yatzeeYulia/yatzeeYulia/Yatzee.cpp | 262f5668ab9daba2af9b0de7b9545e2929b8af6f | [] | no_license | Rensy93/Repos | 611ea3bdb6275befe29d088c99e3bfbb81a95b31 | 18114f7e58624f1763146c220536ca0a9a3e5e93 | refs/heads/master | 2021-09-13T19:18:58.511880 | 2018-05-03T11:54:39 | 2018-05-03T11:54:39 | 111,279,329 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,834 | cpp | Yatzee.cpp | //
// Created by Yulia Lizneva on 2017-11-10.
//
#include "Yatzee.h"
#include "Dice.h"
#include "Protocol.h"
#include <sstream>
using namespace std;
void Yatzee::initiate(int from)
{
for(int i=from; i<this->maxNrOfPlayers; i++)
{
this->protocl[i]= nullptr;
}
}
void Yatzee::expend()
{
this->ma... |
0e8924449e4796af02400e9aa352d41b0b0ce8bc | da7e8d09079b4bc90e638c3d24ae68c0d3ed2bef | /semester_3/3/task_1/GraphWithRobots.cpp | a1a9e04627189007e357857fb6fe339f0479a17f | [] | no_license | kcomputer/homework | 4644bd1a93b7f48eb9af9f5d8cd45faa2321873c | 54fd502fd3741dbb451965233d638926595742d0 | refs/heads/master | 2020-05-26T21:25:56.475894 | 2014-05-08T15:13:19 | 2014-05-08T15:13:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,388 | cpp | GraphWithRobots.cpp | #include "GraphWithRobots.h"
#include <iostream>
#include <fstream>
GraphWithRobots::GraphWithRobots(char *graphFileName):graphFileName(graphFileName)
{
verticesQuantity = 0;
this->insertData(graphFileName);
}
GraphWithRobots::~GraphWithRobots(){
this->deleteData();
}
void GraphWithRobots::deleteData(){... |
2aeb90403c28798006ddcf0c02f4128dbcfdd8cc | ce7a67334e51fbfbecc46a04300de04695506d7e | /Tools/ResourceEditor/Classes/Qt/Tools/QtPropertyEditor/QtPropertyData/QtPropertyDataInspMember.cpp | 98731208e4756b90678671f2fbb16c04cc11202b | [] | no_license | dava-bot/dava.framework | 2b2cd60d419fe3948a48da2ae43142ff24016ee2 | 295c279990b7302be8e7f91eb0899399c118b825 | refs/heads/development | 2020-12-24T19:18:09.877267 | 2015-03-13T15:07:03 | 2015-03-13T15:07:03 | 32,009,964 | 4 | 0 | null | 2015-03-11T09:48:13 | 2015-03-11T09:48:12 | null | UTF-8 | C++ | false | false | 3,930 | cpp | QtPropertyDataInspMember.cpp | /*==================================================================================
Copyright (c) 2008, DAVA, INC
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of sou... |
505496094d6d902a8484699d0423d14947e1d684 | d3e7bd4f9d4e3a7445ee0aa2545bc41715d6afb4 | /snake.hpp | 652effcdaaa1ce10f320235f39a33f453b5c5d64 | [] | no_license | ravikiran-pro/cpp-snake-game | d57203d84ee18f28ed2014a88bab0e7a74f47b81 | c46f5fcef36cdca1900894e69c0d625c134d0f73 | refs/heads/master | 2021-03-31T23:58:58.132216 | 2020-03-19T03:53:38 | 2020-03-19T03:53:38 | 248,139,646 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,291 | hpp | snake.hpp | #include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#include <iostream>
#include <sstream>
#include <string>
class window
{
public:
sf::RenderWindow root;
int frame_width;
int frame_height;
window()
{
}
window(int width,int height,std::string title)
{
this->frame_width=widt... |
941b9a3d58c4a1d2939cef0d744cefb192d30ad6 | 366dd8c2074da6a032f5344482e5af8857085012 | /bake_simulation/simulator.cpp | b53385aa11a9baad6fb0654014b856ab11291361 | [] | no_license | ligenjian007/bake_simulation | 2e556cb8d9b49bc0a1f26914cd3c2c1cbaf8a75d | e62d320a4037e352d8bdb6b4f9b51f435d75e713 | refs/heads/master | 2016-09-05T09:32:13.465091 | 2013-02-19T15:12:53 | 2013-02-19T15:12:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,713 | cpp | simulator.cpp | #include "Simulator.h"
#include <string.h>
#include <iostream>
#include <stdio.h>
#include "numeric.h"
#include <math.h>
#define PRINT_PROCESS
using namespace std;
Simulator::Simulator()
{
_time=0;
_food_temp=0;
_oven_temp=0;
_air_temp=0;
// _edge_temp=0;
_h=MAX_LENGTH/2;
_filename="sim";
}
Simulator::~Simula... |
100657d9fdf5ebc77e2eadb0fde48a3d96b3c7c7 | c36c1a01d1cc336860da90447ddd4df125b2d0c9 | /Juego/EscenaTutorial.cpp | 3473894584c9982b8ebcd094c1fb3b609961f16a | [] | no_license | axelgorostidi/SpaceCraft | efa6035a82cf85559f3d2868c21cb8f757ad78c4 | 4f0a03e759c1b15f0ac17ff74b30bdd83523dac5 | refs/heads/main | 2023-03-10T14:29:13.631361 | 2021-02-26T03:52:34 | 2021-02-26T03:52:34 | 342,455,247 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 524 | cpp | EscenaTutorial.cpp | #include "EscenaTutorial.h"
#include "Juego.h"
#include "EscenaMenu.h"
#include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/Window/Keyboard.hpp>
using namespace std;
using namespace sf;
EscenaTutorial::EscenaTutorial() {
texTutorial.loadFromFile("imagenes/tutorial.png");
spTutorial.setTexture(texTutorial);
}
voi... |
3cbbb650f6b64166c45fd4be79849a53ba82d9ac | 3bd5983d51589f903abe4478d3cc105c5deb574a | /新建文件夹/subject.h | fe413dd585415b9d66c366afba793a426e35f81d | [] | no_license | linqijun-miao/GuiStudentScoreAnalysis | bbfb7dfa3e649c97efcc42e1dd9e6b329258d8c7 | 8bb9e1863b64b5be2383f933fe112a51be4132e0 | refs/heads/master | 2020-03-07T19:56:09.130140 | 2018-04-02T13:26:17 | 2018-04-02T13:26:17 | 127,684,005 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 564 | h | subject.h | #pragma once
#include <string>
class subject
{
public:
subject();
subject(int level, std::string stName, int score);
~subject();
std::string getName();
int getScore();
int getLevel();
private:
int level;
std::string sbName;
int score;
};
subject::subject()
{
}
subject::subject(int level, std::string sbName, ... |
cee023fcd97f3607c8f3d36cb3637f6a130626b4 | e8c464d72e3c169bdc8f6ed12910200075c62fab | /ejercicioCuentas/Cuenta.cpp | 85c732a99af4c7f59531064cf11ec140a20d9e8a | [] | no_license | juankzero/EjerciciosProgramacion3-P42020 | e19bee4544ee37b85bed4ced8493df75f6824d9f | bbf165a7b64b677fb596747b0cb5862e1d099175 | refs/heads/master | 2023-01-23T23:37:19.714273 | 2020-12-09T16:02:00 | 2020-12-09T16:02:00 | 304,069,452 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 735 | cpp | Cuenta.cpp | #include "Cuenta.h"
#include <iostream>
using namespace std;
Cuenta::Cuenta(string numeroCuenta, double saldoInicial) : saldo(0)
{
if (saldoInicial >= 0)
saldo = saldoInicial;
else
throw invalid_argument("Saldo Inicial no puede ser negativo");
}
//suma al saldo la cantidad a depositar en la cuenta
void Cuenta::... |
9d26531fd0b26c972183316e1f9f4720a3a34681 | cf7b8bca16b38e9388850b58ccdb123d64fa420e | /seirpenski gasket.cpp | c720e17e0558ca7f235fe14692469c297f1476d8 | [] | no_license | hrushikesh93/computer_graphics | 49962768bd179b4131c228ae901d0fdf1a7ab20d | ee0264e99ec3af3f6d13c90689eddf6170d0e4a1 | refs/heads/main | 2023-06-28T03:37:52.876278 | 2021-08-07T10:40:10 | 2021-08-07T10:40:10 | 378,316,964 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,655 | cpp | seirpenski gasket.cpp | #include<GL/gl.h>
#include<GL/glu.h>
#include<GL/glut.h>
#include<stdio.h>
float v[4][3] = {{-1,-1,-1},{0,1,-1},{1,-1,-1},{0,0,1}};
int m;
void triangle(float a[3], float b[3], float c[3])
{
glBegin(GL_TRIANGLES);
glVertex3fv(a);
glVertex3fv(b);
glVertex3fv(c);
glEnd();
}
void divide_triangle(flo... |
498ce0c2a29c911ea5020cd1ce282528e81cc531 | 03e758ef2c966c59db3769251645aabd328f327f | /xgm/devices/Audio/mixer.h | 153385a4cb2d4ff8b9f87f6f11fc52f6198735c3 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | HertzDevil/nsfplay | 35a6a6827e9a51e998fd89a4bd19371affbf1fbd | 83937f3305a79bd648fdc9169f48e94abe13b986 | refs/heads/synthesia | 2020-04-23T19:39:12.311735 | 2019-03-04T10:02:11 | 2019-03-04T10:02:11 | 171,411,775 | 12 | 1 | null | 2019-03-14T03:18:19 | 2019-02-19T05:36:14 | C++ | UTF-8 | C++ | false | false | 2,116 | h | mixer.h | #ifndef _MIXER_H_
#define _MIXER_H_
#include "../device.h"
#include <vector>
namespace xgm
{
class Mixer : virtual public IRenderable
{
protected:
typedef std::vector < IRenderable * >DeviceList;
UINT32 fade_pos, fade_end;
DeviceList dlist;
public:
Mixer ()
{
Reset();
}
~... |
a95a9b66f651372e37b32309afb967b7243eee31 | 49291e1a34eb617e600ed47a5d9f56ba98342590 | /include/Cloud.h | d50bf8462a3733fa730a307c9d673937f2a99c7d | [] | no_license | FernandB/PigeonCakes | 03a7fe631deaee725565ce419c45a63de81d131d | 0bc98908b1f141f53c19e650fd6a030e3a53452d | refs/heads/master | 2021-07-19T22:52:25.060464 | 2017-10-26T09:49:30 | 2017-10-26T09:49:30 | 108,110,656 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 413 | h | Cloud.h | #ifndef CLOUD_H
#define CLOUD_H
#include <SFML/Graphics.hpp>
#include <Box2D/Box2D.h>
#define HORIZONTAL_SPEED 1.f
class Cloud
{
public:
Cloud(b2World& world,b2Vec2 size, b2Vec2 position);
void update(sf::RenderWindow& window);
void draw(sf::RenderWindow& window);
private:
b2Body* cloudBody;
b2Vec2 linearVelocit... |
b59cb97d27f42a96ddec284eedf095ce8af6ee6a | a05b2e3e9ff90d644ea711f52262c69909300a42 | /Jets/Run13Jets/code/JetHadCorrection/JetHadCorrectionLinkDef.h | a0655d6477801329130ce2e25a591ed256d95905 | [] | no_license | ArbinTimilsina/ForPHENIX | caa652fbbc7dc8ce5f5362270b745e2b813419d8 | cf2ab39ea87d37109beaab1edc170d9f39873eae | refs/heads/master | 2020-03-24T08:19:03.319448 | 2018-07-27T15:35:15 | 2018-07-27T15:35:15 | 142,592,068 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 243 | h | JetHadCorrectionLinkDef.h | #ifdef __CINT__
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ class JetHadCorrection+;
#pragma link C++ class particles+;
#pragma link C++ class std::vector<particles>+;
#endif
|
62a5b5f35f045e20c857e55391e705d54dec5e8a | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/com/rpc/runtime/mtrt/lpcpack.hxx | f76a05b4b695dc5217f4801d0ccd0a84b62e68da | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 11,990 | hxx | lpcpack.hxx | /*++
Copyright (C) Microsoft Corporation, 1992 - 1999
Module Name:
wmsgpack.hxx
Abstract:
This file contains the definitions of the packet formats used by
RPC on LPC.
Author:
Steven Zeck (stevez) 11/12/91
Revision History:
15-Dec-1992 mikemon
Rewrote the maj... |
c6f902e76f7c6126e19ebccb9030aad11a5d0e6f | 8f50c262f89d3dc4f15f2f67eb76e686b8f808f5 | /Trigger/TrigT1/TrigT1CaloByteStream/test/PpmTester.h | 77e9dc8bb66c606d0cf65b10ee31d67da5e35858 | [
"Apache-2.0"
] | permissive | strigazi/athena | 2d099e6aab4a94ab8b636ae681736da4e13ac5c9 | 354f92551294f7be678aebcd7b9d67d2c4448176 | refs/heads/master | 2022-12-09T02:05:30.632208 | 2020-09-03T14:03:18 | 2020-09-03T14:03:18 | 292,587,480 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,692 | h | PpmTester.h | /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef TRIGT1CALOBYTESTREAM_PPMTESTER_H
#define TRIGT1CALOBYTESTREAM_PPMTESTER_H
#include <map>
#include <string>
#include "AthenaBaseComps/AthAlgorithm.h"
#include "AthContainers/DataVector.h"
class ISvcLocator;
class StatusCode;
nam... |
25f9ff7d77b5145d009acd402b416b76c0acdcbb | 778865a713666cc5586589ed30c9b00f1b763423 | /task2.cpp | ea10342fe18fb647742aba5f5dd47c70e5a1024e | [] | no_license | muaazasif/c_language | 68533b3d3779f110ad7819e9154a717d28970459 | 6a8a49a0f470ed892f8f30ede3804a88410fb86c | refs/heads/main | 2023-01-29T12:01:56.324380 | 2020-12-16T09:43:20 | 2020-12-16T09:43:20 | 318,282,151 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 284 | cpp | task2.cpp | #include <stdio.h>
main(){
char name[10];
char nation[10];
int a;
printf(".......... BIO DATA ..........\n\n");
printf("What is your Name : ");
scanf("%s",name);
printf("What is your Nationality : ");
scanf("%s",nation);
printf("What is your Age : ");
scanf("%d",a);
}
|
4a23da47acbdd55b98ccf05f9490ca39e827a867 | 64ebc52a60a8f7983b821df2f3bdbd0e0b2dfb5c | /Labs/Lab10/Part1.cpp | 5c3b8d9d9d9044eb9aa38ceaeac4e7ad5ac4b1ee | [] | no_license | oklodhi/CS200 | b61f054c2359e994a469ffad9df853af58de35c8 | e761880695d3ea2d05d9042ded7cdf991b429bb6 | refs/heads/master | 2021-06-04T06:16:12.532714 | 2021-02-03T22:53:03 | 2021-02-03T22:53:03 | 136,099,520 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 342 | cpp | Part1.cpp | #include <iostream>
#include <cstring>
using namespace std;
int main() {
char username[5];
strcpy_s(username, "bob");
cout << "\"" << username << "\"" << endl;
char username_2[5];
strcpy_s(username_2, "Alexanderr");
cout << "\"" << username_2 << "\"" << endl;
cin.ignore();
cin... |
608ca6e5993b5b9dd3d83166f5f76ae4bb9feac4 | 0c1611d72f22471338901d0b48d5b980f5aa62c1 | /C++/DisplayManagerTrunk/control/src/infoscreenmsg/utils/GISCommandBuffer.cpp | 5c7e58d5ef0e9ddd88cb578638589c980ab8fd36 | [] | no_license | marianovolker/jmps-public | 67319a34fa7e677292ed01d2767611b8d9259cc2 | b2ca4a6921974e78a2dd128688d42beca121eec6 | refs/heads/master | 2021-01-20T19:09:11.424069 | 2018-03-29T18:51:38 | 2018-03-29T18:51:38 | 62,237,468 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 445 | cpp | GISCommandBuffer.cpp | #include "GISCommandBuffer.h"
GISCommandBuffer::GISCommandBuffer(QByteArray oBuffer):
m_oList(oBuffer.split('\0')),
m_iIndex(0)
{
}
GISCommandBuffer::~GISCommandBuffer( )
{
}
QString GISCommandBuffer::GetNextField()
{
QString strTemp="";
if( m_iIndex >= 0 && m_iIndex < (m_oList.length()-1) )
{
strTemp = m_oLi... |
bef201a351e5f42a444afbbc874ead776eece536 | f72c9cd0b542b8bfed8cbbe3b21c0b94afca1d10 | /src/services/git/repository/RepositoryManager.cpp | a8c0431e6fbb217234dcd6aff0bc0948d43532f4 | [] | no_license | rstat1/gitrpc | 4b417a6073b5ed49d9fdca73085b6a47307b5c56 | f6561e97f299ae4743aff9b57d45913262cb7df4 | refs/heads/master | 2020-12-14T02:49:54.291297 | 2019-09-25T06:41:30 | 2019-09-25T06:41:30 | 234,610,370 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,552 | cpp | RepositoryManager.cpp | /*
* Copyright (c) 2019 An Incredibly Big Red Robot
*
* Use of this source code is governed by a "BSD-style" license that can be
* found in the included LICENSE file.
*/
#include <services/git/repository/GitRepoCommon.h>
#include <services/git/repository/RepositoryManager.h>
namespace gitrpc { namespace git {
SINGLE... |
ffbc289d15ab0933faab0a6aab6db5237f453edb | 181712d6ecea598c35112902cb7ddc3f0641f991 | /DungeonGame/game/myEngine/Particle/ParticleResources.cpp | 6800b362d4c072b27390250b5210bd765dc45e04 | [] | no_license | HarukaSunada/Game | 72a218bdf7928b784c5ccd2cf3b3fe3438ff12e6 | 85dcbf9bc1b2e2ddf3872301fb35e10f58fb0879 | refs/heads/master | 2020-12-02T06:33:52.639696 | 2018-07-18T06:22:30 | 2018-07-18T06:22:30 | 96,851,929 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 997 | cpp | ParticleResources.cpp | #include "stdafx.h"
#include "ParticleResources.h"
#include "myEngine/Util.h"
ParticleResources::ParticleResources()
{
}
ParticleResources::~ParticleResources()
{
}
LPDIRECT3DTEXTURE9 ParticleResources::LoadTexture(const char* filePath)
{
LPDIRECT3DTEXTURE9 texture = nullptr;
int hash = CUtil::MakeHash(filePath)... |
2d745f7eb0bf5137cf6e91008e1ef81a5a1c5714 | 241b6f0d6908b3396fc9360e2f12b0369477b7ec | /123. Best Time to Buy and Sell Stock III.cpp | 5b9f14bb772c4b59520bc0fbfc1b890dbb198231 | [] | no_license | avnish0900/Dynamic-Programming | f684df8aae7a1789d7ae7519d61a2c6a13b2306e | 701ca8233094f3f4c55dd0598d08a6a0590c6d0b | refs/heads/main | 2023-06-10T12:57:27.635203 | 2021-07-03T07:27:23 | 2021-07-03T07:27:23 | 335,616,527 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 765 | cpp | 123. Best Time to Buy and Sell Stock III.cpp | class Solution {
public:
int maxProfit(vector<int>& arr) {
int n = arr.size();
int dpl[n];int dpr[n];
memset(dpl,0,sizeof(dpl));memset(dpr,0,sizeof(dpr));
int mi = arr[0];int cur_pro = 0;
for(int i=1;i<n;i++){
if(mi > arr[i]){
mi = arr[i];
... |
bdddbef7ebc04983aa7b979c090fed9a8b9f4dbe | af0de740eb82c20649bfc62231db6021191ff339 | /Lilla_Spel/Lilla_Spel/Sound.h | 3bd455f791673c389d9ef7841879e9c495e088c0 | [] | no_license | thecarrera/Lilla_Spel | e100e1cc328e66c0208cf366b20d329c24669051 | e27a5926d8c8f9522775636b1239f2a0d334d1ee | refs/heads/master | 2021-01-18T16:12:17.388427 | 2017-06-01T10:57:13 | 2017-06-01T10:57:13 | 86,724,254 | 1 | 0 | null | 2017-05-18T15:28:26 | 2017-03-30T16:25:46 | C++ | UTF-8 | C++ | false | false | 1,506 | h | Sound.h | #pragma once
#include <fmod.hpp>
#include <fmod_errors.h>
#include <iostream>
#define SAFE_RELEASE(x) if(x) x->release(), x = nullptr
#define SAFE_DELETE(x) if(x) delete[] x, x = nullptr
class SoundManager
{
private:
FMOD::System* system = nullptr;
FMOD::Reverb3D** Reverb;
FMOD_REVERB_PROPERTIES** prop = nullptr;... |
fcc7deb9ba3d23313d1b8f97c782be0d7b43de0f | 701dd0475253052c712f3bf9c02318657b5bfccc | /c++学习/C++第一次实验3/C++第一次实验3/Main.cpp | 3629bcdb1b8c6387cdab90214a8a0aa8cb5a00c8 | [] | no_license | Kdcc-ai/- | 788b98f5d5c8041cdee8c4e593ffd3ef941bc869 | 69f02f93d493e588dacec85f04346877babb6412 | refs/heads/master | 2022-07-11T16:22:37.380865 | 2020-05-18T07:14:06 | 2020-05-18T07:14:06 | 264,856,254 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,308 | cpp | Main.cpp | /*#include<iostream>
using namespace std;
class IntArray {
public:
IntArray(int sz); // 数组初始化为sz个元素,初值全为0
IntArray(int *array, int sz); // 用静态数组array的前sz个元素初始化新数组
IntArray(const IntArray &rhs); // 拷贝构造函数
~IntArray() { cout << "析构函数被调用" << endl; }
void printAll();
private:
int *ia;
int size;
};
//初始化... |
0d1f763b1f1141938f624aac9806f6073185d2b6 | 8c1a41bad4f4dfd36d42b706c8b77d78cc03513f | /Project1/Engine/Math/BoundingBox.h | 51ff8d89ac3ff6da4282f8ea073d9a9f704b196a | [] | no_license | sujansooriyakumar/GameEngine | 3623dc82f496dcc15c43633c166ed7dca76dd210 | 71a362efcaf1ef9f0be28faf0952bf3dd6d35326 | refs/heads/master | 2023-01-08T04:39:17.483258 | 2020-11-11T17:55:25 | 2020-11-11T17:55:25 | 300,355,274 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,278 | h | BoundingBox.h | #ifndef BOUNDINGBOX_H
#define BOUNDINGBOX_H
#include <glm/glm.hpp>
struct BoundingBox
{
glm::vec3 maxVert, minVert;
glm::mat4 transform;
inline BoundingBox()
{
maxVert = minVert = glm::vec3();
transform = glm::mat4();
}
inline BoundingBox(glm::vec3 maxVert_, glm::vec3 minVert_, glm::mat4 transform_)
{
... |
dd73a881994ddf091bb25e02b337e0b7660cdde0 | 407a4b06fac0db19e2287dcb99fd15e11201c9b2 | /Atmos/accelerators/a3PrimitiveSet.cpp | f0c8761b8800e0bba96da958f3f0adae8237f4e7 | [] | no_license | cnsuhao/Atmos | 57aa15a58dbfa9971b5641533e5c98ab9ab3f6ed | 8f0fc0eaeab35d4c6576a010753e1217e765544b | refs/heads/master | 2021-09-06T07:03:08.363861 | 2018-02-03T13:59:46 | 2018-02-03T13:59:46 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 378 | cpp | a3PrimitiveSet.cpp | #include <accelerators/a3PrimitiveSet.h>
#include <shapes/a3Shape.h>
#include <core/log/a3Log.h>
a3PrimitiveSet::~a3PrimitiveSet()
{
}
bool a3PrimitiveSet::addShape(a3Shape* shape)
{
if(!shape)
{
a3Log::error("a3PrimitiveSet::addShape() 空的形状对象指针%d\n", shape);
return false;
}
primitiv... |
8fa31e23c75b9ba539cee0c6ce0aa60f0f80b948 | 80936d17d75fa0ab1d1f2f17d8c562dc8260f9f0 | /lpc/pitchdetect.cc | 5715855841faffcedb5471cc0f6f859c273231c5 | [] | no_license | grav/audiogroup | 037dec781942634ce1faa157e0572dcc0eb6cb19 | 1665bf030fc6d58cc71c6332fd9a573f0a60285e | refs/heads/master | 2021-01-02T08:57:07.755786 | 2010-11-15T19:25:24 | 2010-11-15T19:25:24 | 3,654,511 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,136 | cc | pitchdetect.cc | #include "pitchdetect.h"
#include <math.h>
extern int g_fs;
extern float g_threshold;
extern int g_window_size_samples;
// Samp = s * Fs
// Samp = Fs/Hz
// Hz = Fs/Samp = Fs/(s*Fs) = 1/s
#define LOW_HZ 55
#define HIGH_SAMP (int)((float)(g_window_size_samples * 0.5)) // base on windo size
//#define HIGH_SAMP (int... |
9ad8a5d46b298741cbafd1d65c8191735bfa4c7d | 2110594556f85998cd2236926a5a576f2471dcac | /Bài5.cpp | 7fe85adc877dab04f66841dffacafc7818aed63e | [] | no_license | khanhduy2003/NhapMonLapTrinh03 | eaf81539662d3e7e9e42bbabd4177071e68c1f3c | 32f1cb4afc534afd66821481a748770b357697d6 | refs/heads/master | 2020-03-25T06:16:04.705099 | 2018-08-04T03:02:23 | 2018-08-04T03:02:23 | 143,492,279 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 760 | cpp | Bài5.cpp | #include <iostream>
#include <cmath>
using namespace std;
int main ()
{
int a,b,c,delta;
float x,x1,x2;
cout<<"nhap a : ";cin>>a;
cout<<"nhap b : ";cin>>b;
cout<<"nhap c : ";cin>>c;
if ( a == 0 ){
if (b == 0){
if (c == 0)
cout<<"phuong trinh co vo so nghiem";
else
cout<<"phuong trinh v... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.