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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d9d357948bec78d2fc8f77b2d5f01676af22651e | 77a1e8b6e3181b097a196bda951ae5ed05115729 | /unittests/database_tests.cpp | 51f7502f513adb17c6139130a97434c997f0d15c | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | yinchengtsinghua/EOSIOChineseCPP | 04888f80cb7a946fb54c2494137868cb86685ff1 | dceabf6315ab8c9a064c76e943b2b44037165a85 | refs/heads/master | 2020-04-18T01:20:58.685186 | 2019-01-23T04:17:07 | 2019-01-23T04:17:07 | 167,115,462 | 21 | 11 | null | null | null | null | UTF-8 | C++ | false | false | 4,494 | cpp | database_tests.cpp |
//此源码被清华学神尹成大魔王专业翻译分析并修改
//尹成QQ77025077
//尹成微信18510341407
//尹成所在QQ群721929980
//尹成邮箱 yinc13@mails.tsinghua.edu.cn
//尹成毕业于清华大学,微软区块链领域全球最有价值专家
//https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
/*
*@文件
*@eos/license中定义的版权
**/
#include <eosio/testing/tester.hpp>
#include <eosio/chain/global_property_object.hpp>... |
55f3dfa806659c591aa93283c6f17f21449ad938 | 09bba7e46fd23b6c065b4bd1af90b67bae9216a2 | /hw8/Animal.cpp | 21289bc1ae869cf413de0257b0587d702e827280 | [] | no_license | cat-kat/cpp-itmo | abf8991a6e774f72362e77bc004b38be321efb06 | ed1d975fc4fd594acf0d826b8c07a3dbf69b6fcc | refs/heads/master | 2021-10-24T09:50:29.734381 | 2019-03-25T00:33:35 | 2019-03-25T00:33:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 179 | cpp | Animal.cpp | #include "ManBearPig.h"
Animal::Animal(string const& name, size_t id, int hp)
: Unit(id, hp),
mName(name) {}
string Animal::name() const {
return mName;
}
|
aad9c2b5d3ff134b16afd1e5e91b6fdbfb30088f | 6e665dcd74541d40647ebb64e30aa60bc71e610c | /800/VPBX_Support/stacks/sipstack/SipRetryAfter.cxx | 79bbfdc429716d567514a86036981832a2aff9af | [] | no_license | jacklee032016/pbx | b27871251a6d49285eaade2d0a9ec02032c3ec62 | 554149c134e50db8ea27de6a092934a51e156eb6 | refs/heads/master | 2020-03-24T21:52:18.653518 | 2018-08-04T20:01:15 | 2018-08-04T20:01:15 | 143,054,776 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,226 | cxx | SipRetryAfter.cxx | /*
* $Log: SipRetryAfter.cxx,v $
* Revision 1.1.1.1 2006/11/30 16:27:10 lizhijie
* AS800 VPBX_Support
*
* Revision 1.1.1.1 2006/06/03 11:55:33 lizhijie
* build a independent directory for VPBX support libraris
*
* $Id: SipRetryAfter.cxx,v 1.1.1.1 2006/11/30 16:27:10 lizhijie Exp $
*/
#include "global.h"
#inclu... |
4ffba440aa6872811cbbcdfb5b974b58fdfac18d | f27cb638eec4bbaa42267c5904315f74dfc30209 | /SHP6HMLOX/LED.ino | 46ae322ed8e1ffa0f580e837cbaeb2dec9308d60 | [] | no_license | MasterPu/SHP6HMLOX | dfc5dde3e544860ee6d530272c4676af77745a3e | bcdcd87bc5b8c45467af43c3195a3181bc1f8edc | refs/heads/master | 2020-04-28T17:30:23.139803 | 2019-03-13T18:33:13 | 2019-03-13T18:33:13 | 175,449,256 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 382 | ino | LED.ino | void switchLED(bool State) {
if (GlobalConfig.LEDDisabled) {
digitalWrite(LEDPin, On);
} else {
digitalWrite(LEDPin, State);
}
}
void blinkLED(int count) {
byte oldState = digitalRead(LEDPin);
delay(100);
for (int i = 0; i < count; i++) {
switchLED(!oldState);
delay(100);
... |
b3f2b48ab6d0c95c664fb7bc9cb38c4ff3b6edf2 | 6a11d2e56eda699ff63e56ac87d69934cd48740c | /mstl_image_dir.hpp | 90f3a2732cd7491f576e87603acf37585d84298c | [] | no_license | halsten/my-toolkit | 727152c9aa480a3d989ac97cc29849555d9db54d | 4d37e920ed66f045f2866c98549617de4d9817d3 | refs/heads/master | 2023-03-26T01:33:45.513547 | 2017-07-16T14:40:46 | 2017-07-16T14:40:46 | 351,218,795 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,152 | hpp | mstl_image_dir.hpp | #pragma once
#include "mstl_address.hpp"
template<size_t data_directory>
class IMAGE_DIR : public Address {
public:
__forceinline IMAGE_DIR() : Address{} {}
__forceinline ~IMAGE_DIR() {}
IMAGE_DIR(Address image_base) :
Address{image_base} {
init();
}
__forceinline void init() {... |
afe48a307674180274b5ea66bf5039e3ceed3bad | b61d1d9f55b8c13b6bd5504ed97b17d311c5c215 | /C/Test5.cpp | 0e4ee5574f6229d0628afa80b92bad55cc80885a | [] | no_license | Dhanuka99/Practical | b78eabe08f9885a4e207b163ad6438fb4f97cb15 | 73c37d666d3161a392d73419f8062e33940fef22 | refs/heads/master | 2023-08-04T13:57:21.225038 | 2021-09-08T14:55:17 | 2021-09-08T14:55:17 | 402,864,048 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 161 | cpp | Test5.cpp | //
// Created by DHANUKA on 9/8/2021.
//increment and decrement
//
#include <stdio.h>
int main(){
int a = 5;
printf("%d ",a++);
printf("%d ",a);
}
|
609fc2ede7836616c64920c1fb02b0ca094d4d21 | 32fcc41cc1b59a46932158e5062c8c37f88cd989 | /core/pass.cpp | b3442fd26b5f46845e9786ff01322ee9c1ebd711 | [
"Apache-2.0"
] | permissive | google/jsonnet | 4cb224b7836e215df4bac809ad1ffed628a4d3d7 | e605e4673294d2bf43eb8351fb8f5d9ba26d5e68 | refs/heads/master | 2023-08-28T16:27:58.576444 | 2023-08-14T12:02:45 | 2023-08-14T12:02:45 | 22,527,161 | 6,616 | 546 | Apache-2.0 | 2023-08-14T12:02:46 | 2014-08-01T20:29:12 | Jsonnet | UTF-8 | C++ | false | false | 10,786 | cpp | pass.cpp | /*
Copyright 2015 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 by applicable law or agreed to in ... |
c7b0d39af53571e58e5f1b5064b14c36d6c08b47 | 03c71398ebae1405492d7e141c1fc6199d37d56f | /Labs/Lab6/Menu.cpp | 0c338a596df3f9a64924426cfc2c4e272a674b3d | [] | no_license | AStockinger/Cpp-Projects | f40bea19ddd84fb07cc10c1c1e761a82f6bd07b9 | f53d22a1067ddbdb8cacb2e5bbc91f4360916d1c | refs/heads/master | 2020-04-11T20:14:14.455812 | 2018-12-18T04:48:03 | 2018-12-18T04:48:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,131 | cpp | Menu.cpp | /******************************************************************************
** Program name: Lab 6
** Author: Amy Stockinger
** Date: 10/27/18
** Description: Menu function implementation
******************************************************************************/
#include "Menu.hpp"
#include "InputVal.hpp"... |
9ec01257fd22fbf115e27330c381909275ce167e | 42e52b620748c68ee175f1eef6c31a9e66f330bc | /swift/util/str_util.cc | 5d63e4628790de98a83ee6276c4f29a0d3d706f7 | [] | no_license | hzliu/swift | a4e0e2fb1316345f0c6d2fc175d00afae0cf696c | db88a63231d752169c25cd6e4fa9acf434b6d45d | refs/heads/master | 2016-09-05T23:32:04.307152 | 2012-06-07T09:17:47 | 2012-06-07T09:17:47 | 4,544,706 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 550 | cc | str_util.cc | #include <swift/util/str_util.h>
std::vector<std::string> split(const std::string &str, const char *delimeters)
{
std::vector<std::string> results;
std::string::size_type pos = 0;
while(pos != std::string::npos)
{
std::string::size_type next = str.find_first_of(delimeters, pos);
if(next... |
d68431abe815859b51a993d0a2e9fab456b4a39d | 0e8d57f10639b0bdcab2c89b307029697c909863 | /atcoder/abc203/D/main.cpp | 9728c863a079bbfb250080e5a3cfe32510c4e448 | [
"Apache-2.0"
] | permissive | xirc/cp-algorithm | 07a6faf5228e07037920f5011326c16091a9157d | e83ea891e9f8994fdd6f704819c0c69f5edd699a | refs/heads/main | 2021-12-25T16:19:57.617683 | 2021-12-22T12:06:49 | 2021-12-22T12:06:49 | 226,591,291 | 15 | 1 | Apache-2.0 | 2021-12-22T12:06:50 | 2019-12-07T23:53:18 | C++ | UTF-8 | C++ | false | false | 1,524 | cpp | main.cpp | #include <bits/stdc++.h>
inline int64_t binary_search(
std::function<bool(int64_t)> const& predicate,
int64_t ng,
int64_t ok
) {
assert(!predicate(ng));
assert(predicate(ok));
while (abs(ok - ng) > 1) {
auto m = (ok + ng) / 2;
if (predicate(m)) ok = m;
else ng = m;
}... |
8901d898649dea7fa8762e35b462d332acca4f53 | 192d706e55f91fa65b7449a0c2af76cbbb29be4d | /D2/2018_10_29.cpp | d7570cfb67d1a82774af8f0b8c3003c56ab0a0f8 | [] | no_license | sungkae/SW-ExpertAcademy | 976d7ac4f73e821a0ce9ca78cc09e45c1627bec0 | 57f8e3df5dcbf544bbaf891852af0618ff68e561 | refs/heads/master | 2020-03-30T09:02:33.796587 | 2018-10-29T14:42:11 | 2018-10-29T14:42:11 | 151,057,540 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 504 | cpp | 2018_10_29.cpp | #include <iostream>
using namespace std;
int main()
{
int testCase,day;
int price[1000001] = { 0 };
cin >> testCase;
for (int i = 0; i < testCase; ++i)
{
cin >> day;
//매매가 입력
int max = 0,count = 0;
for (int j = 0; j < day; ++j)
{
cin >> price[j];
if (max < price[j])
{
max = price[j];
... |
20e2e061ceb0f4dbec14bb87571afa832c1356b1 | 2d6bb5d4f863a11d39f657ccd74e333d913eb798 | /includes/aha_debug_screen.h | 0aea4ebc5463fd1ff93bed6fb33747a50c0cec27 | [] | no_license | Hyarius/Aha | 9d8ab492e22969ac88ea5139454d83f02f2292cf | 9acea919f3a3ee143d68187e3611edefb9bd4169 | refs/heads/master | 2021-01-04T12:01:38.627667 | 2020-04-13T13:21:59 | 2020-04-13T13:21:59 | 240,538,146 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 438 | h | aha_debug_screen.h | #ifndef AHA_DEBUG_SCREEN_H
#define AHA_DEBUG_SCREEN_H
#include "jgl.h"
#include "aha_editor_mode.h"
class c_debug_screen : public c_widget
{
private:
class c_game_engine* _engine;
public:
c_debug_screen(c_game_engine *p_engine, c_widget* p_parent = nullptr);
void draw_line(int& nb_line, string text);
void rende... |
3936464bc27499dbee83c4872bc08a4aca71a131 | f28224ebcca66c4e8e0e31ae6135863e9d2e7f00 | /12.integer-to-roman.cpp | ec43994928079c59e772586eaa6dbc37faee5c5c | [] | no_license | fkljboy/my-leetcode | 8df5df625be2c3559ad4376d731ea0e6b25cb3c8 | f5d05b437b9938f82e85d19a08b16779bd790c4f | refs/heads/master | 2021-04-02T11:09:25.022762 | 2020-03-18T15:31:18 | 2020-03-18T15:31:18 | 248,268,439 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 631 | cpp | 12.integer-to-roman.cpp | /*
* @lc app=leetcode id=12 lang=cpp
*
* [12] Integer to Roman
*/
// @lc code=start
class Solution {
public:
string intToRoman(int num) {
vector<int> values={1000,900,500,400,100,90,50,40,10,9,5,4,1};
vector<string> strs={"M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"};
stri... |
98a9ec343f8a3ba186ca53c68007432c68dd0a4d | 68e588d7651638b31d62b58bb17414a4f6b4e669 | /ch09/ex9_52.cpp | 04c22f7aaa80e86c709adc2d02fd6d77accfe238 | [] | no_license | HongfeiXu/CplusplusPrimer | 8d8844c9ca73c89067ec78a9cf3a4fee2b10a89b | 676a428b1164dd0e980e696d6553f02be96c633c | refs/heads/master | 2022-03-19T00:57:17.604996 | 2022-02-20T14:19:27 | 2022-02-20T14:19:27 | 57,424,704 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 841 | cpp | ex9_52.cpp | /*
* 练习 9.52:使用 stack 处理括号化表达式。
* 感觉题目的要求应该是类似于表达式求值。这里并没有实现,只是实现了去括号的操作,而且还只能处理一对括号。待改进。
*/
#include <stack>
#include <string>
#include <iostream>
using namespace std;
int main(void)
{
string expression("Hello, (World)!");
bool bracketSeen = false;
stack<char> stk;
for(const auto c : expression)
{
if(c == '... |
d6eeeccf5876616c47128868f08714748e742aff | a8929c2a28e972f7fa64458fd961af994e77335e | /Clone.cpp | f333db55a67b7193bac3798dba01e04d839becb9 | [] | no_license | ligeweiwu/jianzhioffercpp | 8ad50939333a4b38d634bb45d8f23b99acf7f61d | 33dba9fa79288d03f6218f57ab2f3ff0241e2b6f | refs/heads/master | 2020-05-15T19:27:47.202296 | 2019-05-29T19:18:47 | 2019-05-29T19:18:47 | 182,456,045 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,773 | cpp | Clone.cpp | #include<stdio.h>
#include<math.h>
#include <iostream>
#include<bits/stdc++.h>
#include<vector>
#include<stack>
#include <unordered_map>
#include<map>
#include<unordered_set>
using namespace std;
struct RandomListNode {
int label;
struct RandomListNode *next, *random;
RandomListNode(int x) :
l... |
6c58040d3069cb3d19d0e6b1a5317687aab0e6a0 | 6d37c919b4c4eb18671e2e8bb26c45cc5f584360 | /include/LinearLayer.hpp | 683882d0ca17e395e10ddc8f121a9610939afa43 | [] | no_license | BorisLestsov/CudaInference | f8f9fb62eedf5b3cf78d894c2eb537678e11d0eb | eb7ff688251bb741f47cdc4471312cb7a25338bf | refs/heads/master | 2022-07-14T05:57:59.463151 | 2020-05-06T02:02:49 | 2020-05-06T02:02:49 | 259,452,572 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 743 | hpp | LinearLayer.hpp | #ifndef CUDA_PROJ_LINEARLAYER_CUH
#define CUDA_PROJ_LINEARLAYER_CUH
#include "Layer.hpp"
#include "Tensor.hpp"
#include <string>
#include <memory>
#include <cublas.h>
#include <cublas_v2.h>
class LinearLayer: public Layer {
public:
LinearLayer(cublasHandle_t& cublas_handle_p, const std::string& w_path, bool bi... |
786cca94174329babea2acd229a606784d277db7 | 055f943f2cba917ff71f5db9f2b2b9e963ddb8f4 | /company/Manager_Dev/Xepoll_Client.cpp | 5e86dc0e557ca7ad4f4a612bcbfd7e8d3e9eeee6 | [] | no_license | zj23564/GitProject | 1c64daf39214d45b5516e48e104b015f5152bd38 | b6e272d47fc68e02db5f696595d8d8c9fdb2e2d2 | refs/heads/master | 2021-01-18T14:02:54.088766 | 2013-01-30T08:11:28 | 2013-01-30T08:11:28 | 7,910,189 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,957 | cpp | Xepoll_Client.cpp | #include "../include/Xepoll_Client.h"
#include<libxml/parser.h>
#include<libxml/tree.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char read_buff1[1024]={0};
char read_buff2[1024]={0};
char read_buff3[... |
dd8cb0b53772326d2bb4f8fdcb97d9ab623054c2 | 375e5eca6bb3f80692212a9b975fc6b7786d6d22 | /ed.cpp | 2cab80b2b37d7d8b87182612e351ee8d0df43705 | [] | no_license | 3point141/dp | 156e0c02247fab27fc1e979dde017ed3efdea7ec | d8a538b4a1f72a5012d2670aa2a7fd0ff12ba9e1 | refs/heads/master | 2020-03-26T12:06:43.799159 | 2018-08-15T20:48:50 | 2018-08-15T20:48:50 | 144,876,042 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,481 | cpp | ed.cpp | /*Given two strings str1 and str2 and below operations that can performed on str1.
Find minimum number of edits (operations) required to convert ‘str1’ into ‘str2’.
Insert
Remove
Replace
--> saturday
-->sunday
>>3
*/
/*
//recursion
#include<bits/stdc++.h>
using namespace std;
int minimum(... |
afce3dde448dc4520e760920730a95b8eb189025 | 9bc012a24217cd534db1a2b7e4f8ffaa1ca2b049 | /tests/arm_cs_test.cpp | 020f31666253138f0b00b234eb13e134a66b9a81 | [] | no_license | cvra/debra-old | 897eb245341c6f96ee8612a2578a2cc4217f9fb0 | f9e8a4492972f1a2d935038e5405360431e1369f | refs/heads/master | 2021-03-12T22:13:03.195619 | 2014-06-07T17:15:16 | 2014-06-07T17:15:16 | 13,085,575 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 991 | cpp | arm_cs_test.cpp | #include "CppUTest/TestHarness.h"
extern "C" {
#include "../arm_cs.h"
}
static int pwm_called;
static int get_encoder_called;
static void pwm(void *p, int32_t v)
{
pwm_called++;
}
static int32_t get_encoder(void *p)
{
get_encoder_called++;
return 0;
}
TEST_GROUP(ArmControlTestGroup)
{
arm_control_l... |
05115086ed198b7957ba2d5af2eb447bbe2af693 | af31bc46543cb027fa0371a5aaab41b94033d474 | /src/flappy_box/controller/paddle_logic.cpp | 410fb498a863a83fad9f7dbb8f6269dbc9923ae8 | [] | no_license | XanClic/hairy-wallhack | 76c51e1ae9496761d93dc9225a062d27660b981a | 4103d8a718e03435cba0d7b19000092bbd444b35 | refs/heads/master | 2021-01-24T16:09:37.828735 | 2016-03-16T04:16:45 | 2016-03-16T04:16:45 | 21,553,907 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,971 | cpp | paddle_logic.cpp | #include "math.hpp"
#include "flappy_box/controller/paddle_logic.hpp"
#include <GL/glut.h>
static const scalar_type player_accel_scale = 1000.f;
static const scalar_type accel_damping = .0f;
static const scalar_type vlcty_damping = .01f;
using namespace controller;
using namespace flappy_box::controller;
PaddleL... |
dd2ad2bb8555fe62bcb7b9dea2e512524c20efaa | 772d932a0e5f6849227a38cf4b154fdc21741c6b | /CPP_Joc_Windows_Android/SH_Client_Win_Cpp_Cmake/App/src/graphics/visual2d/drawable/ListEntry2D.cpp | 4a317621f73fb3b5e2e43116df4584710102c3d8 | [] | no_license | AdrianNostromo/CodeSamples | 1a7b30fb6874f2059b7d03951dfe529f2464a3c0 | a0307a4b896ba722dd520f49d74c0f08c0e0042c | refs/heads/main | 2023-02-16T04:18:32.176006 | 2021-01-11T17:47:45 | 2021-01-11T17:47:45 | 328,739,437 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,629 | cpp | ListEntry2D.cpp | #include "ListEntry2D.h"
using namespace base;
ListEntry2D::ListEntry2D(
IAppMetrics* appMetrics, IAppAssets* appAssets, ArrayList<MenuItemConfig*>* viewItemConfigs, ArrayList<StateChangeDurations*>* viewEaseDurationsSList, List2D* list,
int entryUid)
: super(appMetrics, appAssets, viewItemConfigs, viewEaseDuratio... |
b1062fbb71e86e7cc45f842bccfce0b94b79cde9 | 998c67cc02748f338a801a1d76147512210a9cdf | /src/nmea_parser.h | 620d164652fd0a30c257ca3760576787134f2650 | [] | no_license | Azrrael-exe/nmea-string | 0cfe999a95910ea60beea2a7cd11c2dfbda21b43 | b0d9bfa26d35ae72bc6d1b767832b184c3c34363 | refs/heads/master | 2020-03-22T00:45:16.842481 | 2018-07-16T15:50:14 | 2018-07-16T15:50:14 | 139,263,341 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,567 | h | nmea_parser.h | #ifndef nmea_parser_h
#define nmea_parser_h
#include <Arduino.h>
class NMEA {
public:
NMEA();
void parse(char c);
bool isReady();
uint8_t fields();
String getStrin();
String getField(uint8_t i);
void setField(uint8_t i, String val);
String getString();
String getRaw();
String getPayload(uint8_t i)... |
12c4222546fec0e72dee37c985aa1177a9de3adf | 5a19f0763cccd59abe5617d842301e4e7fe25a13 | /source/housys/src/hou/sys/window_mode.cpp | 711e4f6d80aff79ec228e3b86f3fbe047eab6293 | [
"MIT"
] | permissive | DavideCorradiDev/houzi-game-engine | 6bfec0a8580ff4e33defaa30b1e5b490a4224fba | d704aa9c5b024300578aafe410b7299c4af4fcec | refs/heads/master | 2020-03-09T01:34:13.718230 | 2019-02-02T09:53:24 | 2019-02-02T09:53:24 | 128,518,126 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 643 | cpp | window_mode.cpp | // Houzi Game Engine
// Copyright (c) 2018 Davide Corradi
// Licensed under the MIT license.
#include "hou/sys/window_mode.hpp"
#include "hou/cor/core_functions.hpp"
#define WINDOW_MODE_CASE(ws, os) \
case window_mode::ws: ... |
c02c27952c78b7553ae82adc339cdcd9a39e31ae | 7e900cdc2d13b4555b6145023e5622052727c6de | /include/fps.hpp | 1bfed063f8b3d4278fab47c68ac9874b22052899 | [] | no_license | TartanLlama/choco-cheddar-charlie | 5b8f60423fe7b1f533b606edf2c171330dea2fee | 2993cb54cc3413cd0114d4a14dd665ec668fd4cd | refs/heads/master | 2021-05-08T18:14:08.727420 | 2018-02-04T09:31:03 | 2018-02-04T09:31:03 | 119,508,615 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 857 | hpp | fps.hpp | #ifndef CHOCO_FPS_HPP
#define CHOCO_FPS_HPP
#include "timer.hpp"
namespace choco {
class fps_capper {
public:
fps_capper() {
fps_timer.start();
}
~fps_capper() {
fps_timer.stop();
}
void start_frame() {
cap_timer.start();
}
void end_frame() {
auto frame_t... |
ae359f31718ce23f0be2c53e753388385cff4f60 | ee110713d2a41ba2958db6a50e2f6fcbedea6ff3 | /34-N皇后问题 II.cpp | 9e9872ce3fcdc8eecff233f3b57a186a42021de5 | [] | no_license | libaoquan95/LintCode | fe3e355bf0cecd828d045d45614dbafa8eb5ff2d | 403a5e1520706cb529e257a74f071658766a0aa7 | refs/heads/master | 2021-01-20T08:06:38.150185 | 2017-08-28T04:18:46 | 2017-08-28T04:18:46 | 90,096,556 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 2,071 | cpp | 34-N皇后问题 II.cpp | #include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
/**
* http://www.lintcode.com/zh-cn/problem/n-queens-ii/-34-N»ÊºóÎÊÌâ II
* Calculate the total number of distinct N-Queen solutions.
* @param n: The number of queens.
* @return: The total number of distinct solu... |
15549fc3d7533867150765279e9b63a11ee616f3 | 1d3ccb79ec8c3b6cab8aa6adaec3b6fe1c67d2f7 | /others/criticalPath.cpp | 6979ec167db9290cb8154fea490973f1b1f3ef69 | [] | no_license | pppyj/oj | 5a1eb25747155e5cb2112772eb67c49082a1e156 | 602d88d968500afd1a0cc5c06091cdf0901978cb | refs/heads/master | 2020-05-16T09:01:51.231814 | 2019-04-02T03:18:57 | 2019-04-02T03:18:57 | 182,933,627 | 1 | 0 | null | 2019-04-23T04:37:13 | 2019-04-23T04:37:13 | null | UTF-8 | C++ | false | false | 2,024 | cpp | criticalPath.cpp | #include <cstdio>
#include <vector>
#include <stack>
#include <queue>
#include <algorithm>
using namespace std;
const int MAXV = 101;
struct Edge {
int node, weight;
};
vector<Edge> G[MAXV];
int nodeNum, edgeNum, inDegree[MAXV], ve[MAXV], vl[MAXV];
stack<int> topOrder;
bool topologicalSort() {
queue<int> q;
... |
b1f138659865f280b233e0bb0003c360348d0331 | 629d68576825cddacc281bbb91208ca38faa3120 | /src/monitors/drone_monitor.cpp | 841dc6729124870bbc5d6ff588e74eaf1fd83b38 | [] | no_license | ronakbhag/drone_navigation | 10b69f763763a92fa728ddbedab0e803792d08bf | 3fd225a68be0b4da56cacdbc42b9541ee20c8f22 | refs/heads/main | 2023-02-01T01:39:41.110938 | 2020-12-19T17:19:45 | 2020-12-19T17:19:45 | 322,719,291 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,082 | cpp | drone_monitor.cpp | /********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2018, Airlitix
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
... |
db81ab25efe96170eed8f01873689f1737c1d2e2 | 3364697d5507fc120c38b491c88b7d454d039b20 | /FileSharing/serverfilethread.h | a975b4265dc58ca6935a7e38ab717b770bf84c5e | [] | no_license | andrei-datcu/-homework-IP-File-Sharing-QT | acd98bd120bdfc31c04b57d2c87d1040201e2e59 | 9216c41d2a5f44595234ec1b14a595acef6a8a51 | refs/heads/master | 2021-03-12T22:57:10.292830 | 2014-05-16T21:43:05 | 2014-05-16T21:43:05 | 30,667,296 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 469 | h | serverfilethread.h | #ifndef SERVERFILETHREAD_H
#define SERVERFILETHREAD_H
#include "ShareFileSystem.h"
#include <QObject>
#include <QThread>
#include <QTcpSocket>
class ServerFileThread : public QThread
{
Q_OBJECT
public:
ServerFileThread(QObject *parent, int socketDescriptor, ShareFileSystem &share);
~ServerFileThread();
void ru... |
d7370c9fc36b10f6fd4e9306ad8b3ecc302e84fe | 1e2c4f28970f7fc97909b21242a2b0492ae374ea | /Przychodnia/mainwindow.cpp | f31d40c01822c5f68e52dd069e4fda96eda24edf | [] | no_license | maciekgrzela/aplikacja-przychodnia-inzynieria-oprogramowania-2019 | 48f8945ad3ac52df00bb7def6da2e7649a0e2fb9 | 92cb815fb8d67f3f6039ef3979fb7408608bbb1a | refs/heads/main | 2023-08-17T14:19:35.861888 | 2021-09-27T16:14:24 | 2021-09-27T16:14:24 | 402,008,917 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 27,362 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent, bool czyManager, Osoba *zalogowany)
: QMainWindow(parent)
, ui(new Ui::MainWindow) {
ui->setupUi(this);
przychodnia = Przychodnia::getInstancja();
this->zalogowanoJakoManager = czyManager;
this->zalogowan... |
5bc79c6c96bd59264d904167319426afa2807742 | f2798d917b6798fc8e15fbb42bbcad265d0af121 | /src/animators/add.h | c150003c20dd20b4219d8bd3dfd7df46a18556d9 | [] | no_license | SinaC/OldRaytrace | 86c92fb1a3ba2e83434b8d524b839bc15e17d114 | 6a891d074735b3e5d45a8d26dba7d58503ba7ac0 | refs/heads/master | 2021-01-15T20:58:44.074128 | 2014-08-21T20:46:05 | 2014-08-21T20:46:05 | 23,202,321 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 824 | h | add.h | #ifndef __MOVER_ADD_H__
#define __MOVER_ADD_H__
#include <vector>
using namespace std;
#include "mover.h"
struct MoverAddV : public MoverVector {
//---- Datas
// TVector3* source1;
// TVector3* source2;
vector<TVector3*> source;
//---- Constructor
MoverAddV();
//---- Methods
virtual TVector3 vm... |
1fa57bfe18939517ecf5a7a92e15f1ac1d3d7b6e | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/git/gumtree/git_old_log_673.cpp | 4fe953588162c47df63432aa8485758f773295c4 | [] | 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 | 63 | cpp | git_old_log_673.cpp | print_ref_status('-', "[deleted]", ref, NULL, NULL, porcelain); |
2292c135291fac868742605f328c111110aec109 | 2a9390355be52ed3faf56d345846e564961980ea | /Sorts/Quicksort.cpp | 5e7490f53e0121a8b255c770ea6a91bd66c94910 | [] | no_license | Anshulguptag/Data-Structures | 44890900bc49f2a752a10528c6279d4aafc17bc5 | 3ca979418f30278a2227ac3eabbe6cf21ec6c3aa | refs/heads/master | 2020-03-22T01:56:48.315518 | 2018-08-10T06:06:04 | 2018-08-10T06:06:04 | 139,340,074 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 907 | cpp | Quicksort.cpp | #include<iostream>
using namespace std;
void swap(int *x, int *y)
{
int temp = *x;
*x = *y;
*y = temp;
}
int partition(int A[], int start, int end)
{
int pivot = A[end];
int pIndex = start;
for (int i=start;i<end;i++)
{
if(A[i]<=pivot)
{
swap(&A[i], &A[pIndex]);
pIn... |
7c8e9c95370f627f4061f908f8d180b972658fc0 | 1ac4a89c27e6eb0ab5b6c7ae06c52cd3e526d90b | /vikr-source/include/vikr/graphics/gl4/gl4_rendertarget.hpp | a4a241196c55c2e2c16f8866b3c28ab1d6feddf0 | [
"MIT"
] | permissive | lm165678/Vikr | e54d3cc6130238eb59d78f2813d3cda1a6440ef5 | 9ac78f9f47a2222dfd40700fcc48e88d898c086b | refs/heads/master | 2023-03-22T14:49:38.921733 | 2017-02-27T06:45:43 | 2017-02-27T06:45:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 199 | hpp | gl4_rendertarget.hpp | //
// Copyright (c) Mario Garcia, Under the MIT License.
//
#ifndef __VIKR_GL4_RENDERTARGET_HPP
#define __VIKR_GL4_RENDERTARGET_HPP
namespace vikr {
} // vikr
#endif // __VIKR_GL4_RENDERTARGET_HPP |
ce6d5203b2ab48db828e7d0b2fe0c21ff06f0f33 | 6d6903123f7f454f9bbca23ce60cc1b514f4ea0d | /newmenu.h | 0d2916cf6c411696d1b66b51c2fb7223087b02c0 | [] | no_license | Warp-ass/rts | 65d4c4f0e76eeb08b6d94cd77566bc4b0548e12b | 51a0d33d7229f4ecf83a363476a337cff67c72b3 | refs/heads/master | 2023-04-04T05:09:48.641277 | 2015-03-24T18:12:12 | 2015-03-24T18:12:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 383 | h | newmenu.h | /////////////////////////////////////////////////////////////////
//
//
// newmenu.h
//
//
//
/////////////////////////////////////////////////////////////////
#include "menue.h"
#define LANG_GERMAN 0
class NewGame {
private:
static void DrawBG(const short);
static void DrawButtons(... |
41a853caae5da0afdb5634661786a60a27eece8d | 5a268f13d9907b09755a0ec02064add58abfe7e3 | /source/engine/core/hesp/objects/commands/CmdBipedChangePosture.h | 661a97ccc472716e3a9ca63ca2871c30f92c7dfd | [] | no_license | MajickTek/hesperus2 | 3ba0f621373ed1e11bd01ea47628f980c5305897 | d3d7ba8e0f8b3b2f049b00a56f2788fa8fbf62d7 | refs/heads/master | 2021-09-10T11:38:10.211295 | 2018-03-25T19:54:14 | 2018-03-25T19:54:14 | 109,333,957 | 1 | 0 | null | 2017-11-03T00:44:39 | 2017-11-03T00:44:39 | null | UTF-8 | C++ | false | false | 695 | h | CmdBipedChangePosture.h | /***
* hesperus: CmdBipedChangePosture.h
* Copyright Stuart Golodetz, 2009. All rights reserved.
***/
#ifndef H_HESP_CMDBIPEDCHANGEPOSTURE
#define H_HESP_CMDBIPEDCHANGEPOSTURE
#include <hesp/objects/base/ObjectCommand.h>
namespace hesp {
class CmdBipedChangePosture : public ObjectCommand
{
//#####... |
5afee9a57dc177b6938c63e851ef3c2138d843b2 | 6992931f3cef1b2529b87656614f2448b3b75bf8 | /include/misc.hpp | a737a228c52671e81f2c3aabbde12e1632f2084c | [] | no_license | Clon1998/reactive-weather-flower-pot | a59ee08bc321dc1d5a7b6548c17236d8b14fb113 | edd6a4708a5ad90d5e0afdd6a46de88eed4f49ab | refs/heads/master | 2022-12-13T07:32:20.869452 | 2020-09-11T15:25:07 | 2020-09-11T15:25:07 | 294,729,808 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 241 | hpp | misc.hpp | #pragma once
#include <Arduino.h>
#include <FastLED.h>
void nblendU8TowardU8(uint8_t& cur, const uint8_t target, uint8_t amount);
CRGB fadeTowardColor(CRGB& cur, const CRGB& target, uint8_t amount);
CRGB colorFromTemperature(double temp); |
5066d3d649870692c36e2e7f255be92051b189db | 01167b048623538b7121c1dcacaf22fad82b5fb8 | /src/Switch.Core/src/Native/DirectoryApiGcc.cpp | ded4a7a73e42dc981d9bda4f6744c153fbfefef1 | [
"MIT"
] | permissive | victor-timoshin/Switch | 8cd250c55027f6c8ef3dd54822490411ffbe2453 | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | refs/heads/master | 2020-03-20T22:46:57.904445 | 2018-06-18T21:54:51 | 2018-06-18T21:54:51 | 137,815,096 | 5 | 3 | null | 2018-06-18T22:56:15 | 2018-06-18T22:56:15 | null | UTF-8 | C++ | false | false | 10,994 | cpp | DirectoryApiGcc.cpp | #if defined(__linux__) || defined(__APPLE__)
#include <dirent.h>
#include <unistd.h>
#include <sys/param.h>
#include <sys/stat.h>
#include "../../include/Switch/System/Collections/Generic/Dictionary.hpp"
#include "../../include/Switch/System/IO/FileAttributes.hpp"
#include "../../include/Switch/System/Environment.hpp... |
dd3e8f26ad7c78bba9ab8b6b28799122a15ba739 | c5117348d4e97cadc546d8573d84c8ab4eed4374 | /UnitsAndBuildings/UnitsAndBuildings/Buildings/Refueling.cpp | 6a6a2e881e0024f172877e8164d91a217d181eef | [] | no_license | litelawliet/JeuStrategie | 3dd5b9fc67a43dc6bdf2c09461af4f0b36229c37 | b3dcfe822c2b7039155b521a4f84c924106e2897 | refs/heads/master | 2021-08-30T22:44:34.464824 | 2017-12-19T17:05:13 | 2017-12-19T17:05:13 | 102,288,960 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 164 | cpp | Refueling.cpp | #include "Refueling.h"
Refueling::Refueling()
{
std::cout << "REFUELING constructor\n";
}
Refueling::~Refueling()
{
std::cout << "REFUELING destructor\n";
}
|
f452473a96d22f45773f7a7f756e7072db90c6c9 | 9a5257de7e51a879042fb63e16d3fba652e0aff7 | /src/util/Data.h | b94d1d40ddd39b07280e5b42fa01c22b324d03dd | [
"Apache-2.0"
] | permissive | openthread/wpantund | 146c0eb45ab56e85b15b4bbd9830192ad1d4fa9a | e2fd726982d626817b1db56c4361c1c5cb7d6201 | refs/heads/master | 2023-01-12T02:17:39.422466 | 2023-01-05T17:07:18 | 2023-01-05T20:46:41 | 60,717,054 | 176 | 130 | Apache-2.0 | 2023-01-05T20:46:42 | 2016-06-08T17:32:11 | C++ | UTF-8 | C++ | false | false | 1,668 | h | Data.h | /*
*
* Copyright (c) 2016 Nest Labs, 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 requi... |
e7c852e51d84b109f046e018fc64b865c805fe73 | edbcb5936d22469a1bf9bc30d47f5c12e3a9a83e | /otherExamples/Deque.cpp | 29223e1c681601605f830d7faffa0fb68b36ac10 | [] | no_license | takehiro-code/data-structures-algorithm | 6f056f5e0eeaa5b496d38a4bd083b0b714727bda | 7988ffb1049a683d7dfbb73b70966f45ca7a197a | refs/heads/main | 2023-08-08T03:49:37.702129 | 2021-09-22T00:41:36 | 2021-09-22T00:41:36 | 372,345,623 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,880 | cpp | Deque.cpp | #include "Deque.h"
#include <iostream>
using std::cout;
using std::endl;
// To be completed for exercise 4
// Helper method for Deque(Deque) and op=
// ONLY CHANGE BODY OF THESE TWO METHODS
void Deque::copyDeque(const Deque & dq)
{
// initialize n, front, back
n = dq.n;
front = nullptr;
back = nullptr;
copyNode(... |
e46412342361ab9dc842e07ce4cd1c2474b0eb7c | 002df2aecf110b3718c22aa99db1c74c8e66c0fe | /Problems/0378. Kth Smallest Element in a Sorted Matrix.cpp | 9e76a3bab32968449bfee21e89e341411780f3ef | [
"MIT"
] | permissive | KrKush23/LeetCode | ddde2f95ac745ed3751486439b81873069706ed7 | 2a87420a65347a34fba333d46e1aa6224c629b7a | refs/heads/master | 2023-08-23T16:28:02.852347 | 2021-10-12T20:52:02 | 2021-10-12T20:52:02 | 234,703,492 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,015 | cpp | 0378. Kth Smallest Element in a Sorted Matrix.cpp | #define vi vector<int>
class Solution {
int n;
int countLessEqual(vector<vector<int>>& matrix, int num){
int cnt{0};
for(auto row: matrix){
int l=0, r=n;
while(l < r){
int mid = l + (r-l)/2;
if(row[mid] <= num)
l = mid+... |
1a3215f3722cf7f6e5da68e4a1e6ff41752a0244 | 7f25ac596812ed201f289248de52d8d616d81b93 | /eggeek/codeforces/617D.cpp | 31ca7cfa764f01bbb26cc4fb4e40300fd11c4d46 | [] | no_license | AplusB/ACEveryDay | dc6ff890f9926d328b95ff536abf6510cef57eb7 | e958245213dcdba8c7134259a831bde8b3d511bb | refs/heads/master | 2021-01-23T22:15:34.946922 | 2018-04-07T01:45:20 | 2018-04-07T01:45:20 | 58,846,919 | 25 | 49 | null | 2016-07-14T10:38:25 | 2016-05-15T06:08:55 | C++ | UTF-8 | C++ | false | false | 1,090 | cpp | 617D.cpp | #include <bits/stdc++.h>
using namespace std;
#define ALL(a) (a).begin(), (a).end()
#define SZ(a) int((a).size())
#define LOWB(x) (x & (-x))
#define UNIQUE(a) sort(ALL(a)), (a).erase(unique(ALL(a)), (a).end())
#define INF 1e9
#define INF_LL 4e18
#define rep(i,a,b) for(__typeof(b) i=a; i<(b); ++i)
typedef long long ll;
... |
357a7e39e48b90a1e91357cf66322c4b49bf8d31 | 890a0d3b20266612ca6b728abe2a95c03a8a68de | /include/Controller/ZHM5CCTargetController.h | 8a90352cb4a05b5e0f62d262769a932c0cbc15b5 | [] | no_license | pavledev/HitmanAbsolutionSDK | 377c8a6cd1c115e2e446ddefbdbafc8cd03c05a2 | e3e4b09da4b9ae9b6cc6117be5ff24479fb6134e | refs/heads/main | 2022-07-28T11:57:34.434004 | 2021-09-29T11:48:32 | 2021-09-29T11:48:32 | 337,443,029 | 9 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,644 | h | ZHM5CCTargetController.h | #pragma once
#include "float4.h"
#include "SHM5CCTarget.h"
#include "ZHitman5.h"
#include "ZPF5Location.h"
class ZHM5CCTargetController
{
public:
struct STargetPositions
{
ECCTargetPos m_eFirstPos;
ECCTargetPos m_eSecondPos;
};
bool m_bAllowAttacks;
float4 m_vMainDir;
float4 m_vMainPos;
SHM5CCTarget m_Tar... |
9888b1ade44cfa8d72b6df34cec52f03dd080add | 6138481191cf879454ac593b81f5eec9fc16cdc2 | /pcommon/pcomn_safeptr.h | 5da615c3ef8a07db187da55ac3a1e6b80bf91e90 | [
"Zlib"
] | permissive | ymarkovitch/libpcomn | 0eb122863618e79353489d76190a0cd655858912 | baf5f87e107f8e9f2a6136e1e20c7b20e9f800b2 | refs/heads/master | 2022-05-24T00:13:04.212161 | 2022-05-23T14:38:29 | 2022-05-23T15:13:38 | 23,715,041 | 7 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 13,102 | h | pcomn_safeptr.h | /*-*- mode: c++; tab-width: 3; indent-tabs-mode: nil; c-file-style: "ellemtel"; c-file-offsets:((innamespace . 0)(inclass . ++)) -*-*/
#ifndef __PCOMN_SAFEPTR_H
#define __PCOMN_SAFEPTR_H
/*******************************************************************************
FILE : pcomn_safeptr.h
COPYRIGHT : ... |
111e714f371b2050c3752307862fe5f1ec984837 | 0dd9cf13c4a9e5f28ae5f36e512e86de335c26b4 | /Hackerrank_InterviewStreet/tower-breakers-again-1.cpp | df1f08d9d3bcdfd1043f1387db36139b06b93892 | [] | no_license | yular/CC--InterviewProblem | 908dfd6d538ccd405863c27c65c78379e91b9fd3 | c271ea63eda29575a7ed4a0bce3c0ed6f2af1410 | refs/heads/master | 2021-07-18T11:03:07.525048 | 2021-07-05T16:17:43 | 2021-07-05T16:17:43 | 17,499,294 | 37 | 13 | null | null | null | null | UTF-8 | C++ | false | false | 1,120 | cpp | tower-breakers-again-1.cpp | /*
*
* Tag: Game
* Time: O(sqrt(n))
* Space: O(sqrt(n))
*/
#include <cmath>
#include <cstdio>
#include <cstring>
#include <vector>
#include <iostream>
#include <algorithm>
#include <set>
#include <unordered_set>
#include <unordered_map>
using namespace std;
const int N = 110;
const int M = 100100;
int sg[M], n, v;
int... |
efe6f35aa5131f346cedd412ec9055455bad53d5 | 9aa0ec9065485acab4fba5263b86366402a1a9b1 | /excercise/carry_num.cpp | 8a28b6b258d4afa0e415bfb33b507dcb5089f761 | [] | no_license | defuyun/ACM | 1883ad46f057b79f7fab2a7b659ab8320a1a9ca7 | b2879d10b1a292b593250d5b85fb791b17a676c4 | refs/heads/master | 2021-01-18T21:18:40.290945 | 2016-05-06T01:17:00 | 2016-05-06T01:17:00 | 33,590,907 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 480 | cpp | carry_num.cpp | #include<stdio.h>
#include<iostream>
// Q. calculate the number of times a carry in would occur for 2 number addition, the number would be < 9 digit
// max int 2,147,483,647. > 2,000,00,00 so using int to store is fine, input 0 0 means end of file
int main(){
int a,b,c = 0;
int ans = 0;
while(std::cin >> a >> b){
... |
805484e90d960edef742d34aa11a030e7f42cca2 | 602e0f4bae605f59d23688cab5ad10c21fc5a34f | /MyToolKit/Stock/SouhuStockPlates.cpp | a35e7debe172bf23a44e364c99fc89a60ece9215 | [] | no_license | yanbcxf/cpp | d7f26056d51f85254ae1dd2c4e8e459cfefb2fb6 | e059b02e7f1509918bbc346c555d42e8d06f4b8f | refs/heads/master | 2023-08-04T04:40:43.475657 | 2023-08-01T14:03:44 | 2023-08-01T14:03:44 | 172,408,660 | 8 | 5 | null | null | null | null | GB18030 | C++ | false | false | 16,690 | cpp | SouhuStockPlates.cpp | #include "StdAfx.h"
#include "SouhuStockPlates.h"
#include "UrlUtils.h"
CSouhuStockPlates::CSouhuStockPlates(void)
{
m_strEnglishName = "SouhuStockPlates";
}
CSouhuStockPlates::~CSouhuStockPlates(void)
{
m_vec_code.clear();
m_vec_name.clear();
m_vec_company_number.clear();
m_vec_total_volume.clear();
m_vec_to... |
19363867dc60a0b5f9feb708803b42c514c6d4aa | cd6271e74aa829d13d3438e1f57638acef741a54 | /include/Vec3.h | da50fc4c420db3cbbb4eb31f7657ffeb6ba52ee6 | [] | no_license | damiano-massarelli/dCloth | d96d0589add48f264fbca515bf04c22bce27df90 | c3fcf3ac4ff0e88ad06b64cde545fd3efedac265 | refs/heads/master | 2020-05-04T15:54:03.281599 | 2019-04-04T12:20:33 | 2019-04-04T12:20:33 | 179,260,599 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 447 | h | Vec3.h | #ifndef VEC3_H
#define VEC3_H
#include <ostream>
struct Vec3 {
float x = 0;
float y = 0;
float z = 0;
Vec3 operator-(const Vec3& v) const;
Vec3 operator+(const Vec3& v) const;
float length() const;
float distanceTo(const Vec3& v) const;
void normalize();
Vec3 operator*(float s... |
efc954349ed446369e8a57daee90b154735e8845 | a6e9463a5c48e0e7c4ac1da362845ba51af341fc | /include/coffee_machine/behavior_tree.h | e441187c884b62f29a7687e20f2cd9bd1f6c75ed | [] | no_license | easyrobotic/coffee_machine | 36ad8456e24b1c2a1b4f2e6b5502daa7681e65b3 | 018546abcbc6bfd2b8b9e77fe07978b125667a5a | refs/heads/master | 2023-02-15T10:11:31.073294 | 2021-01-09T16:38:21 | 2021-01-09T16:38:21 | 293,077,288 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 409 | h | behavior_tree.h |
#include "behaviortree_cpp_v3/behavior_tree.h"
#include "behaviortree_cpp_v3/bt_factory.h"
#include <iostream>
namespace CoffeMachineNS{
BT::NodeStatus IsMachineOpen();
BT::NodeStatus IsCleanCupReady();
class CoffeMachine
{
public:
CoffeMachine() : _opened(true)
{
}
BT::NodeStatu... |
9deb7462d5327cc7d48f525664fb3fd5bf81dbb6 | 1753460630f6ca3c3799ef9d8dc56bde6c621a34 | /msvc10/AddressListDialog.h | d1992b0edc62a6ae515ab95c78265bb62fd8e13e | [] | no_license | liugming531/CallingShow | 88e955b9fcc6209c0061b7b632bfa7429fd04c58 | a7e09a96e04d18bd23521e36b4adc5f4090ed32b | refs/heads/master | 2021-01-22T06:01:50.356499 | 2017-02-20T08:38:10 | 2017-02-20T08:38:10 | 81,728,532 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 617 | h | AddressListDialog.h | #pragma once
#include "afxcmn.h"
// CAddressListDialog 对话框
class CAddressListDialog : public CDialog
{
DECLARE_DYNAMIC(CAddressListDialog)
public:
CAddressListDialog(CWnd* pParent = NULL); // 标准构造函数
virtual ~CAddressListDialog();
// 对话框数据
enum { IDD = IDD_ADDRESSLIST_DIALOG };
void SetType(int type){ addr_... |
f198881269fa1ad852a9b7930a9da87ae2d42d0c | fca16f6b7838bd515de786cf6e8c01aee348c1f9 | /fps2015aels/uilibgp2015/OGL/Select/Option.h | 768fc2535ccb58202b5845ef31182031a48924de | [] | no_license | antoinechene/FPS-openGL | 0de726658ffa278289fd89c1410c490b3dad7f54 | c7b3cbca8c6dc4f190dc92a273fe1b8ed74b7900 | refs/heads/master | 2020-04-06T07:01:17.983451 | 2012-09-06T14:06:25 | 2012-09-06T14:06:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 719 | h | Option.h | #ifndef __OPTION_H__
#define __OPTION_H__
#include "../Drawable/Drawable.h"
#include "../Label/Label.h"
namespace ID
{
class Option : public Drawable
{
public:
Option(int value,
void* font, char* text,
Color* fg = (Color*)&COLOR_BLACK);
Option(const Option& button);
virtual ~Option... |
4d1f487c7dcb5b0b5947ba3c1aba983b7a19e153 | 24da289dc12ac1eb7d65f9573c31b3a3befa9d5f | /problemes/probleme321.cpp | 20e9e66bfc928dab79da351d958219d202aafa41 | [
"MIT"
] | permissive | ZongoForSpeed/ProjectEuler | a69cf3fda3d792d786ef1e11d9c3ed2fdf0eb047 | d2299f9f4ea0054160782d545e0abb7df35fa782 | refs/heads/master | 2023-09-04T07:59:59.037694 | 2023-08-31T22:40:48 | 2023-08-31T22:40:48 | 40,210,928 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,500 | cpp | probleme321.cpp | #include <numeric>
#include "problemes.h"
#include "utilitaires.h"
typedef unsigned long long nombre;
typedef std::vector<nombre> vecteur;
ENREGISTRER_PROBLEME(321, "Swapping Counters") {
// A horizontal row comprising of 2n + 1 squares has n red counters placed at one end and n blue counters at the
// other ... |
60fcfb2ee1e9689c450d9d703d5838331143e86d | a0e84f8285757e4f39a330b9f70ae9d50dce2495 | /LibCarla/source/carla/road/element/LaneMarking.cpp | 76714ae0a7096678a602836b7a73ab490bdebcbe | [
"MIT",
"CC-BY-4.0",
"LGPL-2.1-only"
] | permissive | germanros1987/carla | 61e4014a6e8818fef3783ed7aba0df6da8485f6c | b7d98000b7f75a9404788ebf6bfa8d7f00eef50d | refs/heads/master | 2020-03-18T22:53:04.725832 | 2020-01-09T18:09:34 | 2020-01-09T18:09:34 | 135,371,141 | 2 | 0 | MIT | 2019-02-26T02:42:42 | 2018-05-30T01:25:21 | C++ | UTF-8 | C++ | false | false | 2,714 | cpp | LaneMarking.cpp | // Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma
// de Barcelona (UAB).
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
#include "carla/road/element/LaneMarking.h"
#include "carla/Exception.h"
#include "carla/Strin... |
440d7d33c07e2be4233dcc38f36d1ef51b76280c | 3db9a02ffad9561136d017e2e84e3135f4f5de10 | /Pixeland/Spritesheet.cpp | 6fb8424418678a8c8e5895fcdd26767462e1b556 | [] | no_license | Solocat/Pixeland | 53eca10083a37f1dee3c5e3be0cfe51591641d06 | 3378450268917fc8899b5827cd924b8f3174ab32 | refs/heads/master | 2020-08-27T21:27:25.407489 | 2019-11-22T11:53:22 | 2019-11-22T11:53:22 | 217,492,505 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,046 | cpp | Spritesheet.cpp | #include "Spritesheet.h"
using namespace std;
Spritesheet::Spritesheet()
{
tileWidth = 0;
tileHeight = 0;
}
Spritesheet::Spritesheet(string _file, int _tileWidth, int _tileHeight, bool alpha)
{
makeSheet(_file, _tileWidth, _tileHeight, alpha);
}
Spritesheet::~Spritesheet()
{
}
void Spritesheet::makeSheet(strin... |
7bde19ecfed246f08c40cfd9237fe52cccce9334 | 5df35d81902a17e80424913186d1fd69939ab099 | /MonkeyCatch/制作環境/MonkeyCatch/scene.h | 3e3f508818fbdaed33808083f07c44f56b7fe215 | [] | no_license | takeuchiwataru/TakeuchiWataru | 3ec5646cfe8931a5be36f1e59e7bdd2f1d717ad4 | e8944112f299e77151e3538f785b2cea5f96d356 | refs/heads/master | 2020-05-17T07:35:38.500004 | 2019-10-29T06:50:16 | 2019-10-29T06:50:16 | 183,582,190 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 2,097 | h | scene.h | //=============================================================================
//
// オブジェクト処理 [scene.h]
// Author : 竹内亘
//
//=============================================================================
#ifndef _SCENE_H_
#define _SCENE_H_
#include "main.h"
//**********************************************************... |
27e8163f37f13d0c90a393966315f137a682f0cf | 4af76538543201ee3013151d3b70368c2e496366 | /primos gemelos.cpp | e70906594d1a8da0765e0b6a6cd7aaed528440ef | [] | no_license | Eder-Monsalve/Paradigmas-de-Programacion | 579c34f07e56249077cc5bb9bf723826b1eddc08 | 68d6f68eba7cb07c198c2940b059af48d9009ae8 | refs/heads/main | 2023-08-07T13:30:46.295139 | 2021-09-18T17:19:05 | 2021-09-18T17:19:05 | 346,846,398 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,700 | cpp | primos gemelos.cpp | /// Modulo para Primos Gemelos y Primos Felices
// Autor: Todos
// 24/07/2021
#include <math.h>
#include <iostream>
using namespace std;
void primosGemelos(void);
bool esPrimo(int numero);
int moduloDigitos(int n);
void primoFeliz(void);
int main()
{
cout<<"\n\n\t\t Primos Gemelos ";
primo... |
85afcb72e6ad2337617a179cbc84811b1f193089 | 0f399c573b88ef5ea3fffd3c475059ec694583bb | /18_4Sum.cpp | d0e9f3b2a5c307a80846d40db1068f9a360d4111 | [] | no_license | EasonQiu/LeetCode | 31075bc2ca28d23509e290b4935949500e1fec24 | 5be348261bb5f45e471de3f44dd2f57ec671ffcf | refs/heads/master | 2021-01-12T22:21:30.725971 | 2017-09-22T02:42:53 | 2017-09-22T02:42:53 | 68,566,605 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,348 | cpp | 18_4Sum.cpp | // Given an array S of n integers, are there elements a, b, c, and d in S
// such that a + b + c + d = target? Find all unique quadruplets in the array
// which gives the sum of target.
// Note: The solution set must not contain duplicate quadruplets.
// For example, given array S = [1, 0, -1, 0, -2, 2], and target ... |
0c5fba106d8a3d0581ac2d71f9d93aacfd982809 | e87e3f13fbc670e8cdb5a9dc0040237e145750a1 | /thread_local.hpp | af36a6ea6d895b7e2cd56d9a7b189a72843ac155 | [] | no_license | sleepiforest/ThreadLocal | fa1f8a0fb06a8afc9acee2cf755f13bf71300f0f | 37d82edc406171a3675cb3d58ec2f61fcd282190 | refs/heads/master | 2020-04-07T09:08:38.818126 | 2018-05-09T03:03:26 | 2018-05-09T03:03:26 | 124,199,197 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 898 | hpp | thread_local.hpp | #pragma once
#include <pthread.h>
#include <stdint.h>
#include <assert.h>
template<typename T>
class ThreadLocal
{
public:
ThreadLocal() {
pthread_key_create(&data, DeleteData);
}
~ThreadLocal()
{
pthread_key_delete(data);
}
template<typename... Args>
T & GetData(const Ar... |
7b13b5b4b4c45cc57e0e7c64ae12afa0d7eaf0da | 6e6ff309bb84e07b59523b6bf97c95357b704d3c | /assignment_package/src/scene/terrain.cpp | f81f15a51bf77a52baaaafde6065c457553668af | [] | no_license | tatran5/Mini-Minecraft | 1fe7babe82a925946866011e8778cdcbe5488012 | 98a0b8a257122e59f7d530a9fdf03c9ba8c158c1 | refs/heads/master | 2022-11-16T03:47:15.498170 | 2020-07-07T05:09:31 | 2020-07-07T05:09:31 | 277,722,151 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 90,109 | cpp | terrain.cpp | #include <scene/terrain.h>
#include <scene/cube.h>
#include <iostream>
#include <string>
#include <QThreadPool>
#include <scene/worker.h>
#include <glm/gtx/random.hpp>
Terrain::Terrain(OpenGLContext* context) : context(context), dimensions(64, 256, 64), numElementsAddedWithExpand(0)
{}
BlockType Terrain::getBlockAt(... |
79a6caa55dd759671fe71744d59a32e324e26ddc | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2700486_0/C++/kraskevich/main.cpp | 7c4b30c077675c42d2b97e00f65d7beb52973212 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,905 | cpp | main.cpp | #include <algorithm>
#include <iostream>
#include <string.h>
#include <sstream>
#include <fstream>
#include <cassert>
#include <cstdlib>
#include <complex>
#include <cctype>
#include <cstdio>
#include <vector>
#include <cmath>
#include <ctime>
#include <deque>
#include <queue>
#include <stack>
#include ... |
14382ae68e4dfa9ce636cec0c3b886365a489bc9 | d1dc30ab429eec50de00f6d41c81fa5a4c7301e0 | /threadserveur.h | 33f99e4f7faa0cab2065fb064df499b3f4478c41 | [] | no_license | lehouxouelleta/cll12-GestionnaireAgile-Serveur | 4a01d81cf15d5a29857ca402e42cf8d32304bd50 | bf376a0be056c8b7e493dc58429543076bf4fc19 | refs/heads/master | 2020-06-01T00:41:18.232169 | 2012-05-16T18:30:14 | 2012-05-16T18:30:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 783 | h | threadserveur.h | #ifndef THREADSERVEUR_H
#define THREADSERVEUR_H
#include <QThread>
#include "serveur.h"
class ThreadServeur : public QThread
{
Q_OBJECT
public:
explicit ThreadServeur(int Descriptor = 0);
QTcpSocket *socket;
int m_socketDescriptor;
int codeServeur;
QString nomClient;
QString codeClient;
... |
7f0e9b6174c53b9c3a682ff46c40755b14eab404 | 76b8c20de3c1eab0719e3ef84f04f8cd84105ba0 | /VirtualMemory.cpp | e80776f3a900aff547fae591b1b2a47aff74a04d | [] | no_license | ornokrean/OS_ex4 | e01d3a48ea7b65ae3a7eb6d76ef4f04d572c1d01 | 9b31766ca972f8fd84f894e3cc1ecf4a23ec5459 | refs/heads/master | 2020-05-30T12:01:11.171567 | 2019-05-29T16:30:01 | 2019-05-29T16:30:01 | 189,720,258 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,363 | cpp | VirtualMemory.cpp | #include "VirtualMemory.h"
#include "PhysicalMemory.h"
#include "string.h"
#include <math.h>
#include <stdio.h>
#include <iostream>
using namespace std;
void clearTable(uint64_t frameIndex)
{
for (uint64_t i = 0; i < PAGE_SIZE; ++i)
{
PMwrite(frameIndex * PAGE_SIZE + i, 0);
}
}
/*
* Fills an in... |
df0dd4fbaccf0ac5af16db2333d458476e353c0f | f9ef4458855e0e21c5bdd83fb706541cdced2e6f | /yquest_server/src/constants.h | f1e5d724e5dc3ba0895320d1828e8f40ce4015fa | [] | no_license | Chudovishee/yquest | 4e3778681d3017f2ea91af8444bf41153dc52a5d | 452c113c38a3ef9601ac35e0f735617e04c7bc4c | refs/heads/master | 2021-01-19T00:30:30.465816 | 2011-09-22T16:18:15 | 2011-09-22T16:18:15 | 2,416,637 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 934 | h | constants.h |
#ifndef CONSTANTS
#define CONSTANTS
#include <string>
//protocol
const int YQUEST_PROTOCOL = 1;
//commands
const int noneCommand = 0;
const int authCommand = 1;
const int protocolCommand = 2;
//errors
const int NOT_ERROR = 0;
const int PROTOCOL_ERROR = 1;
const int SERVER_CONFIG_ERROR = 5;
const int SE... |
976c0bd8c58dc3ffbe54dc88be1308e0b47cb341 | 71a6e955c82acf6a41d69dfd49dd053cd5000da9 | /src/mcckeyboardcmdrecord.h | 4898a5c06d39325f195ecdd108265a0f083e77bd | [] | no_license | iElaine/mcc_old | 9100073e11305b89202cfa98219bac2011f198dc | 7e2ca172bd57e27dc8c687e4105c34fc3f96942d | refs/heads/master | 2016-09-05T12:33:04.888487 | 2013-12-11T06:05:47 | 2013-12-11T06:05:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,281 | h | mcckeyboardcmdrecord.h | /**
* @file mcckeyboardcmdrecord.h
* @author TommyWang Email<xuchu1986@gmail.com>
* @brief
*/
#ifndef __MCCKEYBOARDCMDRECORD_H__
#define __MCCKEYBOARDCMDRECORD_H__
#include "mcckeyboard.h"
#include <cstdio>
#include <string.h>
#define EXT_NAME ".rec"
enum eKBCmdValue {
eKBValue_0 = 0,
eKBValue_1,
eKBValue_2,
... |
1931c2e57ddf82e51aacab7e75ccedf36b240146 | dd35b04e77ddf0e83e2eaf324b154cb5d56bfe86 | /CS441 (Multiple Lanugages)/CountPrimes.cpp | 642d9143a774c30ba180966e5761499c20622ef7 | [] | no_license | styro103/AcademicPrograms | 7afb3ab8d588c467a90cae38ef6c03fc53ddeb1b | 87cfc71903d750b7465d02d56c6accd6cf25450d | refs/heads/master | 2021-01-22T23:15:26.318873 | 2016-01-28T15:29:48 | 2016-01-28T15:29:48 | 20,346,260 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,375 | cpp | CountPrimes.cpp | /*
Shaun Mbateng
CS 441 - J. Sorenson
MPI Counting Primes
April 21, 2014
*/
#include <iostream>
#include <cmath>
#include "mpi.h"
using namespace std;
int main (int argc, char * argv[]);
int prime_number (int n, int id, int np);
int main (int argc, char * argv[])
{
int id; //For Rank
int n; //Number to Count to... |
32126a1ebea4b2ee53a475361933e5a7ba327e26 | a3a12224ce1742689598066bcfd039c9ce10e446 | /codeforces/268b.cpp | 71a61538541eb3b21ca3b3af3c06a33643d1cac2 | [] | no_license | sasankrajeev/Codeforces | 6c6e72f48fffb74f1bcc2ddf21eecd02c35e394e | ebb0a5e2f968cb3a74319a05d3381004d7e46cc2 | refs/heads/master | 2020-03-23T12:45:08.159911 | 2018-09-06T18:09:14 | 2018-09-06T18:09:14 | 141,579,485 | 0 | 0 | null | 2018-07-19T13:16:18 | 2018-07-19T12:55:19 | C++ | UTF-8 | C++ | false | false | 330 | cpp | 268b.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
int n,i,s=0,l=0,k=1;
cin >> n;
if(n==1){
cout<<1;
}else if(n==2){
cout<<3;
}else{
for(i=1;i<=n-2;i++){
s=s+(n-i-1)*(k)+(n-i);
l++;
k++;
}
cout<<s+n+1;
}
re... |
f7e79cd564c441341e7bdd498cd5b013d2c20c9b | ea30c450430c9bf032aa942c390da6da3d3aeec6 | /FoamTarget/LEDs.h | 2d5b39651c995eb4464d60a50e80361fba426704 | [
"Apache-2.0"
] | permissive | BenjaminPelletier/FoamTargets | 327b7e7214fd8d7e4cfda98998c7b19df65abd9d | 65b00792decefc3546139efb82d8115c1f7de6b5 | refs/heads/main | 2023-08-31T21:43:15.690733 | 2021-01-09T11:00:47 | 2021-01-09T11:04:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,684 | h | LEDs.h | #ifndef LEDs_h
#define LEDs_h
// TODO: https://github.com/FastLED/FastLED/issues/507 https://randomnerdtutorials.com/esp32-dual-core-arduino-ide/
struct TargetStyles {
typedef enum : uint8_t {
blank = 0,
blankHit,
red,
redHit,
blue,
blueHit,
green,
redSelected,
blueSelected,
... |
c373f95f4052b25a93dd6621cdafcb8c6fdee457 | b04636f31f716c21a6c0d77bc49b876bc496fff7 | /Olympiad/VOI/VO Online 2019/Jury files/Contestants/Blablabla/danang.cpp | 3d95d1b4501d16e69149de5bf758578d94225d99 | [] | no_license | khanhvu207/competitiveprogramming | 736b15d46a24b93829f47e5a7dbcf461f4c30e9e | ae104488ec605a3d197740a270058401bc9c83df | refs/heads/master | 2021-12-01T00:52:43.729734 | 2021-11-23T23:29:31 | 2021-11-23T23:29:31 | 158,355,181 | 19 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,564 | cpp | danang.cpp | #include <bits/stdc++.h>
using namespace std;
#define fi "danang.inp"
#define fo "danang.out"
#define oo 1e18
#define maxn 200005
#define tr(i,c) for (__typeof((c).begin()) i=(c).begin();i!=(c).end();i++)
#define For(i,a,b) for (int i=a;i<=b;i++)
typedef pair<int64_t,int64_t> II;
set <II> s;
vector <II> a[maxn];
int... |
eefe3c2cd2fa8529fac0d49db47f95f01f011dbd | 04d45ce6c8de7cff18aae9a7e3bde12501b7c3fa | /bakwaas.cpp | 0244b8dbfc58fed49192085a1fedc2067f115c70 | [] | no_license | anandheritage/codes | 7e7cb28476054f7bfe2cfc38b59d05c24ce6336a | a763d838fba222cfd7bdb128380347c89594c1f7 | refs/heads/master | 2020-06-02T20:03:34.892475 | 2014-06-22T06:20:23 | 2014-06-22T06:20:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,784 | cpp | bakwaas.cpp | #include<stdio.h>
#include<stdlib.h>
#include<algorithm>
using namespace std;
struct data
{
int value;
int index;
};
bool key(const data & i,const data & j) {
return (i.value > j.value);
}
struct data diff[1001];
int L[1001][1001],B[1001][1001],C[1001][1001];
int a[1001],rel[1001];
int main(void)
{
int ... |
0d26c448eade0221b9ed3ff02fb3b054e6667dc4 | 49346e3693803acf722b0edcb0aeac19cff60268 | /9_struct1/main.cpp | d3f8f90571083759a7ca601b2f8267b17eea04b5 | [] | no_license | Polina120A/AAP | 906469c0eb2002127116129bb776446265abdecb | 7162757bbc771bd09299a78d90432696cee48b35 | refs/heads/main | 2023-05-09T10:43:35.845427 | 2021-06-02T14:38:05 | 2021-06-02T14:38:05 | 342,288,865 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 551 | cpp | main.cpp | //Робот-автомобиль описывается как структура с полями: скорость, длительность движения и номер. Напишите функцию для расчёта пройденного расстояния.
#include <iostream>
#include <fstream>
struct Robot{
float S, t;
};
int main()
{
Robot a,b;
std::ifstream fin;
fin.open("data.txt");
f... |
018149cf4221c14410f5d478396081b9d56513ae | 46e423f7d8d9dc7b07c01297de43f1d3837d192f | /Source/chimera/Actor.cpp | 9930cd7667475b15c5efea959ee146d30ceca3af | [] | no_license | moresascha/Chimera | 34fd188c2e364ef9f484e532db194438eea4b9cd | e9cc2027e6866cdad471c3a8e6a30dd0614df1a9 | refs/heads/master | 2020-05-19T15:34:15.735279 | 2016-09-27T20:31:03 | 2016-09-27T20:31:03 | 11,747,790 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 636 | cpp | Actor.cpp | #include "Actor.h"
namespace chimera
{
Actor::Actor(ActorId id) : IActor(id)
{
std::stringstream ss;
ss << "Actor_";
ss << m_id;
SetName(ss.str());
}
/*VOID Actor::VReplaceComponent(std::unique_ptr<IActorComponent> pComponent)
{
auto it = m_components.fin... |
9cc624f7022559a6b00764e47ec6600967b5ae80 | f463b1ef906e2032ec7a2b0efa7ec45cc1d44bb7 | /roboteam_ai/src/bt/composites/MemSelector.cpp | 4f70e5e40f5c36f9f68a26244c0aca3e382e30c9 | [
"MIT"
] | permissive | ThijsLuttikhuis/roboteam_ai | bfbb3087c90d24d18bb7452f5e917a7fd9a2a76f | 9114cae354629333dd9842e22ed05186e89fb1cd | refs/heads/master | 2020-04-13T08:28:12.878606 | 2018-12-20T11:26:54 | 2018-12-20T11:26:54 | 163,082,080 | 0 | 0 | null | 2018-12-25T12:45:56 | 2018-12-25T12:45:55 | null | UTF-8 | C++ | false | false | 693 | cpp | MemSelector.cpp | #include "MemSelector.hpp"
namespace bt {
void MemSelector::initialize() {
index = 0;
}
Node::Status MemSelector::update() {
if (HasNoChildren()) {
return Status::Success;
}
// Keep going until a child behavior says it's running.
while (index < children.size()) {
auto &child = chi... |
57d1040e85f23b2703506fa71dee38e04861403c | bc52a14f02b9e4294121e092949233bc1d8b3f32 | /src/MacOS/MacHelper.hpp | d95bcee53b94ccb038c7a9cfe63d1bed73926dc0 | [] | no_license | krzystooof/IntersectionSimulator | 329c4674adb4fc256d22a4bb503ed12a4a7c89df | 97e88e171e3516e19794966c7af5cc843b1ae22a | refs/heads/master | 2020-06-13T06:09:45.018662 | 2019-07-01T16:36:44 | 2019-07-01T16:36:44 | 194,564,816 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 169 | hpp | MacHelper.hpp | #ifndef MACOS_HELPER_HPP
#define MACOS_HELPER_HPP
#include "CoreFoundation/CoreFoundation.h"
class MacHelper
{
public:
MacHelper();
};
#endif // MACOS_HELPER_HPP
|
4ab55b0cbe8f23039b928ff2c54cdd22f38ca1df | db96b049c8e27f723fcb2f3a99291e631f1a1801 | /src/sample/app/deployable_cgi/sample.cpp | 9a61dc5edb5fa2a30933d39d92b74f159670cdc2 | [] | no_license | Watch-Later/ncbi-cxx-toolkit-public | 1c3a2502b21c7c5cee2c20c39e37861351bd2c05 | 39eede0aea59742ca4d346a6411b709a8566b269 | refs/heads/master | 2023-08-15T14:54:41.973806 | 2021-10-04T04:03:02 | 2021-10-04T04:03:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,128 | cpp | sample.cpp | /* $Id$
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Government Work" under the
* terms of the United States Copyrig... |
40668c34b09178423c23776b33f715a8cf2a4b8e | c6fd85f8c23bac14e1db7e18bf5afd4a3feede20 | /arduino/hardware/arduino/cores/arduino/Serial.cpp | e55bbabfe32b2bee64f54d55ad4f476f2749b5d7 | [] | no_license | linksprite/ucos-ii-for-pcDuino | 3a49490b87aa49a2eb3b0b701623fe6a2ace2ebe | a78cccadcab1989b84d6ecfcf8524e7cfe85760b | refs/heads/master | 2016-09-11T04:17:31.002353 | 2014-02-19T18:01:10 | 2014-02-19T18:01:10 | 16,992,461 | 6 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 7,522 | cpp | Serial.cpp | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "Arduino.h"
#include "wiring_private.h"
#include <termios.h>
#include "Serial.h"
HwSerial Serial;
void serialEvent() __attribute__((weak));
#define serialEvent_implemented
void serialEvent()
{
Serial.process_recv();
}
void serialEventRun(void)
... |
5a1942b53ff327ea3c02d0405760f7909240b897 | d1c6b9e32cf783a058c7898084b9651cc8c6d4ae | /advancedCpp/Fractal/src/Fractal.cpp | 8e07cbc3d6cb71358074ae5253aff7ff1a2222f2 | [] | no_license | tomasarrufat/cppcourse | 81da5068c010d6b6054b0532e9bcb6c03a492be7 | 258e554cfc5f63c01435b59e96fcbd68e9adcea5 | refs/heads/master | 2021-06-04T21:48:53.059285 | 2019-09-08T12:42:36 | 2019-09-08T12:42:36 | 106,089,588 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,278 | cpp | Fractal.cpp | // Name : Fractal.cpp
#include <iostream>
#include <cstdint>
#include "FractalCreator.h"
using namespace std;
using namespace fgen;
int main()
{
int const WIDTH = 1960;
int const HEIGHT = 1080;
int const SUB = 10;
FractalCreator fractalCreator(WIDTH, HEIGHT);
//BitMap m_bitmap(m_width, m_he... |
005307ccec09fff59819bcf334a2d0ad1798d3a4 | 26d3464790b1233ade5c8d9db7ba16d950d06298 | /Source/SheepOutCplusplus/AI/BTT/BTTask_SetSheepState.h | fe3eb4ca4d11d99f817c354cf4f6ee128ac5237f | [] | no_license | hktari/sheepout | 3a25b960fc4f6b42d9ca71741313cec457787e89 | e8290d836f008d8e797194abb2f7cae3f1af5a07 | refs/heads/master | 2020-04-08T03:13:34.525758 | 2018-11-24T19:27:09 | 2018-11-24T19:27:09 | 158,967,069 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 555 | h | BTTask_SetSheepState.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "BehaviorTree/Tasks/BTTask_BlackboardBase.h"
#include "AI/AISheepController.h"
#include "BTTask_SetSheepState.generated.h"
/**
*
*/
UCLASS()
class SHEEPOUTCPLUSPLUS_API UBTTask_SetSheepSta... |
67271c854792dbce99025fdeb52d160f11f2a314 | d80e0c6c37955948dad1d912e7150a9101505572 | /zad03/main.cpp | 213771ebd3abfb8b8180d3d648aeba60af663e89 | [] | no_license | CrazyWorldPL/CPP | 111bf62fc2c236f45dab3f1deb946898c7c4d69c | 6bf624c9ef9317c5fc45fd77c0b3a3f874faf69d | refs/heads/main | 2023-04-24T13:55:38.354865 | 2021-05-13T14:46:50 | 2021-05-13T14:46:50 | 367,064,117 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 326 | cpp | main.cpp | #include <iostream>
#include <iomanip>
using namespace std;
double metry,milimetry;
int main() {
cout << "Podaj ilosc metrow: ";
cin >> metry;
milimetry = metry * 1000;
cout << "Ilosc milimetrow: ";
cout << fixed << showpoint;
cout << setprecision(10);
cout << milimetry << endl;
return... |
9a386c819b3d8076f7d6739f9fffe0076a73e378 | 54b4bba892e7e91537d8cd3e461f37c00155dafa | /part2/hashmap.h | af532b28844366f80b9d1995349c7b6a7f002cb3 | [] | no_license | ZiyiPeng/CS4500 | 3b733ac808998d37688063feeab958feb73ce6f2 | 312bb9f4078fffab29b0afb1e4174a31dfb1693f | refs/heads/master | 2022-04-02T01:57:25.182548 | 2020-01-24T21:53:55 | 2020-01-24T21:53:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,969 | h | hashmap.h | //
// Created by Jiawen Liu on 1/24/20.
//
#ifndef PART2_HASHMAP_H
#define PART2_HASHMAP_H
#endif //PART2_HASHMAP_H
#pragma once;
#include <cstring>
#include "object.h"
#include "hashnode.h"
class Hashmap : public Object {
private:
Hashnode** table;
int size;
int capacity;
public:
/**
* Defa... |
b4ee133c58232501c8b6f8021e38d0327a162bd4 | d9357508a1d203d63ce12c733037038d6bc210a1 | /Algorithm/Algorithm/2020/654_最大二叉树.cpp | 6ba18c9066f0c5b7ea13b54c4ac2a19ba540160d | [] | no_license | zhangzhex/leetcode | b6bad37bdecb68d97f58d49d935cf53ace21e0f9 | 9b47011413daa483eae4c4088d731e0dca9ed2aa | refs/heads/master | 2023-04-04T09:21:11.058656 | 2021-04-15T15:51:34 | 2021-04-15T15:51:34 | 268,554,951 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,032 | cpp | 654_最大二叉树.cpp | //
// 654_最大二叉树.cpp
// Algorithm
//
// Created by zack on 2020/5/26.
// Copyright © 2020 zack. All rights reserved.
//
#include <stdio.h>
#include <vector>
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
cla... |
9a23d5b983574795dbf5c7973b43da2cdf2137b5 | f7ec77f23c16b12e06835957aee51e86381005f1 | /airhockey/src/modifier/preprocessor.hpp | 2a6708bfb36161b5f579aaa8171298ddcc4a54db | [] | no_license | andwang1/aurora-representation-learning | ebc70cf9975098850ae954d230f7ae385fb43101 | 3f9a0af0a21a423119eac861865c1bd9587a4275 | refs/heads/master | 2023-07-16T07:04:04.597548 | 2021-09-02T17:19:11 | 2021-09-02T17:19:11 | 402,490,178 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,519 | hpp | preprocessor.hpp | //
// Created by Luca Grillotti on 31/10/2019.
//
#ifndef SFERES2_PREPROCESSOR_HPP
#define SFERES2_PREPROCESSOR_HPP
#include <iostream>
class RescaleFeature {
public:
RescaleFeature() : no_prep(true) {}
typedef Eigen::Matrix<float, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor> Mat;
void init() {
... |
5edbcc2acad6259453cfb5d9d82c59ecf44340d1 | a7764174fb0351ea666faa9f3b5dfe304390a011 | /src/AlienImage/AlienImage_SunRFAlienData.cxx | 3430ac3e513b55de406d78d2f419d58dcdb6e164 | [] | no_license | uel-dataexchange/Opencascade_uel | f7123943e9d8124f4fa67579e3cd3f85cfe52d91 | 06ec93d238d3e3ea2881ff44ba8c21cf870435cd | refs/heads/master | 2022-11-16T07:40:30.837854 | 2020-07-08T01:56:37 | 2020-07-08T01:56:37 | 276,290,778 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,983 | cxx | AlienImage_SunRFAlienData.cxx | #include <Aspect_GenericColorMap.hxx>
#include <Image_PseudoColorImage.hxx>
#include <AlienImage_MemoryOperations.hxx>
#include <AlienImage_SUNRFFormat.hxx>
#include <Image_Convertor.hxx>
#include <AlienImage_SunRFAlienData.ixx>
#include <Aspect_ColorMapEntry.hxx>
#include <Standard_Byte.hxx>
#include <Stan... |
691cd072fdd82ebbe9b100fcd1ec5d89b6a6b312 | 5be8b855fe4a8cf7236f29f8b55c940b672e0262 | /kenji/cpp/test/src/common/mnist/mnist_test.cpp | 76ddb794d3c9add7521b3270f00b6ed7e72c021e | [] | no_license | sh0nk/zero-deeplearning | 17cf44ba5566faea7c36d0cc83cb8c8d2c355001 | c6765b1d976a747fefd53f67fe69ccb4ce436e08 | refs/heads/master | 2021-01-01T17:06:40.511196 | 2017-11-25T12:12:24 | 2017-11-25T12:12:24 | 97,996,548 | 2 | 0 | null | 2017-11-25T04:51:07 | 2017-07-22T00:38:45 | C++ | UTF-8 | C++ | false | false | 3,534 | cpp | mnist_test.cpp | //
// Created by Kenji Nomura on 9/3/17.
//
#include "catch.hpp"
#include "common/mnist/Mnist.h"
const std::vector<std::uint8_t> IMAGE_0_THRESH_DATA =
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0... |
c3ac023356f6d18c643fe252c3887c3e0f717f58 | b7132b54f4a175675b49e7bf1d2b1c4125a017e6 | /CodeChef/DIV3/Maximum_Production.c++ | f0192b1d52ddfbf2e3d3ea3e445473a649051e1a | [] | no_license | vishalsinghhh/Competitive-Programming-CPP | b1587fff601dcc540a2d9b6f25d5ff919dc9b617 | 82da2c1dd4582c6fe6b720507d07197e80242a6c | refs/heads/main | 2023-06-13T02:20:34.540045 | 2021-07-11T17:10:21 | 2021-07-11T17:10:21 | 382,071,162 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,849 | Maximum_Production.c++ | /*
*****QUESTION 💯*********
Chefland has 7 days in a week. Chef is very conscious about his work done during the week.
There are two ways he can spend his energy during the week. The first way is to do x units of work every day and the second way is to do y (>x) units of work for the first d (<7) days and to do z (<... | |
fd4fad8c88a2d86964bcc15e83f00176b2b455d8 | 44d3e38803b1c154354dd17fa110325951e5d703 | /lib/algorithms/neimansolomon_hash_dyn_matching.h | 11b275555e629b418baac7098c3861f81cfed5c9 | [] | no_license | isaidhiptohop/dynamic_matching | 3ef4942f9e5f93ce1575525be9166088d1828376 | 85ddf0791b5d5d3abe42e7439a6f53a2c1198f68 | refs/heads/master | 2020-03-22T14:22:09.059942 | 2018-10-07T12:43:38 | 2018-10-07T12:43:38 | 140,174,065 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,090 | h | neimansolomon_hash_dyn_matching.h | /******************************************************************************
* neiman_solomon_dyn_matching.h
*
*
******************************************************************************
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public ... |
47faebcb9199e47b92ed5f3cee4ce52799f5c520 | 07bd6d166bfe69f62559d51476ac724c380f932b | /devel/include/webots_demo/speaker_is_sound_playing.h | 9f134864dcd33ea81f3fbf7cba96bafc358e18a4 | [] | no_license | Dangko/webots_differential_car | 0efa45e1d729a14839e6e318da64c7f8398edd17 | 188fe93c2fb8d2e681b617df78b93dcdf52e09a9 | refs/heads/master | 2023-06-02T16:40:58.472884 | 2021-06-14T09:19:58 | 2021-06-14T09:19:58 | 376,771,194 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,188 | h | speaker_is_sound_playing.h | // Generated by gencpp from file webots_demo/speaker_is_sound_playing.msg
// DO NOT EDIT!
#ifndef WEBOTS_DEMO_MESSAGE_SPEAKER_IS_SOUND_PLAYING_H
#define WEBOTS_DEMO_MESSAGE_SPEAKER_IS_SOUND_PLAYING_H
#include <ros/service_traits.h>
#include <webots_demo/speaker_is_sound_playingRequest.h>
#include <webots_demo/spea... |
3fcfe814723799d0c171db21e2c5226d19132211 | a772b49b7beb00cfe7d71a7bb67c3c26882eef5b | /USACO Gold/2015-2016/Jan. 2016/1.AngryCows/main.cpp | 7c5e65e2d6f1696aaffe2b1859cde8b63ea4b447 | [] | no_license | yao-alan/USACO | 8207e78f7a36be7f241011f54abea94965f7a3b2 | 3acefcf385cfd96345549046afebc792b4395ebb | refs/heads/master | 2023-06-10T14:16:18.652205 | 2021-07-02T18:49:08 | 2021-07-02T18:49:08 | 293,708,453 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,171 | cpp | main.cpp | #include <iostream>
#include <iomanip>
#include <cmath>
#include <cctype>
#include <cstdlib>
#include <vector>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <utility>
#include <cstring>
#include <string>
#include <stack>
#include <queue>
#include <algorithm>
#define V vector
... |
2f583eea8e4b05c452fe24f008d8cf3ae374d5b7 | 879fc5574b6dd2c683b4c12e39ba51e44e6dc942 | /src/lib/math/nbtheory.cpp | 07abfca952408cfde8d5721824743288b50e7530 | [
"MIT"
] | permissive | carlzhangweiwen/gazelle_mpc | a48072cf296dd106ee0dd8d010e728d579f2f522 | 45818ccf6375100a8fe2680f44f37d713380aa5c | refs/heads/master | 2020-09-24T13:38:33.186719 | 2019-12-06T02:15:48 | 2019-12-06T02:15:48 | 225,770,500 | 0 | 0 | MIT | 2019-12-04T03:25:50 | 2019-12-04T03:25:49 | null | UTF-8 | C++ | false | false | 17,253 | cpp | nbtheory.cpp | /**
* @file nbtheory.cpp This code provides number theory utilities.
* @author TPOC: palisade@njit.edu
*
* @copyright Copyright (c) 2017, New Jersey Institute of Technology (NJIT)
* All rights reserved.
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided ... |
ddb606c240248d45e236377f45e9095844f1866b | 332eec9d47742c7a251d6d50746e732a3016d08f | /tileMapGen.h | 986ec480603747519a783ee524e5722e393590e6 | [] | no_license | lolcube/magen | 74c1fb908ece277b4f576a76b3db6f9effe6ec47 | d4991bef22ed91f4d40d2d42396df0cfd9d4b022 | refs/heads/master | 2020-08-12T23:22:47.718750 | 2019-10-13T17:54:20 | 2019-10-13T17:54:20 | 214,863,150 | 1 | 1 | null | 2019-10-13T18:29:17 | 2019-10-13T17:28:39 | C | UTF-8 | C++ | false | false | 102 | h | tileMapGen.h | #pragma once
#include <SDL2/SDL.h>
#include <vector>
class MapGen{
public:
private:
};
|
7ef65021955050b5d461603c03d1e13d4491faeb | d12aa4b8087c23c976ff362ff10efcb921f426f8 | /tests/test-crypto/main.cpp | d5d19ecbc01c78fef8e9f6c976bed1a62d49dc3a | [] | no_license | bensoer/haanrad | 4abcf0d7fec80711d7050f3619578afda147c318 | 78591cbf390df207c5fc78c01149003c1dade354 | refs/heads/master | 2021-03-27T16:51:33.094715 | 2016-12-01T06:55:23 | 2016-12-01T06:55:23 | 72,496,695 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,725 | cpp | main.cpp | //
// Created by bensoer on 15/11/16.
//
#include <cstring>
#include <iostream>
#include "../../src/shared/HCrypto.h"
#include "../../src/shared/PacketIdentifier.h"
#include "../../src/shared/utils/Structures.h"
#include "../../src/shared/utils/Logger.h"
#include "../../src/shared/Authenticator.h"
#include <netinet/tc... |
039a9e8df85d08963248994fab3db33b12e90557 | ced0e0cc944fa994f468d37b288f6c4d98fbaa37 | /Vector/Vector.h | 01069eb7a101fbd698b79859bd8392d3d2d330f4 | [] | no_license | Vlad-git805/OOP-dz-10 | 6ee25ed3ec19e84fdd26c325bad94e0c1b7984b4 | 7fc4ebb72995ed5b3a0b2be1189e42e14c1dd6bd | refs/heads/master | 2022-10-22T16:09:39.563395 | 2020-06-10T14:12:33 | 2020-06-10T14:12:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 351 | h | Vector.h | #pragma once
#include <iostream>
#include "Point.h"
using namespace std;
class Vector
{
private:
Point* points;
int countPoints;
public:
Vector();
Vector(const Vector& other);
Vector(Vector&& other);
Vector& operator=(const Vector&other);
Vector& operator=(Vector&& other);
void Add_Point(const Point &p);
voi... |
9ffd529dbf2f64eef85f3d060f7896b2fba27100 | 732c7328e90690833bb82c5f2a253b36ad551701 | /structural/facade/main.cpp | d17ffd8a9dc7e76318f76a2674313b5013de8f42 | [] | no_license | VasylA/cpp_design_patterns | 89c5e0d5f943d1d95057437a03aea36fa086b8b9 | d122595dd8b8ee4d8410b90598834d11cf49688e | refs/heads/master | 2021-01-14T03:08:42.601473 | 2020-02-27T08:10:38 | 2020-02-27T08:10:38 | 242,581,238 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 498 | cpp | main.cpp | #include "skiresortfacade.h"
#include <iostream>
#include <memory>
int main()
{
std::unique_ptr<SkiResortFacade> skiResortFacade = std::make_unique<SkiResortFacade>();
auto restPrice = skiResortFacade->organizeRestWithOwnSkies(4);
std::cout << "Price for rest with own skies is " << restPrice << std::endl... |
202934a3b796b1ecf5f18425504b2b7e04173ae6 | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /Implementation/560.cpp | 85829dafd40519069ad0e1f11029bc40ad56fb52 | [] | no_license | thegamer1907/Code_Analysis | 0a2bb97a9fb5faf01d983c223d9715eb419b7519 | 48079e399321b585efc8a2c6a84c25e2e7a22a61 | refs/heads/master | 2020-05-27T01:20:55.921937 | 2019-11-20T11:15:11 | 2019-11-20T11:15:11 | 188,403,594 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 233 | cpp | 560.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
long int n,k,m;
cin>>n>>k;
vector<int> v(n);
for(int i=0;i<n;i++){
cin>>v[i];
}
int c=0;
for(int i=0;i<n;i++)
if(v[i]>=v[k-1] && v[i]>0)
c++;
cout<<c<<endl;
}
|
0c00dda2a25dd16ee38d976e4a8d02c4bdf93367 | 7f86d6422cb359aa46842d5e6c22385d4a0ff4ad | /source/button.cpp | 92e1d1547e96ac1ed8862edab3078a6287f4bfbf | [] | no_license | tomgalvin594/Struct | e6d0b65a710ba5ded170fbff030e1407d1c55183 | 1b0dfd212f9a549884e1a59ba3c8e1aefb90f3aa | refs/heads/master | 2021-01-10T02:42:02.877494 | 2015-05-24T01:15:38 | 2015-05-24T01:15:38 | 36,150,161 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,018 | cpp | button.cpp | #include "button.hpp"
#include <iostream>
Button::Button( sf::Vector2f position,
sf::Vector2f scale,
sf::Sprite sprite,
sf::Font font,
unsigned int char_size,
std::string label)
{
m_position = position;
m_... |
e226117c4457e669ae1ffadd7938f97e5a3b7850 | 11f16ce13863efdfe9bbcd00286c53eacf6253b9 | /YTPolymorphism.cpp | 265c0c8c0b2e4d8439c563f4e722b246a4304b9f | [] | no_license | SCrawCode/C-OOP-Practice | a8b4a543d5f06a7aae8780c3850f86a6ce6814d6 | e171d28bf279a904d941d3c303e185bf8608ee65 | refs/heads/main | 2023-04-14T11:15:01.183323 | 2021-04-22T14:48:37 | 2021-04-22T14:48:37 | 360,553,040 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,700 | cpp | YTPolymorphism.cpp | //Practice with Classes (User-Defined Data type)
//Make a class for YoutTube channels with channel stats as attributes
//Utilize Constructors to simplify code for multiple instances of class
//A constructor is a method used to create an object of a specific class
//Utilize Encapsulation to prevent user from altering cl... |
1ccacf4e4c8627937be3434dad23109ed629dee7 | cc355f1234133148dbb1e11be4df53351fe82da6 | /src/bridge.h | 5a0c1872a5a6d17041fbc54d05fedbedf225e7b3 | [] | no_license | drkzrg/hdspmidi | 0a2b0c60bce573c70b538b2c49441d9915d8c616 | 9a705d6053e0e2c8ee950887361ca901c105fd55 | refs/heads/master | 2023-03-17T09:55:56.436178 | 2012-12-23T23:42:30 | 2012-12-23T23:42:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 636 | h | bridge.h | #ifndef BRIDGE_H
#define BRIDGE_H
#include "HDSPMixerCard.h"
#include "Channel.h"
#include "midicontroller.h"
#include "relay.h"
class Bridge
{
public:
Bridge();
~Bridge();
int vegas;
void restore(void);
void send_control(int dst, struct channel ch, int left_value, int right_value);
void contr... |
b249f8312cc1da4a4b56c42b22cba477beabad26 | 1055f8df38e7734b29dea44646d18ec2e731b46b | /coj/COJ-3286.cpp | 9bd0ce41e6f719100428dcd3082fa41a55e80920 | [] | no_license | Kireck211/competitive | 60115e92ae15be6834a028c5256cabf548d64bef | c21dfdb788f604716f25c1b26c9e3552d4a99110 | refs/heads/master | 2021-03-19T06:02:54.407717 | 2018-09-26T15:57:36 | 2018-09-26T15:57:36 | 105,324,112 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 604 | cpp | COJ-3286.cpp | #include <iostream>
using namespace std;
int disjoints = 0;
int find(int parent[], int i)
{
return (parent[i] == i? i : parent[i] = find(parent, parent[i]));
}
void _union(int parent[], int i, int j)
{
int x = find(parent, i);
int y = find(parent, j);
if(x != y)
disjoints--;
parent[y] = x;
}
int main()
{
... |
f966ee1a1e4feca6acc2396e23dd63515c5aa4a9 | 51ef1af1e47928bb4eedde22e3f614efd89414c6 | /Intellum/DXSystem.h | a7e32abc9bc017ab9bd68ed3e3e3e6b407a63bc8 | [] | no_license | Flave229/Intellum | b0e22d15fe9e83a94e4f29226489554929bdff08 | f43fd96069aae1da9b7a0993dd15aa6105991237 | refs/heads/master | 2021-07-07T07:09:51.509705 | 2017-10-02T15:38:20 | 2017-10-02T15:38:20 | 65,088,300 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 999 | h | DXSystem.h | #ifndef _SYSTEM_H_
#define _SYSTEM_H_
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include "Engine/Graphics/Graphics.h"
#include "Engine/GameTimer.h"
#include "Engine/SystemMetrics/FramesPerSecond.h"
#include "Engine/SystemMetrics/Cpu.h"
#include "engine/Input/Input.h"
class DXSystem
{
private:
LPCWSTR _applica... |
84d1e0f7555dd529bdc865cc6f6579b7f7514490 | 1b49fac0f0ea40589ecd29d04a6f1ca4d6c3a7eb | /lib/actions/ferm/invert/qop_mg/syssolver_linop_qop_mg_w.cc | c7c89967e74370b9ef250df2f308dfb8c9466548 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | orginos/chroma | cc22c9854e2a0db2d4f17488904671015196c36f | 57ba8783393dd7668c6a45e7f4c9919280c29cd3 | refs/heads/master | 2021-01-16T21:38:32.182916 | 2015-10-18T16:03:54 | 2015-10-18T16:03:54 | 24,952,861 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 10,456 | cc | syssolver_linop_qop_mg_w.cc | // $Id: syssolver_linop_qdp_mg.cc, v1.0 2013-06-20 22:12 sdcohen $
/*! \file
* \brief Make contact with the QDP clover multigrid solver, transfer
* the gauge field, generate the coarse grids, solve systems
*/
#include "state.h"
#include "meas/inline/io/named_objmap.h"
#include "actions/ferm/invert/syssolver... |
56ea42d69ce54872fc972dfebd26957ec502454e | 3f5179150584730cc0ee2ddc8f232b5e372d84aa | /Source/ProjectR/Private/Jet/MotorDriveComponent.cpp | 0ccbc43ba653050ae57b15809fd0242afafd3b07 | [] | no_license | poettlr/ProjectR | 4e8963c006bc0e5a2f7ffe72b89e5f65355d5dde | 1b92b4c034c36f0cbb0ef8c2e02972dd86a3e1e1 | refs/heads/master | 2023-06-16T02:37:39.782708 | 2021-06-29T00:07:41 | 2021-06-29T00:07:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,999 | cpp | MotorDriveComponent.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "Jet/MotorDriveComponent.h"
#include "Jet/Jet.h"
// Sets default values for this component's properties
UMotorDriveComponent::UMotorDriveComponent()
{
PrimaryComponentTick.bCanEverTick = false;
jet = Cast<AJet, AActor>(GetOwner... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.