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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9b6846a7ead7d206dd9edd39628d3031447014bc | 153f2036e4858364946eb4698608bb9ac464dbc8 | /AnimalRace/Character.cpp | d9bf661e7cc25416e96d287c38864496ddf793db | [] | no_license | KobayashiMasakado/Animal_Race | dc7d03d0a3071825a20bb8ffe43a4032ba8bfc40 | 058f909599a19fb646bdcd07e95d3371a3e840b4 | refs/heads/master | 2020-09-23T22:23:06.233780 | 2019-12-09T08:34:56 | 2019-12-09T08:34:56 | 225,602,318 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 977 | cpp | Character.cpp | #include "pch.h"
#include "Character.h"
#include "ItemEffect.h"
Character::Character()
{
m_itemEffect = nullptr;
for (int i = 0; i < GOAL_NUM; i++)
{
m_charaCheckFlag[i] = false;
}
}
Character::~Character()
{
if (m_itemEffect != nullptr)
{
delete m_itemEffect;
m_itemEffect = nullptr;
}
}
bool Character:... |
00992dd12276d627d5cc13cde7784b766569f120 | 7904d6a8086fb9a0faa1b41b9363c7c19a93fe62 | /src/switch.cpp | 21364b0973972c151ac97ecbab738d289f3435a4 | [] | no_license | jam3st/muxev | e9f015cd7b5d65398b4166ed8a97812e346fbeea | 4caccbe00e3b118bb3dd52a39882f15e067e64f9 | refs/heads/master | 2021-06-24T13:55:35.968573 | 2021-05-03T05:45:28 | 2021-05-03T05:45:28 | 226,775,953 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,861 | cpp | switch.cpp | #include <sys/timerfd.h>
#include <unistd.h>
#include <fcntl.h>
#include <csignal>
#include <iostream>
#include <functional>
#include "switch.h"
#include "exception.h"
#include "misc.h"
static std::function<void()> sigHandler = nullptr;
extern "C" {
static void signalHandler(int const num) {
std::cerr ... |
56577032b9d8e4d46cde3c093e389145089ac2fa | 0179c590885fdcb61bc128f43b6400ecde323158 | /common/MetadataGenerator.cpp | 2fbdceaac3d404b1d855844e5111ac5759a32931 | [
"Apache-2.0"
] | permissive | grejppi/bitrot | b0ede30dd8476915f2d12db483a3827a76b82e99 | 06a72cd6cbe99b469e57a662cfb34e1cfe75e070 | refs/heads/main | 2023-07-22T13:59:12.449430 | 2023-07-12T22:42:23 | 2023-07-12T22:42:23 | 116,572,356 | 40 | 6 | Apache-2.0 | 2022-02-02T18:51:05 | 2018-01-07T14:33:05 | C++ | UTF-8 | C++ | false | false | 5,512 | cpp | MetadataGenerator.cpp | #include <clocale>
#include <deque>
#include <iostream>
#include <utility>
#include "DistrhoPlugin.hpp"
#include "src/DistrhoPluginInternal.hpp"
#include "DistrhoPluginInfo.h"
START_NAMESPACE_DISTRHO
Plugin* createPlugin();
END_NAMESPACE_DISTRHO
#define BOOL(WHOMST) Syntax().keyword((WHOMST) ? "true" : "false")
... |
7e9591d980679810d51df8da5ceb55f85419078e | 946e1a482a7e43670049562b9080001faa2f79ab | /tgcviewer-cpp/tgcviewer-cpp/TgcViewer/Window/TgcWindowHandler.h | cd80dc983c37416e814e2fee7c6333a810a6e6d2 | [] | no_license | xyzr0482/TgcViewer-cpp | 8a7f369dacddb25d4396afd5b9e4f01b9f7fe8ca | 76d3cec308362c2ab114cb4145df51a792f8e833 | refs/heads/master | 2021-01-18T01:57:53.096388 | 2014-12-10T13:07:35 | 2014-12-10T13:07:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,189 | h | TgcWindowHandler.h | /////////////////////////////////////////////////////////////////////////////////
// TgcViewer-cpp
//
// Author: Matias Leone
//
/////////////////////////////////////////////////////////////////////////////////
#pragma once
//General Includes:
#include <string>
using namespace std;
//Project Includes:
#include ... |
cb708ae450a1f8e9a8642d644951a6ba38877242 | bebf05455518256d3b977876502d56b7d0277098 | /Scheduler.cpp | 3c1ef7d205635a679b33ca6c72df6f55d45b335c | [] | no_license | LeBertrand/event-scheduler | 18b462c4e5887be40dcdb1c8b6d3121ea14661c5 | d5c26052d536dd12737ce6ecb366b8fc51ce2584 | refs/heads/master | 2021-05-04T15:25:50.361777 | 2018-02-11T23:39:04 | 2018-02-11T23:39:04 | 120,227,667 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,386 | cpp | Scheduler.cpp | /*
* Main file for Discrete Event simulator project.
* Shmuel Jacobs at Temple University, Spring 2018.
* Initialization has all been placed inside main function.
* New serial numbers represent entirely new jobs entering the system
(as opposed to the event created when a job moves from one component... |
c027cbf49adb4f19155616885163057fb5bbbe5c | 84d6fab9b8bfcaec43dc05b78c2baab38c0f75df | /Engine2Lib/src/Instrumentation.h | ba2194f047e9e7d7c4c09e0662353cbaed9cde12 | [] | no_license | Dalelit/Engine2 | d9d40cb19e75c4da5c15e25fb04a09976c077eca | 121c20e0764914243489427a74a8614b76acf530 | refs/heads/master | 2021-10-25T02:22:27.336047 | 2021-09-26T10:46:00 | 2021-09-26T10:46:00 | 248,733,512 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,419 | h | Instrumentation.h | #pragma once
#define E2_STATS_VERTEXDRAW(x) { Instrumentation::Drawing::drawCount++; Instrumentation::Drawing::vertexCount += x; }
#define E2_STATS_INDEXDRAW(x) { Instrumentation::Drawing::drawCount++; Instrumentation::Drawing::indexCount += x; }
#define E2_STATS_INSTANCEDRAW(inst) ... |
49f36cec36e2617c4f7d3603818e854af73b1ea1 | aeae9a59fb57b672429c75693140ac9afb3e500e | /Gruppuppgift3/BoxNode.h | 2e2c96fa531f79ae3131b72ccf600cd5f0dd11a5 | [] | no_license | GameProject/Tower | 8d31a1cb70c76f461222a07abfb67cb03d806da8 | 91501df975f3d3dd1dd252ed78b6206f8fff5e24 | refs/heads/master | 2021-01-21T02:30:54.781582 | 2011-05-11T02:00:23 | 2011-05-11T02:00:23 | 1,728,394 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 196 | h | BoxNode.h | #ifndef BOXNODE_H
#define BOXNODE_H
#include <d3dx10.h>
#include <vector>
struct BoxNode
{
D3DXVECTOR3 minB;
D3DXVECTOR3 maxB;
std::vector<int> id;
std::vector<BoxNode> ChildNode;
};
#endif |
4afccf4db15748085f9711599375d2d5c3278f3b | 6d473c1828f0e67ac8c7b9cf5cdd12a91d9b9552 | /repo.h | 0d0dbbdfa636a18a47cbf0fb0cbe4ab725ee98a2 | [] | no_license | amulrichsen/CPSC362Project1 | 88bb6ec014bc7ea6e298b4f9d9c1451bed5f5905 | 681cd6071fd7eafe396a6f014613673eb856cf28 | refs/heads/master | 2020-03-28T21:47:05.003796 | 2018-12-15T09:38:06 | 2018-12-15T09:38:06 | 149,182,409 | 0 | 0 | null | 2018-09-24T05:55:24 | 2018-09-17T20:14:47 | C++ | UTF-8 | C++ | false | false | 1,486 | h | repo.h | /* Repo Class
Creates a repository using a given source tree path and target folder path
Replicates Files and Folders
Authors:
Anette Ulrichsen
amulrichsen@csu.fullerton.edu
John Margis
margisj@csu.fullerton.edu
*/
#pragma once
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>... |
8b5642b5ac66108d4a572b0f473cc1af29f2d46d | e4d60bddba951b92ef586a5d8d5caf2985e991c3 | /백준13458 시험 감독.cpp | 9e8e5e941c6433f7efce68241d4eb8a2d2ec1806 | [] | no_license | Hong-kee/gitforHong | 6ec74bd94b16fd5f38977eb8952325922bf50f0f | e56fd441f720ae4bcd44cfad30f261aab8ecc036 | refs/heads/master | 2023-02-21T00:43:49.970438 | 2021-01-13T09:27:52 | 2021-01-13T09:27:52 | 285,011,113 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 912 | cpp | 백준13458 시험 감독.cpp | #include <iostream>
using namespace std;
long long N, grandmaster, master;
long long ans = 0;
int classroom[1000001];
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
cin >> N;
for (int i = 1; i <= N; i++) {
cin >> classroom[i];
}
cin >> grandmaster >> master;
for (int i = 1; i <= N; i... |
f6359ddaf11bd4109a27cd2bb49022bb1c647482 | a13c1994f21db8a33023dad78790a75d15967a48 | /1BITL/IVS/black_box_tests.cpp | be7ee81542c7f153b7b67cd4af05da52927ce21a | [] | no_license | MasterPK/VUT_FIT | 9d1c128d197d9bc02b70ead26ed32dc94e003fbe | 508e982c3721171d9548dee390e33708031de35b | refs/heads/master | 2020-09-26T16:50:14.917826 | 2020-02-12T19:13:14 | 2020-02-12T19:13:14 | 226,295,850 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,648 | cpp | black_box_tests.cpp | //======== Copyright (c) 2017, FIT VUT Brno, All rights reserved. ============//
//
// Purpose: Red-Black Tree - public interface tests
//
// $NoKeywords: $ivs_project_1 $black_box_tests.cpp
// $Author: JMENO PRIJMENI <xlogin00@stud.fit.vutbr.cz>
// $Date: $2017-01-04
//===================================... |
b4d08e3810e01ed79669309d8eb2723884a3c9a7 | 9d17289c97ca943856afd96375e458884d27848a | /pracprog2.cpp | 126dac05947515a5aab556abecc1415a0a47e4ac | [] | no_license | pratik-a/DSA | 0b3022638443de8925005abb3c75ea8012e89649 | 94fdf4c11b77421ec7c355a56f799cff9b775ec6 | refs/heads/main | 2023-08-22T00:43:24.773070 | 2021-10-28T18:19:39 | 2021-10-28T18:19:39 | 340,961,805 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,046 | cpp | pracprog2.cpp | #include<iostream>
#include<conio.h>
using namespace std;
void kmin(int arr[],int n,int k)
{
int temp;
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
{
if(arr[i]>arr[j])
{
temp=arr[i];
arr[i]=arr[j];
arr[j]=te... |
18b2cb9e9365d0019fa9e4f472c5a08bea229330 | aae79375bee5bbcaff765fc319a799f843b75bac | /tco_2019/EllysSki.cpp | 51a721248adbc1027c271916bebd8d110168ee25 | [] | no_license | firewood/topcoder | b50b6a709ea0f5d521c2c8870012940f7adc6b19 | 4ad02fc500bd63bc4b29750f97d4642eeab36079 | refs/heads/master | 2023-08-17T18:50:01.575463 | 2023-08-11T10:28:59 | 2023-08-11T10:28:59 | 1,628,606 | 21 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 5,089 | cpp | EllysSki.cpp | // BEGIN CUT HERE
/*
TCO19 R1B Easy (250)
PROBLEM STATEMENT
Elly hates the cold, but for some weird reason she likes skiing. Now she has started organizing a new ski adventure on a mountain ridge she hasn't visited before.
Elly has a map of the mountain ridge: the vector <int> height.
The mountain (when viewed from ... |
6762fe031b1f019b24b1c1255fb6f9f4af624929 | 5ca152075444853230a735af9896134cece59a06 | /submissions/U201614898_潘翔_软件工程实验/HUST_SoftwareEngineering_Labs_src/chooseseat_dialog.cpp | 4d49d694e44b5bd5b0578827909e50e487b86395 | [] | no_license | Xiang-Pan/HUST_SoftwareEngineering_Labs | c9f13faffa0396a2ea9859f4573583f25023fdfe | 31c81dc98fcc50a5dfe4740fd51ddf481f7b73a1 | refs/heads/master | 2021-10-10T06:26:21.442377 | 2019-01-07T14:47:30 | 2019-01-07T14:47:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,156 | cpp | chooseseat_dialog.cpp | /* FileName:chooseseat_dialog.cpp
* Author:Hover
* E-Mail:hover@hust.edu.cn
* GitHub:HoverWings
* Description:The implementation of chooseseat module
*/
#include "chooseseat_dialog.h"
#include "ui_chooseseat_dialog.h"
chooseSeat_Dialog::chooseSeat_Dialog(class MainWindow *parent,int FID) :
QDialog(parent),
... |
0f1c320c4e1cf690085de1aca43509826478040e | 63a45e299937aee8e9bcd1260c87f50d690563ae | /program.cpp | e067d7167b9853e7152bcac0939318e323f06492 | [
"MIT"
] | permissive | samiullahsaleem/pattern | 464a2c14b0f7b450a10e80539e61c2ca48c4a798 | dc32b398ff4ee5c7d229037e3bf18ae94c6727b2 | refs/heads/main | 2023-05-23T22:20:49.201644 | 2021-06-13T05:54:37 | 2021-06-13T05:54:37 | 376,452,883 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 611 | cpp | program.cpp | #include <iostream>
using namespace std;
int main()
{
int min = 0;
int max = 10;
int counter1 = min;
char symbol = '+' ;
cout << "Pattern A: " << endl;
while(counter1 < max)
{
while(min <= counter1)
{
cout << symbol;
min++;
}
mi... |
c77013b46a5bb51d68ce542e97ab896042dbca30 | 7154a4132b8c55c0bb15794b8829fafa351bc092 | /src/user_interface/user_interface.cpp | d722eca9af4c178059a44d5ffe41cdb822899d48 | [] | no_license | FongYoong/data-logger-esp32 | 22d49e7a4e684833453cf9968c96c6eaba885ba6 | b6e67b3e2dbde7092a37ab8a17cb3ce2a797ad3f | refs/heads/master | 2023-08-04T05:32:30.294902 | 2021-09-11T17:20:50 | 2021-09-11T17:20:50 | 403,499,355 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,742 | cpp | user_interface.cpp | #include "user_interface.h"
#include "fonts/roboto_bold_8.h"
#include "fonts/roboto_bold_10.h"
#include "../pins/pins.h"
#include "../firebase/firebase.h"
#include "../unix_time/unix_time.h"
UserAction currentUserAction = UserAction::UA_NONE; // Current user action state
UIPage currentUIPage = UIPage::P_HOME; ... |
34b40c96a6281690952a65b3dd884aea909455af | 308cf11178f8034c1e64e9692d633dbf94d9edda | /tests/src/test/cpp/crypto/JsonWebKeyTest.cpp | 04666413bc27b9e3457934e80c8578b97e21dff1 | [
"Apache-2.0"
] | permissive | firmangel8/msl | 9abd151c5b31254fba9ce4ea5a61939c7d262da7 | 78dfd67165533d97051ea6d828063eacc92de77a | refs/heads/master | 2020-12-20T06:34:56.344898 | 2019-10-28T20:00:19 | 2019-10-28T20:00:19 | 235,989,131 | 1 | 0 | Apache-2.0 | 2020-01-24T11:18:03 | 2020-01-24T11:18:03 | null | UTF-8 | C++ | false | false | 42,211 | cpp | JsonWebKeyTest.cpp | /**
* Copyright (c) 2016-2017 Netflix, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
182549fc2fdc56010688efb49af0426a1a675852 | 94312e2cb2d8a70d21871315c1e0d65f7d71faf5 | /labs/lab08/lab08_functions.cpp | b645f2e8286b35692f86e74ae8ec6d4936c98665 | [] | no_license | trainesb/CSE232-CPP | 9ade69f24bdc4bec355044f9aa10fe845ee63266 | 93d621ccca50920fffab9670b0b463aed19008e5 | refs/heads/master | 2020-07-21T15:30:29.014786 | 2019-09-07T03:22:13 | 2019-09-07T03:22:13 | 206,909,396 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 889 | cpp | lab08_functions.cpp | #include<string>
using std::string;
#include "lab08_functions.h"
/*
input is a positive (1 or greater) integer
returns the next collatz number
if number is 0 or less, throws range_error;
*/
long collatz_next(long n){
int next;
if(n%2==0){
next = n/2;
}
else{
next = (3*n)+1;
}
if(n<=0){
throw 0;
}
... |
288697b598eb8fe905da205dc471fe51825a46ed | ab6b28042e36ce34304c2d187279d199247994a6 | /src/buffer.hpp | 1fc7e8006d04df4004751cb02b62c5fcf00a53ef | [
"MIT"
] | permissive | asztal/eos | 7ed94d2eed70aec8049953af76cd96147d714ae1 | 2791e63f37c66f3a86b10a19183cf0f400cf8941 | refs/heads/master | 2021-01-24T06:38:00.917977 | 2015-06-14T13:31:42 | 2015-06-14T13:31:42 | 16,421,447 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,042 | hpp | buffer.hpp | #include "eos.hpp"
namespace Eos {
namespace Buffers {
bool Allocate(
SQLLEN length,
SQLPOINTER& buffer,
Handle<Object>& handle);
template<class T>
bool AllocatePrimitive(const T& value, SQLPOINTER& buffer, Handle<Object>& handle) {
if (!Allo... |
aef7ed4f2ceceb4e45c7166d8a5428510e9dc16c | 286bf5d8afa9692fdef36ae2171da90d418a0889 | /Broker.cpp | 4e1ee195ed66165d045e2341ca530243ca13d833 | [] | no_license | kanglicheng/CompetitiveProgramming | 6863702712e3c902f1e3b1344b9a17bf611e141d | 80a0fa8a5bf3793a1300ec15b3c4529e66b157cc | refs/heads/master | 2020-07-07T05:46:01.437467 | 2018-02-17T15:26:13 | 2018-02-17T15:26:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 809 | cpp | Broker.cpp | #define ll long long
#define pb push_back
#define N 400000
#define ms(a,b) memset(a, b, sizeof a)
#include<bits/stdc++.h>
using namespace std;
vector<int> adj[N];
ll a[N], p[N], par[N];
bool used[N];
int n, m;
bool kuhn(int x){
used[x] = 1;
for(auto v : adj[x]){
if(!par[v]){
par[v] = x;
return 1;
}
if(use... |
eed12ad2c1eb52f77697e2c46c1f9fb656481558 | 5db218901dc34c891b211d7db311f3669b86cd67 | /lib/Scoring/Process.cpp | a1bee9707b0536ed130d2134f556c6f82c331854 | [] | no_license | ibaiGilabert/AsiyaGPU | f9deaea6634c5359fecd4e64c61d3c6deb16e409 | c34128d1deb733937094d2955cd7334ffe8e1c69 | refs/heads/master | 2020-12-30T10:36:48.181868 | 2015-04-21T23:13:08 | 2015-04-21T23:13:08 | 20,775,823 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,533 | cpp | Process.cpp | #include "../include/Process.hpp"
#include "../include/TB_FORMAT.hpp"
#include "../include/TESTBED.hpp"
#include "../Config.hpp"
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <set>
#include <boost/filesystem.hpp>
#include <boost/algorithm/string.hpp>
string Process::exec(const ch... |
826a9163c1b4acd031c3546560920ee7af8e0796 | aeb9add98587935f8b3cb52d8597c9349c47bcdf | /untitled1/myqtosgwidget.cpp | 93c005221d4f811f0c655adadc2831561984a0ce | [] | no_license | jnmaloney/MATH7232-Past-Exam-Solutions | 5bd118ff0e2871b04581864441088ddfc901d890 | 72d91a111cf2c9163f38fb3eb186fde81e55b0d2 | refs/heads/master | 2020-06-01T22:48:39.719325 | 2017-11-04T11:36:03 | 2017-11-04T11:36:03 | 94,085,689 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 64 | cpp | myqtosgwidget.cpp | #include "myqtosgwidget.h"
MyQtOSGWidget::MyQtOSGWidget()
{
}
|
fdaeadaad1c3aaa22a475a971c5fd726cf9c547a | 81b131f4963934e9a7e6a6f960430924f69f3005 | /c++Project/c++Project/interface.cpp | c16ac13750b0ba48caaa6597340c533dc4d50d87 | [] | no_license | cccv203/simulink-using-svm-rf-by-dll-c- | a099ee238dea4704227391d3e47d387a980ef27b | 7b66487fae5494bcb8b266494b3774ea4684623c | refs/heads/master | 2020-04-06T10:26:58.308243 | 2018-11-14T05:10:39 | 2018-11-14T05:10:39 | 157,380,651 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,337 | cpp | interface.cpp | #include "stdafx.h"
////
//#include "interface.h"
//#include "getData.h"
//#include "model.h"
//#include "svmModel.h"
//#include "randomForest.h"
//#include <iostream>
////
//
//
//static vector<Ptr<ml::SVM>> svmVec;
//static vector<Ptr<ml::RTrees>> randomForestVec;
//
//void train_process(Model* model, s... |
938a05f88b32cf8d68760883d91c536999ec3f23 | 9f05d15a3f6d98711416d42e1ac3b385d9caa03a | /sem3/da/labs/4/var_3_1.cpp | 86c14f72ac9ac239f73a9f817575b2b3aabda665 | [] | no_license | dtbinh/MAI | abbad3bef790ea231a1dc36233851a080ea53225 | a5c0b7ce0be0f5b5a1d5f193e228c685977a2f93 | refs/heads/master | 2020-06-16T06:45:58.595779 | 2016-08-21T15:37:10 | 2016-08-21T15:37:10 | 75,237,279 | 1 | 0 | null | 2016-11-30T23:45:58 | 2016-11-30T23:45:58 | null | UTF-8 | C++ | false | false | 4,308 | cpp | var_3_1.cpp | #include <exception>
#include <new>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "vector.h"
#include "queue.h"
struct TPos
{
int row;
int col;
};
int ToLower(int ch);
void PreBmBc(char* x, int m, int* bmBc, int size);
void Suffixes(char* x, int m, int* suff);
void PreBmGs(char* x, int m, int* bm... |
f11dfe14eef565e3a7b4c9479b1043806628e02c | 55fc1fbb64178cdf09255d2b2ab348d605188d7c | /MFilePlayer/MFilePlayer/MediaFileCtrl.h | 0248f52e434b536525a40772510f81157195fd9a | [] | no_license | noahliaoavlink/ms_src_1.2.8 | 679f86b39b958985df363ffe3a7071e2ff39717e | 96a5a0f20f2b2e6f72ce248682051e02668feb72 | refs/heads/master | 2021-01-16T16:16:41.972937 | 2020-07-20T03:31:56 | 2020-07-20T03:31:56 | 243,179,822 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 461 | h | MediaFileCtrl.h | #pragma once
#ifndef _MediaFileCtrl_H
#define _MediaFileCtrl_H
#include "FFMediaFileDll.h"
#include "..\\..\\Include\\SQList.h"
class MediaFileCtrl
{
SQList* m_pFFMediaFileList;
FFMediaFileDll* m_pCurSelObj;
public:
MediaFileCtrl();
~MediaFileCtrl();
void CloseAllFiles();
int SearchFileName(char* szFileName)... |
748480eeb4967ed519e3c546d2552032a944bf75 | d680d37bc92ad510107ed74a7df3f0aae576259c | /order.cpp | 15569a1848472a19418063b9dc65b887737bde6c | [] | no_license | dleung25/C---Factory-Simulation | 8f404a3f2779aeba426043b8f020765d1e20ae50 | 1f01e32de9b4f4a0d036758c37ee307ab936b8d4 | refs/heads/master | 2021-01-09T06:24:16.276702 | 2017-02-05T09:08:05 | 2017-02-05T09:08:05 | 80,981,006 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,551 | cpp | order.cpp | //need to fix
#include "util.h"
#include "order.h"
using namespace std;
bool Order::validCustomerName(std::string name)
{
if (name.size() > 0 && isalpha(name[0]))
return true;
return false;
}
bool Order::validProductName(std::string name)
{
if (name.size() > 0 && isalpha(name[0]))
return true;
r... |
d7bb7b19415cc934395d756259b5a402e46087cc | 52ca17dca8c628bbabb0f04504332c8fdac8e7ea | /boost/accumulators/statistics/weighted_density.hpp | a4ca9bf88cc7f21700805eb2bb3872746ff61d4b | [] | no_license | qinzuoyan/thirdparty | f610d43fe57133c832579e65ca46e71f1454f5c4 | bba9e68347ad0dbffb6fa350948672babc0fcb50 | refs/heads/master | 2021-01-16T17:47:57.121882 | 2015-04-21T06:59:19 | 2015-04-21T06:59:19 | 33,612,579 | 0 | 0 | null | 2015-04-08T14:39:51 | 2015-04-08T14:39:51 | null | UTF-8 | C++ | false | false | 86 | hpp | weighted_density.hpp | #include "thirdparty/boost_1_58_0/boost/accumulators/statistics/weighted_density.hpp"
|
bc590f2517b661c24f6d385ebbd6ee823f260a03 | f4b844363d692373d80d1340ddd98ced9a6cd47d | /LineUp.cpp | 9c6187fd2eb84fa940d0b6de8f375494e3988054 | [] | no_license | bpoore/162_Fantasy_Game | e7024861835fed3c010e7cc9bfeb20bf211106e1 | 35008665f2861860e355b147ac2fb50685a593b9 | refs/heads/master | 2020-12-24T19:28:24.208863 | 2016-04-29T06:13:50 | 2016-04-29T06:13:50 | 57,358,387 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,518 | cpp | LineUp.cpp | /*********************************************************************
** Author: Elizabeth Poore
** Date: May 23, 2015
** createLineup Function
** Description: This function allows the user to select how many creatures will
** be fighting on each team, then allows the players to select which kinds of cre... |
edba345f72742a665c27d08aa310be821668ce4e | 6221c88e3d55aea2d96ea38e6508d6f3ef4c18e4 | /main.cpp | 90ebc97a1c3c3f5243c014e48de0e22a994f08dd | [] | no_license | sergiosanzllamas/navidades | 30a341d90906b3c44faf4c0312a0565af78304e1 | ad634e658c5c0d99014e94ba51db2b68cb40a462 | refs/heads/master | 2021-09-12T20:01:14.244668 | 2018-04-20T12:13:55 | 2018-04-20T12:13:55 | 115,423,083 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 404 | cpp | main.cpp | #include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main(){
int x;
int seg1 = 5;
seg1=(int)clock()/CLOCKS_PER_SEC;
srand(time(NULL));
for(int as=0; as<3; as++){
x = rand()%36;
printf("El numero es %i\n", x);
if(x == 10 %2 || x == 10%3)
printf("has ganado\n");
... |
b215009a23591d5fa61bd3f8467d16a62636fa52 | 96be739909a2d5315b93137f95aec28cc755db2e | /PUNT1.CPP | dfaa16f140beb6d7089992f9e5f385c3dd5bf6bc | [] | no_license | NightRoadIx/Curso-C | e4b1c30bd745b6c86aa5483f490d59b8650706f8 | 44d40331b0d6cbf9340759dbebc034e2d4ed839f | refs/heads/master | 2021-06-14T00:15:09.962894 | 2021-02-16T20:28:52 | 2021-02-16T20:28:52 | 133,899,956 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,461 | cpp | PUNT1.CPP | /*
Curso de Programaci¢n de C
Punteros 1
*/
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
/*
Cuando una variable se declara existen tres atributos fundamentales:
->su tipo (int, float, char) [Da el tamaño que tiene que asignarse]
->su nombre [Como se llama la variable, la forma en que ... |
cf6452f3f9eb9ed7202156c129703356c6e1f7d4 | b678666d9a56165e56c39f99d569f3a5630452dc | /Phanso/Phanso/Phanso/Phanso.cpp | 69be24b5f739a2da817a6c28291d71eff8abafbd | [] | no_license | JustKidding2K/OOP_Tuan5 | 6184f85497b87684ccf844b611dc206abd6c68bf | af01536a9cf5e9ae8f8bf56f5e2950c323319c33 | refs/heads/master | 2020-08-17T16:41:53.637247 | 2019-10-17T02:44:01 | 2019-10-17T02:44:01 | 215,688,461 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,852 | cpp | Phanso.cpp |
#include"Header.h"
#include "Phanso.h"
int main()
{
//Phanso a(1, 2);
//Phanso b(3, 4);
//Phanso c = a + b;
//cout << c.pGetTu() << "/" << c.pGetMau();
//system("pause");
string input;
cin >> input;
Process(input);
system("pause");
}
Phanso::Phanso()
{
mTu = 0;
mMau = 1;
}
... |
71d67cf004c678c1133e007b7ce060e33e720974 | b4af26ef6994f4cbb738cdfd182e0a992d2e5baa | /source/leetcode/2293/신입.cpp | 3daec4023a10eaaa526f7dddb842a077b153af82 | [] | 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 | 383 | cpp | 신입.cpp | class Solution {
public:
int minMaxGame(vector<int>& nums) {
if(nums.size() == 1) return nums[0];
vector<int> newNums;
for(int i=0;i<nums.size()/2;i++)
{
if(i%2 == 0) newNums.push_back(min(nums[2*i], nums[2*i+1]));
else newNums.push_back(max(nums[2*i], nums[2*... |
8c9a293d64b81beb6b03fcffc70ed9734a3fd8c6 | 1ca947273d2739e25e3e9d96c839dfa4562bfaf9 | /src/ViewFrustum.cpp | fb84a1992a33ecea83c5b5c93fa4539e4f4e86e6 | [] | no_license | jpaterso/fire-engine | 8cf40af27098c94df388714fb3a339f6fae16b37 | b6389539fe6901971bb2ff696aba1c2f55a3df55 | refs/heads/master | 2021-01-01T18:54:41.699488 | 2010-04-28T05:07:09 | 2010-04-28T05:07:09 | 32,113,283 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,402 | cpp | ViewFrustum.cpp | /**
* FILE: ViewFrustum.cpp
* AUTHOR: Joseph Paterson ( joseph dot paterson at gmail dot com )
* RCS ID: $Id: ViewFrustum.cpp 105 2007-09-11 05:08:21Z jpaterso $
* PURPOSE: A view frustum, defining a visible volume in 3-dimensional space.
**/
#include "ViewFrustum.h"
#include "Math.h"
namespace fire_engine
{
Vi... |
de5f912295f5d197a4015cf2f5b6260d1d9f2c3d | 91e0031b55d93eabb36e8a29234b3ce58e97cbe1 | /rules/str/51/c0.cpp | 80d758ed757ba4308f19c1f687ccaea4fd7be6c2 | [] | no_license | yesmar/sei-cert-cppcs-samples | d76c2f13fc21d01a04ae544118f272abce2b57b1 | 88f9bd1d9f4769f518b1348690bfc02e1647d16a | refs/heads/main | 2023-02-16T19:29:53.066649 | 2021-01-17T22:22:53 | 2021-01-17T22:22:53 | 313,092,118 | 4 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 215 | cpp | c0.cpp | // STR51-CPP: Compliant Solution
#include <cstdlib>
#include <string>
void f() {
const char *tmpPtrVal = std::getenv("TMP");
std::string tmp(tmpPtrVal ? tmpPtrVal : "");
if (!tmp.empty()) {
// ...
}
}
|
9002dae85195a576ca69e01364e0689c15c00f90 | 01f6db15d5fe059e3a45966008b93568bea691f5 | /Classes/Bullet.cpp | 3c2f407901b02c8bd6b61fc4ba468b43440fd3df | [
"MIT"
] | permissive | meer07/new_stg_sample | 61c80a77d6d8b4e840849e86e661b068a4fcd5d8 | d17d9e4eef7ad1216cb6a24c6eb34d6dbcb07b1d | refs/heads/master | 2020-05-16T23:50:08.419491 | 2015-02-06T09:30:23 | 2015-02-06T09:30:23 | 28,857,250 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,001 | cpp | Bullet.cpp | #include "Bullet.h"
#include "TaskManager.h"
#include "GameData.h"
// {speed,speedRate,angle}
Bullet* Bullet::create(const float param[], std::string fileName)
{
Bullet *bullet = new Bullet();
bullet->speed = param[0];
bullet->speedRate = param[1];
bullet->angle = param[2];
bullet->isAl... |
d37cd88b801158b96d07b07ab432bb210098355a | ae11eda73ad0a61f8f7f894314bd9aa40798b50a | /HiggsAnalysis/GBRLikelihoodEGTools/src/EGEnergyCorrectorTraditional.cc | 31d445c49d7131b58456f109af04fafc1373db05 | [] | no_license | hbakhshi/NTupleProducer | 087a7286f7352e9f6c517d257d7f195280db058d | eec377339008d2139128059d7127f9a2184c080c | refs/heads/master | 2021-01-22T14:32:44.891691 | 2014-06-10T12:48:12 | 2014-06-10T12:48:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,150 | cc | EGEnergyCorrectorTraditional.cc | #include <TFile.h>
#include "../interface/EGEnergyCorrectorTraditional.h"
#include "CondFormats/EgammaObjects/interface/GBRForest.h"
#include "CondFormats/DataRecord/interface/GBRWrapperRcd.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "DataFormats/EgammaCandidates/interface/Photon.h"
#include "DataForm... |
284c8eae3fddc0d639c7ec3696838f33466a446f | 155e63c2cb0b214338a08b03f59e97f568582740 | /lab1/7.cc | b1aa66771c2856ff939f45f88428b6c825bde99f | [] | no_license | macabrus/asp | f5d259dbe8069b83fba9aacf4b7ff4d192f193b3 | 88ca813bb8a5e044a5091caed31df47820e1caf8 | refs/heads/master | 2020-08-24T10:46:41.340778 | 2020-01-10T20:04:35 | 2020-01-10T20:04:35 | 216,812,003 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 446 | cc | 7.cc | #include <iostream>
#include <algorithm>
#include <ctime>
#include "../util.h"
using namespace std;
int* getSquaredArr(int* arr, int size) {
for(int i = 0; i < size; i++)
*(arr + i) = *(arr + i) * *(arr + i);
random_shuffle(arr, arr + size);
return arr;
}
int main () {
srand(time(0));
int n;
cin >> n;
int*... |
9b1848052a8d9247b94620f3e0938ad5c36d8bc6 | 1d9bc0bd79442d521f92e1328ff0ffa35adb13b7 | /riglib/plexon/plexon/docs/PlexNetClient.cpp | 0434028f2d64681617b778e8ab908ccb84863b4e | [
"Apache-2.0"
] | permissive | carmenalab/brain-python-interface | 07cf7e1ee1a75070cfbcabc7d2df9111e539e36c | a0e296aa663b49e767c9ebb274defb54b301eb12 | refs/heads/develop | 2023-02-21T14:43:26.659430 | 2022-12-18T21:54:56 | 2022-12-18T21:54:56 | 36,104,349 | 9 | 5 | NOASSERTION | 2023-02-08T00:01:39 | 2015-05-23T02:44:47 | Python | UTF-8 | C++ | false | false | 10,548 | cpp | PlexNetClient.cpp | //
// PlexNetClient.cpp
//
// Implements the PlexNetClient class. See RawSocket.cpp
// for a console mode application that demonstrates the use
// of PlexNetClient to receive PlexNet data from an OmniPlex
// or MAP system. For questions or support, please contact
// support@plexon.com.
//
// ... |
621785f2d62d61b7291dde338a5cc003d9af12dd | bd9e6cfa10d1967b50cd699727631594f374b5f8 | /OpenMC/Src/Scenes/BuildingHelper.h | ded5965e1663088ee4767ee074bc747c6b038ad2 | [] | no_license | UnknownBuild/OpenMC | 20218202efb8678f0a6f594066e5c962ebd1711a | 7496e2b243a8e2efcff88df907139a276a676738 | refs/heads/master | 2020-05-21T07:12:06.683397 | 2019-07-19T15:55:50 | 2019-07-19T15:55:50 | 185,952,676 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 318 | h | BuildingHelper.h | #pragma once
#include "../Camera/Camera.h"
#include "../SpriteRenderer/SpriteRenderer.h"
#include "../World/World.h"
#include "Scene.h"
class BuildingHelper {
public:
BuildingHelper();
void buildTree(glm::vec3 pos, int height);
void buildHouse(glm::vec3 pos);
private:
SpriteRenderer* renderer;
};
|
5ea8b52e7761879603a55b7d8cb48d3961a5ca7a | 594c967c169872d19e5b3971f389aa5185a90c21 | /task9Aug2021B.cpp | 46ad588abd02d0d3589f71c746452ca3d3b8baeb | [] | no_license | mahmoudalfawair/task9Aug2021 | 7f342fd1ee5b8d2858f4afcdce153a8d7666116c | 0a951ae1795eb36c770b6f1975f103f8d6407231 | refs/heads/main | 2023-07-07T21:21:04.328152 | 2021-08-09T07:37:04 | 2021-08-09T07:37:04 | 394,195,713 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 221 | cpp | task9Aug2021B.cpp | #include <iostream>
using namespace std;
int main()
{
int counter=0;
for(int i =65; i < 91; i++)
cout << static_cast<char>(i)<< endl;
for(int j = 97; j<123; j++)
cout << static_cast<char>(j)<< endl;
return 0;
} |
8226afbd7cf243aaff5c374538c750c58fa7660d | 320dba9142f1bf18e042172bc6598b6cf6510a2c | /25_성적표ver3/MyException.h | 549ea274c3d52096f27ff740508e30a0c502191d | [] | no_license | Jeonghwan-Yoo/brain_cpp | a6a7be1f3d5e2288f5c93b437bd13530b600d7f7 | aa9f279dccb36705f308e4d8495cbcae9a7e6c9a | refs/heads/master | 2020-07-26T23:27:45.117750 | 2019-09-16T12:50:39 | 2019-09-16T12:50:39 | 208,797,126 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 777 | h | MyException.h | #ifndef MYEXCEPTION_H
#define MYEXCEPTION_H
#include <string>
#include <exception> //상속 받기 위해
using namespace std;
//이 프로젝트 사용할 예외
class MyException : public exception {
public:
//생성자
//msg:예외를 설명하는 문자열
//예외를 설명할 문자열을 인자로 받아 멤버 변수 _Str에 보관한다.
MyException(const string& msg) : _Str(msg) {
}
//소멸자
virtual ~MyEx... |
ff2fe5c862f49ef6c6e76352d2ca4e6ae67ff54b | f8036dae49bfc19f21d52b80313e1539fc92d284 | /behavioral/observer/course_website.h | 70f97747b9b2b7937bcde5ea4c3d27e13b8bbfd3 | [] | no_license | EazyReal/design-pattern | c24f32e641cf1572c8f9e26644a613f204a0653f | 57d9cfa4d5e0349fa9e0091e802fd6997f742ebd | refs/heads/master | 2023-01-16T03:41:36.510849 | 2020-11-27T20:02:38 | 2020-11-27T20:02:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 601 | h | course_website.h | #ifndef COURSE_WEBSITE_H_
#define COURSE_WEBSITE_H_
#include "observable.h"
#include "observer.h"
#include <functional>
#include <string>
#include <vector>
class CourseWebsite : public Obserable<CourseWebsite> {
public:
// The caller is responsible for maintaining the life of an observer longer
// than course web... |
9231d29d9e77b1526931728b5fd83ee06a4291a0 | f0d5be072772928dfc3dbaf9134b8a51727a49cd | /SDLGame/PlayState.cpp | f12c3913467dc3285706ed0074d4204f81ca23ec | [] | no_license | KyryloBR/SDLEngine | 85cc17546395334c927ec10b58ae938b372cc347 | e4304927eee5992a0b0c68d38d8e52c06245cd67 | refs/heads/master | 2020-12-24T20:24:21.564478 | 2016-05-21T22:01:51 | 2016-05-21T22:01:51 | 59,379,157 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,751 | cpp | PlayState.cpp | #include "PlayState.h"
#include "Log.h"
#include "Game.h"
#include "InputHandler.h"
#include "PauseState.h"
#include "GameOverState.h"
#include "StateParser.h"
#include "LevelParser.h"
#include "AnimationParser.h"
#include "CollisionManager.h"
#include "AnimationHandler.h"
const std::string PlayState::s_playID = "PLAY... |
b2d8a094701633f11e513f37fff43d83590d3714 | 78bffca13fb22f10a1453bf39e561cc1102f5033 | /TQueue Class/Tqueue.cpp | e4a17af88f1255d6e10f97448d03d5ffd638fa04 | [] | no_license | EnzoW1997/Music-Player | 563f68ff924ec76db51a8239a8e636cc50cf54b2 | c467e55a5d94f2fa7d501988cbbcc90e8cff7556 | refs/heads/master | 2020-03-21T19:35:44.136147 | 2018-06-28T03:21:14 | 2018-06-28T03:21:14 | 138,944,926 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,805 | cpp | Tqueue.cpp | #ifndef TQUEUE_H
#define TQUEUE_H
/********************************
** File: Tqueue.cpp
** Project: CMSC 202 Project 5, Fall 2017
** Author: Enzo Walker
** Date: 11/27/2017
** Section: 1093, Discussion: 1095
** Email: enzow1@umbc.edu
**
** This class is a templated Queue that takes Type Pramaters of T
** which... |
5ba6404ace3ec52fa4d951d99fdd945010eb2e06 | 58dbd83bc3142b23d7f6b20212a592ded62f49fa | /Algorithm/Baekjoon/1325.cpp | 0d1b565f26ad7eb49d6ff1787d469c6d40d29a32 | [] | no_license | kkminseok/Git_Tutorial | 56cbaededfed52dc093cdf343ace98f59ba57b18 | 1be681f240de067f9aee17a08620e04f9fc49441 | refs/heads/master | 2022-08-13T13:24:32.886304 | 2022-07-24T09:20:56 | 2022-07-24T09:20:56 | 204,464,357 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 919 | cpp | 1325.cpp | #include<iostream>
#include<vector>
#include<cstring>
#include<queue>
using namespace std;
int N, M;
int counting[10001] = { 0, };
int maxz = -1;
bool v[100001] = { false };
void bfs(int start,vector<int> graph[])
{
queue<int> q;
q.push(start);
v[start] = true;
while (!q.empty())
{
int tmp = q.front();
q.pop... |
f265fd2325b2ffae260487b8ce5a75641ec37ef5 | c31ee8136a57a96649196081e1cfde0676c2a481 | /larcv/app/ImageMod/MultiPartSegFromCluster2dParticle.h | 89a5903742e451a464425cd7e61a41f2d2c9d90d | [
"MIT"
] | permissive | DeepLearnPhysics/larcv2 | b12b46168e5c6795c70461c9495e29b427cd88b5 | 31863c9b094a09db2a0286cfbb63ccd2f161e14d | refs/heads/develop | 2023-06-11T03:15:51.679864 | 2023-05-30T17:51:19 | 2023-05-30T17:51:19 | 107,551,725 | 16 | 19 | MIT | 2023-04-10T10:15:13 | 2017-10-19T13:42:39 | C++ | UTF-8 | C++ | false | false | 2,214 | h | MultiPartSegFromCluster2dParticle.h | /**
* \file MultiPartSegFromCluster2dParticle.h
*
* \ingroup ImageMod
*
* \brief Class def header for a class MultiPartSegFromCluster2dParticle
*
* @author cadams
*/
/** \addtogroup ImageMod
@{*/
#ifndef __MULTIPARTSEGFROMCLUSTER2DPARTICLE_H__
#define __MULTIPARTSEGFROMCLUSTER2DPARTICLE_H__
#include "lar... |
eeb53f3e92ce9e0dd8485149f06d0270da71c072 | b7f7a7f5b4dfa3f249822eb312ac92b0c4d2d840 | /HWPrograms/forHW1/HW1P2/vectorClient1.cpp | 31fb14bc492e10c65b6a382a66bd8f20fe6932dd | [] | no_license | elDavidGarcia/CSUSM_CS311 | 46571c5235aa03f5cea1f8c41e9f0f71ba16047b | 5d0d59487dbd6a12c50b563744d0a65907f6c90e | refs/heads/master | 2020-04-27T16:12:04.956702 | 2019-03-08T05:41:55 | 2019-03-08T05:41:55 | 174,476,072 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,601 | cpp | vectorClient1.cpp | //=========================================================
//HW#: HW1P2 vector stack
//Your name: David Garcia
//Complier: g++
//File type: client program for vector stack
//===========================================================
using namespace std;
#include <cstdlib>
#include <iostream>
#include <string>
#incl... |
c6e82494a68d4d0ec33a9e61d452f6090e86ffe8 | 35250ed783653dabc3dfb7328a8a1b1d0fa7d295 | /Code/cxz/tfidfGenerator.cpp | 02768f89b19a052dd845008a9b0cd6338206f4d9 | [] | no_license | alpha7happy/kaggle-keyword | 780abaab8bd8bb2c9af9012ce6c7901236ed186a | 71c3c8adc9fd50b6e887ee02f3f285999aa74625 | refs/heads/master | 2020-05-28T10:29:18.177875 | 2013-12-04T19:08:13 | 2013-12-04T19:08:13 | 13,782,091 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,434 | cpp | tfidfGenerator.cpp | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <cctype>
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <sstream>
#include <cctype>
using namespace std;
#define lowbit(x) ((x)&(-(x)))
#define sqr(x) ... |
58c9bd98c64f35934903480737a81071da5df7c9 | c6e78a4c638d56dc9e444615873bfd593cca3fbb | /Mine-Sweeper-game/Mine-Sweeper-game/Game2D.cpp | 2089198bcd79b2d192473c6ac49d2e5e8311ed98 | [] | no_license | Yeram522/OPP-Mine-Sweeper-Game | aefb68e4d0276efae71658432f073bd333ada737 | 5207778ac1f8c41b28cf88291b3806bcc835cb1e | refs/heads/main | 2023-08-19T14:39:49.291003 | 2021-10-07T10:52:50 | 2021-10-07T10:52:50 | 408,292,629 | 0 | 0 | null | 2021-10-04T15:29:27 | 2021-09-20T02:52:59 | C++ | UHC | C++ | false | false | 3,677 | cpp | Game2D.cpp | #include "Game2D.h"
Input* Input::Instance = nullptr;
bool Game2D::isLooping=true;
WindowPos Input:: ClickedPos;
//-------------
//
//
//
//맨 상단 윗줄의 UI를 업데이트 한다.
void Game2D::Update_UI(const int _count)
{
Borland::gotoxy(0, 0);
printf("▤▤▤▤▤▤▤ ★ : %d ▤▤▤▤▤▤▤\n", _count);
printf("----------------------------... |
f8538bfca7c08add9580f3806eb4886b85182a0c | c553210bcfb3a9e9c89b05ea8cb0b661b8c7682b | /AOAPC_II/ch2/2-4.cpp | dceb48ac6eb91819900337968d41adca3d077d2d | [
"MIT"
] | permissive | y-wan/OJ | e9f387c2453471a3a48223461fcab9c6883ad02a | 5dea140dbaaec98e440ad4b1c10fa5072f1ceea7 | refs/heads/master | 2021-01-20T00:16:11.535977 | 2019-11-16T09:56:46 | 2019-11-16T09:56:46 | 101,275,100 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 232 | cpp | 2-4.cpp | #include <stdio.h>
int main() {
int kase = 0, a, b;
double sum;
while (scanf("%d %d", &a, &b) == 2 && a) {
sum = 0;
for (int i = a; i <= b; i++)
sum += 1.0 / i / i;
printf("Case %d: %.5f\n", ++kase, sum);
}
return 0;
} |
5162637e44f2e9a34317b8a73579b13a145da572 | 7bc94825dacf6aa90c25260441277baecac1d7a2 | /be/src/olap/memory/delta_index.h | 00b6728d4448f8a0bb4f5b9dee5b88b552db94ed | [
"Apache-2.0",
"PSF-2.0",
"bzip2-1.0.6",
"BSD-3-Clause",
"Zlib",
"dtoa",
"MIT",
"GPL-2.0-only",
"LicenseRef-scancode-public-domain"
] | permissive | EmmyMiao87/incubator-doris | 2330b55b21d8478365b0feec2a45776b62433fc8 | af06adb57fbaf306534971bae8cf11162d714404 | refs/heads/master | 2022-09-30T16:22:13.074082 | 2020-12-02T02:13:13 | 2020-12-02T02:13:13 | 155,680,801 | 3 | 3 | Apache-2.0 | 2018-11-01T07:52:59 | 2018-11-01T07:52:59 | null | UTF-8 | C++ | false | false | 2,521 | h | delta_index.h | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
4492d8da3d86e6e1311e6af0c8b59c90c936b94c | e43e57d3a56b053b9429130e75a112ec094fe06d | /algorithms/38_atoi.cpp | 16f3098d343a7a7667f24599b4b9b012bde316f8 | [] | no_license | zebra6/polecat | 6b1ba43e51652115edab316bcda6562d941a10ec | 2ae019ddbcd613de0571961e40c1b5d83cfd638d | refs/heads/master | 2021-06-15T08:50:35.123977 | 2017-04-10T02:11:58 | 2017-04-10T02:11:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,002 | cpp | 38_atoi.cpp | /*
implementation of atoi
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
int is_num( char x );
int atoi1( char* str );
int atoi2( char* str );
/******************************************************************************
********************************************************... |
ab7c6cba1be6bf63155cf207dab537c61cd8e0ac | 2435868c60ecb911fd07cd11abfb0431cfe23d1f | /toolchain-extras/profile-clang-openat.cpp | 45c1acc5286998640983111a6b1025e4672d32ac | [] | no_license | jbeich/platform_system_extras | 5d4e47ae890bd067284daaf421cfe9d6b2367cb3 | 0f0aecc178b6f01223d14b06206a766b56aa55e1 | refs/heads/master | 2023-09-03T23:17:15.359272 | 2023-09-01T23:57:26 | 2023-09-01T23:57:26 | 37,218,268 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,607 | cpp | profile-clang-openat.cpp | /*
* Copyright (C) 2020 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... |
64abc60e6e41b9fdd71c2f6f02705cbeeabf260a | 75297fca92dfd49d958b83dd3103e762339c2366 | /tests/common.h | d9501155a503be4f454bc7e1e0a17ab54191c936 | [
"Apache-2.0"
] | permissive | Zondax/ledger-matrix | 3333af4a0799ca8780562b7a7243c9ed4de238ee | a5c4286caa618607d94029304eccf751bef00e56 | refs/heads/main | 2023-07-20T20:49:40.566415 | 2023-06-15T08:18:36 | 2023-07-11T18:01:14 | 186,560,818 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,911 | h | common.h | /*******************************************************************************
* (c) 2018 - 2023 Zondax AG
*
* 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.or... |
bcdaffcbe0e13d237ee1bf4a34158fe5f2977559 | 67b645a97d18d12841a1ac70aaf3f4c87b5d96d6 | /framework/code/framework/light/ManagerLight.cpp | a8f7588aa28d9c3f50b1b68c0bc576a9c4d7c5e2 | [] | no_license | H405/MSProject | 051d8ac7dbc8e6e0a39d9b6abdcceece102267d0 | 07cb61afc4ed5caa2c6ee2a928a3f5c6d34ccdc3 | refs/heads/master | 2021-01-10T17:44:19.281382 | 2016-01-19T23:54:43 | 2016-01-19T23:54:43 | 44,644,877 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 9,684 | cpp | ManagerLight.cpp | //==============================================================================
//
// File : ManagerLight.cpp
// Brief : ライト管理クラス
// Author : Taiga Shirakawa
// Date : 2015/11/14 sat : Taiga Shirakawa : create
//
//==============================================================================
//*****************... |
20e4e7c07e52fff2504c568ff2ed49e9739b0e1d | 4cd0cbfb4f5b54ad8530ce06e218edb4b9a151ba | /QuadPrecision/precision_functions_test.cpp | ce2631b89e945b0dde76b70ae9f91b4749644ec7 | [] | no_license | ariana-bruno/ECE4960-PA1 | f97329f291eed8f639f002857dc3210785c2ce64 | 75d4ab893f7391aa926cef59075e9616226f2eaf | refs/heads/master | 2021-09-07T16:15:24.193487 | 2018-02-25T23:17:26 | 2018-02-25T23:17:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,168 | cpp | precision_functions_test.cpp | //
// precision_functions_test.cpp
// QuadPrecision
//
//
#include "precision_functions.hpp"
//Testing the addition of two double-precision values and returns "true" if the results match the
//given expected results, and returns "false" otherwise
bool test_addition(long double a, long double b, long double expected... |
14501391dba5ebaf5cabd23157dbaaf0d28542be | 3159d77c2fc0828025bd0fb6f5d95c91fcbf4cd5 | /cpp/memory_guard/test/main.cpp | a4092d236f0749203cd2c0718fd37581fe43a2a2 | [] | no_license | jcmana/playground | 50384f4489a23c3a3bb6083bc619e95bd20b17ea | 8cf9b9402d38184f1767c4683c6954ae63d818b8 | refs/heads/master | 2023-09-01T11:26:07.231711 | 2023-08-21T16:30:16 | 2023-08-21T16:30:16 | 152,144,627 | 1 | 0 | null | 2023-08-21T16:21:29 | 2018-10-08T20:47:39 | C++ | UTF-8 | C++ | false | false | 956 | cpp | main.cpp | #include <iostream>
#include <thread>
#include <mutex>
#include "../memory_guard/memory.hpp"
class threadsafe_provider
{
public:
auto size()
{
return m_value.get();
}
void increment()
{
m_value.get() = m_value.get() + 1;
}
void reset()
{
m_value.get() = 0;
... |
be40f7a7cf0e8a836b39835556d7cf0aa2fb4d33 | 7d07d9669d9caaa77a2771ca3d43de10f8ccc794 | /lab6/lab65.cpp | ee420152d8e262a4c54a822d8f93a30b5187c653 | [] | no_license | divBaral/labsheet | ccecb1febd8d47ac9667b8ff1732d57e8d0a23fe | 95424f161e1857aba77e8eee21bd022ae2b4f2f9 | refs/heads/master | 2023-07-01T11:49:43.812344 | 2021-08-12T11:54:15 | 2021-08-12T11:54:15 | 376,901,081 | 0 | 1 | null | 2021-06-17T13:19:25 | 2021-06-14T17:14:15 | C | UTF-8 | C++ | false | false | 1,344 | cpp | lab65.cpp | /*Write a base class that asks the user to enter a complex number and make a derived class that adds the complex number of its own with the base. Finally, make a third class that is a friend of derived and calculate the difference of the base complex number and its own complex number.*/
#include <iostream>
using namesp... |
0c3e6df6a873dc58bf219d5f7edc73d91ae95be1 | 4252011d891fad3a15864d3d141968d8e0c72251 | /derivada.cpp | 17d2e6f75acd7a64a7dd4f56f86150123a7deba0 | [] | no_license | giovannirosario/dim0404_calcnumerico | 19361c1143d6d7bbb229f5a90ef1e0e643524b7f | 57be8b17aa4457639a44d4155028fd844443a3f8 | refs/heads/master | 2020-04-23T21:19:51.551340 | 2019-03-21T02:50:49 | 2019-03-21T02:50:49 | 171,467,232 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 259 | cpp | derivada.cpp | #include <iostream>
#include <math.h>
#include <iomanip>
#define PI 3.14159265
double f (double x) {
return x * cos(x);
}
int main () {
for (double x = 2; x >= 1; x -= 0.01)
{
std::cout << std::fixed << std::setprecision(20) << f(x) << std::endl;
}
} |
8e7e8f71c9379f6ea971dde09d95f6035442482e | ca157d9be997af55dfa07796e41b7b8f5797f6d8 | /Binary Search/Infinite.cpp | 36b896ebdd214ad6aa5cf780e1413551c9ec012c | [] | permissive | abhishek2x/Algorithms | b47ef0e673f73dbdbb6910d5f665b59855dee144 | 0429a0284bce95b563e70c294fe1acf60da177a7 | refs/heads/master | 2022-03-20T17:05:46.711267 | 2022-02-27T06:16:33 | 2022-02-27T06:16:33 | 240,521,395 | 0 | 2 | MIT | 2020-10-31T13:15:58 | 2020-02-14T14:03:41 | C++ | UTF-8 | C++ | false | false | 699 | cpp | Infinite.cpp | /*!
* Copyright (c) 2020 Abhishek Srivastava
*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
int binaryPlay(vector<int> a, int l, int h, int key){
while(l<=h){
int mid = l + (h-l)/2;
if(a[mid] == key){
return mid;
} else if(a[mid] < key){
l... |
0a8edb58521314e98b1f75442c6d077f9fa654b7 | 766b000c981a06ff263101161bbc63418bf609d0 | /include/model/encryption/encryption_rsa.hpp | 59428ceb50f22b9f9fdd06a31a6b494061f76c88 | [] | no_license | TransientTetra/safe_sender | 1b17903a7434f4ecd79dc7ef4e44ae9acca68f9a | 0ebd914875b8d2ad450c9612f5827ec871befbc0 | refs/heads/master | 2022-09-23T05:33:28.870995 | 2020-06-06T19:02:24 | 2020-06-06T19:02:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,106 | hpp | encryption_rsa.hpp | #ifndef SAFE_SENDER_ENCRYPTION_RSA_HPP
#define SAFE_SENDER_ENCRYPTION_RSA_HPP
#include "encryption.hpp"
#include <cryptopp/rsa.h>
#include <model/communication/communicator.hpp>
class EncryptionRSA : public Encryption
{
private:
CryptoPP::RSA::PrivateKey privateKey;
CryptoPP::RSA::PublicKey publicKey;
void saveK... |
3c0280505776d4caa316e46c3c446ff054cd6a43 | ea401c3e792a50364fe11f7cea0f35f99e8f4bde | /released_plugins/v3d_plugins/bigneuron_AmosSironi_PrzemyslawGlowacki_SQBTree_plugin/libs/boost_1_58_0/boost/detail/winapi/crypt.hpp | c9108f29bff7cc3a6e344b9bbebbf70bd644c879 | [
"MIT"
] | permissive | Vaa3D/vaa3d_tools | edb696aa3b9b59acaf83d6d27c6ae0a14bf75fe9 | e6974d5223ae70474efaa85e1253f5df1814fae8 | refs/heads/master | 2023-08-03T06:12:01.013752 | 2023-08-02T07:26:01 | 2023-08-02T07:26:01 | 50,527,925 | 107 | 86 | MIT | 2023-05-22T23:43:48 | 2016-01-27T18:19:17 | C++ | UTF-8 | C++ | false | false | 2,214 | hpp | crypt.hpp | // crypt.hpp --------------------------------------------------------------//
// Copyright 2014 Antony Polukhin
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
#ifndef BOOST_DETAIL_WINAPI_CRYPT_HPP
#define BOOST_DETAIL_WINAPI_CRYPT_HPP
#include <boost/... |
b809e37e4eac05c8b09575bb118edd3f82a2509b | 556861de6b08e4f26ba66d9a2b0801ae585f51f8 | /ListNode.hpp | 030802dc24faffcd415b69e7c0c9b820ce42bbbd | [] | no_license | darklam/syspro-hw2 | d2345f4d369637226ec1a260dd5724c0d641f7e1 | 9122835c499ca74e3263aa13cf300c63dc8f267b | refs/heads/master | 2020-05-03T00:04:37.612876 | 2019-04-09T21:35:38 | 2019-04-09T21:35:38 | 178,299,417 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 581 | hpp | ListNode.hpp | #ifndef LIST_NODE_H
#define LIST_NODE_H
#include <cstdlib>
template<class T>
class ListNode {
private:
T value;
ListNode<T>* next;
public:
ListNode<T>* getNext() {
return this->next;
}
void addNext(T value) {
this->next = new ListNode<T>(value);
}
void setNext(ListNode<T... |
19ad42396b1b4ae7ef2c875f973e8af8eee8c121 | 1eaf26e8cfc8a8eabe2e372f2e6c6a190cc8e85d | /lz/compiler/grammar_design.h | 7e8cd6605bbefb52512d167961bae3be8c2bf1b3 | [] | no_license | liuzhuocpp/algorithm | b31931fe034b24d9aeb8e119198341d91c70cce1 | 151d9ea55c214f6fff3c40629e48a1baae9c9ad7 | refs/heads/master | 2020-12-18T22:14:09.453723 | 2017-06-21T07:36:04 | 2017-06-21T07:36:04 | 28,743,281 | 14 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,524 | h | grammar_design.h | /*
* grammar_design.h
*
* Created on: 2017年2月28日
* Author: LZ
*/
#ifndef LZ_COMPILER_GRAMMAR_DESIGN_H_
#define LZ_COMPILER_GRAMMAR_DESIGN_H_
/*
*
包含了一些对文法重新设计、改造的算法,包括 计算first集、follow集,消除左递归,提取左公共因子
*/
#include <lz/compiler/grammar.h>
namespace lz {
using Set = std::set<SymbolDescriptor>;
template... |
c6602a92e2e2bd976ec657a1cdb1adadb57b2bb3 | 4e8635a0c3f02237e80173c4b9a8b8b2f8b10570 | /Assignment-4/POPServerSession.hxx | 4656b30c182391147f1a3df756a1c2d8be9c5720 | [] | no_license | ravibansal/Networks-Lab-Assignments | 04c06ef8e65955ce7f183adb9290a82e18997efc | b2ed9aba9e99aadd2f67aee244a615097f799811 | refs/heads/master | 2020-06-14T06:35:17.589350 | 2016-11-30T20:20:54 | 2016-11-30T20:20:54 | 75,222,486 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,221 | hxx | POPServerSession.hxx | #ifndef __POPSERVERSESSIONHXX__
#define __POPSERVERSESIONHXX__
#include <string>
#include <iostream>
#include <vector>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <unistd.h>
#include <sys/socket.h> // For the socket (), bind () etc. functions.
#include <netinet/in.h> // For IPv4 data struct..
#in... |
bc40b8d24322cfeb7de80e60ad23a6e4db2b790c | 182adfdfa907d3efc0395e293dcdbc46898d88eb | /Temp/il2cppOutput/il2cppOutput/AssemblyU2DCSharpU2Dfirstpass_AN_DeviceCodeResult3529581718.h | e0b4e4ef8378cd8f05d8c36d4de65c7e085578f1 | [] | no_license | Launchable/1.1.3New | d1962418cd7fa184300c62ebfd377630a39bd785 | 625374fae90e8339cec0007d4d7202328bfa03d9 | refs/heads/master | 2021-01-19T07:40:29.930695 | 2017-09-15T17:20:45 | 2017-09-15T17:20:45 | 100,642,705 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,046 | h | AssemblyU2DCSharpU2Dfirstpass_AN_DeviceCodeResult3529581718.h | #pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include "AssemblyU2DCSharpU2Dfirstpass_SA_Common_Models_Res4287219743.h"
// System.String
struct String_t;
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnosti... |
ddfb68652b7a694bbf91500615594cee8e882636 | c9ea4b7d00be3092b91bf157026117bf2c7a77d7 | /比赛/校内/NOIP模拟试题/201811080800(40)[NOILinux]/TEST/2.cpp | 29fd23a727302d592c425d1d18c9770fd33e24e9 | [] | no_license | Jerry-Terrasse/Programming | dc39db2259c028d45c58304e8f29b2116eef4bfd | a59a23259d34a14e38a7d4c8c4d6c2b87a91574c | refs/heads/master | 2020-04-12T08:31:48.429416 | 2019-04-20T00:32:55 | 2019-04-20T00:32:55 | 162,387,499 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 862 | cpp | 2.cpp | #include<iostream>
#include<cstdio>
#include<set>
using namespace std;
#define ri register int
#define rc register char
#define N 100100
set<int> S[N];
int n,m,d,g;
int a[N];
int ans[N];
inline int read(){
ri res=0;
rc c=getchar();
for(;c<'0' || c>'9';c=getchar());
for(;c>='0' && c<='9';c=getchar())
... |
800fa7b8520765d6d89d1ae7b53ef5649e580596 | d30bf8d4b67f903023756bf43bab8801653af1e8 | /include/win/windows_console_terminal.hpp | e15474471ef2d1d732002d9e4ad19ea7b8356b49 | [] | no_license | incoder1/cppcurses | 7c9deaef71b3f26e502d9c928c2817a0f33ca5ae | 0faa02c33e050a080dd748cf25e28f98eb540ffd | refs/heads/master | 2016-08-10T21:26:24.065610 | 2016-04-08T18:44:17 | 2016-04-08T18:44:54 | 50,059,008 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,593 | hpp | windows_console_terminal.hpp | #ifndef __WINDOWS_CONSOLE_TERMINAL_HPP_INCLUDED__
#define __WINDOWS_CONSOLE_TERMINAL_HPP_INCLUDED__
#if !defined(UNICODE) && !defined(_UNICODE)
# error Windows Implementation requares Unicode
#endif // unicode check
#include <assert.h>
#include <cstdlib>
#include <windows.h>
#include "../basic_terminal_spec.hpp"
na... |
2ca4c0a2f13ac794d41e14c3ded60a719211bbf5 | 1e14ecf45543da3b02187d1414e613ac8f2ace20 | /array/smallest_subarray_sum_greaterthenx.cpp | b0951fba23a4d40535a226a581c945681edca04a | [] | no_license | nimit1jain/DSA-Questions | 7bdb32f7745858bba0d42d3cc9902236a68d802d | 748365d62c7c0032bc6f608ecbe4d23c5568ea67 | refs/heads/master | 2023-07-27T07:28:57.131907 | 2021-09-06T11:05:00 | 2021-09-06T11:05:00 | 384,985,345 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 489 | cpp | smallest_subarray_sum_greaterthenx.cpp | #include<iostream>
using namespace std;
int main()
{
int n;
cin>>n;
int arr[n];
for(int i=0;i<n;i++)
{
cin>>arr[i];
}
cout<<"enter the value of X ";
int x;
cin>>x;
int i=0;int j=0;
int mind=INT_MAX;
int sum=0;
while(i<=j&&j<n)
{
while(sum<=x&&j<n)... |
4f2a5999295d600c76606fb9f3d3533784cc4c8e | 5e26f1899b7e9118e732209774626d8a3972dfd1 | /Driver.h | e5e39187e7ea8bfa0e1da29d9b19ef1368e3525e | [] | no_license | RDamman/SpeakerWorkshop | b33313c1fa51eb342922ecb4c837eb5a24790bd8 | 87a38d04197a07a9a7878b3f60d5e0706782163c | refs/heads/master | 2021-01-20T21:35:09.932108 | 2019-01-14T11:47:23 | 2019-01-14T11:47:23 | 101,771,745 | 15 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 4,548 | h | Driver.h | // Named.h : Named Components Class
//
/////////////////////////////////////////////////////////////////////////////
#ifndef CDRIVERH
#include "Xform.h"
typedef enum tagenResponse
{
rsResponse = 0, // response curve
rsImpedance = 1, // impedance
rsFreeAir = 2, // impedance in free air
rsSealed = 3, /... |
6b2919b758140ebfa1c665cd328fee8268188311 | 231b764548636ad7b05a1d4db85ce14e7a23dd87 | /AT-Task3-OpenGL/VoxelLevelLoader.h | f8ec8ca737413d6c1d924d65176fb830a60a654f | [
"MIT"
] | permissive | gualtyphone/AT-Task3-OpenGL | 7cf843b39573d8c83b4801935dd873be3a65f5ac | b14461f71b1766882082cd1481d21bd00f49cdb5 | refs/heads/master | 2021-04-29T17:41:28.810667 | 2018-04-10T00:09:58 | 2018-04-10T00:09:58 | 121,670,597 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,795 | h | VoxelLevelLoader.h | #pragma once
#include "GMath.h"
#include <vector>
#include "VoxelData.h"
#include "VoxelRenderer.h"
#include "Random.h"
#include "Transform.h"
#include "GameObject.h"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include "AntTweakBar\AntTweakBar.h"
#include "LevelExpander.h"
using namespace GMath;
class Pa... |
8a7c86293a5326d31416d6ee667432b39e371993 | e154a67d426c97c328b0c97882572fbfc7d02010 | /SpiralMatrix.cpp | 3dd4925a0dda90244e2c58927742fe87ee6a9217 | [] | no_license | TopHK/LeetCode-Mine | 261a77aa850317d71d4763e5fdd095bc8824ca44 | aeae6012ac31440a1172019cbd2cf648cf68a9d5 | refs/heads/master | 2021-03-12T21:50:31.944604 | 2015-08-19T03:14:54 | 2015-08-19T03:14:54 | 41,009,431 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,486 | cpp | SpiralMatrix.cpp | /*************************************************************************
> File Name: SpiralMatrix.cpp
> Author:
> Mail:
> Created Time: 2015年07月04日 星期六 16时10分36秒
************************************************************************/
#include<iostream>
#include<vector>
using namespace std;
void spiralOrde... |
455c2c1dba8815f1a17106f55542270264a45e22 | f36a7c61f8334c3395eee541aa3b76a2e82549a6 | /image/format/JPEGimage.h | 8e39e450846ee850591b72908955845025eeba6c | [] | no_license | jeinne/ImageProcessing | 8004658942eb23a2adf2000255e1c2ecd707a6c4 | 9d7f698d248676f9d5d775e2633db80a308a2a0c | refs/heads/master | 2023-03-15T13:17:16.439492 | 2017-11-09T06:57:21 | 2017-11-09T06:57:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 725 | h | JPEGimage.h | #ifndef _JPEG_IMAGE_H_
#define _JPEG_IMAGE_H_
#include "../image.h"
#include "../imageRaster.h"
#include <stdio.h>
#include "jpeglib.h"
namespace IMAGE {
class JPEGimage : public Image {
private:
JPEGimage( const JPEGimage& );
JPEGimage& operator= ( const JPEGimage& ) { return *this; }
FILE* imageFile_m;
#ifd... |
bfca34cf0d6197a02814679344a63679fe9562a7 | f98553794c8deb0ffafbd89fed4fd460f26e9245 | /textBack.cpp | 648c2e7a215b2c477bd5e453521e5bf26185b887 | [] | no_license | Laowpetch/Programming_Fundamental | 4acee8c7383f4c9f5985d11871b1d1301c5a8a19 | 2919f68efc92ab42283e2045688e21c3c8303539 | refs/heads/master | 2023-06-21T11:25:31.444990 | 2021-08-11T16:20:55 | 2021-08-11T16:20:55 | 395,050,320 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 83 | cpp | textBack.cpp | #include<stdio.h>
#include<conio.h>
main () {
printf("text back to me plsss.");
}
|
8c3ce686c7f0d630dbceb1f24b8df57b25f3bf04 | 8fe9bc8be43d76db98c629bdb305a4e965e9c074 | /Software_Engineering_Robust_Principle_Axis_Detection/Mesh/NeighborMesh.h | e6e4c479d2900273015236b7d6db9bdb77a906dc | [] | no_license | ChaKon/Software_Engineering_Robust_Principle_Axis_Detection | 62b895cee3dd7f6069f7b473d5e75bc42f55aa5d | 7fd6d17a30fc73b86fddb896d00c9bc43fcf6029 | refs/heads/master | 2021-03-12T23:48:57.180437 | 2014-07-29T23:27:21 | 2014-07-29T23:27:21 | 22,398,847 | 1 | 0 | null | null | null | null | MacCentralEurope | C++ | false | false | 3,307 | h | NeighborMesh.h | /***************************************************************************
Mesh.h
-------------------
update : 2002-10-11
copyright : (C) 2002 by MichaŽl ROY
email : michaelroy@users.sourceforge.n... |
6eab49f6f4298989e74fb2100cae3174014eda50 | fcc136c9b903c33027da3c3e1604ec9325272bb2 | /367. Valid Perfect Square.cpp | 1f93c03b7008f30f5849f2b7fd0ba7c781361457 | [] | no_license | autumn192837465/LeetCode | 4c67105174f942ce861c99637e059abde5378f0e | d7c2ddb955adc826d01175a31747a12163f8d41d | refs/heads/master | 2021-07-20T06:59:39.267313 | 2020-05-26T05:06:06 | 2020-05-26T05:06:06 | 174,077,418 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 806 | cpp | 367. Valid Perfect Square.cpp | /*
Given a positive integer num, write a function which returns True if num is a perfect square else False.
Note: Do not use any built-in library function such as sqrt.
Example 1:
Input: 16
Output: true
Example 2:
Input: 14
Output: false
*/
class Solution {
public:
bool isPerfectSquare(int num) {
... |
6e849340c0ac709c1f4697170cc4646317ebe809 | d6ccef84f1aad545243bf8519a725ea61789a5de | /Computer/calcComputer.cpp | 168ab4d4b491b4abfe03c0095baddf02a2d5b9bd | [] | no_license | devMal1/Calcpp | f12aa4c5c94344cfd4f3198e24331bfd224dd630 | 89fd966699b1fa33508502e1b9d835e05963e86e | refs/heads/master | 2021-01-22T21:32:37.540810 | 2017-05-05T21:28:26 | 2017-05-05T21:28:26 | 85,440,093 | 0 | 0 | null | 2017-05-05T21:28:26 | 2017-03-19T00:08:49 | C++ | UTF-8 | C++ | false | false | 1,283 | cpp | calcComputer.cpp | #include "calcComputer.h"
CalcComputer::CalcComputer() {}
CalcComputer::~CalcComputer() {}
int add(int a, int b) {
return (a + b);
}
int sub(int a, int b) {
return (a - b);
}
int mult(int a, int b) {
return (a * b);
}
int divi(int a, int b) {
if (b == 0) { throw CalcComputer::DIV_BY_ZERO; }
retur... |
396118505960dc2151dfc1aadf7522c1e0f25f3a | bf32aa7664731320fd3ca9422623237a07112e72 | /spoj/hackerrank/pir_3/2.cpp | 14eeff50134e0203a7004d18ea5b39fd5f641c8a | [] | no_license | rohit-100/cppFiles | 69c2b2030f8c573d80c28001cc8e220e4001b601 | 1912b7d90600a92b18ea59f9fd44edd20969a67f | refs/heads/master | 2020-12-12T12:07:55.345431 | 2020-07-24T14:26:10 | 2020-07-24T14:26:10 | 234,124,535 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,085 | cpp | 2.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int n,k;
cin>>n>>k;
long long arr[n+1][n+1];
memset(arr,0,sizeof(arr));
for(int i=1;i<=n;i++){
for(int j=1;j<=n;j++){
long long x;cin>>x;
x += arr[i][j-1];
x += arr[i-1][j];
x... |
5a0a28be4d8b045a90193fb745c40eca055a0ceb | e84a9d918231c9d4470d1aa61aefffd44f827878 | /src/Kiwi/Kiwi/HartreeFock/SimultaneousDiis/SimultaneousDiis.cpp | 7ec9debbdba08ebb1d853c14b7f88cb612a3dcba | [
"BSD-3-Clause"
] | permissive | qcscine/kiwi | 2f28b5e055e1a246555a9808acd18d3fb50ef5b2 | 0879aeeb5dea2454819b2599780d28393eacbe8b | refs/heads/master | 2023-04-10T08:04:56.038549 | 2023-01-25T18:36:11 | 2023-01-25T18:36:11 | 593,176,904 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,551 | cpp | SimultaneousDiis.cpp | /**
* @file
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* See LICENSE.txt for details.
*/
#include <Kiwi/HartreeFock/SimultaneousDiis/SimultaneousDiis.h>
#include <Eigen/QR>
#include <algorithm... |
7fb87db6c4aad6ab494097ae7248d4de6c00eb00 | 1408c9b234d8d94f182c11c53f92dd0c8f80c16d | /Viewer/libViewer/src/UserMessage.hpp | b0f80e5c914eb7ffa15a34d2031c8569dd6771c1 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"BSL-1.0"
] | permissive | XiaoLinhong/ecflow | 8f324250d0a5308b3e39f3dd5bd7a297a2e49c90 | 57ba5b09a35b064026a10638a10b31d660587a75 | refs/heads/master | 2023-06-19T04:07:54.150363 | 2021-05-19T14:58:16 | 2021-05-19T14:58:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,168 | hpp | UserMessage.hpp | //============================================================================
// Copyright 2009-2020 ECMWF.
// This software is licensed under the terms of the Apache Licence version 2.0
// which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
// In applying this licence, ECMWF does not waive the privil... |
ee63dc307e7ba9c3043e7c57de6cdf6a1e5076e5 | c5b7a81da80a90f30346f7f82f958aba1f71debd | /cpp_practise/matrix_vector_calc/main.cpp | 5b75b710f4d4ecd54a278db1b3768c3faa530994 | [] | no_license | atifkarim/problem_solving | f765be37970f4d55376a499daf0fcf6f596396bc | 141c96364524aeb40fff4e1ec75877f1ff8c416a | refs/heads/master | 2023-04-27T20:03:03.917053 | 2023-04-19T22:43:06 | 2023-04-19T22:43:06 | 201,545,905 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,484 | cpp | main.cpp | /*
#include <cstdlib>
#include <math.h>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int a[3][3]={{ 2,4,3},{1,5,7},{0,2,3}};
int b[]={2,5,6};
int c[3];
for (int i=0;i<3;i++){
c[i]=0;
}
for (int i=0;i<3;i++){
for (int j=0;j<3;j++){
... |
dceb8092b043a753b25e6db1da60abcfbeb089f7 | ece3d852c9c23229081872b61a2f617bf0576b7e | /sarturis-curses/modules/misc-curses/bardrawer.cpp | 1b5ead8fef7efc37511ca50f8d89461905359630 | [] | no_license | meisenmann77/sarturis | 14ee6e7462ce84aa5dfc78b49190fb993e6051ec | bf8bcee735859667a1bdd1f67f2fa78ca938573b | refs/heads/master | 2021-01-19T14:56:56.033733 | 2020-11-30T16:57:38 | 2020-11-30T16:57:38 | 37,017,592 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,683 | cpp | bardrawer.cpp | /*******************************************************************************
*
* Sarturis is (C) Copyright 2006-2011 by Dresden University of Technology
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by th... |
a91dfdf54b356ba734647fd1bda2354d8245196d | c0f7f59c1f4b6bc378dfc7606304338de2b3346d | /labs/rec05/rec05/rec05/rec05.cpp | 2449e64c58541ca17091ac900d9b7a0b1344d6e8 | [] | no_license | VIJAYKALLEM/NYU_CS2124 | 39005fbee51b607af402b3cf50fc747d2d7be022 | a727316668b98d718630a921dab569d236d75bfa | refs/heads/master | 2022-03-22T09:14:07.442890 | 2019-12-16T19:09:19 | 2019-12-16T19:09:19 | 293,368,189 | 0 | 1 | null | 2020-09-06T21:57:58 | 2020-09-06T21:57:58 | null | UTF-8 | C++ | false | false | 7,409 | cpp | rec05.cpp | /*
Simran Soin (sks684)
4 October 2019
Recitation 5: Design interacting classes using
Association
Composition
Encapsulation and Data Hiding
Delegation
Copy control: destructor and copy constructor.
Output operator
Modeling the NYU Tandon CS lab Administration
*/
#... |
792ef2c4276be6361f434105caffd794d45e8024 | c62e924a6ed420e3562bc5cac80d48d58bd51807 | /Arrays/TapeEquilibrium.cpp | 52a6bb09733a42d5609214affaf1c5d53cf67652 | [] | no_license | cyf1981/algoPrac | a0ecc6bbb748884dc889da5264485aa175dc8fd7 | 33992cbeba9a09b9887a8d07008035b8832544e7 | refs/heads/master | 2022-12-22T06:45:15.133172 | 2020-09-29T12:59:41 | 2020-09-29T12:59:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 556 | cpp | TapeEquilibrium.cpp | // you can use includes, for example:
// #include <algorithm>
#include <math.h>
#include <numeric>
// you can write to stdout for debugging purposes, e.g.
// cout << "this is a debug message" << endl;
int solution(vector<int> &A) {
int left = A[0];
int right = accumulate(A.begin()+1, A.end(), 0);
int minD... |
bfa5ed46b05626880ff8f32b31a45904bd6134b0 | 07dde1571c3c7a3b102445f0f2881b5d8a5f04e1 | /ConcreteStructureDesign/AxiallyCompression/AxiallyCompression/AxiallyCompressionDlg.h | 8279949723a5fea43e741205240ea85a33170b29 | [] | no_license | mc-liyanliang/Structural-Design-Tool | d8ee124cf4bce769830759ef89c32189b716664a | d0c988767893694232a28760d555cdcbf8ffe419 | refs/heads/master | 2022-11-27T19:43:47.395376 | 2020-08-05T14:30:33 | 2020-08-05T14:31:32 | 284,239,977 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,430 | h | AxiallyCompressionDlg.h |
// AxiallyCompressionDlg.h : 头文件
//
#pragma once
#include "afxwin.h"
#include "Tool.h"
class CAxialCompressionData;
// CAxiallyCompressionDlg 对话框
class CAxiallyCompressionDlg : public CDialogEx
{
// 构造
public:
CAxiallyCompressionDlg(CWnd* pParent = NULL); // 标准构造函数
// 对话框数据
enum { IDD = IDD_AXIALLYCOMPRESSION_DIAL... |
dd7178e7594f7fbbcb6adcbda885802465045b77 | a7491f10bd804de1b2633497901c33dd00495d7b | /CMD2Mesh.cpp | 32f174a6a416dca1ab19cb946163d63d6e04cfc5 | [] | no_license | zikr99/3D-visualization | bfa646440a1100f7ae7a7d2f7e857cdb44910f5e | 4f84500fb688f023c4ffd878c4933d4d1ca3f019 | refs/heads/master | 2020-12-11T00:48:36.948607 | 2020-04-26T12:45:43 | 2020-04-26T12:45:43 | 233,757,577 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,763 | cpp | CMD2Mesh.cpp | #include "CMD2Mesh.h"
#include "CSceneManager.h"
#include <stdio.h>
CMD2Mesh::CMD2Mesh(CSceneManager *mngr): CMesh(mngr), NumFrames(0), FrameSize(0),
NumVertices(0), NumSTs(0), NumTriangles(0), Vertices(NULL), STs(NULL),
Triangles(NULL)
{
m_meshtype = EMST_MD2;
}
... |
8c3bf62a2260f58ac2bac30e14251c28181c3160 | 487d24ea70bf9aac666b75046d3c0d39ffdfc873 | /challenge6.cpp | c64f30efaa016621a4f6ac66adaacb35d596c5cf | [] | no_license | mitchellharvey/cryptopals | 03252a9380433592a5b70b72277e01de98fe6516 | 26b31cd5147993b44a611ad5e8c817ad85228622 | refs/heads/master | 2020-04-17T09:32:11.730613 | 2019-02-14T02:52:43 | 2019-02-14T02:52:43 | 67,108,415 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,337 | cpp | challenge6.cpp | #include "Utils.h"
#include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
int main(int argc, char** argv) {
if (argc < 2) {
std::cout << "Please specify the challenege6 file!" << std::endl;
return 1;
}
std::ifstream ifile(argv[1], std::ios_base::in);
if (!ifile... |
3cd34df392301f6120b9487e92282426a409629c | 8403304f3a79159e0a5e4cb03200d950f5359dc7 | /Day-13/50_power(x,n).cpp | cb3604a8e24dc18500558947845ed93dbd271049 | [] | no_license | pratham-0094/100DaysOfCode | c38be5bbf9332b91667e1730d87389de9f4f1879 | 19d35726e5418d77a0af410594c986c7abd2eea2 | refs/heads/main | 2023-09-05T15:55:07.564770 | 2021-11-19T17:57:36 | 2021-11-19T17:57:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 636 | cpp | 50_power(x,n).cpp | // https://leetcode.com/problems/powx-n/
#include <iostream>
using namespace std;
class Solution {
public:
double myPow(double x, int n) {
double ans=1.0;
long long num=n;
if(num<0){
num=-1*num;
}
while(num){
if(num%2){
ans=ans*x;
num=n... |
f098c8d4456454d770b4bd4f9ffc030f6ff05b18 | c7532c99dfe6fd27c6a12fdc9a98ce1fe67bc93d | /GameProject/Source/Game/Input/GameInput.cpp | 06e1f851ebb2f88243aa9845dbd871d13ff6f066 | [
"MIT"
] | permissive | lqq1985/OpenGL4.5-GameEngine | a7d3dcf408b06b59f5838290ad3a72ec51bfda1d | 79468b7807677372bbc0450ea49b48ad66bbbd41 | refs/heads/master | 2020-08-17T22:57:34.064047 | 2019-03-05T20:36:50 | 2019-03-05T20:36:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 141 | cpp | GameInput.cpp | #include <pch.h>
#include "GameInput.h"
#include <include/gl.h>
#include <Game/Game.h>
GameInput::GameInput(Game *game)
: game(game)
{
} |
25f6f62834b45dd13c98ad1ce84574f352c55db7 | 6d4726500b5b990589ed6a1ad4da0b5420ad59ca | /Assignment/chapter1/return_index_of_x_recursion.cpp | e2885fff12b0474862f0132a04d07ed146a7a141 | [] | no_license | Anandp332/Competative-Programming | d4423a85d79cea58981a599f412d277531fea96b | 6b4d64fe11e2517cbcb6f9fed9c325dec62fa22f | refs/heads/master | 2020-08-28T22:19:32.771390 | 2020-05-06T13:55:01 | 2020-05-06T13:55:01 | 217,834,756 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 634 | cpp | return_index_of_x_recursion.cpp | #include<iostream>
//#include "Solution.h"
using namespace std;
int myindex(int input[],int size,int x,int index){
if(size==0){
return -1;
}
else if(input[0]==x){
return index;
}
else{
index++;
return myindex(input+1,size-1,x,index);
}
}
int firstIndex(int input... |
7d7109ca492e03ff658e20ede62483282d634e5f | d9882df02f8e19fabfd9c7cadfea8e6b95a94387 | /src/utilities/setup.cpp | fee0ff12d149507b20698504e5589c0afdf53872 | [] | no_license | spenser-roark/CTSDLPort | 207b413fa69d5aeec2f6b82e6570df400e944afe | 364b773da2722b7843adcd305c2887f43a723c7a | refs/heads/master | 2020-05-20T18:42:49.252900 | 2017-12-23T13:46:57 | 2017-12-23T13:46:57 | 84,505,996 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 124 | cpp | setup.cpp | #include <iostream>
using namespace std;
#include "setup.h"
void setupPlayableCharacter(PlayableCharacter& character) {
} |
e642a8174d9f1cf6456c879831f972af93c1d162 | 7cfcc43d1eb330f56a75b9ecc76f1aa975f9a225 | /algorithmStudy/2631_lineUp.cpp | 982dfbb54a1f724394e4a16b8192eb1942ae05d2 | [] | no_license | enan501/Algorithm-study | e25f35ff6fedb7e46b154326e4145ce0948f4f5d | f8b6380b530ee08404e01b050543c81f2958169e | refs/heads/master | 2021-07-25T02:08:11.805891 | 2021-07-02T05:35:27 | 2021-07-02T05:35:27 | 162,815,602 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 382 | cpp | 2631_lineUp.cpp | #include <stdio.h>
int main(void) {
int n = 0, h=1;
int* arr = NULL, *dp = NULL;
scanf("%d", &n);
arr = new int[n];
dp = new int[n];
for(int i=0;i<n;i++)
scanf("%d", &arr[i]);
for(int i=0;i<n;i++){
dp[i] = 1;
for (int j = 0; j < i; j++) {
if (arr[j]<arr[i] && (dp[j]+1)>dp[i])
dp[i] = dp[j] + 1;
}... |
dd1bcafefd26ce3b6aa45f2ad9388859b54a7ff7 | 91ff1a932edcfd1d2c67c6a569daa30c2bb3c0d7 | /inc/devices/can/canair.h | 83266cab2d3e0ec45511e36d688dc4fa015c47d8 | [] | no_license | spiralray/stm32f4discovery_dualshock3 | 5f08cdbd055795e951ddf3e55042629286a5dd2b | 30fe7f5474afa14e956395e2f50e6a7c5ae35fc6 | refs/heads/master | 2020-04-05T23:06:43.276315 | 2015-08-30T17:13:49 | 2015-08-30T17:13:49 | 41,635,785 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 951 | h | canair.h | /*
* led.h
*
* Created on: 2014/10/05
* Author: spiralray
*/
#pragma once
#include "config/stm32plus.h"
#include "hardware/canroot.h"
namespace stm32plus{
class CanAir {
private:
CanTxMsg TxMessage;
CanRoot *can;
public:
CanAir(CanRoot *_can){
can = _can;
TxMessage.StdId = ... |
87bf5943b2579b95fac99f204468aa4d126f7aac | d1524d8828f573bd53a3be78a9451d1789c9dca7 | /NetEventService/Channel.cpp | 5bfb5851595f2a9c780e4676a8162485a344abb8 | [] | no_license | liunatural/NetEventServiceSolution | 750b2aa1f482b07f4de20e1280eaa46446baf3fa | 33e5dc785bcf6db21328d981a09d27d3502490ed | refs/heads/master | 2020-03-30T12:38:19.391476 | 2019-08-02T06:07:12 | 2019-08-02T06:07:12 | 151,232,745 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,953 | cpp | Channel.cpp | //**************************************************************************
// File......... : Channel.cpp
// Project...... : VR
// Author....... : Liu Zhi
// Date......... : 2018-09
// Description.. : Implementation file for class Chan... |
e8b9ffa5b8a4b931259a82de78504b24570bdb10 | 6ceb8c2564498a0c2b5071408380999b13115432 | /session_manager.cpp | 429fba0f00acbcd7aee1ecbe1c6fc68d60421f5b | [] | no_license | mfzhang/TradeRunner | 7e210f03bc013ced45ec5eabe992ab6be2fdef28 | d1cfa45ae0dbbbb3b72a7dc1747586a2da8fb28a | refs/heads/master | 2022-12-05T03:41:50.484988 | 2020-08-20T13:12:47 | 2020-08-20T13:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 256 | cpp | session_manager.cpp | #include "session_manager.h"
session_manager::session_manager(boost::asio::io_service& io_srv, int expires_time)
:m_io_srv(io_srv),
m_check_tick(io_srv),
m_expires_time(expires_time),
m_next_session(0)
{
}
session_manager::~session_manager()
{
}
|
7de8efb9ab1badb7e77c3a7484b3cdb292153770 | 056f44f4693912c9436bce21f0eb1ad02d68b86f | /src/ofApp.h | 2c73b2fe67705dbe04a27fdfffabe6e62882583a | [] | no_license | DHaylock/WatershedAlgorithm | d67c294782637d5a4feeb738ce57572a5ecf714d | 1d92d8f03c61cd3b1a2cb7b67ee14d755e8829d8 | refs/heads/master | 2016-08-13T01:20:33.053838 | 2016-02-22T20:12:20 | 2016-02-22T20:12:20 | 52,302,152 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,265 | h | ofApp.h | #pragma once
#include "ofMain.h"
#include "ofxDatGui.h"
#include "Detection_Abstraction.h"
class ofApp : public ofBaseApp{
public:
void setup();
void update();
void draw();
void keyPressed(int key);
void keyReleased(int key);
void mouseMoved(int x, int y );
void mouseDragged(int x, int y, int button)... |
f64e15fe34a90dea29fc74bcad5d0536eef4d999 | a848bf6b9e6c7284e8e480f7c925787b13be743e | /Fade LEDs/PR02_Fade_LEDs/PR02_Fade_LEDs.ino | 861eed6afb5660c3a10db968c94aedd5157e6d88 | [] | no_license | mouradelfilali2017/Fade_LEDs | eea3d5e7ef30a823f2e24fea955d2f215dbd3ab6 | aefde04b8999cb93febf4dda8a734e394714f445 | refs/heads/master | 2020-03-18T03:10:53.401258 | 2018-05-21T06:17:33 | 2018-05-21T06:17:33 | 134,226,570 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,443 | ino | PR02_Fade_LEDs.ino | /**********************************************************************************
** **
** Fade LEDs **
** ... |
77118c2f7bf0987762e8205b5a3d81ae64140ae1 | c8bc887dce587649a366772bbd78f6e630c395bf | /frontpropagate.cc | b67ac149d23c25a18dd75fd4399cd482f3f71082 | [] | no_license | DuyHuynhLe/StageAtEpitaCode | b53dbf4f74bf4145f7d2558d370403f56dcbdde9 | ad5c0d249b364ffdad4bcb7e7669870fb834d2ba | refs/heads/master | 2021-01-21T04:54:18.653478 | 2016-05-24T13:02:48 | 2016-05-24T13:02:48 | 39,623,484 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,486 | cc | frontpropagate.cc | /*
*Big change: normalisation the laplacian before continue
*Big change: Laplacian is float
*/
/*
* CODE1 Displace the laplacian of different value
*
*
*/
#include <iostream>
#include <mln/core/image/image2d.hh>
#include <mln/debug/println.hh>
#include <mln/io/pgm/load.hh>
#include <tos_src/immerse.hh>
#inc... |
c8e6e2226bf4cd36ff63e2df12ee997993b2dda8 | 12322278b3c0c26d91dbbd585d314c63e3ffedb4 | /test/graph/bipartite_test.cpp | 2879a4d65611a25d6a44f3a62141d5a500435089 | [
"BSL-1.0"
] | permissive | dieram3/competitive-programming-library | 3fe18b25ef0517230882f5b3dd100602966b1b00 | 29bd0204d00c08e56d1f7fedc5c6c3603c4e5121 | refs/heads/master | 2021-08-18T08:09:41.456258 | 2020-09-06T04:17:55 | 2020-09-06T04:19:04 | 34,582,884 | 27 | 5 | null | 2016-12-06T04:24:09 | 2015-04-25T19:30:09 | C++ | UTF-8 | C++ | false | false | 2,452 | cpp | bipartite_test.cpp | // Copyright Diego Ramirez 2015
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <cpl/graph/bipartite.hpp>
#include <gtest/gtest.h>
#include <cpl/graph/undirected_graph.hpp> // undi... |
b4133d1b4168f4b33cc58bdea50dad7597ea9fbf | 2d8f99055f2631f562153ff6b7b40101f5484ca8 | /rotatearray efficiet.cpp | c080e480b7fdbc64d0767201f243f85c3f23d9e4 | [] | no_license | priya139A/geeks-for-geeks-codes | 36b25761c74496b3efd6b041ead8b15a21881714 | 0c95df3cb8a6fe47abf8fd075ea5584b4a3914c0 | refs/heads/main | 2023-08-01T03:30:22.295014 | 2021-09-17T09:20:27 | 2021-09-17T09:20:27 | 373,760,560 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 341 | cpp | rotatearray efficiet.cpp | void rotate(vector<int>& nums, int k) {
int n=nums.size();
k=k%n;
reverse(nums.begin(),nums.end());
for(int i=0;i<k;i++)
nums.push_back(nums[i]);
reverse(nums.begin(),nums.end());
for(int i=0;i<k;i++)
nums.pop_ba... |
65dbde58ef22a4b0b60b54c876d04ae0ac5c7dc3 | c4372f2763e5ca9492d2d476c3ee0ce1dec54d35 | /SMEGen_BLUFOR.IslaDuala3/config/params.hpp | 6cf5df8c2d51a24b34443d92f21877ffa3ed1c0f | [] | no_license | TaskForce47/SME | eb9f9a5d3bfb53ee7b330f1e191b812d8d938346 | 1728f4316c529c009634cae022d80079e06d149f | refs/heads/master | 2021-01-11T21:27:53.934228 | 2016-09-19T19:29:44 | 2016-09-19T19:29:44 | 78,788,282 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,890 | hpp | params.hpp | /*
=======================================================================================================================
SME.Gen - Small Military Encounter Genenerator
File: params.hpp
Author: T-800a
E-Mail: t-800a@gmx.net
==================================================================================... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.