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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
84451056c0a5b5e849e341536d930908c6032345 | 6d8a4587a1819f2516c980d366d33527c9a54f85 | /Source/Editor/SkillSystemEditor/Public/SkillSystemEditor.h | 45c031fc9743960bae45cc4259c1fc066dba6359 | [] | no_license | tsxy2007/SkillSystem | cb3bf9bc71acbd4c09b22c24cae11b5ad27afdef | 6214d63189716680132c9174439b8ae5c101b07b | refs/heads/master | 2020-08-08T21:19:37.483110 | 2020-02-25T12:24:35 | 2020-02-25T12:24:41 | 213,922,321 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,808 | h | SkillSystemEditor.h |
#pragma once
#include "CoreMinimal.h"
#include "ModuleManager.h"
#include "SkillGraphTypes.h"
#include "Modules/ModuleInterface.h"
#include "Toolkits/IToolkitHost.h"
#include "Toolkits/AssetEditorToolkit.h"
#include "AssetTypeActions_Base.h"
DECLARE_LOG_CATEGORY_EXTERN(LogSkillEditor, Verbose, All);
/** Module inte... |
ddb3ae58340359411bd9153d483dfc1b2146f874 | 8f1f612f6e8fc99a315947ce89f437b2dfa5cc8d | /micro/shootingStars.cpp | 6b95840d85e9c15d91e1afced80fbd620d8c4b5e | [] | no_license | rafarubim/microcontroladores | ef1cc22a1fc5053c535d651b8483fd0e94d10cce | b9bc55fbf04f61710427d2eded051515363e3662 | refs/heads/master | 2020-06-06T06:55:42.060604 | 2019-07-11T01:17:03 | 2019-07-11T01:17:03 | 192,671,168 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,070 | cpp | shootingStars.cpp | #include "Lcd.hpp"
#include "Animation.hpp"
#include "Graphics.hpp"
#include <arduino.h>
#include "Pos.h"
#include "music.h"
#include <GFButton.h>
#include "Highscore.hpp"
#include "StateMachine.hpp"
#define WALL_AMOUNT 3
static Note shootingstars[] = {{Dsharp5, 1500 / 2, 375 / 2}, {Dsharp5, 250 / 2, 250 / 2}, {E5, 5... |
3d88813a80d78a0a7df7a62fcee37a76ec529cbf | 4166fb27eb810e9dd6b94220f484e99ec977a08f | /cli_tcp.cpp | b18050676ff69688c5f8fe33f15d0f869f40c502 | [] | no_license | alamasm/ClusterAnalyzer | 8dcdcef1add508238355a35e9daecc2f67b87fbf | 39247a0d4641a3e6c6ba4cd9b66be5e6da622a2c | refs/heads/master | 2020-08-31T18:58:50.960626 | 2020-06-01T14:07:48 | 2020-06-01T14:07:48 | 218,760,805 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,553 | cpp | cli_tcp.cpp | #include <iostream>
#include <fstream>
#include <sys/types.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <string.h>
#include <string>
#include <queue>
using namespace std;
int main()
{
// Create a socket
int sock = socket(AF_INET, SOCK_STREAM, 0);
if (so... |
f02a24c567d1db9c333137f4120ff8f5f7d73dce | 9112d26b23797bb934e0a97c0efedded02f23f03 | /main.cpp | 246df75eab65cad778330183271683c8b9507fbf | [] | no_license | Khamekaze/Endians-Cpp | b5ff7d6effad768c410077b6da2dcc7fc68c3d2f | bfafe26e5ada1ec81d8e5b37e4b9d4bceb7448a6 | refs/heads/main | 2023-08-26T09:03:59.742852 | 2021-10-15T06:28:23 | 2021-10-15T06:28:23 | 417,071,286 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,319 | cpp | main.cpp | #include <iostream>
#include <fstream>
#include <string>
#include <time.h>
#include <bitset>
using namespace std;
void generateInputFile() {
ofstream outfile("generated_numbers.txt");
int min = 1;
int max = 65535;
srand(time(NULL));
for(int i = 0; i < 10; i++) {
int output = min + (rand()... |
0fad348c65032628bdc13172f77c2312549a24db | 832c45ae5979dbcf4e07bc3b096e076d4d2d83e7 | /20170115 - FBHC 2017/beach_umbrellas.cpp | 01b6d812d2c920e19d9162a27866592522218c00 | [] | no_license | personaluser01/Algorithm-problems | 9e62da04724a6f4a71c10d0d3f0459bc926da594 | 9e2ad4571660711cdbed0402969d0cb74d6e4792 | refs/heads/master | 2021-01-03T12:08:55.749408 | 2018-10-13T10:59:02 | 2018-10-13T10:59:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,261 | cpp | beach_umbrellas.cpp | #include <bits/stdc++.h>
using namespace std;
const int mod = 1e9+7;
int mul(int x,int v){
if(v < 0) return 0;
if(v == 0) return 1;
int tmp = mul(x,v/2);
if(v&1) return (1ll*tmp*x)%mod;
else return (1ll*tmp*tmp)%mod;
}
vector<int> r;
int F[2222];
int muln[8000888];
int muln_1[8000888];
void run(int... |
465a6e49d73542f30d8499277bb3ee42b24f841d | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/90/dd8fb81f5c351e/main.cpp | d0c5b871f1bb40916994493509cb66abddad5db8 | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 419 | cpp | main.cpp | #include <iostream>
#include <limits>
auto a = std::numeric_limits<long>::min();
int main(int ,char**)
{
unsigned int notOne = static_cast<unsigned int>(-1);
std::cerr << notOne << std::endl;
unsigned int one = -static_cast<unsigned int>(-1);
std::cerr << one << std::endl;
unsigned int absMin = st... |
dbe333e40ca691a644f399c3637ef371db9c9a10 | eb1db3252e75082352a3b34c4aa880cca1a3d55b | /programmers/programmers/skillTree.cpp | 54f748034b9f68f9918494f5776d42ee94dbac72 | [] | no_license | gjsld1/AlgorithmStudy | 65153af303a60061fea40e48fb00420cef067f8c | a2698e95c5f3a648f1dcb9e855d9adfaa2f119c7 | refs/heads/master | 2021-07-11T15:11:48.541495 | 2020-07-08T07:51:04 | 2020-07-08T07:51:04 | 177,080,222 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,100 | cpp | skillTree.cpp | //
// skillTree.cpp
// programmers
//
// Created by 신예지 on 2020/06/11.
// Copyright © 2020 신예지. All rights reserved.
//
#include <iostream>
#include <string>
#include <vector>
#include <map>
using namespace std;
int solution(string skill, vector<string> skill_trees) {
int answer=0;
map<char,int> m;
... |
53d3fd7367aa4997eda61b68aa595b0253a6766e | 63c71060f36866bca4ac27304cef6d5755fdc35c | /src/VpdParser/GicProcNamevalue.cpp | ab0f13cc4f83fae196fb3cc7e37df63269d41c77 | [] | no_license | 15831944/barry_dev | bc8441cbfbd4b62fbb42bee3dcb79ff7f5fcaf8a | d4a83421458aa28ca293caa7a5567433e9358596 | refs/heads/master | 2022-03-24T07:00:26.810732 | 2015-12-22T07:19:58 | 2015-12-22T07:19:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,892 | cpp | GicProcNamevalue.cpp | ////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2005
// Packet Engineering, Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification is not permitted unless authorized in writing by a duly
// appointed officer of ... |
fc274d4459f9dfa8cdd161e98aba8470bcf9b594 | 0543967d1fcd1ce4d682dbed0866a25b4fef73fd | /W9/T3/12.cpp | f2d41296a06b02918ce250154d8846bcd624c0d2 | [] | no_license | Beisenbek/PP12017 | 5e21fab031db8a945eb3fa12aac0db45c7cbb915 | 85a314d47cd067f4ecbbc24df1aa7a1acd37970a | refs/heads/master | 2021-01-19T18:42:22.866838 | 2017-11-25T12:13:24 | 2017-11-25T12:13:24 | 101,155,127 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 268 | cpp | 12.cpp | #include <iostream>
#include <string>
#include <cmath>
#include <algorithm>
#include <stdio.h>
#include <sstream>
using namespace std;
int main(){
string s("test");
int n = s.size();
char c[n];
s.copy(c,n,0);
c[n] = '\0';
cout << c << endl;
return 0;
} |
4ab2c4c382b8cd6b09f3bbae66b8a6b70dc2ab2c | 94a15dc3e12ffaa5d2670f313c2011c900170633 | /source/editor/gui/EditorMenu.cpp | fe19a86d0c6a95a60b7bde567e969dc0b13b5f38 | [
"MIT"
] | permissive | Slattz/NLTK | 21c5c4a54c262479f9250c0af627338ffae691b0 | b4e687c329ac4820a02fd45ce13d8afdddd26ef3 | refs/heads/master | 2021-06-04T23:16:38.093563 | 2020-07-19T22:49:08 | 2020-07-19T22:49:08 | 132,379,138 | 26 | 10 | MIT | 2018-06-14T07:47:12 | 2018-05-06T21:57:12 | C++ | UTF-8 | C++ | false | false | 8,028 | cpp | EditorMenu.cpp | #include <3ds.h>
#include <string>
#include <citro2d.h>
#include <algorithm>
#include "CTRFont.hpp"
#include "gfx.h"
#include "save.h"
#include "e_utils.h"
#include "utils.h"
#include "InputManager.h"
#include "imagebutton.h"
#include "menus.h"
#include "core/gui/ConfigMenu.hpp"
#include "core/gui/AboutMenu.hpp"
#inclu... |
6637b1112862227cedab496cd20a4794a0cb2c99 | cdf361170f46d6009d251014af788f1328ebafce | /src/MatrixKeyPadLib/MatrixKeyPad.h | a3f4d0c3069b9fe7efadfe24c1fd0621b3326d5a | [] | no_license | enrico-bagattin/mercury | bafc6582f43b4eb3e929f3a89740972aa13234f9 | 084ddd0d6a2f043c72ec000f0e0f7fa41e4fcff9 | refs/heads/main | 2023-02-26T04:09:12.938451 | 2021-01-27T18:13:57 | 2021-01-27T18:13:57 | 333,365,908 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,407 | h | MatrixKeyPad.h | /*
* Author: Enrico Bagattin
*
* This library checks the keypad input
*
* Connection diagram for keypad pins:
* Arduino PIN 33 =================== Matrix keypad 1
* Arduino PIN 35 =================== Matrix keypad 2
* Arduino PIN 37 =================== Matrix keypad 3
* Arduino PIN 39 ========... |
c4f25f346d22cb2336c3830ebb01dd27741acb19 | 27a36481d947a5de37032af60d2c4d95b1fcdaa9 | /src/ofxDragView.h | 10ab959900ae714bceca667644f818903aa463c0 | [] | no_license | erikccoder/ofxDragView | 6b4ea96ee6e7ce774a0a6dcd9692650908ac6d30 | f45b0665de40d17b2477d18d6c84eabf5f1efcab | refs/heads/master | 2020-05-17T14:48:56.199651 | 2015-08-04T08:39:30 | 2015-08-04T08:39:30 | 25,672,598 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 682 | h | ofxDragView.h | //
// ofxDragView.h
//
//
// Created by erik on 7/21/14.
//
//
#pragma once
#include "ofxMSAInteractiveObject.h"
class ofxDragView : public ofxMSAInteractiveObject
{
protected:
bool onPressed;
int saveX, saveY;
public:
ofxDragView(){}
ofxDragView(int x, int y, int w, int h);
virtual void s... |
88cb3aea34eb0a576319b0a086f879181d2044d6 | 7d776ab7f9c268505ccb0fb226514ff4e5a221b3 | /5.2 - factorials/5.2/52.cpp | 28c269b5d02b8c7ee6384c4c70603c30884b050c | [] | no_license | ARRENl/c-plus-plus-book-exercises | 0ae1589d5df93f04f6095bd28cf6d33753942665 | a9591f4e7a6ba276eacceeb31acf7bf03775c949 | refs/heads/master | 2020-05-30T11:05:29.488931 | 2013-11-07T13:44:45 | 2013-11-07T13:44:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 384 | cpp | 52.cpp | #include <iostream>
#include <array>
const int AS = 101;
int main()
{
std::array<long double, AS> factorials;
factorials[1] = factorials[0] = 1LL;
for (int i = 2; i < AS; i++)
factorials[i] = i * factorials[i-1];
for (int i = 0; i < AS; i++)
std::cout << i << "! = " << fa... |
f82fc611fbcd1ea2cabd82395e33f9ff1132d1b7 | 49b878b65e9eb00232490243ccb9aea9760a4a6d | /net/quiche/common/platform/impl/quiche_string_piece_impl.h | 5c68910f264863267dd30a46babff44d7be1d8ae | [
"BSD-3-Clause"
] | permissive | romanzes/chromium | 5a46f234a233b3e113891a5d643a79667eaf2ffb | 12893215d9efc3b0b4d427fc60f5369c6bf6b938 | refs/heads/master | 2022-12-28T00:20:03.524839 | 2020-10-08T21:01:52 | 2020-10-08T21:01:52 | 302,470,347 | 0 | 0 | BSD-3-Clause | 2020-10-08T22:10:22 | 2020-10-08T21:54:38 | null | UTF-8 | C++ | false | false | 865 | h | quiche_string_piece_impl.h | // Copyright (c) 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_QUICHE_COMMON_PLATFORM_IMPL_QUICHE_STRING_PIECE_IMPL_H_
#define NET_QUICHE_COMMON_PLATFORM_IMPL_QUICHE_STRING_PIECE_IMPL_H_
#include "thi... |
145d63f7deb3f58f4cdbe83caa12a7970bded71a | 6de98b3fcf6df938d64bb93ccc1a9574af0f1144 | /ga/scheme_mutator.hpp | 9d4eb6ccf397ad18a4ddfa486cb3d36a768fab8c | [] | no_license | lysevi/concret | 4377fe53a97705747ca4615af5f76eb7dfd0ce20 | fb8d646cdeca58264adf9df05cff0804c4492991 | refs/heads/master | 2021-01-20T21:49:33.273715 | 2011-03-20T07:52:56 | 2011-03-20T07:52:56 | 1,220,329 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 369 | hpp | scheme_mutator.hpp | #ifndef _scheme_mutator_
#define _scheme_mutator_
#include <ga/bin_mutator.hpp>
#include <ga/schema.hpp>
class scheme_mutator:virtual public bin_mutator
{
public:
scheme_mutator(int bit_count);
dna operator()(const dna&d,double percent);
void set_scheme_db(const scheme_db&sdb);
bool in_scheme(int value,int po... |
38a2549ccaf9cbda3000d4c4a4a872d5ad192325 | 03f59d74f2b447e451424991e6a9b04f77e1e2e3 | /Workshop1/w1p2/Utils.h | 55a1b433a17db44f81a41c932b053b9f38ef89e1 | [] | no_license | ashcyc673/Introduction-to-Object-Oriented-Programming | ec7107f07cfdc9a5c2f44f4abe1853f9974334f3 | e88acec4f1410d90c71700305e6071d720024e7a | refs/heads/master | 2023-05-05T10:21:02.121205 | 2021-05-25T18:39:38 | 2021-05-25T18:39:38 | 370,779,307 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 622 | h | Utils.h | //==============================================
// Name: Chiao Ya Chang
// Student Number: 130402191
// Email: cchang76@myseneca.ca
// Section: NEE
// Date: 05/31/2020
//==============================================
// Workshop: 1
// Part: 2
//=============================... |
c44a3ef59da69499a1a7c459c25e0643cd0f8138 | a04fb0464de295fc8ebf463dda16ef77d6226e65 | /white/week3/task4/main.cpp | 2afd3deb039b393f39eda21b1d3078151f8359b0 | [] | no_license | poul250/coursera_cpp | 0f6fb7c8846d5f53e25ca292fa5bd1ea32dbe0cd | 75a37594b41364c097d34aa20a51269b2bf7080f | refs/heads/master | 2022-09-07T05:00:51.765614 | 2020-05-28T18:28:46 | 2020-05-28T18:28:46 | 267,665,284 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,297 | cpp | main.cpp | #include <string>
#include <vector>
#include <map>
#include <algorithm>
class Person {
public:
void ChangeFirstName(int year, const std::string& first_name) {
first_names.emplace(year, first_name);
}
void ChangeLastName(int year, const std::string& last_name) {
last_names.emplace(year, last... |
6179ddaf524ad693c2e6858dfd615a7bffc95b06 | a11b6fe8e9b6e59ebcc288ead40ee6548bffb88c | /libsrc/utils/Stats.cpp | 4cb22c5356701816bf53b33055839e6f00d25bcd | [
"MIT"
] | permissive | redPanther/hyperion.ng | c9781434c4d0a7e9a02c7f292d16472d86e4e6be | a8bafd5f62ea984e2d5e8646a92b6413a8bd0cfb | refs/heads/master | 2020-04-04T19:52:00.459684 | 2017-08-04T21:23:58 | 2017-08-04T21:23:58 | 61,221,802 | 3 | 0 | null | 2016-06-15T16:08:12 | 2016-06-15T16:08:11 | null | UTF-8 | C++ | false | false | 4,194 | cpp | Stats.cpp | #include <utils/Stats.h>
#include <utils/SysInfo.h>
#include <HyperionConfig.h>
#include <leddevice/LedDevice.h>
// qt includes
#include <QJsonObject>
#include <QJsonDocument>
#include <QNetworkInterface>
#include <QCryptographicHash>
#include <QFile>
#include <QFileInfo>
#include <QDir>
#include <QDateTime>
Stats::S... |
6ad96b25159e5824ca97ab2fc08cb35fe52213b0 | 35187ece654f350b8f4a5b013b2ed2c4c7b9c119 | /OOAD Assignment 2 LMS/LibItem.cpp | b1a8f09eb8686301a3759cdf928e55786a09bf68 | [] | no_license | shaoormunir/library-management-system | 47b1ca7e99cd469652a2657f6e6c80e319c16bb3 | 3a16a806e01b7d6a4901d814ff9e324c9d6db9ab | refs/heads/master | 2021-06-08T20:24:20.765207 | 2016-10-04T11:01:28 | 2016-10-04T11:01:28 | 69,747,374 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 207 | cpp | LibItem.cpp | #include "LibItem.h"
LibItem::LibItem(string name)
{
this->name = name;
}
void LibItem::add_loanItem(LoanItem * item)
{
this->loans.push_back(item);
}
string LibItem::get_name()
{
return this->name;
}
|
f1b9684ed74084f64546da5b16385ea81e37b742 | cf99607a8145983b9ba64c526361ea1df39ebc34 | /src/file_data_source.h | e3cd2fda89026490cf18ad009ae8e08a37824070 | [
"BSD-2-Clause"
] | permissive | RoutingKit/RoutingKit | 7c791c15efae85fec4dff047750a3ce0b7591ddc | 13bc2f49f41d2e8a750a299487705ca7217d634d | refs/heads/master | 2023-07-07T02:34:04.505809 | 2022-06-06T17:48:08 | 2022-06-06T17:48:08 | 57,213,865 | 343 | 125 | BSD-2-Clause | 2023-06-22T11:02:02 | 2016-04-27T13:03:36 | C++ | UTF-8 | C++ | false | false | 1,063 | h | file_data_source.h | #ifndef FILE_DATA_SOURCE_H
#define FILE_DATA_SOURCE_H
#include <functional>
#include <string>
#ifdef ROUTING_KIT_NO_POSIX
#include <stdio.h>
#endif
namespace RoutingKit{
class FileDataSource{
public:
FileDataSource();
FileDataSource(const char*file_name);
FileDataSource(const std::string&file_name);
unsigned ... |
add2689d827eb3cc8ad254829bcb1cbdedef2c9a | 6bab8f0c847bb63fb1505756e47a814068689b31 | /Весна/Suwon - 21 февраля/M.cpp | 616ee677b94053945078e224087f314d5bec9852 | [] | no_license | AlexFirfarov/olympic-programming | 14f21ca1c6d47243b7028029dd0df2f849f021b6 | 209ce18577dd315f52d660ba0bb1fccadf7f53d6 | refs/heads/main | 2023-08-20T22:04:05.296753 | 2021-09-27T16:13:28 | 2021-09-27T16:13:28 | 410,950,484 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 718 | cpp | M.cpp | #include<iostream>
#include<map>
#include<vector>
#include<string>
#include<algorithm>
#include<iterator>
#include<cmath>
using namespace std;
int my_abs(int N) {
if (N < 0) {
return -N;
}
else return N;
}
int main() {
int A, B, C, D;
while (true) {
cin >> A >> B >> C >> D;
if (A ==... |
bf210036c40f9617fa1753f9549c1026bac93130 | 774e6e501bd3ad2c84c8e97e6c73364278b92f85 | /Game/Game.h | b749682bb49639300d27b1a024e16b4d6bb71d83 | [] | no_license | dyu2021/SFML-Game | 47555357782d0f64f70715ed14ecdff82ec0851a | ec7e565456338ff84c54096fe9bf5ac069593afd | refs/heads/master | 2020-04-11T14:45:52.407236 | 2018-12-20T21:07:33 | 2018-12-20T21:07:33 | 161,867,097 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,684 | h | Game.h | //
// Created by bswenson3 on 11/9/16.
//
#pragma once
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include "GameObject.h"
#include "RegularGameObject.h"
#include "AnimatedGameObject.h"
#include "EnemyGameObject.h"
#include <vector>
#include <iostream>
#include "resource_path.h"
#include <sstream>
#include ... |
5b70158cc75be5c2822ccd92fabe98535fda6579 | f64ef53f9a521f29d78d6b061603670279647525 | /03/main.cpp | 337ce5ed64ba8d902d19f174cfbdc01ca2912503 | [] | no_license | Mash-Mash/msu_cpp_autumn_2019 | 520fa9110f7cd71b1b058b45974acf7b9d8bdfca | 8bfa5e8e867e1c151a9dce1bccd674575f864593 | refs/heads/master | 2020-08-08T00:04:27.946146 | 2019-12-16T22:29:26 | 2019-12-16T22:29:26 | 213,632,814 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,388 | cpp | main.cpp | #include "Matrix.h"
#include <cassert>
#include <iostream>
void check_num(int x, int y)
{
if (x != y)
{
std::cout << "Error in check_num. \nExpected " << y << " got " << x << std::endl;
}
else
{
std::cout << "Correct in check_num. \nExpected " << y << " got " << x << std::endl;
}
}
void ch... |
9c1d50dad08c31427acdee9a829d1802ddf09781 | 5a6a992288c66f2281ac1d7619adfc4732950d4a | /LED2017资料/v2.00.200(libusb)/HAAS/SpectData.cpp | 593e9b644c95eebc60697876f420ff038e6752b2 | [] | no_license | chg95211/LED2017 | e605cc6ec574f5acfecd7b81f0818f7188dec5d8 | d3831ed6bb58328d368ff2d22488ba3156c9624a | refs/heads/master | 2020-04-05T11:37:34.061767 | 2018-01-26T02:41:16 | 2018-01-26T02:41:16 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 114,406 | cpp | SpectData.cpp | // SpectData.cpp: implementation of the CSpectData class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "MySpec.h"
#include "SpectData.h"
#include "math.h"
#include "ProcessData.h"
#include "Global_MySpec.h"
#include "ProcessData.h"
#include "ExGetColorParaDLL.h... |
aee041ef0b56612388539e73fc29e3ae886895b2 | ece904fdcd89be31a6f23f6cc77f883d125e3af1 | /metainfo/detail/member_offset.hpp | 34a442e2d10bd3fe3ce4329a63d7c6dc7b1828e2 | [] | no_license | deadreact/meta_info | 3696251528ce936cbecb566306f647ea7a4db2aa | 1a3b4d65e36a40aa81cc3ed433d2bc429acd9ad8 | refs/heads/master | 2020-03-28T10:50:37.441121 | 2019-09-17T16:33:04 | 2019-09-17T16:33:04 | 148,151,072 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,739 | hpp | member_offset.hpp | #pragma once
#include <inttypes.h>
#include <deque>
#include <array>
namespace metafunction {
/** -------------------------------------------------------------------------------- */
using address_type = const uint8_t*;
using offset_type = decltype(address_type() - address_type());
using offset_list_type = s... |
91effe4c8418c27025cc6cc67a2c01f326789b1e | 450757ee3d890672bb3f6af42f01430ca3dea34c | /revreaddyC/src/Random.cpp | 530e29571fab8a46a69f6c4c06405d713186b3a6 | [] | no_license | chrisfroe/revreaddy | f173035c2d2e6aef6da7a69ef73187a743689208 | 66b8e7d003f94e969dc1f202937a699ae4604585 | refs/heads/master | 2020-05-21T22:59:29.498375 | 2016-11-10T18:59:47 | 2016-11-10T18:59:47 | 26,339,851 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,743 | cpp | Random.cpp | /* Random.cpp */
#include "Random.h"
Random::Random(std::string type) {
gsl_rng_env_setup();
if (type == "mt19937") { this->randomGeneratorType = gsl_rng_mt19937; }
else if (type == "taus") { this->randomGeneratorType = gsl_rng_taus; }
else if (type == "ranlxs0") { this->randomGeneratorType = gsl_rng_ranlxs0; }
... |
c8d4337f962a58011a3704ae0a05acd786a86e4b | 7dbfa16243f67bf3aa91fa36dea963d5a1e4b7b8 | /lab4/server.cpp | dd422a00120aee6128e124d5a4f119ac54bc9407 | [] | no_license | CPSCYeet/cpsc3500 | 854a8212ecba6aedb8056cb0239566cc44432ecc | 576594e57bd39eb21e40c5a4d11e4d6ca35a619a | refs/heads/master | 2020-04-17T02:46:50.405509 | 2019-03-13T05:38:32 | 2019-03-13T05:38:32 | 166,152,869 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,319 | cpp | server.cpp | #include <iostream>
#include <signal.h>
#include <string>
#include <strings.h>
#include <cstdlib>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <sstream>
#include <unistd.h>
#include "FileSys.h"
#include <arpa/inet.h>
#include <cerrno>
#define MAX_INC_READ_SIZE 409... |
d63a292c316a04e12d2ea9abb0c3a3984f34d13e | 8353b4a4241c3dd22873700abcfd11c9a7ef51a4 | /types/SContext.h | 063c5717af341b82016b24045615b0c1416fb576 | [] | no_license | Egor2001/CompilerCompiler | d2a4d43a198d396e42ffcf6e09dc46400cbdf00c | fc0d1372be6f22e7a637bdc8a47eeb8175a34bb7 | refs/heads/master | 2020-11-24T16:39:49.033799 | 2020-02-07T08:09:52 | 2020-02-07T08:09:52 | 228,251,269 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 825 | h | SContext.h | #ifndef SCONTEXT_H
#define SCONTEXT_H
//namespace {
struct STerm
{
std::string name;
std::string expr;
};
struct SSkip
{
std::string name;
};
struct SContext
{
void build_source_term_enum (std::string& out_str) const;
void build_source_skip_array(std::string& out_str) const;
std::unordered... |
ee3fafd01ff5bc357b582807a7af7486c2f3dd43 | 6f286be4a4e16867cc6e488080b8e3eced1dcd62 | /src/BedExtend/main.cpp | 8027b40278fc41d78afa82500c49652c03570459 | [
"MIT"
] | permissive | imgag/ngs-bits | 3587404be01687d52c5a77b933874ca77faf8e6b | 0597c96f6bc09067598c2364877d11091350bed8 | refs/heads/master | 2023-09-03T20:20:16.975954 | 2023-09-01T13:17:35 | 2023-09-01T13:17:35 | 38,034,492 | 110 | 36 | MIT | 2023-09-12T14:21:59 | 2015-06-25T07:23:55 | C++ | UTF-8 | C++ | false | false | 1,804 | cpp | main.cpp | #include "BedFile.h"
#include "ToolBase.h"
#include "Helper.h"
#include "Exceptions.h"
class ConcreteTool
: public ToolBase
{
Q_OBJECT
public:
ConcreteTool(int& argc, char *argv[])
: ToolBase(argc, argv)
{
}
virtual void setup()
{
setDescription("Extends the regions in a BED file.");
addInt("n", "The n... |
59c196915213839f969d13255e4f4f977b5fea39 | 715cfa11de952cc8baf42d52c63823bbd3d2f878 | /PCFE-GameOn/MyGraGame_Alpha_0.2d/src/lib/ScriptsDLL.cpp | d6bd249326e9b71b57de2160065f24e05dc70937 | [] | no_license | Drwalin/PCF_Engine | f513fa9daf3c0bb96e6931b6460deb15abf4f195 | 43814c983e40bb2f5a6544875c1f75dbff701eae | refs/heads/master | 2021-09-04T11:47:09.441634 | 2018-01-18T11:36:28 | 2018-01-18T11:36:28 | 117,959,850 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,668 | cpp | ScriptsDLL.cpp | #include<windows.h>
#include<iostream>
#include<conio.h>
using namespace std;
typedef int( * MYPROC1 )( char * );
typedef unsigned int( * MYPROC2 )( unsigned int, int );
typedef unsigned int( * MYPROC3 )( char * );
typedef int( * MYPROC4 )( unsigned int );
typedef char * ( * MYPROC5 )( unsigned int, int );
typedef ch... |
19613ddc654023ff0e824ec22eda0f7f9cae4750 | 2dd52f0414f21c0d3db178adbf741642915d7094 | /dungeon.cpp | 7af39094264fbb444ddc47729c5260165b19a25f | [] | no_license | jjpestacio/mini-rogue | 35fd2642ccb377457594d30ee676f50630bdda20 | dfd123fee1527157ebfb1026e50b2f5b0bcf1b89 | refs/heads/master | 2021-01-12T13:14:57.297805 | 2016-10-28T01:17:46 | 2016-10-28T01:17:46 | 72,161,416 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 28,059 | cpp | dungeon.cpp | #include "dungeon.h"
#include "utilities.h"
#include <iostream>
#include <vector>
#include <string>
using namespace std;
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////// Game Objects ///////////////////////////... |
65b6dc198ec615df6f2368f2794a6c62c8f03e18 | d5ad70f7730485128cea5ad94f0406dce23f708e | /include/simdjson/generic/ondemand/json_type.h | d0cde165c9f58f849f4f3552a2df78aadf07abbd | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"BSL-1.0"
] | permissive | simdjson/simdjson | 8d4a857b73907f2ba0ee854f314cca4921b58109 | 68ba9a1b2a5fa9be0f5d8a58a97c0169cf4b5a36 | refs/heads/master | 2023-09-06T03:19:04.797181 | 2023-08-31T00:23:58 | 2023-08-31T00:23:58 | 126,412,363 | 7,937 | 634 | Apache-2.0 | 2023-09-09T16:48:43 | 2018-03-23T00:49:18 | C++ | UTF-8 | C++ | false | false | 5,724 | h | json_type.h | #ifndef SIMDJSON_GENERIC_ONDEMAND_JSON_TYPE_H
#ifndef SIMDJSON_CONDITIONAL_INCLUDE
#define SIMDJSON_GENERIC_ONDEMAND_JSON_TYPE_H
#include "simdjson/generic/ondemand/base.h"
#include "simdjson/generic/implementation_simdjson_result_base.h"
#include "simdjson/generic/numberparsing.h"
#endif // SIMDJSON_CONDITIONAL_INCLU... |
f8f87c0ea5318b0a08a3ba9a35761d87fb0695db | 581d4f7bb268c830050cb0d1fd84f73080719b8c | /Easy/count_and_say.cpp | 2aa58e3c61a71edbab42b997783a1c0fa61f0fe4 | [] | no_license | wes1498/Interview-Questions | b72690b262490e8a8242a0f41ff16cfb86a9134f | 0ba3fc6700164fa8510357f6855c48c7d535ca24 | refs/heads/master | 2021-06-19T08:40:52.480896 | 2021-02-08T04:56:50 | 2021-02-08T04:56:50 | 177,035,173 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 455 | cpp | count_and_say.cpp | #include <string>
using namespace std;
string countAndSay(int n) {
if(n==1){return "1";}
string str=countAndSay(n-1);
string ans="";
int count=1;
char tmp;
for (int i=0; i<str.size();){
if(i+1>=str.size() || str[i]!=str[i+1]){
ans+=to_string(count)+str[i];
count... |
089ea877f15b1ef170304007f819b86963f93593 | 736e7e5c8305b8f0767456301d2ab41352d04c9f | /Semana9/ex3/main.cpp | 363797cadf16bb6df24ebafea1716d3f26c3401b | [] | no_license | ManoellaR/Linguagem_de_Programacao_II | c95dfa9fe63e25a3a34ba9f6ad37423cee603125 | 7e68855c9c10286862b56443942c6dceb030f3c3 | refs/heads/main | 2023-04-26T01:03:26.529476 | 2021-05-19T19:27:17 | 2021-05-19T19:27:17 | 342,753,442 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 451 | cpp | main.cpp | #include "shapes.hpp"
#include <vector>
int main(){
Shape *a = new Shape();
Shape2D *b = new Shape2D();
Triangle *c = new Triangle();
vector < Shape* > myshapes;
myshapes.push_back(a);
myshapes.push_back(b);
myshapes.push_back(c);
for(size_t i=0; i<myshapes.size(); i++){
mysh... |
fa364349c91c4a5906d6f9fe163cb703e0e63936 | 8fd6680c592df42b9dcad762a5a096b7c3314673 | /src/hooktools.h | 662755d1f72a49602ea61c324aa9ff363b0bb534 | [
"BSD-2-Clause"
] | permissive | oskardev/Plugin_D3D | e0339a4a9fd54578118725b08e385ef1d006341b | 3ce0a25f8d0b011a24f76d002fe1377604f746e5 | refs/heads/master | 2016-08-03T10:23:03.492260 | 2013-07-14T11:22:32 | 2013-07-14T11:22:32 | 11,392,587 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,127 | h | hooktools.h | /* D3D_Plugin - for licensing and copyright see license.txt */
#include <Windows.h>
#include "pp_tools.h"
#include <concrt.h>
#pragma once
#define getVT(ptr) (IsBadWritePtr(ptr, sizeof(INT_PTR)) ? NULL : *(void***)ptr)
#define changeVT(n, target) changeVTEx(getVT(This), n, target)
#define MF_PTR(x) (*(void**)((void... |
0fabfe308115f9d8b7d3faaca91518b859f91d49 | b9b966952e88619c9c5d754fea0f0e25fdb1a219 | /libcaf_core/caf/raise_error.cpp | 31811cd993f73d1d484002ec13c563708b58704a | [] | permissive | actor-framework/actor-framework | 7b152504b95b051db292696a803b2add6dbb484d | dd16d703c91e359ef421f04a848729f4fd652d08 | refs/heads/master | 2023-08-23T18:22:34.479331 | 2023-08-23T09:31:36 | 2023-08-23T09:31:36 | 1,439,738 | 2,842 | 630 | BSD-3-Clause | 2023-09-14T17:33:55 | 2011-03-04T14:59:50 | C++ | UTF-8 | C++ | false | false | 446 | cpp | raise_error.cpp | // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#include "caf/raise_error.hpp"
#include "caf/logger.hpp"
namespace caf::detail {
void l... |
fe880c588f95faf0d1822cf42036a85060199e8b | 9f150ed0c5935d557a3cf3a26922816526068282 | /src/Stack/StackSequence.cpp | 352474eb3cd4deb4b9be4e1aaed6a78297f6fccd | [] | no_license | rathnavels/DataStructures_LB | e7c4887d063076eb1645605f4ee3901d8d8e8b9b | 71d63294b8909c2c540c9a496f516957203f73a9 | refs/heads/master | 2020-12-08T10:39:43.330810 | 2020-09-12T18:24:50 | 2020-09-12T18:24:50 | 232,960,654 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 814 | cpp | StackSequence.cpp | //Rathinavel Sankaralingam
//Jan 25, 2020
#include <iostream>
#include <vector>
#include <stack>
using namespace std;
void runValidateStackSequences()
{
vector<int> pushed = {2,1,0};
vector<int> popped = {1,2,0};
bool IsValid = true;
int popIdx = 0;
std::stack<int> stk;
for(int i=0; i<pushe... |
96bd539b64dc2deef246170292280da7b91d6b49 | f965f99719ff0c54fa92b29a51581b177b51eb1c | /mod/mod_ItemUpgrade.cpp | 4d0b1e09725251d33b2e1a1a26a1409a73c15ff5 | [] | no_license | Declipe/Custom | bc1c70221e312bf7a3d4723e1b4c91b5a7772b13 | 09bcac5b0445f6468fdb7913cf19cad4610471f8 | refs/heads/master | 2021-01-12T15:09:25.568895 | 2016-09-27T12:17:47 | 2016-09-27T12:17:47 | 69,353,214 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,372 | cpp | mod_ItemUpgrade.cpp | #include "CreatureTextMgr.h"
#include "Player.h"
#include "BattlegroundMgr.h"
#include "Battleground.h"
#include "ArenaTeamMgr.h"
#include "ArenaTeam.h"
#include "Config.h"
enum ItemUpgradeStrings
{
ARE_YOU_SURE = 11300, // Are you sure you want to remove the effect?
NO_EFFECT = 11301, // no effect
... |
354de3dac290006653554c5d394e2b31310fc290 | d5784a924fa8777c24d58923a3857c4889a8b3ec | /Algorith_cpp/Sort/QuickSort.cpp | d0699834ab66c58e18f6bb7b9bc502e8a6cbc585 | [] | no_license | RootRefresh/algorithm | 0ccf87250131e4f63e338890ebabe0dd233ce4d0 | c3d87847b9b0d3ded11268bc5ca3ab52e81d7b0c | refs/heads/master | 2021-01-01T17:35:15.596743 | 2018-08-09T16:22:38 | 2018-08-09T16:22:38 | 98,106,313 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 877 | cpp | QuickSort.cpp | //
// QuickSort.cpp
// Algorith_cpp
//
// Created by 丰华财经 on 2018/1/30.
// Copyright © 2018年 com.lottery.www. All rights reserved.
//
#include "QuickSort.hpp"
#include "utils.hpp"
int partision(int *a, int begin, int end)
{
int privot = a[end];
int i = 0, j = 0;
while (j < end) {
if (a[j]... |
6b5b066233ac42a1a0a370cd916f32afd13c884a | 4a87a0f06b476cc7786a9fe18ba1f1b460aca9fa | /main.cpp | c2ddadd295e72a686390304862953644e87205d7 | [] | no_license | DaAitch/TechnicalLabs | 24616eb7d04adaf78939951e326f617d9b54c98c | a8ca6b3f8d83c6eae218dc1ca5aa94a6feecc429 | refs/heads/master | 2021-05-27T12:27:54.033941 | 2012-09-19T09:55:48 | 2012-09-19T09:55:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 81 | cpp | main.cpp |
#include "labs.h"
int main()
{
TechnicalLabs::run();
return EXIT_SUCCESS;
} |
242fed8767da48c0b5935289620296fdc243e298 | 5fa98392c6f8f18ecefe773ee1dd86251bc5f2dc | /src/obj/cards/buildings/building.h | 6e03301bed3b40609e6d7e57d616458a5c20673d | [] | no_license | Alir3za97/RoyaleClash | 04eee019e4fe833df4643f008d22289097582ea0 | 336a9c68b139601f4702446f26f96a9d20b3a999 | refs/heads/master | 2021-01-09T20:40:59.650942 | 2016-07-22T22:47:34 | 2016-07-22T22:47:34 | 61,951,641 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 259 | h | building.h | //
// Created by mareal on 6/27/16.
//
#ifndef ROYALECLASH_BUILDING_H
#define ROYALECLASH_BUILDING_H
#include <src/obj/cards/card.h>
class Building : public Card {
public:
private:
qreal hitpoint;
qreal lifetime;
};
#endif //ROYALECLASH_BUILDING_H
|
8012f66ff0934647a7a69cbf1c68d932414cca2c | 773357b475f59bbdde3a2de632638fef976e330a | /src/RenderableModel.cpp | ada63f61eebd4f40b52816d9451b27a6aa21f71f | [
"MIT"
] | permissive | q4a/GLKeeper | 568544cc86a88536f104f7f38d6e018a62e47510 | a2207e2a459a254cbc703306ef92a09ecf714090 | refs/heads/master | 2022-11-25T08:32:44.100454 | 2020-06-26T11:36:25 | 2020-06-26T11:36:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,075 | cpp | RenderableModel.cpp | #include "pch.h"
#include "RenderableModel.h"
#include "ModelAsset.h"
#include "TexturesManager.h"
#include "SceneObject.h"
#include "RenderManager.h"
RenderableModel::RenderableModel()
{
mDebugColor = Color32_Green;
}
void RenderableModel::UpdateFrame(float deltaTime)
{
if (!IsAnimationActive()... |
3c75f565ea5e584fa206d52028722701dc5df8c2 | 7840bc8fecb18375dfdedd037e1b80628170c99b | /src/cocSlave.cpp | d968947a22fb6d31dceccc41147fadd829aa16d4 | [] | no_license | codeoncanvas/coc-slavedriver | 0b2563bdbaee0e53d173b351d45c1b7f9407528c | 464683284adaaa226dbca7f84910c3db90aeec09 | refs/heads/master | 2020-12-25T07:12:10.683876 | 2018-02-06T04:16:25 | 2018-02-06T04:16:25 | 61,694,567 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,424 | cpp | cocSlave.cpp | /**
*
* ┌─┐╔═╗┌┬┐┌─┐
* │ ║ ║ ││├┤
* └─┘╚═╝─┴┘└─┘
* ┌─┐┌─┐╔╗╔┬ ┬┌─┐┌─┐
* │ ├─┤║║║└┐┌┘├─┤└─┐
* └─┘┴ ┴╝╚╝ └┘ ┴ ┴└─┘
*
* Copyright (c) 2016 Code on Canvas Pty Ltd, http://CodeOnCanvas.cc
*
* This software is distributed under the MIT license
* https://tldrlegal.com/license/mit-license
*... |
1f7836e652331b4e372ffd4efaa5034e69d66be1 | cb80a8562d90eb969272a7ff2cf52c1fa7aeb084 | /inletTest9/0.032/Co | cd5032b447755c5a2accc64a048e4825cff3de4a | [] | no_license | mahoep/inletCFD | eb516145fad17408f018f51e32aa0604871eaa95 | 0df91e3fbfa60d5db9d52739e212ca6d3f0a28b2 | refs/heads/main | 2023-08-30T22:07:41.314690 | 2021-10-14T19:23:51 | 2021-10-14T19:23:51 | 314,657,843 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 124,259 | Co | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2006 |
... | |
098f90b55e1f2820ed4d913b6d067e9648b68c37 | 16ee279136e5459299638edcd4a3a560e989bd30 | /src/gpu_planning/trajectory.hpp | cdb64914b9145ed1759696703076f193e78be9c6 | [] | no_license | RobertWilbrandt/gpu_planning | 57ccc18a45aedb3b9288a6f15cf05385c9015d2f | de0a75d758b179c0af9cd883fff33ae0a6aa32f0 | refs/heads/main | 2023-05-12T18:00:42.970189 | 2021-06-06T11:11:15 | 2021-06-06T11:11:15 | 358,898,035 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 463 | hpp | trajectory.hpp | #pragma once
#include "cuda_runtime_api.h"
#include "robot.hpp"
namespace gpu_planning {
struct TrajectorySegment {
__host__ __device__ TrajectorySegment();
__host__ __device__ TrajectorySegment(const Configuration& start,
const Configuration& end);
__host__ __device__ ... |
55b38e268fcf55fd58bca2a7fc8e4bfa4ca71462 | e356639afb1c14a8b77e092d45e2b94e79a4e051 | /handlers/TableDownArrowClickHandler.cpp | bacf6bbc3bfdcdf23f35a6f979d70a741784d89b | [] | no_license | darkjedi9922/listpad | 83a60785b7dd7081c2ce92c77c1a77deb5c110a2 | e852457e9ad85d83fccc067b465f8cacb620300f | refs/heads/master | 2022-01-07T18:18:09.167156 | 2019-06-04T17:56:06 | 2019-06-04T18:04:39 | 171,429,990 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 965 | cpp | TableDownArrowClickHandler.cpp | #include "TableDownArrowClickHandler.h"
#include "Table.h"
TableDownArrowClickHandler::TableDownArrowClickHandler(Table *table):
table(table)
{}
void TableDownArrowClickHandler::handle()
{
if (table->getCheckedRow() == -1) checkFirstRow();
else checkNextRow();
}
void TableDownArrowClickHandler::checkFirs... |
9f4181b92a95948e0a7f057bf753c32559f2e26e | 9e71afd5bef444741bef62e5dc62245095c171c6 | /Sources/Utils/IdPool.h | 5a291f91bd251620d0c573fdbfb0f34c65296ac3 | [] | no_license | wbach/OpenGL_Engine | f243f5e5c854278660d077593f764f18bb7949c1 | b88cf1da8d57b4737544e6acdf4a5e1bfbbf4613 | refs/heads/master | 2023-02-23T08:40:26.120920 | 2023-02-18T16:48:24 | 2023-02-18T16:48:24 | 91,100,184 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 429 | h | IdPool.h | #pragma once
#include <list>
#include <optional>
#include "Types.h"
namespace Utils
{
class IdPool
{
public:
IdPool(IdType startupValue = 0);
IdType getId(const std::optional<IdType>& = std::nullopt);
void releaseId(IdType);
void clear();
void clear(IdType);
private:
IdType getNextId();
priva... |
0692e8e028d4faa4d49fa873ba54282bc95be02c | 7aea5c7d4345adecdcfdeb87d757a2808519ec46 | /JS-VEMCUCtl_20140409/SDDElecMap/include/dialog/NewYC_PROP_INFO.h | e1b018697fcefa9198e24177cfcc7bdd7834daab | [] | no_license | wpmyj/MonitorSystem | 105657d0c4aeb4eb677d8dc760143eb45805e718 | f5c49c61f30676b3c5ff07c39fa043cc0dee31b4 | refs/heads/master | 2021-01-21T14:32:53.419350 | 2016-02-01T09:27:28 | 2016-02-01T09:27:28 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,270 | h | NewYC_PROP_INFO.h | #pragma once
#include "../../resource.h"
#include "canvas/lineprop.h"
// CNewYC_PROP_INFO 对话框
typedef BOOL _stdcall ShowFindDotDlg(int kind,char * ename,char * cname);
class CNewYC_PROP_INFO : public CPropertyPage
{
DECLARE_DYNAMIC(CNewYC_PROP_INFO)
public:
CNewYC_PROP_INFO(BYTE kind=1);
virtual ~CNewYC_PROP_INF... |
0fb57ef59e2d8c4908fc20c57da2effe71746ec1 | d995d72abfa8f90dd761e14c0b4dc949697b36fa | /Exception.hpp | 09c6c251c0d2c7a56487006e820938b304e27906 | [] | no_license | Squp/TP_LR2 | c57b065f921ea0442c136ed2247f130b488e2889 | 3e4d2f00f6f0cc5762bbf8d1ed0308e5099e9ae8 | refs/heads/master | 2020-04-12T05:51:10.232573 | 2018-12-18T19:47:41 | 2018-12-18T19:47:41 | 162,333,998 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 246 | hpp | Exception.hpp | #pragma once
#include <string>
//класс исключений
class Exception{
private:
std::string message;
public:
explicit Exception(const char *message = ""):message(message){}
const char* Message() const{ return message.c_str(); }
};
|
0249238e668ef73e51f2b175619ee2df2511cf64 | b273f401357946200d2531dfa976ebd3a97e8580 | /Regex/main.cpp | 0950d5a03e4a47ccf009bc74ddb455952cdd1f7b | [] | no_license | anotherub/cprograms | 46e2d8173d55f87dbb2b275efe30ac538e725d47 | d3ad9c9ba7808c34d440361e6811e57337b7619a | refs/heads/master | 2023-06-10T22:32:54.769038 | 2018-06-21T11:27:35 | 2018-06-21T11:27:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 217 | cpp | main.cpp | #include <iostream>
#include<regex>
using namespace std;
int main()
{
string a="umeshbhat";
string c="^umesh$";
regex b(c);
if(regex_match(a,b))cout<<"found";
else cout<<"error";
return 0;
}
|
a7cafd16cc914615fbf0180e31446c848048830b | 641808b5eb0d58fa9806de0fc4ecda1211d6eaa0 | /ABC120/A-Favorite_Sound.cpp | 1016388d9d9bb746e22b71b66980967358e1711c | [] | no_license | tom-uchida/Competitive_Programming | 7d2154299e59cda8e39a1b666da73bbddeb545d3 | f13857f57ad7bbfee598f1c999998662cfa97085 | refs/heads/master | 2022-07-27T17:03:10.995625 | 2020-05-17T15:28:53 | 2020-05-17T15:28:53 | 240,295,115 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 217 | cpp | A-Favorite_Sound.cpp | // https://atcoder.jp/contests/abc120/tasks/abc120_a
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
int a, b, c; cin >> a >> b >> c;
cout << min(b/a, c) << endl;
return 0;
} |
76516c7b4f0f12899c98d68c64db35d93dd7d42f | 107d79f2c1802a3ff66d300d5d1ab2d413bac375 | /src/eepp/graphics/renderer/rendererhelper.hpp | 809633f098462c831e8d67570a1ddce64f64df85 | [
"MIT"
] | permissive | weimingtom/eepp | 2030ab0b2a6231358f8433304f90611499b6461e | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | refs/heads/master | 2021-01-10T01:36:39.879179 | 2014-06-02T02:46:33 | 2014-06-02T02:46:33 | 46,509,734 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 767 | hpp | rendererhelper.hpp | #ifndef EE_GRAPHICS_PRIVATE_RENDERERHELPER_HPP
#define EE_GRAPHICS_PRIVATE_RENDERERHELPER_HPP
#include <eepp/graphics/renderer/base.hpp>
#ifdef EE_GL3_ENABLED
#include <stack>
#include <eepp/helper/glm/gtx/transform.hpp>
namespace EE { namespace Graphics { namespace Private {
static void fromGLMmat4( glm::mat4 fro... |
917d91ffa041d8f917d16023f215e0f0bf1baf48 | 9c0cc19e1e06fb3ec79d1635179bc4c45a65f25c | /src/rdx/rdx_varying.cpp | b45c6adbecc9c783ab879c5cb36de81f43c0fa01 | [
"MIT"
] | permissive | elasota/rdx2 | 616b0149b3b0f4a5211b0448c6fa21af6fe06447 | e08ca09a07d3ac8675f7f950a7bdf838a9f5f907 | refs/heads/master | 2016-09-05T20:40:10.810218 | 2015-05-10T03:30:04 | 2015-05-10T03:30:04 | 35,354,903 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 286 | cpp | rdx_varying.cpp | #include "rdx_varying.hpp"
void rdxSVarying::VisitReferences(rdxIObjectManager *objm, rdxIObjectReferenceVisitor *visitor, bool visitNonSerializable)
{
if(visitNonSerializable)
{
visitor->VisitReference(objm, this->rtp);
visitor->VisitReference(objm, this->type);
}
}
|
0ba4b81c9f4c0caa73369973553053beeb5664d4 | 710f7d2951c7af722d8e8ea896c5e6733e155860 | /zGameServer_X/GameServer/ObjBaseAttack.cpp | a2ab2dfa722813c3c8f7c758f3dcbe5c3dae45ff | [] | no_license | lnsurgent/X-MU_Community_Server | 5cda542a5cbd6d73ade156ca8354eeab2909da91 | e576e30a0222789b2d02506569e5b435dd696e2f | refs/heads/master | 2016-09-06T07:50:10.870481 | 2016-02-11T06:56:20 | 2016-02-11T06:56:20 | 29,187,243 | 12 | 8 | null | 2015-01-18T15:23:14 | 2015-01-13T11:40:29 | C++ | UTF-8 | C++ | false | false | 24,996 | cpp | ObjBaseAttack.cpp | #include "stdafx.h"
#include "ObjBaseAttack.h"
#include "GameMain.h"
#include "LogProc.h"
#include "DevilSquare.h"
#include "BloodCastle.h"
#include "ChaosCastle.h"
#include "CrywolfAltar.h"
#include "CrywolfStatue.h"
#include "IllusionTempleEvent.h"
#include "MasterLevelSystem.h"
#include "BuffEffectSlot.h"
#include "... |
b5780f2688aa28ca527d22dee833ed8f1a1eead7 | 12bb24d45fdf0cb5eaee382e76597aaffaaefba5 | /LearningC++/HeapSort.cpp | 61a581ea2daf0083d07d89b763bd492bdd310a7a | [] | no_license | abhishekchoudhary05/LearningCpp | e22741d73d920c6fa4f273f627c536f1b65f8538 | 9257b1174124fc9cfc3d8350686236a1ef7adbbe | refs/heads/master | 2023-01-19T01:48:24.600186 | 2020-11-19T12:42:33 | 2020-11-19T12:42:33 | 314,180,914 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 862 | cpp | HeapSort.cpp | #include<iostream>
using namespace std;
void Heapify(int arr[], int parent, int length) {
int leftC = 2 * parent + 1;
int rightC = 2 * parent + 2;
int largest = parent;
if ((leftC < length) && (arr[leftC] > arr[largest]))
{
largest = leftC;
}
if (rightC < length && arr[rightC] > arr[largest])
{
largest = r... |
1b09c78e26b3fd101967fae56c71f8d94b16de7c | 220846e017a9992e596bd1ea806d527e3aeea243 | /153_Find_Minimum_in_Rotated_Sorted_Array.cpp | 13e6696b82e0f2731e3c2658c0cfdd7f3326403c | [] | no_license | anzhe-yang/Leetcode | bfa443b7a74ddbd441348c364ee00004173ddd86 | fe9eb16136035f25f31bddb37c6b4884cd7f6904 | refs/heads/master | 2020-04-08T14:49:04.781848 | 2019-10-25T02:39:22 | 2019-10-25T02:39:22 | 159,453,173 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 772 | cpp | 153_Find_Minimum_in_Rotated_Sorted_Array.cpp | /** 问题描述:
* 假设一个升序排列的数组从中间某个点进行了翻转。
* 找到翻转后最小的元素。
* 假设数组中没有重复元素。
*/
#include <iostream>
#include <vector>
using namespace std;
int findMin(vector<int>& nums)
{
/*
二分法查找。
*/
int len = nums.size();
int left = 0, right = len-1;
while (left < right)
{
if (nums[left] < n... |
f1e91200bf3db1d73190777e3145700745f133de | 7162ab5e888cae5eaabeedeebd9294ea51d2aec3 | /mainwindow.cpp | 974979ef55a0e1b0cdcd8e6700aa9789463f7e58 | [] | no_license | jashhk/Geosm | 15b143e7ecf159c32279f613dbeb70cbf434275e | 95e16404711108182a02b0f2c1036c4053b90c27 | refs/heads/master | 2021-01-10T21:14:24.675562 | 2011-03-10T09:11:33 | 2011-03-10T09:11:33 | 1,459,652 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,246 | cpp | mainwindow.cpp | //! [0]
#include <QtGui>
#include <Qfont>
#include "mainwindow.h"
#include "mainwindow_p.h"
#include "QItemPanel.h"
MainWindow::MainWindow()
{
tw = new QDoubleSpinBox;
lc = new QDoubleSpinBox;
vc = new QDoubleSpinBox;
cb = new QDoubleSpinBox;
da = new QDoubleSpinBox;
speed = new QDoubleSpinBox;... |
a40fc0dfa618dd6bbbc23000bbf94531b3a7f6d2 | ae7ba9c83692cfcb39e95483d84610715930fe9e | /yubinbai/pcuva-problems/UVa 10931 parity/sol.cpp | 570f7f2d25f9f81ee7b64ffe1fb6579d34958aec | [] | no_license | xenron/sandbox-github-clone | 364721769ea0784fb82827b07196eaa32190126b | 5eccdd8631f8bad78eb88bb89144972dbabc109c | refs/heads/master | 2022-05-01T21:18:43.101664 | 2016-09-12T12:38:32 | 2016-09-12T12:38:32 | 65,951,766 | 5 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 524 | cpp | sol.cpp | #include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main()
{
long long n, p, r;
int j;
char bin[100];
while (cin >> n)
{
if (n == 0) break;
p = 0;
j = 0;
while (n != 0)
{
r = n % 2;
n = n / 2;
... |
438f92147115da074a158fa713016e3e297d7681 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/mutt/gumtree/mutt_old_hunk_42.cpp | 6fa79625e296c361a7bccfb8537c24afe10dbd0f | [] | 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 | 1,402 | cpp | mutt_old_hunk_42.cpp | if (p->init)
{
char *s = (char *) p->init;
pp->rx = safe_calloc (1, sizeof (regex_t));
pp->pattern = safe_strdup ((char *) p->init);
if (mutt_strcmp (p->option, "alternates") == 0)
flags |= REG_ICASE;
else if (mutt_strcmp (p->option, "mask") != 0)
flags |= mutt_which_case ((const char *) p->... |
b168f940ede17f057018bf2a834e3a3c6ff7bd55 | bfb5d48e57876c7863d9a7d1ab03299e608ddc8b | /classes/one_way_delay_filter_Driver.cc | 5911c7c5571cd5ee852bea78fc67677c643aa308 | [] | no_license | li7/PTP_Click | 12c54bb7de77dc491de26ab2fe8759de04217fa3 | fcf441b90d0e51d130d092bc7f6f62269c7e312b | refs/heads/master | 2020-04-15T13:33:56.043581 | 2014-07-08T01:29:24 | 2014-07-08T01:29:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 246 | cc | one_way_delay_filter_Driver.cc | #include "one_way_delay_filter.h"
#include <iostream>
#include <string.h>
using namespace std;
main()
{
one_way_delay_filter owdf;
cout << owdf << endl;
owdf.set_nsec_prev(5);
owdf.set_y(20);
owdf.set_s_exp(13);
cout << owdf << endl;
}
|
05529c1fa6dbbcf2fb6e09e7d24fdd174d66dbbe | 653059c1cc2cbab650c6789f7bce956870133592 | /fuzzers/glue/glue.hpp | ea304753e734f31b5bc116eba120a7d267621f2b | [] | no_license | pauldreik/fuzzlibtorrent | 8d56727443b2b323ccba7849250c06e8a0aad0fa | 0d88f8d798df7dce118602c8692717999c5e72ff | refs/heads/master | 2020-05-02T16:32:24.278262 | 2019-04-02T18:04:19 | 2019-04-02T18:04:19 | 178,071,703 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,087 | hpp | glue.hpp |
#pragma once
// the idea of this is to have all the
// conversions in one place, so one doesn't
// have to do those ugly casts everywhere
#include "libtorrent/span.hpp"
#include "libtorrent/string_view.hpp"
#include <cstdint>
struct Glue
{
Glue(const std::uint8_t* Data, std::size_t Size)
: m_Data(reinterpret_... |
4cdb3308694bf057e4d5562095b4ce324f581927 | cdf92aa3a8a49dc044306c125356cca26910dbda | /src4/static/INDI2/oldEIRlibs/eirCore/VariableId.h | 8d10a115325d6e19c5f93470dbf12c82239174b6 | [
"MIT"
] | permissive | eirTony/INDI1 | b7c5d2ba0922a509b32d9d411938ecdc0f725109 | 07fe9eff4fb88c6c2d636c94267ea8734d295223 | refs/heads/master | 2020-01-23T21:22:49.833055 | 2016-11-26T07:43:06 | 2016-11-26T07:43:06 | 74,568,244 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 522 | h | VariableId.h | #ifndef VARIABLEID_H
#define VARIABLEID_H
#include "eirCore.h"
#include "../eirBase/AbstractIdString.h"
class EIRCORESHARED_EXPORT VariableId : public AbstractIdString
{
public:
VariableId(const QString & inString=QString());
VariableId(const char * chars);
VariableId(const char * chars,
co... |
967e227069445298921c0065c5e97055026c6d12 | 797a7932ab28adc168430698a10d55b387121d3d | /plagcheck/a.cpp | 41919a6240d5a791cf0d099c3b4a3132c5c6754b | [] | no_license | Mayur299/DSA-project1 | 7d8dd8decdca8b1188b56b520c6345e8d13b8997 | 354c90c7b358314154c00b1d083f5f1ddcdf9d46 | refs/heads/master | 2023-08-30T14:20:41.998215 | 2021-10-06T21:02:42 | 2021-10-06T21:02:42 | 403,146,427 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 840 | cpp | a.cpp | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <unordered_map>
using namespace std;
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
int n;
cin>>n;
int* arr=new int[n];
int* copy=new int[n];
unorder... |
a689d034942239d9b79e960779e8be88cd9026b6 | 80016d10f4a04ec689533e7fce14ef25070fcc31 | /练习/练习/源.cpp | 37284ee39d41e05b60cf8cd9a8a762938c4122a8 | [] | no_license | huoli-knight/Cjiajia_homework | d1ab50028d1c9780cc9367444513391093c482bb | 5e2dd507d9a0f8abeade912c8e03e2309696583b | refs/heads/master | 2022-01-21T08:54:44.631777 | 2019-06-03T15:31:38 | 2019-06-03T15:31:38 | 190,032,944 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 221 | cpp | 源.cpp | #include <iostream>
using namespace std;
int main ()
{
char c;
int a(2),b=3;
cout<<a<<b<<a+b<<' '<<'a'<<"adf"<<endl;
cout<<"请输入一个字符:";
cin>>c;
cout<<"请输入一个整数:";
cin>>a;
return 0;
}
|
f61addcb12da606336cdfd0ca5cf7b59ec4e62bb | 5a703baa6d8e7cecc45e1887bfaac5f3c8f687bc | /UNPORTED/quantacore/autocomplete/xmlattributevaluecompletion.cpp | 687b4b2d65f90953d8a732b413ddfbe42e7210ad | [] | no_license | KDE/quanta | a3619c39451ae30ca20b93be9dd20cd41f9418ce | 16166916bba2bda25ea8d3d4b0fbbae413d772b3 | refs/heads/master | 2020-05-20T04:06:55.341371 | 2018-12-29T11:23:38 | 2018-12-29T11:23:38 | 42,731,993 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,118 | cpp | xmlattributevaluecompletion.cpp | /***************************************************************************
begin : Wed Jul 13 2005
copyright : (C) 2005 by Andras Mantia <amantia@kde.org>
***************************************************************************/
/*************************************************... |
4f2dc7ae52f9c942b253773c217e3bc58be25841 | 95a8ec1f066b71ccdf0bb83a6680e375c3b2038a | /XivAlexander/App_ConfigRepository.cpp | b6cf445cfedef7362d1c8f1d9ee54685b54285e9 | [
"Apache-2.0"
] | permissive | anoyetta/XivAlexander | 12c5e08b7ab6a893653b284cb6fca135f11f953a | 0b0d5b6880a3c2a3451891d64bc975582ca7f87a | refs/heads/main | 2023-04-21T19:52:09.329963 | 2021-03-28T03:54:16 | 2021-03-28T03:54:16 | 354,757,581 | 1 | 0 | Apache-2.0 | 2021-04-05T07:44:21 | 2021-04-05T07:44:21 | null | UTF-8 | C++ | false | false | 4,124 | cpp | App_ConfigRepository.cpp | #include "pch.h"
#include "App_ConfigRepository.h"
static
nlohmann::json LowerCaseKeys(const nlohmann::json& json) {
auto result = nlohmann::json::object();
for (auto& item : json.items()) {
std::wstring key = Utils::FromUtf8(item.key());
CharLowerW(&key[0]);
result.emplace(Utils::ToUtf8(key), item.value());
... |
e75419a442f00e31e32e9a1980ce574e93d6a2e2 | f8a1624b062ff53cc4ee592587ec341bc77bf21a | /Automaton.h | 133fa68437239df5d5d785bf7471b162b8ca3eb9 | [] | no_license | kylegwilliam/Project1_Lexer | 8efd6dff52acb4e1a4edaa9ad590092bb6cdc224 | baf514e7ac6d6f230d8cff0e49d00e0019a65cb1 | refs/heads/master | 2023-03-22T03:59:50.734092 | 2021-03-10T02:53:52 | 2021-03-10T02:53:52 | 337,579,715 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,370 | h | Automaton.h | //
// Created by Kyle Gwilliam on 1/25/21.
//
#ifndef PROJECT1_LEXER_AUTOMATON_H
#define PROJECT1_LEXER_AUTOMATON_H
//#pragma once
#include <string>
#include "Token.h"
using namespace std;
class Automaton {
protected:
int inputRead = 0;
int newLines = 0;
TokenType type;
public:
Automaton(){}
... |
8f0e32956fe1ca9b3f57d361a32b914e08ff8171 | 6847a1a3b4e0178e443a440be3226fd77c072810 | /linkedListMiddleValue.cpp | ccfdcfd98debbdac0c22bd88abf3051d3375acb2 | [] | no_license | abudaudhossain/data-stracture-cpp | af50e4150de0d671add873db4045901730d55bdf | 26bc6e7ad2b8f4d21e1f52367deb130353d3f192 | refs/heads/main | 2023-07-12T16:09:59.689144 | 2021-08-16T08:34:47 | 2021-08-16T08:34:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,043 | cpp | linkedListMiddleValue.cpp | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
struct Node{
int data;
struct Node* link;
};
struct Node* head;
void insertValue(int value){
struct Node* new_node = (struct Node*) malloc(sizeof(struct Node));
new_node -> data = value;
new_node -> link = head;
he... |
37f06897a7c83b9326ac8851430cec532bab09c8 | cf7ae4ac2644daa52e0f7c5ae30c72b66d15fc7f | /LegendDataEditor/LegendDataEditor/Sqlite/Data/TDMineRegion.h | eb0dd05a399292ddaf270b1770bd65ee116626f6 | [] | no_license | ZHOURUIH/GameEditor | 13cebb5037a46d1c414c944b4f0229b26d859fb5 | eb391bd8c2bec8976c29047183722f90d75af361 | refs/heads/master | 2023-08-21T10:56:59.318660 | 2023-08-10T16:33:40 | 2023-08-10T16:33:40 | 133,002,663 | 18 | 21 | null | null | null | null | UTF-8 | C++ | false | false | 491 | h | TDMineRegion.h | #ifndef _TD_MINE_REGION_H_
#define _TD_MINE_REGION_H_
#include "SQLiteData.h"
class TDMineRegion : public SQLiteData
{
public:
static const char* ID;
static const char* MapID;
static const char* MineTile;
static const char* Direction;
public:
int mID;
int mMapID;
Vector2UShort mMineTile;
byte mDirection;
pub... |
7328a3bb7381b9468b65ab4ff2b11e1d7b3ced92 | 4ff8f13b596a80cef79f9133733101a6ee7b63b7 | /UVa100.cpp | 0dd89ee375a7220704d45523626ebab732778147 | [] | no_license | AbhishekTiwari0812/ACM-ICPC | 7302c9225bd20f9e0d232bc48b3897aade7c2815 | b7fba600ea7daf81bed103c93ad41e444c0c28ef | refs/heads/master | 2021-01-13T08:02:19.203733 | 2016-10-23T06:03:45 | 2016-10-23T06:03:45 | 71,684,909 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,372 | cpp | UVa100.cpp | #include <ctime>
#include <iostream>
#include <cstdlib>
#include <cstdio>
#include <set>
#include <map>
#include <utility>
#include <climits>
#include <cstring>
#include <vector>
#define mp(a,b) make_pair(a,b)
#define rep(i,a,b) for(int i=(int)a;i<(int)b;i++)
#define repmsi(it,m) for(msi::iterator it=(m).begin();it!=m... |
ba8c1834d0dc31796c11b41090b2e24b64d269c4 | b0141b7f3f5516d172aab7254863eb722c8c5ca7 | /Chain/blockchain.hpp | ff18de344aa482f587d73fb2ded18c976ac36a39 | [] | no_license | Babwenbiber/Proof-Of-Luck-Cryptocurrency | 696354faa510b4f885913d184234a27721f2e623 | 995897104e86967ddd408dd2e5a85d87a3bbc70d | refs/heads/master | 2020-03-22T23:56:04.164292 | 2018-07-13T11:07:50 | 2018-07-13T11:07:50 | 140,834,974 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,307 | hpp | blockchain.hpp | #ifndef BLOCKCHAIN_H
#define BLOCKCHAIN_H
#include <string.h>
#include <stdlib.h>
#include <stddef.h>
#include <iostream>
#include <vector>
#include <memory>
#include <unistd.h>
#include <limits>
#include <time.h> /* time_t, struct tm, difftime, time, mktime */
#include "transactions.hpp"
//#include "libs/sha1.hp... |
ba9b41ee9173ce383b753e41029694753047fc72 | f57a39f2f7557272784860b24cb2f05533afc847 | /src/ScriptFunctions.cpp | 88e93aed54a885fb61a64b99dace301caf30eb02 | [] | no_license | stephenlombardi/slib | 903af62989c26f73d66bc16e57343ae6d77faf1c | dbf75082cbf5ce16e6899056aa138acfeb2e1ab6 | refs/heads/master | 2021-01-19T12:39:42.387665 | 2010-05-06T22:48:04 | 2010-05-06T22:48:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,492 | cpp | ScriptFunctions.cpp | #include <slib/ScriptFunctions.h>
namespace slib {
std::ostream & printAny( std::ostream & out, const boost::any & any ) {
if( boost::any_cast< bool >( &any ) ) {
return out << boost::any_cast< bool >( any );
} else if( boost::any_cast< int >( &any ) ) {
return out << boost::any_cast< int >( any );
} els... |
ab390eb15854e57e71785458a6a96ba5bc92d4e3 | d8aa7ddfbec886b243cd59a9c6e3c7df3c9d5f14 | /medit.cpp | 7e8721705b56f53ab79fdefd51e2950d6c6da674 | [
"BSD-2-Clause"
] | permissive | loran4d/mud | 64e0840bc707141caeb16f8cb2dddb018e1fac27 | 2e0bbae7e4ca242f075f2b31b41a3856ad8469dd | refs/heads/main | 2023-08-22T00:19:46.136790 | 2021-11-01T21:31:03 | 2021-11-01T21:31:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 56,703 | cpp | medit.cpp | /************************************************************************/
/** OasisOLC - medit.c v1.5 **/
/** Copyright 1996 Harvey Gilpin. **/
/************************************************************************/
#include "config.h"
#include "sysdep.h"
#include "structs.h"
#include "interpreter.h"
#inc... |
03e82b53eeef524a56db72d6ea7463cb4fc9517c | a51e02e55c21e1a1c878024d5cea787a55bcf49f | /exe/src/main.cpp | a5be75eff06ca8a435be0df5f9b1261e9ee84516 | [] | no_license | gr258/201907TL | f53afc58d3f8621eba812952cb50303a01a99c4f | f1304277b18689c8803e9ee540e245cdc8a7915d | refs/heads/master | 2020-06-19T12:47:40.170870 | 2019-07-19T05:42:55 | 2019-07-19T05:42:55 | 196,713,107 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 312 | cpp | main.cpp | #include <stdio.h>
#include "JsonFilterApi.h"
int main(int argc, char *argv[])
{
if(argc < 3)
{
printf("Usage: %s [jsonfile] [filterExpr]\n",argv[0]);
}
else
{
string strResult = JsonFilter(argv[1], argv[2]);
printf("%s\n", strResult.c_str());
}
return 0;
}
|
0acfd5c6ed51df3a0ee581f29c71c6d9e926c884 | 344e1d2dd3400ba700eafca93fee842f4db098aa | /include/noncopyable.h | 4c33a19c3dca132173c64c8168923b0870098622 | [] | no_license | xiangbai/spellCorrect | f7a138eee3de0f5d912fc8a4ec288d6f6f1e4225 | 34e4441179f942d2266f83dced5fc3f3e9442d93 | refs/heads/master | 2021-01-19T06:43:26.126535 | 2014-05-13T09:42:37 | 2014-05-13T09:42:37 | 19,405,295 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 243 | h | noncopyable.h | #ifndef NONCOPYABLE_H_
#define NONCOPYABLE_H_
#include <iostream>
class noncopyable{
protected:
noncopyable(){
}
~noncopyable(){
}
private:
noncopyable(const noncopyable &);
noncopyable &operator=(const noncopyable &);
};
#endif
|
fed58c588468e6591491862c0ea0b358acd20d84 | 554a91e9dd16b359d717aa15e291454e71985f13 | /include/revision.hpp | 153e2802957d4dc122a1036f1f17d46f7fa12960 | [] | no_license | DiXN/lit | 3c5649fb0da816b795e1fed8caa1da29efed3122 | 7c2fe32b5e946fc348dadf8da41cc0928ab5e2e0 | refs/heads/master | 2023-01-13T13:22:03.180640 | 2020-11-18T22:42:10 | 2020-11-18T22:42:10 | 304,121,479 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,812 | hpp | revision.hpp | #pragma once
#include "command.h"
#include "repository.hpp"
#include <ctime>
#include <filesystem>
namespace lit {
class Revision {
private:
string _revision;
string _message;
string _date;
optional<vector<string>> _parents;
string _parents_str;
const Repository& repo = Repository::instance();
int... |
aa19d96f2e95d07cfa26b8d773f732e709c6cffb | dcd9b790d644e1de684275c68c80d9696a97c418 | /tsMuxerGUI/checkboxedheaderview.h | 0438c75a2fdc4a86079fd47d5482ca7ca0e6d8d7 | [
"Apache-2.0"
] | permissive | justdan96/tsMuxer | ed4fe2cd5b26112ee434eff99ecefef89d5f6146 | 27f1d540f2e54f8772142440e07fcd4da538a73c | refs/heads/master | 2023-09-03T00:18:59.599587 | 2023-09-02T20:33:12 | 2023-09-02T20:33:12 | 197,023,709 | 703 | 169 | Apache-2.0 | 2023-09-11T07:19:21 | 2019-07-15T15:18:54 | C++ | UTF-8 | C++ | false | false | 743 | h | checkboxedheaderview.h | #ifndef CHECKBOXEDHEADERVIEW_H
#define CHECKBOXEDHEADERVIEW_H
#include <QHeaderView>
class QnCheckBoxedHeaderView : public QHeaderView
{
Q_OBJECT
typedef QHeaderView base_type;
public:
explicit QnCheckBoxedHeaderView(QWidget *parent = nullptr);
Qt::CheckState checkState() const { return m_checkSt... |
412dfdbf9d1d659b978f81876c5a81c65ba0d5ae | 44bb9d5b089fb3296958e8404c3eaec0acfe4082 | /UVa/UVa_11795_Mega_Man_s_Mission.cpp | 7fa15d4cee534734a8166aac6ffc49af2ea074b2 | [] | no_license | wujysh/OJ_Code_Repositories | 3a82aa685ffc238710d924657169d81a560bdea9 | e4407421bb342d6b050950fc7e458fe8fd9b6ca5 | refs/heads/master | 2020-06-05T05:38:30.144070 | 2014-10-22T04:33:18 | 2014-10-22T04:33:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,264 | cpp | UVa_11795_Mega_Man_s_Mission.cpp | #include <iostream>
using namespace std;
const int MAXN = 1 << 16;
int n, weapon[MAXN], temp[MAXN], nCase, cnt;
long long x, ans, dp[MAXN];
int ch2to10(long long x) {
int t = 1, ans = 0;
while (x) {
ans += (x % 10) * t;
x /= 10;
t *= 2;
}
return ans;
}
void input() {
cin >... |
5dfb1e1f9c0157d134a0c6551054a28ae44e97fd | 01dee3bf83b1ab356a0109cc70b3536c57b065a1 | /bzoj/4012.cpp | 61730d1757385e13cdd09caa12970da42dff75f3 | [] | no_license | YMDragon/OJ-code | 3e5c9c9871e86fffdd5a24e9da247b9980f364f4 | 6569bfa6519021cc3303aa42a4e60a40149a7816 | refs/heads/master | 2021-01-23T06:01:36.991005 | 2017-05-02T01:21:09 | 2017-05-02T01:21:09 | 86,330,585 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,104 | cpp | 4012.cpp | #include <algorithm>
#include <iostream>
#include <cstdlib>
#include <cstring>
#include <cstdio>
#include <cmath>
using namespace std;
typedef long long LL;
const int N=150010;
struct edge{int s,t,d,n;}e[2*N];
struct node{LL bac; int add,ls,rs;}t[100*N];
struct year{int oy,ny,id;}a[N];
int n,q,A,m,tot,h... |
5332d7443db05d8729252a7b96f0ac35f17a7bdc | b284521fe1ee3a8a873523f85cbb70e1f76aab70 | /Forward_list.cpp | 64930f3bb69ced3d0b7e7f5621a6ef7fccdca549 | [] | no_license | ALMikryukov/Forward_list_C_plus_plus | 1de48af90b67fb1b18709a58a725a3a651001639 | cbbd7b2e9ace4a558e29f0de2433908292d92396 | refs/heads/main | 2023-07-10T01:43:29.037097 | 2021-08-19T06:24:13 | 2021-08-19T06:24:13 | 397,839,083 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 986 | cpp | Forward_list.cpp | #include<iostream>
#include<list>
#include<vector>
#include<forward_list>
using namespace std;
/* библиотека STL forward_list односвязный список */
/// наиболее быстрые методы с начала списка
int main() {
forward_list <int> fl = {131,94,494};
//fl.push_front(1);
//fl.push_front(4);
forward_list <... |
cd96afb17851b9923a9d68b62ed0f138e694806c | 4023cf90d5de702859d08fd2ebb62b03822b97b1 | /File.h | 61eee1321ec0e643cc0f4f2fa913ee184ffdc12f | [] | no_license | NomNom21523/Powaah | b018646ad4b1706b85ad0ee03b5cde1f73f909fe | a69601e2c650a35eba536c44343690a986e5206a | refs/heads/master | 2021-05-28T02:45:34.921475 | 2012-06-29T21:48:29 | 2012-06-29T21:48:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 329 | h | File.h | #ifndef FILE_H
#define FILE_H
#include "FileHandler.h"
class File : private FileHandler
{
protected:
static unsigned int fetchElementSizeFromFile(const FileDesc &description);
static void readDataFromFile(const FileDesc &description);
static void writeDataToFile(const FileDesc &description);
};
#endif /... |
23f9641bc8190cd6aeb8574980a24f619fea583e | 8383e82765dc9a435eef42004400f5d73bdc06d2 | /include/sp_people_manager.h | 4bceec0b361dc9a4d5cfb057d42dd77dad438a2a | [] | no_license | wangliyangleon/lsh | 2ab17e04d3b2f7769c6ced42384bfba2659d72db | 6138fee678f4a31ff99d375c532c76c4822e3bf1 | refs/heads/master | 2021-01-01T15:36:52.855264 | 2014-07-29T13:28:43 | 2014-07-29T13:28:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,887 | h | sp_people_manager.h | /**
* @Author: WangLiyang
* @Date: 2014/07/11 19:25:44
* @Brief:
*/
#ifndef _SP_PEOPLE_MANAGER_H_
#define _SP_PEOPLE_MANAGER_H_
#include <sp_people.h>
namespace wly {
/**
* @Class: PeopleManager
* @Brief: people manager
*/
class PeopleManager {
public:
/**
* get singleton instance of peop... |
1a6bfb83eb8fc9e10e47e1bb2578b9fc39b5dbd5 | d49b8536d996a81fd2a356f2ccd850abd4447217 | /VirusPack/InTeL_m0dd-Test101-ms0640/commands.cpp | edf5c6884e25dc408773c0f324cee0d9b410d2df | [] | no_license | JonnyBanana/botnets | 28a90ab80f973478d54579f3d3eadc5feb33ff77 | 995b9c20aca5de0ae585ae17780a31e8bdfd9844 | refs/heads/master | 2021-07-01T01:51:01.211451 | 2020-10-22T23:14:57 | 2020-10-22T23:14:57 | 148,392,362 | 9 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 61,170 | cpp | commands.cpp | #include "includes.h"
#include "strings.h"
#include "functions.h"
extern char netinfo_title[];
extern int serversize;
int IRC_TempCommand(char *params,irc_reply_data* hostd,void* conn,BOOL silent,BOOL topic/*=FALSE*/)
{
IRC* irc=(IRC*)conn;
char *a[MAX_TOKENS];
//params++; //remove the ':'
char fcmd... |
5606042a14202b52e8c2cc92521a0436c4276a63 | 2e197fae59b66fab56bd9db260c31e8fe680ba14 | /DigitalMars/core/adelete3.cpp | f4049a352de02a23fb877e8262091bcf1449b761 | [] | no_license | DinrusGroup/Dinrus | defa29114e1e5833a774eed0fdb241c3249deefb | fccaa2b5c02a0ac8c1e2665bc81ab7c8a3c12f44 | refs/heads/master | 2021-04-18T23:50:30.697049 | 2020-03-30T02:36:51 | 2020-03-30T02:36:51 | 41,289,393 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 304 | cpp | adelete3.cpp | //_ adelete3.cpp
// Copyright (C) 1995-2006 by Digital Mars
// All Rights Reserved
#if !_ENABLE_ARRAYNEW
#error "This module must be compiled with -Aa"
#endif
#include <new.h>
/************
*/
void operator delete[](void *block, const std::nothrow_t& t) throw()
{
delete block;
}
|
0ffc06f0a73854277ee63a305f0a3c9aea97699d | d14bcd4679f0ffa43df5267a82544f098095f1d1 | /src/NPSYS.cpp | d3bce7f57c8316e4233707d8ef6276525f54d97c | [] | no_license | anhnguyendepocen/SMRD | 9e52aa72a5abe5274f9a8546475639d11f058c0d | c54fa017afca7f20255291c6363194673bc2435a | refs/heads/master | 2022-12-15T12:29:11.165234 | 2020-09-10T13:23:59 | 2020-09-10T13:23:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,659 | cpp | NPSYS.cpp | #include <base/base.hpp>
//' Compute the nonparametric estimate of the
//' mean cumulative occurence rate of failures
//' and corresponding estimate of the var if the estimator
//'
//'
//' inputs:
//' itime(nobs) time indices (from 1,2,..., nfailt)
//' gives index point... |
9f4d8b654044dcf767b7eb712932e78eec506015 | 1308779f4585284db744c720ef981fd4d8b5c5f9 | /juo/juo.ino | bc6758e0a9abc31085ce1bf66f723efb4b1d9663 | [] | no_license | alichbouki/mes-code-arduino | c36cd7410277f0f0f7e84626abddc49dcfba9f64 | d02b90171bfc1f338e04206b3e85506abb047268 | refs/heads/main | 2023-02-25T08:24:16.994159 | 2021-01-28T09:44:52 | 2021-01-28T09:44:52 | 333,711,973 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 218 | ino | juo.ino | #include <Servo.h>
Servo moto;
int x;
void setup() {
Serial.begin(9600);
moto.attach(9);
}
void loop() {
x=analogRead(A1);
Serial.println(x);
x=map(x,0,1024,15,170);
moto.write(x);
}
|
2adbfa0e07a66ccb936654fa098b0fa34afe10c2 | ff30c0577d4063fae82240c4052d9f263bd09798 | /src/ai/parse/parser.cc | bb5ca9ba9d48e6671d54a2b938ce88b6c7e5eef0 | [] | no_license | ashwin153/chess | e1b3a2b2c914f5412526dbd77cd6c6d6b1ab517d | c206369fd41ac7fa1de5dc59c51e387a721e60fa | refs/heads/master | 2021-07-01T08:42:44.481868 | 2021-05-27T16:42:59 | 2021-05-27T16:42:59 | 54,608,161 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,371 | cc | parser.cc | #include "parser.h"
#include "sample.h"
#include "core/game.h"
#include <thread>
#include <regex>
#include <ctime>
#include <chrono>
#include <iomanip>
namespace chess {
void Parser::parse_game() {
// Define the regex patterns outside the while loop to save time; these regex
// patterns will not change in the bod... |
676554ac0256f2a7a2bc73272324eac407d152de | 9852c073ce1172be34ccdf59d895913919931948 | /02/GraphicsProject/window.hpp | c74a1227b1d92ab03847e3e32a4295f10a50a91e | [] | no_license | dcsepregi/bevprog2bead3 | 092545156adbee84c8f89fe2e58541750d3e4900 | f00332f779ff04863d6312dfb6fc38e49a486850 | refs/heads/master | 2021-01-20T07:36:39.824025 | 2017-05-15T06:45:29 | 2017-05-15T06:45:29 | 90,017,428 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 396 | hpp | window.hpp | #ifndef WINDOW_HPP_INCLUDED
#define WINDOW_HPP_INCLUDED
#include "widgets.hpp"
#include <vector>
class Window {
protected:
int elem;
std::vector<Widget*> vw;
std::vector<Widget*> vw2;
int szdb1=0;
int szdb2=0;
int szdb3=0;
public:
virtual void esemeny(std::string mitortent){}
void ell... |
046bf28d2412666e149d1d314549ddea190a26b0 | e57d49b6f5197af2ea442a74cfdcd14517c3631d | /Hmwk/Assignment_2/Gaddis_8thEd_Chap3_Prob5_MaleAndFemalePercentages/main.cpp | 37a26aa31e0988d65debb3ff8b3863736a0fd5a4 | [] | no_license | sh2576104/HollowaySean_CIS5_44187 | 76c456fb91643b13751b977655e93712bd3f28dd | 75e109a7cb539899143869d68f5e53b308ec7f15 | refs/heads/master | 2020-02-26T15:02:14.699090 | 2017-06-03T06:27:14 | 2017-06-03T06:27:14 | 83,260,204 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,127 | cpp | main.cpp | /*
File: main.cpp
Author: Sean Holloway
Created on March 10, 2017, 9:00 PM
Purpose: Male and Female Percentages
*/
//System Libraries
#include <iostream> //Input - Output Library
#include <iomanip> //Format Library
#include <cmath> //Math Library
using namespace std;
//User Libraries
//Global Cons... |
5deb7bcfa3fc5117ecac78610aec5a8c8d362ff6 | 8bf27743860c656a7899b71558e9673771200db8 | /单链表的应用/单链表的应用/应用.cpp | 2a4071bce072c770d46d9a0d2aafc9acd28e6162 | [] | no_license | locolocoer/mycode | c763515eaa97d7a050ab42ea889d9c76576d6ef2 | d8c7631e195937df81bb01368f83194a91bc7ab5 | refs/heads/master | 2023-03-26T16:19:12.830703 | 2021-03-27T01:16:06 | 2021-03-27T01:16:06 | 342,147,025 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 398 | cpp | 应用.cpp | #include <malloc.h>
typedef struct LNode {
struct LNode* next;
int data;
}LinkNode;
void split(LinkNode*& L, LinkNode*& L1, LinkNode*& L2)
{
LinkNode* p = L->next,*q,*r1;
L1 = L;
r1 = L1;
L2 = (LinkNode*)malloc(sizeof(LinkNode));
L2->next = NULL;
while(p!=NULL)
{
r1->next = p;
r1 = p;
p = p->next;
q = ... |
4a62647a3411290d95821ba914ddb25261132b78 | f7a22bc75d2f2ae7e80424e564f903a61ce25901 | /Blocksworld/AStarSearch.h | a83a27ddd208b827ecb72b8efa6c6f95a26ea48a | [] | no_license | emilutz/Blocksworld-tile-puzzle | 5cb928fb0c22b420dd6a834a35d6a2313b38ffd1 | cec1f6b1bef94a9dda808900b1f88f9e691e5d8a | refs/heads/master | 2021-09-01T06:49:04.460676 | 2017-12-25T13:11:33 | 2017-12-25T13:11:33 | 114,794,213 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 847 | h | AStarSearch.h | #pragma once
#include "conio.h"
#include "iostream"
#include <queue>
#include <ctime>
#include <cstdlib>
#include <algorithm>
#include "StarState.h"
#define STAR_EXPANSION_LIMIT 3000000
class AStarCompare
{
public:
bool operator() (StarState* s1, StarState* s2)
{
if (s1->getF() > s2->getF())
{
return true... |
e88b725a4f229d43506640cb7eaf1b5ff1d3c58c | 3a820086212fecb44105e375cf2559090bb6f0e3 | /src/chat/include/db_proxy_monitor_t.h | 6446d5f7192a9667fa5bfac78f24fd1e6bdccfc6 | [
"Apache-2.0"
] | permissive | ychat/ychat | 7b5a390cea07f2ddf94a73c59b7b2e59ab205b69 | ec7c182790be835531a4445eefe8544b16610d26 | refs/heads/master | 2021-01-23T21:22:06.263812 | 2016-09-28T15:11:38 | 2016-09-28T15:11:38 | 68,695,103 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 470 | h | db_proxy_monitor_t.h | #pragma once
namespace ychat
{
class db_proxy_monitor_t:public acl::connect_monitor
{
struct pingpong_t:acl::aio_callback
{
virtual void close_callback ();
virtual bool timeout_callback ();
virtual bool read_callback (char* data, int len);
void ping ();
acl::check_client* checker... |
cb2512a54227892afec5bd590da40994fbc34250 | 019814bd7070d1f14405d1ac70d9c7a6ff311d57 | /Workbench/ProjectEuler/Euler31.cpp | 7e8d47777c4f8402a4704661347abf6e2eb58e5d | [] | no_license | Andrenator/Workbench | 211741e69d83cc1cb29681b370ca741416d23466 | 85c2cd88d6619ea05301089d00668b05dc0f88c5 | refs/heads/master | 2016-09-01T12:25:02.146456 | 2016-04-07T20:53:45 | 2016-04-07T20:53:45 | 49,672,469 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 836 | cpp | Euler31.cpp | #include <iostream>
using namespace std;
int count(int*);
int main()
{
int coins[8] = { 0 };
int total = 0;
while (coins[7] < 2)
{
if (coins[1] > 100)
{
coins[1] = 0;
coins[2]++;
}
if (coins[2] > 40)
{
coins[2] = 0;
coins[3]++;
}
if (coins[3] > 20)
{
coins[3] = 0;
coins[4]++;
}... |
16ae08a1975c48775b8788bc2c5bb046b7cd08ce | 1ec3f7b2d0353228bbcef516cdd5d727befe20b2 | /완전탐색(1476).cpp | 33fcd02ed7de48a253808a2aaf5b66243ac76c3f | [] | no_license | elufe/algorithm | 6fe07ac59920a73bae5e9219e2b544c5e2295159 | 78fd2788bf59255feef14756aaed21115120594e | refs/heads/master | 2021-07-13T17:17:01.972913 | 2020-06-03T11:45:13 | 2020-06-03T11:45:13 | 152,955,400 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 485 | cpp | 완전탐색(1476).cpp | #include<iostream>
#include<stack>
#include<queue>
using namespace std;
int main() {
int e, s, m,year=0;
int ec=0, sc=0, mc=0;
cin >> e >> s >> m;
queue<int> es, ss, ms;
es.push(year%15+1);
ss.push(year%28+1);
ms.push(year%19+1);
year++;
while (es.front() != e || ss.front() != s || ms.front() ... |
cea28b0c2cb210245a9435ccf482d74804d41c5d | b5e49d5cc2f95cdb07449b7c58c5368ebf0deb23 | /C++/by_difficulty/medium/207_m.cpp | d56c22c76292fe9ee8f44441a9fb9a166f2e741f | [] | no_license | changsongzhu/leetcode | f5140afe8d4a397a9a785b72a12df2c20804ea92 | fea7de085e3f7b012e6bbf661569de00d2a3eb3e | refs/heads/master | 2021-01-22T18:54:04.308549 | 2018-03-30T21:50:48 | 2018-03-30T21:50:48 | 85,131,357 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,621 | cpp | 207_m.cpp | /**
207[M]. Course Schedule
There are a total of n courses you have to take, labeled from 0 to n - 1.
Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expressed as a pair: [0,1]
Given the total number of courses and a list of prerequisite pairs, is it possible ... |
246755cb93dad6253832b1740864e1b7acceb7bb | 5456502f97627278cbd6e16d002d50f1de3da7bb | /content/browser/device_sensors/data_fetcher_shared_memory.h | 38d9a35c39394344c50cd7c1f530c37a98a95787 | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/Chromium_7C66 | 72d108a413909eb3bd36c73a6c2f98de1573b6e5 | c8649ab2a0f5a747369ed50351209a42f59672ee | refs/heads/master | 2023-03-16T12:51:40.231959 | 2017-12-20T10:38:26 | 2017-12-20T10:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,958 | h | data_fetcher_shared_memory.h | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_H_
#define CONTENT_BROWSER_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_H_
#include... |
6718cf6a6aa80e419854b1bb0b9806e841687422 | c97b6ae2f10839f8e98fb2ed450ea1b74b899dfd | /cpp/file_spriter.hpp | d38a41ab310e61983a0128f6daa75a2d0b592ea0 | [] | no_license | Daiki-Iijima/Clang_TodoList | 5dd994db2a2e9cbec032e494ad0ec062d16df958 | 8163fc7bf86e40360597ac3d4bf6958138be46d2 | refs/heads/main | 2023-08-26T03:44:10.961580 | 2021-10-31T06:08:17 | 2021-10-31T06:08:17 | 405,986,380 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 283 | hpp | file_spriter.hpp | #ifndef FILE_SPRITER_HPP_
#define FILE_SPRITER_HPP_
class FileSpritter {
public:
FileSpritter(const char *const data, int size);
char *get_sprit_data(int rowCount) const;
int get_row_count() const;
private:
int m_row_count;
char *m_sprit_data[];
};
#endif
|
a3c0811d0c9dc60104e7f49d8053fadaf890a589 | 051bdaceb1248d4280fc0d6562ae07f6c4f6f5b5 | /auxiliary/metro_sources/wrap/io_trimesh/import.h | 96d161bbef13bacd3162b5f6723af0b6009cd7a4 | [
"MIT",
"GPL-3.0-only"
] | permissive | kierannp/3dsnet | 2781a508d6843709933f495c0e2bded3cea31d11 | 429c3d431b36358e43c61692e0d02df3ea255635 | refs/heads/main | 2023-05-15T04:03:12.603581 | 2021-06-09T19:22:40 | 2021-06-09T19:22:40 | 369,330,626 | 0 | 0 | MIT | 2021-05-20T20:29:38 | 2021-05-20T20:29:38 | null | UTF-8 | C++ | false | false | 6,579 | h | import.h | /****************************************************************************
* VCGLib o o *
* Visual and Computer Graphics Library o o *
* _ O _ *
* Copyri... |
824bbe1aedfd17cf91bc93041a72ac89ac1f3bcd | 9e88526e23506544b204e319ad8b127aaf945dd4 | /CSVParser/CSVSettings.h | 4294886d489d06fc7019fba40c0f5b48458f41ec | [] | no_license | kuna/LR2csv | 35bd9021cf211293247ea868bf2cbc213cbb4b6a | 06eed9736f097bcf7a8d3f8a4a1fff4635122845 | refs/heads/master | 2016-09-05T11:48:26.703308 | 2014-09-23T05:46:06 | 2014-09-23T05:46:06 | 21,770,132 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,059 | h | CSVSettings.h | #include <tchar.h>
#include <string>
#include <map>
#include <vector>
#pragma once
/*
this class manages all about CSV Settings that need to be storaged
about custom DSTOPTION, *.ext paths and so on ...
*/
class CSVData; // prevent each-referencing
namespace CSVPlayOptionConst {
enum CSVPlayOptionConst {
GUAGEM... |
68476ef67672882118729f67572c9a9ad3b793ee | 489170db498077806a65e35759f8878e018b3f6b | /compiler/Diagnostic.hh | 1892da3b8dbcf2f17a5125c21672a4cfcd582613 | [] | no_license | yeetari/kodo | 233b0b85cf8ee87709a85d0d1dd9e9ebc4783ba8 | 45cea090a41ac088b1fd7a91b4b4b59c7dc5d752 | refs/heads/master | 2023-08-30T02:44:43.374836 | 2021-10-29T15:49:09 | 2021-10-29T15:49:09 | 411,987,182 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 904 | hh | Diagnostic.hh | #pragma once
#include <SourceLocation.hh>
#include <fmt/format.h>
#include <string>
#include <vector>
class Diagnostic {
const SourceLocation m_location;
const std::string m_error;
std::vector<std::pair<const SourceLocation &, std::string>> m_notes;
public:
template <typename... Args>
Diagnosti... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.