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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9fb46227b3c9bf356ac6993d444519438325ed0e | 19e7076b4ace7a7f0380284bed5eb1530514a166 | /Stack_Queue/stack_linked_list.cpp | 0c0f464319803b49280774ee665d3aa8164b6143 | [] | no_license | mayur-aggarwal/Data-Structures | a78808a5800e61c2090b2108dd928ddde141a8f0 | b9bc4f7bb9a3d9e5532c106f8436325df06f2d61 | refs/heads/master | 2022-11-20T12:49:25.936766 | 2022-11-14T11:53:50 | 2022-11-14T11:53:50 | 230,951,973 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 698 | cpp | stack_linked_list.cpp | #include <iostream>
using namespace std;
//A structure to represent stack
struct stack{
int data;
struct stack* next;
};
struct stack* top;
int isEmpty()
{
return (top == NULL);
}
void push(int data)
{
struct stack* temp;
temp = new stack();
temp->data = data;
temp->next = top;
top =... |
790f9fe28631bcf66701a3a0308be4561a532b0f | 1eddfc58034e70dbf32c93c5ecdfc47e377eca84 | /arrayStabilization.cpp | 16db6f504242040c721569eb937e7ed027968eb7 | [] | no_license | Rodagui/CodeForces-Solutions | ec90ad3806ca6025c9f588eb298b33a47f097bd4 | fbcce297deb645ea8f6d7a30297071a12e447489 | refs/heads/master | 2022-07-27T21:36:20.656936 | 2022-07-15T00:54:17 | 2022-07-15T00:54:17 | 178,289,421 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 572 | cpp | arrayStabilization.cpp | /*B. Array Stabilization*/
#include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
int min = 10000000;
int aux;
int tam;
cin >> tam;
vector <int> nums(tam);
for (int i = 0; i < tam; ++i)
{
cin >> nums[i];
}
if(tam == 2)
... |
56ab3987896b475342814530d6886a9a7265496c | 55f54c9d18e3781255c157d63381579261dde405 | /Code/Core/Math/Conversions.h | de1205df8da97e76d48b85132ea77b131218de32 | [
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | fastbuild/fastbuild | 8f5f94802c6cce54d903936c8551fd8791479001 | 1b3935069d29b965a9d1d6798d9cf651319dbe87 | refs/heads/main | 2023-08-22T19:28:12.587510 | 2023-08-19T02:56:25 | 2023-08-19T02:56:25 | 32,647,696 | 1,175 | 409 | null | 2023-08-23T22:40:15 | 2015-03-21T19:53:07 | C++ | UTF-8 | C++ | false | false | 1,034 | h | Conversions.h | // Conversion.h
//------------------------------------------------------------------------------
#pragma once
// Includes
//------------------------------------------------------------------------------
#include "Core/Env/Types.h"
// Math
//-----------------------------------------------------------------------------... |
dcf41752379b9a59d36058593f5450f49fbb784d | f13bcf309973ed4713ef39067e7746f474ab8077 | /src/widget2.h | cb163344a831fdd33a68dbf3de79c43d0cd832d4 | [] | no_license | ForeverDavid/MedicalVisualization | ab84a76b7232ff40e187d354fee22a16f26ac599 | 55dfd09d40cbe3b2e719daf847d85057c78f9cad | refs/heads/master | 2020-04-06T16:48:16.902837 | 2018-11-14T18:10:23 | 2018-11-14T18:10:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 801 | h | widget2.h | #ifndef WIDGET2_H
#define WIDGET2_H
#include <QWidget>
#include <string>
using namespace std;
class Controller;
namespace Ui {
class Widget2;
}
class Widget2 : public QWidget
{
Q_OBJECT
public:
explicit Widget2(QWidget *parent = 0);
~Widget2();
Ui::Widget2* getUi();
void setController(Controll... |
b8a20ff5db406b0ee4c785230472f57f15b21e39 | 80cf6334fb1330b74998423da1bd1cd7700d42f5 | /cpp_flySingleTracer_multiTask/classes/MStringTool.hpp | bea046519a78a05d002842ec5677a24cad787049 | [
"MIT"
] | permissive | yzyw0702/flySleepPrograms | 144750e58b83699b472d5b0ffe1feb30e05f6c3a | 402a31261963992dc8439e4326cb7bca5487c684 | refs/heads/master | 2020-04-17T04:30:44.112879 | 2019-01-19T05:27:10 | 2019-01-19T05:27:10 | 166,233,063 | 2 | 0 | null | 2019-01-18T03:09:17 | 2019-01-17T13:46:51 | Python | UTF-8 | C++ | false | false | 3,580 | hpp | MStringTool.hpp | //===========================
//====> MStringTool
//===========================
#include <iostream>
#include <vector>
#include <string>
using namespace std;
#ifndef _MSTRINGTOOL_HPP_
#define _MSTRINGTOOL_HPP_
namespace toolstring {
void printStringList(vector<string>& v) {
for (size_t i = 0; i < v.size... |
610fcf4fda0c1628778d9f7bae935eac981fb9fd | 7ff7d609ee7917990479a60337903484f3f02f4e | /myshell.cpp | e543f95ef66f528859922db507fc7fc3d0f37ad4 | [] | no_license | qhuang266/myshell | 88e3f78893059639e923d418d055396bf1f4817d | ff8924d7b27c19d8e986dba7370fe54ab346bc4a | refs/heads/master | 2021-01-10T04:44:47.813641 | 2015-10-02T14:29:45 | 2015-10-02T14:29:45 | 43,557,248 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,650 | cpp | myshell.cpp | /**
* myshell
* @author: QianHuang
* about input command:
* 1. no backtick `
* 2. no append redirect >> <<
* 3. no
*/
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/wait.h>
#include "command.h"
#define ARGV_MAX 100
#define MAX_LEN 256
enum STATE
{
ONE_SPACE,
I... |
caea5dc6189b2cff6c21be7025e6e8d1b37907af | c509ec170f31580895c457c29e78463866397c17 | /offline/Examples/FirstAlg/src/RWExample/RWExample.h | 7c9a52596602f043935cbc7c7261921b319ff80b | [] | no_license | feipengsy/lodestar | 9e2c35cdbb6edf7ce31eff5fcf05412ff7f8453e | e05c01f15d8b3aeed265210a910e475beb11d9b6 | refs/heads/master | 2021-01-09T21:47:12.332609 | 2015-06-24T14:54:59 | 2015-06-24T14:54:59 | 36,277,481 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 322 | h | RWExample.h | #ifndef RW_EXAMPLE_H
#define RW_EXAMPLE_H
#include "Sniperkernel/AlgBase.h"
class RWExample : public AlgBase {
public:
RWExample(const std::string& name);
~RWExample();
bool initialize();
bool execute();
bool finalize();
private:
int m_iEvt;
};
#endi... |
963fcc05b6265352cbe57f17832abf5a36f522e0 | 71e7675390503901564239473b56ad26bdfa13db | /src/iofwdutil/stats/CounterConfig.cpp | f3a0f1c6eba213bb9459aa2a8604db6476169f51 | [] | no_license | radix-io-archived/iofsl | 1b5263f066da8ca50c7935009c142314410325d8 | 35f2973e8648ac66297df551516c06691383997a | refs/heads/main | 2023-06-30T13:59:18.734208 | 2013-09-11T15:24:26 | 2013-09-11T15:24:26 | 388,571,488 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 874 | cpp | CounterConfig.cpp | #include "iofwdutil/stats/CounterConfig.hh"
namespace iofwdutil
{
namespace stats
{
CounterConfig::CounterConfig() :
log_(IOFWDLog::getSource("counterconfig")),
all_mode_(false),
all_mode_set_(false)
{
}
CounterConfig::CounterConfig(const CounterConfig & rhs) :
counter_config_(rhs.counter_con... |
d931b39ffa0681ebc8c8bed0e01a9720b169973c | fd9e81f3609ec9bd50f9dbcf2581bcdf99abe192 | /src/examples/pipeline/pipelinenodefactory.cpp | 5935e8ce461b6e2c2f58d68711e457002ec7f9c0 | [] | no_license | BlackStar-EoP/eop-node-editor | 8ca3275698264ffb9b1499f4bd36415c74c65626 | 02237f2adbf0243c9dc9a7835bf3bb7486b83d8d | refs/heads/master | 2022-05-09T13:16:54.063299 | 2022-04-18T18:27:04 | 2022-04-18T18:27:04 | 114,267,992 | 18 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 1,603 | cpp | pipelinenodefactory.cpp | #include "pipelinenodefactory.h"
#include "materialnodemodel.h"
#include "material.h"
#include "rendertargetmodel.h"
#include "rendertarget.h"
PipeLineNodeFactory::PipeLineNodeFactory()
{
register_node_type(MaterialNodeModel::TYPE_NAME);
register_node_type(RenderTargetNodeModel::TYPE_NAME);
}
NodeMode... |
4b97f55ff8fbaa23a6942c18cd6670cb9139c1a3 | ea494a1c796276934ad206e37c19af567a0da5f7 | /WorldGenerator/src/Ellipse.cpp | bd8f741be32740adafb6a96a476d22d2a5787a73 | [] | no_license | jorgeayllon1/WorldGenerator | 8b87ffbda6810d26531a24c6db60c8c9e90a2c52 | e5fcadd0a665cf07b50bb7c232bdd3d7e2e64acd | refs/heads/master | 2023-03-17T20:59:44.243064 | 2019-04-15T17:32:08 | 2019-04-15T17:32:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 548 | cpp | Ellipse.cpp | #include "Ellipse.h"
void Ellipse::sedessiner()
{
std::string const nomFichier("output.svg");
std::ofstream monFlux(nomFichier.c_str(),std::ios::app);//ouverture de fichier, code identique à celui d'openclassroom
if(monFlux)
{
monFlux.seekp(0,std::ios::end);
monFlux<<"\n<ellipse cx=\""... |
f646ad6f98611a27b08d4184269497f07e6c2383 | 4e47655b035b285f9c2194a434fe1c1c8f0ae144 | /Classes/PrologScene1.cpp | 1e3a3f428d138757457c2c23f45df696e2638a08 | [] | no_license | chanyipk/lucishistoria | 823b21b699b3eba76df6cfadda7530b70262951f | f81f56e48c455fb29ce17a3fbc6557192009a15e | refs/heads/master | 2021-09-05T03:59:47.179023 | 2018-01-24T02:04:03 | 2018-01-24T02:04:03 | 103,842,596 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,701 | cpp | PrologScene1.cpp | #include "MapScene.h"
#include "PrologScene1.h"
#include "PrologScene2.h"
#include "Jdata.h"
Jdata* pP;
Scene* PrologScene1::createScene()
{
// 'scene' is an autorelease object
auto scene = Scene::create();
// 'layer' is an autorelease object
auto layer = PrologScene1::create();
// add layer as a child to scen... |
74a7290a337a2b8ce29b6867a85682fbcf43375e | e137c414883f56a3c80e382426aac7bde7d1f056 | /FlowTree/Helpers.h | d95c1830a53683084966e982dc1655942ab8dccf | [] | no_license | simonyanmikayel/FlowTree | 1d53d9c13dbde3f13b77caaab00e9acf6660012e | df29a3332c33df0c6da1dbad9e66e62ae453f82a | refs/heads/master | 2023-08-09T11:34:29.679729 | 2023-07-23T17:19:49 | 2023-07-23T17:19:49 | 232,781,083 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,399 | h | Helpers.h | #pragma once
struct LOG_NODE;
struct FLOW_NODE;
extern HWND hwndMain;
extern FLOW_NODE* gSyncronizedNode;
#define WM_UPDATE_FILTER WM_USER + 1000
#define WM_INPORT_TASK WM_USER + 1001
#define WM_MOVE_SELECTION_TO_END WM_USER + 1002
#define WM_SHOW_NGS WM_USER + 1... |
b55575bd45826b69530444aebaeda2211bbaef02 | 4d24cffbff8f60b00cd1780a96a12626399d1df8 | /combination-sum.cc | 4c617d93836b5e238bccd08cbb301bc581af3033 | [
"MIT"
] | permissive | tyrowang/CC | a37a4d4925952f8b11b810f8cb47863b4a277a06 | 9be3602a40567187ee27eb744773f8092c36b6b6 | refs/heads/master | 2021-01-10T00:53:10.338843 | 2014-08-18T02:50:35 | 2014-08-18T02:50:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 857 | cc | combination-sum.cc | class Solution {
public
void one(vectorint &candidates, vectorint& tmp, vectorvectorint &ret, int tail,int target){
for(int i=tail;i=0;i--){
if(target-candidates[i]==0){
vectorint tmp2(tmp);
tmp2.insert(tmp2.begin(),candidates[i]);
ret.push_ba... |
baf5184df5711fd05b088de671e50e473eca9a07 | e9b434b024995bebb62e016d65b407a83b8454de | /BerserkFear/Intermediate/Build/Win64/UE4Editor/Inc/BerserkFear/BerserkFearGameMode.generated.h | 04259ba6a846ed870eeab1a1c2331874ab63f600 | [] | no_license | berserkturtle/TurtleSpam | 2f5b5a95b3fece0cd39abfc0956bd8e0ffaff738 | 82a997e220a4a974c24f9bcb4c357426d5d69991 | refs/heads/master | 2020-05-23T20:59:50.114376 | 2017-03-14T07:52:37 | 2017-03-14T07:52:37 | 84,789,116 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,484 | h | BerserkFearGameMode.generated.h | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
/*===========================================================================
C++ class header boilerplate exported from UnrealHeaderTool.
This is automatically generated by the tools.
DO NOT modify this manually! Edit the corresponding .h files instead!
=... |
f6bf3425801f623a274cf3fd9df171c24c18ffff | 815486fd4ac8010bebce3d7cce1081d56a54179c | /exp01/task15.cpp | fd9e8f78e37f729ddab29e5e4e9166e4583ab658 | [] | no_license | Jinyers/homework | ca7d567bc3d4f2125be11eabf7808506960e6085 | 1331a6e145a33501abaa1dc3bda19f9b3dad99d2 | refs/heads/master | 2023-02-05T18:00:30.988969 | 2020-12-21T22:57:11 | 2020-12-21T22:57:11 | 308,596,044 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 896 | cpp | task15.cpp | // Найти сумму квадратов положительных элементов массива
// целых чисел, расположенных на четных позициях.
#include <iostream>
#include "math.h"
using namespace std;
int main()
{
unsigned int size = 0;
cout << "Введите размер массива: ";
cin >> size;
int* massive = new int[size];
for (int i=0; i<size; i++)... |
15342bd2a0095bcc4d58ca981fb12778d3083d75 | d28097530c05e0559a68b8e8c8548571667c4bb7 | /3001_TIP_NEW/TA_BASE/transactive/core/types/test/test_ta_types_solaris_linux.cpp | 15378c38128cfc145f8d2889fbcb5fcfdea5634e | [] | no_license | lslProjectOrg/Projects | 88d941574265b86c88806fb2997a1aeb5bd84398 | f366eb01a0c27cee10cce6fb6c7dd0bc3d30126f | refs/heads/master | 2021-01-01T19:21:12.510332 | 2014-03-20T14:02:24 | 2014-03-20T14:02:24 | 14,391,288 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,483 | cpp | test_ta_types_solaris_linux.cpp | /**
* The source code in this file is the property of
* Ripple Systems and is not for redistribution
* in any form.
*
* Source: $File: //depot/3001_TIP_NEW/TA_BASE/transactive/core/types/test/test_ta_types_solaris_linux.cpp $
* @author: Ripple
* @version: $Revision: #2 $
*
* Last modification: $Dat... |
9e1f616749521b9fa4ba7f9de01a0e897a98bbf4 | c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64 | /Engine/Plugins/Editor/USDImporter/Source/UnrealUSDWrapper/Source/Public/UnrealUSDWrapper.h | 2ef7d590761416c9549fb51acdfaac081c3d8acf | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | windystrife/UnrealEngine_NVIDIAGameWorks | c3c7863083653caf1bc67d3ef104fb4b9f302e2a | b50e6338a7c5b26374d66306ebc7807541ff815e | refs/heads/4.18-GameWorks | 2023-03-11T02:50:08.471040 | 2022-01-13T20:50:29 | 2022-01-13T20:50:29 | 124,100,479 | 262 | 179 | MIT | 2022-12-16T05:36:38 | 2018-03-06T15:44:09 | C++ | UTF-8 | C++ | false | false | 8,370 | h | UnrealUSDWrapper.h | #pragma once
#include <string>
#include <vector>
#include <memory>
#ifdef UNREALUSDWRAPPER_EXPORTS
#if _WINDOWS
#define UNREALUSDWRAPPER_API __declspec(dllexport)
#elif defined(__linux__) || defined(__APPLE__)
#define UNREALUSDWRAPPER_API __attribute__((visibility("default")))
#else
#error "Add definition fo... |
cab1ad4fceb782c8e85021e4000e0c6214363161 | 4de61cba1855fc2528857a56938d06f8be3f792b | /Linux/file/rename.cpp | 7933e2c7ab5dc5011501e7d254e8056593b3ee84 | [] | no_license | chenfan2014/CFgit | ea7dd863bddc3232725c6bebc38d025d3812870c | b6e06589537862e634b1f710d8e9221244a6a6c5 | refs/heads/master | 2020-12-24T17:18:01.417439 | 2015-05-13T01:06:46 | 2015-05-13T01:06:46 | 23,918,600 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 551 | cpp | rename.cpp | #include <iostream>
#include <string>
#include <vector>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
using namespace std;
int main(int argc, const char *argv[])
{
if(rename("test.txt", "test.txt") < 0){
cout << "can not rename of file" << endl;
}... |
c2f977d41e3904dfa7ded00f6e132b667c35feaf | 0b5a42bfa450f664fea35e11aea1ed542b36f38c | /linkedlist.h | a727de4c1f1ae70a9482dc27adf519a9aa402320 | [] | no_license | Fgarcia19/lru-cache | d0e973e0cde5b87f7777023ce860637bc63b5811 | 6ed7703645d0a3ac0e1a014a4c78793ae10a17cc | refs/heads/master | 2022-12-15T12:01:47.453915 | 2020-09-10T19:42:13 | 2020-09-10T19:42:13 | 294,506,329 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 847 | h | linkedlist.h | //
// Created by user on 9/8/2020.
//
#ifndef UNTITLED3_LINKEDLIST_H
#define UNTITLED3_LINKEDLIST_H
//#include <string>
//#include <iostream>
using namespace std;
template <typename T1,typename T2>
struct Node {
T1 key;
T2 data;
Node<T1,T2>* next;
Node<T1,T2>* prev;
};
templat... |
3592b3d53abe80dc5943650a5c780065e0091c52 | 039622ed6bdcdd1a00aec0bc419db4e8f4135424 | /hdsfuseoper.cpp | da3c0f6a2660156b4f7005a36e9ec9d9e3aea8d8 | [] | no_license | lookup69/fuseUtil | 60d5155d85313bff358825364537639b654fb39c | b2297993e0cf318b1b347d923b9a0100a15168ab | refs/heads/master | 2021-01-10T08:17:32.342876 | 2016-03-28T09:28:23 | 2016-03-28T09:28:23 | 54,880,469 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26,032 | cpp | hdsfuseoper.cpp | #include "hdsfuseoper.h"
extern "C" {
#include <ulockmgr.h>
}
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/file.h>
#include <dirent.h>
#include "debugUtility.h"
using namespace std;
static void get_file_mode(string &strmode, int... |
aa0ca1667a7412daf635b5b3dc6ee38afcc71b37 | 9639c4451a7f2845a57931b6a670a2f744f58e0f | /ji-park/DP/쉬운 계단수.cpp | 7a472ca68d3f53c796fcb85821f80f46976697d2 | [] | no_license | 42somoim/42somoim2 | d00a256c5ca949d89b444e1600043afac2c0c4d6 | 64c9fb657736c84d88df901e3d1662c05ddc5954 | refs/heads/master | 2023-03-24T13:42:43.489332 | 2021-03-15T13:25:57 | 2021-03-15T13:25:57 | 300,144,427 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 528 | cpp | 쉬운 계단수.cpp | #include <iostream>
using namespace std;
int main()
{
int n;
int dp[100][10] = { 0 };
int sum = 0;
cin >> n;
dp[0][0] = 0;
for (int i = 1; i < 10; i++)
{
dp[0][i] = 1;
}
for (int j = 1; j < n; j++)
{
dp[j][0] = dp[j - 1][1] ;
for (int k = 1; k <= 9; k++)
{
if (k == 9)
dp[j][k] = dp[j - 1][k -... |
413492a032c7aa853f783a06105aade9ef648cfc | dcb85b9b6c093c93bca2a1d1549702c69d47a23e | /simulator/runtime/rdo_simulator.h | b2f7c3afcbb39a96bb23f028bdf50f50277b31ec | [
"MIT"
] | permissive | MachinaDeusEx/rdo_studio | c7c2657187099da9c2c15104df6735a337f01a0b | 9c9c5df518a83ef8554b0bc1dc30a9e83ad40a4a | refs/heads/master | 2020-08-04T14:38:35.726548 | 2015-12-06T17:40:02 | 2016-04-15T08:14:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,496 | h | rdo_simulator.h | #pragma once
// ----------------------------------------------------------------------- INCLUDES
// ----------------------------------------------------------------------- SYNOPSIS
#include "simulator/runtime/rdo.h"
#include "simulator/runtime/rdobase.h"
#include "simulator/runtime/rdo_logic_i.h"
// ------------------... |
2fbdc846abe8750874356c3b6f38b6fde90a9ae6 | 37b1cc093229626cb58199379f39b6b1ec6f6fb0 | /src/common/TensorPack.cpp | 6c2c7f96226bd0f72134c1f4cfd37b46eb2853e0 | [
"MIT",
"LicenseRef-scancode-dco-1.1",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | ARM-software/ComputeLibrary | d4dfccb6a75b9f7bb79ae6c61b2338d519497211 | 874e0c7b3fe93a6764ecb2d8cfad924af19a9d25 | refs/heads/main | 2023-09-04T07:01:32.449866 | 2023-08-23T13:06:10 | 2023-08-23T13:06:10 | 84,570,214 | 2,706 | 810 | MIT | 2023-01-16T16:04:32 | 2017-03-10T14:51:43 | C++ | UTF-8 | C++ | false | false | 2,173 | cpp | TensorPack.cpp | /*
* Copyright (c) 2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights ... |
f3f524e6ef229bdf690b781012630dab38c0da08 | 275e1b57bcdf0c0efc5747024e567df6deb315ff | /virus/lib/headers/nngpp/platform/cv_view.h | 47c29c8ead76780deb270ab0fbe48d155b474242 | [
"MIT"
] | permissive | lolepop/osu-Rate-Changer | c19b241c9d22afca20b2eb6b4f12a5536598ed7c | e6429e6c8e7191b38a7ee963b69fb51fc8236712 | refs/heads/master | 2022-04-30T23:19:02.818178 | 2022-03-29T09:45:31 | 2022-03-29T09:45:31 | 173,297,077 | 12 | 1 | MIT | 2021-07-05T13:30:43 | 2019-03-01T12:18:06 | C# | UTF-8 | C++ | false | false | 869 | h | cv_view.h | #ifndef NNGPP_CV_VIEW_H
#define NNGPP_CV_VIEW_H
#include <nngpp/error.h>
#include <nng/supplemental/util/platform.h>
namespace nng {
struct cv_view {
protected:
nng_cv* c = nullptr;
public:
cv_view() = default;
cv_view( nng_cv* c ) noexcept : c(c) {}
nng_cv* get() const noexcept {
return c;
}
nng_cv* op... |
35345d6b653555e8d23166a998fb49d4aacfb164 | 26f7c777a81061a8bcc80fae91fdc6663ec2a7bf | /Testing/igstkObjectRepresentationRemovalTest.cxx | 28f2bdb33c3f4e9dad2a76b62d5e309c23d1cd70 | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | JQiu/IGSTK-5.2 | 0af66324623d33d171ee775098894048e12e9023 | 605a87e177c6e68acc773efe1fe5206cfb15dfbd | HEAD | 2016-09-05T13:55:54.626920 | 2014-11-23T15:57:09 | 2014-11-23T15:57:09 | 27,037,331 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 4,564 | cxx | igstkObjectRepresentationRemovalTest.cxx | /*=========================================================================
Program: Image Guided Surgery Software Toolkit
Module: igstkObjectRepresentationRemovalTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) ISC Insight Software Consortium. All rights reserved.
Se... |
7f28c3c408eb6676f32382effd8672a62200b2b4 | 073e166a3034046ace8c7198cc5d70495acac57f | /20.cpp | 8b162d3aa5377e44fda95260b7fba7c14b33d555 | [] | no_license | shulgaalexey/other | ff048db9a246b24388d5d9fa79bac1b7fa14451e | ee3be171ce9ac3820c841e2a743c2549b92b4ce9 | refs/heads/master | 2020-12-11T09:42:31.006891 | 2018-07-03T09:37:58 | 2018-07-03T09:37:58 | 52,915,730 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,505 | cpp | 20.cpp | // 20. Topological sort: in-degree analysis + BFS
#include <iostream>
using namespace std;
class list {
public:
int val;
list *next;
public:
list(int v) : val(v), next(NULL) {}
};
class node {
public:
int tag;
list *out_edges;
int in_degree;
};
node *G = NULL;
node *sorted_G = NULL;
int V = 0;
int E = 0;
void... |
ce01ad9d684be4857f8bcf9e62851ebb9f44658f | 7b3899819c46272554c0ab2a584030ad1fc92e79 | /antsupporter/src/antlib/file/Ant_FileInfoImpl.h | 36b4b6cc32a255183822b56c6749d48bcc863621 | [
"Apache-2.0"
] | permissive | summerquiet/NmeaAnalysisTool | 63a303f5fd0b7cb76704b6f74908afe9a0547291 | 73d10e421a5face988444fb04d7d61d3f30333f7 | refs/heads/master | 2020-04-05T08:06:51.994203 | 2018-11-08T12:48:55 | 2018-11-08T12:48:55 | 156,701,514 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,505 | h | Ant_FileInfoImpl.h | /**
* Copyright @ 2014 - 2017 Personal
* All Rights Reserved.
*/
#ifndef ANT_FILEINFO_IMPLH
#define ANT_FILEINFO_IMPLH
#ifndef __cplusplus
# error ERROR: This file requires C++ compilation (use a .cpp suffix)
#endif
/*---------------------------------------------------------------------------*/
// Include files
... |
db56a67dbe438c90349ff02a53553893d1bbc652 | 122cacfeaab64979d09dcaa70756a96763e83d12 | /writeDataLoop/writeDataLoop.ino | 24712054cb69689889a5d369a9ea22cf70446598 | [] | no_license | velobrain/BLE | 074253166bd8afbd92abe6f1c2120901c7463ae9 | 377d2c722e13dcda446a0812c69b0c050b22e8bc | refs/heads/master | 2021-09-06T18:32:53.631476 | 2018-02-09T19:23:33 | 2018-02-09T19:23:33 | 111,169,912 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,490 | ino | writeDataLoop.ino |
#include <SPI.h>
#include "Adafruit_BLE_UART.h"
#include <Wire.h>
#include "MAX30100_PulseOximeter.h"
#define ADAFRUITBLE_REQ 10
#define ADAFRUITBLE_RDY 2
#define ADAFRUITBLE_RST 9
#define REPORTING_PERIOD_MS 1000
PulseOximeter pox;
const int REED_PIN = 3; // Pin connected to reed switch
const int LED_PIN ... |
2ebce79f094dcb20e0cb38f736d8b4ffc9dd794e | 27dd76458bf04a8215978982d6f125587dfc583d | /projects/hole_creation/lsm_hole_insertion.hpp | 90c50f3d0f666029c3cc8ab7c97c84a016636f63 | [
"Apache-2.0"
] | permissive | M2DOLab/OpenLSTO | 247b5bffad92f6de30c3d9730cbae7a96220677b | 853b9cc433b84c60cd1318a36f9a1d0e6cf65877 | refs/heads/master | 2021-06-11T08:16:25.998105 | 2021-03-19T18:37:48 | 2021-03-19T18:37:48 | 146,038,694 | 84 | 24 | Apache-2.0 | 2021-03-19T18:37:50 | 2018-08-24T20:48:37 | C++ | UTF-8 | C++ | false | false | 20,916 | hpp | lsm_hole_insertion.hpp |
namespace M2DO_LSM {
/*
! Structure containing attributes for an individual grid node.
*/
struct h_Node {
std::vector<double> sensitivities; //!< Objective and constraint sensitivities.
};
/*
! Structure containing attributes for an individual grid element.
*/
... |
46f23f471022d9672a9de5e5fe265bf2be7a9996 | db2d8e0cf6036c3d5d7a05d6f38e23c1265d003b | /lib/abstractblock.h | 10eedd6725f27698f53702bd11fa0b15bf2126a4 | [] | no_license | Ray-SunR/the-Game-of-Quadris | 7dd041a59523bfdb2f889421f8316a22afeb333d | 0952293503a01b21c61acba8d3f7002f5ac52490 | refs/heads/master | 2021-01-01T17:48:25.888430 | 2014-03-07T23:55:51 | 2014-03-07T23:55:51 | 11,751,079 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,502 | h | abstractblock.h | //
// abstractblock.h
// The Game of Quadris
//
// Created by Sun Renchen& Chi Zhang on 2013-07-11.
// Copyright (c) 2013 University of Waterloo. All rights reserved.
//
#ifndef __Project__abstractblock__
#define __Project__abstractblock__
#include <iostream>
#include <vector>
#include <map>
#include "coordi... |
bbf5b64f4e484a660ad1cc67f7955a46b27f4663 | 97cc82f966fd4be6e95e9eb33a11400802fce762 | /Dining Philosopher Sim/341HW4_phliosophers.cpp | bc642447728419ac57ee5db06a3d80e344c682b5 | [] | no_license | JDArcher/Jace-Archer-Projects | cb5a252b89c9c548d1e8658be1395b779e6b23ab | 5614e6a74e4fc5b5920cabc43756c789aef58220 | refs/heads/master | 2021-01-19T17:59:45.246905 | 2020-02-27T02:20:19 | 2020-02-27T02:20:19 | 101,103,716 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,879 | cpp | 341HW4_phliosophers.cpp | #include <iostream>
#include <pthread.h>
#include <unistd.h>
#include <sys/wait.h>
#include <string>
#include <sstream>
#include "341_Monitor.h"
#define N 5
#define lock pthread_mutex_lock
#define unlock pthread_mutex_unlock
using namespace std;
const char *name[N] = {"Aristotle", "Kant", "Spinoza", "Marx", "Russell"... |
530175360e5ebc70bd015778cd3c43163eb1d88e | 8103a6a032f7b3ec42bbf7a4ad1423e220e769e0 | /Prominence/XInputController.cpp | 2566816453971b03a8f14ba334d68310b37d350a | [] | no_license | wgoddard/2d-opengl-engine | 0400bb36c2852ce4f5619f8b5526ba612fda780c | 765b422277a309b3d4356df2e58ee8db30d91914 | refs/heads/master | 2016-08-08T14:28:07.909649 | 2010-06-17T19:13:12 | 2010-06-17T19:13:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 609 | cpp | XInputController.cpp | #include "XInputController.h"
namespace Prominence {
XInputController::XInputController(void)
{
}
XInputController::~XInputController(void)
{
}
bool XInputController::GetAKey()
{
return false;
}
bool XInputController::GetBKey()
{
return false;
}
bool XInputController::GeyXKe... |
ca7cb93bf7beec42b6bd52d174e26156fb626ea9 | a86e02e2d77ec6ab4a7da09df0262b363690b55e | /eg5_11.cpp | ff01f96fb8df9374a0e4c22db34f0681612c5729 | [] | no_license | rajaniket/Cpp_programs | 59e20ef7c0918b0dfad1ed9468a479c49bd7ccc0 | 6528a5bff5c58dd734d46cf8a6aa5363b90219d9 | refs/heads/master | 2021-06-18T11:19:51.830199 | 2021-06-08T17:26:59 | 2021-06-08T17:26:59 | 215,588,831 | 5 | 0 | null | 2020-01-04T18:15:40 | 2019-10-16T16:00:09 | C++ | UTF-8 | C++ | false | false | 702 | cpp | eg5_11.cpp | // Program to Transpose a 3x3 matrix;
#include<iostream>
using namespace std;
class matrix
{
int m[3][3];
public:
void getmatrix(){
cout<<"type matrix elements\n";
for(int i=0;i<3;i++){
for(int j=0;j<3;j++)
{
cin>>m[i][j];
}}}
void displaymatrix(){
for(int i=0;i<3;i++){
cout<<endl;
for(int j=0;j<3;j++)
cout<<m[i][j]<... |
f9b6d3dd20a4bce467e686e40a94481e92692657 | 4c9ed7ef524b4790ad03ffa80cecb1a3cb07ac9e | /GiaoTrinh/DoHoa/SuperBible4/examples/src/chapt03/stencil/stencil.cpp | 4e11fc8745c0064dffca73045c40c5132f142bf7 | [] | no_license | mymoon89/SPKT_TRANTHITHUY | 12bdcb71584c15969b1a85739c7e3a778e584176 | da43e4ec58ecf5d06138d42cc771cc1d7fa64db8 | refs/heads/master | 2020-06-04T04:29:52.944958 | 2011-09-10T05:21:47 | 2011-09-10T05:21:47 | 2,354,266 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,418 | cpp | stencil.cpp | // Stencil.cpp
// OpenGL SuperBible
// Richard S. Wright Jr.
// rwright@starstonesoftware.com
#include "../../shared/gltools.h" // OpenGL toolkit
// Initial square position and size
GLfloat x = 0.0f;
GLfloat y = 0.0f;
GLfloat rsize = 25;
// Step size in x and y directions
// (number of pixels to move each time)
GLfl... |
292cbf13a091e534e78a0e39ddf6b9ce3b36b41f | bce4edcafec4a403f41b31f594daff23fe319aa5 | /3DOpenGL/lengnan/lengnan/ADOConn.cpp | b71a054e25d012f9564ddca70a935d03a087a886 | [] | no_license | XZM-CN/3DOpenGL | afc3e9cc922c8d94e5ecff42bc12ed0594e36bc9 | ed84ec70418fe2033fdba0ac80e3b89be5f1a890 | refs/heads/master | 2021-01-22T07:42:24.789493 | 2017-09-04T02:51:09 | 2017-09-04T02:51:09 | 102,310,936 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 6,256 | cpp | ADOConn.cpp | #include "StdAfx.h"
#include "ADOConn.h"
CADOConn::CADOConn(void)
{
// 初始化库环境
::CoInitialize(NULL);
//连接对象
m_pConnection.CreateInstance(_T("ADODB.Connection"));
//数据库文件对象
m_pCatalog.CreateInstance(__uuidof (ADOX::Catalog));
}
CADOConn::~CADOConn(void)
{
//释放环境
::CoUninitialize();
}
////////////////////////////... |
abd491e38b9ccce3fa295d0196c821dd22f82afb | 78bae575fe525533c5bb0f6ac0c8075b11a4271d | /139. Word Break.cpp | d674e5bfdd5211fff6f2fcdf2c583b14dbd26d3a | [] | no_license | Shubhamrawat5/LeetCode | 23eba3bfd3a03451d0f04014cb47de12504b6399 | 939b5f33ad5aef78df761e930d6ff873324eb4bb | refs/heads/master | 2023-07-18T00:01:21.140280 | 2021-08-21T18:51:27 | 2021-08-21T18:51:27 | 280,733,721 | 1 | 3 | null | 2020-10-21T11:18:24 | 2020-07-18T20:26:20 | C++ | UTF-8 | C++ | false | false | 1,957 | cpp | 139. Word Break.cpp | class Solution {
public:
bool check(string substr,string s) //checking if string substr is a prefix of string s or not
{
if(substr.length()>s.length()) return false;
int i=0;
while(i<substr.length() && i<s.length())
{
if(substr[i]!=s[i]) return false;
++i;... |
b426ffe2518e705d8e04c1550bee9081829ed269 | 8bd875339cee344a4ac5d3a347a54f407ed2e7a1 | /practice_1/practice_5/HanShuDeShengMing.cpp | 7a856d998287717e7f4b84e3062c2c34020b39b9 | [] | no_license | Gundam2887/C-Plus-Plus-Project | 177e9a845f2d9e26aa8b7ec6aa916ed854a8a5e2 | 05661496639d97740f305fdc68fe946f70586315 | refs/heads/master | 2022-11-30T09:05:12.987545 | 2020-08-14T04:19:37 | 2020-08-14T04:19:37 | 284,626,702 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 431 | cpp | HanShuDeShengMing.cpp | #include<iostream>
using namespace std;
//函数的声明
//提前告诉编译器函数的存在,可以利用函数的声明
//比较函数,实现两个整型数组进行比较,返回较大的值
//函数的声明
//声明可以写多次,但是定义只能有一次
int max(int a,int b);
int main(){
int a = 10;
int b = 20;
cout << max(a,b) << endl;
}
int max(int a,int b){
return a > b ? a : b;
} |
535a461bf6123b683bdbf42e8230fae0de806be6 | 6c85250695200779f38728d2278ef88f450d2987 | /test/Test_MemoryMappedFile.cpp | 307351bec741a7b1f2bedc28b7cdd5839b25d1ba | [] | no_license | msareena/MemoryMappedFile | 5850b8c5d626679908d798ad43da236a28bf6900 | 968e6a9eae9763b60290d96dd2db05297c2ce056 | refs/heads/main | 2023-03-07T07:13:15.752779 | 2021-02-20T14:10:25 | 2021-02-20T14:10:25 | 336,555,492 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,107 | cpp | Test_MemoryMappedFile.cpp | #include <gmock/gmock.h>
#include <filesystem>
#include <fstream>
#include <MemoryMappedFile.h>
using namespace ::testing;
class AMemoryMappedFile : public Test
{
public:
void SetUp() override
{
{
std::fstream fs(TEST_FILEPATH, fs.out | fs.trunc);
fs.write(TEST_FILE_CONTENT.da... |
0e06e6abaefa5e7b7b9492d994b321937f931da6 | 439b9018740c2767b61a27d24cb407fed747152b | /ns_image_server/image_processing/ns_image_registration.h | fb6199b7cb3a0acb2d4e482c28b1ce239d43ca6d | [] | no_license | cinquin/lifespan | e2c6ba2206670869e62b4feb90ad50decb56b485 | 46c02870058e5cde484a99f817027b4ce807a010 | refs/heads/master | 2020-12-13T16:55:12.318448 | 2015-02-10T22:00:34 | 2015-02-10T22:00:34 | 30,616,647 | 0 | 0 | null | 2015-02-10T21:55:23 | 2015-02-10T21:55:21 | null | UTF-8 | C++ | false | false | 11,358 | h | ns_image_registration.h | #ifndef NS_IMAGE_REGISTRATION
#define NS_IMAGE_REGISTRATION
#include "ns_image.h"
#include "ns_ex.h"
#include "ns_image_registration_cache.h"
#include <iostream>
template<int thresh, class ns_component>
class ns_image_registration{
public:
template<class profile_type>
static void generate_profiles(const ns_image_whol... |
5c0fcf87f3c2ed3e7b9d151be1793761266acd0b | da1500e0d3040497614d5327d2461a22e934b4d8 | /third_party/skia/src/gpu/gl/GrGLBuffer.cpp | 516c10ea348366b7ff004936896abb0df77e9c6e | [
"BSD-3-Clause",
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"Apache-2.0",
"MIT"
] | permissive | youtube/cobalt | 34085fc93972ebe05b988b15410e99845efd1968 | acefdaaadd3ef46f10f63d1acae2259e4024d383 | refs/heads/main | 2023-09-01T13:09:47.225174 | 2023-09-01T08:54:54 | 2023-09-01T08:54:54 | 50,049,789 | 169 | 80 | BSD-3-Clause | 2023-09-14T21:50:50 | 2016-01-20T18:11:34 | null | UTF-8 | C++ | false | false | 11,032 | cpp | GrGLBuffer.cpp | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/core/SkTraceMemoryDump.h"
#include "src/gpu/GrGpuResourcePriv.h"
#include "src/gpu/gl/GrGLBuffer.h"
#include "src/gpu/gl/GrGLGpu.h"
#define GL_CALL(X) GR_GL... |
3eccfa4d1c8cc6db08ab39de570657a57117178e | 574ceb7088c8f3e87f77af496a0fc47a00a2d8e0 | /src/CommandQueue.cpp | fcd79216808c3af27890994b7724a545d461554e | [] | no_license | dentou/EEIT2015_Group4_ACertainSideScrollingGame | 11dcb328507893f0ac5c1858c761fbbe59d00b49 | e5e610f6074ee0670969474581de6f960b3848e9 | refs/heads/master | 2021-06-19T04:53:16.906650 | 2017-06-10T10:35:51 | 2017-06-10T10:35:51 | 93,761,183 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 776 | cpp | CommandQueue.cpp | /***********************************************************************************
* CommandQueue.cpp
* C++ Final Project - A Certain Side Scrolling Game
* Vietnamese-German University
* Authors: Tran Tien Huy, Nguyen Huy Thong - EEIT2015
**************************************************************************... |
6221c281c5428ede439935997d95cf3fa3303a56 | 27270a8a96986f7ddc38834a498faaf486b471fb | /MFCApplication1/DBOperation.cpp | 4ded33c580f572670cd3f414a5f1dd9ac807b945 | [] | no_license | photoqiu/private_IOTProject | a7b1259e984ea9ab78b72e99aa35d24ecd7becec | fb96a11c9cf5768f8b528e051b4db56b29184023 | refs/heads/master | 2020-12-01T13:58:27.946218 | 2020-01-05T21:30:39 | 2020-01-05T21:30:39 | 230,650,606 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,864 | cpp | DBOperation.cpp | #include "stdafx.h"
#include "DBOperation.h"
DBOperation::DBOperation()
{
}
DBOperation::~DBOperation()
{
}
int DBOperation::setLaserCamerasResult()
{
return 0;
}
int DBOperation::setVideoCamerasResult()
{
try {
sql::Driver *driver;
sql::PreparedStatement *pstmt;
/* Create a connection */
driver = get_... |
67f176447ddfeae80d373459d74c254309840157 | 3d15826fc8c937aec0be4fcf4b8edc06bb413fc7 | /src/utils.cpp | e22856b0a859ce8d3056791d5313ce651fd507a0 | [
"Zlib"
] | permissive | Parad0xPl/SimplePlayer | 38ddd50ebfd2945b3fdee53796eba33eede38eb7 | f6bad66881fa3cb5bf379fceed8c993b56c526a4 | refs/heads/master | 2022-11-27T22:04:52.751642 | 2020-07-27T17:39:30 | 2020-07-27T17:39:30 | 282,969,936 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,116 | cpp | utils.cpp | #include "utils.hpp"
#include <cstdio>
#include <cstdint>
#include <cstring>
void PrintBuffer(void *data, int len){
const auto p = static_cast<uint8_t*>(data);
int i;
for (i = 0; i < len; i++)
{
if (i > 0) printf(":");
printf("%02X", p[i]);
}
printf("\n");
}
void PrintBufferMa... |
0c23fbcbc30c4ed00750a43a75eeed312ed21bcb | d1ec47ff6acacb9f5368064e4c87f8d3770b016b | /contests/雑多/old_rep/cfnob.cpp | bbdca46f053ed8d72bbf0d313328f0f1473b59ad | [] | no_license | fj0rdingz/Competive_Programming | 8bca0870311b348ea4c38d134f73346edceadf15 | 3dc42a85b7c9f4e77ba8c5488d84fb0f1f3ac75c | refs/heads/master | 2021-10-29T02:25:52.820526 | 2021-10-25T06:23:29 | 2021-10-25T06:23:29 | 252,177,293 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,295 | cpp | cfnob.cpp | #include <cstdio>
#include <queue>
#include <iostream>
#include <bits/stdc++.h>
#include<stdio.h>
#include<string.h>
#include<fstream>
#define F first
#define S second
#define R cin>>
#define Z class
#define ll long long
#define ln cout<<'\n'
#define in(a) insert(a)
#define pb(a) push_back(a)
#define pd(a) printf("%.1... |
6998296022af570cf9b04fe611d312f5bef4f104 | f15ba67850dceb5df5250deffa95cde64ec9d1aa | /CS116/File Diagram/main.cpp | 77ae2c538e54356dae9f582045f0a56969eeb9aa | [] | no_license | Syilun/SlopBukkit | f0b48af0ecc17c670653f1147065a84876248f8d | 6faac40f00915cfb9499ec59228bf8eb259a34ab | refs/heads/master | 2023-03-18T23:02:56.965863 | 2014-05-21T21:10:09 | 2014-05-21T21:10:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,136 | cpp | main.cpp | /*! Chris Miller (cmiller@fsdev.net), CS116
*! Copyright (C) 2009 FSDEV. Aw richts pitten by.
*! Academic endorsement. This code is not licensed for commercial use.
*! 20091010, Ch. 12 Asgn
*/
#include "Simple_window.h"
#include "Graph.h"
int main (int argc, char * const argv[]) {
using namespace Graph_lib;
... |
d47edaff9027ba3eac99c63dff24fc960c3476ac | b1f4b7f5d4345fb555f1a38f0b512aef25f68f0d | /Door Sensor.ino | d4913e803c284d1fdd04145b4df79e7af2e770b2 | [] | no_license | oliverbonner/Team-Challenge | b24b744c5407b66a6d49ce1210e63830a4f15ef0 | 42e24c2323c588e5b10f72adfa8a272e1543c9b2 | refs/heads/master | 2016-09-05T13:53:41.226502 | 2015-08-24T16:56:29 | 2015-08-24T16:56:29 | 41,271,031 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 990 | ino | Door Sensor.ino | //SYSTEM_MODE(MANUAL);
int led = D7;
int sensor = D3;
volatile int door_state = LOW;
char publishString[255];
void setup()
{
pinMode(led, OUTPUT);
pinMode(sensor, INPUT);
}
void loop()
{
//when we turn on or finish publishing data, go to sleep
System.sleep(sensor, CHANGE);
//when we wake up... |
1f6bb2408b125035fb640e4c8c8a59b75eced407 | aceaf048853cba0c0392ad089bea22f9e3528098 | /_tutorials/code/more-files/src/foo/foo.cpp | 8b07d9e36a694913260ba8c1541f9c1c0b028e63 | [
"MIT"
] | permissive | hutscape/hutscape.github.io | c5b640bbfda21b9bc7260b5d2f6164c60ff9158a | 27c5d8a79d48025d3270fea704df7a5e5cb43f5d | refs/heads/master | 2023-02-13T04:05:12.235290 | 2023-02-01T05:37:53 | 2023-02-01T05:37:53 | 176,517,102 | 40 | 38 | MIT | 2021-07-15T07:02:01 | 2019-03-19T13:23:46 | C++ | UTF-8 | C++ | false | false | 63 | cpp | foo.cpp | #include "foo.h"
void bar() {
SerialUSB.println("bar");
}
|
8b3d7465809ced7a1067fff93f51b7f950f04875 | 919ca405d742a4e97439f80196a267b3d86a4117 | /.history/src/tools_20200203111240.cpp | f48d12ee3a5e1bd3d9c079e068b2abf6e30b20c6 | [
"MIT"
] | permissive | fratullii/CarND-Extended-Kalman-Filter-Project | 62211acdd63d9f4555e74067b85d9898a41e75a6 | 919c015a465d51d91583e512253adff1a372c36c | refs/heads/master | 2020-12-26T08:02:19.984918 | 2020-02-10T11:24:39 | 2020-02-10T11:24:39 | 237,441,025 | 1 | 0 | MIT | 2020-01-31T13:58:46 | 2020-01-31T13:58:45 | null | UTF-8 | C++ | false | false | 691 | cpp | tools_20200203111240.cpp | #include "tools.h"
#include <iostream>
using Eigen::VectorXd;
using Eigen::MatrixXd;
using std::vector;
Tools::Tools() {}
Tools::~Tools() {}
VectorXd Tools::CalculateRMSE(const vector<VectorXd> &estimations,
const vector<VectorXd> &ground_truth) {
/**
* TODO: Calculate the RMSE he... |
011390eba5fd36815980a29d4a8d79c7526a51c2 | 6f3e4c3afc10728d2c3b5d771dbd5e09129f81cb | /src/main.cpp | 43851f796ac1a4a587a25270403015fc34decf98 | [] | no_license | AdamNEvans/colorSortingEA | c2781d77d1bb6260a00f64eb8c9dc71fd51000ee | 08c85fcabc0fecd57890d8f9d118c6a747dd409b | refs/heads/master | 2021-08-24T14:04:09.029337 | 2017-12-10T04:10:08 | 2017-12-10T04:10:08 | 113,683,271 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,431 | cpp | main.cpp | #include <stdio.h>
#include <stdlib.h>
#include "config.h"
#include "ea.h"
// ============================================================================
// Main function. If a configuration file is not given, then
// "configurations/default.cfg" is used
// @param argc Size of argv
// @param argv argv[0] = program n... |
eb5b35083ee045fb57c3f5d403103cc322c341f7 | bb5a0a09e3835f187a3a3cf6b2dc0e476056744c | /src/bin2cpp/Win32ResourceGenerator.h | b6fba405f9dfee0998abb4d750d4391804608f0b | [
"MIT"
] | permissive | evxio/bin2cpp | 75d4b0b081d53df0ef13afb70fe5a4c1d3c1c13f | 53d046ca7bfb0b0ac902d7bfecf07e04f07d75a0 | refs/heads/master | 2020-03-28T23:54:28.205442 | 2018-05-27T01:06:09 | 2018-05-27T01:06:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 658 | h | Win32ResourceGenerator.h | #pragma once
#include "BaseGenerator.h"
namespace bin2cpp
{
///<summary>
///This generator stores data in a single string of a maximum of 65535 bytes.
///</summary>
class Win32ResourceGenerator : public BaseGenerator
{
public:
Win32ResourceGenerator();
virtual ~Win32ResourceGenerator();
virtu... |
b8a2951df737bb9f738c8a103ecb4f5b4d7b1ef7 | ece30e7058d8bd42bc13c54560228bd7add50358 | /DataCollector/mozilla/xulrunner-sdk/include/nsIClipboardCommands.h | 87312f1ebb20f3fde336460e771eaca81a59e81f | [
"Apache-2.0"
] | permissive | andrasigneczi/TravelOptimizer | b0fe4d53f6494d40ba4e8b98cc293cb5451542ee | b08805f97f0823fd28975a36db67193386aceb22 | refs/heads/master | 2022-07-22T02:07:32.619451 | 2018-12-03T13:58:21 | 2018-12-03T13:58:21 | 53,926,539 | 1 | 0 | Apache-2.0 | 2022-07-06T20:05:38 | 2016-03-15T08:16:59 | C++ | UTF-8 | C++ | false | false | 8,644 | h | nsIClipboardCommands.h | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl\nsIClipboardCommands.idl
*/
#ifndef __gen_nsIClipboardCommands_h__
#define __gen_nsIClipboardCommands_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifnd... |
393c3b97d1a2859b3c4a62a7a9619fbecaf3ca4d | a0bb0915d389a3c7b193d61a7a56d21448d89600 | /tp5/Emission.cpp | 83127d253d619a627bda4bd03fa9372fd9c5116e | [] | no_license | julienlegault96/log1000 | 61868c69fb45cdf2f441ef919e933b31bcce2759 | 62764cecc18ba26a77f9cde312f2422ca59c36da | refs/heads/master | 2021-03-24T13:01:35.805103 | 2017-12-19T21:36:41 | 2017-12-19T21:36:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,356 | cpp | Emission.cpp | #include "Emission.h"
#include <fstream>
#include <iostream>
// Constructeur
Emission::Emission(){
titre = "";
animateur = "";
chaine = new Chaine();
}
Emission::Emission (string titre,
string animateur,
string chaineName,
string chaineCodePostal,
... |
1f1c7013285beec4e874ffebef933449bde7e5fe | 6982a4d2feab96fb36e64066ff27f4c8d2838097 | /MainKnapsack.h | 8d766f9d39ef5dd911a793bebb3f564cbe8b7c45 | [] | no_license | akheireddine/P-TL | 1fa5d16b7a1b392ded0f05f86890d9d5bf023d93 | 27921c5b7437ea204fd6138d60055f503d022879 | refs/heads/master | 2022-02-16T05:13:03.523433 | 2019-08-29T07:27:50 | 2019-08-29T07:27:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,710 | h | MainKnapsack.h |
#ifndef __KNAPSACK_STRUCT__
#define __KNAPSACK_STRUCT__
class MainKnapsack;
#include "LSStructure.h"
#include "AlternativeKnapsack.h"
extern list<set<int>> init_population;
extern string INFO;
extern int k_replication;
extern float Ta;
class MainKnapsack : public LSStructure{
protected:
float Backpack_... |
4322466f71309260ceb8f6342297df7089a406f7 | 5d185145d374d637b52ea4d3724f57f49832bd13 | /高一實習課/判斷平閏年.cpp | 4871998f21e7df6b7f4a209c853a5f52db41c6ba | [] | no_license | TKLabStudio/C-plus-plus | acaaa5c1575930d89259f3efe41208180c47b610 | 44a80147dfe025c784a6700de9acb975a9c14eba | refs/heads/master | 2021-05-25T14:42:22.765108 | 2020-04-07T13:11:16 | 2020-04-07T13:11:16 | 253,793,424 | 0 | 0 | null | null | null | null | BIG5 | C++ | false | false | 565 | cpp | 判斷平閏年.cpp | #include <stdlib.h>
#include <stdio.h>
#include <conio.h>
#include <iostream.h>
int main()
{
int a,a4,a100,a400;
cout<<"請輸入年分:";
cin>>a;
a4=a%4;
a100=a%100;
a400=a%400;
if(a4!=0)
{
cout<<"這是平年!!\n";
}
else if(a100!=0)
{
cout<<"這是閏年... |
7f2f80b4a1e4ef2a57cf38fb15a57b2f57f2fa39 | 8b868abed373e47df8fa76e68d7958a7e026fd15 | /DFS/DFS/dfs.cpp | 9663f96047a08675f0144d733e29523fe473ee1b | [] | no_license | dinesh032/Graph-Algorithms | 8cc8eade5cfba633ce7029c8a6c8ab290c02c670 | 9912ed88b202a97c1c62f8eb1cddb144bf947182 | refs/heads/master | 2020-03-16T03:11:47.731694 | 2018-05-07T15:59:32 | 2018-05-07T15:59:32 | 132,482,366 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 672 | cpp | dfs.cpp | #include<iostream>
#include "dfs.h"
#include<stdio.h>
using namespace std;
Graph::Graph(int V) {
this->V = V;
adj = new list<int>[V+1];
}
void Graph::addEdge(int v, int w) {
adj[v].push_back(w);
}
void Graph::DFSUtil(int s, bool visited[]) {
//s node visited
visited[s] = true;
cout << s << "->";
//Depth first... |
beb97155c842c9b592404a461c1b356a8f4b94a4 | 82ef5875651151271a4d2ff786222dc42c96703b | /VS2013/ucp.cpp | 16c7f9755e41e16470643b7a2694fa7f569a1f40 | [] | no_license | XiaoxingChen/Uart-Calibration-Protocol | d42c48acdfa19729fa31239dfcc6a5396998eb54 | 6ce657ebf10eda0eeb8a746b371db11b84d6b9d2 | refs/heads/master | 2021-01-18T21:18:37.880659 | 2016-05-14T11:54:16 | 2016-05-14T11:54:16 | 52,843,929 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,891 | cpp | ucp.cpp | /**
******************************************************************************
* @file ucp.cpp
* @author Chenxx
* @version V1.0
* @date 2016-02-18
* @brief This file achieve the uart calibration protocol.
* This version is for PC.
************************************************************************... |
efffb2503c8f19d1a10639ec9ebcd97992a8294b | 8e0c952b04b9f3f5d6e21682f3efb9621a47a62d | /tests/chat/NetMessage.h | 9c62332353a7ee0806cfc06a994e35329864e92f | [
"Apache-2.0"
] | permissive | Neomer/binc | 687a57b02e1a7a6f3fb8535c946513cb7c9b8606 | 3af615f36cb23f1cdc9319b7a6e15c6c342a53b9 | refs/heads/Dev | 2021-09-06T14:13:54.296983 | 2018-02-07T10:59:31 | 2018-02-07T10:59:31 | 113,421,980 | 0 | 0 | Apache-2.0 | 2018-02-07T10:59:31 | 2017-12-07T08:13:27 | C++ | UTF-8 | C++ | false | false | 469 | h | NetMessage.h | #ifndef NETMESSAGE_H
#define NETMESSAGE_H
#include <core/JsonSerializableIdentifyedEntity.h>
class NetMessage : public JsonSerializableIdentifyedEntity
{
QString _msg;
public:
NetMessage();
QString getMessage() { return _msg; }
void setMessage(QString value) { _msg = value; }
// IJsonSerializab... |
10da438c3d336356b56d85ea968915e71b768754 | 2d5100b882aba165f6706f88b23c38977a7825f3 | /2019-2020/contests/december/silver/meetings/main.cpp | b7d63094660ec436f63073fe13069a57e6f2d1e2 | [] | no_license | anish-lakkapragada/USACO-Solutions | ac8b8857e7a66dfacc3561ee5ca61a5f8be2430a | 74383af923cbdb0c54c8a9cddaa1a0ab8117e816 | refs/heads/master | 2023-02-03T04:25:43.432418 | 2020-12-19T07:18:45 | 2020-12-19T07:18:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,011 | cpp | main.cpp | // Test case path: [path]
// meetings - Silver - December 2019-2020
// http://usaco.org/index.php?page=viewproblem&cpid=955
#include <bits/stdc++.h>
using namespace std;
struct Cow {
int position;
int velocity;
int weight;
};
int N, L;
vector<Cow> cows;
int getTimeNeeded() {
vector<int> left, right;... |
ed8e16dd77230d404008699bee108a51a8ed5a7e | 11f6ea22eb1520fa3e62bf1554f530c2d8cc5e34 | /src/rendering/pass.cpp | aec3930c392d6a5199d1fd8d88c45f035ed4392c | [
"MIT"
] | permissive | spencer-melnick/simple-render | bb6ad7509e8c6b030129dfbb91389825bf3ba215 | c150d6056c1dccf33d8ba26408a284286189b39e | refs/heads/master | 2022-08-31T15:12:24.304982 | 2020-05-22T17:30:20 | 2020-05-22T17:30:20 | 263,089,453 | 0 | 0 | MIT | 2020-05-22T17:30:21 | 2020-05-11T15:55:57 | CMake | UTF-8 | C++ | false | false | 1,685 | cpp | pass.cpp | #include "pass.hpp"
#include <spdlog/spdlog.h>
#include "context.hpp"
namespace Rendering
{
Pass::Pass()
{
// Right now this is a very simple render pass, just base color
vk::AttachmentDescription colorAttachment;
colorAttachment.format = Context::get().getDevice().getSurfaceFormat().... |
98b98db6560fb211944e3a6c350e007a65797b8d | 6de3f9867defe975dbd05500a888bbb4010f49ec | /2D_COLLISION/scene_parser_IMP.cpp | 628972b5fac423e10a6fb16b6793c329b7c17b88 | [] | no_license | MathNerd/Mathematics | fe5b9373cd82a0dfe49fdc97b5463e77207b00b8 | 403302cd22116c27e25be65e0385daebf964b3b8 | refs/heads/master | 2021-06-15T01:30:05.562885 | 2019-10-04T19:58:58 | 2019-10-04T19:58:58 | 144,030,786 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,195 | cpp | scene_parser_IMP.cpp |
#include <octave/oct.h>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/ini_parser.hpp>
#include <string>
#define CSTRING const char*
#define CONV_CHAR_DIGIT_TO_INT(c) ((c)-'0')
typedef enum Parse2DDoubleVectorReturnCodeEnum
{
Parse2DDoubleVectorReturnCode_SUCCESS,
Parse2DDoubleVectorR... |
ce8890c25a1e9af09fc3f5bb7c15565bdb6531a0 | 1a95063080e2da230750bfcb7f9b7adaa87bc9b9 | /main.cpp | da13f56fca2eb703bb7310e8cd6b2accc2a33725 | [] | no_license | mosdeo/StateMachinePattern | 8e73cf8538cc89bcbaff4f6b33083365817ddf37 | 6afa08eae83a5322ab8b2997015982e57e62083a | refs/heads/master | 2020-07-01T10:10:02.840299 | 2016-11-30T05:23:41 | 2016-11-30T05:23:41 | 74,086,377 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 321 | cpp | main.cpp | #include "LockNoBike.hpp"
#include "LockHaveBike.hpp"
#include "State.hpp"
#include "Context.hpp"
#include <iostream>
#include <memory>
using namespace std;
int main(int argc, char *argv[])
{
shared_ptr<Context> c = make_shared<Context>(new LockNoBike());
c->Request();
c->Request();
c->Request();
c->Request();
... |
6d167873a87c445b152faab43e9b65e1af64bf68 | 5dbad1807774211488ee305fb408fde9956634f0 | /Src/IDACSharp/IDC.h | a2753d059703373931310bcee6a6b7a3d9e1be5a | [] | no_license | sailor-hb/IDACSharp | 1f1a66f2d769c734e3a1e6c6d87880d9c0f194b8 | 77410a19bb9af15c94a8930fa9bbf42650583a1d | refs/heads/master | 2022-03-28T17:05:26.273346 | 2012-10-01T22:38:35 | 2012-10-01T22:38:35 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 867 | h | IDC.h |
#pragma once
using namespace System;
#include <bytes.hpp>
#include "Bytes.h"
namespace IDACSharp {
// ½Å±¾
public ref class IDC
{
public:
static property ulong BadAddress { ulong get(){ return Bytes::BadAddress; }}
static property ulong BadSelect { ulong get(){ return Bytes::BadSelect; }}
... |
39951196102d187487042cdcb4c2c906008810d7 | 434342003036a93e9745d12a1c89b3e1c1b2c83d | /mailbox/lib/mbx/mbx_version.cpp | 602488f0ac11dbf896bbf9a9b39ba7f9460d3167 | [
"MIT"
] | permissive | fgrando/lib-skeleton | 563d2b9207492c07c0d82f196b852ba9ea45d66e | 8ffa63f2ab0b960d17182a4cb3cccb1df594602d | refs/heads/main | 2023-01-01T13:04:25.442356 | 2020-10-18T01:25:56 | 2020-10-18T01:25:56 | 304,767,029 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 233 | cpp | mbx_version.cpp | #include <mbxlib.h>
// Versions
uint32_t mbx_get_version(void)
{
return MBX_VERSION;
}
int32_t mbx_is_compatible_dll(void)
{
uint32_t major = mbx_get_version() >> 24;
return major == MBX_VERSION_MAJOR;
}
|
f431f3c4166de3e127363e0ab93fe249e9cd2c57 | 2e94470a6fed74272b807bc33ba52987bffcf6f5 | /src/object.h | 0d4bb9609cf1eecfbbcece5dc1c7449402fa99c8 | [] | no_license | AdrianTanTeckKeng/ToyRenderer | ce3f77dc14cfad4221e4a080eb442452153634fd | 2d3a9d674e3cc6df2a47a3b761713904212e56d4 | refs/heads/main | 2023-09-03T18:35:13.983959 | 2021-11-01T20:10:08 | 2021-11-01T20:10:08 | 423,587,531 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,763 | h | object.h | #ifndef OBJECT_H
#define OBJECT_H
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <Eigen/Dense>
#include "utilities.h"
struct Material{
Eigen::Vector3d diffuse;
Eigen::Vector3d ambient;
Eigen::Vector3d specular;
double shininess;
};
class object{
public:
// V... |
309aa6cf8f4bb9cd8015c8540e969d9b9cf74c6f | 2a7692d961a899e84fedb17c7e9d77a7b068cbc4 | /DP/minimum cost path.cpp | 8841ccb1576630d19eb90dd0484988df33e1bbfd | [] | no_license | deepanshuv23/DS-Algo | 2b48776767fb037a8b270ad3f48a54537afd713c | c28071d1e3dc8658e56182f779f2058d04b75e0e | refs/heads/master | 2018-10-16T14:19:55.498817 | 2018-07-21T16:22:53 | 2018-07-21T16:22:53 | 120,011,278 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,328 | cpp | minimum cost path.cpp | /* Dynamic Programming implementation of MCP problem */
#include<stdio.h>
#include<limits.h>
#define R 3
#define C 3
// apply a greedy approach
int min(int x, int y, int z);
int minCost(int cost[R][C], int m, int n)
{
int result[R][C]={0};
for(int i=0;i<m;i++)
{
for(int j=0;j<n;j++)
{
... |
0cfd73e7b84b3283c6748160562904dd28b38ec7 | e331c668a1e8f4024b542083c9adc44d5f8b423e | /문자열/17249.cpp | 2be3bc73b64702fca8593a1734fe82c1ecf525db | [] | no_license | ssy02060/basis | 76c3651b41d45a4718b0e3a1aa72b5b887b7fac3 | ab5856ae55b37be4121687a0821dded1234edf6c | refs/heads/master | 2023-05-04T03:01:44.710246 | 2021-05-13T11:41:07 | 2021-05-13T11:41:07 | 367,017,129 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 356 | cpp | 17249.cpp | #include <stdio.h>
// 17249
int main()
{
char str[1500];
scanf("%s", str);
int left = 0;
int right = 0;
bool face = false;
for(int i = 0; str[i] != 0; i++)
{
if(str[i] == '0')
face = true;
if(str[i] == '@' && face == false)
left++;
else if(str[i] == '@' &&face == true)
right++;
}
printf("%d... |
e77afb403a8fd265a21dfeb610fba19208dc48ab | 06726bb031816046fe2175e483981e5f6e2ece82 | /contest/APCS/apcs0304-3.cpp | e36f0a14dbd1cc440b5f76dde2ed75398145bf1f | [] | no_license | a37052800/c | 2390f07c77131fbe01fc26943cb544edebc1726a | e966460b617dbfdeca324a6b4e845a62c70631bb | refs/heads/master | 2023-01-11T11:49:06.463615 | 2022-12-26T08:14:27 | 2022-12-26T08:14:27 | 150,870,651 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,228 | cpp | apcs0304-3.cpp | #include <iostream>
#define add for(i=0;i<n;i++) for(j=0;j<n;j++)
#define f for(j=1;j<=i*2;j++)
#define c(n) ((n-1)/2)
using namespace std;
int main()
{
int n,s,i,j,c;
cin>>n>>s;
int a[n][n];
add cin>>a[j][i];
cout<<a[c(n)][c(n)];
for(i=1;i<=c(n);i++)
{
switch (s)
{
case 0:
{
f cout<<a[c(n)-i][c(... |
6bc32c0a38b4339b8bf084ec7e0977f3d61d37bf | e035cab6a135308464f8762f283a7bb79ee256bc | /Engine/Source/Runtime/System/Application.cpp | 315bc8c1c928fef7f2db76235192f1b863eae0ba | [] | no_license | corefan/EtherealEngine | 9d08a9e732618655ad3af9491d74095d3cdf28b5 | 7713e48af8f7be556a3f133d79210ddff16a0a4a | refs/heads/master | 2021-01-12T04:26:43.147169 | 2016-12-27T00:35:39 | 2016-12-27T00:35:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,265 | cpp | Application.cpp | #include "Application.h"
#include "Core/core.h"
#include "Graphics/graphics.h"
#include "../System/Singleton.h"
#include "../System/Timer.h"
#include "../System/FileSystem.h"
#include "../System/MessageBox.h"
#include "../Threading/ThreadPool.h"
#include "../Assets/AssetManager.h"
#include "../Assets/AssetReader.h"
#in... |
c732c0f8be074be29d1bef4e780cd439a6710622 | ffdde4ab8f73fb3ff97fdbc5a0ff637d023a0a98 | /KM_Lab_3/mainwindow.cpp | 3e2e7e922f99602fb568cdc4761b14f99e0cfb15 | [] | no_license | Koskop/KM_Labs | a94e81dfd4ab64abfdbd772f1054d6cd3c789c0a | 33c387b5de722d62e09ddea8c0e3ef09f50867e1 | refs/heads/master | 2021-01-24T02:30:33.588855 | 2018-06-03T17:21:48 | 2018-06-03T17:21:48 | 122,851,507 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 28,672 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
ui->horizontalSlider->setMinimum(0);
ui->horizontalSlider->setMaximum(86);
ui->horizontalScrollBar->setRange(0,0);
ui->ver... |
9ad7165921a2d856163058923ee34bad47d67d53 | 4e0590ddf391d3b70e01e332b9bb61b644d4312d | /code/pm/src/ode_solv.cpp | a57f9ffa51c69d0efe27c5f19e89de1eb548a363 | [] | no_license | ktbolt/ProteinMechanica | 8724f2f12ba892a32b69423fd4dbb52b169a4981 | e02effec46550b1a91061dd052af54ae56a7546f | refs/heads/master | 2020-06-22T04:41:28.728730 | 2020-06-09T04:21:36 | 2020-06-09T04:21:36 | 197,635,184 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 60,875 | cpp | ode_solv.cpp | /* -------------------------------------------------------------------------- *
* Protein Mechanica *
* -------------------------------------------------------------------------- *
* This is part of the Protein Mechanica coarse-grained molecular motor *
... |
484abddb2f4c1166c8f5e7fcc8eb4a5cf94b732a | 4fa90d778e9cf823179a885e0de0ea235abce06a | /PathTracing/CSphere.h | 1e58c0a94ae66b01129bf82da7f018de2e3cee18 | [] | no_license | zhuisa/PathTracing | b8342c0adde0c31626c3b7376319dee8c26c0667 | ab615779328a0f070225b667a7c01a0fa897c5fa | refs/heads/master | 2022-12-08T16:22:31.245730 | 2020-09-06T13:09:58 | 2020-09-06T13:09:58 | 292,211,252 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 404 | h | CSphere.h | #pragma once
#include<glm/glm.hpp>
using namespace glm;
class CSphere
{
public:
struct SMaterial
{
float Absorption;
float Disperse;
float Reflection;
vec3 Color;
};
CSphere(float vRadius, vec3 vCenter, SMaterial vMaterial);
const float getRadius() const;
const vec3 getColor() const;
const vec3 getCen... |
a9419a4d293b9587520032652d8e40d7f8503391 | 20bb1ae805cd796a7c377e55966633441d1d9fd5 | /hackerrank/University CodeSprint 2/March of the King/march.cpp | ffa5bcf6756e714d39aae9693c204492837af715 | [] | no_license | nathantheinventor/solved-problems | 1791c9588aefe2ebdc9293eb3d58317346d88e83 | c738e203fa77ae931b0ec613e5a00f9a8f7ff845 | refs/heads/master | 2022-10-27T08:58:23.860159 | 2022-10-13T20:18:43 | 2022-10-13T20:18:43 | 122,110,149 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,370 | cpp | march.cpp | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
char secret[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
char board[8][8] = {0};
int neighbors[8][2] = {{-1, -1}, {-1, 0}, {-1, 1},
{ 0, -1}, { 0, 1},
{ 1, -1}, { 1, 0}, { 1, 1}}... |
5bf3b8752662b8994a94834c09cc80f19b4fc166 | 076d699d2ad3c97603a514224634b774271647fb | /2017.11.11/D1.cpp | 2a47b18a3b8ee51e7997f6e491f9f432273f2940 | [] | no_license | siberiy4/comp_prog | 2d3e612561239cc48226c572cb67187eddd9e952 | 3ca7070f9ae4ef1aff6d1a39ce8492a076204793 | refs/heads/master | 2022-12-06T21:23:35.191599 | 2019-08-18T14:52:02 | 2019-08-18T14:52:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 625 | cpp | D1.cpp | #include<iostream>
#include<vector>
#include<cstdlib>
using namespace std;
int main(){
int N,Z,W,i=1,b=1;
cin >>N >>Z >>W;
vector<int> a(N);
for(i=b;i<N;i++){
cin >>a[i];
}
while(i<N){
for(i=b;i<N;i++){
if(a[i-1]>a[i]&&a[i-1]>Z){
... |
f9f22ea704ee205e6ff5c72b0490333b07789b12 | bb097f5bc86785cd8c448f290b66d2fe092e0218 | /comparator.cpp | e58e37e8b591901b3648d35951068e183c352170 | [] | no_license | YBelikov/spreadsheet-app-qt | b41be108d62636afcd7c654fd4f83339b3cff7f8 | b7259c744d2bc1c1342718d6ec9749e7b1208fc5 | refs/heads/master | 2020-08-28T03:33:27.443802 | 2019-11-07T22:20:20 | 2019-11-07T22:20:20 | 217,575,806 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 438 | cpp | comparator.cpp | #include "comparator.h"
Comparator::Comparator(){}
bool Comparator::operator()(const QStringList &row1, const QStringList &row2){
for(int i = 0; i < numberOfKeys; ++i){
int column = keys[i];
if(column != -1){
if(ascendingOrder[i]){
return row1[i] > row2[i];
... |
102f8d279f12de70d3b1680dfbdd476891b1eb1f | 1ffa1eddd3e57d5696971d636f7c5abfdeb8cce7 | /vp/src/core/common/timer.cpp | 844e66c4f1f0077eae36bce11d38c9cc78beb4d1 | [
"MIT"
] | permissive | agra-uni-bremen/riscv-vp | fc933564e2616821798d478c6a3fbbc3ac7817d5 | 9418b8abb5e22d586a222ebebd5e9b12051e475b | refs/heads/master | 2023-08-17T12:55:47.669700 | 2023-07-04T08:57:11 | 2023-07-04T08:57:11 | 137,900,431 | 116 | 64 | MIT | 2023-01-22T12:01:54 | 2018-06-19T14:09:48 | C++ | UTF-8 | C++ | false | false | 2,959 | cpp | timer.cpp | #include <assert.h>
#include <limits.h>
#include <stdlib.h>
#include <signal.h>
#include <errno.h>
#include <err.h>
#include "timer.h"
/* As defined in nanosleep(3) */
#define NS_MAX 999999999UL
#define US_MAX (NS_MAX / 1000)
/* Signal used to unblock nanosleep in thread */
#define SIGNUM SIGUSR1
static int
xnanosl... |
5aa58569c5bc227f60f6eddee920253307cd4be7 | f332acd61b060ebb53a2a9a15de1ef39f9ae2b0d | /include/kernel.hpp | a94db25c78b34859005ab6a56263a8574f7e622c | [
"MIT"
] | permissive | PierreMarchand20/htool_benchmarks | a7b780a5ff856f0b9471205493f2df656223118a | 32f78503839e793b4a270aa7f71be2c08c2e7423 | refs/heads/main | 2023-07-15T13:33:26.418328 | 2021-09-03T14:05:06 | 2021-09-03T14:05:06 | 296,685,145 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 48,829 | hpp | kernel.hpp | #ifndef HTOOL_BENCHMARKS_KERNEL_HPP
#define HTOOL_BENCHMARKS_KERNEL_HPP
#include <complex>
#include <htool/htool.hpp>
#include <iomanip>
#include <omp.h>
#ifndef __INTEL_COMPILER
# include <vectorclass.h>
# include "vectormath_exp.h"
# include "vectormath_trig.h"
# include <complexvec1.h>
#endif
#include ... |
49a426d0d9661c1d6d2661099c5f9e3165828624 | 354528d2bb33fe91245e44be181e880fb3874f5a | /NeuralNet/include/nn/layerset.h | 3cd9a298a469063c4444ebe870d5a20d27d00693 | [
"MIT"
] | permissive | nabla27/NeuralNet32 | e6b410db19d07caa332bb19afd50f3904b84277c | e35233adf2b52d9fcb8443dfe35bb8acf5187eb8 | refs/heads/master | 2023-07-15T17:08:38.595959 | 2021-08-26T14:46:15 | 2021-08-26T14:46:15 | 398,137,288 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 2,576 | h | layerset.h | /* LICENSE
Copyright (c) 2021, nabla All rights reserved.
Use of this source code is governed by a MIT license that can be found
in the LICENSE file.
*/
#ifndef NN_LAYERSET_H
#define NN_LAYERSET_H
#include <vector>
#include <string>
#include <random>
#include "vec/function.h"
#include "util/exchanding.h"
names... |
d7319270cf35da111dd6b9ae8ab28360c37614d5 | 9e8649a48a4fb2fa001465bddbf7f820daf7b9a7 | /compiler/symbol_table.h | b357f457de9b6239eba7aa805dabef72e176842a | [] | no_license | igalakhov/mks66-mdl | 6c3f9e0977e29536b73ce713ccb95fb87ee8c2ff | 4c3b687069b0348fea9823998cab6a92fccb38cd | refs/heads/master | 2020-05-22T00:46:50.567993 | 2019-05-16T19:26:00 | 2019-05-16T19:26:00 | 186,180,420 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,304 | h | symbol_table.h | //
// Created by Ivan Galakhov on 2019-05-10.
//
#ifndef WORK_01_LINE_SYMBOL_TABLE_H
#define WORK_01_LINE_SYMBOL_TABLE_H
#include <iostream>
#include <string.h>
#include "../matrix/transformation_matrix.h"
#include "../settings.h"
#define MAX_SYMBOLS 512
#define SYM_MATRIX 1
#define SYM_VALUE 2
#define SYM_CONSTAN... |
a5f6e7ec13ce23e262992f06fb2a56e969bae6a1 | 8b42ecbf10596fe8cfc1efacd9c0d189d0d26a11 | /src/Parser.cpp | 0efac1242f253541473e108eef184f459ac5f89c | [] | no_license | itsmekate/abstract-vm | e040f4f88a158f06299fe724812edce419e4f164 | 1d796681295193da5df12696f887de6326f8395a | refs/heads/master | 2020-04-16T07:41:06.707190 | 2019-01-26T14:37:14 | 2019-01-26T14:37:14 | 165,395,862 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,567 | cpp | Parser.cpp | #include "../inc/Parser.hpp"
#include "../inc/Exception.hpp"
#include <limits.h>
#include <iostream>
Parser::Parser(){}
Parser::Parser(std::vector<std::map<std::string, std::string>> lexer_result){
try
{
checkExit(lexer_result);
}
catch (std::exception &e) {
std::cout << e.what() << '... |
1c0951b2fcd218567a11f4341aa660ffe45f074b | dfd221943983d2d48fabf0c41064ba5714789bfc | /terepgen/code/renderer/dx_resource.cpp | 3b0aff896d00215091b30321b523c83b3cef9359 | [] | no_license | HMate/TerepGenProject | 8c878cf8164a24aed7649a18236f1e4dbfa4c230 | b8491db03b93805e7638026a178696d26651725a | refs/heads/master | 2020-05-21T04:33:53.602107 | 2017-03-17T11:17:54 | 2017-03-17T11:17:54 | 38,627,366 | 0 | 0 | null | null | null | null | ISO-8859-2 | C++ | false | false | 31,321 | cpp | dx_resource.cpp | /*
Terep generátor by Hidvégi Máté @2015
*/
#include "renderer.h"
internal HRESULT
LoadJPGFromFile(dx_resource *DXResources, char *Filename, ID3D11ShaderResourceView **ShaderResView)
{
HRESULT HResult = E_FAIL;
int32 ImgHeight;
int32 ImgWidth;
int32 SourcePxByteSize;
uint32 DestPxByteSiz... |
e37a7d02a340b3995340572cf418081e7b348a02 | d8f568633b985728d1a3bef7fea35341448ab34d | /TestStable/testmt.cpp | 4287477d5d8d4206310d94359d444cf300ac97fa | [] | no_license | zhkLearn/TestStable | 1100fbe37d2264dd387e68f6559aac6ec6a0b75c | 13f8f904e947e9c043619e8d927a3bbf5f7aba55 | refs/heads/master | 2020-04-13T12:02:56.212660 | 2019-08-10T07:14:25 | 2019-08-10T07:14:25 | 163,191,244 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,379 | cpp | testmt.cpp | #include "stdafx.h"
#include "stable.h"
#include <thread>
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <inttypes.h>
#define MAX_THREAD 16
#define MAX_COUNT 1000
static struct STable* init()
{
struct STable * t = stable_create();
struct STable * s... |
b5ef20ac31ec86ede8c58f576ae0b898e9050ed6 | a349dbf18493cd9bbb2bc9288671f2c981aa8233 | /All Other Topics/Smallest Positive missing number.cpp | cc3859f5e59676ec6e487c95bf17532a6774af33 | [] | no_license | Ashish-kumar7/geeks-for-geeks-solutions | dd67fb596162d866a8043460f07e2052dc38446d | 045dc4041323b4f912fcb50ae087eb5865fbacb3 | refs/heads/master | 2022-10-27T14:43:09.588551 | 2022-10-02T10:41:56 | 2022-10-02T10:41:56 | 228,147,267 | 38 | 50 | null | 2022-10-19T05:32:24 | 2019-12-15T07:40:36 | C++ | UTF-8 | C++ | false | false | 291 | cpp | Smallest Positive missing number.cpp | int missingNumber(int B[], int n) {
int A[n+2];
for(int i=0;i<n+2;i++){
A[i]=0;
}
for(int i=0;i<n;i++){
if(B[i]>0 && B[i]<n+2){
A[B[i]]++;
}
}
for(int i=1;i<n+2;i++){
if(A[i]==0){
return i;
}
}
} |
8aab6dc446468c7fc836c5eae00144d11882cf8b | 47750365686d097ade42f71ff1c00783672c8670 | /src/SynTree/CompoundStmt.cc | 6679ec561942b4ac92fa0d5e8639f063f23e83b2 | [
"BSD-3-Clause"
] | permissive | cforall/cforall | 5c380fe6b1dbb361acaca946afef420f322f30bd | 3d410dfa484515e634d1c902f9a88143b57a8a60 | refs/heads/master | 2023-08-18T09:22:22.954701 | 2023-08-16T04:30:20 | 2023-08-16T04:30:20 | 139,628,817 | 56 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,430 | cc | CompoundStmt.cc | //
// Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
//
// The contents of this file are covered under the licence agreement in the
// file "LICENCE" distributed with Cforall.
//
// XXX.cc --
//
// Author : Richard C. Bilson
// Created On : Mon May 18 07:44:20 2015
// Last Modified By :... |
ed4261d7177994235bfac860f6b703e5271c149a | abb28a62de39d806d5a63f5b94305069ee5950ca | /src/cppsim/general_quantum_operator.cpp | d8f06fd75cf5ee7862215bf85076b8e7fc0c9136 | [
"MIT"
] | permissive | qulacs/qulacs | 0d79074b83b8cc0faa3c31135178b08771be9987 | 413bcd3d02c01e2ad85a711abad252daadd5b832 | refs/heads/main | 2023-08-16T21:25:57.217422 | 2023-07-31T01:53:48 | 2023-07-31T01:53:48 | 151,675,481 | 349 | 121 | MIT | 2023-09-14T01:53:34 | 2018-10-05T05:39:51 | C++ | UTF-8 | C++ | false | false | 36,921 | cpp | general_quantum_operator.cpp | #include "general_quantum_operator.hpp"
#include <Eigen/Dense>
#include <csim/stat_ops.hpp>
#include <csim/update_ops.hpp>
#include <csim/update_ops_dm.hpp>
#include <csim/utility.hpp>
#include <cstring>
#include <fstream>
#include <numeric>
#include <unsupported/Eigen/KroneckerProduct>
#include "exception.hpp"
#incl... |
c4ca2494aab292fe44a67c8fb4b1d9b766c1fb8b | 32068408ebe4502d04045f6b70b1f540c0e153e2 | /src/Commands/Auto/CheckHeading.h | 89cad58b4e04c816af87a5b136a77d117e7303dd | [] | no_license | ZacharyCody/FRC-2018 | 2d90f83477e6bb92a3c685bcdbab86cf6810e23d | f551694a9f23edf3019da3af74e73272259f1356 | refs/heads/master | 2022-02-14T12:35:31.066235 | 2018-11-15T04:34:30 | 2018-11-15T04:34:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 865 | h | CheckHeading.h | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... |
db442792df738e71fb0147d2c4cc2419a60f8e7d | 8cd27157aa08040bbf592a4a5bd52f1d6aef9219 | /PT Project Phase_2/Actions/AddComment.h | 210bc4b2d35d4ece18aec7dfc5cef5c3c31a1892 | [] | no_license | ayaibrahim44/testing2 | aa61e659279f93b5223a82a1a3d75f9d2b0d18fc | ee3d2110e20a856079eac59047e872b30b6e9fb1 | refs/heads/master | 2020-05-26T11:40:53.835776 | 2017-03-14T20:59:13 | 2017-03-14T20:59:13 | 84,996,174 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 244 | h | AddComment.h | #include "..\Statements\SmplAssign.h"
#include"Action.h"
class Comment :public Action
{
string comment;
Statement*SelStat;
public:
Comment(ApplicationManager *pAppManager);
virtual void ReadActionParameters();
virtual void Execute();
}; |
05cbed514289a8fdf4ddf4df6a8cea66895f9b73 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2652486_1/C++/marcoskwkm/c.cpp | bcb12c63d53e0b58aa98270b406f4e392e5e8478 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 3,324 | cpp | c.cpp | #include <cmath>
#include <ctime>
#include <cctype>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cassert>
#include <functional>
#include <algorithm>
#include <iostream>
#include <numeric>
#include <iomanip>
#include <sstream>
#include <bitset>
#include <string>
#include <vector>
#include <stack>
#i... |
83a9631f027ff45bd6b92b5f431f217d079f4c4f | 3819be3b7e24fae0bdaf644ad5971eaa4d9282b3 | /Coursera/week3/Realize.cpp | 0dbc59d22ca3c7fcfd0dd21fbbde9da22dc7c95b | [] | no_license | somerandomsymbols/Cubics_Labkees | b4b6daf51a13a43c25148f94bea78dd048b03414 | c86fadc86b13c50f1f70722bcccbb6c757ea9533 | refs/heads/master | 2022-04-26T21:08:06.006266 | 2020-04-28T14:39:13 | 2020-04-28T14:39:13 | 254,868,599 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 353 | cpp | Realize.cpp | #include <bits/stdc++.h>
#include "sum_reverse_sort.h"
using namespace std;
int Sum(int x, int y)
{
return x + y;
}
string Reverse(string s)
{
string x = "";
for (int i = s.length() - 1; i >= 0; --i)
x += s.substr(i,1);
return x;
}
void Sort(vector<int>& nums)
{
sor... |
935ff3cdcd0f5aa44147811efde96dd99af8ef81 | 2cb3829bca2b0b20c27699b636d52e170bcafe6b | /add.cpp | 00ea6e4307a53b9b918ff0bd544b9c6a423b456e | [] | no_license | dennisledford/gradebook | 8e25ab9197cb1793fd73554d3ac5ee691e91e6c4 | 7e7aea25a21e63319e72b949072a13e99f2d5004 | refs/heads/master | 2020-07-04T21:02:23.261124 | 2016-11-18T15:38:40 | 2016-11-18T15:38:40 | 74,142,133 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 268 | cpp | add.cpp | #include"header.h"
void addstudent(SortedType& studentlist)
{
student person;
bool found;
person.getinfo();
studentlist.RetrieveItem(person, found);
if(!found)
{
studentlist.InsertItem(person);
}
else
cout<<"Student already entered"<<endl;
}
|
b2e9b2062684b87e2758f48a120016c1fcfead76 | 82646fb7fe40db6dcdf238548128f7b633de94c0 | /workspace/算法/1142.cpp | cc49045ff278d0ac0026dd47ead5e41d279914cd | [] | no_license | jtahstu/iCode | a7873618fe98e502c1e0e2fd0769d71b3adac756 | 42d0899945dbc1bab98092d21a1d946137a1795e | refs/heads/master | 2021-01-10T22:55:47.677615 | 2016-10-23T12:42:38 | 2016-10-23T12:42:38 | 70,316,051 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 777 | cpp | 1142.cpp | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main()
{
int n;
cin>>n;
while(n--)
{
string a,b,c[27],d[27];
cin>>a>>b;
sort(a.begin(),a.end());
sort(b.begin(),b.end());
c[0]=a[0],d[0]=b[0];
int count1=1,coun... |
7b22f9f0b290c4b2e6768ee84267014c03f290a6 | 18001b0aaf2b5365d0002b36bf96def23b21a4e9 | /MyLIP/algorithm.cpp | e5d0d571725771632796e614907cc5a54f0f8cd2 | [] | no_license | waterdr0p/BigInt | 7590903f35422711412c37c370dbd7d74097115f | 8ae682f3690179bd115ea80c0cf183b23d5fc4fa | refs/heads/master | 2021-01-15T16:52:19.952295 | 2013-11-26T16:05:30 | 2013-11-26T16:05:30 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 12,497 | cpp | algorithm.cpp | #include "algorithm.h"
#include <windows.h>
//计算蒙哥马利乘积,在ModExp里面进行二进制模幂时每一步都会使用
BigInt MonPro(const BigInt&a,const BigInt& b,const BigInt& r,const BigInt&n,const BigInt& n$)
{
BigInt t = a*b;
/*BigInt m = t*n$ % r; //蒙哥马利算法的精髓就是这一行和下一行。不需要过多的计算就可以进行,因为r是10...0形式, %r 或 /r 的计算超级容易!
BigInt u = (t+m*n)/r; //下面是对这两行... |
c2124d7b507eb727af315402dbb5f7ebf4e22b86 | b326e7396c67e0ebb13ab78f442accb4e3ccab88 | /MMC.h | 91b9836c1ad8e8698c45191e7158c19f98a9b4e9 | [] | no_license | karlajusten/DS1-MMC | 23e74c78e7470716af2a44a28ef45a55f2e6f239 | 892fe5375dfd5843eff93bf68da662bd6774d809 | refs/heads/master | 2020-03-26T12:27:19.912633 | 2018-08-29T19:30:23 | 2018-08-29T19:30:23 | 144,893,214 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,406 | h | MMC.h | /*
* MMC.h
*
* Created on: 15 de ago de 2018
* Author: karla
* Author: bruno
*/
#ifndef MMC_H_
#define MMC_H_
#include <stdint.h>
#include <iostream>
#define _USE_MATH_DEFINES
#include <cmath>
#include "Sampler_if.h"
//discrete
#include <initializer_list>
#include <iterator>
#include <numeric>
#incl... |
e4ca7f6defa34b970156389a65e0baa83b986f90 | 1a76cb9fce384bbbb3e4c538d4be9b9b4197ec54 | /SVIEngine/jni/SVI/Animation/Transition/SVIUncoverEffector.h | f70b3adcfd9788dec85f0051b1ea8e3077971b47 | [
"Apache-2.0"
] | permissive | teeraporn39/SVIEngine | 8e231e9e8d5a2aa001539e96abc6355ee0edbb5d | 87e379a1e1906025660e9de8da8ff908faf0a976 | refs/heads/master | 2020-06-19T18:17:27.504208 | 2019-09-23T20:26:18 | 2019-09-23T20:26:18 | 196,818,062 | 1 | 0 | Apache-2.0 | 2019-07-14T09:33:39 | 2019-07-14T09:33:39 | null | UTF-8 | C++ | false | false | 329 | h | SVIUncoverEffector.h | #ifndef __SVI_UNCOVEREFFECTOR_H_
#define __SVI_UNCOVEREFFECTOR_H_
#include "SVITransitionEffector.h"
namespace SVI {
class SVIUncoverEffector : public SVITransitionEffector {
public:
SVIUncoverEffector(SVIGLSurface *surface);
virtual ~SVIUncoverEffector() {}
protected:
void setAnimation();
private:
};
... |
94ad8c22b3bf15ceea7f963b177c9c5cc96b9943 | 5fbde59f61cdf490d03a46aa1361e49cfce118d7 | /wait.cc | c96a4ba5adc43b04169bf8288f209e5acb4e57ec | [] | no_license | kcir-notlob/wait | 1e9f520969315fbdcb8cc502a007e13becaf8ea5 | ee924e3511fde5a2158b1ec362dba27ab32e975e | refs/heads/master | 2020-03-28T00:01:03.843510 | 2018-09-04T15:37:56 | 2018-09-04T15:37:56 | 147,368,545 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,304 | cc | wait.cc | //file:wait.cc
//version:0.0.0.1
#include <iostream>
#include <thread>
using namespace std;
using namespace std::chrono;
float star(float previous,int current,int max){
int const DISPLAY_STEPS=80;
if(current==0){
cout << "[" << flush;
for(int i=0;i<DISPLAY_STEPS;i++){
cout << "-" << flush;
}
cout << "... |
871f1258d5043f1c802dfe20f8db57260092e09e | 60de2a41d7848c6933ccb94fce5f0961b56e2498 | /Examples/C++/Contents/SceneEntities/HelloPolycodeApp.h | daa5295fccd38096ab7642d8a3f0d622614cb323 | [
"MIT"
] | permissive | sbarisic/Polycode | 0e7e7dae031a91bc720bcff410fdd379046c8a8b | b6fe41c6123281db3caee3c11f655de79df6fbfb | refs/heads/master | 2018-12-12T23:23:15.311252 | 2018-09-13T13:42:04 | 2018-09-13T13:42:04 | 40,675,469 | 0 | 0 | MIT | 2018-09-13T13:42:05 | 2015-08-13T18:35:40 | C++ | UTF-8 | C++ | false | false | 349 | h | HelloPolycodeApp.h | #include <Polycode.h>
#include "PolycodeView.h"
using namespace Polycode;
class HelloPolycodeApp {
public:
HelloPolycodeApp(PolycodeView *view);
~HelloPolycodeApp();
bool Update();
private:
ScenePrimitive *sun;
ScenePrimitive *planet;
ScenePrimitive *moon;
Number planetRoll;
Number moon... |
480f86cd65e2e0717cd28ba882f3f6caee022247 | 530877d73360973288f8bd041230e9e566820b78 | /Figures/CRectangle.h | 562d7da396ca1f3f45da572c53cbb6727ddc9402 | [] | no_license | aymanElakwah/paint-for-kids | 888418fd028bcdb704cce4030604a233aad57a12 | 88319b2e9ac54d75a292dd61abc35cbeb22614e0 | refs/heads/master | 2021-10-08T04:29:51.308969 | 2018-12-07T18:12:26 | 2018-12-07T18:12:26 | 112,390,294 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 603 | h | CRectangle.h | #ifndef CRECT_H
#define CRECT_H
#include "CFigure.h"
class CRectangle : public CFigure
{
private:
Point Corner1;
Point Corner2;
public:
CRectangle();
CRectangle(Point , Point, GfxInfo FigureGfxInfo);
virtual void Draw(Output* pOut) const;
virtual bool IsInside(Point P);
virtual void Save(ofstream &OutFile) co... |
bec8beca13b29bbfd2ec89184c34c28ca4dd78d0 | d287ed8bdb566b25b5e5fed9d635cb68a3687a88 | /rmf_traffic_ros2/src/rmf_traffic_ros2/schedule/convert_Patch.cpp | e5d77ed7c9baee973295d4f90b501fad139ad006 | [
"Apache-2.0"
] | permissive | jian-dong/rmf_ros2 | 3ebff8e2ff9e059b56baa59e21da4bbd1e596bfd | 87ce942d534b24da202c77efea5daf0fce47fe25 | refs/heads/main | 2023-07-20T07:28:20.357865 | 2021-09-02T06:34:01 | 2021-09-02T06:34:01 | 404,021,430 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,412 | cpp | convert_Patch.cpp | /*
* Copyright (C) 2019 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... |
19ae06a3187e117b606803742afbb5646eb50876 | 2137ad6d3e303cfc0dd4b24d27eb914514f442b3 | /test/testBig.cc | e898c95c6b290dc4c591546dc75a535dfa181f86 | [] | no_license | zacharysells/project_euler | 5e4e8d91ef9cfdd4aa51305f7bb57b9a09b7e68a | 526e39d00e448921072cbe3659c9389f21f9dc76 | refs/heads/master | 2016-09-06T11:28:16.655258 | 2014-12-08T07:08:26 | 2014-12-08T07:08:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 177 | cc | testBig.cc | #include <iostream>
#include <bigNumber.h>
#include <bigNumber.cpp>
using namespace std;
int main()
{
bigNumber x("5");
bigNumber y("11");
x = x * 2;
cout << x << endl;
}
|
ef97c9127886a5ede71f248fa6d5380eec9ca96f | 459fabe8dcc30a168034a9166f8931ceb986b21a | /atcoder/ABC-085/c.cpp | 16efd6e8830414a01e06c655875cbb2b02e2a920 | [
"MIT"
] | permissive | YusukeKato/ProgrammingContest | a04727472e4b3684d2928e7114f5bde0f517aa58 | d8ae46b936eaa4f8794ad333f5367c177c18d92f | refs/heads/master | 2022-12-02T15:53:47.032118 | 2019-08-28T14:04:59 | 2019-08-28T14:04:59 | 170,851,658 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 535 | cpp | c.cpp | #include <iostream>
using namespace std;
int main()
{
int N, Y;
cin >> N >> Y;
int ans_a = -1;
int ans_b = -1;
int ans_c = -1;
for(int a = 0; a <= N; a++)
{
for(int b = 0; b <= N; b++)
{
int c = N - a - b;
if(c >= 0 and a+b+c == N and 10000*a+5000*b+... |
8e726fbb36dc0d226cf6156ea9aa5fdbfac692ce | b8376621d63394958a7e9535fc7741ac8b5c3bdc | /lib/lib_mech/src/server/TServer/TCommonClient/protocal/PT_ChannelServer_Enum.cpp | a740d6423202bcadda782110d1858ded185e5895 | [] | no_license | 15831944/job_mobile | 4f1b9dad21cb7866a35a86d2d86e79b080fb8102 | ebdf33d006025a682e9f2dbb670b23d5e3acb285 | refs/heads/master | 2021-12-02T10:58:20.932641 | 2013-01-09T05:20:33 | 2013-01-09T05:20:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 51,890 | cpp | PT_ChannelServer_Enum.cpp |
//from(d:\svn\common\lib\windows\mech\src\server\tserver\doc\sequece\tserver\..\..\..\tcommonclient\protocal\pt_channel.xml)
#include "stdafx.h"
#include "interface/net/jPlugInHelpTable.h"
#include "PT_ChannelServer_Enum.h"
#include "../my_PT_TServer.h"
#ifndef ChannelServer_jNOTUSE_SQ_CODE
using namespace nMech::... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.