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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c2fd68fb6bec592520a784d70c88e20939e959c1 | b9267b6529bd31f24e4cf2d426e6ad21790e0432 | /VNEngine/Source/Engine/Character.cpp | ac522f1e15d728b3881e1210dbedda7b1cacf08b | [] | no_license | Minigeee/VNEngine | 972496f2b9d446fe09eb54f4d09ffb42aecfab87 | 62b85d835c1bd42ce0ea54697608de28eb3dd38a | refs/heads/master | 2022-10-17T22:26:06.382267 | 2020-06-15T01:06:11 | 2020-06-15T01:06:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,104 | cpp | Character.cpp | #include <Engine/Character.h>
#include <Engine/Scene.h>
#include <Engine/Action.h>
#include <Engine/Engine.h>
using namespace vne;
// ============================================================================
// ============================================================================
Character::Character() :
... |
87bc3be071bf00fade82677022e84ea13f4effbb | bbcaca1f513d936c94b748e6b5787feffc5dfa56 | /lifes.cpp | 339c11e8023d7a93f8fcadf656179994a508fb50 | [] | no_license | Angan7a/My_First_Game_In_Qt | 3aea64168544555c2c4f7b0423af5c63d492202a | 34825029e5a4a855b1ddda64467b2ea0ce3c7828 | refs/heads/master | 2021-01-22T11:04:06.248888 | 2017-06-01T14:10:06 | 2017-06-01T14:10:06 | 92,668,493 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 346 | cpp | lifes.cpp | #include "lifes.h"
#include<QFont>
Lifes::Lifes() : QGraphicsTextItem() {
lifes = 3;
setPlainText(QString("Lifes: " + QString::number(lifes)));
setDefaultTextColor(Qt::red);
setFont(QFont("times", 16));
setPos(0,30);
}
void Lifes::decrase()
{
lifes--;
setPlainText(QString("Lifes: " + QS... |
bdc2b314e7a843a9a350f502869561c5033f93b0 | a7d87d78402278ca88186e0066530d9f003cb90b | /CBProjects/29.11 - 2/main.cpp | c2583b0288b35e523f724a11e64145388f7127ed | [] | no_license | BlackHenry/Freshman | 33e51e017d4105494592f8b59b508caf9232faab | f88c8d0c05314d4f62060325b324d6d0e7d150f0 | refs/heads/master | 2020-03-28T13:11:34.651393 | 2018-09-11T20:01:33 | 2018-09-11T20:01:33 | 148,373,512 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 567 | cpp | main.cpp | #include <iostream>
#include <vector>
using namespace std;
vector<int> vrr;
int n, m;
int main()
{
int k = 0;
cin >> m >> n;
for(int i = 0; i < n; i++){
for(int j = 0; j < m; j++){
int a, b;
cin >> a;
if(j){
if(i){
if(a + b +... |
0a54d7003c061dab017ea8731bf2aef49da4170c | fef750f91e71daa54ed4b7ccbb5274e77cab1d8f | /UVA/12500-12599/12563.cpp | becb19ce284416ca8e22b8be48199cd9e4e8b3f4 | [] | no_license | DongChengrong/ACM-Program | e46008371b5d4abb77c78d2b6ab7b2a8192d332b | a0991678302c8d8f4a7797c8d537eabd64c29204 | refs/heads/master | 2021-01-01T18:32:42.500303 | 2020-12-29T11:29:02 | 2020-12-29T11:29:02 | 98,361,821 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,010 | cpp | 12563.cpp | #include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
const int maxn = 50 + 10;
const int maxt = 180 * 50 + 100;
struct Node
{
int time,num;
}dp[maxt];
int t[maxn];
int main()
{
int Test;
scanf("%d",&Test);
for(int test = 1; test <= Test; test++)
{
int n,time,sum_t ... |
0654b2e83ddaa23e54e2c7c900b44600dbe284e5 | 6aeccfb60568a360d2d143e0271f0def40747d73 | /sandbox/boost/shmem/mem_algo/multi_simple_seq_fit.hpp | ec359bd97264dd13c5943a887d1b9a7a32076bf9 | [] | no_license | ttyang/sandbox | 1066b324a13813cb1113beca75cdaf518e952276 | e1d6fde18ced644bb63e231829b2fe0664e51fac | refs/heads/trunk | 2021-01-19T17:17:47.452557 | 2013-06-07T14:19:55 | 2013-06-07T14:19:55 | 13,488,698 | 1 | 3 | null | 2023-03-20T11:52:19 | 2013-10-11T03:08:51 | C++ | UTF-8 | C++ | false | false | 1,992 | hpp | multi_simple_seq_fit.hpp | //////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztañaga 2005. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/shmem for do... |
11f64cbbe30884a272d084d10206e5a2e1ce22fd | 71a08e13da1980d28f8328456d7ab210e76d67fc | /thirdparty/z3/src/ast/rewriter/bool_rewriter_params.hpp | d415e43da1d6475b8108b62b4f167e8e11cf1665 | [
"BSD-2-Clause",
"MIT"
] | permissive | wslee/euphony | ef4cffd52fb1bacbe33ea8127a4f66ab843934ec | 0b9a62a294897b707c86ba3c0f63561ff503cb3b | refs/heads/master | 2022-12-01T15:19:13.720166 | 2022-11-21T05:57:09 | 2022-11-21T05:57:09 | 122,758,209 | 26 | 12 | NOASSERTION | 2022-03-18T17:15:27 | 2018-02-24T16:34:54 | Slash | UTF-8 | C++ | false | false | 2,037 | hpp | bool_rewriter_params.hpp | // Automatically generated file
#ifndef __BOOL_REWRITER_PARAMS_HPP_
#define __BOOL_REWRITER_PARAMS_HPP_
#include "util/params.h"
#include "util/gparams.h"
struct bool_rewriter_params {
params_ref const & p;
params_ref g;
bool_rewriter_params(params_ref const & _p = params_ref::get_empty()):
p(_p), g(gparams:... |
69a7df99c713a19503a4f603f86b0d8394d7e5b1 | 5610d502f019f23c7c12acac44b36a1ab068c054 | /kablovi.cpp | 837e8d2ec97d3603606af9b8c93afe18dccd4ab5 | [] | no_license | elvircrn/ccppcodes | 7f301760a1cbe486f3991d394d5355483fbf27dd | b5d72b875b5082042826c86643d6f5e47ab2d768 | refs/heads/master | 2021-01-01T05:46:37.476763 | 2015-10-14T17:47:57 | 2015-10-14T17:47:57 | 44,265,359 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,667 | cpp | kablovi.cpp | #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <vector>
#include <cmath>
#include <queue>
using namespace std;
class point
{
public:
float x, y;
point () {}
point (float _x, float _y) { x = _x; y = _y; }
};
float distance (float Ax, float Ay, float Bx, float By)
{... |
245ad723242d45007d1cd9070d99642b76d13276 | 1dbb60db92072801e3e7eaf6645ef776e2a26b29 | /server/src/so_game/activity_event.cpp | f83ee8e09e19892143568c080fc01582850be6e6 | [] | no_license | atom-chen/phone-code | 5a05472fcf2852d1943ad869b37603a4901749d5 | c0c0f112c9a2570cc0390703b1bff56d67508e89 | refs/heads/master | 2020-07-05T01:15:00.585018 | 2015-06-17T08:52:21 | 2015-06-17T08:52:21 | 202,480,234 | 0 | 1 | null | 2019-08-15T05:36:11 | 2019-08-15T05:36:09 | null | UTF-8 | C++ | false | false | 2,854 | cpp | activity_event.cpp | #include "activity_imp.h"
#include "altar_imp.h"
#include "var_imp.h"
#include "coin_imp.h"
#include "coin_event.h"
#include "activity_dc.h"
#include "user_event.h"
#include "coin_event.h"
#include "link_event.h"
#include "altar_event.h"
#include "pay_event.h"
#include "local.h"
#include "util.h"
#include "common.h"
#i... |
7ac92d6f8cd4000ce54b1cc64cbc55345d2d5c03 | 71ae94b99bf705e095bc5076d6e0eb673b9433f7 | /EarseModuls/earserandom.h | 314602efed39b375a656853fb5340b06738ba35e | [] | no_license | Snsaiu/uosEarse | d193ca7c0af27651ba6e2e6a96ccbe04c0cb36bd | 782670161b7efaabcf0ee56a9bcccbaac29f6de8 | refs/heads/main | 2023-05-01T07:06:27.077319 | 2021-05-15T13:36:17 | 2021-05-15T13:36:17 | 367,636,517 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 303 | h | earserandom.h | #ifndef EARSERANDOM_H
#define EARSERANDOM_H
#include "earseabstraction.h"
#include <QObject>
class EarseRandom : public EarseAbstraction
{
public:
EarseRandom(QString diskPath,QString logPath);
signals:
// EarseAbstraction interface
public:
void Earse();
};
#endif // EARSERANDOM_H
|
f87bd2ce53933cd144f1de38c6d23b1ae9d5baf6 | 717608a5f10bb96fed001859d2d7feb8ee34d2b6 | /httpserver.hpp | f33ca7758ea2acffe1477c5e17f28630da6a5ee1 | [] | no_license | sgielen/sg--http | ed61afccd813415797e77f0d7d7b7016949768e2 | 3e434797b6aa1c3f54640a8cb42052ebbde15a07 | refs/heads/master | 2020-04-15T23:49:17.620550 | 2018-01-23T15:00:27 | 2018-01-23T15:00:27 | 14,731,837 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,100 | hpp | httpserver.hpp | #pragma once
// Most of this code was copied from the Boost HTTP server example, and as
// such is licensed under the Boost Software License, version 1.0.
#include <boost/thread/thread.hpp>
#include <boost/bind.hpp>
#include <boost/asio.hpp>
#include <memory>
#include "http_global.hpp"
#include "httpconnection.hpp"
... |
eda59989e8582aa6d5ab023f1bc79b941c41ef18 | aa53a36abb1eef66475202899dc5b48579074646 | /test_files/Test1.cpp | 4320502db43fcf75ed843dbd2206c8cbc79268be | [
"BSL-1.0"
] | permissive | facebookarchive/flint | 204aa3076f3364f71d79f96e130524cb17007ce4 | 57f000fee196e83e4dad44aeb466893d55407f5b | refs/heads/master | 2023-08-18T17:55:54.240675 | 2020-04-16T01:59:28 | 2020-04-16T01:59:28 | 16,784,950 | 170 | 23 | BSL-1.0 | 2020-04-16T01:59:30 | 2014-02-12T22:54:20 | D | UTF-8 | C++ | false | false | 157 | cpp | Test1.cpp | #include "Test1.h"
int main(int argc, char **argv) {
std::string s("asd");
std::map abc;
std::map def;
std::map asd;
printf("%s\n", s.c_str());
}
|
c01b46c5c435d243bfd1416284125773000fed73 | 0ef4f71c8ff2f233945ee4effdba893fed3b8fad | /misc_microsoft_gamedev_source_code/misc_microsoft_gamedev_source_code/xgame/mpGameSession.cpp | 070da5b9d1002d26403d9b9ba25d1ccc48d274a8 | [] | no_license | sgzwiz/misc_microsoft_gamedev_source_code | 1f482b2259f413241392832effcbc64c4c3d79ca | 39c200a1642102b484736b51892033cc575b341a | refs/heads/master | 2022-12-22T11:03:53.930024 | 2020-09-28T20:39:56 | 2020-09-28T20:39:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 154,320 | cpp | mpGameSession.cpp | //==============================================================================
// mpGameSession.cpp
//
// Copyright (c) Ensemble Studios, 2008
//==============================================================================
#include "Common.h"
#include "mpGameSession.h"
// xgame
#include "gamesettings.h"
... |
8d1dc267fd0c28250c288de05084893b3b12da03 | 150fc029a7f7aa840fcd85e4ba7dda9600e1b7b2 | /AVRPowerSupply.cpp | 011e3fb70eecf51b566acfa4d8a66f87eee14a45 | [] | no_license | cmarrin/AVRPowerSupply | 02ac446983ac387ca1ff0a9f25011adeb40427e3 | f5e057fa52ddb14401809e9cd7928d3d05c7c05e | refs/heads/master | 2021-01-19T06:04:54.425029 | 2014-04-14T01:41:50 | 2014-04-14T01:41:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,129 | cpp | AVRPowerSupply.cpp | //
// AVRPowerSupply.cpp
//
// Created by Chris Marrin on 3/9/2014.
//
#include "m8r.h"
#include "ADC.h"
#include "Button.h"
#include "DeviceStream.h"
#include "EventListener.h"
#include "FixedPoint.h"
#include "INA219.h"
#include "Menu.h"
#include "System.h"
#include "TextLCD.h"
#include "Timer0.h"
#include "Timer... |
d1962ef9d79f4a1b5b0872acaf654e487fac4445 | 7e5037a40b35d9352ca28ecfd78083a1e9e53de6 | /trunk/IS/TP1/IMP/sketch_jul01a/Sensores.h | 1d7e0512f69f75066c5541538893afc62257237b | [] | no_license | guanucoluis/ESE | 36a84ded12c0e55ef9c9d05d14ec86b7b7acf98b | d388b60830883befdcee37a8c6851a61a317e1da | refs/heads/master | 2021-04-19T02:41:36.025842 | 2016-10-27T23:03:48 | 2016-10-27T23:03:48 | 34,486,471 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 433 | h | Sensores.h | /*
Sensores.h - Librería para manejar los sensores
Creado por Luis Guanuco. 02 de Julio de 2015
*/
#ifndef Sensores_h
#define Sensores_h
#include "Arduino.h"
class Sensores {
private:
int _pin;
virtual int _valor;
bool _conectado;
public:
Sensores(int pin_number);
virtual int getValor(void); ... |
18085dfa4ce2b0b877fb72023c3199092c9e3a4e | fe073a6ecb8ead6ad78d8e13342d694a81474e00 | /util/phoc_mex.cpp | 6b5faed11cdbca64101bd32089108a9cd666f6c4 | [
"MIT"
] | permissive | almazan/watts | 4b45ada36e727bb5d70d2bd519280b693c7ae421 | ef01044bc17b4d5f56b6ff0855497b2c69f9b2e7 | refs/heads/master | 2021-01-22T07:18:25.089041 | 2017-02-24T13:06:43 | 2017-02-24T13:06:43 | 15,553,927 | 35 | 20 | null | 2014-03-18T16:29:53 | 2013-12-31T17:26:14 | C | UTF-8 | C++ | false | false | 5,347 | cpp | phoc_mex.cpp | #include "mex.h"
#include "string.h"
#include <string>
#include <map>
#define HARD 0
void computePhoc(char *str, std::map<char,int> vocUni2pos, std::map<std::string,int> vocBi2pos, int Nvoc, int *levels, int Nlevels, int totalLevels, float *out);
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *... |
00218d54ee6d68ddf4d1e2409ca2e99b06b31a57 | 790ecfc7a2f137ee13325e46279b7f14608819e2 | /src/Customer.h | a9442f7a2c70917b26cab11e9010a1d3fe08a527 | [] | no_license | ShihBrian/Automated-Warehouse | 12708a14c80f83a3468fba1e8496f5248fc5eb0c | 8766f471ee564c4254a0825ea6ecfd35a10238c9 | refs/heads/master | 2021-09-05T01:02:48.828195 | 2018-01-23T07:52:33 | 2018-01-23T07:52:33 | 108,805,598 | 0 | 0 | null | 2017-11-26T08:31:05 | 2017-10-30T05:25:43 | C++ | UTF-8 | C++ | false | false | 504 | h | Customer.h | #ifndef CUSTOMER_H
#define CUSTOMER_H
#include "Client.h"
enum Copt {
C_CREATE = 1,
C_SEND,
C_VIEW_INV,
C_QUIT
};
class Customer : public Client {
public:
Customer(Comm& comm) : Client(comm) {}
int get_menu_option(){
order_menu.print_menu(customer_menu);
std::cin >> cmd;
std::cin.ignore (std... |
93343324bdffb7153388d79888120abf93145adc | 91d3a5cd53e07be5253f716e030507c42e807bb5 | /src/algorithm/algorithm.hh | fc1c1b094d129d55803d1e1a15ef7e5d8ae4bc0f | [] | no_license | jhidding/scarlett2 | a95cf5c358190401691ef1602177c8f3961d8109 | 48fbfaeb4b1d1b7be4fee5aa6f219153e46786a2 | refs/heads/master | 2021-01-10T09:04:45.066380 | 2015-12-07T09:02:13 | 2015-12-07T09:02:13 | 46,819,506 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 213 | hh | algorithm.hh | #pragma once
#include "../system/object.hh"
#include "../system/symbol.hh"
namespace Scarlett
{
extern void match_tree(
Ptr a_, Ptr b_,
std::function<void (Symbol const *, Ptr)> const &f);
}
|
7d3171572fef649cae7bc823c73b338a545a7725 | 780361fd4970fddf8cc88588f1cc9fa21bba24c4 | /Mean/mean.cpp | 8ca9507ed21778fa57ef342454a1822ba3d043b6 | [] | no_license | NicolasSeay/9th-Grade-Programs | 985be15f2f52a201abc4a14712aaea484db6e6e2 | b27b6095eb42592a03eb066ebc83ac7cd8cd5520 | refs/heads/master | 2021-01-10T15:03:34.198067 | 2016-01-17T01:39:11 | 2016-01-17T01:39:11 | 49,798,612 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,146 | cpp | mean.cpp | #include <iostream>
#include <iomanip>
#include <math.h>
using namespace std;
void input(int &grade1, int &grade2){
cout<<"Hello!"<<endl;
cout<<"Enter Grade 1: ";
cin>>grade1;
cout<<"Enter Grade 2: ";
cin>>grade2;
}
void ArithMean(int grade1, int grade2, double &AMean){
AMean=(((double)grade1... |
6fad42df68d638a4c19554825e3c24e8da203a79 | 59088cd2e7a52afc7dd3ee1c2d980b90e2d8edb7 | /bookcode/cproject/base/iftest.cpp | 6997139ad99b5a4d46b96e86844d2a54f0566643 | [
"Apache-2.0"
] | permissive | zhangymPerson/Think-in-java-note | 83c6954af77c967a8add0749e505f8160f48b30c | b5b44109be25e0288c719d7817723667451add50 | refs/heads/master | 2023-05-12T06:56:15.418645 | 2022-05-14T02:18:59 | 2022-05-14T02:18:59 | 196,109,615 | 0 | 0 | Apache-2.0 | 2023-05-05T02:24:32 | 2019-07-10T01:39:21 | Java | UTF-8 | C++ | false | false | 2,612 | cpp | iftest.cpp | // 测试下 #if
// 看一下应用格式:
// #if 表达式
// 如果表达式为真程序段1
// #else
// 否则程序段2
// #endif
// 在程序中,应用比较多的#if 1或是#if 0,后面加#endif
#if 0
#include <iostream>
using std::cout;
int main() {
cout << " *" << '\n';
cout << " * *" << '\n';
cout << " * * *" << '\n';
cout << " * * * *" << '\n';
... |
270a03ad77e7f1daee8a23a79bd1b6d64264d47f | d3aada6f56d2bbf9f7bc07558cd4f842b3678176 | /Can/Can/src/Can/Scene/Components/DisabledComponent.cpp | 97cfa2c5a2fb044ad88cf452b0359fd63c4bb423 | [] | no_license | EmreCan-Haciosmanoglu/EllieMcComp | 6208c0de26de1061a8c2d9bf174941d31b958fe6 | edec0de3f755b49c8b2e47454a6171cfbe8e5764 | refs/heads/master | 2023-06-07T23:11:11.503423 | 2023-05-24T21:48:41 | 2023-05-24T21:48:41 | 154,906,277 | 0 | 0 | null | 2022-12-07T22:57:06 | 2018-10-26T23:52:55 | JavaScript | UTF-8 | C++ | false | false | 115 | cpp | DisabledComponent.cpp | #include "canpch.h"
#include "DisabledComponent.h"
namespace Can
{
DisabledComponent::DisabledComponent()
{
}
} |
48b3ea73cce23e763e52f06e748bb88fcf4f7834 | 9131ab25aaf29fe269e2236cae4ba34202cc6f9b | /client/UdpManager/udpmanager.cpp | 34a031b993a99680a2506cd079f878ef7f517995 | [] | no_license | Georgio97/Project-Babel-Skype- | 9ca30d684d78b049e490d3bb80ebb72a25b6be1b | 575120dc1d2f8ab1558a197d3f6ce7dc11abf281 | refs/heads/master | 2021-01-04T00:20:25.598870 | 2020-02-13T16:01:00 | 2020-02-13T16:01:00 | 240,299,209 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 830 | cpp | udpmanager.cpp | #include "udpmanager.h"
UdpManager::UdpManager(QHostAddress sender, QObject *parent) : QObject(parent)
{
_socket = std::unique_ptr<QUdpSocket>(new QUdpSocket(this));
_sender = sender;
_socket->bind(_sender, 1234);
QHostAddress senders;
quint16 senderPort;
QByteArray buffer;
_socket->writeD... |
6fb54ef5233aef31ede7924d11587583726d80a8 | 86c9a2829ac4beca651eb433017d73717f80866d | /src/pic12f.cc | 0b3eef1a3beed35342e737c4a1aca8aa27b4c55c | [] | no_license | aempirei/mcpdis | cc8a3177a55d90f783dc1f65c7a585e60c255da5 | 78e0bb1e0ed24b6d85272814ca4df4dacf0515bc | refs/heads/master | 2021-01-01T19:51:06.792099 | 2015-04-24T08:41:10 | 2015-04-24T08:41:10 | 34,507,537 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,700 | cc | pic12f.cc | #include <sstream>
#include <iomanip>
#include <cstdlib>
#include <cstdint>
#include <climits>
#include <mcpdis.hh>
#define FN(a) void a(operation&, dictionary&)
#define GN(a) void a(operation&o, dictionary&c)
#define HN(a) void a(operation&, dictionary&c)
#define USE_B literal_t b = (1 << o.argul(L'b'))
#defin... |
e377963c012210c43d26efa49073ddb8039f4beb | a30d09985c3bbe308db025eb5358f375e9906e69 | /src/ros_cyton_pkg/include/xml/ecXmlOrientation.h | 9cf6164aa96b9511371e45c3dfbc452911b1443d | [] | no_license | shelderzhang/ros_cyton_gamma | d86bb61bb6796aa8c49d61031fe23065d2bbb80d | fbadcc333518ea0522368be9bdb3e36d0c828dbf | refs/heads/master | 2021-01-18T10:21:13.524783 | 2014-09-05T21:04:16 | 2014-09-05T21:04:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,760 | h | ecXmlOrientation.h | #ifndef ecXmlOrientation_H_
#define ecXmlOrientation_H_
//------------------------------------------------------------------------------
// Copyright (c) 2002-2013 Energid Technologies. All rights reserved.
//
/// @file ecXmlOrientation.h
/// @class EcXmlOrientation
/// @brief Defined class for describing orientation.
... |
8dbb661356cc407ec546935e29f9025a5963fed6 | 516e6cf51c197363deb861a0c02654857aa69e33 | /Spark/include/InputSource.hpp | 9ef62f3cce081b20eda6a245a215e5cbc125e4e1 | [] | no_license | MyFriendTames/Spark-0.0.1 | a2f6117ac8eb38b9161703e4c18db04a331aa272 | d1895a9c8426e824abd9d0e509cd34efd1d93c84 | refs/heads/master | 2023-02-09T14:44:12.687537 | 2021-01-06T16:40:11 | 2021-01-06T16:40:11 | 273,329,726 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 381 | hpp | InputSource.hpp | #ifndef INPUT_SOURCE_HPP
#define INPUT_SOURCE_HPP
#include <string>
class Game;
class InputSource{
friend Game;
private:
std::string name;
bool pressed;
bool down;
bool released;
InputSource();
public:
const std::string &getName();
bool isPressed();... |
c05780399ae3b29559e7adc0fa84091088f3ffd3 | 19e748c74026e95d8946033715746f34066b2cf8 | /.upstream-tests/test/std/utilities/ratio/ratio.arithmetic/ratio_subtract.pass.cpp | 8cf7a1f92d942bb35a28414ed65288006aa14a2d | [
"NCSA",
"LLVM-exception",
"MIT",
"Apache-2.0"
] | permissive | JanuszL/libcudacxx | a0c156e7c2bf12e2ee97401a7dc3e33a928a7fb5 | 41c94bdb8ff4974f2317b505360690715b8f5f7a | refs/heads/main | 2023-08-26T07:31:32.396998 | 2021-08-20T22:20:58 | 2021-08-20T22:20:58 | 408,430,785 | 0 | 0 | NOASSERTION | 2021-09-20T12:17:33 | 2021-09-20T12:17:32 | null | UTF-8 | C++ | false | false | 2,796 | cpp | ratio_subtract.pass.cpp | //===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
713cfe7870e647c4e184791c237e2855b719474e | 60bcabba9e16d91165a6b1f7368aae813231cc07 | /src/treelike/renderer/sprite_cubic_animation.cpp | ea95f59ee43bbcbeb10ec8173cd9a1e046e70282 | [] | no_license | yumayo/treelike | b5bd0d42737fc2486860266a8e8c34ad8ffb7d93 | 12463256b5b4da10a8a1bcd5a9dc52a8974d23b8 | refs/heads/master | 2021-06-20T08:31:49.495890 | 2017-07-30T17:40:56 | 2017-07-30T17:40:56 | 88,397,093 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,322 | cpp | sprite_cubic_animation.cpp | #include <treelike/renderer/sprite_cubic_animation.h>
#include <treelike/utility/assert_log.h>
#include <cinder/gl/gl.h>
using namespace cinder;
namespace treelike
{
namespace renderer
{
CREATE_CPP( sprite_cubic_animation, std::string const& relative_path )
{
CREATE( sprite_cubic_animation, relative_path... |
5791fe1753855a735ef9a8bd9cf41647ada48d20 | 5eff7a36d9a9917dce9111f0c3074375fe6f7656 | /lib/mesa/src/gallium/drivers/r600/sfn/sfn_shader_tess.cpp | 820e4c25aa8050868c7b3a5196ce6245403ea535 | [] | no_license | openbsd/xenocara | cb392d02ebba06f6ff7d826fd8a89aa3b8401779 | a012b5de33ea0b977095d77316a521195b26cc6b | refs/heads/master | 2023-08-25T12:16:58.862008 | 2023-08-12T16:16:25 | 2023-08-12T16:16:25 | 66,967,384 | 177 | 66 | null | 2023-07-22T18:12:37 | 2016-08-30T18:36:01 | C | UTF-8 | C++ | false | false | 9,210 | cpp | sfn_shader_tess.cpp | /* -*- mesa-c++ -*-
*
* Copyright (c) 2022 Collabora LTD
*
* Author: Gert Wollny <gert.wollny@collabora.com>
*
* 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, in... |
e6db1ff926de38709a29c943f769732afc2ed8f5 | b9622d908cc28692933978acd6533f0032804d9d | /src/setpoint_node.cpp | 7f484eb933bb99afd1685152b2d8b0d4b395ccd8 | [] | no_license | rafaelrgb/trabalho_final | 51bab68aaf9249b93f1fbf70795e2f21d8adca1e | f4bc857c0cff9221d0dc9dbc831871625f9204b4 | refs/heads/master | 2021-01-12T16:07:40.469241 | 2016-11-18T16:49:18 | 2016-11-18T16:49:18 | 71,947,482 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 850 | cpp | setpoint_node.cpp | #include <ros/ros.h>
#include <geometry_msgs/Point32.h>
int main(int argc, char **argv)
{
ros::init(argc, argv, "setpoint_node");
ROS_INFO("Starting setpoint publisher");
ros::NodeHandle setpoint_node;
while (ros::Time(0) == ros::Time::now())
{
ROS_INFO("Setpoint_node spinning waiting for time to become... |
70555ccccc6ecc31540a105b2e6138b242fd2e09 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/cpp-qt5-qhttpengine-server/generated/server/src/models/OAIComAdobeGraniteLoggingImplLogAnalyserImplProperties.cpp | 99cdf822808cc29d345c2c3d07f3871581367411 | [
"Apache-2.0",
"MIT"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | C++ | false | false | 4,073 | cpp | OAIComAdobeGraniteLoggingImplLogAnalyserImplProperties.cpp | /**
* Adobe Experience Manager OSGI config (AEM) API
* Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API
*
* OpenAPI spec version: 1.0.0-pre.0
* Contact: opensource@shinesolutions.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openap... |
2b65d2d6680757326fbbcae54a57785114f916fe | 07295fd7664a9e0729594831ee8b705b0b190420 | /Qt/Apps/NHexClient/CommInterface.h | 0483e6d9f8444575feee14e6dcb8ad9c89e49133 | [] | no_license | Neobot/PC | 3c8d24feccbf7876486247ccfd04979270f36e8e | 1a0fcec6812df9d9b8d1a817504bf45c0aee268d | refs/heads/master | 2021-01-10T19:48:30.196731 | 2015-05-25T11:13:22 | 2015-05-25T11:13:22 | 11,391,401 | 0 | 0 | null | 2014-10-25T12:08:59 | 2013-07-13T17:23:15 | C++ | UTF-8 | C++ | false | false | 964 | h | CommInterface.h | #ifndef COMMINTERFACE_H
#define COMMINTERFACE_H
#include <QObject>
#include <QIODevice>
#include <QSerialPort>
#include "CommDispatcher.h"
#include "RobotCommInterface.h"
#include "RobotProtocol.h"
#include "FileEnvReplicator.h"
class CommInterface : public QObject, public Comm::CommDispatcher
{
Q_OBJECT
private:
... |
1fd78b2f94fd658dc6986c09860a3951aec3653f | ca35d46f38df0f78a075830b8f7c0e96612ec209 | /src/JabbrChatCpp/jabbr_room.h | 5b2f0ff42c460fe22a7a29c25c1aa695b6786b39 | [
"Apache-2.0"
] | permissive | moozzyk/JabbrClientCpp | cb2b78fe62cad752d2cb576d91a08377699f5a3d | 283a00f55a3b7c179c0d2a51e2cc0defbc42553e | refs/heads/master | 2021-03-12T23:56:36.325424 | 2015-06-29T04:43:47 | 2015-06-29T04:43:47 | 30,089,426 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 255 | h | jabbr_room.h | #pragma once
#include "jabbrclient\room.h"
class jabbr_room
{
public:
jabbr_room();
explicit jabbr_room(const jabbr::room& room);
~jabbr_room();
utility::string_t get_name() const;
private:
jabbr::room m_room;
};
|
1553ce024648a8ccef6e92b18ae2b92dbc2e8b81 | e5935a9b4b7f61c2490e62c8e8ac021c24db4559 | /directfire_github/trunk/gameui/battle.net/sys/systitle.cpp | a541ad821fcbb37b51d301f94ad1a14481952655 | [
"MIT"
] | permissive | cubemoon/DirectFire-android | 93c6aaf04d6f74854957543b83ce6f24722a978a | 10c757e1be0b25dee951f9ba3a0e1f6d5c04a938 | refs/heads/master | 2021-01-24T23:41:04.550917 | 2014-01-13T09:59:51 | 2014-01-13T09:59:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 977 | cpp | systitle.cpp | #include "systitle.h"
SysTitle::SysTitle()
{
m_theme = "default";
m_title = "System Setting";
m_backListener = 0;
m_backFunc = 0;
m_backEnabled = false;
m_backButton = 0;
m_inited = false;
}
SysTitle::~SysTitle()
{
}
void SysTitle::setBackClickCB(CCNode *listener,SEL_CallFuncND func)
{
... |
d6d4192472ace6ba261b719642b22663d1ba1439 | af0ecafb5428bd556d49575da2a72f6f80d3d14b | /CodeJamCrawler/dataset/12_6021_60.cpp | c2a53f8a8c3feb80a567b04fa70ec76bd262b362 | [] | no_license | gbrlas/AVSP | 0a2a08be5661c1b4a2238e875b6cdc88b4ee0997 | e259090bf282694676b2568023745f9ffb6d73fd | refs/heads/master | 2021-06-16T22:25:41.585830 | 2017-06-09T06:32:01 | 2017-06-09T06:32:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,668 | cpp | 12_6021_60.cpp |
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.*;
public class solution {
public static void main(String[] args) throws FileNotFoundException, IOException {
char a[] = {'y', 'h', 'e', 's', 'o', ... |
b436e6ebbcaa4d762d283ea07f70d33e6f002d63 | 2f404fcf56a324bb8d9a2695c2fcb186c8d476a4 | /SRCGraphviz/sample/test.cpp | 84029c337f6ba0aa3e6b8280787ee3259854fd1b | [] | no_license | wisehead/dev_tools | fdb67370d749daf58fb6b6401e89edbe221773e7 | af9630f020113fc675ea45d0563eee0eac761ac7 | refs/heads/master | 2023-07-25T08:24:25.347558 | 2023-07-14T08:48:49 | 2023-07-14T08:48:49 | 124,533,336 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 668 | cpp | test.cpp | /*******************************************************************************
* file name: test.cpp
* author: Hui Chen. (c) 2020
* mail: chenhui13@baidu.com
* created time:... |
ace6271f03602130f79db6929d0e59b1fd8a6d05 | c46f21d26e71beefed4756d6242c1b3366de3f03 | /isEqual.cpp | de6e9fc30253e9094ed42d8bd3648ec2aa6945da | [] | no_license | rramnauth2220/liu-cs102 | 84564903d40098813f3fb587cd9a23e9e18754fd | decd925874bfe3443b16d77f8141064f57490eaa | refs/heads/master | 2020-08-28T14:03:26.895941 | 2019-10-26T14:21:39 | 2019-10-26T14:21:39 | 217,719,696 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 816 | cpp | isEqual.cpp | #include <iostream>
#include <vector>
using namespace std;
bool isAllEqual(vector<int> v); // prototype
bool equalRecursive(int num, vector<int> v); // prototype
int main() {
vector<int> v = {0, 1, 0, 1, 23};
//cout << isAllEqual(v);
cout << equalRecursive(v.at(v.size() - 1), v);
return 0;
}
... |
804c51ac38c1dc25bf1f7826c54f8dee95327b55 | 74b7b260626024d1e199a0b2e46993d678001af2 | /main.cpp | dbf199123165251d94b366b189562911b732cbbc | [] | no_license | xyz-333/fishWords | f827761530bdd4912adfa63889576c9f15a4730c | 4ad9dc2d131b7d7102158545c38ac9f8d39fff42 | refs/heads/master | 2021-01-21T16:53:15.738586 | 2017-05-28T20:05:48 | 2017-05-28T20:05:48 | 91,913,125 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,315 | cpp | main.cpp | #include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
#include <limits>
#define WORDS_TO_CONFIRM 9
#define WORDS_KNOWN 8000
using namespace std;
vector<string> wordList, filteredWordList, definitionList;
void loadWordList();
void createFilteredWordList();
void filterKnownWords();
void loadFr... |
19a1660684bfb4fb3f1181ce9433db8a426ab2ac | fcc777b709d795c4116bad5415439e9faa532d39 | /rongyu/homework1/file2/2018192038_1232_姝g‘_16.cpp | a9a2b87c2107fbd8d2126ff528095e06f8dbc97e | [] | no_license | demonsheart/C- | 1dcaa2128ec8b20e047ae55dd33f66a359097910 | f567b8ca4a4d3ccdf6d59e9fae5b5cea27ec85c1 | refs/heads/master | 2022-11-29T00:27:30.604843 | 2020-08-10T11:48:36 | 2020-08-10T11:48:36 | 283,923,861 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,430 | cpp | 2018192038_1232_姝g‘_16.cpp | #include <iostream>
using namespace std;
class Vehicle
{
protected:
string no;//编号
public:
Vehicle(string nonono):no(nonono){}
virtual void display()=0;//应收费用
};
class Car:public Vehicle
{
int num;
int weight;
public:
Car(string nonono,int nn,int ww):Vehicle(nonono),num(nn),weight(ww){}
... |
90a737f704e7e6f8003133df0f183d2ca3651a2e | ebbe2bf4d7aaed720c7e25abcc54b63b458a7579 | /bgcc/service_manager.h | eb5117a6f19c92c07e7855d998da10b9d4f334a9 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | dingfeng020/BGCC | 69c2e1f107847295c96c52af8947463a9274bc6e | 97e2aba0205ffa2350048d4aa904faeea6e061f2 | refs/heads/master | 2020-03-27T08:12:57.559559 | 2018-09-21T07:41:43 | 2018-09-21T07:41:43 | 146,232,620 | 0 | 0 | BSD-3-Clause | 2018-09-21T07:41:44 | 2018-08-27T01:40:43 | C++ | GB18030 | C++ | false | false | 4,269 | h | service_manager.h | /***********************************************************************
* Copyright (c) 2012, Baidu Inc. All rights reserved.
*
* Licensed under the BSD License
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* license.txt
**********... |
4cc4f97623c12f34db3465bc7c98d362d2211906 | 3f86cbcc0569ad973b3c4227dac71881746bec3c | /Src/Clock.cpp | 0a9b2d2c0a99aa6710f764c2a73e589eb0562285 | [] | no_license | terrainwax/Indie-Studio | 10e55f7a47a077f768b7c5058534055fb7b460a2 | 7bd8f15cae5d938100bb7ee118768ce0e99cc693 | refs/heads/master | 2020-03-30T19:52:42.558863 | 2018-06-14T16:09:34 | 2018-06-14T16:09:34 | 151,563,493 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,003 | cpp | Clock.cpp | /*
** EPITECH PROJECT, 2018
** <------------>
** File description:
** <------->
*/
#include "Clock.hpp"
Clock::Clock() : _currentTime(0), _lastTime(0), _elapsedTime(0), _totalTime(0)
{
tick();
}
Clock::~Clock()
{
}
void Clock::tick()
{
struct timeval currentTime;
gettimeofday(¤tTime, nullptr);
_curre... |
5f99bd07e08836a85a69a1c70164155dd83a2366 | 1c8205b1de3c7d8e47b79e789d41fe48fed72f73 | /Library/ui/addmanagerbtn.h | 3ea81bd63ec363010182accfc827f7d4090fd6ed | [] | no_license | QiumingLu/Qt | de2829ed6e757e1b8a1df2891fbd94b608c95fc4 | 065a0965677e49599eb25ff336c9e09e9ab17ffd | refs/heads/master | 2016-08-12T14:33:09.684511 | 2015-11-19T14:34:05 | 2015-11-19T14:34:05 | 46,494,024 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 341 | h | addmanagerbtn.h | #ifndef ADDMANAGERBTN_H
#define ADDMANAGERBTN_H
#include "ui/addmanager.h"
class Managers;
class AddManagerBtn : public AddManager
{
Q_OBJECT
public:
AddManagerBtn(QWidget *parent = 0);
~AddManagerBtn();
private:
Managers *manager;
private slots:
void slotSave();
};
#endif... |
0b7208dd7ee81bb147c7c84fd251590df2f9cbcd | b057d856e584741536636b4ffe35d95c0fede8e0 | /HookStackTracerDll/Collector.h | 0fd24cb8e37a03be0fdf6f739d0668a2ed85f592 | [] | no_license | SergeyZhuravlev/HookStackTracer | ebc81a7829f4756185841505bc4b1d012af5280b | 4fc05051cf11645a71c4078a326c80a178180c15 | refs/heads/master | 2021-08-18T21:53:21.974166 | 2017-11-24T01:53:10 | 2017-11-24T01:53:10 | 111,745,188 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 580 | h | Collector.h | #pragma once
#include "EnvStateSave.h"
#include <Windows.h>
#include <algorithm>
#include "..\HSTCommon\CallInfo.h"
#include "TracerDbInstance.h"
#include <array>
void CollectHandleInfo(HANDLE systemHandle, CallType callType)
{
EnvStateSave state;
CallInfo info{ callType };
info.systemHandle = systemHandle;
info.s... |
d76015a9226aaa6e8a23d7cfbbbfcba4289172eb | ffa30f1f769e4d7ac0685fd4405dcdf928824c14 | /Study/13235 팰린드롬.cpp | fb0da6b5f310936e2cec49ae01e1b9d5dd6a2119 | [] | no_license | wykim111/algorithm | 4c9b44f5d9657d6d58a817e2a4d14d4a1a9ff7a4 | ef1eef6adebf8df25bb7db8b97670751c8ec3c36 | refs/heads/master | 2023-08-17T23:50:49.453775 | 2023-08-10T14:44:36 | 2023-08-10T14:44:36 | 217,846,215 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 359 | cpp | 13235 팰린드롬.cpp | #include<stdio.h>
#include<string.h>
char str[21];
int main()
{
int len = 0;
int flag = 1;
scanf("%s", str);
len = strlen(str);
for (int i = 0; i < len/2; i++)
{
if (str[i] != str[len - 1 - i])
{
flag = 0;
break;
}
}
if (flag == 0)
{
printf("false\n");
}
else
{
... |
ef4a4bf8bbfe74951908d182a515f1360dc69995 | f05aa2de350944c19d16b12d4b8ea7acaca4a93c | /main.cpp | b512dd0e6823ddd4109d7977700d80e26cb4a3c1 | [] | no_license | bvidyasairam/simplePalindrome | 8f3e5605163d11c3e6d57de0fe51f30eb41cda47 | f614ccc86079225223e587781fe49e08c09ed653 | refs/heads/master | 2022-11-06T08:51:54.716330 | 2020-06-22T19:22:45 | 2020-06-22T19:22:45 | 274,221,583 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 361 | cpp | main.cpp | #include <iostream>
using namespace std;
int main()
{
char strValue[]="21212";
int i=0,j=4;
while(i!=j)
{
if(strValue[i]==strValue[j])
{
i++;
j--;
}
else
break;
}
if(i==j)
cout<<"It is a palindrome";
else
c... |
093715dee9b962fced72a58de5c618b5d16d787f | c6c93ed856dcb862baa018f172ec3bfca5113910 | /lithe/src/lithe.cc | 0207ffe1fb88713182ac05ce3c7cc8bba0855100 | [] | no_license | ucberkeley/lithe | 7e23ed4e1c36883a57167ef9ed1c8f3db53ede6c | ce593b3caf0bea71c4b9badf4cd0785a6520a379 | refs/heads/master | 2020-05-17T14:23:57.670232 | 2011-08-08T18:24:37 | 2011-08-08T18:24:37 | 1,638,802 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 945 | cc | lithe.cc | #include "lithe.hh"
namespace lithe {
void __enter(void *__this)
{
(reinterpret_cast<Scheduler *>(__this))->enter();
}
void __yield(void *__this, lithe_sched_t *child)
{
(reinterpret_cast<Scheduler *>(__this))->yield(child);
}
void __reg(void *__this, lithe_sched_t *child)
{
(reinterpret_cast<Scheduler *>(... |
751af6f087d2b2bc0c44ff8dc39d5ec8cb94dd26 | 41c5e6470f826b35eb8c63df7993d8ccbde172de | /playground/src/tools/StringTools.h | fb4fe2db43bd3e3a25a94d6abf6c2b422f2c43eb | [] | no_license | pascalhuerst/C15 | 14062c953cce0e74184ea83eb2a75dbac1ed7c4c | e7830c212d426bad10f5ad149e0265e33b72031a | refs/heads/master | 2020-03-26T13:57:28.760424 | 2018-09-07T09:59:11 | 2018-09-07T10:58:18 | 144,964,783 | 0 | 0 | null | 2018-08-16T09:12:50 | 2018-08-16T09:12:49 | null | UTF-8 | C++ | false | false | 283 | h | StringTools.h | #pragma once
#include <glibmm/ustring.h>
namespace StringTools {
std::vector<Glib::ustring> splitStringOnAnyDelimiter(const Glib::ustring& s, char delimiter);
Glib::ustring replaceAll(const Glib::ustring& in, const Glib::ustring& pattern, const Glib::ustring& replace);
};
|
0148b273b19a91628e3fc8ce96f7d4fb32920a54 | 32fcae9bec91755c901b1ea12b036df44c835e9e | /src/common/IOUtils.cpp | 87fca3b9f797a04a8c83b0c4298a8e9d1df30733 | [] | no_license | tlulu/CLArray | dd50d710cddd33df8c13f152458acfb73fd1f321 | 7acb15cb5dadde88cbf3b71dea4d68558d2ac297 | refs/heads/master | 2021-09-16T10:47:31.805844 | 2018-06-13T03:53:08 | 2018-06-13T03:53:08 | 126,222,019 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,160 | cpp | IOUtils.cpp | #include "../../includes/IOUtils.h"
#include "../../includes/json11.hpp"
#include <fstream>
#include <sstream>
#include <iostream>
#include <iterator>
#include <stdlib.h>
std::vector<std::vector<int32_t>> readMatrixFromFile(std::string fileName) {
std::ifstream infile(fileName);
if (!infile.is_open()) {
std::... |
03e39f01ba20bef1fee63cff674c06d78142f094 | 52d41eb2683f9f831786a5df9b1125130978f405 | /math/brent.cpp | da71256febf70d07c6d0b41fbe279ee91e05ac99 | [] | 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 | 5,076 | cpp | brent.cpp | #include "brent.h"
#include "vectorfunction.h"
namespace Math {
Real ParabolicExtremum(Real a, Real b, Real c, Real fa, Real fb, Real fc)
{
Real bc = b-c;
Real ba = b-a;
Real fbc = fb-fc;
Real fba = fb-fa;
Real num = ba*ba*fbc-bc*bc*fba;
Real den = ba*fbc-bc*fba;
if(den==Zero) return (den*num>Zero ? -In... |
14989bb40b6a7930d96b1a0c18e5e69a2687402e | f2bf2c6a958f7f50f7fc05db9755056b502dbedb | /pair/test.m.cpp | c06f61d486f9d12716e207fc1b31932cb5ab4722 | [] | no_license | nadvamir/stepanov-exercises | cef8feafd857b0f9250a90daa351c0731d2845b7 | ef524ca7cf4d1b115f84c0085372b25afd4cb167 | refs/heads/master | 2021-01-10T06:57:58.275044 | 2016-03-13T20:29:14 | 2016-03-13T20:29:14 | 53,364,955 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 380 | cpp | test.m.cpp | #include "pair.h"
#include <string>
#include <iostream>
#define PRINT(a) std::cout << (#a) << " " << (a) << "\n";
int main()
{
pair<int, std::string> p1;
pair<int, std::string> p2 {2, "str"};
pair<int, std::string> p3(3, "str");
pair<int, std::string> p4 = p2;
p1 = p4;
PRINT(p1 == p4);
P... |
86ad63a519c4da03e9922472ec9a497df99af8ae | 3ff1fe3888e34cd3576d91319bf0f08ca955940f | /gse/src/v20191112/GseClient.cpp | 823b721bbcdbabae04530945cf4d3a2e37ae8389 | [
"Apache-2.0"
] | permissive | TencentCloud/tencentcloud-sdk-cpp | 9f5df8220eaaf72f7eaee07b2ede94f89313651f | 42a76b812b81d1b52ec6a217fafc8faa135e06ca | refs/heads/master | 2023-08-30T03:22:45.269556 | 2023-08-30T00:45:39 | 2023-08-30T00:45:39 | 188,991,963 | 55 | 37 | Apache-2.0 | 2023-08-17T03:13:20 | 2019-05-28T08:56:08 | C++ | UTF-8 | C++ | false | false | 114,175 | cpp | GseClient.cpp | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
a10ddcba861044d4973b6aa3e0f9c6eb9142aa21 | d8a8831ad5f0edbd2df58471f70695e219ec9b24 | /tutorials/effective_cpp/chapter08/50.cpp | d02f483ad3cf37e90406a3bf7f87d7bb2330d7cb | [] | no_license | pingsoli/cpp | 71a28fcd2f5e8c3e3a36eb9bfb452c5efc346f06 | 63ab2b4d94c0e349b47bdb2dd99c8631260d9cd1 | refs/heads/master | 2021-05-10T15:20:08.295191 | 2019-02-22T09:06:32 | 2019-02-22T09:06:32 | 113,022,278 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 499 | cpp | 50.cpp | ///////////////////////////////////////////////////////////////////////////////
//
// Item 50: Understand when it makes sense to replace new and delete.
//
// Things to remember
//
// There are many valid reasons for writing custom versions of new and delete,
// including improving performance, debugging heap usage err... |
a82b8a250b792320eae73c3adda37b945d9ad42c | d5c34bbc0dc7c95832889706909e9b88d2c20449 | /CS211_Tests_v2 - assign3 part2 handout/CS211_Tests_v2 - assign3 part2 handout/CS211_Tests/ArrayListStack.h | b7959b392b9ff873923862251a3b32e48f222975 | [] | no_license | Snerdette/CST211 | e69485baf7ac633857d303f7fce80dd49a9e5e08 | 82fb5041c5eb2ca79285a22775be6cfe8f0ff708 | refs/heads/master | 2020-12-08T11:17:36.955126 | 2020-03-14T03:06:54 | 2020-03-14T03:06:54 | 232,969,035 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 882 | h | ArrayListStack.h | // ArrayListStack.h
// Pete Myers, OIT Winter 2020
// Implementation of Stack data structure using an ArrayList
//
// Handout Assignment 2
// By Kate LaFrance
//
#pragma once
#include "Stack.h"
#include "ArrayList.h"
template <class T> class ArrayListStack : public Stack<T>
{
private:
ArrayList<T> contents;
public... |
5d2a423ce5424ffefda8943a5b7f61fd7e027ebd | e7166d2ab63a71dddc6085d3b26e988b9197da4f | /Tests/ajouterTasid.cpp | 43e6ba85d44c53612e14e15d36623630fb6516d8 | [] | no_license | Douare/TravauxC | c6d45faefb994d32afd0d05df63e94961cfcc4c2 | e637aa29afc10b003ea9adf9feedf3811510d4db | refs/heads/main | 2023-01-14T12:48:47.106606 | 2020-11-22T15:20:00 | 2020-11-22T15:20:00 | 315,067,129 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,423 | cpp | ajouterTasid.cpp |
// AJOUTER TASID
template<class S, class P> void Tasid<S,P>::decallerDroite(int i){
for (int j = m.size()-1; j>i; j--){ //décaller tous les élé à droite de la fin à i
m[j]=m[j-1];
}
}
template<class S, class P> void Tasid<S,P>::decallerGauche(int i){ //decaller tous les élé à gauche de i à la ... |
7a541cc70a7b227edb57b540c533f35dddcfd6fd | 958abefdfea98af64c1fddef03a0c434ece1b07f | /Flexer/Lexer.cpp | 13cef1d6418a193ff49e0b5cf0ff7286efbf6821 | [] | no_license | Nikitastarikov/Lexer | 6e75533eaba2f1d4b6499a40a43e653f5e16cf71 | 0368f21be4b18afb0a28bf704ce978823a108a7e | refs/heads/master | 2021-04-10T07:41:53.305418 | 2020-03-21T13:57:52 | 2020-03-21T13:57:52 | 248,920,065 | 1 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 3,229 | cpp | Lexer.cpp | #include <iostream>
#include <fstream>
#include <string>
#include "Token.h"
#include "Lexer.h"
#include "Function.h"
using namespace std;
void Lexer::GetNextToken(string Line, int LineNumber, int EndFileId) {
int Identifier = 0;
int Size = Line.size();
СharacterReadMode = 0; // Флаг, сигнализирующ... |
c1c83ad8385e217f1d16457322bedef13da02ee9 | b5919b3056e5852919d7ff20968a7ba7b548e40d | /Chapter_07/filter-plugin-designer/Filter.h | 061f984d661c7c83cdbb73e759f8cbe501569e34 | [
"MIT"
] | permissive | PacktPublishing/Mastering-Qt-5 | 735e6a59c3302d2dbb47d69d6d9ebe5a4217e639 | 778cc995d45be626fa6bf1cedbec6e87793d04d1 | refs/heads/master | 2023-02-11T10:33:05.275099 | 2023-01-30T09:22:42 | 2023-01-30T09:22:42 | 76,330,681 | 222 | 97 | MIT | 2021-07-30T19:10:24 | 2016-12-13T06:40:58 | C++ | UTF-8 | C++ | false | false | 191 | h | Filter.h | #ifndef FILTER_H
#define FILTER_H
#include <QImage>
class Filter
{
public:
Filter();
virtual ~Filter();
virtual QImage process(const QImage& image) = 0;
};
#endif // FILTER_H
|
173b0d94a6316828e1b61fa106b9e4a3b4dc19d4 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/rsync/gumtree/rsync_repos_function_533_last_repos.cpp | b932d1cf38653fc57a1c32671dc9a11962aa541b | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 587 | cpp | rsync_repos_function_533_last_repos.cpp | static void fsort_tmp(struct file_struct **fp, size_t num,
struct file_struct **tmp)
{
struct file_struct **f1, **f2, **t;
size_t n1, n2;
n1 = num / 2;
n2 = num - n1;
f1 = fp;
f2 = fp + n1;
if (n1 > 1)
fsort_tmp(f1, n1, tmp);
if (n2 > 1)
fsort_tmp(f2, n2, tmp);
while (f_name_cmp(*f1, *f2) <= 0) ... |
112c45b8f3b7ab9e790b9870819cadc70a46bb88 | bc9aae3a3b99155b052cbecf74d47ad6b03ec053 | /include/Simulation.hpp | b4e75d1200ca6ab49f1fc63f6523cb88b7653e0e | [
"BSD-2-Clause"
] | permissive | owlas/maggie | c54ca7a0c18eb0b232e54c5580fdf433017875cd | c2625a8f646b19fd284f86f06a22d811a45e753d | refs/heads/master | 2020-12-13T22:35:39.031317 | 2016-11-25T14:16:25 | 2016-11-25T14:16:25 | 37,858,823 | 1 | 2 | null | 2016-02-24T21:23:34 | 2015-06-22T14:07:11 | C++ | UTF-8 | C++ | false | false | 2,913 | hpp | Simulation.hpp | // Simulation.hpp
//
// Header file for a magnetic nanoparticle simulation. Current
// behaviour allows the user to run a master equation integration to
// determine the relaxation of a magnetic particle cluster.
//
// Oliver W. Laslett (2015)
// O.Laslett@soton.ac.uk
//
#ifndef SIM_H
#define SIM_H
#include<ParticleCl... |
38b8a382e9e03de87bd5c3073139bcb674706a0b | 75305aca4ec7168960e4f45114f00cdce74d4b09 | /Oscilloscope/src/Sampler.cpp | c8fe4d196a1ad1375ff8c0f555f9154bee760c69 | [] | no_license | koson/csabiscope | 7ed0e2752b1f9ec33996bdab95b7659b6de1be66 | fd1eff021840db4cf1b753eeb70804f43b8b955c | refs/heads/master | 2022-03-07T07:59:59.530256 | 2017-05-18T20:53:27 | 2017-05-18T20:53:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,801 | cpp | Sampler.cpp | #include <adc.h>
#include <Config.h>
#include <misc.h>
#include <stdint-gcc.h>
#include <stm32f10x.h>
#include <stm32f10x_adc.h>
#include <stm32f10x_dma.h>
#include <stm32f10x_gpio.h>
#include <stm32f10x_rcc.h>
#include <stm32f10x_tim.h>
#include <systick/SysTime.h>
#include <Sampler.h>
#include <task/TaskHandler.h>
#i... |
4da27b39cae53bad5533252cf6613f745e51adca | 055ac7eb890c82ec9c20759dd5dc4e5648784c2f | /ios/UnityExport/Classes/Native/Bulk_Generics_2.cpp | c455f6ea4b7698637f2eb0f98d1e5529f10109b1 | [] | no_license | alisherakb/CustomBottomBar-RNN | b5d33f5a7bd2703fcf000b7f0bee949faa319330 | 240e0d68c2d9cc88353b411e3ce30d2372d23ba3 | refs/heads/master | 2023-01-06T11:47:22.647766 | 2019-08-31T14:24:25 | 2019-08-31T14:24:25 | 205,234,618 | 1 | 0 | null | 2023-01-04T08:28:51 | 2019-08-29T19:18:03 | C++ | UTF-8 | C++ | false | false | 2,233,196 | cpp | Bulk_Generics_2.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 "il2cpp-class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "i... |
d6f9b6f4ed8284b89b95bcca13d05c7dd533b271 | c043a3fb2e065780ffe815387c07671c7e4322d4 | /NBDDisk/NBDDevice.cc | 8c6c3884e55cd7ecd10a837096bc440f21773c87 | [
"BSD-2-Clause"
] | permissive | elsteveogrande/osx-nbd | 16f63861699f049279e0c3d90e71096fe2fcdad5 | 6e8768dedc99ed54230e27e77d4c35f5aa8b9f05 | refs/heads/main | 2022-08-13T18:44:48.929812 | 2022-07-25T15:50:58 | 2022-07-25T15:50:58 | 3,666,909 | 10 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 4,416 | cc | NBDDevice.cc | // Copyright (c) 2019-present Steve O'Brien. All rights reserved.
// See LICENSE in project source root.
#include "NBDDevice.h"
#include <libkern/c++/OSMetaClass.h>
#include <libkern/c++/OSNumber.h>
#include <miscfs/devfs/devfs.h>
#include <IOKit/IOBSD.h>
#include <IOKit/IOLib.h>
#include "NBDDisk.h"
#include "NB... |
379a0128de6ed276ba08cd7647df11b8924ed2fd | 1a9ff03bcaa3634cd8a2cbf7db07ba3d7e84d494 | /spaceship.cpp | 878caaf110efb00db839f6e49c2c5d3d1c28c574 | [
"MIT"
] | permissive | qualab/interfaces | 8f76e2787db9ba30604fbede3fce39745ec99d44 | 2222513ed2d97a8127e5619f7e102b20becbd163 | refs/heads/master | 2020-06-04T19:51:20.530677 | 2015-09-16T23:47:23 | 2015-09-16T23:47:23 | 42,618,785 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,073 | cpp | spaceship.cpp | #include "spaceship_data.h"
spaceship::spaceship(const char* name)
: object(m_data = new spaceship::data(name))
{
}
spaceship::spaceship(const spaceship& another)
: object(m_data = another.is_null() ? nullptr : static_cast<spaceship::data*>(another.get_data()->clone()))
{
}
spaceship& spaceship::operator = (... |
301d5b5caa30af7137259ba93015c114a1e08cfa | 9c09b7113eb092e53583f7b34f748af3d7f40e88 | /Raw Converted/Basic_engine/ATMOS.cpp | 702afbc1b159fc3bf81a98f0f0b2e4bf0016314f | [] | no_license | sourajdewalia/dyngen_iitb | e4016222a3eba395e4189c7fde26606489ee752f | c5bfa1f7f4465898a1e93d7df06003da8855f993 | refs/heads/master | 2020-03-27T23:04:38.555098 | 2018-11-26T10:25:06 | 2018-11-26T10:25:06 | 147,288,196 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,414 | cpp | ATMOS.cpp | #include <fem.hpp> // Fortran EMulation library of fable module
namespace BASIC_ENG {
using namespace fem::major_types;
void
overfl(...)
{
throw std::runtime_error(
"Missing function implementation: overfl");
}
struct common_units
{
bool si;
common_units() :
si(fem::bool0)
{}
};... |
ae6f9dd7c410941da08ceaecc1a1997c1933d846 | 3ea34c23f90326359c3c64281680a7ee237ff0f2 | /Data/3223/H | 52bac314fa8ebc5b27b1f24342c4db9c1fd2b08d | [] | no_license | lcnbr/EM | c6b90c02ba08422809e94882917c87ae81b501a2 | aec19cb6e07e6659786e92db0ccbe4f3d0b6c317 | refs/heads/master | 2023-04-28T20:25:40.955518 | 2020-02-16T23:14:07 | 2020-02-16T23:14:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 92,459 | H | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source Cstd::filesystem::create_directory();FD |
| \\ / O peration | Version: 4... | |
673be64fcb1ce05175fb4a2ed645e846253e82f3 | 47eaf1844192a43ffc1f9fea15417303287db425 | /Chronicles/LifePotion.h | 99fbbb374097a7e61dd60e0cd802b8ca288f89b9 | [] | no_license | SamyThaBoy/Chronicles | 31837214f6998a2a7bd06d4a83f9245807f863a9 | 72d4830753232e9d7c7efb40f80de020b1633cf1 | refs/heads/master | 2023-04-03T11:04:00.660353 | 2021-04-12T19:08:04 | 2021-04-12T19:08:04 | 357,307,014 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 327 | h | LifePotion.h | #pragma once
#include "Entity.h"
class LifePotion :
public Entity
{
public:
LifePotion();
~LifePotion();
void update(sf::Time elapsed) override;
void render(sf::RenderWindow* window) override;
void setOnFloor(bool onFloor);
bool isOnFloor();
private:
sf::Texture texture_;
bool onFloo... |
9991e3ed275a35b3cf3e18a7877c20cfd886880e | 82ce99ffddad55a34304992598839318d14108ce | /src/game_play_scene.hpp | 9ed2f52da22f3a13aad04040cfc951870c5c14a7 | [] | no_license | seiwin92/TheVaulters | 9b3e59cee7d3d332f8073a8c0396496ee5af5afe | a0d7835ae7cacedafec4ed5856f38ce221a42844 | refs/heads/master | 2021-01-21T10:00:23.513617 | 2017-05-18T08:33:15 | 2017-05-18T08:33:15 | 91,677,625 | 0 | 0 | null | 2017-05-18T09:55:07 | 2017-05-18T09:55:06 | null | UHC | C++ | false | false | 1,319 | hpp | game_play_scene.hpp | /**
@file game_play_scene.hpp
@datea 2017/5/16
@author 이성준
@brief
*/
#pragma once
#include <vector>
#include <d3d11_1.h>
#include <directxcolors.h>
#include "scene.hpp"
#include "Unit.hpp"
#include "Map.hpp"
using namespace std;
using namespace DirectX;
extern D3D_DRIVER_TYPE g_driverType;
extern IDXGIS... |
1741b9ce5b35b2357673e747a74c24ba3529d25c | af1bcc5845d9dd8624fe33ac7cbf3d5790166ccf | /i2DSPSPServer_GUI/UDPRecordFileClient/udpboradcastclient.cpp | d3a11e1880d6efcb19c921329d5f1d1174203499 | [] | no_license | Swperlukami/EmgBroadcastController | c83664b9606dc9bcc5fa90a939e524fbf5ada5dd | c3342a331acd3f9f945f5b0cd17cfaef26c5f096 | refs/heads/master | 2020-03-11T00:57:20.545607 | 2018-04-16T05:22:06 | 2018-04-16T05:22:06 | 129,676,799 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,162 | cpp | udpboradcastclient.cpp | #include "udpboradcastclient.h"
#include <QTimer>
UDPBoradcastClient::UDPBoradcastClient(QObject *parent) : QObject(parent)
{
m_BroadcastUdpSocket.setParent(this);
connect(&m_BroadcastUdpSocket , &QUdpSocket::readyRead , this , &UDPBoradcastClient::recordBroadcastFile);
}
bool UDPBoradcastClient::bindBroadcast... |
9c6bae4782cef7a5ac40a75a755556c697318932 | ebe451bcf3d0b22c07fce87f0c28598dbbe044e5 | /src/util/test/DebugTest.cpp | cc221b66230cef098949d0232325006d2d31066d | [
"MIT"
] | permissive | danhil/Chord | eb7cc3549d13726ec31c24d3129c1b92403cab32 | 3e6f7a3c6506e52dbbe26d412e51d65dafbe7cca | refs/heads/master | 2016-08-11T13:59:56.045629 | 2015-09-30T19:15:21 | 2015-09-30T19:15:21 | 43,253,488 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 874 | cpp | DebugTest.cpp | #include <iostream>
#include <fstream>
#include <iomanip>
#include <ctime>
#include "DebugUtil.h"
int main() {
// Logging to a stream
std::stringstream ss;
Debug a("Stream test ", Debug::V, std::cout);
// Out to the stream
a << a.I << "Testing the debuglogging to std::cout." << std::endl;
// Logging to... |
5bcaf06e9cb4da430106f442b300489a8b700530 | 2045c9f8ad706e3fe2b546da9834db5bbe418a8a | /OS_hw3.cpp | c174566e57711518b33ca67169982a518f9f3481 | [] | no_license | krrk2102/CS543_OperatingSystem_HW3 | 2f684fcbfd94ae5a64c077f3c122a78f4460f400 | ae1eb933aa47b8bca48315ffb53ef26840b0362c | refs/heads/master | 2021-01-10T07:58:12.339883 | 2015-10-23T21:11:40 | 2015-10-23T21:11:40 | 44,838,727 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 56,481 | cpp | OS_hw3.cpp | #include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <malloc.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <pwd.h>
#include <string.h>
#include <dirent.h>
#include <utility>
#include <string>
#include <vector>
#include <fstream>
using namespace std;
/**
* This is the h... |
27aebcb79dbe91530441d097507819257645b8e7 | f6dcf522b184dc94773f4ff950a1d3481ccb58fc | /MiniProject1/RiceCooker.cpp | e18c5b16769d78fbc21287d26daaf4ba35f517de | [] | no_license | jeonka1001/Cpp_language | b3a55a7810ab2fdb71e0bdebec257c079d2f2585 | 3bdecf55520fc5468f82f7012cf106fe8496e4bc | refs/heads/master | 2020-12-04T20:15:33.480969 | 2020-03-17T06:00:32 | 2020-03-17T06:00:32 | 231,891,377 | 0 | 0 | null | 2020-03-17T06:00:33 | 2020-01-05T08:54:28 | C++ | UTF-8 | C++ | false | false | 853 | cpp | RiceCooker.cpp | //
// RiceCooker.cpp
// MiniProject
//
// Created by 전경안 on 2020/02/15.
// Copyright © 2020 전경안. All rights reserved.
//
#include "RiceCooker.h"
RiceCooker::RiceCooker():Appliance(),machineState(1)
{}
RiceCooker::RiceCooker(string machineName):Appliance(machineName),machineState(1)
{
}
int RiceCooker::getMachineS... |
e5deb50351826699765a215d3a2428970d80811e | 21fe42999244efd3367761f1ec7ce7c0fb13de86 | /Lane.h | 4c70f9842be5992b0b317617fc282374fc862764 | [] | no_license | nw10/carpool | dd3c2cb360e61a95f080bd33d1bbacd075bdf010 | 3047f8d02d7f527b3a83bb7a5d99de328c63cdb2 | refs/heads/master | 2021-01-23T07:34:14.462500 | 2014-06-26T15:14:08 | 2014-06-26T15:14:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,951 | h | Lane.h | // Created by Wei Ni on 4/6/14.
// Copyright (c) 2014 Wei Ni. All rights reserved.
#ifndef LANE_H
#define LANE_H
#include <list>
#include "Demand.h"
class Vehicle;
class Censor;
class Demand;
class Lane{
public:
double _start_point;
double _end_point;
double _left_tran_start;
... |
61f765b8fc4a12285441237668fbf6d437f9a84f | 3a2cc110e7edc872c291b234dbebfeab94efc341 | /common/clock.h | 0724a669d51dee0590f2ba6391d586eb0eff2656 | [
"MIT",
"DOC"
] | permissive | MihailJP/MiHaJong | 3cd39300c26be66a1a67cdb2be1afc29190140cc | 7df0c2041bfb45289846501454502d14623017f1 | refs/heads/master | 2022-09-02T21:27:53.684857 | 2022-08-04T10:38:06 | 2022-08-04T10:38:06 | 2,233,928 | 18 | 4 | MIT | 2020-10-05T12:22:23 | 2011-08-19T13:00:42 | C++ | UTF-8 | C++ | false | false | 546 | h | clock.h | #pragma once
#include <cstdint>
#ifdef _WIN32
#include <windows.h>
#else /*_WIN32*/
#include <ctime>
#endif /*_WIN32*/
typedef uint64_t TimerMicrosec;
inline TimerMicrosec getCurrentTime() {
#ifdef _WIN32
FILETIME t; GetSystemTimeAsFileTime(&t);
return ((static_cast<unsigned long long>(t.dwHighDateTime) << 32) | t... |
02b44a9d95596d31fa306fa48800417dc98d2b1e | c618849395a6777abb970cb355e4be315f3243f8 | /Dialog.cpp | 7d77ecae0077f7ace65f3db32165f9e7c3f5172b | [] | no_license | spektom/ndialog | a7d79b8f3febbbd50408d8536d015451e112afe9 | 07fc27958a91a2416fd95899c3263fa347f836d8 | refs/heads/master | 2021-01-19T09:42:36.602351 | 2011-09-06T20:51:55 | 2011-09-06T20:51:55 | 2,334,698 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,838 | cpp | Dialog.cpp | #include <libxml/parser.h>
#include <libxml/tree.h>
#include <fstream>
#include <string.h>
#include "NDialog.h"
#include "Dialog.h"
#include "Component.h"
void Dialog::GetXMLNodePropNum (xmlNode *node, const char *name, int *buf)
{
char *attr = (char *) xmlGetProp (node, (const xmlChar *)name);
if (attr) {
*buf =... |
321fbbf05a28335846902a6f24a0edab27c7f43f | 8df45ef52cde71587962ba7dbeb760b05f5dc8e2 | /SingerHistory.h | 78b13eea8b56ed1dad133d915b999f001d25278e | [] | no_license | rockie1004/KaraokeFinal | 324397c619128e221018505b227bcbd517c336e3 | c23f410264fbfbe26f27bb0e7a6a6986d74a7ade | refs/heads/master | 2020-09-09T23:52:42.991497 | 2019-12-04T01:41:12 | 2019-12-04T01:41:12 | 221,599,258 | 0 | 1 | null | 2019-12-04T01:41:14 | 2019-11-14T03:00:27 | C++ | UTF-8 | C++ | false | false | 10,884 | h | SingerHistory.h | #pragma once
#pragma warning(disable : 4996)//compiler can't do locatltime_s function so this stops the prompting for avoiding deprecated localtime function.
#include <set>
#include <string>
#include "CatalogEntry.h"
#include "FileManagement.h"
#include "MapManagement.h"
#include"Song.h"
#include <time.h> /* time... |
6ee82e9c8acbbcf0feb811cafb3738b0905262aa | 6e3caed77c49c919875a780dbe5c6f823d9b3665 | /sdk/func/funcParam.cpp | 6037d7dd6efe975bc567b7f893a9a2f6ebaedf01 | [
"BSD-2-Clause"
] | permissive | darkain/RMX-Automation | 068222ea60fc479493d440a22b223e2d02e68916 | b98df45a40c6e5ce8a8770579788274924d9e851 | refs/heads/master | 2021-06-26T12:32:01.831223 | 2020-12-11T21:24:18 | 2020-12-11T21:24:18 | 174,245,357 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,221 | cpp | funcParam.cpp | /****************************** RMX SDK ******************************\
* Copyright (c) 2007 Vincent E. Milum Jr., All rights reserved. *
* *
* See license.txt for more information *
* ... |
e5901f5484537e77808bbf8f318e0b4564e10f1b | c4d13530bf34b7a3ab64de4fc79c9ea59a040279 | /src/manager/forms/mainform.h | fe7700f02bf164e435fef7632747bc6f8efe0555 | [
"MIT"
] | permissive | asb2m10/airwave | c3bcb342f1ece12847d789a047e28700096e2f2b | 108fc14921f350256cd1b4db409b7569bb927e36 | refs/heads/master | 2020-08-01T18:35:42.165966 | 2020-05-29T04:14:59 | 2020-05-29T04:14:59 | 211,078,784 | 6 | 4 | MIT | 2019-09-26T12:01:53 | 2019-09-26T12:01:52 | null | UTF-8 | C++ | false | false | 967 | h | mainform.h | #ifndef FORMS_MAINFORM_H
#define FORMS_MAINFORM_H
#include <QMainWindow>
class QAction;
class QSplitter;
class LinksModel;
class LinksView;
class LogView;
class MainForm : public QMainWindow {
Q_OBJECT
public:
explicit MainForm(QWidget* parent = nullptr);
~MainForm();
public slots:
void loadSettings();
void ... |
10c8862fc37822b514976de26fb15b2b4b1a80ec | 65861c5f4bee37b2809f3db19c693afcd3cce0ee | /s02/e05/K/K.cpp | 164434c5ce49a0df01ffc0599e1ad4d134bb9970 | [] | no_license | victorsenam/acampinasmento | 5cd98c7f0e2b3da58995951912f4e4fc5662f65b | 02225b28c6171a675c9ddbc4c4a1271851ee76ab | refs/heads/master | 2021-01-10T02:00:27.161610 | 2016-01-31T02:26:27 | 2016-01-31T02:26:27 | 49,883,202 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,125 | cpp | K.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
const int di[4] = {0, 0, 1, -1};
const int dj[4] = {1, -1, 0, 0};
struct posi {
int i, j, d;
bool f;
ll cost;
bool operator < (const posi & ot) const
{ return cost > ot.cost; }
};
const int N = 107;
int n, m;
posi ini, end;
int visi[N][N]... |
c1e18734fc49a46aeed8b07a6c4d46991d57f8ef | 15bb8796294c3c80f305beafe9abcbf51688966e | /src/Dimension.h | f146c920c5e7ae871d08d3483f5ec07dc86be497 | [] | no_license | BrennanBarni/VisCanvas | 0bdcfd92109b75359dd206617e3bba23958fd5fd | 21d5e79136b7a24484d70c08bc18b10d5c5f0728 | refs/heads/master | 2021-09-08T10:15:13.181186 | 2018-03-09T04:00:37 | 2018-03-09T04:00:37 | 110,365,674 | 3 | 0 | null | 2018-01-17T23:33:12 | 2017-11-11T17:33:04 | C++ | UTF-8 | C++ | false | false | 713 | h | Dimension.h | #ifndef Dimension_H
#define Dimension_H
#include "DataNode.h"
#include <vector>
using namespace std;
class Dimension {
public:
Dimension(int startingIndex, int dimensionSize);
const int getIndex();
const int getOriginalIndex();
void calibrateData();
const double getData(unsigned int dataIndex);
co... |
94266b3b6410b6ced66535d7fa917d85c6786819 | 36183993b144b873d4d53e7b0f0dfebedcb77730 | /GameDevelopment/Game Programming Gems 2/SourceCode/01 General Programming/21 Tombesi/GetPhysiqueMod.cpp | c88ac59e806f2abdc8f6a811173af85841c21881 | [] | no_license | alecnunn/bookresources | b95bf62dda3eb9b0ba0fb4e56025c5c7b6d605c0 | 4562f6430af5afffde790c42d0f3a33176d8003b | refs/heads/master | 2020-04-12T22:28:54.275703 | 2018-12-22T09:00:31 | 2018-12-22T09:00:31 | 162,790,540 | 20 | 14 | null | null | null | null | UTF-8 | C++ | false | false | 1,126 | cpp | GetPhysiqueMod.cpp | /* Copyright (C) Marco Tombesi, 2001.
* All rights reserved worldwide.
*
* This software is provided "as is" without express or implied
* warranties. You may freely copy and compile this source into
* applications you distribute provided that the copyright text
* below is included in the resulting source code, f... |
84cc7b604a8345d67ec56e5546a9c221f9142334 | 132dbb86bd06fdadc99d32fb13d03c4d215f262d | /BuildingATallBarn.cpp | b2a6818db195b8223c0959722a55d1cdd6ef37cd | [] | no_license | bossbobster/USACO-Training | 90d481c2241aa50d467d3acadfd2cf80264dc087 | 4689499a24844f39e385a06d49c1c602277fc0e6 | refs/heads/master | 2023-02-20T00:31:45.689765 | 2023-02-05T09:30:02 | 2023-02-05T09:30:02 | 204,623,891 | 12 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,833 | cpp | BuildingATallBarn.cpp | #include <iostream>
#include <string.h>
#include <random>
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <iomanip>
#include <algorithm>
#include <math.h>
#include <cmath>
#include <vector>
#include <stack>
#include <queue>
#include <array>
#include <bitset>
#include <map>
#include ... |
349d14c97859d469a9060a956146858de546270b | 2c1c3ec98b878eb5a75fc15634c983c7c5aff9ac | /2 Iteracion/potencia.cpp | 8b85bd2fe63e6b0161dc5475395226b30664481d | [] | no_license | Solcito25/CCOMP | 5e4a66b08d31eb4e7b7dd553be987a0202cd73d3 | a20061519fad0c095ffaf05e2f86f56aac802c8e | refs/heads/master | 2020-07-08T06:35:37.042322 | 2019-11-15T13:56:30 | 2019-11-15T13:56:30 | 203,594,438 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,556 | cpp | potencia.cpp | #include <iostream>
using namespace std;
/*
//Numero potencia de dos
int main(){
int a;
int e=1;
cin>>a;
while(e<a){
e=e*2;
}
if (e == a)
cout<<"Es potencia de dos";
else
cout<<"No es potencia de dos";
return 0;
}
/*int main(){
int a;
float c;
float b=2;
cin>>a;
while(b<a)
... |
7c8ca8b077d4fa25cbb9046d92d042b76ee331cc | 95dcf1b68eb966fd540767f9315c0bf55261ef75 | /build/pc/ACDK_4_14_0/acdk/acdk_text/src/acdk/text/Template.cpp | 952314c74bb889292b59cc0ac63c648a28bb82c6 | [] | no_license | quinsmpang/foundations.github.com | 9860f88d1227ae4efd0772b3adcf9d724075e4d1 | 7dcef9ae54b7e0026fd0b27b09626571c65e3435 | refs/heads/master | 2021-01-18T01:57:54.298696 | 2012-10-14T14:44:38 | 2012-10-14T14:44:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,148 | cpp | Template.cpp | // -*- mode:C++; tab-width:2; c-basic-offset:2; indent-tabs-mode:nil -*-
//
// Copyright (C) 2000-2005 by Roger Rene Kommer / artefaktur, Kassel, Germany.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public License (LGPL).
//
//
// This ... |
e6eb044e76bcf52d33f952836efaf7af30cdf34c | df0c36363d59a841cd265d1ea74d6a9211a0820c | /sgn.h | 0fbeb4201842508c1911f83cce7a875f67df36f0 | [] | no_license | cmswank/HeatFlushSim | c6c65ab91762a36646af72c61a616f530f1ab10c | 3ed9a8d14468e63adf1169d77640375ca1c0baaf | refs/heads/master | 2020-08-28T06:25:53.480583 | 2020-07-01T00:22:01 | 2020-07-01T00:22:01 | 217,621,009 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,364 | h | sgn.h | #include <vector>
#include <cmath>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <sstream>
#include <assert.h>
#include <iostream>
inline double sgn(double x)
{
return (x > 0.0) ? 1.0 : ((x < 0.0) ? -1.0 : 0.0);
}
inline void Cross(double* A,double* B, double* C)
{
A[0] = B[1] * C[2] -... |
be8fd963135105b1862bcf63064362888cde5f48 | 99db729cb7418eb16cae8857e75587ca68eb81c4 | /core/core/flow_calculators/reductions/remove_connected_trees_reduction.hpp | 9a5944c04d7a64008025e42e4e7a680663c6e04d | [] | no_license | vmistyurin/GraphCpp | f62a02fdb85dcd3b2fb98307e46fe01c60ed9f1b | dce1f78c35d2515c2d3f013238d3a4b087e7de56 | refs/heads/master | 2021-06-29T04:15:01.337988 | 2019-05-24T09:25:25 | 2019-05-24T09:25:25 | 102,469,329 | 1 | 0 | null | 2018-09-25T16:28:22 | 2017-09-05T10:45:07 | C++ | UTF-8 | C++ | false | false | 4,529 | hpp | remove_connected_trees_reduction.hpp | #pragma once
#include <list>
#include <optional>
#include "core/macroses.hpp"
#include "core/utils/numeric.hpp"
#include "core/flow_calculators/definitions.hpp"
#include "core/flow_calculators/reduction_stats.hpp"
namespace graphcpp::flow_calculators::reductors::internal
{
template<class SymMatrixType, class No... |
288f07bca4bd2d659d83e36b76ca727dc432d235 | 7aecb9467275e32dc2a64589a17067b9e78d2462 | /TreeMap.h | e5f29e5af9f3da42090e43c4e86d36ae3d4a0ee1 | [] | no_license | dwojciechowicz/AISDI-Mapy | 4fb769e5c4f2515b013c13157463dd4c9b776d78 | e78f8e4ff67c62a30b458dd89ee21fc640868240 | refs/heads/master | 2020-04-29T04:31:54.948233 | 2019-03-15T16:33:16 | 2019-03-15T16:33:16 | 175,849,856 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,929 | h | TreeMap.h | #ifndef AISDI_MAPS_TREEMAP_H
#define AISDI_MAPS_TREEMAP_H
#include <cstddef>
#include <initializer_list>
#include <stdexcept>
#include <utility>
#include <iostream>
namespace aisdi
{
template <typename KeyType, typename ValueType>
class TreeMap
{
public:
using key_type = KeyType;
using mapped_type = ValueTyp... |
dc30ebb6a75721724f3f02b13bc3e3f7f488f35a | 4b192ec98a8105478800e78d17878b4a087f0c00 | /Milib/R_M_C/S_R_T.CPP | 0b0f3f72b5a48bb59719a706c18df06a11bd7340 | [] | no_license | Jhongesell/IntegraDOS | f4594909e9f67a2328b328e03a7cd40e6a436d10 | d8a9128908d956398f6c153e245763f787859984 | refs/heads/master | 2020-04-25T02:23:26.586444 | 2017-04-13T07:26:56 | 2017-04-13T07:26:56 | null | 0 | 0 | null | null | null | null | IBM852 | C++ | false | false | 778 | cpp | S_R_T.CPP | // Autor: Antonio Carrillo Ledesma.
// R.F.C.: CALA-691229-TV5
// Dirección: Amsterdam 312 col. Hipodromo Condesa
// Teléfono: 5-74-43-53
// Propiedad intelectual, todos los derechos reservados conforme a la ley, registro en trámite
// Revisión 1.1-A
void s_r_t(const char *cad, const unsigned int l... |
983b3681b3dd836a1f86e194ca2a7d160496eb16 | d3eb4bef899b86b0785ba485cb9184ac737d00e8 | /HW1_Encrypt/HW1-11_RowTranspositionCipher_Encrypt.cpp | 943b805428b3b7e6cdf7ea54cd919b4467fd876a | [] | no_license | blackphilip/Introduction-to-Infomation-Security | 6ef7d6a8c03ebf2db4279705723e810ca1f8db97 | 84caff2e75742f29551dda335a8abd430f7f06ed | refs/heads/main | 2023-04-06T12:16:49.635438 | 2021-04-13T01:48:32 | 2021-04-13T01:48:32 | 357,390,373 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,503 | cpp | HW1-11_RowTranspositionCipher_Encrypt.cpp | #include <string>
#include <iostream>
#include <vector>
using namespace std;
int main()
{
string plaintext, ciphertext, keyText;
while (getline(cin, keyText))
{
getline(cin, plaintext);
vector<char> tmpPlain;
ciphertext = "";
for (int i = 0; i < plaintext.length()... |
82cc199ed28e1a330d91b106add09767805d838d | b5348952308211827d37fead1fa485818c394cd1 | /include/gg/iniparser.hpp | 4d1d1f3a2532c9c2383f05851c46854f078d23b3 | [] | no_license | razzie/prepi | d43877f8b35b275e2105d9745517c0ceedcacdfc | 535892faccfa37e270304b69cc4e2f697243a209 | refs/heads/master | 2022-08-28T10:57:44.654384 | 2018-08-09T20:45:21 | 2018-08-09T20:45:21 | 144,201,969 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,579 | hpp | iniparser.hpp | #ifndef GG_INIPARSER_HPP_INCLUDED
#define GG_INIPARSER_HPP_INCLUDED
#include <iosfwd>
#include <string>
#include "gg/refcounted.hpp"
#include "gg/optional.hpp"
#include "gg/enumerator.hpp"
namespace gg
{
class ini_parser : public reference_counted
{
public:
class entry;
class section : pu... |
ec914585f8a0e5f9805e14fc8c5ec4cb3cc46fd4 | 7d558e68292c1b6345e6f0af1f14927a60367718 | /Arith_273_THP/Arith_273_THP.cpp | 30e4c496d5d7acc371955bb66a42bf73135ab81a | [] | no_license | veinyyxy/IDP_OLD2 | e8c15c8cc0d0be62ea7c359b46b5285616ba2da1 | 4dbd439f5d01a78eb10a3da5792d609d0950ae2b | refs/heads/master | 2022-12-19T19:19:31.823314 | 2020-09-28T05:24:17 | 2020-09-28T05:24:17 | 299,151,464 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 5,724 | cpp | Arith_273_THP.cpp | #ifndef IARITHMS_LIB
#define IARITHMS_LIB
#endif
#include "Arith_273_THP.hpp"
#include "Product_273_THP.hpp"
#include "../Arith_271_OHP/Product_271_OHP.hpp"
//#include "StandardRadarData.h"
#include "GDef.h"
#include "CJulMsGMT.h"
#include <fstream>
Arith_273_THP::Arith_273_THP()
{
}
Arith_273_THP::~Arith_273_THP()
... |
4d1e5fe097999cd7c538d10d682bbd5a57069a2a | 9ea5112eefde79e52775a944e358ae2aad16f4d7 | /example/Bus/ESL/sc_main.cpp | edb47c990197bc445d85bc9e04a8723dce5722de | [
"MIT"
] | permissive | ludwig247/SCAM | 95d444dbfa881bafadf1af4f32a71087a007d67f | 0b5a8f1c57593da40e85d0b8ce6a6cf5616379ca | refs/heads/master | 2020-03-11T19:33:49.394065 | 2019-01-28T11:27:06 | 2019-01-28T11:27:06 | 130,211,291 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,015 | cpp | sc_main.cpp | #include <Blocking.h>
#include "systemc.h"
#include "Bus.h"
#include "SlaveDummy.h"
#include "MasterDummy.h"
#include "../../SingleMasterMultiSlave/ESL/Compound.h"
using namespace std;
int sc_main(int, char **) {
//std::cout << sc_delta_count() << std::endl;
//Connection to Dummies
MasterDummy masterD... |
82bc3d03c6648568646c3a353424b0194c7e3cf1 | ef7486ef3e3ec85463ede374f17a84070bc6ca44 | /src/CryptoNoteConfig.hpp | 94cf0941ebb5a5ceb30c5e5760485112263069b9 | [
"MIT"
] | permissive | Dalak/CryptonoteEvo | 67836ca57767949f955d1b163c048415353f2925 | 20cba350dec72442bb4f1e07a401a5c8d619db0b | refs/heads/master | 2020-03-14T17:15:26.751429 | 2018-04-23T12:56:34 | 2018-04-23T12:56:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,135 | hpp | CryptoNoteConfig.hpp | #pragma once
#include <cstddef>
#include <cstdint>
#include <limits>
// All values below should only be used in code through Currency and Config classes, never directly.
// This approach allows unlimited customization through config file/command line parameters
// Never include this header into other headers
... |
88fa0d920ed81e642e4df81f5c7a18e236aa3d74 | 3af40b58a310fa414a6b960e1077b1ab2086ab9f | /libbirch/libbirch/Memo.hpp | 40e01f3ef7e5e5e6e9bd835564f02055de546d31 | [
"Apache-2.0"
] | permissive | tomzhang/Birch | 9aee96a611734e76e5e71767905aa1ff70e08f23 | 8bcbff1ee8ba82f0331e737ddd9375949705008a | refs/heads/master | 2023-04-04T05:01:50.126439 | 2021-03-19T04:51:08 | 2021-03-19T04:51:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,661 | hpp | Memo.hpp | /**
* @file
*/
#pragma once
#include "libbirch/ReadersWriterLock.hpp"
namespace libbirch {
class Any;
/**
* Memo for copying graphs of unknown size, implemented as a hash map that is
* resized and rehashed as needed.
*
* @ingroup libbirch
*/
class Memo {
public:
/**
* Constructor.
*/
Memo();
/**
... |
67e1808afc71ce5c3ce4f917f6368fc95fb8c1e3 | 86813724b2993c167b43b1a5f22652bb2653c383 | /Lvl10/euler231.cpp | c40e4af81947238bf66ff3b369d7f1faf0be75b2 | [] | no_license | lvirgili/proj_euler | a14e5629c80b113aba4115e6667980e77e8e8224 | aba8432792c7708401fa7b993506f27f3a639156 | refs/heads/master | 2020-05-18T05:24:32.407350 | 2012-07-16T19:52:21 | 2012-07-16T19:52:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,167 | cpp | euler231.cpp | #include <iostream>
#include <vector>
#include <cmath>
using namespace std;
const unsigned long long n = 20000000, k = 15000000;
vector<bool> primes(n, true);
void populate() {
primes[0] = primes[1] = false;
for (unsigned long long i = 2; i < n; ++i) {
if (primes[i] == true) {
unsig... |
f09a67751eb44f9e94443ad3bdfc6dfca428779b | 535e44e24d60879d5d654aada6d48f1d932a1e9f | /test/00-hello-world/hw.cpp | d90e96312ecda5edd672ad2ce83f70c3994e4b36 | [] | no_license | glucktv/dboost | 6ff4c93d3e509c52b0a4eb44319f2f0b3ddae6c4 | d1a0eb1b4ec1c2af2ad2b29ffa23157f845b39ab | refs/heads/master | 2016-09-06T11:15:00.377118 | 2015-03-27T05:07:29 | 2015-03-27T05:07:29 | 17,452,491 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 641 | cpp | hw.cpp | #include <iostream>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
using namespace std;
class hello_world_server
{
public:
void on_timeout(const boost::system::error_code& error)
{
if (error)
{
cerr << "Error happened" << endl;
}
clog << "Hello, World!" << endl;
}
};
int main(int,... |
1bf0df8c2644d92dde8309f7cad2af04d55830a5 | dd6147bf9433298a64bbceb7fdccaa4cc477fba6 | /8383/Shishkin/lab3/Src/Orcs.h | a50b2053d2960b2ca424b0d9cd3ef3330488e425 | [] | no_license | moevm/oop | 64a89677879341a3e8e91ba6d719ab598dcabb49 | faffa7e14003b13c658ccf8853d6189b51ee30e6 | refs/heads/master | 2023-03-16T15:48:35.226647 | 2020-06-08T16:16:31 | 2020-06-08T16:16:31 | 85,785,460 | 42 | 304 | null | 2023-03-06T23:46:08 | 2017-03-22T04:37:01 | C++ | WINDOWS-1251 | C++ | false | false | 1,035 | h | Orcs.h | #pragma once
#include "Warrior.h"
class Orcs : public Warrior {
public:
Orcs();
~Orcs();
void SetBoost(int boost);
private:
int boost; //умножает здоровье и атаку на значение boost, а броню делит на (boost + 1)
};
//------------------------------------------------------
class Devourers : public Orc... |
97e395f22bc484f3376dfdea8671770a8157499a | 28147bf29beaa7863368d8f5f609769d2ebf6296 | /src/UARTBus.h | df37d4330dbbfa8a7f410cd876bdf6cc46cbe401 | [] | no_license | sunbee/SAPTARISHI_VASISHTA | c6630b225bf8833391d618b7a6d8a0efd34f4300 | 2ac16f0a17daf4cb1e340a2cce62a23721b46284 | refs/heads/master | 2023-07-12T22:09:45.301839 | 2021-08-18T02:34:41 | 2021-08-18T02:34:41 | 392,570,814 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,630 | h | UARTBus.h | #ifndef UART_BUS_H
#define UART_BUS_H
#include <Wire.h>
#include <SerialTransfer.h>
struct TX {
/*
The payload with control recipe for tx to Arduino Uno.
It has on/off instructions for water pump ("PUMP"), speed setting
for PC fan (0-255), brightness setting for Neopixel LED lights
(0-255). Arduino Uno rece... |
18e97bf07e8eef49eb47d07c25ee0c4c804b2ccd | 8c2585f92fedd6064d3fe2a4425f7da8697d74fc | /Animation/Map.h | b6d65772b6a7fa036fb207307fa04c4304398e08 | [] | no_license | djadeja/sdl_tutorials | 29c78e4c4073c049e50017557d0942cb95f7d80b | 7320542fd2cc2301f34e9b120bbe1483a1f0b46d | refs/heads/master | 2022-12-24T01:01:09.864355 | 2020-09-21T17:20:36 | 2020-09-21T17:20:36 | 289,952,798 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 439 | h | Map.h | #ifndef _MAP_H_
#define _MAP_H_
#include "SDL2/SDL.h"
#include <vector>
#include <string>
#include "Tile.h"
#include "Texture.h"
using namespace std;
class Map {
public:
Texture *textureTileset;
private:
vector<Tile> tileList;
public:
Map();
bool onLoad(string file);
... |
ea3ae9772735d000443e4be38d69999a9c5f6292 | 4666e965d2ccbebe869e52f97098484e8aa6966e | /Code en C++ de Mage War Online/VikingThunder.cpp | 7e407fb9368744c571b62b15aa09f241162970be | [
"MIT"
] | permissive | Drakandes/Portfolio_NicolasPaulBonneau | 96020d11509e53426da7490013453e7c9763b81e | c8115d5ecd6c284113766d64d0f907c074315cff | refs/heads/master | 2021-08-14T13:26:46.947395 | 2017-11-15T20:20:02 | 2017-11-15T20:20:02 | 109,847,419 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,385 | cpp | VikingThunder.cpp | #include "stdafx.h"
#include "VikingThunder.h"
VikingThunder::VikingThunder()
{
texture_projectile.loadFromFile("VikingThunder.png");
}
VikingThunder::~VikingThunder()
{
}
void VikingThunder::Init(sf::Vector2f &position_initial, float damage_received, int id_caster, bool can_affect_player, bool can_affe... |
e7e1a95714f8f118172892107b83fa631612ab4a | 2203ee20758f34cd9252f473b7630de2781ddac9 | /Electronic Nose Send JSON/src/main.cpp | 75d52e76e2d03eabfa1be0445ea70f4e1f410ee5 | [] | no_license | michaelshanta/ESP32-IoT-3-Sensor-Dashboard | 5e36894578eaf083366c3c520d6d3d830316b4ee | d1116b868ef95cbecd1ce60e92027182361cca0c | refs/heads/master | 2022-04-13T00:57:34.150193 | 2020-01-29T11:10:21 | 2020-01-29T11:10:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,127 | cpp | main.cpp | #include <Arduino.h>
#include <WiFi.h>
#include <ESP32Ping.h>
#include <Wire.h>
#include <PubSubClient.h>
#include <Adafruit_BME280.h>
#include <Adafruit_CCS811.h>
#include <Adafruit_SGP30.h>
#include <Adafruit_ADS1015.h>
#include <Adafruit_Sensor.h>
#define MQTT_VERSION MQTT_VERSION_3_1
#define SEALEVELPRESSURE_HPA ... |
412e6f25041166b00af39d5d21521232ff495afe | d11834acb7bb335d3cde7be364e3ce86b7c58444 | /Tests/tst_test.cpp | 07060a68e1fe26b0e115fe4399b32a5fe549ea87 | [] | no_license | rSzarlej/TO_projekt | 04e5967904549e733d4d9c23e5fa0cd990f0bc63 | 0340de4954831f9c62a53a5181dc180c4ec7b58c | refs/heads/master | 2022-10-08T08:26:52.074761 | 2020-06-11T13:00:42 | 2020-06-11T13:00:42 | 271,542,226 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,924 | cpp | tst_test.cpp | #include <QtTest>
#include "NewFile/newfile.h"
#include "NewFile/newfile2d.h"
#include "NewFile/newfile3d.h"
#include "NewFile/newfiletxt.h"
#include "mainsource.h"
// add necessary includes here
class test : public QObject
{
Q_OBJECT
public:
test();
~test();
private slots:
void test_loadFiles();
... |
98c8ca9083e5bc95291b6f27ffacf712f0fe34d4 | 9248a8746489766cf185c2e1882c06b3cc5ad435 | /49460951/mainwindow.cpp | 04814c1daaa81d2db4bebf891ecf9eba1847cbf4 | [] | no_license | ErrAza/COS3711 | 226c52f3bd486dcd799679ff40caedd4438c3740 | 3cc215a2dbb1a3293acb682187dd93793d6e30a8 | refs/heads/master | 2021-01-16T21:39:51.898603 | 2016-08-07T18:48:57 | 2016-08-07T18:48:57 | 65,145,972 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,223 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QMessageBox>
#include <QStandardItemModel>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::on_btnImport_clicked()
{
... |
087394a01c5fdca2cf3d9c16168954323917e3bb | 9d7e83f6c534be31bf7cd289a6bf23350008c217 | /rmap.h | 47fe91de4e8c34d674729bbaabddf81611227ed3 | [
"MIT"
] | permissive | motor-18/ooo-beta | 2cb4c1e932ebae7d968bd04a86fc22a1f4267323 | e2687be73c504815bdec34d894d63cbd32e69063 | refs/heads/master | 2023-03-25T05:54:04.394973 | 2021-03-21T16:33:36 | 2021-03-21T16:33:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,958 | h | rmap.h | #ifndef RMAP_H
#define RMAP_H
/*********************************************************************
Copyright 2019 James C. Hoe
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.