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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
972fd8d8d463f77daca15c7d4094aa8307840f6e | 5885fd1418db54cc4b699c809cd44e625f7e23fc | /utipc2020s/c.cpp | ef60821883313efc3401c53fd865182c146c6648 | [] | no_license | ehnryx/acm | c5f294a2e287a6d7003c61ee134696b2a11e9f3b | c706120236a3e55ba2aea10fb5c3daa5c1055118 | refs/heads/master | 2023-08-31T13:19:49.707328 | 2023-08-29T01:49:32 | 2023-08-29T01:49:32 | 131,941,068 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 815 | cpp | c.cpp | #include <bits/stdc++.h>
using namespace std;
const char nl = '\n';
typedef long long ll;
typedef long double ld;
const int INF = 0x3f3f3f3f;
int main() {
ios::sync_with_stdio(0); cin.tie(0);
int n, k;
cin >> n >> k;
vector<int> a(n);
for(int i=0; i<n; i++) {
cin >> a[i];
}
function<int(int)> c... |
33d9e2ed4e4340eb077a6f16997fe33574668115 | f3ccda63d347f5c61602d67f29a71da2fce22845 | /Furin Back/Furin Back.cpp | 95306598fa5f217953e577b9b3cadc0722f03c30 | [
"MIT"
] | permissive | karygauss03/IEEE-Xtreme14.0-Solutions-SUPCOM_SB | 7baaea6dd7394926caabaf2aa93c145835417ebc | f73175ad32eceab9c770e4fa225921f4c33e460a | refs/heads/main | 2023-08-05T15:16:37.119704 | 2021-10-01T21:09:54 | 2021-10-01T21:09:54 | 412,616,548 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,114 | cpp | Furin Back.cpp | #include <bits/stdc++.h>
using namespace std;
#ifndef preetam
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#pragma GCC target ("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,tune=native")
#endif
#define F first
#define S second
#define pb push_back
#define mp make_pair
#defin... |
52c93afe71ac9968dfc2ec8ed361ff846f2e30a7 | 2b1bff70fcce2359a158c2960994c539e1cc3057 | /src/GUI/InfoMenu.cpp | b3e4ab7b60b80214caac362b72e276245f61463c | [] | no_license | VictorLuc4/Boomberman | 39e3d40c63e0b8e219bf7910cee8230df1df0809 | 9f73ebad57f66e4361498118f1f7927fb6f5f986 | refs/heads/master | 2020-04-05T04:07:36.393193 | 2018-11-07T11:53:24 | 2018-11-07T11:53:24 | 156,538,442 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,318 | cpp | InfoMenu.cpp | /*
** EPITECH PROJECT, 2018
** cpp_indie_studio
** File description:
** InfoMenu
*/
#include "InfoMenu.hpp"
InfoMenu::InfoMenu()
{
_config = new Config;
_config->loadFile("base.conf");
_playersLoad = _config->getCharac();
std::cout << "players loaded == " << _playersLoad.size() << "\n";
_currentMenu = MAIN_MENU... |
8d6a73f26050ae837a83d9b004c64a42e0e1f161 | 99b314a20c8f025a42748991cc307a4233ecde97 | /Game.hpp | 82dec0176d32b791f452851b0c87b291e2b38f41 | [
"MIT"
] | permissive | leonidlist/sfmlRPG | 10d0368a969dbf3a008bcfde35f5713cae4d9241 | b652ee803bcd41e7be546191a6ddb7164f8cf046 | refs/heads/master | 2020-03-26T16:45:00.495712 | 2018-08-30T09:47:11 | 2018-08-30T09:47:11 | 145,121,036 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,433 | hpp | Game.hpp | #ifndef SFMLRPG_GAME
#define SFMLRPG_GAME
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/Network.hpp>
#include <vector>
#include "Fonts.hpp"
#include "Music.hpp"
#include "Textures.hpp"
#include "Vectors.hpp"
#include "Player.hpp"
#include "Powerup.hpp"
#include "Pickup.hpp"
#include "TextDis... |
b83ad1f0d7ca78ec8c163aee40858d3b1dd6623b | 953aa6e3a7a23b0e197423e8545ac31c1cf4339d | /src/opengl/particle/particle.h | 1eeaafa017feb466ca7a0b286494e4edbde35f80 | [] | no_license | macmv/iso-tanks | d366e18112305aea3051043133353d04299142f3 | 66fb9a1777edf3ac2d9663d490f71cb9be30363e | refs/heads/master | 2021-01-05T01:50:46.879638 | 2020-06-28T21:26:13 | 2020-06-28T21:26:13 | 240,832,900 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 589 | h | particle.h | #ifndef _PARTICLE_H
#define _PARTICLE_H
#include <glm/glm.hpp>
#include "models/material.h"
class Particle {
private:
glm::vec3 position;
float size;
float decay_time;
float decay_rate;
Material* material;
clock_t last_update;
public:
Particle(glm::vec3 position, float size, float dec... |
a0da82cda47566706d4bee649fc7f25a3c4c4c24 | 4dec0b3d45e55048735f6ba69d6f850c2537323b | /main.cpp | 12bdf1058c0c681b4792bab4d5825be78c8af7df | [] | no_license | yashkalal/-line-follower-using-pid | 32b4be61b278c0434a3f1339da7203173a29b781 | acfba28b6675f857577cd28c5994324c19dcc804 | refs/heads/master | 2020-04-20T17:33:59.211548 | 2019-02-03T20:55:05 | 2019-02-03T20:55:05 | 168,992,277 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,430 | cpp | main.cpp | /*
* line follower with pid implementation.cpp
*
* Created: 03-02-2019 10:26:08
* Author : HP PC
*/
#include <avr/io.h>
#include <stdio.h>
#include <avr/sfr_defs.h>
float kp=1;
float kd=1;
float left_rpm,right_rpm;
float currentvalue,desiredvalue;
float p_error,t_error,ferror,maxerror=50;
floa... |
aa1008c74c66d0fe6af2d77f30f26d48a440be24 | 69de5df7401546216429c996b3aee81abc527793 | /main.cpp | 5b2dd2c2108e6a2ffbc41f9345f764dab7ec481f | [] | no_license | DanMagor/IAI.-Red-Hood-Assignment | 14f9b8a978043e087d2e44691279ce31520da7b6 | 8b105f79d6780c8c25297f77c003083d504f2e49 | refs/heads/master | 2021-01-22T02:57:41.307460 | 2017-09-17T08:19:24 | 2017-09-17T08:19:24 | 102,256,616 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,629 | cpp | main.cpp | #include <iostream>
#include <synchapi.h>
#include "Environment.h"
#include "SimulationController.h"
#define DEFAULT_SIZE 9
using namespace std;
int main() {
cout << "Enter the desired number of tests: ";
int n;
cin >> n;
cout << "Enter the time of delay for step(in micro sec) during demonstration." ... |
3fe1e509857ed2dbdb28507585512e788a16138b | f0cb939867f21e53fad26ae4969c69ba0f99cd99 | /fas/serialization/json/meta/array.hpp | f7c279510e665d9704bd2e7e785ebbba877693c7 | [] | no_license | migashko/faslib-sandbox | 238550c6dce4866392a1527dfee030a6b593dd71 | a61b49cbab0e84a9440a1ad5d350ccbaff75995e | refs/heads/master | 2021-01-23T03:48:38.525241 | 2013-11-04T03:19:45 | 2013-11-04T03:19:45 | 4,808,593 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,439 | hpp | array.hpp | #ifndef FAS_SERIALIZATION_JSON_META_ARRAY_HPP
#define FAS_SERIALIZATION_JSON_META_ARRAY_HPP
#include <fas/serialization/json/tags.hpp>
#include <fas/type_list/normalize.hpp>
#include <fas/typemanip/if_c.hpp>
#include <fas/functional/member.hpp>
#include <fas/type_list/is_type_list.hpp>
#include <fas/type_list/empty_li... |
41a653815e298d3263e86122c8bd28b48bf31f4c | e04f52ed50f42ad255c66d7b6f87ba642f41e125 | /appseed/file/filesystem/file/file_locked_in_stream.h | aef09d9f6b5f359a3d4dd643d8bcb55feb52ec41 | [] | no_license | ca2/app2018 | 6b5f3cfecaa56b0e8c8ec92ed26e8ce44f9b44c0 | 89e713c36cdfb31329e753ba9d7b9ff5b80fe867 | refs/heads/main | 2023-03-19T08:41:48.729250 | 2018-11-15T16:27:31 | 2018-11-15T16:27:31 | 98,031,531 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 755 | h | file_locked_in_stream.h | // LockedStream.h
#pragma once
namespace file
{
class locked_in_stream
{
public:
sp(stream) _stream;
critical_section _criticalSection;
void Init(stream *stream)
{
_stream = stream;
}
memory_size_t read(file_position_t startPos, void * ... |
bc79767dd1b00b1e92c9d86c108ded68fdddeeb0 | b9886268d3f050ba45e8ece02cc59a0f0b0e95c5 | /virtual file system/drive.cpp | bb2b1f49c560961bb8165b33789fdaddf7c57f8f | [] | no_license | zhangboroy/Operating-Systems | 625ab0d6311e7e3e1fb9e4598ddd6d7339081143 | fa4c9abaebcbb9ea204133bf35db8955154a46b1 | refs/heads/master | 2020-03-13T10:39:36.396638 | 2018-04-26T02:46:12 | 2018-04-26T02:46:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,678 | cpp | drive.cpp | #include <iomanip>
#include "drive.h"
char Drive::name='A';
Drive::Drive()
{
iNode* root=new iNode();
(*root).SetFileName(&name);
++name;
fileTable.insert(root);
}
Drive::~Drive()
{
iNode* temp=0;
for (set<iNode*, iNodeCompare>::iterator i=fileTable.begin();i!=fileTable.end();... |
fc1a64622b1f5af19341da727f1b9e03e4da695f | 0e96e9257bf79735e29f0e12806512bbd4673213 | /LSystem.cpp | 147c881151779624c13ca4f1155b3be59dbed10c | [] | no_license | andresbejarano/TreeHands | 79d7792ef7a25cd6f416ccc27afb2f64bf86ca3a | dec727a8c95fa52286c702965c435eaf65a0e329 | refs/heads/master | 2016-09-05T21:49:54.036763 | 2015-04-21T00:48:21 | 2015-04-21T00:48:21 | 34,295,060 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,390 | cpp | LSystem.cpp | /**
* LSystem.cpp
* Written by: Andres Bejarano
*/
#include <stack>
#include "LSystem.h"
#include "GL\freeglut.h"
/**
* Checks if two vec4 (actually vec3) vectors are the same
*/
bool equal(glm::vec4 v1, glm::vec4 v2) {
/* Compares if the (x, y, z) values are the same */
return(v1.x == v2.x && v1.y == v2.y &&... |
f4085141a62038f9675b25660de7837442809d13 | c9ad7f5190899cf9531ab4aeb889f45d2932e1ba | /src/output_ds2i_format.cpp | eb92509b97433cdaf2cfb7dd4b7fcee098914eef | [
"MIT"
] | permissive | yyht/autocomplete | 46cdd559cd0151db30778036c5e85421297f9597 | 92d7af3e8869d17f68e9b8a2a4e1d5cfdd565b75 | refs/heads/master | 2022-07-05T15:06:26.497164 | 2020-05-12T09:14:02 | 2020-05-12T09:14:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,089 | cpp | output_ds2i_format.cpp | #include <iostream>
#include <fstream>
#include "util.hpp"
#include "parameters.hpp"
using namespace autocomplete;
int main(int argc, char** argv) {
int mandatory = 1;
if (argc < mandatory + 1) {
std::cout << argv[0] << " <collection_basename>" << std::endl;
return 1;
}
parameters pa... |
639463212de815a45d2cc3a15d95b5e2556a4edd | 2b60d3054c6c1ee01f5628b7745ef51f5cd3f07a | /WaterFlowFluid/eigenFluid/SourceCodes/src/3D/obstacle_wrapper_3d.h | c558b2e2045c7eae85b16cba56c94fb34efbee64 | [] | no_license | LUOFQ5/NumericalProjectsCollections | 01aa40e61747d0a38e9b3a3e05d8e6857f0e9b89 | 6e177a07d9f76b11beb0974c7b720cd9c521b47e | refs/heads/master | 2023-08-17T09:28:45.415221 | 2021-10-04T15:32:48 | 2021-10-04T15:32:48 | 414,977,957 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,309 | h | obstacle_wrapper_3d.h | /*
This file is part of SSFR (Zephyr).
Zephyr is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Zephyr is distributed in the hope tha... |
8781e71efdc7b04eb29dfdad1aa3623432c75836 | beaccd4ca566e9f7f112b98dfe3e32ade0feabcc | /course code/4th sem/osy/OSY codes final/osy codes/m_osy/osy/c_p.cpp | 26d48a01695896c090fec343c8679b4171d9067f | [] | no_license | maddotexe/Competitive-contest-programs | 83bb41521f80e2eea5c08f198aa9384cd0986cde | 4bc37c5167a432c47a373c548721aedd871fc6b7 | refs/heads/master | 2020-04-17T08:08:43.922419 | 2015-03-10T19:26:55 | 2015-03-10T19:26:55 | 31,177,844 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,499 | cpp | c_p.cpp | #include<iostream>
#include<algorithm>
#include<queue>
using namespace std;
void producer(queue<int> &q, int x, queue<int> &p_q);
void consumer(queue<int> &q, int x, queue<int> p_q)
{
if(q.size() == 0){
cout << "buffer is empty consumer is sleep"<< endl;
cout << "producer is awake" << endl;
producer(q, x, p_q);... |
f5c0b4f09e733818af9afdd1392c196d87ee1570 | eab52ab8828d73e4337ba911629d10f3f5497130 | /Source/SpaceInvaders/SpaceInvadersGameMode.cpp | 695eb11d41b9b06fbf9548ef4e8bef2ca5187076 | [] | no_license | Micadurp/SpaceInvaders2 | f5150c4177414c85eec88f66e8f583834ec78ec6 | 1112c7cf5600305a004105b6752b5d1f379bbde0 | refs/heads/master | 2020-06-15T12:48:08.316799 | 2019-07-14T16:17:25 | 2019-07-14T16:30:33 | 195,303,411 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 278 | cpp | SpaceInvadersGameMode.cpp | // Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#include "SpaceInvadersGameMode.h"
#include "DefenderPawn.h"
ASpaceInvadersGameMode::ASpaceInvadersGameMode()
{
// set default pawn class to our character class
DefaultPawnClass = ADefenderPawn::StaticClass();
}
|
145b0a2e1c888b3496fcdcfa45b3fba20319a83f | 176986455dfeeca37515ff3c7041fc152af8bb1b | /src/mail.cpp | ca6edcffa23a13663513b75feb6aad3a1a55213b | [] | no_license | anope/anope | bda831995dccd78acc2fc1d3071dd69df53c6af5 | 0a3ddef3151ef4258e529f5850be08810fa146d3 | refs/heads/2.0 | 2023-09-03T07:25:54.572371 | 2023-08-31T06:17:56 | 2023-08-31T06:19:00 | 909,217 | 284 | 176 | null | 2023-08-31T06:19:54 | 2010-09-14T06:25:30 | C++ | UTF-8 | C++ | false | false | 4,995 | cpp | mail.cpp | /*
*
* (C) 2003-2023 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
*/
#include "services.h"
#include "mail.h"
#include "config.h"
Mail::Message::Messag... |
e71fc19babb561a5418c829594e4ec5f16063058 | c9ed86cf48f324a806012aaac6726c2e5362006c | /0114_flatten.cpp | 8fd6adfcc3d1c603ca59a693f741e37352fbb4c5 | [] | no_license | syt798/LeetCode | 06c4b47a1c3cf6212e1112f13fd83ca303d15a45 | 9769c4fe03c6ae63ecad60622a397c11c1fb753b | refs/heads/master | 2020-04-07T11:05:18.800539 | 2019-11-24T07:27:47 | 2019-11-24T07:27:47 | 158,312,151 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 777 | cpp | 0114_flatten.cpp | //将树的节点前序取出来,重新排列
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
void preOrder(TreeNode *root, vector<TreeNode*> &nodes) {
if (root) ... |
e4dc628e9a9602ff03124974df3a1cb672ad921f | e1ec4f0da360b32e6cf9ba6bbe595bfe69a2ca69 | /chapter2/2.4.1/2.4.1/2.4.1/binarysearch.cpp | c6e2f0ee2349966cc5d8c41675a1a2152e3a2fc2 | [] | no_license | myclass242/data-structure-and-algorithm-analysis | 4c7c0b2a0013258f51a3a056d4e084dc8d866445 | 66624ede60e0f1d442df984fe48eac0b068af4b8 | refs/heads/master | 2022-03-27T07:47:56.734112 | 2019-12-15T08:17:15 | 2019-12-15T08:17:15 | 93,634,214 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 410 | cpp | binarysearch.cpp | //#include "binarysearch.h"
//int FindElementByBinarysearch(const std::vector<int> &vi, int targe)
//{
// int low = 0;
// int high = vi.size();
// while (low <= high)
// {
// int middle = (low + high) / 2;
// if (vi[middle] < targe)
// {
// low = middle + 1;
// }
// else if (vi[middle] > targe)
// {
// high ... |
854c24d83ae3325629fb41d8566f180cabf2ce70 | 2b186ea21158d7b2ff0c579d87c6a1467c074f35 | /hdu/diyi第一阶段/si_hui回归水题/2054.cpp | 5cc7ddbb486f9e731fbe62530bf62a11849fb7db | [] | no_license | heng5011/My_code | dac9872ff4411e5b4fad50d9a522b090aa007ae8 | 71fd987ead01914ed82258181071136cf97be82a | refs/heads/master | 2020-05-15T17:09:22.194580 | 2019-09-20T08:14:37 | 2019-09-20T08:14:37 | 182,401,119 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,388 | cpp | 2054.cpp | /*************************************************************************
> File Name: 2054.cpp
> Author: kwh
> Mail:
> Created Time: 2019年05月29日 星期三 18时56分28秒
************************************************************************/
#include <iostream>
#include <cstdlib>
#include <cstring>
#include <cstdlib>
... |
5efad3e47a9df361c4c6ec0ccd1b7e3524a1326e | b7ec4eccb4b0f4b240eb1129eb836f063fb7318d | /RTS_AoV/Source/RTS_AoV/Public/Core/FuncLib/AOV_FuncLib.h | 991f9cf12d50aa33927c0cd2d6ae8ffcbb336344 | [] | no_license | Ympressiv/GAME-RTS_AgeOfVikings-UE4-Cpp | 4979bf06daa73bd71f65ac68f817d3e7dae1998c | 823358508417dafc07491fab7396e6106d4954e2 | refs/heads/master | 2023-06-04T07:30:50.274506 | 2021-06-16T05:50:12 | 2021-06-16T05:50:12 | 337,855,174 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 532 | h | AOV_FuncLib.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "AOV_FuncLib.generated.h"
/**
*
*/
UCLASS()
class RTS_AOV_API UAOV_FuncLib : public UBlueprintFunctionLibrary
{
GENERATED_BODY()
public:
UF... |
8d2af9f016c18943afc3230ff83213cc860a1abf | 6c31d7e2bffc4933c2581925337956957e22799e | /Esp32TempSensor/func.ino | 930bd0a0f57d2867da27e85794710d860ea25a81 | [] | no_license | CodeByMini/BigData | b768baea1ae3e642ebf9d79490ccc1f881d8fae2 | 3cec7b75611b2181224cef5e6bfbf67b4c13720e | refs/heads/master | 2023-04-18T21:27:08.176881 | 2021-05-10T21:05:38 | 2021-05-10T21:05:38 | 366,175,387 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 605 | ino | func.ino | void SerializeData(char *outgoing, float temperature, float humidity) {
DynamicJsonDocument doc(MAX_MESSAGE_SIZE);
doc["temperature"] = temperature;
doc["humidity"] = humidity;
doc["logtime"] = getTime();
if(temperature >= 27){
doc["tempAlert"] = true;
}else{
doc["tempAlert"] =... |
4fa3dcb3b7e34a6f05353a0707ee0f79db3cb9b7 | c534cf87e742a4a00db62315cff4ae5dc47df98e | /Classes/Monster/GroupMonster.h | 51f4aadfbfe6e3c20d22c8bce058346f365dc09d | [] | no_license | exmex/KingdomRushFrontiers | e403c5cdb83ebbb7b1074a1bd8feb7a849d8928d | 43c785107189bd396989a69807d7b7679c6b7607 | refs/heads/master | 2023-03-16T02:21:50.215149 | 2023-03-11T15:47:48 | 2023-03-11T15:47:48 | 186,227,063 | 81 | 62 | null | 2023-03-11T15:47:50 | 2019-05-12T07:55:45 | C++ | GB18030 | C++ | false | false | 430 | h | GroupMonster.h | #ifndef _GROUP_MONSTER_H_
#define _GROUP_MONSTER_H_
#include "cocos2d.h"
USING_NS_CC;
class GroupMonster: public Node
{
public:
// virtual bool init();
static GroupMonster* initGroupEnemy(int type, int road, int path);
CREATE_FUNC(GroupMonster);
//保存怪物类型
CC_SYNTHESIZE(int, type, Type);
//不同出口
C... |
56bde0b3ce163893fa99035a1334dee9f5a1b1a6 | 34860e94440ee8620d1d3d486546c1b87b2c28e6 | /Lab1/Student.h | 2c425cb31b239b6d0363ffa4e9edbc337772b679 | [] | no_license | Pieloaf/3rd-Year-CompArch-Labs | a077ad032224e82eacf12d56ae51ea45ffd3ec16 | 2a36718f83f473cb19839fe8ee5ea31519be372f | refs/heads/main | 2023-04-02T23:37:16.933352 | 2021-03-26T21:10:28 | 2021-03-26T21:10:28 | 351,913,026 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 136 | h | Student.h | #pragma once
#include "Person.h"
class Student : public Person
{
public:
void set_id(int);
void print_id(void);
private:
int id;
};
|
33cb9cf96d4bbea829d3e0fa83ffe3b15f57e183 | 13f40877742a6134d5e67f098b1436f85aa9347a | /src/Book/20_analog_read_resistor/20_analog_read_resistor.ino | 1253cbf930baba1df96794614f4e9056bc9d3f05 | [] | no_license | sprach/GETHS_ArduinoRPi | d77e59c7e65d348ddfec1ed5e987a2ff5e6f86f7 | 11abef43e7ccb1b3d8cb9e4e9881b1131ffc3f72 | refs/heads/master | 2020-12-07T16:15:39.202085 | 2020-03-01T02:36:12 | 2020-03-01T02:36:12 | 232,749,290 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 171 | ino | 20_analog_read_resistor.ino | const int analogPin = A0;
int analogValue;
void setup() {
Serial.begin(115200);
}
void loop() {
analogValue = analogRead(analogPin);
Serial.println(analogValue);
} |
a999bf406bb2539c524c8143c208965744c25d57 | d62c1081b555706daf9b86cdb80fdbace9aaa40a | /cpp_src/core/payload/payloadfieldvalue.cc | e9a0d6a06f559da94fbb991c13c62da569aa70b1 | [
"Apache-2.0"
] | permissive | Restream/reindexer | 2906aae14e16c27e50b36e806949ef0fe4aca61c | 6d4504fcdb9dc2e98169ea739fd14c243766da2d | refs/heads/master | 2023-08-28T09:36:57.626697 | 2023-07-29T12:41:16 | 2023-07-29T12:41:16 | 96,545,309 | 775 | 79 | Apache-2.0 | 2022-12-27T11:39:04 | 2017-07-07T14:14:38 | C++ | UTF-8 | C++ | false | false | 307 | cc | payloadfieldvalue.cc | #include "payloadfieldvalue.h"
namespace reindexer {
void PayloadFieldValue::throwSetTypeMissmatch(const Variant& kv) {
throw Error(errLogic, "PayloadFieldValue::Set field '%s' type mismatch. passed '%s', expected '%s'\n", t_.Name(), kv.Type().Name(),
t_.Type().Name());
}
} // namespace reindexer
|
64142297786803355fa27fd2e60e3b0243717a50 | bd35be07688d470ef890c24c5c363298a4432cf7 | /wiasane/wiasane.cpp | ffacd869de5b8de1e2871ea094c39a0296878567 | [
"curl",
"LicenseRef-scancode-other-permissive"
] | permissive | Zax/wiasane | 49c5fd62ef73f0dec2a4566627c084b67e226b79 | 63b6c95332e18e5fe60ea560285468f60c0020b6 | refs/heads/master | 2021-01-18T20:54:10.048526 | 2014-03-16T22:59:27 | 2014-03-16T22:59:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 36,854 | cpp | wiasane.cpp | /***************************************************************************
* _ ___ _____
* Project | | / (_)___ _/ ___/____ _____ ___
* | | /| / / / __ `/\__ \/ __ `/ __ \/ _ \
* | |/ |/ / / /_/ /___/ / /_/ / / / / __/
* ... |
a6d87236ca03989b7358ab0ac852bb678f8e4de0 | e04214cde3f35b672a3ea2c36c09803e35456782 | /include/nano_engine/systems/display/opengl_swap_mode.hpp | ec3bf5237bb8ddf486a5d71b592a5deafd7321c5 | [
"MIT"
] | permissive | amitahire-Graphics-OpenGL-Vulkan/di | f3951bbff0281601b5d047a148f0a00824c3b799 | f2e6376e8fa97a7973bc73482077cd1960197366 | refs/heads/master | 2021-05-01T06:00:11.132383 | 2017-11-26T22:00:53 | 2017-11-26T22:00:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 252 | hpp | opengl_swap_mode.hpp | #ifndef NANO_ENGINE_SYSTEMS_DISPLAY_OPENGL_SWAP_MODE_HPP_
#define NANO_ENGINE_SYSTEMS_DISPLAY_OPENGL_SWAP_MODE_HPP_
namespace ne
{
enum class opengl_swap_mode
{
late_swap_tearing = -1,
immediate = 0,
vertical_sync = 1
};
}
#endif
|
ba5bedfcd77e55cb1cb2a9846756f7cf2b153586 | 00a3c712bd71e0ffc33f2c5040a4e6abe9c48ca4 | /DetectBrowserProcess/main.cpp | 2d3101efe6297232cf6aee36429de7e0ab828551 | [] | no_license | liwooood/CertificateWin | 55e8666225d7011a6e2c911637a900ea055dfdd6 | a3d8f82ca2e9af46b95986c35a9d2e249fb792c1 | refs/heads/master | 2020-04-10T19:45:51.284949 | 2014-03-01T09:12:49 | 2014-03-01T09:12:49 | 30,819,113 | 3 | 1 | null | 2015-02-15T05:42:07 | 2015-02-15T05:42:07 | null | UTF-8 | C++ | false | false | 1,150 | cpp | main.cpp | #include <Windows.h>
#include <psapi.h>
#include <TlHelp32.h>
#include <process.h>
#include <tchar.h>
#pragma comment(lib, "Psapi.lib")
BOOL __stdcall DetectBrowserProcess()
{
HANDLE hSnapshot = ::CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
if (!hSnapshot)
return FALSE;
PROCESSENTRY32 pe;
::ZeroMemo... |
3c073a7df076db7c72a050cad016433e46e0143e | d6c6d89f552559ea3f279ac2b574808d6e815124 | /codeblock_test/src/test.cpp | 6cf8ca511e84d5d2123e8ed069626ca13f7f8ae8 | [] | no_license | parinphatw/CPlusPlus | a1c23e5542de66eec3cef1621a8c0fba4f003d7e | ea8fc55ad75a0a663ae9b98b3079b68521e6256f | refs/heads/master | 2022-02-20T21:42:33.485172 | 2019-10-04T06:11:18 | 2019-10-04T06:11:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 112 | cpp | test.cpp | #include "test.cpp.h"
#include <iost
test.cpp::test.cpp()
{
//ctor
}
test.cpp::~test.cpp()
{
//dtor
}
|
c4fb028381871e0d3434818e157e39d3cd2f7589 | aacfe3005dffe25e7bb707aa3cfe08afc56b16ef | /imageIO.h | d17cc3f3b4512cac00eddccd1001063ffe47016b | [] | no_license | nathanpackard/ndl | bd3c16f1a155cef3e11e9445745af0d7b7fcef65 | ed22d0d11dcbb9c238ba26eca7ccd2083606f166 | refs/heads/master | 2021-01-10T07:00:28.131574 | 2018-04-29T23:40:16 | 2018-04-29T23:40:16 | 53,711,192 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,067 | h | imageIO.h | #pragma once
#include "imageIO/bitmap.h";
#include "imageIO/jpeg_decoder.h";
#include "imageIO/avi.h";
#include "imageIO/dicom.h";
#include "imageIO/NRRD/nrrd.h"
#include <algorithm>
#include <array>
#include <exception>
namespace ndl
{
namespace ImageIO
{
std::vector<uint8_t> Load(std::string fileName, std::array... |
3f72cb3eaba4600dd231ae7ecc84fe14c617c0eb | df90ed23a49dba79f61e5a28366424f0ecec60de | /src/plugin/real_call.cpp | cf6e440fa263add504378c3170613449bf6c60b2 | [
"BSD-2-Clause"
] | permissive | Damdoshi/LibLapin | 306e8ae8be70be9e4de93db60913c4f092a714a7 | 41491d3d3926b8e42e3aec8d1621340501841aae | refs/heads/master | 2023-09-03T10:11:06.743172 | 2023-08-25T08:03:33 | 2023-08-25T08:03:33 | 64,509,332 | 39 | 12 | NOASSERTION | 2021-02-03T17:18:22 | 2016-07-29T20:43:25 | C++ | UTF-8 | C++ | false | false | 1,283 | cpp | real_call.cpp | // Jason Brillante "Damdoshi"
// Hanged Bunny Studio 2014-2018
//
// Lapin library
#include <avcall.h>
#include "lapin_private.h"
void _real_call(const t_bunny_prototype *function,
t_bunny_value *return_value,
size_t nbr,
t_bunny_value *params)
{
av_alist lst;
size_t i;
switch (f... |
95704714b983864be99d1347801dff67018cdc14 | 1960e1ee431d2cfd2f8ed5715a1112f665b258e3 | /src/exception/cabinetexception.cpp | bcfa94881d3952ebd2da194ea323c1ea7d3476b8 | [] | no_license | BackupTheBerlios/bvr20983 | c26a1379b0a62e1c09d1428525f3b4940d5bb1a7 | b32e92c866c294637785862e0ff9c491705c62a5 | refs/heads/master | 2021-01-01T16:12:42.021350 | 2009-11-01T22:38:40 | 2009-11-01T22:38:40 | 39,518,214 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,822 | cpp | cabinetexception.cpp | /*
* $Id$
*
* Exception class for SCARD API Errors.
*
* Copyright (C) 2008 Dorothea Wachmann
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the Licens... |
52276e2d3ede3b7d360d94183863679faae81a57 | 684c9beb8bd972daeabe5278583195b9e652c0c5 | /src/nb/simple_profiler_test.cc | f78fa325f298522a3ef36df9a6319b68ed01ec85 | [
"BSD-3-Clause"
] | permissive | elgamar/cobalt-clone | a7d4e62630218f0d593fa74208456dd376059304 | 8a7c8792318a721e24f358c0403229570da8402b | refs/heads/master | 2022-11-27T11:30:31.314891 | 2018-10-26T15:54:41 | 2018-10-26T15:55:22 | 159,339,577 | 2 | 4 | null | 2022-11-17T01:03:37 | 2018-11-27T13:27:44 | C++ | UTF-8 | C++ | false | false | 2,674 | cc | simple_profiler_test.cc | /*
* Copyright 2017 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... |
03464bae417d0401c73186141e616a9187ceef78 | 7ed7aa5e28bd3cdea44e809bbaf8a527a61259fb | /LeetCode/1524. Number of Sub-arrays With Odd Sum.cpp | b401578960723722451fb269dd855cf6b7b6a3f6 | [] | no_license | NaiveRed/Problem-solving | bdbf3d355ee0cb2390cc560d8d35f5e86fc2f2c3 | acb47328736a845a60f0f1babcb42f9b78dfdd10 | refs/heads/master | 2022-06-16T03:50:18.823384 | 2022-06-12T10:02:23 | 2022-06-12T10:02:23 | 38,728,377 | 4 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 575 | cpp | 1524. Number of Sub-arrays With Odd Sum.cpp | #include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
class Solution
{
public:
int numOfSubarrays(vector<int> &arr)
{
ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
int prev_odd_count = arr[0] & 1;
int count = prev_odd_count;
for (int i = 1, s = arr.size(); i < s; ++i)
... |
a193ef9c7063257d1724396508a3cb931e123949 | 555f1a2fc19cf63c37868b45fa0bb74c5d2b4282 | /src/qt/budgetitem.h | 62c29c2883252ed92ed85c22b00bb6facbbfe138 | [
"MIT"
] | permissive | btcreversal/SocialSend | 34bd420da20520131090750c491be65b8d89b2ba | af42236c8aff4faeb5d4544666e69480e1f42c17 | refs/heads/master | 2023-03-16T19:34:53.960903 | 2020-12-08T12:48:03 | 2020-12-08T12:48:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 861 | h | budgetitem.h | #ifndef BUDGETITEM_H
#define BUDGETITEM_H
#include <QWidget>
#include <QMessageBox>
#include <QDesktopServices>
#include <QUrl>
#include "masternode-budget.h"
namespace Ui {
class BudgetItem;
class BudgetData;
}
class BudgetData{
public:
QString name;
QString url;
QString hash;
QString address;
lo... |
a149b0b0c90555c52a520a8d6fc6ae81ca18cdac | fae663a394f24aab5ff39b164f088a6714ec3ba9 | /expr/take_out_types.h | 3f49483c38b8373622319c9d4c90ba73f253caf0 | [] | no_license | IanHG/libmda | 1487f549298b3c1f5c1b72992f1ea8f5373a0dd8 | a1f0e236f5527edbe803244de49e85ec09f95839 | refs/heads/master | 2021-01-18T23:06:45.827622 | 2018-09-14T12:51:25 | 2018-09-14T12:51:25 | 15,339,841 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 588 | h | take_out_types.h | #ifndef LIBMDA_EXPR_TAKE_OUT_TYPES_H
#define LIBMDA_EXPR_TAKE_OUT_TYPES_H
namespace libmda
{
namespace expr
{
template<class L, class R>
struct take_out_types
{
typedef typename L::value_type value_type;
typedef typename L::size_type size_type;
typedef typename L::type type;
};
template<class R>
stru... |
895b5c8fb6aa926180b90457280160449ac4983f | 320caa6ee31a8bf64716ff3927aee4c340245c58 | /Types/Headers/Location.h | 33d310154211c8c493c0e6f81a1867d3e1bac84b | [] | no_license | GrayWizard12345/CppTelegramBotAPI | 5846d9a3095d916f962e784c3a70f06595357f3d | 93e6c2a9d8eb2e15b4f7d4c40f46ea904c1aafe9 | refs/heads/master | 2021-05-16T07:24:40.979259 | 2017-09-16T16:37:54 | 2017-09-16T16:37:54 | 103,766,682 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 180 | h | Location.h | //
// Created by hamlet on 9/16/17.
//
#pragma once
#ifndef TELEGRAMBOTAPI_LOCATION_H
#define TELEGRAMBOTAPI_LOCATION_H
class Location {
};
#endif //TELEGRAMBOTAPI_LOCATION_H
|
3eaa0ecb5e45a85fb6186030dda615f7819c9fd7 | 9b1639af63f7fc82f0e488b452dee0cb7ae22a3b | /avis/trunk/source/src/avis100/verv/src/free_match.cpp | d74a68f9375f7bafeaf83ba3f1057ead0e1239be | [] | no_license | ExpLife/Norton_AntiVirus_SourceCode | af7cd446efb2f3a10bba04db8e7438092c7299c0 | b90225233fa7930d2ef7922080ed975b7abfae8c | refs/heads/master | 2017-12-19T09:15:25.150463 | 2016-10-03T02:33:34 | 2016-10-03T02:33:34 | 76,859,815 | 2 | 4 | null | 2016-12-19T12:21:02 | 2016-12-19T12:21:01 | null | UTF-8 | C++ | false | false | 326 | cpp | free_match.cpp | #include <stdio.h>
#include <stdlib.h>
#include "autoverv.h"
void free_match(struct match_data *match)
{
if(match)
{
if(match->pos_in_sample)
free(match->pos_in_sample);
free(match);
}
match = NULL; // 6/25/97 Fred: for clarity and to keep BoundsChecker quiet
... |
35def1c80aa2ea3f9ab7ef81b330b023dee417ac | 59a85caf571e69d809e9e5981e5b40fad72a3776 | /RenderingEngine/FrameBufferObject.cpp | dda5d86e4804b3a0838f0ffa15086e15bb93e6fa | [] | no_license | Aloalo/RenderingEngine | 46c284becbf4c2b75ef25c311416dd19fc373df7 | 6e953789ad7a818c0baaf4e20f6c076930b1de1e | refs/heads/master | 2020-04-04T13:39:00.515070 | 2014-03-31T13:05:17 | 2014-03-31T13:05:17 | 10,144,139 | 1 | 0 | null | 2014-03-12T22:29:56 | 2013-05-18T16:47:29 | C++ | UTF-8 | C++ | false | false | 1,672 | cpp | FrameBufferObject.cpp | #include "FrameBufferObject.h"
namespace reng
{
FrameBufferObject::FrameBufferObject(GLenum _target)
: target(_target)
{
}
FrameBufferObject::~FrameBufferObject(void)
{
}
void FrameBufferObject::bind() const
{
glBindFramebuffer(target, ID);
}
void FrameBufferObject::destroy()
{
glDeleteFramebuffe... |
885f07524d9e847a38798b14d55848a916b7fcc3 | fa9ff3c71f777a79c5efae770834cc99661e7857 | /Введение в С++/Lesson5Cpp.cpp | 34ad320e6a43d06becae016936a57ef5750c7af6 | [] | no_license | EvilMokumokuren/Project | cb89d820bf94b2a5f9de41088db65fe22c3d63c8 | a0b0c6193350b8ef2f27d6bbcd539510a7b14c7b | refs/heads/master | 2023-05-05T18:29:53.506462 | 2021-05-28T11:45:13 | 2021-05-28T11:45:13 | 339,154,976 | 0 | 0 | null | 2021-02-15T19:03:58 | 2021-02-15T17:30:30 | null | UTF-8 | C++ | false | false | 8,192 | cpp | Lesson5Cpp.cpp | /* Колпакова Е., Lesson 5, Visual Studio Code
1. Написать функцию которая выводит массив double чисел на экран. Параметры функции это сам массив и его размер. Вызвать эту функцию из main.
2. Задать целочисленный массив, состоящий из элементов 0 и 1. Например: [ 1, 1, 0, 0, 1, 0, 1, 1, 0, 0 ]. Написать функцию, заменяю... |
abb50d0c0cb20dd18ce78b7ad5e16e464236a3d4 | 13c54e449a9e2b09ba29d05d40b43e839f6a081f | /practica16/SD_Diseño_web/Servidor_carga/Cliente.cpp | fa469d31bf2cdf2a6b2a2dfb1018cdb5aebe2b92 | [] | no_license | Julsperez/Practicas-distribuidos | 1c637e96c31a0b7a9715406d14d8ae774a932623 | 98e734c1705102bedb3319ac1bc8fb3d1e728f0d | refs/heads/master | 2022-11-30T12:23:14.663037 | 2020-08-08T23:49:33 | 2020-08-08T23:49:33 | 260,347,969 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 976 | cpp | Cliente.cpp | #include "./dependencies/Solicitud.h"
#include <iostream>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <thread>
#include <vector>
using namespace std;
int main(int argc, char*argv[]) {
char bufferVote[4000];
char *ip = argv[1]; // Need to be server A ip
int port = atoi(argv[2]); // Need to... |
90b622e1abf5ea9285ee0cb567b58419f8f0333a | abbf7542035dbddecfc90c5af491dd5b8a756d4d | /libeffect/ImageEffect.cpp | 25661786209d613ad96c3e98560bc2d8a7c9323b | [] | no_license | xeonye/HiVideo2 | 0ec0bbd01386e9070fbc9e48f9cefe4117653423 | c7d3110ab08213e801ec54256b4fda9c6d83b553 | refs/heads/master | 2020-05-16T19:02:13.554419 | 2016-01-11T06:12:47 | 2016-01-11T06:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,416 | cpp | ImageEffect.cpp | #include "stdafx.h"
#include "ImageEffect.h"
#include "ImageBlur.h"
namespace e
{
CImageEffect::CImageEffect()
{
m_pConfig = 0;
m_pImageBlur = new CImageBlur();
assert(m_pImageBlur);
m_pBlockTemp = new CMemBlock();
assert(m_pBlockTemp);
}
CImageEffect::~CImageEffect()
{
Clean();
}
void CImageEffec... |
6af39a4b1d2757106c4d9c348ed5921aef8af99b | 0018ae8e4425a3480bbbc437b08da22a1747a23a | /Likelihood/SourceModel.h | 1eeddefd61edcde0545a7e522bd1a3df211f61bf | [
"BSD-3-Clause"
] | permissive | fermi-lat/Likelihood | dd98dea2372a01e6051217c10ee20132a6babc97 | 8181573c1844ee33d5ed3a24cc650f3932e99e10 | refs/heads/master | 2023-08-17T13:29:20.975810 | 2022-09-20T16:08:49 | 2022-09-20T16:08:49 | 103,186,895 | 6 | 2 | BSD-3-Clause | 2022-09-20T16:08:50 | 2017-09-11T20:51:45 | C++ | UTF-8 | C++ | false | false | 8,993 | h | SourceModel.h | /**
* @file SourceModel.h
* @brief Declaration of SourceModel class
* @author J. Chiang
*
* $Header: /nfs/slac/g/glast/ground/cvs/Likelihood/Likelihood/SourceModel.h,v 1.73 2015/12/10 00:57:58 echarles Exp $
*/
#ifndef Likelihood_SourceModel_h
#define Likelihood_SourceModel_h
#include <map>
#include <vector>
#... |
a4acd95c1c80e7d75ca3d735c072f5033ad0964a | 4c6b2fbecac142a74117cf6e84753eb9aaca6455 | /data_structures/1062.cpp | ba150cbbcf727b316688223ac852bb9766296326 | [] | no_license | cauimsouza/uva-solutions | dda39434ed0730ec59225176a52fd97b3e6ab8bd | 5f04cabccd56cd04b6bb8dff9a2e5445e1de734f | refs/heads/master | 2020-04-17T01:15:11.077419 | 2016-09-03T18:11:16 | 2016-09-03T18:11:16 | 48,303,650 | 0 | 0 | null | 2016-06-18T15:45:51 | 2015-12-20T01:42:24 | C++ | UTF-8 | C++ | false | false | 691 | cpp | 1062.cpp | #include <bits/stdc++.h>
using namespace std;
#define REC(i, a, b) for(int i = int(a); i <= int(b); i++)
int main(int argc, char const *argv[])
{
char c, menor;
int index, cont = 1;
vector< stack<char> > v;
while(true){
c = getchar();
if(c == 'e') break;
v.clear();
v.reserve(26);
do{
menor = 'Z' +... |
d5cb9d9f8fa0618fdbb9c24b396299ceff7fa0be | 820988c624b322ec12b6861834b500364fbf98de | /src/utility/stream.hpp | 29f87ef717ae47c2e22c8375a38c558c51be3c6e | [
"BSD-2-Clause"
] | permissive | ExternalRepositories/utility | cf55a3b382c7ed056acb24a6d46aadd17351d349 | 4e72b708d153450bdbc7fc2b45651d71f9a183dc | refs/heads/master | 2023-07-15T17:42:48.317527 | 2020-10-29T15:41:04 | 2020-10-29T15:41:04 | 281,353,635 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,251 | hpp | stream.hpp | namespace stream {
struct InputTag{};
struct OutputTag{};
#include "utility/stream/basic_RecordOrientedStream.hpp"
using iRecordOrientedStream =
basic_RecordOrientedStream< std::basic_istream, char >;
using wiRecordOrientedStream =
basic_RecordOrientedStream< std::basic_istream, wchar_t >;
#include "utility/str... |
fb6e5573a8b6026990b791fa50f8bda1c40cfec1 | 3a8d8e99f35b40dca717d860cf29aca51a084570 | /include/Sudoku.h | a3c3bd272f5ae514a037dc7b34ac284b63abfda5 | [] | no_license | jmal0/sudoku | a24291100d74b607fa7f7783e1354ef079bc62fd | 9a5cda0312dc16ccad37d8999e350bb597b27e69 | refs/heads/master | 2020-12-24T18:41:34.297435 | 2016-05-26T00:32:42 | 2016-05-26T00:32:42 | 58,424,035 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 934 | h | Sudoku.h | #ifndef SUDOKU_H
#define SUDOKU_H
#include <iostream>
#include "SudokuPackage.h"
bool validateGrid(const num_t*);
class Sudoku{
public:
Sudoku();
Sudoku(num_t*);
bool isSolved() const;
num_t simplify(int);
int eliminate(int r, int c, num_t val);
inline num_t get(in... |
ca6e4a4ae6b0c4556e305d72a3e5497100a7f42c | f1c82fb218824e8dbb8c2134922ec47f0f3fc384 | /tree.cpp | 72d6f935ab82070092f07e7a1891b17b48750c38 | [] | no_license | kiyoony/donga-university | 56009b4b3bf9fdc8b5f57c387060af2716e47478 | 658f6f48e2f953a7f859b936d1008b9c7e007d2f | refs/heads/master | 2020-09-14T22:12:29.326018 | 2016-08-19T11:18:57 | 2016-08-19T11:18:57 | 66,076,376 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,698 | cpp | tree.cpp | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
FILE *inp = fopen("tree.inp","r");
FILE *out = fopen("tree.out","w");
char Text[9];
int R_number = 0;
char buf;
typedef struct ListNode{
int r;
char T_Text[9];
int number;
struct ListNode *L;
struct ListNode *R;
}ListNode;
ListNode* AllocNode(ListNode *Nod... |
4b503782f8c5b3e3e2b20b9004fb5ded07fbb840 | f338166a5233997e9cc50653ed143846b19ec2d1 | /Lab 1 - Insertion Sort.cpp | 385b92b3de2562f3bd43df9558cf0a637a86936c | [] | no_license | teknicallyadev/CSE-100 | 40bd71db6c25ebfb9b2cae531c2b7b7bc1bd8c96 | 264771f2b86d7cbaa670dd20924c4ebfdb230ef1 | refs/heads/master | 2022-12-10T13:23:25.896584 | 2020-09-07T04:16:45 | 2020-09-07T04:16:45 | 293,383,940 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 665 | cpp | Lab 1 - Insertion Sort.cpp | #include <iostream>
using namespace std;
int main(){
int length = 0;
int *arr;
int key;
int count = 1;
int i, j, k;
cin >> length; //takes in input of how long the array shall become
arr = new int[length];
for(i = 0; i < length; i++){ //takes values into array at index i
cin >> arr[i];
}
... |
c0dfb9e15b9cd81ef85fdde66015d87e01c724fc | 2bd2b5e6a4d7f51d7627fe934a7f4e51af9aa132 | /trygonometria/main.cpp | a7170e119133fdb4261488ca937902756e2ac250 | [] | no_license | BetsTank/Moje | 9515839736356bb64f47386894f9ce13b7bcc363 | 1f1e727296e364c879f97620c2503b98ee8b64a4 | refs/heads/master | 2020-04-06T06:57:21.464148 | 2016-09-11T13:24:52 | 2016-09-11T13:24:52 | 61,532,500 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 489 | cpp | main.cpp | #include <iostream>
#include <string>
#include <sstream>
#include "kalk.h"
#include <windows.h>
using namespace std;
int choose;
int main()
{
cout<<"Zwykly kalkulator -1, rownania kwadratowe -2: "<<endl;
cin>>choose;
switch(choose)
{
case 1:
kalkulator();
break;
... |
cd7de6e76e7fed634480cfe7391e1324a0246f5a | 7b15ab8e034d4dc1ef1e4c41936ee0b905cd5fb4 | /gcd_of_2num.cpp | c57fd5b314b0db6e4c889ea214244773210ba90c | [
"MIT"
] | permissive | preetimaurya1992/programming_practise_C-Interview-question- | 41a214e128e43fe62378b165ce1b969a9b136ef1 | 5b85c6b1005051199825e472a37cde2503f28489 | refs/heads/main | 2023-07-07T16:55:03.250456 | 2021-08-27T07:13:30 | 2021-08-27T07:13:30 | 397,579,920 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 301 | cpp | gcd_of_2num.cpp | #include<bits/stdc++.h>
using namespace std;
//Write a program to find GCD of two numbers
int main(){
int a,b,gcd=1;
cout<<"enter the two number for gcd"<<endl;
cin>>a>>b;
for(int i=1;i<=a&&i<=b;i++){
if(a%i==0&&b%i==0)
gcd=i;
}
cout<<gcd<<endl;
return 0;
} |
208fc8e07724781d0b556d143cad44dc86a9c883 | 3c0c1bb035e7e6297f64d1c2df6ee2fdafdb242a | /Projet Fondamentaux Scientifique/Simon/Prgm Arduino/TEST2.0/TEST2.0.ino | ebb1a93f0c105546cc0536b84ff6aa395df8e00f | [] | no_license | Thibaut59/Projet-Fondamentaux-Scientifique | 71e8b9a66f4ac8ee5d9ce9e73f040b0b58c58af5 | 359a9f3512abcc99bd418c33d9dff272a243baa4 | refs/heads/master | 2020-04-05T16:01:13.077910 | 2018-11-19T13:03:41 | 2018-11-19T13:03:41 | 156,993,746 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 951 | ino | TEST2.0.ino | int battement=0; //le nombre de battement au début du programme doit être de 0
int bpm;
int temps=60000; //le temps commence à 1 minute pour passer aprés la boucle à 2 minutes etc...
void setup() {
Serial.begin(9600);
int i =random(749,1000); //i est le temps entre chaque battement, il doit rester constant ... |
779e5b7d22803551bd328bbcfe5dc545cba8f083 | 8efe005ac9cbc202ef1db530954f142933a4b184 | /0721/computer/test_price.cc | 3cc39bf8d403ecbe29988d7852f651840975d716 | [] | no_license | dasima/WD | e58ec753003d28df5420942ed14f090cd9456ecb | f7f6f3dd3ea8faef982cb72279021118c91935f8 | refs/heads/master | 2021-01-19T03:18:35.707357 | 2014-08-27T01:34:04 | 2014-08-27T01:34:04 | 21,316,067 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 457 | cc | test_price.cc | #include "computer.h"
#include "dell.h"
#include "lenovo.h"
#include "mac.h"
using namespace std;
int main(int argc, const char *argv[])
{
Computer *tt;
Dell d;
Lenovo l;
Mac m;
tt -> price();
cout << "--------------------" << endl;
tt = &d;
tt -> price();
cout << "------------------... |
f524ac74c9db9d2922220a4dc9ebe9f217dfab67 | 00dd9ac568ae9399f55d0ae9fa8fbbfa4b710d24 | /ProblemsSolved/Graphs/graphConnectivity.cpp | b78b6556fca71e72c4fb9848de3de2832a4c6d5c | [
"Apache-2.0"
] | permissive | opwarp/Algorithms | 8337c1d9e126f7414c553fa3c112a3ec068f82e6 | af791541d416c29867213d705375cbb3361f486c | refs/heads/master | 2022-04-04T23:41:56.659498 | 2020-02-17T15:02:19 | 2020-02-17T15:02:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,205 | cpp | graphConnectivity.cpp | #include <bits/stdc++.h>
using namespace std;
// comp = component
int MAXN = 26, N, compId = 1;
vector<vector<int>> ady;
vector<int> getComp;
void initVars() {
ady = vector<vector<int>>(MAXN, vector<int>());
getComp = vector<int>(MAXN);
}
void dfsCC(int u, vector<int> &comp) {
if (getComp[u]) return;
getComp... |
41f429e40430d35ee0c75e3faaa7146677a37ffc | 1769935ed52d834b1e5db9c9bccb6774562be38d | /src/test_vis.cpp | ee3a31ee633d0f5b212932b0be1ade5d02a8838e | [] | no_license | anderdefector/VISION | b97bdd69ddc7a9e8c9072c1be67af659524dec4e | 9f9960765d6c5926f2dbec1afbdd19aabb285833 | refs/heads/master | 2020-03-11T15:54:32.983186 | 2018-04-18T17:45:49 | 2018-04-18T17:45:49 | 130,099,818 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,313 | cpp | test_vis.cpp | //http://docs.opencv.org/3.1.0
/*
23 de Febrero 20:42
El programa funciona correctamente y se agregó la región de ínteres
*/
#include <ros/ros.h>
#include <iostream>
#include <sstream>
#include <string>
#include <math.h>
#include <image_transport/image_transport.h>
#include <cv_bridge/cv_bridge.h>
#include <sensor_... |
23b710032617393c99136ab5bfc94f5595db1c8f | fc3bca040602fd6cb1f208369d0dcb59ac261584 | /R3_Source/Hazards/IntensityModels/RAtkinson1997IntensityModel.h | dff377cde893db8172374090d930d953a27be692 | [] | no_license | rccosta1/R3 | 907cc42fe541609f3e76c9e23d6d6aed0362642b | 082542ee1d0d1461814a44c3b4ebc55a73918616 | refs/heads/main | 2023-06-03T17:56:54.415562 | 2021-06-29T20:33:22 | 2021-06-29T20:33:22 | 381,476,642 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,986 | h | RAtkinson1997IntensityModel.h | #ifndef RAtkinson1997IntensityModel_H
#define RAtkinson1997IntensityModel_H
#include "RModel.h"
#include "REarthquakeBaseClass.h"
class RParameter;
class RResponse;
class RLocation;
class RAtkinson1997IntensityModel : public REarthquakeBaseClass
{
Q_OBJECT
Q_PROPERTY(QObject *Magnitude READ ge... |
00fdc69266255a174016bdd4c0a8c22d057818ed | c42689414b1f6a828c9c6d35cb445691355e3e45 | /Classes/level_39/GameScene39.cpp | 8cb793fc107b4516a7b010b994618e53f2d079bb | [] | no_license | EMGAME/Sister | ddfd751b7e5feafd260c356d6874036ac4e2e238 | 33fa7c86c2669e016c2ead9b27aab100aa75aa81 | refs/heads/master | 2021-01-02T09:09:01.621004 | 2014-10-22T04:16:02 | 2014-10-22T04:16:02 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 5,856 | cpp | GameScene39.cpp | #include "GameScene39.h"
#include "../game.h"
Scene* GameScene39::createScene(){
auto scene = Scene::create();
auto layer = GameScene39::create();
scene->addChild(layer);
return scene;
}
bool GameScene39::init(){
m_ui = UISimple::create();
this->addChild(m_ui, 30);
Size visi... |
dd8f711417073272b92a1a164b9d131604052310 | c957f846dd46d635ca49b087ba53963767382768 | /P1781.cpp | 09c126f1690406466f711240169a86441d1bdea6 | [] | no_license | Hooollin/luogu | bac7674a75964357fb5b655df80279d084523455 | f1716f407a70eac231e1ae398df18a79197b330d | refs/heads/master | 2023-04-04T07:00:34.816233 | 2021-04-14T03:24:29 | 2021-04-14T03:24:29 | 285,827,128 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 450 | cpp | P1781.cpp | #include <bits/stdc++.h>
using namespace std;
bool cmp(string &a, string &b){
if(a.size() != b.size()){
return a.size() < b.size();
}
return a < b;
}
int main(){
int n;
cin >> n;
string score[n];
map<int, string> m;
for(int i = 0; i < n; i++){
cin >> score[i];
m[i + 1] = score[i];
}
sort(score, score ... |
c0313b57b4937f07f00a1fe5ac090f58a9ec049a | ad0b6f3df61a614cf29b8c2f4a668e1b24f1f588 | /Practical.h | 9d1784b1f8f2c662f5ed8ef6cc87dc7179ae7375 | [] | no_license | vmandocd/httpClient | e172ba4b0e39ad5ae5fb767bce230f4fa8c35e66 | f0022cff9cb30c3853ce73628733688bee58db28 | refs/heads/master | 2020-03-20T13:02:25.875723 | 2018-09-19T05:25:33 | 2018-09-19T05:25:33 | 137,446,950 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,291 | h | Practical.h | #ifndef PRACTICAL_H_
#define PRACTICAL_H_
#include <stdbool.h>
#include <stdio.h>
#include <sys/socket.h>
#include <string>
// Handle error with user msg
void DieWithUserMessage(const char *msg, const char *detail);
// Handle error with sys msg
void DieWithSystemMessage(const char *msg);
// Print socket address
void ... |
584526b7ca655394efcd71038bcb25800b54a37c | ae46898df36081ee0b889875dab8ff5af101bfb3 | /Arduino/Lab 03/LeftServoClockwise/LeftServoClockwise.ino | 52b06652610380edd8b6590816ddfc2d39e298a5 | [] | no_license | JamesFinglas/Arduino-Sample-Programs-i-wrote-in-my-2nd-year | e7b40b35f82a248f82d54733b66e5f8352c65c30 | b20ffe128aef18cb789aac332ef7a49361c16cfd | refs/heads/master | 2020-12-09T14:17:31.385995 | 2020-01-12T03:11:25 | 2020-01-12T03:11:25 | 233,330,906 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 329 | ino | LeftServoClockwise.ino | #include <Servo.h> //include servo library
Servo servoLeft; //declare left servo
void setup(){ //built in initialization block
servoLeft.attach(12); //attach servoLeft to pin 12
}
void loop(){ //main loop auto-repeats
servoLeft.writeMicroseconds(1300); //1.5 ms full speed clockwise signal (do not forget to calibrate s... |
b1ad911c12a9ab4349a470d733c1494a7498089d | 8120aebee59b6e7fc16d5fccf666cca49eeeb94e | /AtlasSprite/ASPEditor.cpp | 23198a1e2e9af152e6829c41de9a309bbc32f276 | [] | no_license | Arroria/ASP_Editor | d2b9fa0ed47f890fce94fcc4a374d3cad645a38b | 6dcc749c953e9fe6e534f714bfa00a45eb56275d | refs/heads/master | 2020-03-21T02:09:12.033879 | 2018-06-27T23:00:43 | 2018-06-27T23:00:43 | 137,983,293 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 17,746 | cpp | ASPEditor.cpp | #include "stdafx.h"
#include "ASPEditor.h"
//OPENFILENAME, GetOpenFileName 사용
#include <commdlg.h>
constexpr static bool IsSucceeded = true;
constexpr static bool IsFailed = false;
constexpr static const wchar_t* defaultResultPath = L"./_Result.asp";
enum class ASPEditor::IMEUsage
{
_NULL,
GridSizeX,
GridSi... |
5e2238f8f45f49ea35f9d9890eb8cc0d6c7fd844 | 32b7d2b749bd631a528389352e2af4839947e81e | /Classes/Menu.h | 4a4711baffee4373c56d3d0d43e830acd3302c74 | [] | no_license | edzio94/SdiZO3---Knapsack-TSP | 02ad3b076b2d8f2beab31d4a306f767362b2b210 | ad30cd5ac96437b881e5d5de6e6dcf93331b6999 | refs/heads/master | 2021-01-17T20:36:19.426473 | 2016-06-07T09:05:54 | 2016-06-07T09:05:54 | 60,598,798 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 442 | h | Menu.h | //
// Created by lukasz on 6/6/16.
//
#ifndef SDIZO_PROJECT3_MENU_H
#define SDIZO_PROJECT3_MENU_H
#include "TSP_BruteForce.h"
#include "BackpackBruteForce.h"
#include "DataLoader.h"
class Menu {
BackpackBruteForce backpackBruteForce = NULL;
TSP_BruteForce tsp_bruteForce = NULL;
DataLoader dataLoader;
p... |
ebbb9824c8e6db31714092cbeba9b8418cff6cda | a03821df6b547c0bc8ecde2ffaf79ab6a50ccb37 | /c/old/abc186/e.cpp | 3fa46750ab64a41203038ab04b8126ca49c6ecdb | [] | no_license | ueda0319/AtCoder | 85483601e897c9ec4a554ac593d66308ff6d8dc6 | 7b7b5b592c2034c3c5d545d4374429f208332c11 | refs/heads/main | 2023-02-22T07:46:03.884858 | 2021-01-23T14:55:09 | 2021-01-23T14:55:09 | 326,196,351 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,907 | cpp | e.cpp | #include <bits/stdc++.h>
#include <iostream>
#include <string>
#include <math.h>
using namespace std;
long long gcd(long long a, long long b) {
if (a < b) return gcd(b, a); // a >= bに統一する
if (b > 0) {
return gcd(b, a % b); // 1つ目のケース
} else {
return a; // 2つ目のケース 終端条件
}
}
long lo... |
5162ea73087e88effeab54e259a26874cb0b7f5b | 8b4aa709eb2df6f058fa6bb1bbc71dd5d3efc464 | /AirLib/include/vehicles/configs/PX4ConfigCreator.hpp | c738dcef62e6f8f2d673e0b24c3db4e43db42a43 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | meee1/AirSim | c79974c237f03817052cd69251c49eb37bc78741 | 1792f7a36935d00c25c4456a71abfe36784eb70e | refs/heads/master | 2020-05-25T15:51:09.686414 | 2017-03-23T23:36:57 | 2017-03-23T23:37:32 | 84,944,458 | 1 | 0 | null | 2017-03-14T12:05:24 | 2017-03-14T12:05:23 | null | UTF-8 | C++ | false | false | 5,684 | hpp | PX4ConfigCreator.hpp | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef msr_airlib_vehicles_PX4ConfigCreator_hpp
#define msr_airlib_vehicles_PX4ConfigCreator_hpp
#include "controllers/MavLinkDroneController.hpp"
#include "controllers/Settings.hpp"
#include "BlacksheepQuadX.hpp"... |
22f3e32bb5c8076fc9370623dc801bc07dc4dc8e | 15658838405e383696dd9eb0b5246fb1cec8a0cc | /inc/callDTO.hpp | b52e0a977ec695c1da14d8120c24705aa7e787b5 | [
"WTFPL"
] | permissive | vlachenal/webservices-bench-cpp | ca51d9bddd06120268b5f5063795f76f77936517 | 5fe1ebf783012b8fc89d2e80180fcf6c5f090cb8 | refs/heads/master | 2018-11-02T13:13:59.839853 | 2018-09-18T14:56:40 | 2018-09-18T14:56:40 | 115,055,932 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,905 | hpp | callDTO.hpp | /*
* Copyright © 2017 Vincent Lachenal
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See the COPYING file for more details.
*/
#ifndef CALL_DTO_HPP
#define CALL_DTO_HPP
#include <string>... |
899b4a8064b900c7aa67981e00917612ef1ad2d8 | a0f2e39645ea284939b5d5b8acf70e879300b277 | /sketches/a_haos_infrared_linetracer/a_haos_infrared_linetracer.ino | f7e2b5bb3f4b77e8d8e36a5d3dd1bb78a12f4a53 | [] | no_license | EntropyHaos/codebender_cleanup | 3bf515035129ddc27dd674978361a9c295655f5b | 11b5002b0d72a583af8077a1e1dac91ae7c92617 | refs/heads/master | 2021-06-16T06:53:12.818086 | 2017-04-09T16:28:30 | 2017-04-09T16:28:30 | 87,721,723 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,937 | ino | a_haos_infrared_linetracer.ino | /*
NNNNNNNN NNNNNNNN OOOOOOOOO TTTTTTTTTTTTTTTTTTTTTTT
N:::::::N N::::::N OO:::::::::OO T:::::::::::::::::::::T
N::::... |
5a42a3785066629034d548eb9ac7d78c4c93249e | 3dbec36a6c62cad3e5c6ec767b13f4038baa5f79 | /cpp-lang/design-patterns/hf/Behavioral/Observer/weatherstation/src/app/forecastdevice.h | 43b4a0f847a8bbff14b20232749f28a5cfeebab3 | [] | no_license | reposhelf/playground | 50a2e54436e77e7e6cad3a44fd74c0acc22a553a | 47ddd204a05ec269e4816c2d45a13e5bc6d3e73a | refs/heads/master | 2022-04-22T13:50:24.222822 | 2020-04-10T15:59:30 | 2020-04-10T15:59:30 | 254,675,772 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 239 | h | forecastdevice.h | #ifndef FORECASTDEVICE_H
#define FORECASTDEVICE_H
#include "weatherdevice.h"
class ForecastDevice : public WeatherDevice
{
public:
ForecastDevice(WeatherData *data);
private:
void display() const;
};
#endif // FORECASTDEVICE_H
|
1dca28497a6f2c0260623dc35f729f2f597aa470 | a2b82250fa562ffa80487a5df525ca33ce016088 | /c++/a/c.cpp | 8406785066f7fbd197b45a2ea3211419e16c2159 | [] | no_license | elaxnwer/training | 53d39ce1b98f883d9e41ab233e0fd173c7deac96 | b6536de5c93953b52633d80b0582c7fc63bf5b96 | refs/heads/master | 2022-01-30T01:52:11.012387 | 2018-12-17T13:36:37 | 2018-12-17T13:36:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 558 | cpp | c.cpp | #include <iostream>
using namespace std;
class Person
{
public:
Person(int nAge):m_nAge(nAge){ cout << "创造了一个年龄为" << m_nAge << "的人" << endl; }
Person(Person& Somebody):m_nAge(Somebody.m_nAge + 10) { cout << "复制创造了一个年龄为" << m_nAge << "的人" << endl; }
~Person() { cout << "析构了一个年龄为" << m_nAge << "的人" << endl;... |
1891857e2a262d25afc3631c41c3e4e97745a200 | a06515f4697a3dbcbae4e3c05de2f8632f8d5f46 | /corpus/taken_from_cppcheck_tests/stolen_5960.cpp | 8861d24a12375ca3c98abd80927b5e38fd36fcf8 | [] | 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 | 38 | cpp | stolen_5960.cpp | void f(){intptr_t x; scanf("%x", &x);} |
d9a6a7b77a2fdaa2ebf2cee11d260c14743af1c7 | b408a6f3b195cb30dcbe2433749d0efbbe3daaf9 | /Variable-declaration/SixNumber/Variable.h | 0d8fa40baf4362faf58417493804b39404fbb95c | [] | no_license | 1ivgo/Variable-declaration | 8b4b735c7140c103ad6a99d73e6df4488af09025 | e8a13d22aa995c1b2740c558bef2df9537ba157e | refs/heads/master | 2021-05-02T08:24:26.980187 | 2018-02-08T19:18:56 | 2018-02-08T19:18:56 | 120,666,337 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 297 | h | Variable.h | #pragma once
#include <string>
using namespace std;
class Variable
{
public:
Variable();
~Variable();
void setType(string);
string getType();
void setValue(int);
int getValue();
void setName(string);
string getName();
private:
string type;
int iValue;
bool bValue;
string name;
}; |
73e7506fcacdb0fc16d49976a0d91655825464f4 | c0dd84cf21d8784e53e3bfbdc67a4a2d67d8f58b | /helloworld/fridge/fridge_fcts_20201009.cpp | b1c8edbcc1b55de2e6c81b2f9778c7f428ca8acb | [] | no_license | fyonfa/c_cpp_workspace | b9a94e73c51028755c86fff7d6c7434c3486b2ed | a9b067fce2314c82af26922f1801d011d07dd5df | refs/heads/main | 2023-02-11T21:06:15.698022 | 2023-01-24T15:07:42 | 2023-01-24T15:07:42 | 309,473,211 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,119 | cpp | fridge_fcts_20201009.cpp | /*The idea is to create a full functional program to insert food in the fridge (database/array).
The program will be in charge of:
- Count how many items of each we have in the fridge.
- Organise the food into categories
- If you require to display the items, it will display it with options of "All" or "Cat... |
4292f39db943448cfa5c096b955c03e6c89c78dd | 40e5247582dfaaab03399f1088806628fb57e7ad | /Algorithms/Searching/superprime.cpp | bfc280ceb40a3ec7c50391e7533ed2ac7aa068ef | [] | no_license | arvindr9/competitive-programming | 4e6eed7b3ef7d6056d7829b3054977579bed0cfb | 081c089caa7df96ade43ab4307463d15b56aebb4 | refs/heads/master | 2021-12-20T00:41:32.769536 | 2021-12-06T19:45:03 | 2021-12-06T19:45:03 | 110,597,496 | 0 | 1 | null | 2020-06-20T02:33:07 | 2017-11-13T20:20:24 | C++ | UTF-8 | C++ | false | false | 1,063 | cpp | superprime.cpp | /*
Problem: Superprime Rib (USACO 1994 Final Round, adapted):
A number is called superprime if it is prime and every number
obtained by chopping some number of digits from the right side
of the decimal expansion is prime. For example, 233 is a
superprime, because 233, 23, and 2 are all prime. Print a list of
all ... |
2801434f2fa07b5c2bf92371cfc6c7b6f4f6cb4a | 71d751e0c8cb7370455619621eeab5360da628d9 | /Test_virtualDelay_LED/Test_virtualDelay_LED.ino | 3bf2c9a847c589bf9e138c8486da98526ff24325 | [
"MIT"
] | permissive | guildanj/VirtualDelay | 9c032ee68be9240d919b2a45d61525dca7efcb99 | aa7900343ef17b7c17d40aca2fe54714616faf09 | refs/heads/main | 2023-01-28T03:03:39.329263 | 2020-12-07T08:20:35 | 2020-12-07T08:20:35 | 319,250,032 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 360 | ino | Test_virtualDelay_LED.ino | #include "VirtualDelay.h"
#include <Arduino.h>
const byte ledPin = 13;
bool b;
VirtualDelay singleDelay; // default = millis
void setup() { pinMode(ledPin, OUTPUT); }
void loop()
{
singleDelay.start(400); // calls while running are ignored
if (singleDelay.elapsed())
digitalWrite(ledPin, b = !b); // b... |
32dd51fed63a892df5195b2d5ae1338c41a46c59 | f80c5501ae539099422c42b623876c90d142dd81 | /altWay.cpp | fc935057c7f0913ae8792311d99a8a89da633509 | [] | no_license | huffstler/AlgProject1 | 5a9e869d19fd9bf3bb7b6327ca566f0d8bfd8c65 | f5ee6bd7d1bcaeaa7bf93c56fb66ea40f1e5c6fe | refs/heads/master | 2021-01-10T10:10:27.544639 | 2015-11-11T18:57:32 | 2015-11-11T18:57:32 | 45,137,561 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,917 | cpp | altWay.cpp | #include <iostream>
using namespace std;
/****************************************************************
Performs the Breadth-First Graph search for both directed and
undirected graphs. This algorithm explores all the findable nodes
in "layers".
****************************************************************... |
505fb64edd10c49963c3948b81713299870fba16 | 98cfd0a38ca95772a132485a83e0e51a97fe2813 | /SlingShot_WizardLogic.cpp | 6bce99a87d5eb7d30334cbe59cff755905f68bc4 | [] | no_license | Woonggi/ShepherdBoy | 799a96a328cd2fa3091f4d33809fb6fee96b5cf8 | ebba41f0bd691ddba8406f185da3bf3d79b2a426 | refs/heads/main | 2023-04-21T23:33:29.117838 | 2021-05-24T03:02:03 | 2021-05-24T03:02:03 | 370,211,195 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,655 | cpp | SlingShot_WizardLogic.cpp | /******************************************************************************/
/*!
file SlingShot_WizardLogic.cpp
\author woonggi.eun
\par email: \@gmail.com
\date 2016-03-31
\description
Logic component for SlingShot_WizardLogic
All content (C) 2016 DigiPen (USA) Corporation, all rights reserved.
*/
/*******... |
5845f2f749077239e3d53420417a4af835d8c426 | 6fea2f2f5741c8921b49040d94501c5b41373906 | /something-learned/Algorithms and Data-Structures/Competitive-programming-library/CP/codechef/SnackDown-16/SnackDown elimination round/COLTREE.cpp | 6c0cfec59aa3776d0c11bfa3747d28fec47d63f8 | [
"MIT"
] | permissive | agarrharr/code-rush-101 | 675f19d68206b38af022b60d16c83974dd504f16 | dd27b767cdc0c667655ab8e32e020ed4248bd112 | refs/heads/master | 2021-04-27T01:36:58.705613 | 2017-12-21T23:24:32 | 2017-12-21T23:24:32 | 122,677,807 | 4 | 0 | MIT | 2018-02-23T22:08:28 | 2018-02-23T22:08:28 | null | UTF-8 | C++ | false | false | 1,193 | cpp | COLTREE.cpp | #include <bits/stdc++.h>
#define ll long long
using namespace std;
ll mod = 1000000007;
ll pow(ll a, ll b) {
ll x = 1, y = a;
while(b > 0) {
if(b%2 == 1) {
x=(x*y);
if(x>mod) x%=mod;
}
y = (y*y);
if(y>mod) y%=mod;
b /= 2;
}
return x;
}
ll mmi(l... |
496ad620ab86e09708663d80582cd27b5422b873 | 17e8b775ec28c774857919b8df957145adf2e606 | /codechef/Mathison and pangrams.cpp | 0c48c94c8d8fcb54effc4771c5bad973a37e318f | [] | no_license | chamow97/Competitive-Coding | 30b5acc77d51207c55eca91b8da161d80a3fbfab | 8f2d8a1ca6881dbde9c75735240d4e4f681e0138 | refs/heads/master | 2021-04-28T21:40:05.294842 | 2019-09-15T13:25:59 | 2019-09-15T13:25:59 | 77,766,905 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,364 | cpp | Mathison and pangrams.cpp |
//template by chamow
#include<bits/stdc++.h>
/*-------------------------------------------------------- */
using namespace std;
/*-------------------------------------------------------- */
#define rep(i,val,n) for(ll i=val;i<n;i++)
#define per(j,val,n) for(ll j=val;j>=n;j--)
#define pb push_back
#define pi 3.14157
... |
48d5bc8f094b7d2ecd646712585801969e4d216d | 960d6f70d83484d2b531d79002b5cc7fa8ad8063 | /src/1323.cpp | 762d1d936a536dac0d3f6d1fc5498537b7cf6b83 | [] | no_license | lintcoder/leetcode | 688ce547331f377b68512135dd1033780f080e2b | 384f316b5e713c0e15943cb4de6cf91ab0ff5881 | refs/heads/master | 2023-07-19T18:49:12.858631 | 2023-07-07T13:01:01 | 2023-07-07T13:01:01 | 74,862,636 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 383 | cpp | 1323.cpp | int maximum69Number (int num) {
string s = to_string(num);
int res = 0;
int len = s.size();
for (int i = 0; i < len; ++i)
if (s[i] == '6')
{
s[i] = '9';
break;
}
for (int i = 0; i < len; ++i)
... |
4631012d5b5e888e1ebdf8de9ab0bff7b5b817a3 | e3403d6deecb4bc95c332be65f21e8ffafda0f77 | /Nix/Core/NXGUICubeMap.cpp | aeec918e74b7d18bc75166de4e28c01d823ba6d9 | [] | no_license | moso31/Nix | e820885bf0a31ca6b318047d90e2b96e20239a1f | 984f89d2ec9bafc1ff950a27cf2505bc8c585e22 | refs/heads/master | 2023-08-19T01:40:35.481097 | 2023-08-16T15:14:40 | 2023-08-16T15:14:40 | 201,916,119 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,065 | cpp | NXGUICubeMap.cpp | #include "NXGUICubeMap.h"
#include "NXScene.h"
#include "NXCubeMap.h"
#include "NXResourceReloader.h"
#include "NXGUIContentExplorer.h"
#include "NXGUICommon.h"
NXGUICubeMap::NXGUICubeMap(NXScene* pScene, NXGUIFileBrowser* pFileBrowser) :
m_pCurrentScene(pScene),
m_pFileBrowser(pFileBrowser)
{
}
void NXGUICubeMap::... |
398c0ada515d07cda0794c7855e58a5fd3cff6f2 | 7c685ee061be9e7e29714cf36449595f4f3f274d | /src/cmd.cpp | 69de3d61049d6eeac165b4a7ad7863729c9d3ba1 | [] | no_license | nicklez5/randomstuff | 2da10d5427301342e4e254c43f5258ebae814c1a | 3eff04434bec2434017bca031da285d1d9c8f34b | refs/heads/master | 2021-10-08T15:25:46.566739 | 2018-12-14T02:54:44 | 2018-12-14T02:54:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26,031 | cpp | cmd.cpp | #include "../header/cmd.h"
#include <iostream>
#include <fstream>
#include <cstring>
#include "../header/connector.h"
#include <unistd.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
#include <cstdio>
#include... |
b3071f7d3d3bcaa150bde4f1a482fb5b1e4d359e | c0146da9ca538b1ea8b2508e76cf9dc71eda1063 | /src/G4SBSPrimaryGeneratorAction.cc | cccbe58ea1ecff9a2b92bfce705f292beb253bf2 | [] | no_license | yezhihong/g4sbsDDVCS | f0964b5994e908b8a66662181bc2acc4133ff1ae | 414532440a6736c479d9580515c121f8850f53ff | refs/heads/master | 2020-04-05T23:33:40.359435 | 2015-03-07T23:28:14 | 2015-03-07T23:28:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,427 | cc | G4SBSPrimaryGeneratorAction.cc | #include "G4SBSPrimaryGeneratorAction.hh"
#include "DVCS/TDDVCSGen.h"
#include "G4Event.hh"
#include "G4ParticleGun.hh"
#include "G4ParticleTable.hh"
#include "G4ParticleDefinition.hh"
#include "G4SBSEventGen.hh"
#include "G4SBSIO.hh"
#include "sbstypes.hh"
#include "globals.hh"
#include <iostream>
G4SBSPrimaryGenera... |
aa58c2f04e21ed4ffec1c3672076c36ee18dfa7b | a87aa40058972e013f287534c94791a86aba09a6 | /qc/qc_grammar.cpp | 7196e876beeb1381574fab168d0d20777d74a161 | [] | no_license | aryan-programmer/QC | 25ca22543fa6bd6005c81662325e10d24d0afb9b | c44bd72aed1bfdd7cd5bc1314739cc94b483c01d | refs/heads/master | 2020-04-05T11:13:05.141382 | 2018-12-26T09:03:28 | 2018-12-26T09:03:28 | 156,827,522 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,964 | cpp | qc_grammar.cpp | #include "stdafx.h"
#include "tag_block_manager.h"
#include "qc_grammar.h"
#include <boost/phoenix/function/adapt_function.hpp>
std::string __GetEndString( tags tag ) { return std::string( to_stringQCL( tag , true ) ); }
BOOST_PHOENIX_ADAPT_FUNCTION( std::string , GetEndStringParser , __GetEndString , 1 );
struct qc_... |
8fe945055a0e8a146c148fef0dc52004cd8aec15 | 52519bf3723f6ed38858198321e798988b964e31 | /src/ruqolacore/model/mentionsmodel.cpp | 7501cf172439babf07aeb407827c8e18006d1cb8 | [] | no_license | jcelerier/ruqola | d5625ad0d048a6546900018e70af250a724ebd64 | 4de6bacb63cc7a7a71b4b4e50cdce0076a6288e1 | refs/heads/master | 2022-02-20T15:37:19.362724 | 2019-07-20T07:19:34 | 2019-07-20T07:19:34 | 197,894,956 | 0 | 0 | null | 2019-07-20T07:21:36 | 2019-07-20T07:21:36 | null | UTF-8 | C++ | false | false | 9,907 | cpp | mentionsmodel.cpp | /*
Copyright (c) 2019 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This p... |
77f4ff40db268f429a2f8a1ccf22801e9a768beb | b71170852cbf0758723fb0a563323ff3394cc634 | /day08/ex01/main.cpp | ecf51e45f501821c90352e391f30285d9ecf61f6 | [] | no_license | Alyovano/CPP-Modules | 62038896a2fb8953f169b5162ca8e60d825f86e5 | b22244bb6c95ab35dfcc34c32de41b6df246b724 | refs/heads/main | 2023-05-10T22:57:06.474415 | 2021-05-27T21:44:25 | 2021-05-27T21:44:25 | 345,391,955 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,510 | cpp | main.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: ... |
16df176968f791ec16c4615d36bd1b5e74a725f9 | 805628fd8b692c89b2d34159b7250d417de1cf05 | /Code/Source/ConsoleCommandCVars.cpp | e1bda9e33f3a7c408701f079d19ee83bab8908af | [
"MIT"
] | permissive | BindlestickProductions/CloseAllNetworkPeersGem | 1f5c81c7a93e1d8588fc1656f64995fbe285da05 | 4d8b6693f0fd478d222363ab0445d2ad1cf9098d | refs/heads/master | 2021-05-06T13:00:32.292532 | 2017-12-05T17:52:02 | 2017-12-05T17:52:02 | 113,206,929 | 0 | 0 | null | 2017-12-05T16:34:27 | 2017-12-05T16:34:27 | null | UTF-8 | C++ | false | false | 890 | cpp | ConsoleCommandCVars.cpp | #include "StdAfx.h"
#include "ConsoleCommandCVars.h"
#include <ISystem.h>
#include <CloseAllNetworkPeersGem/CloseAllNetworkPeersGemRequestBus.h>
#include <CloseAllNetworkPeersGem/ShutdownApplication.h>
using namespace CloseAllNetworkPeersGem;
void ConsoleCommandCVars::RegisterCVars()
{
if (gEnv && !gEnv->IsEditor... |
91b9d8103e3f184f48bb0a359fcdc0bc42bddae4 | f5ac7da57d433201a3c802e5f1611ff7914ca5bd | /src/examples/signkfix.cpp | 04967ba917546a975243a5b738c9470aa400a6f7 | [] | no_license | natalikovaleva/iso-iec-9796-3 | c4740b42001099f863b0b274d45029d8bc773a83 | 1d9926960026059dd90671c9c3d05d8b44c81900 | refs/heads/master | 2021-01-01T04:01:05.518073 | 2011-12-18T09:48:05 | 2011-12-18T09:48:05 | 56,810,825 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,115 | cpp | signkfix.cpp | #include <iostream>
#include <sstream>
#include <string>
#include "generic/octet.hpp"
#include "generic/hash.hpp"
#include "ec/ZZ_p/affine/ec.hpp"
#include "ec/ZZ_p/affine/ec_compress.hpp"
#include "ec/ZZ_p/affine/ec_defaults.hpp"
#include "ec/ZZ_p/affine/utils.hpp"
#include <stdio.h>
using namespace NTL;
using name... |
696330e0fe88856a63e0170f4076d4c51653b9b1 | 34667bf37be01427ea3360c0c17c26ee204e6732 | /player.cpp | 35d8de4af67ffe894ac7945017021cbc54297d16 | [] | no_license | meltonzheng/blackjackv2_working | af7d2a7e5a1b23de60982e1ded957133b3a812a2 | 7f718f0d695966a49b54f5371d142d79ba35a991 | refs/heads/master | 2022-11-06T04:14:15.720583 | 2020-06-17T04:22:13 | 2020-06-17T04:22:13 | 270,845,585 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,920 | cpp | player.cpp | #include "player.h"
Player::Player(std::string pname) : name(pname)
{
w = 80;
h = 100;
specialRoundBoolean = false;
full_image = new QPixmap(":/cards.jpg");
moneyLabel = new QLabel();
money = 1000;
waitforbets=false;
bet = new QPushButton();
bet->setText("Bet: ");
bet->setEnab... |
3ecee94e3ce989c2d1a7e88cf569ecb6f7ed94ce | ac3711495471dd2ada931afeff7cde2b43b89ff7 | /src/wase/ecs/entity.cpp | 3745c6d3480ca04ce392d340081937b9db9760c8 | [
"MIT"
] | permissive | requizm/wase-engine | b8b8e04b3228f8dd2f6f1c8ee6a3710e14ce0881 | 046368187a446e453e3f461198ad1d7ac929dfd0 | refs/heads/master | 2023-06-26T13:58:46.506360 | 2021-07-25T12:42:12 | 2021-07-25T12:42:12 | 387,519,737 | 0 | 0 | MIT | 2021-07-19T15:57:34 | 2021-07-19T15:57:33 | null | UTF-8 | C++ | false | false | 1,368 | cpp | entity.cpp | #include "entity.h"
#include "components/transform.h"
#include <string>
#include <algorithm>
namespace wase
{
Entity::Entity(const std::string& name)
{
this->name = name;
this->addComponent<Transform>();
}
void Entity::update(float dt)
{
for (const auto& [componentName, componentPtr] : components)
{
... |
8a26dd27f4610f1fc193a0a352ed1ff8a5dcad06 | 37a6e25b1aefc5d40a050d6bbc6e53c35c8a7fd5 | /9.11.16/MaxHeap.cpp | 6793cfcd68e6449b0dd7539862ea94bdcf47f0cc | [] | no_license | krumbgf/sdp2.3 | 0f5125ae921a545cee3665ebe11972aef41a98a8 | 4972d15d19baa463c61d3a9672db345053f818f9 | refs/heads/master | 2021-01-11T01:37:55.050735 | 2017-01-18T10:15:31 | 2017-01-18T10:15:31 | 70,682,405 | 1 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 3,339 | cpp | MaxHeap.cpp | #include <vector>
#include <iostream>
template <typename T>
class MaxHeap
{
public:
MaxHeap(unsigned n) { arr.reserve(n); }
MaxHeap(std::initializer_list<T> v) { arr=v; Heapify();}
MaxHeap(std::vector<T>&& vec_rvref) : arr(std::move(vec_rvref))
{
Heapify();
}
... |
361be9645e7582846485f87ba0ae033455dc569c | c677427fd822c5010791191fd7a785686acce7af | /src/Rectangle.h | d15b028c36c58ec70b73e588915e60dfe58daec6 | [] | no_license | LMSaravia/COMP5421-PA4 | aec3e6c15fb53fba0a17fbd3d592f7d564396617 | 1e3e958887f65a850780a6e53e7f5233a3e6e516 | refs/heads/master | 2021-01-24T11:08:35.971792 | 2016-10-07T15:11:03 | 2016-10-07T15:12:16 | 70,255,476 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 940 | h | Rectangle.h | #ifndef RECTANGLE_H
#define RECTANGLE_H
#include "Shape.h"
#include <iostream>
class Rectangle : public Shape
{
public:
Rectangle() = delete;
Rectangle(int h, int w, const std::string & d = "");
Rectangle(const Rectangle &) = default;
~Rectangle();
const Rectangle & operator=(const Rectangle & rhs);
int getHeight... |
b184420508a6c2bd518ef869297cad34cef54ae4 | 2843b04be95d7a21e6ab79345ab4fbda15ca64e1 | /FDTD.h | 7e40fd5eb7d92631520695da949ca48e58eb4c6b | [] | no_license | taratana/FDTD_simulation | d09057a18ced83c5890dd760aea4ab7864057b96 | 741a03b70a9a4070994b2234e8d9466ba5c9eead | refs/heads/master | 2020-05-07T11:34:07.205841 | 2019-07-08T04:47:29 | 2019-07-08T04:47:29 | 180,466,871 | 0 | 0 | null | null | null | null | ISO-8859-2 | C++ | false | false | 2,853 | h | FDTD.h | #define _CRT_SECURE_NO_WARNINGS
#pragma once
#include <iostream>
#include <vector>
#include "const_FDTD.h"
#include "Output.h"
#include<string>
#include<omp.h>
#include<iomanip>
using namespace std;
struct PML
{
int nx0, ny0, nz0, nx1, ny1, nz1;
vector<vector<vector<double>>> Exy, Exz;
vector<vec... |
92dd6b4a8e5d53d42cb7bb3af07509879c23fd1f | 1c46cd90708a4ff9d873aaac112d57184a968389 | /DreamFunction/DreamdEtadPhi.h | 1b496b527630acd449e7245b51f248c264307304 | [] | no_license | bhohlweger/GentleFemto | 8cce20d44e17e1a227985a0f59cc0c6c00772fc5 | 90f276d39f8ea8eb08d1a021de8c43de76d980f0 | refs/heads/master | 2021-08-02T00:39:16.445959 | 2021-07-20T09:31:22 | 2021-07-20T09:31:22 | 145,673,047 | 1 | 8 | null | 2021-05-19T11:11:08 | 2018-08-22T07:30:33 | C | UTF-8 | C++ | false | false | 1,474 | h | DreamdEtadPhi.h | /*
* DreamdEtadPhi.h
*
* Created on: Feb 4, 2019
* Author: schmollweger
*/
#ifndef DREAMFUNCTION_DREAMDETADPHI_H_
#define DREAMFUNCTION_DREAMDETADPHI_H_
#include "TH2F.h"
#include "TH1F.h"
#include "TH1D.h"
#include "TList.h"
#include "TPad.h"
class DreamdEtadPhi {
public:
DreamdEtadPhi();
virtual ~Dr... |
4871506e1074522b3f6e4b10f22e850c719aefe9 | 8c03b5a410c7747d5ef601db1f75f0c664739fdd | /CodeAssist/CodeAssistLib/complete/CompleteLex.h | b6847c8cd90e31bfd061d7635ce675f5f10fbf6a | [
"MIT"
] | permissive | 15831944/JCDT | 5d76f4cdb3751b54bc8700f46ab7c8e27ed9e07c | 2b009ea887b4816303fed9e6e1dc104a90c67d16 | refs/heads/main | 2023-04-14T18:28:39.589647 | 2021-04-25T02:34:54 | 2021-04-25T02:34:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,210 | h | CompleteLex.h |
#ifndef CompleteLex_Jikes_CodeAssist_INCLUDED
#define CompleteLex_Jikes_CodeAssist_INCLUDED
#include <JCDT_Lib/internal/lex/LexStream.h>
namespace Jikes { // Open namespace Jikes block
namespace CodeAssist{
class CompleteLex :public LexStream
{
public:
CompleteLex(Option* option_, FileBase* file_symbol_);
... |
ad9dccb1492957589e6e3d63410c584ea042e230 | f5903a79f339716d518f651a0e80fda600d1a2f1 | /matmult/matmultProject/matmultProject.cpp | b0e74168ed10d98428d7edf3dce01d6feea00613 | [] | no_license | Fionn-the-goose/PVS3 | 736e304164c479d4ed5ef41f8f2914478af1f271 | 6e58e4f4641fe97343a198cd29ca059c3c4874e8 | refs/heads/main | 2023-02-10T12:28:21.773617 | 2021-01-07T03:20:59 | 2021-01-07T03:20:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,728 | cpp | matmultProject.cpp | #include <stdio.h>
#include <stdlib.h>
#include <mpi.h>
#include <chrono>
//Uncomment printmat and use low matrix values (multiple of task count) to compare matrix results, seemed accurate
//Approximate Time Taken with 4 Tasks:
//Serial: 17.455s
//Send / Receive: 6.449s
//Collective: 5.357s
//Approximate Time Take... |
48872e789657805ad10fac937ae9d027ee5df3a9 | 40ba312cb17690fedac7ecc9412b20ad8f6eebaa | /src/Source Term/Penman2.cpp | 7fa842ee8d0118225cd991cb94e37f8917791fa5 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | pnnl/frames | 54e28bfe0efe005bb14ae61bdd43a6fce5ee332d | be37615c4f6a98c5225fea56bae2057085653b13 | refs/heads/master | 2023-07-19T15:40:06.703808 | 2021-08-31T20:36:04 | 2021-08-31T20:36:04 | 358,364,002 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 11,239 | cpp | Penman2.cpp | /************************************************************************************************************
* Source Term Release Module MODULE: PENMAN2.CPP VERSION: 1.00 *
* Copyright 1996 by Battelle Pacific Northwest National Laboratory. All Rights Reserved ... |
a25870aea4960799bf1f91a8ca280d01f35887b9 | 46c5ddf56b0b44648ca03c7ab2394d6944d8d783 | /AlienAttackV2/enemy.h | c071f02f4038a824b2b7925c310a6bf5d0df0bee | [] | no_license | jdordonezn/AlienAttack | a308369e8b0f0bfe4a70a4545f37c5142819d751 | cc1bf080427ebb7fa438106c86966be548beb13f | refs/heads/master | 2020-04-08T23:58:19.554495 | 2018-12-15T21:21:01 | 2018-12-15T21:21:01 | 159,847,671 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 353 | h | enemy.h | #ifndef ENEMY_H
#define ENEMY_H
#include <player.h>
class enemy:public Jugador
{
public:
enemy(QGraphicsItem* enem=0);
void moverE();
int getPx() const;
void setPx(int value);
int getPy() const;
void setPy(int value);
private:
int vx=-5;
int px=900;
int py=535;
int cont=0;
... |
2bb29fca079ebb25b04c8a69babdd0ddfea4b4d1 | e8d02b8f5e435b6339da726dad150fa56f15f9e1 | /puzzles_for_hackers/1.3_tatu.cpp | c7a5de86d095bbb7a803f68906114c1149cc3bee | [] | no_license | itiut/sutra-copying | 78437387b67d9a8293c0802341ac94ffe7a2d918 | a9ec1573036b51d8dde46bb3aafd7616665d278c | refs/heads/master | 2020-12-24T16:15:42.008471 | 2017-10-17T12:50:43 | 2017-10-17T12:50:43 | 29,052,819 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 531 | cpp | 1.3_tatu.cpp | #include <iostream>
#include <cstdio>
#include <cstdlib>
using namespace std;
int main (int argc, char *argv[]) {
if (argc != 2) {
printf("Usage: %s <filename>\n", argv[0]);
exit(EXIT_FAILURE);
}
FILE *fp = fopen(argv[1], "r");
if (fp == NULL) {
perror("fopen");
exit(EX... |
a8259950f5a1f4abb46fbabd70d87c897354f5fe | 3e5782ed696b256b2977fcbfb8c9369933a5151f | /050_099/60_Permutation_Sequence/main.cpp | e70196883b3e7703cc8a6768abea0c6db38092b0 | [] | no_license | fengjiachen/leetcode | b1f7b01e0ee312e7643d8a46bc0f8db33cf71b00 | e226c67f7e6d8faef0b42da9139c99f3694071fc | refs/heads/master | 2022-11-28T14:16:08.144354 | 2020-08-01T11:37:44 | 2020-08-01T11:37:44 | 190,188,181 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,488 | cpp | main.cpp | //
// main.cpp
// 60. Permutation Sequence
//
// Created by 冯嘉晨 on 2019/4/10.
// Copyright © 2019 冯嘉晨. All rights reserved.
//
//The set [1,2,3,...,n] contains a total of n! unique permutations.
//
//By listing and labeling all of the permutations in order, we get the following sequence for n = 3:
//
//"123"
//"132... |
9310c49df664eb068f59f5515ff5d4a0073bacb4 | ea19bf6e584237823c73980a9bfcce7d4feeddb9 | /General_NetSDK_Chn_Win32_IS_V3.42.0.R.141029/NetSDK_Chn_Bin/演示程序源码/分类应用/设备报警、用户管理/ClientDemo1/QueryAlarmState.cpp | 308bf7f3c222e20705aed6815e75b6989b68ec81 | [] | no_license | fantasydreams/VS | ba6989bab048e718461207b0946c62b32f25471d | 49a141e41952b2a841e7951eb55c1e399c8c3bc0 | refs/heads/master | 2020-04-05T10:12:16.663691 | 2015-04-07T15:21:35 | 2015-04-07T15:21:35 | 29,297,592 | 2 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 5,679 | cpp | QueryAlarmState.cpp | // QueryAlarmState.cpp : implementation file
//
#include "stdafx.h"
#include "ClientDemo1.h"
#include "QueryAlarmState.h"
#include "ClientDemo1Dlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
///////////////////////////////////////////////////////////////////////... |
4ff3a33f20b424b8197ceeaade5939d9d5189982 | a8359ae1f244a3787f8951e55f96b465b9370dfc | /src/NDIImageSender.cpp | 6537ee29235657df5e7109e2c7b75386e6cd8df0 | [] | no_license | HyConSys/NDIRestServer | 81f2d1cf62262951fc35c3f2a8a574a0e9878311 | 99c25be7ba3bd5fd100aa73908e74c7c2bdf4e1e | refs/heads/main | 2023-05-07T09:40:37.301347 | 2021-05-28T23:03:58 | 2021-05-28T23:03:58 | 349,645,158 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,757 | cpp | NDIImageSender.cpp | #include "NDIImageSender.h"
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
#define DLLEXPORT __declspec(dllexport)
#else
#define DLLEXPORT
#endif
void image_sender(NDIImageSender* thisSender){
// a video frame to contain the iamge
NDIlib_video_frame_v2... |
edeb49b1d2b36fe71ec335550cbe110ea0ee5890 | 550e9c4a8d56d47aaf1df2e15a71cd4cd35d16b9 | /2out/TimedResult.cpp | c384732c8e0ca79d8a094629ba2ad89c0fb04b1f | [
"MIT"
] | permissive | DronMDF/2out | 6ceadcdf74c63e46d8f5c769a619ce76afc162c5 | d41a8e8ca6bfb5c66a8b77cd62ac9ab69e61b295 | refs/heads/master | 2021-09-08T11:49:15.507642 | 2021-09-05T06:31:16 | 2021-09-05T06:31:16 | 91,911,330 | 12 | 3 | MIT | 2021-09-05T06:31:17 | 2017-05-20T19:23:16 | C++ | UTF-8 | C++ | false | false | 1,560 | cpp | TimedResult.cpp | // Copyright (c) 2017-2021 Andrey Valyaev <dron.valyaev@gmail.com>
//
// This software may be modified and distributed under the terms
// of the MIT license. See the LICENSE file for details.
#include "TimedResult.h"
#include "Format.h"
using namespace std;
using namespace oout;
namespace oout {
class FmtTimed fin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.