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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
09809528ee4424c001e40ae7b398240a620e38b1 | 29b06badd26cd726f0d7bafa46c90ccca66f588d | /ch2/ch2_5/sortdialog.h | b4581a9d36b9dfb6cbc8908ac1a2ec2fb927e9b5 | [] | no_license | Sam-Z/cpp_gui_programming_with_qt4 | 88ce85fd7e08eb32830d4253172f700b772bf188 | 006335ff17d9903f0b88068b7d24ccf02080a002 | refs/heads/master | 2021-09-05T13:18:54.795481 | 2018-01-28T03:21:20 | 2018-01-28T03:21:20 | 108,422,496 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 258 | h | sortdialog.h | #ifndef SORTDIALOG_H
#define SORTDIALOG_H
#include<QDialog>
#include"ui_sortdialog.h"
class SortDialog:public QDialog, public Ui::Sort
{
Q_OBJECT
public:
SortDialog(QWidget *parent = 0);
void setColumnRange(QChar first, QChar last);
};
#endif
|
1b059373e95fc3ab1775c5a98c2974a6eaf1579a | 9abc64591173bb22af2f9d50116fbc4e143cf86b | /Yandex Part 3 Finals/E.Hills.cpp | 093c76ad4a839a1f616d4f7364ca60f3aaca174f | [] | no_license | jailsonevora/yandex-cpp-for-competitive-programming | e8924e4f259b0e3be9f12be0c3b08b49e7752dc8 | 53e4727d0323eec4b27a57429b19671dc1139172 | refs/heads/main | 2023-05-12T07:34:00.985125 | 2021-06-04T17:37:26 | 2021-06-04T17:37:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 452 | cpp | E.Hills.cpp | #include <iostream>
#include <cmath>
using namespace std;
int hills(int n, int a[]){
int count = 0;
for(int i = 1; i <= n - 2; ++i)
if(a[i] > a[i-1] && a[i] > a[i+1])
count++;
return count;
}
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
int n = 0;
cin >> n; ... |
acf0ac93511b2a8e395615b94dc8d38d72689708 | e092d678f47544e98a93524322a52566cc1df79c | /Graphics/Application.cpp | f52696a4cdd6d00858d4892f527d1e695c55a33e | [] | no_license | BrychDaneel/Battleship3D | 654ae938783fc120b7b7215d21065364c9b3fc97 | e45b20a28b7c162efe6a9af7c0d90b0ad83925bb | refs/heads/master | 2021-01-17T07:03:27.967762 | 2016-06-09T16:38:10 | 2016-06-09T16:38:10 | 53,894,461 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,602 | cpp | Application.cpp | #include "Application.h"
#include "../Network/BattleShipUDP.hpp"
#include "../Game/options.hpp"
#include <strstream>
using namespace BattleShipUDP;
using namespace Ogre;
using namespace OgreBites;
std::vector<std::string> ServerBuffer;
int myarea[10][10], enemyarea[10][10];
int limit[] = {0, 4,3,2,1};
bool enemyset... |
9dd96234d1e9a293ffe459c0c8c40c51351ee612 | 3ab098dc1868ad3e10ff893f89a7d6cc0db68b83 | /TDAFile.cpp | 9e79f84db6b5eb187fcba61205c968e704d90559 | [] | no_license | dacm26/TDARecordFile | 08ebce6bf52b24fe509d65f4c780cc071a29929d | aeec4ea65633120f462782e9e7d3d5384e4b04e6 | refs/heads/master | 2020-05-17T15:47:54.149358 | 2013-08-05T04:35:54 | 2013-08-05T04:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,298 | cpp | TDAFile.cpp | #include "TDAFile.h"
#include <string>
#include <sstream>
#include <iostream>
#include <fstream>
using namespace std;
TDAFile::TDAFile(){
}
TDAFile::~TDAFile(){
}
bool TDAFile::open(string name,ios_base::openmode modo){
filename=name;
mode=modo;
file.open(name.c_str(), modo);
if (file.is_open())
return true;... |
bfae4dde1cfe3a14de55f1d0a8910298b7bf69aa | a7dd4ed8229944ed677b8640e8d9a3a493de456e | /Minimum Spanning Tree/Minimum Spanning Tree.cpp | 739ad07222a7c1318458f5aa0ec231aa3dca860d | [] | no_license | KGabus/Min-Spanning-Tree | 5b71df57ab2c345fe5dce195a18b5db9bf8f967c | 477bc93a320af317623a4a75076736f87dcdc1e2 | refs/heads/master | 2021-01-20T01:27:59.591344 | 2017-05-10T04:53:06 | 2017-05-10T04:53:06 | 89,279,746 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,115 | cpp | Minimum Spanning Tree.cpp | // Author : Kaylee Gabus
// Date : 5-1-17
// Minimum Spanning Tree.cpp : Defines the entry point for the console application.
//builds the minimum spanning tree for a graph using both Kruskal's and Prim's algorithms
//outputs the tree as an alphabetized list of verticies and their weights
//requires input in the fo... |
6e67bdd05bce9361de8c10c5c6e499dcbf49b5a4 | d0130952d7824ead7c820359aef35ede090c92d3 | /main.cpp | ebd3c526457df51439473b857f5a6d71dc30f8e1 | [] | no_license | 10-05-03-community/GCD | 513d6cce60056813fa025aa86037e169e45e3815 | c4596c73f41f14fe0389385f231733df9cad5191 | refs/heads/main | 2023-02-15T12:25:38.020176 | 2020-12-24T06:58:16 | 2020-12-24T06:58:16 | 324,089,239 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,384 | cpp | main.cpp | // Copyright 2020 Spardoks
#include <iostream>
#include <limits>
int get_number(char name);
int GCD(int a, int b);
void extendedGCD(int a, int b);
/// MAIN ///
int main() {
int a = 0;
int b = 0;
a = get_number('a');
b = get_number('b');
std::cout << "GCD(" << a << ", " << b << ") = " << GCD(s... |
3197441c082ace4f92063315f9b0616dae78fb97 | 53427a39f9f7bea82d94e7890dcb8571667141d2 | /class_kulovana/dvabody.h | e51282711311d7b58045ec38f8cecdf24b5882ed | [] | no_license | pikorcik/CPP | 6442a89512519951bd6ae620886516e3d77ee106 | 28c4a3d6d8b48018d36070ab87b4118ab0c6a4c0 | refs/heads/master | 2021-08-08T18:05:51.921087 | 2017-11-10T20:10:38 | 2017-11-10T20:10:38 | 110,265,813 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 284 | h | dvabody.h | #ifndef DVABODY_H
#define DVABODY_H
class DvaBody
{
public:
DvaBody(); // konstruktor
DvaBody(double x_a, double y_a, double x_b, double y_b);
~DvaBody(); // destruktor
void smernik();
void delka();
private:
double pi, ax, ay, bx, by;
};
#endif // DVABODY_H
|
ab1ec7d72f38056b62d6898c4d438dcc0c30b154 | 0dd57e48d58ba77c14f5c50c5de58ed5ad103c00 | /cpp_play/serial_executor_cond_var.cpp | 5f751aa1d307af8b051770b84b4857aadebb86c0 | [
"MIT"
] | permissive | IgorHersht/proxygen_ih | 7dc0b0205d304c39ed37d4c9916a60f7dad2eca1 | ea03a6be1a0430b5ee48f6172425331b872ea688 | refs/heads/master | 2022-10-14T19:33:14.300830 | 2022-09-21T16:43:40 | 2022-09-21T16:43:40 | 107,905,143 | 9 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,193 | cpp | serial_executor_cond_var.cpp | #include <future>
#include <thread>
#include <mutex>
#include <condition_variable>
#include <iostream>
#include <chrono>
struct MakeOrder{
void A_s(){
for(int j =0; j < m_max_iter; ++j){
A_once_s();
}
}
void B_s(){
for(int j =0; j < m_max_iter; ++j){
B_once_s();
}
}
void A_once_s(){
std::uniqu... |
26e5af716e9c428aff49f64240f926e5809033ce | fbc77fe6ab2b4545c5cbd81c63d36bb4e482ca35 | /2d_game/Menu.h | 9537feca20c95680f5d2012ad1b6b2597dd80778 | [] | no_license | Nalepa/2d_adventurer_game | c083abc05d7b2cc8c4c05e97dd4fd35f4037242a | 7d71216c4d90240b57d1c0fbd5452317c27fe12f | refs/heads/master | 2020-06-20T15:41:34.932165 | 2019-07-24T07:00:19 | 2019-07-24T07:00:19 | 197,166,383 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 654 | h | Menu.h | #pragma once
#include "Game.h"
#include "Credits_and_Control.h"
#include "Exceptions.h"
#include <vector>
class Menu
{
sf::RenderWindow window;
sf::Font font;
sf::Event event1;
std::vector<sf::Text>texts;
std::vector<sf::RectangleShape>buttons;
std::vector<sf::RectangleShape>::iterator iterator;
bool iterator_bl... |
bc72c1a63ba3d507fdae2460de154f052258034c | c2d12e886638898ad1977991d89f4741693e2512 | /include/tcplayerdll.h | 9117fd78bd0dc161a513d64bc8f338ce4f233b4e | [] | no_license | abechanta/tetris-contest-player | 67a31ecf95dee09014ad243f9f0e3b2959e20f1a | e970577d5625af97b7e91def2af991afeaf5ad0b | refs/heads/master | 2023-02-08T21:11:02.934974 | 2020-12-29T02:46:44 | 2020-12-29T02:46:44 | 323,922,226 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,518 | h | tcplayerdll.h | //
// Copyright (c) 2010, Abe Chanta
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// - Redistributions of source code must retain the above copyright notice,
// this list of conditions... |
87c26625cddc0efe9d02cd513fdaf5fa4c926297 | 446d204516d9218b2bc57bee0dea74e7b1ff7bff | /unittests/crypto_primitives_tests.cpp | 148764a68844a662fced29f6ec8f4324c49d1049 | [
"MIT"
] | permissive | worldwide-asset-exchange/wax-blockchain | 58149f0edb06168d5f4dff85c44297d48da2856f | 5bd8121e385179ab8a8ef1c526fe894b8a14a99c | refs/heads/main | 2023-07-20T08:50:17.573396 | 2023-07-13T15:29:01 | 2023-07-13T15:29:01 | 191,630,987 | 133 | 55 | MIT | 2022-02-16T23:41:15 | 2019-06-12T19:17:57 | C++ | UTF-8 | C++ | false | false | 33,253 | cpp | crypto_primitives_tests.cpp | #include <eosio/chain/abi_serializer.hpp>
#include <eosio/chain/resource_limits.hpp>
#include <eosio/chain/generated_transaction_object.hpp>
#include <eosio/testing/tester.hpp>
#include <eosio/chain/webassembly/return_codes.hpp>
#include <Runtime/Runtime.h>
#include <fc/variant_object.hpp>
#include <boost/test/unit_... |
8408d57a3933c30a8ac34205ee57847088f85c8e | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_1674486_0/C++/maker2807/main.cpp | 3ade82f452d750597b06e476ab027121654c194a | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,728 | cpp | main.cpp | #include <iostream>
#include <vector>
using namespace std;
bool dfs(int i,vector <bool> &visited, vector <vector <int> > &inh) {
for (int k=0; k<inh[i].size(); k++) {
if (visited[inh[i][k]]) {
//cerr << "from " << i << " visited " << inh[i][k] << " " << visited[inh[i][k]] << endl;
... |
f53385c31326fa8e7e91bbfdda784678b9b9110d | 13da20e5c120466de53eb6e06ce166e6a5704d61 | /CPP_03/ex02/ClapTrap.hpp | b56c3f5d4107ba4987d2915c136030d08a36f58f | [] | no_license | hyungraelee/CPP_Module | dccbb0b88d6d8debe917c8caa17274668a8e1d04 | 7b8b5f6efdde6d980499e51ed62108d15b99276c | refs/heads/main | 2023-07-13T06:22:46.019891 | 2021-08-21T08:59:26 | 2021-08-21T08:59:26 | 378,877,009 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,705 | hpp | ClapTrap.hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ClapTrap.hpp :+: :+: :+: ... |
66c0fc4875e89ad61fbe77d02bac23decdb3e9af | 2941280e40be2bdb0ce1fc673a5c53086762a41d | /Renderer/src/Heightmap.cpp | e1cfa5903993adb4c5d465e3756b1af48bca6dda | [] | no_license | ghostec/WhiteOld | 0fc88f61d8df902f2b44f1a0f175e0452949b04c | 87a8890242274ae278dc090641dc10e70d67cab3 | refs/heads/master | 2021-05-27T23:01:33.262874 | 2014-11-26T22:29:13 | 2014-11-26T22:29:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,574 | cpp | Heightmap.cpp | #include "Renderer/Heightmap.h"
Heightmap::Heightmap( std::string file_path )
{
unsigned char* image;
int width, height;
image =
SOIL_load_image( file_path.c_str(), &width, &height, 0, SOIL_LOAD_L );
std::vector< WMath::vec3 > vertices, uvs;
vertices.reserve( width * height ); uvs.reserve( width * heigh... |
52261dceee31c2a0452be6152c92661b1dd87aff | b2cc90c02ccc596a2b04d619ee959b38173b4a4c | /tictactoe/main.cpp | 93b61ee77679bb460aabc7085807db73330c1e1e | [] | no_license | Scr1mshaw/Scr1mshaw | d6bf9a6e530a4a1a9197f9346e43ec4879a38814 | d297221857144bf634216c183285f6cd4f4b8198 | refs/heads/main | 2023-08-14T22:24:28.714226 | 2021-09-18T18:54:31 | 2021-09-18T18:54:31 | 387,016,773 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 711 | cpp | main.cpp | #include <iostream>
using namespace std;
int main()
{
const char PLAYER_X = 'X';
const char PLAYER_0 = '0';
char currentPlayer = PLAYER_X;
char lastPlayer = PLAYER_0;
const char emptyspot1 = '1';
const char emptyspot2 = '2';
const char emptyspot3 = '3';
const char emptys... |
c1c8ff5cfe86e6e30209cdb1ef769f05b230b0e6 | 24f8c1bc84049310ade1ecdea8d041f5aff94bd8 | /C++98/examples/covariant_return_types.cpp | 79e61f4538f28e0e2b6681c137ec6c1b2cc03fff | [] | no_license | BartVandewoestyne/Cpp | f10d709aed4bbe03b3cca1778ef8f5b7ec554c54 | 055d3fc61922a29657f48241defcaba744f43d0f | refs/heads/master | 2023-08-22T19:42:32.516681 | 2023-08-03T21:58:02 | 2023-08-03T21:58:02 | 4,518,426 | 126 | 17 | null | null | null | null | UTF-8 | C++ | false | false | 980 | cpp | covariant_return_types.cpp | /*
* References:
*
* [tambe20170503] More C++ Idioms / Covariant Return Types
* https://en.m.wikibooks.org/wiki/More_C%2B%2B_Idioms/Covariant_Return_Types
* [stackoverflow20090811] Is there a way to forward declare covariance?
* https://stackoverflow.com/questions/1259272/is-there-a-way-to-forward-dec... |
12e77663c780cc91282dc8e85a2fb8e2dff9e845 | f341dd4465b8da21c32c5b9ea9d3ea4aa56d6eae | /vm/builtin/fiber.cpp | a3ab32b8c059b78252237f4e3e7c3bf3c2103dda | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | QPC-WORLDWIDE/rubinius | a9f4eb396936764f996d258e020942d41d601d16 | 826d6a624596964a51c28cdaa78f4646ae93a63e | refs/heads/master | 2021-12-03T03:14:23.519971 | 2011-10-06T21:50:43 | 2011-10-06T21:50:43 | 432,855,519 | 1 | 0 | BSD-3-Clause | 2021-11-29T00:06:53 | 2021-11-29T00:06:53 | null | UTF-8 | C++ | false | false | 10,798 | cpp | fiber.cpp | /* This MUST all be at the top */
#include "builtin/fiber.hpp"
/* end must be at the top */
#include "builtin/object.hpp"
#include "builtin/array.hpp"
#include "vm/vm.hpp"
#include "builtin/class.hpp"
#include "builtin/integer.hpp"
#include "builtin/exception.hpp"
#include "objectmemory.hpp"
#include "gc/gc.hpp"
#i... |
ff7ee5fab962eddaa416d8625e64463582257ed8 | f0d1e8d9f51de85ad392f7f6090ce745d7ba5630 | /tests/physics_test/PhysicsTest.cpp | 022f45676b6501e3191cf113c59cb6eadf92889c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gwthomas/sol-framework | 8727104eb31e9a2b9692bc69ba123bc72e584101 | d2ab27779ff1be3a0294412fd4b718c62f5f2407 | refs/heads/master | 2021-01-20T11:11:23.875173 | 2014-09-26T03:54:11 | 2014-09-26T03:54:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,569 | cpp | PhysicsTest.cpp | #include "PhysicsTest.h"
#if SOL_USE_PHYSICS
# include "SolParticleSystem.h"
# include "SolArbiter.h"
# include "SolConstraint.h"
# include "SolNative.h"
# include "SolSpace.h"
# include "SolResourceManager.h"
# include "SolSprite.h"
using namespace sol;
PhysicsTest::PhysicsTest() :
dudeSprite("Dud... |
195fbb064f7cb68474b7d8363dafb7f114845096 | eda52f00615564e818ed8de8c481d1c8c843b7a5 | /cube-3.0/src/cube/AggrCubeMaps.h | cacbfe065226d2a37344b5d4f64322f377cb5822 | [] | no_license | pyrovski/scalasca | e54c52e8aa4a8b5cbb2294074c53d95eab1eeb7d | 726e6f85fd89f284bda6df6d8bb160276b3a297f | refs/heads/master | 2021-01-01T04:27:08.330831 | 2013-07-19T19:26:18 | 2013-07-19T19:26:18 | 11,535,489 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,228 | h | AggrCubeMaps.h | /****************************************************************************
** SCALASCA http://www.scalasca.org/ **
*****************************************************************************
** Copyright (c) 1998-2013 **
** Fors... |
c08d989b7cdf47776276ef5b8b1667db1c877101 | e5911d4740c658d3830bb3de8994014035550667 | /ACM/1664.cpp | 8a018fce1b0f9fc07cc2ed7a397508bcae45b67f | [] | no_license | FAKERINHEART/CODE | 4263924c6e0ebdcc9544dde20ceaf81813acbf02 | e2820ccff4c23b7ba1e578970a7a46350d8ee918 | refs/heads/master | 2021-01-24T11:19:45.828251 | 2020-09-19T13:13:33 | 2020-09-19T13:13:33 | 43,857,669 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 433 | cpp | 1664.cpp | #include <iostream>
using namespace std;
int main()
{
int num, M, N;
int array[11][11];
cin >> num;
for(int i = 0; i < num; i++)
{
cin >> M >> N;
for(int j = 0; j <= M; j++)
{
for(int k = 0; k <= N; k++)
{
if(!j && k || k == 1) array[j][k] = 1;
else if(!k) array[j][k] = 0;
else array[j]... |
d8ae6754c696ccf7dd84b2c20b02b7455fcf9f0e | b4330417dd1590cf7ea3484c4dda20a0ecfee3b4 | /Online_judge/HDU/hdoj_4713.cpp | 12552064bb64d1eb104fc80b2e429fe5913c04f5 | [] | no_license | Q10Viking/ACM_ICPC | d2b2c69e451a4e8de2fafdf346797900c61e65ee | d3d6547313a4400ed9c3eef1339a79466ffa5d97 | refs/heads/master | 2021-01-01T17:26:04.629801 | 2014-07-03T06:54:15 | 2014-07-03T06:54:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,537 | cpp | hdoj_4713.cpp | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <set>
#include <map>
#include <vector>
#include <ctime>
using namespace std;
typedef long long LL;
const int N = 10105;
int prime[N] , flag[N] , cnt = 0;
int path[155][N];
double dp[155][N... |
0c665a23113a9afe0e1f29c77cf4c32231fc5484 | 58a0ba5ee99ec7a0bba36748ba96a557eb798023 | /CodeForces/Complete/500-599/518A-VitalyAndStrings.cpp | 4f6985c2144631386a2caf7b548892ef41939b2c | [
"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 | 534 | cpp | 518A-VitalyAndStrings.cpp | #include <iostream>
int main(){
std::string first; getline(std::cin, first);
std::string second; getline(std::cin, second);
std::string med(first);
for(int p = first.size() - 1; p >= 0; p--){
if(med[p] == 'z'){med[p] = 'a';}
else{++med[p]; break;}
}
bool possible(0);
for... |
ed0377d4441aef0f1c91122fef4c365c2faf319a | 045452939e05c9255e4e47219f26249dbdb29375 | /src/compiler/Tokenizer.cpp | 374e2b4a6e4252902f4322228ea6be756f166c61 | [] | no_license | chenzhuoyu/RedScriptCompiler | 157789687ad31b6c36d2895504ded23227ebcbe4 | 2ddce70bec545f0d0eaf1db2f113a4ea06b48d8c | refs/heads/master | 2021-01-11T18:33:27.001861 | 2018-08-17T06:12:22 | 2018-08-17T06:12:22 | 79,567,023 | 9 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,062 | cpp | Tokenizer.cpp | #include <unordered_map>
#include "compiler/Tokenizer.h"
namespace RedScript::Compiler
{
static const std::unordered_map<std::string, Token::Keyword> Keywords = {
{ "if" , Token::Keyword::If },
{ "else" , Token::Keyword::Else },
{ "for" , Token::Keyword::For },
{ "while" ... |
bc9d01b7c83bc95d0b09be40580d5941acc22d76 | 2cac4fe3faa882d2b6f0f44b00ed7c918c6de6a9 | /ProbSolv/week6/grass.cpp | a7e8a6a17b80870df26835a23974d5139e347525 | [] | no_license | seaiin/ProbSolv | 7a2ae16438d74ebabde47530cd2c98b57e6d72d2 | 48ba18953b723cdee419f9186f191965917660e6 | refs/heads/master | 2021-01-18T17:09:52.100577 | 2017-06-05T16:37:59 | 2017-06-05T16:37:59 | 86,784,630 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,276 | cpp | grass.cpp | #include <iostream>
using namespace std;
int main() {
int n, m, k;
char commd;
char land[100][100];
cin >> n >> m;
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
cin >> land[i][j];
}
}
for (int i = 0; i < m; i++) {
cin >> commd >> k;
k -= 1;
if (commd == 'L') {
for (int j = 0; ... |
362203013aaaf6ef3ce3e1572118919e8279a975 | 6a6193dc6dc8a49cf92846d8011c1f37c7c1fb48 | /src/CodeGen_GPU_Host.h | eae55910a2a4aa587aee10b2c51f40316d0aaadd | [
"MIT"
] | permissive | StanfordAHA/Halide-to-Hardware | ac10c68fea5a295a8556284bec67dbd1ab8feffc | 135c5da2587e6f6b17b2e9352a456a645367ad4e | refs/heads/master | 2023-08-31T07:00:40.869746 | 2021-10-20T19:16:51 | 2021-10-20T19:17:08 | 167,240,813 | 76 | 14 | NOASSERTION | 2023-09-06T00:09:25 | 2019-01-23T19:25:20 | C++ | UTF-8 | C++ | false | false | 2,427 | h | CodeGen_GPU_Host.h | #ifndef HALIDE_CODEGEN_GPU_HOST_H
#define HALIDE_CODEGEN_GPU_HOST_H
/** \file
* Defines the code-generator for producing GPU host code
*/
#include <map>
#include "CodeGen_ARM.h"
#include "CodeGen_MIPS.h"
#include "CodeGen_PowerPC.h"
#include "CodeGen_X86.h"
#include "IR.h"
namespace Halide {
namespace Internal {... |
c1065b9bf452e4ad1073dd3f532f4bb9ab2d5392 | 6e0be5b324afc8470e29c28006ecaf134076ff0e | /deps/3rdparty/cassowary-0.60/c++/ClConstraint.cc | bc51c783999c7668dbfc6c0ee4cc990b0672ed59 | [
"GPL-2.0-only",
"LGPL-2.0-or-later",
"LGPL-2.1-or-later",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-1.0-or-later",
"LGPL-2.1-only",
"LicenseRef-scancode-other-copyleft",
"MIT"
] | permissive | Bhaskers-Blu-Org2/WinObjC | 3abe3a338738ad607ca658edee1bcfcb542fe69f | ea3f7983803fa02309f974ff878b6c9ecc72c7c4 | refs/heads/develop | 2022-04-03T15:19:31.807607 | 2020-01-06T16:33:43 | 2020-01-06T16:47:55 | 276,100,793 | 0 | 1 | MIT | 2020-06-30T13:05:08 | 2020-06-30T13:05:07 | null | UTF-8 | C++ | false | false | 916 | cc | ClConstraint.cc | // $Id: ClConstraint.cc,v 1.12 1999/04/25 01:43:31 gjb Exp $
//
// Cassowary Incremental Constraint Solver
// Original Smalltalk Implementation by Alan Borning
// This C++ Implementation by Greg J. Badros, <gjb@cs.washington.edu>
// http://www.cs.washington.edu/homes/gjb
// (C) 1998, 1999 Greg J. Badros and Alan Bornin... |
358717bdffd2b24f71c0097f3f90394eb2511e76 | 3fe4e9263264f88344c3f50d0422f499b420ee02 | /ProjetSFML/ProjetSFML/InGame.h | 6f4f261df544027eb9aeca7496b8d93fc0df7a45 | [] | no_license | ArthurLc/SFML-Tech | 3beb172024b098a8c60ce435a5081fcdce24b070 | 142a7043326e8b5015da5b37a936336e5bc01713 | refs/heads/master | 2021-05-08T16:58:37.016498 | 2018-04-19T20:34:29 | 2018-04-19T20:34:29 | 120,176,991 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 403 | h | InGame.h | #ifndef INGAME_H
#define INGAME_H
class InGame
{
private:
ServerLC * server;
ClientLC* client;
sfNetworkButton* m_pNetButton;
sfNetworkButton* m_pNetButton2;
public:
InGame();
~InGame();
void EventLoop(sfCursor* _cursor, GAME_STATE* gameState, sf::Event& _event, sf::RenderWindow& _window);
... |
5dc86e67aa163c2a21bfdda19b05d1eb9c89e569 | e68753829ce6a5313d552dfce23341e3efd59fc4 | /test/unit/math/prim/functor/mock_throwing_ode_functor.hpp | 285a9b749b5a82a956abd8e30c023bab9b16073d | [
"BSD-3-Clause",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | SteveBronder/math | b9a731d1db3d36260f17fcb481fead1586c85e24 | 3f21445458866897842878f65941c6bcb90641c2 | refs/heads/develop | 2020-06-22T20:31:16.037177 | 2020-05-01T08:27:52 | 2020-05-01T08:27:52 | 198,386,466 | 1 | 0 | BSD-3-Clause | 2020-05-04T15:45:36 | 2019-07-23T08:26:48 | C++ | UTF-8 | C++ | false | false | 872 | hpp | mock_throwing_ode_functor.hpp | #include <vector>
#include <string>
int mock_throwing_ode_functor_count = 0;
template <typename E>
struct mock_throwing_ode_functor {
const std::string msg_;
const int N_; // throw on the N_th call
explicit mock_throwing_ode_functor(std::string msg) : msg_(msg), N_(1) {
mock_throwing_ode_functor_count = 0... |
ad7001eccddb24e9408c9afd008f647efc08c8e9 | 229ac4e7185f89c333f55ca3899223e5ba8e0e10 | /include/toy/scene/object/Image.hpp | e9241b06500513446892558b9f4fcce56576f4b7 | [
"Unlicense"
] | permissive | ToyAuthor/ToyBox | ab2d83a1b09ff6ea2f387fb672a56e4dbd4063a2 | f517a64d00e00ccaedd76e33ed5897edc6fde55e | refs/heads/master | 2021-01-17T01:31:55.985845 | 2020-10-01T14:05:28 | 2020-10-01T14:05:28 | 19,876,055 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 688 | hpp | Image.hpp |
#pragma once
#include <memory>
#include "toy/scene/Export.hpp"
#include "toy/scene/object/Common.hpp"
namespace toy{
namespace graph
{
class Image;
}
namespace scene{
namespace object{
struct ImagePrivate;
class TOY_API_SCENE Image : public ::toy::scene::object::Base
{
public:
Image(std::shared_ptr<graph... |
623ae4bc56f175a696d1a56b885730728bebbf4c | f8050958bf3b16d353d0de81709077833d57183b | /s32v234_sdk/libs/apexcv_pro/laplacian_pyramid/graphs/build-apu-tct-sa-d/LAPLACIAN_PYRAMID_MID.hpp | f3329b13d47e98e9bee83728f95ddc8d688af860 | [
"WTFPL"
] | permissive | zhuhaijun753/Panorama4AIWAYS | 9bf0482afc1e69fbf1dabf02b7df4f978efecb49 | 46e1988e54a5155be3b3b47c486b3f722be00b5c | refs/heads/master | 2022-03-31T11:06:24.278727 | 2020-01-30T03:42:34 | 2020-01-30T03:42:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 29,977 | hpp | LAPLACIAN_PYRAMID_MID.hpp | #ifndef _ACF_PROCESS_APU_LAPLACIAN_PYRAMID_MID
#define _ACF_PROCESS_APU_LAPLACIAN_PYRAMID_MID
#include <acf_process_apu.h>
#include <apex_launcher.hpp>
#include <stdint.h>
#include <LAPLACIAN_PYRAMID_MID_APU_LOAD.h> //APU load associated with this process
//SCENARIO LIST**********************************************... |
08ecc68621472f294e262917fb45ab63134035d7 | 46efa9f8acfdb0bbe0d194ee3aacc7f7fc0fb3c1 | /src/ofApp.h | 44b9d60a5a34c5148bf03dc29401d55e57f18fec | [] | no_license | diegodorado/vacio_vad | 7daf44d48564b7cedbd89939db5d6dec86111c36 | f3661f64945583a050c6ce47eac6e6422e57db17 | refs/heads/master | 2020-08-27T08:09:58.848958 | 2019-11-20T14:53:44 | 2019-11-20T14:53:44 | 217,295,353 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,508 | h | ofApp.h | #pragma once
#include "ofMain.h"
#include "ofxMaxim.h"
#include "ofxOsc.h"
#include "ofxGui.h"
#include "vad.h"
//#define HOST "localhost"
#define HOST "192.168.1.10"
//#define PORT 6448
#define PORT 9000
#define FFT_SIZE 1024
//#define SAMPLE_RATE 44100
#define SAMPLE_RATE 48000
#define BUFFER_SIZE 1024
#define N_AV... |
6981442721deae2872309e179adfbde633695374 | 98f9f977a39843e5f7719062f43011ebfd169e42 | /Libs/PluginFramework/Testing/org.commontk.pluginfwtest/ctkApplicationTestSuite.cpp | b45d6a87d3dac23d4a436f7d07fe4fd7d52f08db | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | txdy077345/CTK | 71cab2d77193d09340afe7a50e5dddc3ea66a06d | 7cd253376139ea73f0450e1bad75bab41aa1b507 | refs/heads/master | 2023-05-27T19:20:21.825916 | 2023-04-29T16:35:03 | 2023-04-29T16:35:03 | 276,658,777 | 1 | 0 | Apache-2.0 | 2020-07-02T13:50:30 | 2020-07-02T13:50:29 | null | UTF-8 | C++ | false | false | 1,888 | cpp | ctkApplicationTestSuite.cpp | /*=============================================================================
Library: CTK
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the ... |
9349c4919dd8e9b79e060a5b17b8ccd8f5a12be7 | f536aefa791d6c3783547998a04386a15346a0a6 | /src/Psyjc3TileManager.cpp | ac385e2c8f4025ca4c9edd16a520f1a5318cc570 | [] | no_license | Hanslen/CPP_mario_Wrestle | afd83e7c109e841a45632f6945becc2c9b80edbf | 2afc11e029e1b97fc6637edf0666716cadfd1871 | refs/heads/master | 2021-07-07T10:52:39.953410 | 2017-09-28T17:38:28 | 2017-09-28T17:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 604 | cpp | Psyjc3TileManager.cpp | #include "header.h"
#include "templates.h"
#include "Psyjc3TileManager.h"
Psyjc3TileManager::Psyjc3TileManager()
: TileManager(40, 40)
{
}
Psyjc3TileManager::~Psyjc3TileManager()
{
}
void Psyjc3TileManager::DrawTileAt(
BaseEngine* pEngine,
SDL_Surface* pSurface,
int iMapX, int iMapY,
int iS... |
275cdcd9e0df5ada030126e6b5ab38dbd86df48a | 61a756afb462a02beba2d3e038290406ed2e84df | /Terra/transport/TransportInfo.hpp | ed846a69da39fe2fed88bb43b7fa4a040e989458 | [
"MIT"
] | permissive | hotwatermorning/Terra | cacbe5b2810b0b4a4da0f358d59392d93fed2da9 | 5599f24a57493dbb3045cd503dfa64bece4b4fdb | refs/heads/develop | 2021-07-11T21:17:06.659967 | 2020-08-01T21:05:37 | 2020-08-01T21:05:37 | 167,788,895 | 77 | 10 | MIT | 2020-07-31T16:25:27 | 2019-01-27T08:58:45 | C++ | UTF-8 | C++ | false | false | 2,644 | hpp | TransportInfo.hpp | #pragma once
#include "../project/TimeInfoTypes.hpp"
NS_HWM_BEGIN
class Duration;
class TimePoint
{
public:
SampleCount sample_ = 0;
double tick_ = 0;
double sec_ = 0;
TimePoint & operator+=(Duration const &);
TimePoint & operator-=(Duration const &);
TimePoint operator+(Duration const ... |
b1aae426c818fbd8ef9681ab58d752689f5c3458 | 6b28f93891ce895ff022dd83f8f91c6f890db08a | /Génération de code MAC/DES.cpp | 210b4037430d8e780c7ba70e8d4929faec19e8e9 | [] | no_license | Henrick866/Devoirs | 539ca2a3444bed90ee89653d690a15ea5c232d8d | 442d58693164d96dcc053ae6a8caef827a7bc436 | refs/heads/master | 2021-05-10T18:08:31.196958 | 2018-02-19T23:35:48 | 2018-02-19T23:35:48 | 118,622,109 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,278 | cpp | DES.cpp | #include "DES.h"
DES::DES(long long key)
{
DES::key = key;
}
DES::~DES()
{
}
void DES::GenerateSubKeys()
{
long long permutedKey = DES::PC1_Permutation(key);
int cBase = 0;
int dBase = 0;
DES::KeySplitToMini(permutedKey, cBase, dBase);
// Produce 16 subkeys
int c[16];
int d[16];
c[0] = cBase;
d[0] = d... |
96e0ba6a158a02b2e0ccfc6202b6a74cf984f3e5 | b4a04e68b106b77e3c747c7433de0e1598607cee | /SocketServer/SocketServer/ServerSocket.h | 9b0922f8987ff8b076e6ae65a8603929e55e45f2 | [] | no_license | TannerLow/Basic-Cpp-Socket-Wrapper-Classes | 69f103190df9ad70d827868ef89b62f7fc817295 | 620bfbc3a8496c2b32f0d7255f84ed9cffc8ed28 | refs/heads/master | 2022-12-31T23:38:56.339210 | 2020-10-13T09:31:59 | 2020-10-13T09:31:59 | 292,193,604 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,201 | h | ServerSocket.h | #pragma once
#undef UNICODE
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#include <stdlib.h>
#include <stdio.h>
// Need to link with Ws2_32.lib
#pragma comment (lib, "Ws2_32.lib")
// #pragma comment (lib, "Mswsock.lib")
#define DEFAULT_BUFLEN 512
#define DEFAULT_PORT... |
83bd7d67d74f95514d3aa91e5da4e2cd8f6324d5 | d53282929317f6387d2a9c50b933f21c3d145168 | /c4GenSpecPoly/polyV2RectangleSquare/MainProgRecSqua.cpp | 463284d2070d35653d74452e3d1282941605225a | [] | no_license | quanhuynh2007/oop | 1afa1961f161bd3f9e354babdbdba26b91869fc4 | d9220302f056d39d97b53f75b1c7a7f9ab2c2854 | refs/heads/master | 2020-04-24T10:47:50.137752 | 2019-03-10T16:04:34 | 2019-03-10T16:04:34 | 171,905,702 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 594 | cpp | MainProgRecSqua.cpp | #include "Rectangle.h"
#include "Square.h"
int main()
{
cout << endl << "c4GenSpecPoly_v2 Not Poly cin MainProgRecSqua.cpp Rectangle.cpp Square.cpp" << endl;
Rectangle *pRec;
Rectangle Rec;
Square Sq;
pRec = &Rec;
cout << "Rectangle's size: ";
pRec->Input(cin); // Not poly
cout << "Rec... |
12f56a7558567dbd73cc0064ce1de621db238b13 | cb072ac30fff7c5d72409d04acf356cd5c43ec8d | /SimpleGame/physics/IPhysicsObject.h | 6b9479268616f99665e2ed75495365b7f38595e4 | [] | no_license | sochix/simple-game-ubisoft | 354e601f1e731e973e686013a1483cff344095ff | 18af3d2edff7d43bfa5c66e67c150db627f83ed5 | refs/heads/master | 2016-08-07T21:43:41.181282 | 2013-07-17T18:36:52 | 2013-07-17T18:36:52 | 15,262,398 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 371 | h | IPhysicsObject.h | #pragma once
#include <WinDef.h>
/*
* Interface which represents physic object in the world.
* All objects which wants to be simulated might implement this interface
*/
class IPhysicsObject {
public:
virtual POINT GetPosition() const = 0;
virtual void SetPosition(POINT p) = 0;
virtual int GetWidth() con... |
588211050931ae4b8cb24118791bffbde2ee669b | d5bd083dbcacce8cf62ebbd73c77c14c8247e057 | /hardware/imx/mx6/power/power.cpp | e777219d912520bbb515a88e8dbb894be6bc3e8f | [] | no_license | RetronixTechInc/android-retronix | ab0e10840dab5dc7b0879737953ebf2e1916f2b0 | cd7d794dea51c3b287da0d35ddb18c1bdef00372 | refs/heads/RTX_NXP_Android601 | 2021-11-16T03:58:58.169998 | 2021-11-15T01:51:02 | 2021-11-15T01:51:02 | 198,991,737 | 4 | 5 | null | 2020-03-08T23:21:29 | 2019-07-26T09:49:01 | Java | UTF-8 | C++ | false | false | 4,293 | cpp | power.cpp | /*
* Copyright (C) 2012 The Android Open Source Project
* Copyright (C) 2015 Freescale Semiconductor, 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.o... |
dd7034cc5f8b17bfa18a737a97f9c9862b9b0676 | b955a10f71df2899f9ccac704bc3eb64219f943d | /KINO/KINO/Sit.h | f082d814e09dc92859418724a02a7a453f562264 | [] | no_license | Mathieu-93/cinema-booking-system | 7554fed24409576ca98267afd711cd7bd96c204b | ecada723656d3e439259333fb415c7ede0376540 | refs/heads/master | 2020-11-28T19:43:16.317404 | 2020-01-17T22:54:48 | 2020-01-17T22:54:48 | 229,904,199 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 499 | h | Sit.h | #ifndef Sit_h
#define Sit_h
#include <iostream>
#include <random>
#include <chrono>
#include <string>
#include "Client.h"
class Sit : public Client
{
public:
Sit() : row(0), number(0), booked(false) {
Client();
}
Sit(int row, int number, bool booked);
void book();
void cancel();
virtual void show();
bool is... |
919aa4fca4c3d0e6872db03e0215545e9b3c3562 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chromeos/ash/components/device_activity/fake_psm_delegate.h | a01a389d5fdec4ec06302da1bb34bd9710605071 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 1,658 | h | fake_psm_delegate.h | // Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMEOS_ASH_COMPONENTS_DEVICE_ACTIVITY_FAKE_PSM_DELEGATE_H_
#define CHROMEOS_ASH_COMPONENTS_DEVICE_ACTIVITY_FAKE_PSM_DELEGATE_H_
#include "base/... |
4e61d1e3d4b1a4ba44757cd36fd3fd91c4a0e0a9 | af0f1d1e897b9864ca02509fd3ffa31ab0ecb231 | /Application/Asteriod_field.cpp | c912c31ad931af0f8ae07087ee6b99b620b5ae90 | [] | no_license | A-Korotin/Engine | 071673123f9adfec5a46f006ef19e8890bd9af97 | cf9a1eca9c4dd8d3f48e2194e560cd61aecb4a36 | refs/heads/master | 2023-06-30T00:39:50.999313 | 2021-08-04T09:15:51 | 2021-08-04T09:15:51 | 382,811,536 | 0 | 0 | null | 2021-07-16T20:30:25 | 2021-07-04T09:25:54 | C++ | UTF-8 | C++ | false | false | 8,686 | cpp | Asteriod_field.cpp | #include "CorePCH.h"
#include "Camera.h"
#include "Model.h"
#include "VertexArray.h"
#include "VertexBuffer.h"
#include "VertexBufferLayout.h"
#include "BasicShapes.h"
#define WIDTH 1600
#define HEIGHT 900
static Camera camera(glm::vec3(0.0f, 0.0f, 3.0f));
static float lastX = WIDTH / 2.0f;
static float lastY = HEIG... |
9d61a8cf8889e0542f8f435c11e4859da1b63439 | 25c52eb2490269159793a5a66ac24932fd868cd6 | /Sorting/Merge_without_Extra_Space.cpp | d00caa0e2c5b2bca37d6220a3173cae2daf09671 | [] | no_license | rohanrao619/Data_Structures_and_Algorithms | a9ef14cf5058a8fe866a26367117429b4491ac2a | ad6d46cf4cc5e4313470de3afbf54b35f0a0b681 | refs/heads/master | 2021-03-02T09:39:00.346480 | 2020-05-13T17:07:22 | 2020-05-13T17:07:22 | 245,856,494 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,296 | cpp | Merge_without_Extra_Space.cpp | // { Driver Code Starts
#include <bits/stdc++.h>
using namespace std;
// } Driver Code Ends
// Function to merge two input arrays
// arr1[], arr2[]: input arrays
// n, m: size of arr1[] and arr2[] respectively
void merge(int arr1[], int arr2[], int n, int m)
{
//Your code here
//n is size of ... |
cb265bd11eca238ea875f477aba41a7a885fd355 | 85cd5854ed7101db9e41ea06a8a97ce9082137c2 | /Chapter02/paradeigma_02_01/paradeigma_02_01.cpp | f65e3e8ce40c7815084a8119754a004bd853408c | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | permissive | paulkokos/cppEtoimesSintages | f088772fbeabb5e6ae7a5159e4743e4d03856496 | 27efb5848b97cfc2c5dfcfb8323ed22e905d98a9 | refs/heads/master | 2023-02-23T09:13:51.538831 | 2021-01-28T22:57:56 | 2021-01-28T22:57:56 | 124,950,457 | 0 | 0 | NOASSERTION | 2021-01-28T22:39:40 | 2018-03-12T20:56:06 | C++ | UTF-8 | C++ | false | false | 161 | cpp | paradeigma_02_01.cpp | //
// Created by paulkokos on 12-Mar-18.
//
#include <iostream>
using namespace std;
int main() {
int a=1;
cout << a;
cout << a;
return 0;
} |
bf3e5ca678f10c7a66f22a9d44505a0d6515c728 | e25356b34cdd07d869896cfadb3ef0fc7d284a56 | /interviewstreet/xorkey.cpp | 6a934f43e40b06d96a59723f03c3f007644c77d4 | [] | no_license | lantimilan/topcoder | 3d0f3a532fb59eeb88a3fb2cc6bc2ef6699b1225 | 7200ed04b1eb774f515a2f06f50a374a3d6782ae | refs/heads/master | 2020-04-05T14:39:02.898235 | 2018-11-20T06:40:49 | 2018-11-20T06:40:49 | 5,063,277 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,194 | cpp | xorkey.cpp | // =========================================================
//
// Filename: xorkey.cpp
//
// Description:
//
// Version: 1.0
// Created: 01/06/2012 04:42:53 PM
// Revision: none
// Compiler: g++
//
// Author: LI YAN (lyan), lyan@cs.ucr.edu
// Company: U of... |
ded7b9052413767553eaa6e5d19e346183b50e5b | e4928b77dfc7c50fc2ba23a12a2c9201d08f1f67 | /C_PROGRAM/binomial2.cpp | 15eae8bc72d473d3a5ef7430477b22021e7361eb | [] | no_license | ishwarsaini10/Course-Work-Problems | 02363624b5e43c629724751594fb180b05579aaf | fb4afc22319f7ebcd756c279022fdef2279571f9 | refs/heads/main | 2023-02-01T00:48:42.389969 | 2020-12-17T13:27:36 | 2020-12-17T13:27:36 | 309,957,963 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,607 | cpp | binomial2.cpp | // Binomial distribution with sorting
#include<stdio.h>
#include<conio.h>
#include<math.h>
#include<stdlib.h>
long fact(int y);
int main()
{
int i,j,x[50],n,temp1;
float p,q,k;
double x0,px[50],temp2,d;
FILE*data1=NULL;
data1=fopen("binomial2.txt","w");
printf("Enter the value of trials \n");
scanf... |
d48b5fa166404db7cdf44c94c96d33c230b5884e | e1c354218a7dc79919515cfae3ef6ef984f3b468 | /最小生成树.cpp | b7f2c450307eeaeae4cd2f382b3cd1cd9250f474 | [] | no_license | wenzhu23333/MyAlgorithm | 4218f8d7ea963fd02536223a13f1170254fa2393 | ed72030204b59dc997331d75610da5a23b790cfd | refs/heads/master | 2020-11-27T12:23:18.181155 | 2019-12-21T14:29:09 | 2019-12-21T14:29:09 | 229,439,199 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,656 | cpp | 最小生成树.cpp | // Prim算法实现(采用邻接表存储)
#include<stdio.h>
#include<stdlib.h>
#include<iostream>
#define MAX 100
#define Infinity 65535
typedef int WeiType;
using namespace std;
struct edgeNode
{
int no; //边端的序号
char info; //边端的名称
WeiType weight; //边的权值
struct edgeNode * next; //下一个
};
struct vexNode
{
char info; //节点名称
struct edg... |
f00abe8ddc540eca64874e0ad50ecf8d39c779ed | c2dc0c50fe5b5b7fe645db3e193095b4b229c37f | /Oshu/Object/Container.h | 12f9929c23f299ae452857e28d658e18c4e0fb12 | [] | no_license | ouoam/Oshu | ec6ffa9d9a84846f6203723d7d46f42f8ae16bee | 32317d648241c7de20736e05745344ee1fd9ab61 | refs/heads/master | 2020-03-31T13:54:18.226478 | 2018-11-30T08:13:21 | 2018-11-30T08:13:21 | 152,272,397 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,113 | h | Container.h | #pragma once
#include <SFML/Graphics.hpp>
#include <SFML/System.hpp>
#include "../Beatmap/Beatmap.h"
namespace Object {
class Container : public sf::Drawable, public sf::Transformable {
public:
virtual void onMouseClick(uint8_t) {};
virtual void onMouseDown(uint8_t) {};
virtual void onMouseUp(uint8_t) {};
virtua... |
823e03ce7043390c1dcb86968cad4b3787cb6d05 | e5d063c36aa0568c78112416c9bbe3a472a22c52 | /server/planner/planning/station.h | 7d1a0da6b14ee6120f46baaeb492b087b55dc464 | [] | no_license | amiryanj/cyrus_ssl | 6cb440787b7359f72ed1b13784b80beaeaa48939 | c17d1e715cc280c0373f56c99be64bbdeafb40d5 | refs/heads/master | 2020-05-30T05:11:12.254254 | 2019-02-11T17:39:54 | 2019-02-11T17:39:54 | 39,081,920 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,865 | h | station.h | #ifndef _STATION_H
#define _STATION_H
#include <cmath>
#include <iostream>
#include "../../shared/utility/vector3d.h"
typedef Vector3D Velocity;
class Station
{
public:
Station(Vector3D position_ = Vector3D(INFINITY, INFINITY, INFINITY)) {
mPosition = position_;
}
void setPosition(const Vector3D... |
ee1945b59edb57cd779dd53facfe4b0ba2db7811 | ad594d3d1cc6fe4c34b596d9564a7b1bf54a2f7a | /583.cpp | 8c4f7bd85c995a914566699561b5bab8d99b8e0f | [] | no_license | colinlee1999/leetcode | 16199151de09073754e2d209af170fd3b489bb21 | 5ada773459ca45a942113a96581550a1b1af9987 | refs/heads/master | 2020-05-21T23:13:27.766217 | 2017-08-23T06:07:28 | 2017-08-23T06:07:28 | 61,930,482 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 901 | cpp | 583.cpp | #include <iostream>
#include <vector>
#include <map>
#include <cmath>
#include <stack>
#include <queue>
#include <sstream>
#include <set>
#include <unordered_map>
#include <string>
#include <algorithm>
#include <queue>
using namespace std;
typedef vector<int> VI;
typedef vector<VI> VVI;
class Solutio... |
d3183dcd778173c9646cfe47e3f055eeb42a45af | 2186642207c3b1fc322d36937a267abbb67a6a86 | /computing/newton_minima.cpp | afc34a72c233ae628221f8d056ed6b830ab9ab2f | [] | no_license | thealexhong/aerospace | 4a06fdcc0d0afd7c57273c234760f8e295987e44 | 023d0625265ac7dd7d7f7a0db04ad81b5e8386bc | refs/heads/master | 2021-01-15T13:45:01.736951 | 2014-08-20T19:09:00 | 2014-08-20T19:09:00 | 22,976,270 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,534 | cpp | newton_minima.cpp | /**
* Using Newton's method to find local minimum of a given objective
* function:
* f(x,y,z) = x^2 + 2*y^2 + z^2 - 2*x*y + 2*x - 5/2*y - z + 2*exp(x*y*z)
*/
#include <cmath>
#include <iostream>
using namespace std;
int main ()
{
const double tol = 1.0e-6; // tolerance
double x[3] = {0, 0, 0}; ... |
e7fb88fd0685a6e16d2f13e747755829bde40997 | 5ab5297e90b1aa167e801f031f9b159208c50b14 | /Source/BowRogue/Actors/Tower.h | face177b27114e5774bde77d0db469a3932a58de | [] | no_license | Cr0wy1/BowRogue | 704b4a568f8eab3dacfc40a92896ff8b2b852eae | 8ad595b2bd805a269874a0d07c5fba8b0f83bc24 | refs/heads/master | 2022-10-03T23:31:58.332147 | 2020-06-01T18:01:47 | 2020-06-01T18:01:47 | 212,885,559 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,791 | h | Tower.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Actors/PlaceableActor.h"
#include "Tower.generated.h"
class USphereComponent;
class UStaticMeshComponent;
class AEntity;
class UPlaneTraceComponent;
UENUM()
enum class ETowerTargetPrio ... |
25c8b6d7c1f24af3e1be79a3ef52a90e4054082b | 3cdd4d24612c0a29a7308c18f71f1839e9f8d0ab | /software/firmware/ChibiOS/os/hal/ports/STM32/STM32L5xx/stm32_secure.inc | cf0a7f66f45c7c2c13aec11848cd97abcd4b76e4 | [
"GPL-3.0-only",
"GPL-1.0-or-later",
"Apache-2.0"
] | permissive | netik/dc28_badge | 0a63dcb6e215e95d2def4091182738a134c5e513 | 2eaa8c70848ed3e54afbb8cb2408ead3afc0cb58 | refs/heads/master | 2023-08-10T12:39:31.410312 | 2023-07-30T23:11:06 | 2023-07-30T23:11:06 | 221,294,778 | 2 | 0 | Apache-2.0 | 2023-07-25T20:39:00 | 2019-11-12T19:24:32 | C | UTF-8 | C++ | false | false | 9,202 | inc | stm32_secure.inc | /*
ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
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 ap... |
c47720a2e58f75e8913e5b631352ed3c23c70ffe | 0c36e40c2fdc9302aa67c5a9c144c87592b71de8 | /Codeforces/918B - Radio Station.cpp | 56a27c15f4c71366b9c4c895652f976a23fb5fec | [] | no_license | arnabsheikh007/Programming-Contest | 4c54313844846f1a33c7ab2a2c9d4cc6580d0dac | 179f29e08efd52159b4d547a4e0d1134ef757ef2 | refs/heads/master | 2023-05-25T16:34:34.099887 | 2022-12-06T11:54:12 | 2022-12-06T11:54:12 | 250,853,903 | 0 | 1 | null | 2023-05-23T09:53:38 | 2020-03-28T17:27:16 | C++ | UTF-8 | C++ | false | false | 536 | cpp | 918B - Radio Station.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n,m;
cin>>n>>m;
vector< pair<string,string> >a;
for(int i=0;i<n;i++)
{
string s,t;
cin>>s>>t;
t=t+';';
a.push_back(make_pair(s,t));
}
while(m--)
{
string name,ip;
cin>>name>>ip;... |
7715ac7ae8a16d764bb0e46c938663482756fa61 | 74bddff4f4fbae5c9c34fcd5c83f20fd6f77dbb8 | /src/Fibula/Core/Kernel.cpp | 90fb89029c270290c25956938fb492ed0ae71218 | [] | no_license | drgomesp/fibula-cpp | 83e78a7dbd3c37c86f8a4b337a5273006d9a53ae | 4889549327977d04141e428a6a61be125ea7e958 | refs/heads/master | 2021-06-08T07:31:30.750760 | 2016-06-13T18:15:16 | 2016-06-13T18:15:16 | 58,383,324 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,255 | cpp | Kernel.cpp | #include <Fibula/Core/Kernel.hpp>
#include <SFML/System/Clock.hpp>
using namespace Fibula::Core;
using namespace Fibula::Events;
void Kernel::bootstrap()
{
this->dispatcher = make_shared<Dispatcher>();
this->window = make_shared<Window>(1280, 768, "Fibula :: SFML", *this->dispatcher);
if (NULL == this->... |
50b1bc81c4a45b02ad5ed094cd8b56c01688c4ab | 52d41eb2683f9f831786a5df9b1125130978f405 | /optimization/BoundedLSQRSolver.cpp | 984735dab31b379752b1c05232292ab592ef37bf | [] | permissive | krishauser/KrisLibrary | 5c4ba10bbefd317f39bc52f73cd88cb820dd614d | 63eb06cc1b3f62b94504e715449de09397751dea | refs/heads/master | 2022-08-27T11:10:45.214050 | 2022-08-09T21:40:25 | 2022-08-09T21:40:25 | 10,486,267 | 64 | 38 | BSD-3-Clause | 2021-12-12T22:14:46 | 2013-06-04T18:55:11 | C++ | UTF-8 | C++ | false | false | 7,362 | cpp | BoundedLSQRSolver.cpp | #include <KrisLibrary/Logger.h>
#include "BoundedLSQRSolver.h"
#include <math/AABB.h>
#include <math/linalgebra.h>
#include <limits.h>
#include <iostream>
using namespace Optimization;
using namespace std;
BoundedLSQRSolver::BoundedLSQRSolver(const Matrix& _A,const Vector& _b,const Vector& _l,const Vector& _u)
{
A.s... |
a781e5b9c159740760bae67c6c58d093ae82d8cb | f85adb515c370b4025f1d1b782176a5dbf7e2b75 | /gameserver/src/farm.cpp | c59954fe8f9a9f3014a57125088f9befd5b1f5f6 | [] | no_license | mattiskan/novia | 97b6dbf404e1f2464ae7a041f80fca5bbdd428a9 | ed7b3e7c87f97ad99fa784870cb692db1d939deb | refs/heads/master | 2021-01-13T02:30:27.844185 | 2015-01-09T12:26:12 | 2015-01-09T12:26:12 | 14,426,924 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 229 | cpp | farm.cpp | //-*-c++-*-
#include "farm.h"
namespace novia {
Farm::Farm(const Point& location)
: MapObject(location, MapObject::FARM){
}
Json::Value Farm::serialize() const {
return Json::Value(Json::nullValue);
};
}
|
7e56a585f77150fd03b28c52aea490e4d899d065 | 2502943d23a18cce4b2cb169288ca08e2243ca4f | /HDOJcode/2108 2011-11-23 20 56 45.cpp | 7efd4cee05a780b8ed0c748c2a37fa6a7a717719 | [] | no_license | townboy/acm-algorithm | 27745db88cf8e3f84836f98a6c2dfa4a76ee4227 | 4999e15efcd7574570065088b085db4a7c185a66 | refs/heads/master | 2021-01-01T16:20:50.099324 | 2014-11-29T06:13:49 | 2014-11-29T06:13:49 | 18,025,712 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,069 | cpp | 2108 2011-11-23 20 56 45.cpp | ******************************
Author : townboy
Submit time : 2011-11-23 20:56:45
Judge Status : Accepted
HDOJ Runid : 5041295
Problem id : 2108
Exe.time : 0MS
Exe.memory : 180K
https://github.com/townboy
******************************
#include<stdio.h>
int a[200][2];
int me(int i)
... |
c8a9e3e53cd6feade881cb45ecf5e3b00bb96246 | 1ca6db53c1818c03ae5a0f24aad555101f567936 | /src/common/core/utils.cpp | 192f182438bfb03cbfdf51908aa5a96fffaf1291 | [] | no_license | mich181189/acnode-cl | 738742b95fd8220acb4a4462c3c7456f8b8e2d62 | de488e3a67fba9f1b7ddeadfb21d6c848db00761 | refs/heads/master | 2021-06-07T10:31:39.837998 | 2020-12-03T16:08:03 | 2020-12-03T16:08:03 | 255,123,113 | 1 | 0 | null | 2020-04-12T16:23:10 | 2020-04-12T16:23:09 | null | UTF-8 | C++ | false | false | 1,119 | cpp | utils.cpp | #include <core/utils.h>
#include <core/Logger.h>
#include "FreeRTOS.h"
#include "task.h"
void logTaskStats(Logger* logger)
{
LOG_DEBUG(logger, "Stack High Water Mark is %lu (lower means less available stack)", uxTaskGetStackHighWaterMark(nullptr));
size_t taskcount = uxTaskGetNumberOfTasks();
LOG_DEBUG(logger, "... |
78c267337ded2477bfc4d765c7c4fe0477f3ebf1 | c1b31aa113c626f3cbb5264fac9e4c9cad83b8b9 | /lib/include/nfl/prng/crypto_stream_salsa20.h | 1307b8645a3e7aa5b973bd8f3001b11fc23073b4 | [
"Apache-2.0"
] | permissive | JustinDrake/LigeroRSA | cff724a5da387bd7ac9093007cb1b7897e496fca | 5d6d05788d7d4b44f0ddb01b8221f79b4851653a | refs/heads/master | 2022-09-10T08:18:03.902128 | 2020-06-01T23:32:37 | 2020-06-01T23:32:37 | 268,911,316 | 1 | 2 | NOASSERTION | 2020-06-02T21:21:15 | 2020-06-02T21:21:14 | null | UTF-8 | C++ | false | false | 298 | h | crypto_stream_salsa20.h | #ifndef CRYPTO_STREAM_H
#define CRYPTO_STREAM_H
#include <string>
extern "C" {
int nfl_crypto_stream_salsa20_amd64_xmm6(unsigned char *c, unsigned long long clen,
const unsigned char *n,
const unsigned char *k);
}
#endif
|
a2034c5dfcaf21b9e37bbcda1416c6be4adf5751 | ea7de2f16405b945d5a7675fa1f7369d3360a0a2 | /simulator/modules/core/perf_sim.h | 799a7b0d22d357c8f3a240f05e01e73b0fe8c073 | [
"MIT"
] | permissive | cesarus777/mipt-mips | 8851be844f1436613fa3a3586b136c0a162be2cc | c940a7644c4ebb72ad2022d77afdbd4d1dcda0f6 | refs/heads/master | 2020-08-14T00:55:06.560065 | 2019-12-08T09:38:41 | 2019-12-08T09:38:41 | 215,067,711 | 2 | 0 | MIT | 2020-03-22T19:02:29 | 2019-10-14T14:37:44 | C++ | UTF-8 | C++ | false | false | 3,171 | h | perf_sim.h | /*
* perf_sim.h - mips performance simulator
* Copyright 2015-2018 MIPT-MIPS
*/
#ifndef PERF_SIM_H
#define PERF_SIM_H
#include "perf_instr.h"
#include <modules/branch/branch.h>
#include <modules/decode/decode.h>
#include <modules/execute/execute.h>
#include <modules/fetch/fetch.h>
#include <modules/mem/mem.h>
#in... |
a12d175368ec2c2ef4c64d0ebe561461e73c1afd | 1e9e5d00527e42ed7f87a1d7e051b13b3bf829ec | /module1/main2_2.cpp | d952a5831bfd6b7eddd799f7555187ced68e7bff | [] | no_license | alSergey/TechMain_2020_Algo | 427fccc5a13c9640b4d2e88a536a0bccc19c5575 | cbc8a752aa52b360fa55ac4cffea328fd7e7ba37 | refs/heads/main | 2023-02-13T00:32:36.946850 | 2021-01-03T16:38:07 | 2021-01-03T16:38:07 | 302,163,997 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,829 | cpp | main2_2.cpp | #include <iostream>
#include <cassert>
#include <sstream>
/* Дан массив целых чисел А[0..n-1]. Известно, что на интервале [0, m]
* значения массива строго возрастают, а на интервале [m, n-1] строго убывают.
* Найти m за O(log m).
* Требования: Время работы O(log m). Внимание! В этой задаче сначала нужно
* определ... |
c3b920819c48b37d8503a391c284e5c981a964c1 | 47ff8543c73dab22c7854d9571dfc8d5f467ee8c | /BOJ/3825/3825.cpp | 9eb9592d98cd7d694f45c3ff3bb5957ea964275d | [] | no_license | eldsg/BOJ | 4bb0c93dc60783da151e685530fa9a511df3a141 | 6bd15e36d69ce1fcf208d193d5e9067de9bb405e | refs/heads/master | 2020-04-16T02:18:55.808362 | 2017-11-28T11:02:37 | 2017-11-28T11:02:37 | 55,879,791 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 683 | cpp | 3825.cpp | #include<cstdio>
using namespace std;
bool check(int m, int n, int p, int q){
int a = m*p+n*q;
int b = m*q-n*p;
int c = m*m+n*n;
if(a%c == 0 && b%c == 0) return true;
else return false;
}
int main(){
int testcase;
scanf("%d", &testcase);
while(testcase--){
int p, q, ret = 0;
scanf("%d %d", &p, &q);
int m... |
00d308caa24678e4d63289aeed5523a6fa88ea30 | c13bc02cbdc94b6e71ae977b869a9a89aec2e26a | /atcorder/abc090_3.cpp | ef7ff199699842cfa9084660a34d728090ba7be0 | [] | no_license | tkygtr6/CompetitiveProgramming | 84ad1763fb78f32107bab11d9e2608da12fd4a0b | a927d466ac52423f1b3ddefbcc662e5a35579c08 | refs/heads/master | 2020-03-21T09:38:36.347721 | 2019-06-17T04:29:41 | 2019-06-17T04:29:41 | 138,408,687 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 405 | cpp | abc090_3.cpp | #include <stdio.h>
int main(void){
long int N, M;
scanf("%ld", &N);
scanf("%ld", &M);
if(M > 2 && N > 2){
printf("%ld\n", (M - 2) * (N - 2));
}else if(M == 1 && N == 1){
printf("1\n");
}else if(M == 1 && N > 2){
printf("%ld\n", N - 2);
}else if(N == 1 && M > 2){
... |
7da5db87188b5f87aefd62d3d724e17ab31f65c2 | 0dd57e48d58ba77c14f5c50c5de58ed5ad103c00 | /multiThread/shared_mutex.cpp | 48db96a3ff21c1b9275256fd3f8d2d142b46242c | [
"MIT"
] | permissive | IgorHersht/proxygen_ih | 7dc0b0205d304c39ed37d4c9916a60f7dad2eca1 | ea03a6be1a0430b5ee48f6172425331b872ea688 | refs/heads/master | 2022-10-14T19:33:14.300830 | 2022-09-21T16:43:40 | 2022-09-21T16:43:40 | 107,905,143 | 9 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,103 | cpp | shared_mutex.cpp | #include <thread>
#include <stack>
#include <mutex>
#include <memory>
#include <atomic>
#include <vector>
#include <deque>
#include <list>
#include <set>
#include <map>
#include <string>
#include <algorithm>
#include <iterator>
#include <functional>
#include <numeric>
#include <iostream>
#include <vector>
#include <lis... |
677c03f4111a6338cfef9729cc66ff20c2fd75ea | a4d5604f4df5fef1320197bd39a17de1d0c7ef19 | /wxCrossGen/main.cpp | 382a1b810e3a076531b40fb4a5ef04842a023a77 | [] | no_license | assets-optimizer/CrossGen | e31f4b82523e1623f289a742f5d16c45ff921d26 | bc434f9542dd148f57717bbafd48524471319a26 | refs/heads/master | 2021-05-31T02:06:50.703483 | 2016-02-27T22:54:17 | 2016-02-27T22:54:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 859 | cpp | main.cpp | #include <wx/wx.h>
#include <wx/fileconf.h>
#include "fsettings.hpp"
#include "fmain.hpp"
class MyApp: public wxApp {
public:
bool OnInit();
protected:
wxLocale m_locale; // locale we'll be using
};
IMPLEMENT_APP(MyApp)
bool MyApp::OnInit()
{
m_locale.Init();
wxLocale::AddCatalogL... |
5e438bd46a326fbfc01210cce595e16660f6d97c | 603025d800b55698d6c0e472a259897108e37896 | /User.cpp | e4b0c165454a92ab0b1d3307e49a1ff20aa34851 | [] | no_license | JgtL13/currency-exchange | bae3ba7de31a699691d78d3ef3bdf567ca448169 | 626055b555c0ae880e33e3155861891bff885aeb | refs/heads/main | 2023-06-12T13:13:43.648131 | 2021-07-08T13:38:19 | 2021-07-08T13:38:19 | 383,905,801 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,836 | cpp | User.cpp | #include "User.h"
#include "Dollar.h"
#include "Machine.h"
#include <iomanip>
User::User()//yo
{
total1=0,total2=0;
thousand1=0,thousand2=0;
hundred1=0,hundred2=0;
ten1=0,ten2=0;
one1=0,one2=0;
}
void User::checkCurrency()//yo
{
string getcontent;
stringstream ss;
str... |
f41197d4f42d4c058ade79debc599dbcbb6e2689 | cf030df2ae19b517ec4ec92f7a8a916a3b733a43 | /CPP01/ex04/main.cpp | 42b8c172d6874e58c19056167565f588c418d0b5 | [] | no_license | ndemont/cpp | 52f82a17852a1aadc8c6f9044515e87e4587c5ed | 2e6a2cfaa2c233bce9a3bc724564cf884d2ffad3 | refs/heads/master | 2023-06-30T11:46:25.967338 | 2021-08-06T07:34:11 | 2021-08-06T07:34:11 | 382,928,324 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,044 | cpp | main.cpp | #include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <cstring>
void replace(std::string file, std::string oldStr, std::string newStr)
{
std::ifstream ifs(file);
std::ofstream ofs(file + ".replace");
std::string content;
std::size_t occurence;
while (getline(ifs, content))
{... |
02e5b9b2082633e6b36a33c103e989d213f8d979 | b1b3315c934fa183512fdee7dcd9c93416358397 | /Transmuter/Panel.h | 064f5955b5e4b4b8871c1f829ce24b95df3236b6 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | bzm3r/Transmuter | f7d340d26bcd375351a3c8b8540808f0be7ece77 | 0dffd05399a9457f8338dbe65014ddac9a79f051 | refs/heads/main | 2021-06-03T22:48:24.573371 | 2015-11-05T01:31:22 | 2015-11-05T01:31:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,081 | h | Panel.h | // TransmuterSession.h
//
// Transmuter
// Copyright (c) 2015 by Kronosaur Productions, LLC. All Rights Reserved.
#pragma once
#define EDGE_LEFT 0
#define EDGE_TOP 1
#define EDGE_RIGHT 2
#define EDGE_BOTTOM 3
#define SMOOTH_UPDOWN 4
#define SMOOTH_LEFTRIGHT 5
class CSChild;
class CScreenSpace;
class CPanel;... |
d6104ee416c5a59f8c84a73bcc08e810bb68efe7 | 3f0bc471522820ffabb132580f799538c4bb9d1a | /SPOJ_ACCEPTED/CNT_LUCK.cpp | f5244f1b0c9ce74994abcf9cf7eeb55701ee4343 | [] | no_license | luismoax/Competitive-Programming---luismo | d40267e7947d03a304355a1ff936c2ecb5460b77 | 63016024bdcff8755fe537be5eb8e46c6e6a18e6 | refs/heads/master | 2023-09-03T17:56:36.258278 | 2023-08-20T06:01:27 | 2023-08-20T06:01:27 | 250,821,058 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,186 | cpp | CNT_LUCK.cpp | /*
Author: Luis Manuel Díaz Barón (LUISMO)
Problem: Counting Lucky Numbers
Link: https://www.spoj.com/problems/CNT_LUCK/
Online Judge: SPOJ
Idea: Bits + Combinatorics.
*/
#include<bits/stdc++.h>
// Types
#define ll long long
#define ull unsigned long long
#define ld long double
// IO
#define sf scanf
#define pf pr... |
d491d9e52dd67d3aad444e63f7d01484b2f5f6b4 | 3d171085063172fabf4275e4ac299c5df687843f | /src/modules/AutoMoDeBehaviourStopChocolate.cpp | a4093d0d7c34d8aff2d7ea1e2a02df0baee37dce | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | dysoxor/Demiurge | ed82570f56f690d2b6d2e2a090e3b0b761a91b55 | 467a86dc8a5b008d5eac89e12ade35cc6b2325fd | refs/heads/main | 2023-05-14T02:55:36.448323 | 2021-06-05T20:35:44 | 2021-06-05T20:35:44 | 309,326,334 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,363 | cpp | AutoMoDeBehaviourStopChocolate.cpp | /**
* @file <src/modules/AutoMoDeBehaviourStopChocolate.cpp>
*
* @author Antoine Ligot - <aligot@ulb.ac.be>
*
* @package ARGoS3-AutoMoDe
*
* @license MIT License
*/
#include "AutoMoDeBehaviourStopChocolate.h"
namespace argos {
/****************************************/
/***************************... |
6e23436771ec969d9517218e252c8f82c80294bf | 378194c1cced295926843d5e64c075b5fc43d0d0 | /misc/codes_lab2/kruskal.cpp | 81c32b4c58c50ce77e632506d99568b3441527d0 | [] | no_license | ojusvini/DAA-Codes | a5693f5c3693d7943c4dea50f1fd3a23490b775b | 5d202104512fba0a58e46530ee375d4c61370ead | refs/heads/master | 2021-01-20T19:05:22.367614 | 2016-08-16T08:31:09 | 2016-08-16T08:31:09 | 65,802,008 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,859 | cpp | kruskal.cpp | #include<iostream>
#include<cstdio>
using namespace std;
#include<cstdlib>
#include<algorithm>
int c=0;
struct edge{
int src,dest,wt;
};
struct graph{
int v,e;
struct edge *ed;
};
struct subset{
int parent,rank;
};
struct graph *create(int v,int e) {
struct graph *g=(struct graph *)malloc(sizeof(struct graph));
g... |
37cdd675a74026faa628028bfc34454eed993f19 | e2dccc5216488487f54618f80f0049c09afc0137 | /BigInt.h | aebd4f37a9cff8bbc1b7a4ff218f9cba3d845790 | [] | no_license | LapinDeNeige/BigInt-lib | 01c86dfb196455a8131e8a1318f7bc4b019d2c69 | a3b91831203b2951d8f6629aee02c66188bf51b0 | refs/heads/master | 2021-07-12T16:09:24.159343 | 2020-09-18T20:23:07 | 2020-09-18T20:23:07 | 203,453,757 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,457 | h | BigInt.h | #include <iostream>
#include <stdio.h>
#include <cstring>
#include <sstream>
#include <string>
#include <cstdio>
/*
BigInt Library implementation
(c)
*/
using namespace std;
class BigInt
{
private:
string in_str;
BigInt sum (BigInt two);
string sum (string two); //summary
BigInt mult(BigInt two); //multiply
Bi... |
6378d62db51efd21b8353865b64ab5d912867f4a | 47034319a4a9b5b2c195272155a285f71a530e30 | /IOT/ldr.ino | a87ddcf3ad9788dd12c238e2e7c76dc8ee014f82 | [] | no_license | kiransdas/Labs | d58e85b379aaf25004b5ef3424b2db0c866c2667 | 33134c6bfb5961a44935493869654a492bf8dbe5 | refs/heads/master | 2023-02-03T00:11:59.406901 | 2020-12-22T03:25:57 | 2020-12-22T03:25:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 342 | ino | ldr.ino |
int ldr=A0;
int ledpin=11;
void setup() {
// put your setup code here, to run once:
pinMode(0,INPUT);
pinMode(11,OUTPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int value=analogRead(ldr);
int threshold=100;
if(value<threshold)
digitalWrite(ledpin,HIGH);
else
digita... |
b58bb6bb96b907ed95aee257aeece8eee5399e6c | 81b6521d8204a962b908094deb8998c291cdb07b | /uva/11436.cpp | c3692d37fedbfa252e486ec8a9e5dff11e381434 | [] | no_license | doldre/ACM | 9c86c242a347e5b31daa365ddf0e835af7468fa9 | 23e4694fee51831831b1346b8ccc0e97eebef20a | refs/heads/master | 2020-04-12T02:29:59.345719 | 2017-04-10T08:15:10 | 2017-04-10T08:15:10 | 55,833,991 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 685 | cpp | 11436.cpp | #include <cstdio>
#include <iostream>
#include <cstdlib>
using namespace std;
typedef long long ll;
const int maxn = 4e6 + 5;
int euler[maxn];
ll ans[maxn];
void euler_phi2() {
for (int i = 0; i < maxn; i++) euler[i] = i;
for (int i = 2; i < maxn; i++) {
if(euler[i] == i) {
for (int j = i; j < maxn; j += i) {
... |
cfdcafbc34fb977c117b58dc682906780bafa971 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Trigger/TrigAnalysis/TrigEgammaAnalysisTools/Root/TrigEgammaNavBaseTool.cxx | 2c4f914019a7970105ec3250d6735d98f3dba211 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,701 | cxx | TrigEgammaNavBaseTool.cxx | /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
/**********************************************************************
* AsgTool: TrigEgammaNavZeeTPBaseTool
* Authors:
* Ryan Mackenzie White <ryan.white@cern.ch>
* Denis Damazio <denis.damazio@cern.ch>
* Contributors:
* ... |
2959863dc4b2d2b71974d16f88ff2be679edf08e | c3f715589f5d83e3ba92baaa309414eb253ca962 | /C++/round-4/101-200/181-200/199.h | 975da43d871d154faaf48def7d5c156142a0a9e1 | [] | no_license | kophy/Leetcode | 4b22272de78c213c4ad42c488df6cffa3b8ba785 | 7763dc71fd2f34b28d5e006a1824ca7157cec224 | refs/heads/master | 2021-06-11T05:06:41.144210 | 2021-03-09T08:25:15 | 2021-03-09T08:25:15 | 62,117,739 | 13 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 450 | h | 199.h | class Solution {
public:
vector<int> rightSideView(TreeNode *root) {
vector<int> result;
dfs(result, root, 0);
return result;
}
private:
void dfs(vector<int> &result, TreeNode *root, int level) {
if (!root)
return;
if (result.size() == level)
... |
9da405465e901129da2313364ed9db114ed9a558 | 8bdc463ca5241a63fbfe020db5c793a7eda759ed | /matrix.h | 1c42c480e05b7b962daa59a3edda91066f894ae6 | [] | no_license | BorisDeletic/TDSE-Solver | 1cd50ddc58afef4b437efad510a0ada11dec7fd3 | 346c1b7168dc9d539517fc840c8a7e3b82adc7b7 | refs/heads/main | 2023-02-24T14:45:38.368942 | 2021-02-02T23:31:56 | 2021-02-02T23:31:56 | 334,268,924 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 214 | h | matrix.h | #ifndef MATRIX_H
#define MATRIX_H
#include <vector>
#include <complex>
using namespace std;
vector<complex<double>> tridiag_solve(vector<double> a, vector<complex<double>> b, vector<complex<double>> d);
#endif |
ef57ff8ab1a761ff7f7386a376be7e80218090f5 | 2f85b08a8ce0cdd6e7aef615e46263445e6edd1c | /examples/example6/philosophers_stats.cpp | 3d8ed3bbaaf9f604155a399de7d1cc14e4f99491 | [] | no_license | breily/ruby2make | 44f2dc5496a363cf6050aa157374969a2dac53a9 | d4218f80a417c9924eab1afc2b2cd45b19369b90 | refs/heads/master | 2021-01-22T12:07:17.503424 | 2015-06-01T05:31:53 | 2015-06-01T05:31:53 | 102,546 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,419 | cpp | philosophers_stats.cpp | #include <iostream>
#include <fstream>
#include <vector>
#include <signal.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
using namespace std;
// for keeping some stats
vector<float> eatingTimes;
vector<float> hungryTimes;
vector<float> thinkingTimes;
vector<float> lastStateChangeTimes;
float lastT... |
6f1d7a2336d2183a6d7a5ae4ac4a39625bf11d10 | 7c89cdc0a702e4a6d29a2eac8ffce0903f320f45 | /edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Robot.h | 5a4e5f04479b7a66b57fca95f505f28218aabdc1 | [
"BSD-3-Clause"
] | permissive | czipperz/EclipsePlugins | 3786b0295e78dda507215c92de5aed39a1ac032d | 4961abb519344696e3f1f2827a4f34021e7302f4 | refs/heads/master | 2021-01-20T02:37:15.072549 | 2017-04-26T02:13:13 | 2017-04-26T03:17:18 | 89,427,479 | 0 | 0 | null | 2017-04-26T02:15:05 | 2017-04-26T02:15:05 | null | UTF-8 | C++ | false | false | 1,279 | h | Robot.h | #ifndef MY_ROBOT_H_
#define MY_ROBOT_H_
#include <memory>
#include <Commands/Command.h>
#include <IterativeRobot.h>
#include <SmartDashboard/SendableChooser.h>
#include "Commands/DriveAndShootAutonomous.h"
#include "Commands/DriveForward.h"
#include "OI.h"
#include "Subsystems/Collector.h"
#include "Subsystems/Drive... |
48ad1fe61aeabb72109b7cfffacc97ae49654974 | 5cc2cc7628b07aa737b0191c7e374eb88455aa98 | /qtdeclarative5-mango-network-0.0.1/Mango/Networking/oauth2.cpp | dbe8ea71435e90972496bdd6903dfb14b92b3b60 | [] | no_license | JosephMillsAtWork/qtpublic | 42454bfebd77e28c9e11b7f6317c947e70c283eb | 430681d2ffc8b91f3abceeca809d6a621e4c3baa | refs/heads/master | 2021-01-10T16:39:13.257950 | 2015-06-02T20:38:58 | 2015-06-02T20:38:58 | 36,760,292 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,121 | cpp | oauth2.cpp | #include "oauth2.h"
#include <QDebug>
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QStringList>
#include <QJsonParseError>
#include <QJsonObject>
#include <QJsonDocument>
/*!
\qmltype OAuth2
\inqmlmodule Mango.Networking 0.1
\ingroup Mango.Networking
\inherits I... |
f8a227febe4cf53e64c6ed6f77c684df93f123ca | 747a9f677a342363b805182817da464139a48a6f | /AtCoder/AtCoder130-ABC-D.cpp | 9ebcf5da1052faa79e0674993484b50bd84a0626 | [] | no_license | Valgt/CompetitiveProgramming | 35d6cb6bdf59be3ccf225739960474a041f2e22e | bb03813b08beb1fb50fce0121a54434efce51cad | refs/heads/main | 2021-06-07T10:53:31.039989 | 2021-04-28T17:30:51 | 2021-04-28T17:30:51 | 164,734,907 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 687 | cpp | AtCoder130-ABC-D.cpp | #include<bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for(int i = a; i < (b); ++i)
#define trav(a, x) for(auto& a : x)
#define all(x) begin(x), end(x)
#define sz(x) (int)(x).size()
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
const int TAM = 1e5 + 100;
vector<ll>a;
int main(... |
748d0fc16b870dcb40a65ae691e0921e276f0e9e | 256c5100914832915192fb1958444389eff4a85f | /recodat/TSnRecoSingleChanOffsetSet.h | 7ccc72b0eaa1af4b5cfde46dceae91d12a48283e | [] | no_license | jetatar/snowShovel | ea9a45ddcb182ca6776752e08df9799ac6cd7439 | 69678a46cd8c20a57e4b8d8a8cc19b8900173775 | refs/heads/master | 2020-05-30T19:42:33.193932 | 2014-08-18T06:37:56 | 2014-08-18T06:37:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,320 | h | TSnRecoSingleChanOffsetSet.h | #ifndef SNS_TSnRecoSingleChanOffsetSet
#define SNS_TSnRecoSingleChanOffsetSet
class TObjArray;
#include "TSnRecoResult.h"
class TSnSaveRecoResultMod;
class TSnRecoSingleChanOffset;
class TSnRecoSingleChanOffsetSet : public TSnRecoResult {
private:
TObjArray* fSet; //-> the collection of TSnRecoSingleChanOffset... |
75b05f91f4f061412d57c3a14b6b20c7638c6145 | b762ab5bd63a18b749fff95cf1b8929c068fc6d4 | /2.CodeForces/24.A. Team.cpp | 64120681652dcfe8e0e0d76de832a94ee5a9ca9d | [] | no_license | mrmh-code/My_problem_solution_different_OJ | 8f30e363d37d4177ed6052252544edc5e32bf559 | dc0bb3213101eb84c00601993adfbf6d3b258758 | refs/heads/main | 2023-06-29T14:09:04.010969 | 2021-07-25T04:31:06 | 2021-07-25T04:31:06 | 383,503,875 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 239 | cpp | 24.A. Team.cpp | #include <iostream>
using namespace std;
int main()
{
int i,n,s=0,f1,f2,f3;
cin>>n;
for(i=0; i<n; i++){
cin>>f1>>f2>>f3;
if (f1+f2+f3>=2)
{
s++;
}
}
cout<<s<<endl;
} |
b23e4d52eb404d01a27db280f5f7d52ee71d54f9 | 7ccccd69629354409566ba01d93572a4da0ba364 | /Desarrollo/BulletTest/BulletTest/IA/FuzzyLogic/FuzzySetRightShoulder.cpp | b3f58d234daa090574d2619a724393694b8e6228 | [] | no_license | Juliyo/LastBullet | eac779d78f0e8d62eb71ac4ecaa838e828825736 | 4f93b5260eaba275aa47c3ed13a93e7d7e60c0e9 | refs/heads/master | 2021-09-11T12:27:29.583652 | 2018-01-18T14:14:52 | 2018-01-18T14:14:52 | 104,806,970 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,090 | cpp | FuzzySetRightShoulder.cpp | #include "FuzzySetRightShoulder.h"
#include <Util.h>
//Constructor
FuzzySetRightShoulder::FuzzySetRightShoulder(double peak,
double LeftOffset,
double RightOffset) :
FuzzySet(((peak + RightOffset) + peak) / 2),
m_dPeakPoint(peak),
m_dLeftOffset(LeftOffset),
m_dRightOffset(RightOffset)
{}
//this method calcula... |
35da7fb11a107deffba766280b1b659128f5e658 | 618e55cef1a98ae8f9f80dd4078df1668a312bb6 | /Engine/Source/Core/SurfaceBehavior/SurfaceOptics/LaurentBelcour/TableTIR.h | 1895668cd0ef150183756eb04b1a5151791c8222 | [
"MIT"
] | permissive | TzuChieh/Photon-v2 | 8eb54ee9f3ae51bb241896a2fc62d10b553eaab9 | 498724a7ae4f42884499ee13e548013b2799ea7f | refs/heads/master | 2023-08-31T22:43:30.667848 | 2023-08-23T09:43:14 | 2023-08-23T09:43:14 | 70,727,398 | 93 | 8 | MIT | 2019-03-04T12:18:54 | 2016-10-12T18:07:46 | C++ | UTF-8 | C++ | false | false | 2,297 | h | TableTIR.h | #pragma once
#include "DataIO/BinaryFileReader.h"
#include "DataIO/FileSystem/Path.h"
#include "Common/assertion.h"
#include "Common/logging.h"
#include "Common/primitive_type.h"
#include <vector>
namespace ph
{
PH_DEFINE_EXTERNAL_LOG_GROUP(TableTIR, BSDF);
class TableTIR final
{
public:
explicit TableTIR(const P... |
8b473f102e2f661e2d26346e62770aeba074fd02 | 6de3ef3d0513e2d221c0b4e83c6dfc63e3c96c83 | /Examples/dcMotorAdelanteAtras/dcMotorAdelanteAtras.ino | 2b478a5403511879a0ee114533dfb4708ccbe330 | [] | no_license | fuseprods/DcMotor | 0887200ddeed16247ce5d28ad6197f1963c4934e | 06ee01c611cdd7f59ae0b1382eed250663866cd4 | refs/heads/master | 2020-12-25T02:50:39.095863 | 2012-12-23T16:02:35 | 2012-12-23T16:02:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,014 | ino | dcMotorAdelanteAtras.ino | #include <DcMotor.h>
DcMotor motor1(3, 8, 9); // creamos el objeto motor1. El pin 3 es el pin PWM y debe estar conectado al pin enable, el pin 8 es un pin conectado al motor y el pin 9 es otro conectado al motor
int velocidadAvance = 200; //definimos variables con las velocidades
int velo... |
9fbe989ea78e1c5b1d8d5c14a819e1f26c62993a | 0c70b06f995fcd4dc0eede201a066c14c1628959 | /Source/Blade/Public/AI/BladeAIController.h | e1cd8cf47de95da2dcb5279bb927180726b5c1fd | [] | no_license | crusader2k/Blade | d01d07de461b557c89d76de02e553d60c2fdffb1 | e5eb8274a221ee2d0ad029020fa579811dd01290 | refs/heads/main | 2023-04-07T11:24:05.056214 | 2021-03-25T05:19:51 | 2021-03-25T05:19:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 815 | h | BladeAIController.h | #pragma once
#include "CoreMinimal.h"
#include "AIController.h"
#include "Perception/AIPerceptionTypes.h"
#include "BladeAIController.generated.h"
class UBehaviorTree;
class UAIPerceptionComponent;
UCLASS()
class BLADE_API ABladeAIController : public AAIController
{
GENERATED_BODY()
public:
ABladeAIController();
... |
07047c784d5ed9d340013792f19bd00f3db10b35 | e3e9afeb5297c47925408626e8482c37295185da | /ProblemSolve/4번(p10010(Where Is Waldorf))/p10010.cpp | 7ed8bb391ccb745df16df0ba0b01d2b6e10c629e | [] | no_license | dkdlel/DongA-University | 4424874a8d1c05493ac4a605ae0bd322b8510ece | 3e69b7f566efaeba0db1f9c49517417116a22da5 | refs/heads/master | 2023-02-27T02:29:04.790015 | 2021-02-06T16:18:17 | 2021-02-06T16:18:17 | 230,419,155 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,772 | cpp | p10010.cpp | #include<bits/stdc++.h>
using namespace std;
ifstream fcin("p10010.inp");
ofstream fcout("p10010.out");
char board[51][51] = { '0', }; // 전체 문자의 판
string find_text; // 찾아야할 문자
int idx, tmp_idx; // 찾아야할 문자의 인덱스
int n, m; // 입력받은 판
int dx[8] = { -1,-1,-1,0,1,1, 1, 0 }; // 왼쪽위, 위, 오른쪽위, 오른쪽, 오른쪽 아래, 아래, 왼쪽아래, 왼쪽
int dy[... |
7c1588c97a9956817a06231fda3ed63a08ae3672 | ef415cd92b6d27bb3d14dc047dd076481f25ba14 | /osu-sh/dll/dllmain.cpp | 558ea2d1e992f94b297ed719d6af2968336c218f | [
"MIT"
] | permissive | Zhangerr/osupserver | 6cce645307c11b6920c347b8f319b87779c7fda9 | a1e2fdca3ea13f35273a31e940f75e29554a1bca | refs/heads/master | 2016-09-05T14:43:38.117474 | 2013-08-22T01:32:31 | 2013-08-22T01:32:31 | 12,283,388 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,108 | cpp | dllmain.cpp | #undef UNICODE
#define WIN32_LEAN_AND_MEAN //so winsock.h doesnt mess with winsock2 (not needed for this build?)
#include <stdio.h>
#include <sstream>
#include <string>
#include <windows.h>
#include <iostream>
#include <fstream>
#include <algorithm>
#include "mhook-lib\mhook.h"
using namespace std;
//typed... |
cfdc6d0a985a84f16ad8cd5408bc2e2d8cf9fe3e | 6e9991db2977862aa3cf28a52c6c7ddda3907eab | /src/traffic_light.h | 955eac42a78c08d7d0b47f879c00d85d62eaf56b | [] | no_license | chischte/rig-pty-semi-automatic | d96f90f7fc78896c09bb57061d7c3a93148f547f | 7b445daaec32974899843627ca0ffadc1b79a8d7 | refs/heads/master | 2023-07-10T03:29:15.504334 | 2021-08-11T13:23:31 | 2021-08-11T13:23:31 | 260,912,875 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 683 | h | traffic_light.h | #ifndef TRAFFIC_LIGHT_H_
#define TRAFFIC_LIGHT_H_
#include "Arduino.h"
class Traffic_light {
public:
void set_info_start();
void set_info_user_do_stuff();
void set_info_machine_do_stuff();
void set_info_sleep();
void set_info_has_changed();
bool info_has_changed();
bool is_in_sleep_state();
bool is_... |
fb5f3bc753777cbd0d9934615fd01c3f5803e173 | 363aae732cafddeae21fe84fcd4f67524b0a2c16 | /widget.cpp | aae253f3a53ea60b952d9db137d83ba04656e076 | [] | no_license | QiDian-Studio/Message_Box | 98f499094a291da180dc24ff9ce8491b0822e70b | 021ded04ff3956decafee2c9e5f95f672fc18bb9 | refs/heads/master | 2020-09-14T11:47:52.928904 | 2019-11-26T17:05:02 | 2019-11-26T17:05:02 | 223,120,400 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,235 | cpp | widget.cpp | #include "widget.h"
#include "ui_widget.h"
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QMovie>
#include <QString>
#include <stdlib.h>
#include <time.h>
#include <QMessageBox>
#include <QIcon>
#include <QNetworkCookieJar>
#include <QNetworkCookie>
MainWidget::MainWidget(QWidget *parent) :
... |
f88194a3b9124383cd5607ce0f4216ecb64d3439 | cd28a35b77a4fe9ade88ab8a683d9ead2b780b10 | /pms/assignments/goodEgAss2/11377823/rangerfusion.cpp | c6546d6a1491120b277e2e85cbeab6527b2b3db2 | [] | no_license | smagri/uni_masters | e749b06cdb50a7438de4d429c2607a113566c774 | 7b3ce7d27f123f86d206eb58d08d9048081fa546 | refs/heads/master | 2022-11-19T10:11:35.731442 | 2020-07-23T04:09:21 | 2020-07-23T04:09:21 | 281,613,348 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,076 | cpp | rangerfusion.cpp | #include "rangerfusion.h"
#include "ranger.h"
#include <iostream>
RangerFusionInterface:: RangerFusionInterface()
{
}
RangerFusion::RangerFusion()
{
fusionMethod_ = 1;
}
bool RangerFusion::setFusionMethod(int fusionChoice)
{
switch (fusionChoice)
{
case 1: // min
fusionMethod_ = fusio... |
c3ee5857685a1d259feda1d08c92299dde117986 | 673fec6216a3a4b77e96ca987ca85eac1a518ae3 | /Caro/game.h | f9db72f5614d926b219ea32a4f4dd2b46b5b88f8 | [] | no_license | kiriHahnchen/caro | 3714c38b40642cb2b71624f5df85f6e48074f80c | b5e976d65d679ddadada57c05ed91cf7804447ee | refs/heads/main | 2023-04-02T20:07:57.818947 | 2021-04-10T15:58:59 | 2021-04-10T15:58:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,326 | h | game.h | #ifndef GAME_H_INCLUDED
#define GAME_H_INCLUDED
#include "interface/interface.h"
#include "player/player.h"
#define MAX_PLAYER 2
#define MIN_N 2
#define MAX_N 30
struct CORD {
int X, Y;
};
class Game {
private:
int N = 0 ,
turn ,
... |
7bbd5a06ca4faaf8eb6c6aead3ecfae6ccb0028e | 54c3be901a302733540393905e28ce81f8d76321 | /2019/day20/p1/main.cpp | 02bfc9e334ea5769800b39986b9c0c03f4aad52e | [
"MIT"
] | permissive | jbaldwin/adventofcode | 96ecdac1f611b1170ab2919b69f2ea21c68a345f | eb696762067adbec08aac4b821db3f3c8e58507d | refs/heads/main | 2022-12-20T16:07:12.628974 | 2022-12-17T01:13:29 | 2022-12-17T01:13:29 | 225,207,837 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,452 | cpp | main.cpp | #include <iostream>
#include <vector>
#include <map>
#include <array>
#include <lib/AStar.hpp>
#include <lib/file_util.hpp>
static std::array<std::pair<int64_t, int64_t>, 4> movements = {
std::pair{1, 0},
std::pair{-1, 0},
std::pair{0, 1},
std::pair{0, -1}
};
struct Node;
using Map = std::map<int64... |
42d7c7f74d8f50d346528dbabc8bc10d624e3fe7 | 51635c1a1135b979b47e4fc35fdf2b5421192d96 | /lava/framework/core/image2buffertransfer.cpp | 0aef1f58794781930046de66cd5745182f5397a8 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | BalderOdinson/LavaVk | 4b980166f44945e62b0f401d4da8e8ce94cf316a | f3241e1077bbfc8bbf14267d35e9c72272fceefa | refs/heads/master | 2020-12-15T16:50:08.354426 | 2020-01-24T05:09:57 | 2020-01-24T05:09:57 | 235,183,993 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,285 | cpp | image2buffertransfer.cpp | //
// Created by dorian on 10. 12. 2019..
//
#include "image2buffertransfer.h"
#include "commandbuffer.h"
#include <utility>
LavaVk::Core::Image2BufferTransfer::Image2BufferTransfer(LavaVk::Core::SharedCommandBuffer cmd,
LavaVk::Core::SharedImageObject src,
... |
2e2a897815a4747119654e37fcf50f3d15a60ebd | b6288ed9edbaef00a556cfeaf6522626baff0b8b | /designPattern2/MediatorPattern/testMP.cpp | ba73ca1d5c56b272a26556b7cfa69ed63f8d7a92 | [] | no_license | AlexWuDDD/designPattern2 | dfa6166bda17a4974bc892177f19f63485fca575 | 9cb7bb03b73bfcdab51320d9b2afb1a85f54f0ae | refs/heads/master | 2020-05-28T07:48:59.065861 | 2019-06-03T22:03:05 | 2019-06-03T22:03:05 | 188,927,758 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 731 | cpp | testMP.cpp | //
// testMP.cpp
// designPattern2
//
// Created by Wu.Alex on 2019/6/3.
// Copyright © 2019 Wu.Alex. All rights reserved.
//
#include "testMP.hpp"
void testMP()
{
// 房东
IColleague *landlord = new ConcreteColleague("Tom");
// 租客
IColleague *jerry = new ConcreteColleague("Jerry");
IColleag... |
046159c2a44e83fdc9b821c40ee2efa438a0351f | 0e2d13a5ae3be55f8a14ce5d49c540f0733b6788 | /p7zip/Utils/CPUTest/Benchmark.h | 6303bb806a36f1703e002d6cecd25fcfbad1ce34 | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | casteryh/violet | 4dcf4ce167ad217b47f4948412b724e4884aa3aa | d0d4b55fd2bee33aaa073f2077dc8a82bbae853f | refs/heads/master | 2022-11-18T02:11:50.153010 | 2020-07-14T14:34:09 | 2020-07-14T14:34:09 | 281,675,172 | 1 | 0 | MIT | 2020-07-22T12:45:30 | 2020-07-22T12:45:29 | null | UTF-8 | C++ | false | false | 3,684 | h | Benchmark.h | // Benchmark.h: Benchmark functions for CPU tests
#ifndef __BENCHMARK_H
#define __BENCHMARK_H
#if (defined _WIN32) || (defined _WIN32_WCE)
#define ITS_WINDOWS
#endif
#ifdef ITS_WINDOWS
#include <windows.h>
#endif
#include <stdlib.h>
#include <string.h>
#include <time.h>
#if defined(_M_X64) || defined(_M_AMD64) || ... |
f22f7f647ea697d611072856edfdd0fcf67fa487 | ae3675c0bd22c0ca63f757b06df3f2d693ed8b68 | /gx_pcvt2d/psa-src/fileio.cpp | cf379d6e3c42f8209bcb4a1b89b4d15ab8e1b72b | [] | no_license | duxingyi-charles/PCVT2D | f56801142e9bb83c051106b4027bad47370b26fc | 384f86532cc167464746c58c4c179b62ac03ed88 | refs/heads/master | 2021-09-17T20:50:27.344351 | 2018-07-05T09:05:06 | 2018-07-05T09:05:06 | 139,819,158 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 20,691 | cpp | fileio.cpp | /**
* This file is part of the point set analysis tool psa
*
* Copyright 2011, Thomas Schl\"{o}mer, thomas.schloemer@uni-konstanz.de
*
* psa 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 vers... |
fea85eb1fa36d0c21ed02ad8510aa24353085591 | a2faca2b6479d77960d22fa8bc88305d5aefd34b | /src/main.cpp | e681d74622879600cb29a211d99d542218c6aa7e | [] | no_license | zxliang/ASL_optimizer | 40fff4ebd7368da7f12ba061a48ad3368c626039 | 9b94a16fb0931f25b5f9d41ada2e15c52e4ca7f0 | refs/heads/master | 2023-04-01T12:53:21.183438 | 2023-03-30T01:04:33 | 2023-03-30T01:04:33 | 49,754,468 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,662 | cpp | main.cpp | #include "gate.h"
int main(int argc, char* argv[])
{
clock_t start, middle1, middle2, end;
start = clock();
if (argc<4)
{
cout<<"No enough file name given!"<<endl;
cout<<"./sta 10nm_ASL.genlib CXXX_mapped.blif CXXXoutxxxW.pl EDoutputfile.txt"<<endl;
return -1;
}
ifstream lib... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.