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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
46d01c4782f29861cadbed1a2c3243749d002b09 | 9f3b36db26d5c8cd14aab82400c6aff282db1ad7 | /src/Util/Serialization.cpp | e53b294910d8fe189bd1d0e3b934c5f2c5659f74 | [] | no_license | MichaelKirsch/SFML_2D_BLUEPRINT | a9f5f7c1d66b25ea640ae3c7e86464f91fced036 | 7aeeae479114a63728dee9c8afda1c2af7c44b01 | refs/heads/master | 2020-08-04T22:51:19.597893 | 2020-06-29T16:16:38 | 2020-06-29T16:16:38 | 212,302,460 | 7 | 4 | null | 2019-12-06T17:41:58 | 2019-10-02T09:37:27 | HTML | UTF-8 | C++ | false | false | 71 | cpp | Serialization.cpp | //
// Created by micha on 19.12.2019.
//
#include "Serialization.h"
|
958d57c245cbe235372956c3b524bece27ff49c2 | 2b0ff7f7529350a00a34de9050d3404be6d588a0 | /036_其它/78_JavaScript 呼叫MFC 函數/自己撰寫範例/test00/testDlg.cpp | 4f00437c06cbe84a65278af19e811728ce8d2b6f | [] | no_license | isliulin/jashliao_VC | 6b234b427469fb191884df2def0b47c4948b3187 | 5310f52b1276379b267acab4b609a9467f43d8cb | refs/heads/master | 2023-05-13T09:28:49.756293 | 2021-06-08T13:40:23 | 2021-06-08T13:40:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,282 | cpp | testDlg.cpp | // testDlg.cpp : implementation file
//
#include "stdafx.h"
#include "test.h"
#include "testDlg.h"
#include <atlbase.h>//modify by jash
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CA... |
4680b426c3dfd0c4c974cba6f0f596e8c4cb9202 | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/40/95fbacaa689b78/main.cpp | b14b4f1de96892caa8b95b206459a818d24a45f2 | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,577 | cpp | main.cpp | #include <boost/multi_index_container.hpp>
#include <boost/multi_index/member.hpp>
#include <boost/multi_index/ordered_index.hpp>
#include <boost/multi_index/composite_key.hpp>
#include <iostream>
namespace bmi = boost::multi_index;
enum TimePoints { // Lets assume t1 > t2 > t3 > t4
t1 = 100,
t2 = 80,
t3 ... |
8dc8a4e5ae679460a08a073a9c0521d81ef44a01 | 662b9b154faf6fed5a8f4e755c7989890c347d64 | /src/test_pcd.cpp | a54dd6a18a2066bd6b1c170e168ab2b96cd03c9d | [] | no_license | aaron-chenjianhui/DepthCam | 03df41f320f74bcee4c250c265c85d5924625255 | d7f4caa6378d10dc7946335dcf81e81a96d00700 | refs/heads/master | 2022-06-27T11:32:37.326082 | 2018-08-03T03:28:50 | 2018-08-03T03:28:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 808 | cpp | test_pcd.cpp | #include "DepthDevice.hpp"
#include "CloudView.hpp"
#include "PCDHandler.hpp"
int main(int argc, char *argv[])
{
DepthDevice depth_device({ RGB_VGA, DEPTH_VGA, POINT3D_VGA });
depth_device.InitDevice();
depth_device.OpenDevice();
depth_device.UpdateDevPose("../../config/extrinsic.xml");
pcl::PointCloud<pcl::P... |
17d5c606e1a1ed04cc5409733a9d070e2652d710 | 1a5a1c951d79425a91e0d78980418b031850ba0d | /sort on alphatical.cpp | f5ffa784b48a8c2f3b0834101cb63e5064579efa | [] | no_license | harsh-gulati-14/Competitive-programming- | 12d718e32a96c22d53da3e6ee6605d7216dd806a | a549105680ca952498a18c0861e9c800bd0f454d | refs/heads/master | 2020-11-25T12:08:33.220010 | 2020-10-17T11:51:17 | 2020-10-17T11:51:17 | 228,651,039 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 447 | cpp | sort on alphatical.cpp | #include<iostream>
using namespace std;
int check(int n)
{
if(n>10)
{
int d,r=0,k;
k=n;
while(k>0)
{
d=k%10;
r=r*10+d;
k=k/10;
}
if(n==r)
{
return n;
}
else{
return 0;
}
}
}
int main()
{
long i,j,k,l,n,a[10000],r=0,c=0;
cin>>l;
while(l--)
{
cin>>n;
for(i=0;i<=3*n/2;i++)
{
r=check(i);... |
1fa6db0a6fb15f94775f6d408d2c58b5e10b72f5 | 58039587c1a0d8308e09fb324825a61fbb38d007 | /source/renderer/actor/mesh/MeshPane.hpp | 726684a69faa8e7d8ae28fdbc9374952393adf0b | [] | no_license | rgnter/moony | 91037b596cf9b11d01804235c68fd300d74d99d4 | dee02d72b8d47d5dac3d7c256c145d1a2437ba6e | refs/heads/master | 2022-12-24T13:10:05.175156 | 2020-10-13T10:42:45 | 2020-10-13T10:42:45 | 303,445,256 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 427 | hpp | MeshPane.hpp | //
// Created by maros on 10/13/2020.
//
#ifndef MOONY_MESHPANE_HPP
#define MOONY_MESHPANE_HPP
#include "Mesh.hpp"
class MeshPane : Mesh {
public:
MeshPane() {
this->vertices = new float[]{
-0.5f, -0.5f, 0.0f,
0.5f, -0.5f, 0.0f,
0.0f, 0.5f, 0.0f
};... |
b5911584f24cedaad2053e3de97f0bd950e59674 | 4213fd574b08a9bc4c02de4fc5fddec53e99994a | /grupcntl/include/MODEL02-IMBNUM.inc | 995e2eb27c691294b530ae37303b839f3f4082b1 | [] | no_license | OPM/opm-tests | a5a76fa747b7076c65cb05b8a7536939344aaf9f | c92774e32de36d5a2309f1fdd8d9251ebe53fc6e | refs/heads/master | 2023-08-28T01:06:21.274269 | 2023-08-23T21:03:02 | 2023-08-23T21:03:02 | 121,263,124 | 21 | 70 | null | 2023-09-14T08:39:55 | 2018-02-12T15:22:07 | ECL | UTF-8 | C++ | false | false | 18,520 | inc | MODEL02-IMBNUM.inc | -- This reservoir simulation deck is made available under the Open Database
-- License: http://opendatacommons.org/licenses/odbl/1.0/. Any rights in
-- individual contents of the database are licensed under the Database Contents
-- Copyright (C) 2018-2022 Equinor
--
-- This file is a REGION property file containing the... |
74f0c6f1fb59519c276dfc6633beae78b0d2c6f1 | 07ac16b79fd00078de5dad36b8af75b701be2227 | /unit_tests.cpp | 5c08feddd3cf5374e7d76b0599e48191b9e12b99 | [] | no_license | samvel1024/JNP5 | 3301da716f21cee407bcb021bde5b518fb70a624 | e2030815bfbd375e9d175f50cba1ae9e63ba0a4b | refs/heads/master | 2020-04-10T09:21:33.500987 | 2018-12-26T19:59:05 | 2018-12-26T19:59:05 | 160,934,062 | 0 | 0 | null | 2018-12-19T13:02:11 | 2018-12-08T11:50:59 | C++ | UTF-8 | C++ | false | false | 9,081 | cpp | unit_tests.cpp | #define BOOST_TEST_MODULE CitationGraphTests
//#include <boost/test/excecution_monitor.hpp>
#include <boost/test/included/unit_test.hpp>
#include <boost/multiprecision/cpp_int.hpp>
#include "citation_graph.h"
#include "dag.h"
#include "citation_graph.h"
#include "Publication.h"
class PublicationExample {
public:
ty... |
79b171dce3b1ba904d08373021936fa149c337f1 | e9b6e9938ce3bf009be1dbf2c00b1f5aeb79a3a6 | /trollBox/src/menuStart.h | 01aff499a6571fe3ea87c4a6d218198cebef8dd1 | [] | no_license | Galliezb/trollBox | f16ffa76ff71a7d65fbd8ba709a1b9d2ac62e836 | 0ead2f5588c666bd30f793d7d58af85e5b9cb4ed | refs/heads/master | 2021-03-24T12:09:33.006137 | 2017-05-16T16:24:22 | 2017-05-16T16:24:22 | 83,933,476 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 2,302 | h | menuStart.h | #pragma once
#include "SoundManagement.h"
#include "game.h"
#include "TypingLetter.h"
class menuStart {
public:
menuStart();
void afficherMenu();
void changeNameRight();
void changeLetter( bool positif=true );
string createName();
string createText(string str);
void init(SoundManagement* ptrMyPlayerRecieved, o... |
9d87fe018445d3380a1b5573d3c56f03f2018a7e | cb66d2b8f040c9e432eb3df0bb31242d37800fe3 | /demos/camera_demo/src/remotecameracontroloutput.cpp | 06c6f49f8b6606315210a9b482cc89c3a6f92425 | [] | no_license | GaloisInc/pirate | a99d3b8527ed533c9f52b4262d628f0755f62a3f | 07609e8483471c02adcd3efdab9d9b8a23d22d05 | refs/heads/master | 2023-03-28T04:25:03.515692 | 2021-03-12T23:44:57 | 2021-03-12T23:44:57 | 218,866,238 | 11 | 4 | null | 2021-03-12T23:44:58 | 2019-10-31T21:40:09 | C++ | UTF-8 | C++ | false | false | 9,422 | cpp | remotecameracontroloutput.cpp | /*
* This work was authored by Two Six Labs, LLC and is sponsored by a subcontract
* agreement with Galois, Inc. This material is based upon work supported by
* the Defense Advanced Research Projects Agency (DARPA) under Contract No.
* HR0011-19-C-0103.
*
* The Government has unlimited rights to use, modify, rep... |
86f6de8bee353544793173df638bbeed7b420056 | 607d438d4a0a2a7e7f291f9ab42efc02759f3bee | /甲级/A_B_Format.cpp | 01c868028edb45fc350db71f12d571fbaaa2452f | [
"Apache-2.0"
] | permissive | HelloWST2019/PTA_SuanFa | 167838cddc5121780cab93c71b5e215da51f3cd0 | c8b7d3781c98d4aeb4657f5363f730f918d1f49c | refs/heads/master | 2020-08-10T20:31:21.165052 | 2019-10-11T16:10:58 | 2019-10-11T16:10:58 | 214,415,086 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 641 | cpp | A_B_Format.cpp | #include<cstdio>
#include<cmath>
#include<iostream>
using namespace std;
int main(){
const int MAX=100000;
long a[MAX]={0},b[MAX]={0},sum[MAX]={0};
long h=0,h1=0,k=0;
//while(scanf("%ld",&a[h++])!=EOF&&scanf("%ld",&b[h1++])!=EOF){
while(cin >> a[h++] >> b[h1++]){
sum[h-1]=a[h-1]+b[h1-1];
};
while(... |
eb86e99b4b1e9e2a42a2139736c3126c87387cf7 | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /third_party/blink/renderer/platform/graphics/compositor_mutator.h | 5f5b3cb7c9e5e6b9076d7f32996be59553bd5d34 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0"
] | permissive | meniossin/src | 42a95cc6c4a9c71d43d62bc4311224ca1fd61e03 | 44f73f7e76119e5ab415d4593ac66485e65d700a | refs/heads/master | 2022-12-16T20:17:03.747113 | 2020-09-03T10:43:12 | 2020-09-03T10:43:12 | 263,710,168 | 1 | 0 | BSD-3-Clause | 2020-05-13T18:20:09 | 2020-05-13T18:20:08 | null | UTF-8 | C++ | false | false | 971 | h | compositor_mutator.h | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_COMPOSITOR_MUTATOR_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_COMPOSITOR_MUTATOR_H_
#in... |
b4444b8d71193ba058007a5276601e236b8ec56c | b0e5eb57206511d2016c727ed2843845219f8c5b | /brendlingerHiggsTestbed/Sample.h | 898615feca9f2a2b378fd3337a3719f22c83081e | [] | no_license | brendlin/brendlingerHiggsTestbed | 1b54fe0671cce3272ebcb74abac5ab10bb1755f6 | 9368739de0194e936bb4bc27d3e4319481f59e15 | refs/heads/master | 2023-08-17T22:53:27.685261 | 2017-05-05T08:54:52 | 2017-05-05T08:54:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,167 | h | Sample.h | #ifndef brendlingerHiggsTestbed_SAMPLE_H
#define brendlingerHiggsTestbed_SAMPLE_H
/**********************************************************************************
* @Package: MonojetSoftLepton
* @Class : Sample
* @Author : Rustem Ospanov, Doug Schaefer
*
* @Brief :
*
* Enum for dataset keys (samples) and... |
f53feb373ba08584aafd521078ec11eb9e641c1d | dcd07fb0f11821521b926cf65a1f8e42a3e87afc | /Graphics Objects/GraphicsObject_Null.cpp | 5ce58cf4d72dd405381eb547abf2621a9bed63a9 | [] | no_license | santoshp1995/Game-Engine | 9dfce27d9356582fc110460deebb207a7f071298 | f23e89555dcc8595d7c33840871a3f53dfaa426a | refs/heads/main | 2023-07-05T14:56:09.766539 | 2021-08-25T23:47:53 | 2021-08-25T23:47:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 415 | cpp | GraphicsObject_Null.cpp | #include "GraphicsObject_Null.h"
namespace Azul
{
GraphicsObject_Null::GraphicsObject_Null(const Model* const _pModel, const ShaderObject* const pShaderObj)
:GraphicsObject(_pModel, pShaderObj)
{
}
void GraphicsObject_Null::SetState()
{
}
void GraphicsObject_Null::SetDataGPU()
{
}
voi... |
a8bd8e56e91e9e9509ce8693677fb8c38de13484 | 461f81f2432ed373b2a354e3cf141914253c418c | /main/3d/inc/Vayo3dLightData.h | c844a2c9c60c71b9a518e16382d4184ac8b5cb62 | [] | no_license | shamozhishu/VayoEngine | bb3348e0e2998ff195ef791d65622b32d91ce9e2 | a28b85776dd7f178a0f9e34eec8ddcf81b765f0a | refs/heads/master | 2021-06-26T04:22:19.416528 | 2019-07-12T09:48:18 | 2019-07-12T09:48:18 | 141,963,573 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 895 | h | Vayo3dLightData.h | /*************************************************************************\
* 望友引擎1.0
* Copyright (c) 2018-2019 authored by 朱加浩
* 灯光数据
\*************************************************************************/
#ifndef __VAYO3D_LIGHT_DATA_H__
#define __VAYO3D_LIGHT_DATA_H__
#include "Vayo3dColour.h"
#include "VayoVect... |
fbc1f0d14b34533da56a620344b577cb6f5424fd | 0cb85cd0c88a9b9f0cca4472742c2bf9febef2d8 | /PDM/PDM2/heuristic/heur_psw.cpp | 7ccb752b829eea17a8e619d9ac1be7103c6aa860 | [] | no_license | seth1002/antivirus-1 | 9dfbadc68e16e51f141ac8b3bb283c1d25792572 | 3752a3b20e1a8390f0889f6192ee6b851e99e8a4 | refs/heads/master | 2020-07-15T00:30:19.131934 | 2016-07-21T13:59:11 | 2016-07-21T13:59:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,199 | cpp | heur_psw.cpp | #include "heur_psw.h"
// #define USERNAME "ADMINISTRATOR"
//
// #define SYSTEM_DRIVE "C:"
// #define WINDOWS_DIRECTORY SYSTEM_DRIVE"\\WINDOWS"
// #define PROGRAMS_DIRECTORY SYSTEM_DRIVE"\\PROGRAM FILES"
// #define PROFILES_DIRECTORY SYSTEM_DR... |
ef9187724f4922c608723c2f2a68bba0a792dc88 | 2d1716576d0342fe5f6a184046e3ceb5bf474cdd | /nauka/nauka1/src/random.cpp | 97d72568c1b8d111a7253e14df7e1e3a2cf2f743 | [] | no_license | zuza3012/cpp_nauka | 580aa438e884b49de1878729081e07c98bdd4ed8 | feb7a4bb420fcd889551d1e0d4832a0a9f8b0c10 | refs/heads/master | 2020-04-12T17:10:26.547603 | 2019-01-09T20:55:55 | 2019-01-09T20:55:55 | 162,636,930 | 0 | 1 | null | 2018-12-20T23:46:21 | 2018-12-20T22:18:01 | C++ | UTF-8 | C++ | false | false | 85 | cpp | random.cpp | #include "random.h"
Random :: Random(){
srand(time(NULL));
}
Random :: ~Random(){}
|
432fe3b870804332f0a188579f3f26401e282c80 | 0365291d1ea6ddf6ce6979b6d1593d05e66db4f2 | /Hash.cpp | ed4fc030e88bb902f2f2fcb6f0bfb149fbec5034 | [] | no_license | sumfattytuna/Zim_CSCI2270_FinalProject | a625e8d377bc445b6712bce015f04e0ac3d671d0 | c4dd80a7a4e241ed890115318a537a256a9a49f6 | refs/heads/master | 2021-01-25T08:54:03.916957 | 2015-05-03T00:43:01 | 2015-05-03T00:43:01 | 34,361,572 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,055 | cpp | Hash.cpp | #include <stdlib.h>
#include <iostream>
#include <stdio.h>
#include <string>
#include "Tree.cpp"
#include "Tree.h"
#include "Hash.h"
using namespace std;
void Hash::hasher()
{/*
for (int j = 0;j <tableSize; j++){
HashTable[j] = new movie;
HashTable[j] -> title = "empty";
HashTable[j] -> year =... |
219f1ecf36da0cc377bfd48eee65346b3133b9c9 | 51745485212767c9a3b3e31cb9a13e4a73226327 | /FinalProject/part1/particleSimulator/src/Random.cpp | 58f6a00d90525e16790f7a1fc6109c22417c86ca | [] | no_license | LukeParkhurst/CS5310_GraphicsCollab | 67029c30961a6db3aa747f4034b9c6fdf3e2a1fb | 326a517fe9546feb9b51090f73fb88a3d2b9dd97 | refs/heads/master | 2023-06-01T23:44:18.096096 | 2020-08-12T14:15:30 | 2020-08-12T14:15:30 | 377,647,268 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 178 | cpp | Random.cpp | //
// Created by Evil Dr Coconut on 8/10/2020.
//
#include <Random.h>
std::mt19937 randomEngine;
std::uniform_int_distribution<std::mt19937::result_type> distribution;
|
8509796d06de90b5b0aeefe690dffe1af46e64db | a064312df4c6d7b9f3e386e1a345410ed80b152e | /terminal.cpp | 2098af9bde54a1b4c6d3acf96c26d973caa860b7 | [] | no_license | AnoushSim/Terminal | d86719ecdfe2485fb23286fcf0e67fc931029526 | eecca29a513438c078594fccea15d3f56980c79f | refs/heads/master | 2020-03-25T00:14:34.410002 | 2018-08-01T15:35:00 | 2018-08-01T15:35:00 | 143,175,550 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,874 | cpp | terminal.cpp | #include <iostream>
#include <sstream>
#include <cstring>
#include <string>
#include <fstream>
void make_directory (std::string* , int size);
void change_directory (std::string* , int size );
void cur_directory (std::string* , int size );
void tree_function (std::string* , int size );
void touch_function (std::string... |
0fc4e009dfb672de09a76f71e1d8552aa1d12c4d | 8ff8b4a895bb6cf36de71d65ecb7ca31d7501dc1 | /src/main.cc | b84228deb7edc27a6fb1c55f4187aaf9cd6703cc | [] | no_license | Tiarna/prpa | 1a41eca261ee2184aa7b434a3983ac53324bd35c | 111348e76164326b6c297dff4766545437c704f4 | refs/heads/master | 2016-09-10T20:13:14.473413 | 2014-07-16T14:46:28 | 2014-07-16T14:46:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,575 | cc | main.cc | #include "main.hh"
/*Uint32 getpixel(SDL_Surface *surface, int x, int y)
{
int bpp = surface->format->BytesPerPixel;
Uint8 *p = (Uint8 *)surface->pixels + y * surface->pitch + x * bpp;
switch(bpp) {
case 1:
return *p;
break;
case 2:
return *(Uint16 *)p;
break;
case 3:
... |
140161cdd9bdc645486c71f21fce03fc70392476 | 1ce9442d4977339f042fa404b22a6aba11a5c89d | /so lazy to find a name/bai 1.3.cpp | edf298c69cff0bfe730751eb167e3d1a137aa701 | [] | no_license | Phananhkiet0825/Data-Structure-and-Algorithms | 97f6703dc85b0f3d046a481f9851bc0703b4d710 | ff565b3ee82ae49e1ab7d82ac932ae99f5580188 | refs/heads/main | 2023-01-12T01:17:55.668657 | 2020-11-11T16:59:21 | 2020-11-11T16:59:21 | 309,437,212 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,128 | cpp | bai 1.3.cpp | #include<stdio.h>
#define MAX 100
typedef struct NHANVIEN
{
char maNV[11]; //kieu chuoi= mang ky tu
char hoTen[41];
float luong;
}NV ; //ket thuc khai bao co cham phay
//nhap 1 nhan vien
void Nhap(NV &nv)
{
printf("\nMoi nhap ma nhan vien= "); gets(nv.maNV);gets(nv.maNV);
printf("\nMoi nhap ho ten nhan... |
634489cdfbf0263e3888706effd53fdde95c4e79 | 5acf251ef1b0b3fc7e6da3de4b336c8a5b71a2ee | /QuickSort/main2.cpp | c380a7dcdb564f1c56cfeea0958c27eef771c5fb | [] | no_license | frankyyyt/DataStructure-Algorithm | 0c023cfffe6a089a15a2f5101a04fad6f02a4db3 | af4b2e3c3f36f1fcea33ce3f09c11cdbcd1e008c | refs/heads/master | 2021-01-25T09:26:28.490390 | 2016-09-19T13:08:49 | 2016-09-19T13:08:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 538 | cpp | main2.cpp | #include<iostream>
using namespace std;
int partition1(int* a,int p,int r)
{
int k=a[p];
while(p<r)
{
if(p<r&&k>a[r]) r--;
a[p]=a[r];
if(p<r&&k<a[p]) p++;
a[r]=a[p];
}
a[p]=k;
return p;
}
int qsort(int* a,int p,int r)
{
int k=qsort(a,p,r);
qsort(a,p,k-1);
... |
78e4e36609fce27342c509afd6cc87afe436c5dc | ded976908e71b10c82036ea54857176374c7caa0 | /gameObj.cpp | 81799aae65ce6f1313a241a9d31d8f6a56458fdb | [] | no_license | mattConn/snake-game | f1dffccf4cd21d89ec86412cf841f0e903869f49 | 00070f01d7f67a7fd4f99e19c443e1f5c9b76b3b | refs/heads/master | 2020-11-27T14:36:33.737924 | 2020-07-12T23:06:45 | 2020-07-12T23:06:45 | 229,492,199 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,105 | cpp | gameObj.cpp | #include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <cassert>
#include <string>
#include <utility>
#include "SDLw.h"
#include "game.h"
#include "debug.h"
#include "gameObj.h"
// default constructor
gameObj::gameObj()
{
rect = SDLw::rect(0, 0, 1, 1);
};
// detailed constructor
// takes texture string, veloci... |
98542432eaea6ecbfa6ab727b381b8a0622d5046 | 9b8d942f833a0dd081bcec08583d02647178418d | /EX07_Joystick/EX07_Joystick.ino | 6729f6a150b5875f5d8afa8746e461f66350d6e2 | [
"MIT"
] | permissive | titos-carrasco/Taller-Arduino-Basico | 4c7ca59bc4ab798a917624d8e1583f6e23fdd238 | a46689cea1dae573df06a985c2c359e52a6d8220 | refs/heads/master | 2021-01-25T04:57:29.705265 | 2015-06-17T23:35:55 | 2015-06-17T23:35:55 | 24,537,173 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,268 | ino | EX07_Joystick.ino | /*
Control con Koystick
*/
int pin_vrX = 0; // pin (A0) al cual esta conectada la salida del eje X
int pin_vrY = 1; // pin (A1) al cual esta conectado la salida del eje Y
int pin_sw = 12; // pin al cual esta conectado la salida del boton
// Incluye la libreria del LCD
#in... |
f9175e833fc82c7107b57eac69599302b3829909 | d35a2833ea92b90b06cb5c6c5374407be1cced41 | /src/line_block.cpp | b87d9cde063ebeb33d4b6d906a4df3b1c68cdcdd | [
"BSL-1.0"
] | permissive | qubusproject/carrot | 51047aabcd3b3eef044eb20973391b9df05bdc9b | a56c0fc89190a1b2e026e413052b370584694983 | refs/heads/master | 2021-06-24T14:00:02.180938 | 2020-10-11T20:35:52 | 2020-10-11T20:35:52 | 138,066,180 | 0 | 0 | BSL-1.0 | 2020-10-11T20:35:53 | 2018-06-20T17:41:33 | C++ | UTF-8 | C++ | false | false | 1,929 | cpp | line_block.cpp | // Copyright (c) 2015-2018 Christopher Hinz
//
// Distributed under 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)
#include <carrot/line_block.hpp>
#include <carrot/form_view.hpp>
#include <algorithm>
#include <utility>
namespac... |
85382cde18877760aa87c79c853d5135dd8af18e | 565b0a88c0d6f8a71d42f919613a1d166889c8bb | /Code/Easy Problems/CodeForces 100030D Broadcasting (水).cpp | 0b4d0a54bf2ebfcf924b767fce4c3717a8c5ed27 | [] | no_license | DaDaMrX/ACM | 71d7347640e745ea30518762588f6a698722295b | 603cff542027db7875bfc57d92c9cdaba1f82c80 | refs/heads/master | 2020-04-12T06:23:25.442550 | 2017-07-30T11:01:48 | 2017-07-30T11:01:48 | 62,130,184 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 699 | cpp | CodeForces 100030D Broadcasting (水).cpp | /************************************************************
CodeForces 100030D Broadcasting (水)
数学上ans=ceil(log(n)/log(k+1)),但计算对数特别容易丢失精度,改用while累乘
************************************************************/
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <cmath>
using namespace std;
typedef lon... |
dd997ef0b8e75a7ab16ae54b5f7864be0cfeedbc | 8c615b3c51c152d95e9e470c5479871f411e3117 | /src/inputValidation.hpp | 26c53b090b5d43f9a797ee215e02e70976787412 | [] | no_license | kelleyneubauer/bigger-or-better | 9157c6c5d4a7f8d02773db01cb7e608b1a2ed8d4 | d3c6cfbcbf2d9debbf6182d678f240c8e459d0f1 | refs/heads/master | 2023-02-14T17:09:17.883484 | 2021-01-08T23:38:14 | 2021-01-08T23:38:14 | 290,588,654 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 494 | hpp | inputValidation.hpp | /*******************************************************************************
*
* File: inputValidation.hpp
* Author: Kelley Neubauer
* Date: 10/1/2019
*
* Description:
* This is the header file for my inputValidation function (CLASS?).
*
*****************************************************************... |
8de044b6a8f61455b8e62e5fa70c0b43028732e6 | ee948e2bbfa08b79323cb28b99b63f09d5e39682 | /sources/tests/require-unit-expert-test.cpp | 82f5006c1eaa2c94eb3ae6cb9fd67d7cd2c86801 | [] | no_license | LordBlackhawk/bw-karl | 6c8808cd0472a6fcf6500b03c218fcc01b76908c | 20ca5958781b856c5861882cddd4c0f8838542fd | refs/heads/master | 2016-09-05T23:57:30.543228 | 2014-11-13T20:17:50 | 2014-11-13T20:17:50 | 35,498,576 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,866 | cpp | require-unit-expert-test.cpp | #include "blackboard-fixture.hpp"
#include "plan/broodwar-boundary-items.hpp"
#include "plan/broodwar-plan-items.hpp"
#include "expert/require-unit-expert.hpp"
BOOST_FIXTURE_TEST_SUITE( larva_test, BlackboardFixture )
BOOST_AUTO_TEST_CASE( basic_larva )
{
auto b1 = createOwnUnitBoundaryItem(BWAPI::UnitTypes::Zerg... |
0bb9df8cf9b6dfd2b2ad9fd97649b11d0b854bea | d33b232ae41dcca316c590f35d59209176ab185d | /Tools/ResourceEditor/Classes/Qt/DockSceneTree/SceneTreeDelegate.cpp | 3ca8fb4506b9e86749b11d6b575992d17bf20dbc | [] | no_license | dominik111/dava.framework | fd10e75cb76090301dd765de3885fe7f62570e75 | 3650cb7541bad8188d0ac043a804f3eea99b972b | refs/heads/master | 2021-01-17T22:59:46.358803 | 2013-10-11T14:20:14 | 2013-10-11T14:20:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,809 | cpp | SceneTreeDelegate.cpp | /*==================================================================================
Copyright (c) 2008, DAVA, INC
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions o... |
c2750ae539e48ee68bccb909ad8ec1ff7c7e8019 | 719ef202149d3ab0864c6a4723b3301f736e0dec | /src/甲级/1049.cpp | 698ca86638e136ab22e158f3d9f33f61d7688401 | [] | no_license | SuYindu/PAT | b74d63b97c9995329bbaf58331a6117514eb3f42 | e8b4078456f91e97fed57e337ce7f2d39d66ab03 | refs/heads/master | 2021-11-29T11:40:17.872722 | 2021-11-23T02:54:24 | 2021-11-23T02:54:24 | 173,454,325 | 21 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 424 | cpp | 1049.cpp | #include <iostream>
using namespace std;
int main() {
int n, m = 1, ans = 0;
cin >> n;
while (n / m) {
int left = n / m / 10;
int digit = n / m % 10;
int right = n % m;
if (digit == 0) ans += left * m;
else if (digit == 1) ans += left * m + right + 1;
e... |
65f88364cd0d67f79d706c8a7f6240545d355bd3 | 26524fec2231290c65a0bf126943101bb8b8300c | /LIBCMODELX/MODELX/MODELX/CTransform.h | 4287256a1e5ead3f17a658b4b4983d813a8b1fbb | [] | no_license | programminggp/2DLV1 | d424a946fe9f92c15c20a76f5986f19a3bf628f5 | fbe8394189431897312e74caf32e500ea2c8cd13 | refs/heads/master | 2023-09-01T13:38:35.309123 | 2023-09-01T11:45:01 | 2023-09-01T11:45:01 | 176,943,495 | 2 | 1 | null | 2022-05-26T09:56:53 | 2019-03-21T12:49:43 | C | SHIFT_JIS | C++ | false | false | 1,124 | h | CTransform.h | #ifndef CTRANSFORM_H
#define CTRANSFORM_H
namespace modelx {
class CVector;
class CMatrix;
/*
トランスフォームクラス
位置、回転、拡縮、変換行列の基本クラス
*/
class CTransform {
public:
//位置の取得
const CVector& Position() const;
//位置の設定
//Position(位置)
void Position(const CVector& v);
//回転値の設定
//Rotation(回転値)
void Rotation(con... |
65eda10d0d6114ba9ff0ca91c70b06ed38561452 | 4d5fab92b1155ea8b131af3d2af2a48c0b9a7726 | /game of life.cpp | f935206155335cbde3e9df2a9242ff5794a02124 | [] | no_license | hpp3/GameOfLife | 98ced012789851e2ecdbf4ffe7ea3e684e127f13 | a5c9e8a7b2f35420b8df8ea8fc59c8f39a6fd003 | refs/heads/master | 2021-01-10T19:59:15.177206 | 2013-01-30T00:26:55 | 2013-01-30T00:26:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,106 | cpp | game of life.cpp | #include <iostream>
#include <fstream>
#include <cstdlib>
#include <allegro.h>
const int height = 80, width = 120;
int resolution, border;
bool world[width][height];
bool next[width][height];
BITMAP *buffer;
bool quit;
using namespace std;
int neighbours(int x, int y);
void step(int &age);
void display(int age);
voi... |
249c3a6167fcbcd785037c7baf14f51fc031f603 | 842416a74cc58a709f28ecb9c7c99d7cb9abbf35 | /askforleave.cpp | cc1fa43b6f3c794493fd1d108626f5e4d39f08b7 | [] | no_license | Jasmine-Chan/Office_Park | 6cf187d6fbc27c908d643548c6bdce0800ea8dfe | 60c6981bf21557383bbd9e8786f10d5a5a778455 | refs/heads/master | 2021-01-12T12:15:36.071728 | 2016-11-09T03:39:33 | 2016-11-09T03:39:33 | 72,393,508 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 23,782 | cpp | askforleave.cpp | #include "askforleave.h"
#include "ui_askforleave.h"
askforleave::askforleave(QWidget *parent) :
QWidget(parent),
ui(new Ui::askforleave)
{
ui->setupUi(this);
// QTextCharFormat textCharFormat;
// textCharFormat.setAnchorName("周");
// textCharFormat.setAnchor(true);
// ui->LeaveCalendarWidget-... |
2eae106d3c415fab574a7ab3965202b0865e1997 | 694174d01d8b8c61f056b2299f88564e081a4844 | /2017校招编程/网易/暗黑的字符串.cpp | 25049f82c2d4b03f40b97c73a8f8b6c0a24b0287 | [] | no_license | BaldrLector/Personal-Practice-for-job | c32122c3d4e76acc14d9911e5a5d0787574ac348 | 7e377d823f65ed151cbe4085727f2a94862eacc8 | refs/heads/master | 2021-09-10T21:25:49.850921 | 2018-04-02T05:27:24 | 2018-04-02T05:27:24 | 124,490,630 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,089 | cpp | 暗黑的字符串.cpp | /*
题目描述
一个只包含'A'、'B'和'C'的字符串,如果存在某一段长度为3的连续子串中恰好'A'、'B'和'C'各有一个,那么这个字符串就是纯净的,否则这个字符串就是暗黑的。例如:
BAACAACCBAAA 连续子串"CBA"中包含了'A','B','C'各一个,所以是纯净的字符串
AABBCCAABB 不存在一个长度为3的连续子串包含'A','B','C',所以是暗黑的字符串
你的任务就是计算出长度为n的字符串(只包含'A'、'B'和'C'),有多少个是暗黑的字符串。
输入描述:
输入一个整数n,表示字符串长度(1 ≤ n ≤ 30)
输出描述:
... |
a9d78971d76635d921b006f91ae3ad1428fc43e9 | 74019a333068870756afc7ef6d7d55e6f0447fe1 | /sawOpenIGTLink-dev/code/mtsOpenIGTLink.cpp | 255411c77069b05018c74c15144cd7acde98f416 | [] | no_license | lixiao89/usoverlay_final | 0d48ee262546aa704680420e973fd759b8d3baca | 9b88d154d305d2e1404a2a17b83eb3f3810775b7 | refs/heads/master | 2016-09-06T08:18:19.214470 | 2015-07-11T21:29:09 | 2015-07-11T21:29:09 | 38,940,927 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,121 | cpp | mtsOpenIGTLink.cpp | /* *- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
/*
Author(s): Ali Uneri
Created on: 2009-08-10
(C) Copyright 2009-2012 Johns Hopkins University (JHU), All Rights Reserved.
--- begin cisst lice... |
ca3ee2c1d9d607560f30077b0a34948a389b6034 | 2f2c142d7aa568411a2e9a6c70f882910501e648 | /WavFile.cpp | 817d341960820b3180c834faa80a90e31276fb4d | [] | no_license | pipmix/AudioEngine | df26062497f988e427938c63d466d2772be4afb1 | 222f63fb850270a51e7c433c261437baf5f9141d | refs/heads/master | 2021-01-12T11:55:31.387321 | 2016-09-28T06:32:59 | 2016-09-28T06:32:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,097 | cpp | WavFile.cpp | #include "stdafx.h"
#include "WavFile.h"
WavFile::WavFile(){
m_waveFormat = { 0 };
m_buffer = { 0 };
m_wavData = nullptr;
m_voiceDetails = { 0 };
m_voiceState = { 0 };
m_wfx = { 0 };
}
WavFile::~WavFile() {
delete[] m_wavData;
m_wavData = nullptr;
}
void WavFile::Create()
{
}
void WavFile::Load(std... |
7406bce6ab7f9844da3dc05d504da142038b016b | 3fd26a7cd44d214f2aefe2a07063a2665ace93b4 | /digit_dp.cpp | 4d0e22344eabfe7e4421139de4139abb573dec6e | [] | no_license | octopus0110/MyLibrary | de0e0e34d91ed482ccf4d8c1d5324e4a91aff3c3 | c0bf91a28958f7167676e4aa41196b4f32576d09 | refs/heads/master | 2023-03-20T12:15:02.052894 | 2021-03-11T17:46:03 | 2021-03-11T17:46:03 | 277,846,249 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,231 | cpp | digit_dp.cpp | #include <iostream>
#include <vector>
using namespace std;
template<class T> using V = vector<T>;
template<class T> using VV = V<V<T>>;
template<class T> using VVV = V<VV<T>>;
using LL = long long;
using VLL = V<LL>;
using VVLL = V<VLL>;
#define REP(type, i, n) for (type i = 0; i < (type)(n); ++i)
#defi... |
6266524d87deb5d090510284b6a6282ac54dee4c | 575099783e3ac92a4bbf5a755e767f7041f12c5f | /header/parser/HighOp.hpp | a3d8a14cd6198161b42a7b8964348b4b5826c971 | [] | no_license | Kevin-Costa/cpp_bomberman | a70f22ccb270d6463e008e2e1eddbf3e455632cc | eb2c377a2a7da752333d998af6d561259246bf3b | refs/heads/master | 2021-01-10T16:48:58.732111 | 2016-02-29T09:06:22 | 2016-02-29T09:06:22 | 52,778,074 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 896 | hpp | HighOp.hpp | //
// HighOp.hpp for bomberman in /home/rousse_3/rendu/cpp_bomberman
//
// Made by rousse_3
// Login <rousse_3@epitech.net>
//
// Started on Wed May 27 03:27:41 2015 rousse_3
// Last update Sat Jun 6 17:06:50 2015 rousse_3
//
#ifndef HIGHOP_HPP_
# define HIGHOP_HPP_
# include "Parser.hpp"
class HighOp : publ... |
b1803a1f844f9f6d7f9fcf89befe29abb538787d | 87c12524efba5a739caa1f8b31b503f4bf1e2979 | /dquery.cpp | beda9ecc4415f1934320a97623dc291e81e5bf71 | [] | no_license | Ironman0505/Spoj-1 | fe234ab5f70f239090caece9ca888df3de61c22a | d4e6db21ee1ce6cc5bc65a61ae1aeb0d30d0278d | refs/heads/master | 2022-01-18T22:17:03.575047 | 2014-09-01T18:42:56 | 2014-09-01T18:42:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,165 | cpp | dquery.cpp |
//Author : Piyush Agarwal
#include<bits/stdc++.h>
using namespace std;
#define ll int
#define mod 1000000007
#define inp1(a) scanf("%lld",&a);
#define outl(a) printf("%lld\n",a);
#define out(a) printf("%lld ",a);
#define line printf("\n");
#define FOR(i,b,e) for(i=b;i<=e;i++)
#define mp make_pair
#define pb push_back... |
5a83d66ea7bc536159d43525b70cfab2959f5044 | f6a5b7480f5f977c229cf29b1742499e12624090 | /Code/RubDivSolverV1.cpp | 384b7c743fc0fb6f65fcd44fd575537f8790bfe2 | [
"MIT"
] | permissive | spencerparkin/RubiksDivide | a812308b8bc1c91f191f5eeccd77d44189dd8bf6 | 816219594da38aef594f700034789d7d093280a7 | refs/heads/master | 2021-01-01T18:17:01.127111 | 2015-06-27T00:20:01 | 2015-06-27T00:20:01 | 37,741,005 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,636 | cpp | RubDivSolverV1.cpp | // RubDivSolverV1.cpp
#include "RubDivSolverV1.h"
RubDivSolverV1::RubDivSolverV1( void )
{
puzzleClone = 0;
}
/*virtual*/ RubDivSolverV1::~RubDivSolverV1( void )
{
wxASSERT( puzzleClone == 0 );
}
/*virtual*/ bool RubDivSolverV1::Solve( const RubDivPuzzle* puzzle, RubDivPuzzle::MoveList& moveList )
{
wxASSERT( pu... |
2f87389a1e16c50c83b437b03406b71917863c3f | 140b21b8faa8182ac4c96ef1b177702396b1b632 | /x10.runtime/x10rt/common/x10rt_front.cc | a4b206c9cba816ca8ce3003f18bbc7603f66bcfd | [] | no_license | manuelmohr/x10i | fac437a9ba3c29a20f743dd6c1ea37bcc053660e | a2b4761691dfd05b0d8c77c40a0b586e46b8508d | refs/heads/master | 2021-08-18T19:34:11.681152 | 2017-09-25T11:21:30 | 2017-09-25T11:21:39 | 111,830,404 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,487 | cc | x10rt_front.cc | #if defined(__CYGWIN__) || defined(__FreeBSD__)
#undef __STRICT_ANSI__ // Strict ANSI mode is too strict in Cygwin and FreeBSD
#endif
#include <cstdlib>
#include <cstdio>
#include <x10rt_front.h>
#include <x10rt_logical.h>
#include <x10rt_net.h>
static x10rt_msg_type counter = 0;
static bool run_as_library = false;... |
a8b56a99483a42a31b964ba8e174801f614a3f94 | b005e76d8f20308335dadc9fd0a5a64e3813d777 | /Recursion/Recursion_JosephusProblem.cpp | 3c7c3e669bab4ab3abe5c97448c8746d294cee0b | [] | no_license | saa27/Data-Structures | 7951ab0e2cfdb4ff9afb8386f25dcd26570fb49f | 8823680b3654917ca637700dd060715815567819 | refs/heads/master | 2023-06-22T13:30:03.479668 | 2021-07-10T05:07:48 | 2021-07-10T05:07:48 | 280,473,117 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 676 | cpp | Recursion_JosephusProblem.cpp | #include <cmath>
#include <cstdio>
#include <vector>
#include <stack>
#include <iostream>
#include <algorithm>
#include <bits/stdc++.h>
using namespace std;
void solve(vector<int>v, int k, int index, int &ans){
if(v.size() == 1){
ans = v[0];
return;
}
index = (index ... |
0b955ccfd67d634aa82ca70de32217113749f4d7 | 3f114af0f20d20b10548edf19f821afba0799d10 | /main_app/main_app.ino | 702c3857ac83dec41a3d5259fc5bf1e4687f05da | [] | no_license | JAICHANGPARK/esp32_ble_ota | 9c5538eb86227c4bcaf57c707339ae0f9f8d695b | a04312ce1cb29ca6778c6059083a0272653dfbfc | refs/heads/main | 2023-04-19T07:49:28.481098 | 2021-05-02T10:06:36 | 2021-05-02T10:06:36 | 353,535,413 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,480 | ino | main_app.ino | #include "FS.h"
#include "SD.h"
#include "SPI.h"
#include <Update.h>
#include <BLEDevice.h>
#include <BLEServer.h>
#include <BLEUtils.h>
#include <BLE2902.h>
BLEServer *pServer = NULL;
BLECharacteristic * pTxCharacteristic;
BLECharacteristic * pOtaControlCharacteristic;
bool deviceConnected = false;
bool oldDevice... |
e305aa117e446910f42902c0022722f5e2529e8d | 11a3307520cdf33c49f2e63f77a8da4526459a25 | /LongestCommonSubsequence.cpp | 33f114e4c582646f5ed5722196a3bcad18fbd48a | [] | no_license | anup-k1/DP_practice | 444b5928f867e636c5171f64f543ddd97a08116f | f1c8e7797060b40f88cc603a697f8f067f1943ef | refs/heads/main | 2023-02-18T01:51:25.364076 | 2021-01-09T14:31:04 | 2021-01-09T14:31:04 | 327,966,141 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,250 | cpp | LongestCommonSubsequence.cpp | //LCS - longest comimon susequence.
#include <iostream>
#include < string>
#include <vector>
using namespace std;
int LCMDynamic(const string &s1, const string &s2)
{
int strSize1 = s1.size();
int strSize2 = s2.size();
vector<vector<int>> K (strSize1+1, vector<int> (strSize2+1));
int maxm = 0;
... |
01a533d5f6362ad2b477a6471336acf8d4fac757 | aff7c365be316e90540afdd3afbd690a38a1565c | /RTP_HLS/RTP_HLS/libmov/source/mov-mfhd.cpp | 4eb63888990cdc393e7a610b2907f671a8ca54f8 | [] | no_license | chxj1980/rtp_hikvision_test | c7887a50768dcd3b9a9e9b417a04358b2a97c44d | fb3effe57f1b70b04964d5ec6d54d528b8ec6596 | refs/heads/master | 2022-04-09T03:13:43.097407 | 2020-03-05T08:06:00 | 2020-03-05T08:06:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 657 | cpp | mov-mfhd.cpp | #include "../include/mov-internal.h"
#include <errno.h>
#include <stdlib.h>
#include <assert.h>
// 8.8.5 Movie Fragment Header Box (p70)
int mov_read_mfhd(struct mov_t* mov, const struct mov_box_t* box)
{
(void)box;
mov_buffer_r32(&mov->io); /* version & flags */
mov_buffer_r32(&mov->io); /* sequence_numbe... |
a718ba04b925c11360ce8dd3be4b4e7280b37bcc | 3f05b45ba295e7d388689b05d309b704425386df | /correctbalance.cpp | 9a7cf7391443ac26730b18095a0f442c5fcba6a3 | [] | no_license | sergey196510/mycash | 9d5e42d968b729f8739e9b9913b0eaec0e07d27b | d91e851b1a3a19c0d3a3a3c8e8975f177409d791 | refs/heads/master | 2023-03-02T12:34:21.061386 | 2021-01-24T12:39:32 | 2021-01-24T12:39:32 | 332,447,640 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,454 | cpp | correctbalance.cpp | #include "correctbalance.h"
#include "ui_correctbalance.h"
CorrectBalance::CorrectBalance(QWidget *parent) :
QDialog(parent),
ui(new Ui::CorrectBalance)
{
ui->setupUi(this);
ui->lineEdit->setValue(var.CorrectAccount());
// ui->okButton->setIcon(QPixmap(":icons/accept.png"));
// ui->cancelButton... |
956f8fb72b294fdd951868d8a21a8105d245b1ff | 9b718a0002e5a6cd0a8fbb0e532968195630a291 | /grasp_ros2/src/ros_params.cpp | 5406281507e28990b2e93af08df0f69d00bdb350 | [
"Apache-2.0"
] | permissive | intel/ros2_grasp_library | 25368e47f7983e67f658e989d3efd21fea3e8aa8 | 505fa7353622b01334e950e50a0a027ff92788cf | refs/heads/master | 2023-05-27T14:27:05.363057 | 2023-01-31T00:22:13 | 2023-01-31T00:22:13 | 148,516,381 | 165 | 48 | Apache-2.0 | 2023-04-07T10:09:16 | 2018-09-12T17:25:24 | C++ | UTF-8 | C++ | false | false | 6,701 | cpp | ros_params.cpp | // Copyright (c) 2018 Intel Corporation. All Rights Reserved
//
// 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 ... |
6dc9ab6485f0dbe8c0e162a04b9fe1e7e17c374e | ad8271700e52ec93bc62a6fa3ee52ef080e320f2 | /CatalystRichPresence/CatalystSDK/DestructionEntityFactory.h | 6c29f66dc8b4418fcb6f4d0612d84fd6a4fd4c65 | [] | no_license | RubberDuckShobe/CatalystRPC | 6b0cd4482d514a8be3b992b55ec143273b3ada7b | 92d0e2723e600d03c33f9f027c3980d0f087c6bf | refs/heads/master | 2022-07-29T20:50:50.640653 | 2021-03-25T06:21:35 | 2021-03-25T06:21:35 | 351,097,185 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 456 | h | DestructionEntityFactory.h | //
// Generated with FrostbiteGen by Chod
// File: SDK\DestructionEntityFactory.h
// Created: Wed Mar 10 19:07:14 2021
//
#ifndef FBGEN_DestructionEntityFactory_H
#define FBGEN_DestructionEntityFactory_H
#include "IglooEntityFactory.h"
class DestructionEntityFactory :
public IglooEntityFactory // size = 0x28
{
publ... |
2a4d89078f25fc4e2f13ab98f28875df7ade2ea4 | 58e23b4e45ece5d297a3a270f5051228788c42c9 | /IO/src/ImageLoaderPVR.h | 901827b64a99d537a3ff095d743c6684b411e9ed | [
"Apache-2.0",
"Zlib",
"LicenseRef-scancode-public-domain"
] | permissive | playcanvas/FasTC | 7cd34ed7f971e9a62a9f3048327fd2257ae81c3d | b5d602116dd34cdb9bad5d4c11f05c2aaedc2fe9 | refs/heads/master | 2023-02-21T04:07:23.985122 | 2021-01-25T13:20:41 | 2021-01-25T13:20:41 | 329,951,542 | 0 | 0 | Apache-2.0 | 2021-01-25T13:20:42 | 2021-01-15T15:34:23 | null | UTF-8 | C++ | false | false | 1,001 | h | ImageLoaderPVR.h | // Copyright 2016 The University of North Carolina at Chapel Hill
//
// 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... |
a83a7db9930e32814156c018ab2e3dbecfe9814d | 4cfc6c4425786ac3128af32ed6a7c4d97b154a8f | /libraries/CustomHeaderLibs/ustd/shared_ptr.hpp | 13c888f4edbf0d8044f5a9bb08ce759dd16ed82d | [
"WTFPL"
] | permissive | mskoenz/arduino_crash_course | 9aa1417daa84442c20de27df11646bd40525d039 | cc7031e827dd13211cb9ce84f6d758f6e635e6a8 | refs/heads/master | 2020-05-16T23:58:43.635800 | 2019-11-18T09:00:33 | 2019-11-18T09:00:33 | 13,575,894 | 0 | 0 | null | 2013-10-24T14:39:30 | 2013-10-14T23:23:07 | C | UTF-8 | C++ | false | false | 2,748 | hpp | shared_ptr.hpp | // Author: Mario S. Könz <mskoenz@gmx.net>
// Date: 14.11.2013 00:38:16 CET
// File: shared_ptr.hpp
/* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Pu... |
8b33259ba8eb7aa55ee0977634d490e78a69b97d | 72a7b27678d75782ed5f5228d39138e6af4eb448 | /Milestone/Milestone/TeacherEditDlg.h | 261d2c86b8358511f381503b7dd1ecb372824631 | [
"MIT"
] | permissive | aclisp/large-scale | 9403167b903179ee6b47a253e826ae5cf9420ebe | 6ab382c919f75da5b562b1879122fe0086339915 | refs/heads/master | 2020-03-29T18:50:23.528563 | 2014-11-04T02:55:16 | 2014-11-04T02:55:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 625 | h | TeacherEditDlg.h | #ifndef __TeacherEditDlg__
#define __TeacherEditDlg__
/**
@file
Subclass of TeacherEditDlgGui, which is generated by wxFormBuilder.
*/
#include "TeacherDlgGui.h"
//// end generated include
/** Implementing TeacherEditDlgGui */
class TeacherEditDlg : public TeacherEditDlgGui
{
protected:
// Handl... |
30ae6c05e19e4c643bbb501d1deb1e94c86aa78f | f4b1142dce92f10f93d1531c151ed0df2ae0fb5e | /platform.cpp | f36627ee792ac1f96b746120fde6d04788a0ac43 | [] | no_license | rowanlovejoy/bounding-box | 91026112bba8bdf13548a34766af444e72c39cc9 | 329c99e8fb4e3667f575bc4b9c4c51f53bc8908b | refs/heads/main | 2023-04-25T08:02:28.536831 | 2021-05-03T09:47:18 | 2021-05-03T09:47:18 | 352,142,492 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 781 | cpp | platform.cpp | #include "platform.h"
#include <GLFW/glfw3.h>
#include "effolkronium/random.hpp"
Platform::Platform(const Model& model, const Shader& shader, const glm::vec3& position, const glm::vec3& size, bool oscillate, const glm::vec3& offset, const glm::vec3& scale)
: VisibleObject{model, shader, position, size, offset, scale}... |
be95e440e7349e9806a4aeea859eea060e57b061 | cd060892280983a64d1d463fcea7b3edbf843cf8 | /includes/Internal/Graphics/bk/RenderTargetImp.h | 11ad29559173fd914d32de754401d7af67af37e3 | [] | no_license | zhvirus/zhangtina | c8741d3cab4cc0929db6776dde3ce5a4733fabe1 | 88a6f85992861862e22cd9edbe852f45b8a62775 | refs/heads/master | 2021-01-21T04:31:30.673821 | 2016-06-29T03:14:16 | 2016-06-29T03:14:16 | 14,973,156 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 568 | h | RenderTargetImp.h | #ifndef RENDERTARGET_IMP_H
#define RENDERTARGET_IMP_H
#include "Common/ZHSTD.h"
#include "Internal/Graphics/Internal_common_graphics.h"
namespace ZH{
namespace Graphics{
class RenderTargetImp{
public:
RenderTargetImp( ID3D11RenderTargetView* );
~RenderTargetImp();
... |
64a53e96f514255b17bbf84e1b2dc7a3a4a51f25 | 25cfeb9c97b05fbb024007efa16775a215a7f5d1 | /80-89/088/B/B.cpp | 856079af91e1903c4487d19bdf1401d2c55b674a | [] | no_license | edamame8888/edamame-s_ABC | 626dde1b8f1ac61071cfe166cd6c08cc31371e72 | 41ce3164f20069f1e3a659a673350c76e36da04f | refs/heads/master | 2020-03-24T03:49:04.644221 | 2019-06-28T04:53:53 | 2019-06-28T04:53:53 | 142,433,980 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 353 | cpp | B.cpp | #include <iostream>
#include <algorithm>
#include <cmath>
#include <string>
using namespace std;
int main(){
int a,b,c,x,cnt = 0;
cin >> a >> b >> c >> x;
for(int i = 0; i <= a; i++){
for(int j = 0; j <= b; j++){
for(int k = 0; k <= c; k++){
if(500*i + 100 * j + 50 * k == x) cnt ++;
}
... |
00e38ecd914ce24b39344aa9b0480e7e1803f81d | 01e8e12a077ba1dc3df79a7294bf95f950f2a2cf | /Estimation/KalmanFilter.h | 6c555fac748dd58a620cfe2376f732e0a929c976 | [
"MIT"
] | permissive | TrevorDecker/RobotPlayGround | a75cab058a674eb541cc3e363e8ac5b6da400897 | b03551f7e481b400a390386e3a0528487bc13f2b | refs/heads/master | 2021-05-15T10:05:38.875385 | 2017-11-01T00:57:40 | 2017-11-01T00:57:40 | 108,233,501 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 557 | h | KalmanFilter.h | // KalmanFilter.h
// Written by Trevor Decker
// TODO think about makeing this a templated class, and removing pointers
#ifndef _KALMAN_FILTER_H_
#define _KALMAN_FILTER_H_
#include "State.h"
class KalmanFilter {
private:
// State Estimation
State* s;
// Covariance
public:
//constructor
KalmanFilt... |
6a58d68b90909cde27402f29032835fdf139efc9 | 939ed533e9b1ba919b89da6d63d4e9cdaa9ae040 | /2016_Algorithm/algo_hw4.cpp | 73d7f54d3f9745c4a53e8795e733d8615bd28167 | [] | no_license | digression99/SchoolProject | 5e8d4e1b030e1a4234aeffa73f2705ceb81a3b3a | f722841140dc101b077da62ec183814fe72e2cef | refs/heads/master | 2021-01-19T10:54:32.536380 | 2017-04-11T10:27:41 | 2017-04-11T10:27:41 | 87,915,187 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 3,152 | cpp | algo_hw4.cpp | #include <stdio.h>
#include <math.h>
typedef struct _Point {
int x, y;
}Point;
// 따로 기억해 놓아야 할 게 있을까?
// 가까운 두 점 -> 값을 굳이 리턴할 필요는 없다.
// 인덱스만 저장해 놓아도 된다.
// 가까운 두 점의 인덱스와 거리를 리턴한다?
// maximumSubarray 로직을 이용.
double getDistance(int x1, int y1, int x2, int y2);
double dacPointDistance(Point * A, int p, ... |
f79dad93e4cb217dd551af0430314e15c50e552f | 378bfafdfe7b39bed8e316445092109bf6a19a67 | /lib/lab03/src/fifo.cpp | 90e19f2fa50a0bafd40e19e169ec9bbcc0163c60 | [] | no_license | alexnorell/CMPE126-Labs | 5db9d417766538b49549bec0ffa6d5c52efd30c9 | 60a371982deb2bf48bdd24daa386500190409e7a | refs/heads/master | 2020-04-03T08:37:00.096469 | 2018-05-07T18:39:19 | 2018-05-07T18:39:19 | 155,139,004 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 587 | cpp | fifo.cpp | #include "fifo.h"
namespace lab3{
fifo::fifo() {
//Reserve 100 spaces in fifo_storage
}
fifo::fifo(std::string input_string) {
}
fifo::fifo(const fifo &original) {
}
fifo::~fifo() {
}
fifo &fifo::operator=(const fifo &right) {
//return <#initializer#>;
}
... |
61dcd4a36e627c9dad153b9e87d20481b908995a | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /DataFormats/CastorReco/interface/CastorCell.h | fbd8e9cb40248ff69797b99f649030b2c3621b94 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | C++ | false | false | 2,666 | h | CastorCell.h | #ifndef CastorReco_CastorCell_h
#define CastorReco_CastorCell_h
/** \class reco::CastorCell CastorCell.h DataFormats/CastorReco/CastorCell.h
*
* Class for CastorCells made of full simulation/data
*
* \author Hans Van Haevermaet, University of Antwerp
*
*
*/
#include <vector>
#include <memory>
#include "DataFo... |
8db0a2a1728a6e3fa1d728c2a22b99c55c8a0f31 | e346655ea759bb64459b6345c7be8089f06db263 | /Maximum_function_overloading.cpp | 69e786c2dd366cf6458328457cd01c0b5e9b578f | [] | no_license | knight-furry/Function-overloading | bc9b65dce8c8d769a78ed6112d002f22ba7c4939 | 952cf1d16c89e527fff2945640fd977671e92b31 | refs/heads/master | 2022-12-29T05:48:48.867068 | 2020-10-14T11:00:45 | 2020-10-14T11:00:45 | 298,488,332 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,353 | cpp | Maximum_function_overloading.cpp | #include<iostream>
using namespace std;
class Data
{
public:
int maximum(int , int);
int maximum(int *, int);
void maximum(int *, int, int);
int minimum( int , int);
int minimum( int *, int);
void minimum(int *, int, int);
};
int Data :: maximum(int m, int n)
{
if(m > n)
return m;
return n;
}
i... |
c523a3977fa4c46d464d4079b235aa4cdbdfda15 | 093b6813b0e7da9b768131dbc60732b3b9712179 | /include/LiveProfiler/Models/Shared/SymbolName.hpp | 97796e589cf9348097cf55b473b314428e5fd816 | [
"MIT"
] | permissive | Tifancy/live-profiler | d390a6c1b6a38c47b1c49f23949a15c3e0a15cee | f2908d1b26589d2624ccf029106fb623639c9720 | refs/heads/master | 2021-08-29T01:28:12.226890 | 2017-12-13T09:09:51 | 2017-12-13T09:09:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,441 | hpp | SymbolName.hpp | #pragma once
#include <string>
#include <memory>
namespace LiveProfiler {
/**
* Represent a symbol name in the executable file.
* The originalName and path should not be empty, the demangleName can be empty.
*/
class SymbolName {
public:
/** Getters and Setters **/
const std::string& getOriginalName() con... |
cd4d4e1dff4628c29ffac223224d9b3967b81753 | 7f2405ecb5a66ed6e5ce5cc0c969dd0a611becfe | /chatroomsDlg.cpp | 62d04e1a71896e44c8ee4bbe47b2f6075f8d569b | [] | no_license | kxf3199/chatrooms | 7d095f6aa0bb3065b0854f674daef812d0a5030d | 99e01b4e3ca4b5514421c0de78d410534f770473 | refs/heads/master | 2021-01-20T20:15:46.046401 | 2016-07-05T15:31:40 | 2016-07-05T15:31:40 | 62,648,596 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 13,146 | cpp | chatroomsDlg.cpp | // chatroomsDlg.cpp : implementation file
//
#include "stdafx.h"
#include "resource.h"
#include "chatrooms.h"
#include "chatroomsDlg.h"
#include "inc.h"
#include <afxtempl.h>
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
////////////////////////////////////////////... |
e27e8300152ff95a0fa096c4d4adf0004941652a | 7e2930716b8d87c9758d918b2474536a923a9d3f | /SDLut/src/Font/TTF/SDLFontExtend.cc | 1b82c63f6f54bb5a047ecc1bfaa6420e622f2c3b | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | asmodehn/sdlut | 85749ae4463a0875e6783eaeb901c3dd2a3c1653 | c59b9f539dccb17781bb131050adbb38e6f854ed | refs/heads/master | 2023-07-09T15:54:06.740218 | 2013-10-17T14:23:14 | 2013-10-17T14:23:14 | 13,437,128 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,509 | cc | SDLFontExtend.cc | #include "SDLFontExtend.hh"
#include "Video/internal/OpenGL/SDLGLSurface.hh"
#include "SDLConfig.hh"
using namespace Core;
namespace SDLut
{
namespace font
{
//if SDL_TTF used, provide a class to be used as a bridge.
//this way the client doesnt have to take care of which function is available
#ifdef WK_SDLut_FOUN... |
eb030b0ec00d4bb24197e0c04db01da05429d30d | d3ec57c11fe40b4c9c4949f56917fe768c370c31 | /SpriteSheet.cpp | df251a0897d644a5777261c4aadeff2215bea39c | [] | no_license | zjleblanc/PirateGame | 88ba0d8b873aabe9730e395c440b5e69d9f07c49 | 7eea696abb9a3d29ce6aab7a00389b53b868ca3f | refs/heads/master | 2016-09-15T19:05:27.581581 | 2014-05-01T01:24:28 | 2014-05-01T01:24:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,225 | cpp | SpriteSheet.cpp | #include "SpriteSheet.h"
#include "SDL_image.h"
#include "SDL.h"
// CONSTRUCTOR
SpriteSheet::SpriteSheet(string fileName) {
path = fileName;
sheet = loadSheet();
}
// DECONSTRUCTOR
SpriteSheet::~SpriteSheet() {
SDL_FreeSurface(sheet);
}
// PUBLIC METHODS
bool SpriteSheet::operator==(const SpriteSheet& testShee... |
53212b3d12119a0d9ef801b91b008af55a9d5a6b | 8067bf4fdd3d9dcbaee2fd4fe98ca3c26132c2a3 | /libsolidity/inlineasm/AsmData.h | 0361a4c2c18aa1367cab371f2acca646166bb1c7 | [
"MIT"
] | permissive | AlwaysBCoding/solidity | d7ab5c4eff022f90825e5b6205937c36f074eb42 | c492d9be00c843b8390959bd9f203c4047cb9f69 | refs/heads/develop | 2021-01-13T06:10:37.159465 | 2016-03-31T23:31:15 | 2016-03-31T23:31:15 | 55,323,559 | 2 | 1 | null | 2016-04-03T01:05:48 | 2016-04-03T01:05:47 | null | UTF-8 | C++ | false | false | 2,385 | h | AsmData.h | /*
This file is part of cpp-ethereum.
cpp-ethereum 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 your option) any later version.
cpp-ethereum is distributed in the... |
87351c87efa02c4ab7493d9b1d1e4a583c134f6f | d142829a061b5418d582c2dc39326ceffad3734e | /reverselist/reverselist.cpp | ccfcfbb400e8d7e8894c79ad26cc77da84f782fd | [] | no_license | Cauahu/hihoCoder-training | 662f3ac531916e1b4613ea5645a7fca130559156 | 252f327c3f8ec803721f35b1d65204dde93c4b31 | refs/heads/master | 2021-01-15T15:32:30.308033 | 2016-08-08T02:48:28 | 2016-08-08T02:48:28 | 54,168,241 | 0 | 1 | null | 2020-10-02T05:30:02 | 2016-03-18T02:44:41 | C++ | UTF-8 | C++ | false | false | 858 | cpp | reverselist.cpp | #include <iostream>
#include <vector>
using namespace std;
struct ListNode{
int val;
struct ListNode *next;
};
vector<int> printListFromTaillToHead(struct ListNode* head){
struct ListNode *p = head->next, *p_next = p->next;
head->next = NULL;
while(p_next != NULL)
{
p->next = head->next;
head->next = p;
p... |
add712693c0ab8440363ed36e921f000cb224faa | 9f51d7ba7e5455dbb3cc39cc114d0d2f1796a133 | /src/storage_pool.h | 526c68ba270e8446d0d8350e6360fd90818e1c21 | [
"MIT"
] | permissive | GaikwadPratik/node-libvirt | c2eee7bb37f8be0e9641adbc83798e8a71a182a1 | 6d0d6a08851e33ba02629bbfa601358180095c7c | refs/heads/master | 2020-03-24T11:22:28.016141 | 2019-01-09T16:59:16 | 2019-01-09T16:59:16 | 142,683,585 | 0 | 1 | null | 2018-12-19T23:54:01 | 2018-07-28T14:26:29 | C++ | UTF-8 | C++ | false | false | 3,543 | h | storage_pool.h | // Copyright 2010, Camilo Aguilar. Cloudescape, LLC.
#ifndef STORAGE_POOL_H
#define STORAGE_POOL_H
#include "nlv_object.h"
#include "nlv_async_worker.h"
#include "worker_macros.h"
#include "hypervisor.h"
namespace NLV {
struct StoragePoolCleanupHandler {
static int cleanup(virStoragePoolPtr handle) {
return v... |
9a74682349cc1473bbfd0d0ad651dcb52bd8dd6e | d61d05748a59a1a73bbf3c39dd2c1a52d649d6e3 | /chromium/third_party/blink/renderer/core/css/properties/longhands/zoom_custom.cc | 269a6107887bb579ab301c893164abdce676701b | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | Csineneo/Vivaldi | 4eaad20fc0ff306ca60b400cd5fad930a9082087 | d92465f71fb8e4345e27bd889532339204b26f1e | refs/heads/master | 2022-11-23T17:11:50.714160 | 2019-05-25T11:45:11 | 2019-05-25T11:45:11 | 144,489,531 | 5 | 4 | BSD-3-Clause | 2022-11-04T05:55:33 | 2018-08-12T18:04:37 | null | UTF-8 | C++ | false | false | 3,146 | cc | zoom_custom.cc | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/css/properties/longhands/zoom.h"
#include "third_party/blink/renderer/core/css/parser/css_parser_context.h"
#in... |
2bf5df14d427258880f3d44ed3768b992ad8dcce | 2be6caa86d197fc36328d9bd8575dd4bdd399bbc | /vugc2_control/src/steering.ino | 9ccbee8a83a9d8a23b9ece9afb70c33fab71c7ef | [] | no_license | vugolfcart/vugc2 | c214673de668e3d0e8dc4ccba45db4b95ffdec6d | 5a04dcdf176aba028cf7573e2914b66959fc8464 | refs/heads/master | 2020-05-18T16:42:35.354492 | 2020-02-29T16:39:31 | 2020-02-29T16:39:31 | 184,533,391 | 0 | 0 | null | 2020-02-29T16:39:33 | 2019-05-02T06:40:57 | Python | UTF-8 | C++ | false | false | 1,330 | ino | steering.ino | #include <ArduinoHardware.h>
#include <Wire.h>
#include <Adafruit_MCP4725.h>
#include <ros.h>
#include <vugc2_control/Steering.h>
#include <std_msgs/String.h>
// 12 bit DAC
Adafruit_MCP4725 T1;
Adafruit_MCP4725 T2;
int TRQ_CENTER = 2048; // 2.5V
int TRQ_LOWER = 0; // 0V
int TRQ_HIGHER = 4095; // 12 bits 5V
vugc... |
536eac7fa74566331829d55d3f0aa9b7d2152962 | 0be22da878ab8b5f6f3608b4d5296bf9759421ea | /CIS 350/CIS350P1/Source.cpp | 387e797a79f563b902eeb9f48f9102f558e23b85 | [] | no_license | holajason/SchoolProjects | 342f0741c32bbe44939a4bd73b57b13188b2476f | f55a46ea8955ee7c2705e0148387a8637f78d899 | refs/heads/master | 2020-06-23T07:36:46.437680 | 2019-08-21T22:14:23 | 2019-08-21T22:14:23 | 198,558,265 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,657 | cpp | Source.cpp |
//
// nagagram.cpp
// nagagram
//
// Created by Jason Lu on 1/30/18.
// Copyright ?2018 Jason Lu. All rights reserved.
//
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
class EquiClassess
{
private:
vector<vector<string>>classes;
vector<string>temp;
public:
/... |
23231d296cb7536aa2ff1271f3132e26378f96eb | e7aeb9c49f0d35caa1cea7f416ee1d238c8a2426 | /HDUOJ/HDU2010-水仙花数.cpp | a1296e406801980851384539515544ff91211d6a | [] | no_license | protectors/ACM | 1ee0c2ade796c5bda80fc0551647661c2b40c65a | a9b33912d8763c6af37fbbae4135b2761a69a2a8 | refs/heads/master | 2022-07-26T13:57:40.590234 | 2022-06-21T03:41:13 | 2022-06-21T03:41:13 | 85,793,349 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 841 | cpp | HDU2010-水仙花数.cpp | #include <cstdio>
#include <cstring>
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main()
{
int m,n,t,flag,i,a[1010],b,c,d,first;
memset(a,0,sizeof(a));
for(i=100;i<=999;i++)
{
b=i/100;
c=i/10%10;
d=i%10;
if(i==b*b*b+c*c*c+d*d*d)
... |
0042223ce6ccfaf9ebc4a6871f7e3656401988cf | 45b286742deac8638ec06e00c888e9554f5637d4 | /libraries/libym_mincov/ym_mincov/MincovSolver.h | ba7a47de02a8b3c36b9a518d689833c510cb9099 | [] | no_license | yusuke-matsunaga/minimaleda | 0800200f42474a2dbe08d94d977678d67ee085d1 | e0619bfd34baf3ca27c23d2f705067297209104a | refs/heads/master | 2021-01-20T20:03:15.199896 | 2016-08-02T03:43:11 | 2016-08-02T03:43:11 | 64,721,871 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,943 | h | MincovSolver.h | #ifndef YM_MINCOV_MINCOVSOLVER_H
#define YM_MINCOV_MINCOVSOLVER_H
/// @file ym_mincov/MincovSolver.h
/// @brief MincovSolver のヘッダファイル
/// @author Yusuke Matsunaga (松永 裕介)
///
/// $Id: MincovSolver.h 2507 2009-10-17 16:24:02Z matsunaga $
///
/// Copyright (C) 2005-2010 Yusuke Matsunaga
/// All rights reserved.
#incl... |
d345f75061f0f8e1ab59fec1629acd7a680a744f | 5c13d48ab1ca025820bb1fad7c07011cfc407bff | /mySqrt.cpp | d923e7b64a447a54a32cde39cc4f1f8a7390861a | [] | no_license | Saki-Zhang/LeetCode | 1d628c8712a0207ea713f232ba8fc39169ccee12 | 3688760ca116a5e639070793bd55039e15628b8d | refs/heads/master | 2023-04-18T03:18:07.590182 | 2021-05-08T19:38:19 | 2021-05-08T19:38:19 | 283,374,988 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 541 | cpp | mySqrt.cpp | // 69. Sqrt(x)
// https://leetcode.com/problems/sqrtx/
class Solution {
public:
int mySqrt(int x) {
if(x <= 1) {
return x;
}
int l = 2;
int h = x / 2;
while(l <= h) {
long m = l + (h - l) / 2;
if(m * m == x) ... |
d11d993ef7ab462d7f939459525b09daf0ebab90 | 18f686a3f56c1fc8e93a4bf42f7696252a494282 | /Pascal_sTriangle.cpp | af5bb2cb7a12403dd0b82a03045bacff417a672e | [] | no_license | husscc/leetcode | 7086ce9556f1504a28116b8bffb1f884b266d8cf | 447fd969e35da7f691cc6a900021954d24945d23 | refs/heads/master | 2021-01-10T21:08:33.264124 | 2013-01-28T15:58:40 | 2013-01-28T15:58:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 696 | cpp | Pascal_sTriangle.cpp | /*
Given numRows, generate the first numRows of Pascal's triangle.
For example, given numRows = 5,
Return
[
[1],
[1,1],
[1,2,1],
[1,3,3,1],
[1,4,6,4,1]
]
*/
class Solution {
public:
vector<vector<int> > generate(int numRows) {
// Start typing your C/C++ solution below
// DO NOT writ... |
d6805c5bb6ad2c98f0f035bc2a612a72c77967f4 | 9fd0b6465570129c86f4892e54da27d0e9842f9b | /src/runtime/libc++/test/iterators/stream.iterators/ostream.iterator/types.pass.cpp | 460da642bc6ed4912cf317fec92ca8fa7017433e | [
"BSL-1.0"
] | permissive | metta-systems/metta | cdbdcda872c5b13ae4047a7ceec6c34fc6184cbf | 170dd91b5653626fb3b9bfab01547612efe531c5 | refs/heads/develop | 2022-04-06T07:25:16.069905 | 2020-02-17T08:22:10 | 2020-02-17T08:22:10 | 6,562,050 | 39 | 11 | BSL-1.0 | 2019-02-22T08:53:20 | 2012-11-06T12:54:03 | C++ | UTF-8 | C++ | false | false | 1,635 | cpp | types.pass.cpp | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... |
ac28ed4405956a4818e6742c5d9fd4a9db0b7b86 | 6605d954d4aecb59d07aa48129f0751035efade5 | /src/Score.cpp | 1c1f350507c635a218883a1831c9aa383b126847 | [] | no_license | sylvaing19/sudoku | a3ec9d36f1d93dafa3aee7b0b201d413e9eeb98a | 37fa6c1a4de67e0f5ccfd16f9fa8c1817fb4a160 | refs/heads/master | 2016-09-06T02:06:54.293686 | 2015-05-26T19:41:45 | 2015-05-26T19:41:45 | 27,779,347 | 0 | 0 | null | 2015-08-27T09:16:31 | 2014-12-09T17:58:31 | HTML | UTF-8 | C++ | false | false | 3,426 | cpp | Score.cpp | #include "Score.h"
using namespace std;
Score::Score()
{
initialScore = 0;
gamePaused = true;
nbIndices = 0;
nbOfHighscore = 3;
saveFile = "highscore/highscore.txt";
pausedTime = 0;
}
void Score::initScore(Difficulte difficulte)
{
switch (difficulte)
{
case FACILE:
initialScore = 3000;
break;
case MOYE... |
5dffb901ec92304f33b3256eec56adedc573a138 | 35596c34d80d1378091090e6183cb0e1c27fdc4d | /src/pcl_tutorial/src/filter/extract_plane.cpp | adb0724807ca7928c80d98e1962931ea0616a253 | [] | no_license | YeeKal/grasp_ws | bdb22a04a52919621fd69d15a5ba274322f61102 | 7e40ddb871c4975f39f677ada035aac56d79e511 | refs/heads/master | 2020-09-02T04:12:41.745818 | 2019-12-31T05:26:35 | 2019-12-31T05:26:35 | 219,128,067 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,130 | cpp | extract_plane.cpp | #include <iostream>
#include <pcl/ModelCoefficients.h>
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
#include <pcl/sample_consensus/method_types.h>
#include <pcl/sample_consensus/model_types.h>
#include <pcl/segmentation/sac_segmentation.h>
#include <pcl/filters/voxel_grid.h>
#include <pcl/filters/extract_ind... |
7220c0d10de5637176c34ce08a94cb6e2b1890c3 | 63623bd1d0fb38cabfba9f02976f989d1a7cfd08 | /CCP5.CPP | 2ff82200e68de93f5847d45cae489859aeee40ce | [] | no_license | toshinCS173/NEWPROJECT | 8ab3fd0c6f2bd16282cbc0b043e97999f45a0fd4 | b73c49540e926fe1e96bc812ef1bec589642f6ab | refs/heads/main | 2023-07-07T13:11:26.021451 | 2021-07-21T05:05:09 | 2021-07-21T05:05:09 | 366,692,226 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 967 | cpp | CCP5.CPP | //WAP TO FIND ALL POSSIBLE ROOTS OF A QUADRATIC EQUATIONS//
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
clrscr();
int a,b,c;
float d,root1,root2;
double real_root;
double img_root;
printf("\n Enter the value for 1->co-efficient of x^2,\n 2->co-efficient of x,\n 3->constant: \n");... |
a0fd7c5df350590b5ecea96ee5d09552ea5c0129 | fca173faac354549b6b30d48ce8efef59b3a3357 | /admin/src/get-edges.cpp | cb1b2dceb18d28d5cf79022218a4462c6789c317 | [] | no_license | protein-bioinformatics/STAMPS | 4bf6a8210a05ce61263c51cd11cdb8720d7e8144 | 9270bac3b1f72d245950a91f85e8449239296a75 | refs/heads/master | 2023-05-02T04:27:01.726679 | 2021-01-29T11:19:27 | 2021-01-29T11:19:27 | 361,710,740 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,866 | cpp | get-edges.cpp | #include "bio-classes.h"
using namespace std;
void print_out(string response, bool compress){
if (compress){
cout << compress_string(response);
}
else {
cout << response;
}
}
class reagent {
public:
string id;
string reaction_id;
string node_id;
... |
772bf2902a69932fddedf26b6c0cef9380d3866d | 371c4ebdf1b207ca7e05f76be95cddbcfc978e14 | /source/Network/CMA_Optimizer.h | 3f52dfb9fdeb92adf09c2ec7ca340c0663e161e7 | [
"MIT"
] | permissive | bmewang/smarties | d7f93ad9bfdd4bf903a98f16f155f64c9e942420 | 1ed5f1a56e9e5012b5db582b4c5fca14af11fd20 | refs/heads/master | 2022-09-19T02:15:13.414697 | 2020-06-02T15:47:37 | 2020-06-02T15:47:37 | 270,935,413 | 1 | 0 | MIT | 2020-06-09T07:39:39 | 2020-06-09T07:39:38 | null | UTF-8 | C++ | false | false | 3,957 | h | CMA_Optimizer.h | //
// smarties
// Copyright (c) 2018 CSE-Lab, ETH Zurich, Switzerland. All rights reserved.
// Distributed under the terms of the MIT license.
//
// Created by Guido Novati (novatig@ethz.ch).
//
#ifndef smarties_CMA_Optimizer_h
#define smarties_CMA_Optimizer_h
#include "Optimizer.h"
class Saru;
namespace smarti... |
61d39c6762669e10f2de819507b459922ad13a64 | 06f7797201b33b684df77cf704d41f5d51af8c5b | /源码/Client/signin.h | 66b6b63a1dad3e35d013ad7b4cd64a5c1b9afeeb | [] | no_license | kyon1920/KoalaNotes | ebb807040f35fcd9a1893823d780fe23b98c92ae | e05cdd4f90436038e29a0f7af7ba1d8f71e59110 | refs/heads/master | 2022-08-06T06:59:41.147905 | 2020-05-16T07:19:38 | 2020-05-16T07:19:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 906 | h | signin.h | #ifndef SIGNIN_H
#define SIGNIN_H
#include "head.h"
#include "register.h"
namespace Ui {
class Signin;
}
class Signin : public QWidget
{
Q_OBJECT
public:
explicit Signin(QWidget *parent = nullptr);
~Signin();
void setWindow();
// void paintEvent(QPaintEvent *event);
void TikTok();
void ... |
bf5569ec1246e71c194082b3c8334a9f3201edd9 | e5ac23961f52bb8e7de6907833378493fcb8318a | /lexerGenerator/DFA/DFABuilder.h | e0232107233e04b4c84eb849726419fb061d9ee6 | [] | no_license | syedmuhammadhasan/Compiler-Generator | 80da6e813e170b9b4f05befa397ae67f0d919300 | 8f08a80c098f713c1cdb97a2e763bbc47bf0b682 | refs/heads/master | 2020-09-04T06:53:30.087052 | 2019-04-25T20:55:50 | 2019-04-25T20:55:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 471 | h | DFABuilder.h | //
// Created by Shazly on 3/24/2019.
//
#ifndef COMPILERS_DFABUILDER_H
#define COMPILERS_DFABUILDER_H
#include <DFAState.h>
#include "NFA/NFAState.h"
#include "DFAGraph.h"
class DFABuilder {
public:
DFABuilder(NFAState s){
startState = s;
}
DFAGraph buildDFA();
private:
NFAState startState... |
a718947693a2c584baa32065531e261276d51990 | 23819413de400fa78bb813e62950682e57bb4dc0 | /Rounds/Round-837/C/backup.cpp | f5da6a4cb8a89a19ba4c938c318a16f4164df5e2 | [] | no_license | Manzood/CodeForces | 56144f36d73cd35d2f8644235a1f1958b735f224 | 578ed25ac51921465062e4bbff168359093d6ab6 | refs/heads/master | 2023-08-31T16:09:55.279615 | 2023-08-20T13:42:49 | 2023-08-20T13:42:49 | 242,544,327 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 880 | cpp | backup.cpp | #include "bits/stdc++.h"
#ifdef local
#include "custom/debugger.h"
#else
#define debug(...) 42;
#endif
using namespace std;
#define int long long
constexpr int mod = (int)1e9 + 7;
void solve([[maybe_unused]] int test) {
int n;
scanf("%lld", &n);
vector<int> a(n);
int prod = 1;
bool ans = false;
... |
0a081f91063708693e77928c62851edc7c8d5669 | 446a749d41af0008ba557dca6a62c0fbf8fed3ad | /codeforces/Ladders/1500-1600/absurdity.cpp | d884732cb285c65bc0647a59dfe88715f1370dcd | [] | no_license | Sirivasv/ProgrammingChallenges | b8910f869548491a81e5352f72295a6886cc150e | 5d9039725b2947f392a179f75896b8a57b4537cb | refs/heads/master | 2021-01-12T09:08:15.814557 | 2020-05-15T21:40:14 | 2020-05-15T21:40:14 | 76,768,160 | 0 | 0 | null | 2018-10-13T17:18:12 | 2016-12-18T07:02:21 | C++ | UTF-8 | C++ | false | false | 821 | cpp | absurdity.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long lli;
const int MAXN = 200009;
int N, K;
lli arr[MAXN], barr[MAXN];
int main() {
cin.tie(0); ios_base::sync_with_stdio(0);
cin >> N >> K;
for (int i = 0; i < N; ++i)
cin >> arr[i];
lli sum = 0;
for (int i = 0; i < K; ++i)
sum += arr[i];
bar... |
4144342fd6deaec359d9497f718c98cb34219a03 | f50f5850d5be7f2c0e8061cb9b8197fc6e6bd99b | /Scanner.h | 46040faad191072028854ca39c8d9295753c4272 | [] | no_license | Bartholomew-m134/CoreInterpreter | 6431c50783a76c15a14be0d271c80ad4822b8977 | 19de7a4ee56c26f878d5227337a310343e328f36 | refs/heads/master | 2021-01-19T02:19:45.037497 | 2016-11-11T14:00:52 | 2016-11-11T14:00:52 | 73,479,749 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 812 | h | Scanner.h | #include <fstream>
#include <string>
#include "Tokenizer.h"
class Scanner {
public:
Scanner(char* fileName);
Token* getCurrentToken();
void getNextToken();
int getVariableValue(Token* token);
int setVariableValue(Token* token, int value);
std::ifstream* fileStream;
private:
void declareVa... |
1cebf3e8eec29a380ca7c4f97928be80f4136b2c | e14d3bb8862ac353e46f5dd174d467b63bd24318 | /colorED/colorED/matrix.h | b2015ba0713cbd9fd18458a80aa179e41fd8c12f | [] | no_license | dcsuju13/flowermodelling | d1f07e5d99a9864030ded93ef0c056beaed56526 | b61d3dda3aa2185d20575c82ade7cabc81963e59 | refs/heads/master | 2021-01-22T17:33:59.683383 | 2016-08-07T05:05:50 | 2016-08-07T05:05:50 | 60,755,873 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 774 | h | matrix.h | #pragma once
#include<iostream>
#include "math.h"
#include<vector>
using namespace std;
class matrix
{
public:
matrix();
void init(vector<float> a,vector<float> p,int m,int n);//初始化A和b
void transpose(vector<float> a, int m, int n, vector<float> &b);//求矩阵a转置
void trmul(vector<float> a, vector<float> b, int m, int n... |
6ae66fad8e8d55113fb950edcc299a23e99eb0ee | 4bea57e631734f8cb1c230f521fd523a63c1ff23 | /projects/openfoam/rarefied-flows/impingment/sims/test/nozzle1/4.74/grad(rho) | 8ac11749774d169ba6e058d984c06cee679561a8 | [] | no_license | andytorrestb/cfal | 76217f77dd43474f6b0a7eb430887e8775b78d7f | 730fb66a3070ccb3e0c52c03417e3b09140f3605 | refs/heads/master | 2023-07-04T01:22:01.990628 | 2021-08-01T15:36:17 | 2021-08-01T15:36:17 | 294,183,829 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 46,153 | grad(rho) | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
... | |
d467fc8f7b163dfd1f7b02ac40e06391bdf385f2 | 92035a680e5e89e5afbdbb66778d6406cbe705ba | /TriangleTemplate/Animation.h | 700af196e680dd10cd702a9e9648b8cee1a8cf61 | [] | no_license | ngkaizhe/DigitalMeshProcessingP2 | 27ca511ced515510a1966da9dfb2fb7c6845b8e6 | 3438e02cf3099e1eb01a00d20099e882274c0353 | refs/heads/master | 2023-06-08T09:33:57.844304 | 2021-01-12T14:09:53 | 2021-01-12T14:09:53 | 321,357,926 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,768 | h | Animation.h | #pragma once
#include "Common.h"
#include "Shader.h"
#include "ARAPTool.h"
#include <vector>
#include <map>
using namespace std;
extern float imageScale;
extern int ScreenWidth;
extern int ScreenHeight;
enum btnType{ RECORD, START, STOP, SAVE, CLEAR, TIMELINE};
enum AnimState {NONE, RECORDING, PLAYING};
class Butto... |
145b119a291be4a51e709b1be5ab48d82a0e514f | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /storage/browser/blob/blob_memory_controller.cc | 714f8b53102c678085f05d910cb6fb6f3b604972 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 42,714 | cc | blob_memory_controller.cc | // Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "storage/browser/blob/blob_memory_controller.h"
#include <algorithm>
#include <memory>
#include <numeric>
#include "base/command_line.h"
#include "base/containers/co... |
67e2e0c9f9c14a404edb0664b26add26bacd2601 | 886f10ff80a5826f0578cce15a4d8a264d22ea16 | /TankWar/Timer.h | fd3026813bba42048d0400c9e85a8a01d9a3bfd4 | [] | no_license | StarTrekCenter/Hello-Tank | ec0c46c4dacc2a83c7ea1602487b0b544c2e4bf4 | e2235e711cc70621142e88efcf056d9a98c3cc7f | refs/heads/master | 2016-08-07T22:24:47.640818 | 2015-01-08T09:42:17 | 2015-01-08T09:42:17 | 12,504,574 | 0 | 1 | null | 2015-01-08T09:42:17 | 2013-08-31T11:26:16 | C++ | UTF-8 | C++ | false | false | 507 | h | Timer.h | #pragma once
#include "SDL.h"
#include "SDL_thread.h"
#define TIME_CODE 0x0001
class Timer
{
public:
Timer(void);
~Timer(void);
void StartTimer(Uint32 ms,SDL_EventType(*onTimer)(SDL_Event),void* userData = nullptr);
void StopTimer();
void FlushTimeEvent();
private:
//SDL_ThreadFunction Tim... |
eb1ba97e335ee767408ed581fa6c3aaec062a0a0 | 925f50bef2089477801fe170b1811bbbd2e5493c | /Ch12/Ex12.23.cpp | 63bf11f8fd62a20ea9bec9e0ed48e81194948042 | [] | no_license | DxnteSC/CppPrimer | e22b39b5df105c7e410038080cb1cae87e32801f | d1026974459bed7e622ffc6602f562070ed97fff | refs/heads/master | 2021-07-10T07:06:22.326501 | 2020-07-10T07:33:46 | 2020-07-10T07:33:46 | 163,541,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 412 | cpp | Ex12.23.cpp | #include <iostream>
#include <string>
int main()
{
const char* c1 = "Hello, ";
const char* c2 = "World!";
char* cA = new char[std::strlen(c1) + std::strlen(c2) + 1];
std::strcpy(cA,c1);
std::strcat(cA,c2);
std::cout << cA << std::endl;
delete[] cA;
std::string s1 = "Hello, ";
s... |
e57b674c95b942309f0e13141c939668a0e29e2d | e9a835541c88e68f24af6c079e0e5743e56571c9 | /src/pc_emulator/core/kronos_api.cc | 38eb03437340915faaa5cca89d6e41b858e9f3b4 | [] | no_license | ITI/OpenSCADA | 60b25f3fda6f2475f2daa0029b1fcc629c2aa2d8 | 6396b80a3c6b3769b34f74c0f79129ac1f77b435 | refs/heads/master | 2021-06-25T07:06:45.979335 | 2021-01-07T21:53:58 | 2021-01-07T21:53:58 | 193,534,183 | 6 | 2 | null | 2021-01-07T21:53:59 | 2019-06-24T15:44:22 | C++ | UTF-8 | C++ | false | false | 232 | cc | kronos_api.cc | #include <sys/types.h>
#include "src/pc_emulator/include/kronos_api.h"
string GetNxtCommand(int assignedTracerID) {
int ret = writeTracerResults(assignedTracerID, NULL, 0);
if (ret < 0) return "STOP";
return "CONT";
}
|
c92996001ae1a997b7137014dff2637bf4778753 | 0d3a90b771a2a825526219c9d56746b24a426be3 | /include/node.h | a75e48d84b111fa16bc15c5a12ca8c32c00ce4b4 | [
"MIT"
] | permissive | ynamiki/btree | 7362a50d9fd5c0347929f41caa7015b894ca1a3d | aa74a6cdf8ebd21e230767fa9106dc567aafc525 | refs/heads/master | 2022-12-20T00:14:22.299058 | 2020-09-22T02:49:45 | 2020-09-22T02:49:45 | 251,499,584 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,718 | h | node.h | #ifndef BTREE_NODE_H_
#define BTREE_NODE_H_
#include <cstddef>
#include <vector>
#include "btree.h"
namespace btree {
class Node {
public:
explicit Node(const std::vector<key_t> keys, const std::vector<Node*> sons);
~Node();
/**
* Get the i-th key.
*
* @return The i-th key.
*/
key_t key_at(std... |
e4fb23e6c1b8af99c5e7bebfdf83b825cfdcf201 | d8d5b8c8bf1f5b15d6701367d09fa093ec60d0f2 | /src/Kernels.hpp | 71e788d5a21a70483531422f9234138700965315 | [
"MIT"
] | permissive | asterycs/cuWave | 5afc6c7e754d615a392972ff9f3e8eecdfdf6f29 | e1630950aaac50e789745ad0f1af19e67168ad22 | refs/heads/master | 2021-03-27T16:04:58.164291 | 2018-11-16T09:34:13 | 2018-11-16T09:34:13 | 122,977,371 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,449 | hpp | Kernels.hpp | #ifndef KERNELS_HPP
#define KERNELS_HPP
#define BLOCKWIDTH 8
#define INTERSECT_EPSILON 0.0000001f
#define OFFSET_EPSILON 0.00001f
#define BIGT 99999.f
#define AIR_INDEX 1.f
#define MIN_PATHS 3
#define RUSSIAN_PROB 0.8f
#define PREGEN_RANDOM_DIMENSIONS 32
// Helper enum for random dimension. Dimensions for extension r... |
33e1779b51881b168f8cfcad1c76202fc3a254c4 | 221d667f76a556828c3e30ac6325411b1b723d65 | /Visual Studio 2015 Project/output.h | 456eacd6f2280ffe0b2957b8c494415d92a3d50e | [] | no_license | basecq/DarkSoulsScriptHook | 086d668ac4afb7c8b96f29d0b5b548672a79ac1a | 2d284858bb6fbea95991e268d07cf436df2e65e9 | refs/heads/master | 2020-12-28T23:04:42.877374 | 2015-12-29T13:35:13 | 2015-12-29T13:35:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 519 | h | output.h | #pragma once
#include <iostream>
#ifdef _DEBUG
#define D_ERR(x) std::cerr << "ERROR in " << __FILE__ << " at line " << __LINE__ << ": " << x << "\n";
#define D_WAR(x) std::cerr << "WARNING: " << x << "\n";
#define D_OUT(x) std::cout << x << "\n";
#else
#define D_ERR(x)
#define D_WAR(x)
#define D_OUT(x)
#endif
... |
df371f4d6253b5bc9db309630bba4e8994f22adf | d2650b73a3d64ec4c0614b08a4b0ba7370b7327a | /cpp/graph/bipartite-graph.cpp | 9f673b1636e1e1df6a7766a7f9576457a73dc8f3 | [] | no_license | jodnddus/nojam | 1fdf90805be8ea8bdfad5030f5ac39bc5b08d89f | a2e646ab06bc81f89bd451faea1da6231547de05 | refs/heads/master | 2020-05-18T07:57:21.808166 | 2019-08-15T10:05:53 | 2019-08-15T10:05:53 | 184,280,261 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 873 | cpp | bipartite-graph.cpp | // https://www.acmicpc.net/problem/1707
#include <iostream>
#include <vector>
#define RED 1
#define BULE -1
using namespace std;
int K,V,E,visited[200001] = { 0, };
vector<int> graph[200001];
bool checkBipartite;
void dfs(int now, int color)
{
visited[now] = color;
for (int next : graph[now])
{
if (visited[nex... |
77ecff26186a7a6e9e7a0b25bf67bd241cd87208 | 97b50234b5aa6382932fea461835b5dd3ba9c473 | /Games/StarShot/SST_Game.cpp | 02d7fb0dcced0608cfd8b723b33d4406666d6f76 | [] | no_license | vectorstorm/vectorstorm-testbeds | d71d34c8a1be002081fb18224aba2b23f33ce89a | ad12a08fdaf95e0231a1693520a8aa2ca893016f | refs/heads/master | 2021-05-16T02:32:07.725258 | 2014-01-24T01:01:05 | 2014-01-24T01:01:05 | 4,004,016 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 810 | cpp | SST_Game.cpp | /*
* BNG_Game.cpp
* VectorStorm
*
* Created by Trevor Powell on 28/04/07.
* Copyright 2007 Trevor Powell. All rights reserved.
*
*/
#include "SST_Game.h"
#include "SST_Fireworks.h"
#include "SST_Hud.h"
#include "SST_ModeInGame.h"
#include "SST_Rocket.h"
#include "SST_Sequence.h"
//#define RECORDING_ALLOWE... |
9bdc812096bb823639c125adc980d34f7f384190 | e8face9d41375f7ed4e6cfa960fac6ba7ed6c152 | /src/parser.h | a1747a65ddd3bc8874a0ffb133b118fe31a24e93 | [
"MIT"
] | permissive | iguyong/cppmark | 264f1ef90b333abc830a375a46886fdbb1ccf9e4 | e26cc85f276d06decd52be25be9d87d40e0bde99 | refs/heads/master | 2021-09-14T07:23:24.748539 | 2018-05-09T16:43:19 | 2018-05-09T16:43:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,519 | h | parser.h | //
// Created by yong gu on 5/3/18.
//
#ifndef CPPMARK_BLOCK_H
#define CPPMARK_BLOCK_H
#include <regex>
#include <string>
#include <unordered_map>
#include "token.h"
#include "rules.h"
#include "options.h"
#include "renderer.h"
class Link{
public:
string href;
string title;
};
class Parser {
public:
Par... |
4e1e0db1ead15b1a1bbf1f1fb413716ea9acbf2c | 60639ff35d95b9644de078144abcc0b2be65ca09 | /win32_api.cpp | f279741f20ef42578e120596d7ba9027df8e2074 | [] | no_license | y0zhyk/cpp_helpers | 933295364f07f669e9c0dff6fc3f1b25e61e38a1 | d78591ed4cc005d6b39dae745b6f2a16ba4c5720 | refs/heads/master | 2020-05-17T02:32:30.755497 | 2019-01-29T16:49:19 | 2019-01-29T16:49:19 | 31,330,751 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,179 | cpp | win32_api.cpp | // Created by Taras Lushney on 6/8/14.
// Copyright (c) 2014 Taras Lushney. All rights reserved.
#include <functional>
#include <memory>
#include "./win32_api.h"
#include "./win32_exception.h"
namespace win32_api {
void CloseHandle(HANDLE handle) {
auto result = ::CloseHandle(handle);
ThrowLastErrorIf(FAL... |
68fa21d9b5c0e4f671841d02c6d41fb708448cf9 | 873002d555745752657e3e25839f6653e73966a2 | /model/MessageResource.h | 22bea2e8d267ee8be8b7b6264d77da5017e3ebbc | [] | no_license | knetikmedia/knetikcloud-cpprest-client | e7e739e382c02479b0a9aed8160d857414bd2fbf | 14afb57d62de064fb8b7a68823043cc0150465d6 | refs/heads/master | 2021-01-23T06:35:44.076177 | 2018-03-14T16:02:35 | 2018-03-14T16:02:35 | 86,382,044 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,160 | h | MessageResource.h | /**
* Knetik Platform API Documentation latest
* This is the spec for the Knetik API. Use this in conjunction with the documentation found at https://knetikcloud.com.
*
* OpenAPI spec version: latest
* Contact: support@knetik.com
*
* NOTE: This class is auto generated by the swagger code generator 2.3.0-SNAPS... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.