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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4a68836fd4f95b147a465a89d0191c2d4a5cd271 | b4af26ef6994f4cbb738cdfd182e0a992d2e5baa | /source/leetcode/1882/panze.cpp | ba7665b0eb3f7e7894ab94a1867c168d0edd3b64 | [] | no_license | wisest30/AlgoStudy | 6819b193c8e9245104fc52df5852cd487ae7a26e | 112de912fc10933445c2ad36ce30fd404c493ddf | refs/heads/master | 2023-08-08T17:01:12.324470 | 2023-08-06T11:54:15 | 2023-08-06T11:54:15 | 246,302,438 | 10 | 17 | null | 2021-09-26T13:52:18 | 2020-03-10T13:02:56 | C++ | UTF-8 | C++ | false | false | 1,208 | cpp | panze.cpp | #define ull unsigned long long
struct Server {
int idx;
int priority;
friend bool operator<(const Server &lhs, const Server &rhs) {
return (lhs.priority != rhs.priority) ? (lhs.priority > rhs.priority) : (lhs.idx > rhs.idx);
}
};
struct Worker {
Server server;
ull end_clock;
friend bool operat... |
1eaf7164808b3e91ecad1d554a8111922535e810 | 14015867b104910fc19ceda6a2724ca831c9e515 | /bst_tests.h | bf7a9151d1a84575375e0e0d354201d259492d03 | [] | no_license | barskhianfannie/Objects | a673f861b4769267634e5fe64a58e8f2ef953395 | 1f07f1a15bf69a007276ebb3a41e8ddd369ba8cc | refs/heads/master | 2020-08-04T02:31:14.663149 | 2019-09-30T22:55:27 | 2019-09-30T22:55:27 | 211,971,909 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,365 | h | bst_tests.h | #ifndef BST_TESTS_H
#define BST_TESTS_H
// AUTHOR : FANNIE BARSKHIAN
// CLASS : DATA STRUCTURES
// PROJECT : BINARY SEARCH TREES
#include "../BSTrees/bst_functions.h"
#include "../BSTrees/bst_class.h"
#include <iostream>
void test_insert();
tree_node<int>* make_tree();
void test_sorted_list();
void BST_Menu();
void... |
9c79d7f616917969972243f25226ff00192bb3ce | 5128de785ab87c9c83d00c0f543b8bd8561b8d8b | /src/gui/etriggermain.h | 4497ff66ea5db73b0b41787df06b0f1af4e10c86 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | Gianluigi/3gger | 15059e166f9df867cbdf7601cbfc8f748843f5ce | 5c73c6361473362c2630cb909d765e278059adee | refs/heads/master | 2021-01-18T14:02:43.539871 | 2014-06-12T20:35:45 | 2014-06-12T20:35:45 | 20,763,325 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,188 | h | etriggermain.h | #ifndef ETRIGGERMAIN_H
#define ETRIGGERMAIN_H
#include <QtWidgets/QMainWindow>
#include <qextserialenumerator.h>
#include <qextserialport.h>
#include <QList>
namespace Ui {
class eTriggerMain;
}
class eTriggerMain : public QMainWindow {
Q_OBJECT
public:
eTriggerMain(QWidget *parent = 0);
~eTriggerMa... |
dd4c4f4691fd7714f3e3e37ff506d368b418a2df | 4f2283750a3bb8706f1dd176cf9823c5f67f40c8 | /chaos/cu_toolkit/ControlManager/AttributeSharedCacheWrapper.h | e6aab2b813ee89c673c857fc2470e675038d67b7 | [
"Apache-2.0"
] | permissive | fast01/chaosframework | 62d97cc05823d9ec71f494ac518f927cbf837476 | 28194bcca5f976fd5cf61448ca84ce545e94d822 | refs/heads/master | 2020-12-31T04:06:07.569547 | 2014-12-05T09:37:34 | 2014-12-05T09:37:34 | 29,051,305 | 2 | 0 | null | 2015-01-10T08:07:31 | 2015-01-10T08:07:31 | null | UTF-8 | C++ | false | false | 8,094 | h | AttributeSharedCacheWrapper.h | /*
* AttributeSharedCacheWrapper.h
* !CHOAS
* Created by Bisegni Claudio.
*
* Copyright 2014 INFN, National Institute of Nuclear Physics
*
* 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... |
aae5609bed0ad6cb56910adbe2b5aab46e8977cd | d04531545ad137c850763fa412651d0acbbabc53 | /neon_examples/HOG_SVM/HOGDescriptorFixture.h | 417d6f0a53afd607164db0615c95e3d0645d6342 | [] | no_license | karljiang118440/ARM-compute-library | 216089b00aada05df611cd36d49ec7a8f720cac8 | 09073974fe8a343dc4f767a9635323aa71be5522 | refs/heads/master | 2022-01-14T13:41:05.926063 | 2019-07-17T12:29:10 | 2019-07-17T12:29:10 | 183,392,433 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,127 | h | HOGDescriptorFixture.h | #ifndef ARM_COMPUTE_TEST_HOG_DESCRIPTOR_FIXTURE
#define ARM_COMPUTE_TEST_HOG_DESCRIPTOR_FIXTURE
#include "arm_compute/core/HOGInfo.h"
#include "arm_compute/core/TensorShape.h"
#include "arm_compute/core/Types.h"
#include "tests/AssetsLibrary.h"
#include "tests/Globals.h"
#include "tests/IAccessor.h"
#include "tests/fr... |
6ea2e76c79f2f76e1b514cdf69458763979584b8 | 4e9799a0082d15d7994b61ee046eda9ea4b2a591 | /src/system_call/list.cpp | fb6dd4a5ca6fee0df2496e46eddec1c9ad4f4ac8 | [] | no_license | MIXALER/apue | d128a439326ca46da89eacb52cf64e6ac54a2e63 | 1edeb8f501a4760c62e530514ede3261051bb238 | refs/heads/master | 2023-09-04T16:58:30.185333 | 2021-11-22T08:38:50 | 2021-11-22T08:38:50 | 354,752,934 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 512 | cpp | list.cpp | //
// Created by yuanh on 2021/3/26.
//
#include <dirent.h>
#include <sys/types.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
DIR *dp;
struct dirent *dirp;
if(argc != 2)
{
printf("a single argument is required");
return 1;
}
if((dp = opendir(argv[1])) ... |
120231b60da06171cae61ec457f1fc171fc5307f | feddf2c2121c1e5f679ef2a4205a4cb092b673e3 | /DataType/datatype.h | 7a7c9681ce38fa7a5eb282b1840a4db22b287a77 | [] | no_license | linbinyang/Inference-System-without-TensorFlow-api | 1f8436289c9d6c179d2a2dafe3783c25837ceb0c | 66d32133f0696709b0954cd6952b0c511884c1b5 | refs/heads/master | 2022-07-13T18:22:11.593743 | 2020-01-03T06:22:35 | 2020-01-03T06:22:35 | 227,769,348 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 25,145 | h | datatype.h | //
// Created by Linbin Yang on 2019-12-28.
//
#ifndef C_INFERENCE_DATATYPE_H
#define C_INFERENCE_DATATYPE_H
#include <common/commonlib.h>
#include <fstream>
#include <limits>
namespace MultiEigen{
template <typename T>
struct Eigen_Vector{
public:
Eigen_Vector(){}
Eigen_Vector(int m, Js... |
24c6cedaa8aa5c43abbdc858ff6b7aee71e63f63 | ddb11f23cb67059703c67aad577bf217111c252c | /gadgets/mri_core/GenericReconGadget.h | 896ec9a2ad0921f25ca2e66049ef841afb66fce0 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | idvr/gadgetron | 25ad6266a511f6c3cdf6f3becd1dbdf57ddf0612 | ddd08b8ccef6987e398353588b0d0ff946874660 | refs/heads/master | 2021-01-18T00:16:53.133513 | 2016-03-07T20:14:19 | 2016-03-07T20:14:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,305 | h | GenericReconGadget.h | /** \file GenericReconGadget.h
\brief This serves an optional base class gadget for both 2DT and 3DT reconstruction, working on the IsmrmrdReconData.
Some common functionalities are implemented here and can be reused in specific recon gadgets.
\author Hui Xue
*/
#pragma once
#include <complex>
... |
57c167bb73af500e983c1bb5c62af4a221a91d1d | 82815230eeaf24d53f38f2a3f144dd8e8d4bc6b5 | /Airfoil/wingMotion/wingMotion2D_pimpleFoam/2.34/pointDisplacement | 58bc23131e0d62443753d4527b0d4710c6f8be62 | [
"MIT"
] | permissive | ishantja/KUHPC | 6355c61bf348974a7b81b4c6bf8ce56ac49ce111 | 74967d1b7e6c84fdadffafd1f7333bf533e7f387 | refs/heads/main | 2023-01-21T21:57:02.402186 | 2020-11-19T13:10:42 | 2020-11-19T13:10:42 | 312,429,902 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 705,100 | pointDisplacement | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
... | |
043b339de88deae10ad7cb30015a8c6e3d8700bf | 407c9c51f97a58dba7bbc7788a0b405ebe138c37 | /addonfunctions.h | 8d8bfae3e7c71b82be04f0cfa4c3e4c72dcf4b57 | [] | no_license | taljacob2/ElectionSystem | 0b2b0254f7f253433d1830e336570702df6c8581 | fa8a1eca0c0f0e59c6930e6619f91178f4405e22 | refs/heads/master | 2023-04-03T17:52:37.535898 | 2021-04-16T17:30:34 | 2021-04-16T17:30:34 | 358,651,706 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,171 | h | addonfunctions.h | #pragma once
#include "Election.h"
#include <iostream>
#include <ctime>
// ALL MAIN FUNCTIONS
using namespace elc;
using namespace std;
class Input {
public:
constexpr static int zero = 0;
constexpr static int one = 1;
constexpr static int two = 2;
constexpr static int three = 3;
constexpr static... |
20134242c4c229ccc2f434a8faf3c8120f8bcf24 | 3d4fab30c2ed5d8bb6a2b511ae1efb7d9b2d8fae | /services/core/jni/com_android_server_am_ActivityManagerService.cpp | 50e4502a9a3a24b7364e2d532c0d1e573cbfd090 | [
"LicenseRef-scancode-unicode",
"Apache-2.0"
] | permissive | AquariOS/frameworks_base | 74af3ab21ec331577b5fdb067970b9c431d0a5bc | 82224174b35c98bbe6566389db3b9646a50096da | refs/heads/a7.1.2 | 2021-12-01T06:00:53.850285 | 2017-03-16T14:26:27 | 2017-08-18T02:21:55 | 111,934,139 | 5 | 35 | NOASSERTION | 2019-04-08T07:59:24 | 2017-11-24T15:45:59 | Java | UTF-8 | C++ | false | false | 4,467 | cpp | com_android_server_am_ActivityManagerService.cpp | /*
* Copyright (C) 2015 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... |
3acd8621eca643c06a64a6f4c6129b74aee20997 | ca862caa6b6a4868a654de487c11675c51ea3708 | /class/Railway.cpp | 8bffddc3cd562cab51edb414e186941079afe7a6 | [] | no_license | cadisrmz/Shortest_Route | 7fe7161f589313483cc331fc7ed203f4b1e5f9e7 | 963d805586e3d8976500b480d236e061eafdb942 | refs/heads/master | 2021-01-17T07:39:51.238315 | 2012-12-05T03:22:33 | 2012-12-05T03:22:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,771 | cpp | Railway.cpp | #include "Railway.h"
void showRail(Rail *&r, int i)
{
std::string j = "\t(";
if (i <= 9) {
j += '0';
}
std::cout
<< j << i
<< " - " << &r
<< ") " << r->depart()->name()
<< " -> " << r->arrival()->name()
<< " [" << r->train()
<< "]\t= " << r->duration()
<< "min ... |
41cfb6a0accbe29628579cd69570c1d5d412ca3c | b4e5fc44a46931bd95b257e1358088497ee2af20 | /testir.ino | a156242abd61314997d43b0941725f29b769feb6 | [] | no_license | nickmhnk/arduino-robot-v1 | 9d9efcf4f77800cdaa312094a8e75e899b9991dd | 71e28ee93c40d80fbb270db4f620982e2bfbcbb5 | refs/heads/master | 2023-03-13T12:32:21.789617 | 2021-03-28T16:33:53 | 2021-03-28T16:33:53 | 352,369,758 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,351 | ino | testir.ino | #include <IRremote.h>
#include <Servo.h>
#include <NewPing.h>
#define ENABLE_LED_FEEDBACK true
#define USE_DEFAULT_FEEDBACK_LED_PIN 0
const int LeftMotorForward = 7;
const int LeftMotorBackward = 6;
const int RightMotorForward = 5;
const int RightMotorBackward = 4;
const int servoPin = 11;
const int IR_RECEIVE_PIN =... |
344a817e739f66dc7cd0e3876a1116af6ee8b4fe | badd6248da9dc48832a028694a34092bf478f8cb | /Common/CommonTests/IndexerTest.cpp | 3f216ef7b422651683b9d53503f47597f9e08b1d | [] | no_license | SergeyBakev/Common | 175d2cd6f22e6a158455ed6619a9cc918fd77f2f | 4738fa40aacf8000b78f9d0bb5f7454a8e480171 | refs/heads/main | 2023-04-21T11:00:48.905205 | 2021-05-15T03:35:26 | 2021-05-15T03:35:26 | 322,772,200 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 166 | cpp | IndexerTest.cpp | #include "pch.h"
#include "CppUnitTest.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace CommonTests
{
TEST_CLASS(FArrayBaseTest)
{
}
} |
5cd814adadf8862dc81619d1ccb0a54f10dbe831 | 26784bbd3825130f1fc14fc54a4558a5287c5254 | /Heap/LeftistHeap.hpp | 5579059c93763e5c3514bdf09d3805d48631847a | [] | no_license | takkyu2/purely-functional-data-structures | 3a6ca050351155ccd72db5a4396498c8a2ac88c9 | 0a29fd36f522a823e13c4164d27427bcc3b5d84b | refs/heads/master | 2023-04-07T15:01:10.994929 | 2021-04-20T09:12:09 | 2021-04-20T09:12:09 | 341,415,313 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,670 | hpp | LeftistHeap.hpp | #ifndef LEFTIESTHEAP
#define LEFTIESTHEAP
#include <iostream>
#include <concepts>
#include <variant>
#include <memory>
#include <functional>
#include <stack>
#include "../utils/utils.hpp"
using namespace std::placeholders;
template <Ordered Elem>
class LeftistHeap {
private:
struct SubLeftistHeap {
SubLef... |
53b04b6a432182399e523594ad9100da922d1401 | 879a91d6f32c24ae6255aea84e2f4750d3903306 | /LRUCacheTest.cpp | 1291f5d324057225b7a52fc1837e0ee56b7d32bb | [] | no_license | bonty/tdd_bootcamp | c04c4f8aeadef2b393243c867e429eb7149aa232 | 9e4cd716978cbd0b81151a9f6c2ac790887dfb44 | refs/heads/master | 2020-06-07T02:48:23.030349 | 2012-02-14T05:40:13 | 2012-02-14T05:40:13 | 3,436,503 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 258 | cpp | LRUCacheTest.cpp | #include <cppunit/config/SourcePrefix.h>
#include "LRUCacheTest.hpp"
CPPUNIT_TEST_SUITE_REGISTRATION( LRUCacheTest );
void LRUCacheTest::test_put()
{
CPPUNIT_ASSERT(1 == lru->put("a", "dataA"));
}
void LRUCacheTest::setUp()
{
lru = new LRUCache();
}
|
27e4f748459101fd4d23f466e9eecbc38bb6821d | 624ea811498ae331bb7491ccb45177d3a154dd60 | /bloop2.cpp | cd6c4c294a0ae7de929f9177f96ea7bd1533f2ef | [] | no_license | RichardBanh/cpp | 363a6120f1b414b384994bb76d5c3dd504bc5d7b | 81eb00d9fd60f0ad43022d0f82e8ff72af251606 | refs/heads/master | 2022-12-16T11:44:28.093016 | 2020-09-10T07:38:59 | 2020-09-10T07:38:59 | 291,405,604 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 791 | cpp | bloop2.cpp | #include <iostream>
using namespace std;
int main() {
int dollars;
int cents;
int totalCents;
int quart;
int dimes;
int nickles;
int pennies;
cout << "Please enter number of dollars followed by a space then cents:";
cin >> dollars >> cents;
dollars = dollars * 100;
totalCen... |
b921c4ada8c3e73e9a60e8ba2900d6e01d3f2080 | 39827fa483eb7bbc978373b387cbd0e46e5481ef | /霍夫曼树与霍夫曼编码/greedy-huffman/main.cpp | 8463203486f5d7f6ebfe25de6e7fe86709c19f2c | [] | no_license | Justobe/ACM | fa3b7e2e529376d8e94b336d7e3f8bbd8d55d272 | 6ff8baa0363beb700c4ddc76c5eaf8fa9d438c3e | refs/heads/master | 2021-01-20T13:03:57.508198 | 2017-09-12T07:34:42 | 2017-09-12T07:34:42 | 101,731,496 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 588 | cpp | main.cpp | #include <iostream>
#include<queue>
using namespace std;
int main()
{
int arr[1002];
int b[1002];
int n;
while(cin>>n)
{
priority_queue<int, vector<int>, greater<int> > ht;
for(int i = 0 ; i <n; i++)
{
cin>>arr[i];
ht.push(arr[i]);
}
i... |
9bbeb06ebe8dc58d1de7edd088851ceb1d6b06e5 | 041d5d32ecc483ec389c3832941a50650135ea7c | /include/temp_functions.h | 9e8ab9fde4a0c4a0045c88a12846d72ea1a11335 | [] | no_license | milton-pagan/iq-switch | a6f42545bb9886764b311fe4e26b9e8c4701d6a5 | a024348921319fc1d951cf902a420404ab4ae818 | refs/heads/master | 2020-06-17T08:22:19.859958 | 2019-07-11T01:33:52 | 2019-07-11T01:33:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 133 | h | temp_functions.h | #pragma once
#include <iostream>
#include <vector>
void print_2D_array(int **arr, int size);
void print_vector(std::vector<int> v);
|
2a26127a484e93fa4a43ada34d8e21f5e00c6407 | e3c1509da264714272ff431b351c538909d0b7d5 | /chapter 12/d22_p1/cow.cpp | 6877fb37ad48100505e8a4dccdaa79af6a12eb75 | [] | no_license | 61jing/C---Primer-Plus-Exercises-Solutions | dfec0878685a72f9301e9a8fe0b1158062c99222 | aca58ac30ed7c7aad1751a84e2f690dfb1d1221e | refs/heads/master | 2020-07-12T23:40:12.943799 | 2013-07-02T14:16:04 | 2013-07-02T14:16:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 954 | cpp | cow.cpp | #include "cow.h"
Cow::Cow() {
name[0] = '\0';
hobby = NULL;
weight = 0;
}
Cow::Cow (const char * nm, const char * ho, double wt) {
strcpy(name,nm);
hobby = new char [strlen(ho)+1];
strcpy(hobby,ho);
weight = wt;
}
Cow::Cow (const Cow & c) {
strcpy(name,c.name);
hobby = new char [s... |
68e51dee1460e6987b738c76cd90d7629fcff484 | a7c1d71890b463ef57d3c56b6b6086d489aa798e | /GFG Code/DP/coin_change_problem_approach2.cpp | 13d81aabb61e1e84605d08327d0ec029d2415f3b | [] | no_license | anilchoudhary/DSA | 7016eb5172a6e4762384ab4e3906401085bd9f7a | 19b2816afe38ec95a736daeea99165259cb98a1c | refs/heads/master | 2020-12-26T10:05:24.678772 | 2020-10-26T06:25:01 | 2020-10-26T06:25:01 | 237,475,644 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 399 | cpp | coin_change_problem_approach2.cpp | #include<bits/stdc++.h>
using namespace std;
int count( int S[], int m, int n )
{
int table[n + 1];
memset(table, 0, sizeof(table));
table[0] = 1;
for (int i = 0; i < m; i++)
for (int j = S[i]; j <= n; j++)
table[j] += table[j - S[i]];
return table[n];
}
int main()
{
int arr[] = {1, 2, 3};
int m = si... |
17b99b06df1e38bfef6316de4dbcf739f855b760 | d3b3e48e393ea3f5dadbc13161c6ecab6d0d977f | /lipovich/task#1/rabin_carp.cpp | b1479fe751b8c65011b1158036ee03d24cc9fbaf | [] | no_license | bioinf/bioalgo2013 | 7d6f7ae54273a22df93d18bc76d300610f3ea50e | 41051838bf24ec0b86bc708c596b719a8e7a0da9 | refs/heads/master | 2021-03-27T13:36:15.375247 | 2013-06-09T09:06:04 | 2013-06-09T09:06:04 | 8,815,477 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 880 | cpp | rabin_carp.cpp | #include "rabin_carp.h"
bool check(const std::string& p, const std::string& t, int pos, int n)
{
for (int i = pos; i < pos + n; ++i)
{
if (p[i - pos] != t[i])
{
return false;
}
}
return true;
}
TResult rabin_carp(const std::string& p, const std::string& t)
{
int... |
9f1310148017600eda657cfcb81d7dca3f50f4a3 | 40ac7b3467018a97781409785d1bbfb162ee462e | /libraries/BaseLib/include/aex/SpriteAnimated.hpp | f585e0e1abedd28e0efbcc66d5c6d638bfcb16bb | [
"BSL-1.0"
] | permissive | aexol/AexolGL | 611c165f53cf3ad3ae9cd7106c18a8d61a6801ba | 7fcc93d43ad329ebddadabf6a5c18bac995b060a | refs/heads/master | 2020-03-21T05:40:06.912374 | 2018-06-21T13:23:19 | 2018-06-21T13:23:19 | 138,172,393 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,020 | hpp | SpriteAnimated.hpp | /*
* File: SpriteAnimated.hpp
* Author: mritke
*
* Created on November 14, 2014, 4:08 PM
*/
#ifndef SPRITEANIMATED_HPP
#define SPRITEANIMATED_HPP
#include <aex/AexolGL.hpp>
namespace aex
{
struct AEX_PUBLIC_API SpriteFrame
{
int frameNumber;
int pageNumber;
aex::math::Vector2 Uv... |
9b0bba753ecc434308a121deb081c2c33ca67946 | 9ffdd5eee217d4265b4679665524d489fbf74af1 | /Mac_Linux/main.cc | 4d8a3ccfe0d241de73eaa3aa3152a151088e6a9b | [] | no_license | natelowy/CS3560-GroupProject | d8e42f5b0570e0acb61dadd9b87a368b9ed66280 | 1574c6482f55bab07249ad47bd3df5ae5782975d | refs/heads/master | 2020-03-09T21:01:45.075914 | 2018-04-24T14:36:42 | 2018-04-24T14:36:42 | 128,999,120 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,617 | cc | main.cc | #include<iostream>
#include<iomanip>
#include <cstdlib>
#include<fstream>
#include"game.h"
#include"game2.h"
#include"othello.h"
#include"colors.h"
#include"checkers.h"
#include"connect4.h"
int MENU1 = 0;
using namespace std;
using namespace main_savitch_14;
void colormenu(string &c1, string &c2, string &ctext);///co... |
2cab7150060c409f3e82979152382eb496c09763 | f4916f97b2ff6a246317fa4e6bc4fa8fc5e81836 | /include/io.h | d2ba3a03b8572600e9a4683b7fff15bcdcd25ec3 | [] | no_license | TedaLIEz/DES | 4b47458737ba304e4174e34c455eccada96dc8e9 | 3ebf3f580e5e45769ea84afe9977ebb9f8f0633b | refs/heads/master | 2021-03-27T16:31:06.649008 | 2017-06-06T09:02:33 | 2017-06-06T09:02:33 | 90,977,211 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,277 | h | io.h | //
// Created by aLIEzTed on 6/4/17.
//
#ifndef DES_IO_H
#define DES_IO_H
#include <iostream>
#include "pcap_encode.h"
#include <unordered_map>
#include "helper.h"
namespace IO {
inline int save_pcap(const std::string prefix,
PcapEncoder::pcap_hdr_t hdr,
const std::unordered... |
aa66f41693f0cfa0595919ad6f819b786d5c014a | cb590ddd9f0009af8f69f05f73224ff49fd3b05e | /main_game.cpp | 8dae1ac87e922a8454a3b09b960448778974b852 | [] | no_license | Luca145D/warriors-battle | 5ff7dbfcf058f55f9d5a8a8540f4e4bc3a6dbc1c | 09b2d5ed180cbb31010716c4916b1cbd0d3cc107 | refs/heads/master | 2020-12-12T13:26:21.261803 | 2020-01-15T16:24:03 | 2020-01-15T16:24:03 | 234,136,749 | 0 | 0 | null | 2020-01-15T17:37:32 | 2020-01-15T17:37:31 | null | UTF-8 | C++ | false | false | 235 | cpp | main_game.cpp | #include "game_logic/Game.h"
#include "warrior_class/Warrior.h"
int main(){
Warrior p1("Exodus", 100, 12);
Warrior p2("Witcher", 100, 10);
Warrior bruh("test", 999999999, 0);
Game game(p1, p2);
game.start();
return 0;
}
|
61ec65697ee6083c8a617af4228e028c86e85393 | 33a622755aa35c8bbf591444e20b74fe39197856 | /cpu_scheduling/srtf.cpp | 710b3b3c0bb2f25f3d77ce640d07bdd35cdc6312 | [] | no_license | Himanshu8862/OS_Simulator | 1c6841ed0e34da2e6e06d25fe67d83f1c640ffad | a7573647204d89621a81778cd911b61f5685dd2b | refs/heads/main | 2023-04-12T05:14:36.658798 | 2021-04-23T14:21:28 | 2021-04-23T14:21:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,586 | cpp | srtf.cpp | // SRTF CPU scheduling
#include<bits/stdc++.h>
using namespace std;
class srtf_Process // each process will have the following attributes
{
public:
int no; //process number
int atime; //arrival time
int btime; //burst time
int stime; //start time
int ctime; //completion time
int wtime; //... |
481645e71d905bef835335869dd01f4b954b323f | 382281ee782a59e3bc299ba7701f1adb907ba45f | /TopCoder/TheBeauty.cpp | 5e682d6f08d00225d49080a97caf267961758a7d | [] | no_license | TeamAseph/Competition | 8442e419ca648c80612e8f02f90b548fe8a656b6 | a796232205106c285b2d7beab6fda7231eb65c20 | refs/heads/master | 2021-06-19T19:45:14.437311 | 2017-07-04T17:28:01 | 2017-07-04T17:28:01 | 92,846,570 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,126 | cpp | TheBeauty.cpp | /*
Sifer Aseph
TopCoder: TheBeauty
https://community.topcoder.com/stat?c=problem_statement&pm=10233
*/
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <ctime>
#include <map>
class TheBeauty {
public:
int find (int n) {
if (n < 10) {
re... |
c9a3e338fb28d858169d3626ba51ba13ab07ceaa | 152622273a1249dc417a7e4f7f0e8b6643a3260b | /now_coder/cracking_the_code_interview/1_array_chars/7_clearZero.cc | efddf09965461974d344c4f0eb2fbc695447ef07 | [] | no_license | countryhu/algorithm | c59271ef0862415330c05e552460b011f87f2d47 | 4319083f1fb97ef500dcf12f9b8ca5553ee02d1a | refs/heads/master | 2021-03-24T09:54:28.925053 | 2017-12-08T08:43:17 | 2017-12-08T08:43:17 | 97,540,182 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,008 | cc | 7_clearZero.cc | #include <iostream>
#include <string.h>
#include <stdio.h>
#include <vector>
#include "util/to_string.h"
using namespace std;
/**
题目描述
请编写一个算法,若N阶方阵中某个元素为0,则将其所在的行与列清零。
给定一个N阶方阵int{}{}(C++中为vector<vector><int>>)mat和矩阵的阶数n,请返回完成操作后的int{}{}方阵(C++中为vector<vector><int>>),
保证n小于等于300,矩阵中的元素为int范围内。</int></vector></... |
6fd3cfa267e6b5157dceb18f4839d055a06a7a0d | c916e4e09d857417d1e033ff812e26c1fa890c89 | /Misc/lee-algorithm.cpp | 3d8a1e07a849666de6882c9c6e639f2942500960 | [] | no_license | Attyuttam/CompetitiveProgramming | f8da28511663b6b208aec93a9fae9c010714e968 | 5dae613bfc9e4bd6c0989b4f8d244087c4c759d3 | refs/heads/master | 2021-07-07T07:18:26.489421 | 2021-04-01T06:03:23 | 2021-04-01T06:03:23 | 232,314,791 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,724 | cpp | lee-algorithm.cpp | #include<bits/stdc++.h>
using namespace std;
struct cellDet{
int x;
int y;
int cost;
};
int findShortestPath(vector<vector<int>> v, int sx, int sy,int dx,int dy){
vector<vector<int>> visited(v.size(),vector<int>(v[0].size(),0));
queue<cellDet> q;
struct cellDet cell;
cell.x=sx;
cell.y=sy;
cell.cost=0;
q.p... |
ce96f38e7c38009c91a0817b6f450ddaf974eed5 | 0d4ebb64a0056e8fc287ae71c12ac5dd785ca44f | /ChronocastEngine/StreamWatcherManager.cpp | 503937f5a2d1415d2574bf1c0bfdb0ee36b5bbd0 | [] | no_license | alir14/StreamingEngine | b13a721e98d9e781a3374ea56481f0282c6ffd13 | 8b93a4002f20b2ffd8a3acc861cc845417873f7b | refs/heads/master | 2020-03-16T02:13:15.878230 | 2018-08-16T03:47:55 | 2018-08-16T03:47:55 | 132,459,803 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,026 | cpp | StreamWatcherManager.cpp | #include "stdafx.h"
#include "StreamWatcherManager.h"
void StreamWatcherManager::ProcessChunksSyncronization(std::string name, std::string path, std::string quality)
{
}
std::string StreamWatcherManager::GetChunkName(std::string name, std::map<std::string, std::string> currentItem)
{
return std::string();
}
std::m... |
9814ff30d84c875a1518d55dfee08f3c465cfd82 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /third_party/blink/renderer/core/css/css_global_rule_set.h | 14dce3350c4e93b548635d14aa641a40dfd28e8b | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 2,281 | h | css_global_rule_set.h | // Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSS_GLOBAL_RULE_SET_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSS_GLOBAL_RULE_SET_H_
#include "third_party/blink/renderer/core... |
fa5d98e47366fb0e941d3f567f75bcb504ade3d8 | c0a0712fe086e87d2798d8c9a63a1cb3678d335e | /src/Stemmer.h | 547aa11a43a2a46c8db1e882b20950b7f359e44f | [] | no_license | ae77em/datos-2-2012-isl | 4061ae9fa2629ddcbee0b1b90576bb63e7772869 | f2428a6b1005da15462e0a35cc0e21113521b420 | refs/heads/master | 2021-01-20T03:34:07.294444 | 2012-11-29T16:15:55 | 2012-11-29T16:15:55 | 40,095,634 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 992 | h | Stemmer.h | #ifndef __STEMMER_H_
#define __STEMMER_H_
#include <cstdio>
#include <string>
#include <iostream>
class Stemmer {
private:
std::string palabraEnProcesamiento; /* buffer para la palabra a procesar */
int tamanioFinal;
int posPrimeraLetra;
int posUltimaLetra; /* offset del string */
std::string s; /* al... |
10a10cf73045efe5c434d27d82d5fc97b3b80ed2 | f72eaf7dc726d9d71d1596133270ace3cda29e74 | /Code CD/horizon/code/global/include/particle.h | 3b26f9cda6f70b18ef0afc471ddfa1b310739f2b | [] | no_license | nikkennedy/uni_engine | f96e7b54e9660ed4cc219199c9b5d2c544845bbe | 74519e074722daf7787f0e7ab74c1a4541b491ef | refs/heads/master | 2022-01-17T21:17:24.740260 | 2019-06-24T18:20:53 | 2019-06-24T18:20:53 | 193,554,172 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 874 | h | particle.h | /* ---------------------------------------------------------------------------------
Filename - particle.h
Last Modified - 20/04/03
Author - Nicholas Kennedy
Project - Horizon (3rd Year BSC Computer Science Project "Interactive Game
system with Intelligence")
Description - De... |
c150630a8753e84909360d0407c15d90339f9281 | 21ab8235a1deadbd3914c15645226ca45978b1ad | /uniquepaths3.cpp | 0b6fd744346ef7858c81a1b69cdb3963e3ea27d7 | [] | no_license | surarijit/DSA_ALGO | 8a9079c71444928f88995679d16dafb50df8be5b | 1e1a1e189c9cd11b222150df2aa89952cb15de8d | refs/heads/master | 2023-01-29T04:36:49.892183 | 2020-12-07T07:01:47 | 2020-12-07T07:01:47 | 281,638,964 | 0 | 4 | null | 2021-10-01T10:58:11 | 2020-07-22T09:50:53 | C++ | UTF-8 | C++ | false | false | 2,054 | cpp | uniquepaths3.cpp | /*
ARIJIT SUR
@duke_knight
@surcode
@comeback
IIT ISM
*/
#include<bits/stdc++.h>
#define SIZE (ll)(1e6)
#define mod (ll)(1e9+7)
#define INF 0x3f3f3f3f
#define max(a,b) (a>b?a:b)
#define min(a,b) (a<b?a:b)
#define abs(a) ((a)>0?(a):-(a))
#define sc(a) scanf("%d\n",&a);
#define all(a) a.begin(),a.end()
#define... |
8c976d72e3602cedbc9e27666f358e73a34f0036 | 82d6c83edd224d06b40c97af5c4e2f5906a70ead | /third_party/sign/src/linux.cc | a83bc5781b91518c4fc1ba9427a43427f67f783b | [
"MIT"
] | permissive | AraAbrahamyanG/FIDO2Client | 4f57561e856b6cb7fedff8c54216fede4659006a | 3d42f1aadc69b514865381c89dbb6b26ddb177cb | refs/heads/master | 2023-08-17T17:43:01.086655 | 2021-09-25T09:03:52 | 2021-09-25T09:03:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,401 | cc | linux.cc | #include <node.h>
namespace Sign {
void Verify(const v8::FunctionCallbackInfo<v8::Value>& args) {
v8::Isolate* isolate = args.GetIsolate();
v8::Local<v8::Context> context = isolate->GetCurrentContext();
if (args.Length() < 1) {
isolate->ThrowException(v8::Exception::TypeError(... |
56f00fcbac207b81ea352337ac1acb78fcd56e6f | 549364a79502b5226da29d798e1ee4ba1cc8800f | /OpenGLIPhoneFace.hpp | db33e79264845dc14da8423f67f62b1cdc3c9e64 | [] | no_license | robwasab/SensorFusionSimulation | 7b1065dd72e4ace579cc5ba29211c51aeacee950 | 231bedcc4cfaa3ac7b3fda7d3a88b95b6b8e2098 | refs/heads/master | 2020-07-25T19:22:14.030526 | 2019-02-19T17:06:16 | 2019-02-19T17:06:16 | 208,400,294 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 370 | hpp | OpenGLIPhoneFace.hpp | //
// OpenGLIPhoneFace.hpp
// OpenGLTutorial
//
// Created by Robby Tong on 1/12/19.
// Copyright © 2019 Robby Tong. All rights reserved.
//
#ifndef OpenGLIPhoneFace_hpp
#define OpenGLIPhoneFace_hpp
#include <stdio.h>
#include "OpenGLSquare.hpp"
class OpenGLIPhoneFace: public OpenGLSquare
{
public:
OpenGLIPh... |
32ce8b8bbd86af114bcbeae0ac2422b69022214a | daf446ec301bf0a616ef2d4bbdffad5c6daadcdb | /Unit1.h | be20d68b117f87df84f54eda7cb2384c73f080a5 | [] | no_license | gameraccoon/graphiccreator | 2d996f1c11590e2482dea44f9b20023762a3afd0 | 6fa6a33ea2f690da1e293bfb996ad470ddad860b | refs/heads/master | 2021-05-29T03:51:13.358424 | 2013-06-04T00:55:03 | 2013-06-04T00:55:03 | 9,300,547 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,183 | h | Unit1.h | //---------------------------------------------------------------------------
#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>
//---------------... |
1ecf1e0141cecc61ac2215588c88a5c72865bad2 | 78a6a563a5d78eabbdba7f010c4a872f81a8da1b | /homography_estimation.cpp | ad1e81a56155fce7e9487bd63055933b01572595 | [] | no_license | dzyswy/homography_estimation | ace63beeed741bc4b90858126f4bdaa48940c95d | f1efe0d06f01fea52a37bcc57d64883d6b98dcb1 | refs/heads/main | 2023-02-16T11:12:21.337723 | 2021-01-19T11:52:09 | 2021-01-19T11:52:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,562 | cpp | homography_estimation.cpp | #include <iostream>
#include <stdio.h>
#include <opencv2/opencv.hpp>
#include <vector>
#include <string>
#include <fstream>
#include <sstream>
#include <omp.h>
using namespace cv;
using namespace std;
#define SQRT2 1.41
void detectFeatures(
const Mat& image1_,
const Mat& image2_,
vector<Point2f>& source_point... |
8333268d3ca320b1b6ee90397ef3167fb28f9281 | f7255ebd4f261bd55ba08fa0c5de2434223f2ec4 | /Direct3DWrapper/DX_3DCG/Core/Dx_SwapChain.cpp | 4c617113e15f3ffbe720fa45e7b84b8c92b71aac | [] | no_license | sugawara5110/Common | 434028750f92e019a0f6eef22ab617da4bdf4127 | b9e926e9d614fedd39ea0c9e46ac15b6dadfac7b | refs/heads/master | 2023-07-20T05:24:42.065267 | 2023-07-06T10:37:15 | 2023-07-06T10:37:15 | 131,511,410 | 4 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 10,460 | cpp | Dx_SwapChain.cpp | //*****************************************************************************************//
//** **//
//** Dx_SwapChain **//
//** ... |
491df8a560923ad246117a0ffa9807ea729a0bfd | cb50a29550f3c383b72775ff9fd6a820fcd17cea | /CVDRUN.cpp | a614797957a709823353410bd71231e91aca13c9 | [
"MIT"
] | permissive | harshitbansal373/codechef-solutions | 16b2c257579484619cf96e335542e7b1d60abfbd | 2c78c0c044a44e0f08cf72e8adf1f8593e1eb47e | refs/heads/master | 2020-12-21T19:38:44.894355 | 2020-10-22T03:31:16 | 2020-10-22T03:31:16 | 236,537,713 | 1 | 8 | MIT | 2020-10-22T03:31:17 | 2020-01-27T16:35:45 | C++ | UTF-8 | C++ | false | false | 439 | cpp | CVDRUN.cpp | #include <iostream>
using namespace std;
int main() {
int t=0;
cin>>t;
while(t--)
{
long n=0,x=0,y=0,k=0,d=0,a=0,flag=0,l=0,m=0,i=0;
cin>>n>>k>>x>>y;
if(y>n)
{cout<<"NO"<<endl;}
for(i=0;i<n;i++)
{
if((x+k*i)%n==y)
{flag=0;
cout<<"YES"<<endl;
... |
2519f619130b199a5919d8b7b5821ac1ddabaab9 | d37cd75d267bdeb29a6dc66463954220aab27aa9 | /C/C/字符串输入.cpp | 1ebaf4d4d52cb4bb5d8a8741754671f209105199 | [] | no_license | Yun-Su/C | 0fdf14c104f31504379f057c70a938f5468c87f8 | 230841e21e630769e2624fc8b29e8ef599c6558a | refs/heads/master | 2020-06-22T02:57:44.353703 | 2020-02-27T13:20:53 | 2020-02-27T13:20:53 | 197,616,279 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 170 | cpp | 字符串输入.cpp | #include<stdio.h>
#include<stdlib.h>
int main()
{
char a[30];
char b[30];
scanf_s("%s", a,30);
scanf_s("%s", b,30);
printf("%s\n%s", a, b);
getchar();
getchar();
} |
0a6f190fb3076eb588afc7e73afaa15d8768a7fe | 9f4ebce30784f6bf09334bfcd7e84c9ee10bb1de | /cluster/view_matrix/view_matrix.cpp | a00a46a1d9713d79dcaf6b4870aa32214f6bc256 | [] | no_license | qazxsw1597532018/cluster | 7dfc9a446107c0e0baf56d8fc1add676390cb30e | b239a56ee24c3304e5321b3e0ffe8ad331ff8e9f | refs/heads/master | 2023-01-10T01:52:32.792571 | 2020-11-14T14:01:21 | 2020-11-14T14:01:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,411 | cpp | view_matrix.cpp | #include "view_matrix.h"
view_matrix_t::view_matrix_t( ) { }
view_matrix_t::view_matrix_t(
float_t m00, float_t m01, float_t m02, float_t m03,
float_t m10, float_t m11, float_t m12, float_t m13,
float_t m20, float_t m21, float_t m22, float_t m23,
float_t m30, float_t m31, float_t m32, float_t m33 ) {
init(
m00... |
dcfdc6b609aa8ee21bb9fba85c8663ac7ae90d04 | 26a55bb7212db98622d2335cfd19c8d71e903bae | /src/World.cpp | a5e29c0e6a849d8850f33e3134b3f3baee397631 | [] | no_license | aakashbhowmick/opengl_experiment | 3a091973b0398d825018c61daa4e71c572114da0 | 97d18a21bc6bc61cc697084adcc5efbb5da46f28 | refs/heads/master | 2022-12-05T07:58:59.714404 | 2020-08-28T07:51:05 | 2020-08-28T07:51:05 | 255,879,846 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 93 | cpp | World.cpp | #include <World.h>
// Static member instantiation
std::unique_ptr<World> World::the_world_;
|
07db68434fe9abc80c244b77fa5f6b3fd035e5dd | 1204002f57e06f3c62465a04f78a8536df3a9d7e | /include/MainFrame.h | 77b92c42f92576436002faa18aed90d1a473361f | [] | no_license | renny1398/rennypsf | 27d196a23a41aa1d1985cab5e882ca7ea38bc19f | 8b6a2d4aae49635e112bc59d0ba8336830f72264 | refs/heads/master | 2020-05-21T22:49:25.211001 | 2015-10-10T02:45:32 | 2015-10-11T00:17:53 | 34,560,787 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 992 | h | MainFrame.h | #pragma once
#include "stdwx.h"
class wxTreeCtrl;
class SoundFormat;
class PSFPlaylist;
class MainFrame: public wxFrame
{
public:
MainFrame(const wxString& title, const wxPoint& pos, const wxSize& size);
private:
// Menu Event
void OnOpen(wxCommandEvent& event);
void OnExit(wxCommandEvent& event);
void OnAbout... |
94db605188f413c438f077702f51feff52836874 | 21c19f19884468492eda1a448c7060fcf6709f27 | /PC_3/PC_3_3.cpp | d979ad40568b14ff35d515efe1ad4a2a6ff90ded | [] | no_license | cblack618/StartingOutCPP | 76a29160ce55d004443c37455c7b3cd884742856 | 3f57cbba5db67691328f60ce3be423c2c7ef17b6 | refs/heads/master | 2021-01-03T17:41:21.424275 | 2015-05-31T23:32:36 | 2015-05-31T23:32:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,030 | cpp | PC_3_3.cpp | // This program calculates and displays montly and yearly housing cost.
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
double RentAndMortgage,
Utilities,
Phone,
Cable,
MontlyCost,
YearlyCost;
// Input monthly housing expenses.
cout << "This program will calculate ... |
9595463315e2a3638e3a3b8791e79a3cefe76ced | 845f1f898cd018712aea1d9de5545fc093c4e680 | /Projet/Projet2/fenetre_depart.h | 8c574875dc815931222021221c255cc3ecefd791 | [] | no_license | Voldjinn/Lo21_Projet | fbe2e4443f455e52e8198601fbfe3bcfd5b7756d | da8f69d78b8b4f4d05d3c328e5700788320ec47c | refs/heads/master | 2021-01-17T07:35:38.688282 | 2015-05-16T11:31:33 | 2015-05-16T11:31:33 | 35,690,536 | 0 | 0 | null | 2015-05-15T18:41:16 | 2015-05-15T18:41:16 | null | UTF-8 | C++ | false | false | 997 | h | fenetre_depart.h | #ifndef FENETRE_DEPART_H
#define FENETRE_DEPART_H
#include <QWidget>
#include <QGridLayout>
#include <QPushButton>
#include <QtWidgets/QDateEdit>
#include <QtWidgets/QLabel>
#include <QScrollArea>
#include "emploidutemps.h"
class FenetreDepart : public QWidget{
Q_OBJECT
private:
QVBoxLayout *layout;
QPushButton *a... |
10d2658202269e7cb8893d4f1381ae3103df4c76 | 5c8cff48c509ded39a66243367000ea0210273e4 | /Implementation/Core/amc_servicehandler.hpp | dd17d7f51960e7406acd2787dc955909617a82e6 | [
"BSD-3-Clause"
] | permissive | mkosi/AutodeskMachineControlFramework | 50c8ab43bd551e4dfa54ef9fe8d8dbd88aa97fd2 | da257a4a609edbbdf3d7c5d834d61f8555c68e09 | refs/heads/master | 2022-12-17T22:46:41.215845 | 2020-08-28T10:07:06 | 2020-08-28T10:07:06 | 294,356,266 | 0 | 0 | NOASSERTION | 2020-09-10T08:55:09 | 2020-09-10T08:55:08 | null | UTF-8 | C++ | false | false | 2,538 | hpp | amc_servicehandler.hpp | /*++
Copyright (C) 2020 Autodesk Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the follow... |
c16bebac2ef359203faf5dc1fb08081b6e4734f2 | 6e5be6e6ea3cd37d1ca15ca24aee4722ed63d578 | /include/grape/params/optimizer_list_params.h | efa4d73c2bbe9e87abd597e3006ac49820b0260c | [
"BSD-2-Clause"
] | permissive | yoghourtzzy/Grape | 06b35efa4af5b5e3bac65fa03a0528d62263d825 | 8c5dc803ac3e49b569a89118fcaf5d4ca6ec673b | refs/heads/master | 2022-03-27T23:06:23.948622 | 2019-09-03T16:06:02 | 2019-09-03T16:06:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 443 | h | optimizer_list_params.h | #ifndef __GRAPE_OPTIMIZER_LIST_PARAMS_H__
#define __GRAPE_OPTIMIZER_LIST_PARAMS_H__
#include <string>
#include <vector>
#include "optimizer_params.h"
namespace Grape{
class OptimizerListParams{
public:
std::vector<OptimizerParams> optimizer_list_;
template <class Archive>
void serializ... |
175cb864f23da678fd88a7fcb8cfe0c25654efe8 | bdc132b6fd4b693d56e093b55b99af2a7fad2c46 | /poj/preliminary/poj3006.cc | 5af80af3f00ac2716ce2ece94b439849e4b9005d | [] | no_license | ailyanlu/my-acm-solutions | 8f76b8e9898ec8c97463bb619c7fbc72a662ec7e | fc79e6284ea57ce561e7c8c9c0e5c08e06e1c36b | refs/heads/master | 2017-10-07T16:14:45.706176 | 2016-04-30T06:38:26 | 2016-04-30T06:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 956 | cc | poj3006.cc | /**
* http://poj.org/problem?id=3006
*/
#include <iostream>
typedef unsigned long long ullong;
const ullong MAX = 1000005;
bool prime[MAX];
int main() {
// http://www.csie.ntnu.edu.tw/~u91029/Prime.html
// get all prime numbers less than MAX
memset(prime, true, sizeof(prime));
prime[0] = false, pri... |
f52d92380e3f93d86da0d3e3996cf55892092c04 | 0e2bde8edf7fe8e9acdfe31a024392bbe4353840 | /src/game/player/camera.cpp | eb1c033b677a36e7d8fb33236600e4d3609d8fda | [] | no_license | B-Curve/C-Game | d750f5719e560d7bb51fa345c553e58097d6d907 | 5d55c61b5bb316986601309fd21a069650deb4f9 | refs/heads/master | 2021-05-12T16:59:25.884786 | 2018-01-31T01:35:45 | 2018-01-31T01:35:45 | 117,031,342 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,753 | cpp | camera.cpp | //
// camera.cpp
// MinecraftClone
//
// Created by Brandon Kervin on 1/30/18.
// Copyright © 2018 Brandon Kervin. All rights reserved.
//
#include "camera.hpp"
#include <iostream>
void Camera::update(GLFWwindow *window, double delta){
float movespeed = delta * (0.12f * 20);
if(glfwGetKey(window, MC_FORWA... |
f1fc1908c38562a5a7dc53bc2769ccf7a0ebd32a | b13b51704390ee6af926a85ab8e7890b6aa8976e | /Encode_and_Decode_Strings.cpp | 84dd876dcce94b05f69f8f5d06c09a4d9e880aa4 | [] | no_license | kxingit/LeetCode | 7308eb306fe899e3f68a7cf90b43a37da46416cc | a0ef8e5454bd29076b50ffedc5b1720dd7273a9d | refs/heads/master | 2021-01-14T08:03:20.811221 | 2017-03-20T19:25:56 | 2017-03-20T19:25:56 | 35,183,062 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 792 | cpp | Encode_and_Decode_Strings.cpp | /*
* tag
* Design an algorithm to encode a list of strings to a string.
* The encoded string is then sent over the network and is decoded back to the original list of strings.
*/
class Codec {
public:
// Encodes a list of strings to a single string.
string encode(vector<string>& strs) {
string s;
... |
7718cb3e6fc92c514f39d2f3b7296aaaa9b8aa17 | 2aee3c10852a29e78776e0cc1a874d1d7a6c81bb | /vampire.cc | cefd9411b9d6e1b009b501a65d35314016c3b330 | [] | no_license | yang49/CC3K | a9f126fcdd53e2115a05b90e16314fe5702a9c94 | 5eb42a17f543ea4692463184594500e4f0a0a31b | refs/heads/master | 2021-01-10T01:22:33.709571 | 2016-01-05T05:55:54 | 2016-01-05T05:55:54 | 47,202,988 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 723 | cc | vampire.cc | #include "vampire.h"
#include "enemy.h"
#include "dwarf.h"
#include <iostream>
//constructor
Vampire::Vampire() {
this->role = 'v';
this->Hp = 50; // 50
this->At = 25; // 25
this->Df = 25; // 25
this->maxHp = 99999999;
this->defAt = 25;
this->defDf = 25;
}
void Vampire::useOn(Enemy &em) ... |
c4146d8eccd2905b4e32f973e96a972c5e9445b6 | ebc906291914128fc8101f712c760f6fe786b460 | /ArdLooper.cpp | 62b7e4edc1b9540daade70c2e7b930ca992f7b91 | [
"MIT"
] | permissive | p2401kumar/ArdThread | 793d40e07376b40d68487c038c5860e2395804b1 | 0a6a6ded6b00f0605bca96136d636f2d0178a3c9 | refs/heads/main | 2023-02-12T11:22:18.721813 | 2021-01-09T08:19:14 | 2021-01-09T08:19:14 | 328,026,986 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,406 | cpp | ArdLooper.cpp | #include "ArdObject.cpp"
#include "util/Utils.h"
#pragma once
class ArdLooper {
ArdList* ardList = new ArdList();
long __nextSmallest = -1;
long __counter = 0;
public:
void createThread(void (*func)(ArdObject*)) {
ArdObject *x = new ArdObject();
func(x);
ardList->insertNode(x);
}
void startThreads() {
... |
fe6dbd9852ccb0fcb74de088462e98668d52d395 | da04436280083064ffe99b4027ca40918367b250 | /a3/BusyWaitBoundedBuffer.cc | d417526705bf894395ffc55cdfabbb4d7ba2f054 | [] | no_license | sherlockwxl/cs343-1 | 9001516e4d717b4b33b5c2c3468abce6df3a8555 | 6bad9ea7643096b042a3a340315261db8cfbecf0 | refs/heads/master | 2020-04-20T17:13:08.083342 | 2011-08-09T16:26:04 | 2011-08-09T16:26:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,253 | cc | BusyWaitBoundedBuffer.cc | #ifndef Q1_BUSYWAITBOUNDEDBUFFER_CC
#define Q1_BUSYWAITBOUNDEDBUFFER_CC
#include <uC++.h>
#include "BoundedBuffer.cc"
using namespace std;
template <typename T>
class BusyWaitBoundedBuffer {
public:
BusyWaitBoundedBuffer(const uint32_t capacity = 10);
~BusyWaitBoundedBuffer();
void insert(T elem);
T remove(... |
14734a91d14ea053d38c0c4fa7abe3dd96f4c7e4 | e116f1d69599d660ef3eab820e6f9f9f858040ec | /LED_RGB_Fading.ino | 13f0c152bcbdc692ef81f26c567dbbbcd82a7f79 | [] | no_license | LFegely/FocusOnFutbol | e17f97dff668091e43149d98f421de65f08d4c9e | 392bd9b63af8d0e05d1dd453a5bc8338b8a30a77 | refs/heads/master | 2020-05-15T12:50:34.913395 | 2019-04-19T15:03:28 | 2019-04-19T15:03:28 | 182,279,669 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,275 | ino | LED_RGB_Fading.ino | int ledR = 3; // LED connected to digital pin 3
int ledG = 5;
int ledB = 6;
int delayVal = 100;
void setup() {
pinMode(ledR, OUTPUT);
pinMode(ledG, OUTPUT);
pinMode(ledB, OUTPUT);
}
void loop() {
// fade from red to green, in 5 point increments
for (int fadeValue = 0 ; fadeValue <= 255; fadeValue += ... |
abb4a64500e6d4bcabd9e0d2a4f74eea744be214 | f53e1c445cb31ab0b147936c04271eededf4075f | /KEYPAD_TEST/KEYPAD_TEST.ino | 5652f46d104f4eb7ea7c0a1318d52511a4ed5681 | [] | no_license | AnikaTanzim/Microcontroller-Based-System-Design | d7a465adfd9be9fb526df7d1480b75fcc581daed | ca0da532d9e8665142373365129c754c5bde93f2 | refs/heads/master | 2023-04-24T16:30:02.015962 | 2021-05-06T12:36:15 | 2021-05-06T12:36:15 | 364,904,442 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 969 | ino | KEYPAD_TEST.ino | #include<Keypad.h>
const byte rows = 4;
const byte cols =4;
char keys[rows][cols] = {
{'1','2','3','A'},
{'4','5','6','B'},
{'7','8','9','C'},
{'*','0','#','D'}
};
//white ones are col and black ones are row44444444443 ... |
6c56aa4a9c4877213d64c45c270a1e6e3bf95dbe | 7dbb0f4c19165f16812d1633f341cdb45f96e91e | /Main2.3.ino | 581ad347fa51a15e87c944150f1a6ac855ca12b5 | [] | no_license | KevinAbishek/AMURA-driver-codes | 7f20ae4dbe3988905f38c9a2c65d74e9b65179e8 | a9a8d88df24c98e6da859ffbe7ababaeb555b9b4 | refs/heads/main | 2023-08-17T02:59:44.616599 | 2021-10-02T22:48:49 | 2021-10-02T22:48:49 | 412,921,790 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,911 | ino | Main2.3.ino | //Initialize end stp switches
/*
* Main2.3 added buzzer, hardware shutdown
* Variables added:
* hpos_status = 0 - int, while loop exit condition after both axes home, assume not home initially
* xpos = 0 - long, count steps along X dir from starting pos upto end stp, equal to 0 whe... |
d551fd511e265276593ea460fd4089cca84995df | ef7b07caadc3c70e79baa5c57f2b326ac5679b48 | /544A.cpp | a2df8280aa2b5281b3f53bee6015cf9ad9c472e4 | [] | no_license | caoyi0905/codeforces-solutions | 4e57a450afceae2b0fcc121b5df46fa7f1763aa2 | 4090fb6e57e4b249a762fd212028edc96f561b8e | refs/heads/master | 2021-01-17T13:57:15.601261 | 2016-07-01T12:09:31 | 2016-07-01T12:09:31 | 38,733,785 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 395 | cpp | 544A.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int i,k,cnt=1;
string str;
set<char> s;
cin>>k>>str;
for(i=0;i<str.size();i++) s.insert(str[i]);
if(k>s.size()){return puts("NO");}
s.clear();
puts("YES");
for(i=0;i<str.size();i++){
if(i&&!s.count(str[i])&&cnt<k) puts... |
3fbeea8bfd3f28890395e445c0f8e63afab2c445 | c7f3db94cc3d69cd9a2ae24aa3c69cd767b28672 | /must_rma/src/externals/GTI/modules/comm-strategy/CStratPRecv.h | 91b6c71e212f23fefb2bf8de63fbce6d8efe80c3 | [] | no_license | RWTH-HPC/must-rma-correctness22-supplemental | 10683ff20339098a45a35301dbee6b31d74efaec | 04cb9fe5f0dcb05ea67880209accf19c5e0dda25 | refs/heads/main | 2023-04-14T20:48:36.684589 | 2022-08-10T20:28:43 | 2022-11-18T03:33:05 | 523,105,966 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,744 | h | CStratPRecv.h | /* This file is part of GTI (Generic Tool Infrastructure)
*
* Copyright (C)
* 2008-2019 ZIH, Technische Universitaet Dresden, Federal Republic of Germany
* 2008-2019 Lawrence Livermore National Laboratories, United States of America
* 2013-2019 RWTH Aachen University, Federal Republic of Germany
*
* See the L... |
6ad3a7c41fe74247ebb939e1c4707764290c62a9 | 92e67b30497ffd29d3400e88aa553bbd12518fe9 | /assignment2/part6/Re=110/83.4/p | 16a058f93a78606723105837451907bc555de8f4 | [] | no_license | henryrossiter/OpenFOAM | 8b89de8feb4d4c7f9ad4894b2ef550508792ce5c | c54b80dbf0548b34760b4fdc0dc4fb2facfdf657 | refs/heads/master | 2022-11-18T10:05:15.963117 | 2020-06-28T15:24:54 | 2020-06-28T15:24:54 | 241,991,470 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,734 | p | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*-------... | |
ef48f2eb2f4b11e4a6fb643e861540d918240749 | 919da76f62e24d20739927334e1d2230954c8b1a | /src/main.cpp | c9f4eddabdadb15241b23e7f463b3706155c34a8 | [] | no_license | boigman/SumpPumpMonitor | 11fae812e8d9a0239cae8538271dc019e51d96c0 | dcb3dee285e31f4250a342dd9df83f385baf3eaa | refs/heads/main | 2023-07-28T04:33:48.092563 | 2021-09-14T10:49:03 | 2021-09-14T10:49:03 | 379,037,802 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,591 | cpp | main.cpp | #include <Arduino.h>
#include <WiFi.h>
#include <time.h>
#include <WebServer.h>
#include <ESP_Mail_Client.h>
#include "config.h"
#define DEBUG
const char* ssid = WIFI_SSID;
const char* password = WIFI_PASSWORD;
WebServer server(80);
const char* ntpServer = "pool.ntp.org";
const long gmtOffset_sec = -6 * 60 ... |
d1bbd18cdf887bd7b2896495b1fef2c33ee30b82 | d3209efb2167887f735ac377746e9952ea2958af | /CH01/10189.cpp | 48a8d3972c4b0b2136f7e0694775fc010d45797c | [] | no_license | viskey98/uva-solution | 096790b72977740149d9429bb4cdd62fc845244f | 1b8e32eba2177da674802f1ba7384747efb4f2f1 | refs/heads/master | 2020-04-05T12:08:42.694707 | 2018-01-01T18:11:29 | 2018-01-01T18:11:29 | 95,217,799 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,564 | cpp | 10189.cpp | #include<iostream>
#include<stdlib.h>
using namespace std;
int main()
{
int i,j,m,n,k=0,l;
int mo[100],no[100];
int **outar[100]={};
int **out;
char **in;
while(1)
{
cin>>n>>m;
if(m==0&&n==0)
break;
in=(char**)calloc(n,sizeof(char*));
out=(int**)calloc(n,sizeof(int*));
for(i=0;i<n;i++... |
e7d6003e1b662dea76b3d65f146304ceefeb38fd | 04d1186b835969a8d449a5905208fbe6e6c48efc | /text.h | a3242370d0e347214ff36f985a1a08db77f42e6f | [] | no_license | Argeath/ETIPOProjC- | 9d81532b3c14d205b418dd32ed6815a1a76b5db4 | 70a7bc3e347817710465f64a3e62765e26df4214 | refs/heads/master | 2021-01-13T14:37:17.152724 | 2016-04-01T09:21:24 | 2016-04-01T09:21:24 | 54,912,602 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,147 | h | text.h | #pragma once
#define T(a) Utils::Text(a)
namespace Utils {
class Text {
private:
char* string;
public:
Text();
Text(int i);
Text(char c);
Text(const char* str);
Text(char* str);
Text(const Text &str);
~Text();
void clear();
void clearLastChar();
int length() const;
bool isEmpty() const... |
04fe725df53aa3f3a34a3798c46db64c97dd5cb5 | 140c631ce2e768aee40014011ddd373ab93feb1c | /DesignPattern/DesignPattern/PrototypePattern/testPP.cpp | e1864f1d4d227624920e6bc7725f2d65b03e68ef | [] | no_license | AlexWuDDD/basicLeaning | 0ae311b17887a2930d6161b03a392507f3859d72 | 863c8a633c9998f694b46a0f9cee324a90b2fcbe | refs/heads/master | 2022-01-12T03:18:35.389410 | 2019-05-22T01:38:31 | 2019-05-22T01:38:31 | 186,935,906 | 0 | 0 | null | null | null | null | ISO-8859-7 | C++ | false | false | 318 | cpp | testPP.cpp | #include "testPP.h"
int testPP()
{
//ΛοΞςΏΥ
Monkey* pSWK = new SunWuKong("Qi Tian Da Sheng");
//ΏΛΒ‘ΊοΧΣΊοΛο
Monkey* pSWK1 = pSWK->Clone();
Monkey* pSWK2 = pSWK->Clone();
pSWK1->Play();
pSWK2->Play();
SAFE_DELETE(pSWK1);
SAFE_DELETE(pSWK2);
SAFE_DELETE(pSWK);
getchar();
return 0;
} |
328d7f4554bbbb7df543ace86ae2950b0619e9f7 | edc4ba5eafe88a45ff76185ad41e3dc5ce9d1f32 | /Homework3/schedule.h | 9e601c6c32a831cdedd296a2b9486f13218a05a1 | [] | no_license | obriematt/CS202 | 66328b7b43faf13daefc79f71b11b79b4c82313f | c9a03c4ee733d63bc533a0311e6b2079e7cc0685 | refs/heads/master | 2021-01-19T12:08:33.177813 | 2016-09-27T20:00:40 | 2016-09-27T20:00:40 | 69,287,829 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 789 | h | schedule.h | //Matthew O'Brien
//Assignment 3
//March 3 2015
//The final header file. This class will be the container for the rest of the classes for the
//scheduling program. It will handle the basic interaction with the user. Allowing for a display of
//the calendar, to take in people's information, and to show those who a... |
185d8ec21f4f6673b371349c312437a4bd4b26d0 | c9e829dbaf76dabfeab534315d9d0a416662789d | /GameServer/Server/Server/Encoding.h | 57c82d611de6ec2441bb068cdc9a6a7a6e6760a2 | [] | no_license | intovery/Kingsnake_GAME | c33b41797a3ff4713d36d79ba95592bf39df8165 | 8f442c4fdc7599f334b52412c8162bc65905f948 | refs/heads/master | 2023-04-28T11:14:40.388788 | 2021-05-24T07:42:03 | 2021-05-24T07:42:03 | 248,190,595 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,243 | h | Encoding.h | #ifndef __ENCODING__
#define __ENCODING__
#include <Windows.h>
class Encoding
{
public:
static void AsciiToUnicode(const char* _source, wchar_t*& _out_result)
{
int size = strlen(_source) + 1;
_out_result = new wchar_t[size];
MultiByteToWideChar(CP_ACP, 0, _source, -1, _out_result, size);
}
static void Asci... |
e20f51a6ce9037a1f0192dac6e40f4609530e094 | 78df694b9df64818062305e9480ea660ad028223 | /libs/sdw/ModelTriangle.h | cf6a62ad45c3e0a20a6ad8e5e7960bc07384b425 | [] | no_license | JElgar/cgcw | 952e6f0118e6de2647b708a50b0f215908524fd4 | 20515642ed88cb3937c2348d310b83c93bffd0ac | refs/heads/main | 2023-01-28T22:30:20.019567 | 2020-12-11T10:41:53 | 2020-12-11T10:41:53 | 315,383,992 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,425 | h | ModelTriangle.h | #pragma once
#include <string>
#include <vector>
#include <utility>
#include <glm/glm.hpp>
#include "Colour.h"
#include "TexturePoint.h"
#include "ModelPoint.h"
#include "CanvasTriangle.h"
#include "TextureMap.h"
#include "ObjMaterial.h"
class RayTriangleIntersection;
class Ray;
class ModelTriangle... |
b541320e33458671c62879ca721a5184afd1aea6 | 13b14c9c75143bf2eda87cb4a41006a52dd6f02b | /AOJ/ACMICPCJapan/SimulatedDomestic2007/solver/D/pmap.cpp | e45f1692967d224de954a2248506721a4d6e53f5 | [] | no_license | yutaka-watanobe/problem-solving | 2c311ac856c79c20aef631938140118eb3bc3835 | f0b92125494fbd3c8d203989ec9fef53f52ad4b4 | refs/heads/master | 2021-06-03T12:58:39.881107 | 2020-12-16T14:34:16 | 2020-12-16T14:34:16 | 94,963,754 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 769 | cpp | pmap.cpp | #include<stdio.h>
#include<iostream>
#include<map>
using namespace std;
int N, M, H[1500], W[1500];
void compute(){
map<int, int> CH, CW;
map<int, int>::iterator pH, pW;
int total = 0;
for ( int i = 0; i < N; i++ ){
for ( int t = 0, j = i; j < N; j++ ) {t += H[j]; CH[t]++;}
}
... |
2e94536b64a18dd577ab28fb2a6b0e6b9fdecff2 | a0b0eb383ecfeaeed3d2b0271657a0c32472bf8e | /leetcode/1-1000/780-reaching-points.cpp | 7b8ad21648401f5446cef2bb90d704b795a88ab8 | [
"Apache-2.0"
] | permissive | tangjz/acm-icpc | 45764d717611d545976309f10bebf79c81182b57 | f1f3f15f7ed12c0ece39ad0dd044bfe35df9136d | refs/heads/master | 2023-04-07T10:23:07.075717 | 2022-12-24T15:30:19 | 2022-12-26T06:22:53 | 13,367,317 | 53 | 20 | Apache-2.0 | 2022-12-26T06:22:54 | 2013-10-06T18:57:09 | C++ | UTF-8 | C++ | false | false | 479 | cpp | 780-reaching-points.cpp | class Solution {
public:
bool reachingPoints(int sx, int sy, int tx, int ty) {
while(sx <= tx && sy <= ty) {
if(sx == tx && sy == ty)
return 1;
if(tx == ty)
return 0;
if(tx < ty) {
swap(sx, sy);
swap(tx, ty);... |
784dd28d392b94badf228064571ad87e9dec9f55 | 8aaa5982660c1be96b443f0c5e75a3aecdefa556 | /renderer/pickablegroup.cpp | e611dd98436296335d4d7780d38aa0f0cf129cf4 | [] | no_license | mweiguo/libgeoalgorithm | af24c87f27e2ce2db504d99211da717859776ca3 | ee91178c022df900f16037ba7dae4361e8b76fac | refs/heads/master | 2016-09-06T17:45:02.294222 | 2010-06-26T05:35:32 | 2010-06-26T05:35:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 181 | cpp | pickablegroup.cpp |
#include "pickablegroup.h"
PickableGroup::PickableGroup( const string& name ) : GroupNode(name)
{
}
PickableGroup::PickableGroup( const PickableGroup& rhs ) : GroupNode(rhs)
{
}
|
89a8002e816482ef04a56c59be95f2d71c2332d0 | ea89996bb0368e8f496dcfbed00ffef7d62ac0e6 | /misc/aooswd/A3/diffNode.h | c63d39238a04237f8b250bd4b448284c99721cda | [] | no_license | dstrube1/playground | 8c63e42c7223da12a35000ab0aaa80333bec09ce | 62b42eff564214729cfacd14c79916766e58237a | refs/heads/main | 2023-03-05T16:06:22.524699 | 2023-03-04T00:50:31 | 2023-03-04T00:50:31 | 95,035,974 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,335 | h | diffNode.h | //diffNode.h - a binary operator node representing the difference of two node values
/****************
David Strube
CSIS4650-01
Spring 2003
Assignment 3
Expression Tree using bridge pattern
***************/
#ifndef DIFFNODE_H
#define DIFFNODE_H
#include "binNode.h"
template <class NODETYPE>
cla... |
751cf4d691d6ecb1251fd0ff13f8cfd8a0c58764 | 8e5c92b5562ebc7e8f093408ee19c48dd0e6fc19 | /2020-12-07/B1946.cpp | e0039f9f5c6e9d602d2c0cc71dfe026a365fdc7f | [] | no_license | catch4/EunJeong | d9bd419231ef6dd2bc722621088858b033dc9b66 | 99d0c1d6624c4e22233e4bfa96037ece0d310a94 | refs/heads/master | 2023-05-07T06:20:29.673468 | 2021-05-26T18:28:24 | 2021-05-26T18:28:24 | 268,486,577 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 558 | cpp | B1946.cpp | // https://www.acmicpc.net/problem/1946
#include <iostream>
#include <algorithm>
using namespace std;
int N;
pair<int, int> Score[100001];
int main() {
ios::sync_with_stdio(false);
cin.tie(0); cout.tie(0);
int T;
cin >> T;
while (T--) {
cin >> N;
for (int i = 0; i < N; i++) {
int a, b;
cin >> a >> b;... |
77d5a3f8d4eaddb76a11622d6229886271eee029 | 46f2e7a10fca9f7e7b80b342240302c311c31914 | /opposing_lid_driven_flow/cavity/0.075/phi | cf6e69077776e325eac4440a31a60e2886778457 | [] | no_license | patricksinclair/openfoam_warmups | 696cb1950d40b967b8b455164134bde03e9179a1 | 03c982f7d46b4858e3b6bfdde7b8e8c3c4275df9 | refs/heads/master | 2020-12-26T12:50:00.615357 | 2020-02-04T20:22:35 | 2020-02-04T20:22:35 | 237,510,814 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 61,906 | phi | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*-------... | |
b6bf05a3667c78feb47425093a5df43134931031 | 62e7a3ef80d75020d73a4f4066a84c7b3f402645 | /release/moc_KMain.cpp | a51e41d35707a29e882bbb156eb44e6ade131ad2 | [] | no_license | zhaoweisonake/MultiBodySystemDynamics | ec955ceeb7fd9484f66bce11a32477b340ce165e | cc16547bd337df824c4f895f8da2a48936873596 | refs/heads/master | 2020-03-21T21:50:53.064029 | 2015-06-12T15:07:17 | 2015-06-12T15:07:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,145 | cpp | moc_KMain.cpp | /****************************************************************************
** Meta object code from reading C++ file 'KMain.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.4.0)
**
** WARNING! All changes made in this file will be lost!
*********************************************************... |
5b451da9b0f85a36de9805d6b1e0ff0c914d694f | bee879342d4f8bcad422623f5eaf923e014a5ff8 | /modules/std/net/tcpsocket.cc | f8f0ae139b3be983140d62cfba1f413d0964576c | [] | no_license | paulocezar/clever | 8bec9b2db29a8046524b7d94f207576bf1c35ef0 | 842693f081b5a6ad39fbe08abd552742286ab257 | refs/heads/master | 2020-12-24T09:07:14.019521 | 2012-11-29T10:18:56 | 2012-11-29T10:18:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,948 | cc | tcpsocket.cc | /**
* Clever programming language
* Copyright (c) 2012 Clever Team
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to u... |
1010497355d4d5942c451e0522d4dd1f8fb7de8e | b516d570e74185e1957a65e1ac2a41b10b001892 | /CS410/PRO_2019_BER/Framework/GameCPP/Game.h | 97b28316d9627bdf457014d0145c11b8f3ce069d | [] | no_license | IreNox/games_academy | 1233f096303175e21b86f380e42bde00def96969 | ee55b2c34b300dc6e5e5009ee5eaf95e2d4df4f1 | refs/heads/master | 2023-05-04T03:45:49.011919 | 2021-05-26T15:14:27 | 2021-05-26T15:14:27 | 264,388,147 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 439 | h | Game.h | #pragma once
#include "EntitySystem.h"
namespace GA
{
class Game
{
public:
int run();
private:
ga_timer_t* m_pTimer;
ga_graphics_t* m_pGraphics;
ga_input_t* m_pInput;
EntitySystem m_entitySystem;
EntityId m_playerId;
EntityId m_enemyId;
EntityId m_ballId;
bool createSystems();
... |
56313e7b06a34a66bded19d17444cbe76da2a1e6 | 9ada6ca9bd5e669eb3e903f900bae306bf7fd75e | /case3/ddtFoam_Tutorial/0.003150000/fH | 1511bb185a5afe042b2899f881b875c202ce8b15 | [] | no_license | ptroyen/DDT | a6c8747f3a924a7039b71c96ee7d4a1618ad4197 | 6e6ddc7937324b04b22fbfcf974f9c9ea24e48bf | refs/heads/master | 2020-05-24T15:04:39.786689 | 2018-01-28T21:36:40 | 2018-01-28T21:36:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 123,949 | fH | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
... | |
35b0998eb09a5c31c29be19d1a7afea2d9e3957d | a9116b897adcdcbad1b555ba0ea742f64969dd89 | /Introduction/Getting Started: The Easy Problems/Medium/11683 - Laser Sculpture.cpp | 9054f4b81e219d1674d6165cffd461566b7dfedf | [] | no_license | khalilalquraan/Competitive-Programming-3-The-New-Lower-Bound-of-Programming-Contests-Steven-Felix-Halim- | 6e0b4206ed4a259764f795d101f655e863c1769f | e12928201717acd521d36daae8d95523c86ea5d3 | refs/heads/master | 2021-07-15T21:27:55.667878 | 2021-06-29T02:21:39 | 2021-06-29T02:21:39 | 201,797,208 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 799 | cpp | 11683 - Laser Sculpture.cpp | #include<bits/stdc++.h>
#define ll long long
#define ld long double
using namespace std;
int main(int argc, char const *argv[]) {
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif
int n, m;
while(cin >> n >> m) {
if(n == 0)break;
ll ans = 0... |
7a6f9b5dc783ce6d8664bccd9f1e7e7e68e5e0be | 4ac857ab3c58242ba77a271790baeb666ea78184 | /CoinF/mycoin.cpp | bbeb6bd17f6e6dfc5d5b2c79f7ae9b95912a11b3 | [] | no_license | befernal/ssh_Test | 50310a30fe63b404cc024d3ed731e69be4e35b1e | bb403d0f82e5017a88b00d6bc42d7519413281ac | refs/heads/master | 2020-07-09T22:18:39.834632 | 2019-08-23T03:49:21 | 2019-08-23T03:49:32 | 204,095,806 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,735 | cpp | mycoin.cpp | #include "mycoin.h"
#include<QDebug>
//MyCoin::MyCoin(QWidget *parent) : QWidget(parent)
//{
//}
MyCoin::MyCoin(QString btnImg)
{
QPixmap pix;
bool ret = pix.load(btnImg);
if(!ret)
{
QString str = QString("图片加载失败,失败路径:%1").arg(btnImg);
qDebug() <<str;
return;
}
this->... |
4c3f7fe913920a6b6a71414c2a40f88a466b84f8 | 835c8db95b7d60cecb675cf21d9cad4be83ef803 | /AdvancedAudioProcessing/audiocollectionsample.cpp | cff0665c928aec5c10c382da1590f8f4f99db790 | [] | no_license | jack9603301/AdvancedAudioProcessing | 8e2461e32fcb7aefb9a94d5b28812bdcf0d3afec | 463c335921c4b5cb423f7ef750b4309a489bab67 | refs/heads/master | 2021-09-02T16:16:56.193513 | 2017-12-29T09:03:22 | 2017-12-29T09:03:22 | 115,625,189 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,900 | cpp | audiocollectionsample.cpp | #include "audiocollectionsample.hpp"
#include <QAudioFormat>
#include <QAudioDeviceInfo>
#include <QAudioInput>
namespace AudioCollection {
AudioCollectionSample::AudioCollectionSample(QObject *parent)
: QObject(parent),
AudioDevice(Q_NULLPTR),
Format(Q_NULLPTR),
InputDevice(Q_NULLPTR)
{
... |
953681dc092fc17ac2267a8e392a64d625228a33 | 3e843cc01f0e0440133aba2c9ff1bbb0e9ab296c | /include/SVMclassifier.h | a94742f0dc676773f31de568240786b4a5bb69e9 | [] | no_license | aval95/road_sign_recognition | 3e083244dfc8ad71d8981a8a3734b9ce10781088 | 120af2f3f72aad688e4f4ed96a07496d85a793dd | refs/heads/master | 2020-04-28T11:11:06.903897 | 2019-07-25T15:47:13 | 2019-07-25T15:47:13 | 175,228,075 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,069 | h | SVMclassifier.h | /*
Computer Vision Final Project - Road Sign Recognition
Valente Alex - 1173742
UniPD - A.A. 2017-2018
Support Vector Machine multiclass classifier for road sign recognition
*/
#ifndef SVM__CLASSIFIER__H
#define SVM__CLASSIFIER__H
#include <opencv2/objdetect.hpp>
#include <opencv2/imgcodecs.hpp>
#include "opencv2/hig... |
c9e4756ca262fa823b1604219538cd33cde416ec | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /c++/xbmc/2017/4/GUIControl.h | b4e0f43a6b3cd9193a01259f9b74fa1a11faab60 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | C++ | false | false | 13,271 | h | GUIControl.h | /*!
\file GUIControl.h
\brief
*/
#ifndef GUILIB_GUICONTROL_H
#define GUILIB_GUICONTROL_H
#pragma once
/*
* Copyright (C) 2005-2013 Team XBMC
* http://xbmc.org
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published b... |
5036f3042acbb9bdd7277e48e76d16d3b61f49c2 | de32aa0978599502a4d93fb9f9b1149fcaad9ac8 | /MdzSocketClientSync.cpp | 434e4889b1de6c4d47515b6f1a4a724f0265b55b | [] | no_license | skynet29/mdz_wtk | d7a2ac5154385d3abb179964225511a3065072ad | 3c3b01f5afd4573636242b500aad0787a4df79b6 | refs/heads/master | 2020-04-29T07:33:59.900689 | 2019-03-16T10:33:04 | 2019-03-16T10:33:04 | 175,957,641 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,298 | cpp | MdzSocketClientSync.cpp | // MdzSocketClientSync.cpp: implementation of the MdzSocketClientSync class.
//
//////////////////////////////////////////////////////////////////////
#include "MdzSocketClientSync.h"
#include "MdzWindow.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
////////////... |
2335b0907eb7c0b29f90d22a16f53ebaa66fc371 | 4906d1d25cd4ac8410ba070a82c574b23b7f340a | /138.sorting_by_allignment/split_over_2_parts.cpp | ee3999f51ee0e0e6d9122a979333e5c237d3e13e | [] | no_license | aligang/coursera_cpp | 0d4ae4a92819faebd3778979853542d738e48645 | 2996fdd2e16925f68d0cf3a8f071fb58a0d30ff0 | refs/heads/master | 2020-04-28T01:37:08.062273 | 2019-03-11T07:41:03 | 2019-03-11T07:41:03 | 174,863,445 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 704 | cpp | split_over_2_parts.cpp | template <typename RandomIt>
void MergeSort(RandomIt range_begin, RandomIt range_end){
if (distance(range_begin, range_end) < 2){
return;
}
auto it = next(
range_begin,
distance(range_begin,range_end)/2
);
vector<typename RandomIt::value_type> first_elements(
range_be... |
1170e95b8f9618e76db33cbb087d0e4dba231128 | 6213740f4b6798ace434fa5717bb6c24b1e8fdb7 | /AI/aieBootstrap-master/project2D/gameFSM.cpp | 3962eb64761f57486c1f26d5f42041c6b649f76e | [
"MIT"
] | permissive | zackslay3r/C---Projects | 4fb40ae3bc3e2bb38e1238822c0aed5585f10943 | 5e1bf2014dbfa4f74715f544f19a5886e679ea8e | refs/heads/master | 2021-01-21T15:53:27.311648 | 2017-08-13T11:54:17 | 2017-08-13T11:54:17 | 91,862,799 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,571 | cpp | gameFSM.cpp | #include "gameFSM.h"
#include "IGameState.h"
#
#include <list>
gameFSM::gameFSM()
{
}
gameFSM::~gameFSM()
{
}
void gameFSM::updateStates(float deltaTime)
{
// We are now going to update the active states based upon the the state itself, and will then update based on the command given (Register, push, pop)
process... |
0a631fd09c7f584811ba263a76dc436cbf4d387f | a40c45b73ce8e3b34698c45d836922b6b1c933e2 | /pat1/1037.cpp | 68a06162a588023ca759103c4de805c741d26fa0 | [] | no_license | hwngenius/PatInCpp | 688ed789db21a92aeb983816892160cc96552d9a | 4b0c19e97cb43b2b0b78f1af202bd1b106c6c1fb | refs/heads/master | 2020-08-06T01:23:24.716907 | 2019-10-08T14:31:08 | 2019-10-08T14:31:08 | 212,053,049 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 493 | cpp | 1037.cpp | #include <cstdio>
int func(int a, int b, int c)
{
return a * 17 * 29 + b * 29 + c;
}
int main()
{
int a, b, c, sum1, sum2;
scanf("%d.%d.%d", &a, &b, &c);
sum1 = func(a, b, c);
scanf("%d.%d.%d", &a, &b, &c);
sum2 = func(a, b, c);
int sum = sum2 - sum1;
if (sum < 0)
{
printf(... |
b03d9dc5f7f8839fa3c8c7f78c1f7ed800ee2646 | dc8fbbca7f943846397d95c11ea662e9d0d203ae | /cpp/tabele.cpp | b0d758206fd79713968faf33d3af1e3a5052e9d8 | [] | no_license | Wiktor0016/gitrepo1 | 01338813b7a442535924a0d516661e7bf040eced | 13d01d215aeb769b0fc7a5cbdd60a7d15b7169f5 | refs/heads/master | 2021-09-07T21:09:54.502410 | 2018-03-01T07:43:49 | 2018-03-01T07:43:49 | 103,923,430 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,024 | cpp | tabele.cpp | /*
* tabele.cpp
*/
#include <iostream>
using namespace std;
void ile5(int tab[], int ile)
{
int i;
int licznik = 0;
int parzyste = 0;
for (i = 1; i < ile; i++)
{
if ( tab[i] % 5 == 0 )
licznik5++;
if (tab[i] % 2 == 0)
parzyste++;
}
cout << "Ilosc dziel... |
5e09c8ee73fa29f9bd18a1c4e023430078c0996b | 5a8a21f1b241d13c8294312700728a913e4e9900 | /C++/234_PalindromeLinkedList.cpp | c95116be402a0f5093ac538ca284f60b376a1aab | [] | no_license | iamzay/leetcode | 251d2b4fd5a9be1d3dbb34a0807b23f73938e2df | c1e72b6a78949f01822feeac6db24e793d5530d6 | refs/heads/master | 2020-12-30T13:29:14.063837 | 2018-10-15T03:10:56 | 2018-10-15T03:10:56 | 91,225,387 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,301 | cpp | 234_PalindromeLinkedList.cpp | #include <iostream>
using namespace std;
struct ListNode {
int val;
ListNode *next;
ListNode(int x) : val(x), next(NULL) {}
};
class Solution {
public:
bool isPalindrome(ListNode* head) {
if (head == NULL || head->next == NULL) {
return true;
}
auto slow = head,fas... |
394fd5d7ddd541e049a2e3f365a7ad2a31195e92 | 9f72bd2b7c7dd68fa61533435046b3d9c2404193 | /data_structure_class/graph_component.cpp | 87bca1239f229af937476e9922dff6392bca5166 | [] | no_license | yujing-kim/algorithm_class | 236108d0b8c01e5addb8dc3e7cd1c98ceafe78dd | 1fb4c6505c46598498c738c51dc0adecf2644810 | refs/heads/master | 2022-11-25T23:07:32.408638 | 2020-07-30T14:00:39 | 2020-07-30T14:00:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,223 | cpp | graph_component.cpp | /*
과제 4 - 연결요소 세기
2016125086 김유진
utf-8 c++ MAC
*/
#include <iostream>
#include <vector>
using namespace std;
int n, m; //n:node count , m: edge count
int a,b; //input node
vector<int> graph[101];
int check[101]; //true or false
int component;
void input(){
cin >> n >> m;
for( int i = 0 ; i < m ; i+... |
78d70ef9a324efe8cd9fc1fcb2b4d61c75a5f866 | 1e7ecf7cb9ac05b69b39dbafe4231f826ffb3966 | /Test/TestServer.h | 326e6bbb8cb773cf5308df9c5e2678952b8c8018 | [] | no_license | Gussy/qtwebsocket | c795b671172f0d7c7d7d4c217f9b9629e94f2efd | a92c429ca64462a7cc6287fc13297dcc5d8b2526 | refs/heads/master | 2016-08-04T20:46:46.431332 | 2012-08-23T17:44:31 | 2012-08-23T17:44:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 491 | h | TestServer.h | #ifndef TESTSERVER_H
#define TESTSERVER_H
#include <QObject>
#include <QByteArray>
#include <QList>
#include "QWsSocket.h"
class QWsServer;
class QWsSocket;
class TestServer : public QObject
{
Q_OBJECT
public:
TestServer();
~TestServer();
public slots:
void onClientConnection();
void onDataReceived(const Q... |
954a6097b09beacb84bc34eaaafb5f24f490bcc6 | 125ba4d5f464c00fb2c8131bf6e04954e45fc0c0 | /set/operations.h | 37d2696bfed19eb6c9bdae2516a6588bff5c5f0e | [] | no_license | mariolamacchia/algorithms-and-data-structures | 95a1ffe45809036a24e49b3fae8455ffbdbeda06 | 778022fd39dda6f147d9771527374197bd71cf33 | refs/heads/master | 2021-01-02T09:38:51.051937 | 2015-01-19T19:39:48 | 2015-01-19T19:39:48 | 29,060,244 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,027 | h | operations.h | #ifndef _SET_OPERATIONS_H
#define _SET_OPERATIONS_H
#include "set.h"
template <class T>
Set<T>* sum(Set<T>* s1, Set<T>* s2)
{
Set<T>* s = new Set<T>;
typename Set<T>::cell n = s1->getFirst();
while (!s1->isEndOfSet(n))
{
s->insert(s1->read(n));
n = s1->getNext(n);
}
n = s2->get... |
62c81f3f60a8e60659ebd2037816170df979323a | e73bb04ed679a000c68a79694dae61f6c1b1a5e2 | /worker/Work.h | 3953179bc5256a345f120cde1cc3a5ed757cf068 | [] | no_license | Neomer/p2p | 592199bb8b168d60ce2531c9891229162a2b95a2 | 3de77efd9b7bfc7d3ccf5bcc72a75f13f282c816 | refs/heads/master | 2021-07-24T00:58:18.503774 | 2017-11-02T13:26:11 | 2017-11-02T13:26:11 | 105,764,668 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 376 | h | Work.h | #ifndef WORK_H
#define WORK_H
#include <QDateTime>
#include <blockchain/Block.h>
class Work
{
public:
Work(Block *block, Hash goal);
Work(const Work &other);
QDateTime createDateTime() { return _createDateTime; }
Hash goal() { return _goal; }
Block *block() { return _block; }
private:
QDateTime _createDate... |
032e68963986e7f1bada1800e3e91333de5221ed | fd7d1350eefac8a9bbd952568f074284663f2794 | /dds/InfoRepo/ArrDelAdapter.h | bccd58cc19e76826d2a4fb3e10c7df75c187f386 | [
"MIT"
] | permissive | binary42/OCI | 4ceb7c4ed2150b4edd0496b2a06d80f623a71a53 | 08191bfe4899f535ff99637d019734ed044f479d | refs/heads/master | 2020-06-02T08:58:51.021571 | 2015-09-06T03:25:05 | 2015-09-06T03:25:05 | 41,980,019 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 643 | h | ArrDelAdapter.h | /*
* $Id: ArrDelAdapter.h 4223 2011-02-04 23:01:46Z mitza $
*
*
* Distributed under the OpenDDS License.
* See: http://www.opendds.org/license.html
*/
#ifndef ARR_DEL_ADAPTER
#define ARR_DEL_ADAPTER
/// A auto_ptr implementation to handle
/// array memory management.
template <typename T>
class ArrDelAdapter ... |
9dc625c24a59247510dc56f03d0253c109d991c5 | f9a200888087f29fe61bc5876446e2110b2f5e88 | /Solutions/044.翻转单词顺序列/Solution1.cpp | 2ca07642dbeb91259d3d33ec31e9fd4bcf75101c | [] | no_license | zouwx2cs/JianZhiOffer | 98f0d37cf039b6fd498dc20fe282215c29a30fdf | b9c1b31fc5deba23d5a62a36ee61aa11030c6e4f | refs/heads/master | 2020-04-12T09:46:42.191510 | 2019-03-26T04:16:38 | 2019-03-26T04:16:38 | 162,407,647 | 6 | 2 | null | 2019-02-02T03:18:11 | 2018-12-19T08:37:32 | C++ | UTF-8 | C++ | false | false | 634 | cpp | Solution1.cpp | class Solution {
public:
string ReverseSentence(string str) {
stack<string> sta ;
string s = "" ;
for (char ch: str)
{
if (' ' == ch)
{
if ("" != s)
{
sta.push(s) ;
s = "" ;
... |
36c78df6c419c6b74c3ec6d5c4b1a527440c810e | 5d45b39fc317f312cc76927eb685878b9d86f108 | /code/搜索/Eightpuzzle(双向bfs).cpp | 596bcd4d7085ff25a625925b76c3d2714b347d5a | [] | no_license | Chhokmah0/Uva | 9beb7ed0c949f77708b1ce4d8bf7ef428925c8b4 | ef4865757e108bdd9ce6c1579a0c90ab4e2ab4ee | refs/heads/master | 2020-12-28T15:32:42.659729 | 2020-05-07T14:20:06 | 2020-05-07T14:20:06 | 237,730,169 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,462 | cpp | Eightpuzzle(双向bfs).cpp | // 电子科技大学Lutece - 414
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
map<int, int> vis, lvis; //从左向右,从右向左的遍历过的状态
int ans[9];
const int dx[] = {1, -1, 0, 0}, dy[] = {0, 0, 1, -1};
int times = 0;
bool flag ... |
4bb3049fd6920bf11b8f44eb941eb065cada6d02 | ad378a3d14b53b0cda7799ec3a7ac5254d577621 | /include/test/var/Has.h | 440ff84caa50460e0c90de8a532ac96c0489a35d | [
"MIT"
] | permissive | AnantaYudica/basic | 2f537a3eda8f108ed79a8594c87c160beb0b1984 | dcbf8c9eebb42a4e6a66b3c56ebc3a7e30626950 | refs/heads/master | 2021-07-10T01:50:46.784042 | 2020-06-17T08:21:37 | 2020-06-17T08:21:37 | 139,540,770 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,246 | h | Has.h | #ifndef BASIC_TEST_VAR_HAS_H_
#define BASIC_TEST_VAR_HAS_H_
#include "../Variable.h"
#include "Definition.h"
#include <utility>
#include <type_traits>
namespace basic
{
namespace test
{
namespace var
{
namespace has
{
template<typename TVar>
constexpr auto LValue(int) -> decltype(
static_cast<typename TVar::Get... |
6c6dce9afe441ec969ba4455fa887da2cd991ef6 | 8e9f2e717b5c396a8388369b4daaa1d4a4b266f0 | /GHGrafos/ghlistaadjacencia.cpp | 367ea05ad3f4c3920b1c78cf027cb7fb3c16b065 | [] | no_license | guilhermelou/GHGrafos | ee77c40653f59822ffe9a5fb522e5b0091a182d6 | e909246ffaffaa5391df80dfb0777ec0cabcbe49 | refs/heads/master | 2020-06-04T21:31:26.112424 | 2020-05-05T18:06:58 | 2020-05-05T18:06:58 | 24,478,978 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 118 | cpp | ghlistaadjacencia.cpp | #include "ghlistaadjacencia.h"
GHListaAdjacencia::GHListaAdjacencia(QObject *parent) :
QObject(parent)
{
}
|
788da0d168775390956caddaa8306a77cb9af8ef | ae0228e951a5676344ae15aa1939d2c1bb8a623d | /Untitled1.cpp | 29e206785a09987850ec2fd97856f5c9cf9ebe3c | [] | no_license | NitinGupta2633/college-assignment | b6eeb81e1c9bbbe07cd378f4b0ede8bbdd80cda4 | c2c747263248669cd7d8815629f38cdf73ea02c5 | refs/heads/master | 2023-01-05T11:33:41.332360 | 2020-11-01T11:37:57 | 2020-11-01T11:37:57 | 301,121,865 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 531 | cpp | Untitled1.cpp | #include<iostream>
using namespace std;
int** create(int a, int b, int arr[][4])
{
int i,j;
int count=0;
cout<<"Enter element rowise"<<endl;
for(i=0;i<a;i++)
{
for(j=0;j<b;j++)
{
cout<<"Enter element of index ["<<i<<","<<j<<"]"<<endl;
cin>>arr[i][j];
}
}
int A[count][3];
for(i=0;i<a;i++)
{
for(j... |
ecd54bae7f326009fbe6d63a1393608d133476d5 | d278fd3c504216d3af70b34fe5e66456cc09ca77 | /src/Input.cpp | b91969fdc6a9cf7fe2388e43e8a6c2919636ab88 | [] | no_license | fundamental-programmers/YAGE | d7ae7a8a52abcb7aed22c2668c22985f9619c25a | e668ccd370be5b7d88dec6dc87d2fbf3c1e2c581 | refs/heads/master | 2020-05-03T01:43:50.692462 | 2015-03-09T12:16:10 | 2015-03-09T12:16:10 | 30,233,785 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 808 | cpp | Input.cpp | #include "Input.h"
#include "GameWindow.h"
BEGIN_YAGE_NAMESPACE
GameWindow * Input::sWindow = NULL;
void Input::Initialize( GameWindow * window )
{
sWindow = window;
glfwSetKeyCallback( sWindow->_GetWindow(), &Input::OnKey );
}
bool Input::IsKeyDown( KeyCode keyCode )
{
int state = glfwGetKey( sWindow->_GetWi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.