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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
703df723f12e90669f1ceeafa76ec940c31a9eef | bf29351424e6964d6a187e792488a6528207c2b6 | /VoiceBankUtils/folderssettingdialog.h | fb112fb3e88a0f9994a214a035de73c566d01053 | [] | no_license | shine5402/VoicebankManager | 64337fefdf7dce0d2e83daac098fcac7ed77470a | e4102b1fb3616d3a70cc8a20e641ed5e145c03ba | refs/heads/master | 2022-12-01T05:28:10.828434 | 2020-08-19T16:21:41 | 2020-08-19T16:21:41 | 146,529,969 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,199 | h | folderssettingdialog.h | #ifndef MONITORFOLDERSSETTINGDIALOG_H
#define MONITORFOLDERSSETTINGDIALOG_H
#include <QDialog>
#include "foldersadddialog.h"
#include <QMessageBox>
#include <public_defines.h>
namespace Ui {
class FoldersSettingDialog;
}
class FoldersSettingDialog : public QDialog
{
Q_OBJECT
public:
explicit FoldersSett... |
94a7aadd8510788749defa377582558b263c534a | 6680f8d317de48876d4176d443bfd580ec7a5aef | /Header/ProjectConfig/misStructTrackingSetting.h | 34fb8ea716d1a3983e7357714958028271b1123b | [] | no_license | AlirezaMojtabavi/misInteractiveSegmentation | 1b51b0babb0c6f9601330fafc5c15ca560d6af31 | 4630a8c614f6421042636a2adc47ed6b5d960a2b | refs/heads/master | 2020-12-10T11:09:19.345393 | 2020-03-04T11:34:26 | 2020-03-04T11:34:26 | 233,574,482 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,593 | h | misStructTrackingSetting.h | #pragma once
#include "misCalibrationWorkflowManagerProperties.h"
#include "misMicronTrackerSetting.h"
#include "misTimePassingForActionPropertiesStr.h"
#include "misTrackingManagerEnums.h"
#include "misTrackingManagerTypes.h"
struct misStructTrackingSetting : public Serializable
{
public:
int m_MicronFrequnc... |
cb82fe12613506ec851102aac016d4f47a1f893c | 9efa297758a057a23755c65a334b26925d7916ea | /41 First Missing Positive/41 First Missing Positive/Source.cpp | ccfa6a86268b5bc843cada58d419c47bd7e1f255 | [
"MIT"
] | permissive | 447327642/leetcode-1 | feef7c6e4d5083332017bc4a51f64b67ad2432dc | 363eff1c1d65947bdc69067182b3bd866d418c9e | refs/heads/master | 2020-12-25T12:17:13.513837 | 2015-07-07T06:30:54 | 2015-07-07T06:30:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 517 | cpp | Source.cpp | class Solution {
public:
int firstMissingPositive(vector<int>& nums) {
int n = nums.size();
if (!n) return 1;
vector<int> pi;
pi.push_back(1);
for (int i = 1; i < n+2; i++) {
pi.push_back(0);
}
for (int i : nums) {
if (i <= 0) continue;... |
1a157a3ae23906b280c5b550d944f781e9343c75 | 20ed86f8e12a24e2a1ab46a92e8d78e340e3209f | /L5_Application/demo/lab2_Gpio/blinkLED.hpp | e00ebe39f4f30d99a88565f24a53d9178dfe2b7d | [] | no_license | james94/lpc1758_firmware_labs | 4643bd36cb99f60e352cd56e72623775c63412e6 | 69408e799c4e18a95a50d2a5e736d20f740d67da | refs/heads/master | 2020-12-02T08:34:01.996619 | 2019-12-30T17:11:42 | 2019-12-30T17:11:42 | 119,230,991 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 871 | hpp | blinkLED.hpp | /*
* blinkLED.hpp
*
* Created on: Jan 30, 2018
* Author: james
*/
#ifndef BLINKLED_HPP_
#define BLINKLED_HPP_
#include "LabGPIO.hpp"
#include "FreeRTOS.h"
#include "tasks.hpp"
#include "stdbool.h"
#include "printf_lib.h"
//toggles LED when flag set
extern bool toggle_int, toggle_ext, togg... |
73d0fe8c7acc3cfce860a8e582cd070c0f7619f2 | db2e5071c6e3c9370a7da3738ef42de72f8e30b0 | /Graphics_1/src/glfunctions.h | 62cf27c4df93b55f5272bb7872f830ca17fe547e | [] | no_license | silviamiralles/Planetario | 2c63820bbbe14f984f1d8a53f6f536355d88ff4a | 79e27a9dca53a92545acb42f44cda7ed27cc7c55 | refs/heads/main | 2023-06-24T06:28:04.053603 | 2021-07-26T14:27:16 | 2021-07-26T14:27:16 | 389,655,837 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 377 | h | glfunctions.h | #pragma once
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <vector>
GLuint gl_createAndBindVAO();
void gl_createAndBindAttribute(const GLfloat data[], int data_size, GLuint shader, const char* attrib, GLuint attrib_size);
void gl_createIndexBuffer(const GLuint* data, int data_s... |
a2fca809ae803c14376abf66bc9bb97494e3e396 | 1976c460d3def4a62aa81ee148ea109cc0edaa20 | /main.cpp | 4a3323ddc55d5123cf71eb766e8afea7abd8c9fb | [] | no_license | Mikumabu/n-sudoku | e537426e9e7482db756426390f78b0729c45cb83 | fb9f676b27f635f012cad1f410ab7dbdc29fcbf5 | refs/heads/master | 2021-05-26T23:25:52.749223 | 2020-04-09T01:25:03 | 2020-04-09T01:25:03 | 254,186,922 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,046 | cpp | main.cpp | /*
* Implementado por Manuel Zuleta Bernal
* Basado en la implementación original de Kevin Kuan
* https://github.com/kevinkuan/parallelSudoku
*/
#include "pch.h"
#include <stdlib.h>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <cstddef>
#include <cstdio>
#include <time.h>
#include... |
c99d9cb5a52d95cca4c8b6307b01d14bbae597b6 | fcc0b3ef9c56acaec7604d857a2e4ec26e3db370 | /source/GFX.h | 4a7713c4dacd921ba4e39ad51ab7254ea04a59fe | [
"MIT"
] | permissive | Sondro/HVOX-Engine | 9b780c6ecfe57e6ea759e9c0ab84cc274f90d412 | bef3c02411791d023e206b14f9f459e97efc9d5e | refs/heads/master | 2021-12-05T16:09:02.671302 | 2015-08-06T10:02:27 | 2015-08-06T10:02:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,109 | h | GFX.h | #ifndef _GL_class
#define _GL_class
#include <windows.h>
#include <GL/gl.h> // Header File For The OpenGL32 Library
#include <GL/glu.h> // Header File For The GLu32 Library
#include <GL/glut.h>
#include <GL/glaux.h> // Header File For The Glaux Library
//nclude "glati.h"
//nclude "w... |
3422b8b580db654b6175251bfb411c0e0eacff0f | eb1e56f8d05296511eda6ad59f0646ac7f29a2ee | /passbyreference.cpp | 1a84e39b04e7811028d5edb78839f8ead82a37f1 | [] | no_license | aakashsaini755/DataStructure | a0f4ab58be5fd44752d21e64812f9dd8017685d4 | 9cbbe6999fa4084626d5d8a4d96da6067cd3aa4d | refs/heads/master | 2023-06-21T21:24:20.356941 | 2021-07-21T16:54:44 | 2021-07-21T16:54:44 | 388,186,173 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 436 | cpp | passbyreference.cpp | #include<iostream>
using namespace std;
void increment(int &n){
n++;
}
//bad practice
int& f(int n){
int a = n;
return a;
}
//bad practice
int* f2(){
int i=10;
return &i;
}
int main(){
int *p = f2();
int i;
i =10;
increment(i);
cout<<i << endl;
int& k1 = f(i);
int &j... |
125781653de2bd22a3ff6c0c44b27a32659a4a9c | 5159a36f5ef5887a1045bb99a3f81bb003721c37 | /src/snake.cpp | b2a500fd88f4f2348d2d5b9c8c9200a1eac2c680 | [] | no_license | lkhollman/CppND-Capstone-Snake-Game | b37526be62596df7a2c4e6252218f45169bd5c3f | bc32b62d90aeccceb3b4507ffe4e4ec8a4a4214e | refs/heads/master | 2020-07-14T23:13:20.572876 | 2019-09-07T21:11:44 | 2019-09-07T21:11:44 | 205,423,485 | 0 | 0 | null | 2019-08-30T16:57:35 | 2019-08-30T16:57:35 | null | UTF-8 | C++ | false | false | 3,903 | cpp | snake.cpp | #include "snake.h"
#include <cmath>
#include <iostream>
void Snake::Update() {
SDL_Point prev_cell{
static_cast<int>(head_x), //x and y coordinates and static_cast to int
static_cast<int>( //and store in SDL_Point prev_cell
head_y)}; // We first capture the head's cell before updati... |
4f2d133ad35205f5b4940921387ce3a9453f0e58 | 67fc9e51437e351579fe9d2d349040c25936472a | /wrappers/7.0.0/vtkMedicalImagePropertiesWrap.h | 716cb1dd0b3c76c10f1fd5aa01c6af25a689d989 | [] | permissive | axkibe/node-vtk | 51b3207c7a7d3b59a4dd46a51e754984c3302dec | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | refs/heads/master | 2023-03-05T07:45:45.577220 | 2020-03-30T09:31:07 | 2020-03-30T09:31:07 | 48,490,707 | 6 | 0 | BSD-3-Clause | 2022-12-07T20:41:45 | 2015-12-23T12:58:43 | C++ | UTF-8 | C++ | false | false | 9,881 | h | vtkMedicalImagePropertiesWrap.h | /* this file has been autogenerated by vtkNodeJsWrap */
/* editing this might proof futile */
#ifndef NATIVE_EXTENSION_VTK_VTKMEDICALIMAGEPROPERTIESWRAP_H
#define NATIVE_EXTENSION_VTK_VTKMEDICALIMAGEPROPERTIESWRAP_H
#include <nan.h>
#include <vtkSmartPointer.h>
#include <vtkMedicalImageProperties.h>
#include "vtkOb... |
262e0a6e5ffe904c811d4be562a772db6fd8f60a | 8ff27e196515eda5c28eeb734899a29b8817d047 | /Thermostat.h | c6bb2c163961c75e7f055ea9ee502d92d29a01b8 | [] | no_license | filippocastelli/dehydraduino | b245c6c3752ed68c510d3355b77ff5706359745d | f2dc187e821d17d30fcd1195f93e5b0cc5c257fd | refs/heads/master | 2023-01-28T04:22:09.804784 | 2020-11-30T21:49:03 | 2020-11-30T21:49:03 | 317,354,129 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 753 | h | Thermostat.h | #ifndef THERMOSTAT_H
#define THERMOSTAT_H
#include <max6675.h>
#include "Timer.h"
#include "Relay.h"
class Thermostat{
public:
int runOutTime;
int updateTime;
int targetTemp;
int currentTemp;
Thermostat();
Thermostat(MAX6675& thermoCouple, Timer& jobtim, Relay& rel, int pollTime);
void... |
a73abcb84a76d3c270d6a821df3d9b0b39588896 | 9997cb296b19a9ae3149484caa2290c26c1f030a | /boj/02810/02810.cpp14.cpp | 651432388ff0af4b9afef847b5f9a2838dfc5a82 | [] | no_license | pukuba/Algorithm | 0eca36297a5a278e666cb2d851bd0a4c99e11357 | ea71d0e21534a2a54626fc89da58e58ea8eb1791 | refs/heads/master | 2023-06-03T05:54:43.564074 | 2021-06-23T02:26:06 | 2021-06-23T02:26:06 | 317,562,256 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 266 | cpp | 02810.cpp14.cpp | #include <iostream>
#include <string>
using namespace std;
int main(){
int n,cnt =1;
string s;
cin>>n>>s;
if(n>1){
for(int i=0; i<n; i++){
if(s[i]=='S')
cnt++;
else
i++,cnt++;
}
}
if(n>cnt)
cout<<cnt;
else
cout<<n;
} |
5ba54d049756d9329515dea7328b8eac863ec447 | 3c1aefe8aec6015f47cd1737f4f6abac8a6aa8b0 | /EasyCNN/ParamBucket.cpp | 234499e38ffe10a3970cad532aba743f6623cc2a | [
"WTFPL"
] | permissive | maotong/EasyCNN_CUDA | 11bafb49bd9ce10d9247367435e686d4675946af | 21cad435c0ad485cab36f81f555d85f803c3815f | refs/heads/master | 2021-01-24T07:45:49.840002 | 2017-05-26T08:37:48 | 2017-05-26T08:37:48 | 93,356,336 | 2 | 0 | null | 2017-06-05T02:19:10 | 2017-06-05T02:19:10 | null | UTF-8 | C++ | false | false | 657 | cpp | ParamBucket.cpp | #include "ParamBucket.h"
EasyCNN::ParamBucket::ParamBucket(const ParamSize _size):size(_size),data(new float[size._4DSize()])
{
}
EasyCNN::ParamBucket::~ParamBucket()
{
}
void EasyCNN::ParamBucket::cloneTo(ParamBucket& target)
{
target.size = this->size;
const size_t dataSize = sizeof(float)*this->size._4DSize();... |
b5871bf351fbf4f7cdd403e2e23d19707f443dee | c4203c32915c1ee09fd0ebe37149db351f8434ca | /LsmAlgorithm/src/main/cpp/heartrate/heartrate_jni.cpp | df4a9e6196874ec9006a296d1f6bc8ae8cfcc708 | [] | no_license | yuqibiao2/LSM | 8eb23b017f124227a21c7a37ad8cda65e127228d | f1c872ecfc155c1f6800abcb4d1f5dba633649e5 | refs/heads/master | 2020-03-06T16:13:28.696197 | 2019-01-03T07:47:35 | 2019-01-03T07:47:35 | 126,969,699 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,390 | cpp | heartrate_jni.cpp | #include <jni.h>
#include <stdlib.h>
#include "heartrate.h"
#include "heartrate.cpp"
using namespace std;
extern "C" {
HeartRate* heartRate;
JNIEXPORT jint JNI_OnLoad(JavaVM* pVM, void* reserved) {
JNIEnv *env;
if (pVM->GetEnv((void**) &env, JNI_VERSION_1_6) != JNI_OK) {
abort();
... |
4c352031a567d4cc68cbd5fde2b5f20177d27117 | 99367fa34a9b729db5eec0b4407c0211c2a92123 | /code/contest137/A/827_A_39631.cpp | a89908b7a971213da7d933823a2e79f3ec9db22f | [] | no_license | yingjieyao/programming2017aut | 95d6576842c1f47f2be7c2726e9783716a56d88f | ec0db83a50e9f4b41424735eecab6356c510e61c | refs/heads/master | 2021-08-31T17:27:53.616631 | 2017-12-22T07:44:33 | 2017-12-22T07:44:33 | 106,628,114 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 690 | cpp | 827_A_39631.cpp | #include <bits/stdc++.h>
using namespace std;
#ifdef WIN32
#define LLD "%I64d"
#else
#define LLD "%lld"
#endif
typedef long long int LL;
const int N = 1100;
LL a[N]; int c;
LL b[N * N];
int gcd ( int ra, int rb ) {
if (!rb) return ra;
return gcd( rb, ra % rb );
}
int main ( ) {
#ifndef ONLINE_JUDGE
freopen("A.... |
3fd73928f01d07bd19f771fca733d243611f20eb | 9b25dc90ff4cb62ef7e0de65577e2c13d60c320b | /Codeforces/berland_poker.cpp | 5c82ad41f86a881548e3ed0f314c43b3d699a2f2 | [] | no_license | iamvinayvk/Competitive-Programming | 1e62ab5a10f9631d24fcdbf8726ce03068e15268 | 8a28b35665ed9db040479f646c8d3a31b06210f2 | refs/heads/master | 2021-07-16T21:25:37.678010 | 2021-03-06T20:56:34 | 2021-03-06T20:56:34 | 243,021,712 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 589 | cpp | berland_poker.cpp | #include<bits/stdc++.h>
using namespace std;
#define fast ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define ll long long int
#define w(t) int t;cin>>t;while(t--)
int main(){
fast
w(t)
{
int n,m,k;
cin>>n>>m>>k;
int potential_cards=n/k;
int reduced_points=0;
int got_points=potential... |
626f816d90c53c281b2f9c833d38965492e7a22a | f120012c874c7e583ad564e5dd5c29a19ef96221 | /src/DataStructures/Queue.h | 1247e6e8c06329521eda4ffce33b117c47c8f17c | [] | no_license | Eduardo2108/C-_Server | b9855b3b88b9ecaa81a2f6955de5af535c573bff | b58c37a960b70ba544c943f65e0b63886dc7fe04 | refs/heads/main | 2023-04-18T22:39:39.420256 | 2021-05-08T06:35:37 | 2021-05-08T06:35:37 | 354,907,492 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,078 | h | Queue.h | //
// Created by eduardo218 on 4/5/21.
//
#ifndef C__SERVER_QUEUE_H
#define C__SERVER_QUEUE_H
#include "LinkedList.h"
template<typename T>
class Queue {
private:
LinkedList<T> *list = new LinkedList<T>();
public:
/**
* Boolean of the state of the list.
* @return false if the list is empty, true i... |
f4ce158a4b1112e04fcf8d6a3b893d516e342bda | 571440ace2ae2ca35641d775d59ccd69882d5115 | /Source/RxComponents/LMCSinglePatch.hh | 1860a3942dda9bf88528d37e87951ed1844af11f | [] | no_license | project8/locust_mc | bd188402e327efc88b830e13f7e9e3f3b20003cc | f169dd928be6d98f52c683717d181bc23d4ec03d | refs/heads/master | 2023-08-25T08:42:16.186712 | 2023-07-31T15:39:10 | 2023-07-31T15:39:10 | 9,525,443 | 3 | 5 | null | 2023-09-12T18:28:12 | 2013-04-18T15:43:00 | C++ | UTF-8 | C++ | false | false | 782 | hh | LMCSinglePatch.hh | /*
* LMCSinglePatch.hh
*
* Created on: Feb 28, 2020
* Author: pslocum
*/
#ifndef LMCSINGLEPATCH_HH_
#define LMCSINGLEPATCH_HH_
#include "LMCPowerCombiner.hh"
#include "param.hh"
#include "logger.hh"
#include <iostream>
namespace locust
{
/*!
@class SinglePatch
@author P. Slocum
@brief Derived class de... |
846499a85ea8fcd9eddf7ff997b1e0c15a65d0f4 | 5783f66ea4e57abc0af8955c2c0210cdb39101a3 | /src/dicebot/protocol_base.h | b9fa7a868ea8b261dc2e71763749d85edc4ec217 | [
"MIT"
] | permissive | Rainy12138/coolq-dicebot | ad960ef972ff24c129ec54d648d55a8418a1deca | 225d1031f55a3db50d8df9a76a08d29bde8591a8 | refs/heads/master | 2020-05-15T09:38:05.806164 | 2019-01-25T07:24:57 | 2019-01-25T07:24:57 | 182,180,906 | 1 | 0 | MIT | 2019-04-19T01:27:14 | 2019-04-19T01:27:13 | null | UTF-8 | C++ | false | false | 1,741 | h | protocol_base.h | #pragma once
#include "./common.h"
namespace dicebot::protocol{
using dice_request = std::string * (
std::string const &,
event_info const &,
std::string &);
class output_constructor{
private:
ostrs protocol_ot;
public:
output_constructor(std::string const & n... |
92908c2013d8bfdf294bc7fce0a0e064ef8ce5fc | b32e541a79e7eb9917b3d1175917dc66e380bf0e | /normal_1D/src/main.cpp | d78bcc9df7209fb9db7232dd928e595e4acd1a27 | [] | no_license | adiver26/fenwick-trees | 60886df116253a4fe8eabaf70347bfbcd2108396 | 359b5e00b649398efbe595d9ba53014f9ab5a0ce | refs/heads/main | 2023-04-12T13:41:20.811818 | 2021-05-07T06:54:49 | 2021-05-07T06:54:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 245 | cpp | main.cpp | #include <iostream>
#include "normal_1D/fenwick.hpp"
int main(){
int n=12;
FenwickTree a(n);
a.constructTree();
std::cout<<a.pointQuery(5)<<std::endl;
std::cout<<a.rangeQuery(4,9)<<std::endl;
a.display();
return 0;
}
|
4757ce78251b8ef65e58bd25566e0e48a7c26b00 | 284d812897114620b77e03cfef2ad557070d70f4 | /tests/src/logloss-shared.cpp | 441eedc590b52939db507c4cd6e5fbdc9bff58e3 | [
"MIT"
] | permissive | pologrp/experiments | b06a264e07ed24177053da02cb9f920a11dd9506 | 79782322faec0f2df390e7380c1d13d874a0d18e | refs/heads/master | 2020-04-06T19:24:42.689194 | 2019-03-26T08:53:48 | 2019-03-26T08:53:48 | 157,736,163 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,039 | cpp | logloss-shared.cpp | #include <algorithm>
#include <chrono>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <random>
#include <sstream>
#include <string>
#include <utility>
using namespace std;
#include "boost/program_options.hpp"
namespace po = boost::program_options;
#include "polo/polo.hpp"
using namespace polo;
#i... |
3d04f314a198d62c193cc5f3f2de1e8dc1fc1d21 | 26146412492cd59c8a1e597f4f9afd6037dae75e | /Lista_Posicionada/src/Pos.cpp | 3a3525b2287774bb73cdcc38a25b80225292797d | [] | no_license | geovannycordero/TareaProgramada1 | 71a0a7138976b7174822de75649177e309e9156c | cc0825e893c759944c243284b419dea0341e16e2 | refs/heads/master | 2020-12-30T12:35:26.161805 | 2017-05-17T20:35:40 | 2017-05-17T20:35:40 | 91,393,856 | 0 | 0 | null | 2017-05-17T20:34:35 | 2017-05-15T23:35:34 | null | UTF-8 | C++ | false | false | 300 | cpp | Pos.cpp | #include "Pos.h"
Pos::Pos()
{
elemento = 0;
siguiente = 0;
}
Pos::~Pos()
{
//dtor
}
Pos::Pos(int x)
{
elemento = x;
siguiente = 0;
}
int Pos::Obtenga(Pos p)
{
return p.elemento;
}
void Pos::Ponga(int x)
{
elemento = x;
siguiente = 0;
}
|
493cf0a6736b9504eec3f740a1b47eb9d94bdceb | 0370b81e9ec3f1b1d4bf0da224a613ff576e8dd4 | /Not_Classified/POJ_2763.cpp | ec4dda9b9503faf368322fd330c227a625fe27d4 | [] | no_license | Rolight/ACM_ICPC | c511bc58ac5038ca521bb500a40fcbdf5468832d | 6208a20ea66a42b4a06249d97494c77f55121847 | refs/heads/master | 2021-01-10T22:08:48.336023 | 2015-07-17T21:46:48 | 2015-07-17T21:46:48 | 27,808,805 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,410 | cpp | POJ_2763.cpp | #include <cstdio>
#include <cstring>
#include <algorithm>
#include <map>
#include <set>
#include <bitset>
#include <queue>
#include <stack>
#include <string>
#include <iostream>
#include <cmath>
#include <climits>
using namespace std;
#define lson rt << 1, l, mid
#define rson rt << 1 | 1, mid + 1, r
const int maxn = 1... |
0c4b04640b41383437ccdacd0ed957e06170d46b | f7d25255da91cd6c93ae354a688c7a66c90d9fdd | /MLX90393_Uno_3mags.ino | ca258f04cddcb8beb59e47c594a855ddc87dca1d | [] | no_license | jwill24/MLX90393 | fe081e5e4e5df6a240c81745441141b8b4eb5844 | f6c9cf6ed1e0d4d97aabc8576c79844af8051a49 | refs/heads/main | 2023-02-04T03:15:12.130349 | 2020-12-21T04:03:48 | 2020-12-21T04:03:48 | 323,224,440 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,391 | ino | MLX90393_Uno_3mags.ino |
#include <Wire.h>
#include <MLX90393.h>
MLX90393 mlx1;
MLX90393 mlx2;
MLX90393 mlx3;
MLX90393::txyz data; //Create a structure, called data, of four floats (t, x, y, and z)
int GAIN = 7;
int RES_X = 0;
int RES_Y = 0;
int RES_Z = 0;
int OSR = 1;
int DIG_FILT = 3;
void setup()
{
Serial.begin(11... |
92519a8799244c2c1e44ea5b406bc5222ce413b1 | ef9c90197796606ee5d3d800d9823f2b332070a6 | /hw07/src/facelistwidget.h | 04cfdaa595a614cf15af776b91eb23becb0d2274 | [] | no_license | hehehaha12139/CIS-460-560 | d5af73f7091389040e3e0c962af55052a026679c | b76be1eb5c5f7085e6669059399520576a69e07b | refs/heads/master | 2020-09-06T08:58:13.030233 | 2017-02-21T17:40:48 | 2017-02-21T17:40:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 268 | h | facelistwidget.h | #ifndef FACELISTWIDGET_H
#define FACELISTWIDGET_H
#include <QListWidget>
class FaceListWidget : public QListWidget
{
Q_OBJECT
public:
FaceListWidget(QWidget* parent);
public slots:
void slot_receiveFace(QListWidgetItem*);
};
#endif // FACELISTWIDGET_H
|
110b4be1bcd90df880a0fe94d6b6d179a1f163cd | 5d1b889d84635254b57571936131d611360009e0 | /AjedrezQmake/peon.cpp | ac3d2a16f762566943688c8601f4df572fd46389 | [
"Apache-2.0"
] | permissive | NeiNeiP1/chess-Class-T | be425ab2c01261a48edd9e305098242e2357554f | d76adcd3e0d769dc8bfc86c75ad6c673087381dd | refs/heads/main | 2023-02-04T03:30:48.452905 | 2020-12-22T17:15:39 | 2020-12-22T17:15:39 | 301,781,379 | 1 | 1 | Apache-2.0 | 2020-10-15T07:33:24 | 2020-10-06T16:00:44 | C++ | UTF-8 | C++ | false | false | 3,802 | cpp | peon.cpp | #include "peon.h"
#include "juego.h"
#include <QDebug>
#include <typeinfo>
#include "rey.h"
extern Juego * game;
Peon::Peon(QString team,QGraphicsItem *parent):Pieza(team,parent)
{
setImage();
firstMove = true; //Tiene efecto de primer movimiento
}
void Peon::setImage()
{ //Según el equipo se le a... |
a55457926fd0e4e57dbca32509e4a36258c3d744 | aa42d555785d0204b262a5222229dbba530615d5 | /src/car_map/resources/map/MapItem.h | 4bddd0858cf2a8acf124d75e5249623f81c7c6fb | [] | no_license | zbl2018/catkin_car | ffc86d905448d43335c2814a0381b9de673f014b | 2679fe2e95e2eecde391a0c7f2f28380332a0da8 | refs/heads/master | 2021-09-18T10:34:57.610190 | 2018-07-13T03:31:14 | 2018-07-13T03:31:14 | 140,673,371 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,155 | h | MapItem.h | #ifndef MAPITEM_H
#define MAPITEM_H
#include <QGraphicsItem>
#include <QGraphicsSceneMouseEvent>
#include <QGraphicsSceneDragDropEvent>
#include <QApplication>
#include <QWidget>
struct PointCoordinates {
double x;
double y;
};
class MapItem : public QGraphicsItem
{
public:
MapItem();
... |
22d1f4af2ea9386c56ae960f7f4c28367392b113 | 43e9ceece978228be0c9859fb43edfd3a4c266a0 | /cytosim/src/base/space_cylinderZ.cc | af7eaaeaa8698519c19ebf7093c62a9486041024 | [] | no_license | CyCelsLab/Multi-aster-swaming | ef4eb28d229235ee9887c12bf5792dfe8ea6d3e1 | a3fb7241960c3664a245210accd6bd0ffcbfe4f0 | refs/heads/master | 2022-11-19T22:39:20.914910 | 2020-07-25T18:06:34 | 2020-07-25T18:06:34 | 260,443,252 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,508 | cc | space_cylinderZ.cc | //RCS: $Id: space_cylinderZ.cc,v 2.0 2004/08/16 16:38:18 nedelec Exp $
#include "space_cylinderZ.h"
//-------------------------------------------------------------------------
real SpaceCylinderZ::volume() const
{
return 2 * mLength * PI * mRadius * mRadius;
}
//--------------------------------------------------... |
9579d0ea984b732f250db520a8e2fd3b375acffd | a7881c1b6c36cbb320612f303ffed83f2455e10a | /WalldrawSDCard/WalldrawSDCard.ino | 22924507159e4021377ef7a7c14c64dba3c10e9a | [
"MIT"
] | permissive | johnsonwust/Walldraw | 606c63e7482da7840771f3143697d4f2f2961658 | a36d61a8271097345cada86d221753543bdea20f | refs/heads/main | 2023-07-15T11:05:24.170931 | 2021-09-02T18:56:37 | 2021-09-02T18:56:37 | 378,840,970 | 0 | 0 | MIT | 2021-06-21T07:17:03 | 2021-06-21T07:17:03 | null | UTF-8 | C++ | false | false | 11,650 | ino | WalldrawSDCard.ino | //淘宝『有名称的店铺』https://somebodys.taobao.com/
//更新日期 2020/06/04
//Wall Drawing Machine 墙画机 程序
//本程序对应商品 https://item.taobao.com/item.htm?id=597354643355
//web版程序连接:
//Github版链接: https://github.com/shihaipeng03/Walldraw
//本程序是从SD卡读取Gcode文件绘图。需要读卡器模块支持。
//其中一些参数需要测量安装距离后修改,直接上传不能正常工作。修改方法见说明文档。
//
#include <TinyStepper_... |
3c7c2ca1c0c69ac3a19ae913ffab98a1abaf8f6e | 9872a45b3eda1be44c8972bbaa9b2b762537a45e | /Motor.cpp | 2608e1f0c7be6db2a30b02614ff13aa0e1a117dd | [] | no_license | DeltaAndFriends/Delta_Robot | 328d8a8ff5cdf64738488286d5dda9fd7f4f40cf | 1e5a09348fb7f97ed6113abad5da29eae41cc990 | refs/heads/master | 2020-03-30T10:54:40.096984 | 2018-10-01T19:48:30 | 2018-10-01T19:48:30 | 151,142,848 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,947 | cpp | Motor.cpp | #include <Arduino.h>
#include "Motor.h"
#include "Config.h"
namespace Delta
{
//! A stepper motor class
/*!
* A stepper motor divides a full rotation into a number of equal steps.
*/
class Stepper : public Motor
{
public:
Stepper();
~Stepper() override;
void setup(size_t number) ov... |
fe15a4ff91c4316e9793883322e30cfd222704de | b26aa47f533073a31a82a7a6486c8f25e21c335a | /TitanCore/include/TiSceneNode.h | fe9e333d9cb510b7a7c8193f7e8705db4b4c61b2 | [] | no_license | cty41/Titan | a15393004590373de8c3052eff7cad05cb271d81 | b85d3ca0f417047de8a1b92cec35715da06a171d | refs/heads/master | 2021-01-10T20:47:18.198284 | 2011-12-22T01:44:31 | 2011-12-22T01:44:31 | 1,260,510 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,409 | h | TiSceneNode.h | #ifndef _TITAN_SCENENODE_HH
#define _TITAN_SCENENODE_HH
#include "TiPrerequisites.h"
#include "TiCommon.h"
#include "TiMatrix4.h"
#include "TiIteratorWrapper.h"
#include "TitanAABB.h"
#include "TiSceneMgr.h"
namespace Titan
{
class _DllExport SceneNode : public GeneralAlloc
{
public:
typedef hash_map<String, Sce... |
4d6d2980b4dd17c4a5710b4b1de11720cbd87d9c | 9cbf183e0d459f8f391705d43ef835b0893bbd57 | /mos.h | 2329736adf076b85f95a26e7b5e311a489d91d98 | [] | no_license | vmiheer/mos | 643a62b15bd484e6547e4e615f750349804f9f18 | 36ae168b973c8587626470d97a11f7e4c8dd9738 | refs/heads/master | 2021-01-10T20:19:41.495689 | 2012-03-12T17:06:35 | 2012-03-12T17:06:35 | 3,239,582 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,025 | h | mos.h | /*
* mos.h
*
* Created on: Jan 13, 2012
* Author: miheer
*/
#ifndef MOS_H_
#define MOS_H_
#define likely(x) __builtin_expect((x),1)
#define unlikely(x) __builtin_expect((x),0)
#include "lineprinter.h"
#include "cpu.h"
#include "cardreader.h"
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include... |
a6c833e82208ec3ac61c406f33ba7c55fe4c1ff8 | 30b58700c2a2c5801a6e9a0486e9d302a65c84a9 | /Barman.cpp | e18590f533795fb849581e80ed5dd7ae4ee5f087 | [] | no_license | Wendor/arduino-barman | ce44833f6a307391f764ebd55c89a97409a40736 | 8a1ed5b242d92a6987df550949ac56ffdebd6eb9 | refs/heads/master | 2023-02-14T04:03:11.706677 | 2020-08-07T05:32:45 | 2020-08-07T05:32:45 | 328,623,844 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,237 | cpp | Barman.cpp | #include "Barman.h"
#include "GeneralProperties.h"
Barman::Barman(GeneralProperties gp) {
_gp = gp;
_workMode = 0;
_portion = 1;
_total = 900;
_capacity = 100;
_slots[5] = {};
generateData();
}
void Barman::generateData() {
for(int i = 0; i < _gp.totalSlots; i++) {
setSlotSprite(i, random(3));
... |
c8938af21e69348a5799df80c1b2974d66b86000 | d84ff5a4f385936330af29451a16fb3eb2e1c8df | /other/streambox_saber/streambox_release_March_10_2018/streambox/Source/NetworkLatencySource.cpp | ca2077181a98168d331c60a1560c3d37c6fd1c92 | [
"Apache-2.0",
"BSD-2-Clause-Views",
"BSD-2-Clause"
] | permissive | TU-Berlin-DIMA/analyzing-stream-modern-hardware | 3e84365f62cf1ef8bc72d7b9e26c93edde99d9d3 | c8b9b7e85fa31d248499bf253eb7f71c80eaaf4e | refs/heads/master | 2022-11-20T18:30:22.994497 | 2020-02-17T11:50:47 | 2020-02-17T11:51:59 | 194,823,562 | 4 | 2 | Apache-2.0 | 2022-11-15T23:28:54 | 2019-07-02T08:39:45 | Gnuplot | UTF-8 | C++ | false | false | 300 | cpp | NetworkLatencySource.cpp | #include "Values.h"
#include "NetworkLatencySource.h"
#include "NetworkLatencySourceEvaluator.h"
void NetworkLatencySource::ExecEvaluator(int nodeid, EvaluationBundleContext *c, shared_ptr<BundleBase> bundle_ptr){
NetworkLatencySourceEvaluator eval(nodeid);
eval.evaluate(this, c, bundle_ptr);
}
|
842ed0573908d8611d503ef7ca3b2ccf125a552b | 4d4fbfd4ed5b38fb807fc23b8ab5caf30b62b32d | /ogles/src/arm/GenFragment.cpp | 1940c1befe155a7dda4b47b86d0ada181efc5f12 | [
"MIT",
"BSD-2-Clause"
] | permissive | rcoscali/ftke | e88464f1e85502ffb9c199106bc6cb24f789efcf | e9d4e59c4387400387b65124d4b47b70072dd098 | refs/heads/master | 2021-01-10T05:01:03.546718 | 2010-09-23T02:49:21 | 2010-09-23T02:49:21 | 47,364,325 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 74,334 | cpp | GenFragment.cpp | // ==========================================================================
//
// GenFragment.cpp JIT Class for 3D Rendering Library
//
// This file contains the rasterizer functions that
// implement the runtime code generation support
// for optimized scan line rasterization routines.
//
// --------... |
057b627e0ec7d8409b904663f8decbe120245e1f | 5fc6fe351fa2a6c6cf97e299596af60362c17e21 | /LRCSBasis/PosBlock.cpp | 6f855632c1f95bb16e69091a47aa7b30e61b15fb | [] | no_license | VinceZK/LRCS_WIN | 4e4367e6bee6afd4614bac6c977cfed0b0d50d6d | 710899f235e065be52b19df9edab9d9bd22f12a5 | refs/heads/master | 2021-07-23T20:40:02.682362 | 2020-06-12T15:07:14 | 2020-06-12T15:07:14 | 15,490,644 | 0 | 0 | null | 2014-02-23T02:44:23 | 2013-12-28T10:18:22 | C++ | UTF-8 | C++ | false | false | 4,627 | cpp | PosBlock.cpp | #include "PosBlock.h"
using namespace std;
PosBlock::PosBlock(ValPos* vp_) : Block()
{
posIndex = new int[8 * sizeof(int)+1];
if (vp_ != NULL){
vp = vp_;
valsize = vp->getSize();
}
else{
vp = NULL;
valsize = 0;
}
isBufferSet = false;
currInt = 0;
currPos = 0;
bfrWithHeader = NULL;
buffer = NULL;
buff... |
da6032479d50cba3f0ea40a5ee942d9a2993c390 | 3f7b7664316d4859224ad647672d5176bafb3b84 | /Plugboard.cpp | 73f6d19f479f6a54178bbfc5529355b4a540f3dc | [] | no_license | nokitoino/Enigma | cebb9d36f7d28e5efb953571346da6151796932a | 646a01aecde95bf1ed5f00a6a141825434af2830 | refs/heads/master | 2022-12-06T22:24:46.889424 | 2020-08-26T08:41:40 | 2020-08-26T08:41:40 | 289,486,631 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 109 | cpp | Plugboard.cpp | #include "Plugboard.h"
void Plugboard::addPair(int x, int y) {
pairs.push_back(std::make_pair(x, y));
} |
33798f1623a020122eb9027c594a02bfc55e7c28 | 97e02ecd270f47176ef8b6c5b89cfa9dd335d2a1 | /HDOJ/1197_Specialized Four-Digit Numbers.cpp | 907253a733cf30e84db19f3ae892a619b642d898 | [] | no_license | TechAoba/OJ-code | 61f06ce7a94cadd501457853da2f3c4932bb226e | 7e91b734bae170c4a7415984d4760740f677a26f | refs/heads/main | 2023-07-08T23:49:10.258066 | 2021-08-17T11:47:26 | 2021-08-17T11:47:26 | 300,805,551 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 518 | cpp | 1197_Specialized Four-Digit Numbers.cpp | #include<iostream>
#include<cstdio>
using namespace std;
bool ok(int a) {
int ans=0, ans1=0, ans2=0;
ans += (a%10) + ((a%100)/10) + ((a%1000)/100) + (a/1000);
int t = a;
ans1 += t/1728, t%=1728;
ans1 += t/144, t%=144;
ans1 += t/12, t%=12;
ans1 += t;
if(ans!=ans1) return false;
t = a;
ans2 += t/4096, t%=409... |
f5f7d242819df2a67c101978290db1265ada3e8a | 001949354c41baaa93fdaaf008b0d841f7783d67 | /Utils.cpp | f1a8641dcc8b42da77ae79da374d7d3f38ed1752 | [] | no_license | pereiradaniel/WS01_P2 | 831e77193cd2a90fd99e2023fdd1835a2a7f864b | e81a1568d68c21cfa05a6e4669099e657174cf47 | refs/heads/master | 2022-09-15T08:56:18.259463 | 2020-05-31T02:50:02 | 2020-05-31T02:50:02 | 268,163,604 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 109 | cpp | Utils.cpp | // Should hold helper functions which do not have any specific logical relation to a mark.
#include "Utils.h" |
717cf8b66bce1f73ad5d238f644010c78f97b8c4 | af0ecafb5428bd556d49575da2a72f6f80d3d14b | /CodeJamCrawler/dataset/13_15392_40.cpp | 558908aba43159d16f2513869ed1c327b661dd67 | [] | no_license | gbrlas/AVSP | 0a2a08be5661c1b4a2238e875b6cdc88b4ee0997 | e259090bf282694676b2568023745f9ffb6d73fd | refs/heads/master | 2021-06-16T22:25:41.585830 | 2017-06-09T06:32:01 | 2017-06-09T06:32:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,093 | cpp | 13_15392_40.cpp | #include <iostream>
#include <memory.h>
#include <cstdio>
using namespace std;
int fExit,N,K,j,wn,w[400],Ci[400],a[400][400],was[2000000],T,tq,act[400],Kt[400],i,x;
void rec(int cur_mask){
if(fExit)return ;
if(cur_mask==(1<<N)-1){
fExit=1;
for(int j=1;j<=wn;j++)printf(" %d",w[j]);
puts("");
return ;
}
if(... |
8badb656bfb3aa6396885a5676832895671fe153 | cf47614d4c08f3e6e5abe82d041d53b50167cac8 | /CS101_Spring2020-21 /LAB4_L1/uncategorized/euclidean_distance/Submissions/157_euclidean_distance.cpp | 2a9991a4fdb04a6f4b8ce9137aaeddb8ad49d5eb | [] | no_license | krishna-raj007/BodhiTree-Annotation | 492d782dffe3744740f48c4c7e6bbf2ee2c0febd | 28a6467038bac7710c4b3e3860a369ca0a6e31bf | refs/heads/master | 2023-02-28T18:23:05.880438 | 2021-02-07T17:55:33 | 2021-02-07T17:55:33 | 299,254,966 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 192 | cpp | 157_euclidean_distance.cpp | #include<simplecpp>
main_program{
int q,n;
float a,b,dist;
cin>>q;
repeat(q)
{dist=0;
cin>>n;
repeat(n)
{
cin>>a>>b;
dist=sqrt(dist*dist+(a-b)*(a-b));
}
printf("%.2f\n",dist);
}
}
|
074fff34bf6ec747613e822a28e939472f3fa36b | 99d2ca441e78253080931fad2cf7b08c9e4b9143 | /xxxxpratica03-2807.cpp | eb992c3418849d77a9d8dc0d99087f9128c3e295 | [] | no_license | FelippeNO/Exercicios_da_Universidade | e3b046abde6863d13b82872b50eed967a69e7fd1 | c64e364036a07b20ca342c10139ee59c9987e75c | refs/heads/master | 2023-07-08T16:44:45.990650 | 2021-08-12T00:10:57 | 2021-08-12T00:10:57 | 390,855,538 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 259 | cpp | xxxxpratica03-2807.cpp | #include <stdio.h>
#include <locale.h>
#include <stdlib.h>
int main(void){
setlocale(LC_ALL, "Portuguese");
int n, n1, n2, n3=1, cont;
scanf("%d", &n);
if(n>=2 && n<=30){
for(cont=1;cont<=n; cont++){
n1=n2;
n2=n3;
printf("%d\n", n3);
n3=n1+n2;
}
}
}
|
b856608f51380eeaeb372cb3e1e79f80dad40699 | b2a032c87dc446628d91bfc6066debf8846e1cb4 | /Week 2/sort.cpp | b53b727e51f59445ff571eb81e8abeda29d6b317 | [] | no_license | devbuilder-1/CS-590-Assignments | e9c87bfccbfd6da48fa9f0f65bbda13f263b4f54 | 64d7dced99d30900feb49ab08b584b81ea3024d9 | refs/heads/master | 2021-05-22T00:22:56.654376 | 2020-04-04T01:45:02 | 2020-04-04T01:45:02 | 252,881,745 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,828 | cpp | sort.cpp | /*
Prithiv Dev
10453922
*/
#include <cstdlib>
#include <iostream>
#include "sort.h"
using namespace std;
/*
* HW 2 part
*/
int string_compare(char* s1, char *s2)
{
/*
* We assume that s1 and s2 are non-null pointers
*/
int i;
i = 0;
while ((s1[i] != 0) && (s2[i] != 0) && (s1[i] == s2[i]))
i++;
if (s... |
8ee5e6fa13db35bf2b90659804479f2816a5ce6c | 0c7c9382398f06484af369c21ae842d34c0ead5b | /School - Comp Sci/Computer Science 3 - C++/lab 6 - Travelling Salesman/dev/vers 5/combo appery/ComboApp_take2/main.cpp | 9c402f66536741177db37329c34e75318ed1634e | [] | no_license | sitting-duck/stuff | e14ba3d274a2818ae48e0f00b68fec3b9f820154 | 077cfe5dc9c040b30d8f9ced2c46eeb2eb5d6eef | refs/heads/master | 2023-01-19T23:21:25.006210 | 2023-01-05T03:49:24 | 2023-01-05T03:49:24 | 31,349,892 | 53 | 22 | null | 2020-07-18T01:33:56 | 2015-02-26T04:01:34 | Shell | UTF-8 | C++ | false | false | 1,173 | cpp | main.cpp | #include <iostream>
#include <fstream>
#include<string>
using namespace std;
void main()
{
fstream myFile;
myFile.open("12.txt", ios::out );
int numNodes;
cout << "How many nodes? : " ;
cin >> numNodes;
char* tempList = new char[numNodes + 1];
tempList[numNodes] = '\0';
for(int i = 0; i < numNodes; i+... |
f2a05ec9f0d31c97038d3d52a4b872cad0d8206a | 2639ff45be38d104d9311121b1c89411ad66da91 | /qt_server_Lab_6/Lab3/Domain/user.cpp | 1dcce29ee4eecaebdac2f0c91d5082b9d7e9d66c | [] | no_license | PC-Architecutre/sp_labs_all | 88eddb6a3cf8888a201cd3ab40d335687805b706 | 6c8701ffa7b231bd50323d6cd7609f131cb908c4 | refs/heads/main | 2023-04-23T10:32:04.551342 | 2021-05-20T20:15:38 | 2021-05-20T20:15:38 | 369,326,864 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 501 | cpp | user.cpp | #include "Headers/user.h"
using namespace Domain;
User::User()
{
}
User::~User()
{
}
int User::GetId() const
{
return id;
}
void User::SetId(int id)
{
this->id = id;
}
const string& User::GetName() const
{
return name;
}
void User::SetName(const string& name)
{
this->name = name;
}
const vect... |
d9d9ba7f19b45e696e6d46002a79d1bd7273f8e4 | 7e48d392300fbc123396c6a517dfe8ed1ea7179f | /RodentVR/Intermediate/Build/Win64/RodentVR/Inc/Engine/NetSerialization.generated.h | c66ffdc9e92518557514bc9a52d361126cd148ec | [] | no_license | WestRyanK/Rodent-VR | f4920071b716df6a006b15c132bc72d3b0cba002 | 2033946f197a07b8c851b9a5075f0cb276033af6 | refs/heads/master | 2021-06-14T18:33:22.141793 | 2020-10-27T03:25:33 | 2020-10-27T03:25:33 | 154,956,842 | 1 | 1 | null | 2018-11-29T09:56:21 | 2018-10-27T11:23:11 | C++ | UTF-8 | C++ | false | false | 3,262 | h | NetSerialization.generated.h | // Copyright Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
========================================================================... |
a9c0c9a424645ef211699a03c00d28f8c8506fab | 44dfb67af66b49f7f1585f3d4fc38bd39c0253e7 | /PALINGBARUISEMS/berhasil2arah_tanpapintu/komunikasidata.ino | 5b01d6f02305395fa9c0e22df0db231e52578013 | [] | no_license | interlog-rnd-hardware/isems | ddc51e4f1c5ec0b60f58fc209ea06b7825b9cb12 | 94fcbbf63b35ac1d38082a3c6dd8825c5555eca4 | refs/heads/master | 2020-08-10T14:22:44.506457 | 2020-01-30T04:00:06 | 2020-01-30T04:00:06 | 214,359,156 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,809 | ino | komunikasidata.ino | void komunikasidata()
{
responDariServer = false;
// if(kali == 2) //ngirim data sensor tiap 1 menit
// {
// if (g == false)
// {
// statusKomunikasiWifi = ambileeprom(perangkat);
// waktuMulai = millis();
// responDariServer = true;
// }
// kali = 0;
// }
if(kirims... |
936936af0dc67e25624e3490bc1ad621871f6673 | 79cffe7f3249f4f568fda1cf3730fb8ce4a91bde | /include/utils/RgbChannelAdjustment.h | 4b0130bdfcf6987972b4d32312945e95eaab12c9 | [
"MIT"
] | permissive | Starbix/hyperion | 14640f9783dab3df42c9615832161386dce5b06a | 892e27e85a82e8fc0d7028f30b5aae0aaa92b737 | refs/heads/master | 2021-01-16T21:44:28.525841 | 2018-11-14T13:19:53 | 2018-11-14T13:19:53 | 89,586,753 | 0 | 1 | MIT | 2018-11-14T13:19:54 | 2017-04-27T10:41:07 | C++ | UTF-8 | C++ | false | false | 1,520 | h | RgbChannelAdjustment.h | #pragma once
// STL includes
#include <cstdint>
/// Correction for a single color byte value
/// All configuration values are unsigned int and assume the color value to be between 0 and 255
class RgbChannelAdjustment
{
public:
/// Default constructor
RgbChannelAdjustment();
/// Constructor
/// @param adjustR
... |
6b91804b7c11c35532e4fa8e1d0d6291b34f74e1 | 1ada0d995d8de7892d47857fe10b6f9b2bae4a40 | /WinCode/刷题/洛谷刷题/并查集/P1536村村通.cpp | 902646311ea48f3b60049602503c572731d296b6 | [] | no_license | Chicaogo/My-Linux-git | 4d99065b5cb84a089a3b036d9a472333208d1350 | 185bcbb72d37eecb6e84a15781f4e255e9df29d1 | refs/heads/master | 2020-03-27T13:01:35.319019 | 2018-10-05T14:34:14 | 2018-10-05T14:34:14 | 146,585,341 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,918 | cpp | P1536村村通.cpp | /*
题目描述
某市调查城镇交通状况,得到现有城镇道路统计表。表中列出了每条道路直接
连通的城镇。市政府“村村通工程”的目标是使全市任何两个城镇间都可以实现
交通(但不一定有直接的道路相连,只要相互之间可达即可)。请你计算出最
少还需要建设多少条道路?
输入输出格式
输入格式:
每个输入文件包含若干组测试测试数据,每组测试数据的第一行给出两个用空
格隔开的正整数,分别是城镇数目N(N<1000)和道路数目M;随后的M行对应
M条道路,每行给出一对用空格隔开的正整数,分别是该条道路直接相连的两个
城镇的编号。简单起见,城镇从1到N编号。
注意:两个城市间可以有多条道路相通。例如:
3 3 1 2 1 2 2 ... |
51a5dd186312e5735918ba5e539b161df4daf9e7 | 9891e6923267cfddcf4f3faf5e90286ba1b8f1e7 | /src/ukf.cpp | 28e733b2f66d83bbcffad2826217b5af9fa9f7a5 | [] | no_license | TianHuaBooks/T2P2 | 3032ec76d614371c4a28b8cfdf342971d7374667 | 10edbfed544277c1b36c683e021507ec007bad13 | refs/heads/master | 2021-01-21T14:24:28.892370 | 2017-06-24T05:31:34 | 2017-06-24T05:31:34 | 95,277,859 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,780 | cpp | ukf.cpp | #include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
#include "tools.h"
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
#define NEAR_ZERO 0.0001
/**
* Initializes Unscented Kalman filter
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except ... |
08a77836e7d782cd00e86653804ff70d93bdbbe6 | 309975d60e30260f2e02d11e71eaaf6e08b93659 | /Sources/Internal/Utils/UtilsLinux.cpp | 1df7fa75b72e8412c810a8995091344d9f8690ab | [] | permissive | BlitzModder/dava.engine | e83b038a9d24b37c00b095e83ffdfd8cd497823c | 0c7a16e627fc0d12309250d6e5e207333b35361e | refs/heads/development | 2023-03-15T12:30:32.342501 | 2018-02-19T11:09:02 | 2018-02-19T11:09:02 | 122,161,150 | 4 | 3 | BSD-3-Clause | 2018-02-20T06:00:07 | 2018-02-20T06:00:07 | null | UTF-8 | C++ | false | false | 329 | cpp | UtilsLinux.cpp | #if defined(__DAVAENGINE_LINUX__)
#include "Base/String.h"
#include "Debug/DVAssert.h"
namespace DAVA
{
String GenerateGUID()
{
DVASSERT(0, "Implement GenerateGUID");
return String();
}
void OpenURL(const String& /*url*/)
{
DVASSERT(0, "Implement OpenURL");
}
} // namespace DAVA
#endif // __DAVAENGINE... |
ce5011cc7cab329d5a561e7078c4de1499229e97 | a570441f51851efb78edec444f3b25eeece50ac6 | /sto1.cpp | b6a7968bdd6207e5e0e32e917e97f05ae2199247 | [] | no_license | torianin/aisd-themis | 8e1f3b1f7638cf7241d80969ee8775c4c5573112 | 82e57b612941f9ae24f2bb003ee7fa28e55c3575 | refs/heads/master | 2021-01-10T01:57:06.247055 | 2015-09-02T20:25:53 | 2015-09-02T20:25:53 | 36,535,359 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,554 | cpp | sto1.cpp | //
// STO1
// Stokrotki
//
// Created by Robcio Ignasiak on 31.05.2015.
// Copyright (c) 2015 Torianin. All rights reserved.
//
#include <iostream>
#include <vector>
#include <algorithm>
#include <limits>
using namespace std;
long long sto(vector<vector<long long> > testValues, int m, int n )
{
vector<vector... |
52b0a66730f08e18e44dbe61d56b35bb87a9bb0f | 02e034a2ba10c6f63de7e1e3675407603be74617 | /Framework/PhysicObserver.cpp | 2572e905ef403f32a7192795c7f768804c4c34ff | [] | no_license | hienlh/My-DirectX-Framework | 55c2e89a6c3f24a3b885f541d213825ebccc4f25 | 26fcf0f844bdfa7b3f572673f14088e92e665dc2 | refs/heads/master | 2023-05-23T09:08:01.327776 | 2021-06-06T09:56:14 | 2021-06-06T09:56:14 | 374,323,229 | 0 | 1 | null | 2021-06-06T09:56:15 | 2021-06-06T09:50:12 | C++ | UTF-8 | C++ | false | false | 158 | cpp | PhysicObserver.cpp | #include "stdafx.h"
#include "PhysicObserver.h"
#include "Physic.h"
Framework::CPhysicObserver::CPhysicObserver() : CObserver(CPhysic::GetInstance())
{
}
|
59a5eb857ec622156c68bc52dbe8344c7016bb98 | 51430fa6768c2e9ccc55b4e340f256fd9615ab63 | /stepper_motor_control/controller/controller.cpp | ab18c4f731d71573c1870600fd5a08be7b093dff | [] | no_license | Krutikoff/stepper_motor_control | 336eab4feb705f4dc67fd585f8f8dcf61b76a15c | b1e845a579c462ef75f0bb5059af0c5f9d452849 | refs/heads/master | 2021-05-17T13:21:31.819328 | 2020-08-06T20:36:35 | 2020-08-06T20:36:35 | 250,796,074 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,302 | cpp | controller.cpp | #include <controller/controller.h>
#include <QCoreApplication>
#include <QDebug>
#include <QPushButton>
#include <QSpinBox>
#include <QRadioButton>
using namespace controller;
Controller::Controller(QObject *parent) : QObject(parent){
_bind_signal_to_slot();
_view.show();
}
void Controller::_bind_signal_to... |
297a7eb562ef3273a3c0126ff8363956bf477815 | 956f46e2a8f1fb4affb95872dc9d2f1e5730ec9f | /Algoritmos/Vigenere.cpp | 781e93520c3ad76bc40b7efd3c8f38fbfcc9b689 | [] | no_license | davepj007/Algoritmos-de-Encriptacion | 82a82e2c88ed0aa54b2fdea0a57ff5bb17fd1eec | 33a56e57c0f7b17b4a352427a47991b6e9475f23 | refs/heads/master | 2020-03-31T06:52:25.699524 | 2018-10-08T05:16:26 | 2018-10-08T05:16:26 | 151,998,085 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,808 | cpp | Vigenere.cpp | //
// Created by davepj007 on 07/10/18.
//
#include "Vigenere.h"
Vigenere::Vigenere(std::string texto, std::string clave, int opc) {
mapClaveMsj(texto, clave);
if(opc == 1) {
encriptar(this->texto, this->clave);
}
else {
desencriptar(this->texto, this->clave);
}
}
std::string Vige... |
0ae866f47e1bb826f0fb283586099070fafe0155 | ceb2d763d127d100e3ad0580aa8493c1adea618c | /ui/MainFrm.h | 40a86000b79f8a7178ac0c350acedbd36d55482a | [] | no_license | AlexChudinov/Track3D | 016abff2ff4956588ec37385efbf8f565dad5cb3 | 97df1aa449bcc2ae38ea6ead3ba50983ad147468 | refs/heads/master | 2021-01-09T05:41:24.060141 | 2020-11-04T11:10:00 | 2020-11-04T11:10:00 | 80,810,443 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,192 | h | MainFrm.h |
// MainFrm.h : interface of the CMainFrame class
//
#pragma once
#include "PropertiesWnd.h"
class CMainFrame : public CFrameWndEx
{
protected: // create from serialization only
CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
// Attributes
protected:
CSplitterWnd m_wndSplitter;
public:
// Operations
public:
void... |
65695f39912d398a0aa314826468e74b3855c4fd | d45ac086640f375623bcc09d7c51dcd1aff8385a | /src/Camera.cpp | 1e193585843257b91f758e8e444b5e8726ca026b | [] | no_license | sulamar/SDL2Game | 7a2f934ac399bd4bee1f1e7e63c030aed89032af | 1c082c425435869bed735085cc7763e0d3cc73f9 | refs/heads/main | 2023-07-01T02:05:43.881746 | 2021-08-11T14:39:20 | 2021-08-11T14:39:20 | 394,068,420 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 116 | cpp | Camera.cpp | #include "Camera.h"
Camera::Camera(Vector2 _pos, Vector2 _size)
: pos(_pos), size(_size)
{
}
Camera::Camera()
{
} |
009c0bc7b8af21b940e0e15cf4cde218eebe10f8 | e62934ff649eaddeea514771e347a8eee1ea91ec | /include/server.h | 23792a05bbe17cf981860c15b1f9e7cd12956900 | [] | no_license | sergeysablin99/AdvCpp | 04b1286f5b6e75b210d4d4e9a25fb50c9d3a24b3 | 1f909586488f23ddc5cb581ef52176f9d17644e0 | refs/heads/master | 2021-03-30T10:16:40.503205 | 2020-04-17T15:48:00 | 2020-04-17T15:48:00 | 248,043,174 | 0 | 0 | null | 2020-04-17T15:48:02 | 2020-03-17T18:22:49 | C++ | UTF-8 | C++ | false | false | 623 | h | server.h | //
// Created by gtl on 28.03.2020.
//
#ifndef TCP_SERVER_H
#define TCP_SERVER_H
#include "connection.h"
#include <netinet/in.h>
#include <sys/socket.h>
#include <string>
#include <utility>
namespace tcp {
class Server {
private:
int fd_;
bool opened;
int connections;
in_addr ... |
75ecccc6ab25342df2906a7bfe9fe04a6b9a3842 | 0a303e70a89d69b2c635cd41edf6c24eaf923608 | /graphic/MkPath/MkPath.cpp | 55299c3f4e117d84c9553e711a4af70bc36caa93 | [] | no_license | lucetewoo/2016_Hackathon_5 | 75c38304822b6c81c275c76806a7de181c6a1a07 | 29d9a781391346d602acd9dd1a954f712cf4faab | refs/heads/master | 2021-01-21T22:10:49.609820 | 2016-11-13T03:52:30 | 2016-11-13T03:52:30 | 73,593,253 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 2,147 | cpp | MkPath.cpp | #include <windows.h>
LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);
HINSTANCE g_hInst;
HWND hWndMain;
LPCTSTR lpszClass=TEXT("MkPath");
int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance
,LPSTR lpszCmdParam,int nCmdShow)
{
HWND hWnd;
MSG Message;
WNDCLASS WndClass;
g_hInst=hInstance;
WndCla... |
0e81d450e2df2865630baaf12ea5ed3884c31bc5 | de175ab3898bef2158038d508eac4a4ec824d826 | /Distribution/Installer/INSTALL.CPP | 735d3ceb9dec5501d69740921c0d40ebfd5b573e | [] | no_license | EduBez/WinBolsa | 78cb163b2f814fac3ad0803afc8dd4d2d8abc0b7 | 6d7184713ac75ec3f85aa0db92b17a6a0797f781 | refs/heads/master | 2022-11-21T17:23:11.788469 | 2020-07-24T14:31:28 | 2020-07-24T14:31:28 | 280,943,046 | 0 | 0 | null | null | null | null | ISO-8859-9 | C++ | false | false | 3,125 | cpp | INSTALL.CPP | //-------------------------------------------------//
// //
// INSTALL. CPP //
// //
// Copyright (C) 1994, 1995 by Eduardo Bezerra //
// ... |
942e14b738de03e470c5ad2ec96d0f3fd1305131 | 800ba495f6044e8c4d2da5f6b19f27eefcc5289a | /entity/entity.cpp | 65c85ada89fc4c697de0117f4951e9db90199ba1 | [] | no_license | CyrilPaulus/cppThing | 1821f3be2b4314703cf798bf9cc96fab6e457c9f | 6971db58d578e3c7538830ddfd6ebe55c04e569c | refs/heads/master | 2023-06-09T18:03:45.363124 | 2023-06-05T17:26:45 | 2023-06-05T17:26:45 | 2,173,873 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 636 | cpp | entity.cpp | #include "../config.h"
#include "entity.h"
Entity::Entity()
{
_position = sf::Vector2f(0, 0);
_bbox = sf::Vector2f(0, 0);
_remove = false;
}
Entity::~Entity()
{
}
void Entity::update(float frametime)
{
}
sf::FloatRect Entity::getBbox()
{
return sf::FloatRect(_position.x, _position.y, _bbox.x, _bbox.y);
}
s... |
7d877afb8b1e7a10d136b5ba83d113e7a05760cd | 59df055dd9b5902eb27b73df840979cd7790f79d | /src/engine/pieces/knight.hh | 0ba4d12ebcdb79c98f28f0194d0e666a92498f0a | [] | no_license | danielbaud/ChessEngine | e73bf0c83367bb0019b5460d1ea9d04d54ef18fe | 7c37439847eca746ff558e0a8743ebad5c3c96a7 | refs/heads/master | 2020-06-19T15:35:42.653526 | 2019-07-13T21:35:05 | 2019-07-13T21:35:05 | 196,766,739 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 242 | hh | knight.hh | #pragma once
#include "piece.hh"
class Knight : public Piece
{
public:
Knight(const Position& p, Color c) : Piece(p, c) {type = 'N';}
std::vector<Position> get_possible_move(ChessBoard *c, bool check) const;
};
#include "knight.hxx"
|
05193da050a592bae1a1784b215bf5eff1c406dc | 14aa16cd9080af696fbcc28e5dbc8ce0c4d2e7b2 | /src/base/StackAllocator.hh | fc6806d839e0624a3c14a4d0b78a2aeabd23bf95 | [
"MIT",
"Apache-2.0"
] | permissive | vrpascuzzi/celeritas | f8220a7d741186ade67c23dad5de872ed9e5b100 | 6a8ffc5e6551371fab7cdb5bbb55c60e65f0439f | refs/heads/master | 2023-08-24T21:39:50.924005 | 2021-04-21T08:24:57 | 2021-04-21T08:24:57 | 284,079,349 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,511 | hh | StackAllocator.hh | //----------------------------------*-C++-*----------------------------------//
// Copyright 2020 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//-------------------------------------------------------------------------... |
3cb94da18fc994e8a9018c57ef02df5cc764c545 | acf9036ca8cd79b286ada3205a630c92d6f177eb | /flashlight/fl/autograd/backend/cpu/DnnlUtils.cpp | ec8e765b6e1e187c715d01625d759b3ba25677d2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | tlikhomanenko/flashlight | f4235e93cd82b586532fc6b97e5e98530efe0bf0 | 7a47aece5d7493dd7b9846f9124424725b06af9d | refs/heads/master | 2022-02-22T20:45:33.197361 | 2022-02-04T18:14:52 | 2022-02-04T18:14:52 | 163,210,433 | 0 | 0 | MIT | 2018-12-26T19:18:46 | 2018-12-26T19:18:46 | null | UTF-8 | C++ | false | false | 4,535 | cpp | DnnlUtils.cpp | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <stdexcept>
#include <utility>
#if FL_BACKEND_OPENCL
#include <dnnl_ocl.hpp>
#endif
#include "flashlight/fl/autogr... |
81f47c8fe36b82234fa60270538eae7612670a65 | 199561fca164b986f901a1879417110417b9ba78 | /HelloMoonWarriors/Classes/GameoverScene.cpp | c63cdd1a8ea682213f2b5b5e1690539568a8b40b | [] | no_license | antiwise/MoonWarrior-Transplant- | e922196760a8b54221e6e9d2db139e4a1b477e4d | c1d2e3ce61cbbbad155d3efc5fce61075eda6b38 | refs/heads/master | 2020-12-25T09:58:15.194895 | 2013-02-18T12:36:22 | 2013-02-18T12:36:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,935 | cpp | GameoverScene.cpp |
//
// GameoverScene.cpp
// HelloMoonWarriors
//
// Created by Benjamin Tang on 13-2-16.
//
//
#include "GameoverScene.h"
#include "ResourcePath.h"
#include "FlareEffect.h"
#include "GameScene.h"
#include "GameControlMenu.h"
#include "SimpleAudioEngine.h"
using namespace cocos2d;
using namespace CocosDenshion;
C... |
25b18c3e7fedd8123f2875efd8326901bb292b5c | 9eb6447e31c29697b11910e704883bcdc649314e | /bpkg/pkg-test.hxx | 26c7b18600be67f37685f0dd29e149a9bde6b69e | [
"MIT"
] | permissive | build2/bpkg | fce1aade1f92e4874d628af14d7cf7ac0aa618ec | fbaa48b8ebf22d97bb224444603523ed03b98854 | refs/heads/master | 2023-08-19T06:56:36.976920 | 2023-07-31T19:01:32 | 2023-08-04T10:01:50 | 135,181,472 | 21 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 794 | hxx | pkg-test.hxx | // file : bpkg/pkg-test.hxx -*- C++ -*-
// license : MIT; see accompanying LICENSE file
#ifndef BPKG_PKG_TEST_HXX
#define BPKG_PKG_TEST_HXX
#include <bpkg/types.hxx>
#include <bpkg/utility.hxx>
#include <bpkg/pkg-command.hxx>
#include <bpkg/pkg-test-options.hxx>
namespace bpkg
{
inline int
pkg_test (cons... |
1d837b6f168be3cd47e7c66fc1911114c1ec5745 | 2f752fa913c01a533015c6e52363021f4cb35cc6 | /shortestPath_oneToMulti.cpp | fa9f31e34f8e70324bb50f404e62118f754c3da4 | [] | no_license | eecheng87/data-structure-implementation | a8dc2f0fda8f58ef2d0b36061106d39ce09b3d68 | 7f8481639463effe3d9d84418a23adc55591238d | refs/heads/master | 2020-03-25T01:41:20.386398 | 2020-03-12T04:44:34 | 2020-03-12T04:44:34 | 143,251,219 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,610 | cpp | shortestPath_oneToMulti.cpp | //this program is for searching the least path of one SOURCE to each node in the tree
#include<stdio.h>
#include<stdlib.h>
#define INF 10000000
#define TRUE 1
#define FALSE 0
int weight[6][6];//weight between a and b
int d[6];//d[index] means node SOURCE to node index' path
int parent[6];
int visited[6];//if value is ... |
96402048131fa40ac69c8030cd2a1057c40f6227 | 5eda0cf7f98e6ea82a1a15932e0ab924358ceda2 | /include/isa.h | 381ae3ceacec9436822dd5b0abfcd709ea353c9a | [] | no_license | PedrooHR/RVsim | 11a4e7be4be5840c3a2c8631c410f5879d74b5cd | ce0747b59b1315478bba46605fb12f43ae11eba3 | refs/heads/main | 2023-01-20T12:18:48.874894 | 2020-11-25T16:15:35 | 2020-11-25T16:15:35 | 301,811,512 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 771 | h | isa.h | #pragma once
#ifndef _RVSIM_ISA_H_
#define _RVSIM_ISA_H_
#include <iostream>
#include <stdint.h>
#include <string>
#include "utils.h"
class instruction_t {
private:
uint32_t inst;
unsigned long int address;
INST_TYPE type;
uint32_t opcode, rd, rs1, rs2, func3, func7, shammt;
int32_t imm;
MNE op;
FU fu... |
0e54a1b7f9073752ba81d18975786b17b4e18710 | ff3e66484ff5175d73a6501654823850f0de8036 | /E-Olymp Online Judge/E-Olymp The root of a cubic equation.cpp | fb7b10a98cf1e745944a40d3a2a27b0391d1113e | [] | no_license | Sabuj-Kumar/Problem_Solve | 05f83455069f9e0a7f4541bc078b19c19d42eecf | b3bbf070ead97debbfebc868c358826e3e503406 | refs/heads/main | 2023-08-15T00:29:20.485529 | 2021-09-16T18:08:08 | 2021-09-16T18:08:08 | 407,263,950 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,130 | cpp | E-Olymp The root of a cubic equation.cpp | #include<bits/stdc++.h>
#define pi acos(-1)
#define ll long long
#define ull unsigned long long
#define db double
#define ldb long double
#define pii pair< int,int >
#define pll pair< ll,ll >
#define ft first
#define sd second
#define pb push_back
#define pf push_front
#define sc( n ) scanf("%d",&n)
#define sl( n ) sca... |
b98327b6bdb7e82651fe9a39147dd7207846a098 | 2fd46f2520d85112184791ddfd8bde2997f60da3 | /1_MySecond/MySecondStudy/WinSockSvr_0/SampleSvr.cpp | aa0c5a7114f53d03ea1178f9cb440c7556bc7c3c | [] | no_license | willlead/My3DProject_0 | ce38e1b601c8891bf70eacb68f725acb64fe71b1 | cccf2387a03ea3a72f0468a0c9ac310fffea30ac | refs/heads/master | 2021-01-13T08:59:19.119393 | 2016-10-12T11:45:56 | 2016-10-12T11:45:56 | 69,151,260 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,713 | cpp | SampleSvr.cpp | #define _WINSOCK_DEPRECATED_NO_WARNINGS
#include <WinSock2.h>
//#include <Windows.h> 반드시 윈속 아래에 윈도우헤더 파일
#include <stdio.h>
#pragma comment (lib,"ws2_32.lib")
// 소켓 프로그래밍
void main()
{
//윈속 초기화
WSADATA wsa;
if (WSAStartup(MAKEWORD(2, 2), &wsa) != 0) { return; }
SOCKET sock;
// 주소체계, 소켓 타입, 프로토콜 지정
sock ... |
f7afc4550d494c1a736373dff2d975a5a0658c02 | b8e8023310c5952520835b63d7ec3925c25fea04 | /Point.h | 68356348969743ed432dc34786cfa1afb175b68d | [] | no_license | mrotaru/rolls_royce | f7dbfb74fc90b4ac2168ee4470ad87f40b936a5d | e5c04e3bb4db27e7caeb6927646112d56b06b32b | refs/heads/master | 2016-09-06T12:48:26.353641 | 2011-08-08T10:29:52 | 2011-08-08T10:29:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,699 | h | Point.h | #ifndef POINT_H
#define POINT_H
#include <string>
#include <GL/glu.h>
namespace xmx {
class Point
{
public:
GLfloat x,y,z;
// constructors / destructors
Point(): x( 0.0f ), y( 0.0f ), z( 0.0f ) {}
Point( GLfloat _x, GLfloat _y, GLfloat _z ): x(_x), y(_y), z(_z) {}
Point( GLfloat _x, GLfloat ... |
df9d67936dc9c6915bec0963e13890665774e068 | c09a78a4fc5e7c82291538f3437d50591903f45f | /src/relay/transforms/compiler_function_utils.h | 9d1dcd9f21a221038740b125899f35a2b7b497f1 | [
"Apache-2.0",
"BSD-3-Clause",
"Zlib",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-2-Clause"
] | permissive | UofT-EcoSystem/tvm | 1dcdffb9069a003376bc54ad82640616956a80b6 | 6d6e0705873b0b64576127fd6038720ef6c9c338 | refs/heads/main | 2022-08-31T11:00:02.757303 | 2022-06-25T12:03:47 | 2022-06-25T12:03:47 | 393,457,696 | 0 | 1 | Apache-2.0 | 2021-08-06T17:51:12 | 2021-08-06T17:51:11 | null | UTF-8 | C++ | false | false | 5,717 | h | compiler_function_utils.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
80bfde2a2e9428efc6aaf64b4d412aaa4303c51c | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/2d/47e942689c90e9/main.cpp | 1db3504fbd386bcd04ce47b22e74ca57ba0e3edf | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,092 | cpp | main.cpp | #include <vector>
#include <complex>
using namespace std;
template <class T, class U, class V>
class PP_FIR
{
public:
PP_FIR() {};
PP_FIR(const std::vector< std::vector<T> > & coef, const size_t n_phase, const U state = 0, const U sum = 0) {}
void Update(const U & , const std::vector<size_t> &,... |
0037d77fc88862be2aed2d6734df6a974c343531 | cfb97e2630d4d4b8ae83907365b9eecf19b114eb | /Projects/Invaders/VirtualGameConsoleEmpty/Enemy.cpp | 079ca126808174ca1a742f05c02cbf278aeac9de | [] | no_license | Arqu3/C_Assignments | bf0c5ecf2f86ae9ae6b98070437a1725afccc989 | f0d3dc2fa96dc363848512b87da67a2323fb8988 | refs/heads/master | 2021-05-02T11:06:28.557168 | 2016-10-06T12:59:43 | 2016-10-06T12:59:43 | 44,099,705 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,424 | cpp | Enemy.cpp | #include "Enemy.h"
using namespace std;
static const int speed = 2;
static string fileName = "Invader.png";
static VGCImage image;
static int width;
static int height;
Enemy::Enemy(VGCVector &Position, int &WDirection, float BulletCD) :
Entity(),
mPosition(Position),
mDirection(WDirection),
mBulletCD(BulletCD)... |
e9a94fafe3022829a21bc247e2a1e371874f675a | 0f3d09d64c618ac7750525b3845e8cf46574e778 | /SRC/Client/InstanceBase.cpp | 6e2a4f991b55a9e3f4e03532be894c19f346a679 | [] | no_license | deyu3110/System-Conqueror-Of-Yohara | 0551f1b83b343c5565dbe6c39a80d4d670be09a5 | ac07b2d2b254fa570dc94b889da447a66dacdb17 | refs/heads/main | 2023-02-13T12:28:32.414798 | 2021-01-14T00:46:56 | 2021-01-14T00:46:56 | 405,505,092 | 1 | 0 | null | 2021-09-11T23:41:11 | 2021-09-11T23:41:11 | null | UTF-8 | C++ | false | false | 587 | cpp | InstanceBase.cpp | //In the function
bool CInstanceBase::Create(const SCreateData& c_rkCreateData)
//Search
__Create_SetName(c_rkCreateData);
//add after
#ifdef ENABLE_CONQUEROR_LEVEL
if(IsPC())
m_dwConquerorLevel = c_rkCreateData.m_dwConquerorLevel;
#endif
//Search
void CInstanceBase::SetPKMode(BYTE byPKMode)
{
//add before
... |
fa838d513fda9a9997ee25ba173880095d8a8bae | f8ba580eed15f13430296329ffe6855e9536351c | /src/heighlevelplanner/SearchedPlan/SearchedPlan.h | 15a419b89e5aa94ad81dcd95b909313971de452e | [] | no_license | poposhca/AutoNOMOS-Playground | e587b03909fac1aaf3c3d7f5da5a1a50d035e77f | 6b0ba0350ca74bb6c0213fc4bf1128be69431f21 | refs/heads/master | 2021-05-26T05:37:44.271624 | 2019-07-16T02:57:57 | 2019-07-16T02:57:57 | 127,669,834 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 927 | h | SearchedPlan.h | #ifndef __SEARCH_PLAN_H__
#define __SEARCH_PLAN_H__
#include <tuple>
#include <vector>
#include <algorithm>
class SearchedPlan
{
private:
int world_width;
public:
std::vector<int> *path;
std::vector<int> *nextInvalidCells;
std::vector<std::tuple<std::string, int>> *plann;
bool isPlanSet;
int ... |
cab3ada2e66cc4c3f5eeebe013d40c2cc785dae6 | 22f3203a1ad54fd07c7482aef24919a29884b30c | /src/mae/ff/inplanewags.cxx | a1c86cb1953c0442cdce46cb034123ed8f2167d5 | [
"LicenseRef-scancode-unicode",
"BSD-3-Clause",
"BSL-1.0"
] | permissive | DEShawResearch/msys | aa2b986f11fbf399efb47e5a369f893db71cdc58 | 93edd955dc550b4267b3601283d7f2619be2d548 | refs/heads/master | 2022-09-10T12:39:56.888435 | 2022-08-30T14:16:50 | 2022-08-30T14:16:50 | 158,595,198 | 22 | 5 | NOASSERTION | 2020-08-03T14:52:43 | 2018-11-21T19:13:25 | C++ | UTF-8 | C++ | false | false | 1,267 | cxx | inplanewags.cxx | #include "../ff.hxx"
namespace {
struct InPlaneWag : public Ffio {
void apply( SystemPtr h,
const Json& blk,
const SiteMap& sitemap,
const VdwMap& ) const {
TermTablePtr table = AddTable(h, "inplanewag_harm");
ParamMap m... |
ff280143fce5fc45c9e922b1d653d31dfa6f6f33 | ebd582b7fb493ccc2af59a5c0b5f0e98b2b5e8c3 | /Chapter06/c06e51.cpp | 171e7f79473b2e80f431cce1bf0f9f857ce64431 | [] | no_license | rarog2018/C-Primer_Lippman | 97957e5c7f2d969f1534dd0992dd4c0e9d072700 | 3c3f5084aa744ef971e3bfa4fdfc639c5eea34d5 | refs/heads/master | 2021-06-28T17:45:34.549300 | 2021-01-05T08:15:27 | 2021-01-05T08:15:27 | 206,675,493 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,879 | cpp | c06e51.cpp | #include <iostream>
using namespace std;
void f();
void f(int);
void f(int, int);
void f(double, double = 3.14);
int main(void)
{
/////////////////////// a ///////////////////////
// The call is ambigous => f(double, double = 3.14) is exact match for first
// argument and second argument ... |
cc458cb37c471938d080a902e7375b6465198d1c | b603a14c383ad30eab1d6db79db7f333b3b9d839 | /src/Nikolaev/Task4/MainWindow.cpp | 4e0b86b8e0e4586d08db989add3e1b05f8c9c6a9 | [
"MIT"
] | permissive | sadads1337/fit-gl | 37d66fff2c44664e67b8b43061f48dc18deace2e | 88d9ae1f1935301d71ae6e090aff24e6829a7580 | refs/heads/master | 2023-05-03T17:23:25.170430 | 2021-05-23T18:26:56 | 2021-05-24T04:59:44 | 334,793,424 | 2 | 9 | MIT | 2021-05-24T06:55:24 | 2021-02-01T01:03:08 | C++ | UTF-8 | C++ | false | false | 5,206 | cpp | MainWindow.cpp | #include "MainWindow.h"
#include <QScreen>
#include <string>
void MainWindow::mousePressEvent(QMouseEvent *e) {
// Save mouse press position
mousePressPosition = QVector2D(e->localPos());
}
void MainWindow::mouseReleaseEvent(QMouseEvent *e) {
// Mouse release position - mouse press position
QVector2D diff = Q... |
328251fa1e9330a26fbdc9c05215d5d77d547986 | afb516d587216ccc963f726c00d2e61bd454625e | /Arduino/dummy_serial_ouput/dummy_serial_ouput.ino | 3caf3399b2366c8b44712eec60f46cf50ad6e50f | [
"MIT"
] | permissive | Combinacijus/Samana-Autonomous-Robot | b9dab3c8c0915362cfa4060982eb69f79b51464d | 092288df7d7733d8014b98169dd79858d48f5c7f | refs/heads/master | 2023-02-28T02:03:12.543508 | 2021-02-07T16:56:19 | 2021-02-07T16:56:19 | 201,235,841 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 507 | ino | dummy_serial_ouput.ino | /*
Emulates serial debug data for development
*/
char uart_buf[100];
int mult = 1;
void setup()
{
Serial.begin(9600);
while (!Serial)
;
}
void loop()
{
int ch_buf[10];
for (int i = 0; i < 10; ++i)
{
ch_buf[i] = (i+2) * mult;
}
mult += 50;
mult = (mult % 5000) + 1;
sprintf(uart_buf, ... |
2098f5225fd8e552ee720faad398839a771338aa | 7e4c75322a229470bc0309d9c0dc75050978ef59 | /w2/w2p1.cpp | d35776d5b0a9b6528d80a8b176173dcd7f3f2712 | [] | no_license | lcwd1119/data_structure_practice | 438367ef84d897472b19eea0326772432268bc98 | ca3e37e468080312a6a62e84530d417c69683003 | refs/heads/master | 2023-02-20T19:48:27.508169 | 2021-01-14T21:53:20 | 2021-01-14T21:53:20 | 302,567,400 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 733 | cpp | w2p1.cpp | #include <iostream>
using namespace std;
int main()
{
int total;
cin >> total;
int *num = new int[total];
for(int i = 0;i < total;i++)
{
cin >> num[i];
}
int min,temp;
for(int i =0;i < total;i++)
{
min = i;
for(int j = i+1; j < total;j++)
{
... |
43e09d9d2fbf74eb8ee9ece4237e824698610da4 | 02f11d90691769f152a87da89ce932e64b37a77b | /FlappyEngine/Engine/ResourceManager/ResourceManager.cpp | 87f5d583e936cd9576b58002c33f9ef266384e06 | [] | no_license | Microhive/FlappyEngine | cfe5708b774cb3d7053fd64f6dd1703563110e6d | 896a42188bf0e111b908102889d40ef76e1d4028 | refs/heads/master | 2021-05-04T10:20:10.880831 | 2017-10-04T10:15:09 | 2017-10-04T10:15:09 | 55,368,198 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,865 | cpp | ResourceManager.cpp | #include "ResourceManager.h"
#include "BaseResource.h"
#include "SoundResource.h"
#include "MusicResource.h"
#include "TextureResource.h"
#include "RenderResource.h"
#include "SDL_image.h"
ResourceManager* ResourceManager::pResourceManager = nullptr;
ResourceManager::ResourceManager()
{
}
ResourceManager::~ResourceM... |
5e7f1f7d7d92049f4c8b8c7af97a965ad34ec10d | 18570a161984ca7e1e2100664f76555edd446637 | /G2D_DEBUG/CSpriteSceneNode.h | 0501c8bc272980aa5cff3d67a81033be131503a8 | [] | no_license | ChanhyeokKim/GravitationalOrbits | 2d4e02296a0e5841ed7bc975c69a6cc8de154dfa | 14ce963e8934787542c47ba74f76f31826a2c333 | refs/heads/master | 2021-01-10T18:16:11.299065 | 2016-01-16T10:35:49 | 2016-01-16T10:35:49 | 49,769,241 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 308 | h | CSpriteSceneNode.h | #pragma once
#include "DXUT.h"
#include "ISceneNode.h"
class CSpriteSceneNode : virtual public ISceneNode
{
private:
LPDIRECT3DTEXTURE9 pTexture;
public:
CSpriteSceneNode(char* path);
virtual ~CSpriteSceneNode();
public:
void render();
void update(float eTime);
public:
float width;
float height;
}; |
a432614a7ff3d9b81590cc64e6f3e90278d90918 | 98e417b95479af6ff6d3f19aa77a719b7f05a1e1 | /Leetcode/算法思想/动态规划/字符串编辑/leetcode650_Minstep.cpp | 76c6b9eab30d124c8972c6d6a7a0056c1797dcd8 | [] | no_license | peaceminusones/ZYL-Leetcode | d7bc67ae284d3ee3a2c195010da89bfadc754e61 | 05d0fbe9bc35ff887cd826bfb6c3bf8d56d87efb | refs/heads/master | 2023-02-01T15:54:43.380805 | 2020-12-17T03:09:16 | 2020-12-17T03:09:16 | 279,570,574 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,391 | cpp | leetcode650_Minstep.cpp | #include <iostream>
#include <vector>
#include <math.h>
using namespace std;
class Solution
{
public:
// 递归
int minSteps(int n)
{
if (n == 1)
return 0;
for (int i = 2; i <= sqrt(n); i++)
{
// 不是素数
if (n % i == 0)
return minSteps(i)... |
81804506deacad987a472022e2328ec3642ca95a | c3678df923a2ff295a9696242da152cfaff466d3 | /aifm/inc/parallel.hpp | 98e544199756482d7794216aea05e02c99405da0 | [
"MIT"
] | permissive | vivian-jq/AIFM | f34c2e987fb84bdff0e09980f1c69d8c648e4197 | 369ed1063ce42aa629dd9cfff67007ce985cba55 | refs/heads/master | 2023-01-29T14:26:48.642889 | 2020-12-13T01:49:10 | 2020-12-13T01:49:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 940 | hpp | parallel.hpp | #pragma once
#include "thread.h"
#include "cb.hpp"
#include <atomic>
#include <cstdint>
#include <memory>
#include <vector>
namespace far_memory {
template <typename Task> class Parallelizer {
private:
std::atomic<bool> master_done_{false};
std::atomic<bool> master_up_{false};
std::unique_ptr<std::unique_ptr... |
60f63fe9163808a96265d01eea1b10b42201d07d | 27a228252c1ad90a28816fe2ef45cf490249ed8b | /osu-Replay-Analyzer/osu!/osu_catch.h | ddd90c369e1fe61177bee462d520acde78cafaa2 | [
"MIT"
] | permissive | Eve-ning/osu-Replay-Analyzer | 582e315634227b93cb6d8454efae84b70f9e2f9b | be897dfbb6b2f9c9cab32440879bb814866e32b1 | refs/heads/master | 2020-04-09T18:51:22.905681 | 2018-12-06T15:38:25 | 2018-12-06T15:38:25 | 160,525,527 | 0 | 0 | MIT | 2018-12-05T13:51:57 | 2018-12-05T13:51:56 | null | UTF-8 | C++ | false | false | 115 | h | osu_catch.h | #ifndef OSU_CATCH_H
#define OSU_CATCH_H
#include <math.h>
#include "osuStructs.h"
namespace OSUCATCH
{
}
#endif |
796ef06ba1424f5c84ba569a9b1b669e76b8f54e | a2c5dcd0493fbfc69c8823597896195e53361071 | /include/smooth/gui/window/backends/xlib/windowxlib.h | f8415a93b96c356447b42e9cb02a665e7faaee67 | [
"Artistic-1.0",
"Artistic-2.0"
] | permissive | enzo1982/smooth | 673fed6eb977ce6e10c9ea3ffe54126561bc041e | 3b8dd663dcd794b7eb6944a309d21b9bef114a58 | refs/heads/master | 2023-07-09T20:02:56.901359 | 2023-07-02T19:57:13 | 2023-07-02T20:03:31 | 100,875,066 | 26 | 13 | Artistic-2.0 | 2023-01-29T23:56:56 | 2017-08-20T16:44:58 | C | UTF-8 | C++ | false | false | 3,520 | h | windowxlib.h | /* The smooth Class Library
* Copyright (C) 1998-2021 Robert Kausch <robert.kausch@gmx.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of "The Artistic License, Version 2.0".
*
* THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRA... |
0b75751b423053a69de9730c8723a9c387ef0401 | 5d7d8e6e93370c63c9db613561eb87f7daf46423 | /google/dectobinar.cpp | 4abc04d97bb9c467eb4a2d7997b77e01b098f066 | [] | no_license | balramsingh54/codeC- | be09e3935d44e0f9ee2dc72a549f69699bf12fc8 | 968f36711e4fdeea824b8c8a394befb4938d12a8 | refs/heads/master | 2020-06-02T23:52:37.459012 | 2019-07-09T06:41:05 | 2019-07-09T06:41:05 | 191,350,909 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 463 | cpp | dectobinar.cpp | #include <iostream>
using namespace std;
long decimalToOctal(long n);
int main() {
long decimal;
cin >> decimal;
cout<< decimalToOctal(decimal);
return 0;
}
// Function to convert a decinal number to octal number
long decimalToOctal(long n) {
int remainder;
long octal = 0, i = 1;
... |
2253e16f2dba786227800576da240e631b2a36e5 | 536a67fea8da43b335db6894fc8c13297c004ba0 | /Scripts/Digital input from push button in Arduino/code.ino | fc405e8ebc1640b6d51375a707edf1d09cd59354 | [] | no_license | anmolj7/Ardutronics | d80d7a15c3f78cdea38e2c2b11eaa80a764683c9 | 453dcf656275ab7a6814a87c34ff273059d7e116 | refs/heads/main | 2023-08-19T20:53:26.006666 | 2021-10-23T11:07:18 | 2021-10-23T11:07:18 | 417,831,614 | 0 | 0 | null | 2021-10-16T13:09:18 | 2021-10-16T13:09:18 | null | UTF-8 | C++ | false | false | 474 | ino | code.ino | #define PSH_BUTTON 2
int buttonState = 0;
void setup()
{
pinMode(PSH_BUTTON, INPUT);
pinMode(LED_BUILTIN, OUTPUT);
}
void loop()
{
// To read the state of push-button
buttonState = digitalRead(PSH_BUTTON);
// check if the push button is pressed, if it is,
// then the button state is HIGH
i... |
ddc5c03bbdb29fc88cff69314707a3e55674d0a7 | d9ca9b5962259f640e591229bcfaa5ab201b464e | /cpp/dp/dpc01e07.hpp | ac0c9865975015bc5d235c56492fc952006aef46 | [] | no_license | ddonimirski/aglorithms | ff0fb1035e4d5c1859ecb983aba8d74f3c647174 | 99a389069b70b974ec08ef3599bf14358ef4be90 | refs/heads/master | 2023-06-23T01:40:25.323982 | 2023-06-12T08:53:29 | 2023-06-12T08:53:29 | 128,638,188 | 0 | 0 | null | 2020-04-09T05:10:58 | 2018-04-08T12:20:14 | C++ | UTF-8 | C++ | false | false | 602 | hpp | dpc01e07.hpp | #if !defined DP_CH01_E07
#define DP_CH01_E07
#include <iostream>
#include <memory>
// head i tail recursion
//
namespace dp::ch01::e07
{
struct node {
int data;
std::shared_ptr<node> next;
node(int d): data{d} {}
};
void traversa1(std::ostream& os, std::shared_ptr<node>& head) {
if (head) {
... |
5067b8adbe5d951e00479b6c9446ea5888ce9252 | c93ca00a047a11e49fd87427d6daaff017b11ecf | /samples/advanced/frame_accumulator.cpp | e986104d86807505738c2303aca5441c721ee64d | [] | permissive | ceptontech/cepton_sdk_redist | b4b540064b8fcfc8239d14d029329e8872a4b7c0 | b5adda9b51cd54a344ed88b1cfb921b04e51cca0 | refs/heads/master | 2023-08-04T13:03:47.262514 | 2023-07-20T15:50:14 | 2023-07-20T15:50:14 | 82,982,475 | 27 | 18 | BSD-3-Clause | 2023-08-30T19:29:04 | 2017-02-23T23:46:27 | Python | UTF-8 | C++ | false | false | 1,733 | cpp | frame_accumulator.cpp | /**
* Sample code for custom frame accumulation.
*/
#include <cepton_sdk_api.hpp>
int main(int argc, char **argv) {
std::string capture_path;
if (argc >= 2) capture_path = argv[1];
auto frame_options = cepton_sdk::create_frame_options();
// Uncomment to return points every frame.
frame_options.mode = CEP... |
1faa43b707a776d224d7d5b0fae282e9146812d9 | 76a865c5f6ce235650ae74d7729acd0c59b36ecd | /FrameRate.cpp | e2d0cc18ea8986d0947802ef650eac36709b86fe | [] | no_license | AlexAlvarezAlmendros/ProceduralEnemyMap | 028f7be430923af65aaddad628acde7c83cf6792 | 8e5d27eb10aae9fe46577d7d5ed86d3ab2fc5554 | refs/heads/master | 2020-09-24T04:39:00.069717 | 2019-12-09T10:16:23 | 2019-12-09T10:16:23 | 225,663,536 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,856 | cpp | FrameRate.cpp | #include <time.h>
#include <iostream>
#include <thread>
#include <array>
#include <conio.h>
#include "List.h"
#include "Declarations.h"
#include "Structures.h"
int main()
{
List<Enemy> ballsList;
initList(ballsList);
clock_t timer = 0;
double deltaTime;
unsigned int frames = 0;
double frameRate = 120;
char ma... |
0e2a8b907ff1d20fa17a54e2301abc289b5f0154 | e99a567b16881c36ff5db276819ba1c511fc93d5 | /src/Engine/Mouse.cpp | 80d1dcb0dec190fd5b2ebde9682767a2874463da | [
"MIT"
] | permissive | PeterMerkert/symphony | a721d3974d2bc69ec0e7dab156b182a5da60a472 | cb4bd5b82913f6cc6053ec138d4a75226c7ea82b | refs/heads/master | 2021-01-15T20:29:38.555994 | 2016-01-27T02:42:56 | 2016-01-27T02:42:56 | 50,734,497 | 0 | 1 | null | 2016-01-30T16:59:24 | 2016-01-30T16:59:22 | null | UTF-8 | C++ | false | false | 2,691 | cpp | Mouse.cpp | #include "Mouse.h"
#include <SDL2\SDL.h>
namespace Symphony
{
Mouse::Mouse()
{
//A memset might be useful here instead
for (int i = 0; i < Button::MAX; ++i)
{
buttonState[i] = false;
buttonHoldState[i] = false;
buttonClickState[i] = false;
}
... |
1380e039328c14f150906c202751d6a79d9fbf2a | 3510a32a7c24394f0fb722989259b3ca39ead5df | /main.cpp | 5280d98f9ca19e51529ec9e2a484e6cf4d158bff | [] | no_license | realshooky/MMSearch | ac55d812165240b0603263c839d3fbb7f65d6e0d | 9fe4a286dac228d28194f8a8e4d92b4bd8401501 | refs/heads/master | 2020-07-03T08:11:53.025521 | 2019-08-15T03:06:24 | 2019-08-15T03:06:24 | 201,848,442 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,841 | cpp | main.cpp | #include <iostream>
#include <fstream>
#include <cctype>
#include <unordered_map>
#include <list>
#include <algorithm>
#include <cstring>
#include "Monster.hpp"
struct search
{
bool active;
std::string text;
int num;
search(std::string t = "", int n = -1, bool a = false)
{
active = a;
text = t;
... |
0a6369ef3d15e20216dd5ad4374140e77f4e5125 | a2f9e67072e3738191fb339b0040fdefed888530 | /Additional01/bulls-and-cows.cpp | f88f716ecf404aa2dafad04684f9868d876f5ad3 | [] | no_license | EnigmaSwanAdams/201-Hw04 | 75ac612bdaed2f8195f12395c8fb42e5e353573d | 8590fcef67f7a8c329e4c1480371ccc7910843dd | refs/heads/master | 2023-03-16T21:46:34.876434 | 2021-03-02T06:30:44 | 2021-03-02T06:30:44 | 343,634,572 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,775 | cpp | bulls-and-cows.cpp | /*Enigma Swan Adams
* CS 201 homework #4
* Additional program 2
*date 2/26/21
*
bulls-and-cows.cpp
contains main
contains the full program
sets up a vector with unique integers pulled form the
set of integers 0-9
the user guesses what these 4 numbers are (they also need to get the order right)
they are given a coresp... |
213615470704c35c8fc56159c7a595833a9ee621 | 55fc1fbb64178cdf09255d2b2ab348d605188d7c | /MediaServer/TLCommands.h | e85afd9697c6b13f84e95629b51859fe02ca5711 | [] | no_license | noahliaoavlink/ms_src_1.2.8 | 679f86b39b958985df363ffe3a7071e2ff39717e | 96a5a0f20f2b2e6f72ce248682051e02668feb72 | refs/heads/master | 2021-01-16T16:16:41.972937 | 2020-07-20T03:31:56 | 2020-07-20T03:31:56 | 243,179,822 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,489 | h | TLCommands.h | /********************************************************************\
Project Name: Timeline Prototype
File Name: TLCommands.h
Declaration of following classes:
TLCommandType
TLCommand
TLCommandNone
TLCommandStop
TLCommandJump
Copyright:
Media Server
(C) Copyright C&C TECHNIC TAIWAN CO., LTD.
All rights reserved.
... |
99d36169a4e9fea97fedc881a32ca465b9823962 | 843b4257278b3a0a31db58db85fa1f7dd565bc49 | /src/repositories/PizzaMenuRepo.cpp | 8738f3d35e311f90c733daf200bd18ccb9556f1f | [] | no_license | ida16/PizzaVerkefni | a984abab1e347e053a44ea8130fc84a6d1259d72 | 0adcc7f61dcf7e366f81dc07ba92e79cd5cb6e99 | refs/heads/master | 2021-08-29T23:52:44.226820 | 2017-12-15T10:19:03 | 2017-12-15T10:19:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,073 | cpp | PizzaMenuRepo.cpp | #include "PizzaMenuRepo.h"
using namespace std;
PizzaMenuRepo::PizzaMenuRepo(){
}
void PizzaMenuRepo::write(PizzaMenu& menu){
ofstream fout;
fout.open("Pizza-Menu.txt", ios::app);
if(fout.is_open()){
fout << menu << endl;
}
fout.close();
}
void PizzaMenuRepo::read(vector<PizzaMenu>& pizza... |
8a80b11d1225667da83991754d12e4a5081c2197 | 67b7a7085447b7561208ed6df95dd3133df580e2 | /feb04blow/lerp/bytecode_runner.cpp | 0b6e563d482d0ed2c05a81f5f6e1b36cce27b59e | [] | no_license | dwilliamson/GDMagArchive | 81fd5b708417697bfb2caf8a983dd3ad7decdaf7 | 701948bbd74b7ae765be8cdaf4ae0f875e2bbf8e | refs/heads/master | 2021-06-07T23:41:08.343776 | 2016-10-31T14:42:20 | 2016-10-31T14:42:20 | 72,441,821 | 74 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 65,393 | cpp | bytecode_runner.cpp | #include "general.h"
#include "bytecode_runner.h"
#include "bytecode.h"
#include "interp.h"
#include "parser.h"
#include "schema.h"
#include "goal_solver.h" // Gotta do database searches!
#include "parser_private.h" // To get at ASSERTION_FLAGS... @Refactor
#include "printer.h" // For debugging
#include "unicode.h... |
c022cf16e23878fef42bf56deaa80e5e249d2e54 | 28eba89702188063c5531d5161a3024db3323a27 | /include/cinq/enumerable-source.h | 83c3a8469971a2b1eba6893b82125d865b3eab15 | [
"MIT"
] | permissive | filixi/cinq | 22aad5a963178a23c139287c41f9da31e91d24bf | 2ffb299447b0b6621a334d2c193e08663f7d82aa | refs/heads/master | 2020-03-23T00:47:45.500730 | 2018-11-23T23:07:59 | 2018-11-23T23:07:59 | 140,885,910 | 0 | 0 | MIT | 2018-11-23T23:08:00 | 2018-07-13T19:31:47 | C++ | UTF-8 | C++ | false | false | 2,493 | h | enumerable-source.h | #pragma once
#include <functional>
#include <iterator>
#include <type_traits>
#include "detail/utility.h"
namespace cinq::detail {
template <bool ConstVersion, class TSource>
struct EnumerableSource;
template <class T>
struct is_enumerable_source : std::false_type {};
template <bool ConstVersion, clas... |
5e9196372adba8483d052af8e7099bfa2fdd4aed | 91c38d6739ef7eb47455396371cb75f0a668c9ff | /test/CompilationTests/ConstructorTests/AuxiliaryClasses/Then/Emplace/EmplaceExecuteVoidResolveTRejectUndefined.hpp | 8db948aac9c98f9b9bdea721f602cd68c214c10d | [
"MIT"
] | permissive | rocky01/promise | 8256ab0d2e599f690f31e6b035e1ae67293e60a1 | 638415a117207a4cae9181e04114e1d7575a9689 | refs/heads/master | 2020-04-01T09:14:14.878034 | 2018-10-15T07:31:16 | 2018-10-15T07:31:16 | 153,066,476 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 693 | hpp | EmplaceExecuteVoidResolveTRejectUndefined.hpp | #ifndef _AUXILIARYCLASSES_THEN_EMPLACEEXECUTEVOIDRESOLVETREJECTUNDEFINED_HPP_
#define _AUXILIARYCLASSES_THEN_EMPLACEEXECUTEVOIDRESOLVETREJECTUNDEFINED_HPP_
#include "Promise.hpp"
class EmplaceExecuteVoidResolveTRejectUndefined
{
public:
EmplaceExecuteVoidResolveTRejectUndefined(const EmplaceExecuteVoidResolveTRej... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.