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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0cfee6d4c9cdbe36ea4454472cd16412aa0404f9 | 9f9660f318732124b8a5154e6670e1cfc372acc4 | /Case_save/Case20/Case/case8/1000/phi | 16d5ba1b1c6ac29a24ddf742dc3de2e9e1a4af3c | [] | no_license | mamitsu2/aircond5 | 9a6857f4190caec15823cb3f975cdddb7cfec80b | 20a6408fb10c3ba7081923b61e44454a8f09e2be | refs/heads/master | 2020-04-10T22:41:47.782141 | 2019-09-02T03:42:37 | 2019-09-02T03:42:37 | 161,329,638 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,631 | phi | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
bb58b37d2493b7fb38a9fdfccc813601f97cf1f8 | b883b661acbb3fb20dae7695487745674a80dd3b | /server/mmocore/inc/c2s/log_off_to_lobby.hpp | 718d83d3721db52d868c276ead5216740c9d1208 | [] | no_license | kpyrkosz/tejk_it_izi | 145c573b421dd2405437444d45e29ae71221b053 | 1149f37da55b6f0e9b650fe07cd3d2fe22db0a5e | refs/heads/master | 2021-07-11T18:23:21.393182 | 2019-11-06T07:08:35 | 2020-08-06T16:48:21 | 181,365,996 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 389 | hpp | log_off_to_lobby.hpp | #pragma once
#include <received_packet.hpp>
#include <state_transitioner.hpp>
#include <user_environment.hpp>
class log_off_to_lobby : public received_packet
{
state_transitioner& transitioner_;
user_environment& my_environment_;
public:
log_off_to_lobby(state_transitioner& transitioner, user_environment& my_e... |
cd92441e76bfc4861c93102f32477cbf3d19ad29 | 62c2367c812112ea913ec6277cd82e8b8a71ffd1 | /src/mlpack/methods/kmeans/dual_tree_kmeans_rules.hpp | 4c960bea01c3e65996734ffb4d1394682ee6f0cb | [
"BSD-3-Clause"
] | permissive | dayifu/mlpack | 68983fc2bccb275b72bd20aad753d5b7934c597e | dac00b2b348b1bfe7051935ea899e673abf0b166 | refs/heads/master | 2020-12-26T04:55:00.052900 | 2015-03-26T10:53:31 | 2015-03-26T10:53:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,659 | hpp | dual_tree_kmeans_rules.hpp | /**
* @file dual_tree_kmeans_rules.hpp
* @author Ryan Curtin
*
* A set of tree traversal rules for dual-tree k-means clustering.
*/
#ifndef __MLPACK_METHODS_KMEANS_DUAL_TREE_KMEANS_RULES_HPP
#define __MLPACK_METHODS_KMEANS_DUAL_TREE_KMEANS_RULES_HPP
namespace mlpack {
namespace kmeans {
template<typename MetricT... |
1b8921819d623f02b8569429e1ffe95dc983653b | 31fa42056eca9be2e44adbebf50b46bb0962f03b | /src/OFTS/Frustum.h | 302755bc83524c1285f4840c8bc2c9d8647fd5fd | [] | no_license | dormon/Shadows | e571ffd900dfddcd5195154b2417d660d55e8ebb | e08473aca2ce8fd4cc7b4546839a6a8d7000ba5b | refs/heads/master | 2022-11-24T13:39:32.890151 | 2022-11-10T14:10:17 | 2022-11-10T14:10:17 | 131,889,172 | 0 | 1 | null | 2021-09-21T06:15:21 | 2018-05-02T18:13:27 | C++ | UTF-8 | C++ | false | false | 760 | h | Frustum.h | #pragma once
#include "Plane.h"
#include <glm/glm.hpp>
class Frustum
{
public:
Frustum();
Frustum(float angle, float aspectRatio, float nearClipDist, float farClipDist, glm::vec3 const& pos, glm::vec3 const& focusPoint, glm::vec3 const& up);
virtual ~Frustum() {}
bool isFrustumIntersecting(Frustum const& frustu... |
2b760f1de527d7d0ac9664071408d7ba82ec11c8 | 975c95e22e1e0789adaa143978f1a28a4c78ebf5 | /스컬/item.h | be898b802497e7d4d3b064be76882460b8f3ddeb | [] | no_license | jeonchanhee/SKULL | e9a6889dd48eae04b5c335b490f8b35274fd3d1e | b4453a8915f186fadc664e119e25193adc744316 | refs/heads/master | 2022-09-25T18:40:51.431571 | 2020-06-01T02:43:10 | 2020-06-01T02:43:10 | 268,407,893 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 427 | h | item.h | #pragma once
#include"gameNode.h"
class item : public gameNode
{
protected:
image* _img;
RECT* _imgRc;
int _x, _y;
int price;
bool _isCreate;
public:
item();
~item();
HRESULT init();
void release();
void update();
void render();
void render(int left, int top);
void setCreate(bool create) { _isCreat... |
579279712c7ea7d93c2b1ccd0ef55906ce3c262e | 9b85f76be1070dcf983012524366cfeb517e6219 | /Magic/Guildpact/CardGuildpact.cpp | edc05942773fd13f40b71204b4418184a460687f | [] | no_license | Homebrew-Engine-Archive/botarena | 691d35595a936c7adf5e0a495a5fbf35812244ef | 044e2713315b165002f2e06911ce7455de2f773f | refs/heads/main | 2023-05-10T15:58:08.520085 | 2021-03-17T13:11:56 | 2021-03-17T13:11:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 214,549 | cpp | CardGuildpact.cpp | #include "stdafx.h"
#include "CardGuildpact.h"
#define new DEBUG_NEW
#define DEFINE_CARD(C) \
if (!_tcslen(strCardName)) \
{ cardClassNames.push_back(_T(#C)); } \
else \
if (!_tcsicmp(strCardName, _T(#C))) { cpCard = counted_ptr<CCard>(new C(pGame, uID)); break; }
//___________________________________... |
119837c768e78b28958e39fd1f54ab0aa5f53cae | 4cb6314478f5e940aff0df4751d4052959b3c24a | /qt-trg/verifywindow.cpp | 5ddc15a929a93565415ec4b878b64964ee6f3d36 | [
"MIT"
] | permissive | MartensCedric/qt-trustless-random-generator | 465a47f508cbf0e0f2217184da82362fa2680d51 | dcc1bd532a9c135d939e78e6d0e07077dbf90dc9 | refs/heads/master | 2022-01-07T18:03:33.745318 | 2019-07-10T18:15:04 | 2019-07-10T18:15:04 | 118,159,128 | 2 | 2 | MIT | 2019-07-10T18:15:05 | 2018-01-19T17:54:39 | C++ | UTF-8 | C++ | false | false | 1,895 | cpp | verifywindow.cpp | #include "verifywindow.h"
#include <QComboBox>
#include <QFormLayout>
#include <QLabel>
#include <QLineEdit>
#include <iostream>
#include <qpushbutton.h>
#include <QStatusBar>
VerifyWindow::VerifyWindow(QWidget *parent) :
QMainWindow(parent)
{
resize(WIDTH, HEIGHT);
//this->layout()->setSizeConstraint(QLay... |
0ae5206ff6bf1824491da9c80877340c788735c5 | ba01603bcdf696987504e5aa78587a3cb48e5b8a | /ip-core/include/ip/core/logging/BackgroundLogger.h | c9ae81a982c5d8a344268c93fe0f6a3cba123090 | [] | no_license | bretambrose/vulkan-dev | a24c2701dc5210304a8711ce187d70a44a77b212 | 1b2f192e8758277c95afc5ddfbd15131ca5df078 | refs/heads/master | 2022-01-28T15:26:53.630187 | 2019-05-19T23:41:51 | 2019-05-19T23:41:51 | 105,370,220 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 526 | h | BackgroundLogger.h | #pragma once
#include <thread>
#include <ip/core/logging/ILogger.h>
namespace IP
{
namespace Logging
{
struct BackgroundLoggerThreadData;
class BackgroundLogger : public ILogger
{
public:
BackgroundLogger(const LoggerFactory& factory);
virtual ~BackgroundLogger();
virtual void Log(Log... |
9211327f11fce7aeba771414708b55ab54731f37 | 3423291c13700a5f1bea9d5c5d0047aaf3c53958 | /pmake/pmake/MANAGER.h | 2cf8758c4d11cb3f85b92330f828a7b76537baa9 | [] | no_license | yumayo/mogupro_utl | bbf0203fd011c5f682eef10b8d56fa9ed75c835b | 42b6835c4927f8cef574b766c43249e50f77e718 | refs/heads/master | 2021-09-05T13:58:52.597117 | 2018-01-28T13:56:47 | 2018-01-28T13:56:47 | 114,378,354 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 234 | h | MANAGER.h | public:
Packet::_TYPE_::c_TEMPLATE_VALUE_ get_TEMPLATE_VALUE_( );
void unget_TEMPLATE_VALUE_( Packet::_TYPE_::c_TEMPLATE_VALUE_ const& data );
private:
std::stack<Packet::_TYPE_::c_TEMPLATE_VALUE_> m_TEMPLATE_VALUE_;
|
f7eaf0bd08a1bbb2c305c99c9e9462e8a6750204 | 196d3d1e534cff90087f9ef1311af36b928a6fc2 | /version 0.1/console/playing_field.h | 76b37c70c90acc21624ba31e9a961515b7372773 | [] | no_license | akulinich/tic-tac-toe | 4f93b7331efefef856e7f5972d7baa615f715a7e | a4fdbf5e046af5e9ed1c42b6de71039c09312423 | refs/heads/master | 2021-01-10T21:23:28.148654 | 2014-08-26T18:45:54 | 2014-08-26T18:45:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 638 | h | playing_field.h | #ifndef PLAYING_FIELD_H
#define PLAYING_FIELD_H
#include <vector>
using std::vector;
enum Player {
TICK,
TOE,
EMPTY
};
enum GameStatus {
TICK_WIN,
TOE_WIN,
DRAW,
IN_PROGRESS
};
struct Position {
int x_cor;
int y_cor;
Position(int x_cor, int y_cor);
};
class PlayingFiel... |
71ebd95fb41260e9bcfd2d69c238c807e55b8cc6 | 84c0f3189fa4dfcf1f0490576abfe5c52759fc4e | /Meliq_Melqonyan/Homeworks/c++/11.11.04.18/mergeSort.cpp | b194b254b413a3e5dd378402458e2ee2b881b9fb | [] | no_license | Araksya-Hambaryan/ITC-9 | bfb2741c52f5de208d3637e33ed3bb547dd0971a | c44b4603a9ddd4395bac86808b3c42217ea60879 | refs/heads/master | 2023-02-11T16:11:30.324645 | 2021-05-16T18:45:13 | 2021-05-16T18:45:13 | 127,136,193 | 1 | 7 | null | 2023-01-26T03:22:51 | 2018-03-28T12:22:48 | Java | UTF-8 | C++ | false | false | 1,354 | cpp | mergeSort.cpp | #include <iostream>
int a[5];
struct Rect {
int lenght;
int width;
Rect(int a, int b) {
lenght = a;
width = b;
}
int bazm() {
return lenght * width;
}
};
void merge(int, int, int);
void merge_sort(int low,int high) {
int mid;
if(low ... |
f1232efdf672a4f668c6650610f20c05343bcbda | 908d925380c958868fc7dea7f310d2cdce0f5a6e | /BookSamples/Capitolo10/Pa_MidiSynth/Pa_MidiSynth/adsr.cpp | 33903770460f667faa355945ecd207909d2e873e | [
"MIT"
] | permissive | mscarpiniti/ArtBook | 3d153a012ce4a24c4d77dad443c1299cf6af0520 | ca74c773c7312d22329cc453f4a5a799fe2dd587 | refs/heads/main | 2023-09-04T07:48:26.864011 | 2021-09-28T14:05:52 | 2021-09-28T14:05:52 | 374,614,762 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,264 | cpp | adsr.cpp | #include "adsr.h"
void adsr::updateDcyFactors() {
m_dcy_const = ((m_atk_time * (1 - m_dcy_lev)) / m_dcy_time) + 1;
m_dcy_factor = (m_dcy_lev - 1)/m_dcy_time;
}
void adsr::updateSusFactors() {
m_sus_const = m_dcy_lev - (m_dcy_time * ((m_sus_lev - m_dcy_lev)/(m_sus_time - m_dcy_time)));
m_sus_f... |
6c21cef2a4f3b208da5e850c8cb4c8c326bd4d99 | ccc2f56f2a273ef17d1c0a5105b9c0832a6de47e | /shopwater.cpp | c01072d352492556b6f90456efa7fc82a8948269 | [] | no_license | clonerex123/DataStructure | d1f4513abd379fee096a772236b43ed2c4095ddc | f36de980809f6b2d8e7719935d71471b003279f1 | refs/heads/master | 2023-01-02T20:20:29.642627 | 2020-10-26T22:00:43 | 2020-10-26T22:00:43 | 299,992,425 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 258 | cpp | shopwater.cpp | #include<iostream>
#include<string>
#include "watertank.cpp"
int main(){
WaterTank t1{"collecter1", false,250,"outside,rear"};
WaterTank t2{"tinyPressure"};
cout << "T1 Capacity" << t1.maxCapacity << '\n';
cout << "T2 name" << t2.getID() << '\n';
} |
1447bd0b0ac96c2047d9035399b35e5a2349f71b | 48f71cc36854c8e3f3ea57aba2a38646a8d63004 | /shirabeengine/shirabeengine/code/include/ecws/entity.h | d83407d3ef225aa4eeb196bacd1e621343553602 | [
"MIT"
] | permissive | Fraaanzi/ShirabeEngine | 10b6a5bb736432e3fd22b8d32324fd2b6b0396b2 | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | refs/heads/master | 2020-12-07T23:45:58.001712 | 2019-12-30T21:32:24 | 2019-12-30T21:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,954 | h | entity.h | #ifndef __SHIRABE_ENTITY_H__
#define __SHIRABE_ENTITY_H__
#include "core/enginestatus.h"
#include "ecws/icomponent.h"
namespace engine::ecws
{
/**
* A CEntity instance describes an engine entity, which can be enriched by various
* types of engine components.
*/
class CEntity
{
public_co... |
a799ddb4071bca2856fd4c94565eb4569e524c0d | fb66a5cc43d27f33c85320a6dba8b9a8ff4765a9 | /gapputils/gml.dimreduce/drl/wrappers/ya_wrap_traits.h | 916c913d052f81182e41439ebb4b3f9764a71ce5 | [] | no_license | e-thereal/gapputils | 7a211c7d92fd2891703cb16bf94e6e05f0fb3b8a | a9eca31373c820c12f4f5f308c0e2005e4672fd0 | refs/heads/master | 2021-04-26T16:42:58.303603 | 2015-09-02T21:32:45 | 2015-09-02T21:32:45 | 38,838,767 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,416 | h | ya_wrap_traits.h | /***************************************************************************
ya_wrap_traits.h
-------------------
W. Michael Brown
Traits for YA_Wrap
__________________________________________________________________________... |
fab345062c90c000d90754918454cb2f52d12a0b | e45e32605372dbcea6aedc6b751660f0132ea48b | /1ShootingGame/Enemy1.h | b0e09f1835572bc166efcc55f02e29868a790a8e | [] | no_license | taehwan642/THFramework | 6beb7af823c723fdb62651f73e7f709facf0c874 | 31dd426df383cc71a13e75eda9b0d312fec160c3 | refs/heads/main | 2023-09-05T14:21:48.408068 | 2021-10-05T05:34:23 | 2021-10-05T05:34:23 | 330,841,582 | 10 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 190 | h | Enemy1.h | #pragma once
#include "Bullet.h"
#include "Base.h"
class Enemy1 :
public Base
{
public:
EnemyType eType;
Enemy1();
void Move() override;
void Update() override;
};
|
9272ac9c1846993acafce68b6037049cbfec6826 | a9dcca3cc82ef8571a609456156bda7e02ff989a | /source/Wfs/EnmWfsFactory.cpp | 9c98892a768580263679fda7605e7c0f967f966a | [
"MIT"
] | permissive | Borrk/Enzyme-labeled-instrument | ea420e174dd8a6b442be6ba19a116e3d899388c9 | a7c8f4459511c774f7e0c4fee1fe05baf1ae2a5f | refs/heads/master | 2020-06-28T17:39:08.672508 | 2019-09-09T03:14:40 | 2019-09-09T03:14:40 | 200,298,941 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,411 | cpp | EnmWfsFactory.cpp | // EnmWfsFactory.cpp: implementation of the CEnmWfsFactory class.
//
//////////////////////////////////////////////////////////////////////
#include "EnmWfStepHub.h"
#include "EnmWfoRoot.h"
#include "EnmWfsFactory.h"
#include "EnmMainPage.hpp"
#include "EnmScanContext.h"
#include "EnmModePage.h"
#include "EnmPlatePage... |
0f6c05e80e7a72552aa0d8f4b3ea967896d66048 | 6eb517842470db97f23392f518806591f626ba95 | /inf1010/TP4/LivreNumerique.cpp | 619e9d23788fee9f769a66c60d2c4ac9d9d45923 | [] | no_license | CatalinGiu/traveaux-polytechnique | 60ea1eb821478c730e4287d8ec0f7841e116d7f3 | be173e407735018681acf8558f4ba316f9e1db31 | refs/heads/master | 2022-11-27T19:16:08.720274 | 2020-07-26T17:31:08 | 2020-07-26T17:31:08 | 282,699,635 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,347 | cpp | LivreNumerique.cpp | /*
Fichier: LivreNumerique.cpp
Auteur(s): Catalin Giurca & Julien Gauthier
Date de creation: 25 fevrier 2016
Date de modification: 28 fevrier 2016
Description: Initialisation des fonctions de la Classe LivreNumerique
*/
#include "LivreNumerique.h"
using namespace std;
LivreNumerique::LivreNumerique() {
}
//Le cons... |
8eec287a728e91e60dcb166201a3db83c0d11374 | bd72dd27f6d28254e449ae7c977afb26391de2e9 | /lab06/ex6.cpp | 4819d526e894d9712adf9d2bd23924416b09b0b4 | [] | no_license | stevenctang/CSE201 | 7feac0c19a83310ae9d60ed424d9261d3db326cd | 7a3adf5f9ebea4566bc46d8ed27ca954193d062a | refs/heads/master | 2020-04-17T09:58:25.635400 | 2016-08-19T04:01:33 | 2016-08-19T04:01:33 | 66,015,360 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 237 | cpp | ex6.cpp | #include <iostream>
#include <cassert>
using namespace std;
bool isAllZeros(int a[50][100]) {
for (int i=0; i<50; ++i){
for (int j=0;j<100;++j) {
if (a[i][j] !=0) return false;
}
}
return true;
}
int main() {
}
|
33f70b626408021813a02bb02848c7097fb8d0b4 | add3ec755bddb2503e269f334a3f5cd645843873 | /Area of circle/Area of circle/area.cpp | a21fd38ed81faea47da33190586615a4eadfec03 | [
"MIT"
] | permissive | GreenHackersOTC/C | 64e2689c61517a5e07e320409cf52ad6861bdf51 | 947b2d18ca1cc60bde9e7a4dfa4511609c5d8a29 | refs/heads/master | 2020-12-24T07:26:01.642711 | 2017-11-25T09:35:27 | 2017-11-25T09:35:27 | 65,881,315 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 76 | cpp | area.cpp | #include"greenhacker.h"
int main()
{
funArea();
getch();
return 0;
}
|
07804871dfd21ee00d3bbdb762661165f2f6f195 | b1c1867f3977fa3573de5d0beda0b7187aee0b01 | /assignments/a1/archive/t.cpp | fc0d67ff3f419586734faf3876b2aa69795dcd28 | [
"MIT"
] | permissive | suryaavala/advancedcpp | 3523d553b00e8ff796c6f79c2a173ecfa80ee232 | 84c1847bf42ff744f99b4c0f94b77cfa71ca00d8 | refs/heads/master | 2021-03-27T14:58:54.620306 | 2018-02-12T13:03:54 | 2018-02-12T13:03:54 | 98,874,887 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 567 | cpp | t.cpp | #include <iostream>
#include <string>
#include <iomanip>
#include <string>
#include <sstream>
int main(int argc, char const *argv[]) {
std::string c = "1.1";
int a = std::stoi(c);
double b = std::stod(c);
std::cout << "a = " << a <<", b = " << b << ", c = " << c << " a/b = " <<a/b<<'\n';
std::stringstream s... |
377ae9bd5428dd5a0501b787470633ca50cf1b03 | 6153a4cb3bea620fb4ab7112888555b62d33c075 | /09_string.cpp | e2b005764cddf0f141d272b3efd7d1ccb607e406 | [] | no_license | Dawson-Jones/learn_cpp_with_me | c39fde12b13162a5bd269a28b5b782a8c5fe5286 | 2fcac8f747d3e310d996e00a63049a1af1bbb254 | refs/heads/master | 2022-12-17T21:17:52.849340 | 2020-09-21T15:51:39 | 2020-09-21T15:51:39 | 293,581,208 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,116 | cpp | 09_string.cpp | #include <iostream>
#include <string>
using namespace std;
int main() {
string s1; // 编译为空字符串
string s2 = "c plus plus";
string s3 = s2;
string s4(5, 'a');
int len = s2.length();
cout << len << endl;
string path = "./test.txt";
const char *str = path.c_str(); // 转化为 c 的类型
FILE *... |
6c1111dc722d980a62f79a33c50d6dc46e5e22ce | 358cc23b3385cd2ab7189bf8289a9f03ed864f55 | /src/N04_NetworkPNCP/OutNode.hpp | 9d556ea0182f47cbaec9caa0d5afdde5573e0ff8 | [] | no_license | adamcavendish/PNCP | f903d08050569847dae3d52762100d117fe3d4d9 | 65901bdcdd809d7e157e85efcb14f5ecdf577230 | refs/heads/master | 2021-01-13T02:18:35.557914 | 2014-04-17T12:37:41 | 2014-04-17T12:37:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,241 | hpp | OutNode.hpp | #pragma once
// STL
#include <random>
// omnetpp
#include <omnetpp.h>
// current project
#include "build/N04_NetworkPNCP_m.h"
#include "logger/logger.hpp"
class OutNode04 : public cSimpleModule {
private:
std::random_device rd;
std::default_random_engine engine;
std::uniform_real_distribution<double> udis... |
1d5588ed1e19cbcde1a554540d38578158adbe66 | af5ac40003f9ec34d59d99c7e6bb9db653198a03 | /demos/rlCoachKin/OperationalDelegate.cpp | f537bd779c98212c7a6184cb0a5a8bcfcbd160b5 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | roboticslibrary/rl | 90b7163c50f6341ae11ab2ee58ff07dc653c9ee3 | 2da1f81077247676e5bfd638db206a3ab7cb84a4 | refs/heads/master | 2023-02-22T15:48:38.671341 | 2023-02-15T18:49:29 | 2023-02-15T19:33:31 | 20,737,145 | 764 | 194 | BSD-2-Clause | 2023-05-24T19:44:17 | 2014-06-11T18:59:13 | C++ | UTF-8 | C++ | false | false | 3,174 | cpp | OperationalDelegate.cpp | //
// Copyright (c) 2009, Markus Rickert
// 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 condit... |
10206eb3e25ce089cf7469bf3624f0f19542d642 | 3df01d7e712197babed04169b8602811330fb42f | /codeblocks/patternMatching/finiteautomata.cpp | b42cfb43b5409ab503dd4c3a26a2bcf4265bd94e | [] | no_license | rohittiwarirvt/myCompetitiveProg | d43d4ec10d81bec0bf84811aaf736206cfcb66b8 | 7d8d257d0eee423893762a833a5cb438a1eca93f | refs/heads/mycpp-master | 2021-01-13T11:18:03.256898 | 2018-06-08T15:19:01 | 2018-06-08T15:19:01 | 81,396,726 | 0 | 0 | null | 2018-06-08T15:19:02 | 2017-02-09T01:54:27 | C | UTF-8 | C++ | false | false | 1,852 | cpp | finiteautomata.cpp | // http://www.geeksforgeeks.org/searching-for-patterns-set-5-finite-automata/
// Program for string searching using finite automata
//
#include <stdio.h>
#include <string.h>
#define NO_OF_CHARS 256
int getNextState(char *pat, int pat_len, int state, int x)
{
// if the character c is same as next character in pattern... |
a61495f06d5c60d8dbf070a877bdaa4760dd0f4e | d7085a2924fb839285146f88518c69c567e77968 | /KS/SRC/variants.h | bfd35e85eb0410a4fdf205658209164f38ac1af8 | [] | no_license | historicalsource/kelly-slaters-pro-surfer | 540f8f39c07e881e9ecebc764954c3579903ad85 | 7c3ade041cc03409a3114ce3ba4a70053c6e4e3b | refs/heads/main | 2023-07-04T09:34:09.267099 | 2021-07-29T19:35:13 | 2021-07-29T19:35:13 | 390,831,183 | 40 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 7,655 | h | variants.h | #ifndef VARIANTS_H
#define VARIANTS_H
//#include "actor.h" // no.. it includes us!
#include "entity.h"
//#include "brain_enums.h"
class variant;
//!class actor;
typedef vector<variant*> variant_list;
enum
{
_BRAIN_ANIM_UNBLOCKABLE = 0x00000001,
_BRAIN_ANIM_STUN = 0x00000002,
_BRA... |
14531f260fef44db8d15ab5dcda1040cf65c3449 | 3dfde1af0c9178dfc1e13bf444283462d4c320a9 | /pf/core/include/pf/cache/config.h | 315276b0bb695ad0d58e2a256e600904cbf35321 | [
"MIT"
] | permissive | viticm/plainframework | deb0f8a93af6a04fd0528e1d512847024899d1ed | 2107e3edddcbf18e95e65573c20ab19b0cdae8e3 | refs/heads/master | 2021-12-14T16:15:07.875283 | 2021-11-25T08:21:21 | 2021-11-25T08:21:21 | 22,244,644 | 7 | 12 | null | null | null | null | UTF-8 | C++ | false | false | 909 | h | config.h | /**
* PLAIN FRAMEWORK ( https://github.com/viticm/pap )
* $Id config.h
* @link https://github.com/viticm/pap for the canonical source repository
* @copyright Copyright (c) 2014- viticm( viticm@126.com )
* @license
* @user viticm<viticm@126.com>
* @date 2016/10/08 15:20
* @uses cache config class
*/
#ifndef PF_... |
3ef2cb22ac94d60043993077199c1bd15fa0c71e | 027ba1e389d45e253dce892220555d6f9826f0cd | /packages/ipnoise-neuron/neuron-rc/core/object/http.server/main.cpp | ce0f8f773179e8d5a067e9b9a6992872b884aabf | [] | no_license | m0r1k/IPNoise | 1f371ed6a7cd6ba5637edbbe8718190d7f514827 | dbab828d48aa1ab626fd528e71b1c28e3702be09 | refs/heads/master | 2021-01-02T23:09:51.193762 | 2018-02-04T11:23:27 | 2018-02-04T11:23:27 | 99,478,087 | 1 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 11,939 | cpp | main.cpp | #include <sys/time.h>
#include <ipnoise-common/log_common.h>
#include <core/object/object/main.hpp>
#include <core/object/int32/main.hpp>
#include <core/object/http.request/main.hpp>
#include <core/object/map/main.hpp>
#include <core/object/string/main.hpp>
#include <core/object/uint32/main.hpp>
#include <core/object... |
532092584988c73bab53b00b4e875c2f3e98c576 | 6f224b734744e38062a100c42d737b433292fb47 | /mlir/include/mlir/Dialect/SparseTensor/IR/Enums.h | b51d272a790f4a7242a0841990457092e28312a4 | [
"NCSA",
"LLVM-exception",
"Apache-2.0"
] | permissive | smeenai/llvm-project | 1af036024dcc175c29c9bd2901358ad9b0e6610e | 764287f1ad69469cc264bb094e8fcdcfdd0fcdfb | refs/heads/main | 2023-09-01T04:26:38.516584 | 2023-08-29T21:11:41 | 2023-08-31T22:16:12 | 216,062,316 | 0 | 0 | Apache-2.0 | 2019-10-18T16:12:03 | 2019-10-18T16:12:03 | null | UTF-8 | C++ | false | false | 19,952 | h | Enums.h | //===- Enums.h - Enums for the SparseTensor dialect -------------*- C++ -*-===//
//
// 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
//
//===---------------------------... |
bd7c04c6bd965e01119ccd6f5866ac825e3a968a | f31791f8b526e98a93f67ecae4cfcb3ea6ac1d6b | /src/util/messages/types/LockAccessMsg.cpp | 10db3524054b0fae68c934586793ca7a4dd5c9c7 | [] | no_license | jeffreymu/ssrg-hyflow-cpp | cd590b2691843f719ce7324f20767d5191da1be9 | 91e1b34a3b2b53a33bf7c432ddd9c7b24bb1df8c | refs/heads/master | 2023-03-17T21:34:52.497894 | 2017-01-24T22:05:04 | 2017-01-24T22:05:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,844 | cpp | LockAccessMsg.cpp | /*
* LockAccessMsg.cpp
*
* Created on: Sep 4, 2012
* Author: mishras[at]vt.edu
*/
#include <fstream>
#include <iostream>
#include <boost/archive/text_iarchive.hpp>
#include <boost/archive/text_oarchive.hpp>
#include <boost/serialization/base_object.hpp>
#include "LockAccessMsg.h"
#include "../../networking... |
9898c66e8ace3fc9a03fcdbf724b236b494f4df2 | c4163b1455ab10fa3f03ff95ae4e1fa96bd9dfb2 | /ex02/C.hpp | 125e3c661f9c48551c5d9ffff1bbce37079f397a | [] | no_license | Ovoda/Piscine_CPP_06 | a3107b77a007ef09633f3a266d360639609e9c43 | 147c60ae9088bcaacc3cde8cab417f6d88cb8c44 | refs/heads/master | 2023-06-15T22:28:45.132244 | 2021-07-09T14:45:21 | 2021-07-09T14:45:21 | 383,029,657 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 509 | hpp | C.hpp | #ifndef C_HPP
#define C_HPP
#include <iostream>
#include <string>
#include "Base.hpp"
class C : public Base {
public:
C(void) {}
C(C const &src) { *this = src; }
~C() {}
C &operator=(C const &rhs) {
static_cast<void>(rhs);
return *this;
}
};
std::ostream &operator<<(std::ostr... |
bd8714e4f241ba0b4f628af4793ec0c37bfb6b8e | 6c22cc907eb6b73af36cb9fe2c0236391ac7cde8 | /100000566E.cpp | bbfb48d33e5be56395cdfa97c43ba5f7bba98450 | [] | no_license | lilexuan/codeup | eafa5949f2fb493874dbef8a71b608bb0f333875 | 33a2c1847198574d3a91d1a33aca5d56503b25d1 | refs/heads/master | 2021-07-15T07:22:21.825011 | 2019-03-08T08:31:17 | 2019-03-08T08:31:17 | 110,666,759 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 327 | cpp | 100000566E.cpp | #include <cstdio>
#include <cmath>
using namespace std;
int main()
{
double a,b,c;
scanf("%lf%lf%lf",&a,&b,&c);
double delta = b*b-4*a*c;
double r1,r2;
r1 = (b+sqrt(delta))/(2*a);
r2 = (b-sqrt(delta))/(2*a);
printf("r1= %.2lf\n",r1);
printf("r2= %.2lf",r2);
return ... |
d72419f7a6b152a37105496c07c56e109844e34c | f437e5cb0788428d564dc29bb8c303624a2d260b | /libbfcp/samples/client.h | 809e3c122737c87dad79d9374b7549aebcace1d6 | [] | no_license | fast01/libbfcp | b92831ded01e7d1e9d101e3514abbc7053900895 | 32d5067667210377edf7996b0ebf3afb6e25d53c | refs/heads/master | 2023-02-12T15:22:46.732524 | 2021-01-15T15:14:27 | 2021-01-15T15:14:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,021 | h | client.h | /**
*
*
* \brief Sample test of BFCP particpant API .
*
*
* \copyright Unpublished Confidential Information of IVES Do not disclose.
* Copyright (c) 2000-2014 IVES All Rights Reserved.
*
* \author Philippe Verney
*
* \file client.h
*
* \version $Revision: 2148 $
*
* \date $Date: 2014-01-22 12:14:1... |
e53c0163b4eb5a9bcede24d784fad993231182c6 | 203e602370f4673f65f3c3022355ff6634c268ac | /c/book/vector/stringFind.cpp | 4f7c2da8612a7c9536a4a8faf59e5e120a8cf6b1 | [
"Apache-2.0"
] | permissive | WeAreChampion/notes | 4942fbd5c238559eb318787adc27be72f848de44 | 6c0f726d1003e5083d9cf1b75ac6905dc1c19c07 | refs/heads/master | 2020-06-14T03:54:00.587873 | 2016-12-07T13:02:45 | 2016-12-07T13:02:45 | 75,520,188 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 166 | cpp | stringFind.cpp | #include<iostream>
using namespace std;
void Test()
{
string s="asdasdasvx";
cout<<s.find("b")<<endl;
cout<<s.find("d")<<endl;
}
int main()
{
Test();
return 0;
} |
7addf9ef5c8c2cde0f1c6cc594621c68f8683a55 | f8b6238c44679460dee0fbd49f3f21c309791e1d | /A-Star Ambush/A-Star Ambush/Main.cpp | 445959809d4c77c4adaff965c7db851fe15a1787 | [] | no_license | JohnCodd/GamesEngineeringII | 92a636af91621108895c33c799899ba95b27c570 | a3b095e221027f1b0cdc52995c38e1efb4c467e6 | refs/heads/master | 2020-03-29T16:03:41.284544 | 2019-03-28T15:05:23 | 2019-03-28T15:05:23 | 150,095,001 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 112 | cpp | Main.cpp | #include "Game.h"
bool run = true;
int main(int argc, char * argv[])
{
Game game;
game.loop();
return 0;
} |
c1f1e46224c81f01b0ead459d7e99cb262d99c09 | 90517ce1375e290f539748716fb8ef02aa60823b | /solved/f-h/finding-lcm/finding.cpp | 8b72a352627e2097a4c7b778874621ec7d5ccb39 | [
"Unlicense",
"LicenseRef-scancode-public-domain"
] | permissive | Code4fun4ever/pc-code | 23e4b677cffa57c758deeb655fd4f71b36807281 | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | refs/heads/master | 2021-01-15T08:15:00.681534 | 2014-09-08T05:28:39 | 2014-09-08T05:28:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,035 | cpp | finding.cpp | #include <cmath>
#include <cstdio>
#include <vector>
using namespace std;
typedef unsigned long long u64;
typedef vector<int> IV;
#define cFor(t,v,c) for(t::const_iterator v=c.begin(); v != c.end(); v++)
// Number Theory
#define IsComp(n) (_c[n>>6]&(1<<((n>>1)&31)))
#define SetComp(n) _c[n>>6]|=(1<<((n>>1)&31))
na... |
0ee72453aa40d1d71a5ca6816e21b09d1a4e715f | 7f0718647279fbdd0e57938718108e0c70e3e2b8 | /Source/Engine/src/audio/codec/ogg.cpp | 45a62400594cc30498a6a2bb65b5437d8198c1a4 | [
"MIT"
] | permissive | DatZach/Swift | 26dffa7405195e38899817a915eb320c57abb33b | b0c6f9c87e8c8dfe8a19dedc4dd57081fa5cdef7 | refs/heads/master | 2022-07-06T03:23:32.575916 | 2019-12-03T15:27:14 | 2019-12-03T15:27:14 | 225,651,121 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,425 | cpp | ogg.cpp | /*
* ogg.cpp
* OGG Codec
*/
#include <Audio/Codecs/Ogg.hpp>
namespace Audio
{
CodecOgg::CodecOgg()
: Codec(),
renderer(nullptr),
duhFile(nullptr)
{
static bool dumbInitialized = false;
if (dumbInitialized)
return;
dumb_register_stdfiles();
dumbInitialized = true;
}
CodecOgg::~CodecOgg... |
e450f124965e92870065f1851cb818a52c7e27a8 | 413b1f31ce777599dc33636d582e95cf6d7f171b | /Building.hpp | 9c410d211116190a5cba25bdad49b038d754cea4 | [] | no_license | MrNeilJ/lab_4 | 5fa19f93022bde530bbd268e221e2cf253bdef0b | 319145258a4e2a05b008b3daea178fa7c30d5352 | refs/heads/master | 2021-01-20T04:25:44.903926 | 2017-04-30T01:08:03 | 2017-04-30T01:08:03 | 89,691,188 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 910 | hpp | Building.hpp | /**************************************************************
* Author: Neil Johnson
*
* Date: 4.30.2017
*
* Description: This is the header building class for the University
* program. In here we are able to construct building objects
* and can print out information stored in it, such as
* the name of the b... |
90669c83dc2bd1ee822c7e17b3a37e5e32e3abb0 | 9401eaffc1830a2e239d6b9aee1e36a9e7470f03 | /CodeBase/Generic/BaseObjects/Components/Team271_PWM.cpp | 7661db2bac26e5343d66ae33896aef038fa14edf | [] | no_license | Team271/2019Season | f552f92f830ce04ec7ec432ea79a75e82a08b2e1 | acaad0ba0520da9e0e463c9e06ee3df456519957 | refs/heads/master | 2020-12-04T10:41:04.246017 | 2020-01-04T08:37:38 | 2020-01-04T08:37:38 | 231,732,146 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,170 | cpp | Team271_PWM.cpp | /*
* FRC Team 271's 2019 Comp Season Code
* Copyright (C) 2019 FRC Team 271
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at ... |
d9183bff6b4cfe3ca0dbdfda7e9c591ca0c23c61 | 65deabfadbc675929f17e280156597f92cf2480d | /laughing-pancake/Classes/TMXLayerUtil.cpp | f655bdc196d7ebac9a06f18cc173250a6bf95424 | [
"MIT"
] | permissive | Frogp/laughing-pancake | ab4121bd3ce59d96ebbb81d62d4b040ed3838938 | bf102cf2ddfdfbdf1e9e7b5af586882924ca4213 | refs/heads/master | 2021-05-04T02:41:05.858104 | 2016-07-21T17:52:22 | 2016-07-21T17:52:22 | 55,394,402 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 5,242 | cpp | TMXLayerUtil.cpp | #include "TMXLayerUtil.h"
TMXLayerUtil * TMXLayerUtil::instance;
Point TMXLayerUtil::GenAbsoulutePosition(Point To)
{
return ccp(coordMap[(int)To.y][(int)To.x].x, coordMap[(int)To.y][(int)To.x].y);
}
TMXLayerUtil::TMXLayerUtil()
{
}
TMXLayerUtil::~TMXLayerUtil()
{
}
/*
moveTo(이동하고자 하는 좌표, 캐릭터, 타일 하나 크기, 레이어)
coo... |
822bacf5c45fccc62f0c43f73d2a9c3b653f4330 | 1a1ffb9a920ebf7a252433008303dfeac845adab | /Part-I Basic Technieques/Chapter 7 (Dyanmic Programming)/5_knapsack_problem.cpp | 6226425b124fd6c233a8fa6c609812b3c308f30b | [] | no_license | itsamankrsingh/hritikkumar-cp | 82b06d3d04bb455b783ea6490e979be798865dfa | e5545bf018ce64c852bab9a96240176b15af4916 | refs/heads/master | 2023-03-17T15:58:26.156977 | 2021-03-11T08:02:53 | 2021-03-11T08:02:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,731 | cpp | 5_knapsack_problem.cpp | // @hritikkumar
#include<bits/stdc++.h> // all header files
#define endl '\n'
using namespace std;
int knapsackDP(int*, int);
int knapsackDPEfficient(int*, int);
int main(void)
{
std::ios::sync_with_stdio(false); cin.tie(0); // fastio
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt"... |
0dec439a28972407a71a5f84fa14f7aea21d1042 | d4376884faa75b28b456bec5bdc4fe8ef8c09c1b | /hearblink/hearblink.ino | ca2ea08ed698ffa918c9314c888c74aec3a654f4 | [] | no_license | saptar/arduino_sketches | 7302c438221c984f448845bebbc175f70c30d2ca | 031b81196fa73c65fc2e847868a0d130338c0c7c | refs/heads/master | 2021-01-10T04:00:07.667874 | 2015-12-30T03:37:13 | 2015-12-30T03:37:13 | 48,779,901 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,392 | ino | hearblink.ino | // Define these at the top of your sketch.
#define LEDBLINK_PIN_BLUE 11 // I/O pin connected to the LED.
#define LEDBLINK_PIN_GREEN 12 // I/O pin connected to the LED.
#define LEDBLINK_PIN_RED 13 // I/O pin connected to the LED.
#define LEDBLINK_MS 500 // Blink rate (in milliseconds).
int ledCol... |
ee023de83ba6643c3eea2ca5b6d94dc96b0b3315 | 6c441824fd91d39f3f8b3b654297f0dc75674888 | /GLES20/Renderer/piperGL11.h | 6565d47889ba1c0675791f705f4bb2e8db81533f | [] | no_license | astojilj/astojilj_animkit | 6433cb5085933831eeb93f649d94159bd5cf9d00 | 3d281eaf071df4f0e90ff46f1daf629b3bdbed99 | refs/heads/master | 2016-08-04T06:09:53.720708 | 2012-05-13T06:37:42 | 2012-05-13T06:37:42 | 3,015,587 | 7 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 724 | h | piperGL11.h | /*
* piperGL11.h
* ReadBlend
*
* Created by astoj@rocketmail.com on 12/28/10.
* Copyright 2010 astoj@rocketmail.com. All rights reserved.
*
*/
#ifndef PIPERGL11_H
#define PIPERGL11_H
#include "piper.h"
/* Collecting and constructing input for graphics pipeline */
class PiperGL11 : public Piper
{
public:
... |
b6b163cc6bfab4db67c34269082a604e81e9d9bb | 172f61a44d6d157721721f96f529c0cb59321420 | /NamedPipe.cpp | 26bf547e1f02f9764c87848131c6ec0f595a6dc5 | [] | no_license | rzjh123/IPC | b145764ae78d44e8414e09bb833f198ad9255f8a | b9aac6131e85fef86faa9d6deddb1470fd8a39ad | refs/heads/master | 2020-05-03T00:53:55.063543 | 2019-03-29T03:32:24 | 2019-03-29T03:32:24 | 178,322,330 | 3 | 1 | null | null | null | null | GB18030 | C++ | false | false | 17,951 | cpp | NamedPipe.cpp | #include "StdAfx.h"
#include "inpsrv.h"
#include "NamedPipe.h"
/////////////////////////////////////////////////////////////////////////////////
CNamedPipe::CNamedPipe(INamedPipeEvent* pNamedPipeEvent)
{
m_hPipe = INVALID_HANDLE_VALUE;
m_hPipeCompletionPort = NULL;
m_pNamedPipeEvent = pNamedPipeEvent;
m_ptrContext... |
406e8c194bec0140dc806587e9fadbdb1bcab633 | 46100f3b30a53ae67de024b5e75bf7cf02149cd6 | /cpp/rush00/inc/Game.hpp | b0a437d5b990f14db9b57555828c77f22579d110 | [] | no_license | cjulliar/home | c23dcb37c1b49cf8f82e06a93566998c2b363d4f | 3674c66edf09002acfd4bd3a0a0e04665517d534 | refs/heads/master | 2021-01-21T11:19:24.358964 | 2019-07-12T00:31:40 | 2019-07-12T00:31:40 | 83,553,241 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,344 | hpp | Game.hpp | #ifndef GAME_HPP
#define GAME_HPP
#include <ncurses.h>
#include "defs.hpp"
#include "AShips.hpp"
#include "Player.hpp"
#include "Fighter.hpp"
#include "Boss.hpp"
#include "Stars.hpp"
#include <iostream>
typedef struct s_ships {
AShips* ship;
struct s_ships* next;
} t_ships;
typedef struct s_stars {
AElement*... |
007bfe1e790b8b1e0ef12c5945a162b9eac8f57e | c33545450d564b367c6108577a3fe2c6056f677c | /cdal/CDAL.h | 66a56f00a1ff8ff411281ec0aac7fc3e5a4eb325 | [] | no_license | kclegg/Data_Structures_Lists | 944505f3f007c80cbb3fd4972b40e71d8972ad05 | f7556feea31041cc140ad092207e37cfccf3edae | refs/heads/master | 2021-03-30T22:59:36.341489 | 2018-03-11T01:20:51 | 2018-03-11T01:20:51 | 124,712,570 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,042 | h | CDAL.h | #ifndef CDAL_H_
#define CDAL_H_
#include <stdexcept>
#include "List.h"
namespace cop3530{
template <typename E>
class CDAL: public List<E>{
private:
struct Node{
Node* next;
E* CDAL_list;
size_t tailPosition;
Node(){
CDAL_list = new E[50];
tailPosition = 0;
next = nullptr;
}
};
No... |
23623619865696e4c7d149ec2d735bc47f0e694c | d3e7b9d2ebe4d4aae85f05ea83f4b409f7a319f4 | /Longest Palindrome.cpp | 2b819b2988ee76ead91d860ee747cba0570c94c4 | [] | no_license | pkuzw/LeetCode-Zhao-Wei- | 43c952029b3bf5c142d6307836ea4fe6cf65f3f9 | 7834590f03daf944b0e6bb5ef9349aa0f36bca99 | refs/heads/master | 2021-03-22T04:45:40.709649 | 2018-12-27T14:51:52 | 2018-12-27T14:51:52 | 22,886,240 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,771 | cpp | Longest Palindrome.cpp | //
// Longest Palindrome.cpp
// LeetCode by zhaowei
//
// Created by Zhao Wei on 10/1/16.
// Copyright © 2016 Zhao Wei. All rights reserved.
//
///@file Longest Palindrome
///@author Wei Zhao
///@date 10.01.2016
///@version 1.0
/*
Given a string which consists of lowercase or uppercase letters, find the l... |
bdc5c35312350ed320ed1b8d46b2aa1f09451f18 | 27a7b51c853902d757c50cb6fc5774310d09385a | /4DYUCHIGX_RENDER/3DSprite.h | 298f780146bcefa5131dd8e86a1b7f9aecfb55e5 | [] | no_license | WildGenie/LUNAPlus | f3ce20cf5b685efe98ab841eb1068819d2314cf3 | a1d6c24ece725df097ac9a975a94139117166124 | refs/heads/master | 2021-01-11T05:24:16.253566 | 2015-06-19T21:34:46 | 2015-06-19T21:34:46 | 71,666,622 | 4 | 2 | null | 2016-10-22T21:27:35 | 2016-10-22T21:27:34 | null | UTF-8 | C++ | false | false | 1,734 | h | 3DSprite.h | #ifndef D3DSPRITE_H
#define D3DSPRITE_H
#include "../4DyuchiGRX_common/IGeometry.h"
#include "VertexBuffer.h"
#include "CTexture.h"
#include "IndexBuffer.h"
class CoD3DDevice;
class CTexture;
struct TRANSFORM_STATUS
{
VECTOR2 v2Pos;
VECTOR2 v2Scale;
float fRot;
RECT rect;
DWORD dwColor;
};
class C3DS... |
a54d9644ffb511eba415eb01e65fe67576f8157f | adf2c58cdc4548c7728369d4fc66f74f6cb23009 | /google_pano_pix.h | e884d6098ca638a3b8efed69f907b511854ff299 | [] | no_license | devtula/pano_downloader | 730f624bcd255a470347776c3f307e50f21f7faf | 2031cd9cc3ffcad2b3e5ab5ed611f3870957bab6 | refs/heads/master | 2016-08-03T23:23:01.203817 | 2014-06-19T10:14:17 | 2014-06-19T10:14:17 | 20,996,244 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,104 | h | google_pano_pix.h | #ifndef GOOGLE_PANO_PIX_H
#define GOOGLE_PANO_PIX_H
#include <QObject>
#include <QFile>
#include <QTextStream>
#include <QPixmap>
#include <QPainter>
#include <QMutex>
#include <QDateTime>
#include <QSettings>
#include "http_downloader.h"
#include "my_panoparam.h"
class google_pano_pix : public QObject
{
Q_OBJE... |
18931f5ab27dac6687fc36914a729a712c915e86 | f3b177c26c885400db6b9be0acf22aaae903e744 | /mbot_autom_param_tuning/mbot_score_functions/mbot_pose_evaluator/ros/include/mbot_pose_evaluator/tf_error_calculator.h | b0a95c7364d860e38de7437f7ba0ac8abd922d99 | [] | no_license | huashuichengbing/autom_param_optimization | 45991996e0356d3b43d3a489bd3f8de2518c3b64 | 137f5ea8467d018c621ea06fcd55a55b6c6afdb6 | refs/heads/master | 2023-06-23T01:12:14.072261 | 2021-07-19T10:34:00 | 2021-07-19T10:34:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,675 | h | tf_error_calculator.h | /*
* Copyright [2016] <Instituto Superior Tecnico>
*
* Author: Oscar Lima (olima@isr.tecnico.ulisboa.pt)
*
* Publishes the difference between two frames
* in a component wise manner. (x1-x2, y1-y2, etc.)
*
* mcr_manipulation_msgs/ComponentWiseCartesianDifference msg
*
*/
#ifndef MBOT_POSE_EVALUATOR_TF_E... |
82ce324029c3f05d2487d0b05b6a99b0004ed6e5 | 856881f22036b9c85f889cee5709d8907f592e02 | /drawingcanvas.cpp | 5496d75e10adfaf5fb80eceb052d9c7dd819b4b3 | [] | no_license | daljit97/QtPaintTest | 2dd45ca8d0af353633187228ea62fa26a7256bcc | 7b9d021136e772a1fe58b41f5fea64283f6e01a8 | refs/heads/master | 2020-09-26T01:34:33.126971 | 2020-08-13T11:28:37 | 2020-08-13T11:28:37 | 226,132,915 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,086 | cpp | drawingcanvas.cpp | #include "drawingcanvas.h"
#include <QPainter>
#include <QPainterPath>
#include <QtSvg/QSvgGenerator>
#include <QFileDialog>
#include <QElapsedTimer>
#include <QOpenGLFramebufferObject>
#include <math.h>
DrawingCanvas::DrawingCanvas(QQuickItem *parent) : QQuickPaintedItem(parent)
{
m_penWidth = 4;
setRend... |
b1304d042fc166351a7b5628ff7300d3297fc052 | ca992abcddc8385a5588a5cf81de16e32cec1c70 | /CAX/Entity2d.cpp | 97aa06f01f312f8cd766167ad894dd687263e6f9 | [] | no_license | smallpi/CAX | 7c47e2c64d43fd2e48b47f5781f43e566a11dc5e | ed6635cf056e33373f66cc84b1387c42b4354dfc | refs/heads/master | 2020-03-19T11:53:04.140900 | 2018-06-23T11:52:51 | 2018-06-23T11:52:51 | 136,482,480 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,060 | cpp | Entity2d.cpp | #include "Entity2d.h"
#include "MultiInstancePool.h"
#include "TypeTools.h"
#include "Point2d.h"
#include "Line2d.h"
#include "Polyline2d.h"
#include "LwPolyline2d.h"
#include "Arc2d.h"
#include "Circle2d.h"
#include "Ellipse2d.h"
namespace CAX
{
struct Destructor2d
{
void operator () (void* p)
{
Entity2d *... |
de8f2aaea033a2b7a9f60f13345565231a57234b | 286c7126518a531affc0fda945c34d4553774495 | /multisort/solutions/multisort_quicksort_multibranch_binsearch.cpp | 60bb077da30a4d32c0c136233cc6e358e690f72f | [
"MIT"
] | permissive | indjev99/Competitive-Programming-Problems | fb5fe81089e80d737d3c24e6799d1aac583d22e1 | f5b3203fc2191ba946249af3505259f636f267ef | refs/heads/master | 2023-09-04T07:26:51.528481 | 2023-08-19T00:39:33 | 2023-08-19T00:39:33 | 171,058,102 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,020 | cpp | multisort_quicksort_multibranch_binsearch.cpp | #include "multisort.h"
#include <algorithm>
#include <numeric>
#include <iostream>
std::vector<int> compTemp;
std::vector<std::vector<int>> branchTemps;
std::vector<int> pivots;
void quickSort(int* data, int n, int k)
{
if (n == 0 || n == 1) return;
if (n <= k)
{
compTemp.clear();
std::co... |
08bcb7b48648a0bb58de1ae55a54f83aae25ea78 | 21ed98081fa69462fdbfbef916e9c5aac4aaa806 | /src/generator/PassageTurn.cpp | 16a0599ec2cd6b31f55971c8c9c9461ad76647b5 | [] | no_license | jebrax/automatic-rotary-pancake | 09bbae3fe2d7b39f574535a9266f887e3ad40d21 | e1b21d1b2224e78d261f2d87957862c7795c0153 | refs/heads/master | 2023-09-02T17:25:56.065990 | 2021-10-05T04:33:03 | 2021-10-05T04:33:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,213 | cpp | PassageTurn.cpp | #include <stdlib.h>
#include <algorithm>
#include <assert.h>
#include <glade/debug/log.h>
#include <glade/math/Vector.h>
#include <strug/generator/PassageTurn.h>
#include <strug/blocks/Terrain.h>
#include <strug/exception/StrugException.h>
#include <strug/generator/common.h>
void PassageTurn::calculatePassageTurnStri... |
0dcaa8cfc2a0332000b5c1cb7c61c5ede078d0e4 | 65102ee5aeb8ca70534ae4f09a7214e829ff78ea | /Player/JinPlayer/Source/CPlayCtrl.cpp | 6544602d00829437d02310cb0c5a7dddc28c2505 | [] | no_license | Fengerking/jinPlayer | 418ce3b6c4c640c56eb01440699cdab7b9e1a3f5 | a5b4e48221a8f3a2ad37df8b36daaf322b1b75f0 | refs/heads/master | 2021-01-20T09:19:49.822232 | 2017-05-06T00:30:48 | 2017-05-06T00:30:48 | 90,235,474 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 7,198 | cpp | CPlayCtrl.cpp | /*******************************************************************************
File: CPlayCtrl.cpp
Contains: The play control implement code
Written by: Fenger King
Change History (most recent first):
2014-05-09 Fenger Create file
****************************************************************... |
cb6b83c77df0eb4b5bd08baf745619422303e542 | 71e82abe092e28efddd231493bc0435892077d2f | /第10周作业google.cpp | 5516bdc2b18952901d25c8d439aef97d504b9bb5 | [] | no_license | DavidDorry/hello-world | fa0f137c898d1a5dd1be52e13de3f771b263067d | 4d0f1c11d69949bbe306786c4746a4c33995c9ac | refs/heads/master | 2022-04-01T10:46:34.896742 | 2019-11-28T13:59:49 | 2019-11-28T13:59:49 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,177 | cpp | 第10周作业google.cpp | #include <stdio.h>
#include<math.h>
int main(){
int w[6],x[6],y[121],z[121],d,i,j,k,s=10;
for(i=1;i<=5;i++){//输入
scanf("%d",&x[i]);
w[i]=x[i];
}
for(i=1;i<=4;i++){//排序
for(j=i+1;j<=5;j++){
if(x[i]<x[j]){
k=x[i];
x[i]=x[j];
x[j]=k;
}
}
}
k=1;
for(i=10000;i<100000;i++){//寻找这五位数可以组成的所有数
... |
b618715e9639cad6ad0a5185aed0deee0ecbd422 | 69779bb8b5feb9d6123b61d57210ad68c84bfb9a | /DerivedSources/unified-sources/UnifiedSource-bfc896e1-4.cpp | 71e63750dd13bf9d69ff68f8f791b7d71bd29ab7 | [] | no_license | Tsinworks/JavascriptCore_VS2019 | 0633cd2a0c91a7ab713f78b4457afdfe2ad30f73 | 70c54ffd20d8d7e6ec1555b61c0f3f9a2732c67c | refs/heads/main | 2023-08-13T11:02:36.604150 | 2021-10-06T14:27:54 | 2021-10-06T14:27:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 287 | cpp | UnifiedSource-bfc896e1-4.cpp | #include "dfg/DFGClobberSet.cpp"
#include "dfg/DFGClobberize.cpp"
#include "dfg/DFGClobbersExitState.cpp"
#include "dfg/DFGCodeOriginPool.cpp"
#include "dfg/DFGCombinedLiveness.cpp"
#include "dfg/DFGCommon.cpp"
#include "dfg/DFGCommonData.cpp"
#include "dfg/DFGConstantFoldingPhase.cpp"
|
163761532c5e80b6f86c4ae5e8e81f1245803b10 | ad5d7be93e9a310d84689b7059d092ac4044a04c | /module-1/homework/TypeList/typelist/indexof.h | f1045a984e69c0ab214fda7a673eb7fe6fbe70ae | [] | no_license | samplec0de/HSE-Course | 5e88e7c6f5b0d3d4e5f9e5369654e97c5322b9ea | 787ceb2d74fe762f51ad249ca70a9723dcef33bd | refs/heads/master | 2023-01-28T01:28:11.700193 | 2020-12-02T20:34:47 | 2020-12-02T20:34:47 | 297,139,665 | 0 | 0 | null | 2020-12-02T20:34:48 | 2020-09-20T18:36:01 | C++ | UTF-8 | C++ | false | false | 597 | h | indexof.h | #pragma once
#include "typelist.h"
template<typename TList, typename TargetType>
struct IndexOf;
template<typename T>
struct IndexOf<NullType, T> {
enum {
pos = -1
};
};
template<typename T>
struct IndexOf<TypeList<T, NullType>, T> {
enum {
pos = 0
};
};
template<typename X, typename T>
struct Inde... |
9ce349f524c65061bc0869caf050a58be88c96f2 | 8eb510b12f7daf7c3653598b0d8587c033afebdc | /Graphics/Project1/Ninja/App.h | e30184cde375b3911d3cd0902cc19aea289c8647 | [] | no_license | Scyllas/CSC3224 | 6cf9ce68abcb76ea6f7317b23cfaded52406009f | bb85635430346937fc4a84318c098a5551f1034f | refs/heads/master | 2021-03-30T17:07:06.632256 | 2017-04-24T21:24:28 | 2017-04-24T21:24:28 | 80,419,180 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 518 | h | App.h | #pragma once
#include <Engine/IMainGame.h>
#include <Engine/ScreenList.h>
#include "GameplayScreen.h"
#include "MainMenuScreen.h"
#include "EditorScreen.h"
class App: public Engine::IMainGame
{
public:
App();
~App();
virtual void onInit() override;
virtual void addScreens() override;
virtual void onExit() overr... |
1c11cc5147c0f80674e8f077903f61154c3d8ca3 | d60cae7f3a2a56e4fae06638134de31d7595dace | /src/world_node.cpp | 5aef4e0598efab4d8f83551562920986a42a230a | [
"MIT"
] | permissive | silentWatcher3/worldLineSim | 675406d9c23c5a4bd1a4ee33756e038371ecf62a | fab180c9b1800b3f85b78b06166cf3b8025ebbf6 | refs/heads/main | 2023-03-04T00:36:16.764297 | 2021-02-10T09:52:59 | 2021-02-10T09:52:59 | 337,617,668 | 0 | 0 | MIT | 2021-02-10T07:16:01 | 2021-02-10T04:36:31 | C++ | UTF-8 | C++ | false | false | 6,556 | cpp | world_node.cpp | #include "world.hpp"
#include "world_node.hpp"
#include "display/display.hpp"
#include "adapter.hpp"
void World_Node::captureState(){
this->paused_time = this->world->getCurrentTime();
State latest_state(this->paused_time);
for( auto&& entity : world->entities ){
if (entity->getPrimaryPos()) {}
... |
397ce9d7cb9f0d74753b3a55fd5481950c3c97f0 | e9c1d29ffac999d09c02b23c34abe47dc96bb9a9 | /smollpt.cpp | 1e8137e9274db5664092651507460ea731351084 | [] | no_license | sum-catnip/smoll-pattern-scanner | fa26834070b33d8a9e7cc2981e6a190d7db877f8 | 4f1b81b2e5b00ec219d7000014413e7197bb8503 | refs/heads/master | 2020-09-21T07:09:08.463580 | 2019-09-14T13:15:16 | 2019-09-14T13:15:16 | 224,719,690 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,439 | cpp | smollpt.cpp | #include <Windows.h>
#include <iostream>
#include <iterator>
#include <sstream>
#include <cstddef>
#include <vector>
enum class byte_type { value, wildcard };
struct pattern_byte {
pattern_byte(byte_type _type, std::byte _byte = (std::byte)0) : type(_type), byte(_byte) {}
pattern_byte(byte_type _type, std::string... |
1c3f3e7d7bf64fa015ba25f146264a77dde533bf | 38253760ffa34c665d99f2704cf7df6e08236b08 | /ARMCortexA9.cpp | e94a8e61830c3fb8d2939bc2ec8150dddc321784 | [] | no_license | azonenberg/jtaghal | e3f75c1f7ad6665c48f3c7e04fab2d16b871bf7b | 4a9e1245263769938d6e635a7e71abb0b1d4d9e8 | refs/heads/master | 2021-12-02T16:45:26.155265 | 2021-11-11T21:56:20 | 2021-11-11T21:56:20 | 65,849,157 | 32 | 9 | null | 2020-04-17T12:46:21 | 2016-08-16T19:52:36 | C++ | UTF-8 | C++ | false | false | 6,057 | cpp | ARMCortexA9.cpp | /***********************************************************************************************************************
* *
* ANTIKERNEL v0.1 ... |
5e5d7f7c06714a1d6ab1c94a6192086c6b815798 | 952a397214aa2ff6bbd8be279d9b592dd9b6a9ed | /SGIPC practice contests/2k16 single contest 1/keyboard.cpp | d585a1e3c460afaceab5e37f4083d9e5821522ab | [
"Apache-2.0"
] | permissive | YaminArafat/Vjudge | 0b074cdedcfa12f96782bb202b0ab2861ebb7ac8 | d8d2afc4b1a0fbada46d75cb080efc37965dfe9d | refs/heads/master | 2023-03-21T07:57:33.175060 | 2021-03-24T11:26:16 | 2021-03-24T11:26:16 | 351,050,309 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 898 | cpp | keyboard.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
char str[31]= {'q','w','e','r','t','y','u','i','o','p','a','s','d','f','g','h','j','k','l',';','z','x','c','v','b','n','m',',','.','/','\0'};
char c;
char inpu[101];
cin>>c;
cin>>inpu;
int i,j;
if (c=='L')
{
for (i=0; i<st... |
3cafce7db86e448eade406ec9d26e27f6fe18454 | 572ca22b9a7722031680c284c76d1e867fa3370c | /deletedialog.cpp | 8983e1b67f768a981c31959a3e8ffc1296af19b2 | [] | no_license | jack89730/Student-Management | 414a33bc6f2c0bb9bd501102f3fbf2cd8e6cf9f1 | 61cac12216730e33be7150e995a4bbc3aa147561 | refs/heads/master | 2021-05-31T08:02:44.072078 | 2015-10-30T04:45:05 | 2015-10-30T04:45:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,491 | cpp | deletedialog.cpp | #include "stu.h"
#include "deletedialog.h"
#include "ui_deletedialog.h"
deleteDialog::deleteDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::deleteDialog)
{
ui->setupUi(this);
this->setWindowTitle("删除学生信息");
}
deleteDialog::~deleteDialog()
{
delete ui;
}
//点击确定按键的槽函数
void deleteDialog::on_su... |
5e178e239a8ea7f0822e2cacdf64d4776e9f8493 | 71864f24ea02e031a39572373e16bdfbc61df15e | /Rare4_구현/hee/13460+구슬탈출2.cpp | 218fb5558b51125b770afbc336d1d7c1850e3388 | [] | no_license | kanghuiseon/algorithmStudy | 38c6401e10830e1fcdba46e8fb0662110af73547 | dd038391f0562368cfaeda0cfb7c4cd328d884a6 | refs/heads/master | 2023-08-12T10:44:11.743292 | 2021-09-14T07:36:27 | 2021-09-14T07:36:27 | 380,399,403 | 0 | 4 | null | 2021-09-14T07:29:14 | 2021-06-26T02:48:49 | C++ | UTF-8 | C++ | false | false | 2,393 | cpp | 13460+구슬탈출2.cpp | #include <iostream>
#include <vector>
#include <queue>
#include <tuple>
using namespace std;
int dx[4] = {0, 0, -1, 1};
int dy[4] = {-1, 1, 0, 0};
bool check[11][11][11][11];
queue<tuple<int, int, int, int, int>> q;
vector<string> arr(11);
//cnt : 움직인 횟수
tuple<int, int, int> roll(int x, int y, int di, int cnt){
whi... |
3e0a498dbd72552535cb260fb48034a68eaf3f03 | 881b170579cc694a6d6c31ee420002d1da2b3ab3 | /build-ED_Proyecto2-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/ui_buscarcerveza.h | a410bcb2abfdd5d525e2d3123d913a59e07db508 | [] | no_license | pacheevb/ED_Proyecto2 | 6af973f85584e3768b5178bc66439eb6c01e4b77 | 7052c972ddcf26feb7afe0541f159133a7027798 | refs/heads/master | 2021-01-20T20:36:49.751107 | 2016-06-09T02:23:18 | 2016-06-09T02:23:18 | 60,022,420 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,080 | h | ui_buscarcerveza.h | /********************************************************************************
** Form generated from reading UI file 'buscarcerveza.ui'
**
** Created by: Qt User Interface Compiler version 5.6.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
*************************************... |
7684ccce53910f43dbe4f7d745ecad723ba7e96f | dce4ea3398ba66330e7f2f427bd543e73ab3fb9d | /Advanced Games Programming/AGPProject2/AGP Project 2/AGP2014 Lab4 Base Code VS13/ParticlesList.h | 1a152094b9af3714ac89f0636c07c15fd31c4888 | [
"MIT"
] | permissive | RichardsonDaniel/BSc-University-Coursework | 8f8ff81945bba5cafa0f20b6771fc3818532fd5e | f66351152826cafd4d0064c26efb7dc9c74f6ce6 | refs/heads/master | 2020-04-23T11:10:34.763853 | 2019-02-19T07:45:36 | 2019-02-19T07:45:36 | 171,127,366 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 584 | h | ParticlesList.h | #pragma once
#include "Particle.h"
#include <iostream>
#include <time.h>
#include <GL\glew.h>
class ParticlesList
{
public:
ParticlesList(int number, glm::vec3 pos, float colour1, float colour2, float colour3);
~ParticlesList();
void update(glm::vec3 cubePos);
void draw();
void particleTimer(int mSeconds);
void ... |
b8748522f71c363b4fd38c5e785bf5d1704b95d4 | a031517c90daf357f70360a7636ca63a43ce5e5d | /Baekjoon-OJ/1152_wordcount.cpp | 5fb9ea1094eaa9c9c76033f0a953dbcf2d7f2afd | [] | no_license | kmnj951/study | 7d3aba4d698d0fe51234d7785904d75f1f67582c | c6afca81e54015d36d9b74e2b18bdcaaf6605f80 | refs/heads/master | 2022-11-16T01:08:14.220887 | 2022-10-30T21:25:35 | 2022-10-30T21:25:35 | 186,276,042 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 306 | cpp | 1152_wordcount.cpp | #include <iostream>
#include <string>
#include <sstream>
using namespace std;
int main(void) {
cin.tie(NULL);
ios::sync_with_stdio(false);
string str;
getline(cin, str);
istringstream ss(str);
//ss >> std::noskipws;
int count = 0;
while ( ss >> str ) {
count++;
}
cout << count;
return 0;
}
|
6611676b9456e4ab3aaa6f61f543448548189206 | c1d75e3c38657b235276aaeec52cd13ddf596ea7 | /tuneler/player.cpp | fb3c14893b131752c656b51acb7eb72b1dbf171e | [] | no_license | xzalabai/tuneler | f4c60230a3bd4efce6446591b2d15986a0044735 | 4807df4e8499e537e3c4a5eee37cde3dc63065a8 | refs/heads/master | 2020-07-13T23:38:24.340148 | 2019-08-29T14:35:45 | 2019-08-29T14:35:45 | 205,179,624 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,337 | cpp | player.cpp | #include "player.h"
#include "scene.h"
#include "asteroid.h"
#include "desk.h"
#include "camera.h"
#include "shadow.h"
#include "projectile.h"
#include "generator.h"
#include "explosion.h"
#include "house.h"
#include "torus.h"
#include "gulicka.h"
#include "powerUp.h"
#include "Screen.h"
#include "house.h"
#include <g... |
be5836048ff4697c663c27174112338993aa432e | bd367074bb6a012db58aefc8e765ecfcfb5c4fcf | /PICKY_PI/MAE_PICKY.cpp | 20b311bb004bc03908fbe6dd3a5f80ea8aecfe3c | [] | no_license | VegLeMeccano/EUROBOT-2017 | 3bf61c0111676748266756a71be3ecb6ad1e56e4 | 8dd4dc6fae69e41052932bc54071db710c8e0d7b | refs/heads/master | 2020-02-26T15:37:36.385801 | 2017-05-10T15:01:38 | 2017-05-10T15:01:38 | 69,698,393 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 427,773 | cpp | MAE_PICKY.cpp |
#include "MAE_PICKY.h"
#include "Master.h"
#include <wiringPi.h>
#include <wiringSerial.h>
#include <iostream>
#include <string>
using namespace std;
MAE_PICKY::AnyState::~AnyState() {
}
// perform the 'do activity'
void MAE_PICKY::AnyState::_do(MAE_PICKY &) {
}
void MAE_PICKY::AnyState::create(MAE_PICKY &) {
}... |
8e467806e291b031fc8099b3595e35aaba3d6c90 | 099489480e970716f13257134fbadb29ba41f9a0 | /main.cpp | 69f7e92aca29817e6ff327beb58fdf3eaabcc9fa | [
"MIT"
] | permissive | Kronossaurus/OCEV | 8ee15561f4c0b83a8552c7d4878ed51efd3e64eb | 181cb42a2d40a759a6024ddd7c0de53827f8aad1 | refs/heads/master | 2020-05-22T02:12:57.400977 | 2017-05-25T21:03:43 | 2017-05-25T21:03:43 | 84,661,148 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 309 | cpp | main.cpp | #include <cstdio>
#include "genetic.h"
int main(int argc, char **argv){
if(argc != 2){
printf("Wrong Parameters\n");
printf("1- Population Type (b - Binary; i - Integer; r - Real)\n");
exit(0);
}
char type = argv[1][0];
srand(time(NULL));
AG(type);
return 0;
}
|
626996ae9a78727ed1aa3d64d07ab36246858759 | f699576e623d90d2e07d6c43659a805d12b92733 | /WTLOnline-SDK/SDK/WTLOnline_MediaUtils_structs.hpp | d2e9ffef720a0bf9a6f24a06e97daa54bcc9a96e | [] | no_license | ue4sdk/WTLOnline-SDK | 2309620c809efeb45ba9ebd2fc528fa2461b9ca0 | ff244cd4118c54ab2048ba0632b59ced111c405c | refs/heads/master | 2022-07-12T13:02:09.999748 | 2019-04-22T08:22:35 | 2019-04-22T08:22:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,048 | hpp | WTLOnline_MediaUtils_structs.hpp | #pragma once
// Will To Live Online (0.57) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "WTLOnline_Basic.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Script Structs
//---------------------------------------------------------------------------
... |
2f5b16066395c10f569d754539a6b2354fa4a01b | 91719805a27882be3acd432904dcb4ba8c4d971f | /src/glvidtex/GLVideoReceiverDrawable.cpp | a13c857bf9d506c6a79a39fffeb532120439156d | [] | no_license | svn2github/divz | 1af8366135434ea82f4c1a0aa9ca5d6f7e75c11a | 3c937a3dbccee49ee5cba9aae22f8f9a5e4356da | refs/heads/master | 2020-05-29T12:51:48.333902 | 2013-04-21T23:00:02 | 2013-04-21T23:00:02 | 25,669,105 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 704 | cpp | GLVideoReceiverDrawable.cpp | #include "GLVideoReceiverDrawable.h"
#include "VideoReceiver.h"
GLVideoReceiverDrawable::GLVideoReceiverDrawable(QString host, int port, QObject *parent)
: GLVideoDrawable(parent)
, m_host("localhost")
, m_port(7755)
, m_rx(0)
{
setHost(host);
setPort(port);
}
void GLVideoReceiverDrawable::setHost(const Q... |
ccd9e84cc97e6fac854bdc0a51d934393d0fe5f0 | 1216c957c1ac90c9b6b17c7a5a2fb2796150eeb9 | /LDR_BLYNK.ino | 23ed570a26e90e0c024bb1d5ea3dabaf2679fabe | [] | no_license | vettri-vel-mahendran/Arduino | b62e92e8236a1d2454cb8a46dba7c3c8f6ce2f3e | 85c9a0b64ecfeca71181ddc84b98b818b10bcf73 | refs/heads/master | 2021-08-10T08:22:40.895046 | 2020-08-10T17:32:11 | 2020-08-10T17:32:11 | 286,495,797 | 0 | 0 | null | 2020-08-10T16:24:38 | 2020-08-10T14:21:19 | C++ | UTF-8 | C++ | false | false | 708 | ino | LDR_BLYNK.ino | /*
LDR data blynk app
This example shows how to log LDR(light depended resistant) sensor data from esp module to blynk app.
created 28 Mar 2019
modified 28 Mar 2019
by Vettri vel Mahendran
*/
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char auth[] = "********"; //Authent... |
5425314f35378bc73f2f75abb53ef7c9c0fdc726 | c9757e5235bb28b3fb744661c268d72b7778c2ca | /src/main.cpp | 8735e229f7e3c0a9ab6f98f7b4394f2bd29c13a8 | [] | no_license | PorkShoulderHolder/control | 44ce0a1d3cb37d4f1135e4c110c370adb71ee594 | a48de21711bedb21fed88a59a451ca300d2e0ce1 | refs/heads/master | 2021-01-11T12:35:43.850828 | 2017-11-28T06:46:24 | 2017-11-28T06:46:24 | 76,264,589 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,826 | cpp | main.cpp | #include <stdio.h>
#include <opencv2/opencv.hpp>
#include <opencv2/aruco.hpp>
#include <string>
#include "ui.h"
#include "camera_calibration.h"
#include "network_manager.h"
#include "bot.h"
#include "state.h"
#include <iostream>
#include <stdexcept>
#include <stdio.h>
#include <string>
#include <map>
#include <cstdlib... |
c8428e13dd9aa0c071c04d949bc218e5b3024acd | 54cb5df6aeba8800887785cfb2ef88e847a6c1a1 | /code/sates/tc/tc_result.h | 87e00ba96fc83b533ad33b97b8610737a7159c94 | [
"BSD-3-Clause"
] | permissive | seokhwan/sates_cpp | 6b3eb254f095e03f08c2a8b4254fb6351c78606d | 8028c7490298d91a85e813118e9deb3c57ad4252 | refs/heads/master | 2021-08-18T02:49:09.918880 | 2021-01-08T04:36:50 | 2021-01-08T04:36:50 | 240,502,578 | 1 | 0 | null | 2020-02-15T12:15:34 | 2020-02-14T12:24:02 | C++ | UTF-8 | C++ | false | false | 1,323 | h | tc_result.h | //------------------------------------------------------------------------------
// Copyright (C) 2018 - Present, Seokhwan Kim (kim at seokhwan.net)
// This file is part of "the SATES"
// For conditions of distribution and use, see copyright notice in
// sates/sates.h
//------------------------------------------------... |
be4d4f14b7c345f9b7a77756e714637d31cba09c | e8dd649814ff7d583dec752a957f01ccaf4d156d | /TouchEventArgs.h | 038ebed771ccf727754b9aafb56f892fa3e96b19 | [] | no_license | wisemin01/201907SkillContest | bd915a52514a30be6e64e4766139a7cf6aa112ac | d3bcf3194d5c4461ab29dddde87b9b8521b21214 | refs/heads/master | 2020-06-21T05:31:55.946941 | 2019-07-26T07:07:32 | 2019-07-26T07:07:32 | 197,354,775 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 214 | h | TouchEventArgs.h | #pragma once
#include "EventArgs.h"
class TouchEventArgs : EventArgs
{
public:
Vector2 MousePosition = Vector2::Zero;
bool isEndProcess = false;
TouchEventArgs(Vector2 pos)
: MousePosition(pos)
{
}
};
|
64c53eb6192cd4e9dc43f5d35f7df5a02b7c9521 | 41f4079b9584f91b431ffaabbefe172b121f6b4f | /include/World.h | 4e2daf06c180d3cec78bcbbdb385ea5579020ec6 | [
"MIT"
] | permissive | recursivefaults/mustached-wight | f3dc9de242b7a8dbb8a11122f7164564c0c3f208 | 4d2e397aeb393e9776d27e03b7786b96663bdd90 | refs/heads/master | 2021-01-17T15:17:37.887865 | 2014-09-04T00:34:17 | 2014-09-04T00:34:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 334 | h | World.h | #ifndef WORLD_H
#define WORLD_H
#include <map>
#include "Entity.h"
#include "Map.h"
#include "Components.h"
#include "SpriteManager.h"
class World
{
public:
std::map<int, Entity *> entities;
std::vector<AABB *> debugBoxes;
Map *map;
SpriteManager manager;
protected:
privat... |
407142b06a8bdf30b87903d3220d512c542c35a0 | 22bd625b1a2ffc102761914469c9673f62cf8e78 | /benchmarks/src/cuda/shoc-master/src/common/StencilUtil.cpp | a69b8378148bf8701f348614059d34870c0e727e | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | purdue-aalp/gpgpu-sim_simulations | f1c32ac5a88c4120d326d1053c82e598ca2d05fe | 84113a92a4aacfdd1ddbc1beb2f01746060dfb05 | refs/heads/master | 2021-08-05T21:56:58.378115 | 2021-01-28T23:31:26 | 2021-01-28T23:31:26 | 154,350,995 | 6 | 15 | BSD-2-Clause | 2021-05-18T15:28:08 | 2018-10-23T15:18:42 | HTML | UTF-8 | C++ | false | false | 792 | cpp | StencilUtil.cpp | #include "StencilUtil.h"
template<class T>
void
StencilValidater<T>::PrintValidationErrors( std::ostream& s,
const std::vector<ValidationErrorInfo<T> >& validationErrors,
unsigned int nValErrsToPrint ) const
{
unsigned int nErrorsPrinted = 0;
for( typename std::vector<V... |
94d3a132f8b6a94863ab7e21854c242c773bfc99 | 4a1b388fc7254e7f8fa2b72df9d61999bf7df341 | /ThirdParty/ros/include/tf2_msgs/msg/detail/tf2_error__builder.hpp | a4c3ca0662d25419f1a954bf8cd68c95c5e175f5 | [
"Apache-2.0"
] | permissive | rapyuta-robotics/rclUE | a2055cf772d7ca4d7c36e991ee9c8920e0475fd2 | 7613773cd4c1226957603d705d68a2d2b4a69166 | refs/heads/devel | 2023-08-19T04:06:31.306109 | 2023-07-24T15:23:29 | 2023-07-24T15:23:29 | 334,819,367 | 75 | 17 | Apache-2.0 | 2023-09-06T02:34:56 | 2021-02-01T03:29:17 | C++ | UTF-8 | C++ | false | false | 1,473 | hpp | tf2_error__builder.hpp | // generated from rosidl_generator_cpp/resource/idl__builder.hpp.em
// with input from tf2_msgs:msg/TF2Error.idl
// generated code does not contain a copyright notice
#ifndef TF2_MSGS__MSG__DETAIL__TF2_ERROR__BUILDER_HPP_
#define TF2_MSGS__MSG__DETAIL__TF2_ERROR__BUILDER_HPP_
#include "tf2_msgs/msg/detail/tf2_error__... |
c818f2cc56868c40a70063e035ea0da4e7770fc9 | dead9ba62a993f66dcfad13552a0b684f9342d9d | /src/util/game.h | 4f21f0e506272518c5078c39a6071a1c4d0add2e | [] | no_license | timostrating/PokeWorld | 32682cff9a54c6cf424c52d6f8622afb54fc1eca | 4c00c3dba9b875ff9ffb5c9920742f09735ada00 | refs/heads/master | 2021-06-24T15:51:29.497785 | 2021-01-16T21:03:47 | 2021-01-16T21:03:47 | 192,098,963 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 200 | h | game.h | //
// Created by sneeuwpop on 16-6-19.
//
#pragma once
#include <GLFW/glfw3.h>
#include "interfaces/screen.h"
namespace GAME
{
bool init();
void run();
void setScreen(Screen *screen);
} |
c9ed07a20f3539cde332e54f82ddb4e661119ff0 | 6dcaf7fb1be6064049f0c6531e153e7d4139cfbb | /src/vocab.h | 7671e7325033530fccb702650c6c035ba8e927b7 | [] | no_license | unixnme/fast_corpus | c912772b944236fb04efd94ee0907dbbcbd31081 | 82c92931f73cd2403f961f00c74a1eaf4c285b6f | refs/heads/master | 2020-05-24T20:15:21.553978 | 2019-06-19T04:14:45 | 2019-06-19T04:14:45 | 187,451,582 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 406 | h | vocab.h | //
// Created by Young Mo Kang on 2019-05-18.
//
#ifndef FAST_CORPUS_VOCAB_H
#define FAST_CORPUS_VOCAB_H
#include <string>
#include <unordered_map>
#include <vector>
#include "dictionary.h"
class Vocabulary {
public:
explicit Vocabulary(const std::string &corpus_file);
private:
std::string corpus_file;
... |
24412d28024e516e3e08c1e54310108f0e21bf36 | c96044805d7e30806696ecb482582c25d290f114 | /src/dota/entity/CTEDecal.h | 7132d4f42be3bf9b2bda6094b2ab22f411fbdf19 | [] | no_license | exjam/dota2-replay-cpp | f49fbbac2b2d29da22d236a1e8469f2477a8d494 | a0c445d4b591e354395eb662281445bb5bbb01c9 | refs/heads/master | 2021-03-12T21:22:25.915447 | 2015-02-12T23:39:22 | 2015-02-12T23:39:22 | 28,197,953 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 345 | h | CTEDecal.h | #pragma once
#include <cstdint>
#include "clientclass.h"
#include "vector3f.h"
#include "CBaseTempEntity.h"
namespace dota
{
struct CTEDecal : public CBaseTempEntity
{
Vector3f m_vecOrigin;
Vector3f m_vecStart;
uint32_t m_nEntity;
uint32_t m_nHitbox;
uint32_t m_nIndex;
};
DeclareClie... |
9aaba4706172089245a67f5593bf8e3113ab8f2e | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/webrtc/net/dcsctp/packet/chunk/shutdown_complete_chunk_test.cc | 253900d5cd10fb8f779598809fbaacb0ad47b004 | [
"BSD-3-Clause",
"LicenseRef-scancode-google-patent-license-webrtc",
"LicenseRef-scancode-google-patent-license-webm",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | C++ | false | false | 1,179 | cc | shutdown_complete_chunk_test.cc | /*
* Copyright (c) 2021 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
d5e949052b7365d26f49adfdb0e99be53284432e | 2ede2d49cebb7b85ec30b5765f3e430a50d8f221 | /mpi/mpi_myrank.cpp | bcb7afd52cbe32ff8c75634a33524413a60fe962 | [] | no_license | imogenproject/gpuImogen | 6b291b867743315185ebafd191f51160fa5abe7f | 8dee8ef289725e79af760d2ead429267c4d0e79b | refs/heads/master | 2021-04-19T00:21:38.558687 | 2020-12-18T23:58:41 | 2020-12-18T23:58:41 | 2,936,929 | 5 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 462 | cpp | mpi_myrank.cpp | #include "stdio.h"
#include "mpi.h"
#include "mex.h"
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
{
if((nlhs != 1 ) || (nrhs != 0)) { mexErrMsgTxt("int32 N = mpi_myrank();"); }
int bee;
MPI_Comm_rank(MPI_COMM_WORLD, &bee);
mwSize dims[2]; dims[0] = 1; dims[... |
b68a6d1891e8ef6d2df35127f69e6fcfcf6dcc9b | 6fb3b99f6c45870a2f888e5f147bedc53410412f | /src/MonaLisa.cpp | 1e5915762eb0672ce60b88812624df9ff85a60b9 | [] | no_license | VienVan/MonaLisa | 7fa445c8337da505ded89356ee0ed80879aab42a | 0a8fe8817b44565e579247e98d2a79c54589b303 | refs/heads/master | 2021-01-17T20:59:20.730680 | 2017-03-28T06:41:06 | 2017-03-28T06:41:06 | 84,154,962 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 352 | cpp | MonaLisa.cpp | //#define _CRT_SECURE_NO_WARNINGS
//
//#include <iostream>
//#include "ControlModule.h"
//using namespace std;
//
//
//int main() {
// cout << "CIS 22C\nFinal Project\nTeam #6\nMembers:" << endl;
// cout << "\tYun Cao, Vincent Ha, Jimmy Nguyen, Kota Iwamoto, Vien Van\n";
//
//
// ControlModule runner;
// runner.userInt... |
eb03bb79530bbbca56346f7b35228cd51dacc84c | 3437fb257545a0bf6d25a76ada6047f7c4686865 | /NewCoder/6.cpp | 35e53a533de6e4a1167fd79fc33a25019c8f64fb | [] | no_license | whing123/C-Coding | 62d1db79d6e6c211c7032ca91f466ffda4048ad9 | 3edfbad82acd5667eb0134cb3de787555f9714d8 | refs/heads/master | 2021-01-23T01:26:17.228602 | 2019-10-03T16:21:43 | 2019-10-03T16:21:43 | 102,434,473 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,480 | cpp | 6.cpp | /* *题目:
* 字符串最后一个单词的长度
* *思路:
*
*/
#include<iostream>
#include<string>
using namespace std;
string split(string &str)
{
string::size_type pos, pre = 0;
int size=str.size();
for(int i=0; i<size; i++)
{
pos = str.find(' ',i);
if(pos != string::npos)
{
... |
629dedb134f3339345362cd84566ea03c94c50cf | d76ab9fddaf7b18f697f18cd7c664ddf271e2c27 | /async/main.cpp | 0e886a644cdbcec8aa28699e9dd388269da9a5b4 | [] | no_license | pgplus1628/mpi-hack | 49f81044f80e3c6a076d1a9a06e91e64f1e9072d | 8ec61e0396325fb224e30d1d3df2192651df4241 | refs/heads/master | 2021-05-29T20:09:05.463866 | 2015-11-06T14:49:18 | 2015-11-06T14:49:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,502 | cpp | main.cpp | #include "mpi.h"
#include <iostream>
#include <vector>
#include <glog/logging.h>
#include <gflags/gflags.h>
#include <functional>
#include <unistd.h>
#include "basic_types.hpp"
#include "dvec.hpp"
#include "dc.hpp"
DEFINE_int32(bytes_mb, 32, " send recv bytes to each machine in mb.");
DEFINE_int32(sleep_ms, 0, " sle... |
ed9c6cc225814e601da8edc595f82356977565d4 | 40e036ff56b121a6879b6f801064a9e452f27bea | /ConsoleApplication2.cpp | 6d4a542941f85944d2a252b644133edb1c11b2ea | [] | no_license | xiangbaobaojojo/WC | 442fdfae1bc9d473ca3810c34478cfceabe278ca | 62889c667e0db5f024af9218498e88460527f51a | refs/heads/master | 2021-07-02T13:52:22.338489 | 2017-09-20T01:29:24 | 2017-09-20T01:29:24 | 104,094,628 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,125 | cpp | ConsoleApplication2.cpp | #include<stdio.h>
#include<stdlib.h>
#include "stdafx.h"
#include "malloc.h"
#include "windows.h"
#include "string.h"
#define MAX 30
typedef struct node
{
char s[30];
struct node* next;
int count;
}node, *List;
int FindInDict(node **dict, char *s);
void InsertToDict(node **dict, char *s);
void F... |
0248e0f8484576d40d5ac4ad230d748a14da171a | 9f16950a070174c4ad6419b6aa48e0b3fd34a09e | /users/marcel/grooop-thetribe/890-thetribe-video-landscape.cpp | 9330ff460e93fdb1803d102506ffdf8c953b42fe | [] | no_license | marcel303/framework | 594043fad6a261ce2f8e862f921aee1192712612 | 9459898c280223b853bf16d6e382a6f7c573e10e | refs/heads/master | 2023-05-14T02:30:51.063401 | 2023-05-07T07:57:12 | 2023-05-07T10:16:34 | 112,006,739 | 53 | 1 | null | 2020-01-13T18:48:32 | 2017-11-25T13:45:56 | C++ | UTF-8 | C++ | false | false | 58,931 | cpp | 890-thetribe-video-landscape.cpp | #include "890-performance.h"
#include "audioGraph.h"
#include "graph_typeDefinitionLibrary.h"
#include "Noise.h"
#include "objects/audioSourceMix.h"
#include "objects/audioSourceVorbis.h"
#include "Path.h"
#include "Quat.h"
#include "soundVolume.h"
#include "textScroller.h"
#include "vectorLines.h"
#include "vfxGraph.h... |
68ffbc74b9ec4dccebcdc56a891f44fe9ccc9dd2 | 2550a0de6c2285d94fd3f42b24f8f2a6696045c3 | /Normal/221/C.cpp | 7f2858337e438b97029b1b6dfaa2cc13fb393ee5 | [] | no_license | Mohd-3/Codeforces-Solutions | a2b26cf2072de7cdc0d2e754d7f0df0bad50174f | 97b0caf353a811f134a4c0206fd3c74fb4707149 | refs/heads/master | 2020-09-01T22:51:20.581848 | 2019-11-04T00:25:09 | 2019-11-04T00:25:09 | 219,078,353 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 620 | cpp | C.cpp | #include <bits/stdc++.h>
#define endl "\n"
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
using ll = long long;
const int INF = 0x3f3f3f3f;
using namespace std;
int n, arr[100001], sorted[100001], cnt;
int main() {
scanf("%d", &n);
for (int i = 0; i < n; ++i) {
scanf("%d", arr... |
b59139b962098e82a00836b6e47bc92fce02bffe | 5769d6baeb0f16f64506f6baee319906878c09e0 | /dfs_bfs/generate_permutations/GeneratePermutations.cpp | 5b54312c228e7715cf0068bf3de5ecc5a763a94b | [] | no_license | Tsdevendra1/Algorithms | ff0b7141384b00e174c605fc35ef5debdf23f95d | 6f396c8989a2df788c53c7b81a4632fb1d0e9b5b | refs/heads/master | 2023-01-06T10:38:15.853153 | 2020-10-20T19:21:41 | 2020-10-20T19:21:41 | 263,338,663 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,552 | cpp | GeneratePermutations.cpp | //
// Created by Tharuka Devendra on 08/08/2020.
//
#include "GeneratePermutations.h"
#include "iostream"
#include "vector"
#include "unordered_set"
#include "queue"
#include "../../Utils.h"
using namespace std;
vector<vector<int>> perms1(const vector<int> &nums) {
vector<vector<int>> result;
queue<vector<... |
fbb84bf244984dc47d9cc858c8b164fbedc730e6 | 91e5679af627543e055726d0df921c82ad75dac9 | /src/Compare.h | b67c957433597599b0c09526527cca6aaa18ef05 | [
"MIT"
] | permissive | KatOfCats/w2rap-contigger | c23cdba059ddcc1b091ca5a961234eaf54d2d287 | 5c9df00fd133b31edf391a162a8c76582796d3b5 | refs/heads/master | 2021-07-07T23:11:23.287522 | 2020-08-31T15:59:30 | 2020-08-31T15:59:30 | 181,926,110 | 0 | 0 | MIT | 2019-04-17T16:09:53 | 2019-04-17T16:09:53 | null | UTF-8 | C++ | false | false | 1,885 | h | Compare.h | ///////////////////////////////////////////////////////////////////////////////
// SOFTWARE COPYRIGHT NOTICE AGREEMENT //
// This software and its documentation are copyright (2010) by the //
// Broad Institute. All rights are reserved. This software is supplied //
... |
5ff15d7a08f1574edb6760fb08997b3f91cc04d1 | 8885341976b143285c839095dfe06a72659eacf2 | /Code C/chi la sap xep.cpp | 69c9e0547fe476c55db1c61be6421a11b165dbac | [] | no_license | nguyendohoangkhoi/CodeC | f4cc41329dfc8b47a830dcabbadf5b79ceca8c6a | 1fcf66b0cccb74c9dc2a89f156fbb2d6b43c447b | refs/heads/master | 2023-04-30T20:29:28.873389 | 2021-05-29T13:30:07 | 2021-05-29T13:30:07 | 160,067,230 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,157 | cpp | chi la sap xep.cpp | #include <iostream>// ham vao ra co ban
#include <cmath>// de dung ham toan hoc
#include <cstdlib>// de dung cac lam co ban
#include <ctime>// de dung thoi gian
#include <cstring>// de dung chuoi ( C )
#include <string>// de dung chuoi
#include<iomanip>// de dung ham setw
#include<stack>// de dung ham ngan xep
#include... |
c338537a555aad5d4037db4f1c42938ba9dd37d6 | 0319cf358118101879a723910213a8cf8d4d1a0d | /dragon/operators/training/update_ops.h | 43ad12679fe5038e3776956b875a04d5b2ea19c4 | [
"BSD-2-Clause"
] | permissive | ORG-MARS/dragon | d1e42afe1a5e0ba6191fab2c2518af14571c7911 | 6bfe3e73ecb9d95030d12df2efed046551a396e1 | refs/heads/master | 2023-02-28T05:45:12.172455 | 2021-02-04T16:06:31 | 2021-02-04T16:06:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,669 | h | update_ops.h | /*!
* Copyright (c) 2017-present, SeetaTech, Co.,Ltd.
*
* Licensed under the BSD 2-Clause License.
* You should have received a copy of the BSD 2-Clause License
* along with the software. If not, See,
*
* <https://opensource.org/licenses/BSD-2-Clause>
*
* ---------------------------------------------------... |
9b9469815a6ef193b954d8b0b6fd638248d6ef9d | 6c154d9f8db9bd4da5a1f275376393cc3dcce451 | /wordpresspost.h | c2d520236f41117a3b3e610f8af5d7c244a34ed0 | [] | no_license | kshlm/FreOffice-Blog-Plugin | bb53d1126edda93643e077fe5161f5517e4df286 | baeba614cd29e55c37345b13cb34590d57b80be7 | refs/heads/master | 2020-05-19T03:20:48.101541 | 2011-07-13T06:01:20 | 2011-07-13T06:01:20 | 833,311 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,660 | h | wordpresspost.h | /*
* Copyright (c) 2010 Kaushal M <kshlmster@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
... |
4e971ac556f5073af5409ae8fe920dd70a583d3f | 6099e0ebd8e78311c5e3dfae1a4678c2a4d51873 | /3rdParty/rocksdb/6.27/utilities/transactions/lock/range/range_tree/lib/locktree/lock_request.cc | ec7bd04dc9da7412c657573abe74bcd30ff6a939 | [
"Apache-2.0",
"AGPL-3.0-only",
"GPL-2.0-only",
"BSD-3-Clause",
"ICU",
"LGPL-2.1-or-later",
"OpenSSL",
"GPL-1.0-or-later",
"Zlib",
"MIT",
"ISC",
"CC0-1.0",
"BSL-1.0",
"LicenseRef-scancode-autoconf-simple-exception",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scan... | permissive | vishalbelsare/arangodb | be647e192dd7505a9907263892fe65112ce81d2d | a6bd3ccd6f622fab2a288d2e3a06ab8e338d3ec1 | refs/heads/devel | 2023-09-05T13:34:28.350423 | 2021-12-27T07:16:58 | 2021-12-27T07:16:58 | 137,596,199 | 0 | 0 | Apache-2.0 | 2021-12-28T14:39:52 | 2018-06-16T16:54:10 | C++ | UTF-8 | C++ | false | false | 17,700 | cc | lock_request.cc | /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=2:softtabstop=2:
#ifndef ROCKSDB_LITE
#ifndef OS_WIN
#ident "$Id$"
/*======
This file is part of PerconaFT.
Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved.
PerconaFT is free software: ... |
36366948c38eb68a55eec2d76182a20ecdbd2492 | c26ad913f9408b0cf713fcac1e9071727db87a37 | /codeforces/50/A.cpp | a955853324f95d831f07ee70f7f1e333864ad1d5 | [] | no_license | anuragjha8/Codeforces | 40fe895b09b57f07a96528c71a0d66d33804f488 | 7805cadf24d3830d074864a6540bb959a065a63e | refs/heads/master | 2023-02-19T06:07:27.821578 | 2020-08-22T12:06:00 | 2021-01-22T06:09:49 | 331,848,407 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 141 | cpp | A.cpp | #include <iostream>
using namespace std;
int main() {
int m,n;
cin >> m>>n;
int l=m*n;
if(l%2==1)
l=l-1;
l=l/2;
cout<<l;
return 0;
} |
fad6d3d42eb8d0a73eec495b44a86da9b40c4dce | 797903547ae39279d998fd96ac2b77fc47c4e115 | /GCVM.cpp | d7303750e194be615cba3e9092c96d50c67c5496 | [] | no_license | agsilvarafael/ImplementacaoTCC | 4022c728bf3b7d563cd6b475afe1db1675911bff | 4d20ea47d57d3f85f36e247b368af016a580af67 | refs/heads/master | 2020-12-10T18:37:59.793384 | 2020-01-14T12:30:03 | 2020-01-14T12:30:03 | 233,674,687 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,291 | cpp | GCVM.cpp | #include<bits/stdc++.h>
using namespace std;
class Grafo {
public:
int qtdArestas;
int qtdVertices;
vector<pair<int,int>> arestas;
Grafo(){
string s;
int a,b;
//Ler comentarios ate encontrar o "p"
cin >> s;
while(s.compare("p")!=0){
... |
5ce25880c3bf24125291e8c90bdd997824c3d3ed | 65b0c79a170360edcfd7371e364e1d8e43c30340 | /GApp.h | 3045e3f636d8c675609672309ea726b3ba5f4802 | [] | no_license | SoylentGraham/GutGut | 85c4a5d6008f79888fecb77158f9a3ce2b0ce81f | 9d8a1a81258f784720f62e5cb752322721a14828 | refs/heads/master | 2021-01-01T05:25:13.415894 | 2016-04-13T09:58:23 | 2016-04-13T09:58:23 | 56,140,833 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,610 | h | GApp.h | /*------------------------------------------------
GApp Header file
-------------------------------------------------*/
#ifndef __GAPP__H_
#define __GAPP__H_
// Includes
//------------------------------------------------
#include "GMain.h"
#include "GCamera.h"
#include "GMenu.h"
#include "GStats.h"
#include "... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.