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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6af5d07c4b54834eed64ebe566859897b6d9556c | 4010bc072ec3c69b58ff231d8ee03be34948e346 | /boj/ds/14411.cpp | a40ae2d3000e56bbde9eba0ea405626119b6051d | [] | no_license | Castlebinia/ALGORITHM | 8af9e3d237c0ced8d187b981fed362d9b5445e8c | 3d01db29c9e46a90cd3f5b9380da7a16d35aeee4 | refs/heads/master | 2020-03-10T08:31:08.361763 | 2018-11-02T03:44:46 | 2018-11-02T03:44:46 | 129,286,870 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 651 | cpp | 14411.cpp | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
using ll = long long;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n;
cin >> n;
vector<pair<ll, ll>>p, rp;
for (int i = 0; i < n; i++) {
ll x, y;
cin >> x >> y;
p.push_back({ x,y });
}
... |
31997875c53dc7172297d779737e9ce64233326a | 53f90730b7581e0aa3f936fd96b0064134547a57 | /Cliente.hpp | f5d83daa6f6be07f6a37cd189b5c3ad55080884f | [] | no_license | pedrorfs/2021-1-exercicio-revisao-refatoracao | 7db85d5de002fc58a3652ed1968f4048132a9c65 | 50b48eaf7a4734ff3d404aca67267a6a7623c2c0 | refs/heads/main | 2023-07-15T17:57:16.307342 | 2021-08-16T22:25:47 | 2021-08-16T22:25:47 | 396,974,733 | 0 | 0 | null | 2021-08-16T21:13:55 | 2021-08-16T21:13:54 | null | UTF-8 | C++ | false | false | 411 | hpp | Cliente.hpp | #ifndef CLIENTE_HPP
#define CLIENTE_HPP
#include <string>
using namespace std;
class Cliente {
public:
// Construtor
Cliente(string name, string address, string city, string state, string zip, string phone);
void print();
private:
string NOME;
string endereco;
... |
b89a4743eca85c58bff45318ca54c3357474b9a3 | 2c760d7d7096f26780a12bc2164c50cdbdf476ec | /image_complete/mainwindow.h | 549406613ebe192cf200309b010a94780dd86da7 | [] | no_license | czyi/ImageCompletion | 5c3a3219c52bb64040bf047c8788c7d59b3d8ede | e94cc50c9eb09aad9d61bbdbb302bfa27ec9dd75 | refs/heads/master | 2021-01-10T12:44:39.461102 | 2017-02-23T09:34:54 | 2017-02-23T09:34:54 | 53,374,616 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,330 | h | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/core/core.hpp>
#include <string>
using namespace std;
namespace Ui {
class MainWindow;
}
struct Node
{
int x;
int y;
int neighbor;
int n... |
281447c9827d3a8b397dccd2c6334e3e9b33076a | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/collectd/gumtree/collectd_repos_function_958_collectd-5.6.3.cpp | 622582155cda5cc825d6a9f8c14ca020ae08b523 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 902 | cpp | collectd_repos_function_958_collectd-5.6.3.cpp | static int hv2data_source(pTHX_ HV *hash, data_source_t *ds) {
SV **tmp = NULL;
if ((NULL == hash) || (NULL == ds))
return -1;
if (NULL != (tmp = hv_fetch(hash, "name", 4, 0))) {
sstrncpy(ds->name, SvPV_nolen(*tmp), sizeof(ds->name));
} else {
log_err("hv2data_source: No DS name given.");
retu... |
50ddd200f6547c001b745a4fe564c032fe45baf8 | 26262b7fa7b7876626c5fd0855decec7b63b9e01 | /samples/simple_engine/BlinkProcess.cpp | 5e0f46a4afc0e44b5baeec1237af02c9a3cddbe0 | [] | no_license | Vespertinus/SE | a8e37025f7cc4e0c85af30821f53e4079dfd11bc | 5122656a3946d3ce2b75d993b3e411c829c56ca5 | refs/heads/master | 2022-05-14T12:42:09.679710 | 2022-05-03T19:32:00 | 2022-05-03T19:32:00 | 106,569,929 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,331 | cpp | BlinkProcess.cpp |
#include <GlobalTypes.h>
#include <WorldProcess.h>
#include <BlinkProcess.h>
namespace SE {
BlinkProcess::BlinkProcess(TSceneTree::TSceneNodeWeak pNewTargetNode, const float new_flip_dt, allocator_type oAlloc) :
pTargetNode(pNewTargetNode),
flip_dt(new_flip_dt) {
}
void BlinkProcess::OnUpdate(con... |
904ba4f44af790d472ec7f73c2dc1048ea9f33b1 | da426fa63ca1009eeac2bd465cc6c413d8a02263 | /ap_IUT-master/ap_IUT-master/ap/organizer_boxing.cpp | f658ecfd920750f3aea605b8d5c6ce56b746b25f | [] | no_license | mahdi-hejazi/ap_IUT | 5a9690030c97b30dbd6d684194045f20fd2aac78 | 9fe80c722e7c7bbf03073954d4cb67fd9b31b8ba | refs/heads/master | 2020-05-30T07:56:49.326533 | 2019-06-20T11:09:27 | 2019-06-20T11:09:27 | 189,610,532 | 0 | 0 | null | 2019-05-31T14:47:07 | 2019-05-31T14:47:06 | null | UTF-8 | C++ | false | false | 674 | cpp | organizer_boxing.cpp | #include "organizer_boxing.h"
#include "ui_organizer_boxing.h"
organizer_boxing::organizer_boxing(QWidget *parent) :
QWidget(parent),
ui(new Ui::organizer_boxing)
{
ui->setupUi(this);
}
organizer_boxing::~organizer_boxing()
{
delete ui;
}
void organizer_boxing::show_participant(){}
void organizer_boxi... |
825241e479dec7d3c58ad2b698787cb805a054bd | 42c0a0643227f91e9ea8916de436857c4e478c19 | /1.cpp | da08a8f087cada1f88a156fe1d35ea3197cc5c50 | [] | no_license | henktillman/project-euler | b48210c2b1fc400993cfc8f8d69d73eb59a243e4 | 1b5e929f565f168d9f7b88fae8dbd5896ef0eedd | refs/heads/master | 2021-01-20T10:46:04.943271 | 2015-01-05T02:43:00 | 2015-01-05T02:43:00 | 28,763,714 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 438 | cpp | 1.cpp | // If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
// Find the sum of all the multiples of 3 or 5 below 1000.
#include <iostream>
using namespace std;
int main()
{
int total = 0;
for (int i = 0; i < 1000; i += 3)
total += i;
... |
852587ba4cd4a2278755259af5175a6940a7808c | 30076de029498b0826d70c26e22211221689d708 | /sealtk/noaa/Main.cpp | 90f6c729cc1ce28cd00418b465960de95acaa3ea | [
"BSD-3-Clause"
] | permissive | Kitware/seal-tk | 935919a276cbe630524e7813a55332ab227f619e | 3d7af25e3d71f010672e58a7c254a7e28b9701a8 | refs/heads/master | 2023-06-01T11:36:49.733836 | 2021-01-13T14:09:34 | 2021-01-13T14:09:34 | 162,480,407 | 4 | 4 | BSD-3-Clause | 2021-01-13T13:48:39 | 2018-12-19T19:15:09 | C++ | UTF-8 | C++ | false | false | 4,143 | cpp | Main.cpp | /* This file is part of SEAL-TK, and is distributed under the OSI-approved BSD
* 3-Clause License. See top-level LICENSE file or
* https://github.com/Kitware/seal-tk/blob/master/LICENSE for details. */
#include <sealtk/noaa/gui/Resources.hpp>
#include <sealtk/noaa/gui/Window.hpp>
#include <sealtk/noaa/core/Config.h... |
ae6053755d36dd5acc38e4c760b6c25ff04e0f98 | 5cb23dd4fa75224ae2c5cb63bf96e8271a17d76d | /geo/main.cpp | a2f476df843f6c559c6984e4371676bcc8653de8 | [] | no_license | kiorisyshen/testCode | 9589637f3995549b72f4be1c7c50e30d29da1f95 | 881f40ab8f5b6fdf6d8c9e279eb7cd50d1fa6f90 | refs/heads/master | 2020-09-01T06:16:32.004151 | 2020-06-01T14:24:27 | 2020-06-01T14:24:27 | 218,897,056 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,231 | cpp | main.cpp | #include <iostream>
#include "spa.h"
int main() {
spa_data dataStruct;
dataStruct.year = 2019;
dataStruct.month = 11;
dataStruct.day = 21;
dataStruct.hour = 9;
dataStruct.minute = 54;
dataStruct.second = 0;
dataStruct.delta_t = 32... |
1a74be2b9a5f391e22dfff3bec66562643e99e2f | 2bb787bf51d2b404bb6131be29c06b83a3a2fd6a | /tags/imkit-r682/Preflet/PApplication.cpp | 18e7f0dad6064f61fc98a3169c5ac7a81ab615e0 | [
"BSD-3-Clause"
] | permissive | louisdem/IMKit | 55f1128a30274ce584ebad67ed8a7c0ace81148e | 9734cd67c04af047c37a0e17119dc19429855990 | refs/heads/master | 2022-02-10T07:19:04.131608 | 2022-01-26T09:17:00 | 2022-01-26T09:17:00 | 19,458,680 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 674 | cpp | PApplication.cpp | #include "PApplication.h"
PApplication::PApplication(void)
: BApplication("application/x-vnd.beclan-IMKitPrefs") {
};
PApplication::~PApplication(void) {
// delete fWindow;
};
void PApplication::ReadyToRun(void) {
fWindow = new PWindow();
};
bool PApplication::QuitRequested(void) {
return true;
};
void PApplica... |
8feb54e185ea4b797e2789f3e04d5f323b36996b | b579d32b04731f0215b9843bc0f9d8812abbae9a | /Algo2/Taller/ejercitacion_definicion_clases/src/Libreta.cpp | f0bc1d86332130e7ac8b893026b886350427c343 | [] | no_license | pdbruno/TPsPatricio | b693893bf8ff127ad46d9ce3b783a9afa321884e | 130f3feea6ee3f4546b034b23b8e7ff2b3272673 | refs/heads/master | 2021-06-29T19:35:41.109732 | 2021-03-31T19:57:47 | 2021-03-31T19:57:47 | 227,661,643 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,104 | cpp | Libreta.cpp | #include <set>
#include <map>
#include <utility>
#include <string>
using namespace std;
using uint = unsigned int;
using LU = string;
using Materia = string;
using Nota = uint;
class Libreta {
public:
LU lu();
set<Materia> practicos_aprobados();
set<Materia> finales_aprobados();
Nota nota_final(Ma... |
83bc956e0bd60b1f1bcd3d4e19575f61edc4c367 | 59424ff5eaf5d0b9f8cc9144a28aba101e385188 | /deyx.cpp | 2fe0575d8f1882caa8e08244801f1aa3b962062e | [] | no_license | Mr-Computer/Your-beautiful-body | 7f3502f04cc32032d81cba36471aa2f2d978eef9 | 8c35f93768c02a6e4449005ff77796b552dc578f | refs/heads/master | 2020-03-13T04:42:53.640105 | 2018-05-04T15:26:05 | 2018-05-04T15:26:05 | 130,968,418 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,989 | cpp | deyx.cpp | #include "deyx.h"
#include "ui_deyx.h"
#include "my_workout.h"
#include <QMessageBox>
#include <QFile>
#include <QTextStream>
#include "string.h"
#include <QDebug>
#include "my_mas.h"
static int _x=1,_d=0;
DeyX::DeyX(QWidget *parent) :
QDialog(parent),
ui(new Ui::DeyX)
{
ui->setupUi(this);
}
... |
7be5af0788598f2242935f1cd24eae36d3d006de | 58a0ba5ee99ec7a0bba36748ba96a557eb798023 | /Olympiad Solutions/URI/1469.cpp | 84818fcb3b89a69cc41f1967d6d156067b30e381 | [
"MIT"
] | permissive | adityanjr/code-DS-ALGO | 5bdd503fb5f70d459c8e9b8e58690f9da159dd53 | 1c104c33d2f56fe671d586b702528a559925f875 | refs/heads/master | 2022-10-22T21:22:09.640237 | 2022-10-18T15:38:46 | 2022-10-18T15:38:46 | 217,567,198 | 40 | 54 | MIT | 2022-10-18T15:38:47 | 2019-10-25T15:50:28 | C++ | UTF-8 | C++ | false | false | 1,277 | cpp | 1469.cpp | // Ivan Carvalho
// Solution to https://www.urionlinejudge.com.br/judge/problems/view/1469
#include <cstdio>
#include <algorithm>
#include <set>
#include <queue>
using namespace std;
#define MAXN 700
set<int> grafo[MAXN];
int idade[MAXN],processado[MAXN],N,M,I;
int main(){
while(scanf("%d %d %d",&N,&M,&I)!= EOF){
for(i... |
9331bc9d6bede02f4cc236a4c31f51c42e62bbf1 | 635a31fb5f4fed8f1f630f6f6620e55ce4ae03e6 | /CODEJAM/CODEJAM 2014/reorder.cpp | 697d10ca6f506376e527208c381aafea3f6f816d | [] | no_license | iCodeIN/Problem-Solving | 82cd4eef0e4606baf31d8de34135dd5366d19a1e | 92f13c2cab5dfe914755dae7790c9cf8c6fb8782 | refs/heads/master | 2022-11-27T16:49:30.319955 | 2020-08-08T08:47:24 | 2020-08-08T08:47:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 703 | cpp | reorder.cpp | #include<bits/stdc++h>
using namespcae std;
int fact(int n)
{
if(n==0 || n==1)
return 1;
else
return n*fact(n-1);
}
int main()
{
int iter, Num_Test;
ifstream fin;
fin.open("reorder.in");
fin>>Num_Test;
for(iter=0;iter<Num_Test;iter++){
int N,i,j,k,l,count=0,proceed=0;
fin>>N;
c... |
bf333638630107778a00bce267ed648f234a719d | 38bed5cff8735fa2d14270cc42cd7805e686aa56 | /led_hat/src/led.cpp | 87f9e2276f4e7472da45fe8836d4e182a923839d | [] | no_license | theicfire/led_sync | b36a003d7b4557b5557f593d8131aa3149bbb62a | 54ba769c2b8db888b33a7610f45dd87cbae2a177 | refs/heads/master | 2022-11-17T21:37:48.431751 | 2022-08-23T19:37:00 | 2022-08-23T19:37:00 | 203,098,461 | 4 | 2 | null | 2023-08-23T06:23:19 | 2019-08-19T04:31:05 | C++ | UTF-8 | C++ | false | false | 12,373 | cpp | led.cpp |
#include <Arduino.h>
#include <FastLED.h>
#include "time.h"
#include "friend.h"
#define LED_PIN 5
#define NUM_LEDS 300
//#define BRIGHTNESS 100
#define LED_TYPE WS2811
#define COLOR_ORDER GRB
CRGB leds[NUM_LEDS];
CRGBPalette16 currentPalette;
CRGBPalette16 targetPalette;
TBlendType currentBlending;
#... |
881917bd36330b9a65977d6c7d56bae13c902daf | d69de64466cf1fd39c293133d344e38697550691 | /osquery/tables/networking/windows/interfaces.h | 02f1f116846cde4a434b691e97cae4337629d8d1 | [
"GPL-2.0-only",
"Apache-2.0"
] | permissive | santosomar/osquery | a34be751b9db3e44abf3195f3d49d5cb4731d520 | 6eb695bf9bfe35dd51ace957711a7493918780d0 | refs/heads/master | 2023-01-04T04:41:46.803854 | 2018-05-02T03:47:22 | 2018-05-02T03:47:22 | 131,799,925 | 1 | 0 | Apache-2.0 | 2022-12-23T19:20:01 | 2018-05-02T04:55:27 | C++ | UTF-8 | C++ | false | false | 550 | h | interfaces.h | /**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under both the Apache 2.0 license (found in the
* LICENSE file in the root directory of this source tree) and the GPLv2 (found
* in the COPYING file in the root directory of this source tree).
* You may... |
2270ff7a5c44a5d5f1f84e4287ff81df32dd6c6b | f15e977dbc5b69afd7bb75a0fb9fc6e4f07be850 | /dynamic_prog/jump_game2.cpp | 663abc74765f83360fced9a2b31f078df53de845 | [] | no_license | invrev/hello_world_ints | 041ea109a12a3b60260c9e59dfe343388e510f87 | 25efc36cd507e79f7808824eaa9359f06f668f52 | refs/heads/master | 2020-05-19T13:34:15.872909 | 2015-01-12T11:37:32 | 2015-01-12T11:37:32 | 20,292,167 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 342 | cpp | jump_game2.cpp | #include<iostream>
#include<vector>
using namespace std;
int jump(int A[],int n)
{
if (n <= 1)
return 0;
vector<int> s(n);
s[n-1] = 0;
for (int k = n-2; k >= 0; --k) {
for (size_t i=1; i <= A[k] && i < n-k; ++i) {
s[k] = min(s[k], 1 + s[k+i]);
}
}
return s[0]... |
6d76739c4f7ce89199baef38a634d6fc17e3d5c1 | c5f1a804dbd1f5de123469dd5432633633e80597 | /GAMELIB_2/src/UI/WorldCanvas.cpp | 68013f9dfcb8e3ccc45327924d8e1dcaca3b0496 | [] | no_license | brosell/HTS-Games | 2d03a8988adc5c613dba1e249a7e0b409593ff11 | 3c7c1cc2ec4fe0ba7865f6eec5cec905faab5a3f | refs/heads/master | 2021-01-22T21:23:38.681074 | 2020-01-12T15:41:47 | 2020-01-12T15:41:47 | 85,423,760 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 261 | cpp | WorldCanvas.cpp | #pragma warning (disable : 4786 4503 4530)
#include "WorldCanvas.h"
void WorldCanvas::paint(Display* surface)
{
if (m_world)
{
Rect r=getTranslatedPosition();
m_world->setViewportPhysical(r.x, r.y, r.w, r.h);
m_world->draw(surface);
}
}
|
3a99742fe07fde909c5d8b3aaa6f79af80327203 | 00e9b8471bd2e81ceb667fc82e49240babbb113e | /biz/bizutility/sigslot/sigslot.h | 2b8097ebf5f169608be514939add41d3a7421c75 | [] | no_license | Xershoo/BM-Client | 4a6df1e4465d806bca6718391fc2f5c46ab1d2b4 | 2d1b8d26d63bb54b1ac296341353a6e07809b2d6 | refs/heads/master | 2020-03-29T05:01:00.564762 | 2019-03-06T01:46:35 | 2019-03-06T01:46:35 | 149,561,359 | 5 | 1 | null | null | null | null | GB18030 | C++ | false | false | 3,166 | h | sigslot.h | #pragma once
#include <vector>
#include <algorithm> // find
// 要当心的问题
// 1. 不支持多线程,多线程会引发很多问题;
// 2. 如何满足信号和槽的随机析构问题,任何一方析构之后维护对应的数据来表示连接状态,
// 主要是信号对象(Signal1)里的信号槽队列Signal1::_vSlots,
// 和信号槽容器里的信号源队列SrcSigContainer::_vSig1s
// 3. 当解除信号关联的时候不光要删除对应的Signal1::_vSlots
// 还要检查当是最后一个关联的这种槽子,要删除槽子对应的信号队列;
// 4. 信号连接信号, S... |
ddca2f18712ad5bb95cbf2125c3e2a4c89f2b36e | 4da2cf1b58751eae35f60e464563227223533bd9 | /TCPClientThreadPoolTask.cpp | 3f541e26db9017e01554eb5aba959608e0919387 | [] | no_license | jssfy/learngit_tcp | ac04f5b55a4fad4785fd69d5d245e3a2ebab3a8a | 9f797f6b6e41516b9f83265e20910b8e08c0d75c | refs/heads/master | 2021-01-23T06:49:18.255920 | 2013-12-24T08:32:45 | 2013-12-24T08:32:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,980 | cpp | TCPClientThreadPoolTask.cpp | #include "tools.h"
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <netdb.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <unistd.h>
#include <sys/time.h>
#include "ThreadManager.h"
extern char *gInput;
extern unsigned int gLen;
namespace KIDD ... |
bfe01151161ff570b0ddf33dfc0ad45c974ef7d3 | 51fdd27bfe20e60dd726b04850a881be110002e3 | /luogu/1311/1311.cpp | d3e611e48481d64fbcbc462cb86ea4723277b25b | [] | no_license | MintSummer/TYC | 0eb4d04851a6ecc8e2d83475a6f16c6d1c6d8f9b | 23700d4d857d0729b2db3b1ef9afc21b040aecbd | refs/heads/master | 2020-04-11T16:13:18.035139 | 2019-03-10T15:18:53 | 2019-03-10T15:18:53 | 161,916,623 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 824 | cpp | 1311.cpp | #include<bits/stdc++.h>
using namespace std;
namespace TYC
{
typedef long long ll;
const int N=200010;
int n,k,p,last[110],num[110],sum[110];
ll ans;
inline int read()
{
int x=0,f=0;char ch=getchar();
while(!isdigit(ch)) f|=(ch=='-'),ch=getchar();
while... |
896c046556087ceb2604351f3d027cd78c940e5d | 5934b3a79d7a38f228394b1fbddcb57b74e7c700 | /Thermometer/Thermometer.ino | 8df03130467bfeedfbb55813f4b9aa946abc4659 | [] | no_license | MagedMilad/Arduino_workspace | 7683c3066a004863ddd9ccd99faef0b4b1c6c8fe | a0019dc58fc3a172292ab0272a4b593e9dfd3bb6 | refs/heads/master | 2021-01-10T16:57:56.755306 | 2015-11-30T00:24:10 | 2015-11-30T00:24:10 | 43,764,972 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 587 | ino | Thermometer.ino | /*
* function : trigger a warning sound and light if the temperature >28
* input : LM35
* output : a led and a buzzer
*/
const int sensor_pin = 14;
const int out_led = 13;
void setup() {
pinMode(out_led,OUTPUT);
Serial.begin(9600);
}
void loop() {
//read the current voltage at 10 bit resolution (0 t... |
024517c343ef7010b70b8e5ca6f9e998f52f2b86 | 472b76a6c0a1832eba561702d28f37d32cb08f95 | /src/set3.cpp | fde1895b8283e89106ca4ecde67c65614f97fc02 | [] | no_license | marysieek/novelty_detection | fd1dc87d58827845cf75038c996ebad14d7cdf1d | 45492538d2f6a00fd5788e0d9ff1a3665c31345d | refs/heads/master | 2021-01-13T09:25:48.827169 | 2016-05-31T08:01:21 | 2016-05-31T08:01:21 | 53,409,812 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,970 | cpp | set3.cpp |
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <numeric>
#include <string>
#include <vector>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
using namespace std;
using namespace cv;
const int LOW_THRESHOLD = 25;
co... |
77b8d8cd0cb58110ac1edbb66f4fd8165da340ea | 29af718d33105bceddd488326e53dab24e1014ef | /Programming/Messages/demo_Messages_2.cpp | 5963f0993979d3c8e6fc78f78c92fb9f90944f21 | [] | no_license | OKullmann/oklibrary | d0f422847f134705c0cd1eebf295434fe5ffe7ed | c578d0460c507f23b97329549a874aa0c0b0541b | refs/heads/master | 2023-09-04T02:38:14.642785 | 2023-09-01T11:38:31 | 2023-09-01T11:38:31 | 38,629 | 21 | 64 | null | 2020-10-30T17:13:04 | 2008-07-30T18:20:06 | C++ | UTF-8 | C++ | false | false | 2,996 | cpp | demo_Messages_2.cpp | // Oliver Kullmann, 3.12.2006 (Swansea)
/* Copyright 2006 - 2007 Oliver Kullmann
This file is part of the OKlibrary. OKlibrary is free software; you can redistribute
it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation and included in this library; either ve... |
94612553483ed0bd885b3c25de6647305f168e0f | 6006085975601a021ba2177071b286c1225ece6a | /TextureManager.cpp | 39d62cc120e2158aba2d7366d2a59b6d32d35180 | [] | no_license | RyanSwann1/PongSDL2 | d5d1967bf34e45019c5ef1d67ee10ca1b11c9c33 | b580d184487e1b6b061ad310496776d0bc24de5c | refs/heads/master | 2021-01-01T04:46:12.203125 | 2016-04-16T13:29:36 | 2016-04-16T13:29:36 | 56,355,527 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,903 | cpp | TextureManager.cpp | #include "TextureManager.h"
#include "Game.h"
#include <assert.h>
#include <iostream>
//Static variable shared across all instances of TextureManager#
// Javawag: and with those, you write e.g. static Game *m_instance;
// Javawag: and then you have to put it in the cpp too i.e.Game *Game::m_instance;
//Javawag... |
0a7b99617775e603f793fe5209ac264119924e0d | ec279049433115b5a063b44b40ea413afb8066f0 | /NDIcontrol.h | 3e939e46f42db39df76fd53a630e4cd645e75b97 | [
"CC0-1.0"
] | permissive | iamyila/NST | c3971cb1905886cb7e168ad978a644294a48c09f | d06f61767ec1061b02462f6f5d021dea044285b0 | refs/heads/master | 2023-01-07T13:07:27.318186 | 2020-06-12T17:10:33 | 2020-06-12T17:10:33 | 269,730,327 | 6 | 1 | CC0-1.0 | 2020-06-14T20:06:10 | 2020-06-05T18:05:05 | C++ | UTF-8 | C++ | false | false | 825 | h | NDIcontrol.h | /*
* NDIcontrol.h
*
* Created on: 11/07/2012
* Author: Sebastian Frisch
*/
#ifndef NDIcontrol_H_
#define NDIcontrol_H_
#include "ofParameterGroup.h"
#include "ofParameter.h"
#include "ofMain.h"
class NDIcontrol;
template<typename ParameterType>
class ofNDIcontrolParam: public ofReadOnlyParameter<Paramete... |
35eff7341ace5087b7b2403244d98ca026f1128a | a936b02de6a9f6dc568bb1569eba322fc19f99ec | /main.cpp | 97f280445e79666c6eb80b2cea6fda7f2a7a6880 | [] | no_license | AhmedBenyahia/24h-Challenge-Tunirobots2017 | 2126fcb8d488de543861be956a5f11f3acfc08b8 | 77b41ac5a9f47799e8c7fe1032dae51159f0bd7a | refs/heads/master | 2021-09-24T01:58:22.679324 | 2017-05-27T08:18:59 | 2017-05-27T08:18:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,026 | cpp | main.cpp | #include "mbed.h"
#include "HCSR04.h"
#define DIS_NUM 30
//Serial
Serial bluetooth(PE_1,PE_0);//Tx Rx
Serial pc(USBTX,USBRX);
//Def des object
//Def des pin Moteur
//MA
PwmOut LMF(PD_15);
PwmOut LMB(PD_14);
//MB
PwmOut RMF(PD_13);
PwmOut RMB(PD_12);
... |
a33e52e9034a2c1538d0c68bad5c85d00c3fcd9b | ba251d54fac8c3aa8a7f450105bc4f27d94a77f9 | /src/graphics/graphicsresourcefactory.h | 11e4381b244beb91737979feff1d6cdba9a4254c | [] | no_license | JakeClarke/phrix | 8c365cfae70968edecde8402dafabe24c5a1cdb7 | 05de30ec8e0c23b0f5deb93e1a2e671c22830aef | refs/heads/master | 2016-08-12T20:40:11.547281 | 2015-12-08T13:55:29 | 2015-12-08T13:55:29 | 45,746,530 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 661 | h | graphicsresourcefactory.h | #ifndef _H_PHRIX_GRAPHICS_GRAPHICSRESOURCEFACTORY
#define _H_PHRIX_GRAPHICS_GRAPHICSRESOURCEFACTORY
#include "texture2d.h"
#include "rendertexture2d.h"
#include "pixelshader.h"
#include "vertexshader.h"
#include <memory>
namespace phrix {
namespace graphics {
class GraphicsResourceFactory {
virtual std::unique_... |
9c9162dbef8c5ef521718c68b242d1c3c9097f5d | aea72583d026e29ad8970db5b6c4535bcc52cfe5 | /src/Lzui/UIImage.cpp | c209d3482af45569a3f24f6bbc18c2d5f3945a20 | [] | no_license | youlanhai/Lazy3D | ed2e428fd94efc5e73b7f0d42189ca8afda8f04e | a00c02594f42e81ad9fe6ef133c6e82dc166c834 | refs/heads/master | 2021-07-08T23:21:09.940640 | 2017-10-05T06:25:50 | 2017-10-05T06:25:50 | 105,855,410 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,110 | cpp | UIImage.cpp |
#include "stdafx.h"
#include "UIImage.h"
namespace Lazy
{
Image::Image()
: m_color(0xffffffff)
{
}
Image::~Image(void)
{
}
void Image::create(
const tstring &image,
int x,
int y,
int w,
int h)
{
setPosition(x, y);
setS... |
5bf79ae9fdbec603e0a62ca6ce1f10fa96624c3b | 97bbfb3d6c95cbe8f09c31a5b41b2bc6afc969e8 | /pd/stompbox/from-faust/graphic_eq.cpp | 02582dc0ff5df1759ff031f476b183250135dec6 | [] | no_license | eberdahl/Satellite-CCRMA-Userland-Scripts-And-Examples-Ubuntu | 4bada1859c98c71b122fd604f510d5d8b45000b4 | feed858b5eeadecc129daa6a3c6aebb947b6d590 | refs/heads/master | 2020-03-29T21:40:25.379922 | 2016-01-21T08:55:14 | 2016-01-21T08:55:14 | 15,482,029 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 145,726 | cpp | graphic_eq.cpp | //-----------------------------------------------------
//
// Code generated with Faust 0.9.58 (http://faust.grame.fr)
//-----------------------------------------------------
/* link with */
#include <math.h>
#include <cmath>
template <int N> inline float faustpower(float x) { return powf(x,N); }
template <int N> i... |
61ded2456d17cce6bd493c7c47aafc55ecfbf217 | 249a3b1b93777661788d01330d03fc682b2a73b2 | /Battle Tank/BattleTank/Source/BattleTank/Public/TankMovementComponent.h | bee536178ef1457c82eaa322c9a0c593bcb71c2b | [] | no_license | FireBorn123/04_BattleTank_UnrealCourse | d1ac59c8dff8bd03bc1e08fb4158f4fedabd4fae | 9af9e7c7aa0349a131c0fa3b848e749452f388d0 | refs/heads/master | 2021-01-22T17:47:42.269419 | 2018-08-30T20:48:47 | 2018-08-30T20:48:47 | 102,403,156 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 984 | h | TankMovementComponent.h | // Copyright Trevor Randall
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/NavMovementComponent.h"
#include "TankMovementComponent.generated.h"
class UTankTracks;
/**
* Responsibe for driving the tank tracks
*/
UCLASS(ClassGroup = (Custom), meta = (BlueprintSpawnableComponent))
class BATTLETANK_API... |
5ff941f6aec765f5bb5bcc17c6148adbd726c0da | d9acf4a96e2abcf0ca55f03cd30dee90709aa2e4 | /October_Launch/Launch_Code/Finished_Code/Memory_Storage.h | dd8f143b770572c950752bb5eff6293c6a85da8c | [] | no_license | perplexinglysimple/ATEX_2018 | 364c490975785397b72bc547704cb70d9c14e06d | 05a17c713d2961d46621635199fc40e90b18cd85 | refs/heads/master | 2021-07-11T08:30:57.402872 | 2017-10-16T00:38:08 | 2017-10-16T00:38:08 | 106,205,260 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,618 | h | Memory_Storage.h |
//These functions are how to write to the eeprom
void writeEEPROM(int deviceaddress, unsigned int eeaddress, uint8_t data );
byte readEEPROM(int deviceaddress, unsigned int eeaddress );
void writeEEPROM(int deviceaddress, unsigned int eeaddress, uint8_t data )
{
Wire.beginTransmission(deviceaddress);
Wire.write(... |
c3dc6178fc84bd1d8d12da0dbc2cb64381628743 | 570a21c39b9af163ef0793c149b83f6a302bd84c | /folly/detail/SplitStringSimdImpl.h | 9bec8a53475e05b0ff9a0fd7cab38ccfa09be698 | [
"MIT",
"Apache-2.0"
] | permissive | facebook/folly | 544d17b45bda70c51ba593f920e0200bde177927 | ab45d9b6a7a2a24b2a725447387f36772dd2cc4a | refs/heads/main | 2023-08-17T10:31:22.589640 | 2023-08-17T09:29:35 | 2023-08-17T09:29:35 | 4,524,181 | 23,991 | 5,805 | Apache-2.0 | 2023-08-23T18:23:26 | 2012-06-01T20:49:04 | C++ | UTF-8 | C++ | false | false | 4,048 | h | SplitStringSimdImpl.h | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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 appl... |
0cccf6e82ab80454477675bf630ec0642850db5e | bbda75d4de33a14c7e7a177b3a89ae708ae693c7 | /non_blocking_timers.cpp | 6f10a6ce05da32cd9385ecd296e0a6276c8d5afb | [] | no_license | ben-jacobson/non_blocking_timers | 0413b6537a5314273c52a4acad7dd1e947b10fcc | ccb52c1188dc59d0998c49e79320d5032ea33ef2 | refs/heads/main | 2023-06-02T09:21:43.970199 | 2021-06-18T10:33:06 | 2021-06-18T10:33:06 | 377,454,258 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,867 | cpp | non_blocking_timers.cpp | #include "non_blocking_timers.h"
non_blocking_timer static_timer_first_in_list; // the first item in the list is an unused timer which acts as the static base
non_blocking_timer *last_timer_in_list = &static_timer_first_in_list; // last timer in linked list, this will continually update as needed. having it continua... |
6c213e59acece8587dc7ac7c7d335895944643ee | cc2b07d9e4266efcc830451adfb69b925ec10867 | /PlugIns/EXRCodec/src/OgreEXRCodec.cpp | efd4b32de5abf43f25af23f179e3ac57b184fda9 | [
"MIT"
] | permissive | OGRECave/ogre | 74c9c318d95010a3e5fba9709ffebc7e781f27a2 | 15631ca2dd44bd0c925e33411bee05ccac95fc55 | refs/heads/master | 2023-09-04T21:08:30.326815 | 2023-09-02T10:49:34 | 2023-09-02T10:49:34 | 47,069,819 | 3,716 | 1,178 | MIT | 2023-09-14T05:33:08 | 2015-11-29T15:57:03 | C++ | UTF-8 | C++ | false | false | 5,223 | cpp | OgreEXRCodec.cpp | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person ... |
73fec19a409af37b762ac6d2a9bd09bd5c9d696e | 2c6e88d2f0fc145c7a53ba612b30946755a2846b | /Assignments/DX11Starter/Game.cpp | 6feeb01901e2113f3c0ffb06e68d71490f940118 | [] | no_license | SButtan93-dev/GGP_Assignments | 5ea477231fc0b9ae53f17b1b3a74f5b190767c18 | 75b8fb1fefeb1e8dc6cd377a8d5b8c8eb4469fa9 | refs/heads/master | 2020-04-22T20:32:46.059134 | 2019-02-14T07:44:23 | 2019-02-14T07:44:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,893 | cpp | Game.cpp | #include "Game.h"
#include "Vertex.h"
#include "GameEntity.h"
// For the DirectX Math library
using namespace DirectX;
// --------------------------------------------------------
// Constructor
//
// DXCore (base class) constructor will set up underlying fields.
// DirectX itself, and our window, are not ready yet!
//... |
1eafa5d810a7c82bb46fda8f1ad0ec510796d1bb | 997ee9cc0726b36ee877dbd6595a64af68ee2e90 | /src/ContraharmonicMeanFilter.h | 084a5b47d6f1060ce8eb073e8b411cbae7dd4b71 | [] | no_license | palkakrzysiek/WOTers | ce3e99187d1058a70fb64b8da5651874a7fc1d75 | 779cdbf287358f71099446f02c1c95452e05cdfc | refs/heads/master | 2021-06-06T06:03:12.356738 | 2019-05-06T11:09:12 | 2019-05-06T11:09:12 | 13,294,297 | 2 | 1 | null | 2019-05-06T11:09:13 | 2013-10-03T08:58:55 | C++ | UTF-8 | C++ | false | false | 274 | h | ContraharmonicMeanFilter.h | #ifndef __CONTRAHARMONIC_MEAN_FILTER_H__
#define __CONTRAHARMONIC_MEAN_FILTER_H__
#include "Operation.h"
class ContraharmonicMeanFilter : public Operation
{
public:
ContraharmonicMeanFilter(double q);
void perform(Image &image);
private:
double order;
};
#endif
|
a5e7ef7687c171ee1fe054804c549a3ba2fe9764 | d49e008a9314215918e33bef49a9adedc9f29ec5 | /Source/Functions/functions.hh | 43695a899b9d5598c14c9dc2bfe15c333e260a7c | [] | no_license | jorisVerschaeve/gokstad | 6712fc8889f361e39d65a3393d24191368fff66e | c89add3088e4fb5788d0ecdceb1a662a3d772436 | refs/heads/master | 2021-01-01T04:53:44.727822 | 2017-07-14T20:02:36 | 2017-07-14T20:02:36 | 92,031,825 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,414 | hh | functions.hh | /*
*
*
*
* Joris Verschaeve
*
*
*
*/
#ifndef GOKSTAD_FUNCTIONS_HH
#define GOKSTAD_FUNCTIONS_HH
namespace gokstad {
//////////////////////FunctionIndexingHelper////////////////////////
int FunctionIndexingHelper2D::getDerivativeSize(int Dtot)
{
return (Dtot+1)*(Dtot+2)/2;
}
int FunctionIndexi... |
6d864f3f2ee2aa5edece6cb5e81ad1369b424a0f | ece8b6de06a40bd16535c1d5026049141fddb2a7 | /gridworld/label_evaluator/evaluator_label_collision.cpp | 67aaa1b7e018041cc3b400f9237e11d129400f8b | [
"MIT"
] | permissive | SunTianzhHERE/planner-rules-mcts | bb1b24a479cc4f08275613b4cc912906ed9153a7 | 35b09a857d8c3f1c65e0ed80ee4df1b358e45bf4 | refs/heads/master | 2023-07-31T15:05:51.184848 | 2021-06-15T13:58:36 | 2021-06-15T13:58:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,004 | cpp | evaluator_label_collision.cpp | // Copyright (c) 2020 fortiss GmbH
//
// Authors: Klemens Esterle, Luis Gressenbuch
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
#include "gridworld/label_evaluator/evaluator_label_collision.h"
#include <algorithm>
#include "gridworld/label... |
8b9492acddc9737a82610223334ff56493af460c | 7af6c31502f6b6f614124ce9bd7c27386ec863dc | /C09/GlobalVariable.cpp | 92aef77cb5823c3f0cd55d465034fd6fe6f0abe2 | [] | no_license | bell0136/TIL | 7761580b1d7374d46d0ae83d01d2bf4f1576b3d7 | d54a6746479423e554f3eaa5c6c62884880af37d | refs/heads/master | 2020-09-13T01:20:29.055065 | 2020-07-31T13:05:08 | 2020-07-31T13:05:08 | 222,618,875 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 249 | cpp | GlobalVariable.cpp | #include <Stdio.h>
int num;
void add (int i)
{
num+=i;
}
int main (void)
{
printf("%d\n",num);
add(3);
printf("num=%d",num);
num++;
printf("num=%d",num);
}
//지역변수에서 선언이 될 때 같은이름의 전역변수 가리워진다!.
|
03807f799939748887906274ca698abc52caf923 | 7ee1268757e0cda96c22c7a23cd8e4f29ff95290 | /src/server/game.h | 69fdd257ecc3a8b1374b03f48246247974387585 | [] | no_license | SnoozeTime/quizzbot | a1a6d32d1356347a8177645248c1d8ae36f2b6a3 | e9eb4ceae0559059b5a7f253375da957395057eb | refs/heads/master | 2020-03-28T11:36:05.026058 | 2018-10-08T08:14:12 | 2018-10-08T08:14:12 | 148,230,024 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,033 | h | game.h | //
// Created by benoit on 18/09/09.
//
#ifndef QUIZZBOT_GAME_H
#define QUIZZBOT_GAME_H
#include <thread>
#include <boost/asio.hpp>
#include <memory>
#include "network.h"
#include "common/event_queue.h"
#include "quizz_system.h"
namespace quizzbot {
class game {
public:
enum class game_state {
WAITING... |
7ba2d4e16a44cf3c908b869c567b97a89e1537a4 | c7a0acde24d7a2f2d8305d6808c60eea124475aa | /CLRS/VI. Graph Algorithms/24 Single-Source Shortest Paths/Graph_SP.h | 0110970265cfbdd1dff00d90f384a074ef5592a7 | [] | no_license | kamalm87/Algs-and-DS | 6526d2e5e4708bb8541bd9f350b6574bfe9fd8ab | 74f90a8641deca34f178f52e622d49ccca7c6f6c | refs/heads/master | 2021-01-01T05:32:09.401908 | 2015-04-11T19:22:19 | 2015-04-11T19:22:19 | 24,478,612 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 11,199 | h | Graph_SP.h | #pragma once
#include "Auxiliary/DynamicArray.h"
#include "Auxiliary/Heap.h"
#include "Auxiliary/LinkedList.h"
#include "Auxiliary/Map.h"
#include "Auxiliary/Set.h"
// For std::numerics<int>::max() to mark pseudo-infinite Distance value for untraversed Vertices
#include <limits>
// Forward declaration to give Graph a... |
a6eabc2d2f7cd2b7d37fe19e9152956b6da212d7 | 6c996ca5146bd307a062f38819acec16d710656f | /workspace/iw8/code_source/src/gfx_d3d/r_add_dobj_xmodel.cpp | ed46592c0f0f53f506dcaf2eda62e3a5200395d6 | [] | no_license | Omn1z/OpenIW8 | d46f095d4d743d1d8657f7e396e6d3cf944aa562 | 6c01a9548e4d5f7e1185369a62846f2c6f8304ba | refs/heads/main | 2023-08-15T22:43:01.627895 | 2021-10-10T20:44:57 | 2021-10-10T20:44:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 77,112 | cpp | r_add_dobj_xmodel.cpp | /*
==============
R_AddDObjSurfacesCamera
==============
*/
int __fastcall R_AddDObjSurfacesCamera(const GfxViewInfo *viewInfo, const GfxSceneEntity *sceneEnt, const unsigned int sceneEntIndex, const GfxModelLightingProbeInfo *lightingInfo, GfxDrawSurf **drawSurfs, GfxDrawSurf **lastDrawSurfs)
{
return ?R_AddDObjSur... |
11c5279b53ab5fbee14c4df0295335a32bbb4d5c | e36c0ddebc270be66a348597d1b01b6c4b040fff | /parsetree.h | df242137b2a2f5d5f5c8424a542fdb7a0f97fe66 | [] | no_license | Mustafa-AlHariry/Tiny-Compiler | 0e216f89ae045f2e394fcf34eae263b4265df4c8 | 646affedb8935bbb3e86932450960c031b7eefe1 | refs/heads/master | 2023-02-07T21:50:26.602659 | 2021-01-03T14:32:50 | 2021-01-03T14:32:50 | 320,944,767 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 735 | h | parsetree.h | #ifndef PARSETREE_H
#define PARSETREE_H
#include <QWidget>
#include "QGraphicsScene"
#include "QGraphicsRectItem"
#include "QGraphicsEllipseItem"
#include "QGraphicsLineItem"
#include "QGraphicsItem"
class ParseTree : public QWidget
{
Q_OBJECT
private:
QVector<QGraphicsItem*>Items;
QGraphicsScene* scene;
... |
ec9f3df5aa3ffa8638b67929e086314e951d87ee | d31eabd5313fcdef9de4f4be8a123a8c4584c20d | /Customer.hpp | d508fecee3e3d61af92bf2bcbaa2215923629f2a | [] | no_license | ahmadniaz98/Data-Structures--Linked-Lists--CPP | 3cbbdb43d09acd8f8e2742d5b3802cd5b4c582ec | 432441f8365d32f8b9ae047c028ae4a979f89abe | refs/heads/main | 2023-03-05T19:50:21.804601 | 2021-02-14T12:52:24 | 2021-02-14T12:52:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 244 | hpp | Customer.hpp | #ifndef Customer_H
#define Customer_H
#include <iostream>
using namespace std;
class Customer
{
public:
int id;
string name;
long phno;
Customer *next = NULL;
Customer(int, string, long);
void displayinfo();
};
#endif |
aed264ae95e6d3cf68c1e341823c161dd0931800 | 9fd6a552e634a6c0b35964fc55134f887b570600 | /ProjectEuler/soln12.cpp | 12e2bc3f7368759ebbc0273b3ec84f7b5f7fb312 | [] | no_license | aarsh-sharma/Competitive-Programming | 69b7e843155d94cb2a660ec3bef7a14a73e52735 | ef760acb6723a9055dc47b647c8868b0b85084bb | refs/heads/master | 2021-06-27T08:37:58.322780 | 2021-06-20T11:44:47 | 2021-06-20T11:44:47 | 202,996,777 | 0 | 1 | null | 2020-10-09T18:18:09 | 2019-08-18T11:53:03 | C++ | UTF-8 | C++ | false | false | 1,300 | cpp | soln12.cpp | /*aarsh01rsh@gmail.com
Aarsh Sharma*/
#include<bits/stdc++.h>
using namespace std;
#define PI 3.1415926535897932384626433832795
#define MOD 1000000007
#define debug(x) cout << (#x) << " is " << (x) << endl
#define ARRAY_SIZE(array) (sizeof(array) / sizeof(array[0]))
typedef long long int ll;
#define int ll... |
e50cbfa1bad6098a505ac831807aa58f0a0325c1 | 6322afe42dd32f0cc72cfe637c109f042ec4af39 | /include/lvr2/geometry/LBPointArray.tcc | 475bd2903f67c13d49925378d623d68ee4be97a2 | [] | permissive | uos/lvr2 | 3c94d640f3e315e23fd194d85c2bd8e6877cd674 | 9bb03a30441b027c39db967318877e03725112d5 | refs/heads/develop | 2023-06-22T11:49:52.100143 | 2021-10-08T15:58:07 | 2021-10-08T15:58:07 | 173,213,176 | 66 | 16 | BSD-3-Clause | 2023-05-28T19:10:14 | 2019-03-01T01:18:58 | C++ | UTF-8 | C++ | false | false | 14,574 | tcc | LBPointArray.tcc | /**
* Copyright (c) 2018, University Osnabrück
* 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 li... |
17fb888c9b31d7164fb74cc496e5bc20fd172a60 | 5a92f6db6e8b7698aef17179b3c6864e06968294 | /tests/gltexture2dms.cpp | 78d8103027fd712b1959da4cad30a80b30bede7e | [
"MIT"
] | permissive | AlbertoGP/finegraphics | 51de742339d298f43f211121f159fcaabf75e0dd | 815eb9bc30ac27e8032785ed8963978c2aca758b | refs/heads/master | 2022-01-18T23:10:31.185935 | 2019-01-20T11:14:44 | 2019-01-20T11:14:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,452 | cpp | gltexture2dms.cpp | #define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include <ffw/graphics/gltexture2dms.h>
#include "dummywindow.h"
#include "traits.h"
static bool compareArray(const uint8_t* a, const uint8_t* b, size_t len) {
for (size_t i = 0; i < len; i++) {
if (a[i] != b[i])return false;
}
return true;
}
TEST_CA... |
f1404a3d614f9b1e4c98700078db67916904a98d | c920079b644668fcea120937ec7bec392d2029bd | /B5---Artificial-Intelligence/gomoku/src/graphic/Stats.cpp | 5fa7852e43bcdc206a223d7971a659ddde1700d1 | [] | no_license | Ankirama/Epitech | d23fc8912d19ef657b925496ce0ffcc58dc51d3b | 3690ab3ec0c8325edee1802b6b0ce6952e3ae182 | refs/heads/master | 2021-01-19T08:11:27.374033 | 2018-01-03T10:06:20 | 2018-01-03T10:06:20 | 105,794,978 | 0 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 416 | cpp | Stats.cpp | //
// Created by doT on 28/10/2015.
//
#include "Stats.h"
Stats::Stats(QWidget *widget) {
setupUi(widget);
}
Stats::~Stats() {
}
void Stats::setLabel(){
this->player->setText("Player 2");
}
void Stats::setStoneStole(std::string number){
this->stoneStole->setText(QString::fromStdString(number));
}
void... |
6f8d52b0af1591614621778ca27f299a8610cee4 | ea686b349f8b95f215a1d33fbc6d672a2b68e764 | /practice/Practice set (Rough)/chef_n_dice.cpp | 2cdba1a6e45543316480495f347b62f71566f613 | [] | no_license | selectivegravity/DSA_Practice | ac2659828bde901e68d79723c1da07e7af1354b4 | 6e89324d4e9daa99e43c3c535912e6685bc1836f | refs/heads/master | 2023-07-11T20:43:19.166690 | 2021-08-12T12:41:33 | 2021-08-12T12:41:33 | 395,309,835 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,647 | cpp | chef_n_dice.cpp | #include<iostream>
#include <sstream>
#include<math.h>
using namespace std;
int DecimalToBinary(int n) {
int binaryNumber[100], num=n;
int i = 0;
while (n > 0) {
binaryNumber[i] = n % 2;
n = n / 2;
i++;
}
int binary=0;
for (int j = i - 1; j >= 0; j--){
int last=binaryNumber[j... |
d96a24df90cef22e46f17683286a640831b00089 | ac8332c8cce1c096f01ad20787c1671c3a8794d4 | /Exercise4/Exercise4Lib.cpp | ccfbd5aeb173972b28c091c6b7049543a9f88040 | [] | no_license | norbyscook/BjarneCh3 | 642068b8e8f235bb6cb22c768cbaa40578fef5c7 | 6b053009b5d1796ac5b037df6fd126a12ff810f2 | refs/heads/main | 2023-07-09T21:24:45.379656 | 2021-08-16T05:04:55 | 2021-08-16T05:04:55 | 373,608,322 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,086 | cpp | Exercise4Lib.cpp | #include "Exercise4Lib.h"
// helper functions to get interger from user =======================================
// get integer input from user, redo if input not all integer
int get_int()
{
string input{" "};
bool int_yes {true};
uint8_t sign_count {0};
bool input_valid;
do
{
// get i... |
92feeca5fa0df0eafd57cdc399e650585d75362b | 4c2ab16671ed9041d709264f7c2af700fa299d84 | /day5_assingment/example1.cpp | 26854ccb14c8f560ffc695460463801f7712858e | [] | no_license | shubharthaksangharsha/institutional_training | 0317e07149b33170443d52779fcdc4ddee5da40d | b71b70092fb1d68a116121fe722db4818a9084de | refs/heads/main | 2023-06-10T11:44:55.224364 | 2021-07-03T02:13:40 | 2021-07-03T02:13:40 | 377,275,989 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 343 | cpp | example1.cpp | #include<iostream>
#include<fstream>
using namespace std;
int main(){
fstream new_file;
new_file.open("random_file_write.txt", ios::out);
if(!new_file)
{
cout<<"File creation failed";
}
else{
cout<<"New file created ";
new_file<<"Hey I am learning c++ file handling";
new_file.close();... |
34d9cd5408e51449b153e93e273d1a7a6cf2f265 | 7988f9d07420d7577df05adfcda47eafef8e39c8 | /bson/main.cpp | 2368bd87c561d00d03db1ba8185ac9a23fdafc01 | [
"LicenseRef-scancode-public-domain"
] | permissive | ekd123/ekode | e4998efc88d90b7e8655b22d4296e5f902ff91bf | e5ea3e8c701f64f42d0e17992fb4ce637b9a5f20 | refs/heads/master | 2021-01-15T15:27:39.790470 | 2018-08-16T10:44:59 | 2018-08-16T10:49:22 | 65,139,699 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 59 | cpp | main.cpp | #include <iostream>
#include "bson.h"
using namespace std;
|
118be816557c5e3161f71fd5c04e7c7c195e8b12 | dd7632e0e77aa4ff03e23bdce7d65234f4712540 | /algorithms/Student Attendance Record II/Student Attendance Record II.cpp | b41b6e55cecf21570164009fffffc53c6f1a9b60 | [] | no_license | luckcul/LeetCode | f979a7771455312471b9b516c1a48cfb53086c2e | 9fa0ad174e6925fce4aae32a459e4a3c23951060 | refs/heads/master | 2021-01-20T18:48:50.657792 | 2020-10-21T22:30:55 | 2020-10-21T22:30:55 | 64,599,280 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,006 | cpp | Student Attendance Record II.cpp | class Solution {
int dp[100005][6];
int add(int x, int y) {
int mod = 1e9+7;
x %= mod; y %= mod;
return (x+y) % mod;
}
public:
int checkRecord(int n) {
// vector<vector<int>> dp(n+1, vector<int>(6, 0));
dp[0][0] = 1;
int mod = 1e9+7;
for(int i = 1;... |
e1fe087748e94ff1500941ec0b7f20ad6ae15cc8 | 6bbf9e68688f50559b228947c43beca264d1ceea | /Optimiza/FBExport/fbexport-1.90/fbcopy/args.cpp | e10b67f749fe2d146e0fd69b6665cce8380ff3bd | [
"MIT"
] | permissive | anerlich/LexianGit | dc0dbc743b7a3e41a6d78943708308adcf80f455 | 7e44a62fcb889119ebbeb2a1921b5aee0d81a7df | refs/heads/master | 2023-04-06T04:37:51.968913 | 2021-04-11T05:08:06 | 2021-04-11T05:08:06 | 353,572,978 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,515 | cpp | args.cpp | ///////////////////////////////////////////////////////////////////////////////
//
// Author : Milan Babuskov (mbabuskov@yahoo.com)
// Purpose : Implementation of Args class
// Parses command line arguments and assigns values to Args
// class attributes. The idea is to take all ... |
3b097368ce767bbbac1bfd946305dc3dfdc2d1a5 | 43e28ce11f5ddd07407a87385809c5e3933f348f | /mhdlc/src/GenCodeBlock.hh | 990608e028da948f59c719ea3eb0c84bdd3e68b7 | [] | no_license | xinmeng/metahdl | 5d3421a5f06521d821d089efd94958abf78816f3 | b9465b3b44c1069382286365211ffb328a0b657f | refs/heads/master | 2022-06-29T18:15:11.937153 | 2015-07-01T06:31:52 | 2015-07-01T06:31:52 | 32,431,363 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 617 | hh | GenCodeBlock.hh | #ifndef __GENCODEBLOCK_HH__
#define __GENCODEBLOCK_HH__
#include "CodeBlock.hh"
extern bool OutputCodeLocation;
class CGenCodeBlock
{
protected:
yy::location _loc;
int _step;
public:
inline CGenCodeBlock(const yy::location &loc): _loc (loc), _step (2) {}
inline CGenCodeBlock(const yy::location &loc,... |
c7da5c497ab847e54b52061ae18f35408d50772f | dc679291fd34186e69fd6186fe7c1fd346b5e360 | /src/Day 17 - Spinlock/Spinlock.cpp | ee027d65967dc16cdb552378dab624cf2c98ed61 | [] | no_license | Biendeo/Advent-Of-Code-2017 | 7087610e8898cc094a771930c12e54add4d454a6 | afbdf7271d64733e9431defd382b418e2cb1354e | refs/heads/master | 2021-08-31T16:34:58.332265 | 2017-12-21T06:51:06 | 2017-12-21T06:51:06 | 112,828,595 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,162 | cpp | Spinlock.cpp | // Day 17: Spinlock.cpp
// Definitions for the class that cycles through elements.
#include "Spinlock.h"
#include <fstream>
#include <iostream>
#include <list>
Biendeo::AdventOfCode2017::Day17::Spinlock::Spinlock(int input) {
numSteps = input;
}
int Biendeo::AdventOfCode2017::Day17::Spinlock::ValueAfter2017() {
r... |
75ad315b0eb162fcb1a5ed8318ef55b74f67186a | 7218e2cb963d24113e5fee86b86b6ecfc01b8710 | /GameCamp2016aki/Title.cpp | 007792db2f5a8c6e45987fc5e34fecdd0b9e5ffc | [] | no_license | GamaCamp/GameCampTeam1 | 76f75543d8defc8445eca962bd6743b2ddf3cfdc | 3aebcb96e876a1606fad79275ba428e1fdbb5d55 | refs/heads/master | 2021-05-04T01:02:46.938764 | 2016-10-18T09:49:27 | 2016-10-18T09:49:27 | 71,112,907 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 41 | cpp | Title.cpp | #include "Title.h"
#include "common.h"
|
a1d9caaf18525e54614225f1b5f4bbf8edd27714 | aea20bf993bcb7e0b8c5afbf036c6e072b282da2 | /src/Settings.cpp | 07045b80a3bf831f5ccc9cbad8219b11d8165d4a | [] | no_license | WANGKuo6/TobiiGame | e99e804e75cb3379d71ae838af2133ae9bb96499 | 04db13aea789c74aaf6aca6fe1d50418b82c629d | refs/heads/main | 2023-03-04T14:43:50.782168 | 2021-02-12T20:21:42 | 2021-02-12T20:21:42 | 338,420,363 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,505 | cpp | Settings.cpp | #include "Settings.h"
#include "Constants.h"
#include "Utils.h"
core::Settings::Settings(Window *window, MusicManager *musicManager, CursorMovementManager *cmm, Config *config) :
SubMenu(window, musicManager, cmm, config, "Parametres") {
}
core::Settings::~Settings() {
}
void core::Settings::dis... |
e6f70803d87a91403bded0eb268c125f732eb938 | 0b92557a16cdd9f0d78618a449f89ebef21e64ea | /P3/5.cpp | d13f54e8ea4d7b91a8e366d5b21ddc065609e0f4 | [] | no_license | clijiac/c--primer-pratice | 0df30f99a6df8a6879425d3e8ea23e6892c7abb3 | 9bb1c3e967b172fdbd50bbe7671890a7066f7523 | refs/heads/master | 2021-01-25T08:43:31.061628 | 2012-08-23T09:50:00 | 2012-08-23T09:50:13 | 4,419,355 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 286 | cpp | 5.cpp | #include <iostream>
#include <string>
using std::cin;
using std::cout;
using std::endl;
using std::string;
int main()
{
string getline1 ,getword;
// while(getline(cin,getline1)){
// cout << getline1 << endl;
// }
while(cin >> getword){
cout << getword << endl;
}
return 0;
} |
4745af971837263492fe59103caa7a77c0d7af6c | c2192b42b2326003683a33adefa25c3e7374daa1 | /src/reference_t.cpp | a33b5c3fe00c7d7cd158056a9e9a992c02bebd71 | [
"MIT"
] | permissive | masscry/deci.vm | 0e2ed883167a2a666ce375a9e0d90165595f66ff | e2126b6592f798b919de6219c32cbcc41f980e98 | refs/heads/develop | 2020-06-06T12:47:17.629507 | 2019-07-11T17:48:05 | 2019-07-11T17:48:05 | 192,744,102 | 12 | 1 | MIT | 2019-07-11T11:31:52 | 2019-06-19T14:03:33 | C++ | UTF-8 | C++ | false | false | 837 | cpp | reference_t.cpp | #include <deci.hpp>
namespace deci {
reference_t* reference_t::Create(value_t* ref) {
reference_t* result = new reference_t(ref);
result->refCount = 1;
return result;
}
value_t* reference_t::Release() {
value_t* result = this->ref;
this->ref = nothing_t::Instance().Copy();
return resu... |
ec0b66ddefa3ea1c57c61383067dd30645232710 | 656853d6def3b4a78ad371af62f93eaa61f40b9a | /include/smtl/select.h | 64c5c7f9f4491d8c3eb3ad248296f0e4c2c4b60b | [] | no_license | mikenz1000/smtl | 27927b281ededd3f232952c0b4b840e090ac75b7 | db2141b203f36c122dcaffc19fe8def8ed5608cb | refs/heads/master | 2023-07-11T07:46:45.835079 | 2021-08-22T20:40:56 | 2021-08-22T20:40:56 | 398,792,543 | 0 | 0 | null | 2021-08-22T20:21:18 | 2021-08-22T12:18:27 | C++ | UTF-8 | C++ | false | false | 666 | h | select.h | #ifndef SMTL_SELECT_H
#define SMTL_SELECT_H
#include "vector.h"
namespace smtl {
template<typename Input, typename op, typename Output=vector<>>
struct select;
template<typename T, T first, T... rest, typename op, T... output>
struct select<vector<first, rest...>, op, vector<output...>>
{
using value = typenam... |
c470d6dd6ff2dee1d3054838be591af72c3cf628 | 82886b905471c08a2890d1063676f332b1ac3508 | /test/kernels/bitwise_not_test.cc | 6c28c9554d4e21506b2723c1d7121b7ebc74ce9a | [
"MIT",
"BSL-1.0"
] | permissive | kpu/intgemm | 7a125b794ff2f300174994bd4f507b18293544e2 | f7401513da71758dacce52fed1c7855549abee59 | refs/heads/master | 2023-08-24T20:48:47.425081 | 2023-08-10T15:19:16 | 2023-08-10T15:19:16 | 132,884,342 | 54 | 19 | NOASSERTION | 2023-01-20T11:14:17 | 2018-05-10T10:18:13 | C++ | UTF-8 | C++ | false | false | 1,264 | cc | bitwise_not_test.cc | #include "../test.h"
#include "../../intgemm/aligned.h"
#include "../../intgemm/kernels.h"
#include <cstdlib>
#include <numeric>
namespace intgemm {
template <CPUType CPUType_>
void kernel_bitwise_not_test() {
if (kCPU < CPUType_)
return;
using vec_t = vector_t<CPUType_, int>;
constexpr static std::size_t... |
cb7dcf2efcbd525052dffc19807c4c4058619f04 | 82fbda2866a2e5e1d2426f74987eb736c87aab89 | /lab3sol/lab3sol/pieces.h | 8c0b9b12d7c88b71e266085d9d137f6f76499fb3 | [] | no_license | quinnwai/tic-tac-toe | 311ef177289c019e8f1f90ec052a8fa9ea974bde | 214764ba60a5b9f21749bcd2c98f40c1004d3614 | refs/heads/master | 2023-01-06T23:00:20.907642 | 2020-11-09T04:33:52 | 2020-11-09T04:33:52 | 311,223,519 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 508 | h | pieces.h | /*pieces.h
Author: Quinn Wai Wong
Email: qwong@wustl.edu
Purpose: setup for relevant game information for the game pieces
Note: I chose to leave the color variable within the game_pieces class just in case this code is needed for future labs
*/
#pragma once
#include<string>
/*struct game_piece holds relevant variable... |
3cc01a1c5843cce62f47ba93fed05fc5e2b7dde8 | a92b18defb50c5d1118a11bc364f17b148312028 | /src/prod/src/api/wrappers/ComProxyFaultAnalysisService.h | ea4f8b0e257c639846fdb85f8a2288f59055e523 | [
"MIT"
] | permissive | KDSBest/service-fabric | 34694e150fde662286e25f048fb763c97606382e | fe61c45b15a30fb089ad891c68c893b3a976e404 | refs/heads/master | 2023-01-28T23:19:25.040275 | 2020-11-30T11:11:58 | 2020-11-30T11:11:58 | 301,365,601 | 1 | 0 | MIT | 2020-11-30T11:11:59 | 2020-10-05T10:05:53 | null | UTF-8 | C++ | false | false | 7,788 | h | ComProxyFaultAnalysisService.h | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
namespace Api
{
... |
86db5693dbfa315502cb7fcb193ffcb982c31c11 | d313a67d684103b0ee7058c63a304c1b975abc0f | /open64/osprey1.0/be/region/region_bounds.cxx | 4a81d6d554bcf8393f173a179933d8e0b02eaf94 | [
"BSD-2-Clause"
] | permissive | xusx595/upc | 0bbef930d0f76926f049a034ba8d8e851559d0d1 | e17f40219d8594ab6bd281b2ff36d542798deac5 | refs/heads/master | 2021-01-17T05:28:28.941066 | 2015-03-22T21:39:40 | 2015-03-22T21:39:40 | 32,696,839 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,497 | cxx | region_bounds.cxx | /*
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of the GNU General Public License as
published by the Free Software Foundation.
This program is distributed in the hope that it would... |
08ef26fc14e67dae2ccd4d65e7fd764e1d180a61 | 93ec41975160e6123d37bdac68ab73ce518545e2 | /iris/shader.cc | a6ca02c993bc57c78c417d52ce0b12a7fe322be7 | [
"NIST-PD"
] | permissive | usnistgov/hevx | 97bdb6ac9e7a622216c87e0c70cc5d85905e01c1 | c2dd2a0c49516ba67cdc04ab36ffe49bbeba776c | refs/heads/master | 2020-03-27T11:35:45.084025 | 2019-09-18T14:19:43 | 2019-09-18T14:19:43 | 146,496,983 | 11 | 2 | NOASSERTION | 2019-03-09T21:40:17 | 2018-08-28T19:29:10 | C++ | UTF-8 | C++ | false | false | 14,515 | cc | shader.cc | #include "shader.h"
#include "config.h"
#include "error.h"
#include "io/read_file.h"
#include "logging.h"
#include "renderer_private.h"
#if PLATFORM_COMPILER_GCC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#endif
#include "SPIRV/GLSL.std.450.h"
#include "SPIRV/GlslangToSpv.h"
#include "glsla... |
f9e8c4b067bb173fa1ca71e1c606bead40257d19 | a4774ad99ed53ae7e5bd00d55898406fbceb4e37 | /Faithfallguys/imports.h | eb5d4361f8e10960b62cf33da5b3f64a5d422fd9 | [] | no_license | Lunarixus/Faithfallguys | 0cd0124ee2bf0e92093a8f8767f52488cb934e1f | 8bb8951fe28663384884b385f695f8f9e3091ef6 | refs/heads/master | 2022-12-01T18:04:36.005052 | 2020-08-18T02:08:07 | 2020-08-18T02:08:07 | 287,642,310 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 416 | h | imports.h | /*
* Imports needed for entire program
*/
// Well, this is obvious enough
#include <Windows.h>
// Global includes from WinSDK
#include <string>
#include <iostream>
#include <time.h>
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <thread>
#include <future>
#include <TlHelp32.h>
#include <psapi.h... |
62e82a39a9c17526d090ad9078a46471f727f7f4 | 8ca9069b8ee82f967791f4650d3e8cc16e1504f8 | /app/misc/misc.cpp | dbf57135d45fa1b89cefc506fe69a20e711cd41e | [] | no_license | a-pavlov/fantlab | de52871add375684521015b6b6741d1f00c89b3a | 9b7928c9f9e3af38c55efdc298231183cd9382bb | refs/heads/master | 2022-12-03T08:05:54.159611 | 2022-01-13T16:40:00 | 2022-01-13T16:40:00 | 120,786,968 | 1 | 0 | null | 2022-11-16T09:32:25 | 2018-02-08T16:31:02 | C++ | UTF-8 | C++ | false | false | 3,018 | cpp | misc.cpp | #include "misc.h"
#include <QRegExp>
#include <QStringList>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
QDataStream &operator<<(QDataStream& out, const WorkInfo& wi) {
out << wi.workId
<< wi.name
<< wi.title
<< wi.description
<< wi.workType
<< wi.wo... |
ce9e011dbbf540dc67b75ef84f61e366c91fcff2 | f78751c4ebc42120536b95b0f9ffbbfc6fccace1 | /pfba/deps/libcross2d/src/sdl2/sdl2_texture.cpp | f86c0a662e54d323d06898076493d499e8ac4cf6 | [] | no_license | jmota/pfba | b6abff6df3fc006b1b99ba892cb28d764aff3a07 | f239f3d2a1d156f1cfc055c38dfb732c9f9c272c | refs/heads/master | 2021-05-15T03:31:08.216170 | 2017-08-04T16:38:01 | 2017-08-04T16:38:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,803 | cpp | sdl2_texture.cpp | //
// Created by cpasjuste on 01/12/16.
//
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include "sdl2_texture.h"
SDL2Texture::SDL2Texture(SDL_Renderer *renderer, const char *path) : Texture(path) {
this->renderer = renderer;
SDL_Surface *temp = IMG_Load(path);
if (temp == NULL) {
SDL_LogE... |
cd2da65dae2c9bc09dbd03960136a754ddd37a5d | 4b0bbbe8aad650d8e50117ef3f1ab87d69686630 | /Capítulo 2 - Zeros/Método de Picard-Peano - Sistema de equações.cpp | 75b43fb1905a2d8dd67d10950bd18dc396447380 | [] | no_license | nunottlopes/feup-mnum | 007d908a7004e9a00165b88eac846bb5b1f75a25 | 5e61fc3199ff5ba2ad7b3a0226e7ff0818d25aae | refs/heads/master | 2021-09-03T08:40:29.712141 | 2018-01-07T16:29:45 | 2018-01-07T16:29:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 625 | cpp | Método de Picard-Peano - Sistema de equações.cpp | #include <iostream>
#include <cmath>
using namespace std;
long double funcaog1(long double x, long double y) {
return sqrt((x*y+5*x-1)/2);
}
long double funcaog2(long double x, long double y) {
return sqrt(x + 3 * log(x));
}
int main() {
long double xn = 4, yn = 4;
unsigned n = 0;
do {
... |
87bc7cdcd081121251128673b9ec116137102981 | 17f237d79814db31e800909560749a5896c34037 | /src/rime/gear/chord_composer.h | 4afa20c03647d92cbbaa58dc83e15a24852f984a | [
"BSD-3-Clause",
"MIT",
"GPL-1.0-or-later",
"LGPL-2.1-only",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | rime/librime | 0dbbeb896da87397b1cb15fbac7268a84a20aa91 | 84321901874ff5802a625bac04d462bf804e5dab | refs/heads/master | 2023-08-31T14:37:54.081480 | 2023-08-26T19:24:41 | 2023-08-26T19:24:41 | 3,776,878 | 2,972 | 621 | BSD-3-Clause | 2023-09-08T23:42:36 | 2012-03-20T15:45:06 | C++ | UTF-8 | C++ | false | false | 1,377 | h | chord_composer.h | //
// Copyright RIME Developers
// Distributed under the BSD License
//
// 2012-06-05 GONG Chen <chen.sst@gmail.com>
//
#ifndef RIME_CHORD_COMPOSER_H_
#define RIME_CHORD_COMPOSER_H_
#include <rime/common.h>
#include <rime/component.h>
#include <rime/key_event.h>
#include <rime/processor.h>
#include <rime/algo/algebra.... |
5f9ac59cc28e47cfe2fa830b2d162556b5257bd3 | efd7cfc63230d70c91018f909137635a9ee204ea | /ProgrammingPrinciplesAndPracticeUsingCPP/Chapter04/Exercise09.cpp | 9490a4d15dfe5954e0234be199859cfee6378e94 | [] | no_license | Mendeir/ProgrammingPrinciplesAndPracticeUsingCPP | 6a742f8c22b9fd7712d7495d6976c2bf64aa4055 | b90787e1a15c144c77b88be33438ac1f5df038af | refs/heads/master | 2023-02-17T19:46:36.490914 | 2021-01-18T08:11:23 | 2021-01-18T08:11:23 | 281,862,120 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 541 | cpp | Exercise09.cpp | // For an int it will only take 31 squares and for a double it takes many iterations
#include "std_lib_facilities.h"
int main ()
{
int rice { 0 };
int square_rice { 1 };
double drice { 0 };
double dsquare_rice { 1 };
for (int square = 1; square <= 1500; ++square) {
rice += square_rice;
... |
0c7e7dadeb73e6b1e4a3415f2fff7d7cd11af8fb | 04230fbf25fdea36a2d473233e45df21b6ff6fff | /longest-common-substring.cpp | d0ff776ccdb412ad3048ed80a7bd0d229e4cfc0b | [
"MIT"
] | permissive | ankiiitraj/questionsSolved | 48074d674bd39fe67da1f1dc7c944b95a3ceac34 | 8452b120935a9c3d808b45f27dcdc05700d902fc | refs/heads/master | 2021-07-22T10:16:13.538256 | 2021-02-12T11:51:47 | 2021-02-12T11:51:47 | 241,689,398 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,626 | cpp | longest-common-substring.cpp | #include<bits/stdc++.h>
#define faster ios_base::sync_with_stdio(false); cin.tie(NULL);cout.tie(NULL)
using namespace std;
int dp[101][101];
int rec(string &a, string &b, int n, int m){
if(n < 0 or m < 0)
return 0;
if(dp[n][m] != -1)
return dp[n][m];
rec(a, b, n -1, m);
rec(a, b, n, m ... |
b19ddc351bea3673e1c443ab19f7c12f1966e208 | b11a852fc6f8f521924c819b969809f033ddb4c6 | /list/后缀表达式计算2.cpp | d36e0fb6bd3a69ac96ea8fac5ceb43b851d3b531 | [] | no_license | metaStor/-_C- | 8b30a4a9079f1fff5200fcf9cafb9458935337ae | e33d188dfa9d4c0105082291ff2476cd70dd06cb | refs/heads/master | 2022-04-08T21:13:21.049434 | 2020-02-25T14:51:10 | 2020-02-25T14:51:10 | 227,164,573 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,422 | cpp | 后缀表达式计算2.cpp | #include <stdio.h>
#include "stdlib.h"
#include "string.h"
#include "../lib/LinkStack.h"
/*
从键盘上输入一个后缀表达式,试编写算法计算表达式的值。
规定:逆波兰表达式的长度不超过一行,以$符作为输入结束,
操作数之间用空格分隔,操作符只可能有+、-、*、/四种运算。
例如:234 34+2*$
对应四则运算式: (234+34)*2
*/
int compute(int a, char op, int b) {
switch (op) {
case '+' : return (a + b);
case '-... |
f4c9c064c60b64dcf91a6cd609586facf8947182 | 841b36f2771a2eb840e314416a043c3b7dc16e97 | /VC++/FirstStepMulti/FirstStepMultiDlg.cpp | c3547808d6b7e62d203d079b9309f31fc8ec8d8e | [] | no_license | LanTenggit/MindVisionCamerasSDK | 987416983680c6f8eb43f8540bae12d912fec30e | 7a34cb6ad5b923d17a1543cf54a99c4daaa9d452 | refs/heads/master | 2023-01-03T18:54:15.643503 | 2020-11-05T06:23:18 | 2020-11-05T06:23:18 | 310,209,176 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 7,389 | cpp | FirstStepMultiDlg.cpp |
// FirstStepMultiDlg.cpp : 实现文件
//
#include "stdafx.h"
#include "FirstStepMulti.h"
#include "FirstStepMultiDlg.h"
#include "afxdialogex.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CFirstStepMultiDlg 对话框
CFirstStepMultiDlg::CFirstStepMultiDlg(CWnd* pParent /*=NULL*/)
: CDialogEx(CFirstStepMultiDlg::IDD, p... |
9a37595ec3392e96986a52f8308039fd23251a3d | f5b5ab44d8a4a4a3cfc3fb0233abb7899233cbe0 | /src/bhash.h | acd04f7d6bd985a9acbfe747ead30bf3a1d9730e | [
"MIT"
] | permissive | jdart1/arasan-chess | da99eec7dcab747992064dc882a903098f8b0a27 | 1d74b80c4684bfafbd008daa5fb1550f69feba21 | refs/heads/master | 2023-09-06T05:16:47.773438 | 2023-09-03T22:47:01 | 2023-09-03T22:47:01 | 10,220,977 | 120 | 39 | NOASSERTION | 2023-09-08T02:26:58 | 2013-05-22T13:52:32 | C++ | UTF-8 | C++ | false | false | 1,778 | h | bhash.h | // Copyright 1992-2015, 2021 by Jon Dart. All Rights Reserved.
#ifndef _BOARDHASH_H_
#define _BOARDHASH_H_
#include "board.h"
#include <cassert>
extern const CACHE_ALIGN hash_t hash_codes[64][16];
extern const CACHE_ALIGN hash_t ep_codes[64];
extern const CACHE_ALIGN hash_t b_castle_status[6];
extern const CACHE_AL... |
9344e2f9b4f9e052967c4016e7637fb5ae6b39f6 | cc410bba79b3d4ac144d8f81d18c2a1965d24a06 | /Art Institute of Vancouver/Semester_5/VGP220 Algorithms and Data Patterns I/assignments/Vehicle Polymorphism/vehiclepolymorphism/cNode.h | d8997228060672978219bfcc257cea1e362efa00 | [] | no_license | Khillasaurus/School | 6d1ffc96e4c1d9a28f99cc423ce5e0bdea370380 | d3c8cefef74ff8786bb172cd4c8925d9bb94af5b | refs/heads/master | 2020-03-30T05:53:48.030096 | 2015-08-07T19:47:03 | 2015-08-07T19:47:03 | 38,567,740 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,223 | h | cNode.h | //====================================================================================================
//File: cNode.h
//Created: 2012/09/09
//Copyright: Daniel Schenker
//====================================================================================================
#ifndef CNODE_H
#define CNODE_H
//========... |
cd9c5dfd1dcfd01810c2d9ce35954c7444f037e5 | f2fd56b840cc4e7cda0cd1bbbac25665fda8ea10 | /factory/registerclass - 副本.h | eabc960d9a1f44bb9453034f7114fbf9efe7c2d2 | [] | no_license | HAERBINWINE/TestMicrFrame | acee50c5e1d54e7aaa4d8f9b5864a639577e7c51 | 1fb3a6d017e77ffb72df1db1ec9419f4b5dd1bce | refs/heads/master | 2020-09-24T16:30:09.558239 | 2019-12-05T06:17:22 | 2019-12-05T06:17:22 | 225,798,824 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,176 | h | registerclass - 副本.h | #ifndef REGISTERCLASS_H
#define REGISTERCLASS_H
#include "factory.h"
//该宏定义实现了一个动态类的创建,
// ## 合并操作符 将操作两边的字符合并成一个新的标识符,合并后新的标识符不是字符串
// # 构串操作符 它将实参的字符序列(而不是实参代表的值)转换成字符串常量, 转换后是一个字符串
// class className##Helper : 如className是FileItem,程序将会生成一个FileItemHelper类。
// 构造函数 : 调用工厂类的注册函数,实现了类名和生成类实例函数的绑定
// CreatObjF... |
fee0a08ce35d021473c9d5646a5937ff61ac78d8 | 974389431527e451ce83049b11cd3dc42780108d | /phase_1/eval/walker/variants/unpatched/src/email.hpp | 0f8885f8bc9f186a0d55ff4b469effe6518af657 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | cromulencellc/chess-aces | 21d8e70c8d9853a922ca0c90ffdd2c79ba390fb0 | 8ea5b0d75ddbf45fd74a7b8c5ca03fc4955eba8b | refs/heads/main | 2023-05-24T01:13:07.917910 | 2022-11-02T00:56:52 | 2022-11-02T00:56:52 | 351,277,450 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,283 | hpp | email.hpp | #ifndef __EMAIL_HPP__
#define __EMAIL_HPP__
#include <iostream>
#include <vector>
typedef struct header {
std::string field;
std::string field_data;
} header;
typedef struct message {
std::vector<std::string> flags;
std::vector<header *> h;
int body_length = 0;
std::string body = "";
struct message *messa... |
cf0cfbd932a3697f97dfda01874fa94d956d285f | ca5f51c4fecdb3cca7ffc0544c17de0c412086f8 | /Data structures/Advanced/Disjoint Sets/Dish owner.cpp | fb982aacc65d5ae8899ab1e688b828bb06075fa3 | [] | no_license | avinashw50w/ds_algo | f517bbb326a922258e6ef7816e6c06593a2d06aa | bc73bd617486ab8fcbbdd8a076cacd3761c6c954 | refs/heads/master | 2023-07-22T17:44:44.815336 | 2023-07-13T07:38:22 | 2023-07-13T07:38:22 | 193,303,550 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,843 | cpp | Dish owner.cpp | /*N chef's are there. Each chef has a dish which is given a value (denoted by S[i]). You need to answer 2 queries :
1. 0 x y : Chef containing dish x competes with chef containing dish y.
If both dishes belong to same chef print "Invalid Query!" ,
otherwise the winner of the round will obtain all the dishes of th... |
404b174cb0d8e1df616ad2a9ed9fdf5e93781b43 | e6fd74ac5a8283729c08e05dd045dff9fdaeb3cf | /1001.cpp | aded01130d6896a204511f998cb673370c86ac4c | [] | no_license | zenglh666/POJ | 137b7fa8e66ad4ccf660b587065daa1290a1ff9f | d81e1ea1c8119caa58e07ded81faa305f6bf13e6 | refs/heads/master | 2021-01-12T13:39:49.639058 | 2016-09-26T05:15:05 | 2016-09-26T05:15:05 | 69,213,943 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,225 | cpp | 1001.cpp | #include "stdio.h"
#include "string.h"
#include "stdlib.h"
#define max_len_r 6
#define max_len_result 150
int add_r(char *a, int len_a, char *b, int len_b)
{
if (len_a >= len_b)
{
char car = 0;
for (int i = 0; i < len_b; i++)
{
char res_i_j = a[i] + b[i] + car;
a[i] = res_i_j % 10;
car ... |
071a9d5b6fc89aee6d0a85b58139558b7d181757 | 1a09ce69a4548b02c5901b0963c9286801cba849 | /sentencepiece/normalizer.h | 8803839548bdfcf06ea4c13f46b86682a5004dce | [
"Apache-2.0"
] | permissive | LieluoboAi/sentencepiece | aa9a0a95394b8dd2a09d63ea5d1c6de66121701e | 8bbe66cf2fb7ac3c022fc59e39f8405a89a49b22 | refs/heads/master | 2020-03-26T13:48:55.624779 | 2019-12-19T06:43:12 | 2019-12-19T06:43:12 | 144,958,118 | 0 | 1 | Apache-2.0 | 2019-12-19T06:43:13 | 2018-08-16T08:14:45 | C++ | UTF-8 | C++ | false | false | 4,530 | h | normalizer.h | // Copyright 2016 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
b418ca80b89814f69c0ff536fe767f9c4a8df1d7 | 96cebee3a91cfbef0b1548ab2aad51d10d821d5f | /example.cpp | ddbdef41e3282cc72d662e02a5fd67770cc6c691 | [] | no_license | ksedgwic/antlr-cpp-threading-example | 36bb1f2e3b3e68ffd917701ac0ec5d7ab5210419 | cd5fcaa630c21a3c64b360c42615ce0bcd9b4b33 | refs/heads/master | 2021-01-19T20:51:07.218467 | 2017-04-18T02:40:00 | 2017-04-18T02:40:00 | 88,568,124 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,835 | cpp | example.cpp | #include <cstring>
#include <iostream>
#include <sstream>
#include "antlr4-runtime.h"
#include "PredicateExpressionLexer.h"
#include "PredicateExpressionParser.h"
#include "PredicateExpressionBaseVisitor.h"
using namespace std;
using namespace antlr4;
// The throwstream macro assembles the string argument to the
//... |
0552a5ac75d8aed536c576ad2ec6f9425c745138 | e0551a625376c4f794ee7547772a2578d03a4cd5 | /Memory_Management_Algorithms/Worst_fit.cpp | dd02e0c98f96307af63ace1bb96d3cdac0ba02a3 | [
"MIT"
] | permissive | Siddhartha-Dhar/Operating_System_Programs | 752d79f5386d6d2c47262c893e5c467aa1ea83cd | 5bbfa8f82e270bef1e0511e82b3678de6b42d713 | refs/heads/main | 2023-07-14T20:11:41.619461 | 2021-08-07T13:08:23 | 2021-08-07T13:08:23 | 387,990,968 | 1 | 1 | MIT | 2021-08-07T13:08:24 | 2021-07-21T04:18:24 | C++ | UTF-8 | C++ | false | false | 1,018 | cpp | Worst_fit.cpp | #include<iostream>
#include"Query.cpp"
#include<cstdlib>
using namespace std;
//.................................................Input Array
void inut_arr(int n, int *A, string s){
for(int i=0; i<n; i++){
cout << "\n" << s;
cin >> A[i];
getchar();
}
return;
}
//........ |
5d0b71e08068d592834585b95dcadd2d9a7804c9 | 58a3dd96d5c234ce4a9a41cd10702f9a5eb24d11 | /src/Form.h | 9c6e01c35f749f652b5582aa04b5102343a2582a | [
"MIT"
] | permissive | vitalych/GUI | d3c0711bf63084f255dc0dedf559310f23b34be6 | c2c82caec31c5682f31ecaa38655a1dd39983fd0 | refs/heads/master | 2021-01-01T23:13:25.373792 | 2020-02-23T19:35:05 | 2020-02-23T19:36:15 | 239,386,166 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,492 | h | Form.h | /// Copyright (c) 2020 Vitaly Chipounov
///
/// 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 use, copy, modify, merge,... |
7527a21986824e9ce2b130fa0404930442675c3a | 90a335e159f1d3f9a353fd210c55f6c52b2cb886 | /src/submesh.cpp | 179cc69142915eea1f94d93c3d0823c9dc4a5219 | [] | no_license | robinfaury/engine | 6ec902b2a8c5db0e99225dcb491c56b5be930ff1 | 533b9fd795738410ff62c736a5fb0ed35f0584bb | refs/heads/master | 2021-01-20T10:32:35.743664 | 2016-08-26T16:00:55 | 2016-08-26T16:00:55 | 61,558,300 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,390 | cpp | submesh.cpp | #include "SubMesh.h"
////////////////////////////////////////////////////////////////////////////////////////
// //
////////////////////////////////////////////////////////////////////////////////////////
SubMesh::SubMesh(std::string n... |
bfde2de77fc99b1af436676af3f7939c2deae4c6 | 012ce8a2a7671ef22803c664be0bc084a9e53de3 | /src/returnPosition.cpp | af210f63fa0eafb083ce7e0d1bb97fee64245c91 | [] | no_license | ha-younes72/moleculardynamics | a855b2a0e64fcb77c5d58968e01affda048f07b3 | 612d193df7e26a4e8fe2b2ca1899ed87822514c3 | refs/heads/master | 2020-04-15T12:32:29.926231 | 2019-01-11T09:59:05 | 2019-01-11T09:59:05 | 164,676,180 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 376 | cpp | returnPosition.cpp | #include"../include/header.h"
void MolecularDynamics::returnPosition(ofstream& position){
//position.open(ios_base::app);
//position << N <<endl;
for (int row=0; row<N; row++){
position << 1 << '\t';
for (int col=0; col<dimension; col++)
position << Particles[row].returnr(col) << '\t';
if (dimension == 2)... |
ce80ad437625cae124d1ee0fcddc0711042db02e | 146c65138cf8665918193c74a185ceab0ba7009b | /src/arch/alpha/faults.cc | 3433844c1cd2dcc2b7b7eec4fccfd52aacf4bca4 | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"MIT"
] | permissive | harvard-acc/gem5-aladdin | b962dd2103e938354c05d81e6843c145ac05e085 | d4efbee56d71f9609eab85393eff58f5dbf7763c | refs/heads/master | 2022-11-11T12:25:29.032584 | 2022-01-21T06:26:00 | 2022-01-21T06:26:00 | 70,526,994 | 194 | 66 | BSD-3-Clause | 2022-10-06T04:50:52 | 2016-10-10T20:41:00 | C++ | UTF-8 | C++ | false | false | 7,775 | cc | faults.cc | /*
* Copyright (c) 2003-2005 The Regents of The University of Michigan
* 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
* not... |
62ec259724ae9f52c67f8405fedf9c7936578bfa | 73706ea168cfccaed81e4aaf5d5f42f90b9a00d2 | /cpp-lang/data-structures/LinkedList.cpp | b6ab6b1a6d7c1fbdadc43587f4ae95f721e7763f | [] | no_license | sushantmane/coder | 9cad2bc79868d62f11e954c48412124ebd866bec | e5886be84129d562e386c745543f6db10ed3edbd | refs/heads/master | 2021-05-16T01:49:20.369246 | 2021-03-08T06:39:44 | 2021-03-08T06:39:44 | 41,724,461 | 0 | 0 | null | 2021-03-31T22:00:29 | 2015-09-01T07:43:44 | Java | UTF-8 | C++ | false | false | 493 | cpp | LinkedList.cpp | //
// Created by Sushant Mane on 10/24/19.
//
#include <iostream>
#include "LinkedList.h"
void LinkedList::addNode(int data) {
Node *n = new Node();
n->data = data;
n->next = nullptr;
if (!head) {
head = n;
return;
}
Node *ptr = head;
while (ptr->next) {
ptr = ptr->... |
94ee8ff5c1ae6764221b6714a145eedc2eef29f9 | ba90cba096ba4e1a1de31af346e0b769c17ccc9e | /include/SLList.hpp | 6c9fc9e632702d747bd112f7ee584d10f59a759d | [
"MIT"
] | permissive | KaravolisL/ARM-ISA-Simulator | f5ed222eff2d82c6fdad8ec822fec856570419c9 | cc5b927ff40054d912e208a469545089125e6911 | refs/heads/master | 2023-01-02T03:35:05.483981 | 2020-10-21T00:35:37 | 2020-10-21T00:35:37 | 253,665,149 | 0 | 0 | MIT | 2020-09-11T21:59:09 | 2020-04-07T02:19:19 | C++ | UTF-8 | C++ | false | false | 10,434 | hpp | SLList.hpp | /////////////////////////////////
/// @file SLList.hpp
///
/// @brief Declarations and implementation for
/// singly linked list
///
/// @author Luke Karavolis
/////////////////////////////////
#ifndef SLLIST_HPP
#define SLLIST_HPP
// SYSTEM INCLUDES
#include <iostream> // For std::cout
// C PROJECT INCLUDES
// (Non... |
c3020e7cd35708b0179f402f48b463d101cce44d | fb1f2dfbb82409ee0f1c02e9a72f2bb1131b19bf | /Fixing_Issues/test.h | 2af59bb00bea46dad5f1d7065f0144a5ec9fea75 | [] | no_license | GeorgeDanicico/Object-Oriented-Programming-Year1 | d18b1d6653cd8a46679d34887472261ee4e94a71 | 6cab2a4915a47da84dbd18e414d2711dd1ffa8ce | refs/heads/main | 2023-06-17T21:50:03.373761 | 2021-07-13T13:44:11 | 2021-07-13T13:44:11 | 349,129,739 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 130 | h | test.h | //
// Created by georg on 6/21/2021.
//
#pragma once
#include "Service.h"
class test {
public:
static void test_all();
};
|
5f3b6084bab23be7690f934878bce2b7260e1d83 | b7c074eb93cb1fcb81a6ab36465ed04f0b169eb8 | /openvibe-2.2.0-src/extras/plugins/processing/stimulation/src/box-algorithms/ovpCBoxAlgorithmOpenALSoundPlayer.cpp | 136a1bf321d0ff3c43a1b4b073b0acc9ddcee204 | [] | no_license | TristanVenot/openvibe2.0 | 824fdd65b14c97a6ffa7de515cdde3508189d0f3 | f481d3bbe6e3ce9b7449f08965a4a0dd7cdbc9fc | refs/heads/master | 2020-04-28T17:00:46.329723 | 2019-03-14T08:39:05 | 2019-03-14T08:39:05 | 175,430,833 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,856 | cpp | ovpCBoxAlgorithmOpenALSoundPlayer.cpp |
#if defined TARGET_HAS_ThirdPartyOpenAL
#include "ovpCBoxAlgorithmOpenALSoundPlayer.h"
#include <tcptagging/IStimulusSender.h>
using namespace OpenViBE;
using namespace OpenViBE::Kernel;
using namespace OpenViBE::Plugins;
using namespace OpenViBEPlugins;
using namespace OpenViBEPlugins::Stimulation;
using namespac... |
f2fcd368ed18f6107a1b2218ade09cb6b6e8a4b6 | a181564a3b22c176a50e03669106a923c600f03d | /include/tern/loggable.h | db98b24112479580acefdaed319c276d6ac9342f | [
"BSD-2-Clause"
] | permissive | columbia/xtern | d22e80a63fbe52bf43291944adbd5133f1a9b5d4 | 1632f127537d0afc3945fd73aa1dce46c46f7904 | refs/heads/master | 2022-11-08T02:11:12.673255 | 2013-11-09T07:42:05 | 2013-11-09T07:42:05 | 9,386,039 | 4 | 6 | NOASSERTION | 2022-10-23T23:04:02 | 2013-04-12T03:45:54 | C++ | UTF-8 | C++ | false | false | 3,064 | h | loggable.h | /* Copyright (c) 2013, Regents of the Columbia University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this li... |
2db8c1e0311b94f6a9d8894b76e0dbc277879d80 | 1f4faaed016ad93565cbc510380ad174e872020b | /3DViewer/test/ch3_frameBuffer.cpp | 787e7984e82bef761ced9c09ef6cc5dbd247a306 | [] | no_license | Kpure1000/3DViewer | 529f3a485b069cd2d79ecc0a6919379f77a5e228 | 4f4c29cb2748da3db96bb0460281bf7062d597f3 | refs/heads/master | 2023-03-31T21:49:32.070138 | 2021-04-09T07:00:02 | 2021-04-09T07:00:02 | 311,005,131 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,719 | cpp | ch3_frameBuffer.cpp | #include "ch3_test.h"
#include"../render/Render.h"
#include"../graph//Graph.h"
#include"../event/Event.h"
#include"../system/System.h"
#include"../util/Util.h"
using namespace rtx;
using namespace std;
using render::Window;
using graph::CubeMesh;
using graph::SphereMesh;
using graph::Sprite;
int ch3_frameBuffer_main... |
d7546dde41c8f0f0b10444140520276b74a0520f | a49e352b8a3ce0be7fe9a82ed3c38863737c23c8 | /src/additional_parts_other.h | be0748512322e34a2b2f2b10d9bacfcc0deb3a94 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | VNNikolaidis/nnlib2Rcpp | 7c954d8d0045746a693b426a3575381f493e0f37 | 1e791f75bf39118da0334cb5c722582afb7b0ed0 | refs/heads/master | 2023-04-12T10:19:57.047592 | 2023-04-05T08:28:07 | 2023-04-05T08:28:07 | 247,648,982 | 11 | 5 | NOASSERTION | 2021-05-23T10:59:41 | 2020-03-16T08:30:13 | C++ | UTF-8 | C++ | false | false | 3,545 | h | additional_parts_other.h | #ifndef NNLIB2_ADDITIONAL_PARTS_OTHER_H
#define NNLIB2_ADDITIONAL_PARTS_OTHER_H
#include "nn.h"
using namespace nnlib2;
//--------------------------------------------------------------------------------------------
// example for manual.pdf (vignette)
class MEX_connection: public connection
{
public:
// model-spec... |
e810ffedf98746f461a6c81ce50ea139f72ff7be | 77dc72febe17b0e092af9c57c0b4062ee7876983 | /RECIPE.cpp | 7aa8a0ef24bbb5062645c68806dd497811948acd | [] | no_license | gautamits/codechef | 82bc0190e9afe0dc3b428b5214600e97ef1fdb95 | 4265b020bf1d22dfafd19aef08975bd748c54196 | refs/heads/master | 2021-09-08T18:10:08.602923 | 2018-03-11T18:18:15 | 2018-03-11T18:18:15 | 105,926,417 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 555 | cpp | RECIPE.cpp | #include <bits/stdc++.h>
using namespace std;
int min(int a,int b){
return a<b?a:b;
}
int max(int a,int b){
return a>b?a:b;
}
int hcf(int a,int b){
int mi=min(a,b);
int ma=max(a,b);
int temp;
while(ma%mi!=0){
temp=ma;
ma=mi;
mi=temp%mi;
}
return mi;
}
int main(){
int t;
cin>>t;
int n;
int h;
while(t... |
a1d1bbd69368fbccb9e4f698c845678d5563494b | 3a4bdd47478af76ade46c4fc85d5de292deb64ff | /femmd2D/src/driver.cpp | 590a03a0faa09e74b4e74a0abe395243143d6a14 | [] | no_license | valeraml/femmd_old | a5a1fd727bdda8d14b99e7f65215df2deda3b33c | eefa4a53b734a0833456326f530cc4a39c59c89e | refs/heads/master | 2021-06-12T04:31:41.836318 | 2016-12-15T21:19:51 | 2016-12-15T21:19:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,464 | cpp | driver.cpp | #ifdef _WIN32
#include <direct.h>
#elif defined __linux__
//#include <sys/stat.h>
#include <unistd.h>
#endif
#include <omp.h>
#include <cstdlib>
#include <iostream>
#include <fstream>
#include "md3dsystem.h"
void runInterpreter(int argc, char *argv[]);
/*
TODO
fixed types bug
evalProps and accumProps kernels //DON... |
cbaa399d932b791b0d583501626cb4b1067de89b | 2151bfe9beabe9dbe6bc9cc69233c8a1fae546fd | /source/CPP-Mini-project/Client.hpp | 653b5c25a45f5173f24fb1fd8571bc983ba34ebc | [] | no_license | 99002620/cpp-mini-project | 37ad874e4ba05cfa5c109e76c18bb822ea79401e | 0901adf3391e2253758965838cd22670e2c7e6bf | refs/heads/main | 2023-01-05T13:43:18.996177 | 2020-11-10T11:30:43 | 2020-11-10T11:30:43 | 304,583,055 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,752 | hpp | Client.hpp | #ifndef HEADER_H
#define HEADER_H
/**
Author: Pravesh Gaire
Class client contains the methods used for graphics implemented using gtkmm-3.0 and socket implemented in linux
Works on Ubuntu provided that gtkmm is installed
*/
#include<gtkmm.h>
#include<iostream> //cout
#include<string> //string
#include<s... |
61ce48dd11d25e8fcb6b003c1e7daab8104749e6 | b3e68160720b83bf92bf6d9aaac87f104fedad1f | /p6_64位整数乘法.cpp | 4d6e12e394661d2e0c674feb688d2fdbe2d49750 | [] | no_license | wjfjfm/Algorithm-competition-advanced-guide | 8bca9db4f15bcc99bf95cba280e436fba367f842 | 0b76c4db6516e705d51ae7309abd977a22af3ea4 | refs/heads/master | 2022-03-14T02:33:26.118805 | 2019-11-11T05:38:34 | 2019-11-11T05:38:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 362 | cpp | p6_64位整数乘法.cpp | #include<iostream>
long long mul(long long a, long long b, long long p){
a %= p, b%= p;
long long c = (long double) a * b / p;
long long ans = a * b - c * p;
if (ans < 0) ans += p;
else if (ans >= p) ans -= p;
return ans;
}
int main(){
using namespace std;
long long a,b,p;
cout<<"input a b p"<<endl;
ci... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.