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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
819d9acf3713eb67fe12a22deab73a08126bdefa | 65ece8de4e4f0b440454c316e6e4fc8702221894 | /chapter2/ex2.5.2.cpp | 2454709fcd50b773c57a1063ec0180b3ca4b44bd | [] | no_license | bobchin/self-study-cpp | da765839cb0b2a5cbd1f03c68988b7e6bacb88ef | fd244d915ebe29eca66aeabff3c0e751553e4157 | refs/heads/master | 2021-01-15T08:32:10.456531 | 2016-10-11T05:03:52 | 2016-10-11T05:03:52 | 68,779,098 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 915 | cpp | ex2.5.2.cpp | #include <iostream>
using namespace std;
// 共用体のサンプル
// d と c が同じものを指している
// 値の設定は d(double) を使用し、
// ビット参照するときは c(char配列) を使用している
union bits
{
bits(double n);
void show_bits();
double d;
unsigned char c[sizeof(double)];
};
bits::bits(double b)
{
d = b;
}
void bits::show_bits()
{
int i, j;
... |
e9106fec9fc07c2e944a3c86cd52af905b7360da | 70e6d082005b9e00cdca5c0f95d363c11e8ff39a | /introduction-into-cpp--stolyarov/3_1-extern-c.cpp | 5b5b9d1324c6dddd83ac3178b2084147eda562cb | [] | no_license | maxja/cpp-classes | 40ea8906a2e54c0db716b1b024490973487acdf3 | 75a8f6bbef4c90800948c1d56e1cd2aaaf3c7578 | refs/heads/main | 2023-02-02T13:45:53.605516 | 2020-12-22T20:13:46 | 2020-12-22T20:13:46 | 319,045,032 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 165 | cpp | 3_1-extern-c.cpp | #ifndef FOO_H_SENTRY
#define FOO_H_SENTRY
#ifdef __cplusplus
extern "C" {
#endif
#include "foo.h";
double foo(double a, int b);
#ifdef __cplusplus
}
#endif
#endif |
dd2087b63b4c2c8e41c9f29c3cda31fccb918212 | 99a25308270b4177a20743f6db5fcc677ed6cd75 | /src/Omega_h_kokkos.hpp | f7c4a390bd73a21e6c507f727e8c92244df1e378 | [
"BSD-2-Clause",
"BSD-2-Clause-Views"
] | permissive | Aeroglyphic/omega_h | a43625ca03f955b1fea0b11f8c0a00bdfa1a2c65 | 5c2ba4347598265c2e7bc60e6242b7e9c9368d98 | refs/heads/master | 2020-03-28T16:37:40.191326 | 2018-09-13T18:54:33 | 2018-09-13T18:54:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 905 | hpp | Omega_h_kokkos.hpp | #ifndef OMEGA_H_KOKKOS_HPP
#define OMEGA_H_KOKKOS_HPP
#include <Omega_h_config.h>
#include <Omega_h_macros.h>
#include <Omega_h_defines.hpp>
OMEGA_H_SYSTEM_HEADER
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#if (__GNUC__ >= 7)
#pragma GCC diagnostic ignored "-Wint-... |
a24c5d01186797c26e7c6060285fb741ff608120 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5686275109552128_0/C++/whoami/B.cpp | 233ec55e7a22e0702a6632f9bf49c191d95c3446 | [] | 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 | 740 | cpp | B.cpp | #include <stdio.h>
int n,pancake[1001],remain[1001];
bool check(int time){
for(int sp=0; sp<time; sp++){
int eat_time = time-sp, cnt=0;
for(int i=0;i<n;i++){
cnt += (pancake[i]+eat_time-1)/eat_time-1;
}
if(cnt<=sp)
return true;
}
return false;
}
int main(){
freopen("input.txt","r",stdin)... |
333960a89471597cb2a5283acdfc8af847d27f8f | f127bdc25a4672793e4aedea61470b3dbfe065cb | /Learn/src/MainDeferred.h | db59bf4e7c0cfadd934f2ce410de1869b096a563 | [] | no_license | hefanzhou/LearnOpenGL | b9741659eb3c6459ee0d8ec2736ceae0272785af | 3dc423676af1c638a2688fb1ce9a7ed177cefaf1 | refs/heads/master | 2022-11-13T21:07:11.566526 | 2020-06-21T08:04:44 | 2020-06-21T08:04:44 | 269,851,963 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 52 | h | MainDeferred.h | #pragma once
namespace MainDeferred
{
int main();
} |
273a6b76fe556b63941b29799c136d1cb8b89f03 | 0e693b0f2ef8eb7fa7fdc33aa225a8849a80ad14 | /src/dsmanage/MainWindow.cc | 7be67773c2ad16b2bf0637e768548369d2ba8058 | [] | no_license | ncareol/zebra | b40bed1845bc5741cabf50cad7244d61156895e3 | 1f9f2e7cf99db82cab840536245e90a9ac95bdff | refs/heads/master | 2022-05-07T02:36:45.619871 | 2022-03-24T21:35:56 | 2022-03-24T21:35:56 | 124,604,310 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,878 | cc | MainWindow.cc | //
// The main program window.
//
/* Copyright (C) 1987,88,89,90,91,92 by UCAR
* University Corporation for Atmospheric Research
* All rights reserved
*
* No part of this work covered by the copyrights herein may be reproduced
* or used in any form or by any means -- graphic, electronic, or mechanical,
* inc... |
1f6f7f2bf3210e7d46df8072f726ef717f062ffd | 0f2635f18d7b47323332ab733f34c9308888e851 | /BZOJ/[PA2014]Bohater.cpp | 2910451a67ff1c593373ab572136a28b89f9a2cc | [] | no_license | stevebraveman/Code | 2e48b3638272126653c5a2baabac3438db781157 | 4205dd6c4c2f87a8d8554a21efac39616672004e | refs/heads/master | 2020-06-30T21:55:41.313296 | 2019-11-13T22:57:51 | 2019-11-13T22:57:51 | 178,631,305 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 633 | cpp | [PA2014]Bohater.cpp | #include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
#define MAXN 100010
struct Monster {
int d, a, id;
}m[MAXN];
bool cmp(Monster a, Monster b) {
return a.a > b.a || (a.a == b.a && b.d < a.d);
}
int n, z, cnt, ss[MAXN];
int main() {
scanf("%d%d", &n, &z);
for (int i = 1; i <= n; i++) {
s... |
03cb1db5de7fa2fbb88da7d97e4b6cad386a4610 | e0a0d45181c1d0b0f0aa3d4dd977fc7bec4d21bb | /numerics/line_search.cc | 18c76e210ab562845cc4d4e2b29159968be1711c | [
"MIT"
] | permissive | jpanikulam/experiments | 71004ff701f4552c932eb6958a0bcd3de76ee383 | be36319a89f8baee54d7fa7618b885edb7025478 | refs/heads/master | 2021-01-12T01:35:15.817397 | 2020-01-24T00:59:12 | 2020-01-24T00:59:17 | 78,386,199 | 1 | 1 | MIT | 2018-12-29T00:54:28 | 2017-01-09T02:24:16 | C++ | UTF-8 | C++ | false | false | 1,002 | cc | line_search.cc | #include "numerics/line_search.hh"
namespace numerics {
LinesearchResult line_search(const OptimizationState& current_state,
const Eigen::VectorXd& direction,
const OptimizationProblem& problem) {
Eigen::VectorXd best_x = current_state.x;
double best_cost_... |
c7309b7a39e96f2deebc2402eb38830278860d1c | 13a40fd9b30a3c21d5c9faba051a4b28a43a89e8 | /helloLawrence.ino | 3fa7f7c4f7c7fc6cd6a498ed2f6c876b189bdfef | [] | no_license | markgrebe/haskino-examples | 700c68542be3792a5659241758e27241efe82824 | 64e6d6f81274de63c992528f981413892e6faca7 | refs/heads/master | 2021-01-20T06:36:05.451267 | 2017-08-27T16:09:52 | 2017-08-27T16:09:52 | 101,509,885 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 11,026 | ino | helloLawrence.ino | #include "HaskinoRuntime.h"
void haskinoMain();
#define HASKINOMAIN_STACK_SIZE 200
byte haskinoMainTcb[sizeof(TCB) + HASKINOMAIN_STACK_SIZE];
void setup()
{
haskinoMemInit();
createTask(255, haskinoMainTcb, HASKINOMAIN_STACK_SIZE, haskinoMain);
scheduleTask(255, 0);
startScheduler();
}
void l... |
e3713ea5acda9a7eb442aa3211cd8a9673ea2d06 | 08ccee0a917cd1eccf7e34ee721ec89cb8983613 | /main_thermometer.cpp | 187ebd14fc38b5049324854586dcf4b147917270 | [] | no_license | Carlo6464/API_Thermometer_Projekt | ad93836ec2663a5f61bd9a5b8b5883d57b6bad5a | 8768ce2d589ac8eec5bee17731fd7116297c8809 | refs/heads/master | 2021-01-19T21:19:49.275537 | 2017-04-18T15:37:39 | 2017-04-18T15:37:39 | 88,640,543 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 443 | cpp | main_thermometer.cpp | //-------------------------------------------------------------------------------------------------
// TU Braunschweig API Programmierprojekt SS 2017
// Gruppenmitglieder: Carl Wagner-Douglas, Sina Gabor, Niklas Günther, Fabian ___, Fatih Mustafa
// Filename: main_thermometer.cpp
// created: 18-04-2017
// last... |
6c1ef5c6548687fca140cf136f1586d25ece45d8 | d874c7ddddeed0854f0795249c2203465f3a9029 | /cc/sort/Joseph.cc | dc076dca809ddc0fb3c8d9a620797f84ce9de9a9 | [] | no_license | colinblack/algorithm | 69c09b8a435c8b0d3f7ebb38a620b2a7964cc52a | c6b8402253c2a529606da4a17ba3fad7aa3b6c9e | refs/heads/master | 2020-07-24T19:42:58.773382 | 2019-09-12T10:48:26 | 2019-09-12T10:48:26 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 598 | cc | Joseph.cc | #define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
int main(void)
{
int people[11] = {0}, num;
int i = 0, num_s = 0;
printf("报数数字 \n");
scanf("%d", &num);
int out = 0; //用于保存剩下的人数;
while (1)
{
if (people[num_s] == 0)
{
if (i == 3)
{
printf("%d \n", num_s);
people[num_s] = ... |
fc748e332a32df44c037e0d85cd918108e125b13 | d3e9d146401afb5cb1f4aa2ae63e66744888dccb | /src/config/include/kalman_param.h | 4d2084be288491e5ccd63c17053afe1083e1f8d5 | [
"MIT"
] | permissive | apennisi/mctracker | 598f3c562b82d307accc7c5cb6b30181dd513a8e | 29a89046f796f84eac922b2dc9cf4cd6c7aebb6b | refs/heads/master | 2020-06-29T01:53:16.648862 | 2020-05-16T09:39:04 | 2020-05-16T09:39:04 | 200,403,012 | 18 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 5,588 | h | kalman_param.h | /*
* Written by Andrea Pennisi
*/
#ifndef _KALMAN_PARAM_H_
#define _KALMAN_PARAM_H_
#include <iostream>
#include <fstream>
#include <algorithm>
#include <boost/algorithm/string.hpp>
namespace mctracker
{
namespace config
{
class KalmanParam
{
public:
/**
... |
4e589488a0a2603448f6d0b5260c0a680931862f | 742352c998e046c8261828fa836966c26d42dda9 | /tools/assembler/assembler.cpp | 38d5484194b4cb5c600d9f87b9713291990d0ee7 | [] | no_license | SimonFang1/Pipeline-RISC-CPU | 9aed048529e2aa87616d6a035e6277e2031688f1 | c97c34c78636a16e5da40122dd0ff4a0813842d8 | refs/heads/master | 2021-01-19T12:14:49.980743 | 2017-05-09T15:27:36 | 2017-05-09T15:27:36 | 88,023,435 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,229 | cpp | assembler.cpp | #include <iostream>
#include <string>
#include <sstream>
using namespace std;
#define INIT_ALL_MEM
#ifdef INIT_ALL_MEM
#define TOTAL_DEPTH 256
#endif
#include "opcode.h"
#define DOLLAR ch
#define COMMA ch
#define R1 r1
#define R2 r2
#define R3 r3
#define VAL2 val2
#define VAL3 val3
#define IMDT immediate
#include "ex... |
4e2411037fd78e0b20a92bca4cf773b513d0bfbc | 4dd5d885768d911484954e084592efe369724637 | /Source/Core/DeviceChild.hpp | 84f284a898a5aca0f21b3b84cdd8a679bc22034e | [
"MIT"
] | permissive | glowing-chemist/Bell | d160f71b905da0629fb67378352ad1a0fd014057 | 610078a36c831f11c923f34f3e72be0009fcf6a6 | refs/heads/master | 2022-01-16T22:59:59.179596 | 2021-12-23T11:28:16 | 2021-12-23T11:28:16 | 160,046,575 | 18 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 373 | hpp | DeviceChild.hpp | #ifndef DEVICECHILD_HPP
#define DEVICECHILD_HPP
#include <memory>
#include <optional>
#include <vector>
class RenderDevice;
class DeviceChild {
public:
DeviceChild(RenderDevice* dev) : mDevice{dev} {}
RenderDevice* getDevice() { return mDevice; }
const RenderDevice* getDevice() const { return mDevice... |
fa1ee6868268f8f555698a79662e7f8fe1d94810 | f230813dc330f60058acdcc44f7ee5bdaf7c9229 | /C++/Dynamic Programmng/Countsubsequences of type a^i b^j c^k .cpp | 05fe138262717731a8ac1903ac0b83f8a0a798d8 | [] | no_license | lakshyabatman/algorithms-stew | 986279a6b38a33818b5da13b643225d55d131d49 | 5073bb8cbf9c90ca0cf438c8fbcc9d2d087d6553 | refs/heads/master | 2022-11-26T21:32:23.376126 | 2020-11-28T17:00:08 | 2020-11-28T17:00:08 | 184,299,032 | 17 | 22 | null | 2022-11-10T06:48:28 | 2019-04-30T16:50:50 | C++ | UTF-8 | C++ | false | false | 521 | cpp | Countsubsequences of type a^i b^j c^k .cpp | /**
*
* https://practice.geeksforgeeks.org/problems/count-subsequences-of-type-ai-bj-ck/0
*
*
* */
#include <iostream>
using namespace std;
int main() {
//code
int test;
cin >> test;
while(test--) {
string s;
cin >> s;
int c =0;
int bc =0;
int a = 0;
for(char ch : s) {
... |
a96794dfced0c938afa1c10bbd1129fcf81d50b6 | caf6a8ac778eeb3183a7a35523044a5905519b76 | /AuthServer/lib/arda2/util/utlPair.h | b85b676aa85fefec1f928f155934187670ff3e5e | [] | no_license | odasm/coh-original-server-vs2010 | ec8ddd227d6d99e08e562b2c0b08df20e06eb02c | 479e4baccd5b2688c216674492c4b87e4562595c | refs/heads/master | 2020-05-16T07:21:09.364167 | 2019-04-22T03:21:57 | 2019-04-22T03:21:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,801 | h | utlPair.h | /*****************************************************************************
created: 2002/04/03
copyright: 2002, NCSoft. All Rights Reserved
author(s): Ryan M. Prescott
purpose:
*****************************************************************************/
#ifndef INCLUDED_utlPair_h
#define INCL... |
43afc317a5699ca0e297a1b94149a3d1c2708437 | 36c31b485a5906ab514c964491b8f001a70a67f5 | /CSES/Problemset/DP/minicoin.cpp | 4e2f9e789e1253c2e5bb1871e0682d2a52b269d1 | [] | no_license | SMiles02/CompetitiveProgramming | 77926918d5512824900384639955b31b0d0a5841 | 035040538c7e2102a88a2e3587e1ca984a2d9568 | refs/heads/master | 2023-08-18T22:14:09.997704 | 2023-08-13T20:30:42 | 2023-08-13T20:30:42 | 277,504,801 | 25 | 5 | null | 2022-11-01T01:34:30 | 2020-07-06T09:54:44 | C++ | UTF-8 | C++ | false | false | 604 | cpp | minicoin.cpp | #include <bits/stdc++.h>
#define ll long long
#define sz(x) (int)(x).size()
using namespace std;
int main()
{
ios_base::sync_with_stdio(0); cin.tie(0);
int n,x;
cin>>n>>x;
int c[n];
for (int i=0;i<n;++i)
{
cin>>c[i];
}
int dp[x+1]={0};
for (int i=1;i<=x;++i)
{
for (int j=0;j<n;++j)
{
if (i-c[j]>0)
... |
924268698d39deb131e33099011d186ebe2c2533 | 6d40480ec818c61ca44a33c5eabdfae7c79d908a | /Arkanoid_v1/Values.h | b5032f5588c58270e2b2ab594a925dbbaee158cf | [] | no_license | Neexol/Arkanoid | 16c2718d5efa3f54ee412aebc2a4e494909d43bf | ad832f3bd27168846519eafb89b90381fa09500d | refs/heads/master | 2020-05-05T00:24:40.497668 | 2019-05-20T14:36:20 | 2019-05-20T14:36:20 | 179,573,781 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 796 | h | Values.h | #pragma once
#include <SFML/Graphics.hpp>
namespace valueNS
{
constexpr int windowWidth = 800;
constexpr int windowHeight = 800;
constexpr int paddleWidth = 100;
constexpr int paddleHeight = 21;
constexpr int paddleRectWidth = 80;
constexpr int paddleBorderRadius = 10;
const sf::Vector2f paddleSpeed { 600, 0 }... |
b067e396f0195259f268fe1234ecc1d995592771 | f23e74b37905ff1ffdf89d93bba7e408ad2632eb | /RegArch17/RegArchLib/cStudentResiduals.h | 503e16bc728703078867f5aa39d22128cd91c5cd | [] | no_license | fellajim/ResidualsStats | 27bb8b10e8c1a09f25ed13b804e002c67c0e9800 | fef9f62d508030e1b2f3b182bcd163a161c4a0cd | refs/heads/master | 2021-01-24T20:40:14.480364 | 2018-03-18T19:52:58 | 2018-03-18T19:52:58 | 123,254,720 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,331 | h | cStudentResiduals.h | #pragma once
#ifndef _CSTUDENTRESIDUALS_H_
#define _CSTUDENTRESIDUALS_H_
#include <gsl/gsl_sf_gamma.h>
#include <gsl/gsl_sf_psi.h>
#include "cAbstResiduals.h"
#include "cRegArchValue.h"
#include "cRegArchGradient.h"
/*!
\file cStudentResiduals.h
\brief Definition of the class for Student conditional distribution.
... |
7f7763511537e7754f2188f5726eba929796c73c | 5d417d772f6fa78d3f8b8aa09d50e480d951bc9b | /Test1/Source/Test1_Class.cpp | 7d446ba326b317fba11673818ef528fe574c4d02 | [] | no_license | bennetyf/CPP_Practice | 22246cbfa400a86d25aa4f4b0ec2c1d9c392f9ea | 05d552dfabbbe79b0beb3f82e2475805387ed115 | refs/heads/master | 2021-01-23T16:52:12.701767 | 2017-06-20T23:47:46 | 2017-06-20T23:47:46 | 93,307,524 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,529 | cpp | Test1_Class.cpp | //
// Created by Travis Bennet on 16/6/17.
//
#include "Test1_Class.h"
#include <iostream>
using std::to_string;
using std::string;
Date::Date(int dd, int mm, int yy)
:cache_valid{false},cache{""}
{
d=dd?dd:default_date.d;
m=mm?mm:default_date.m;
y=yy?yy:default_date.y;
}
Date& Date::addyear(int ... |
a7ef0544f77a74b63da4e912efef73d7443eac81 | 26870790cfcc9b0967a1dd56433f5bd5fabbb05a | /M04/ex01/PowerFist.cpp | 24417d9dc9c465bbbbb2a4856c3e96905f3da91e | [] | no_license | Zera57/CPPModules | e87bd7bcc683f64f3726217c7326fb60186ecd16 | 0c588ddfc2b4193fca8c7c1cb75deb83d8ef8e03 | refs/heads/master | 2023-05-30T10:13:11.074873 | 2021-06-20T17:00:09 | 2021-06-20T17:00:09 | 358,862,884 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 337 | cpp | PowerFist.cpp | #include "PowerFist.hpp"
PowerFist::PowerFist() : AWeapon("Power Fist", 8, 50) {
}
PowerFist::~PowerFist() {
}
PowerFist::PowerFist(const PowerFist& p) : AWeapon(p) {
}
void PowerFist::operator= (const PowerFist& s) {
AWeapon::operator=(s);
}
void PowerFist::attack() const {
std::cout << "* pschhh... SBAM! *"... |
92a9dfe54b28dba9bd2e11afbb4c4f50944c7af0 | 93b73a6500e58314e8a15e80e7490518593057bc | /C/C Programs/cpp/Point.cpp | d999e9c95702936db7e2cbad9fa7caea3a95f736 | [] | no_license | MadhuriTeli/Assignments | 45bc800db5fe6f4c82c05fa4f7307d27286fa7cc | 85cca67dfea60f6b21c6bc4c36d53eef6e934978 | refs/heads/main | 2023-08-18T18:02:36.322485 | 2021-10-04T20:22:31 | 2021-10-04T20:22:31 | 372,739,870 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,036 | cpp | Point.cpp | /*
4. Create a class Point with data members as x,y. Create Default and Parameterized constructors. Write
getters and setters for all the data members. Also ax the display function. Create the object of this
class in main method and invoke all the methods in that class.
*/
#include <iostream>
using namespace std;
class... |
b5a8830feb6536481a32b6b98ca7799ab159d9f3 | 3b23fcd9297a01e8efd6f601cd3a61af79516270 | /source/config.cpp | b082818ae5681286705add6ebcd003cd1945567c | [] | no_license | markadamo/tempest | c1ab6eaeb32fb77b62af49c9c464785534492f0d | 6187dc5d18fefd3b73943753ccd0274487c08ca7 | refs/heads/master | 2021-01-15T15:41:53.798472 | 2016-09-15T15:54:57 | 2016-09-15T15:54:57 | 43,511,733 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,753 | cpp | config.cpp | #include "tempest.hpp"
extern void Tempest::parse_config() {
FILE* fp;
char sLine[STRING_SIZE];
char sParam[STRING_SIZE];
char sTemp[STRING_SIZE];
if((fp = (FILE*) fopen(Tempest::args.sConfig, "r")) == NULL) {
fprintf( stderr, "ERROR\tUnable to open config file %s: %s\n", Tempest::args.sPa... |
f4360af17f5ca7daf5de8d25df04cb1101e80917 | 54a72cffb4bd57c703ad0ccca400dc6edcc095ba | /boost/call_stack/symbol.hpp | 36b9e4ff98ddef2df644ab61317e00b04c3968cf | [
"BSL-1.0"
] | permissive | lainproliant/Boost-Call_stack | 793c929d13853b46ba02c85dff7b4f1e3f6e9e34 | 3fe2ce9601738e9375168b557837bf44ca812508 | refs/heads/master | 2020-06-08T07:27:58.235701 | 2018-10-19T16:47:00 | 2018-10-19T16:47:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,003 | hpp | symbol.hpp | /*
* Copyright 2013 Aurelian Melinte.
*
* Use, modification and distribution are subject to the Boost Software License,
* Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt).
*/
#if !defined(BOOST_CALL_STACK_SYMBOL_HPP)
#define BOOST_CALL_STACK_SYMBOL_HP... |
8a30a6f8378c3d399a8a9f90c8b014a77dd964f4 | 619b10e5767af68e1d7096574a5ee920b22705da | /01.ObjectOrientation/Game.h | d49d3d80771d0544dd049b7eb38028abb96bf037 | [] | no_license | toruSIF378/test | 66e7b4681f435dccec802b0379ff9c2ad7dac708 | 65ea0b9838f8b8594ba0e978eeb8f87f896e5498 | refs/heads/master | 2020-08-29T21:16:11.184239 | 2020-01-22T04:14:24 | 2020-01-22T04:14:24 | 218,176,284 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 371 | h | Game.h | #pragma once
#include"DxLib.h"
class Player;
class EnemyManager;
class Shot;
class Game
{
public:
int Initialize();//初期化
void Finalize(); //終了処理
void Update();//更新
void Draw();//描画
// プレイヤーを生成.
Player* player;
//// 障害物を生成.
EnemyManager* enemyManager;
//*弾を生成
Shot* shot;
};
|
796a0f84a0d2c297dea95f0d228ac1e59d64fe02 | 2f3e514598851d6747ea31bdbca308983a8c86f1 | /app/src/include/sma/ccn/blockref.hpp | b466c20b8ba51d3ec81a99399a6bdbd68c3331a5 | [] | no_license | culiu/sma | f2110a4b2649085528f852c1a590adf24f9f4eab | fc6f12fbd70bbe9194db0c2212acb74c4d87b1ac | refs/heads/master | 2020-12-31T06:09:18.285213 | 2015-11-19T12:33:28 | 2015-11-19T12:33:28 | 45,673,430 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,125 | hpp | blockref.hpp | #pragma once
#include <sma/util/hash.hpp>
#include <sma/util/serial.hpp>
#include <cstdint>
#include <cstdlib>
#include <ostream>
#include <functional>
namespace sma
{
using BlockIndex = std::uint16_t;
struct BlockRef {
TRIVIALLY_SERIALIZABLE(BlockRef, hash, index);
BlockRef(Hash hash, BlockIndex index)
:... |
6855f7f7f277ce3d5722ae36e241708d37ed253e | 2ea984ee5114382724502f2667b236f2e1136560 | /制作ゲーム/FMSTG01/project/src/SceneManager/Scene/GameMain/cGameMain.cpp | 4fcc752f7c15bcbe7d5daa538e63bade69d5a00c | [] | no_license | s-kosugi/FMGameBase | 06cce9670025769e0a41b45cfc295372d72817e5 | 595a845135b1b5691bd22274fa0496fb97df76bf | refs/heads/master | 2022-12-30T07:10:42.897526 | 2020-10-05T23:40:01 | 2020-10-05T23:40:01 | 292,718,517 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 6,940 | cpp | cGameMain.cpp | /*==============================================================================*/
/* */
/* @file title : cGameMain.cpp */
/* @brief : ゲームメインシーン */
/* @written : s.kosugi */
/* @create : 2018/12/02 */
/* */
/*================... |
d022dda98efcbdf8b4173d9fb5568f64cf4cf3d3 | 0f2b08b31fab269c77d4b14240b8746a3ba17d5e | /onnxruntime/core/providers/cuda/nn/shrink.h | 088fb74a99054532653e17ac414a4fbdf53f147f | [
"MIT"
] | permissive | microsoft/onnxruntime | f75aa499496f4d0a07ab68ffa589d06f83b7db1d | 5e747071be882efd6b54d7a7421042e68dcd6aff | refs/heads/main | 2023-09-04T03:14:50.888927 | 2023-09-02T07:16:28 | 2023-09-02T07:16:28 | 156,939,672 | 9,912 | 2,451 | MIT | 2023-09-14T21:22:46 | 2018-11-10T02:22:53 | C++ | UTF-8 | C++ | false | false | 862 | h | shrink.h | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include "core/providers/cuda/cuda_kernel.h"
namespace onnxruntime {
namespace cuda {
template <typename T>
class Shrink final : public CudaKernel {
public:
Shrink(const OpKernelInfo& info) : CudaKernel(i... |
28d857d1dd7ad07fcd6cdf0e2628b3772b88da6c | 6788029cea91510eef3ad0df197c7a0ebd7ba8c1 | /Common/Utils/src/Threading/Executor.cpp | b9c2aa5fd11bf42d8e9d56293d12c8d7dc8a4f01 | [] | no_license | hiepnguyen57/smart_speaker_sdk | 7d60f370cf06e020cc72efddd9a067c80dc3ca21 | 6048a12db00014fe15db8cacbad85d1ebe2a07a8 | refs/heads/master | 2020-05-06T12:13:29.482107 | 2019-09-07T08:54:31 | 2019-09-07T08:54:31 | 180,109,853 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,783 | cpp | Executor.cpp | #include "Common/Utils/Memory/Memory.h"
#include "Common/Utils/Threading/Executor.h"
namespace deviceClientSDK {
namespace common {
namespace utils {
namespace threading {
Executor::~Executor() {
shutdown();
}
Executor::Executor(const std::chrono::milliseconds& delayExit) :
m_threadRunning{false},
... |
29ecb24cbf502fed9bf20c2fb621998003203096 | cdf92aa3a8a49dc044306c125356cca26910dbda | /incoming/BitBucket-INDI1/trunk186/INDI2/EIRlibs/eirType/VariantDom.cpp | 80f92d8f3487b37d647a2a3dc79b38a391b0f651 | [
"MIT"
] | permissive | eirTony/INDI1 | b7c5d2ba0922a509b32d9d411938ecdc0f725109 | 07fe9eff4fb88c6c2d636c94267ea8734d295223 | refs/heads/master | 2020-01-23T21:22:49.833055 | 2016-11-26T07:43:06 | 2016-11-26T07:43:06 | 74,568,244 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 488 | cpp | VariantDom.cpp | #include "VariantDom.h"
#include <QDomElement>
#include "DataType.h"
VariantDom::VariantDom(const QDomElement & de)
{
QString elementTag = de.tagName();
if (DataType::elementTag_s == elementTag)
{
QString dataType = de.attribute(DataType::attribute_s);
DataType dt(dataType);
... |
5f24027eebaa09f520a7cbc9be43a796b0ecbb9b | cf9b32b532ac0db1193dfe93b7e734f1e91f6d44 | /sp2/labyGame.cpp | f278a06f0bfaf800806efbcc815ca7160b2483ad | [] | no_license | AnicetNgrt/C-labyrinthe-moebius | 20959ef73b7e98e6416c2d3c8e6856eb90dcf7bb | 068f71a34f15626d764f64c63d77bd5607d3e798 | refs/heads/master | 2022-12-13T19:35:18.994034 | 2020-09-01T08:45:49 | 2020-09-01T08:45:49 | 229,442,937 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 1,253 | cpp | labyGame.cpp | #include "labyGame.h"
#define PILE_CAP 10
#define PILE_PAS 1
/**
* @brief Parcours du labyrinthe par le dragon
*/
void MissionDragon() {
Laby laby;
Pile pile;
char path[] = "inSmall.txt";
bool plan_found = false;
Vec3 courant = tuple(0, 0, 0);
initialiser(path, laby);
initialiser(PILE_CAP, PILE_PAS, pile);
... |
3cd4969bdb827eb2c19ce4a658c3598327ee1cbd | 27e917a5e9aba4f638127b78cc70bdd0d496df68 | /1)28.11.2018/exemplu if.cpp | 4dc82adbefbff7dc4bd34cbaaef57b0434c84f35 | [] | no_license | MihaiAnghelin/StepIT-C | e90797bafd7600b65b9a615892867f655e8ddb41 | d2d55d4d58f6620d1e33590b83122e8d7776ba8c | refs/heads/master | 2020-06-07T03:23:48.134478 | 2019-06-20T12:08:29 | 2019-06-20T12:08:29 | 192,909,901 | 0 | 0 | null | 2020-05-13T17:05:41 | 2019-06-20T11:44:52 | C++ | UTF-8 | C++ | false | false | 767 | cpp | exemplu if.cpp | //Program teste instructiunea if
#include<cstdio>
#include<cstdlib>
int main()
{
int n = 1;
int a = 26, b = 2;
float div;
while (n != 0)
{
printf("Introduceti numarul de la tastatura:\n");
scanf_s("%d", &n);
if (0 == n)
break;
if (n % 2 == 0)
... |
224446da27b0cabe96eb84aa8db5682b2a42a51b | 36f008546cf833df7230c1c23f3d81dd8651d601 | /zad4/generator.hxx | f5a5647e64602ce67fa5d78b0fe4db7c3c766873 | [] | no_license | j000/MonteCarlo | e898a29c2fbad54d388f1ae9a9d63ded1641acea | c17ca2e14657489bcc95bbfb05b669fc12d48ef6 | refs/heads/main | 2023-04-06T02:49:27.009510 | 2021-04-12T07:33:00 | 2021-04-12T07:33:00 | 343,377,290 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 350 | hxx | generator.hxx | #ifndef GENERATOR_HXX
#define GENERATOR_HXX
#include <gsl/gsl_randist.h>
class Generator {
public:
Generator(unsigned long seed = 0);
~Generator();
double operator()();
double get_pos();
unsigned long get_int(unsigned long max);
private:
static gsl_rng* m_generator;
#pragma omp threadprivate(m_generator)
}... |
b3a87a2cd2e1e25c86ac618a20e6510662ccd22a | 30681dae0ff67c25216c688c1117f77895da8080 | /Ch07/ex0753.cpp | 8912613f084ca1cae498e761b43b008f8b087476 | [] | no_license | deng25/Cpp-Primer-5th | 17b3747214cf2a66dbec6662ee3e56e27141bc85 | 8a6d63eda154eb34eed740fc76980b883173519b | refs/heads/master | 2020-12-24T12:40:29.920775 | 2017-01-07T12:11:01 | 2017-01-07T12:11:01 | 72,964,690 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 517 | cpp | ex0753.cpp | class Debug {
public:
constexpr Debug(bool b = true) : _hw(b), _io(b), _other(b) { }
constexpr Debug(bool hw, bool io, bool other) : _hw(hw), _io(io), _other(other) { }
public:
constexpr bool Any() { return _hw || _io || _other; } // 只要出现任何一种错误
void set_hw(bool b) { _hw = b; }
void set_io(b... |
d85244c630b7f4cf409e6a3dfaee1c91c56beafb | bd03d2c5712fe5005640569b2221ef12bad9477e | /Example/src/BoundingBox.h | b89430734f7c646d90409d7e61cd6e722efe5f63 | [
"MIT"
] | permissive | 13269252368/Brep | ea68450fea3f33fe1f5186f01095fde07c3a29bf | 3a5b87dd1ca5bc5ab6d376feae1812547e6b0d11 | refs/heads/master | 2022-03-18T21:12:37.589228 | 2017-11-25T08:51:07 | 2017-11-25T08:51:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 272 | h | BoundingBox.h | #ifndef _BOUNDINGBOX_H_
#define _BOUNDINGBOX_H_
#include "math/Vec3.h"
class BoundingBox {
public:
BoundingBox() { };
BoundingBox(const Vec3& pMin, const Vec3& pMax) {
this->pMin = pMin;
this->pMax = pMax;
}
Vec3 pMin, pMax;
};
#endif
|
f55ad8163fcafcad3cfdb224fd3c34137b9f9a49 | cfb08ea75d4f4a51c7a6a0bb6098e2e8c7ee28ff | /Generators/ClockGenerator.cc | 84d4330a38eaa04314cffb9fd045898465f8d84f | [] | no_license | ganlubbq/C- | 9f557faa9d2e29762148d5277c50b636fdc96f59 | 86ef8abd142775a237f90ec13b38854b6a2c3a3a | refs/heads/master | 2021-05-31T21:13:46.029059 | 2016-07-26T05:36:31 | 2016-07-26T05:36:31 | 108,728,692 | 1 | 0 | null | 2017-10-29T11:34:42 | 2017-10-29T11:34:42 | null | UTF-8 | C++ | false | false | 9,522 | cc | ClockGenerator.cc | /********************************************************************************
* *
* This class generates clock data. The default behavior is that after reset *
* the clock puts out a high (1), and then a 0 after the high period (depe... |
26e54fbf73ee12fead6fc52dd8008ee9540bfaa0 | c13e0c4d183eaa3910dee9b8f2312fe290de61c5 | /170911162/dslab56/PrefixEval.cpp | 945ceeffbf9bd798656f1cab89d7f3eafb9f60a2 | [] | no_license | JyotinderSingh/DS-Lab-Sem-III | 82584d008286e349c7d581ede7ec9652dc2c27f6 | 5b00589e42b8d4e320c81a4bf90df74c0e668d5d | refs/heads/master | 2020-04-01T02:18:25.800646 | 2018-11-23T21:07:56 | 2018-11-23T21:07:56 | 152,773,641 | 5 | 2 | null | 2018-10-23T14:07:16 | 2018-10-12T15:44:59 | C++ | UTF-8 | C++ | false | false | 1,883 | cpp | PrefixEval.cpp | //PREFIX EVAL
#include<iostream>
#include<math.h>
#include<string.h>
#include<stdio.h>
#include<conio.h>
#define SIZE 20
using namespace std;
class eval{
private:
int top;
int a[20];
public:
char pfix[20] , pf[20];
eval()
{
top=-1;
}
void push(int ele)
{
if(top... |
5fe34fab700f3d420fae04e53e5a9055f310238b | 48ae7ba3a8de20542cebeeb7d6eb804c40e72713 | /token/include/user.h | a36c5e0e59eff7fac02880eb78a5d4a487f71368 | [] | no_license | rupesh-papneja/am | bdeae83fa90f05a24b6e0f4c6bc7b7ca39aa3d91 | cd3774d884204fc450291e2c9f6371b9dbcc78dd | refs/heads/master | 2021-08-27T20:56:02.696077 | 2020-02-11T13:32:22 | 2020-02-11T13:32:22 | 171,128,160 | 0 | 0 | null | 2021-08-13T15:32:07 | 2019-02-17T13:55:41 | JavaScript | UTF-8 | C++ | false | false | 384 | h | user.h | #ifndef USER_H
#define USER_H
#ifdef _MSC_VER
#pragma once
#endif // _MSC_VER
#include <string>
namespace Service
{
class User
{
private:
std::string user;
std::string password;
public:
User();
~User();
std::string _user();
User* _setUser(std::string);
std::string _password();
User* _setPassword(st... |
99a3299cfdfe3328dc3bc08291a3182ea5b43562 | 3f7028cc89a79582266a19acbde0d6b066a568de | /source/extensions/transport_sockets/tls/context_impl.h | 8654d44e706e6e6b283d01694b1ea31254f95044 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | envoyproxy/envoy | 882d3c7f316bf755889fb628bee514bb2f6f66f0 | 72f129d273fa32f49581db3abbaf4b62e3e3703c | refs/heads/main | 2023-08-31T09:20:01.278000 | 2023-08-31T08:58:36 | 2023-08-31T08:58:36 | 65,214,191 | 21,404 | 4,756 | Apache-2.0 | 2023-09-14T21:56:37 | 2016-08-08T15:07:24 | C++ | UTF-8 | C++ | false | false | 9,242 | h | context_impl.h | #pragma once
#include <openssl/safestack.h>
#include <array>
#include <deque>
#include <functional>
#include <memory>
#include <string>
#include <vector>
#include "envoy/network/transport_socket.h"
#include "envoy/ssl/context.h"
#include "envoy/ssl/context_config.h"
#include "envoy/ssl/private_key/private_key.h"
#in... |
3b237cd5dff220393e53991249f48112a11125ed | 560b4adabd602cc8177dce8db16d6cf27c6b9798 | /Samples/Server/NativeServer.Tests/PeerConductorTests.cpp | afd50b88b3437d6dae15a1619b91b5489e12f4e5 | [
"MIT"
] | permissive | NateQI/3DStreamingToolkit | 39969b83de91ab238a692fdd5cfecae9192f1d80 | f1d205bb4c036e4fbf3c49e3373eced6d514953c | refs/heads/master | 2021-03-08T06:30:12.548708 | 2020-02-22T06:07:16 | 2020-02-22T06:07:16 | 246,326,461 | 1 | 0 | MIT | 2020-03-10T14:41:58 | 2020-03-10T14:41:57 | null | UTF-8 | C++ | false | false | 15,615 | cpp | PeerConductorTests.cpp | #include <gtest\gtest.h>
#include <gmock\gmock.h>
#include "peer_conductor.h"
#include "multi_peer_conductor.h"
using namespace ::testing;
class PeerConductorFixture : public PeerConductor
{
public:
PeerConductorFixture(scoped_refptr<PeerConnectionFactoryInterface> peer_factory) :
PeerConductorFixture(-1, "", mak... |
5ddb4280de046437675b6ed75b26cb06ff39c083 | 46180125263f4f935a8fcf68084036d5aaa219e1 | /~QuadSerial.h | 83ba58e5dc2552d4102c7fbbac5f67c16a97a08d | [] | no_license | RBDLAB/Drones-Mission-Control | 666dd420c2ae46abfd4268c0108915c01b90f8d3 | f68714915b0dd0f2eabcbbaccfcde715e3e57833 | refs/heads/master | 2021-01-19T15:21:30.214140 | 2017-08-20T21:57:20 | 2017-08-20T21:57:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,038 | h | ~QuadSerial.h | #pragma once
#include <string>
#include <stdio.h> // Standard input/output definitions
#include <stdlib.h>
#include <string.h> // String function definitions
//#include <unistd.h> // for usleep()
//#include <getopt.h>
#include <fcntl.h> // File control definitions
#include <errno.h> // Error number de... |
6d6ebb1f7d1913b407794f45b9c0829b4fca1ff5 | 614271c1d726a4f51bf47b8d163e84a19c52acd0 | /driver/driver.cpp | 6f2e714fc5cb8fafefc2f6e9b5eebcd5495a74cd | [] | no_license | VadimSokolov/polaris_io | 8edfa901b6e30072ab0ec4439eb3e6ab3f357ab1 | a67e2fe4f59166033937afa0cc9f572d4adf150a | refs/heads/master | 2020-04-15T04:14:42.407555 | 2013-02-27T00:32:04 | 2013-02-27T00:32:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,960 | cpp | driver.cpp | #include <memory> // std::auto_ptr
#include <odb/database.hxx>
#include <odb/transaction.hxx>
#include "database.h" // create_database
#include "InputContext.h"
#include "InputContext-odb.hxx"
#include <time.h>
#include <iostream>
#include <fstream>
using namespace std;
using namespace odb::core;
using namespace pio;... |
4e96f603d620a703a673861585982eb327c9c31f | 3f4fda02e838f6f1f412625e849950ec372f251c | /src/uml/src_gen/uml/impl/CallEventImpl.cpp | 8cdb06d9d2559089ee96560e6540e1d20be1cbfb | [
"MIT",
"EPL-1.0"
] | permissive | MichaelBranz/MDE4CPP | 692a2f124d3078d6f328532616e4a28e024b1903 | 5b918850a37e9cee54f6c3b92f381b0458451724 | refs/heads/master | 2020-06-11T06:35:28.102220 | 2019-05-16T10:55:30 | 2019-05-16T10:55:30 | 193,877,716 | 0 | 0 | MIT | 2019-06-26T09:54:32 | 2019-06-26T09:54:31 | null | UTF-8 | C++ | false | false | 11,168 | cpp | CallEventImpl.cpp | #include "uml/impl/CallEventImpl.hpp"
#ifdef NDEBUG
#define DEBUG_MESSAGE(a) /**/
#else
#define DEBUG_MESSAGE(a) a
#endif
#ifdef ACTIVITY_DEBUG_ON
#define ACT_DEBUG(a) a
#else
#define ACT_DEBUG(a) /**/
#endif
//#include "util/ProfileCallCount.hpp"
#include <cassert>
#include <iostream>
#include <sstream>
... |
9423c8ea72fa79a5b69e71593b3d1ecd9d391325 | a3667a872aab3cb9ac09351fb6daa5848df2e338 | /ssd_ros_tracking/src/ssd_visualize_ekf.cpp | 650fcc83bf06b70b0c5dedc85a19232338aea083 | [
"MIT"
] | permissive | Sadaku1993/ssd_ros | 2faa2c2790bb2570edcb9c4c90d7262563d1f460 | 88e280678e6a6b1814ed811bee7d0eaaafd97b56 | refs/heads/master | 2020-03-18T00:53:59.612624 | 2018-06-22T06:54:46 | 2018-06-22T06:54:46 | 134,118,060 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 8,123 | cpp | ssd_visualize_ekf.cpp | #include "ssd_ros_tracking/ssd_ekf.h"
#include <sensor_msgs/PointCloud.h>
#include <visualization_msgs/MarkerArray.h>
#include <Eigen/Dense>
// dynamic detector param
#define CONFIDENCE 0
using namespace std;
// using namespace Eigen;
void coloring(int color_id, double& r, double& g, double& b)
{
float colors[10][... |
fdcd1dc14a2669a15476fed8444018947fcd6e4a | 8420523466c9f6ab0edf6ff556c09c5a49edc1cb | /mk/msvc/apptranstool_static_static_glue_app_CRYSTAL.cpp | 21199a4b0c38ea39d640176d0b6eec35f1dc5f99 | [] | no_license | huigou/planeshift | fb31a43ff1fad0e1b69d9683d0e1e8a0945d8fd3 | 78afce50bccf755ec4ded0c6bc91ae3c80bc5eba | refs/heads/master | 2020-05-25T15:47:26.462741 | 2016-06-15T20:34:37 | 2016-06-15T20:34:37 | 64,410,081 | 2 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 267 | cpp | apptranstool_static_static_glue_app_CRYSTAL.cpp | // This file is automatically generated.
#include "cssysdef.h"
struct CS_IMPORT_SYM _Bind_transtool_static_plugins_CRYSTAL
{
_Bind_transtool_static_plugins_CRYSTAL ();
};
namespace { _Bind_transtool_static_plugins_CRYSTAL bind_transtool_static_plugins_CRYSTAL; }
|
b7998bc52cd7c22f2de2c549b1cdcb67dc86c28e | ec0c10f6c207a3ad1832fabe824767f406a992e0 | /17406.cpp | 32c158dfd94a13465529adc25cba48e5a791db28 | [] | no_license | luck2901/Algorithm | 5f8e88f6fa6d49e11ce880a2550d5ed8c4c57b05 | 3462c77d1aa6af3da73c4f10b6dd7bb7a8e8a9b4 | refs/heads/main | 2023-07-14T09:32:33.963583 | 2021-08-26T02:10:09 | 2021-08-26T02:10:09 | 339,104,020 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,516 | cpp | 17406.cpp | #include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <queue>
#include <string.h>
using namespace std;
int N, M, K, minvalue = 987654321;
int arr[51][51];
int rarr[51][51];
int check[51];
vector<pair<pair<int, int>, int> > v;
void sequence()
{
do
{
for (int i = 0; i < N... |
60739711af4890166664fb3df7ff269e61010276 | 8c13dfc7745ca53c43da0138534665538d4966d3 | /tests/basic/basic.cpp | 105a9ceeded8ff653b7f4ed364adc02ac3fd46d6 | [] | no_license | inlinechan/finder | 99eff276d7da778cb3e149cc112cbc0e338235c5 | 91d53ce207707f4dddfa137f80543993ce638eea | refs/heads/master | 2021-01-12T06:51:33.721029 | 2016-12-26T07:10:55 | 2016-12-26T07:19:57 | 76,842,919 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 265 | cpp | basic.cpp | int increment(int v);
int add(int v1, int v2);
int main(int, char *[])
{
int v1, v2, v3, v4;
v1 = 10;
v2 = 15;
v3 = add(v1, v2);
v4 = increment(v3);
return 0;
}
int increment(int v) {
return v + 1;
}
int add(int v1, int v2) {
return v1 + v2;
}
|
66e848d9c47723072aa88c6b6e2eb136d43c10b6 | 3ba7bfc1a5544afd9f55a1cecab686e8e62b0d6c | /vmTools/src/CBits/CBit32.h | fe46bbea818bdf2257de325d565752b163ac03cc | [
"BSD-3-Clause"
] | permissive | vincentma0001/vmTools | 45c3f22763503787215ea625f60a098247a65d50 | 4dec6c20e6305fdab3a70d7af9ee127aa129add1 | refs/heads/master | 2021-06-07T03:30:55.220101 | 2020-04-20T12:36:30 | 2020-04-20T12:36:52 | 58,296,227 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 13,386 | h | CBit32.h | /////////////////////////////////////////////////////////////////////////////////////////
//
// File name : CBit32.h
// Version : 1.0.0.0
// Brief :
// Author : v.m.
// Create time : 2020/01/06 00:51:24
// Modify time : 2020/01/06 00:51:24
// Note :
//
/////////////////////////////////////... |
bd9a308395ffbdfca6574edd6f1945b2cd6b7087 | 1fe28a6caaa5dad11751fa7f2a2acec1379fcf2d | /instructions/lds.cc | 7c151104b16f5ad15c7910a7ca7470d8201c30d3 | [] | no_license | aghoward/avr-emu | 6a9acac919700df4b94ce91b6ae97c04813ab4c9 | 75021e38c9d2d32f19860515b98ddd7efb4077c1 | refs/heads/master | 2023-06-09T13:43:15.147197 | 2021-07-02T19:46:58 | 2021-07-02T19:46:58 | 344,144,167 | 0 | 0 | null | 2021-07-02T19:46:59 | 2021-03-03T13:55:52 | C++ | UTF-8 | C++ | false | false | 1,137 | cc | lds.cc | #include "instructions/lds.h"
#include "instructions/opcodes.h"
#include <cstdint>
namespace avr {
uint16_t LDSInstruction::GetImmediate(ExecutionContext& ctx) const
{
auto out = static_cast<uint16_t>(0u);
for (auto i = 0u; i < sizeof(out); i++)
out |= static_cast<uint16_t>(ctx.pro... |
5ccdefc42f23107a50f5c16d764400528248fa68 | 6a9c422f963e1fd79f6ceda23a6e147565b43624 | /LEETCODE-50.Pow(x,n).cpp | a1ff188a02719ce91a51d55e7419e5ed504372c3 | [] | no_license | sidhantchadha/LEETCODE | 6605d07b30c06d47d81b0d6d84673c31ea0cc9e1 | d67e210d396a015b2dd6980ffd2a82b9e0cf2d73 | refs/heads/master | 2020-03-07T01:37:28.592703 | 2018-06-22T20:32:11 | 2018-06-22T20:32:11 | 127,188,143 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 854 | cpp | LEETCODE-50.Pow(x,n).cpp | //============================================================================
// Name : Pow(x,n).cpp
// Author : Sidhant Chadha
// Version :
// Copyright :
// Description : Pow(x,n) in C++, Ansi-style
//============================================================================
//RECURSIVE
class S... |
a6f3e4d1c8b38a2490689c648594960ae25fd993 | f435c4a55c90c0122154622b6e4c09c549468dfb | /libs/utils/timestamp.h | 5802944cc2d30541bf8c24ca1812f53f927f4896 | [] | no_license | alexsaker/bazel-cpp-example | afb6f54f92cfca7d36055a582ac276545ef4228d | 7414eba3a5322cfe0417a30afbea11eec5284cb6 | refs/heads/master | 2022-12-29T02:32:33.514833 | 2020-10-19T19:24:06 | 2020-10-19T19:24:06 | 297,257,260 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 179 | h | timestamp.h | #include <iostream>
struct Timestamp
{
public:
unsigned long int timestamp;
static std::string toJson();
};
Timestamp GetTimestamp();
|
bb2f6ff6c9ab6d5814c71e7ac307f7864ee20fbb | e9bcf82d4a49a5348999458ca4956aa099fd4818 | /Project2/aieBootstrap/project2D/PauseState.cpp | 9829605faa43a0c2ccb6e049ba794d935cbfe46b | [
"MIT"
] | permissive | AnonUser676/Game_Project | 90e2888db55ccbb51352e22223bb63bc7ecced94 | 5690b0ef411fadbbf8f02ac9a6325c93c4859d96 | refs/heads/master | 2021-01-22T12:17:45.040886 | 2017-06-27T07:37:31 | 2017-06-27T07:37:31 | 92,711,732 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,442 | cpp | PauseState.cpp | #include "PauseState.h"
PauseState::PauseState()
{
m_background = new Texture("./textures/Pause/MenuBG.png");
m_ResumeOFF = new Texture("./textures/Pause/Resume.png");
m_ResumeOn = new Texture("./textures/Pause/Resume_Pressed.png");
m_OptionsOff = new Texture("./textures/Pause/Options.png");
m_OptionsOn =... |
a961420cf9245a348186143ae287f8c55c374c58 | 5d5894224564cfa3bbc7afd038e41d8db8ff528e | /Gateware/Interface/G_Core/GBroadcasting.h | 9c8e2880aa5cc5b43c633f809d440b213d62e284 | [
"MIT"
] | permissive | LiamMMurray/ProjectCreation | 8cc37afbb905935fbf5118467d10fa0cbb6a5d9c | 5fe8371b1ada375ba68f76bbea49a08985586626 | refs/heads/master | 2022-03-08T15:45:51.838752 | 2019-11-09T17:35:49 | 2019-11-09T17:35:49 | 185,449,669 | 0 | 1 | null | 2019-05-25T17:12:54 | 2019-05-07T17:35:16 | C | UTF-8 | C++ | false | false | 2,509 | h | GBroadcasting.h | #ifndef GBROADCASTING_H
#define GBROADCASTING_H
/*!
File: GBroadcasting.h
Purpose: A Gateware interface that allows an object derived from GListener to receive select events from a GBroadcaster.
Author: Lari H. Norri
Contributors: N/A
Last Modified: 10/13/2016
Interface Status: Final
Copyright: 7thGat... |
556504a44f4c5bf08c2f9576213c409a66f94b7e | ce920bd897afa6135f3f1a3c777416eb390555cb | /include/scope_guard.hh | 55059872740022ba573e967fea7f38313e60ef2c | [] | no_license | ivankp/server_old_1 | 64095f03ed58c8599ebf1d5e9709a657a4f70e2e | fa7e4bb53751190057aabe571b8bfb7dbb1e8f03 | refs/heads/master | 2023-05-01T00:08:17.345373 | 2021-05-18T17:46:30 | 2021-05-18T17:46:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 635 | hh | scope_guard.hh | #ifndef IVANP_SCOPE_GUARD_HH
#define IVANP_SCOPE_GUARD_HH
namespace ivanp {
template <typename F>
class scope_guard {
F f;
public:
explicit scope_guard(F&& f): f(std::forward<F>(f)) { }
scope_guard() = delete;
scope_guard(const scope_guard&) = delete;
scope_guard(scope_guard&&) = delete;
scope_guard& oper... |
ace91d04a517f8458b4bb146b74a798f3858592d | 8ea8db0f19261d849444fd1033ecc64e4bb2e768 | /model/character/HighPunchHitting.cpp | dfd6488d4db58bc6dbfb166e1d75f3804c074063 | [] | no_license | alkatena/mortalKombat-taller1C2015 | c93dd23019cb7ab0384143dc9030c43f0b8860b9 | b347400697f0fb16d2e4a9a4cfea0e7a8fcec9f1 | refs/heads/master | 2021-01-12T14:00:28.321640 | 2015-10-28T02:29:14 | 2015-10-28T02:29:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,428 | cpp | HighPunchHitting.cpp | #include "HighPunchHitting.h"
#include "CharacterStance.h"
#include "ReceivingDuckingKick.h"
#include "RecevingHit.h"
#include "ReceivingDuckingPunch.h"
#include "BeingOverPassedRight.h"
#include "BeingOverPassedLeft.h"
#include "TeleportationDoing.h"
#include "../../view/SoundManager.h"
#include "WeaponHittingIce.h"
#... |
e7799a16ca627f071872293f13f22f06e403d95b | 8a9a16f3445fdba16020973e4f832a46c208271b | /4.27.17/4.27.17/Source.cpp | 00dabe40924ad58e71ce4ddc250399d74f02bf2e | [] | no_license | Robowerewolf/AprilCode | 0b277256b8dfca751c4707ffc52e4116af52e94b | 90cd0c721f2a1f07a925f69f8931ea7557072b67 | refs/heads/master | 2021-01-19T03:56:09.179924 | 2018-03-22T19:18:07 | 2018-03-22T19:18:07 | 87,342,756 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 700 | cpp | Source.cpp | #include <iostream>
using namespace std;
double attack(double level,double a,double d,double power, double modifier);
int main() {
double level = 0;
double a = 0;
double d = 0;
double power = 0;
double modifier;
cout << "whats the level" << endl;
cin >> level;
cout << "attack?" << endl;
cin >> a;
cout << "pow... |
3d9982280d0dd41ed8651bc32dcf53f82f66381c | da33b9e1f4e00d283d9bd30a64b57d2f5a52379f | /rotate2d.cpp | b8b60ac6107f1d2d3eb714d869a244cd08f914bd | [] | no_license | mahima-manik/Competitive-Programming | 0003264adfbb038e5b61ca5130dbc342784ce1e1 | d955d4d36924f6cf07129fe2d333e1c7e11da951 | refs/heads/master | 2020-03-23T09:17:15.560257 | 2018-10-03T16:28:46 | 2018-10-03T16:28:46 | 141,378,451 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,440 | cpp | rotate2d.cpp | /*
You are given an n x n 2D matrix representing an image.
Rotate the image by 90 degrees (clockwise).
You need to do this in place.
Note that if you end up using an additional array, you will only receive partial score.
Example:
If the array is
1 2 3 4 5 6 7 8 9
Then the rotated array becomes:
7 4 1 8 5 2 9 6... |
bbfc5d5b95b8139bb16087e116542f7882b772a1 | 9178c14c6977c10706cec7d3928159cbb0eab566 | /Game/Game/Item/InventoryItem/InventoryBow.cpp | 8ae7b8d8d6bfec7723172bdc6722ce908973d676 | [] | no_license | osumaru/Game | bdac76f375e621f05ee50cca0d1913ac7c13ca84 | 6ae23ce622bd1911604e84af318b92fc609f7650 | refs/heads/master | 2023-03-07T11:40:17.907500 | 2021-02-20T09:56:50 | 2021-02-20T09:56:50 | 125,951,546 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 327 | cpp | InventoryBow.cpp | #include "InventoryBow.h"
void CInventoryBow::Init(const wchar_t* itemName, const wchar_t* textureFilePath)
{
m_itemName = itemName;
m_textureFilePath = textureFilePath;
CTexture* texture = TextureResource().LoadTexture(textureFilePath);
m_itemSprite.Init(texture);
}
void CInventoryBow::Draw()
{
m_itemSprite.Dra... |
037761d5bc25cd279036ef897714cf6b7be60ec1 | 507bfa523de24ae9ae5969c1ea3d9b078ce186bb | /tests/source/init.cpp | acf7823127b17f464d53b151139ac00e20cbab84 | [] | no_license | simplydesigner/BinarySearchTree | b5596441215bd7d0a656e0d3242ed80ddfc73061 | 9c4684f1c38ae42ec8984a2a306e44b69afa356d | refs/heads/master | 2021-01-01T03:37:15.494854 | 2016-05-16T11:03:52 | 2016-05-16T11:03:52 | 58,455,375 | 0 | 0 | null | 2016-05-10T11:23:42 | 2016-05-10T11:23:40 | null | UTF-8 | C++ | false | false | 9,696 | cpp | init.cpp | #include <BinarySearchTree.hpp>
#include <catch.hpp>
#include <fstream>
SCENARIO("BST init with initializer list", "[init]") {
BinarySearchTree<int> tree = {8};
REQUIRE( tree.size() == 1 );
}
SCENARIO("BST search inserted element", "[search]") {
BinarySearchTree<int> tree = {8, 4, 3};
REQUIRE( tree.find(4) );
}
... |
f7c5c07610c3f0cf930b6aa2a5e5d28b731efbc1 | cf4edc2a34c4627d45c47feeacf2acf079aa596f | /source/QAbstractTextDocumentLayout.cpp | fd7ae2a5bea2237ad4865bb795b85c695260f16f | [
"MIT"
] | permissive | diegopego/Qt4xHb | eeb7c3e33b570193469bfca47d7d1835c2efbc38 | 5f96614f794cc8392b4d97f7dcd80b2fbf46ab65 | refs/heads/master | 2021-01-09T05:55:50.167467 | 2017-02-01T22:44:30 | 2017-02-01T22:44:30 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 5,477 | cpp | QAbstractTextDocumentLayout.cpp | /*
Qt4xHb - bibliotecas de ligação entre Harbour/xHarbour e Qt Framework 4
Copyright (C) 2012-2017 Marcos Antonio Gambeta <marcosgambeta@uol.com.br>
*/
#include <QAbstractTextDocumentLayout>
#include "hbapi.h"
#include "hbapiitm.h"
#include "hbapierr.h"
#include "hbvm.h"
#include "hbstack.h"
#ifndef __XHARBOUR... |
320493c3d565993d40636bb565da8bb296f9d1cb | 5261689e7c9114dfd89786358edc0a35e69ab57f | /cf-644b.cpp | 9d7f162e6ed0b38a3fde6839fbecb3b133815fde | [] | no_license | shobhitkrsks/cp | bec5f36d5a8ff9684321099dc3244284f517ab43 | e551af079b4c1a4c1803b555ab9d3eec194910c5 | refs/heads/master | 2023-06-06T19:52:31.999545 | 2021-07-05T18:57:52 | 2021-07-05T18:57:52 | 248,814,534 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 565 | cpp | cf-644b.cpp | #include<iostream>
#include<bits/stdc++.h>
#define ll long long
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int tc;
cin>>tc;
while(tc--)
{
int n;
cin>>n;
int ar[n];
for(int i=0;i<n;i++)
cin>>ar... |
fdf82a5a380a6eb68f5bd9d30213f426bae23017 | fb283e5049c58ed19679d710d1635a897a4f68a9 | /include/SDLpp/meta/is_sdlpp_flag.hpp | a9ff4ba0199d7c668cd95782445ceb4f934b32b2 | [
"MIT"
] | permissive | rbrugo/SDLpp | d84ad77058d5ded1b46cf9511a4b35d65a69f901 | 0387589065ac0a31d93945c0546f64330d824bf9 | refs/heads/master | 2023-03-21T23:21:52.418712 | 2018-04-29T23:22:58 | 2018-04-29T23:22:58 | 125,532,038 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 612 | hpp | is_sdlpp_flag.hpp | /**
* @author : Riccardo Brugo (brugo.riccardo@gmail.com)
* @file : meta
* @created : Tuesday Mar 27, 2018 11:53:11 CEST
* @license : MIT
* */
#ifndef SDLPP_META_IS_SDLPP_FLAG_HPP
#define SDLPP_META_IS_SDLPP_FLAG_HPP
#include <type_traits>
#include "../init_flags.hpp"
#include "../img_flags.... |
e611901493d6f4c65149d69795333ca5e637a7de | 846dbab53e69d39ad4b4afb3c52f311ca6fee96f | /AMR_NB_COVER/coder/huangmethod.cpp | c00e7bb25abbb7410fcd741a469d420503573d28 | [] | no_license | ToughmanL/ENCODE_AMR_NB-WB | bb6b7852337d38eeceade1dc1ad564a14005a421 | cac229b0c0f7d0d8fc21f943ae0a3cf897469283 | refs/heads/master | 2020-05-24T07:39:18.445743 | 2019-05-17T07:45:59 | 2019-05-17T07:45:59 | 187,164,989 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26 | cpp | huangmethod.cpp | #include "huangmethod.h"
|
b7fefb3cc070967a748712c7f6cd907b29d76b5e | 6b2a39df2cd6e626ca042b80d98003f9e47a0b02 | /Leetcode/StrobogrammaticNumber.cpp | 8e2f42dcb37528127ecbcf89350c9d2ac61bf733 | [] | no_license | ShuhengLi/LeetCode | 0b7db0eaee71b13a8c6324cd837324db31560247 | f882fc0fd58857dafdd4b41b1b89c10e56a3f23d | refs/heads/master | 2021-06-07T21:15:54.639277 | 2020-10-20T22:02:46 | 2020-10-20T22:02:46 | 28,899,606 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 825 | cpp | StrobogrammaticNumber.cpp | /*
A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down).
Write a function to determine if a number is strobogrammatic. The number is represented as a string.
For example, the numbers "69", "88", and "818" are all strobogrammatic.
Author: Shuheng Li
*/
public class ... |
5babe17549c4701f42d3b087d87188a224fcf6bf | 83c0700a9b14dbd2eed4ad9abe7594a8ff12ce0a | /services/audiopolicy/common/managerdefinitions/include/AudioProfile.h | 404e27d5600fd389a30efaa7a090d75b7872a961 | [
"LicenseRef-scancode-unicode",
"Apache-2.0"
] | permissive | PixelExperience/frameworks_av | e5ab74641a88237ac84ff698539c95033a3aa09f | 10d08c030053cbcb30d114630b3276fddce96a45 | refs/heads/oreo-mr1 | 2023-08-05T20:29:20.970331 | 2018-12-04T20:38:27 | 2018-12-04T20:38:27 | 130,521,429 | 8 | 167 | NOASSERTION | 2023-07-15T06:06:36 | 2018-04-22T00:10:21 | C++ | UTF-8 | C++ | false | false | 12,243 | h | AudioProfile.h | /*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
e74059502f037aaa343980ed36df293bd9b44683 | d0a41eaec94af083ad540662a302e74f667972a7 | /BZOJ1631.cpp | ad518766ef81d783107345518aa5b1bba1b02954 | [] | no_license | fstqwq/BZOJ | 0ee9c2a89592a63b1e4f8a1953f21ffb1cb35e4f | 5b68a148013889a585bed219cd524119f9ea54e4 | refs/heads/master | 2021-01-12T09:59:44.182167 | 2016-12-13T10:31:47 | 2016-12-13T10:31:47 | 76,328,920 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,984 | cpp | BZOJ1631.cpp | /* Never stop fighting for what you believe in. */
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <ctime>
#include <cstdlib>
#include <algorithm>
#include <queue>
#include <string>
using namespace std;
int ch=0;
inline void read(int &a) {
while (ch<'0' || ch>'9') ch=get... |
63dc10ee1ae1acc9739a4ea3bfcfaa4cd32dbbfa | 718b1f214497b13cdcabd529c0310298420876f1 | /CleanMac/Pods/MMKV/iOS/MMKV/MMKV/aes/openssl/openssl_cfb128.cpp | 0b0192fb762700e5e1075739d395291f5655cd79 | [
"BSD-3-Clause",
"LicenseRef-scancode-openssl",
"LicenseRef-scancode-ssleay-windows",
"OpenSSL",
"Zlib",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | helinyu/Mac_app | 3da9df6a86cb6593981710865ff7f39d34789736 | 7e92c2a63c1687151e5cf2d5e390136b5df0bbbf | refs/heads/master | 2021-08-22T11:42:32.513969 | 2020-06-17T11:52:35 | 2020-06-17T11:52:35 | 195,726,888 | 8 | 3 | MIT | 2019-07-16T12:43:29 | 2019-07-08T03:01:16 | Objective-C | UTF-8 | C++ | false | false | 4,254 | cpp | openssl_cfb128.cpp | /*
* Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/lice... |
4709c665767820ecdfbb3c203c88a71c7866fc4a | 0f5507dba517e8cab3a8a3c66c3eec18746b8d87 | /List_contact.h | b7a3a1222b06f0e928bc247a926554bfac2eb689 | [] | no_license | Priyanka-Manchanda/Phone_book_management | b53385e801cdfb5e67cf3e48ad654864597d8905 | d1eac75088f13de174169b4243793c20c31780f7 | refs/heads/main | 2023-01-10T06:42:05.631382 | 2020-11-02T17:39:37 | 2020-11-02T17:39:37 | 309,447,396 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 205 | h | List_contact.h | #pragma once
#include<vector>
#include "Contact.h"
class List_contact:public Contact
{
public:
void add_contact();
void display_contact();
protected:
std::vector<Contact> contact_info;
}; |
7584db0b6ed8224bf423e6a1cedbfd39c3dd3cae | 338a1d3e2adf05e51c795decac3a9c71d1fd28ac | /WildcardMatching.cpp | 1f7426af3721f447e2a0a09fc98eb6c31ad766b2 | [] | no_license | devanshdalal/leetcode-solutions | 84e3da0cad20792d05770b5467e51947f7d0c166 | b8d164c5f968b87562e91eecec09f299bb94bbc7 | refs/heads/master | 2021-03-27T10:20:53.195292 | 2017-02-12T08:36:46 | 2017-02-12T08:36:46 | 81,712,752 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 975 | cpp | WildcardMatching.cpp | class Solution {
public:
bool equal(char c1,char c2){
return c1==c2 or c2=='?' or c1=='?';
}
bool isMatch(string s, string p) {
int n = s.length();
int m = p.length();
bool d[n+1][m+1];
// dp(i,j) = isMatch(s[0:i-1],p[0:j-1])
... |
d095cff3fddac3cd457cd503260d8b8320d39935 | f3b7e8dcab9f7ef2f833a555bfa5d411b3e46f47 | /jcx/thread/IThreadImp.h | 4c35428bd8a81af95cfb89e49b7ca23eed82f8bc | [] | no_license | yunccll/jcx | 4589b02ef552dd621cb78127e56357d24b89f343 | 84ff67c2195a8cb06529cf8418cb20086c9bd704 | refs/heads/master | 2020-04-16T01:59:17.128651 | 2019-07-08T09:36:17 | 2019-07-08T09:36:17 | 165,193,734 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 785 | h | IThreadImp.h |
#ifndef JCX_THREAD_ITHREADIMP_H
#define JCX_THREAD_ITHREADIMP_H
#include <jcx/base/Macro.h>
namespace jcx {
namespace thread {
typedef void * (*ThreadEntry)(void * ctx);
class IThreadImp {
public:
IThreadImp() {}
virtual ~IThreadImp() {}
virtual IThreadImp & entry(ThreadEntry entry) = 0;
virtu... |
1c409121d4f28d5002d4564b37b77373e9c32abf | 27abcab06ef2c704347eef38477b9e15b8e94cb6 | /tsc-support.cpp | 9a8607000d16c152c4cb3e3ecd82722a54d0d0e6 | [
"MIT"
] | permissive | travisdowns/avx-turbo | b5d439abb6dcf088b3bb62030b2b2507b9fb97f5 | 4a04a454feedb6402cd9d85fa6fda4d9c7ba47b4 | refs/heads/master | 2023-05-31T23:33:47.143323 | 2021-10-27T17:45:39 | 2021-10-27T17:45:39 | 145,263,040 | 155 | 19 | MIT | 2023-05-15T08:44:15 | 2018-08-19T01:01:28 | C++ | UTF-8 | C++ | false | false | 3,320 | cpp | tsc-support.cpp | /*
* tsc-support.cpp
*/
#include "tsc-support.hpp"
#include "cpuid.hpp"
#include <cinttypes>
#include <string>
#include <cstdio>
#include <cassert>
#include <array>
#include <algorithm>
#include <numeric>
#include <error.h>
#include <time.h>
using std::uint32_t;
uint64_t get_tsc_from_cpuid_inner() {
if (cp... |
248fa774c1673d4e275fb47523f87250e231d5f4 | 18d1ee0abc51a641c14b4292c22f5f7ea9b30c15 | /Praktikum3_Aufgabe4/Numbers.h | f1fc7cdc9a12bebb731a82d95d0c9834ffa22db0 | [] | no_license | KatharinaBergen/Praktikum3_Aufgabe4 | 3f586b3c107468a95d20e3806beb25ed67c1ed74 | 3a957c125f84be3c0efe453fcc5e6ada20c22f64 | refs/heads/master | 2022-10-09T08:03:19.897590 | 2020-06-14T10:42:42 | 2020-06-14T10:42:42 | 272,181,469 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 926 | h | Numbers.h | /*
Author: Kat Bergen
12.06.2020 V1
header Numbers class, handeling input, sum calculation, output
details:
1 User to input numbers stored in vector.
2 User to input index up to which the numbers in the vector will be added
3 function to add numbers returns result
4 output of all numbers so as to visualize caluclat... |
690e0befa0e774bb292756fe9a9d5dfaee55a961 | 51e93691228d4212b91b6c61b4d83eb6a730d62e | /Solution/GUI/TextWidget.h | 5a870d12ceaabe3c86ec6fbef50755e436300a40 | [] | no_license | LastVision/DistortionGamesGrad | ec5bd7feafeb7c7741508a256ce834b8139b4087 | 329f39c3d6ca6497482643b6298c44d40a1ae0aa | refs/heads/master | 2021-03-24T12:27:44.713118 | 2016-06-14T13:42:36 | 2016-06-14T13:42:36 | 57,017,978 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 422 | h | TextWidget.h | #pragma once
#include "Widget.h"
namespace GUI
{
class TextWidget : public Widget
{
public:
TextWidget(XMLReader* aReader, tinyxml2::XMLElement* anXMLElement);
~TextWidget();
void Render(const CU::Vector2<float>& aParentPosition, float anAlpha) override;
void OnResize(const CU::Vector2<float>& ... |
d684a058836225de1ecabfad411e74bedb3bdc45 | b09de87297dde13c874d24db2541817d788b2594 | /directX/sceneX.cpp | 7daa0676d72ef75c4acedf308ed718ceced9e572 | [] | no_license | tnbmi/TGS_20150327 | f28e84aa846594c5753f249147376b350e916011 | 5e4f4ab119648207b6fe05c5819102f4a907845e | refs/heads/master | 2020-03-31T02:13:59.268880 | 2015-03-29T15:38:51 | 2015-03-29T15:38:51 | 31,594,249 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 3,911 | cpp | sceneX.cpp | //*****************************************************************************
//
// CSceneXクラス [sceneX.cpp]
// Author :MAI TANABE
//
//*****************************************************************************
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// インクルードファイル
//++++++++... |
833206335f10edabc35dbe495b40e6b7d6b35849 | c2c3de55d08f5ef29043b97cf2de3304d029b878 | /BaseScene.cpp | 538f55cb704feab0e6bd65978bd39f79e2c66018 | [] | no_license | qnpfrehdtks/DirectX11 | c5de2a1d5a5c0c72e78e523b785fa0acafcaefa1 | 164e17ebd4cc6af75c2db1c6a07eb54aff5b048a | refs/heads/master | 2020-03-29T08:24:37.016892 | 2018-09-21T04:34:15 | 2018-09-21T04:34:15 | 149,709,752 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 367 | cpp | BaseScene.cpp | #include "DXUT.h"
#include "BaseScene.h"
cBaseScene::cBaseScene(ID3D11Device* device, ID3D11DeviceContext * dc, ID3D11RenderTargetView * rtv, ID3D11DepthStencilView * dsv)
: m_pDevice(device), m_pDC(dc), m_pDSV(dsv), m_pRTV(rtv)
{
}
cBaseScene::~cBaseScene()
{
SAFE_RELEASE(m_pDevice);
SAFE_RELEASE(m_pDC);
SAFE... |
b599db91a6f7ff2cbd3e0d1242c2bde743d998b0 | 4787ec00fc613eaa77256f35056bc6ad32a177dd | /course_work/Problem_1/Program.cpp | e22cae1100b4376963fe945af1dbeb58a7f58cec | [
"MIT"
] | permissive | pavelhristov/cplusplus | ad1c63b060a0ceedff6f7b8f0561837b2fe3f0ce | 3731815fd5681cbc53b4415e2df2f42fc74aaef1 | refs/heads/master | 2020-06-07T07:10:33.291003 | 2019-06-20T17:30:17 | 2019-06-20T17:30:17 | 192,958,556 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 350 | cpp | Program.cpp | #include "ConsoleReader.h"
#include "ConsoleWriter.h"
#include "FileWriter.h"
#include "FileReader.h"
#include "Program.h"
void Program::run(ConsoleReader& cReader, ConsoleWriter& cWriter,
FileReader& fReader, FileWriter& fWriter) {
Program program(cReader, cWriter, fReader, fWriter);
program.initiala... |
f0335ed5d4baa905e3f8752cbcc2742745c87c09 | 1a02d5ec307d643b00f1eb7315e179bc1b8e1e53 | /testing/library_tests/game_class_tests.cpp | 32cba9d74616516906f83d785ba65f219ab7f36f | [
"MIT"
] | permissive | devopsmi/ParallelisingConwaysGameOfLife | 70b2f0e6d5009bee31988c7fc52f190d74ab94bd | ed91370f1c049a278f04db08e76eac22d72a6ead | refs/heads/master | 2021-06-16T15:34:12.760823 | 2017-05-18T21:07:00 | 2017-05-18T21:07:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 897 | cpp | game_class_tests.cpp | #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include <catch.hpp>
#include "conway.h"
TEST_CASE("ConwaysGameOfLife", "[conway_lib]") {
size_t gridWidth = 2;
size_t gridHeight = 1;
cgol::GameGridSharedPtrT grid = std::make_shared<cgol::GameGrid>(gridWidt... |
a560e52610c92f9b82c8cbfe2980de71725ae356 | 95e051bc96bd3f765ce1cec4868535b667be81b6 | /ExplodedVolume/UserInterface/GeneratedFiles/qrc_UserInterface.cpp | 2840b2a13e061e410605d11bd11d1ccc4275f4f5 | [] | no_license | fabio-miranda/exploded | 6aacdb5ca1250b676990572ef028fcbc0af93b1a | 12ca185b161b78d0b903c86fb5a08cee3ed87362 | refs/heads/master | 2021-05-29T09:06:03.007813 | 2010-02-26T04:40:32 | 2010-02-26T04:40:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 740 | cpp | qrc_UserInterface.cpp | /****************************************************************************
** Resource object code
**
** Created: Thu 28. Jan 23:55:55 2010
** by: The Resource Compiler for Qt version 4.6.1
**
** WARNING! All changes made in this file will be lost!
********************************************************... |
98003b779843b452673cb84fe94897f0f748af7c | 9a46b275537b13233542eb0c186752bf1b4f92cf | /src/msb.cpp | 9831ab4c0faa5a7de7aa756e41d21f9d05a056da | [] | no_license | ironliuyi/Par-BF | 6d3c6f741f5000c21f54e78bff03299d24a1d439 | 0f4d9726c8d59d297efb297e293969e6c173950c | refs/heads/master | 2021-01-22T07:39:16.545825 | 2015-11-24T03:48:05 | 2015-11-24T03:48:05 | 31,349,292 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,797 | cpp | msb.cpp | /*
* msb.cpp
*
* Created on: Oct 22, 2012
* Author: ubuntu
*/
#include "msb.h"
/* Highest bit set in a byte */
const char bytemsb[0x100] = {
0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
6, 6, 6, 6, 6, 6... |
14b2c2e7a4ec18e2a98062b75040c3045a8709d9 | d213f2a47aa902f8b2f208850e131ab3e34ad17b | /Game1/PickupDef.cpp | 86505ce409b95477f2e231ba3f4b1a960bbee756 | [] | no_license | ntaylorbishop/HGAM_Roguelike | 0f653bcd596b4e062db89c99ac2060cd1ee9857c | 668c80f2171c5788543bddf04044b28170a72048 | refs/heads/master | 2020-04-26T09:57:11.557294 | 2015-03-25T22:16:13 | 2015-03-25T22:16:13 | 29,994,982 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 901 | cpp | PickupDef.cpp | #include "PickupDef.h"
//STRUCTORS
PickupDef::PickupDef() {
this->tile = 0;
this->name = name;
this->desc = "NULL";
this->type = type;
this->useEffect = [](){};
this->removeEffect = [](){};
}
PickupDef::PickupDef(int tile, string name, int type, function<void()> useEffect) {
this->tile = tile;
this->name = nam... |
2d5693f1b2f284f887992c7b68907d154b0da222 | 399b447bf4d82712ff85d8d1971b87737cc782ed | /src/Graphic.cpp | 254ece7dfe6e05910b5ed7b5c685c30f6d9abfce | [] | no_license | zahrasadeghi/FinalProject | dd90a687faf9748ae0e8af649a871c344d23e81c | 25448dbf607c3ecc6827238c7e7611aa172b4f20 | refs/heads/master | 2020-12-25T01:38:58.514803 | 2016-06-30T07:49:43 | 2016-06-30T07:49:43 | 62,124,572 | 0 | 0 | null | 2016-06-28T08:40:52 | 2016-06-28T08:40:52 | null | UTF-8 | C++ | false | false | 1,309 | cpp | Graphic.cpp | #include "Graphic.h"
Graphic::Graphic()
{
window = new sf::RenderWindow(sf::VideoMode(800, 600), "NetWars");
window->setFramerateLimit(30);
isOpen = true;
}
void Graphic::start()
{
}
void Graphic::main()
{
eventHandler();
drawObjects();
}
Event Graphic::getEvent()
{
... |
ebb7042f0a7d643ac5eab8046d0a3bdaa30e866f | 05ba7a6a30f4a3453adcd882401dfd5a231f7f41 | /Question48.cpp | 61b318398a98a9586e5d9db5b3f5d2e8f66ba562 | [] | no_license | MadhusmitaBehera/lab-3 | 7092fb074198d686f041c7c7a8a2dc31a7396c7e | 3b193d496096a45874f2438c8dbe421f0e06f553 | refs/heads/master | 2021-01-23T19:33:48.176525 | 2017-09-14T11:32:07 | 2017-09-14T11:32:07 | 102,827,537 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 470 | cpp | Question48.cpp | #include <iostream>
using namespace std;
int main() {
int N,i,j,isPrime,n;
cout<<"\n Enter the value of N.";
cin>>N;
for(i=2;i<=N;i++)
{
isPrime==0;
{
for(j=2;j<=i/2;j++)
if(i%j==0)
{
isP... |
3d7f6914519b233b150300c64c6e9b840de21c13 | 5953564e57ed35973dac8b35b78ac524f978b709 | /emc/hemcraw.h | d17bb30cf7c7989cbc3c606dbb331979ac2c2aff | [] | no_license | wesmail/hydra2-fwdet | ca9266b5f069d5c6d3a899d993f0248ce22b7329 | f55563466c1145c46bdfc4d045a2e042417cfab3 | refs/heads/master | 2020-04-11T08:59:37.349179 | 2018-07-25T13:56:27 | 2018-07-25T13:56:27 | 161,662,474 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,432 | h | hemcraw.h | #ifndef HEMCRAW_H
#define HEMCRAW_H
/////////////////////////////////////////////////////////////
//
// HEmcRaw
//
// Event data structure for HADES Electromagnetic Calorimeter (EMC).
// first sketch bei I.Koenig 2017,
// continued by JAM (j.adamczewski@gsi.de) 23-apr-2018
//
/////////////////////////////////////... |
44868ffde82116f6b4d5f12fdeb54df52e71c069 | 2a2c909ca11664fbfe3bbac77b60d9ff68c6f3d4 | /C_C++_Projects/BAPS Contest/echo/pyramidhotel.cpp | d5de1bf84123de4d27e5f6ee8ff8cfc5ffa20184 | [
"MIT"
] | permissive | sunjerry019/RandomCodes | d8049ca188d7f0daeee4a9b43d119ab026a9027c | 4402604aaeee63bb1ce6fa962c496b438bb17e50 | refs/heads/master | 2021-01-12T14:32:02.077792 | 2019-05-19T15:42:48 | 2019-05-19T15:42:48 | 70,065,532 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 512 | cpp | pyramidhotel.cpp | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define mp make_pair
#define sz(x) (int)(x).size()
#define all(x) (x).begin(),(x).end()
#define pb push_back
#define UNIQUE(x) (x).resize(distance((x).begin(),unique(all(x))))
int n,a[1000005],mem[1000005];
int main() {
scanf("%d",&n);
for ... |
26031ebab7b959f771af21c868d936dddb34214e | 61d75c697efc330cfd420396851fc4a4db341b22 | /XmlParser/XmlParser/xpath_parsing.cpp | 61c838637e1102f17ca7e73e8e73faf0b77fe38b | [
"MIT"
] | permissive | startrunner/fmi-intro-programming-xml-parser | 17c82375937a31e8ac92bcfb3b18819fc58db2f3 | 461b0f740c507a53f7e272232476d5bd3a1c5c1e | refs/heads/master | 2020-04-17T08:55:05.827551 | 2019-01-19T19:23:51 | 2019-01-19T19:23:51 | 166,433,641 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,477 | cpp | xpath_parsing.cpp | #include "pch.h"
#include <sstream>
#include "xpath_parsing.h"
#include "text_token_stream.h"
#include "xpath_token_stream.h"
using namespace std;
bool remove_forward_slashes(cached_token_stream &tokenStream);
bool try_parse_segment(cached_token_stream &tokenStream, xpath_query_segment &segment);
xpath_query parse_xpa... |
2085a60841f24e91c8cfcf841cea8f84b3cba58e | 5bc96f9f57fd7a676bb36633dc261ee888f2af8b | /node2edge.h | f4049288423b6772ddd963bfeb2525cc93a5ed95 | [] | no_license | bdwoods/hamcycles | 2c61938b830e5fec4794d451a6ee3dd40168a873 | c90b74eb7c3591abbb675912f44969e6cc966449 | refs/heads/master | 2021-01-10T19:42:18.848613 | 2014-05-13T01:00:06 | 2014-05-13T01:00:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 273 | h | node2edge.h | #ifndef NODE2EDGE_H
#define NODE2EDGE_H
#include <iostream>
#include <vector>
#include "instance.h"
#include "tour_generator.h"
#include "triple_generator.h"
using namespace std;
void node2edge(Instance& inst, TourList& tList, TripleList& tripList, string fName);
#endif |
1608473940f43ba70322c4d6ffd464fec22e9ea0 | 1f1046c7540b51b300edef70582299ab9ad18cab | /Ponteiro/Ponteiro - Ponteiro com valores.cpp | b9fe915ebe25ea3d7643558907129abf694f8cec | [] | no_license | PedroTorres10/Estudos-C | d5056fd430ae09c50c9a406edb824321dc91fe30 | b115c4c37d30e3f78a52f4555a9e8a1bb8b01dcb | refs/heads/master | 2022-04-15T05:03:59.512027 | 2020-03-25T14:17:41 | 2020-03-25T14:17:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 320 | cpp | Ponteiro - Ponteiro com valores.cpp | #include <stdio.h>
#include <stdlib.h>
#include <locale.h>
int main()
{
/*vetores com ponteiro*/
setlocale(LC_ALL,"Portuguese");
int *ptr,i,vet[5] = {44,12,96,31,28};
ptr = vet;
for(i=0;i<=4;i++)
{
printf("\n Vet[%d] eh %d ptr = %d",i,vet[i],*ptr);
ptr++;
}
}
|
27b61e83ec1b585cc9508bb1ea9f5da8a63a6512 | acc86b0196216f3eac41b5d5bd1b90bd3b5bffd8 | /computer-vision/main-f2d.cpp | e199543a74a98a8674e35367f838308788473a88 | [] | no_license | berkealgul/Some-little-stuff | 5090521888056eae895c12e4e3ddcc095cbc19f3 | 0470e162d530a2c788ca6789d9ca903f4254aa81 | refs/heads/master | 2022-12-16T18:00:37.448156 | 2022-12-03T19:43:43 | 2022-12-03T19:43:43 | 170,331,655 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,087 | cpp | main-f2d.cpp | //
// Created by berkealgul on 20.01.2021.
//
#include <iostream>
#include <string>
#include <vector>
#include <opencv2/opencv.hpp>
using namespace cv;
/*
// 1366x768
std::string RES = "1366_768";
Rect ROI_RECT(Point(810, 15), Point(1110, 75)); //1280_960
int ICON_SIZE = 28;
*/
// 1280x960
std::string RES = "1280... |
8c71de4c7d012e1d76c5b8e657afb055b35f0357 | d9c7b2eddc18b9732c81795667b96783a43ded11 | /Layer.h | 7ca092086578b69eeff98f4452ff471da1f41f0f | [] | no_license | CrayonProof/neuraNet | 86ef88995a929f596e37efb27fae9d5b0188412e | 5f46eb6e1b1f174632f65e5e6c856c768b85fded | refs/heads/master | 2020-04-13T00:24:36.389983 | 2019-01-12T21:45:58 | 2019-01-12T21:45:58 | 162,844,698 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 309 | h | Layer.h | #pragma once
#include<ctime>
#include<vector>
#include<string>
class Layer
{
public:
Layer(int nodeCount);
Layer(std::vector<double> weights);
void setWeight(int index, double value);
std::string toString();
private:
std::vector<double> weights;
std::vector<double> biases;
}; |
923732c80a61440dba21dd1c638a64cde1075221 | 83abad6209b7bad655116788a491151282dd13e4 | /lab13 - csp/cpp/ex1.cpp | de226caddd91d0867c2266ad00c75b3424b334d4 | [] | no_license | usmanayubsh/ec102-lab | 914c253e9cbfdf82583d68357b534083e44eb525 | de81401791183bcf065aff36ab428b8c838a99c0 | refs/heads/master | 2021-01-10T02:04:17.479998 | 2016-02-05T09:39:13 | 2016-02-05T09:39:13 | 48,316,041 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 401 | cpp | ex1.cpp | // demonstrates return values, converts pounds to kg
#include <iostream>
using namespace std;
float lbstokgs(float); // declaration
int main()
{
float lbs, kgs;
cout << "Enter your weight in pounds: "; cin >> lbs;
kgs = lbstokgs(lbs);
cout << kgs << endl; // 4
cout << lbs; // 3
return 0;
}
f... |
05d04733982599561bef902c6d04a82a7eb9a5c3 | 69e8af5defbb694794a0437084be69c10319b0d9 | /threading/packaged_task.cpp | 4aeca8913ef94327a98ef3b44bc883fc6f6cc42b | [] | no_license | OpsRaven/SenecaOOP345-attic | 64e79ff5313e1eed69c787182218f5b5e3b826d5 | b8f9c2bae3c10e24e17e5d037172bcad8a21563b | refs/heads/master | 2021-01-16T20:49:13.917549 | 2016-02-12T18:22:16 | 2016-02-12T18:22:16 | 52,182,396 | 2 | 0 | null | 2016-02-21T00:08:34 | 2016-02-21T00:08:34 | null | UTF-8 | C++ | false | false | 1,862 | cpp | packaged_task.cpp | // http://naipc.uchicago.edu/2014/ref/cppreference/en/cpp/thread/packaged_task.html
// GB changed pow to ipow. 'pow' generated syntax errors.
// GB added direct and function object calls
#include <iostream>
#include <cmath>
#include <thread>
#include <future>
#include <functional>
int ipow(int a, int b) { return (... |
066981402fc636eb327b06d720d8fbf6b98f33db | cc9486b5164831b3d725382a2b2fa73350509262 | /test/test.cpp | 6798db4fef162453258d95a4f1b9145dda17ba7b | [] | no_license | andrea321123/Probably-Monopoly | 8100cccd55f32ae94629b2a0e9a3253a77cfdee2 | 48e093d5452e2ab53f864da19d1dd50db0beafe6 | refs/heads/master | 2023-01-30T03:43:18.174357 | 2020-12-08T12:04:50 | 2020-12-08T12:04:50 | 291,329,165 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 128 | cpp | test.cpp | // Test.cpp
// Version 1.0
//
#define CATCH_CONFIG_MAIN
#include "catch.hpp"
TEST_CASE("Test", "[test]"){
REQUIRE (true);
} |
6d6c178d8a270ae3cc3200633352de68ac079a33 | 6bc3f5955699fcdac540823c51354bc21919fb06 | /USACO/1.2/dualpal/dualpal.cpp | 0e123199dd88e356102c661d9c6093a21f4efbca | [] | no_license | soroush-tabesh/Competitive-Programming | e1a265e2224359962088c74191b7dc87bbf314bf | a677578c2a0e21c0510258933548a251970d330d | refs/heads/master | 2021-09-24T06:36:43.037300 | 2018-10-04T14:12:00 | 2018-10-04T14:12:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,048 | cpp | dualpal.cpp | /*
ID: soroosh4
LANG: C++11
TASK: dualpal
*/
//In The Name of God
#include <bits/stdc++.h>
#define Init ios_base::sync_with_stdio(0),cin.tie(0)
#define WFile freopen("dualpal.in","r",stdin),freopen("dualpal.out","w",stdout)
#define forar(i,n) for(int i = 0; i < n;i++)
#define fori(i,a,b) for(long long int i = a; i < b... |
522280f9f8c22dfae92e585b0423e998f8878bc0 | 92e7773ec876c6a3522b4ba4715a1367086efae4 | /src/TestReader.cpp | 35ece13f5da9552aa12deceaf35c36ef0b96cc7d | [] | no_license | pentifica/hydrolix | 15c84abd3be365a347ab7974c028cfb5ddc07470 | b2304db95585661836098da87983674c5ab0b027 | refs/heads/main | 2023-02-10T05:08:49.621172 | 2020-12-23T22:55:49 | 2021-01-05T19:59:02 | 322,294,495 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 907 | cpp | TestReader.cpp | #include <TestReader.h>
#include <Factory.h>
#include <vector>
namespace {
using namespace example;
std::vector<Token> tokens {
Token(Token::Type::document_start, "", ""),
Token(Token::Type::record_start, "", ""),
Token(Token::Type::list_start, "list", ""),
Token(Token::Type::key_value, "key", "... |
a86d10576ebed62a56908c38696689d68741b116 | 54a5252386764b04c2a4589c4633d012c6e92a28 | /Reitai_Action/maingame.h | 120a7c360aa24cf57e60cd774573f0e2a6aa82b7 | [] | no_license | dameboshi/Reitai_action | 5fd4040277b1d1a2b0e381c339e5d0dace0baa01 | 975e0a3af86d47d90ee3e508e7dd44816c1a1d8a | refs/heads/master | 2021-01-20T23:31:44.533627 | 2014-12-23T15:09:15 | 2014-12-23T15:09:15 | 28,269,465 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 264 | h | maingame.h | #include "basestate.h"
enum STAGENUMBER{
s1_1,
s1_2,
s1_3,
s1_4,
s1_5,
s1_b,
};
class MainGame : public BaseState{
private:
int stagenumber;
int limit_time;
public:
MainGame(int sn);
void Init();
void Calc();
void Draw();
void Load();
int End();
}; |
0e443dbabd6848e7a7bb1f7e2f79c20d2ae2d561 | 460fab5f4b3456b03415e75a4a21c174b34548b3 | /CubeSat_GPS/RTC.ino | c975e829643b6ec46bc1c7062c09e14b47bb75c4 | [] | no_license | wusatteam/WUSATP1 | b4ed01c117af8dba2a87cced30a2487a93c28e4e | d80e3d070fab4f89d036d88bf26038a7afd4a5bf | refs/heads/master | 2020-06-03T19:38:59.567460 | 2013-04-13T12:04:15 | 2013-04-13T12:04:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 902 | ino | RTC.ino |
void RTC_init() {
Wire.begin();
RTC.begin();
if (! RTC.isrunning()) {
// following line sets the RTC to the date & time this sketch was compiled
RTC.adjust(DateTime(__DATE__, __TIME__));
#ifdef DEBUG_ON
Serial.println(F("\tRTC: Batt Error"));
#endif
}
}
void RTC_timestamp(){
// char ti... |
9a1249aad8cbac7636b45fcabb51b65437f936fd | 1bf751bd9f1f0fd2c1eaa7939ec65681fc194e65 | /apps/myApps/Furakut/src/FractSrc.cpp | c3f083c048d6b3472412af0ae1cf94129a995f51 | [
"MIT"
] | permissive | SatoshiSann/OpenFrameWorks | 599e1e9f130c0e5cb4eeff11bbccfe0b8752387a | b650552449a8909e650b9899580433b1628ea03a | refs/heads/master | 2020-04-26T11:24:51.479076 | 2015-08-15T21:16:02 | 2015-08-15T21:16:02 | 40,785,122 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,565 | cpp | FractSrc.cpp | #include "FractSrc.h"
void FRACT::Saiki(int n,ofPoint p1,ofPoint p2,ofPoint p6 ,ofPoint p7){
ofPoint p3,p4,p5,p8,p9,p10;
float WIDTH_HARF = ofGetWidth()/2;
float HEIGHT_HARF = ofGetHeight()/2;
float xRadi = 360/300;
float zRadi = 360/135;
float xRadi2 = 360/200;
float zRadi2 = 360/67;
... |
eee1617397dc5dc16934f2e99951440f0c1660ef | c58f59f978f3977d004f748a178696820d5ac095 | /Div2A/441A.cpp | 1ecc8a7862ffd6d821d123ce460113b40b4b64bd | [] | no_license | Shreyas14398/CF | 39b828b413fd70adb3338ad6df42846ddd02ac25 | cdbc4de96a31cbe8fd191901a38569837121fa5f | refs/heads/main | 2023-01-20T16:17:23.807179 | 2020-11-30T02:25:50 | 2020-11-30T02:25:50 | 313,029,918 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 646 | cpp | 441A.cpp | #include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define fs first
#define sc second
using namespace std;
int main()
{
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin) ;
freopen("output.txt", "w", stdout) ;
#endif
ios :: sync_with_stdio(false); cin.tie(0); cout.tie(0);
int n, k;
std::vector... |
c8a79112e8be607eccb539f3adb462407b3bfc3c | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/windows/advcore/ctf/aimm1.2/aimmwrap/atom.cpp | 9315023ebbb4e71506c56d948784944963afa1c2 | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 1,459 | cpp | atom.cpp | /*++
Copyright (c) 1985 - 1999, Microsoft Corporation
Module Name:
atom.cpp
Abstract:
This file implements the CAtomObject class.
Author:
Revision History:
Notes:
--*/
#include "private.h"
#include "atom.h"
#include "globals.h"
//+----------------------------------------------... |
1cc551e9ba7ec1850ed9f5dafeb8cde02146f4fb | d9b296cb9b821fc8b6f9506b2e887773116e4555 | /chap3/c++프로그래밍 챕터3 실전문제 7.cpp | e692b376341d54805436b2a3705a1a498f3f09b7 | [] | no_license | studyinggggggggg/c-study | 2aada67d186dbcf297f2bc97a0ce5cea310d7654 | d5ac07443cd4d37c09b407f6ff7201c49fc0d3b3 | refs/heads/master | 2022-11-23T11:19:42.991525 | 2020-07-08T13:32:24 | 2020-07-08T13:32:24 | 276,918,023 | 0 | 0 | null | 2020-07-03T14:26:44 | 2020-07-03T14:24:21 | null | UHC | C++ | false | false | 984 | cpp | c++프로그래밍 챕터3 실전문제 7.cpp | #include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
class Random {
public:
Random();
int n;
int next();
int nextInrange(int x, int y);
};
Random::Random() {
srand((unsigned int)time(0));
}
int Random::next() {
while (true) {
n = rand();
if (n % 2 == 0) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.