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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
360d67b539061fa8273a1ce84256021fd9b608f6 | 61a9856c1c2aca1679400433761bf433c76bb9d5 | /Wumpus/Wumpus.cpp | 53d0e2dfc78c983105dcf299a94f56c980667821 | [] | no_license | lazycoding/Wumpus | f26372bd5a8f936cc22e2534ec5b0b3b7451374b | 7ce229771a0329e1e533021f72b13b553a01076d | refs/heads/master | 2021-01-24T06:40:52.362719 | 2015-07-22T05:45:16 | 2015-07-22T05:45:16 | 39,487,966 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 311 | cpp | Wumpus.cpp | #include "Wumpus.h"
Wumpus::Wumpus(void):room_id(0), alive(true)
{
}
Wumpus::~Wumpus(void)
{
}
bool Wumpus::Alive() const
{
return alive;
}
void Wumpus::Move()
{
}
void Wumpus::Initialize( int roomId )
{
room_id = roomId;
alive = true;
}
std::string Wumpus::Warnning()
{
return "Wumpus wumpus!";
}
|
c6925e6db18dddbd3accc2f27433399d48a37065 | 437cd794cd8fce369efc09fe605bfdf4f0fdd897 | /WzmPokerClient/PokerFace.cpp | 8a253c0f7eca3c89a381a20f9f1f251a9d9d0e3e | [] | no_license | wangzhimin/WzmPoker | fb28d2c94c4dcdbf52f0fbb562d973428b6ceeb6 | ac4b2bf870b113559f800712fdc40d13e0b09994 | refs/heads/master | 2020-06-04T03:25:05.182785 | 2013-04-11T14:49:48 | 2013-04-11T14:49:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 152 | cpp | PokerFace.cpp |
#include "PokerFace.h"
PokerFace::PokerFace(int value, ID2D1Bitmap* bitmap)
:Color(value/100),
Number(value%100),
pBitmap(bitmap)
{
}
|
001bd3b6694f50691ff623791a7743a0ae2e26a6 | 7e029eac0f5b05117ccc61a13a2c4ea3de512c30 | /D05/ex00/Bureaucrat.cpp | 15e3ba1804e75fcfcf637a20aca3480e7a71809f | [] | no_license | gvannest/piscineCPP | dafa72a021e3a79a7a02b032d9d87b935af93ae4 | 16cba4fd88d407ea5aa4abf215ee6544579edfb7 | refs/heads/master | 2021-04-05T16:05:13.012905 | 2020-04-30T07:53:27 | 2020-04-30T07:53:27 | 248,575,429 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,302 | cpp | Bureaucrat.cpp | #include "Bureaucrat.hpp"
#include <iostream>
Bureaucrat::Bureaucrat(void) {}
Bureaucrat::Bureaucrat(std::string const & name, int grade) : _name(name){
if (grade < 1)
throw Bureaucrat::GradeTooHighException();
if (grade > 150)
throw Bureaucrat::GradeTooLowException();
this->_grade = grade... |
c4ae98d98464d7e9ca14b656c8768eae4bf32bf7 | 56a8cd4d6e18f26c4c0c4b00bcad3cbf265a8a91 | /level_1.h | 9ef6106af0980f41ee9c2a0a4712b9f73f530f0e | [] | no_license | G-H-Li/BallWorld | 3c334e1990173f4d6a1f9ef5738f06dea9a3482b | fbd5afb39f79d40353ee30939a6e70c3921b06c8 | refs/heads/master | 2020-06-16T16:56:24.055890 | 2019-07-07T12:05:11 | 2019-07-07T12:05:11 | 195,642,504 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,297 | h | level_1.h | #pragma once
#include "cocos2d.h"
#include "ui/UILoadingBar.h"
#include "ui/UIText.h"
class level_1 :public cocos2d::Layer
{
public:
level_1() {}
static cocos2d::Scene* createScene();
virtual bool init();
CREATE_FUNC(level_1);
//按钮的回调函数
void stopButtonTouch(Ref* sender);
//键盘事件回调函数
virtual void onKeyPressed(co... |
7bfdca1e9fe406c300b5e36ad0d028cfa7474279 | 7ee4de3c6fdebdb2d62b3d6226cfe7b9815f609a | /Domain/Player/Shop.hpp | 2e1240de553320b56381539c6567501bebce56c5 | [] | no_license | nathrichCSUF/DungeonDoers | 2feb66b997aebda52fe354ef5f5245e8574bc34f | cbbcefcda0b8df69d9f1f8ed68807d3633231d1a | refs/heads/master | 2020-08-29T19:49:44.624453 | 2019-12-04T14:37:09 | 2019-12-04T14:37:09 | 218,153,975 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 720 | hpp | Shop.hpp | #pragma once
#include <memory>
#include <vector>
#include <string>
#include "Weapon.hpp"
#include "SwordWeapon.hpp"
#include "KnifeWeapon.hpp"
namespace Domain::Player
{
struct Shop
{
Shop()
{
weapons = {"Sword","Knife"};
}
std::unique_ptr<Weapon> PurchaseWe... |
048bf41e723032a40fb865ac1cbb958fe0139a22 | ce64c59e1e2b6ae779f125c982e94f6de93d62f8 | /tests/ksystemtraytest.cpp | 0a59faf27a6f1ea4458b4b54a74c2ce72ba9853f | [] | no_license | The-Oracle/kdeui | f3e2d7cc7335bdffce9d6a02de38ab196e5cf02d | 87414d061d2f7156901212a19ea01bdf85d6e53d | refs/heads/master | 2021-01-20T00:51:25.654205 | 2017-04-24T05:14:13 | 2017-04-24T05:14:13 | 89,200,851 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 481 | cpp | ksystemtraytest.cpp | #include <ksystemtrayicon.h>
#include <kapplication.h>
#include <QtGui/QLabel>
#include <kcmdlineargs.h>
#include <kaboutdata.h>
int main(int argc, char **argv)
{
KAboutData aboutData( "ksystemtraytest", 0 , ki18n("ksystemtraytest"), "1.0" );
KCmdLineArgs::init(argc, argv, &aboutData);
KApplication app;
QLa... |
c4c6a2fd7e2a5ced38b451df5eab7f26a8450a24 | 747092ff693de7466341f314bcdae46e222b0ffb | /MappingCoreLib/Scenario.cpp | e464fe8b4e7c478b88e6eab371155427b21d0350 | [
"MIT"
] | permissive | tobeinged/Chkdraft | 55028425464991e8be772c5dae0a1f7fdcf49705 | c07df6675f42a24c8b32f86ab8a53abb0fcd158b | refs/heads/master | 2023-03-18T01:16:42.045200 | 2021-03-09T15:09:30 | 2021-03-09T15:09:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 196,869 | cpp | Scenario.cpp | #include "Scenario.h"
#include "sha256.h"
#include "Math.h"
#include "../CommanderLib/Logger.h"
#include "Sections.h"
#include <algorithm>
#include <cstdio>
#include <exception>
#include <functional>
#include <iostream>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <set>
#include <chrono>... |
d9950b42615c5d069f962994ad4d7e4c3911336c | cd9313c4dfe06d831016919233e2d2886ddca8a7 | /boj2573.cpp | 2085572ec0d13e834ec15432529792e2b1fab259 | [] | no_license | HJPyo/C | b198efa19f7484cc5b13e3e83798cdac99b6cd20 | 47d49f3aea1bc928fec5bcb344197c3dfecf5dd1 | refs/heads/main | 2023-04-12T15:04:44.844842 | 2021-05-11T09:13:07 | 2021-05-11T09:13:07 | 328,389,106 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 873 | cpp | boj2573.cpp | #include<stdio.h>
#include<string.h>
int n, m, ar[303][303], vis[303][303];
int dx[4] = {1,0,-1,0}, dy[4] = {0,1,0,-1};
void dfs(int x, int y)
{
vis[x][y] = 1;
for(int i = 0; i < 4; i++){
int nx = x+dx[i];
int ny = y+dy[i];
if(ar[nx][ny]){
dfs(nx,ny);
}
}
}
int main()
{
memset(ar, -1, sizeof(ar));
... |
ffc0ca120b47c8126d5079af2f58aa172e6d5e2d | dd71e72950b532226396ad012e051e1f1d8975f8 | /codes/subarraySumEqualsK.cpp | cf7eca59572f43bc9dafdc66c1a7e5c8a2e7491f | [] | no_license | ashishbisoi236/CF | 0ca3626ec8138265fea2718f028b13a56dcbcb35 | aade9143c96503896666511114f56969f0ad0872 | refs/heads/master | 2023-02-21T03:53:10.383657 | 2021-01-24T12:06:44 | 2021-01-24T12:06:44 | 296,493,451 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,116 | cpp | subarraySumEqualsK.cpp | // count no of subarrays
class Solution {
public:
int subarraySum(vector<int>& nums, int k) {
unordered_map<int, int> um;
int count = 0;
int sum = 0;
int n = nums.size();
for(int i = 0; i < n; i++) {
sum += nums[i];
if(sum == k)
count+... |
e02e8026fe0b1050e71a2a87743b4d631290df0a | ac1c9fbc1f1019efb19d0a8f3a088e8889f1e83c | /out/release/gen/content/common/page_state.mojom.cc | cbeb1533c0b8fb2c65f4795871ca6a5cbb469e5c | [
"BSD-3-Clause"
] | permissive | xueqiya/chromium_src | 5d20b4d3a2a0251c063a7fb9952195cda6d29e34 | d4aa7a8f0e07cfaa448fcad8c12b29242a615103 | refs/heads/main | 2022-07-30T03:15:14.818330 | 2021-01-16T16:47:22 | 2021-01-16T16:47:22 | 330,115,551 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,199 | cc | page_state.mojom.cc | // content/common/page_state.mojom.cc is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#if defined(__clang__)
#pragma clang diagnostic push
... |
e3314d5aced7387057cb139b24c5a7cce32803a2 | 349b0dbeaccc8b9113434c7bce7b9166f4ad51de | /src/lcs/LCEI/EXT.CPP | 88a80bdb710525ed46aecbf2f7f3b020e743789a | [] | no_license | jbailhache/log | 94a89342bb2ac64018e5aa0cf84c19ef40aa84b4 | 2780adfe3df18f9e40653296aae9c56a31369d47 | refs/heads/master | 2021-01-10T08:55:43.044934 | 2020-01-09T02:57:38 | 2020-01-09T02:57:38 | 54,238,064 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,265 | cpp | EXT.CPP |
#include "lctm.h"
DEM transym_redu (DEM ab, DEM cd)
{
DEM ae, cf, fc, eb, fd, bd;
if (ab == cd)
return right (ab);
if (left(ab) == left(cd))
{
bd = transym (ab, cd);
}
else
{
ae = redu (left(ab));
eb = transym (ae, ab);
cf = redu (left(... |
bb598005919e2794b58033b418c0d674c94811f6 | fa6559f36ed84f5fbc6bcacd68f41ae45d1e2535 | /src/tagger/SGDTrainer.cc | fc27657dc3edb75789b7c3029d7c63198196abc2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Traubert/FinnPos | 7d6739426ba631b068580a2099cdb59fffab09cd | 8a5184237a854e60e422bf3e5ef1de7b04bf962e | refs/heads/master | 2020-05-19T17:16:17.409529 | 2020-05-15T07:00:37 | 2020-05-15T07:00:37 | 185,130,598 | 0 | 0 | Apache-2.0 | 2019-05-06T05:41:42 | 2019-05-06T05:41:42 | null | UTF-8 | C++ | false | false | 10,229 | cc | SGDTrainer.cc | /**
* @file SGDTrainer.cc
* @Author Miikka Silfverberg
* @brief An instance of Trainer that performs SGD.
*/
/////////////////////////////////////////////////////////////////////////////... |
11211ce1a6c9cdd14a361458109d31ded226c1a9 | 2c78de0b151238b1c0c26e6a4d1a36c7fa09268c | /garant6x/implementation/Garant/GblAdapterLib/impl/UserJournal_i/JournalNode.cpp | eb4585a309fff7913f87126f8053a2a53a703d14 | [] | no_license | bravesoftdz/realwork | 05a3b308cef59bed8a9efda4212849c391b4b267 | 19b446ce8ad2adf82ab8ce7988bc003221accad2 | refs/heads/master | 2021-06-07T23:57:22.429896 | 2016-11-01T18:30:21 | 2016-11-01T18:30:21 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 4,131 | cpp | JournalNode.cpp | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Модуль: "w:/garant6x/implementation/Garant/GblAdapterLib/impl/UserJournal_i/JournalNode.cpp"
// генератор файлов реализации C++ (.cpp)
// Generated from UML model, root element: <<Servant::Clas... |
264ad45ec03f1fc5642599cd67ef43f9f50a2e95 | 674c8230197442d3b17ac372a99bc41d4511de62 | /Src/UI/DialogueWindow.cpp | e40cc9e9b31ae102a0f45752bb2b198cc770fe51 | [] | no_license | niello/dem-test | 96bed2756456ee7ecb9d3513ea51d96777e9505d | 38cfa045d8fd57d7309cc2ca1e2a094e81bb0faf | refs/heads/master | 2021-01-23T18:07:53.598812 | 2016-12-17T17:06:45 | 2016-12-17T17:06:45 | 42,161,082 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,761 | cpp | DialogueWindow.cpp | #include "DialogueWindow.h"
#include <Dlg/DialogueManager.h>
#include <Game/GameServer.h>
#include <Game/Entity.h>
#include <Events/EventServer.h>
#include <UI/UIServer.h>
#include <UI/CEGUI/FmtLbTextItem.h>
#include <Data/StringUtils.h>
#include <CEGUI/Event.h>
#include <CEGUI/widgets/Listbox.h>
#include... |
da71e5d71e7a5c8115f031021bc42ae198b9d5ed | 32670501e4cba8212e52bbb3b1e3bf06f31e7397 | /source/Weapon.h | 301d50e7e823d5b2a75d60fa68db967e3153078c | [] | no_license | LucasTjarnstrom/TDDC76 | cfcb7ecc438869e435a2e81cf5933edc41d85b17 | c5c1ad989dfa2ba8e8d0805744244778573b1097 | refs/heads/master | 2020-06-19T20:11:49.931832 | 2018-01-08T11:58:49 | 2018-01-08T11:58:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 481 | h | Weapon.h | /*
* IDENTIFICATION
* File: Weapon.h
* Module: Environment
*
* DESCRIPTION
* This class acts as a weapon in the game loop,
* i.e. increases the player characters attack upon collision.
*/
#ifndef WEAPON_H
#define WEAPON_H
#include <string>
#include "Environment.h"
class Weapon : public Environment
{
publ... |
e84a5d4e9e1fe9a3747284f27960aae37f45a509 | 4c4920a07abdea07db67a34e9eedfdb361140883 | /Rozdzial10/zad08/list.h | 612d81613575b175a3c1276b8874b0336558f73b | [] | no_license | emttiew/StephenPrataCpp | 6b34f68655047362a822f17689ca799d3a1f0e97 | 6a037e69b5d682b3202cd1ac8a724ae0fc9a50a5 | refs/heads/master | 2021-01-02T17:07:46.511784 | 2020-09-04T06:54:45 | 2020-09-04T06:54:45 | 239,715,216 | 0 | 1 | null | 2020-02-17T14:35:08 | 2020-02-11T08:45:52 | C++ | UTF-8 | C++ | false | false | 399 | h | list.h | #ifndef LIST_H_
#define LIST_H_
typedef unsigned long Item;
class List
{
enum { MAX = 10 };
Item items[MAX];
int top;
public:
List(); // tworzy pustą listę
bool isempty() const;
bool isfull() const;
void visit(void (*pf)(Item &), int); // odwiedza element listy i wykonuje na nim zadaną... |
cb61fac7e97e3c9c6b14f024ee3b0586b88e0e77 | 7e8879867baee281c4e1680f9ad4a57cf8a7a0ac | /helloworld.cpp | 94b191926f024a61cef551c72240255745cedb47 | [] | no_license | bholubangdoo/hello-world | 683f7ade2c12b2e91735ef1483869e93c8e3881c | e95cfec31b2b760e6d4139004e5d2372b2a293bc | refs/heads/master | 2020-03-19T17:49:49.601148 | 2018-06-17T05:28:08 | 2018-06-17T05:28:08 | 136,780,147 | 2 | 0 | null | 2018-06-17T05:28:09 | 2018-06-10T04:52:50 | C++ | UTF-8 | C++ | false | false | 136 | cpp | helloworld.cpp | #include<iostream>
void main(){
cout<<"hello world";
cout<<"did first changes";
cout<<"these changes are coming from a branch";
}
|
9c9b81d9fc944db9a44ec9baa1219d58b34a027d | 396b3e583b21af6cdcea13eaba7e1095906f2e11 | /mtcnn_c/align.h | dcd7491868672ef2e14de09797401c78bbe2fc3b | [] | no_license | xizhan0513/MTCNN | c2a93c8636269661b0cff22890e80b64b5c1d8a5 | eff7cba1587477664064b46862c36f20c9cf8e82 | refs/heads/master | 2020-09-23T22:42:41.478950 | 2018-12-27T01:19:18 | 2018-12-27T01:19:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 285 | h | align.h | #ifndef ALIGN_H_
#define ALIGN_H_
#include "mtcnn.h"
int Align(cv::Mat& image, cv::Mat& image_crop, std::vector<cv::Point2d> source_pts);
cv::Mat findSimilarityTransform(std::vector<cv::Point2d> source_points, std::vector<cv::Point2d> target_points, cv::Mat& Tinv);
#endif
|
54d10dce0305f1b9cd6bbae3e1b353cfc77a5803 | 050850793055d1942878bd0918f4a64738595c89 | /AQI_LIGHT_V1/AQI_LIGHT_V1.ino | 4c94955caeb29c0836d2b4eda4421fbb61315fec | [] | no_license | shark526/aqi_light | ab32cbf59034af3815d277ac824fd5d97d652cce | 065f244fc8f968cd9b62a49cf198e8b6e2502523 | refs/heads/main | 2023-02-28T14:11:43.754698 | 2021-02-01T15:42:54 | 2021-02-01T15:42:54 | 330,127,614 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,910 | ino | AQI_LIGHT_V1.ino | #include <SimpleTimer.h> //https://playground.arduino.cc/Code/SimpleTimer/
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager
#include <ArduinoJson.h>
#include <ESP8266HTTPClient.h>
// Assign output variables to GPIO pins
#define red... |
42d0e15ad3005eb0b2f129686bbfa6b708dde5b2 | e2d3a3696f026f9620c48ddeec76b9ae878fcbcd | /firmware/firmware.ino | 1189abe06733acd06f53b703a83467c31bcea80a | [] | no_license | BernardoGiordano/Wattmetro | db1115a1091a7db65e284e7955953b5b29fc803a | 7437bacdf7fd8b429dc64b545880fe7d0ab4852d | refs/heads/master | 2021-03-27T12:47:08.695366 | 2017-06-20T09:39:17 | 2017-06-20T09:39:17 | 91,573,301 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,190 | ino | firmware.ino | /**
* Laboratorio di Misure e Diagnostica Industriale, A.A. 2016/2017
* Modulo II: Progettazione e implementazione di un wattmetro numerico
*
* Firmware per Arduino Due
*
* Giordano Bernardo A13/854
* Loffredo Tommaso A13/910
* Egizio Ivan A13/916
* Di Spazio Fabio A13/974
*/
#include <DueTimer.h>
// A0 C... |
8cf470c737980098a51fb4df01706228695f5e09 | f34e75ea5e0a1e8fb97dc9b8425d5c4b39ee593e | /analog_read/analog_read.ino | 0d7943f17be75b683f4fe8e825bbd21be5af7633 | [] | no_license | cmsparks/arduino-demo-code | e6bf95f3648847d24a579e267422511bc4f0f71d | 8f1b4e02c878ce07557ae7aa3a08f7487a9d2518 | refs/heads/master | 2021-05-18T21:23:10.122228 | 2020-03-30T21:12:53 | 2020-03-30T21:12:53 | 251,427,797 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 243 | ino | analog_read.ino | void setup() {
// put your setup code here, to run once:
pinMode(A0, INPUT);
pinMode(5, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int read = analogRead(A0);
read = read / 4;
analogWrite(5, read);
}
|
0cb96ff1d1a4c662d941465edc1d71f16723435f | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/multimedia/danim/src/appel/utils/debug.cpp | 88d78fb1bf3bc04482db599654de42cdf3842f06 | [] | 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 | 4,878 | cpp | debug.cpp | ////////////////////////////////////////////////////////////////
//
// File: debug.cpp
//
// Support for internal debugging
//
// Microsoft Corporation Copyright (c) 1995-96
//
////////////////////////////////////////////////////////////////
// Define & register the trace tags.
#include "headers.h"
#... |
1a31bbebadc64476abfafdbddf802f6739431b74 | 41cb484e223591c763d3b45db251f480b3af3ef8 | /ICONOS_LISTO.cpp | 35d50c6433e0ca66f4cfc9c33db85c52b43a5992 | [] | no_license | juantobiasdl7/FIGURES-IN-C- | bebb3a90f816091771f1cb464189c79e438a494a | 77182001324ecbc535bad3efb92b2afbe6a113c0 | refs/heads/master | 2022-07-03T15:52:35.619989 | 2020-05-07T06:50:11 | 2020-05-07T06:50:11 | 261,972,149 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,877 | cpp | ICONOS_LISTO.cpp | #include <winbgim.h>
#include<cmath>
#include <iostream>
using namespace std;
struct PASOS
{
int tipo;
};
struct linea
{
double px1,py1,px2,py2;
double px,py;
};
struct circulo
{
double cx,cy,r1;
};
struct linea2
{
double px,py;
}... |
160d9daa656270d9257cf96a7f5c241daf1a42c7 | aa4d34070ac27c893252f46193bd77ac6a6bbe8d | /2/2_12.cpp | b03948312d2759bffde23f356c5a1352da535097 | [] | no_license | MaiMeng1204/Pracetice-in-Cpp-Primer | 78eef0e883add08c4ca189636776e0d6f2eea904 | 744ddac895952b5cc95cec52172217e930caabd1 | refs/heads/main | 2023-03-08T22:39:26.212748 | 2021-02-27T03:05:25 | 2021-02-27T03:05:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 167 | cpp | 2_12.cpp | #include <iostream>
int main()
{
// int _; // legal
// int 1_or_2 = 1; // error: expected unqualified-id before numeric constant
double Double = 3.14;
} |
357a75ed6d628d4a8bcf02f2cf5bfed822711589 | f55e5e4c4f6f4c42ccd3647b78cf81aa831b6a91 | /obstacle_detection/include/lib/range_sensor.h | 536d61d46308c4d4e2cbc2ce6395704162fceab2 | [] | no_license | cpswarm/sensing_actuation | bd691a71e40e9bf48b0c3ba647eb60045ebc654a | e3224cbc785ddf1e4e3832785899e37f85060d31 | refs/heads/noetic-devel | 2023-07-23T13:43:50.950497 | 2023-07-17T13:50:52 | 2023-07-17T13:50:52 | 218,629,850 | 0 | 1 | null | 2022-04-06T13:04:06 | 2019-10-30T21:27:01 | C++ | UTF-8 | C++ | false | false | 3,229 | h | range_sensor.h | #ifndef RANGE_SENSOR_H
#define RANGE_SENSOR_H
#include <ros/ros.h>
#include <sensor_msgs/Range.h>
using namespace std;
using namespace ros;
/**
* @brief A helper class to process range sensor readings.
*/
class range_sensor
{
public:
/**
* @brief Constructor that initializes the private member variables.
... |
74997b5153e548f9b77a14dd04b850bc900314f2 | 3333edce8305b199431da4ed1e2bbe9bf5aef175 | /BOJ/3000~/3986/src.cpp | 4d77707fdfd9129eea08db871ce33f3ef916cbc1 | [] | no_license | suhyunch/shalstd | d208ba10ab16c3f904de9148e4fa11f243148c03 | 85ede530ebe01d1fffc3b5e2df5eee1fa88feaf0 | refs/heads/master | 2021-06-07T10:45:58.181997 | 2019-08-11T13:14:48 | 2019-08-11T13:14:48 | 110,432,069 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 512 | cpp | src.cpp | //https://www.acmicpc.net/problem/3986
#include <iostream>
#include <string>
#include <stack>
using namespace std;
int main()
{
int n;
int cnt=0;
cin >> n;
for(int i=0; i<n; i++)
{
string s;
cin >> s;
int l=s.size();
stack<char> st;
for(int j... |
5d29698091bac517292a1c63f8560b56d96b5669 | eb2ce3ee3d77d2543a79eac8919fb056e0e43e17 | /include/Mojo/TextureAtlas.hpp | 607a25efd55dd1f6683b024c36e5c159069b3f41 | [
"MIT"
] | permissive | mtwilliams/mojo | b65a75a8f406113602124bb6fd6606a5d067ef33 | e9d3c718617d9668049a17731844a4b35be9759d | refs/heads/master | 2020-05-18T04:46:20.928021 | 2012-04-30T06:26:57 | 2012-04-30T06:26:57 | 4,081,721 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 560 | hpp | TextureAtlas.hpp | #ifndef MOJO_TEXTURE_ATLAS_HPP
#define MOJO_TEXTURE_ATLAS_HPP
#include <Mojo/Core.hpp>
#include <Mojo/Graphics.hpp>
namespace Mojo
{
class MOJO_CLASS_EXPORT(TextureAtlas) : public Mojo::NonCopyable
{
public:
TextureAtlas( const uint32_t width, const uint32_t height, const uint32_t bpp );
... |
2403c132f44d935fe9cb3441c3ba979c3c24ae82 | a33aac97878b2cb15677be26e308cbc46e2862d2 | /program_data/PKU_raw/61/758.c | 074f7664341d9bb0f22c792363a41ad0902f88be | [] | no_license | GabeOchieng/ggnn.tensorflow | f5d7d0bca52258336fc12c9de6ae38223f28f786 | 7c62c0e8427bea6c8bec2cebf157b6f1ea70a213 | refs/heads/master | 2022-05-30T11:17:42.278048 | 2020-05-02T11:33:31 | 2020-05-02T11:33:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 306 | c | 758.c | int main()
{
int i,n,a[20],m;
int f[20]={1,1};
for(i=2;i<20;i++)
f[i]=f[i-2]+f[i-1];
scanf("%d",&n);
for(i=1;i<=n;i++)
{
scanf("%d",&m);
a[i]=f[m-1];
}
for(i=1;i<=n;i++)
printf("%d\n",a[i]);
getchar();
getchar();
return 0;
}
|
f4eb963f3cac0fd794b4b7ff440b6f3eec72daef | c842eebea4a90c0fef20ec3580d32f25c32d9d5c | /treinamento-c/2016/aula-01/turma-01/Treinamento_002_printf.cpp | 2802689c4a5109a88cd089aa165aeac1a4300f30 | [] | no_license | ITAbits/documentacao | 16a6fb7c157db4b38822b0d933141fd425a289ee | 86c1ddef14c99dcfe221995ca59e6b6d754c5f33 | refs/heads/master | 2021-03-22T05:12:59.524668 | 2020-03-25T16:59:14 | 2020-03-25T16:59:14 | 120,128,133 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 925 | cpp | Treinamento_002_printf.cpp | #include <stdio.h>
int main()
{
int a = 2;
float b = 2.5;
double c = 2.52;
char d = 'n';
///Como imprimir mensagens na tela? printf !!!
printf("Assim que vc escreve na tela ;-)");
///Para imprimir informacoes das variaveis?
///int:
printf("Valor de a = %d", a);
///float:
p... |
78374cb11aa26e57fd2183aca4ed3642d84bce5a | 2ddd6b8bdddc4ff98ba2ba60cf20ef82fec10e58 | /Sources/etwprof/Profiler/IETWBasedProfiler.hpp | 37640caf4367569ee2f5daeb54c11733525864dc | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | zhangshuangjun/etwprof | f91d606220c0a236e28a28db37d4ad433998a417 | 7d23283c9939e04e7faada52b28b17d391178101 | refs/heads/master | 2021-02-26T20:15:31.135562 | 2020-01-03T08:35:01 | 2020-01-03T08:35:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,159 | hpp | IETWBasedProfiler.hpp | #ifndef ETWP_I_ETW_BASED_PROFILER_HPP
#define ETWP_I_ETW_BASED_PROFILER_HPP
#include <windows.h>
#include "IProfiler.hpp"
#include "Utility/Macros.hpp"
namespace ETWP {
// Interface for thread-safe ETW-based profiler objects
class IETWBasedProfiler : public IProfiler {
public:
ETWP_DISABLE_COPY_AND_MOVE (IETWB... |
be8bb11bf5fefc6a7b16661a63bc314ccd0f864b | abb667cfc26ae9fcbb1970383fea256e12511860 | /procc.cpp | 36a171af4d3e68d475eed46e6a79e1892c22f29d | [] | no_license | Siarhei-Hanchuk/kb2clone | 91a01834162534e3f9321247e48a464e85b5c406 | a20acbd7b5fd83fb73d22d002541aac3b48f8900 | refs/heads/master | 2022-07-26T06:20:10.710991 | 2011-12-10T21:15:33 | 2011-12-10T21:15:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,239 | cpp | procc.cpp | #include "header.h"
#include "world.h"
#include "texts.h"
#include "gui.h"
void init_map()
{
gw_c1_main(world.country[0].map);
gw_c2_main(world.country[1].map);
gw_c3_main(world.country[2].map);
gw_c4_main(world.country[3].map);
gw_c5_main(world.country[4].map);
gw_c0_def();
pl.country=0;
... |
f9d191488d694e0ab89fcb8c99ea9683f8e2ce12 | a437f2892facb598e6e9ee27bce5f85bdc4ede10 | /src/mpi/mpi_sorting.hpp | 43c2c335a59427e715b2e8aeef603ad9732a6248 | [] | no_license | TheSonOfDeimos/Bioinformatic-gray-sort | 7aa5cd1fbf7cc00f1eed5a0f78cdba8f049896b2 | 7d38ae02aec75b35f560cef8894a0ebbd018b97a | refs/heads/master | 2020-09-07T01:24:13.732032 | 2019-12-23T21:27:50 | 2019-12-23T21:27:50 | 220,615,085 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,484 | hpp | mpi_sorting.hpp | #ifndef MPI_SORTING_HPP
#define MPI_SORTING_HPP
#include <cmath>
#include "mpi.h"
#include "bioscience/bio.hh"
template < typename T >
void mpi_proc_send_pkg(const int proc_dest, T& dataStruct)
{
int num_procs;
MPI_Comm_size(MPI_COMM_WORLD, &num_procs);
if (proc_dest < 0) {
return;
}
MPI_S... |
16883d64afc6863de188dbfa5b8419fe61cc1970 | 568362db93a8b900a7815c4fad42768e1531eb0e | /src/ANSCommon/ANSArray2D.hpp | c9103a2e773dd77811855352be64e8b10ac119a4 | [] | no_license | Forrest-Z/Samsung_TapelessAGV | f5161d6a995cac85a214da0302f8cbab81c3dced | 99295e2d0bed7edca5421cae2bdf4c8ac02f00b8 | refs/heads/main | 2023-03-25T12:55:19.414510 | 2021-03-25T10:26:26 | 2021-03-25T10:26:26 | 397,121,747 | 1 | 3 | null | 2021-08-17T05:53:43 | 2021-08-17T05:53:43 | null | UTF-8 | C++ | false | false | 3,909 | hpp | ANSArray2D.hpp | #pragma once
#include "ANSCommon.h"
template <typename ArrayType>
class CANSArray2D // Declaration and definition of a template class should be written in the same file.
{
private:
// Variables
int m_nSizeX;
int m_nSizeY;
bool m_bInitialized;
public:
// Variables
// ArrayType* data;
ArrayType** data;
// Fun... |
58db617618dc3a6723c39a223502994012b5bd2c | dc4f48e683c9e4beb72213004118b5277d2cf96e | /drawDistributions.cpp | eb29fb9f3a0ab6430bbfa3ed2fa644b5c0ad1b1c | [] | no_license | jniedzie/disappTracks | f585d80e70438fd6f5a395d86d7a08f3fbf09c03 | cbe9320b26e36b4b2846a6aa240002ae8bf5b277 | refs/heads/master | 2021-07-08T16:55:39.870856 | 2020-06-25T13:15:42 | 2020-06-25T13:15:42 | 141,112,155 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,359 | cpp | drawDistributions.cpp | #include "EventSet.hpp"
#include "Helpers.hpp"
#include "ConfigManager.hpp"
#include "CutsManager.hpp"
#include <TApplication.h>
string configPath = "configs/analysis.md";
int main(int argc, char* argv[])
{
TApplication theApp("App", &argc, argv);
// All events with initial cuts only
config = ConfigManager... |
d62fcdbab4216515c9d83c033d026249cc3ee85b | 7a1886a5503740a1962e5f5875973c6b94c9bdf5 | /impl/Tour.cpp | fb86ebb42598fd8fed2eb34063a268fbe7115248 | [] | no_license | herbertmaa/genetic_algorithm | 11fe230b2c9d1b6434fe3d8995f6306b659fcb71 | a5b9905efbefb0d492d4352610ca39e99470a5a6 | refs/heads/master | 2023-01-28T16:51:44.158925 | 2020-12-07T20:59:19 | 2020-12-07T20:59:19 | 310,985,935 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,430 | cpp | Tour.cpp | //
// Created by Herbert Ma on 2020-11-07.
//
#include <random>
#include <algorithm>
#include <iostream>
#include "../headers/Tour.hpp"
#include "../headers/CityList.hpp"
using std::cout;
using std::endl;
using std::swap;
Tour::Tour() {
cities = CityList::get_instance().shuffle();
determine_fitness();
}
To... |
0920f2e4a91fc72770e700ac46012fce25816f6f | adf0421f9256480923bf0e084b5b158fb8a2a652 | /小结/回文/5.最长回文子串.cpp | 8aa2ff43d8dfcb3c6a73e99c9b20413e4e32ce92 | [] | no_license | XAlearnerer/LeetCode | d5c6ac850fb73766639e730d0ed9a962166d07a2 | 6bbdac1ccd8e30ba48747877e2f34b5ca97ce844 | refs/heads/master | 2020-04-01T01:30:37.673708 | 2019-10-15T02:38:22 | 2019-10-15T02:38:22 | 152,741,487 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,389 | cpp | 5.最长回文子串.cpp | #include<iostream>
#include<vector>
#include<string>
#include<algorithm>
using namespace std;
class Solution_ha {
public:
string longestPalindrome(string s) {
if (s.empty()) return "";
if (s.size() == 1) return s;
int pos = 0, len = 0;
for (int i = 0; i < s.size() - 1; ++i)
{
//就是要注意奇偶情况,由于回文串的长度可奇可偶,
... |
9b07ab6e53f86cb655dd61b588971cd96c7b3344 | 7e298da72d400995c355b8ab4c6d8d3a63be7e70 | /src/PID.h | 2a997bf91e7d33d54b4e15a664ba52ed3ab536ee | [
"MIT"
] | permissive | CyberAMS/CarND-PID-Control-Project | e25d3a5f48d660abfada0c7a9c81d46190e9dc02 | 1352604e60f426f4b4ec908efc828d90fee7c878 | refs/heads/master | 2020-04-17T18:59:01.486851 | 2019-01-26T23:27:05 | 2019-01-26T23:27:05 | 166,849,186 | 0 | 0 | MIT | 2019-01-21T16:57:02 | 2019-01-21T16:57:01 | null | UTF-8 | C++ | false | false | 1,619 | h | PID.h | #ifndef PID_H
#define PID_H
#include <string>
#include <limits>
using std::string;
// define constants
const bool bFILEOUTPUT = true;
const string OUTPUT_FILENAME = "out.txt";
const bool TWIDDLE = true;
const unsigned int NUM_CONVERGED_STEPS = 100;
const unsigned int NUM_LOOP_STEPS = 1000;
const double DEFAULT_KP = ... |
3c95fb2a00e123578d3ac26d1b75aa8fae78aa66 | deba01947163db3f034e23d79378e92665d1a799 | /coroutine/stream_iter.hpp | f432d651a4456a3578c69867a8af6f3e53ffb645 | [] | no_license | Hexilee/silver-io | c8e8b91e866130863d1bfc01a0ba52de7d75fc4e | 142b2afd808f5733bea601baa8ccedf80841eb07 | refs/heads/master | 2020-06-10T09:29:05.881342 | 2019-08-03T06:08:27 | 2019-08-03T06:08:27 | 193,629,106 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,466 | hpp | stream_iter.hpp | /*
* Created by 李晨曦 on 2019-07-02.
*/
#ifndef SILVER_IO_STREAM_ITER_HPP
#define SILVER_IO_STREAM_ITER_HPP
#include <iterator>
#include <memory>
#include "future/stream.hpp"
#include "coroutine/coroutine.hpp"
namespace sio::coroutine {
using sio::future::Stream;
using sio::future::Flow;
using sio::future... |
698b198fa806b89bdf4e176f7cbb56e72342d63a | 3b2b885c483e6c1136449644d34a8d7d27340183 | /src/uCtrlCore/Utility/oshandler.h | 568900b1a9a0831fee6288b7de905502b2969b04 | [] | no_license | uCtrl/Software | fdf465c123c8fcdc2ee4d1f44271cd44bffa89a1 | 8801b2c3dbac79bd7dddf9052ed376896ef40b85 | refs/heads/master | 2016-09-06T04:49:11.701769 | 2015-04-18T03:32:48 | 2015-04-18T03:32:48 | 16,771,925 | 1 | 1 | null | 2015-04-18T03:32:48 | 2014-02-12T15:38:15 | C++ | UTF-8 | C++ | false | false | 1,015 | h | oshandler.h | #ifndef OSHANDLER_H
#define OSHANDLER_H
#include <QObject>
class OsHandler : public QObject
{
Q_OBJECT
public:
explicit OsHandler(QObject *parent = 0) : QObject(parent) {}
enum OsType
{
Unknown = 0,
Windows = 1,
Mac = 2,
Linux = 3,
Symbian = 4,
Maemo5 =... |
771cf577a6ede3e890bba58f9f14d840d214a162 | d0fb46aecc3b69983e7f6244331a81dff42d9595 | /iot/src/model/QueryJobStatisticsResult.cc | 8b9ab286fe2168b8f165823b053d2dc21ac4f638 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-cpp-sdk | 3d8d051d44ad00753a429817dd03957614c0c66a | e862bd03c844bcb7ccaa90571bceaa2802c7f135 | refs/heads/master | 2023-08-29T11:54:00.525102 | 2023-08-29T03:32:48 | 2023-08-29T03:32:48 | 115,379,460 | 104 | 82 | NOASSERTION | 2023-09-14T06:13:33 | 2017-12-26T02:53:27 | C++ | UTF-8 | C++ | false | false | 2,698 | cc | QueryJobStatisticsResult.cc | /*
* Copyright 2009-2017 Alibaba Cloud 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... |
d1fd2defa9bb50bb6a81033743240548f6c90cdb | dc4f48e683c9e4beb72213004118b5277d2cf96e | /helixTagger.cpp | 8fbf14a8faac25e1f91a4fc5c49b125a21ec5cda | [] | no_license | jniedzie/disappTracks | f585d80e70438fd6f5a395d86d7a08f3fbf09c03 | cbe9320b26e36b4b2846a6aa240002ae8bf5b277 | refs/heads/master | 2021-07-08T16:55:39.870856 | 2020-06-25T13:15:42 | 2020-06-25T13:15:42 | 141,112,155 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,302 | cpp | helixTagger.cpp | // helixTagger.cpp
//
// Created by Jeremi Niedziela on 25/01/2019.
#include "Helpers.hpp"
#include "Fitter.hpp"
#include "ConfigManager.hpp"
#include "HelixProcessor.hpp"
#include "EventSet.hpp"
#include "Logger.hpp"
string configPath = "configs/helixTagger.md";
xtracks::EDataType dataType = xtracks::kSignal;
ve... |
aac77f9e434b8503c6fc7b84ec661a4aa9af371a | 9e68427a09768cca7d716885a206d99a6454c959 | /dummys/dummy.cxx | dfb1f771af753a21f7503f5b7ab1fceea88c710c | [
"MIT"
] | permissive | jpmckown/eaten-by-a-grue | 5576983e44e48fa3f590bec491d1eb6fd53d26fa | 10d28cca0e0850e7849a6fb4b3bb8668f49e230a | refs/heads/master | 2022-11-07T16:55:28.478204 | 2022-07-26T22:25:44 | 2022-07-26T22:25:44 | 146,653,053 | 2 | 0 | MIT | 2022-07-26T22:29:15 | 2018-08-29T20:10:16 | C++ | UTF-8 | C++ | false | false | 935 | cxx | dummy.cxx | #include "dummy.h"
Dummy::Dummy() {
}
Dummy::~Dummy() {
for(auto item : _inventory) delete item;
}
bool Dummy::isDead() {
return _stats.health == 0; // no < because its uint
}
std::vector<Item*> Dummy::inventory() {
return std::vector<Item*>(_inventory); // copy.
}
void Dummy::acquire(Item* item) {
_invent... |
269eefc3f3891edfee1ab1633a5269d47a79084b | 6ece37fd821fcd03c31e29345569716aa9a9ce89 | /src/cflie/CTOC.cpp | b79e8949fe9630da329ff9206be2b9c058f377a8 | [
"BSD-3-Clause"
] | permissive | aholler/libcflie | c40d938af5b0478a236a30dd01df638ed1f80df9 | 1f2a9bec81743723593f0255edf5d2c74ec3c9ed | refs/heads/master | 2021-01-22T01:58:01.773561 | 2014-10-28T19:38:52 | 2014-10-28T19:38:52 | 25,839,582 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,477 | cpp | CTOC.cpp | // Copyright (c) 2013, Jan Winkler <winkler@cs.uni-bremen.de>
// Copyright (c) 2014 Alexander Holler <holler@ahsoftware.de>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistri... |
fadff6df02efdb740a2126e901d5eeb672d35a74 | 2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5 | /src/plugins/template/backend/evaluates_map.cpp | 2bb18904e6a45b2f15a37bb6750c1ab90425d73d | [
"Apache-2.0"
] | permissive | openvinotoolkit/openvino | 38ea745a247887a4e14580dbc9fc68005e2149f9 | e4bed7a31c9f00d8afbfcabee3f64f55496ae56a | refs/heads/master | 2023-08-18T03:47:44.572979 | 2023-08-17T21:24:59 | 2023-08-17T21:24:59 | 153,097,643 | 3,953 | 1,492 | Apache-2.0 | 2023-09-14T21:42:24 | 2018-10-15T10:54:40 | C++ | UTF-8 | C++ | false | false | 3,871 | cpp | evaluates_map.cpp | // Copyright (C) 2018-2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "evaluates_map.hpp"
#include "ops/ops_evaluates.hpp"
OPENVINO_SUPPRESS_DEPRECATED_START
std::vector<float> get_floats(const std::shared_ptr<ngraph::HostTensor>& input, const ngraph::Shape& shape) {
size_t input_size =... |
4f9d67cfcd394074d24ba261b7fbcf7d73d24f82 | f96f9244a9e1e4711c27c6d969e513999c4e84a5 | /middleware/tools/include/tools/build/task.h | f60703812b58f6403efa4528998b7cf6ab24f965 | [
"MIT"
] | permissive | casualcore/casual | 88965684f908a46dcc998238aa78726e0143bb05 | 7311cc481f3b823d0c86fc09171fbd17e3c39fc1 | refs/heads/feature/1.7/main | 2023-09-04T01:22:09.633159 | 2023-07-07T15:33:29 | 2023-07-18T08:48:49 | 477,282,028 | 14 | 4 | MIT | 2023-09-14T07:52:38 | 2022-04-03T08:34:20 | C++ | UTF-8 | C++ | false | false | 2,076 | h | task.h | //!
//! Copyright (c) 2018, The casual project
//!
//! This software is licensed under the MIT license, https://opensource.org/licenses/MIT
//!
#pragma once
#include "tools/build/model.h"
#include "common/algorithm.h"
#include "common/string.h"
#include "common/serialize/macro.h"
#include <string>
#include <vector>... |
3baa5c9bc5475e751b2d2cb83ed0ebe9351f2f26 | c39d17f86331dc10e40fc81ab904d5a53dcc9553 | /Prob3/FunctI.h | f110a9c4cefcf760e1320adf6d2d6c42d1b7ceba | [] | no_license | chmartin/NumMethods2011 | 40ffc43a7f15a5929099869c842fd6b28ea84b0a | 8b243eaa28735bd32117725d2234bc2e846247f4 | refs/heads/master | 2021-01-01T18:40:39.982331 | 2017-07-26T10:03:53 | 2017-07-26T10:03:53 | 98,404,365 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 120 | h | FunctI.h | #ifndef FUNCT_I_H
#define FUNCT_I_H
class FunctI
{
public:
FunctI() {};
Doub operator() (double x);
};
#endif |
3c45d811c560362aaaf14f27e3eb380a7fe83c75 | b84aa8a1745f3346f22b9a0ae1c977a244dfb3cd | /SDK/RC_TeamHealthContainer_functions.cpp | 141380e7b23160f53b55c5092ac710f8ae61b4a6 | [] | no_license | frankie-11/Rogue-SDK-11.8 | 615a9e51f280a504bb60a4cbddb8dfc4de6239d8 | 20becc4b2fff71cfec160fb7f2ee3a9203031d09 | refs/heads/master | 2023-01-10T06:00:59.427605 | 2020-11-08T16:13:01 | 2020-11-08T16:13:01 | 311,102,184 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,918 | cpp | RC_TeamHealthContainer_functions.cpp | // RogueCompany (4.24) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function TeamHealthContainer.Tea... |
7af50ddadc482217dbc5e85a4a7a5ada3a4baa27 | 0fa1152e1e434ce9fe9e2db95f43f25675bf7d27 | /platforms/posix/src/px4/common/print_load.cpp | a392fb823fe78c35a04e8d63bcd49c4f497b9097 | [
"BSD-3-Clause"
] | permissive | PX4/PX4-Autopilot | 4cc90dccc9285ca4db7f595ac5a7547df02ca92e | 3d61ab84c42ff8623bd48ff0ba74f9cf26bb402b | refs/heads/main | 2023-08-30T23:58:35.398450 | 2022-03-26T01:29:03 | 2023-08-30T15:40:01 | 5,298,790 | 3,146 | 3,798 | BSD-3-Clause | 2023-09-14T17:22:04 | 2012-08-04T21:19:36 | C++ | UTF-8 | C++ | false | false | 5,231 | cpp | print_load.cpp | /****************************************************************************
*
* Copyright (c) 2015-2020 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Red... |
7145ad3c2ff87d526128a4086e89d8364109b714 | dde107dc5985176a030b8aa4423ad88fc4456747 | /lab25/lab25.cpp | b2d627661c382c1c853880cb5adb0c55dbf74550 | [] | no_license | Tigercore1/CoreyMcDonough-CSCI20-Fall2017 | 23a62623ebb8edbce9238a6d1c424c88618ebe3b | 8f13f6efef864529b5256e31a5ad9c082525e23c | refs/heads/master | 2021-01-19T16:02:07.846983 | 2017-12-11T08:07:33 | 2017-12-11T08:07:33 | 100,982,987 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,212 | cpp | lab25.cpp | //Created By: Corey McDonough
//Created On: 10/3/2017
//This program takes info regarding books and stores them in a class. It then outputs the class through print functions in the class.
#include <iostream>
#include <string>
using namespace std;
// Class book has Set functions that store information about book obje... |
ce9a4acf5248382a86e5885796fd400da9366c7d | b155e04232853733a57e4360e76f86a9a5c503e7 | /src/sfp_ciofunc.t.cpp | 2d255e3277537e4c9c0dee25afb6cf1f98280389 | [] | no_license | camio/sbase | b7fe740ac9b35eb1170f272b8491c9cf189e1eb5 | fefc444dc1941c5ccd1651ec901b7bf4363cc4e9 | refs/heads/master | 2021-01-23T22:53:42.824756 | 2014-11-13T22:13:29 | 2014-11-13T22:13:29 | 19,886,067 | 9 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 407 | cpp | sfp_ciofunc.t.cpp | #include <sfp/ciofunc.t.hpp>
#include <sfp/ciofunc.hpp>
#include <type_traits>
// compile-time checks
static_assert(
std::is_same<sfp::ciofunc<char, int, long>::type,
boost::function<boost::function<boost::function<long()>(int)>(
char)>>::value,
"ciofunc unexpec... |
aabac39adf52968f76982de070454e7c0b54eb3b | a051a68b11f6c4084aaefb2cde6f8106cfeb234c | /asteroids/rock.h | 7151383bb5c941ee22b34fc4443d0fe14f4af9e1 | [] | no_license | hpbcrowe/CS-165 | 919d320d6b90281b70537154037ddcc2e0f3c6ab | a13a13f43ab5abf9b1f905181a4edad6f39418ea | refs/heads/main | 2023-02-05T04:03:33.754691 | 2020-12-23T06:10:35 | 2020-12-23T06:10:35 | 323,813,166 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,236 | h | rock.h | /***********************************************************************
* Header File:
* Rock : The parent class for all rocks
* Author:
* Ben Crowe
* Summary:
* Will be used to make a vector of pointers, so there can be different
* kinds of rocks
***************************************************... |
bde95a05bc9f219b7d6c8190a49d6437c26f0f18 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/admin/snapin/rolemgr/helpmap.cpp | c41e69031d9682cf27b0dab36e5387c0d2f6882a | [] | 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 | 2,043 | cpp | helpmap.cpp | #define BEGIN_HELP_ARRAY(x) const DWORD g_aHelpIDs_##x[]={ ,
#define END_HELP_ARRAY 0, 0 };
#define ARRAY_ENTRY(x,y) y, IDH_##x_##y,
//IDD_ADD_GROUP
BEGIN_HELP_ARRAY(IDD_ADD_GROUP)
ARRAY_ENTRY(IDD_ADD_GROUP,IDC_LIST)
END_HELP_ARRAY
/*
//IDD_ADD_OPERATION
BEGIN_HELP_ARRAY(IDD_ADD_OPERATION)
IDC_L... |
0186ec92fdff8147241a966c248d61c1b1faf6a9 | fef25fa06875a72a506842b85828159de8cd2f61 | /yesorno.cpp | b64c5d8af42ee3e5de7c484bee9ed8337a18990c | [] | no_license | DanielRrr/Cpluspluscalculations | 456ffb061f3783298867985997efb974660aafc5 | 79a18af52e46878af133ee3ab455172c1ccf8940 | refs/heads/master | 2021-01-17T06:15:07.601292 | 2016-07-07T10:26:18 | 2016-07-07T10:26:18 | 55,148,527 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 677 | cpp | yesorno.cpp | #include <iostream>
#include <string>
using namespace std;
char askYesNo1();
char askYesNo2(string question);
int main()
{
char answer1 = askYesNo1();
cout << "Thanks for answering: " << answer1 << "\n\n";
char answer2 = askYesNo2("Save your game?");
cout << "Thanks for answering: " << answer2 << "\n";
return 0;
}... |
45d6cd38f1ec84eb76e4483f8030634ab470e801 | 1d98dbc9ee457fe3dd55a5298d703bfab54fc610 | /FrontAnalyzer.h | c5a997139d2ba6a8cef90eb8696a7c6c8871a9c9 | [] | no_license | rafdp/MeteoProject | 71cd402c9fedb8336ca0785ebd4574e3dd470845 | cef569bb3e207092719dd8983fc974323ac70354 | refs/heads/master | 2021-01-19T03:13:20.070382 | 2018-07-24T21:26:53 | 2018-07-24T21:26:53 | 44,122,740 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,673 | h | FrontAnalyzer.h | #pragma once
#include "includes.h"
struct FloatPOINT
{
float x, y;
void Normalize();
FloatPOINT& operator = (const POINT& that);
FloatPOINT& operator += (const FloatPOINT& that);
};
struct SPOINT_t
{
public:
int x, y;
SPOINT_t ();
SPOINT_t (int x, int y);
SPOINT_t operator - (const SPOINT_t& that);
};
... |
6ce7305e0d0e6988fadbb84db88a0c13d37f5a71 | f8de825e6a28fc964769d8911ba992b0248c677a | /simulations/main.cpp | 4d9934789ed91310d40a8fd0bf8aebe43e89d281 | [] | no_license | syedaffan18/research | 4105b40fc825922e2f43c0b17450024915243a57 | 30e57c7ebd1763a9785718f4f183e3ea8efbf07f | refs/heads/master | 2020-07-18T11:08:47.421607 | 2019-11-13T13:04:25 | 2019-11-13T13:04:25 | 206,234,391 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,839 | cpp | main.cpp | //
// main.cpp
// nprotocol
//
// Created by talmac on 8/28/15.
// Copyright (c) 2015 talmac. All rights reserved.
//
#include <bitset>
#include <iostream>
#include <utility>
#include <map>
#include <unordered_map>
#include "CBox.h"
inline bool NLB(const std::bitset<3> xyz,const std::... |
7807e6d5089dfe24861046d5c34f8036ff70e5a3 | 16b1c8b7ce69bdb20e5bf571cb58b2645f3b9d9d | /GAME1017_EngineTemplate/GAME1017_Template_W01/TextureManager.h | 9a6b15bb4721ad14ee4fef8f9d35875f39605ee9 | [] | no_license | BertMarsh/GAME1017_A2_Marshall_Robert | 3300c0c27d39f8182e094abd6a5bbc6effc1660b | 07da10f3b68e825a4ee5a841774a4145673b41b9 | refs/heads/master | 2022-12-02T22:41:06.496457 | 2020-08-09T13:32:02 | 2020-08-09T13:32:02 | 283,095,593 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 386 | h | TextureManager.h | #pragma once
#include <SDL.h>
#include <SDL_image.h>
#include <vector>
#include <string>
class TextureManager
{
public:
static void Init();
static void RegisterTexture(const char* path, const std::string key);
static SDL_Texture* GetTexture(const char* path);
static void Quit();
private:
static std::vector<std::s... |
98bec48040bb2e0231ec0a4307900fc1ae68db3f | 5e6cda9a847e8868fec8a7fa0f6193573238f31e | /DYNAMICAL PROGRAMMING/TRIANGLE HASH Problem/triangle_hash_problem.cpp | 2904586a30757863993f6bb93b56c6b469800981 | [] | no_license | orcchg/StudyProjects | 33fb2275d182e46a8f5a9578dbbf4566bd7f1013 | 269550e37100e1eacc49a766b5f0db9c2e7ade2d | refs/heads/master | 2020-04-30T17:56:11.268350 | 2014-04-07T10:57:43 | 2014-04-07T10:57:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,475 | cpp | triangle_hash_problem.cpp | #include <vector>
#include <list>
#include <iterator>
#include <algorithm>
#include <cmath>
#include <stdio.h>
using std::vector;
using std::list;
using std::sort;
//-----------------------------------------------------------------------------
class CTriangle {
public:
CTriangle() {
sides.res... |
8939461268c87222c9417d57fd803d6c2f09d33d | e056fc78a4400d362dbff5968638dffc68386c1e | /3-G.Cvrpcount.cpp | 4c7c0e65c0609eb26e328dabd86211a6ab2b69f5 | [] | no_license | huyhoangttql/TTUD | 406624f751eebe544326b14a822c5fef409001bf | c5f798f97da0518cd23fda0fed4a07353c34ac3c | refs/heads/master | 2023-04-08T02:51:07.326136 | 2021-04-21T08:40:54 | 2021-04-21T08:40:54 | 359,900,099 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,709 | cpp | 3-G.Cvrpcount.cpp | #include <iostream>
#define MAX 10005
using namespace std;
int n, K, Q;
int d[MAX];
int load[MAX] = {0};
int x[MAX];
int y[MAX];
int appear[MAX] = {0};
int segement;
int ans = 0;
void input(){
cin >> n >> K >> Q;
for(int i=1; i<=n; i++){
cin >> d[i];
}
}
void solution(){
ans ++;
// for(int... |
e7a34dc6e0d390c2638a4463da27da4e74d88e35 | 0b085287d26e47bff407677479600132abf42728 | /inherited-from-7zip/CPP/7zip/Common/InMemStream.h | adc5aaddb2ca7b7599cbc9c79ba31f1851ca6612 | [] | no_license | bks/qz7 | ee717626f111c5bf301e41732f2badf37e6272fa | 85493103def2959c2c3a68da9b48f9cf74791cc3 | refs/heads/master | 2021-01-22T03:39:22.364142 | 2008-12-09T00:35:38 | 2008-12-09T00:35:38 | 75,379 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,779 | h | InMemStream.h | // InMemStream.h
#ifndef __INMEMSTREAM_H
#define __INMEMSTREAM_H
#include <stdio.h>
#include "../../Common/MyCom.h"
#include "MemBlocks.h"
class CIntListCheck
{
protected:
int *_data;
public:
CIntListCheck(): _data(0) {}
~CIntListCheck() { FreeList(); }
bool AllocateList(int numItems)
{
FreeList();... |
14f4844d0ac18e872ee632e763dd59ccee9dbf34 | 01ce8bc9cfe79af46fdde155cecfb6f427fae71c | /Source/Graphics/APIs/Vulkan/VertexBufferVulkan.h | 5b63bb11a5620858758c65059900ab600f8f8c47 | [] | no_license | TypeBPenguin/EastEngine | d0a15e2f4b2ddd0c2dcabb8882c06f5efcf2e480 | 8ca5bc090b24edb209d998f363626c70c285e5cf | refs/heads/master | 2023-02-13T11:08:51.866345 | 2021-01-05T12:00:58 | 2021-01-05T12:00:58 | 110,798,528 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 891 | h | VertexBufferVulkan.h | #pragma once
#include "Graphics/Interface/GraphicsInterface.h"
namespace est
{
namespace graphics
{
namespace vulkan
{
class VertexBuffer : public IVertexBuffer
{
public:
VertexBuffer(const uint8_t* pData, uint32_t vertexCount, size_t formatSize, bool isDynamic);
virtual ~VertexBuffer();
pu... |
6e978fdb063d08f9c7ca6344089b7983d06bc67c | ae4741b160ea3524c8e94691e7533f37dc1e64b8 | /runtime/src/log.cpp | 1b0a5ae590eb76faf71913c715083c979b516a62 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | DoroteaDudas/Bonsai | 6721066771294846378d1a17fe5d817c1ec93d00 | cdf6d6ec7f78d612cfcbfe078f43b96df2118988 | refs/heads/master | 2020-03-22T20:03:37.146748 | 2017-07-10T14:38:55 | 2017-07-10T14:38:55 | 140,556,802 | 0 | 0 | Apache-2.0 | 2018-07-11T10:05:16 | 2018-07-11T10:01:37 | C++ | UTF-8 | C++ | false | false | 1,651 | cpp | log.cpp | /*
* log.cpp
*
* Created on: Jun 8, 2012
* Author: jbedorf
*/
#ifdef USE_MPI
#include <mpi.h>
#endif
#include <stdarg.h>
#include <log.h>
#include <stdio.h>
#include <string.h>
// ******************************************** //
// These functions add the process ID and total //
// number of processe... |
8b29f2eb712efe799cf912a15ba4e11af3224d92 | 43b30faeb36ae2c94e3b59833ec5c284b16edca9 | /tcpchatClient.cpp | b1e56474dea361edeeddc9b681bde7c30fcea624 | [] | no_license | tsm9999/CNL | 5d69c8a43d75226ac8c6eadb11b82adfcb2a23ec | 14087147240d22e90c04099a6284851806691c98 | refs/heads/master | 2020-08-27T22:08:41.411376 | 2019-10-25T18:59:42 | 2019-10-25T18:59:42 | 217,474,973 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,213 | cpp | tcpchatClient.cpp | #include<iostream>
#include <sys/socket.h>
#include<arpa/inet.h>
#include<stdlib.h>
#include<string.h>
#include<stdio.h>
using namespace std;
#define PORT 3207
#define SERVER_ADDRESS "127.0.0.1"
void die(char *error)
{
perror(error);
exit(1);
}
int main()
{
struct sockaddr_in server_addr;
int sock=s... |
cc10d30d3f6b1900726920713778d5d98ad064c4 | d62c168301234071e78d9b80d3adf5f37c6c38f2 | /main/MinimumPathSum.cpp | 5a5f3c819a430c2292d44ba11aefe3f12bd14a73 | [] | no_license | HeHaowei/Leetcode | 37c0a834df1ec49bb8f1d769492a34cd3b430f53 | 2009aa7f143cdb9655fcf701a2926e087693262b | refs/heads/master | 2021-07-06T21:09:48.775211 | 2020-10-01T16:43:20 | 2020-10-01T16:43:20 | 189,728,446 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,172 | cpp | MinimumPathSum.cpp | class Solution {
public:
vector<vector<int>> path;
int minPathSum(vector<vector<int>>& grid) {
int l = grid.size();
int r = grid[0].size();
vector<int> line;
for (int i = 0; i < l; i++) {
path.push_back(line);
for (int j = 0; j < r; j++) {
... |
094bfee312eab8bdcd10d7b55b36804cf31a579d | b3e525a3c48800303019adac8f9079109c88004e | /nic/sdk/platform/elba/axitrace/msg_undef.inc | e74d2175692cce76b2895d5bc074e92a4fc83ea8 | [] | no_license | PsymonLi/sw | d272aee23bf66ebb1143785d6cb5e6fa3927f784 | 3890a88283a4a4b4f7488f0f79698445c814ee81 | refs/heads/master | 2022-12-16T21:04:26.379534 | 2020-08-27T07:57:22 | 2020-08-28T01:15:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 142 | inc | msg_undef.inc | #include <iostream>
#include "generic.h"
#ifdef MY_MSG
#undef MY_MSG
#undef MY_INFO
#undef MY_ERROR
#undef MY_WARNING
#undef MY_DEBUG
#endif
|
8e50657d84d7490e00158e4a260cca7588459388 | e9798b50d6b68836225163f89b6cc6abe71840ca | /MathAttack/MathAttackDlg.h | 22d717e850b4c13bba1ba5507de5a8adf926d7b9 | [
"MIT"
] | permissive | gajduk/math-attack | 3da77ea827943f15bb1f01b1508d382ab4721a6f | 71cd9e8b73f2c4001c193a90af328f0be83dd198 | refs/heads/master | 2021-01-18T21:23:09.684560 | 2016-04-12T10:10:28 | 2016-04-12T10:10:28 | 29,317,911 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,314 | h | MathAttackDlg.h | // MathAttackDlg.h : header file
//
#pragma once
#include "afxwin.h"
// CMathAttackDlg dialog
class CMathAttackDlg : public CDialog
{
private:
int x[5];
int y[5];
bool postoi[5];
int broj1[5];
int broj2[5];
int operacija[5];
int rezultat[5];
int brzina;
bool izlez;
// Construction
public:
CMathAttackDlg(CW... |
bedd230abc19054b28c61d37b6ad28c8772799fa | 1dd459ea5b00ebcb4e539af3f5ba8fe4d0b5710f | /monoExpanderMotor.h | d65ba1a55977228c1fa12dcbf2567190ae57227c | [] | no_license | pfeuh/monoExpander | 6d0bc0783088556e01147990a5dbbe9413b96284 | 38954ebe5cdee4e6fd9c164d2d0c79e9705d0721 | refs/heads/master | 2020-07-12T07:00:57.003069 | 2019-08-28T19:38:52 | 2019-08-28T19:38:52 | 204,564,404 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,324 | h | monoExpanderMotor.h | #ifndef monoExpanderMotor_H
#define monoExpanderMotor_H
/*
* file : monoExpanderMotor.h
* Copyright (c) pfeuh <ze.pfeuh@gmail>
* All rights reserved.
*
* 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 F... |
fcbf9dd15462bcbaca6cfd27d9e5644524167167 | 7e22725944fb5024ace01a533af24d89b67c4f48 | /400-499/473.matchsticks-to-square.cpp | 9a724d2e9a0c2357343eed072f2f1fe1561c8ee5 | [] | no_license | egg0315/LeetCode | 8746892eea594f86cf86184b10849129c819e813 | e4361f897ea8694d2e60953a6cb3a9dca54edb65 | refs/heads/master | 2020-07-22T14:09:35.243206 | 2019-11-05T08:33:30 | 2019-11-05T08:33:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 945 | cpp | 473.matchsticks-to-square.cpp | /*
* @lc app=leetcode id=473 lang=cpp
*
* [473] Matchsticks to Square
* Note : use nested dfs instead of four parallel dfs
*/
class Solution {
public:
bool makesquare(vector<int> &nums) {
int total = accumulate(begin(nums), end(nums), 0);
if (total == 0)
return false;
if (total % 4)
retur... |
baa4420aeb049f6dbb6a14b07dec62a575094c99 | 3093fcb62e374191f65bdfe9f503b81dad2ee06d | /matrixes.h | f6013dc8afaebd2609fe056b087507a54efb2f3e | [] | no_license | misabelber/Math | c6ac51b44bf6f1934a2075ea99dfef952d9a5170 | e2c2b42bbf0fe94ea9b9bb94578f805ceae29a22 | refs/heads/master | 2020-03-15T06:53:57.725875 | 2018-05-04T08:35:41 | 2018-05-04T08:35:41 | 132,017,692 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,852 | h | matrixes.h | #pragma once
#include <vector>
/****************************************************************
Matrix and vector stuff:
- vector are represented with an array
- matric is a vector of vector
- operations are done on the array itself
****************************************************************/
typ... |
619a390c6e9a18af113f015acc3b125ce33d74d0 | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/c0/017094895cf3ba/main.cpp | 100e8418610ce6fc8f1ba55084d488c6cd25397c | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,427 | cpp | main.cpp | #include <chrono>
#include <iostream>
#include <type_traits>
#include <utility>
// Executes fn with arguments args and returns the time needed
// and the result of f if it is not void
template <class Fn, class... Args>
auto timer(Fn fn, Args... args)
-> std::pair<double, decltype(fn(args...))> {
static... |
5f24066f60226be3b028d76d713339dcf93caea0 | 1befd4ed97a1541e9615e3514695063e87a71d36 | /_Kap 11 - Klassen/Klasse Bruch.cpp | 1a6c0ca652d4e3d6705d9e0e340ce982c9baf4d1 | [] | no_license | ProfJust/TIN | 08b3ea63d57f00e699574cb610197a02c20551c9 | e851ac005088d32b5f90fb49e65f825e10a375d4 | refs/heads/master | 2021-11-26T05:05:48.736772 | 2021-11-24T17:57:25 | 2021-11-24T17:57:25 | 166,380,877 | 1 | 1 | null | null | null | null | ISO-8859-1 | C++ | false | false | 3,004 | cpp | Klasse Bruch.cpp | // Klasse Bruch.cpp : Definiert den Einstiegspunkt für die Konsolenanwendung.
//neue Version 27.11.2016
#include "stdafx.h"
#include <iostream>
#include <iomanip>
using namespace std;
class Bruch
{
public:
Bruch() { zaehler = 0; nenner = 1; } // Standardkonstruktor
~Bruch() { } // Destruktor
... |
9d21691dbcb9162b881235cfcce6f75dc955f433 | e5f3b27692ec3185389c784ca003c42fa4fa7f34 | /Minesweeper/GameBoard.h | d20b6d07244466fe5e200342103e4e47a89209c0 | [] | no_license | robertberry-zz/Minesweeper | dfcf96a20a134917fa6853cd73214e20aed5779e | cd13a97b661fccbf265028c8c505e727ed3d6512 | refs/heads/master | 2023-03-01T23:21:31.195833 | 2013-12-26T16:14:46 | 2013-12-26T16:14:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,968 | h | GameBoard.h | //
// GameBoard.h
// Minesweeper
//
// Created by Robert Berry on 24/12/2013.
// Copyright (c) 2013 Robert Berry. All rights reserved.
//
#ifndef __Minesweeper__GameBoard__
#define __Minesweeper__GameBoard__
#include "Cell.h"
#include <vector>
class GameBoard {
private:
bool mGameOver;
int mColumns;
... |
27575ecb2ad648b7c52bec52706a87a00f7008fd | 53060989254d20ad6fc48d9ad4935bb4f93bd6bd | /IOCPSession.cpp | 2f6cb60410531a1e0bc20870bbae9d08cf58a6b2 | [] | no_license | JTK95/IOCPServer | b2c9491604493dfb4f7416fc6b895bac63d220ea | 39db884cb555989e4b70197c0ab3009914f12fb0 | refs/heads/main | 2023-04-14T08:53:08.946988 | 2021-04-26T03:12:15 | 2021-04-26T03:12:15 | 361,597,811 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 11,361 | cpp | IOCPSession.cpp | #include "pch.h"
#include "IOCPSession.h"
IoData::IoData()
:_ioType(IO_OPERATION::IO_ERROR)
{
memset(&_overlapped, 0, sizeof(_overlapped));
this->Clear();
}
IoData::~IoData()
{}
//------------------------------------------------------------------------
// IoData 멤버를 0으로 초기화
//------------------... |
c39bc0e29d42b12262691c0b6f7fd632e389eccf | 07a41d98b4000326eb6e5b20e0115f71fb17854c | /interfacesimulator.h | 9d4b70eab0b7d5e5012035d4672c5e5c600aa358 | [
"MIT"
] | permissive | mxsshao/nsb-sdd-lunar | c0022625a3b92497ac6855a20477841c95305531 | 14407a8f8d2ee9e1945285abbd5112d114020b2a | refs/heads/master | 2020-04-14T07:14:45.515172 | 2019-01-08T09:14:26 | 2019-01-08T09:14:26 | 163,707,469 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,081 | h | interfacesimulator.h | #pragma once
#include "global.h"
#include "statesimulator.h"
class CInterfaceSimulator : public Event::Handler
{
protected:
CInterfaceSimulator() {};
private:
ALLEGRO_FONT* font;
ALLEGRO_BITMAP* panel;
ALLEGRO_BITMAP* panelBG;
ALLEGRO_BITMAP* overhead;
float y;
float width;
float height;
ALLEGRO_BITMAP* t... |
f20c3f146f33592f37292fa9a7860d98c0b2f3c7 | 0408d086a3fd502113588a61b36755fe23f55b10 | /code/16471 작은 수 내기.cpp | 54ecb316cea5f6bf43cbfecd797478a9c5c46f58 | [] | no_license | dwax1324/baekjoon | 6dfcf62f2b1643480b16777c37f4e5d711b932d9 | 3a6daf8a66dbb304af8a4002989c081dcffc831d | refs/heads/main | 2023-04-03T03:56:50.410972 | 2021-03-29T11:51:30 | 2021-03-29T11:51:30 | 310,809,466 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 656 | cpp | 16471 작은 수 내기.cpp | // date: Wed Feb 24 17:00:52 2021
// author: dwax1324
#include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
//#define int int64_t
using namespace std;typedef pair<int,int> pii;typedef tuple<int,int,int> tii; typedef long long ll;
int32_t main(){ios_base::sync_with_stdio(0);cin.tie(0);
int N; cin >> N;
deque... |
156779d7e8f2d39a4361cd434ebf84f8057edc29 | 99cf7ed46654fabf55b4bd0a4e16eb512177e5c3 | /Projects/fluids_3d/Multiphase_Fire_Examples/MULTIPHASE_FIRE_EXAMPLES_UNIFORM.h | d0c836ae9a9f5a21e02a42ea9e97ff21af8f1555 | [] | no_license | byrantwithyou/PhysBAM | 095d0483673f8ca7cee04390e98b7f5fa8d230ca | 31d8fdc35dbc5ed90d6bd4fd266eb76e7611c4a5 | refs/heads/master | 2022-03-29T06:20:32.128928 | 2020-01-21T15:15:26 | 2020-01-21T15:15:26 | 187,265,883 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 20,125 | h | MULTIPHASE_FIRE_EXAMPLES_UNIFORM.h | //#####################################################################
// Copyright 2005, Frank Losasso
// This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt.
//#####################################################################
// Clas... |
5d19366dfe505f0e4c652fa089e57b8663c99d3f | 72e2e38d8c640a2a036cce733146070f99ff5312 | /include/systems/RenderSystem.h | bb87086236c037ab16978488b95dea8f051723f1 | [] | no_license | Morrantho/dynecs | 80041399ba361ec77afe52666af892330b5ee7ff | 3ff59b32d34e21fdd7e0edfbaa94a86ad68d654a | refs/heads/master | 2020-04-07T04:06:14.885102 | 2018-11-19T00:55:24 | 2018-11-19T00:55:24 | 158,039,976 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 255 | h | RenderSystem.h | #ifndef DX_RENDERSYSTEM_H
#define DX_RENDERSYSTEM_H
namespace dx
{
class RenderSystem : public dx::System
{
public:
RenderSystem(unsigned long mask): System(mask) {}
void Tick()
{
}
void Render()
{
}
};
}
#endif // DX_RENDERSYSTEM_H
|
7ffddf11e2ba81ca459221d9dc270d3f49fb3104 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/curl/gumtree/curl_repos_function_1465_curl-7.51.0.cpp | 3154cec5e2520994709ade0768e54c52e80e187f | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 173 | cpp | curl_repos_function_1465_curl-7.51.0.cpp | static unsigned __int64 smb_swap64(unsigned __int64 x)
{
return ((unsigned __int64) smb_swap32((unsigned int) x) << 32) |
smb_swap32((unsigned int) (x >> 32));
} |
83c4b473b5da17038afe43081040d4a66ab0186d | 52331ef2679a899d98826b7308305daf16d90a1d | /src/game_shared/towers/BaseTower.h | 6029b8fea95902810e15c564679f8e0981cf17de | [] | no_license | joetex/SourceTowers | 2ab7f27f9c464eaa4f41388b53fa070452ad976c | f9e40c60ca0362fad663cd21da95cbfdf1f217fa | refs/heads/master | 2021-05-29T01:02:05.127433 | 2015-03-20T08:04:16 | 2015-03-20T08:04:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,963 | h | BaseTower.h | #ifndef TOWER_ENTITY_H
#define TOWER_ENTITY_H
#ifdef CLIENT_DLL
#define CBaseTower C_BaseTower
#define CSDKPlayer C_SDKPlayer
#endif
#include "towers/BaseClickable.h"
//#include "towers/BaseProjectile.h"
#include "towers/tower_shareddef.h"
class CSDKPlayer;
class CBaseTower : public CBaseClickable
{
public:
CBaseT... |
d3d8f1b12d7dbb8e9d5bf28dce021c8b9027431a | 3e9586251881de92404aa4ba875d82598c024020 | /src/WindSpd.h | 9bd758464222b95145f2a4de62f916fd7f8ba938 | [] | no_license | ArcticSnowSky/MeteoStation | b138d336e2491b403b77047cbacd7b1e87890e2d | af0353bf4e2df87b33836ec178944b6ba5cb6056 | refs/heads/master | 2023-05-31T21:21:36.334975 | 2021-06-14T17:57:35 | 2021-06-14T17:57:35 | 376,912,998 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 688 | h | WindSpd.h | #ifndef __WIND_SPD_H__
#define __WIND_SPD_H__
#include <Arduino.h>
//#include "utils.h"
class WindSpd {
public:
static float calcWindSpd_ms(unsigned long impulse, unsigned long time_ms) {
return time_ms > 0 ? WindSpd::windFaktor_ms * impulse / time_ms : 0;
}
static float calcWindSpd_kmh(unsigned... |
d38e61bafff8b7a5aaabad852da2cd974e5023b9 | 66864fc26b43f66169f6fc4518cf332842da5408 | /final/GPS.cpp | 268985b6d7e529754fc801b7a24b048cdb897315 | [] | no_license | benoitphilippe/GPS_arduino | 54e9a8b75195d79396f5a0427b6e985a9dcd3533 | 0a5e86b789be797db3a708238d727950a43ee360 | refs/heads/master | 2020-03-10T12:44:27.674677 | 2018-06-20T17:33:49 | 2018-06-20T17:33:49 | 129,384,486 | 0 | 1 | null | 2018-06-12T15:24:23 | 2018-04-13T10:04:03 | C++ | UTF-8 | C++ | false | false | 3,790 | cpp | GPS.cpp | #include "GPS.h"
/**
* Finaly, after experimentation, all the angle stuffs are useless.
* It is more convenient to limit DISTANCE_ERROR_TOLERANCE to 2 metters
* in order to detect absence of movement.
* This code can evaluate with precision total disctance by local movement.
*/
bool getGPSData(){
static uns... |
79475f8b56ea052579acf7f6a227cec7b1856f5c | 4875e9e457a5c8d97a9bacf45d5b328d96c3cb19 | /src/main/g8/appFW/appFW.cpp | 343e26a1871a881fd8c9c76229c01ab09d1fb9bc | [] | no_license | domdere/cppSkeleton.g8 | c292c30ec1e666908d9193e84204e466b51ac380 | 705e5094599acd16f9093e3e7512701e8e437244 | refs/heads/master | 2021-01-17T07:09:12.398006 | 2013-09-10T03:36:45 | 2013-09-10T03:36:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 36 | cpp | appFW.cpp | #include "appFW/consoleAppMain.hpp"
|
6b70de95d7fbf250145910cca2ff9da4d48ff506 | e28f2a1e39f48015f5ec62b71c3ec5a93ad5573e | /oj/poj/poj_2337.cpp | c871b7fdea24b996975fc71a8ebfbe66c043ece9 | [] | no_license | james47/acm | 22678d314bcdc3058f235443281a5b4abab2660d | 09ad1bfc10cdd0af2d56169a0bdb8e0f22cba1cb | refs/heads/master | 2020-12-24T16:07:28.284304 | 2016-03-13T15:16:48 | 2016-03-13T15:16:48 | 38,529,014 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,961 | cpp | poj_2337.cpp | #include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
struct edge{
int from, to, u;
char str[50];
bool operator < (const edge a) const{
return strcmp(str, a.str) < 0;
}
} e[2000];
int n, cnt, ru[30], ch[30], f[30];
char ans[1500][50];
bool c[30];
int getf(int x)
{
if (x == f[x]) return x;
... |
dab99d5e0cf527d52f4525665d9a72f599c1d8fc | ac2be8e393231d3fa39eac94e50e5a0519749eb2 | /Dismembered Worlds/Game.cpp | 66cf20e75d16268e4f9d36d1bdef7c37caadc216 | [
"MIT"
] | permissive | sushiPlague/dismembered-worlds | 9bb33949d36d4cefcafcf0055432bfb071ef7df4 | d5d15eadd2f1d6a23e1125dc010ca49c6a7390b6 | refs/heads/master | 2022-12-27T14:59:20.317059 | 2020-09-25T09:07:07 | 2020-09-25T09:07:07 | 289,286,789 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,163 | cpp | Game.cpp | #include "Game.h"
#include "MapParser.h"
#include "Camera.h"
#include "Enemy.h"
Game* Game::instance = nullptr;
Game::Game()
{}
Game::~Game()
{}
bool Game::init(const char* title)
{
bool isInitialized = true;
if (SDL_Init(SDL_INIT_VIDEO) < 0)
{
printf("SDL could not initialize! SDL_Error: %s\n", SDL_GetError(... |
25d0f48b3552df58aa19e71630edddf2983842d0 | 2e72b9eedf6737745263e4d34ffa0b1e1e7a39f1 | /block1/main.cpp | 3e3507e382626082bed07cc7950bab93712ef776 | [] | no_license | 20190524/structrue | 0b819c959bb7952ca88914c38058ed548df459c2 | 747cb9c9b27cb90afa36564f00229239d94933d9 | refs/heads/master | 2020-12-02T05:17:55.542447 | 2019-12-30T11:20:41 | 2019-12-30T11:20:41 | 230,902,403 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,520 | cpp | main.cpp | #include <stdio.h>
#include<string.h>
#include<stdlib.h>
#include<blocklist.h>
//区块结构
#define M 2000000
int main()
{
//读入文件block
FILE *fp;
FILE *tfp;
BlockList Block_L;
BlockP bp;
int num=LoadBlockData(fp,Block_L);// 存好区块链了
printf("%d\n",num);
// bp=Block_L.head->next;
... |
2cbffcec83ea4a6c449b334ad46567332cf66014 | 2c00ef31a20e58643130f6546e4997d564abe6c5 | /src/alien.h | c60f170b317fb7f94d079b9962e0131eba75eca5 | [] | no_license | troyanlp/CppND-Capstone-Space-Invaders | 8b477149ed5f76b80790022ab740d91b000f025b | 3679456071cfdb5ef70c3992a276002e77cda631 | refs/heads/master | 2023-03-14T03:35:34.062484 | 2021-02-24T21:20:49 | 2021-02-24T21:20:49 | 342,037,837 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,082 | h | alien.h | #pragma once
#include "entity.h"
#include "bullet.h"
#include "shooter.h"
#include "stdlib.h"
#include <random>
class Alien : public Shooter{
public:
enum class DirectionX {
kLeft = -1,
kNone = 0,
kRight = 1
};
enum class DirectionY {
kNone = 0,
kDown = 1
}... |
e6735bbbb3a8f818520cf9718e1d8e204ab4c143 | 200613ed3a6e1328bb40f77759fa656c0a874c77 | /src/App/Classes/Game/BaiJiaLe/GameSceneUI/GameClockNode.cpp | da90d47db41a29b5d3184f64ac8593afbf0ce6ae | [] | no_license | iuvei/ChessGameApp | eb57164a8a8e41490a5ee70dda8fc323028a8db6 | a8765f4f90954cc6281a98b7f243be0afc50689c | refs/heads/master | 2020-04-19T19:30:38.562729 | 2018-01-06T16:52:49 | 2018-01-06T16:52:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,227 | cpp | GameClockNode.cpp | //
// GameClockNode.cpp
// HLDouDiZhu
//
// Created by zhong on 2/24/16.
//
//
#include "GameClockNode.h"
#include "GameClockNode.h"
USING_NS_CC;
USING_BJL_NAMESPACE;
GameClockNode::GameClockNode():
m_spClock(nullptr),
m_atlasLeft(nullptr),
m_nLeft(0),
m_enCountDownTag(bjl_kDefaultCountDown)
{
}
GameClockNo... |
70ae28e5d2c1c4e33c0510b79ed68f42538f9c63 | c4bd0bf2c177d89d33529b7105e796fce557f283 | /Second_work/Products.h | 77bd85cd650674548842744ea1f29e6b1f473b39 | [] | no_license | G1veng/SortingOfArray | 4d7d41362de492d70b804e2fa4ce64e47a3deb59 | f8fd53095e21e50b0aa7e45f985ce5ab416017f8 | refs/heads/master | 2023-06-08T02:04:47.394996 | 2021-07-03T09:20:31 | 2021-07-03T09:20:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 557 | h | Products.h | #pragma once
#include "product.h"
#include "input_output.h"
#include "work_with_files.h"
enum class type_of_inputs {
mainFunction,
manualInput,
randomInput,
fileInput,
testOfProgram
};
class ProductsOfConsoleInput final : public Product {
public:
ProductsOfConsoleInput();
Carray* get_input() override;
};
cla... |
232b2e9ce7c58e011d2fd7fe94de9154da929c44 | e850e0117e57435465ef260ff981df149abdba41 | /Problemas/Amigos/2.cpp | 7cd2e3706e3771226aebdfacc7cf3ba3a75988d5 | [] | no_license | ldorelli/curso_de_verao_maratona_icmc | a23a651bca9764a574db0b7c9b8fb1571ebf488d | b5498896bfcf14d156e4aa6801aa7cdb969099e3 | refs/heads/master | 2016-08-05T05:42:31.700555 | 2015-02-23T23:56:51 | 2015-02-23T23:56:51 | 30,255,176 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 947 | cpp | 2.cpp | // Bruno Sanches, 2014
#include <cstdio>
#include <vector>
#include <utility>
#include <cstring>
#include <cstdlib>
#include <map>
#include <iostream>
#include <algorithm>
#include <string>
#include <stack>
#include <queue>
#include <cmath>
#include <set>
#include <assert.h>
#include <bitset>
using namespace std;
#de... |
b41fb9050f57a0b41d8d2e915269b8c274e168b3 | 27fbce7c075cd9f4cee7e1250e82cd56a7699c02 | /tests/idl4/explicit_ints/main.cpp | 8dfce66e3770a0dfeeb838c82caf787cf0055bee | [
"MIT"
] | permissive | jwillemsen/taox11 | fe11af6a7185c25d0f236b80c608becbdbf3c8c3 | f16805cfdd5124d93d2426094191f15e10f53123 | refs/heads/master | 2023-09-04T18:23:46.570811 | 2023-08-14T19:50:01 | 2023-08-14T19:50:01 | 221,247,177 | 0 | 0 | MIT | 2023-09-04T14:53:28 | 2019-11-12T15:14:26 | C++ | UTF-8 | C++ | false | false | 3,077 | cpp | main.cpp | /**
* @file main.cpp
* @author Johnny Willemsen
*
* @brief CORBA C++11 client application for testing int8/uint8
*
* @copyright Copyright (c) Remedy IT Expertise BV
*/
#include "testC.h"
#include "testlib/taox11_testlog.h"
template <typename IntType>
void
expect_equals (bool &any_failed, const char *name... |
aed8d483834d29d8c74833b9e647de32392b50ee | ec9efe0040e2fad8c552dcd81796fe4263576a2b | /src/Algorithms/maze/constexpr_random.test.cpp | 625a002637b0a10e01172e5c1a742afa462f35a6 | [] | no_license | menuet/experiments | 5a9be1c40b2ac123c99e71136e311ddd5b48bf0e | ac34c3d4f940e94eb8ed0527830fb3f7135e286b | refs/heads/master | 2020-12-12T05:37:18.527925 | 2020-05-09T22:51:20 | 2020-05-09T22:51:20 | 34,752,991 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 252 | cpp | constexpr_random.test.cpp |
#include "constexpr_random.hpp"
#include <catch2/catch.hpp>
TEST_CASE("constexpr random")
{
maze::PCG pcg{maze::build_time_seed()};
const auto value = maze::distribution(pcg, 0U, 100U);
REQUIRE(value >= 0);
REQUIRE(value <= 100);
}
|
aaab441f1abce8f02f901848df82b3758afbda53 | 068bbc24f87caf24465946841b964b232402ea08 | /subsequence/execs/UCR_MON_nolb/UCR_MON_nolb.cpp | c477d839427334d75cb621811961a337a9790fb0 | [
"BSD-3-Clause"
] | permissive | HerrmannM/paper-2021-EAPElasticDist | d64e1223f1e4993624edadc2bf86bc9a180f5187 | a3dfbc73399ddecdf677b353937a4a6215f0a8a1 | refs/heads/master | 2023-07-31T22:56:39.060671 | 2021-09-16T02:17:53 | 2021-09-16T02:17:53 | 328,804,771 | 1 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 15,714 | cpp | UCR_MON_nolb.cpp | /***********************************************************************/
/************************* DISCLAIMER **********************************/
/***********************************************************************/
/** **/
/** This suite is a ... |
a9eb8198bacf9c03dd91b9748898ceeed569473a | d24bf511265096983cf11c1336a2c08d42846df4 | /include/not.h | 54e81988c4d9790db7f178ae9ee5b535af43ede7 | [] | no_license | MagnusCaligo/NEAT-C- | cf822745ed38608be2d2af66af396cef3089e3b5 | 32db83261ee1e7d4dfd7605d170b837baa852e51 | refs/heads/master | 2021-09-01T02:00:28.146576 | 2017-12-24T09:15:52 | 2017-12-24T09:15:52 | 112,784,040 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 76 | h | not.h | #include <iostream>
#include "NEAT.h"
using namespace std;
void runNot();
|
46b95d036babde13b491f8460b35783aa2a674d2 | 705c7223bc1f33f0c86a1344efbbcc53f3e0bb46 | /src/world/map.cpp | 77e4cd455db9d03712f8c3366477468310ee5e64 | [] | no_license | andregri/minecraft | 050594271ec6f3d3bf93e42f9deedd94842635ea | 39963edb4fa261ba3e06a57524ed770c9120e833 | refs/heads/master | 2023-03-25T13:17:54.157374 | 2021-03-19T22:17:19 | 2021-03-19T22:18:04 | 346,765,158 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,930 | cpp | map.cpp | #include "world/map.h"
#include <cmath>
#include <iostream>
#include <fstream>
#include <ostream>
#include <string>
#include <cstdint>
#include <noise/noise.h>
#include <noise/noiseutils.h>
namespace world {
Map::Map() :
m_numRows(0),
m_numCols(0),
m_maxElevation(0),
m_seaLevel(0),
m_filepath("")... |
cdedd970ccebc51c9c837a519d4d26f1659503e2 | 62dd40004b34fd615f565877cba3de6660a0a131 | /删除链表中的节点/删除链表中的节点/main.cpp | a22ef25ad591c293c1cc201b2a4022d651c1f34d | [] | no_license | info3781/leetcode | 9eea32834f8f7efc0a6ff0fa370b562adf972fa9 | aee86b3500397fe1c4b37acaa9fff1267b4e9192 | refs/heads/master | 2020-09-15T06:11:30.182021 | 2019-12-13T02:24:35 | 2019-12-13T02:24:35 | 223,364,789 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,040 | cpp | main.cpp | //
// main.cpp
// 删除链表中的节点
//
// Created by Info on 2019/11/29.
// Copyright © 2019 Info. All rights reserved.
//
#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
#include <string>
//请编写一个函数,使其可以删除某个链表中给定的(非末尾)节点,你将只被给定要求被删除的节点。
//
//现有一个链表 -- head = [4,5,1,9],它可以表示为:
//
//
//
//
//
//示例 ... |
34325427f5cee43d7273321428ad7ed124838e13 | ac0f6f69a967b4aefbcb037231def4941a5afce6 | /Exam cpp/09.11.2020 ООП exam prog.cpp | 7cea2dc5153caa6707de534c91d8daf8b50ca78c | [] | no_license | BaronFenix/cpp-HomeWorks | 7c4333db6194beb69aea506fe0007c123b104b5b | 599de4cef6f3eeb8a3ac8cacb5f40dafce6c1e98 | refs/heads/main | 2023-02-22T23:00:20.495813 | 2021-01-31T13:42:12 | 2021-01-31T13:42:12 | 334,645,687 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,184 | cpp | 09.11.2020 ООП exam prog.cpp |
#include "examHeader.h"
int main()
{
SetConsoleCP(1251);
SetConsoleOutputCP(1251);
using namespace std;
system("Color 0C");
fenix::AdminMode wowo;
fenix::GuestMode doode; // guest DarthFenix : qwerty123
wowo.setAdmin();
// doode.log_in();
doode.l... |
b253d7f0b2baf9260b5dd6bbb2907f908e3f2786 | 9749fef18c3f49e1fa80a9d7c8b19dfc60a68e08 | /New_UVA/429.cpp | eb59e9040ee0c3ff10540ee00409763dbcf12c1a | [] | no_license | showkat2203/UVa | afe6c033dee6ac7206d37d1aa86b95ff81fdb1e2 | c250ff440925cb9799d96d87a47987b7d970ce2e | refs/heads/master | 2021-07-07T04:45:22.846632 | 2017-10-05T12:47:07 | 2017-10-05T12:47:07 | 105,883,975 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,042 | cpp | 429.cpp | #include <bits/stdc++.h>
using namespace std ;
map < string, vector < string > > mp ;
//map < string, vector < string > > :: iterator it ;
vector < string > v ;
map < string , int > cost ;
void bfs(string a)
{
queue < string > q ;
cost[a] = 0 ;
q.push(a) ;
string m, n ;
int i ;
while( !q.emp... |
9b86f3cc6f418979e6e5736f745b3f34486d46a1 | 2a78545bf5f1b8705630695026a167aadb006ae3 | /pb-lib/pblib/encoder/sorting_merging.cpp | 0a180a174991f63a043276f20acaf921c16bc02e | [
"MIT"
] | permissive | chisui/haskell-ipasir | 5f232aedec28d885494314fa9120e5f3c3ad04f3 | 2add0efe0ab29d03000f5afd8e87ad5655e0c7d2 | refs/heads/master | 2021-01-19T13:22:20.079802 | 2017-10-11T12:51:44 | 2017-10-11T12:51:44 | 88,081,360 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 14,211 | cpp | sorting_merging.cpp | #include <math.h>
#include "sorting_merging.h"
#include <climits>
using namespace std;
namespace PBLib
{
vector<vector<int32_t> > Sorting::s_auxs;
map< pair<int32_t,int32_t>, int64_t> Sorting::recursive_sorter_values;
map< tuple<int32_t,int32_t,int32_t>, int64_t> Sorting::recursive_sorter_l_values;
... |
966140a1b98019209ff92bbae31a4d7200262c52 | ccc02f0ef4e423496fdb2857997d15b8d011391a | /unistor/bench/unistor_bench/UnistorBenchApp.cpp | 275c0623bc6451c2ece4c99b99fa96ebcd05880a | [] | no_license | mbsky/cwx-kv | e40659ae4668be283139b727fe812fad16cb00c8 | 7372026e76749bd43f7d927fe6d7d71f6b70850f | refs/heads/master | 2020-04-15T01:17:25.452039 | 2012-10-10T14:02:57 | 2012-10-10T14:02:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,549 | cpp | UnistorBenchApp.cpp | #include "UnistorBenchApp.h"
#include "CwxSocket.h"
///构造函数
UnistorBenchApp::UnistorBenchApp(){
m_threadPool = NULL;
m_eventHandler = NULL;
}
///析构函数
UnistorBenchApp::~UnistorBenchApp(){
}
///初始化APP,加载配置文件
int UnistorBenchApp::init(int argc, char** argv){
string strErrMsg;
///首先调用架构的init
if (CwxAppFra... |
10266e92af6c53d97796de5bfc686e110b5b86cd | fc409bb39543d5c89baad42ec719aba458056c27 | /AdventOfCode2020/AdventOfCodeDays.h | 5481234c3d2f2e0ac872c4d84e24d2371af0b248 | [] | no_license | AmonJG/AdventOfCode2020 | 0b07e54a096a23e8d847f75fed4f68868689b94e | e01a74c5cfda18770b1b6365d5f548389b3bf00d | refs/heads/main | 2023-02-03T08:32:26.895150 | 2020-12-21T22:46:11 | 2020-12-21T22:48:26 | 317,689,384 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,707 | h | AdventOfCodeDays.h | #pragma once
#include "AdventOfCodeTask.h"
class AdventOfCodeTask1Day1 : public AdventOfCodeTask { public: AdventOfCodeTask1Day1(); };
class AdventOfCodeTask2Day1 : public AdventOfCodeTask { public: AdventOfCodeTask2Day1(); };
class AdventOfCodeTask1Day2 : public AdventOfCodeTask { public: AdventOfCodeTask1Day2(); };
... |
edce19294a8a1f878eb86bb4212b7f2144ac0f95 | 1321f626a38f5e9e4a837e8d307cfcbbe82599dd | /hardwareManager.h | 44651e98753f85394cf27855326bfa6f82385153 | [] | no_license | tobiaseydam/MotDetCode | 5795b8cf67f6bfb406adcb8923477cfe0bed603c | e117233e76e687b3e045093c15d40d9c82b64223 | refs/heads/master | 2020-04-01T07:50:53.905374 | 2018-11-24T17:12:50 | 2018-11-24T17:12:50 | 153,006,450 | 0 | 0 | null | 2018-11-24T16:30:15 | 2018-10-14T18:38:58 | C++ | UTF-8 | C++ | false | false | 2,491 | h | hardwareManager.h | #ifndef HARDWAREMANAGER_H
#define HARDWAREMANAGER_H
#include <WString.h>
#include <Arduino.h>
#include <WiFi.h>
#include <OneWire.h>
class HardwareList;
#include "asyncSM.h"
enum eHardwareType{
RELAY,
INPUT230V,
TELEMETRY,
ONEWIRE
};
class Har... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.