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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1c20a1b5007df649f6b3de62c8892d2122f581cc | c45ed46065d8b78dac0dd7df1c95b944f34d1033 | /TC-SRM-571-div1-500/Remilia.cpp | e8f0215dde33d6136d739b5115232dc3a1fd76ef | [] | no_license | yzq986/cntt2016-hw1 | ed65a6b7ad3dfe86a4ff01df05b8fc4b7329685e | 12e799467888a0b3c99ae117cce84e8842d92337 | refs/heads/master | 2021-01-17T11:27:32.270012 | 2017-01-26T03:23:22 | 2017-01-26T03:23:22 | 84,036,200 | 0 | 0 | null | 2017-03-06T06:04:12 | 2017-03-06T06:04:12 | null | UTF-8 | C++ | false | false | 1,682 | cpp | Remilia.cpp | #include <bits/stdc++.h>
#define rep(x,a,b) for (int x=a;x<=(int)b;x++)
#define drp(x,a,b) for (int x=a;x>=(int)b;x--)
#define cross(x,a) for (int x=hd[a];~x;x=nx[x])
#define ll long long
#define inf (1<<29)
#define PII pair<int,int>
#define PDD pair<double,double>
#define mk(a,b) make_pair(a,b)
#define fs first
#defi... |
beec0cbb3afc6b5ab6792a363e69cf0f4b7cccf9 | 19064bfde841ffc82d655d169ecdf643762b7ac2 | /src/curse_api.h | b2e64162b229b65c034e08b4e7a1d21edd784063 | [
"MIT"
] | permissive | modeco80/cursedl | d606566b95a7df44cfe50aac442e8132ea0ca155 | b985bbde818f5fc9d5e8fd453afa542222f3a047 | refs/heads/master | 2020-08-07T02:35:57.195853 | 2019-10-08T13:33:35 | 2019-10-08T13:33:35 | 213,263,479 | 2 | 0 | null | 2019-10-07T21:09:13 | 2019-10-07T00:08:24 | JavaScript | UTF-8 | C++ | false | false | 660 | h | curse_api.h | #pragma once
#include "common.h"
#include <nlohmann/json.hpp>
namespace cursedl {
namespace api {
// generic error
struct Error: public std::exception {
std::string what_;
Error(std::string what) : what_(what) {}
const char* what() throw() {
return what_.c_str();
... |
d261331dc32dcfb3e41d0c800d33fb45fdb6575c | 1b8ae41e4e43429ba6c21b49fdfa7312ddee23b3 | /dp_labs_and_solutions/dp_labs_and_solutions/dp_cpp_labs_and_solutions/command/memento_solution/report_position_command.cpp | 131d573ec8d52dbaf605f57b6124a3ddbbbdf076 | [] | no_license | Technipire/Cpp | 9f8476a944497b82ce425a3d9191acb74337a129 | 78d4c89385216865b9a9f475055fca1ff600d2a4 | refs/heads/master | 2021-05-01T16:31:45.977554 | 2017-04-03T00:02:01 | 2017-04-03T00:02:01 | 32,282,437 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 351 | cpp | report_position_command.cpp | // report_position_command.cpp
#include "driver.h"
#include "report_position_command.h"
report_position_command::report_position_command(driver * a_driver)
: simple_driver_command(a_driver)
{
}
void report_position_command::execute()
{
get_driver()->report_position();
}
void report_position_command::undo()
{
get_... |
d2e852d209d3b512858d6ecd4f9663575928c728 | c17184eaeffe1427a9c05f57fb3fb48f6821e1cd | /functions/dlg/dialog.hpp | 3812f7d01b0e5a3cda57cd10c34db0c4439e39b4 | [] | no_license | FryCodar/Operation_Final_Strike.Tanoa | 423605d495c78dae86f060ce5c023219bad4b0c7 | a70ab876a601426a14946b3dd4cd8bb7ba1c48b5 | refs/heads/master | 2020-03-23T08:24:34.416443 | 2018-11-07T21:11:25 | 2018-11-07T21:11:25 | 141,325,108 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,589 | hpp | dialog.hpp | #include "define.hpp"
class MSOT_Tactic_Table
{
idd = 36642;
movingEnable = 0;
enableSimulation = true;
onLoad = "uiNamespace setVariable ['msot_dlg',[36642]];[] spawn MSOT_dlg_fnc_setDlgCtrl;";
onUnload = "uiNamespace setVariable ['msot_dlg',[]];";
class controls
{
class DIARSC(Tactic_Tab,Picture): DIARSC(... |
57c6b7f3753bc5b43fbb2be7ed101b5767ee6874 | f2d5026f828f24e09ad91954599252295133ee14 | /src/test.cpp | 8bb4f34c2b7a5afc7277dfaa7fdf6eca71cba46f | [
"BSD-3-Clause"
] | permissive | nilsbore/roswasm | 391ae71f6f6895c8533127762baac32906c416ea | fe3d9e370dd4eae7b71717f9d0df2f0e84040b57 | refs/heads/master | 2021-04-18T09:43:34.285226 | 2020-06-06T11:30:47 | 2020-06-06T11:30:47 | 249,531,217 | 0 | 0 | null | 2020-03-23T20:40:20 | 2020-03-23T19:59:42 | C++ | UTF-8 | C++ | false | false | 1,557 | cpp | test.cpp | #include <stdio.h>
#include <emscripten.h>
#include <iostream>
#include <roswasm/roswasm.h>
#include <std_msgs/String.h>
#include <sensor_msgs/NavSatFix.h>
#include <rosapi/TopicType.h>
roswasm::NodeHandle* nh;
roswasm::Subscriber* string_sub;
roswasm::Subscriber* gps_sub;
roswasm::Publisher* string_pub;
roswasm::S... |
91539a6850ec44dec76f15a0bf7f730987d097b1 | 1ab20e81e7252268ccb0ed61efa1b502c96b739e | /Source/DirectX/DirectInput.h | 8a0d56548a79794c8f00f6fa0a5cf4a41a354366 | [] | no_license | BayaSea0907/MyShootingGame | 44af0907d4650f7aed81bc5e0bce049c78dcef4e | e288385b48ed443c1d43fd9bbce5c6eed2ad32d5 | refs/heads/master | 2020-12-06T05:41:17.165750 | 2020-01-09T14:29:23 | 2020-01-09T14:29:23 | 232,361,791 | 0 | 0 | null | 2020-01-09T14:29:24 | 2020-01-07T16:02:44 | C++ | SHIFT_JIS | C++ | false | false | 1,904 | h | DirectInput.h | //**********************************************************
// ファイル名 :DirectInput.h
//**********************************************************
#pragma once
#pragma warning(disable:4996)
#define DIRECTINPUT_VERSION 0x0800
#define INPUT_QUANTITY_RATE 150
#define DI_KEYBOARD_BUFFER_SIZE 256
#define DI_JOYSTICK1_BUTTO... |
619893bbf067030154ace690894cb612c0085db5 | 48988ece950f9fc9b1d94e707b816f867e706983 | /Data/data.cpp | 2994cf21c7ed16b5211c7b51513333ddf8ed7fd1 | [] | no_license | wallaceviniciusdev/Roteiro-1 | 4c5b4648f904c2b2157503fe897095ffae790cce | ec020fa14aba441fb0356bb525829b3c3ce9300a | refs/heads/master | 2020-04-11T04:39:22.361345 | 2019-02-20T18:50:19 | 2019-02-20T18:50:19 | 161,520,451 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,503 | cpp | data.cpp | #include <iostream>
#include "data.h"
Data::Data(){
this->dia = 0;
this->mes = 0;
this->ano = 0;
}
void Data::setDia(int dia){
if(this->dia <= 31){
this->dia = dia;
}else{
cout << "Dia invalido" << endl;
}
}
void Data::setMes(int mes){
if(this->mes <= 12 && this>mes >= 1){
this->mes = mes;
}else{
cou... |
603f79de829909e2bdf55945233ef2ed8230f7f1 | f6d089cbcd7d419db79e44e071741dde273d9949 | /src/vm/vm.cpp | c1b39fb132b591f2fe2693b709e90068738b0fcd | [
"MIT"
] | permissive | BastianBlokland/novus | 19df4ef6c59ebb337dfe9a6632b092596e047d46 | f08f068a0aad5c3c18fcef3941ceb20e91cc7975 | refs/heads/master | 2022-07-27T17:06:54.608974 | 2022-07-08T12:55:36 | 2022-07-08T12:55:36 | 211,661,903 | 18 | 1 | MIT | 2022-07-08T12:55:37 | 2019-09-29T12:46:35 | C++ | UTF-8 | C++ | false | false | 4,790 | cpp | vm.cpp | #include "vm/vm.hpp"
#include "internal/executor.hpp"
#include "internal/executor_registry.hpp"
#include "internal/interupt.hpp"
#include "internal/os_include.hpp"
#include "internal/platform_utilities.hpp"
#include "internal/ref_allocator.hpp"
#include "vm/platform_interface.hpp"
#include <csignal>
namespace vm {
#i... |
8e893b97b27c5727612fdf483e34387cfc7ce14b | dad1f4d9d571fdb3dd72b501ce0ba65c8c428363 | /Leetcode/adhoc/280. Wiggle Sort.cpp | 60892e2fe7270d19be29ae7c27b9bb16e188d363 | [] | no_license | quangh33/Coding-Interview-Practice | bb1e9260976c0c06808e61c879aae02116b86303 | 675460410770239c8618528e65865a4bfc76748d | refs/heads/master | 2021-07-13T10:27:28.940082 | 2020-09-29T05:08:37 | 2020-09-29T05:08:37 | 201,436,213 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 476 | cpp | 280. Wiggle Sort.cpp | //
// Created by Hoang, Quang on 2019-12-15.
//
class Solution {
public:
void wiggleSort(vector<int> &nums) {
bool less = true;
if (nums.size() == 0) return;
for (int i = 0; i < nums.size() - 1; i++) {
if (less) {
if (nums[i] > nums[i + 1]) swap(nums[i], nums[i +... |
a63d70ebad297dd799e2f1bfa850196e10f05c62 | 4b591de69213e0194e9d6018d0158e98bf26e2bc | /Saber-Plus/spdiagnosticsissuefactory.cpp | 77b0136614556b69751f6129aafa7dcf0cbd8839 | [
"MIT"
] | permissive | sratix/Saber-Plus | dd28a265a3cd3e7b86b0b0f9b3ff1d6bb0c42220 | 1c81a3e667a81e9bb937b2af96047a5cb776cb71 | refs/heads/master | 2020-05-18T20:39:56.689711 | 2019-04-17T05:51:08 | 2019-04-17T05:51:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,812 | cpp | spdiagnosticsissuefactory.cpp | #include "spdiagnosticsissuefactory.h"
#include <string>
#include <iostream>
#include "spdiagnosticissuedataunusedclass.h"
#include <QRegularExpression>
SPDiagnosticsIssueFactory::SPDiagnosticsIssueFactory()
{
}
shared_ptr<SPDiagnosticIssue> SPDiagnosticsIssueFactory::issue(shared_ptr<string>diagnosticIssueMessag... |
98a559922beeb825ec799275ab4371c92fc3f783 | 68b7091739c6e572691026bfbd23997795767b37 | /src/xtion.cpp | 25624e4a0bfaba566adfaa7527cd649a36a3efca | [
"MIT"
] | permissive | caomw/RovinaSemanticSegmentation | 19a96706a432c98cd69b6595fa0e3d84ada7ab43 | 7fb430d65954c8dfbe22eb827183b97c9d736414 | refs/heads/master | 2020-12-25T23:36:06.768877 | 2016-08-24T16:29:29 | 2016-08-24T16:29:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,014 | cpp | xtion.cpp | // local includes
#include "xtion.h"
// Ros includes
#include <cv_bridge/cv_bridge.h>
#include <ros/ros.h>
#include <algorithm>
Xtion::Xtion(std::string name): _name(name){
_has_depth = false;
_has_color = false;
_has_calibration = false;
_last_id = 0;
_frame_id_aquired = false;
}
std::string Xti... |
056b11ee853416ee261c7a506ebd22ad32aab182 | e6ff3e907305b22a5dfe553a3a85a752aa651f0d | /PDF++/pdfException.h | 06ca214fb6f04efa60b6a5b74f2fcb6ddd0f7196 | [
"MIT"
] | permissive | GlenUnderwood/PdfCPP | 02a4020a56693e93cb748147698568eba80fe5d9 | 4a762a19145ef836aa8472907c5c74df559825e2 | refs/heads/master | 2021-01-11T22:16:04.123039 | 2017-03-07T20:02:54 | 2017-03-07T20:02:54 | 78,941,766 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,481 | h | pdfException.h | #pragma once
#include <string>
#include <exception>
#include "Serializable.h"
#include "ExportDef.h"
#ifdef _DEBUG
#include <iostream>
#endif
namespace Pdf {
namespace Exception {
//
//typedef std::string PDF_API CMyString;
//
//class PDF_API CMyStrClass : public std::string
//{
//public:
//};
///////////////////////... |
fc6c37da618f7964fe77c2cf8fccd2946b0d99ab | cc13bdb0f445b8acf6bec24946fcfb5e854989b6 | /Pods/gRPC-Core/src/core/ext/transport/chttp2/transport/hpack_encoder.cc | 16a46953cfc967a6a9673ab858c781136ba1aaba | [
"MIT",
"Apache-2.0"
] | permissive | devMEremenko/XcodeBenchmark | 59eaf0f7d6cdaead6338511431489d9d2bf0bbb5 | 3aaaa6aa4400a20513dd4b6fdb372c48b8c9e772 | refs/heads/master | 2023-09-04T08:37:51.014081 | 2023-07-25T23:37:37 | 2023-07-25T23:37:37 | 288,524,849 | 2,335 | 346 | MIT | 2023-09-08T16:52:16 | 2020-08-18T17:47:47 | Swift | UTF-8 | C++ | false | false | 34,543 | cc | hpack_encoder.cc | /*
*
* Copyright 2015 gRPC authors.
*
* 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 agree... |
e5ed893aedd2e099001d76529dbf3af844f19c32 | f8ef8b1633eeffc387f981b84d8ce2c52851fc55 | /source files/Game.cpp | 54ab4b84d4a34786c9201b81c197e205d68ef690 | [] | no_license | 0x55aa/PixelSandbox | ced514cbe42f077762cac6faf924f48934b32aba | 52592884a477101d7fa25050ee9561b743e8534a | refs/heads/master | 2021-09-18T14:32:28.411268 | 2018-07-15T22:53:44 | 2018-07-15T22:53:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,533 | cpp | Game.cpp | #include "Game.h"
enum states
{
MAIN_MENU,
SINGLE_PLAYER,
MULTIPLAYER,
FREE_MODE,
OPTIONS
};
void Game::initmenu()
{
state = FREE_MODE;
F_menufont.loadFromFile("arial.ttf");
T_singleplayer.setFont(F_menufont);
T_freemode.setFont(F_menufont);
T_multiplayer.setFont(F_menufont);
T_options.setFont(F_menufo... |
a3694185919d57d4acb1e562977203830ccb33e4 | 9d7d3046ef29ed0d2f8402da3f28b483f8eb7d9f | /Codeforces/CF1454/D.cpp | 39280176628f52dccd9a949c7649d78aa6bdb622 | [] | no_license | misaka18931/program-learning | 1ca03e0f475c87733ec3b84600001092e2962150 | cdef0ce82746d250587827274d21fb2ab3854277 | refs/heads/master | 2023-03-31T16:07:46.468699 | 2021-04-02T12:58:36 | 2021-04-02T12:58:36 | 300,297,483 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 767 | cpp | D.cpp | // CodeForces/CF1454/D.cpp
// https://codeforces.com/contest/1454/problem/D
// Created by learntocode1024 on 11/24/20.
// AC
#include <cstdio>
#include <iostream>
using std::cin;
using std::cout;
using std::endl;
void solve() {
long long n;
cin >> n;
long long out = n, ans = 1, tmp, prime = n;
for (long long ... |
dcffe22e70717d054573dc3f661b9e317a26130c | 2a091186db9e767ff224ec44fdf2ab006dfe07eb | /ExtratorDecaracteristicas/ColorExtractor.hpp | 7ceeb9bcc6abd45b11e8d451deb5786f58284cf4 | [] | no_license | joaofelipesus/trabalho_simpsons | 607b5946204de7b5cf4166ee02298aa7b1b34529 | f08732dd7752ce92c7347255e8d0901812a3739c | refs/heads/master | 2021-06-03T14:58:22.849883 | 2016-06-16T23:13:40 | 2016-06-16T23:13:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,096 | hpp | ColorExtractor.hpp | //
// ColorExtractor.hpp
// ExtratorDeCaracteristicas
//
// Created by joao lopes on 08/06/16.
//
//
#ifndef ColorExtractor_hpp
#define ColorExtractor_hpp
#include <stdio.h>
#include "itkImage.h"
#include "itkImageFileReader.h"
#include "itkImageFileWriter.h"
#include "itkRGBToLuminanceImageFilter.h"
using namesp... |
36ce4fd93f982e7de4a8e32133baa89865520116 | 0746881cb1b994ac31470b5d468c9add2fed4d0b | /example16.7/works.cpp | ba3d06f9b5d29962a398fce66b5907ff7edebd86 | [] | no_license | solemnrex/MyExercises | 1f1a6ae05ec85291b0b675d11ad8a8b89ff06d67 | 17856bd1bd954b78b7f1219091407a098e1bc77b | refs/heads/master | 2020-03-31T22:01:25.697607 | 2018-12-30T16:44:52 | 2018-12-30T16:44:52 | 152,591,773 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,886 | cpp | works.cpp | #include "works.h"
#include <string>
#include <iostream>
#include <algorithm>
using namespace std;
void work1()
{
cout << "---------This is work1.-----------"<<endl;
cout << "Input a string. " << endl;
cout << ">";
string str_input;
getline(cin, str_input);
cout << "Input string is: " << str_input << endl;
//... |
4c12d756dc4c398211701fab7ac340a81f8a2d79 | ef40a21ae939eb81318646acf71e97efae217879 | /src/hooks.cpp | a976bc839775089d0524ddb31396f83d3015aa17 | [
"ISC"
] | permissive | SuperMarcus/QuestParticleTuner | 3abbe7fa57d36202def1b06a130c37e01ee7269a | efba2782ed4167b144669969b1ed193a3a4820fc | refs/heads/master | 2023-09-03T12:26:55.887373 | 2021-11-18T05:55:18 | 2021-11-18T05:55:18 | 309,035,709 | 11 | 9 | null | 2021-11-18T05:55:19 | 2020-11-01T06:16:44 | C++ | UTF-8 | C++ | false | false | 6,957 | cpp | hooks.cpp | #include <algorithm>
#include <random>
#include "utils/logging.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/utils.h"
#include "beatsaber-hook/shared/utils/hooking.hpp"
#include "UnityEngine/Vector3.hpp"
#include "Un... |
d0d28b005dd6286c747765c1840dc6e1c16ce7f9 | dab230a1674e4c77acf17846ef5823be909fe170 | /src/Levels/Endscreen.hpp | b7f124a4a4dc9ad6b5d6a02d5ceffa115d87f420 | [] | no_license | schlenkibus/TheUnmagicalWand | 6fdb6c43e1e2be7a9b067e9a60f8205be5a89648 | df3467359058bf2f7636861ea2cf90f474fac26e | refs/heads/master | 2021-01-21T13:21:08.768160 | 2020-03-15T15:47:22 | 2020-03-15T15:47:22 | 50,537,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,087 | hpp | Endscreen.hpp | #pragma once
#include <iostream>
#include <SFML/Graphics.hpp>
class Endscreen
{
public:
Endscreen()
{
tex.loadFromFile("art/misc/final_screen.png");
sprite.setPosition(0, 0);
sprite.setTexture(tex);
shouldBeActive = true;
}
void update()
{
if(sizeTimer.getElapsedTime().asSeconds() <= 0.... |
ad2fc78c635ff2a3f6fe647e81cf5eabdb332b33 | 3863c8ea84280f8cb6f3baecb0587ce7df4989d7 | /ArduFarmBot_Light/Sensors_Test/Sensors_Test.ino | 042966cd9670a9a55977cabdf8a571281d27b95e | [] | no_license | kumar-tushar/Smart-Agro-System-Arduino-IoT | 314edd1a61f6a001cbc56d6b6bdfdb9b0b717cc2 | ca74d18bf9dbd65be3694b61e8795a5a5e89e618 | refs/heads/main | 2023-05-13T18:37:37.751792 | 2023-05-06T11:09:42 | 2023-05-06T11:09:42 | 355,857,143 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,880 | ino | Sensors_Test.ino | /*****************************************************
*ArduFarmBot Light
*Sensors Test
*
* DHT (2-wire Air Temperature/Humidity digital sensor) ==> Pin D11
* DS18B20 (1-Wire Temperature digital Sensor) ==> Pin D05
* LDR (Light Dependent Resistor - Analog Sensor) ==> Pin A1
* LM394/YL70 (Soil Humidi... |
1bfb3a14c17205979d2b5bd7c2f97278ccd48ceb | 633dd48e552887962086c53e3ca94052c2e815db | /src/main.cpp | 828a8df3a12d9cd2bdf54b775318abeecd2c1931 | [] | no_license | kiryam/avr-divecomputer | 5548c3d7321bebe3267318917692077ac49761b7 | 960ceaf6237459de5433fd9291d65290bac05a2f | refs/heads/master | 2020-05-21T10:10:09.299374 | 2015-08-01T17:56:32 | 2015-08-01T17:56:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,885 | cpp | main.cpp | //
// This file is part of the GNU ARM Eclipse distribution.
// Copyright (c) 2014 Liviu Ionescu.
//
// ----------------------------------------------------------------------------
#include <stm32f4xx_hal.h>
#include "stm32f4xx_hal_gpio.h"
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
... |
54602388a8b106be19553405a1a1e3cde9fa5083 | 5b69f73a79c25a5f1dfd392ad9799b258d655b19 | /ril/libril/sap_service.cpp | 962d564db5806041cda3a89c7d4a03d516907864 | [
"Apache-2.0"
] | permissive | LineageOS/android_hardware_samsung | 60863a35d4094c9921a77ceda78070cf55209bdc | 0e6c373ef1114d0d4a899bf98a643acf2d817ff8 | refs/heads/lineage-19.1 | 2023-08-28T13:29:07.457446 | 2023-08-15T15:26:44 | 2023-08-15T15:26:44 | 75,639,523 | 65 | 696 | null | 2022-10-02T20:16:17 | 2016-12-05T15:38:40 | C | UTF-8 | C++ | false | false | 38,030 | cpp | sap_service.cpp | /*
* Copyright (c) 2016 The Android Open Source Project
*
* 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 app... |
c9388e11c9ca4a642ef39cb45cb566780d50df69 | 27d338d2f3a83562fc4d84dcd929871c64697fc1 | /pathfinder.cpp | f6ac42e77c64bc0038f885b83f38b829258ae49a | [
"Apache-2.0"
] | permissive | jinshanwang/A-searchC-code | fa32d368a6d3070f57b3a59a8dc46254f94e633a | a86bc22d1fe94dee9c8f335ce6c00de47ac6b07d | refs/heads/master | 2020-05-06T13:47:49.055450 | 2019-04-08T13:54:12 | 2019-04-08T13:54:12 | 180,156,604 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,241 | cpp | pathfinder.cpp | #include <iostream>
#include <vector>
#include <set>
#include <string>
#include "Pathfinder.h"
#include "node.h"
#include "mapBuilder.h"
using namespace std;
pathFinder::pathFinder (vector<vector<node> > originalMap){
map=originalMap;
ExploredCounter=0;
}
void pathFinder::setStartX(int x){
startX=x+1;
}
void... |
e6fabef506e3b1bd141a7319eee6228716e9e3fb | 4c39ed31fe1268302952bbe5c2cd456c8083281e | /ZOJ/2201No Brainer.cpp | d5c2a9e08642f8d1d049c140a4203070d9136ad8 | [] | no_license | Abhay4/Algorithm | 37e3b8bd3c9990b896d862f1aa20ad8312f20e75 | 50b157e027c7f0c085a8a15929422e75851fafc4 | refs/heads/master | 2020-12-11T01:37:58.200719 | 2018-01-24T18:24:05 | 2018-01-24T18:24:05 | 38,934,843 | 0 | 0 | null | 2015-07-11T17:46:17 | 2015-07-11T17:46:17 | null | UTF-8 | C++ | false | false | 293 | cpp | 2201No Brainer.cpp | /*
* zju 2201 No Brainer
* 00:00.00 436k
* 2004.11.11 by adai
*/
#include <iostream>
using namespace std;
int main() {
int kase;
cin >> kase;
while (kase --) {
int x, y;
cin >> x >> y;
if (x < y) cout << "NO BRAINS" << endl;
else cout << "MMM BRAINS" << endl;
}
return 0;
}
|
00a1851db72c1180355bfd34463310862795c985 | e351815e80519de411cd3361013a5098fb405fe6 | /rgat/headers/graph_display_data.h | 6ab4b630cda552e31992b30cfcee93ca6f9e36ff | [
"Apache-2.0"
] | permissive | Lukas-Dresel/rgat | e9e5337d62b15511aca1aeaecdbdbc9be8e96110 | 6b45e2efeaa10502ea277b53a24eb46acbcb0de3 | refs/heads/master | 2021-10-20T05:02:24.459104 | 2019-02-26T01:08:22 | 2019-02-26T01:08:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,461 | h | graph_display_data.h | /*
Copyright 2016-2017 Nia Catlin
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 writing, software
dis... |
836691315c2b3f031b16c9dafd252f4712ca6513 | 7eaefba219a3172cfddd78999bc1bc1496b0c406 | /8._Software_Timer/Timer_OneShot/Timer_OneShot.ino | 76aef476547a81131d2b3ec5b079f1c8899cd79b | [] | no_license | harithaslam/MCTE4324_RealTimeSystem | 297e4ad9c46a650eb1e5fe340f808a14e1302ba0 | 1037595f86abc088256bdb32057bb7bd24205260 | refs/heads/main | 2023-05-06T01:12:15.749898 | 2021-05-31T05:41:18 | 2021-05-31T05:41:18 | 348,593,601 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,413 | ino | Timer_OneShot.ino | //if use Vanilla FreeRTOS need to include:
//#include timers.h
#if CONFIG_FREERTOS_UNICORE
static const BaseType_t app_cpu = 0;
#else
static const BaseType_t app_cpu = 1;
#endif
//Globals
static TimerHandle_t one_shot_timer = NULL;
static TimerHandle_t auto_reload_timer = NULL;
//*************************... |
048f73e49c58733c0a2836957ad72b0d73f1ab64 | 71f98d4dbc5cad6318fc29487ba77199ff5965c7 | /calibration_common/include/calibration_common/objects/checkerboard.h | 884576701b4d4c5b78aeedac8a295054caedbf7e | [
"BSD-2-Clause"
] | permissive | rislab/calibration_toolkit | 3c6303e2dcfb2b37d403dad4f668f941cc1af990 | ef7f0fa78d1d478b361303e480a808dd0fa6b191 | refs/heads/master | 2020-05-30T02:07:17.657445 | 2019-05-30T22:47:05 | 2019-05-30T22:47:05 | 189,492,123 | 0 | 0 | null | 2019-05-30T22:46:17 | 2019-05-30T22:46:16 | null | UTF-8 | C++ | false | false | 6,527 | h | checkerboard.h | /*
* Copyright (c) 2013-2014, Filippo Basso <bassofil@dei.unipd.it>
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyr... |
d38565cce63b6bcb808f5d18dc2f77a2859e7c22 | 5470aee46382fec6e51c36c1e041185cd070566c | /euclidean_distance/distance_with_structs.cpp | 06017524b79f6ad15905feb09601a1fb3b1e4f1e | [] | no_license | Joker-Jerome/cpp | c4167e137cddc7e6681c1f356083373daa770d67 | d48fbad4d66a0d949232ba21262368beffe821d4 | refs/heads/master | 2021-09-10T08:41:16.514455 | 2018-03-23T03:53:33 | 2018-03-23T03:53:33 | 106,119,653 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 658 | cpp | distance_with_structs.cpp | #include <iostream>
#include "geometry.h"
// create an alias so we don't have to keep typing "geometry::point"
using Point2D = geometry::point;
int main(int argc, char **argv)
{
double totalDistance = 0.0;
// read into 1st point
Point2D last;
std::cin >> last.x >> last.y;
Point2D curr;
// keep reading ... |
6d0b59dc4a8b1097dc6539bc607eb5b7be75c7a8 | 8ec1987551283f3851c507d8b87c37cd073a9e92 | /Super/src/Super/DesignPattern/Mediator.cpp | 158762de01675534f46c3343ac32733415670008 | [] | no_license | Edlward/public | 5bab05e745b62087dc60b0979ce71be853f98b73 | 370bf770d92c1f7b4970b2aa3fb18408e567d275 | refs/heads/master | 2022-11-17T12:14:55.414823 | 2020-07-17T19:03:24 | 2020-07-17T19:03:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 85 | cpp | Mediator.cpp | #include "Mediator.h"
Mediator::Mediator(void)
{
}
Mediator::~Mediator(void)
{
}
|
dee2c02354fc9de67d191f7f396ea11b200b3ce0 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5695413893988352_0/C++/Lightmoon/B_small.cpp | a640dacf835c011784c171621c209315c544c481 | [] | 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,210 | cpp | B_small.cpp | #include <bits/stdc++.h>
using namespace std;
int ntest;
string s,t;
typedef long long LL;
bool correct(int x, string s){
if(s.length()==1 && x > 9) return false;
if(s.length()==2 && x>99) return false;
for(int i=s.length()-1; i>-1; i--){
if(s[i]!='?' && s[i]-'0'!=x%10) return false;
x/=10;
}
... |
0714da2aa4711c635b215fb4d63d8eab4748e357 | 7346a08f114af67997d7e162845cad6a6fbf5da1 | /Data Structure(C++)/Polymorphism/Topic.cpp | de1a7183a3ef3b071968d58cee0102ba5f864790 | [] | no_license | ruiwenhe-10/Data-structure-Implementation-and-Practice-CPP | 9fa62e5b63b4968f719382ba8ecc0be0a6f6103c | 8797cf4146046c11b36e4d6b37d376f66b277dfd | refs/heads/master | 2022-12-26T14:34:20.584111 | 2020-09-21T05:06:42 | 2020-09-21T05:06:42 | 296,963,845 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 328 | cpp | Topic.cpp | #include <iostream>
#include "Message.h"
#include "Topic.h"
#include "Reply.h"
#include <sstream>
using namespace std;
Topic::Topic()
: Message()
{}
Topic::Topic(const string &athr, const string &sbjct, const string &body,
unsigned id)
: Message(athr, sbjct, body, id)
{}
bool Topic::isReply() const
{
return f... |
1c19f2a0f5632070c94a2b021b50ca9856457ed2 | 74e905a1279662262f34ea977c113adde5129163 | /fileformats/CellManager.h | af833e73270d8f74b965ba438906b6258e4987f5 | [
"MIT"
] | permissive | kcat/XLEngine | a62ec24a83a545059bb6b70f6680187cc24cb16c | 0e735ad67fa40632add3872e0cbe5a244689cbe5 | refs/heads/master | 2020-03-08T19:37:28.132922 | 2018-04-09T01:50:53 | 2018-04-09T01:54:14 | 128,358,918 | 1 | 0 | null | 2018-04-06T06:47:53 | 2018-04-06T06:47:53 | null | UTF-8 | C++ | false | false | 860 | h | CellManager.h | #ifndef CELLMANAGER_H
#define CELLMANAGER_H
#include "../CommonTypes.h"
#include "CellTypes.h"
#include <string>
using namespace std;
class WorldCell;
class CellLoader;
class Archive;
class IDriver3D;
class World;
class CellManager
{
public:
static void Init();
static void Destroy();
//This loads a cell... |
53b21c0ce8b68117ec651d1b5b76e3a5291b7ca2 | 96c70a300633b037b052ef8ef951fde28423381d | /jssy/jssy.cpp | 3dbd7d06f1726a8f458615eab19f5e786ba8ce50 | [
"MIT"
] | permissive | palmerc/jssy | 2ab2dc3eabab75680317776338403e75682aca6a | 61099bf7ad7802a3e2de1bc45cad35d13088b9bb | refs/heads/master | 2020-03-22T17:54:38.742344 | 2018-07-10T12:07:25 | 2018-07-10T13:20:23 | 140,423,585 | 1 | 0 | MIT | 2018-07-10T11:43:12 | 2018-07-10T11:43:12 | null | UTF-8 | C++ | false | false | 3,049 | cpp | jssy.cpp | //
// jssy.cpp
// jssy
//
// Created by tihmstar on 21.07.17.
// Copyright © 2017 tihmstar. All rights reserved.
//
#include "jssy.hpp"
#include <fstream>
#include "helper.h"
extern "C"{
#include <string.h>
}
using namespace std;
using namespace jssycpp;
std::string ReplaceAll(std::string str, const std::string... |
94fcd3a3067f64ad5fa3f203139e862a839b4660 | e4355967555857fd536787dce39ca30426ffa702 | /867/Game Platform/小游戏/大众麻将视频/游戏客户端/ScoreControl.cpp | 5f9c73a019cc2b7f2d250e85c942410e88a3e89e | [] | no_license | herox25000/oathx-ogrex-editor | f0fd6044f8065db9cb50a80376e52f502734e877 | f645c7997f27e11a9063a0d352accd98a474cef1 | refs/heads/master | 2020-12-24T14:35:34.912603 | 2013-08-24T06:20:06 | 2013-08-24T06:20:06 | 32,935,652 | 6 | 9 | null | null | null | null | GB18030 | C++ | false | false | 8,329 | cpp | ScoreControl.cpp | #include "StdAfx.h"
#include "GameClient.h"
#include "ScoreControl.h"
#include ".\scorecontrol.h"
//////////////////////////////////////////////////////////////////////////
//按钮标识
#define IDC_CLOSE_SCORE 100 //关闭成绩
//////////////////////////////////////////////////////////////////////////
BEG... |
66474198945798aed9760ce3eb0b06b19eb17a00 | 5bef53b0dc9539a4953919f75fde1f0ebd20e9fb | /CF/CONTEST_593D2/B.cpp | 4699886417d0d523ebe2840e30492cfe6a894e19 | [] | no_license | atrin-hojjat/CompetetiveProgramingCodes | 54c8b94092f7acf40d379e42e1f2c0fe8dab9b32 | 6a02071c3869b8e7cd873ddf7a3a2d678aec6d91 | refs/heads/master | 2020-11-25T10:51:23.200000 | 2020-10-08T11:12:09 | 2020-10-08T11:12:09 | 228,626,397 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 378 | cpp | B.cpp | #include <iostream>
using namespace std;
const int mod = 1e9 + 7;
int _pow(int base, int exp) {
int ans = 1;
for(; exp; exp >>= 1, base = 1ll * base * base % mod)
if(exp & 1) ans = 1ll * base * ans % mod;
return ans;
}
int main() {
int n, m; cin >> n >> m;
int A = _pow(2, m) - 1;
if(A < 0) A += mod;... |
a369a05c54ace753b01f881b63501df1b7956b0e | ece46d54db148fcd1717ae33e9c277e156067155 | /ArxProjects/cadtest1/cadtest1/inc/AutoAAD3.h | ebd2998636b0e5fc58f05d07113e4e04e43c8244 | [] | no_license | 15831944/ObjectArx | ffb3675875681b1478930aeac596cff6f4187ffd | 8c15611148264593730ff5b6213214cebd647d23 | refs/heads/main | 2023-06-16T07:36:01.588122 | 2021-07-09T10:17:27 | 2021-07-09T10:17:27 | 384,473,453 | 0 | 1 | null | 2021-07-09T15:08:56 | 2021-07-09T15:08:56 | null | WINDOWS-1252 | C++ | false | false | 1,076 | h | AutoAAD3.h | #pragma once
#include "AutoAAD2.h"
#include "acedads.h"
class AutoAAD3 : public AutoAAD2
{
public:
AutoAAD3(const TCHAR* pszFuncName) // 1
: AutoAAD2(pszFuncName)
{
}
AutoAAD3(const TCHAR* pszFuncName, bool bAuto) // 2
£º AutoAAD2(pszFuncName, bAuto)
{
}
AutoAAD3(const ... |
74b8bf11006c9a4b01e3601f6fc12fdffdf1a2ae | b495d715dc9fe3a2ac6bec5da44d6e83fec6c142 | /bar_codes.cpp | b9ea707e1a0591a56b8029500031fd5027142299 | [] | no_license | shobhitr97/Codes | f68be601c7b974c335722cdb8dc7f06e6c007e83 | 8d4deb2bb7f27e6f9af0190d5e558ff20f64a495 | refs/heads/master | 2020-04-15T13:35:59.973444 | 2018-02-06T18:24:33 | 2018-02-06T18:24:33 | 58,259,950 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,175 | cpp | bar_codes.cpp | #include<iostream>
#include<vector>
#include<algorithm>
#include<utility>
#include<stdio.h>
#include<set>
#include<map>
#include<cmath>
#include<queue>
#include<stack>
using namespace std;
typedef long long int ll;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef pair<int, int> ii;
typedef vector<ii> vii;
type... |
2552a11937963d83b852ac9911b17079598bad07 | dfe1f796a54143e5eb8661f3328ad29dbfa072d6 | /psx/_dump_/28/_dump_c_src_/diabpsx/source/player.cpp | 56d0e1b5a0d755844cbfa4a32ec8746627456e18 | [
"Unlicense"
] | permissive | diasurgical/scalpel | 0f73ad9be0750ce08eb747edc27aeff7931800cd | 8c631dff3236a70e6952b1f564d0dca8d2f4730f | refs/heads/master | 2021-06-10T18:07:03.533074 | 2020-04-16T04:08:35 | 2020-04-16T04:08:35 | 138,939,330 | 15 | 7 | Unlicense | 2019-08-27T08:45:36 | 2018-06-27T22:30:04 | C | UTF-8 | C++ | false | false | 23,030 | cpp | player.cpp | // C:\diabpsx\SOURCE\PLAYER.CPP
#include "types.h"
// address: 0x80058D74
// line start: 270
// line end: 271
bool ismyplr__FP12PlayerStruct(struct PlayerStruct *ptrplr) {
}
// address: 0x80058DB8
// line start: 275
// line end: 276
int plrind__FP12PlayerStruct(struct PlayerStruct *ptrplr) {
}
// address: 0x8... |
4ee04ced8610ca5b9e9521dc02f8c3116dfb76f9 | cd4cd3eb01eca103c32097734491243b699451e3 | /Fall 2019/Week10/Contest 7 Solutions.cpp/F - Epic Game.cpp | 7db1c10775da64848a8b41f5ecc390b9af68a8b2 | [] | no_license | NazirNayal8/KU-Algorithms-Program | 4fca38710320dec908b1e8ebcd72a9a5ada688a0 | f4b88208467e2d225ed314d44e26b5d38c1ab316 | refs/heads/master | 2020-08-07T05:49:51.616000 | 2020-03-04T15:15:40 | 2020-03-04T15:15:40 | 213,322,275 | 1 | 1 | null | 2019-10-08T17:46:41 | 2019-10-07T07:39:10 | C++ | UTF-8 | C++ | false | false | 395 | cpp | F - Epic Game.cpp | #include <bits/stdc++.h>
using namespace std;
int main(){
int a , b , n , x = 0;
cin >> a >> b >> n ;
while ( n>0) {
if ( x%2==0) {
n-= __gcd(a,n);
x++ ;
}
else if (x%2!=0) {
n-= __gcd(b , n);
x++;
}
... |
04c5489dfd7e9fc1c738aeb9e3dee345e2f88c95 | b5174e41a674e67bad7dc8cbcd9b6ea9c048163f | /Pocket Integration/maincpp.cpp | 2229175d4709cb477e35bd12285f275c9e153b0a | [] | no_license | frogi16/E-reader-Periodical | 8f2d63ffeb66dacc5aeb5f6e95ead6e9fecf768b | 75fda2b14994f2f84a8b4ffaa4e6d0a72f72a2ae | refs/heads/master | 2021-12-12T01:48:38.443813 | 2021-11-08T18:35:27 | 2021-11-08T18:35:27 | 152,869,974 | 13 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 246 | cpp | maincpp.cpp | #include "Application.h"
int main()
{
try
{
Application app;
app.run();
}
catch (const std::exception& e)
{
std::cout << std::endl << "Encountered critical error, application will be closed." << std::endl << e.what();
}
return 0;
} |
218185a70f6d840c62239d04edfdf720aa9f0327 | 02bc1f1a87280995dd709d203678d18318d4dc05 | /main.cpp | e200bcd332ecc98c0032477531cd34e624551469 | [] | no_license | tectronics/sasltutor | a5236021f4365253266d7fcdddd2b994b84dcf98 | 2fde4c538f5378469ec251c412b2bead304424f9 | refs/heads/master | 2018-01-11T15:02:50.848349 | 2010-03-14T18:16:27 | 2010-03-14T18:16:27 | 45,293,921 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 791 | cpp | main.cpp |
/* Things necesary to install before this program will work:
* libcv-dev
* libxine1-ffmpeg
* libhighgui-dev
*/
#include <QtGui/QApplication>
#include "mainwindow.h"
#include <QtPlugin>
//For static builds (phonon doesnt work in static)
//Q_IMPORT_PLUGIN(qgif)
//Q_IMPORT_PLUGIN(qjpeg)
//Q_IMPORT_PLUGIN(qico)
/* M... |
66c00a95064559b4de6f791fe2b73928d829437c | 7adc1042dbfce22011b5c56b269a3e9f512f51e1 | /loops/8.cpp | f89e0967c140988c821f1213b380e8624e238fda | [] | no_license | yogesh895/CPP-Programs | fca439cbd1843ccf4707587aef4e543f6dfe8721 | b32e51bf1a8c37c1c07697dca464c0683caaaaef | refs/heads/master | 2023-01-13T03:28:35.333058 | 2020-11-12T18:16:21 | 2020-11-12T18:16:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 307 | cpp | 8.cpp | #include<iostream>
using namespace std;
int main()
{
int i,n,count=0;
float avg,sum;
cout<<"Enter Any Number ";
cin>>n;
while(n!=0)
{
sum=sum + n%10;
n=n/10;
count+=1;
}
cout<<"Sum is "<<sum<<endl;
cout<<"Count is "<<count<<endl;
avg= sum/count;
cout<<"The average of digits is "<<avg;
}
|
31d92b3a884bdf2901dd2f811cb5d3adc5ff5929 | b851cba2e14ae32e1262d1f69bf51226c8e8686b | /src/Outlet.cpp | 0426d81c3dbb2c304454857e1683fe6ed165d025 | [
"MIT"
] | permissive | akshay1992/Lithe | cc3653fd481e7367652297652183fb66c5c25e8a | 515d635f8f55b106a20fa9593c2b057026c6d018 | refs/heads/master | 2021-04-26T13:27:07.871167 | 2018-05-17T07:15:01 | 2018-05-17T07:15:01 | 63,910,966 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,075 | cpp | Outlet.cpp | #include "Lithe/Outlet.h"
#include "Lithe/Inlet.h"
#include "Lithe/Node.h"
#include "Lithe/Sample.h"
#include "Lithe/Patcher.h"
#include <cassert>
namespace lithe {
Outlet::Outlet(Node* parent_node) :
parent_node(parent_node)
{
}
void Outlet::connect(Inlet& inlet)
{
assert(inlet.getConnectedOutlet() != this);
P... |
492aee251c10453192376903a6cca7a9aa23e589 | 6cf0bc246052a1c9202a75fe2cf51ec31d7b70eb | /adhoc_communication/src/RouteRequest.h | 7e9ceb3c5421a823a95a2a72e98299d77d147bb8 | [] | no_license | OSLL/multibot | ab0cd58e49c03b19b03610bbf108804765fe5d6d | 0af5fa139170bb4fe49e8eedac9de73114ab95e2 | refs/heads/master | 2021-01-18T17:23:17.372972 | 2016-05-29T13:47:46 | 2016-05-29T13:47:46 | 37,917,309 | 6 | 4 | null | 2016-04-25T20:17:34 | 2015-06-23T12:22:24 | C++ | UTF-8 | C++ | false | false | 1,263 | h | RouteRequest.h | /*
* RouteRequest.h
*
* Created on: 29.07.2013
* Author: Günther Cwioro
*
*
*/
#ifndef ROUTEREQUEST_H_
#define ROUTEREQUEST_H_
struct rreq_header
{
uint8_t frame_type;
uint32_t id;
uint32_t hop_count;
uint32_t hop_limit;
uint8_t flag_field;
uint32_t hostname_source_len;
uint3... |
bb254ed905de8df391ee15ec0edefdc6884b144a | 9f520bcbde8a70e14d5870fd9a88c0989a8fcd61 | /pitzDaily/884/alphak | 2ada55cdf6b69215daecc404dab76bcc43e0a48d | [] | no_license | asAmrita/adjoinShapOptimization | 6d47c89fb14d090941da706bd7c39004f515cfea | 079cbec87529be37f81cca3ea8b28c50b9ceb8c5 | refs/heads/master | 2020-08-06T21:32:45.429939 | 2019-10-06T09:58:20 | 2019-10-06T09:58:20 | 213,144,901 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 68,780 | alphak | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1806 |
... | |
f8fbd36fbaf0955e9f73a459690f8366b506ccac | eec5833ea113c4ae3b83d2474e339afeee83364f | /up05/task_05.cpp | 1adbd3f9e5fc2de386fa3c99905e18da6e84a9ad | [] | no_license | kirillserious/2018-1-contest | 9887328c27a1bffeae289954774a59d9978b9b03 | a248b881ce5f008287d57cc4d78e391fe0d4b1c6 | refs/heads/master | 2020-04-26T15:11:29.877326 | 2019-03-03T22:57:00 | 2019-03-03T22:57:00 | 173,639,586 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,282 | cpp | task_05.cpp | #include <string>
#include <sstream>
#include <cmath>
class Square : public Figure
{
double _a;
Square (double a) :
_a (a)
{}
public:
static
Square*
make (const std::string &str)
{
std::istringstream in (str);
double a = 0;
in >> a;
... |
fa3077f0c39fc580774dfb19da6192973c256bd6 | d1cd0f3830b16fd0a51e583ae5e3d8cb25b532e4 | /BeaverTetris/proj.win32/GamePlayersDatabase.cpp | e4d6573ef9f3b8d9b660ddc17b0f0806cecaf137 | [] | no_license | sburavtsov/BeaverTetris | f5939afdfe417e1a5601b8e04db7d7b4ef21e5c7 | fc28f5746b8c90073d82ca886d4d8e93d144897f | refs/heads/master | 2021-01-18T08:55:59.364976 | 2014-12-18T19:46:51 | 2014-12-18T19:46:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,087 | cpp | GamePlayersDatabase.cpp | #include "GamePlayersDatabase.h"
using namespace std;
bool sortFunction(const PlayerInformation &left, const PlayerInformation &right);
GamePlayersDatabase::GamePlayersDatabase(void)
{
_players = vector <PlayerInformation>();
}
GamePlayersDatabase::~GamePlayersDatabase(void)
{
}
int GamePlayersDatabase::getPlaye... |
00947a89e136808d04a2c3ec4c0119bb7c5171ef | f4b88c1d810114149bb3479bdd460d6c5207b6a8 | /src/common/platform/osx/Convert.cpp | 4792df1f01edee12ed54dcc4955405c4cb7a8f2e | [
"Apache-2.0"
] | permissive | crupest/cru | f0523639f791074cb272835d6a3b367846c2a3a7 | 6b14866d4cb0e496d28142f3f42e5f2624d6dc77 | refs/heads/main | 2023-07-09T23:56:34.977412 | 2022-09-06T07:24:04 | 2022-09-06T07:24:04 | 147,010,144 | 3 | 0 | Apache-2.0 | 2022-10-27T12:44:40 | 2018-09-01T15:28:58 | C++ | UTF-8 | C++ | false | false | 739 | cpp | Convert.cpp | #include "cru/common/platform/osx/Convert.h"
namespace cru::platform::osx {
CFStringRef Convert(const String& string) {
return CFStringCreateWithBytes(
nullptr, reinterpret_cast<const UInt8*>(string.data()),
string.size() * sizeof(std::uint16_t), kCFStringEncodingUTF16, false);
}
String Convert(CFString... |
b2b9dd57a44371f2aef7f33f445177bff688e95b | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/squid/gumtree/squid_repos_function_1729_last_repos.cpp | 1e68b211969b4794c36d15231144aa05a6cc35d4 | [] | 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 | 68 | cpp | squid_repos_function_1729_last_repos.cpp | static Initiators AllInitiators() {
return 0xFFFFFFFF;
} |
ab9b6ee138ed2c55b46603e83824f07754541442 | 81b6521d8204a962b908094deb8998c291cdb07b | /codeforces/round360/a.cpp | 2d4576acf5845e1a9eb6c80d983559b0a5d83a0e | [] | no_license | doldre/ACM | 9c86c242a347e5b31daa365ddf0e835af7468fa9 | 23e4694fee51831831b1346b8ccc0e97eebef20a | refs/heads/master | 2020-04-12T02:29:59.345719 | 2017-04-10T08:15:10 | 2017-04-10T08:15:10 | 55,833,991 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,970 | cpp | a.cpp | /************************************************
*Author :mathon
*Email :luoxinchen96@gmail.com
*************************************************/
#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <st... |
af9db11405d900bbdb82d1ebf360b3a02add84cd | 80be40b336ecc0e919f1b835a513d8b1db9fdee3 | /examples/Chapter_4/rangeCheck.cpp | 452176b1803e82d85fb68ab72563dfccc8c1f5ce | [] | no_license | Lwuuuuu/cpp_examples | ad3ad727f5febd3fd6f37aa14d2f73286e42490c | 486830d0de0433dc6d00ff2b0b9eff7c08e92d1c | refs/heads/master | 2020-09-02T07:33:16.296510 | 2020-01-27T00:15:37 | 2020-01-27T00:15:37 | 219,168,494 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,646 | cpp | rangeCheck.cpp | #include <iostream>
#include <vector>
#include <string>
using namespace std;
struct Entry {
string name;
int number;
//Entry(string x, int y) :name{x}, number{y} {}
};
ostream& operator<<(ostream& os, const Entry& e){
return os << "{\"" << e.name << "\", " << e.number << "}";
}
istream& operator>>(ist... |
58ed6bdda5eeb37293cadedf53f86a04d6073c58 | bb0024cb1e9242be34c58e14305c438bc9f1cf52 | /compute.cpp | d6ea97e9fd171ba82b319d6e27fdb3a04662c8bf | [] | no_license | NYU-HPC21/lecture3 | 70528e97e309a2b8e99f7d4d4f95da1c998fead2 | 8a0dd8c8bfcd24c0a4fabff23bd0a7d231c6d1cb | refs/heads/master | 2023-03-04T03:23:22.083858 | 2021-02-18T17:55:50 | 2021-02-18T17:55:50 | 340,127,912 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,481 | cpp | compute.cpp | // $ g++ -std=c++11 -O3 -march=native compute.cpp && ./a.out
// $ g++ -std=c++11 -O3 -march=native compute.cpp -ftree-vectorize -fopt-info-vec-optimized && ./a.out -n 1000000000
#include <stdio.h>
#include <math.h>
#include "utils.h"
#define CLOCK_FREQ 3.3e9
void compute_fn(double* A, double B, double C) {
(*A) = ... |
563972409d50bbf87a8d3054d999a3d426a099dc | a85512fec5ed090cc5d3c34158cc28deb68f16d2 | /cube_row.h | 4cfe9864945bcb08196149a8bf8d0938b9e8713e | [] | no_license | solven-eu/xmlaconnect | fb22595ae77df401c80e97baf77616e1e3199359 | 6c717b82421dc9f555c954ae6c2f6138856d144c | refs/heads/master | 2022-01-27T03:35:13.004081 | 2016-01-26T12:49:12 | 2016-01-26T12:49:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,906 | h | cube_row.h | /*
ODBO provider for XMLA data stores
Copyright (C) 2014-2015 ARquery LTD
http://www.arquery.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or... |
b3e0fded3da89fefbd6e826ba8285003add06075 | a08836d65ae574ce124eacfd3476ce2d11352d7c | /MessageService.cpp | 632768b0d40e9dd4f8f4a2f3c26cb0adefa97d81 | [] | no_license | zhongwuzw/blmbusiness | 28f70c51ee419a77d1bec357d646a0eaf50b772a | 35646f450e8afd5cad6e6c74baf9187cc73c567c | refs/heads/master | 2016-09-16T09:37:16.752879 | 2014-07-18T08:08:37 | 2014-07-18T08:08:37 | 20,587,830 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,836 | cpp | MessageService.cpp | #include "MessageService.h"
#include "MainConfig.h"
#include "Message.h"
#include "LogMgr.h"
#include "CacheMgr.h"
#include "ClientSocketMgr.h"
#include "UniqueNumber.h"
#include "IBusinessService.h"
#include "ObjectPool.h"
CMessageService::CMessageService(void)
{
}
bool CMessageService::DoMessage(void* pMessage)
{
... |
4d5780d9facaff601fc14725ad57e289d252c6ea | ac507e24073717f0f2f43480101be5db0213c2c4 | /pwiz/analysis/calibration/CalibratorTrial.cpp | ce064ecc3e6439ff18faafee8361ea9e051f9922 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | ProteoWizard/pwiz | 7adbd5a276b49d5f0271eb8cfddbd6d21ee31318 | f708f62d098c33ef60a76d92b038fde74361570a | refs/heads/master | 2023-08-27T20:42:37.708268 | 2023-08-25T18:30:50 | 2023-08-25T18:30:50 | 124,952,577 | 185 | 92 | Apache-2.0 | 2023-09-14T20:39:46 | 2018-03-12T21:16:01 | C# | UTF-8 | C++ | false | false | 12,620 | cpp | CalibratorTrial.cpp | //
// $Id$
//
//
// Darren Kessner <darren@proteowizard.org>
//
// Copyright 2009 Spielberg Family Center for Applied Proteomics
// Cedars Sinai Medical Center, Los Angeles, California 90048
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compli... |
f88990f2408ed9bb846cece77abcd0c8cd9f8852 | 75b8fe31e669e1f79ebab2ea5d78eea52e26c2ec | /SortLearning.cpp | fc675b4cd41a9ba12f62ee75b7e5b8fe910b2f7b | [] | no_license | kinstep/SorltLearning | 527d7359a62d078b15bf10a656b693d9f7c2ecde | b606f301b1b192fc8c0a15a39d1cd5c570d10eac | refs/heads/master | 2020-04-05T22:50:31.638579 | 2014-09-30T01:54:25 | 2014-09-30T01:54:25 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,644 | cpp | SortLearning.cpp | // SortLearning.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#define random(x) (rand()%x)
typedef int KeyType;
typedef struct
{
KeyType key;
} RedType;//key words
typedef struct
{
RedType r[21];
int length;
} SqList;
void InsertSort(SqList &q)
{
for(int i = 2; i < q.length; ++i)//从第... |
ba04d8939b6278d2fa84f4657d2dbf9509e27aed | 52ca17dca8c628bbabb0f04504332c8fdac8e7ea | /boost/fusion/container/deque/detail/cpp03/preprocessed/deque10_fwd.hpp | 6e5d482ef5ab81c5b599c9916844f48b01cdc0e9 | [] | no_license | qinzuoyan/thirdparty | f610d43fe57133c832579e65ca46e71f1454f5c4 | bba9e68347ad0dbffb6fa350948672babc0fcb50 | refs/heads/master | 2021-01-16T17:47:57.121882 | 2015-04-21T06:59:19 | 2015-04-21T06:59:19 | 33,612,579 | 0 | 0 | null | 2015-04-08T14:39:51 | 2015-04-08T14:39:51 | null | UTF-8 | C++ | false | false | 106 | hpp | deque10_fwd.hpp | #include "thirdparty/boost_1_58_0/boost/fusion/container/deque/detail/cpp03/preprocessed/deque10_fwd.hpp"
|
fda95e7a642999cfab272a266b28b54925bbab8e | aaafa1638fb3309b2073de4b3778ec05f3d2a15d | /1.9 QPushButton, QFocusFrame/myclass.cpp | 3f75a7ea0f15da991c2bfd94ca0b5326216f5a89 | [] | no_license | bemaru/QtStudy | 8498d552fb2bd45a32ce738769cc0142dd0828ec | 22455dce46fe55858365a0d483c6de5250b7e728 | refs/heads/master | 2021-04-03T08:31:41.185666 | 2018-03-21T04:07:17 | 2018-03-21T04:07:17 | 125,152,516 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 890 | cpp | myclass.cpp | #include "myclass.h"
#include <QFocusFrame>
MyClass::MyClass(QWidget *parent)
: QMainWindow(parent)
{
ui.setupUi(this);
int ypos = 30;
for (int i = 0; i < 3; i++) {
btn[i] = new QPushButton(QString("Frame's button %1").arg(i), this);
btn[i]->setGeometry(10, ypos, 300, 40);
ypo... |
b728401267ed6572b63f09e6b22e70d325cedfa7 | b40424eca54777356edba1fd75ce5a227b0a3486 | /Root/LinkDef.h | e4c5b4c7140af0a8b64cd03bfefcf86384fd1582 | [] | no_license | gitter-badger/SusyCommon | 469a424ee20a8c38baea7097313e3803ba9fbc77 | 5e0f8f477fe4803d02004d66073177cae0547362 | refs/heads/master | 2021-01-15T20:33:34.441664 | 2014-11-12T00:48:49 | 2014-11-12T00:48:49 | 41,424,151 | 0 | 0 | null | 2015-08-26T12:26:19 | 2015-08-26T12:26:17 | C++ | UTF-8 | C++ | false | false | 596 | h | LinkDef.h | #include <vector>
#include "SusyCommon/SusyD3PDInterface.h"
#include "SusyCommon/SusyD3PDAna.h"
#include "SusyCommon/SusyD3PDSkimmer.h"
#include "SusyCommon/SusyNtMaker.h"
#include "SusyCommon/SusyMetValidation.h"
#ifdef __CINT__
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all func... |
2e0d22d1eccb3533fbc3cd9f5942b6ae30c9ba66 | f0a26ec6b779e86a62deaf3f405b7a83868bc743 | /Engine/Source/Runtime/Engine/Classes/Sound/SoundNodeDeprecated.h | 7e75880ec8a482b1565dcd4c8dedd0be3c401f44 | [] | no_license | Tigrouzen/UnrealEngine-4 | 0f15a56176439aef787b29d7c80e13bfe5c89237 | f81fe535e53ac69602bb62c5857bcdd6e9a245ed | refs/heads/master | 2021-01-15T13:29:57.883294 | 2014-03-20T15:12:46 | 2014-03-20T15:12:46 | 18,375,899 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 391 | h | SoundNodeDeprecated.h | // Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
/**
* An intermediary class to parent all deprecated sound nodes from to easily
* restrict them from being placed on a sound canvas
*/
#pragma once
#include "SoundNodeDeprecated.generated.h"
UCLASS(deprecated, abstract, MinimalAPI)
class UDEPRECATED_... |
f56b9853d0c2526ca0a7d7f9df4f28064af835bf | ea6040428c439582eb6e40978fc924174cf85d85 | /Major.cpp | a78c18c837ed3340b3aae3cd23474184e02516de | [] | no_license | Ming45/management | 7a35a16d8624cfb117d8bc9e860f1c6f09c4b69f | 55ecf7e71ae948a95a05b5377c71ebe6e02846e5 | refs/heads/main | 2023-02-10T02:30:47.851017 | 2021-01-06T15:10:51 | 2021-01-06T15:10:51 | 327,346,150 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 601 | cpp | Major.cpp | #include"mymanage.h"
/*
Major* Major::findmname(char* name) {
for (Major* p = head; p->next != end; p = p->next)
if (!strcmp(p->next->mname, name))return p;//strcmp函数是string compare(字符串比较)的缩写,用于比较两个字符串并根据比较结果返回整数。
//基本形式为strcmp(str1,str2),若str1=str2,则返回零;若str1<str2,则返回负数;若str1>str2,则返回正数
return ... |
af1dab24e5e6e3114bdbe7325ef16f76f62e1ddc | 7f771b3bfbad58465c612b46fa2da0b632ae055a | /QuizGameBeta.cpp | 370c273d8b1fe1b960e0265310403983ffe2be0b | [] | no_license | bebo999/quiz-game | 854ee6b60160f170b9f4af04849af5d3ea4a8e6c | d2c6ad4502327405a44c5a4d7727191d974e2f3b | refs/heads/master | 2020-06-16T13:21:38.115671 | 2019-07-06T23:06:20 | 2019-07-06T23:06:20 | 195,589,994 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,951 | cpp | QuizGameBeta.cpp | #include <fstream>
#include<stdio.h>
#include <string>
#include <iostream>
using namespace std;
void sports(string c[100])
{ int i=0,score=i,b=i;
int ans;
int correct[4]={3,1,1,4};
for(i=0;i<4;i++)
{ cout<<c[b]<<'\n';
cout<<c[b+1]<<'\n';
cout<<c[b+2]<<'\n';
cout<<c[b+3]... |
e3055ab9e53b6163f484fa7c9bea977741e67b48 | c04b33824d1f70602b8439654c0c52d23e42fb8e | /napi-async-inl.h | 1fabc89ad8251d37f718f5fd86021135befd452d | [
"MIT"
] | permissive | ebickle/node-addon-api-async-poc | f57ff1766633150077605008a71c5964f142b2a4 | 236b450e96a100dc7e0d563dbc0440331afd892c | refs/heads/master | 2021-04-26T22:43:32.405006 | 2018-03-06T22:37:32 | 2018-03-06T22:37:32 | 124,136,811 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,119 | h | napi-async-inl.h | #ifndef SRC_NAPI_ASYNC_POC_INL_H_
#define SRC_NAPI_ASYNC_POC_INL_H_
namespace Napi {
// Helpers to handle functions exposed from C++.
namespace details {
#ifdef NAPI_CPP_EXCEPTIONS
// When C++ exceptions are enabled, Errors are thrown directly. There is no need
// to return anything after the throw statement. The v... |
3d92e6e0f27891a9f43d80e21a6fcaeb2ad95069 | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /DP/93.cpp | d0c55affefcdb7687acb585cc8e4c50846316759 | [] | 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 | 567 | cpp | 93.cpp | #include<iostream>
#include<cstdio>
#include<algorithm>
#include<cmath>
#define ll long long
using namespace std;
int n,m,a[200],b[200],bo=1,gi=1,s;
int main(){
cin>>n;
for(int i=1;i<=n;i++) cin>>a[i];
cin>>m;
for(int i=1;i<=m;i++) cin>>b[i];
sort(a+1,a+n+1);sort(b+1,b+1+m);
while(1){
... |
9ea1fadb60aeae5d8b501828ced04f21b4e4c65c | 225b9a9ce807b669f5da0224b374bbf496d0bc70 | /数学/多项式/FWT/test20191112bitop.cpp | 5d462699becd8e058cb385aa322c8be9758800da | [] | no_license | Kewth/OJStudy | 2ed55f9802d430fc65647d8931c028b974935c03 | 153708467133338a19d5537408750b4732d6a976 | refs/heads/master | 2022-08-15T06:18:48.271942 | 2022-07-25T02:18:20 | 2022-07-25T02:18:20 | 172,679,963 | 6 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 34 | cpp | test20191112bitop.cpp | ../../../test/2019/11/12/bitop.cpp |
2f55ab3030b289e74ad507c717414636b2a24f99 | c50c4796cc416e78ef2c8883899d12f1d4e0a9e8 | /RPG/ICombatable.h | c5f0d759ecdc66d425144bf250d6c1caa47184bf | [
"MIT"
] | permissive | kriskirov/RPG-Remote | 052b5c9eb24a1f61415def3cb3d72e0d30489a49 | f446f5461ad38267ed3a34dc80e8bd807ae29ef9 | refs/heads/master | 2021-01-20T01:19:10.416123 | 2017-05-09T11:37:42 | 2017-05-09T11:37:42 | 89,253,403 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 411 | h | ICombatable.h | #ifndef I_COMBATABLE_H
#define I_COMBATABLE_H
#include "IIdentifiable.h"
#include "IStatistics.h"
#include "ITriggerable.h"
class ICombatable : public IIdentifiable, public IStatistics, public ITriggerable {
public:
virtual void dealDamage(ICombatable& target, ICombatable& dealer) = 0;
virtual void takeDamage(float... |
de435c1033c2c0b7205a6e72ea76979060b40bf9 | 41304bc18523492086aaff272ca93e2afe0d43fb | /Linearalgebra/myexception.h | 1f62dc0f1360e604b3b74127953b608a4f971d24 | [] | no_license | rejie/Linearalgebra | d0e4064ae02744d758fa91ea966f011960068bb6 | 11133ae00c21e1d4b7da4615ef1ec1d124753fda | refs/heads/master | 2021-01-19T17:42:26.046423 | 2015-04-25T14:21:35 | 2015-04-25T14:21:35 | 33,907,374 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 211 | h | myexception.h | #ifndef MYEXCEPTION_H
#define MYEXCEPTION_H
#include <stdexcept>
class MyException : public std::runtime_error
{
public:
MyException(const char* msg) : std::runtime_error(msg) {}
};
#endif // EXCEPTION_H
|
6f89a3ed4434797dd10d66abea0fc869d191d652 | e244777fbd8cb599c9c0cb150e0165cfdce3b7f6 | /Chapter5/5_2 조건문 if/5_2 조건문 if.cpp | 7cedbd1a94f2df68ac717135f2c5232f0e210908 | [] | no_license | leeyunhome/tbcpp_0909 | 0a93d9ccfc9f6cf9fb8a9e3f809991b20f17fdf1 | 2741fc3dfc6533538aab426f71cd1a5791517515 | refs/heads/master | 2023-01-20T21:26:20.301338 | 2020-12-03T19:37:51 | 2020-12-03T19:37:51 | 293,912,840 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 552 | cpp | 5_2 조건문 if.cpp | // 5_2 조건문 if.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
using namespace std;
int main()
{
int x;
cin >> x;
if (x > 10)
cout << "x is greater than 10" << endl;
else if (x < 10)
cout << "x is less than 10" << endl;
else // if (x == 10
cou... |
e8332450a0a0cbf4dc4ab1058e7a3868e3eab6ae | 553e050f44bc5058b99c91a3ba0e6d2fd53b1933 | /QuadTreee/Nodo.h | 063ebff529178e64d5c9010f45b83effaea19e36 | [] | no_license | esmarienkafer/BelieveWhatUC | 668b91136e0d70d2baf6d1fbdd7e8b0514007e8c | 6c57c0629cb4973a9642c223932ae98dcdb1c1a9 | refs/heads/master | 2022-09-21T00:35:35.946601 | 2017-05-19T23:37:32 | 2017-05-19T23:37:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 514 | h | Nodo.h | #ifndef NODO_H_
#define NODO_H_
#include <iostream>
using namespace std;
template <class T>
class Nodo
{
private:
Nodo<T> *prox;
T elem;
public:
///Constructores
Nodo<T>(): prox(NULL), elem() {}
Nodo<T>(T elemento, Nodo<T> *p): prox(p), elem(elemento){}
Nodo<T>(T elemento): prox(NULL), elem(elemento){}... |
b53823225c495cd5864f2d468d4d1e860d3fba93 | 775acebaa6559bb12365c930330a62365afb0d98 | /source/public/interfaces/incopy/ITextAreaPrefsData.h | bdc700f91c61c41539dc00eb58f7f8c781018bcf | [] | no_license | Al-ain-Developers/indesing_plugin | 3d22c32d3d547fa3a4b1fc469498de57643e9ee3 | 36a09796b390e28afea25456b5d61597b20de850 | refs/heads/main | 2023-08-14T13:34:47.867890 | 2021-10-05T07:57:35 | 2021-10-05T07:57:35 | 339,970,603 | 1 | 1 | null | 2021-10-05T07:57:36 | 2021-02-18T07:33:40 | C++ | UTF-8 | C++ | false | false | 2,947 | h | ITextAreaPrefsData.h | //========================================================================================
//
// $File: //depot/devtech/16.0.x/plugin/source/public/interfaces/incopy/ITextAreaPrefsData.h $
//
// Owner: psorrick
//
// $Author: pmbuilder $
//
// $DateTime: 2020/11/06 13:08:29 $
//
// $Revision: #2 $
//
/... |
fee0a4b0d38fdc728734c490d8cbfa320932a874 | 6f9a1c7aca3b414b80cbdda95f606e7968492211 | /code_practise/leetcode/00239.cpp | c00914cb177ae13731561db6aedc3b0e8f7e1437 | [] | no_license | junlong-gao/recreations | dee02a5a6497c4f7613b5b785505616d509dcb9c | 357f74eb4cac2e2a6d52a10cd322e1a5752b6347 | refs/heads/master | 2023-08-03T09:13:01.534095 | 2023-08-01T21:38:30 | 2023-08-01T21:38:30 | 92,252,559 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 631 | cpp | 00239.cpp | class Solution {
struct pt {
int idx;
int val;
};
public:
vector<int> maxSlidingWindow(vector<int>& nums, int k) {
deque<pt> q;
vector<int> ret;
for (int i = 0; i <nums.size(); ++i) {
while (q.size() > 0 && q.back().val <= nums[i]) {
q.pop_... |
8b84d28787bc5e6f282ef748883a4bc7f671b84b | 6263e3b901cb116b8ae0851f29da419089d8f07d | /src/Inst/Cst.cpp | c248d07ab720d0a50064cffa58dbd05c90c0431e | [
"Apache-2.0"
] | permissive | hleclerc/Sane_inter | e90079a3d3b501d13925581a66d2c0b5a7401f66 | a9dc649ef88ac99f32ca16b95f3b6f2afbd55ed3 | refs/heads/master | 2021-04-25T13:09:30.203723 | 2018-01-17T16:20:45 | 2018-01-17T16:20:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,139 | cpp | Cst.cpp | #include "../System/byte_swap.h"
#include "../System/Memcpy.h"
#include "../Codegen/Codegen.h"
#include "../Type.h"
#include "../gvm.h"
#include "Cst.h"
Cst::Cst( Type *type, int size, void *val, void *kno ) : type( type ), val( size ), kno( size ) {
if ( val )
memcpy( this->val.data, val, ( size + 7 ) / 8... |
6060d6e8c24de89ad3b727bb4732e94ef9bf7185 | 7cf0159bb5a0be127e80f71dc6c080499c5ecbe1 | /src/linux_platform.cpp | e255978aea380f952cf4fc51f1c5379ba50b7953 | [] | no_license | AnTAVR/Kleos | 796e68feacb99911cd8d7a00c1bdc0b4496c4035 | e53214a39ad9d91f103930bbfe95d4c6a0818824 | refs/heads/master | 2022-04-02T21:21:13.238229 | 2020-02-04T06:16:00 | 2020-02-04T06:16:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,492 | cpp | linux_platform.cpp | #include "linux_platform.h"
#include "main.h"
#include <dlfcn.h>
#include <iostream>
// #if WINDOWS
// #include <SDL.h>
// #else
#include "sdl_common.h"
// #endif
/* functions related to windows specific platform */
bool WindowSetup(SDL_Window **mainWindow, const char *programName)
{
// Initialize SDL's video sub... |
10e0f2da2dbefb3a3307eb3a268dbd1c50285abf | 627157a23a44a38852c3e146efb8fd993f6c4128 | /4344.cpp | 5a9f5ab454a98899089c863f1625474f78633945 | [] | no_license | hsh778205/luogu_code | e598fd87896a61ea6c75e3c918885bd00ea6933b | 5280e8d5cae5d5ac51cb9dbbe2a69fd8a8c3595a | refs/heads/master | 2021-07-21T12:24:37.708033 | 2021-03-30T06:29:21 | 2021-03-30T06:29:21 | 247,858,584 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,711 | cpp | 4344.cpp | #include<iostream>
#include<algorithm>
#include<cstdio>
#include<cstring>
#include<cmath>
#include<map>
#include<set>
#include<queue>
#include<vector>
#define IL inline
#define re register
#define LL long long
#define ULL unsigned long long
#ifdef TH
#define debug printf("Now is %d\n",__LINE__);
#else
#define debug
#en... |
901d76453fa603a06d35ac6e283a390d90228a65 | d4af01a773900476c879d484f8390b05222f417b | /POI 02/Stage I/Trees.cpp | bc9149d3a6324848fea705b1b94e6daa08f41c69 | [] | no_license | huynd2001/POI | e284a860c92e637a111301216162c8a7f2675c0d | c3334aed606c1dfbb10b51e80c60b5e3ee793726 | refs/heads/master | 2021-08-07T16:26:24.776670 | 2021-02-02T08:12:12 | 2021-02-02T08:12:12 | 88,487,881 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,169 | cpp | Trees.cpp | // Trees
#include <bits/stdc++.h>
using namespace std;
int a,par[100007],conv[100007];
int ans[100007];
vector <int> v[100007];
vector <int> euler;
string concat="";
void dfs(int node)
{
euler.push_back(node);
for(int i=0;i<v[node].size();i++)
{
int k=v[node][i];
dfs(k);
}
return ;
}
void dfs2(int node)
{
... |
7315461cc0873dc1d4c3788c8085bddfcc27a1cd | 3833ff7333211b06d301339b8ae11fc22cb118d4 | /c/libxutl/cport/libxutl.cpp | edb4f77201c32fc7d0282c120bd53a21cab68a79 | [] | no_license | evertonagilar/study | c4a6fed603b01bc8549813e7ef09e11a206ada99 | 03af0f0fa87e7ab90b4ce0dbc333c532b5610067 | refs/heads/master | 2023-03-09T01:43:46.393800 | 2023-03-04T10:58:20 | 2023-03-04T10:58:20 | 54,847,850 | 3 | 0 | null | 2023-03-02T14:18:01 | 2016-03-27T20:59:24 | C | UTF-8 | C++ | false | false | 2,983 | cpp | libxutl.cpp | #ifdef WIN32 /* Windows Plataform */
#include <windows.h>
#include "libxutl.h"
#include "imp\stringutils_imp.h"
#else /* Linux Plataform */
#include "libxutl.h"
#include "imp/stringutils_imp.h"
#endif
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#end... |
52c0492fee99ec0c8cd6e7cf06afdfb041e8b7e0 | 11d88efb3a4325654a3285bf12e8bb464fbd076a | /Code/Engine/Renderer/TextureView.cpp | 0d7f68ddaa1ccdc0fc417f33ba877f70b66f9083 | [
"MIT"
] | permissive | iomeone/Engine-1 | eb465d4080bf8004023027cc8a7fe2539e43b558 | 0ca9720a00f51340c6eb6bba07d70972489663e8 | refs/heads/master | 2022-11-07T05:03:07.614714 | 2020-06-20T04:23:01 | 2020-06-20T04:23:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 839 | cpp | TextureView.cpp | //------------------------------------------------------------------------------------------------------------------------------
#include "Engine/Renderer/TextureView.hpp"
#include "Engine/Renderer/Sampler.hpp"
//----------------------------------------------------------------------------------------------------------... |
6c2022587dfe9030fe778d888f2a9a554640ea70 | c4a9667dd8f32a26260d1fd71b1ba006d80a96a6 | /main.cpp | d9b10e2367c74557f0210a56b52288f648a3d34b | [] | no_license | samueltenka/ArithmeticCompressor | 397aa870cf008b75fbf44fe02d59aadd5a09922e | 6978b60a15eb548dfd70b728de4167a11b89d16d | refs/heads/master | 2021-01-21T12:47:34.009782 | 2016-03-23T01:56:40 | 2016-03-23T01:56:40 | 21,152,676 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,952 | cpp | main.cpp | // Compressor.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
//#include "TextFile.h"
#include "Huffman.h"
#include <iostream>
#include <fstream>
using namespace std;
#define PAUSE {char l; cin >> l;}
int _tmain(int argc, _TCHAR* argv[])
{
HuffmanCoder H;
//string lorem = "aaaaaa... |
7c2dc16f70c8c35009113c4a44d4e8a96c1b3206 | 17d5640307188855b0f2247808fd06f87de2c3c0 | /Matrix.tpp | c59f55a6819211252742f49f38ee7321e87906a6 | [
"MIT"
] | permissive | rmicolon/MatrixLite | 6896e3b69f0a8f4b3d5238f3030a081c3a9d8908 | 51dae2be51d9c86353a6a95f42e97b0692341fb4 | refs/heads/master | 2020-08-24T12:52:43.969948 | 2019-10-22T14:10:38 | 2019-10-22T14:10:38 | 216,829,441 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,811 | tpp | Matrix.tpp | template<class T>
void Matrix<T>::resize( uint32_t rows, uint32_t cols, T init ) {
N = rows;
M = cols;
matrix.resize(rows);
#pragma omp parallel for num_threads(NUM_THREADS)
for (uint32_t i = 0; i < rows; ++i) {
(init) ? matrix[i].resize(cols, init) : matrix[i].resize(cols);
}
}
template<class T>
Matrix<T>... |
c090200a6699fd53e432aaf6d1a208a89961671c | 2293801ef5ce447058b63ab0feaef1c0a06d65a0 | /MyGame/HallScreen.cpp | 01f629ef38ba0d669f89885bd3d6632e177c280c | [] | no_license | MuhammadUsaid/GameProject | dcc46f0a9c5e4dff88c87e22b5845bb6dc105251 | e4b0c68745eb1911f1071f26dc830975de4f67d4 | refs/heads/master | 2020-04-07T19:18:08.366304 | 2018-12-02T14:28:26 | 2018-12-02T14:28:26 | 158,643,055 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,603 | cpp | HallScreen.cpp | #include "HallScreen.h"
#include "TextManager.h"
#include "Room.h"
HallScreen::HallScreen()
{
roomNumber = 0; // 0 means we are in hallway
// InitializeRooms();
state = 0;
player = Player::GetInstance();
healthBar = new Health;
objectList = new ObjectList;
objectFactory = new ObjectFactory;
... |
afc71cf2ac5062eb56bceb075e2515b96eb7223e | 6d8009bba14682c2266581962d2c10199ca9e1ed | /KeypadSequencer.cpp | 2ef952e7276202334042e7326ece033ea53f382f | [] | no_license | normannexo/MidiKeypadSequencer | 7c4f7a66368bcc20cd3c96d42db232cd59fd5503 | e0e8ab6933f042eb66387993bb99e99aea316f66 | refs/heads/master | 2021-01-11T01:10:08.837739 | 2016-10-23T17:42:01 | 2016-10-23T17:42:01 | 71,049,467 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,435 | cpp | KeypadSequencer.cpp | #include "KeypadSequencer.h"
byte TimeDiv::nextValue() {
mIndex = (mIndex + 1) % 4;
return mValues[mIndex];
}
byte TimeDiv::getValue() {
return mValues[mIndex];
}
void TimeDiv::drawValue(Adafruit_7segment* seg) {
seg->printNumber(mValues[mIndex], DEC);
seg->writeDigitNum(1, 1, true);
if (swing == ... |
ee27c0b21d05ba36cb42daf6fbfbce328b265794 | 3da1d05a9bde4410abeecef3bf644a1cf91de5ed | /lib/AIECreateFlows.cpp | 9691ab5a2084eb0024452a084bcd7a8a485512d9 | [
"LLVM-exception",
"Apache-2.0"
] | permissive | Sibylau/mlir-aie | b15edd5cae0da05a8e8fc2cab2add49fcd194564 | 63ce4152885af66bf245bb9a2a25276fdaec67f3 | refs/heads/main | 2023-08-17T06:10:28.073855 | 2021-09-22T16:52:10 | 2021-09-22T16:52:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,075 | cpp | AIECreateFlows.cpp | //===- AIECreateFlows.cpp ---------------------------------------*- C++ -*-===//
//
// This file is licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
// (c) Copyright 2019 Xilinx Inc.
//... |
64e9e87ba074d8327e8aa406f74aa5fd7ccacf77 | 06db767eba25a66e91335b10d657035e0fa7068f | /NLEquation.h | 302a17782a2ad20d6099df894b767bca757afd68 | [] | no_license | zh4545666/PersonalMethodLibrary | 946b205e8646f1f4d860294573c120b97362937b | 8bbc8edd3aa85a47c1279af6fc0070b5cb63bf02 | refs/heads/master | 2020-04-12T18:12:29.310186 | 2019-03-04T02:31:16 | 2019-03-04T02:31:16 | 162,672,786 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,566 | h | NLEquation.h | #pragma once
#ifdef AFX_CLASS
#define AFX_EX_CLASS _declspec(dllexport)
#else
#define AFX_EX_CLASS _declspec(dllimport)
#endif
#include "LEquation.h"
#include "Matrix.h"
#include "Complex.h"
class AFX_EX_CLASS CNLEquation
{
//
// 公有接口函数
//
public:
//
// 构造与析构
//
CNLEquation();
virtual ~CNLEquatio... |
25a8cfabd76d15e888ee9baac9b6abc33db98ef9 | ce75378df49c4d3893614b18874192b64798055c | /Labarator13/1.4/Fig12_03New.cpp | 63fe8f91945c1858413880aa255a0f6bcc63ca2e | [] | no_license | ArtyomLazyan/Labaratorner-C-C- | 2c601b446340f509da510795f3f2cb4ec25224ab | f5528cd5d9f3c87970502a8df677aaaf2530a576 | refs/heads/master | 2021-08-20T00:17:50.433860 | 2017-11-27T19:29:56 | 2017-11-27T19:29:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 719 | cpp | Fig12_03New.cpp | #include <iostream>
using std::cout;
using std::cin;
using std::endl;
#include "tstack1New.h"
int main()
{
Stack Stack5( 5 );
double f = 1.1;
while ( Stack5.push( f ) ) { // success true returned
cout << f << ' ';
f += 1.1;
}
cout << "\nStack is full.\n";
while ( Stack5.pop( &f ) ... |
7bd53040381a6331bc6dfc9db71534f69eab8bc0 | 193f353dbf28356f605474aa34661c7e8c557045 | /solutions/plus-minus.cpp | 30efb41264668be564ab3de244052d23f2f01e4c | [] | no_license | caddok/CPlus-Excersises | 7224f3cdebba335aa3df09fde567335cb2a9953f | 96cd4638b659058bf80e27dc0e1d76dd4ca5871d | refs/heads/master | 2021-05-07T14:55:36.157158 | 2017-12-04T21:28:12 | 2017-12-04T21:28:12 | 109,957,850 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 813 | cpp | plus-minus.cpp | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <iomanip>
using namespace std;
int main(){
int n;
cin >> n;
vector<int> arr(n);
for (int i = 0; i < n; i++)
{
cin >> arr[i];
}
float positiveCount = 0;
float negativeCount = 0... |
453247ec99ffd77da3506cc5fdc9eef6848d6627 | 19194c2f2c07ab3537f994acfbf6b34ea9b55ae7 | /android-32/android/util/AndroidException.def.hpp | 1d999aa562f3456dcbd4b0179fd983546e37dea7 | [
"GPL-3.0-only"
] | permissive | YJBeetle/QtAndroidAPI | e372609e9db0f96602da31b8417c9f5972315cae | ace3f0ea2678967393b5eb8e4edba7fa2ca6a50c | refs/heads/Qt6 | 2023-08-05T03:14:11.842336 | 2023-07-24T08:35:31 | 2023-07-24T08:35:31 | 249,539,770 | 19 | 4 | Apache-2.0 | 2022-03-14T12:15:32 | 2020-03-23T20:42:54 | C++ | UTF-8 | C++ | false | false | 734 | hpp | AndroidException.def.hpp | #pragma once
#include "../../java/lang/Exception.def.hpp"
namespace java::lang
{
class Exception;
}
class JString;
class JThrowable;
namespace android::util
{
class AndroidException : public java::lang::Exception
{
public:
// Fields
// QJniObject forward
template<typename ...Ts> explicit AndroidExceptio... |
0643b5e91dcaf8d09229b2124752f7c6a44454eb | 230e9c6717e385b1b5bbf265fb681d0c75a758db | /ps1/test.cpp | e9f25f708b58fb91e0eda2d651d09308fb20314f | [] | no_license | paglenn/CHEM220B | b3b1e5c648be32c54c587ffd7be108c4d18cd102 | a6ce9670329cd96ba4faa036d6542a6edfc09c0c | refs/heads/master | 2021-01-01T16:21:01.124496 | 2015-09-25T06:55:20 | 2015-09-25T06:55:20 | 42,403,307 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 168 | cpp | test.cpp | #include<cholmod.h>
#include<vector>
#include<Eigen/Dense>
using Eigen::MatrixXd;
int main() {
vector< vector<double> > myvec;
MatrixXd m(2,2);
return 0;
}
|
9a61ff981f1ad0a57120989692d1ec9068d7a6bd | 9f69d7c9dab0566daf8cf72936ffd7de42e116f4 | /LIMoSim/mobility/followerModel/followermodel.cc | 964cffebdaae26e92c90fdc83f4d11982acf4607 | [
"MIT"
] | permissive | inet-framework/LIMoSim | 3ef7b590e58148ed9f246e093a7bfdba8a845286 | d9bdcefe82d41d4c8fd665a268843763fce59363 | refs/heads/master | 2020-03-24T21:13:24.970544 | 2019-08-08T12:59:09 | 2019-08-08T13:12:20 | 143,019,523 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 221 | cc | followermodel.cc | #include "followermodel.h"
namespace LIMoSim
{
FollowerModel::FollowerModel(Car *_car, const std::string &_type) :
p_car(_car),
m_type(_type)
{
}
std::string FollowerModel::getType()
{
return m_type;
}
}
|
f321a200db59e7c091118d106f6a0395407de2bd | 9ae7b1e58f02623aef5a2c3186fb24163d27f38f | /SplayTree/SplayTree/src/Main.cpp | 43c52e2bcdf205e2e43cc655741ee782bcef9788 | [
"MIT"
] | permissive | guangylegend/Data-Structures | cc148ceacdcb812a6522d7ce49efb7b199c57fa4 | 0e39034833e7e3be9cb1b2193f86db24c8df5bba | refs/heads/master | 2020-04-10T23:21:58.766949 | 2018-03-26T20:10:50 | 2018-03-26T20:10:50 | 124,306,307 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 502 | cpp | Main.cpp | #include<iostream>
#include<algorithm>
#include<vector>
#include<list>
#include"../include/AVLTree.h"
#include"../include/SplayTree.h"
using namespace std;
int main() {
AVLTree* avlTree = new AVLTree();
vector<int> res1;
avlTree->insert(1);
avlTree->insert(3);
avlTree->insert(5);
avlTree->erase(1);
avlTree->... |
48daf56a100301c48f1c0478f02c4c131851424d | ad8371cd760a78d026085408b6ea9aefaffd359c | /instance/problem/continuous/multi_objective/UF/UF07.h | db88744fe97c5a20cd819b63bd99565fea5e4ceb | [] | no_license | Changhe160/OFEC_Alpha | f117384c4c026316b43c62849bf86c9e975ab4a5 | e8fe5dd7928e4051e94cc8bd574d548794c76d26 | refs/heads/master | 2021-01-19T20:55:34.735993 | 2020-02-27T10:01:16 | 2020-02-27T10:01:16 | 101,239,434 | 11 | 8 | null | 2017-11-08T06:59:28 | 2017-08-24T01:14:55 | C++ | UTF-8 | C++ | false | false | 295 | h | UF07.h | #ifndef UF7_H
#define UF7_H
#include "UF.h"
namespace OFEC {
class UF07 final : public UF {
public:
UF07(param_map &v);
UF07(const std::string &name, size_t size_var);
~UF07() {}
void initialize();
private:
void evaluate_objective(real *x, std::vector<real> &obj);
};
}
#endif
|
ad387cb35c0072690e65d6767b3ec27c219549a5 | 7de7c3c89d0547fa886c79949b63a27393d20829 | /OrderBook/src/orderbook/OrderList.h | b8b5eef19d309a987db9e2433f9e1891e9baccc1 | [] | no_license | encodeco/BitExchange | 2622e1cd817cb0f0309bd6c3166fd58a86b87389 | 1454d0ce5d52d78df9c47596b9b5e76e0d8e9a17 | refs/heads/master | 2020-04-23T21:53:40.605328 | 2018-12-11T08:06:53 | 2018-12-11T08:06:53 | 171,484,068 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 948 | h | OrderList.h | #pragma once
#include <list>
#include <memory>
class Order;
class OrderList
{
private:
std::list<std::shared_ptr<Order>> order_list;
unsigned int volume;
public:
OrderList();
~OrderList();
public:
std::shared_ptr<Order> get_head_order() { return *(order_list.begin()); }
std::shared_ptr<Order> get_tail_order()... |
0090530f2636a044d32ed817455d61074841e908 | 60705df548fcefe97c7f2b9bfbe5266526059560 | /Source/OrdersAbilities/Classes/Orders/RTSOrderWithBehavior.h | 5bdca85c8711a0e7f262cae9a6c9fbde678a7e80 | [
"MIT"
] | permissive | DaedalicEntertainment/ue4-orders-abilities | c390487ab70cda10dd00d903863f6ee1069aeac1 | 11fba4da44ec414a92a4e9a673a2a75613075af2 | refs/heads/develop | 2021-07-05T09:38:53.076994 | 2019-04-08T09:35:43 | 2019-04-08T09:35:43 | 179,948,245 | 185 | 57 | MIT | 2020-10-09T01:51:57 | 2019-04-07T10:12:29 | C++ | UTF-8 | C++ | false | false | 2,146 | h | RTSOrderWithBehavior.h | #pragma once
#include "CoreMinimal.h"
#include "Orders/RTSOrderWithDisplay.h"
#include "RTSOrderWithBehavior.generated.h"
class AActor;
class UBehaviorTree;
/**
* Order with custom behavior in form of a behavior tree.
*/
UCLASS(BlueprintType, Abstract, Blueprintable)
class ORDERSABILITIES_API URTSOrderWithBehavior... |
9ee19a7c8a7ee93eea704c0779589144824650d9 | 9b85f76be1070dcf983012524366cfeb517e6219 | /Magic/Torment/CardTorment.h | c701632b40462c26645f4b2c9962e54e7800774a | [] | no_license | Homebrew-Engine-Archive/botarena | 691d35595a936c7adf5e0a495a5fbf35812244ef | 044e2713315b165002f2e06911ce7455de2f773f | refs/heads/main | 2023-05-10T15:58:08.520085 | 2021-03-17T13:11:56 | 2021-03-17T13:11:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 30,261 | h | CardTorment.h | #pragma once
//____________________________________________________________________________
//
__declspec(dllexport)
counted_ptr<CCard> _cdecl CreateCard(CGame* pGame, LPCTSTR strCardName, StringArray& cardClassNames, UINT uID);
//____________________________________________________________________________
//... |
36a2489680a1d3f9bdb7c81df5f001f8d891c594 | 7206b6829a9bbb72b69c884e67a4f0716e5398cb | /lab-02-vector-addition/solution/vector_addition.cpp | 2c49321fa1bd7ea678eac21a4726bd7d836f9a28 | [] | no_license | umar456/training | 7c426c50712acfb1598230d4eebe74786ac9f756 | 8a8295de8fb6482e7ec442b03c5fe1af60d3956d | refs/heads/master | 2021-01-11T20:30:16.495158 | 2017-05-23T04:46:59 | 2017-05-23T04:46:59 | 79,130,444 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,653 | cpp | vector_addition.cpp | /*
ArrayFire Training Day 1
Lab: Vector Addition
This program will add two vectors and store the result in a third vector
using the FPGA
*/
#define __CL_ENABLE_EXCEPTIONS
#include "cl_helpers.hpp"
#include <CL/cl.hpp>
#include <iostream>
#include <vector>
using namespace std;
using namespace cl;
int main(v... |
4cb250c47866f9557a3c9c59407a70443c6e81ce | a5484aff3a74352ac63e0210e7094839f0e45e7d | /opengl-engine/src/util/Util.h | 8ce0341f00796b766b30861963dfd7cee1decb9c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | CaioIcy/ICG_OpenGL | f60882ac9cceb770a3b6c76d2908a6ac28aa9735 | fc056514e4fad8139e1bc72a54b1023c1682d68d | refs/heads/master | 2021-01-10T19:33:43.742853 | 2015-06-19T02:12:14 | 2015-06-19T02:12:14 | 32,032,222 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 168 | h | Util.h | #pragma once
#include <string>
namespace ogle {
namespace util {
std::string FileContentsToString(const std::string& path);
} // namespace util
} // namespace ogle
|
f82b9b22224464f4c409a9df98e6f61a3f2b4167 | 711500cddf75d009468e08fe737956b2f550e189 | /Row.h | 37eedf7e62618b09154daf2b554094d376608758 | [] | no_license | ryanf323/ISTE100P1 | 2a33f7df5f57696673e0fa8e8399d9a4aa75b0a3 | e44bafbbff36edfab0e72ca24c34fedb900b4a91 | refs/heads/master | 2021-01-20T07:51:08.916798 | 2014-03-02T17:20:05 | 2014-03-02T17:20:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 854 | h | Row.h | /*****************
* ISTE-101
* Project 1
* Row Header File
* Edward Alvarez Mercedes
* Ryan Flynn
******************/
#include <string>
#include <iostream>
using std::cout;
using std::string;
class Row {
private:
string number;
string time;
string source;
string destination;
... |
caca0f659b7bb55caf6b84c4ed8c226684637225 | 3bfdf726519f4c6871b19a5312bc29643a35ed35 | /src/Evel/UdpSocket_WF.h | 45691e63d2309d1b1078e56a5b7d3c6ac7345af1 | [
"Apache-2.0"
] | permissive | hleclerc/Evel | 3e9ee6d850b01ad01ede4b76ae5e1617313adfca | c607adda555f417dfc9fb4de310c07c48ea3642f | refs/heads/master | 2021-01-20T12:54:56.993183 | 2017-03-23T10:59:20 | 2017-03-23T10:59:20 | 82,668,811 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,180 | h | UdpSocket_WF.h | #pragma once
#include "UdpSocket.h"
#include <functional>
namespace Evel {
/**
*/
class UdpSocket_WF : public UdpSocket {
public:
using TF_rdy = std::function<void ( UdpSocket_WF *socket )>;
using TF_parse = std::function<void ( UdpSocket_WF *socket, const InetAddress &src, char **data, uns... |
d9449c6487094be9dcc91e47f031ca48f3a8b3cf | 2e66fc50589d666a0cd8b2938bf74178813dbdf9 | /testC++++/239_滑动窗口最大值.hpp | 506ee79ab73083e83e4ec5b16af5b1827012a5d2 | [] | no_license | kevinMkY/CPP_ALGO | dfae7e15d9ce75245b90ca1e6fe1e00ca13bee13 | 9bddfc60a9698e261aced5a4d6e4f90b3cc78865 | refs/heads/master | 2023-03-15T23:06:44.238375 | 2021-03-07T18:41:01 | 2021-03-07T18:41:01 | 294,155,521 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 188 | hpp | 239_滑动窗口最大值.hpp | //
// 239_滑动窗口最大值.hpp
// testC++++
//
// Created by ykh on 2020/9/17.
//
#ifndef _39_________hpp
#define _39_________hpp
void _239_test();
#endif /* _39_________hpp */
|
a465c848c472304ab1d34ea99510c52b3456dd7c | d858e33c1ee0a545ff14c5b7e92b76f3de4d3550 | /Q151.cpp | e19559646d21c5372aa8a26e51077e359bdd9569 | [] | no_license | haoyuan2016/leetcode | c00531c5dd9925e2a35a85e606dcb2bf053bb804 | c15bb4fe3b3230815afe69f475d1349fb3d3320c | refs/heads/master | 2021-01-11T01:04:27.706152 | 2017-02-15T22:26:41 | 2017-02-15T22:26:41 | 70,842,892 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 506 | cpp | Q151.cpp | class Solution {
public:
void reverseWords(string &s) {
if(s.empty()) return;
stringstream ss(s);
string tmp;
stack<string> st;
while(getline(ss, tmp, ' '))
{
if(!tmp.empty())
st.push(tmp);
}
string res = "";
while(!... |
0be383d007ddfbd01bdbd90002d3310632f50728 | 3d9e2d58cb310dd5e3b8e1aca5979d66b81c6510 | /algorithm/454_B.cpp | 4955d3ee77817489ed4d5c10c3f18c6784b213b1 | [] | no_license | praveen4698/competitiveProgrammingWithCpp | 906f1ec5d3689755ff9c2547f987ae96ec8f8387 | fbeeb8a9ccc7ea45201889415adfea07ab5dc92c | refs/heads/master | 2021-07-08T21:19:20.250388 | 2020-09-20T08:40:49 | 2020-09-20T08:40:49 | 193,205,068 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 748 | cpp | 454_B.cpp | #include<bits/stdc++.h>
using namespace std;
#define PI 3.14159265
#define ll long long int
#define S(x) scanf("%d",&x)
#define S2(x,y) scanf("%d %d",&x,&y)
#define S3(x,y,z) scanf("%d %d %d",&x,&y,&z)
#define P(x) printf("%d\n",x)
static const int INF = 0x3f3f3f3f;
static const long long INFL = 0x3f3f3f3f3f3f3f3fLL;
v... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.