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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5de0c9de82748e6187f072e515cc91baaa252130 | d0115491be5af5bcd2570d49bf9f77b7a1128941 | /Parallelizer/ParallelConsumer/src/tests/test_vector_add.h | 65b73492936aceedf49d35f1c63435b45afecdc6 | [] | no_license | campisano/GPGPU-for-dummies | b5cf18e17c39b3fe6590f5396b678061e650cfa0 | 23603488cfabede333b25d39daf601c52bc1419d | refs/heads/master | 2020-04-05T23:48:50.864585 | 2013-11-24T23:32:47 | 2013-11-24T23:32:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 107 | h | test_vector_add.h | #ifndef _TEST_VECTOR_ADD_H
#define _TEST_VECTOR_ADD_H
namespace test_vector_add
{
void start();
}
#endif
|
d3c1227ccc019a93fb5bc6166693f6a1d1244f63 | 19164bf117ecb486c94311cb8b2936309b363514 | /Sorting/Bubble_sort.cpp | 35513058f87304c441698bebd1de7608ade1dd96 | [] | no_license | geekyanurag/Coding-Interview-Preparation | 10a3b5d9c2a9b71483846c0f51751cef24baa2e4 | 24f11e8ddc9c7c573aa961a9ebb3afd16234a27b | refs/heads/master | 2021-05-25T13:01:20.680206 | 2021-04-27T06:41:28 | 2021-04-27T06:41:28 | 253,764,719 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 496 | cpp | Bubble_sort.cpp | #include<bits/stdc++.h>
using namespace std;
void swap(int &a, int &b){
int temp = a;
a = b;
b = temp;
}
void bubblesort(int arr[], int n){
for(int i =0; i<n; i++){
for(int j = 0; j<n-i-1; j++){
if(arr[j] < arr[j-1])
swap(arr[j], arr[j-1]);
}
}
}
int mai... |
2ac45342c79e7300e14ef28f338c8b52096d38e8 | 76b7e459b143c8481b044c60a68c768a0848b8f6 | /Codeforces/Round529/C.cpp | 71a01d80fe0f6f0680bae9dc9122bb02819b577c | [] | no_license | hsnavarro/imepp | f3b195e5ed4e453eac9b73d5a77b39f44917435f | eb90580caea91b48e7d541db92531ba3fd2b82c1 | refs/heads/master | 2021-11-28T07:25:05.778476 | 2021-09-10T02:20:32 | 2021-09-10T02:20:32 | 145,646,296 | 0 | 1 | null | 2021-09-10T02:20:33 | 2018-08-22T02:40:54 | C++ | UTF-8 | C++ | false | false | 1,055 | cpp | C.cpp | #include <bits/stdc++.h>
#define db(x) cerr << #x << " == " << x << endl
#define _ << ", " <<
#define cl(x, v) memset((x), (v), sizeof(x))
using namespace std;
#define pb push_back
#define st first
#define nd second
typedef long long ll;
const int N = 1e6 + 5;
int n, k, cnt;
vector<int> f, res, st;
print(vector<in... |
ecf8c89ea35566ee5bb44e22b225da658df6b58f | 73c086bd12377ca9f781e5a3578fe7ea82b08ca9 | /hhh 1.cpp | ddf4fa01773aad07bb07ed3fcbcc518e4a9a625f | [] | no_license | SuvonkarKundu/Problem-solving | 61c6742fe8f5d68b81811093ecdb60666be07b01 | 2191ad1b93ce58bbab30e38345c4b3918d779d93 | refs/heads/master | 2022-01-25T01:04:07.930011 | 2022-01-11T18:16:04 | 2022-01-11T18:16:04 | 170,992,134 | 0 | 1 | null | 2022-01-11T18:16:05 | 2019-02-16T10:41:53 | HTML | UTF-8 | C++ | false | false | 308 | cpp | hhh 1.cpp | #include<iostream>
using namespace std;
class myclass{
int i,j;
public:
myclass(int a,int b);
void show();
};
myclass::myclass(int a,int b)
{
i=a;
j=b;
}
void myclass::show()
{
cout<<i<<' '<<j<<"\n";
}
int main()
{
int x,y;
cout<<"Enter two integers:";
cin>>x>>y;
myclass ob(x,y);
ob.show();
return 0;
}
|
28056f8f64889066298bac3dbc40a270f5cb7641 | 2f10f807d3307b83293a521da600c02623cdda82 | /deps/boost/win/debug/include/boost/test/tools/detail/it_pair.hpp | 8ef6183c5b71167b27d056654eb013f8d2ea8c5f | [] | no_license | xpierrohk/dpt-rp1-cpp | 2ca4e377628363c3e9d41f88c8cbccc0fc2f1a1e | 643d053983fce3e6b099e2d3c9ab8387d0ea5a75 | refs/heads/master | 2021-05-23T08:19:48.823198 | 2019-07-26T17:35:28 | 2019-07-26T17:35:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 129 | hpp | it_pair.hpp | version https://git-lfs.github.com/spec/v1
oid sha256:2f3f32a94f4fcb65f1116f6ed9415ae16c95604cbf3422c8898ce689ab62c858
size 2268
|
468638601dcc9efd28a277b9403cf664851b9cfa | dfb2947d51ffa5db969bf88411cc6cf61f1c4407 | /191_331_Yurin/Httpcontroller.cpp | 0b6c170554b3c3ef2af5a7fae0ae9f7c28cde014 | [] | no_license | DaniilKKK/WEB-PROGRAMMING | 43a47211d2c230478e4f00623efe3c34cb818427 | 9cd8f3383d2c67f493573e95e7c923bde7e4e85c | refs/heads/main | 2023-06-17T18:53:19.673141 | 2021-07-16T05:37:41 | 2021-07-16T05:37:41 | 345,779,397 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,353 | cpp | Httpcontroller.cpp | #include <QDebug>
#include <QEventLoop>
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QUrl>
#include <QJsonDocument>
#include <QEventLoop>
#include <QJsonObject>
#include <QJsonArray>
#include <QtWidgets/QTableView>
#include <QCryptographicHash>
#include "Htt... |
ab7304e7405879cb17c45a57ac1e21540226d398 | 07f043db04d26a540ff1ff4b722fe25b06b5ea2a | /src/manager.h | ddec578aa3ec6579db495f7d7259bada086d4329 | [] | no_license | tamsri/chinese-restaurant-simulation | 8e5568befd7ebdf4adc973767b7b818f21cbab37 | 849e647fb82965965c8e8abd218d867a3fbe00b6 | refs/heads/master | 2022-11-17T22:48:57.320900 | 2020-07-12T09:02:40 | 2020-07-12T09:02:40 | 229,351,792 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 392 | h | manager.h | #ifndef MODEL_MANAGER_H
#define MODEL_MANAGER_H
class CustomerGroup;
struct ChineseRestaurant;
class Manager final {
public:
explicit Manager (ChineseRestaurant * chinese_restaurant);
void Manages (unsigned int current_time);
bool IsFree ( ) const;
void MakeFree ( );
void MakeBusy ( );
private:
ChineseRestauran... |
da977376e0c76eb0bbf9931a6073e40213225e5e | 3d4ccfd3cf15ecd2646cec26a46a703612a4e38b | /cmMarketMaking/cmMarketMaking/header/strategy/cmTestOrder01.h | f0b4cfdb077cc7a59241b08356396c3dfa3dccb7 | [] | no_license | haosongQuant/marketMaking | 50e446beada8d79641880a6ddd6403925da63cb9 | 981a6c00a6e1b633bb2edb6a48485e6a5f80b57f | refs/heads/master | 2020-05-04T00:53:49.713367 | 2019-06-02T15:00:06 | 2019-06-02T15:00:06 | 178,893,537 | 2 | 1 | null | null | null | null | GB18030 | C++ | false | false | 2,433 | h | cmTestOrder01.h | #pragma once
#include <list>
#include <iostream>
#include "infrastructure.h"
#include "threadpool\threadpool.h"
#include "baseClass/strategyBase.h"
#include "baseClass/orderBase.h"
#include "baseClass/Utils.h"
using namespace std;
enum enum_cmTestOrder01_strategy_status
{//策略状态,决定是否发送新的委托
CMTESTORDER01_STATUS_INIT,
... |
6cb48eced3854cdbb763c56d7186427464384b23 | 7f951ce7cf4cba882be4c610dec973b58c9a5d5b | /2019/luogu/P6170_redo.cpp | b2aa0c64e1b45c92ce0bf95b9e2bdd802767bfa3 | [] | no_license | weathon/USACO | 9d1b0e23a7181a7fbe50e7870771d97f7b607d2f | 4f3cbd445886387839aecbd86852d1e3e510c91f | refs/heads/master | 2021-08-08T02:04:57.968221 | 2020-12-17T06:36:21 | 2020-12-17T06:36:21 | 231,851,628 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,946 | cpp | P6170_redo.cpp | #include <iostream>
#include <fstream>
#include <bits/stdc++.h>
using namespace std;
#define MYMAX 100005
int repeat[MYMAX];
int N;
int myloop[MYMAX];
int myloop_backup[MYMAX];
long long ans;
inline long long loopdis(int a, int b)
{
if (b >= a)
return b - a;
else
{
return N + b - a;
}... |
f438ca2c885dc0206c6f34a45aec43779a8ad631 | e49e892e58e005ec8b6c07a0b16afeff88b161d8 | /5_cpp_examples/1_classroom_codes/19g/18_Stack_with_template.cpp | 7f1a6e597a3d0e2341943bcd1f04ee09af7fd4bc | [] | no_license | zyavuz610/learnCPP_inKTU | e59676e250f011ff9b5dec86203a0b069c02219f | c6195793bf3464e10d022b852ef486e0c4e3f6da | refs/heads/master | 2020-05-17T08:15:36.754448 | 2020-03-28T16:27:25 | 2020-03-28T16:27:25 | 183,598,702 | 8 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 2,033 | cpp | 18_Stack_with_template.cpp | #include <iostream>
using namespace std;
//------------------------------------------
// template kullanmadan
/*
int Max(int _num1,int _num2){
if(_num1 > _num2){
return _num1;
}
else{
return _num2;
}
// return (_num1>_num2)?_num1:_num2;
}
float Max(float _num1,float _num2){
// 2. yazım şekli
retu... |
0b3278c8054af781c53e40b4e9e957c635c571dd | 4613c0fd08530adf61cbae5e425b9f9e1d302588 | /src/input/actionkeymapping.cpp | b4f1be87956ad790a20874bdff3018bbff4aadfe | [] | no_license | xchrdw/voxellancer | b0e39a883cc7d9a6607985e72267c205aae23b20 | 9d468a79c0c96a12170061958a4f06a8f8a9b197 | refs/heads/master | 2021-04-29T17:55:47.628442 | 2014-08-24T21:14:02 | 2014-08-24T21:14:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,555 | cpp | actionkeymapping.cpp | #include "actionkeymapping.h"
#ifdef WIN32
#include <windows.h>
#endif
#include <GL/glew.h>
#include <GLFW/glfw3.h>
ActionKeyMapping::ActionKeyMapping(std::string primary, std::string secondary, std::string name, bool toggleAction) :
m_primaryMapping(primary),
m_secondaryMapping(secondary),
m_toggleActi... |
0a74b0f49f6a68311e3e2f53f9385e2ff53316b7 | 069c6b2c3ac88b2102a0fd2df98c552273a33ece | /Source/VR_Racquetball/Public/DirectionalRacquet.h | 61aecd38c9f21dd9a4d4e00438875f3ed0c9dd2b | [] | no_license | MichaelT115/VR_RacquetBall | 2f5a57189639750db836b29c695b4b74744b237b | feb4a681704e538022dcba76ad68881f559a0c6f | refs/heads/master | 2020-03-07T02:44:33.644848 | 2019-01-06T20:34:45 | 2019-01-06T20:34:45 | 127,216,024 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 761 | h | DirectionalRacquet.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Racquet.h"
#include "DirectionalRacquet.generated.h"
/**
* A version of the racquet the hits the ball in a specified direction.
* The ball is set a velocity between the MaxVelocity and Min... |
f0be011414f2c40b09f3da9fa9ca2afb31e98bad | a5e1230a98eb2649f5a880761168c77a04dea0d4 | /src/server/mcas/src/fabric_connection_base.cpp | 8ad629d60f29d612a02d069538b18d6ca54b4f2e | [
"Apache-2.0"
] | permissive | SuperCleanMe/mcas | aaeade4e8853fd9615c98188171e3b5eb07f13b2 | db8e80beaabaad9f65c9ccd08502da096d63c970 | refs/heads/master | 2023-03-29T17:36:01.722957 | 2021-03-30T02:22:57 | 2021-03-30T02:22:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,468 | cpp | fabric_connection_base.cpp | /*
Copyright [2017-2020] [IBM Corporation]
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... |
cf2d31303e895cf211d5b4f83aebb9194e41053d | 9c362659a1d9dad0729975f02d324e799fc7cd0e | /Project1/Lesson_04/main.cpp | de3b7b173c01ac38edbe645f0e152565f423250e | [] | no_license | Giotto1013/CPP_LEARNING | cd124014a768bb41785f4e36c405c245d32aa20e | df7f15ee1f2c487f3bb6266dd456221e5bc909ab | refs/heads/main | 2023-01-01T17:29:38.161575 | 2020-10-24T03:29:55 | 2020-10-24T03:29:55 | 306,790,146 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 5,246 | cpp | main.cpp | #include <iostream>
using namespace std;
int main()
{
//一.范围for语句 :用于遍历一个序列
//int v[]{ 12,13,14,16,18 };
////for (auto x : v) //数组v中每个元素依次放入x中,并打印x的值。把v中每个元素拷贝到x中,打印x值
//for(auto &x : v) //x为v中每个元素的引用,省去拷贝动作,提高系统效率
//{
// cout << x << endl;
//}
/*cout << "----------------------------------------------------... |
1e5763e78f722c6eb6508feab1cbae9c2c9dd23b | 868e8628acaa0bf276134f9cc3ced379679eab10 | /firstCrude2D/we123/h10_refined2/0.156/p | 2dfc59401d4738c28b85dab2ae1010a4bf9958ad | [] | no_license | stigmn/droplet | 921af6851f88c0acf8b1cd84f5e2903f1d0cb87a | 1649ceb0a9ce5abb243fb77569211558c2f0dc96 | refs/heads/master | 2020-04-04T20:08:37.912624 | 2015-11-25T11:20:32 | 2015-11-25T11:20:32 | 45,102,907 | 0 | 0 | null | 2015-10-28T09:46:30 | 2015-10-28T09:46:29 | null | UTF-8 | C++ | false | false | 533,860 | p | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.0 |
... | |
ba961f42a438e48f5652fa7cc59b4c79aef37a12 | 8a10b08c08e48c863b145a0fe3fe256cca91fa96 | /src/umdraw/UMDirectX11Material.h | 5f4a8ebeeba2ed7c0ce33ac56ed82cf7c7f82cdd | [] | no_license | uimac/burger2 | 5ef2bfa4ff40012267d8eed6dec392ccd89ac914 | ba5ce7fa1eca9d9c2fd81726a580226076f97ec2 | refs/heads/master | 2021-01-25T08:28:59.272706 | 2014-09-08T14:11:52 | 2014-09-08T14:11:52 | 19,889,879 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,024 | h | UMDirectX11Material.h | /**
* @file UMDirectX11Material.h
* a material
*
* @author tori31001 at gmail.com
*
* Copyright (C) 2013 Kazuma Hatta
* Licensed under the MIT license.
*
*/
#pragma once
#include <dxgi.h>
#include <d3d11.h>
#include <memory>
#include <vector>
#include "UMMacro.h"
#include "UMMathTypes.h"
#include "UMMath.h... |
8c80ff5af8dcb3034516f064735331f4745057c2 | 635a0e466c30d527a0771605c22e8a25bef78521 | /CosmicCapture/InvisibleBarrier.h | 4a79e9beaf2e24f6ddce467a4b03b68cf685de0d | [] | no_license | ebels94/CosmicCapture | 6be35becdee49bd1ce0a39ff3146064a4fdf7227 | ec5ea938e6a2fe11e95ca5756b7eb4fa0b13271e | refs/heads/master | 2023-04-22T09:06:39.383700 | 2021-04-16T18:12:50 | 2021-04-16T18:12:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 484 | h | InvisibleBarrier.h | #pragma once
#include "Entity.h"
#include "GlobalState.h"
#include "physics/VehicleFilterShader.h"
class InvisibleBarrier : public Entity
{
public:
InvisibleBarrier(int type);
void attachPhysics(Physics& instance) override;
void draw(Physics& instance, const ShaderProgram& shader, const Camera& camera, bool depth... |
c9504c0808ce352dd2d4557222d1323a1a841ffc | 15831ecccf14b2ad7f3e599bcc4ddd196b58eece | /SOLVE/codeforce/Tram.cpp | 43fa3b1cc064648169f84038a31a6013aa77d8c2 | [] | no_license | Sujit34/Problem-Solving | 542ac2b1ad67c7cfa353c23c74c5ec2b6ec195c4 | 5045d430b12971f09a74ee1bdb4dbb411b404aa9 | refs/heads/master | 2023-08-31T04:36:44.690454 | 2023-08-30T14:14:29 | 2023-08-30T14:14:29 | 162,864,398 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 298 | cpp | Tram.cpp | #include<stdio.h>
#include<algorithm>
using namespace std;
int main()
{
int n,res[1001],p,q,sum=0,i;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d%d",&p,&q);
sum=sum+(q-p);
res[i]=sum;
}
sort(res,res+n);
printf("%d\n",res[n-1]);
}
|
2550527461059ef9827d538eefb16a2ae9b6ede6 | 73266ea6be2de149a4700798b221bd4c79525604 | /ft_containers/tests/containers/list/std.ops/merge.pass.cpp | 3fed108544598c8c83cfee20057475389ed8cc43 | [] | no_license | Caceresenzo/42 | de90b0262b573d4056102ad04ed0f6fbef169858 | df1e14c019994202da0abbe221455f1a6ee291e4 | refs/heads/master | 2023-08-15T06:14:08.625075 | 2023-08-13T17:19:00 | 2023-08-13T17:19:00 | 220,007,175 | 92 | 36 | null | null | null | null | UTF-8 | C++ | false | false | 1,499 | cpp | merge.pass.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* merge.pass.cpp :+: :+: :+: ... |
d68ce30b2a04692b43604351f5f4aaf9e65ae76b | 104cb676abc6c6e0514b8a3537f2f8993f5dcc58 | /src/wd.cpp | 79e5783f8a2c347cdf3c9ec82f98cd417a22818a | [] | no_license | manupedrozo/retiming | 7e5669b6d419e49440339aeaec67436f5d1ca866 | a0e3a42848ae8c0d2271118fab7fa5442f3f6246 | refs/heads/master | 2022-10-13T05:26:41.782956 | 2020-06-08T11:14:00 | 2020-06-08T11:14:00 | 262,048,745 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,941 | cpp | wd.cpp | #ifndef WDALG
#define WDALG
#include <boost/graph/adjacency_list.hpp>
#include <boost/graph/johnson_all_pairs_shortest.hpp>
#include <vector>
#include "types.h"
//define WDDEBUG
#ifdef WDDEBUG
#include <iomanip>
#include <iostream>
#endif
// Edge weight for the WD algorithm which is the pair (w(e), -d(u))
struct WD... |
1e0ab94e517afeda21cdaf851591fa43d39aa8c9 | 0c9d2a11b32285293e73ff2962e880d31bd52146 | /Cpp/design_patterns/BigTalkDesignPatternCppTest-master/Chapter-02/internal/Context.cpp | 7a245f40605ac666e7e919f4b3e319670fb5bda1 | [] | no_license | LarryXing0/Base | 92f542f7754a0872e0bcb772ff6f4943d8cedde7 | dc3cbf88e8c8c10afefb73176aad7dcee2ad6d7c | refs/heads/main | 2023-02-20T08:37:03.412811 | 2021-01-19T08:44:37 | 2021-01-19T08:44:37 | 321,250,001 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 180 | cpp | Context.cpp | #include "Context.h"
Context::Context(Strategy *strategy)
{
this->strategy = strategy;
}
void Context::ContextInterface()
{
this->strategy->AlgorithmInterface(double money);
}
|
0006cdeea9c8982df01f613ebc97b46aefa109d6 | 910d99d60131fc3d1b1b0a5b2706c430afe37252 | /src/ConvertingLandmarkObservations.cpp | fc8c253b0fa426c528f30689ddb8720c5af5111a | [
"MIT"
] | permissive | A2Amir/Implement-a-particle-filter-in-the-context-of-Cplus | 9d76c8a450ff8f3806574cb9128e97f2b2734d43 | c491945643d23f7ad2e5a71896541b6a7deb8168 | refs/heads/master | 2020-09-08T19:25:04.150412 | 2019-12-31T19:48:46 | 2019-12-31T19:48:46 | 221,223,455 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 660 | cpp | ConvertingLandmarkObservations.cpp | #include <cmath>
#include <iostream>
using namespace std;
int main() {
// define coordinates and theta
double x_part, y_part, x_obs, y_obs, theta;
x_part = 4;
y_part = 5;
// you can change x_obs,y_obs base the observation
x_obs = 2;
y_obs = 2;
theta = -M_PI/2; // -90 degrees
// transform to map x ... |
32f2bba2da347f979f68a4847012c569fa7fa5f9 | 91719805a27882be3acd432904dcb4ba8c4d971f | /src/OutputControl.cpp | bf45d6f4bc90c3a36a3933f60041360826680177 | [] | no_license | svn2github/divz | 1af8366135434ea82f4c1a0aa9ca5d6f7e75c11a | 3c937a3dbccee49ee5cba9aae22f8f9a5e4356da | refs/heads/master | 2020-05-29T12:51:48.333902 | 2013-04-21T23:00:02 | 2013-04-21T23:00:02 | 25,669,105 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 36,652 | cpp | OutputControl.cpp | #include "OutputControl.h"
#include <QComboBox>
#include <QSpinBox>
#include <QSlider>
#include <QFileInfo>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QGridLayout>
#include <QFileDialog>
#include <QActionGroup>
#include <QMenu>
#include "model/SlideTemplateManager.h"
#include "model/SlideGroupFactory.h"
... |
90a2e2a93b183d8c4564ed876f8a4f55afc10d32 | fea14745b51fb0c11b91118e2074fac644c958c6 | /objects/teacher.hpp | eeae30a1550be92b7787a2b56f0c96c89d79de05 | [] | no_license | matheus013/TimerManager | ec5eaccf1f4feb53edb6a1bd5a93b534aedda66c | 7977c476c2c36f86b4c82a97603d8c504c348e09 | refs/heads/master | 2021-01-02T09:36:18.200228 | 2017-10-10T17:59:06 | 2017-10-10T17:59:06 | 99,259,566 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 417 | hpp | teacher.hpp | #ifndef TEACHER_H
#define TEACHER_H
#include "QQmlHelpers"
#include <QObject>
class Teacher : public QObject {
Q_OBJECT
QML_WRITABLE_PROPERTY(QString, name)
QML_WRITABLE_PROPERTY(QString, email)
QML_WRITABLE_PROPERTY(QString, cpf)
QML_OBJMODEL_PROPERTY(int, restrictions)
QML_WRITABLE_PROPERTY(... |
87f110edf00eca22c748fb1e00d6ffe0e3d95e88 | 5b1dd5d3cc755696c75a423da841daf2aa39afb5 | /aliyun-api-rds/2014-08-15/include/ali_rds_describe_parameters_types.h | 708a0f34b9ecc10aa0060424ee253d2ce7cbb067 | [
"Apache-2.0"
] | permissive | aliyun-beta/aliyun-openapi-cpp-sdk | 1c61ffd2f0f85fb149ba9941c77e193f5db4d364 | 5e708130870a27e0c749777118f9e26ace96e7d9 | refs/heads/master | 2016-08-12T06:21:57.634675 | 2015-12-15T08:14:59 | 2015-12-15T08:14:59 | 47,530,214 | 5 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 852 | h | ali_rds_describe_parameters_types.h | #ifndef ALI_RDS_DESCRIBE_PARAMETERS_TYPESH
#define ALI_RDS_DESCRIBE_PARAMETERS_TYPESH
#include <stdio.h>
#include <string>
#include <vector>
namespace aliyun {
struct RdsDescribeParametersRequestType {
std::string owner_id;
std::string resource_owner_account;
std::string resource_owner_id;
std::string... |
faf364a105e3d1fa6108056f0c28e430c913e1db | c373d2a1deb536b3469f8e4b090dddb9b3b28e58 | /topo_sort.cpp | 252b0c5697f86c4e15559fc8e3d1da073519d7c1 | [] | no_license | dutta14/stanford-daa-coursera-part1 | 6ff8a6c61b8ba4589efcf0fa5f8ffd52248c48e6 | 2ce503d441b9018ce838015bca81b2c743653eea | refs/heads/master | 2021-01-11T02:20:13.427542 | 2016-09-22T20:26:13 | 2016-09-22T20:26:13 | 68,944,177 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,730 | cpp | topo_sort.cpp | /*
Program to run topological sort on a graph.
*/
#include <iostream>
#include <fstream>
using namespace std;
class node {
public:
int data;
node* link;
node(int data) {
this->data = data;
link = NULL;
}
node(int data, node* link) {
this->data = data;
this->link = link;
}
};
class list {
public:
node... |
84c299cfff23023d115440e3eeade2e943ac674a | cc399b54c7a81e71f8cc232ac3ba220a97a307fb | /Competitive Coding/433-A-12703566.cpp | f53acc4140f3ddb928de8e5777a68eb03ff40f52 | [] | no_license | drapz13/scripts-and-cmptprog | ba632ff347d8d391ba91973ec50d339a5e4e55c8 | e1c870b3ad7ef3fed9ecd18be03804e12ed1649f | refs/heads/master | 2021-01-10T12:18:44.595231 | 2020-04-23T06:17:14 | 2020-04-23T06:17:14 | 46,848,754 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,334 | cpp | 433-A-12703566.cpp | #include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define _ ios_base::sync_with_stdio(false);cin.tie(0);
#define __ int t;cin>>t;while(t--)
#define endl '\n'
#define ispow2(n) (n&&(!(n&(n-1)))) ///check if its perfect power of 2
using namespace std;
template <typename T>
T modpow(T base, T exp, T ... |
463b745070eee4887d4fb42c4d01611e1ae12aa1 | 4822c134d969fedc16f2fa5311fb2d1e776782d3 | /Enemy.cpp | bdfd35de702411daf10b0ca3e272456bacf23676 | [] | no_license | SerbIMolot/Crimsonlike | 631eac94bc69cd9c8dc254aea7d8a02851e69605 | ef61db5e01e04614d250b9b00877c862eb676e6b | refs/heads/master | 2020-05-31T11:38:29.923607 | 2019-06-04T21:18:59 | 2019-06-04T21:18:59 | 190,264,487 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,000 | cpp | Enemy.cpp | #include "inc.h"
Enemy::Enemy(Vector2d vec, Texture * textr, Type type) : Object(vec, textr, type)
{
Active(false);
timer = Timer::Instance();
moveSpeed = 75;
enTimer = 0.0f;
player = Player::Instance();
}
Enemy::~Enemy()
{
}
void Enemy::moveToPlayer()
{
if (player->Pos().getX() >= P... |
466c4727cd6b692bcaf3756f81f392025e901b4d | c1a161875bb0b2e9348b0129f0f7a3fb974b9d75 | /answer.cpp | d2bc3dfd0cfb486e8b86e933400a517d3db83c79 | [] | no_license | zhitko/QAS_RR | d4c00628fa1458d03ea7e34304d1885b67ec876e | ac62d85ac7627590331ffcf4d26b1726483fb1a2 | refs/heads/master | 2021-01-19T12:38:58.019247 | 2013-02-23T00:28:49 | 2013-02-23T00:28:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,053 | cpp | answer.cpp | #include "answer.h"
#include <QtCore/QDebug>
#include <QFile>
#include <QStringList>
#include <QList>
#include "mcrdll.h"
Answer::Answer(QObject *parent) :
QObject(parent)
{
qDebug()<<"start answers loading";
this->subQuestion = false;
this->mcr = new Mcr();
this->answers.a... |
f86e1097444b28ea7fb016d8528140e9257af23d | 3987c2054685a5a79f3aa03d06ced8d64b84ee45 | /src/Sphere.cpp | 967805aed79f280bed6b082fd6dd6233d4b38d62 | [] | no_license | LevitatingOrange/planet-sim | 6b49427d1ff0eccf73040c7e31686a6a2397f881 | 382008489029840c6f3f72f01c980831c0c82013 | refs/heads/master | 2021-09-07T02:23:34.845409 | 2018-02-15T18:05:40 | 2018-02-15T18:05:40 | 112,246,002 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,062 | cpp | Sphere.cpp | #include "Sphere.hpp"
#include <iostream>
void Sphere::initGL() {
// VAO
glGenVertexArrays(1, &vertexArray);
glBindVertexArray(vertexArray);
// VBO
glGenBuffers(1, &vertexBuffer);
glBindBuffer(GL_ARRAY_BUFFER, vertexBuffer);
glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STATIC_DRAW);
... |
bfc6b7713c039bc33db76f7feda57562148bb781 | 9895ebff8e81dfcc611833865fd9725f21cce8dc | /dblistener.h | 5d57289fb85524afb8e406aa56434fb61a3f7d7d | [] | no_license | rodrigowerberich/TrophySystem | 57061fa971be49cbf6d9e5dbe283671f13c07d53 | 25c2ff14b469b27d10352dc8824b629b58be2f08 | refs/heads/master | 2020-07-27T18:18:02.416552 | 2019-09-18T02:35:29 | 2019-09-18T02:35:29 | 209,184,071 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 504 | h | dblistener.h | #ifndef DBLISTENER_H
#define DBLISTENER_H
#include <QVector>
#include <QString>
using DbListenerArgumentList = QVector<QString>;
enum class DbEvent{
CoinsCollected,
PlayerDied,
MonsterKilled
};
class DbListener{
public:
virtual ~DbListener();
virtual void eventHappened(DbEvent event, const DbLis... |
544a860aca8ba5989026ed4eb31c3a8886c813cb | 533ccf6f0e6caf9496e2d010300ae9d20c787659 | /dependencies/blah/src/input/binding_registry.cpp | 43ec290ff8fdad729b9431025d9c762fcca543b1 | [] | no_license | dani-lp/chess2 | be9c67eec49f1596f638cca5b30f3bb8d2e96476 | dbf2b590741584309486204591872c51fe75e8d3 | refs/heads/master | 2023-06-01T04:22:37.987054 | 2021-06-30T16:37:25 | 2021-06-30T16:37:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,460 | cpp | binding_registry.cpp | #include <blah/input/binding_registry.h>
using namespace Blah;
Vector<std::weak_ptr<Binding>> BindingRegistry::bindings;
Vector<std::weak_ptr<AxisBinding>> BindingRegistry::axes;
Vector<std::weak_ptr<StickBinding>> BindingRegistry::sticks;
BindingRef BindingRegistry::register_binding(const Binding& binding)
{
auto ... |
7bb7bf27f8587ef2c922293baa34797de3096838 | 30ac69f4f9b8d383c660dba27a6bd48dc5b1b609 | /lambdaTest.cpp | 5487dc19f8182e2c157a71856f4fb47dc5e90711 | [] | no_license | RobDF/RobsTest | 30fcb8783016014a90cdeda36a8984144afa2809 | 804f9f2a922607c0b94b458d4bd3def7599ee526 | refs/heads/master | 2021-01-22T11:59:06.777666 | 2012-06-25T16:10:42 | 2012-06-25T16:10:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 855 | cpp | lambdaTest.cpp | // lambdaTest.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <algorithm>
#include <iostream>
#include <vector>
#include <array>
#include <map>
#include <unordered_map>
using namespace std;
array<string,50> a;
// And now I've changed the file
// Yet another change
class f... |
a1d608fd4715a0cc14f7edd27be79eb53e18928f | c280ced86726a014064f40ee13aa9e9b3c59f962 | /USACO/Jan 16/mowing.cpp | 98f38ce79c0a291d0092d23542fc72c52e5fed64 | [] | no_license | lfeng99/Competitive-Programming | 9379ce07a421f3bfe9ef3c6f5f390794b9c8595a | 5de75295522725047adb0e99ae7f637d8fc64ba3 | refs/heads/master | 2021-08-30T12:05:24.717850 | 2017-12-18T02:21:48 | 2017-12-18T02:21:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,494 | cpp | mowing.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long lint;
struct Update{
int x, y, t, typ;
bool operator < (const Update &a) const {
return x < a.x;
}
};
struct Query{
int x, y1, y2, t;
bool operator < (const Query &a) const{
return x < a.x;
}
};
struct Node{
Node *lef = nullptr, *rig = nullp... |
7bf0395572216a4484f1fe799c5138d7320c8066 | bedfc3791061c39aff864e3e714f5e079d5055ea | /CodedWorker.cc | 71f3103a03d54dd0a0d34af82bafd0e9264f7caf | [] | no_license | WolfFromHeaven/FinalSorted | 402f89e70a8b39645513a9f5a1ef9178c9e8857e | c59af14eacd36fcd01a7d9d70a581673a6759e90 | refs/heads/master | 2020-04-24T02:30:16.577878 | 2019-02-26T09:10:33 | 2019-02-26T09:10:33 | 171,639,232 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 30,790 | cc | CodedWorker.cc | #include <iostream>
#include <mpi.h>
#include <iomanip>
#include <fstream>
#include <cstdio>
#include <map>
#include <unordered_map>
#include <assert.h>
#include <algorithm>
#include <ctime>
#include <string.h>
#include <cstdint>
#include <cstring>
#include "CodedWorker.h"
#include "CodedConfiguration.h"
#include "Com... |
3cab69e95f48aa7df83c2b4887ce311db13e2982 | 54e0dddbd13841e818eb58361102bccf7742d0c1 | /codeforces/378/1/D.cpp | 8269ab0b022b99fcf90592b41f2fc91abb516c8a | [] | no_license | tjytlxwxhyzqfw/online-judge | fae0ff3a96182ec13fd5da6183f4d5ce6aef2a7a | 4fbc9194de8d4977bd90cfb6662fff81b66b1d08 | refs/heads/master | 2021-06-20T15:42:55.950240 | 2021-03-28T08:06:15 | 2021-03-28T08:06:15 | 74,032,215 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,295 | cpp | D.cpp | /**
* D
*/
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <map>
#include <stack>
#include <string>
#include <vector>
#include "common.h"
using namespace std;
struct Face {
int id;
int x, y;
Face(int id, int x, int y) {
this->id = id;
this->x = x;
this->y = y;
}
const bool operator... |
5b2c8b36ce87ef70d4045702150f65e31b0d4c6a | ad79817fae1f0d10ecc0d4788b1f8e644815513b | /single-number-2nd.cpp | fd2fe0aef47dba3a679f9028e4505e3ff543f6bd | [] | no_license | dreamzen/leetcode | 31bb9c3959b946ee394b53740d48945e17f73357 | b77b8527ca1086ce61e7d64fb87dfed9a74e2f7a | refs/heads/master | 2021-01-20T07:08:52.723260 | 2014-07-02T08:56:14 | 2014-07-02T08:56:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 323 | cpp | single-number-2nd.cpp | #include <iostream>
#include <vector>
using namespace std;
/**
* a ^ b ^ a = b
*/
class Solution
{
public:
int singleNumber(int A[], int n)
{
int single = A[0];
for(int i = 1; i < n; i++)
{
single ^= A[i];
}
return single;
}
};
int main()
{
return 0;... |
cad52feab850eeac6f403e385a86f86e106ce962 | 99b92233cdc48c5dd8032032c76eb50d355b43dd | /Win32Project2/Player.h | d0ff04f174edfb645575b31c1701cd1d63490e8c | [] | no_license | CoopperGuy/testset | 803be99a727c24496efc0c0eca148286ea1ba5ba | 0405f0ca8b9c2886a2b9b45384af09df990d68a9 | refs/heads/main | 2023-06-20T08:23:32.369918 | 2021-07-18T13:31:54 | 2021-07-18T13:31:54 | 385,582,479 | 0 | 0 | null | 2021-07-18T13:31:55 | 2021-07-13T11:37:55 | C++ | UHC | C++ | false | false | 2,089 | h | Player.h | #pragma once
#ifndef __CPLAYER_H__
#define __CPLAYER_H__
//현재 만들어야 되는거
//점수,라이프,무기 스왑?
#define MAX_INVEN 5
#include "Obj.h"
#include "Item.h"
class CPlayer :
public CObj
{
public:
enum BULLETTYPE{ BULLET_MELEE,BULLET_NORMAL,BULLET_GUIDE,BULLET_END};
enum PLAYERSTATE { P_RUN, P_JUMP, P_DJUMP, P_ATTACK, P_DIE, P_EN... |
1256a7de3cc03e4690ece3135bc8dff5f1aded5f | dd642e0b82a2579b4210160b2e52e5edd240b9e9 | /util/child_process_win32.cpp | 42df1807b23e5ffd5953ebb5b326e9288a7519b4 | [
"MIT"
] | permissive | mras0/funtls | d88f52a63319bf11da5a205a884e8accd16164a4 | a16c6fde92cf247876a0761a6ca3ed538b2ad0c2 | refs/heads/master | 2021-01-16T19:00:35.105969 | 2015-12-17T19:47:57 | 2015-12-17T19:47:57 | 34,807,373 | 3 | 0 | null | 2015-11-01T21:29:02 | 2015-04-29T17:17:51 | C++ | UTF-8 | C++ | false | false | 5,654 | cpp | child_process_win32.cpp | #include "child_process.h"
#include "win32_util.h"
#include <windows.h>
#include <cassert>
#include <sstream>
namespace funtls { namespace util {
class child_process_win32 : public child_process {
public:
explicit child_process_win32(const std::vector<std::string>& args) {
std::ostringstream oss;
... |
112cc39b432381255e3042255f820d1fc0fba723 | c9d8bf546cbf43021c9e415bdd1597e4bc6f50b0 | /assignment2/B3.cpp | 07508f43b17eec2f26e030eeecf0d6dd86203601 | [] | no_license | russjohnson09/data_structures_and_algorithms | b3d1fbcba7f4d28d240409ce8499cf5b615f8656 | 9533cdfd1cae78b31c72072e2d8bf57d84620a36 | refs/heads/master | 2021-01-01T17:31:54.799287 | 2013-04-08T17:25:07 | 2013-04-08T17:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,025 | cpp | B3.cpp | #include <iostream>
#include <cstdlib>
#include <time.h>
#include <stdio.h>
using namespace std;
//Each swap results in a legal permutation and this algorithm only uses swaps to modify the list and so each permutation from the algorithm must be legal.
//A swap between two positions is equally likely and so each resulti... |
0441c31ed15466f6682cf0cbe158af37d2e262e8 | 84d98378511f59301f9693b7fe91ee8a4ac76283 | /9. Linked LIst - 2/swapNodes.cpp | 903ac76b5e17f90ddd7ea9a3d0ff700907df16ce | [] | no_license | SaquibAnwar/Cpp-playground | 03358e9b7b7d27b8ee6b3c62c1d6ba2b5c01086e | 523202204b5ed24e162fc51d871afd2cb45f034b | refs/heads/master | 2021-06-23T12:51:41.844899 | 2021-02-05T07:20:19 | 2021-02-05T07:20:19 | 189,625,826 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,715 | cpp | swapNodes.cpp | // Swap two Node of LL
// Send Feedback
// Given a linked list, i & j, swap the nodes that are present at i & j position in the LL. You need to swap the entire nodes, not just the data.
// Indexing starts from 0. You don't need to print the elements, just swap and return the head of updated LL.
// Assume i & j given wi... |
25d18cc7cb637372543a650c72b0a345bccaf5dd | da981f4ac0068e5145e3120dbc86429ed10d92ea | /AbusingFriendship/Cert.h | 2209fd01b572055e1339e398c4f11741486affd0 | [
"MIT"
] | permissive | haxpor/cpp_st | 9d5c54e5ad7e4676635dc17e354f3fbe929b4d0e | 600b388a9b26ece3ce02e26899621f58260d8627 | refs/heads/master | 2023-07-25T23:04:54.922087 | 2023-07-24T16:54:12 | 2023-07-24T16:54:12 | 204,326,822 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 83 | h | Cert.h | #pragma once
class Authorizer;
class Cert
{
public:
Cert(Authorizer& auth);
};
|
4fc585a114f8b5d27fde5671e541921a60d8078b | 157fd7fe5e541c8ef7559b212078eb7a6dbf51c6 | /TRiAS/TRiAS/Extensions/Beschreibungsdaten/defrelat.hxx | 6bf49645484bbcfd70ae529a66527ffd114fb69a | [] | no_license | 15831944/TRiAS | d2bab6fd129a86fc2f06f2103d8bcd08237c49af | 840946b85dcefb34efc219446240e21f51d2c60d | refs/heads/master | 2020-09-05T05:56:39.624150 | 2012-11-11T02:24:49 | 2012-11-11T02:24:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 758 | hxx | defrelat.hxx | // Dialogfenster zur Definitition einer RelationsBeschreibung in einer PBD
// File: DEFRELAT.HXX
#if !defined(_DEFRELAT_HXX)
#define _DEFRELAT_HXX
class CDefineRelationDlg : public DialogWindow {
private:
FixedText m_EDRelation;
SingleLineEdit m_EDKurzText;
MultiLineEdit m_EDLangText;
PushButton m_OKBu... |
45e3b6f1a5e174bb26a68fc4770b49d3f2a27fa2 | 7d2da9f90c02bca48ab7169613abf2e24904c056 | /Asignacion_0.cpp | 4ef62317e1918f1760edcc47f4ce3716d6237a5e | [] | no_license | Reocooker/Practica_01 | 9ac9b78fd1d07d34bdf98d9e897b01e5ef4286b2 | 7b4d36ca282d4d9ba6f2c80dbcfde4477e5e70b1 | refs/heads/master | 2021-01-24T10:07:12.484872 | 2018-02-26T22:58:31 | 2018-02-26T22:58:31 | 123,039,294 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,242 | cpp | Asignacion_0.cpp | #include <iostream>
#include <math.h>
using namespace std;
int main()
{
float resp; //Creando la variable que contendra la respuesta deseado
cout << "Que es lo que desea calcular?\n" << "1) Area de un triangulo\n" << "2) Area de un trapecio\n"
<< "3) Volumen de un cono\n" << "4) Volumen de un cilindro\n"... |
640f6d57ddc1afcea9a096b91662d02bc057d6de | 54d6f8689542b59f59b9e38292e54a479741f666 | /Modules/Types/Source/Core/Color.cpp | 10371a59700910838ee4b7e95dea1ccba12d6a2f | [
"MIT"
] | permissive | larsoad/pargon-framework | 98cd00b49018d00c4c470dff7c8c5ffcffc94300 | 0f616c889c329d66ea89a6358ccb0ce1efe13c41 | refs/heads/main | 2023-02-27T02:20:52.074072 | 2021-02-02T19:01:59 | 2021-02-02T19:01:59 | 335,393,756 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,643 | cpp | Color.cpp | #include "Pargon/Serialization/Serializer.h"
#include "Pargon/Types/Color.h"
using namespace Pargon;
void Color::ToBuffer(BufferWriter& writer) const
{
writer.Write(R);
writer.Write(G);
writer.Write(B);
writer.Write(A);
}
void Color::FromBuffer(BufferReader& reader)
{
reader.Read(R);
reader.Read(G);
reader.Re... |
8d549be10b656ab185fc341b6c04dc12b1f407ac | ba81f193b561c35fe3500fb5b5e421242f0235cc | /searching and sorting/first and last.cpp | 88f6f6b929639eb0a889932db9ef96ac2ef55ce0 | [] | no_license | ashwinsuresh83/Data-structures-and-algorithms | 4ea92f6c048f656f8ca52584bad84bec0bfd7838 | 99f73079a3bb31a8fd14dec57b8fd11a9d3ce7e3 | refs/heads/master | 2023-04-04T10:01:29.435814 | 2021-04-21T17:06:08 | 2021-04-21T17:06:08 | 307,142,053 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 563 | cpp | first and last.cpp | #include <iostream>
using namespace std;
int main() {
//code
int t;
cin>>t;
while(t--){
int n,x;
cin>>n>>x;
int arr[n];
int firsti=-1,lasti=-1;
for(int i=0;i<n;i++)
cin>>arr[i];
for(int i=0;i<n;i++){
if(arr[i]==x){
firsti=i;
break;
... |
1b2bc6d4e7f88313b0bfbdd9801873f1591def16 | f65d0645b224e96eefa0082a9efe0af160f3aed1 | /CourseNode.h | 8a6497ca97fdfbe4952b10c2c4ff1d6ca747aaa9 | [] | no_license | haroon97/DSA-Final-Project | 51cf3bcb1e32e37026de6d022cc573cd7ca360bd | 24a2c531f008c10f7cb7b69b4c4145455046b904 | refs/heads/master | 2020-06-07T18:52:59.287504 | 2019-06-29T20:29:40 | 2019-06-29T20:29:40 | 192,999,287 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 281 | h | CourseNode.h | #pragma once
#include <iostream>
#include <string>
using namespace std;
class CourseNode {
public:
string courseId;
string courseName;
CourseNode *next;
CourseNode(string courseId, string cName) {
this->courseId = courseId;
this->courseName = cName;
next = NULL;
}
};
|
952a230ea7ea139e33635d17719ef3dbd54db5c8 | c77cebb3029fc72928b035661a4da547b1f684bb | /spoj/math/gcd/POUR1 - Pouring water.cpp | e1287af429e96cb01f793376676a234da5fd73cf | [] | no_license | HelderAntunes/competitive-programming | 37d9fde0d5c7a603277ce9b71e3cc5880a802aff | 0e143efedaed33876ecc7edf81d7f18885e70cba | refs/heads/master | 2018-12-21T19:05:54.141613 | 2018-09-29T22:05:12 | 2018-09-29T22:05:12 | 77,644,911 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,363 | cpp | POUR1 - Pouring water.cpp | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <set>
#include <map>
#include <iostream>
#include <cmath>
#include <vector>
#include <list>
#include <ctype.h>
#include <stack>
#include <string>
#include <algorithm>
#include <sstream>
#include <queue>
#include <cassert>
#include <ctime>
#include <iom... |
a0344624cd0a5ab066b94124cebefe803884514f | b5f6d2410a794a9acba9a0f010f941a1d35e46ce | /utils/RCBot2_meta/bot_strings.h | 75626f68a08dcc0658baaf816f28708aa879e007 | [] | no_license | chrizonix/RCBot2 | 0a58591101e4537b166a672821ea28bc3aa486c6 | ef0572f45c9542268923d500e64bb4cd037077eb | refs/heads/master | 2021-01-19T12:55:49.003814 | 2018-08-27T08:48:55 | 2018-08-27T08:48:55 | 44,916,746 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,432 | h | bot_strings.h | /*
* This file is part of RCBot.
*
* RCBot by Paul Murphy adapted from Botman's HPB Bot 2 template.
*
* RCBot is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of th... |
f572cb7b3333970eba9537a8d36e3d55d9692d75 | ef675cc5fdc161adf4aa323e37c8742f9b58f7be | /Klaverjas-Test/cardsTest.h | a06244e9a8d5edd6de2158c27207267baf55b2ff | [] | no_license | lollol155/Klaverjas | e90f117b84ce3e5636d1d5074e5f054e76a1d2a8 | f946df8377f913f8b44aa695c3cca90399fa597a | refs/heads/main | 2023-07-15T20:37:11.381240 | 2021-08-24T17:31:28 | 2021-08-24T17:31:28 | 394,365,318 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 205 | h | cardsTest.h | #pragma once
#include <cards.h>
using namespace klaverjas;
TEST(shuffle, cards) {
cards_t cards;
card_t card = *cards[0];
EXPECT_EQ(card, *cards[0]);
cards.shuffle();
EXPECT_NE(card, *cards[0]);
}
|
6f214acbf44f7a8776d1fa236c3ebfbcf4608d53 | ed53676faf6a1c4dcc30182be0934337abcd1047 | /trantor/net/TcpServer.h | 9eb76249ecd3cde36f05fab89247882c5704abfc | [] | no_license | flyish/trantor | 7c83fdec1f59ec439b0e71cd1bdb0fcde51b3ada | b4c959616e29e01b3ded28da08fa5e0c90435065 | refs/heads/master | 2021-06-15T05:31:27.048414 | 2017-03-31T14:12:53 | 2017-03-31T14:12:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,926 | h | TcpServer.h | #pragma once
#include <trantor/net/callbacks.h>
#include <trantor/utils/NonCopyable.h>
#include <trantor/utils/Logger.h>
#include <trantor/net/EventLoopThreadPool.h>
#include <trantor/net/InetAddress.h>
#include <trantor/net/TcpConnection.h>
#include <string>
#include <memory>
#include <set>
#include <signal.h>
namesp... |
f4c6295a9f00e0dab69e98fbcf04ae58fa315c5a | 7de9cfc77e0b836a93308a44810e4f7c21d3a21c | /client/src/command/GetCommand.cpp | df0426788f053f73a7a577856cb70e763fc78952 | [] | no_license | Martijnpold/CPPLS-AvanSync | f5386bf1c9f75f229fa2c9f5f59ed32608af3a55 | 6df87e2a88b80685ec87e90336f51f5820c2c4c4 | refs/heads/main | 2023-06-10T20:53:34.011504 | 2021-07-01T09:02:05 | 2021-07-01T09:02:05 | 324,801,198 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 932 | cpp | GetCommand.cpp | #include "GetCommand.h"
#include <util/ErrorUtil.h>
namespace avansync::client {
void GetCommand::execute(IO& systemIO, IConnection& connection) const {
try {
connection.getIO().writeString("GET");
std::string path {systemIO.readLine().getContent()};
connection.getIO().... |
0dbe3d9a338439424a561e52885554bb9a32da10 | c487dbfa355220c0c247f7875bda6628df6fafe1 | /DXF/base/DXFBoundingBox.h | d1e0d8d6ad657e4a022889dd3159daf102ab8530 | [] | no_license | slidertom/DXF | 7330f16fc18198d02e301afd85e6ec6e4823cf12 | 0d974c2d53f583fa38c60409e1df41400f8265e1 | refs/heads/master | 2021-06-24T01:30:03.347044 | 2021-02-06T23:25:11 | 2021-02-06T23:25:11 | 199,022,354 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,864 | h | DXFBoundingBox.h | #ifndef __DXF_BOUNDINGBOX_H__
#define __DXF_BOUNDINGBOX_H__
#pragma once
#ifndef __DXF_3DPOINT_H__
#include "DXF3DPoint.h"
#endif
class CDXFBoundingBox final
{
// Construction/Detruction
public:
CDXFBoundingBox() {
m_minPoint.SetValues(1.E+10, 1.E+10, 1.E+10);
m_maxPoint.SetValues(-1.E+10, -1.... |
b603466b998d6f481d33216290c75d27180fd67c | a734001826e353631d9e510639bbcc8e7ac89728 | /fundamentals/MergeSort.cpp | 8b276c74fe20b73d7a929f6393a063845714e787 | [] | no_license | manish05/acm-algo | 1f3ab3303b458d783c89efbb1ada92a9b0e2bfda | ec00d95cb816a8a968604d2314027973909df5f2 | refs/heads/master | 2020-12-28T23:24:09.246740 | 2014-08-31T16:33:40 | 2014-08-31T16:33:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 928 | cpp | MergeSort.cpp | // Merge Sort (Ascending order)
// Time complexity is O(N*2logN), space complexity is O(N)
template<typename T>
void _merge(int left, int right, vector<T>& arr) {
int mid = (left + right) >> 1;
int l = left, r = mid + 1, n = 0;
vector<T> ta(right - left + 1);
while (l <= mid && r <= right) {
ta[... |
08ed95c0fc8bb15700c46a2d5152b7dd1624b549 | 4f4a28c2c2c293e45631dc0bca6382cc483c7d1f | /Heaps/minHeapConstruction.cpp | 4a841cee430ddb80a4cb7498ce5fe5a86db250f4 | [] | no_license | MuhammadKA/Problem-Solving | 0fab14e600a91e5228e06dac2560b3449c621d5f | ceb51ac5abd1272392e5ae6334fef86ea2b80528 | refs/heads/master | 2023-08-14T06:27:51.589798 | 2021-09-24T07:11:14 | 2021-09-24T07:11:14 | 320,813,076 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,237 | cpp | minHeapConstruction.cpp | #include <vector>
using namespace std;
// Do not edit the class below except for the buildHeap,
// siftDown, siftUp, peek, remove, and insert methods.
// Feel free to add new properties and methods to the class.
class MinHeap {
public:
vector<int> heap;
MinHeap(vector<int> vector) { heap = buildHeap(vector); }
... |
854a71d8e0027af85b061eed07c5b84c5d17332d | 0db2bedf9ba7a70b1a7d72db6b354197accd96bd | /Tools/MeshBuilder/MeshLuaReader.cpp | ea37538acc22066e081765d50403613dee9652b7 | [] | no_license | arpit09891/GraphicEngine | e10654f510b1bbf684517fc1915d674505abac5d | 707c0c3f9d2b4f9aaa1b128e68bb4fb74c3b9c95 | refs/heads/master | 2020-03-18T11:10:18.649190 | 2019-01-16T02:18:04 | 2019-01-16T02:18:04 | 134,655,019 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,997 | cpp | MeshLuaReader.cpp | //#include "MeshLuaReader.h"
//#include <Engine/Asserts/Asserts.h>
//#include <iostream>
//
//namespace {
// eae6320::cResult ReadMeshDetailsValues(const char * const i_path)
// {
//
// auto result = eae6320::Results::Success;
//
// if (!(result = LoadAsset(i_path)))
// {
// return result;
// }
//
// return resu... |
5f0cc475088e1ef054863259b11b64df8cff779e | c6f69ac70fbfe5380d691e35a818a6e8eaf6e914 | /src/find_multiview_track.cpp | 93b53850e149863308a346309c59ee4b0b6c7faa | [] | no_license | jvlmdr/non-rigid-tracking | 00e9d116410628da2d4f5153439167f5a34c55a1 | ee0377e3a324b4e82ee0fc2eee0fbcfe7ec062a1 | refs/heads/master | 2020-04-15T16:27:25.755272 | 2013-03-13T05:45:28 | 2013-03-13T05:45:28 | 6,432,545 | 5 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 9,633 | cpp | find_multiview_track.cpp | #include <vector>
#include <string>
#include <sstream>
#include <cstdlib>
#include <glog/logging.h>
#include <gflags/gflags.h>
#include <boost/format.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/math/tools/roots.hpp>
#include "track.hpp"
#include "track_list.hpp"
#include "multiview_track_list.hpp"
#include ... |
99f50110538c70bd38009568ac6a0cda9e287878 | b77f1f7d82adc22d8ce79af5e7a04639cac17a8c | /linear-search.cpp | 1fd856602d1a695fc1c0f7a5f4d9032925f780e0 | [] | no_license | hardik0001/ADA-LAB-5th-SEM | 0ee945f99c1d71dc00964648c9092683fc3dbd56 | 45e43acff005ce0489fd429fea7fd2b1bb95e1d6 | refs/heads/main | 2023-07-13T22:15:22.065325 | 2021-08-31T18:47:04 | 2021-08-31T18:47:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 527 | cpp | linear-search.cpp | #include <iostream>
using namespace std;
int main()
{
int a[50], size;
cout<< "enter the size of an array";
cin>> size;
cout<< "enter the element of array";
for(int i = 0; i < size; i++)
{
cin >> a[i];
}
int num, index;
cout<< "element you want to found";
cin>> num;
f... |
8f485e5099ef905425492771166af5f9dd8ae68e | 7b30470064e9d1adb9122601b5abba2ef372769e | /test/ut_two_dimensional_vector.h | bd06fa0ec673196a0567aea7ba9f64e6b171668f | [] | no_license | t110598027hung1/posd2021f_110598027_hw | 6df534deb3d76ae7f4fe6e345d9d519785a1d418 | a4d011271a391d8651bc46a7767ed5627280c5ca | refs/heads/main | 2023-08-10T17:29:32.780890 | 2021-10-02T05:29:26 | 2021-10-02T05:29:26 | 412,699,554 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,143 | h | ut_two_dimensional_vector.h | #include <limits>
#include <cmath>
#include "../src/two_dimensional_vector.h"
class CaseTwoDimensionalVector: public ::testing::Test {
protected:
double inf = std::numeric_limits<double>::infinity();
TwoDimensionalVector* vectorRight;
TwoDimensionalVector* vectorLeft;
TwoDimensionalVector* vec... |
2a4c6f67bb5826799bafcea18f37f071a175c630 | b257bd5ea374c8fb296dbc14590db56cb7e741d8 | /Extras/DevExpress VCL/ExpressTile Control/Demos/CBuilder/RealtorWorld/RealtorWorldHomePhotosBase.h | d633f21a198e4807f83ddee7e0e04f3159907eef | [] | no_license | kitesoft/Roomer-PMS-1 | 3d362069e3093f2a49570fc1677fe5682de3eabd | c2f4ac76b4974e4a174a08bebdb02536a00791fd | refs/heads/master | 2021-09-14T07:13:32.387737 | 2018-05-04T12:56:58 | 2018-05-04T12:56:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,469 | h | RealtorWorldHomePhotosBase.h | //---------------------------------------------------------------------------
#ifndef RealtorWorldHomePhotosBaseH
#define RealtorWorldHomePhotosBaseH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>... |
1b344049f1622b966dc5dfb0247f4dbb53d3ca9b | 52d01de643d4c99927c7b9aaccc9817fa56465f2 | /Project2/Parser.cpp | 5dc68ca699059296f8a76863784c9d31293bfda5 | [] | no_license | Jaja321/Ex1 | a445f11911028dd6870cf8ad5b9eaec066e89af4 | 94c1557ce92ad100643c33a6f8874d4948583270 | refs/heads/master | 2021-09-01T04:43:48.994812 | 2017-12-24T22:02:24 | 2017-12-24T22:02:24 | 109,969,890 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,698 | cpp | Parser.cpp | #include "Parser.h"
Parser::Parser(int argc, char *argv[])
{
//Parse arguments:
rotate = false;
vector<string> file_names;
for (int i = 1; i < argc; i++) {
string arg = argv[i];
if (arg == "-rotate")
rotate = true;
else
file_names.push_back(arg);
}
input_file = file_names[0];
output_file = file_na... |
0fd9f86d6ebf571aabfc465ca464318e22beb768 | c597bb74821e656821d415375a7f9fed171d3b5d | /normal_users.cpp | 1a3b84c15028ee9d41b8eadc0a3eab5cf260353a | [] | no_license | CofinCup/Basic_Second_Hand_Trading_Platform | 56a56e161a948b0a71957bf0f277283383cd9e26 | d56289af5d7a280630bb23c26baea64d379c43fe | refs/heads/master | 2023-06-07T23:00:43.407385 | 2021-04-15T17:04:22 | 2021-04-15T17:04:22 | 355,185,935 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 7,492 | cpp | normal_users.cpp | #pragma once
#include "normal_users.h"
using namespace std;
void trade(mapfile& maps, System_status& status)
{
int id;
id = get_num("请输入您购买的商品ID,输入0来取消:");
if (id == 0)
return;
map<int, Product*>::iterator it;
it = maps.id2Product.find(id);
if (it == maps.id2Product.end()) {
cout << "未找到该商品。" ... |
ed1e9a3f640083956bbb27aaadcfd971d20c98c3 | c4cb9f6d2345402385306f4cb491ec9f8409f1b8 | /9.x Quiz 4/main.cpp | a39ac8aa2dbdf70f001272b0ae57caf9cd88f53e | [] | no_license | iamrahulchauhan/LearnCpp | d31465d25e203b4fd3b5289294834ea3bd879be5 | 78bebc7d57d936eb6b5f73f05dac1b0bb2718805 | refs/heads/master | 2022-12-24T20:32:42.079021 | 2019-07-25T13:30:30 | 2019-07-25T13:30:30 | 300,384,473 | 0 | 0 | null | 2020-10-01T18:39:31 | 2020-10-01T18:32:51 | null | UTF-8 | C++ | false | false | 2,120 | cpp | main.cpp | #include "FixedPoint2.h"
#include <iostream>
void testAddition() {
// h/t to reader Sharjeel Safdar for this function
std::cout << std::boolalpha;
std::cout << (FixedPoint2(0.75) + FixedPoint2(1.23) == FixedPoint2(1.98)) << '\n'; // both positive, no decimal overflow
std::cout << (FixedPoint2(0.75) + FixedPoint2(1... |
6212d25f8b0eb1e5b5cfd4eb2b4075d29047e78c | a65a24a8629912afc45ae91cf1b5440f61f9b34c | /QTproject_SC/mainscene.cpp | 4b728a79bc6ba59b8e31c9f509c8f99b46085ec0 | [] | no_license | RichardLiu915/MyProject | adea2e0e3a82b8438bb1233544a345cb07a69d03 | 5b6440c3c9fd4649e0c14fd152e960d92edd4c1e | refs/heads/master | 2020-08-11T22:52:24.053154 | 2019-10-12T12:36:03 | 2019-10-12T12:36:03 | 214,642,692 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,307 | cpp | mainscene.cpp | #include "mainscene.h"
#include "ui_mainscene.h"
#include"mypushbutton.h"
mainscene::mainscene(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::mainscene)
{
ui->setupUi(this);
///-------------------BGM播放-----------------------
QMediaPlayer *BGM = new QMediaPlayer();
QMediaPla... |
81f943c5f360f8a7899c02a9c14e1c368c487bd9 | 69444a600f3377c21e14ffcd6e5cb289fae38667 | /src/simulation.h | 6ad0a31273ec47e00f62dfd653428e22a630a078 | [] | no_license | jmoborn/fluid-solver | 42ccd23773c6a53db37c23943352c59dd44ae0b7 | b5264f2f12d9e9c8cb02730284e6cf1d1a846518 | refs/heads/master | 2021-01-10T09:12:27.562129 | 2016-02-06T02:51:15 | 2016-02-06T02:51:15 | 46,532,802 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,911 | h | simulation.h | #ifndef __SIMULATION_H__
#define __SIMULATION_H__
#include "vec4.h"
#include "particle.h"
#include "pcg_solver.h"
#include "sparse_matrix.h"
#include <math.h>
#include <stdlib.h>
#include <algorithm>
#include <vector>
#include <string>
#include <fstream>
#include <omp.h>
// #include <openvdb/openvdb.h>
class cell... |
734450fdcb73d3a518a1cd33445724f127bfef8f | cf41c0beebece8b037b2c9c65f607cd216149505 | /19_Map_Kullanimi/src/main.cpp | e41e3dfa8a978e28ea784c6cd1c51672f0a177bc | [
"Apache-2.0"
] | permissive | KMACEL/TR-Cpp | fcbab20cb2ac5acce3039b2b81b6dabfe6bc3e43 | dac7bebd1d5fd2d69a76be5a9809417333f01817 | refs/heads/master | 2020-03-08T14:09:00.584641 | 2018-11-27T08:55:52 | 2018-11-27T08:55:52 | 128,177,025 | 3 | 0 | null | 2018-05-14T13:52:59 | 2018-04-05T08:11:15 | C++ | UTF-8 | C++ | false | false | 2,062 | cpp | main.cpp | //============================================================================
// İsim : 19_Map_Kullanimi
// Yazan : Mert AceL
// Version : 1.0
// Copyright : AceL
// Açıklama : Map Giriş
//============================================================================
#include <iostream>
#include <m... |
e8a73d2cf1490304b7a434d9ca9adff8fdb01b0f | ae457cae4c6606b60805a3ae52405d7f8a1df642 | /CPB/bubble_sort.cpp | 4640132593c94d673e08fd584051abc7b5da9e22 | [] | no_license | qdotdash/Competitive_Coding | 5a25c440e098da56336b8626560c44eca06b115a | a77fd96fcb14af94d4da496d61bfee29faeae976 | refs/heads/master | 2023-04-25T03:39:20.391528 | 2021-05-12T20:26:02 | 2021-05-12T20:26:02 | 261,508,442 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 458 | cpp | bubble_sort.cpp | #include<bits/stdc++.h>
#define loop(i, n) for(int i=0; i<lim; i++)
using namespace std;
int main(){
int lim, arr[100];
cin >> lim;
loop(i, lim){
cin >> arr[i];
}
loop(i, lim){
loop(j, lim-1){
if(arr[j]>arr[j+1]){
int temp = arr[j];
ar... |
8a42bfb535a79af31db3249f55ee2ab2f02d4248 | f3fef60d8da877634b1c6187c3ed973b00328e41 | /.svn/pristine/8a/8a42bfb535a79af31db3249f55ee2ab2f02d4248.svn-base | f48ec3d5c13dadbad987d1bc9f050a0d23c8e1f3 | [] | no_license | thrueberg/inSilico | f656c7fadd0eb5b59b1bb46d906aa613cde6f988 | be4d4e016535f259bc9c2973a05d8417bd0431dd | refs/heads/master | 2016-09-05T16:55:51.505462 | 2015-02-04T14:06:53 | 2015-02-04T14:06:53 | 9,344,003 | 0 | 1 | null | 2015-02-04T14:06:53 | 2013-04-10T10:49:39 | C++ | UTF-8 | C++ | false | false | 479 | 8a42bfb535a79af31db3249f55ee2ab2f02d4248.svn-base | // -*- C++ -*-
// element size
elSize = 0.4;
// corner points of the rectangle
Point(0) = {0., 0., 0., elSize};
Point(1) = {2., 0., 0., elSize};
Point(2) = {2., 1., 0., elSize};
Point(3) = {0., 1., 0., elSize};
Line(10) = {0, 1};
Line(11) = {1, 2};
Line(12) = {2, 3};
Line(13) = {3, 0};
Line Loop(20) = {10, 11, 12... | |
4e64da759690b4956874107a0fa3c9be29ffcaf0 | bfa1b42086f0cc4488510a287b0aae1905d98468 | /3D_Personal/MFCApplication1/ColBoxDeployScene.h | db55ce720dcd564d36027a0941158cb08bd75848 | [] | no_license | wades12385/3Dpersonal_Project | cd1ea27372111fdbab6c8b369cde8bb730d58176 | 52af296d1fc67f47f362cc53e1d771ba4334e1f0 | refs/heads/main | 2023-03-13T17:40:50.964960 | 2021-03-08T11:52:16 | 2021-03-08T11:52:16 | 335,391,830 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 706 | h | ColBoxDeployScene.h | #pragma once
#ifndef __MFCCOLBOXDEPLOY_H__
#include "Scene.h"
USING(Engine)
class CColBoxDeployScene : public CScene
{
private:
explicit CColBoxDeployScene(LPDIRECT3DDEVICE9 pDevice);
virtual ~CColBoxDeployScene() = default;
public:
// CScene을(를) 통해 상속됨
virtual HRESULT Initialize_Scene() override;
virtual HRESUL... |
234eae04d8704cd64cb69126e7a56ae2dddf1330 | cb5d1e50b7fb823b8c00b78009d0afb52728cbf0 | /print the result of the specified operations.cpp | 2cc95710e46bc14b12b2355b1869dc763a57052b | [] | no_license | 9990vk/ideal-happiness | 05db0f7edb29514e5c2d9459247313cf57957895 | b603be021a58f356c04940118ecdd03131a8a570 | refs/heads/main | 2023-04-02T23:09:49.376196 | 2021-04-18T04:32:14 | 2021-04-18T04:32:14 | 345,660,431 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 313 | cpp | print the result of the specified operations.cpp | #include<iostream>
using namespace std;
int main()
{
cout << "Result of 1st expression is :" << (22+1) << "\n" ;
cout << "Result of 2nd expression is :" << (6-1) << "\n" ;
cout << "Result of 3rd expression is :" << (6*2) << "\n" ;
cout << "Result of 4th expression is :" << (6/2) << "\n" ;
return 0;
} |
777f7c6ca544c6a40b27d0a5324a5cdd36e2e211 | 91bb2704bedd0a9d4d7fb44d5c084f3bc0b21242 | /example/healagentfactory.h | 4cbb45acd6272b4f620b80d7ea1636113e5a6d3f | [] | no_license | zmactep/CubeSimulationLibrary | f1e1668a63950dd1f687a0c8ee29e84c2abcdb43 | 648a3ff32fb473f262448fcdaaa7db6724c1606e | refs/heads/master | 2016-09-05T20:32:09.484749 | 2012-11-26T14:51:38 | 2012-11-26T14:51:38 | 2,997,946 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 302 | h | healagentfactory.h | #ifndef HEALAGENTFACTORY_H
#define HEALAGENTFACTORY_H
#include <agentfactory.h>
#include "healagent.h"
class HealAgentFactory : public AgentFactory
{
public:
Agent* createAgents( int number, int param = 0 )
{
return new HealAgent[number];
}
};
#endif // HEALAGENTFACTORY_H
|
f546664374db6b94e283f5f24976234e0e7aeb15 | 50196ac9017c7a8f292ae3292ab5744405f19cc1 | /src/graph/genotype.cpp | d37422f5df1ffe10b3e27ac36872102f99b25af7 | [
"MIT"
] | permissive | DecodeGenetics/graphtyper | d2a6976020984818ee1666ae976feb7811812a46 | 5b01f1ecb3c9348cfc913ea2fe96e48acf77b2f3 | refs/heads/master | 2022-12-03T18:30:58.145477 | 2022-12-01T11:45:48 | 2022-12-01T12:50:37 | 93,875,942 | 154 | 20 | MIT | 2022-12-01T12:50:38 | 2017-06-09T16:09:01 | C++ | UTF-8 | C++ | false | false | 905 | cpp | genotype.cpp | #include <utility>
#include <cereal/archives/binary.hpp>
#include <cereal/types/utility.hpp>
#include <cereal/types/vector.hpp>
#include <graphtyper/constants.hpp>
#include <graphtyper/graph/genotype.hpp>
namespace gyper
{
Genotype::Genotype() : id(0), num(1), first_variant_node(0)
{
}
Genotype::Genotype(uint32_t c... |
741b84ca31af17cc2b4c6cfc5dcaf72ad726a2f2 | 37b1cc093229626cb58199379f39b6b1ec6f6fb0 | /tests/datasets/SpaceToBatchDataset.h | 650dc90be7b057b00c1ebf6599fac2d1d04fb634 | [
"MIT",
"LicenseRef-scancode-dco-1.1",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | ARM-software/ComputeLibrary | d4dfccb6a75b9f7bb79ae6c61b2338d519497211 | 874e0c7b3fe93a6764ecb2d8cfad924af19a9d25 | refs/heads/main | 2023-09-04T07:01:32.449866 | 2023-08-23T13:06:10 | 2023-08-23T13:06:10 | 84,570,214 | 2,706 | 810 | MIT | 2023-01-16T16:04:32 | 2017-03-10T14:51:43 | C++ | UTF-8 | C++ | false | false | 5,502 | h | SpaceToBatchDataset.h | /*
* Copyright (c) 2018 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* 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 ... |
40633d123a24a02980780e523445d875a4289d1a | 13b3edb28d5b3827e419801225744aaca2a9dcac | /Feature_test/Code/feature.cpp | 62163349e6ab350a6147f9d4d0e50465602140f4 | [] | no_license | Zilaan/VO | b55883010a3c5326d0328179b232ae7f1922101d | 22ddadaa610358a2c14ba6966c92f750c413200b | refs/heads/master | 2021-01-21T14:48:01.882597 | 2016-05-09T12:35:24 | 2016-05-09T12:35:24 | 56,570,858 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,670 | cpp | feature.cpp | #include <stdio.h>
#include <iostream>
#include <stack>
#include <ctime>
#include <opencv2/opencv.hpp>
#include <opencv2/xfeatures2d/nonfree.hpp>
using namespace cv;
using namespace cv::xfeatures2d;
std::stack<clock_t> tictoc_stack;
double time_comb = 0;
int i;
double result[10];
//functions
void readme();
void tic()... |
7f59a7551dba4cd736804a0feb97f0738a9296d0 | b5fc429abacd646acd18dd1a6573ce4afb9e313f | /collection/LearnDLL/src/parabola_equation_sdk/parabola_equation.h | 2f521a221ca19f0aa007344cb06deefcc8979330 | [] | no_license | zhe-ma/Collection | 2148490db21ce71f9f92f52e0f3bd6924318a939 | b32db101fec2fecbb10ea184bbbbaca1b9bfdac7 | refs/heads/master | 2021-09-20T23:02:32.250681 | 2018-08-16T12:19:27 | 2018-08-16T12:19:27 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,294 | h | parabola_equation.h | #ifndef PARABOLA_EQUATION_SDK_PARABOLA_EQUATION_H_
#define PARABOLA_EQUATION_SDK_PARABOLA_EQUATION_H_
#include <string>
namespace parabola_equation_sdk {
class Point;
// 一元二次方程,也就是抛物线方程: y = a·x^2 + b·x + c
// 导数方程,也就是斜率方程: y' = 2·a·x + b
class ParabolaEquation {
public:
ParabolaEquation();
ParabolaEquation(do... |
537ace79609a00bd8a066e476135ccfe91978c4e | cb0371e5679b4d83c02d7515e868b3392b29dce5 | /MyForm.h | 584a477ff426188b62b89c65d12a7f9c0d2a268b | [] | no_license | BloodyMaksim/Graph_Creator_C_CLI | bca8c3b00f0d6e2be655abf187dc2c20461b833c | f68f5572372eb3c37605d3b6904791d6abcdce1b | refs/heads/master | 2021-04-11T08:02:20.118351 | 2020-03-21T15:30:32 | 2020-03-21T15:30:32 | 249,004,590 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 38,330 | h | MyForm.h | #pragma once
#include<cmath>
namespace Project4 {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
/// <summary>
/// Сводка для MyForm
///... |
a715eac72411e1942a926184ccca92a742f2fe38 | d33eec7be5ae8fd524eb74cda9ff705ed98578f9 | /ex02/KreogCom.hpp | 92b6dd08d6797054952bd0f131477b353c5b25d7 | [] | no_license | Epitech-Tek2/CPPD07A | 361edeb523fbfe264eced0ed629e124d53c2a8f6 | 6767b0e9d78d8b64b6ea4cbbdf2466bf538f0609 | refs/heads/master | 2023-09-03T20:43:28.545875 | 2021-10-17T12:10:25 | 2021-10-17T12:10:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 676 | hpp | KreogCom.hpp | /*
** EPITECH PROJECT, 2021
** B-CPP-300-STG-3-1-CPPD07A-clement.muth
** File description:
** KreogCom
*/
#ifndef KREOGCOM_HPP_
#define KREOGCOM_HPP_
#include <iostream>
#include <string>
#include <fstream>
class KreogCom {
public:
KreogCom(int x, int y, int serial) noexcept;
~KreogCom();
... |
b7740121233530b0a2479337d47763d04eb3d5cc | e02904319de957e9e9df9062051de0d5a3737a24 | /test_deriv/derivinfor.cpp | b0650ee33c3614981525edfd2208d7351821659e | [
"MIT"
] | permissive | murfreesboro/cppints | 0a523392a16163b22211a11651fbeef241e9b0d9 | a7beaac034e2bfae8e71997b322133906d1afcaf | refs/heads/master | 2021-01-18T06:57:48.359493 | 2016-10-27T15:46:45 | 2016-10-27T15:46:45 | 23,126,858 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,797 | cpp | derivinfor.cpp | #include "libgen.h"
#include "textread.h"
#include "derivinfor.h"
#include "boost/lexical_cast.hpp"
using namespace textread;
using namespace derivinfor;
void DerivInforArray::readInformation(const string& fileName)
{
// let me open the file to locate the code section
ifstream inf;
const char * input_file = fileN... |
0524f743dd01627bc559109241789c6fa34fa3b7 | 49f059be55d38d802b4d35ca8de09b7c7b8e4b29 | /Codes/sketch_nov18a_servo/sketch_nov18a_servo.ino | 3dd98dee9f58308fe9c343ac43ee01554e452dbf | [] | no_license | black-fluffy-cat/SmartHouse_ArduinoCodes | 03853e6b8e69b14bc3db10bf7b9d5b20cadf30c3 | 64385bab25afafc3ee691582b119e4c4902b55fc | refs/heads/main | 2023-03-24T13:46:44.418646 | 2021-03-19T19:35:36 | 2021-03-19T19:36:20 | 332,467,848 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 425 | ino | sketch_nov18a_servo.ino | // Include the Servo library
#include <Servo.h>
// Declare the Servo pin
int servoPin = 3;
// Create a servo object
Servo Servo1;
void setup() {
// We need to attach the servo to the used pin number
Servo1.attach(servoPin);
}
void loop(){
int i = 0;
for(i = 0; i < 180; i = i + 30) {
Servo1.write... |
22b6062fa3ca8ec3d8a3317c4c7f35bcd0c26e9a | d74c76b9ae92740382d5131b9db8c20d2bae6dce | /Windows.h | 67c2d5d509b63b26e87ac57fb3c9286bff9767c6 | [] | no_license | Bill0412/fltk-demo | 95ca602538d29c7853bf274275ea1712d6759620 | e441da68999341cb3d56f8e0b1cbaed366015c75 | refs/heads/master | 2020-06-02T15:06:11.602101 | 2019-06-11T04:39:54 | 2019-06-11T04:39:54 | 191,201,430 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,439 | h | Windows.h | #include "GUI.h"
#include "Board.h"
#include "MenuBar.h"
struct Windows : Fl_Double_Window {
Windows(Point topleft, int width, int height, string title)
:
board(new Board(10, 10)),
width(width),
height(height),
menuBar(new MenuBar(width)),
Fl_Double_Window(topleft.x, topleft.y, width, height, title.c_str())
{... |
5429c9f097ed79924a368b083020e8df903f25ec | 15a5bf3b86830f4a62a44184a581dc00d3345bd7 | /FileConversion/FileConversion/fileconversion.cpp | 853e516b425e490ada513648b26077cbac72075d | [] | no_license | dongmuliu/File-conversion-assistant | dde8cb4c4b6ffdadf78a85ceb5ddac5dfff473e0 | 16299a320687bb58e60cd230de73be1feccbd2b5 | refs/heads/master | 2020-04-26T02:38:45.700249 | 2019-11-12T06:21:00 | 2019-11-12T06:21:00 | 173,240,586 | 7 | 0 | null | null | null | null | GB18030 | C++ | false | false | 14,274 | cpp | fileconversion.cpp | #include "fileconversion.h"
Mat savemat(Img_height, Img_width, CV_16UC1);
Mat showgray(Img_height, Img_width, CV_8UC1, Scalar(0));
FileConversion::FileConversion(QWidget *parent)
: QMainWindow(parent)
{
ui.setupUi(this);
//槽连接
QObject::connect(ui.openAction, SIGNAL(triggered()), this, SLOT(OpenFileSlot()));
QObje... |
0e7fba4609f213b2f732edf1d487ebe5bf69d0c4 | ece2011fdb20670f76b6b970df54bc818c6b313b | /Tests/TestPhysics/MainGame.cpp | 44e4bbb1d93d3c897f8a32ab5636bcb76ac9fe19 | [
"MIT"
] | permissive | FirstLoveLife/Acid | eda32711a0cfdcc9f596e547e2880e9edfffda5a | b7ce821a6a2b2d4bc441b724fabe1bbd9b9c6b8d | refs/heads/master | 2020-04-28T04:20:02.863648 | 2019-03-15T19:26:27 | 2019-03-15T19:26:27 | 174,974,067 | 0 | 0 | null | 2019-03-11T10:09:23 | 2019-03-11T10:09:22 | null | UTF-8 | C++ | false | false | 3,881 | cpp | MainGame.cpp | #include "MainGame.hpp"
#include <iostream>
#include <Files/Files.hpp>
#include <Files/FileSystem.hpp>
#include <Inputs/ButtonKeyboard.hpp>
#include <Devices/Mouse.hpp>
#include <Renderer/Renderer.hpp>
#include <Scenes/Scenes.hpp>
#include "Behaviours/HeightDespawn.hpp"
#include "Behaviours/NameTag.hpp"
#include "Main... |
c5811ee9f363aeabf680c89a6644a75ba35a259e | bda34633491b808b2dddd292a885186b4dedc7e6 | /56/merge_intervals.cpp | 797466c0a07bf24dee675d4e7260b3ec8358ea59 | [] | no_license | berneylin/LeetCode2019Spring | 3990561862faddf8f294d5750e4ac4c5fcba2953 | 000f8fb2b00d4d5c6bfec9abb11b7f6158ad9ba8 | refs/heads/master | 2021-07-07T00:14:10.898739 | 2020-08-17T18:03:23 | 2020-08-17T18:03:23 | 167,664,035 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,695 | cpp | merge_intervals.cpp | #include<algorithm>
using namespace std;
/**
* Definition for an interval.
* struct Interval {
* int start;
* int end;
* Interval() : start(0), end(0) {}
* Interval(int s, int e) : start(s), end(e) {}
* };
*/
class Solution {
public:
static bool cmp(Interval x, Interval y){
return x... |
1ec5f579dff4bb2316fa2d7acd228e9ac6181337 | 7c338835266752b09ffc0ff1a833df1f983843de | /recur/combination.cpp | b70ecfdb941f761a8b98b4aed7948eee983eb0f9 | [] | no_license | adit-prawira/my-cpp | c40a25ec3881c00605564cc43d3cbaf8f4a826a4 | d4b6cd094a14f94d87fea2e844d207f4b227fbbd | refs/heads/main | 2023-03-29T14:24:55.051127 | 2021-03-31T03:46:46 | 2021-03-31T03:46:46 | 337,834,691 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 702 | cpp | combination.cpp | #include <iostream>
int factorial(int n ){
if(n == 0){
return 1;
}else{
return factorial(n-1)*n;
}
}
int combination(int n, int r){
int numerator, denominator;
numerator = factorial(n);
denominator = factorial(n-r)*factorial(r);
return numerator/denominator;
}
int rec_combi... |
2dfea00a95b5a730687718802ecfe34fa51d0c37 | 83bde29f10c02a7a49b4a1a217281bde91c1acfe | /zerojudge/d890_4.cpp | 2140bd8ebc17582b1734dc745caaf352a08a5675 | [] | no_license | topcodingwizard/code | 74a217527f79b2f2ab47f0585798d6d55b92f3c0 | 3a5d3c4d54f84e06625ee4e53b9375bae6eb8275 | refs/heads/master | 2023-09-05T15:56:31.620344 | 2021-11-15T01:07:21 | 2021-11-15T01:12:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,007 | cpp | d890_4.cpp | #include <stdio.h>
#include <vector>
using namespace std;
const int maxN = 100030;
const int INF = 1 << 30;
int Map[maxN];
vector<int> a;
int main() {
int L;
while (~scanf("%d", &L)) {
// input -------------
for (int i = 1, in; i <= L; i++) {
scanf("%d", &in);
Map[in... |
69422fef63382a22df5bcd4c35cd61a57f41b9c8 | 5e08deeb789c7c2abc038338e3fa2ee52eb7937e | /Builds/iOS/linesofplay/Classes/Native/Generics14.cpp | 06b14a6e0346800bc4cb18a728ce6c0afb837fe0 | [
"Apache-2.0"
] | permissive | Mr12th/lines-of-play | 3b1d8eed087328ad36b8ab7c77958c8f5a5b1252 | 38e05c674b3453544900af923ed088ab8b5cdd30 | refs/heads/master | 2023-01-03T21:16:45.091354 | 2020-11-03T03:31:56 | 2020-11-03T03:31:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,976,935 | cpp | Generics14.cpp | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "codegen/il2cpp-codegen.h"
#include "il2cpp-object-internals.h"
// Syste... |
fbe89664c1f20365fa01992056411f0e9a8964bd | fcec69deef2b31b7907dabe0cee98ea596d0597d | /assignments/assignment3/animal.cpp | 98610df8abd55604dccfd1e97bf9d639d4e0aa2d | [] | no_license | Lyon-K/CS162 | c5cde41df4c74e4333ef508674d6379e62d97926 | 8c7a2bae6dbfd287dd0982e0552f74ec3c76c4b9 | refs/heads/master | 2022-12-22T18:42:15.405490 | 2020-09-28T15:27:34 | 2020-09-28T15:27:34 | 299,288,144 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,750 | cpp | animal.cpp | #include "animal.h"
using namespace std;
Animal::Animal(){
this->age = 0;
this->price = 0;
this->births = 0;
this->food_cost_percentage = 0;
this->revenue = 0;
this->cure_cost = 0;
this->selling_price = 0;
}
Animal::Animal(const Animal& old_obj){
// cout << "ANIMAL COPY CONSTRUCTOR C... |
db61d7e33c5a8e3bce4db603dc836d6376827043 | a9f705e03c45d862d0354e43bbc58e546b8cd5b3 | /counting.hh | a51cefe539c5a6d53aa4f74e52f0c6873f6a1628 | [
"MIT"
] | permissive | shrishabh/phasedArrayOptimized | d1aca523146aa386d3e8ba89c544a374a0b45c41 | 013df1e759b12f08b1c83bba675de6a5e287103a | refs/heads/master | 2020-03-18T17:18:42.583242 | 2018-05-27T06:28:25 | 2018-05-27T06:28:25 | 135,020,670 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,717 | hh | counting.hh | ////////////////////////////////////////////////////////////////////////////////////////////////
//class Counting:
////////////////////////////////////////////////////////////////////////////////////////////////
class Vector;
class Event;
class Counting {
public:
Counting();
~Counting();
void initializeEachRu... |
80ea938b119bf8c92c3627c871c4e39aed873613 | 3840ded940b99241a81dcbc7b1288d386e27b261 | /src/utils.cpp | cfe9df08909e1da64cee1cde07890cab221006ee | [] | no_license | Abderrahman-byte/http-server-cpp | 23184d632a5b0a803f76d22c527033d618a47b45 | 5bbc5e60e25ae0cc9923e99e7e11055fa8b4d6ac | refs/heads/master | 2023-07-20T07:41:59.867429 | 2021-09-04T09:33:25 | 2021-09-04T09:33:25 | 399,154,714 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,144 | cpp | utils.cpp | #include <string>
#include <sys/stat.h>
#include <fstream>
#include <sstream>
#include <iostream>
#include <vector>
#include "utils.hpp"
bool check_file_exists(std::string filename, struct stat* file_stat) {
if (file_stat != NULL) {
return stat(filename.c_str(), file_stat) == 0;
}
struct stat fil... |
8afb54bd84daa316e49255763f1af2b317e0f234 | 339edcefd65f3969506dc5ce453b337705cc6242 | /Source/FFTOcean/Private/Pass/InverseTransformPass.cpp | 6df0cc8684fe62c902540f479c31c9746db975fd | [] | no_license | ceshijivco/FFTOcean | 42d575e088d1c661f756023b52b9710e49517f8c | ee9b9b38e21e02076899aef58bf12508a340c3d5 | refs/heads/master | 2021-03-29T17:29:16.923336 | 2020-02-24T03:51:35 | 2020-02-24T03:51:35 | 247,970,613 | 1 | 0 | null | 2020-03-17T13:01:06 | 2020-03-17T13:01:05 | null | UTF-8 | C++ | false | false | 9,674 | cpp | InverseTransformPass.cpp | // Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#include "Pass/InverseTransformPass.h"
#include "RenderCore/Public/GlobalShader.h"
#include "RenderCore/Public/ClearQuad.h"
#include "RenderCore/Public/ShaderParameterUtils.h"
#include "RenderCore/Public/ShaderParameterMacros.h"
#include "Public/GlobalShade... |
b4e31d609b53b77dc1e98b9f399bed728d37fd5c | 5bccf2d2118008c0af6a51a92a042e967e4f2abe | /Support/Modules/Brep/MeshBrepCalculations.hpp | 8e8ab108ba25110e173354a7dbdcdf64ed1e6b7b | [
"Apache-2.0"
] | permissive | graphisoft-python/DGLib | fa42fadebedcd8daaddde1e6173bd8c33545041d | 66d8717eb4422b968444614ff1c0c6c1bf50d080 | refs/heads/master | 2020-06-13T21:38:18.089834 | 2020-06-12T07:27:54 | 2020-06-12T07:27:54 | 194,795,808 | 3 | 0 | Apache-2.0 | 2020-06-12T07:27:55 | 2019-07-02T05:45:00 | C++ | UTF-8 | C++ | false | false | 2,961 | hpp | MeshBrepCalculations.hpp | // MeshBrep calculation templates
#ifndef MESHBREPCALCULATIONS_HPP
#define MESHBREPCALCULATIONS_HPP
#pragma once
#include "MeshBrepAccessors.hpp"
namespace Brep {
template<typename MeshBrepT>
Box3D MeshCalculateTransformedTightBounds (const MeshBrepT& meshBrep, const TRANMAT* trafo, const GS::Array<UIndex>& omittedV... |
81dd08f788fbc611c03b4be367f4e9aed3632f13 | 9573000d35e046048181f76acf96d2c1121dbfd3 | /test/test.cpp | 196ab27f089127137ec3441c84af2d7ea0ef7cb6 | [
"MIT"
] | permissive | ortfero/inter | f5c40ca48fa5f5c5b8d44244e03093a534fc6320 | f379fc2824918a7c43c4dd68d92a7575e0765d18 | refs/heads/main | 2023-05-11T08:58:13.299502 | 2023-04-29T10:24:43 | 2023-04-29T10:24:43 | 309,318,772 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 94 | cpp | test.cpp | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "doctest.h"
#include "sockets.test.hpp"
|
517261acf91e15012f1f7edb8ea96e54eb9e1165 | 9bc945ad2ff2a2384709e5d4af3ebd1aa21fcd97 | /ConvertToBit.cpp | 0ac8b640adb9683488bed232d444b91f06c4a203 | [] | no_license | Tamabcxyz/CodeC | 1b964d79f8def0f3e267b91c9ae0770cb51110b0 | 37f9f104cb437fca2ef4c63349e022685750ac9d | refs/heads/master | 2020-04-25T14:39:50.340000 | 2019-02-27T13:50:45 | 2019-02-27T13:50:45 | 172,849,004 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,912 | cpp | ConvertToBit.cpp | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
int chuyendoi(char s[]){
int l=strlen(s);
int x=0;
if(l==1){
if((int)s[0]>=65&&(int)s[0]<=90||(int)s[0]>=97&&(int)s[0]<=122){
x=(int)s[0];
}
else{
x=s[0]-'0';
}
}
else{
if(s[0]=='-'){
for(int i=1;i<l;i++){
x=x*10+s[i]-'0';
}
... |
293939c555e946d1f67985d1ed0169c16fb3ec25 | 8c89782663a343f7c3d362573620f79d275a6142 | /src/16000/16946.cpp17.cpp | 61b4e0b28a7e7f83d08d388dcac7ee30f5685b94 | [
"MIT"
] | permissive | upple/BOJ | 14a8c8e372131b9a50ba7c1e7428ba7e57b4702d | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | refs/heads/master | 2021-06-21T07:17:57.974279 | 2019-06-28T17:56:30 | 2019-06-28T17:56:30 | 128,779,781 | 13 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,100 | cpp | 16946.cpp17.cpp | #include <bits/stdc++.h>
using namespace std;
struct xy{int x, y;};
const int dx[]={0, 0, 1, -1};
const int dy[]={1, -1, 0, 0};
char arr[1002][1002];
int v[1002][1002];
int s[1000000];
int c;
void bfs(int x, int y)
{
c++;
queue<xy> Q;
v[x][y]=c;
int size=0;
Q.push({x, y});
while(Q.size())
{
x=Q.front().x, y=... |
e75244fc70dd722548268deba7d78a104fa9ad22 | 2b2a95d23b5d51f2e332c5e13081304ef8e9508e | /task/VQETaskActivator.cpp | 58ae5e5ea958bc5e82c749a7fcfac21b304b1b25 | [
"BSD-3-Clause"
] | permissive | zpparks314/xacc-vqe | dbc07b4bad7a361ff8494c8a43d0edf579bfe573 | 37aaadb12d856324532c42ca9f7e56147edbd2e7 | refs/heads/master | 2020-05-30T23:03:41.625545 | 2019-07-01T14:53:18 | 2019-07-01T14:53:18 | 151,572,376 | 0 | 0 | BSD-3-Clause | 2018-10-04T13:01:58 | 2018-10-04T13:01:58 | null | UTF-8 | C++ | false | false | 3,526 | cpp | VQETaskActivator.cpp | /***********************************************************************************
* Copyright (c) 2017, UT-Battelle
* 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 o... |
628e6562d9954c6ad3b1535b498c1d1951159fee | a7a7a297201cdbbc3c6e9701c6eb62724a741635 | /src/rule_manager.cpp | a875b3287ee093000f3080b9188ff3d7526bb7cb | [] | no_license | fleapx/netcontrol | 558c23e6e511e9d08be951c01b01f42d9160a9d2 | 5fedeecd8d0674d4051eb13f587c2e33239793b3 | refs/heads/master | 2020-08-05T02:54:32.806392 | 2019-08-09T09:35:54 | 2019-08-09T09:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 45,833 | cpp | rule_manager.cpp | #include <list>
#include "rule_manager.h"
#include "report.h"
RuleItem::RuleItem(const std::string& rulename, CJsonWrapper::NodeType root, RuleManager& ruleman)
: _ruleman(ruleman) {
this->_action = ACTION_RULPASS;
this->_direction = 0;
this->_socktype = 0;
this->_mask = 0;
this->_enable ... |
ce9dd331eefab6c2d2fcbe9cd8f00ddd8b4139d9 | 426cab51ab38eb4b9573c95fc45225b9ddc35538 | /SerachPath/SerachPath.h | b90d41e427bc92f49eff9c77b503496ecb1adb38 | [] | no_license | Jinec98/serach_path | 40d12f395177068efa385394362ca49552b64a2b | 5c14aac4582a353db9d1ee17b7969ec6c4a42c25 | refs/heads/master | 2021-09-18T10:42:06.518721 | 2018-07-13T08:30:40 | 2018-07-13T08:30:40 | 133,962,873 | 0 | 2 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 2,722 | h | SerachPath.h | #pragma once
#include <string>
#include <QDialog>
#include <QThread>
#include <QApplication>
#include <QDesktopWidget>
#include <QtWidgets/QMainWindow>
#include <QGridLayout>
#include <QVBoxLayout>
#include <QPushButton>
#include <QToolBar>
#include <QAction>
#include <QComboBox>
#include <QSlider>
#include <QLabel>
#... |
2d42532affdaedbcb346ac43f486e07d67195991 | 69f7218ca87625e310217a85fbd7afdc2beb8c16 | /ANGRY_SLIMES_FISTS/Texture_Pack.h | 7c712498f5ce665aed31cc2e1823d265ee936a17 | [] | no_license | MarcinKnapik37/C-Project | d0988307effb97651f8c3bfef2d7e20a3b99e7b5 | 6f51a2e76219535c78824ea445c32f4d0bec4af9 | refs/heads/master | 2021-07-08T11:28:25.267921 | 2021-01-07T19:56:40 | 2021-01-07T19:56:40 | 225,854,165 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 321 | h | Texture_Pack.h | #pragma once
#include"SFML/Graphics.hpp"
#include"vector"
class Texture_Pack{
private:
public:
std::vector< std::vector< sf::Texture > > textures;
std::vector< std::string > blocks_names;
Texture_Pack();
~Texture_Pack();
void setBlocksNames();
void setTextureSizes( int size );
void loadTextures( int size );
}... |
37d6349df5a7ce8958fb68e80909ccc338bcfb28 | 5cdd9c1b6adb67fec94f6349ad6203ce2702fecb | /src/EnergyPlus/HVACVariableRefrigerantFlow.cc | ba032fcffe2e694192a19c70bbe3a45dffd54ad9 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | NREL/EnergyPlus | 9d8fc6936b5a0c81d2469ab9cdabe55405ccb8f2 | 50b8a5511ce559e5175524b943c26cc5b99d712d | refs/heads/develop | 2023-09-04T08:20:29.804559 | 2023-09-01T13:58:55 | 2023-09-01T13:58:55 | 14,620,185 | 1,013 | 406 | NOASSERTION | 2023-09-14T19:52:57 | 2013-11-22T14:47:34 | C++ | UTF-8 | C++ | false | false | 966,087 | cc | HVACVariableRefrigerantFlow.cc | // EnergyPlus, Copyright (c) 1996-2023, The Board of Trustees of the University of Illinois,
// The Regents of the University of California, through Lawrence Berkeley National Laboratory
// (subject to receipt of any required approvals from the U.S. Dept. of Energy), Oak Ridge
// National Laboratory, managed by UT-Batt... |
e05a8e68edb695e9fb37239336460e2644ab342a | 64c195ed855ba6d5a8bc3c41a0a8ed51a3d6061e | /apx/test/test_deserializer.cpp | 4f284a9f060a47957ef3f0d059783dba7134cd51 | [
"MIT"
] | permissive | cogu/qt-apx | 75665b353519d8c87a84e83c14b30a51a6457a45 | 5e46a99c3edb89e2cb9c7ba5f97329933c1d2ca8 | refs/heads/master | 2021-06-10T00:11:46.808502 | 2021-03-11T12:29:27 | 2021-03-11T12:29:27 | 82,416,880 | 1 | 2 | MIT | 2019-09-07T10:07:35 | 2017-02-18T21:21:23 | C++ | UTF-8 | C++ | false | false | 303 | cpp | test_deserializer.cpp | #include "test_deserializer.h"
#include "qapxdataelement.h"
void TestDeserializer::test_simple()
{
QApxDataElementParser parser;
QApxDataElement *dataElement = parser.parseDataSignature((quint8*)"C");
QCOMPARE(dataElement->baseType, QAPX_BASE_TYPE_UINT8);
delete dataElement;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.