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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1a8be61d0620585dbe0bf8dc6ee5e753e2d2aa9b | 7503734fc80074163aa112162f5dbc00301adc85 | /apps/dg_test/Argmax.h | b74fa72f95f181fb5398b6b4680abc5cd7c1ec5d | [
"MIT"
] | permissive | streamhsa/MIVisionX | f725315299771409dc0300e02de53e9922e07135 | 0d0e927d8fbfdce0305b1158bfb24903ae275f99 | refs/heads/master | 2020-08-25T00:30:10.509581 | 2019-10-15T23:56:10 | 2019-10-15T23:56:10 | 216,934,241 | 0 | 0 | MIT | 2019-10-23T00:28:51 | 2019-10-23T00:28:51 | null | UTF-8 | C++ | false | false | 1,458 | h | Argmax.h | #pragma once
#include <vector>
#include <fstream>
/**
* Utility class for reading the tensor file and argmax it against the label file
*/
class Argmax
{
public:
Argmax(const char* fileName, const std::string labelName, const std::string tagName);
~Argmax();
/**
* Caculate the index number with t... |
5793f9e5b94069cc697c6ec5eeeccd56a170fff6 | 3dbfb18d5953ffd135aebcf03ed004327aad9b8b | /cpp/templated_struct_static_member_ext_affectation.cpp | cf5548cb2ca119bd3132fea4cd692468bdea11cb | [] | no_license | ahonorat/sand-box | 7d7d2680c0a47c11d63f464fce7bb5155dd13268 | 60db33f5af1b8b52d4c1ecfe85b91f062de1f8b7 | refs/heads/master | 2023-05-11T18:33:53.920214 | 2023-05-08T12:19:01 | 2023-05-08T12:19:01 | 52,306,537 | 1 | 0 | null | 2022-07-01T22:17:22 | 2016-02-22T21:17:48 | C | UTF-8 | C++ | false | false | 329 | cpp | templated_struct_static_member_ext_affectation.cpp | #include <iostream>
using namespace std;
template<typename T>
struct A {
static int id;
};
// static templated struct parameter
// must be declared globally once
template<typename T>
int A<T>::id = 2;
void init() {
A<int>::id = 3;
}
int main(int argc, char** argv) {
init();
cout << A<int>::id << endl;
ret... |
253cc20a64fb8d2678482577e765afa0fce1ffb6 | 8c7773dae31e7fd97fd964dfa1c0a584db3cb4a1 | /NetworkLib/SocketLib/udp_sock.h | 644cb451f45b7dc5be9e72498dec75d3c139d3fe | [
"MIT"
] | permissive | BaldwinJoshua/NRMC_ControlServer | d8afa93073412b7e373228e94e42a0f41d2f60fa | 8a12361eae8ac5c2d95dcf4f3f4a2f0f3127268f | refs/heads/master | 2021-01-22T13:02:49.145113 | 2015-12-08T00:15:25 | 2015-12-08T00:15:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,049 | h | udp_sock.h | #ifndef UDP_SOCK_H
#define UDP_SOCK_H
#include "networkinterface.h"
#include "notimplementedexception.h"
namespace Sockets
{
class UDP_Sock: public NetworkInterface {
// Associations
// Attributes
private:
int port;
struct sockaddr_in defaultAddr;
int sct;
exception lastException;
... |
db2d955f7b6ac94347284b510782f3a45c1f8eee | 7e8cdd60d965ecb77a7ba46f9fcc096a32f17fe4 | /CGame7/Headers/Game.h | 9f5ae438b6e1ced3b4ca97e53a2b731030b79d77 | [] | no_license | themagpimag/magpi-issue71 | a58ccd6b8178cfddb1016433e27e661c4c982881 | 527814412a005ee899d928589c232817db9314f1 | refs/heads/master | 2021-06-06T03:00:19.918864 | 2018-07-26T13:13:11 | 2018-07-26T13:13:11 | 139,009,639 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 11,151 | h | Game.h | #pragma once
#include "OGL.h"
#include "SimpleObj.h"
#include <vector> // a new thing to add, vector is a kind of
#define SOLID 0b1
#define LADDER 0b10
#define WATER 0b100
#define METAL 0b1000
#define EARTH 0b10000
class Game
{
public:
Game(); //standard constructor
~Game(); //standard destructor
//li... |
570200ea60fc8aeb54059fe3b406ba98681e0a20 | 35d5630340e959f4a45d9073c0f53110b2816c57 | /foo/main.cpp | 24871190e611e0251108dff9327b514708bca8b4 | [] | no_license | app0pi/csci262 | 8eca986bf5f04b0f34c9673ab4f540dfce7d8897 | 3672daebda68b5915d41faa5d55de46b57c52bcd | refs/heads/master | 2021-04-21T17:37:21.555529 | 2020-03-24T19:40:16 | 2020-03-24T19:40:16 | 249,800,596 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 497 | cpp | main.cpp | // find example
#include <iostream> // std::cout
#include <algorithm> // std::find
#include <vector> // std::vector
using namespace std;
int main () {
int myints[] = { 10, 20, 30, 40 };
vector<int> myvector (myints,myints+4);vector<int>::iterator it;
it = find (myvector.begin(), myvector.end... |
88d0a453d334a73e7be956ffa62d6b42d33debcb | fe50fca386dc79ff7ad75185903209f07bcdab30 | /Practice/merge_sort.cpp | 3ad0bf7cd33ca4f1117eadbed2fda0e29b4985ca | [] | no_license | sainiak009/cpp_practice_codes | a5163e146b2851d8d7342fb440b508ea315410ce | 5c4fb23678f1f664abccfc490e6484368023d60d | refs/heads/master | 2020-03-20T18:20:39.397907 | 2018-06-16T13:49:49 | 2018-06-16T13:49:49 | 137,583,722 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,064 | cpp | merge_sort.cpp | #include <iostream>
using namespace std;
void print_array(int arr[], int n){
for(int i=0;i<n;++i){
cout << arr[i] << " ";
}
}
//Merge two sorted parts of an array
int* myMerge(int arr[], int be, int en){
int mid = (be+en)/2;
int nLeft = mid-be+1;
int nRight = en-mid;
int* left = new int[nLeft];
int* right ... |
8fefb01df814c0ae6362f90b55cc259e81b5cce8 | 56b7545ec3f1692d404663bcf530ad4bb2142524 | /FinalsProject/ZavrsniRad/Alpha/Skybox.h | 0c60966b7a71cb0352075a40c195ffd84e59507a | [] | no_license | UnrlGit/Zavrsni | 9d805e8442c5ea56529b2ae08b56e6cf1a8b0dd3 | 218a07b71c1a0ac9ca4ba84726a64000be87798e | refs/heads/master | 2020-04-27T09:43:56.365817 | 2019-03-06T23:52:10 | 2019-03-06T23:52:10 | 174,226,580 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 570 | h | Skybox.h | #ifndef SKYBOX_H
#define SKYBOX_H
#include <vector>
#include <string>
#include <GL\glew.h>
#include <GLM\glm.hpp>
#include <GLM\gtc\matrix_transform.hpp>
#include <GLM\gtc\type_ptr.hpp>
#include "StbImage.h"
#include "Mesh.h"
#include "Shader.h"
class Skybox
{
public:
Skybox();
Skybox(std::vector<std::string> ... |
dffc6d606e0b356c41a3ddf23914f4244f696254 | 016c6c021dcbf1d20f3d78d2066cafedc28b2847 | /CannotDetermineRoomDimensions.cpp | 7fc4cf4fe862bafa0702d712ea1c9f529711ebc4 | [] | no_license | andrew-monroe/EECS268_Lab03 | 3563eb52f40996943ee03671a1fb95e78f2c04c5 | d4d578655f65e0b1a51a1ee334309242367e2eb8 | refs/heads/master | 2021-01-13T10:15:37.598480 | 2016-09-30T04:42:05 | 2016-09-30T04:42:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 320 | cpp | CannotDetermineRoomDimensions.cpp | /**
* @file CannotDetermineRoomDimensions.cpp
* @author Andy Monroe
* @date 09-29-2016
* @brief Implementation file for CannotDetermineRoomDimensions exception
*/
#include "CannotDetermineRoomDimensions.h"
CannotDetermineRoomDimensions::CannotDetermineRoomDimensions(const char* msg):
std::runtime_error(msg)
{
}
|
448909080e213e9656b8e30e7c871b77cee8a6ed | 4a91b28db5b6132af0bcddeacb165e94ae0cf514 | /几何/凸包.cpp | 5406530316905dadc0a47aad51cf79ed66412b53 | [] | no_license | MinchaoLiang/Acm_Study | ef48433ba6f816292620d738d298b432ef3c13b1 | 386cdf31ace6b854f2747ec0038d5f030dc42434 | refs/heads/master | 2022-09-24T06:45:52.534166 | 2019-09-28T09:04:41 | 2019-09-28T09:04:41 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,871 | cpp | 凸包.cpp | #define eps 0.000001
class Point
{
public:
double x, y;
Point(double x = 0, double y = 0) :x(x), y(y) {}
Point operator + (Point a)
{
return Point(a.x + x, a.y + y);
}
Point operator - (Point a)
{
return Point(x - a.x, y - a.y);
}
bool operator < (const Point& a) const
{
if (x == a.x)
... |
9b0080718030e0cfb0aaff3301a2123da4a953a0 | b6a0f512d8c7b1c5b998fb1dbd969872f758a3ce | /lab08/ex2/ex2.cpp | 0092f6124d51e8a2f621f0275fc41f55279e5bd1 | [] | no_license | gramanicu/labAPD | f759a6ab99d9ddfd4023f927e7ce67329d7a6727 | b4e7b89951c31756390e90bdcdd29e958ce96d3d | refs/heads/master | 2023-02-13T13:57:10.832768 | 2021-01-17T21:06:57 | 2021-01-17T21:06:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 671 | cpp | ex2.cpp | #include <mpi.h>
#include <iostream>
#include <stdlib.h>
#define ROOT 0
int main (int argc, char *argv[])
{
int numtasks, rank;
MPI_Init(&argc, &argv);
MPI_Comm_size(MPI_COMM_WORLD, &numtasks);
MPI_Comm_rank(MPI_COMM_WORLD,&rank);
int rand_num;
// Root process generates a random number.
... |
56441fac36aca62db3449dede13298daf11f49cc | fab8a98797381c176c6a66bff637e3e375f8bf13 | /CodeChef/April2020Long/5.cpp | 26260e568cc024404c1369878ecd8cb11ef9265e | [] | no_license | ujjawalgupta29/Coding-Stuff | 4e6bf69ca75f64ea9695d2aa065a14089bd5671a | 2cc0dd9a1baea8d541e6ceb5def96d932bf7e315 | refs/heads/master | 2021-05-17T17:13:52.690326 | 2020-10-12T13:04:47 | 2020-10-12T13:04:47 | 250,889,867 | 1 | 0 | null | 2020-10-12T13:04:48 | 2020-03-28T20:44:05 | C++ | UTF-8 | C++ | false | false | 1,475 | cpp | 5.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long
#define v(n) vector<int> v(n)
#define ifor(i, a, b) for(int i=a; i<b; i++)
#define dfor(i, a, b) for(int i=a; i>=b; i--)
typedef map<int, int> MI;
typedef vector<int> VI;
typedef vector<char> VC;
typedef vector<string> VS;
typedef vector<vector<int>> VV... |
28418ccf2ae6a3a817be52dd74cff0fd81d8c83a | 46bf9b44b61bc58fcd668f74f870e40473c49bb5 | /SeComLib/private_recommendations_data_packing/secure_comparison_client.h | 7ea733598749b3b7f8dd70d66b8d549c90c406af | [
"Apache-2.0"
] | permissive | tutzauel/BA | 48e4ce14ff5ce8dab073fe752c39659f22112564 | fe5ede5a4a788152e9afdb67f5f030cdd8fa5f78 | refs/heads/master | 2021-05-05T12:24:01.299629 | 2017-09-25T17:21:17 | 2017-09-25T17:21:17 | 104,764,189 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,394 | h | secure_comparison_client.h | /*
SeComLib
Copyright 2012-2013 TU Delft, Information Security & Privacy Lab (http://isplab.tudelft.nl/)
Contributors:
Inald Lagendijk (R.L.Lagendijk@TUDelft.nl)
Mihai Todor (todormihai@gmail.com)
Thijs Veugen (P.J.M.Veugen@tudelft.nl)
Zekeriya Erkin (z.erkin@tudelft.nl)
Licensed under the Apache License, V... |
64e9eb10bab2efc8d205137f021b66e4204f6ef2 | 877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a | /app/src/main/cpp/dir7941/dir22441/dir22442/dir22443/dir22444/dir22869/dir22870/dir23065/file23168.cpp | 890bb008a2994b34c24dc464e0de1aacc6b0ff8a | [] | no_license | tgeng/HugeProject | 829c3bdfb7cbaf57727c41263212d4a67e3eb93d | 4488d3b765e8827636ce5e878baacdf388710ef2 | refs/heads/master | 2022-08-21T16:58:54.161627 | 2020-05-28T01:54:03 | 2020-05-28T01:54:03 | 267,468,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 115 | cpp | file23168.cpp | #ifndef file23168
#error "macro file23168 must be defined"
#endif
static const char* file23168String = "file23168"; |
a2ed7499bd758c681e13fcca3889af9a96012cc7 | 8f3271ae18f3f1058970f41b179c31c198d664ff | /bank_account.h | 98c1e0b89c07fdb7d55c1b9d0b2dd69155f48415 | [] | no_license | tejas369/Account-Management-System | db0b592bec807af162d4077054149dab529935e6 | da960a648b853e82c39da84e0ec348aa8c47ab38 | refs/heads/master | 2021-04-27T22:36:32.253759 | 2018-02-20T22:00:25 | 2018-02-20T22:00:25 | 122,261,152 | 0 | 1 | null | 2020-10-01T18:49:23 | 2018-02-20T21:53:35 | C++ | UTF-8 | C++ | false | false | 519 | h | bank_account.h | //Name :-Tejas Rajput
#ifndef BANK_ACCOUNT_H
#define BANK_ACCOUNT_H
#include <iostream>
#include <fstream>
#include <string>
#include<map>
#include<time.h>
#include "Account.h"
using namespace std;
class bankaccount :public account
{
public:
bankaccount();
~bankaccount();
void view_balance()... |
681e814ec933c8f77ffa2fa55e4cdd413876e334 | 433286e87672a10b0cfc08f8e0df4664d03b3d2f | /546B Soldier and Badges.cpp | de641a12dd507b99d52e33cfe19450554813e227 | [] | no_license | LeeTaeSoon/Codeforces | ed4115888d23bf26162319358e0cf4f60011b598 | e298c0456b6d72f43293170f0523f54350e2679a | refs/heads/master | 2021-04-12T08:15:56.254939 | 2018-06-05T09:11:30 | 2018-06-05T09:11:30 | 126,024,414 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,397 | cpp | 546B Soldier and Badges.cpp | /*
546B. Soldier and Badges
대령은 n 개의 배지가 있다. 그는 n 명의 병사들에게 배지를 하나씩 주고 싶다. 각각의 배지는 그것의 주인이 도달한 수준을 보여주는 coolness factor 를 가진다.(?) coolness factor 는 동전 하나의 비용으로 증가될 수 있다.
모든 병사 쌍 중에 한 명은 반드시 다른 병사보다 높은 factor 를 가져야 한다. factor 의 정확한 값은 중요하지 않고 다른 factor 를 가지기만 하면 된다.
대령은 처음에 어떤 병사가 어떤 배지를 받을지 알고 있지만 문제가 있다. 배지 중 일부는 같은... |
3f99fc95754f6bfe218ffb57e7471e9c4277d1b3 | cf0ee127bb2155f6c1d336b67db39d243f001983 | /main/src/Engine/Render/RenderSorter.cpp | e78d523226caa6a55a729fcf2954dd6ee2bca0dc | [
"MIT"
] | permissive | qxly/open | 089abe6bf853e70f39229fe0069e60f1b249397e | 05bf8f51a330a53da7e3f1aa9207c1d8ac01b4db | refs/heads/master | 2021-01-02T09:23:47.409973 | 2017-08-03T07:37:20 | 2017-08-03T07:37:20 | null | 0 | 0 | null | null | null | null | ISO-8859-7 | C++ | false | false | 3,699 | cpp | RenderSorter.cpp | #include "RenderSorter.h"
#include <RenderSystem/RenderStatesInterface.h>
#include <RenderSystem/RenderInterface.h>
#include <Scene/NodeInterface.h>
#include <Scene/MeshInterface.h>
#include <common/Algorithm.h>
namespace open
{
void SimpleRenderSorter::begin()
{
destoryRenderTraces(_transparentList);... |
7e23e5613301fcfdfcfc416b627a5910c98de022 | 01ee7680e1c6c12bdad946e44604538116949e1e | /C8/test06.cpp | 52a031d262a9ff6dc6781cca2faed81a9dfbceaf | [] | no_license | Dylan13531/CPLUS | a944439ebc5abc6e76158b14391fd1fa357bb085 | d6d9c319c89fa4b3943a5e58582956155338bda0 | refs/heads/master | 2020-12-08T10:41:52.170807 | 2020-01-30T13:15:46 | 2020-01-30T13:15:46 | 232,961,225 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,160 | cpp | test06.cpp | /*************************************************************************
> File Name: test06.cpp
> Author: DylanYang
> Mail: 13162687569@163.com
> Created Time: 二 1/21 18:17:20 2020
************************************************************************/
#include <iostream>
#include <cstring>
te... |
1207a67c5c7de35b7eaeb2a867c70e5c8afb5339 | 6dc0ab4ee026c952680a2fc7d37fc2646b360864 | /tests/example_conv.cc | 14dcfee5db88dc6355b54a62f54afbb48948a061 | [
"MIT"
] | permissive | nhartland/APFELgrid | c3c6dd4498af8b93b5840892fccda8b4be4358e0 | 3ca47aab85b76a5e1e677f7e39bfcf8152f01800 | refs/heads/master | 2021-01-14T08:22:03.840847 | 2020-05-11T13:38:55 | 2020-05-11T13:38:55 | 50,047,730 | 1 | 2 | NOASSERTION | 2023-06-03T10:25:19 | 2016-01-20T17:37:25 | C++ | UTF-8 | C++ | false | false | 2,880 | cc | example_conv.cc | // APFELgrid
// =========
// FastKernel table convolution
// ----------------------------
// This example demonstrates how an **FK** table may be read from file and convoluted with a given PDF.
// For this demonstration, we need some standard headers
#include <iostream>
#include <cstdlib>
// Along with **LHAPDF** to ... |
e203fa9e372f366c038ab0eee03322db4715bb52 | fb03995d5807509a66d35a2f3e366849f4184f05 | /OOP/HW3/p3/MyStack.cpp | 6cfd3e2c366763b5178545d679e3365ffb4d05b9 | [
"MIT"
] | permissive | calee0219/Course | 2b641c6d4c6fa49e87c1d600ea3927a96b8b5252 | 10bd72fcb57aae34a7ee99b0daf8c2efbd29d8dc | refs/heads/master | 2021-01-23T20:57:06.353586 | 2018-03-27T15:15:59 | 2018-03-27T15:15:59 | 90,666,096 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,578 | cpp | MyStack.cpp | /*************************************************************************
> File Name: MyStack.cpp
> Author: Gavin Lee
> School: National Chiao Tung University
> Team: NCTU_Ragnorok
> Mail: sz110010@gmail.com
> Created Time: Sun 03 Apr 2016 09:39:44 PM CST
*******************************************************... |
219eaebf5e145456fb45ea16e0707c08d4db2572 | 81ae1a9d4e937088acd120e9a61f59df005652c5 | /main.cpp | 1e0f0134bf9b194185336a6449f086af8e30bc04 | [] | no_license | ElessarCuthalion/Kvest-Mason_order_FV3 | e3ca3071524ce2b5b145a58bf693a972b9775607 | 85eb94d691fa0a74e82cd72777cc841c389782aa | refs/heads/master | 2020-03-30T16:35:07.032468 | 2019-01-16T10:34:14 | 2019-01-16T10:34:14 | 151,416,197 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,915 | cpp | main.cpp | /*
* File: main.cpp
* Author: Elessar
* Project: MasonOrder
*
* Created on May 27, 2016, 6:37 PM
*/
#include "main.h"
#include "SimpleSensors.h"
#include "PinSnsSettings.h"
#include "buttons.h"
#include "kl_adc.h"
//#include "led.h"
//#include "Sequences.h"
#include "sound.h"
#include "Soundlist.h"
#include "W... |
d458140066f9975a32b28d36625dfa752f3fad7b | 9b20714e051cd9820295eec8fcef587718753e1a | /src/board.cpp | 1aaca364e83db65b79b9ce9771ae1b3cabc731da | [] | no_license | Alice-For/BE_Cpp_Alice_Xiaohu | 3d539fe221465d5af0ac9611875b8ef42fad671b | 90953e882a5a8ed609fdd3b1e70d45f636936270 | refs/heads/master | 2022-09-04T11:11:05.422394 | 2020-05-31T08:24:34 | 2020-05-31T08:24:34 | 263,543,886 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,379 | cpp | board.cpp | #include "core_simulation.h"
#include "mydevices.h"
#include "environnement.h"
#define PIN_HUMIDITE 10
#define PIN_TEMPERATURE 9
#define PIN_LUMIERE 11
#define PIN_CO2 12
#define PIN_CHAUFFAGE 5
#define PIN_VENTILATEUR 6
#define PIN_FENETRE 4
#define PIN_ARROSAGE 8
#define PIN_LAMPE 7
int main(){
// creation d'une... |
d36a8ec4e5bf1b563e5585cf5804b2a15bb2fd64 | c13719a92c23dcade0eb9a43d6638de5ef17ed81 | /minimum_loss.cpp | dd035c01b222927f22566598f7ff5a10f92cc7bf | [] | no_license | kwkwok1980/hackerrank | 0993d8da18bfbe3ed3a9f0469c663f69ef2b0b5e | 0c80fa4beb0eecb1454c8e0f603772f2de694999 | refs/heads/master | 2021-10-01T19:05:21.034491 | 2018-11-28T16:11:27 | 2018-11-28T16:11:27 | 61,634,612 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,860 | cpp | minimum_loss.cpp | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <fstream>
#include <limits>
struct Value
{
int i;
long long p;
};
int Solve(std::vector<Value>& values)
{
auto func = [](auto&& a, auto&& b) -> bool {return a.p < b.p;};
std::sort(values.begin(), val... |
7f9fa325fcdbabb8a207f3d80e8509261f43a0cf | 221e2ef6eef91991a883d21e46cac67a8957dad5 | /Codigo/src/ficheros/getcarpeta.cpp | 9e0f839a4b65cd68a33bc0a10cc4b8f34a614bf9 | [] | no_license | antoniosastre/Sincronizador | 53211d9f9057c71ab8d6d35a986736467204283b | d5769d5b5678d70b8932f5ff6cb5b3118d6fe530 | refs/heads/master | 2020-02-26T15:29:33.789755 | 2014-06-29T21:04:20 | 2014-06-29T21:04:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 910 | cpp | getcarpeta.cpp | #include <dirent.h>
#include <sys/stat.h>
#include <cstring>
#include <fstream>
using namespace std;
int getCarpeta(const char *dir, char **&files, int &n) {
DIR *dp;
struct dirent *dirp;
if((dp = opendir(dir)) == 0) {
return -1;
}
n= 0;
while ((dirp = readdir(dp)) != 0) {
n++;
}
closedir... |
6b877b4f6165b3a1daf9098d5cc71a9a6c1be029 | 049755681a1c0b1688754877162e81c026619489 | /Project1/Project1.cpp | a1e89ac3793b2e57da5435cac0acff40d458666a | [] | no_license | Sam-Connor/CSC2040-Practical2 | 58d09379143090f7dce7b08ef665e43f0c465188 | 40e1e371b5a4fa10fe3bed9d46732b03e0fe72da | refs/heads/master | 2020-08-09T20:33:56.347879 | 2019-10-10T11:52:45 | 2019-10-10T11:52:45 | 214,169,248 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 526 | cpp | Project1.cpp | #include <iostream>
#include <string>
using namespace std;
int main()
{
int sample[10];
for (int t = 0; t < 10; t++)
{
sample[t] = t;
}
for (int t = 0; t < 10; t++)
{
cout << "This is sample [" << t << "]: " << sample[t] << endl;
cout << endl;
}
char sample2[20] = "This is a test.";
cout << sample... |
92dfa0bdc86f774639980e8510dcf84ef00a947d | 19737d80f92b108dd37be327dfa1ba35729283c9 | /src/ShaderScreen.h | a162cf3aa5a7e6977b1e60c3b05c2dc59d203b9a | [] | no_license | andyinabox/helen-of | 81c33ef51c99a8224e0cef4b5920658613d3396f | 622a5086defe8b942e67b818730fdd06c1966ca2 | refs/heads/master | 2021-05-01T12:31:11.174017 | 2020-03-24T16:28:05 | 2020-03-24T16:28:05 | 57,398,363 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,205 | h | ShaderScreen.h | #pragma once
//
// ShaderScreen.h
// helen1
//
// Created by Andrew Dayton on 4/29/16.
//
//
#include "ofMain.h"
class ShaderScreen {
public:
ofMesh mesh;
void setup(int w, int h, bool arb= true) {
// set gl mode
mesh.setMode(OF_PRIMITIVE_TRIANGLE_FAN);
// add indexes... |
a45119262c11fe02db93a30cdc04fb642c0a36fb | fa40524bf36a16503ad2532472c8f35351c22d80 | /MFC표준컨트롤/대화상자에서만들기/대화상자에서만들기View.h | e911e10a0134df3f9d8a87366aaf6c94e4c4e2bc | [] | no_license | kyuhwajeong/CPlus | 49c29ffab26638e765fd2409bdb09193c5a35493 | 5848d925fba47b9f36ee3949511a29d8aec5b302 | refs/heads/master | 2020-03-21T05:51:21.617151 | 2018-10-11T14:41:28 | 2018-10-11T14:41:28 | 138,185,426 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,438 | h | 대화상자에서만들기View.h |
// 대화상자에서만들기View.h : C대화상자에서만들기View 클래스의 인터페이스
//
#pragma once
#include "resource.h"
#include "afxwin.h"
class C대화상자에서만들기View : public CFormView
{
protected: // serialization에서만 만들어집니다.
C대화상자에서만들기View();
DECLARE_DYNCREATE(C대화상자에서만들기View)
public:
enum{ IDD = IDD_MY_FORM };
// 특성입니다.
public:
C대화상자에서만들기Doc* Get... |
09b0f67205c000b0214435966dd1e5439c7b9a78 | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /contest/1542581325.cpp | 870b897b4bdff71a0471fae699e9c781b95c58bf | [] | no_license | thegamer1907/Code_Analysis | 0a2bb97a9fb5faf01d983c223d9715eb419b7519 | 48079e399321b585efc8a2c6a84c25e2e7a22a61 | refs/heads/master | 2020-05-27T01:20:55.921937 | 2019-11-20T11:15:11 | 2019-11-20T11:15:11 | 188,403,594 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,323 | cpp | 1542581325.cpp | /*
* test.cpp
*
*
* Author: Fireworks
*/
#include<iostream>
#include<cstdio>
#include<vector>
#include<algorithm>
#include<queue>
#include<string>
#include<map>
#include<cmath>
#include<bitset>
#include<set>
#include<iomanip>
#include<fstream>
#include<bitset>
#include... |
df16f1f4a9bfe885e163483b310433d9dc1074dd | 0b88521958f1913c2844684e71ff439f8f16b8ad | /code.ino | e87b01f917323f78a7e1799eaeedf363b9a267e9 | [] | no_license | electrofun-smart/bigDisplayArduinoTempHum | eb38f4317d595d14d077312e6ec07effad817a45 | fee460f80a474050eb86415d8b8fc0d9b946f0a6 | refs/heads/main | 2023-03-20T10:26:11.218638 | 2021-03-21T19:22:13 | 2021-03-21T19:22:13 | 350,091,939 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,911 | ino | code.ino | #include <Adafruit_NeoPixel.h>
#include <DHT.h>
#define PIXELS_PER_SEGMENT 3
#define DIGITS 2
#define PIN 5
#define DHTPIN 4
#define DHTTYPE DHT22 // Sensor DHT 22 (AM2302)
DHT dht(DHTPIN, DHTTYPE);
byte segments[10] = {
0b1111110,
0b0011000,
0b0110111,... |
85fa186da6bd00472e43c85f396e09394cc4ab77 | 377e817c5a3bf2a3bab841432e3ab246195d81b5 | /cpp_code/Robot/MG966/include/MG966_API.hpp | 8e4d41f13189deff43b2da2b2f7dcdb65f152818 | [] | no_license | NGliese/RPI_Robot_Aarm | 69f140ec1d51381b52cc22a7dcb0286fa96021c7 | 8c16a19c43b25085bcbd7176ab25c308dba351de | refs/heads/master | 2022-11-26T09:15:52.449988 | 2020-07-30T08:35:07 | 2020-07-30T08:35:07 | 250,791,840 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 961 | hpp | MG966_API.hpp | /*
* MG996_API.hpp
*
* Created on: Mar 28, 2020
* Author: nikolaj
*/
#ifndef MG966_INCLUDE_MG966_API_HPP_
#define MG966_INCLUDE_MG966_API_HPP_
#include "General_Error.hpp"
#include "i2c_API.hpp"
#include <stdint.h>
#include <wiringPi.h> /* include wiringPi library */
#include <stdio.h>
#include <iostream... |
cf0c2a931867a27c3b3cc3eb8dd0aef770939923 | f00a4c7ad3fa9d2394131002ca1d024c30681e71 | /LibrarySystem/LibrarySystem/borrowInfoClass.cpp | 4dddbcdffa3c4bb20cacf04712a03616983bc065 | [] | no_license | belowthetree/LibrarySystem | 4b9a54644ec8b6a5615feaaf7058278207991789 | f8f4ace2bcee83fe504a736dc43e18679b1e37f1 | refs/heads/master | 2020-07-30T08:10:17.372314 | 2019-10-28T04:27:10 | 2019-10-28T04:27:10 | 210,144,506 | 3 | 1 | null | null | null | null | GB18030 | C++ | false | false | 6,335 | cpp | borrowInfoClass.cpp | #include <cstring>
#include"borrowInfoClass.h"
#include <stdio.h>
#include <windows.h>
#include <string.h>
static long SumOfBorrowInfo = 0; //借阅记录总条数
void ReadInfo()
{
BorrowInfo myBorrowInfo;
ifstream file("borrowInfo.dat", ios::in | ios::binary);
if (!file)
{
cout << "读取失败";
}
while (file.rea... |
f7376dad76439e4fc72cb759f7e508a5574771b9 | da3c3b663b09fb6481909f6cc9c1d287c8429f52 | /src/SyntaxException.h | 1330fa245040404ea5bec1b12ca8d5386cfa6425 | [] | no_license | mitasov-ra/compiler | 923add3f0c7f2488057b756383c31c66bdc5c863 | e77eea9b8c940fdfb3c59c02539d5d5c6d2ac636 | refs/heads/master | 2021-08-31T12:18:58.770350 | 2017-11-11T16:13:01 | 2017-11-11T16:13:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,050 | h | SyntaxException.h | //
// Created by ROMAN on 03.10.2017.
//
#ifndef COMPILER_SYNTAXEXCEPTION_H
#define COMPILER_SYNTAXEXCEPTION_H
#include <string>
namespace compiler {
class SyntaxException {
public:
enum class Errors {
UNKNOWN_TOKEN,
UNEXPECTED_TOKEN,
LINESEP_MISSING,
C... |
1e80dc9939a39a3cdf4cbd89d7cd4dc0005608d9 | cad84e1a68afa4d91c49dba2474d3b7a58818ae1 | /ezio/acceptor.h | 572898058822c5236da13c2bcdef1309e8e5587c | [
"MIT"
] | permissive | oceancx/ezio | f5e1a47b452a2713e36a591af1637ca2bc4eaba1 | 87107d2ab1a2c52625b89d490782dc1ffe5e7a5c | refs/heads/master | 2020-03-31T12:12:46.190136 | 2018-11-17T12:45:58 | 2018-12-02T08:54:09 | 152,207,188 | 0 | 0 | MIT | 2018-10-09T07:28:45 | 2018-10-09T07:28:44 | null | UTF-8 | C++ | false | false | 1,305 | h | acceptor.h | /*
@ 0xCCCCCCCC
*/
#ifndef EZIO_ACCEPTOR_H_
#define EZIO_ACCEPTOR_H_
#include <functional>
#include "kbase/basic_macros.h"
#include "ezio/notifier.h"
#include "ezio/scoped_socket.h"
#include "ezio/socket_address.h"
#if defined(OS_POSIX)
#include "kbase/scoped_handle.h"
#elif defined(OS_WIN)
#include "ezio/io_cont... |
0b5302cbf6ddeef0bbadb1b068165adcbff545aa | 87f0383e90f08036009897d537ac4e2ebdfacd90 | /programs/Config/include/DataWindowInterface.h | 50f8d08945105643624e1650ac613580c22a235d | [] | no_license | mcdullfeng/GnuRadar | 2256157c6c8fe69bc0f95ad2bcb9f17187fdbf5a | 75c004202fbed84309212850692d7b9e41f56f49 | refs/heads/master | 2021-01-18T11:54:31.255185 | 2011-09-13T00:22:09 | 2011-09-13T00:22:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,183 | h | DataWindowInterface.h | // Copyright (c) 2010 Ryan Seal <rlseal -at- gmail.com>
//
// This file is part of GnuRadar Software.
//
// GnuRadar is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at... |
097e65b35a48a07e9f6212e8e3f7d8077b4d58b3 | e2e37fd592fa0cbdbf068467246c424a874c139f | /src/twist_marker.cpp | c22b31cc7bfc663aa3c4b95b9619d131de009f4a | [] | no_license | zachlambert/cga-robotics-ros | 634d964428de229398871f4f1acadcf20ee65e50 | 8aa4c43d8f50978a4ace95a6507218d3b9d995db | refs/heads/master | 2023-05-02T00:32:08.648594 | 2021-05-26T20:17:14 | 2021-05-26T20:17:14 | 329,368,425 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,834 | cpp | twist_marker.cpp | #include <ros/ros.h>
#include <geometry_msgs/PoseStamped.h>
#include <geometry_msgs/TwistStamped.h>
#include <geometry_msgs/Vector3.h>
#include <geometry_msgs/Quaternion.h>
#include <visualization_msgs/Marker.h>
#include <Eigen/Core>
#include <Eigen/Geometry>
void configure_arrow(
const geometry_msgs::PoseStamped ... |
25fd1f5f89690e6e0a8577a2e68e069c353e8a9b | c1d5274184a3a701e1243994ccacadb3ef1fbbe5 | /Daemon/daemon.h | 6771e34385d899d6d376f7e94c26e0c76be8c0eb | [] | no_license | svitkovsergey/TRIKdashboard | 5644155d918de85c8005e87d8d1283d5ac232fe6 | 8a8d2740df02781b84a8f7b93f8d56c105fcd4d9 | refs/heads/master | 2021-06-07T08:11:10.362358 | 2016-09-21T18:18:12 | 2016-09-21T18:18:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,521 | h | daemon.h | #pragma once
#include <QObject>
#include <QVector>
#include <QTimer>
#include "brickInterface.h"
#include "accelobserver.h"
#include "batteryobserver.h"
#include "encoderobserver.h"
#include "powermotorobserver.h"
#include "gyroobserver.h"
#include "tcpcommunicator.h"
#include "udpcommunicator.h"
#include "telemetry_c... |
35a0409c59c20b45e05a5fbfc94ac1914b6f9a35 | d973b3a5ca390ecceceb630a09873d9f4cee29f1 | /BOJ/그래프/위상정렬/1516_게임 개발.cpp | f8369fe4931804eb671e46a1da24b2bf27b22347 | [] | no_license | hschoi1104/Algorithm | f06a111f44e674b38f1e0d65193b4b98ab8ac7d5 | 8317a843354c2530590c871d8a10850a0303f18a | refs/heads/master | 2023-08-09T13:01:22.646030 | 2023-08-02T08:02:43 | 2023-08-02T08:02:43 | 201,705,544 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,009 | cpp | 1516_게임 개발.cpp | #include <stdio.h>
#include <vector>
#include <queue>
#include <string.h>
using namespace std;
vector<vector<int>>v;
queue<pair<int, int>>q;
int in[502];
int time[502];
int finish[502];
int visited[502];
void bfs() {
while (!q.empty()) {
auto cur = q.front();
visited[cur.first] = 1;
q.pop();
for (int i = 0; i ... |
b9d1c52fd827c36f415fdb4e2443866319bec35d | ff93b3d44693687f0e8dd9dec525ce4ac08c317c | /agents/minilibs/CmdRoute.cpp | 3611cff50d2d80e96a59eb8fc86123f5a4435949 | [] | no_license | agiordana/HAT | 6ea2b5a6b3a635e6702ccf8573133a65c8c14c9a | f61f0783c8d9f9d4e3b1374eb6475f4d88f95ff9 | refs/heads/master | 2020-12-24T07:54:07.078444 | 2018-10-01T12:39:05 | 2018-10-01T12:39:05 | 59,103,594 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,329 | cpp | CmdRoute.cpp | #include "agentlib.h"
MMessage CmdRoute::exec(std::string uri, std::vector<std::string> params, std::string method, std::string body) {
MMessage mreq, mresp, rpcanswer;
rpcanswer.clear();
size_t i;
string dummy = "*";
mresp.add("content", "plain/text");
if (params.size() < 3){
mr... |
78dd3f72e647df445d0e58b6385398846c7dc765 | b013562927e347376bfd43b57be229fda60cb607 | /ax_core/include/ax/core/data_structure/axConnection.h | f8d9f578242912c6ef20d9c260a13edf2683bf17 | [] | no_license | Jasonchan35/libax | 82102e2b2fa577f333815f99709ebbb9250ec9f5 | 931f18f8baf46b1e7087ea93a5f0c2ee667a540c | refs/heads/master | 2021-05-04T10:02:13.008748 | 2018-06-23T16:48:21 | 2018-06-23T16:48:21 | 46,000,639 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,922 | h | axConnection.h | //
// axConnection.h
// ax_core
//
// Created by Jason on 2012-09-29.
//
//
#ifndef ax_core_axConnection_h
#define ax_core_axConnection_h
template<class T> class axConnection;
template<class T> class axConnector;
//---------------------------
template<class T>
class axConnector {
public:
class Input : public ax... |
002e2db4e0b71b9bedbab95ea4a4e667d3761ec4 | 016c5987d47e59cbf3e3a1ab3b38dd41ce40e53f | /mpmissions/Mission.Altis/dialog/key_chain.hpp | 6b95b274a7e36d7ef23f948ae69b5a625f3226fa | [] | no_license | arma3code/altislife | 160183888699a6cca24fa7ebeb967f6f4872691d | d88776d9ce3a71b3458a6a722362802a90cc481e | refs/heads/master | 2021-08-08T21:38:08.121179 | 2017-11-11T09:18:36 | 2017-11-11T09:18:36 | 110,332,225 | 6 | 12 | null | null | null | null | UTF-8 | C++ | false | false | 2,199 | hpp | key_chain.hpp | class UnionDialogKeyManagement {
idd = 2700;
name= "UnionDialogKeyManagement";
movingEnable = 0;
enableSimulation = 1;
onLoad = "[_this select 0] call UnionClient_gui_Tiles; [] spawn UnionClient_system_keyMenu;";
class controlsBackground {
class Blackout: RscText
{
idc = -1;
x = "safezoneX";
y = "s... |
da0c59895ecec85792f71d653ec94166e7473d1d | 78223e4b15d5c0794e7fb978c068d63861b899a3 | /dialogsslerrors.cpp | f0079e133ea38a0591974d01ce90e126f4bf7bac | [
"MIT"
] | permissive | rpoisel/telnetssl | 3a012d912dbeba54ef38497680ee71909b1733ca | 46be271e9200c22fd3e1ac4083f9a0fb88ec1ef6 | refs/heads/master | 2016-09-06T19:21:52.680501 | 2014-02-24T15:18:02 | 2014-02-24T15:18:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 526 | cpp | dialogsslerrors.cpp | #include <dialogsslerrors.h>
#include <qcolor.h>
#include <qlistwidget.h>
#include <qstring.h>
#include <ui_dialogsslerrors.h>
DialogSslErrors::DialogSslErrors(QWidget *parent) :
QDialog(parent),
ui(new Ui::DialogSslErrors)
{
ui->setupUi(this);
}
DialogSslErrors::~DialogSslErrors()
{
delete ui;
}
vo... |
3dd301940e4b98d64f9830dec2ac15c294d9f435 | c8ba735922784b283ef6333a641acb325228085e | /Components/Metrics/PointToSurfaceDistance/elxPointToSurfaceDistanceMetric.hxx | 13da141982413d32be4e30b92e4708540b220d42 | [
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | gokhangg/elastix | a9520455b3273f425a5d2e01772d47eddd51d86a | 7a793af5d663a7a2bf2f18d42ca50f84a3e88a8f | refs/heads/develop | 2021-06-03T09:15:33.867838 | 2020-04-04T10:28:48 | 2021-02-05T13:23:51 | 252,985,709 | 0 | 0 | Apache-2.0 | 2020-04-04T12:03:05 | 2020-04-04T12:03:04 | null | UTF-8 | C++ | false | false | 6,790 | hxx | elxPointToSurfaceDistanceMetric.hxx | /*=========================================================================
*
* Copyright UMC Utrecht and contributors
*
* 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
*
* h... |
1c953995c67f2e9c69217934f47fe496101b6ce1 | 572e221485e1ff3c0025d570b69304fd9c776550 | /SystemImpl.h | d53d185ccf28956971e24324d6026a32d1caba18 | [] | no_license | duenti/Software-Enginner | b0237add3001f92f4969a23592d09387d64c40df | aed394af02ee84fe7fe5ea4624b9886ca477e28f | refs/heads/master | 2016-09-08T01:44:31.639127 | 2014-12-18T03:10:45 | 2014-12-18T03:10:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,051 | h | SystemImpl.h | #include <string>
#include <vector>
#include <list>
#include <iostream>
#include "System.h"
#include "HandleBody.h"
using namespace std;
#ifndef SYSTEM_BODY_H
#define SYSTEM_BODY_H
#define DEBUGING
#ifdef DEBUGING
extern int numHandleCreated;
extern int numHandleDeleted;
extern int numBodyCreat... |
7b58a45ec40d3439d7adea3ef7abd16ccc8169cb | f0b7bcc41298354b471a72a7eeafe349aa8655bf | /codebase/libs/euclid/src/include/euclid/WorldPolygon2D.hh | 3eff6700bdbfc70df220ca62335f834760a9a9a3 | [
"BSD-3-Clause"
] | permissive | NCAR/lrose-core | 23abeb4e4f1b287725dc659fb566a293aba70069 | be0d059240ca442883ae2993b6aa112011755688 | refs/heads/master | 2023-09-01T04:01:36.030960 | 2023-08-25T00:41:16 | 2023-08-25T00:41:16 | 51,408,988 | 90 | 53 | NOASSERTION | 2023-08-18T21:59:40 | 2016-02-09T23:36:25 | C++ | UTF-8 | C++ | false | false | 8,354 | hh | WorldPolygon2D.hh | // *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
// ** Copyright UCAR (c) 1990 - 2016
// ** University Corporation for Atmospheric Research (UCAR)
// ** National Center for Atmospheric Research (NCAR)
// ** Bo... |
401a582421fef0ec20591f57c1dce7914317b6f2 | 9dede60d44eb74a7ec2679f2d650ccabac3c5d71 | /Примеры СИМПР/simpr-volki-zaicy/HasXY.cpp | 3b0660e1c3a015300f08d41f19b511fff943a9bb | [] | no_license | operatie-penguins/Artificial-Intelligence | acc0df0e7c5a9845088145ee121485ba36fe7396 | 0b0d71eea875f70172c880e1055913e2f3ec29fd | refs/heads/master | 2021-01-22T14:38:33.358034 | 2015-01-19T06:11:16 | 2015-01-19T06:11:16 | 24,188,812 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 234 | cpp | HasXY.cpp | //---------------------------------------------------------------------------
#pragma hdrstop
#include "HasXY.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
|
c8ecd20c702ad2f6dd3756349e32e7a2386b1da9 | 94e86a1abfe8e1cc2aaec022c34886f92016d5cb | /tools/NLS/Xlat/Xlat.cpp | 3ef3057130964907c7501b80ea814509594c65e2 | [
"Apache-2.0"
] | permissive | apache/xerces-c | e4bcb76343d63d51d363c7a196c97f75dbea908b | b597a0f79cb97be0d20870f7598b56776596dd7f | refs/heads/master | 2023-08-18T10:25:53.286052 | 2023-06-02T14:56:17 | 2023-06-09T10:15:30 | 233,018,446 | 98 | 78 | Apache-2.0 | 2023-08-18T11:08:27 | 2020-01-10T10:00:34 | C++ | UTF-8 | C++ | false | false | 33,469 | cpp | Xlat.cpp | /*
* 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 may ... |
2c798e73849eb8eb0a9820ed9fd7eed34de16ac2 | 39fe085377f3c7327e82d92dcb38083d039d8447 | /core/sqf/src/stfs/stfslib/libmkstemp.cpp | eb584f694073cf2e524aa7de5d10dd1d1a679f89 | [
"Apache-2.0"
] | permissive | naveenmahadevuni/incubator-trafodion | 0da8d4c7d13a47d3247f260b4e67618c0fae1539 | ed24b19436530b2c214e4bf73280bc8e3f419669 | refs/heads/master | 2021-01-22T04:40:52.402291 | 2015-07-16T00:02:50 | 2015-07-16T00:02:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,875 | cpp | libmkstemp.cpp | ///////////////////////////////////////////////////////////////////////////////
//
/// \file libmkstemp.cpp
/// \brief STFS_mkstemp implementation
///
/// This file contains the implementation of the STFS_mkstemp() function,
/// starting with the functional STFSLIB_mkstemp function and drilling
/// down to sup... |
8510141fbc3fffa1f01a84388d6b160a7f3f82cb | 49925b80e02a8f8e16ad199ba7009b93112f5205 | /Lafore-exercise-solutions/chapter_10/10chapter_06exercise.cpp | f0edc98f3831d92fb73106780b3d95719237a6c9 | [] | no_license | ilyachalov/lafore-book-examples | c43aff5b8c333f34c6920981924a50430051d7ef | d6737f0db122e4bf91c9d859d0cce4a0a59d22be | refs/heads/master | 2021-06-17T17:39:05.884393 | 2021-02-17T05:41:55 | 2021-02-17T05:41:55 | 172,665,245 | 17 | 16 | null | 2020-11-16T07:49:05 | 2019-02-26T08:02:45 | C++ | UTF-8 | C++ | false | false | 7,464 | cpp | 10chapter_06exercise.cpp | // исходный текст программы сохранен в кодировке UTF-8 с сигнатурой
// 10chapter_06exercise.cpp
// Требуется написать свою собственную версию библиотечной функции wcscmp,
// сравнивающую две заданных строки и возвращающую результат сравнения.
// Новую функцию предлагается назвать compwcs. В main требуется написа... |
385cbb41e6a8f6be51c1fe7b673b10451522410c | 6006c75f0b3ed13d0cb6b8b4996351a1fd4d6615 | /Day 28 Counting Bits.cpp | b173c98e17148148b2106e11956f06e327f7f6c3 | [] | no_license | tusharjaiswal123/leetcode-may-challenge | 51a4220d0a3ce114d66286ddca7b2a147fcc6f3d | 290131be399104a3355af636711419f008d1c049 | refs/heads/master | 2022-09-10T20:48:22.859684 | 2020-05-31T07:25:18 | 2020-05-31T07:25:18 | 260,406,283 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,154 | cpp | Day 28 Counting Bits.cpp | PROBLEM:
Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their
binary representation and return them as an array.
Example 1:
Input: 2
Output: [0,1,1]
Example 2:
Input: 5
Output: [0,1,1,2,1,2]
Follow up:
1. It is very easy to come up with a solut... |
37cabd2a41eff2708af040af28580df93b754c93 | 9a4534ddff234a8bd85193afbb7e4eaea99d9bca | /SmallWorld/Aggressive.cpp | 473013c22ec9b5c00e2db5dea3e6970d8757b5fe | [] | no_license | rameenrastan/SmallWorld | 1863829d2dec541a3de685eaff2b18e926b408cc | 18ec98938eddc987c280e809c7ddc19f0d7c0ecc | refs/heads/master | 2021-03-24T13:11:27.995625 | 2018-04-12T23:33:23 | 2018-04-12T23:33:23 | 120,060,429 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,169 | cpp | Aggressive.cpp | #include "stdafx.h"
#include "Aggressive.h"
Aggressive::Aggressive()
{
}
Aggressive::~Aggressive()
{
}
void Aggressive::execute(Map* gameMap, Player* player, string phase, GameLoop* gl, GameDeck* gd)
{
if (phase == "Picks Race") {
int x = rand() % 6;
player->picks_race(gl->pairs[x].first, gl->pairs[x].second... |
784ef6bb9cf9931942ab83b2b12ee86c313d889c | 54f62e14405fb25bae9c88e4767944a1d75dec2e | /files/asobiba/rti_Lib/VCL/rti_vcl_comb_event.h | 4b5716340887c8bf2192034e17541e94dcdc75d5 | [] | no_license | Susuo/rtilabs | 408975914dde59f44c1670ce3db663ed785d00b2 | 822a39d1605de7ea2639bdffdc016d8cc46b0875 | refs/heads/master | 2020-12-11T01:48:08.562065 | 2012-04-10T14:22:37 | 2012-04-10T14:22:37 | null | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,967 | h | rti_vcl_comb_event.h | /**********************************************************/
// コンボボックスのイベントとか
/**********************************************************/
#include "StartWithExeFile.h"
#ifdef COMB_LIFE
#ifndef ___TCOMBEVENTH
#define ___TCOMBEVENTH
#include <.\VCL\rti_vcl_object.h>
#include <.\VCL\rti_vcl_base.h>
//コンボボックスのイベントクラス
//... |
1805b846cd62b3629b05e0c7fcd199a1143d1311 | 6e6e1203a095c7128f27dc3adf022b4cbe0356b4 | /src/base/DNAUtil.cxx | c637ced9cbc83cfbacd8d11f30cd6e59949062df | [
"Apache-2.0"
] | permissive | theclashingfritz/libtoontown | c0dcbfa44a22a5f3200f3b1522c16a5436e1578c | e453b1de7185e056f95d4ee4831612b1a6598631 | refs/heads/master | 2021-06-30T08:00:35.586822 | 2017-09-19T00:43:44 | 2017-09-19T00:43:44 | 103,720,426 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,007 | cxx | DNAUtil.cxx | #include "DNAUtil.h"
#include "DNAGroup.h"
#include <decalEffect.h>
#include <nodePathCollection.h>
#include <pandabase.h>
DNAUtil::DNAUtil(){
}
DNAUtil::~DNAUtil(){
}
void DNAUtil::reparent_node_to(NodePath np, NodePath np1) {
np.reparent_to(np1);
}
void DNAUtil::apply_decal_effect_to_node(NodePath np) ... |
f7f95eaf56b35b94490fedd5e342d4f9470c3271 | f0b37dabd94fc5f92b2c7cf45205fcd8461b5373 | /CSCI 322/brgc-knapsack/menu/Menu.h | aa7cab7fe9999c6e63debc9d2af06bfe8c453c34 | [] | no_license | BrandonMitchell1920/CSCI332 | fa5c0da4fb8ea4a48299942cf28575ac89a2e068 | afc34a1a06b0e8f7b486fd4028d7c0ea20ed9965 | refs/heads/main | 2023-04-12T22:28:19.083515 | 2021-04-23T19:53:19 | 2021-04-23T19:53:19 | 360,991,103 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,033 | h | Menu.h | /** Application Menu via Textual User Interface
*
* CSCI 332 Design and Analysis of Algorithms
* Menu Class
*
* Phillip J. Curtiss, Associate Professor
* pcurtiss@mtech.edu, 406-496-4807
* Department of Computer Science, Montana Tech
*/
#ifndef MENU_H
#define MENU_H
#include <string>
#include <v... |
4d0b54eeeee597937513a071a79735291daf9401 | 8029517ebbfc93e706dd15c29ba5f92eaca51e8a | /Server/Src/DataPool.cpp | 4f491afcc792fe356033b700ce946ad5e8bdda9c | [
"Apache-2.0"
] | permissive | JasonBucotte/Cry_HPSocket | 856dd94f7877510e8f28b672e9ff1782dbebd111 | b9c56f6b855448a3597d28fd1af7cafe14f89ce6 | refs/heads/master | 2020-06-13T01:40:52.625923 | 2019-04-18T02:12:26 | 2019-04-18T02:12:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,829 | cpp | DataPool.cpp | #include "stdafx.h"
#include "DataPool.h"
#define MAX_BLOCK_SIZE (64*1024)
#define DEFAULT_BLOCK_NUM 64
DataPool::DataPool()
{
Reset();
m_dataBlocks.resize(DEFAULT_BLOCK_NUM);
for (int i = 0; i < DEFAULT_BLOCK_NUM; i++)
{
BYTE* dataChunk = new BYTE[m_maxBlockSize];
memset(dataChunk, 0, m_maxBlockSi... |
1571f27d3ce0126a2a900d77f03e161eb5d89869 | e993b06fbdaf60ee5f11f69c8564b35f3fc48400 | /Number letter counts.cpp | f14b4d79052277fa750581dca331a93c7a09367f | [] | no_license | Are-Jeh/PEuler | 2f0921ceed98f82993018a4fe8d266ebd7f11a12 | c762ee69a9a4af7e273d5e5c18301f2f35e2c8a8 | refs/heads/main | 2023-08-10T18:11:19.756196 | 2021-09-17T03:58:52 | 2021-09-17T03:58:52 | 399,065,163 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,075 | cpp | Number letter counts.cpp | #include<iostream>
using namespace std;
int main()
{
string oneto9[] = {"","one", "two", "three", "four", "five", "six", "seven","eight", "nine"};
string elevento19[] = {"","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"};
string x10s[] = {"","ten", "twenty", "t... |
491d19f913390c43b91334344113b4236b4a73a3 | f19a734ebeaa22ae0d8a0d347aea5810f159d9bc | /Euler Method/BZOJ4173.cpp | a8c9a95e4d43ee8807a22dffb4954f79314942a9 | [] | no_license | iiyiyi/solution-book-till-2020 | 2d0b75dc9e1468d846b176551acaa2a930428afb | faf1c04735627df8ee600b55d72df9bec50089b5 | refs/heads/master | 2023-03-07T05:54:48.824987 | 2021-02-20T10:59:55 | 2021-02-20T10:59:55 | 340,558,407 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 461 | cpp | BZOJ4173.cpp | #include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
#define MOD 998244353
using namespace std;
typedef long long ll;
ll phi(ll x)
{
ll ret=x;
for (ll i=2;i*i<=x;i++)
{
if (x%i==0)
{
ret-=ret/i;
while (x%i==0) x/=i;
}
}
if (x>1) ret-=ret/x;
return ret%MOD;
}
void solve()
{
ll n... |
267fa0a10f73d956bf813be59c46c31cf92bc516 | 721ecafc8ab45066f3661cbde2257f6016f5b3a8 | /codechef/tourists.cpp | bcb6eed6a8b9cf3c3c54c709bffcc8359908cff5 | [] | no_license | dr0pdb/competitive | 8651ba9722ec260aeb40ef4faf5698e6ebd75d4b | fd0d17d96f934d1724069c4e737fee37a5874887 | refs/heads/master | 2022-04-08T02:14:39.203196 | 2020-02-15T19:05:38 | 2020-02-15T19:05:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,462 | cpp | tourists.cpp | #include<bits/stdc++.h>
using namespace std;
typedef pair<int, int> ii;
typedef pair<int, ii> iii;
typedef vector<ii> vii;
typedef vector<int> vi;
typedef long long ll;
typedef long double ld;
typedef vector<ll> vll;
typedef pair<ll,ll> lll;
const ll MOD = 1000000007;
const ll INF = 1e9+5;
const double eps = 1e-7;
co... |
e0e89152362c7275a99dc2b1e835285ed60cdab3 | d4433d8c51e9dc6e0c2904def0a524c9125555de | /Battle/TrapData.h | 1c1d30d93a0b6c01e24aef30720ac005ba84fb38 | [] | no_license | 54993306/Classes | 3458d9e86d1f0e2caa791cde87aff383b2a228bb | d4d1ec5ca100162bd64156deba3748ce1410151d | refs/heads/master | 2020-04-12T06:23:49.273040 | 2016-11-17T04:00:19 | 2016-11-17T04:00:19 | 58,427,218 | 1 | 3 | null | null | null | null | GB18030 | C++ | false | false | 1,850 | h | TrapData.h | /*************************************************************
*
*
* Data : 2016.5.26
*
* Name : BattleTrap
*
* Author : Lin_Xiancheng
*
* Description :
*
*
*************************************************************/
#ifndef __BattleTrap__
#define __BattleTrap__
namespace protos{
namespace commo... |
46ce3b18574a1b209be65a00ae217d0839ed738f | 5b633913a456f8419591a7a51d60d804f598c324 | /button_wifi.ino | 9130d1fc93c0209053a059e763376b1b50c5be6f | [] | no_license | olgaBd/BoutonDASH | c574bf070f30e622a461e3fa8e5ccfb8c62189f4 | 257f674af0792b6e4e198528f76c156777ed6482 | refs/heads/master | 2020-04-23T22:28:59.619085 | 2019-02-20T14:52:48 | 2019-02-20T14:52:48 | 171,503,321 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 901 | ino | button_wifi.ino | #include <WiFi.h>
#include "Adafruit_MQTT.h"
#include "Adafruit_MQTT_Client.h"
#include "uTimerLib.h"
WiFiClient wiFiClient;
Adafruit_MQTT_Client mqttClient(&wiFiClient, "192.168.0.108", 1883);
Adafruit_MQTT_Publish bouttonPub(&mqttClient, "/boutton");
int compteur = 0;
void bouttonStatut() {
int down = digitalRe... |
607a2ce53c73e97b6713767d39fdf24050967435 | 2802df7c2502fd3cfd430325b7c681ee55b40059 | /scripts/shuffle_fastq.cpp | a6566d1dd171681f6ddbb6f0d204b98430d70b64 | [] | no_license | Jonasgrove/file_utilities | 1158f7661b43dc1a201b098893ac439564791cf7 | 543f527d31a9ac5f84eabf6ca2c130ac77d732d0 | refs/heads/master | 2023-03-23T11:17:41.291063 | 2021-03-12T17:47:23 | 2021-03-12T17:47:23 | 337,523,107 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,539 | cpp | shuffle_fastq.cpp | #include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <unordered_map>
// FASTQ 'MAGIC CARD' SHUFFLE
// write out to file based on dictionary
void write_to_file(std::string out_file_name, std::string full_record){
// write line out to file indicated by argument
// open file
... |
55ffef9e75f2d85f27dff5ca8b271188fba16caa | 1e7869d7e1ab45fefb75b573d5ea5aa4b761a38a | /LISTA F/5f.cpp | 97b865517063aa2cadf1211175947d899de51f74 | [
"MIT"
] | permissive | cassiocamargos/C | 07d3814d85d0f71b88b279b24d2ca44a8981adfe | cfb03e6fb2b4788cb3d5fc0a738b0c90f07a47ee | refs/heads/main | 2023-06-15T19:41:19.014996 | 2021-07-13T16:38:18 | 2021-07-13T16:38:18 | 385,670,600 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,200 | cpp | 5f.cpp | /*
Lista F - Exercício 5
*/
typedef struct
{
char nome[101];
float altura;
float peso;
} Corpo;
// c. Escreva as instruções necessárias para definir o tipo Casal, contendo dois membros do tipo Corpo;
typedef struct
{
Corpo pessoa1;
Corpo pessoa2;
} Casal;
int main()
{
//a. Escreva uma instruç... |
a00c6a785650b069d50119b4421907c1985e0915 | c367420fc012714bae5838a450e3c71a45f4ba43 | /bezGameEngine/src/Drawable.hpp | b918a6c2de9a53c96a456cfe2ebfddb9c0101110 | [
"MIT"
] | permissive | Gustvo/bezGameEngine | b65335e8ec7268ef359fc4cb30039ef3076c0aa2 | 8d0ac4613d1a1aac65cab51d337b9a77d56f29ec | refs/heads/master | 2020-12-08T10:49:06.514554 | 2020-01-13T06:36:53 | 2020-01-13T06:36:53 | 224,266,145 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 243 | hpp | Drawable.hpp | #ifndef DRAWABLE_H
#define DRAWABLE_H
namespace bez {
class Drawable {
public:
protected:
Drawable(){};
virtual ~Drawable(){};
virtual void draw() const = 0;
private:
friend class Window;
};
} // namespace bez
#endif // DRAWABLE_H
|
791d4543bf9e1f72666eae10ad3e637f5634ca86 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5631989306621952_1/C++/terashi/A.cc | 20a2be2335a7ce739d4694ae6c0307b73a166ea6 | [] | 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 | 590 | cc | A.cc | #include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <cstring>
using namespace std;
bool isUpper(const string& str, char c) {
for (char s : str) {
if (c > s) return true;
if (c < s) return false;
}
return false;
}
int main() {
int nnn;
cin >> nnn;
... |
af19792f8b6bff52a7e7f111d94af1e5663de33c | 72742d4ee57fb66cfe3f10290ccb596dcde1e59e | /Ubilo/Solutions/Yaz Kampi 2012/trezor.cpp | 0de38f7e74e0580bdcf3bc35078b230a8b7215c9 | [] | no_license | mertsaner/Algorithms | cd5cf84548ea10aafb13b4a3df07c67c1a007aef | f7aecb7e8aadff1e9cf49cc279530bc956d54260 | refs/heads/master | 2023-03-18T03:18:26.122361 | 2016-02-14T22:48:31 | 2016-02-14T22:48:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,704 | cpp | trezor.cpp | #include <algorithm>
#include <iostream>
#include <fstream>
#include <vector>
using namespace std;
int gcd(int a, int b)
{
return b == 0 ? a : gcd(b, a%b);
}
int A, B, L;
vector<int> divisors[4001];
vector<int> uni(vector<int> a, vector<int> b)
{
vector<int> ret;
for(vector<int>::iterator it = a.begin(); it != a... |
5c732fb2d1bc555b8e93b219a894265f8ec52f99 | 4f6ddc12104ff4900830ab1cf357953b24b12165 | /Modulo/funcion_modulo.cpp | 1e014c5bd11f6eb4f7fc70193b731895c6f90f48 | [] | no_license | fernando-peralta/FernandoJair_PeraltaBustamante | d54d4455b02dc37a968125e024db8dea7ed1dead | 628f1fec46f1aa5ee1ec07d9b56660d42eb79862 | refs/heads/main | 2023-07-19T14:35:01.446938 | 2021-09-06T10:32:25 | 2021-09-06T10:32:25 | 351,824,320 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,169 | cpp | funcion_modulo.cpp | #include <iostream>
using namespace std;
int resto(int a, int n){ //funcion resto recibe a (dividendo) y n )(divisor)
int q,r; // Las dos salidas a entregar en la division: q (cociente) y r (resto)
if (a<0){//en caso a sea negativo
q=a/n; //resolvemos q
r=a-((q-1)*n); //realizamos la o... |
0a886a6bcee499637c4248ab77ebff4dffe56391 | 04fdd565922fe5df2c789568a2a8bc2a7f3c056a | /Bidochka_O/Pr №7/4.cpp | e49261150d2b3869302d5edd71f726e2891df782 | [] | no_license | kotsolesya/OPtaAM_PS_2015 | 5c855fc0d0ddefbfa138798828e0154ed32d03b5 | 9651535bb58a1848b9f76ef0508b6ba7467be666 | refs/heads/master | 2021-09-06T15:05:22.002304 | 2017-10-18T09:32:59 | 2017-10-18T09:32:59 | 107,361,522 | 54 | 30 | null | 2018-02-11T20:03:01 | 2017-10-18T05:11:12 | C++ | UTF-8 | C++ | false | false | 451 | cpp | 4.cpp | #include <iostream>
#include <fstream>
using namespace std;
main(){
srand(time(NULL));
ofstream file1("D://string.txt", ios_base::out | ios_base::trunc);
if(!file1.is_open()){
cout << "File cannot be opened ro readed";
return 1;
}
char str[40];
for(int i = 0; i < 40; i++)
{
file1 << (char)(rand(... |
84fbd12af27ba86d6db799b33ea1871a27b74f75 | 5244b478acd55017fe53c68bd4ebf66bb01bf349 | /spidervnAccel/src/spidervnAccel/interface/IArchiveExtrator.h | 1db0b3020bcd83ab89f8ddc41c0b72a4d4f6c36e | [] | no_license | spidervn/android_agent | 7360fb9cb8db57d702829ed70af791d049fdd329 | 9f61bd4ed01a7486c47f4cc7e4204a2bc75a7525 | refs/heads/master | 2023-01-02T10:06:56.439942 | 2020-10-23T08:52:50 | 2020-10-23T08:52:50 | 92,178,225 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 470 | h | IArchiveExtrator.h | /*
* IArchiveExtrator.h
*
* Created on: Jan 25, 2018
* Author: ducvd
*/
#ifndef SPIDERVNACCEL_INTERFACE_IARCHIVEEXTRATOR_H_
#define SPIDERVNACCEL_INTERFACE_IARCHIVEEXTRATOR_H_
#include <string>
class IArchiveExtrator
{
public:
virtual ~IArchiveExtrator() {}
virtual int extract_Archive__(std::string fil... |
0085ba743e7ef79580b164fe08db2cad6f9e13bd | 44e5284edac5a2bfc1637630911ebbd054e580d2 | /SPI_RAM.h | 7963836e9efb53e5c72b7f05267bb09131c2610f | [
"MIT"
] | permissive | helloworld8686/stem6s2 | 8efcd55a91a479a561043a09a6015931746b0390 | 3fefd420d100902a349aff79203651fb0306ed69 | refs/heads/master | 2020-07-03T11:58:41.284395 | 2019-08-27T03:41:00 | 2019-08-27T03:41:00 | 201,898,182 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,171 | h | SPI_RAM.h | /*****************************************************************************
* | File : SPI_RAM.h
* | Author : Waveshare team
* | Function : FM25V05 DRIVER
* | Info :
*----------------
* | This version: V1.0
* | Date : 2017-12-12
* | Info : Basic version
*
*************... |
2166b377e3da65559c3c65f4e661260eb8e709e7 | bd3054e3359fdeb6415ed15d76b4b98c037e2484 | /DelFEM4Net/DelFEM4Net/DelFEM4Net/src/com/vector3d.cpp | 6412a71f5f87ea971ff7c142073a8d4c583f6fbc | [] | no_license | ryujimiya/delfem4net | 0af1619e375161b8f2a4c1c59c53f953e4d875b0 | 43ca8198ea9589d8d4b6141be16196b864c2393e | refs/heads/master | 2020-05-16T06:35:13.394134 | 2018-04-30T01:50:16 | 2018-04-30T01:50:16 | 42,876,545 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,057 | cpp | vector3d.cpp | /*
DelFEM (Finite Element Analysis)
Copyright (C) 2009 Nobuyuki Umetani n.umetani@gmail.com
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your ... |
9af48dab0e38c9d8d31457ef0a9d912dc91b526b | 1169cc24e1d2af554e37bb1d008014a2bdd8999e | /xru_ZGM/Poppy/Dialog.hpp | 65e97a9a9d740313d699190c952feb7a8ec1b3b7 | [] | no_license | xrufix/ZGM | 4b6cb53364667a648f84eb0506dcb0b80d891386 | 5b12b238e41eb2a946230cf7ca480225da500650 | refs/heads/master | 2021-06-08T21:03:18.523673 | 2019-12-22T14:02:00 | 2019-12-22T14:02:00 | 107,270,391 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,989 | hpp | Dialog.hpp | class RscPoppyMessageBox {
idd = -1;
movingEnable = 0;
enableSimulation = 1;
controlsBackground[] = {
"pnlBackground",
"lblHeader",
"lblMessage",
"imgBtnPrevious",
"imgBtnNext",
"imgBtnClose"
};
controls[] = {
"btnPrevious",
"btnNex... |
e2fa20d44897cf2ef4da16a7c8ddcca6308ae626 | eae8c2b8970210ef5e3b25bfb77d703818b351c1 | /Server/GameThread.cpp | 8f25031ed577df3fa1ba71a692df87c1e4e43c41 | [] | no_license | fpusderkis/TP-Final-Taller-I | 62f971d025c544953d341e711fa448341cd1719a | d30301a96fea7ba641574112e39646211924db49 | refs/heads/master | 2022-01-19T23:00:49.506962 | 2019-06-26T02:49:01 | 2019-06-26T02:49:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,391 | cpp | GameThread.cpp | #include <Common/exceptions.h>
#include <algorithm>
#include <iostream>
#include <chrono>
#include "GameThread.h"
#include "DTOProcessor.h"
#include "Stage.h"
#include "Player.h"
#define NEW_PLAYER_ADDED_MSG "Nuevo jugador agregado a la partida\n"
#define PLAYER_DELETED_MSG "Un jugador ha salido de la partida\n"... |
1a9d5a2fd4bafc75839c3a838ac4fec74bd9868f | ea4bcc1aab9dcc65a9ed22dd19e2a379412f2960 | /BFS/B1613/역사.cpp | 61de4d5bed01add63f6c6acf8c47caf86158f3a7 | [] | no_license | yoon1fe/ProblemSolving | 3315e582f01da29571b3341dc50415b25da4af04 | 32c7c9baeebec752bfc8dac33ebd51774fc4fae2 | refs/heads/master | 2023-07-18T15:35:53.366737 | 2021-09-10T13:39:34 | 2021-09-10T13:39:34 | 280,450,614 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,824 | cpp | 역사.cpp | //BFS로 풀면 시간초과가 뜬다. 플로이드 와샬 알고리즘 이용
#include <iostream>
using namespace std;
int n, k, s;
int start, dest;
int d[401][401];
void floyd() {
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= n; j++) {
for (int k = 1; k <= n; k++) {
if (i == j || j == k || k == i) continue;
if (d[j][k] == 0) {
if... |
0d28d9573caf945e2029c3a786a00f5c8d7bdd7c | 1b06d5bf179f0d75a30a4b020dd88fc5b57a39bc | /Repository/Logix/system/ndg/phase2/ctl_pe/tells_bodies.cp | 64f62d2b11b1b5c94a831e84f65b31e1b583ac0d | [] | no_license | ofirr/bill_full_cvs | b508f0e8956b5a81d6d6bca6160054d7eefbb2f1 | 128421e23c7eff22afe6292f88a01dbddd8b1974 | refs/heads/master | 2022-11-07T23:32:35.911516 | 2007-07-06T08:51:59 | 2007-07-06T08:51:59 | 276,023,188 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,688 | cp | tells_bodies.cp | /* $Header: /baz/users/cvs-root/Source/system/ndg/phase2/ctl_pe/tells_bodies.cp,v 1.1.1.1 1993/12/31 10:42:21 fcp Exp $ */
-language(compound).
-export([tells_bodies/8]).
-mode(trust).
procedure tells_bodies(Dg, BH, Dic, Ctl, Ch, Name, SC, Done).
tells_bodies(Dg, BH, Dic, Ctl, Ch, Name, SC, Done)
:-
Dg = [{[],DgBodi... |
cd958324a5794d48c3f313cf537db7bc404a044a | 572547fb46d8425892a81b135cb1910eb0a2d04b | /example/20.显示器类/6.WS2812/1.test.cpp | 9bd5fbb90fe4efd67917ed7243d8171bd5309094 | [] | no_license | shentqlf/eBox_Transmitter | 6f239c51046f20fc7bfd921b282f543940f9041c | fe6771743c368ea7e3c802a77329d6b91673db42 | refs/heads/master | 2020-03-19T04:45:52.188044 | 2018-06-07T13:12:27 | 2018-06-07T13:12:27 | 135,863,350 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 834 | cpp | 1.test.cpp | /**
******************************************************************************
* @file : *.cpp
* @author : shentq
* @version: V1.2
* @date : 2016/08/14
* @brief ebox application example .
*
* Copyright 2016 shentq. All Rights Reserved.
*******************************************************... |
51eba91fb3b98a3a0127b58471c9dc35d8fb8835 | 41279e0ed19e26cc0fcaafa229604d1094aed6a8 | /include/IUpdateable.hpp | 79283db6f22e71808c85dc61449161337ee58182 | [] | no_license | ChuxiongMa/TextAdventure | 20a180747414ede1a8b0e85869809f955b067b11 | 4f217106de6908909f17408c16df822ed9543284 | refs/heads/master | 2016-08-13T02:01:58.490646 | 2016-02-21T23:26:48 | 2016-02-21T23:26:48 | 52,233,748 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 405 | hpp | IUpdateable.hpp | #ifndef IUPDATEABLE_H
#define IUPDATEABLE_H
namespace textadventure {
class IUpdateable {
public:
/**
* This will act as the updatable's "main loop".
*/
virtual void update() = 0;
/**
* This notifies the client code whether or not the game has stopped.d
*
* @returns whether or... |
ef8c231f2ab629403d171a059fad17b4e0d56a42 | 50e94a66c8ea2ec3035d341b1d10b5507bd23ef8 | /TouchGFX/generated/gui_generated/src/containers/ScreenBackgroundContainerBase.cpp | e4ffa84bc38c45ab913e40271e8b30e659e375f1 | [] | no_license | frigodaw/pathTracker | 7b76d4972280f6bdfd827fb4493747016fc5051b | 5198198f4fc2466aeb499b523cd14bf3005dfb82 | refs/heads/master | 2020-12-10T21:43:55.574214 | 2020-10-06T19:39:00 | 2020-10-06T19:39:00 | 233,717,928 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,503 | cpp | ScreenBackgroundContainerBase.cpp | /*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#include <gui_generated/containers/ScreenBackgroundContainerBase.hpp... |
e9a40b9ef102366692a7d89da54919f94cf4a7ef | aecfc8d854067106630c839c1858c25528e28a79 | /conquest_mp/src/ui/UINetDisplay.h | 77bdc2f6f999f5fa90bdfa943379fd328d412ad6 | [
"MIT"
] | permissive | kaapomoi/conquest | 54ad3057a629252e43d0610c1f9fd3ba7b694270 | af2993b7fe7fa1cc7b1c574f56814194b8b11bbd | refs/heads/master | 2023-06-01T17:41:22.434659 | 2021-05-07T12:33:32 | 2021-05-07T12:33:32 | 288,390,193 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 966 | h | UINetDisplay.h | #pragma once
#include <core/Application.h>
#include <ui/UIBase.h>
#include <ui/UIClickable.h>
#include <neuralnet/NeuralNet.h>
class UINetDisplay : public UIBase, public UIClickable
{
public:
UINetDisplay(std::string name, k2d::vf2d position, k2d::vf2d size, float depth, k2d::GLTexture texture, k2d::SpriteBatch* sb,... |
44f11cc217ce03112e7feb3c268ec95bffd84fdc | 01140446d6211a53e4c46d7acdfe2341ecadf4fc | /src/Event.cpp | 6b9b794da750d3dc240278ee91e5464ac99aa434 | [] | no_license | mmnuria/Shopping3 | 5fa4c8c76fa84795c3b843262ee4df9464013809 | e950637069d4003c8cd810bb0016015c0b962288 | refs/heads/master | 2023-04-22T01:05:25.178677 | 2021-05-08T18:10:26 | 2021-05-08T18:10:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,093 | cpp | Event.cpp | /**
* @file Event.cpp
* @author MP-Team DECSAI
* @warning Update the class. Methods print and read To be implemented by students
*
*/
#include "Event.h"
using namespace std;
Event::Event() {
initDefault();
}
void Event::initDefault() {
set(EVENT_DEFAULT);
}
Event::Event(const string &line) {
set(... |
244fcb49f17e623557991121aeb353b4698efdb6 | 0035101c52694ebafad3a501360ec879982f5a2a | /ctci/chapter3_stacks_and_queues/animalShelter.cpp | 1b801e433779b217895577cb738ed6a87937b5f8 | [] | no_license | kimjihwan0208/CodingPractice | 61e28de89254b9cc6edf9c681f9e61b2746a1380 | 526de3c8d7cd9e887db1921fb7f56f499f14b09b | refs/heads/master | 2020-04-10T14:40:12.356427 | 2019-09-28T22:48:54 | 2019-09-28T22:48:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 461 | cpp | animalShelter.cpp | //incomplete
#include <iostream>
#include <iterator>
#include <list>
using namespace std;
struct Animal{
string name = "";
string type = "";
int id;
Animal(string name, string type, int id){
h
}
};
class AnimalQueue{
private:
list<Animal> Dog;
list<Animal> Cat;
public:
void enque... |
39e0dba8b2e338ee1cd4a9472f6e0192042ea6e0 | 74af6e37ed7178c371853538e900750a7704faab | /EspSoftSerialRx.h | 3ad7b7592bec6010f1300897bbc2c5b12f87228f | [] | no_license | scottwday/EspSoftSerial | 1bdd75d00b85c449911dd8d81d359b6e6bea33a9 | f0f14495e05acae9196736d259e56bfa979cd0b8 | refs/heads/master | 2020-05-30T21:39:32.900489 | 2015-12-10T17:58:03 | 2015-12-10T17:58:03 | 40,392,424 | 7 | 1 | null | 2015-12-10T17:58:05 | 2015-08-08T05:17:20 | C++ | UTF-8 | C++ | false | false | 1,512 | h | EspSoftSerialRx.h | /* EspSoftSerial receiver
Scott Day 2015
github.com/scottwday/EspSoftSerial
Uses a pin change interrupt and the tick timer as a uart receiver
*/
#ifndef ESPSOFTSERIAL_H
#define ESPSOFTSERIAL_H
#define MAX_ESPSOFTSERIAL_INSTANCES 4
#define SOFTSERIAL_BUFFER_LEN 256
#define SOFTSERIAL_ERROR_LONGLOW 1
#define SOFTSERI... |
fae55f15b324a798a16e37cccdd4ed55a74c9415 | bc800acdd48e53165f9fcfcf34e7aa30c4683ce6 | /backends/gdx-backend-iosmonotouch/natives/iosgles20.cpp | 7aafe9e3ff9e728951c49a914cbca56345051a88 | [] | no_license | jaredbracken/libgdx | e905064f6a0e27de331051a2c8a70c5c219862d4 | 15fb5ded7a8914fc77cea0efa5da2af703d631fe | refs/heads/master | 2016-09-06T19:25:33.138335 | 2012-11-10T03:37:48 | 2012-11-10T03:37:48 | 6,623,954 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 55,104 | cpp | iosgles20.cpp | #include <iosgles20.h>
#include <OpenGLES/ES2/gl.h>
#include <OpenGLES/ES2/glext.h>
#include <stdio.h>
static jclass bufferClass;
static jclass byteBufferClass;
static jclass charBufferClass;
static jclass shortBufferClass;
static jclass intBufferClass;
static jclass longBufferClass;
static jclass floatBuff... |
c87c30b7aeae975055cfd5fdf42c476e48aebd7b | feac0a0a42e22ddbab31863647e68ce7ece8af50 | /SVN INSIDE/a1647264/newsvn/a1647264/2013/s2/oop/workshop4/example1.cpp | 9c68afbc2d33af83d3e685dcf4d6123925bfaea3 | [] | no_license | cotrat/UBUNTU-FILES | 43c8aa0d0ac33a915808124190d576b8e3f2c9df | 57f0aaaad46886c245a9bb142850e8836e8af2e4 | refs/heads/master | 2020-05-16T23:43:15.413005 | 2015-03-09T13:48:46 | 2015-03-09T13:48:46 | 31,899,681 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 268 | cpp | example1.cpp | #include <iostream>
using namespace std;
int main() {
int a = 1;
char b = '1';
float c = 1.0;
cout << "Values:" << endl;
cout << "Int: \t" << a << endl;
cout << "Char: \t" << b << endl;
cout << "Float: \t" << c << endl;
return 0;
}
|
646af2b26efb9b35b84b6d78523090dcbd7ff44f | 740eea09764634a32e747a7cce139c5a9e50dc68 | /MPZ/Training/test67.cpp | d811a2486ae7ae4481e4c6be33eb2c65aaae522e | [] | no_license | mpzadmin/yuc | ceeae65fe72cbd4212ebdf20774f9e2cda7f5fce | e6c73c24ff41b48617ec2e436e356516291a4656 | refs/heads/master | 2023-02-28T21:35:13.407372 | 2021-02-11T08:42:08 | 2021-02-11T08:42:08 | 321,592,407 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 465 | cpp | test67.cpp | #include <iostream>
using namespace std;
void test(int &a, int &b);
void exchange(int &x, int &y);
int main()
{
int a = 10;
int b = 20;
cout << "a = " << a << " , b = " << b << endl;
test(a,b);
cout << "a = " << a << " , b = " << b << endl;
exchange(a,b);
cout << "a = " << a << " , b =... |
f4351bb8bb41a76d477fbbc3dae404699a40cdc4 | 4554bf2ef932f3356deed0c7a896a01f2a72003f | /RenderEngine/Include/RenderSystemD3D/RenderTargetManagerD3D9.h | 1cb2b95c25849b8fd7027428ba0d869851d4b65a | [] | no_license | kevinchen2015/xgame | 61364bf24daae2b69202df609b1e4c52a821fd46 | e4cc0916923c624beedd17592a6dd89ff30525af | refs/heads/master | 2021-01-23T18:45:07.418341 | 2017-09-08T02:09:48 | 2017-09-08T02:09:48 | 102,805,922 | 0 | 0 | null | 2017-09-08T02:08:11 | 2017-09-08T02:08:11 | null | GB18030 | C++ | false | false | 3,306 | h | RenderTargetManagerD3D9.h | #ifndef __RenderTargetManagerD3D9_H__
#define __RenderTargetManagerD3D9_H__
/*
切换渲染目标时,要设定m_pcsBeginEndPrimitiveProxy的当前属性
*/
namespace xs
{
class RenderTargetD3D9;
class RenderSystemD3D9;
class RenderTargetManagerD3D9;
class RenderTargetManagerD3D9Creater
{
public:
static RenderTargetManagerD3D9 * create(R... |
9f214a15497c93bdb3ea4180b44038282189d5bb | bb92586c3accb07b99b5004d719434fd018bd135 | /leetcode/LRU_Cache.cc | d291481838d49e2c7141944a19e4c81413d1a256 | [] | no_license | lc19890306/Exercise | 4a6070296aadb021d35dfae54d9352c289b9c2db | 153f73c015a9c64aa35aa440fce926c1d26f76c8 | refs/heads/master | 2021-07-17T21:01:15.881080 | 2021-02-19T15:34:55 | 2021-02-19T15:34:55 | 40,798,802 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,524 | cc | LRU_Cache.cc | class LRUCache{
public:
LRUCache(int capacity) : m_capacity(capacity) {}
int get(int key) {
auto it(cache.find(key));
if (it == cache.end())
return -1;
history.splice(history.begin(), history, it->second); // move the target key-value pair to the front of the list
... |
4700e06eb2082906f5de756b438b9053bcd25c1a | a4016e3a099af344cbb07eff1a9268b621305a10 | /kattis/musicalchairs.cpp | 33cbb5413ffcdc56b8d54fc90e9f5e77c885e505 | [
"MIT"
] | permissive | btjanaka/algorithm-problems | 4d92ae091676a90f5a8cb5a0b6b8c65e34946aee | e3df47c18451802b8521ebe61ca71ee348e5ced7 | refs/heads/master | 2021-06-17T22:10:01.324863 | 2021-02-09T11:29:35 | 2021-02-09T11:29:35 | 169,714,578 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 770 | cpp | musicalchairs.cpp | // Author: btjanaka (Bryon Tjanaka)
// Problem: (Kattis) musicalchairs
// Title: Musical Chairs
// Link: https://open.kattis.com/problems/musicalchairs
// Idea: Brute force - n is small enough that we can just remove from the list
// in O(n) time.
// Difficulty: easy
// Tags: math, brute-force
#include <bits/stdc++.h>
... |
b2a8b8fbf52f1b027a4cf4b5d47aabcc3fbe77ce | 32e1b816aff36fc5708ec495221da9e9cf3c9716 | /shuffled_anagram.cpp | 7892b565802e388342d34474c8034a8d370817c0 | [] | no_license | blank-27/C-coding | 2e276ef3872c7f0b6ec01b7baf4b2ad27a0404df | 92e0e506d927ee911be0fa7d7ca5ba76f045ecef | refs/heads/master | 2022-10-31T16:06:02.415295 | 2022-10-26T03:51:05 | 2022-10-26T03:51:05 | 212,297,396 | 0 | 21 | null | 2022-10-26T03:51:06 | 2019-10-02T09:08:27 | C++ | UTF-8 | C++ | false | false | 3,874 | cpp | shuffled_anagram.cpp | #include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/pb_ds/detail/standard_policies.hpp>
#pragma GCC optimize ("O3")
#pragma GCC target ("sse4")
using namespace __gnu_pbds;
using namespace std;
typedef tree<int,null_type,less<int>,rb_tree_tag, tree_order_s... |
e538f233428b7cb3ba3bd8b0d2341bf8715bf8e0 | 16bd3971553a5045c1694417a8b5791034b0d788 | /ConsoleEngine C++ 17092019/File.h | e1babbf73b18e63fcf21e5125fd6e67972373476 | [] | no_license | jonash871j/Sprite-Editor | 2bff2a6a86271d2a6ec49cc46ef1d84d36e4cbf5 | cbb0b33f41188ae94ed013283852e20bce7d8dde | refs/heads/master | 2023-01-02T23:03:10.874410 | 2020-11-02T08:30:04 | 2020-11-02T08:30:04 | 309,305,003 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 303 | h | File.h | #pragma once
#include "EngineCore.h"
#include <fstream>
class File
{
private:
std::string fileName;
std::string formatName;
std::fstream stFile;
public:
File();
void Create(std::string fileName, std::string formatName);
void SaveInt(std::string description, int varInt, int lineNumber);
};
|
c71f5156482f345968be7ef91e4b6b8cb6d890b9 | ba776dea2742b3e54796bd8a202b7c96f15e070a | /include/GPUWrapper.h | fe58d24c6f7903a05d41cbc98428a3710344e52b | [
"MIT"
] | permissive | jteuber/GPUAbstractionLayer | 287f8cb15e850731acf12f8ba6822037043ee43f | 5413768c370298992c7b731c14624352dd200415 | refs/heads/master | 2021-01-10T09:25:51.049575 | 2017-10-04T09:28:10 | 2017-10-04T09:28:10 | 44,117,460 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,376 | h | GPUWrapper.h | #ifndef IGPGPU_H
#define IGPGPU_H
#include "GPUAbstractionLayer_global.h"
#include "Cuda_.h"
#include "OpenCL.h"
#include "DevMem.h"
enum EGPGPUType
{
GPCuda = 0,
GPOpenCL,
GPNone
};
class GAL_EXPORT GPUWrapper
{
public:
static GPUWrapper* getSingletonPtr()
{
if( sm_pInstance == NULL )
Log::getLog("GPUAb... |
7b7a0a541bfe224c449781289e834ec9861676ea | 6a151d774c8230cf2a6a04cd6566c5aa813f9a3a | /Codeforces/Two Rival Students CF 1257A.cpp | 5495b85ecdd318f1359f6d3fc90ee8e109c843f1 | [] | no_license | RakibulRanak/Solved-ACM-problems | fdc5b39bdbe1bcc06f95c2a77478534362dca257 | 7d28d4da7bb01989f741228c4039a96ab307a8a6 | refs/heads/master | 2021-07-01T09:50:02.039776 | 2020-10-11T20:46:28 | 2020-10-11T20:46:28 | 168,976,930 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 411 | cpp | Two Rival Students CF 1257A.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t;
cin >> t;
while(t--)
{
int n,x,a,b;
cin>>n>>x>>a>>b;
if(a>b)
swap(a,b);
int t;
if(x<a)
{
a=a-x;
cout<<b-a<<endl;
}
else
{
x=x-(a-1);
a=1;
int t=n-b;
if(t<=x)... |
b7fec911bffbd2b39391d4ec1c229a68ddfaf672 | 86492a61522453ff076ee07d85baca98ace9e615 | /Uno/RotaryJoystickMame/Rotary_Joystick_To_MAME_4pin.ino | f5b0e750d1677c6cf66b3e016e810c8f006d1eab | [] | no_license | wilson3682/Arduino-2 | 04419fb332d70b901847588bbd65d5d9f6446035 | 88bf6ba76c79c889c0db94668f57532d6d4537dd | refs/heads/master | 2020-04-27T23:15:00.237533 | 2019-03-09T20:18:45 | 2019-03-09T20:18:45 | 174,768,028 | 1 | 0 | null | 2019-03-10T02:15:10 | 2019-03-10T02:15:09 | null | UTF-8 | C++ | false | false | 6,650 | ino | Rotary_Joystick_To_MAME_4pin.ino | // LS-30 Rotary Joystick to MAME Interface
// Reads the 12 rotary switches and detects when the position has changed.
// Generates a momentary output pulse to indicate a clockwise or
// counter-clockwise movement has occurred.
//
// MAME is configured to take CW/CCW inputs to play arcade games that used
// these joysti... |
5b508e29b413bd64e6e1f8527965cf8776280308 | 112e119bc9baf584550045b249b283b02901e0b1 | /U/Plugins/Client/TableModule/Source/TableModule/Public/SkillTable.h | 84bc05eca0e5c0dea8d5efad596e62abc2ea25c8 | [] | no_license | Iliketoshootunity/UE4 | 17a42513004606d1338cb902c881eee3a43ddad1 | dee869b5594002d621ca86131c961db4a2e0d084 | refs/heads/master | 2020-12-13T15:24:17.615337 | 2020-01-17T09:50:07 | 2020-01-17T09:50:07 | 234,457,306 | 1 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 847 | h | SkillTable.h | #pragma once
#pragma once
#pragma once
// Fill out your copyright notice in the Description page of Project Settings.
#include "CoreMinimal.h"
#include "BaseTable.h"
/************************************************************************
* Desc : Skill±í
* Author : XiaoHailin
* Time : [14/10/2019 xhl]
**********... |
f8db26cb6e19878b88321c6924d38f600b48ed61 | f1716d5fc26f85c78b8a4f2ceb37df19cf3b37b6 | /sooi/syntatic/SyntaticAnalysis.cpp | 4cd2a6bb6de44f95618be224304dc2ad24c926af | [] | no_license | igorldep/Programming-Languages-Class | 609a592e1d26f34666bc38356bdeb5efaaf9ee86 | e82629ad5f0b150a37d759e4b9ac25b161e5bd3d | refs/heads/master | 2021-09-14T07:21:36.752453 | 2018-05-09T15:41:21 | 2018-05-09T15:41:21 | 126,070,700 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,420 | cpp | SyntaticAnalysis.cpp | #include <iostream>
#include <cstdlib>
#include "SyntaticAnalysis.h"
#include "../interpreter/command/AssignCommand.h"
#include "../interpreter/command/Command.h"
#include "../interpreter/command/CommandsBlock.h"
#include "../interpreter/command/IfCommand.h"
#include "../interpreter/command/WhileCommand.h"
#i... |
339914aea49ae64fba88741a97fb747a3aa245e3 | f5c0a0b286e54b9d8a0628594a7e999a8145e367 | /offlinePrograms/IsDivisibleBy11.cpp | cf9606dd5aee4ddc2ebb19de98ff200877cab63d | [] | no_license | makaravind/extra_problems | 159efc12b65d97fc384c477ff3b1e7a51a4cb2cc | 11dda531c615ee425430549410c70df09d6c0fda | refs/heads/master | 2021-01-21T13:44:06.133927 | 2016-06-01T19:01:08 | 2016-06-01T19:01:08 | 47,326,520 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 842 | cpp | IsDivisibleBy11.cpp | /*Given a unsigned number as a string input(it can be of length, max 10000 chars) write a function to
find whether the number is divisible by 11 or not*/
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
int IsDivisible_11(char*);
int Validate(char*);
void main(){
char number[50];
gets_s(number);
if (Validate... |
830d792defc0c924c65c92cec84e2c24164ca3b7 | f8431af3b73fb9b016577fa8b39ef00518e05cfa | /Learnding/CoolQuestion/CF_1243B 0-1 MST(贪心+BFS)/main.cpp | 204b021913f1d7a8420a93c2b0e85169923ea994 | [] | no_license | HZH7318/ACM | 5b71ab16ee69b38d424ba150fd3b7b52d85a215b | 6f903b8f935ade6b6e434490ee138eba3d44b59a | refs/heads/main | 2023-06-25T13:26:41.801548 | 2021-07-29T08:11:38 | 2021-07-29T08:11:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,417 | cpp | main.cpp | /**********************************************
贪心+bfs
有一个完全图,有m条边的权值为1,其余边的权值为0,求MST
思路:瞎搞,设两个点集合S, T, S代表已经选中在最小生成树
中的点,T代表未在最小生成树中的点,初始所有点在T中。
随机选一个在T中的点,结果加1,然后将其放入队列,从队列中
取出点u,遍历u的所有边,如果终点在T中,则不处理,如果终点
不在T中,则将其放入队列(代表连接边权为0的边),继续运行直至
队列为空。
这种思路实质上就是求输入的图的补图,然后对于求其补图有多少个
连通块。
题目链接:https://codeforces.com/... |
760ce9bf2ce1710cf3900568e9baa2c33f3c4395 | 954d216e92924a84fbd64452680bc58517ae53e8 | /source/math/nckStatistics.h | 9af26a673d39229be30bb2e8017c2feaf3dcb4e7 | [
"MIT"
] | permissive | nczeroshift/nctoolkit | e18948691844a8657f8937d2d490eba1b522d548 | c9f0be533843d52036ec45200512ac54c1faeb11 | refs/heads/master | 2021-01-17T07:25:02.626447 | 2020-06-10T14:07:03 | 2020-06-10T14:07:03 | 47,587,062 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 643 | h | nckStatistics.h |
/**
* NCtoolKit © 2007-2017 Luís F.Loureiro, under zlib software license.
* https://github.com/nczeroshift/nctoolkit
*/
#ifndef _NCK_STATISTICS_
#define _NCK_STATISTICS_
#include "nckMathConfig.h"
#include <vector>
_MATH_BEGIN
class Statistics{
public:
Statistics(int capacity);
~Statistics();
void Add(doubl... |
2d6b5771c563c9a55ea3da07f06c8a897ae161de | 55a0a9c86b4af4fdda1ec481434252e1f6eed63f | /5days/assignment/main.cpp | d0085933dc5e5398203ec644eff700bbbca15b4e | [] | no_license | krud0726/C_PLUS_PLUS | 6ec2df3d1427a129ba5af5a81330fba29e157ef6 | 966e36e86bb798a97466eb5e363edc81ad06d283 | refs/heads/main | 2023-06-19T07:29:44.923166 | 2021-07-19T14:53:21 | 2021-07-19T14:53:21 | 381,121,757 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,290 | cpp | main.cpp | #include "school.h"
#include <algorithm>
#include <map>
using namespace std;
enum Command { ADD, DELETE, PRINT, FIND, MODIFY, QUIT, INVALID };
pair<string, Student> make_student(){
cout << "Enter id, name, gpa: ";
string id;
string studentName;
double gpa;
cin >> id >> studentName >> gpa;
Stud... |
51590269e35f0377f9f42de488ff2c8beb33d519 | fa35c5b787c1a35b0735dcf03a3e6e38f3f54a6d | /Bronze/Simulation/stuck_in_a_rut.cpp | 4b1c379bdaaa58ccdd4b6e2aaa72c90fda9bf814 | [] | no_license | rbruno95/usaco-guide | fc69d2b17f05609e97be7130f1f41abe144c7ec7 | bfbf38476f237a190b1d11684f16c42357911919 | refs/heads/master | 2023-06-21T00:07:13.107873 | 2021-07-19T01:18:46 | 2021-07-19T01:18:46 | 383,178,780 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 957 | cpp | stuck_in_a_rut.cpp | #include <bits/stdc++.h>
#define endl '\n'
using namespace std;
const int oo = 1e9;
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
int n;
cin >> n;
vector<char> D(n);
vector<int> x(n), y(n);
for(int i=0;i<n;i++) cin >> D[i] >> x[i] >> y[i];
vector<int> times;
for(int i=0;i<n;i++)... |
a5b43da90c2b519fbe14989a65a8945cc0117a03 | 4b3f0d900c3b1a5acd3aba338a409fff7025895e | /projects/Vk_12/src/timer.cpp | 1b797aa0c5f3b55f246455346a249c582dead4b3 | [
"MIT"
] | permissive | AnselmoGPP/Vulkan_samples | 40a87cb3babdfea9dc1c6087c4a8d8bbf296964b | 9aaefcff024962b41539be70a9179e78856ff6a7 | refs/heads/master | 2023-08-29T20:11:15.007802 | 2021-11-10T02:46:11 | 2021-11-10T02:46:11 | 354,443,483 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,385 | cpp | timer.cpp |
#include "timer.hpp"
#include <iostream>
#include <thread>
#include <chrono>
#include <cmath>
TimerSet::TimerSet(int maximumFPS)
: currentTime(std::chrono::system_clock::duration::zero()), maxFPS(maximumFPS)
{
startTimer();
time = 0;
deltaTime = 0;
FPS = 0;
frameCounter = 0... |
c5f279cb4451fdf5d2515050a83987bd05892e91 | 693ef6e7fb51dcffbede887a56884f653d9022bd | /OJ/POJ/POJ_3666.cpp | 9f99e717d842a8f5c244e55413e4ebe9f0d10538 | [] | no_license | kumasento/VELVET-PROGRAMMING | e56a2950445cedfbe25cf06c19a0ea1d2924424d | 14620f7a738b085606d6bd9262f1e4a933ddaeaa | refs/heads/master | 2020-12-31T06:32:10.537694 | 2015-10-27T14:33:12 | 2015-10-27T14:33:12 | 26,422,804 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,779 | cpp | POJ_3666.cpp | #include <iostream>
#include <cstring>
#include <cstdlib>
#include <cstdio>
#include <stack>
#define N 2005
using namespace std;
struct node{
int k, d;
node *l, *r;
};
node *head[N];
int l[N], r[N];
int a[N];
void Left_tree_Merge(node *t1, node *t2){
node *t=t1->r; t1->r=t2;
if(t==NULL) return ;
node *w=t1;
w... |
edd92dd9b212b6a4173dd7c45f9d68554faa307e | d13f18e9deadd124e677f967879af3a2f642bdd8 | /lars_loadbalance_agent/src/agent_udp_server.cpp | 50d1284a0fc3a1d6552f760809dc13eaf2328679 | [] | no_license | zhaoyaogit/Lars-1 | 1545562ecac373518fbd9569b0163c93e0db13c6 | 95a58242832ae67e7fe64fbc7a8bef2da6b4ae21 | refs/heads/main | 2023-05-04T12:14:47.283082 | 2021-05-27T07:35:06 | 2021-05-27T07:35:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,840 | cpp | agent_udp_server.cpp | #include "main_server.h"
void report_cb(const char *data, uint32_t len, int msgid, net_connection *conn, void *user_data)
{
lars::ReportRequest req;
req.ParseFromArray(data, len);
route_lb *route_lb_p = (route_lb*)user_data;
route_lb_p->report_host(req);
}
void get_host_cb(const char *data, uint32_t ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.