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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a6067d904f9954e66885bd327b4a65201ac018f2 | 6e790b19299272268806f8808d759a80401f8825 | /DX/DX/src/Include/GameplayLayer/i_game.hpp | 518d68e9355e88e031ca66f0c889f9508c86f5b8 | [] | no_license | SilvanVR/DX | 8e80703e7ce015d287ba3ebc2fc0d78085d312f1 | 0fd7ec94e8d868c7a087f95f9dda60e97df38682 | refs/heads/master | 2023-07-16T01:42:48.306869 | 2021-08-28T02:36:32 | 2021-08-28T02:36:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,045 | hpp | i_game.hpp | #pragma once
/**********************************************************************
class: IGame (i_game.h)
author: S. Hau
date: October 27, 2017
Inherit from this class and call start()
to begin initializing the whole engine and run the core loop.
Override init(), tick() and shutdown() for ... |
e75a2e87ea9032547a8c59e73d1c49cc82e4b420 | 157c466d9577b48400bd00bf4f3c4d7a48f71e20 | /Source/ProjectR/Character/Components/EffectComponent.cpp | 87fa49b689fc97fd8dbe81ccc96a011ad858d896 | [] | no_license | SeungyulOh/OverlordSource | 55015d357297393c7315c798f6813a9daba28b15 | 2e2339183bf847663d8f1722ed0f932fed6c7516 | refs/heads/master | 2020-04-19T16:00:25.346619 | 2019-01-30T06:41:12 | 2019-01-30T06:41:12 | 168,291,223 | 8 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 15,735 | cpp | EffectComponent.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "ProjectR.h"
#include "EffectComponent.h"
#include "UtilFunctionIntegrated.h"
#include "Character/Interfaces/EntityBaseProperty.h"
#include "Character/Components/FunctionalComponents/BattleEntityComponent.h"
#include "Character/... |
ea44be52a5e71e102fdd9bff0aa0fae8f9841c5d | 239091e0ea1412e76e29c43acdfb969bc6a5f1dc | /Templates/Algorithm_Comp1/algorithm_Comp1_implementation.cpp | 3829a097791e9b7b3df7e6a823281a1954db8d63 | [] | no_license | hlrs-vis/openpass | 080a2625d6427ffff835bdc122954df8d022f382 | 7375cb9cd5bd77c8aad5094766169ddb225c7f13 | refs/heads/master | 2021-05-15T14:00:49.331352 | 2019-11-05T14:20:55 | 2019-11-05T14:20:55 | 107,249,522 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,186 | cpp | algorithm_Comp1_implementation.cpp | /*********************************************************************
* This Example Content is intended to demonstrate usage of
* Eclipse technology. It is provided to you under the terms
* and conditions of the Eclipse Distribution License v1.0
* which is available at http://www.eclipse.org/org/documents/edl-v10.php... |
7c65563b404aff87fd1e63ff0d28c4bda00d3f17 | afce5277ad948ff07903389fd9bbfb7ed02305c2 | /include/shm_transport/shm_subscriber.hpp | fb27cf753443bb60173278b94df2de7e181ce399 | [] | no_license | AutoModality/shm_transport | c90aab299a90a7af2509c20778d9f536e8748f3f | 96194e75541492284e983fc4b5e1d2b8a3432e6f | refs/heads/master | 2021-06-17T22:04:43.076270 | 2021-01-22T23:37:02 | 2021-01-22T23:37:02 | 148,706,928 | 0 | 1 | null | 2020-03-13T23:47:54 | 2018-09-13T22:51:09 | C++ | UTF-8 | C++ | false | false | 2,359 | hpp | shm_subscriber.hpp | #ifndef __SHM_SUBSCRIBER_HPP__
#define __SHM_SUBSCRIBER_HPP__
#include <boost/interprocess/managed_shared_memory.hpp>
#include "ros/ros.h"
#include "std_msgs/UInt64.h"
#include "shm_object.hpp"
namespace shm_transport
{
class Topic;
template <class M>
class Subscriber;
template < class M >
class SubscriberCallback... |
e69ae9a068b8585d105560f4cc2e0e494c813219 | 0bcf42c00d27d21eb72b4a1cd2a328c2e51f31ef | /tools/fuzzer/lldb_eval_libfuzzer_test.cc | f99a69be4ee5c9c3f382aa86e4ad211dc355adde | [
"Apache-2.0"
] | permissive | google/lldb-eval | 276f9948eb247dfbdea41ec9359a0aeb1a124d3f | 323d48f0b06d7dcf6ed70cdde17b42285450a32a | refs/heads/master | 2023-07-05T23:31:10.062319 | 2023-04-28T13:12:29 | 2023-04-28T13:12:29 | 296,277,315 | 65 | 30 | Apache-2.0 | 2022-12-08T18:07:45 | 2020-09-17T09:16:16 | C++ | UTF-8 | C++ | false | false | 1,450 | cc | lldb_eval_libfuzzer_test.cc | /*
* Copyright 2021 Google LLC
*
* 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 applicable law or agreed to ... |
e32d678624df38c2be506419acde52e808133337 | d071e6156cf23ddee37a612f71d71a650c27fcfe | /pojpass/poj2241_tower.cpp | 4cb6f9829a016580f464983ad540c43184bbec94 | [] | no_license | tsstss123/code | 57f1f7d1a1bf68c47712897e2d8945a28e3e9862 | e10795c35aac442345f84a58845ada9544a9c748 | refs/heads/master | 2021-01-24T23:00:08.749712 | 2013-04-30T12:33:24 | 2013-04-30T12:33:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,021 | cpp | poj2241_tower.cpp | #include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
const int NN = 50000;
struct Block {
int l, w, h;
};
int n;
Block b[NN];
int f[NN];
bool cmp(const Block &a, const Block &b) {
return a.l > b.l;
}
int main()
{
int nCase = 0;
while (EOF != scanf("%d", &n) && n > 0)... |
b8f27e3059b4c91366cbad2dad23e67a2344c0d4 | 7ede7e31ee6aff47c62c87ca2e098026ab3e9f9b | /e_05_02/src/e_05_02.cpp | b7c8a071808926a02c58cb8f01d7cddfa6172e78 | [] | no_license | ddt-hirasawa/meikai-medium-cpp | 514087c413cc9109eada2abc94476916da78f380 | 45bc9441d1375551a4564e90c001a13b2e1e8f38 | refs/heads/master | 2020-12-30T13:21:03.752857 | 2017-06-08T08:04:19 | 2017-06-08T08:04:19 | 91,203,683 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,272 | cpp | e_05_02.cpp | /*
演習5-2 List5-18 の関数の引数をポインタから参照に変更すること
作成日 2017年5月22日
作成者 平澤敬介
*/
#include<iostream>
#include"class.h"
#include"vip.h"
#include"senior.h"
using namespace std;
//関数宣言
void senior_only(Member& tmp);
int main()
{
Member name1("平澤 敬介",10,66); //基底クラス
VipMember name2("成田 直之",11,60,"会費免除"); //派生クラス
SeniorM... |
6981aff5885e86879a4c00d0aecc43c9796cdf07 | c1a59a421bd71d39ee00ef7dc7a0a66496aefb6e | /manualTest.cpp | 5d6b4a0984bbf8617efeb8220f03e534b789a147 | [] | no_license | cleanCoder1999/Diploma-Thesis-Project | 2348b4c7e1b2de380a3061b1594f05867a2cc7a0 | 28d60409642ffaef31301b51ff190e53afe8c657 | refs/heads/master | 2020-07-23T16:32:29.196624 | 2019-09-10T18:15:24 | 2019-09-10T18:15:24 | 207,330,185 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,110 | cpp | manualTest.cpp | //
// Created by lucas on 28/12/18.
//
#include "iTestTypes.h"
ManualTest::ManualTest() {}
bool ManualTest::runTest(int slaveSocketTest, Disc* disc, std::future<void>& futureObj)
{
disc->setTestType("manual test");
std::cout << "[INFO]: in class ManualTest: in function runTest" << std::endl;
std::cout... |
4655b2be502813303808875edb3ab4709e99f54d | d45c2851c41bfac7a169236460a368ebf5032394 | /Lab 5/chess-starter/EIFGENs/chess/W_code/C15/big_file_C15_cpp.cpp | 3c44a0168c81abdca77973fe064d0aac25193a5d | [] | no_license | GavinSit/EECS-3311-Software-Design | dd549ee44d7404a891e099e79d2545fefa502c57 | c762d4a16643c4e9f2ae546a51fdddc9b5d6c952 | refs/heads/main | 2023-04-26T22:50:12.356097 | 2021-05-17T16:25:27 | 2021-05-17T16:25:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 44 | cpp | big_file_C15_cpp.cpp | #include "we1439.cpp"
#include "we1440.cpp"
|
c47486871ae8cad410bd9febfb2a583fdf3df3e9 | af5567d316b294ac0185dafa9f436e7448603892 | /nnengine/CMindsetConfig.cpp | 63bd5fae543aa5a44f3d41e2f7a4126880d4d014 | [] | no_license | rabinnh/mindset | 647717bc6270844724e0ce55dc4fdfa4b1435ad4 | 5775b38f31d6cb3ff4ecefda1e178b6099a56b7d | refs/heads/master | 2023-01-06T20:07:08.009477 | 2020-11-03T14:03:02 | 2020-11-03T14:03:02 | 302,454,542 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,626 | cpp | CMindsetConfig.cpp | /*
Copyright [1994] [Richard Bross]
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 applicable law or a... |
292978dd7311875691df08884c099fe90dc8cb0c | 39263da32beb4bcbdcff997bc0d28b1f6a1529ef | /src/parser/sql_statement.cpp | 89bff76d164e5bd3c8e14f6f2852669466e04a97 | [
"Apache-2.0"
] | permissive | Meditator-hkx/peloton | 42789f505f66712b5135bcfe6df212668e79ef71 | 3aff639dd65c7676d485776ddbb30855f70d4b21 | refs/heads/master | 2020-12-25T22:30:36.274452 | 2016-07-08T06:19:03 | 2016-07-08T06:19:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,574 | cpp | sql_statement.cpp | //===----------------------------------------------------------------------===//
//
// Peloton
//
// sql_statement.cpp
//
// Identification: src/parser/sql_statement.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//===-----------------------------------------------... |
6714ee175f1c326fe492fd39a80d0870d794a78a | ccebcd259bedab19f14b905260546f4f434042f7 | /macOS:iOS下OpenAL_FFMpeg/626OpenALFFMpeg/626OpenALFFMpeg/main.cpp | 7cf73228ec6944a971853e9f60c4011507d9f37c | [] | no_license | mrzhao12/FFMpegDecodingAndOpenALPlayMusic | 5de01672e5e1e9ac9db3e7e351058ebf2dc4ba6e | 85ce78e819b38ee0cd2b9bd3006f23123ba419bd | refs/heads/master | 2020-12-31T05:10:20.031505 | 2017-06-26T08:44:33 | 2017-06-26T08:44:33 | 95,421,007 | 3 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,677 | cpp | main.cpp | /**
*使用OpenAL和FFMPEG解码并播放音乐
*626OpenALFFMpeg
*赵彤彤 mrzhao12 ttdiOS
*1107214478@qq.com
*http://www.jianshu.com/u/fd9db3b2363b
*本程序是macOS平台下OpenAL和FFMPEG解码并播放音乐
*OpenAL是一个开源的音效库,然而这里只用它来播放音乐。
*FFMPEG负责把音乐解码并转换成指定的编码和采样率,然后送到OpenAL中播放。
*已在windows和iOS平台简单测试通过)
*/
// main.cpp
// 626OpenALFFMpeg
//
// Created by sjhz on ... |
7f0ad7346dfe70b29b34aa07cf10caf4c3c04687 | f0aec0646fac74546ea0a41ac30b65f96812811a | /src/seqan_api/backup/SeqSuffixArrayIterator/main/get_pointer/main.cpp | 2376e7ba814a135b81102a46935961bdcd610571 | [] | no_license | ganyfml/olegosa2 | 5a283b1169dd5c161c74dd03e4429eef4e5561d1 | 0adb17a214e2e6904a1a08b52b26a1aaaebff6ec | refs/heads/master | 2020-04-06T07:09:08.655874 | 2016-08-21T15:57:36 | 2016-08-21T15:57:36 | 64,513,770 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 463 | cpp | main.cpp | // vim: set noexpandtab tabstop=2:
#include "../../SeqSuffixArrayIterator.hpp"
#include "../../../SeqanAPIUtil/SeqanAPIUtil.hpp"
#include <seqan/index.h>
typedef seqan::Dna5String SeqanString;
typedef seqan::Index<SeqanString, seqan::IndexEsa<>> T;
using namespace std;
int main(int, char* argv[])
{
SeqString seq(st... |
97641e45b61b4f5e4f39023d3a6aa65d8608275d | 594314e12aac4faaf355091feee1149ee2587eac | /Week_2/7_Last_Digit_of_the_Sum_of_Fibonacci_Numbers_Again.cpp | 33c812da90b5693c0e15f8078859e8c819612ac2 | [] | no_license | AmanKrr/Algorithmic-Toolbox--Coursera-Question-Solution | 5b04048d6fd940b38e1d70d3add29991c7aafb08 | f6c5103e35f9fee3c6b6c85559db181b57dc94ac | refs/heads/master | 2022-07-30T06:59:13.380295 | 2020-05-11T09:00:39 | 2020-05-11T09:00:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,008 | cpp | 7_Last_Digit_of_the_Sum_of_Fibonacci_Numbers_Again.cpp | // fast algorithm for finding last digit of the sum of the fibonacci numbers again. Note (0 ≤ 𝑚 ≤ 𝑛 ≤ 10^14)
#include<iostream>
long long fastFibonacci(long long n)
{
long long a = 0, b = 1, c = a + b;
if (n == 0)
return n;
while (1 < n--) {
c = a + b;
a = b;
b = c;
}
ret... |
d89b7e423be9359629e83d3c6663ee0681648e6b | 2a18632687f5b42610463ef8dd53f3f4786596d7 | /Ball.h | 26ed2671dd7905e245460c38d47118bef876ba21 | [] | no_license | ghostofbug/PingPong | 05075a3ea31477e79d3d2a1d876d62098b335fb5 | 8a9b281ea04dc6a828f6cad0ccac9c84467b50cf | refs/heads/master | 2020-08-06T10:28:21.893902 | 2019-11-07T08:51:08 | 2019-11-07T08:51:08 | 212,943,472 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,593 | h | Ball.h | #pragma once
#include <SFML/Graphics.hpp>
#include <math.h>
#include <SFML/Audio.hpp>
#include "AudioManager.h"
#include "PlayGround.h"
#include <iostream>
using namespace sf;
class Player;
#include "Player.h"
class Ball
{
protected:
Vector2f position;//toạ độ bóng (float x, float y)
CircleShape BallSh... |
6433373c9836341990322fe12c9238acedbc1b19 | d568c9cacaee675b6482d65acb19e61afd3dbfb6 | /Practicum/Week 05 Operators/Task01/main.cpp | 092f00bb9a8acb881ed9cd9ba26d9be7b44bde65 | [] | no_license | SunInTeo/FMI-OOP | ca73337fad79e3bcfe4ae8ae003236b2d5695fbc | a8595e2ad88b1efa45a64c70ee6659f6770d9468 | refs/heads/main | 2023-05-02T05:03:59.404313 | 2021-05-22T13:09:57 | 2021-05-22T13:09:57 | 342,583,329 | 1 | 1 | null | 2021-05-20T19:56:05 | 2021-02-26T13:25:21 | C++ | UTF-8 | C++ | false | false | 668 | cpp | main.cpp | #include <iostream>
#include "Time.h"
using std::cin;
using std::cout;
using std::endl;
int main()
{
/*
- t1 + t2 // 1
- t3 = t1 + t2 // 2
- t4 = t1 + 5 // 3
- t5 = 6 + t1 // 4
- t1 > t2 // 5
*/
Time t1(3, 5);
Time t2(10, 23);
Time result1 = t1 + t2;
cout << "t1 + t2 = "... |
a591f163e339d3e173db9e30444e283506d7dfa0 | 76e4fe38f6a7c9c8647abef7c399961aef2e6625 | /DirectoryDiff/sync_root.cpp | 54fce5bd841087b91f2fd5e8cbb998e2d40203b1 | [] | no_license | grahamcrowell/DirectoryDiff | f4d697bc03476533f5278f9b4dba906be1721532 | 5ac4a91f3b73379ba85625257177a99e95b62652 | refs/heads/master | 2021-01-22T09:41:18.398903 | 2017-01-02T07:54:34 | 2017-01-02T07:54:34 | 76,080,324 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,532 | cpp | sync_root.cpp | #include "stdafx.h"
#include "sync_root.h"
void sync_root::walk_directory(boost::filesystem::path _directory_path)
{
std::cout << "walk_directory(" << _directory_path << ")" << std::endl;
boost::filesystem::directory_iterator it = boost::filesystem::directory_iterator(_directory_path), end;
while (it != end)
{
... |
b0337e00081cf2e1d0715808048a645aa826ea30 | dc08f96bcf053a224d7e3b3bfe1bfb932b3be498 | /include/altacore/ast/for-loop-statement.hpp | a664d5f7a638c2446c029a9696c28b211fcfaa90 | [
"MIT"
] | permissive | alta-lang/alta-core | 6b889a397d04ab1df8606506c1b828133fe5e81f | 9a7ce7da00b905922981cab8d85d84fa18d7bf96 | refs/heads/master | 2023-08-16T22:36:08.580203 | 2023-08-15T15:54:24 | 2023-08-15T15:54:24 | 156,797,053 | 0 | 0 | MIT | 2019-08-24T18:17:51 | 2018-11-09T02:13:58 | C++ | UTF-8 | C++ | false | false | 776 | hpp | for-loop-statement.hpp | #ifndef ALTACORE_AST_FOR_LOOP_STATEMENT_HPP
#define ALTACORE_AST_FOR_LOOP_STATEMENT_HPP
#include "statement-node.hpp"
#include "expression-node.hpp"
#include "../det/scope.hpp"
#include <string>
#include <vector>
namespace AltaCore {
namespace AST {
class ForLoopStatement: public StatementNode {
public:
... |
097ee10b7d443645a4ba069e4c6eee2ce01ca561 | fde781432ee094d4f8ef55385c92ff2b01fec46c | /utility/SparseMatrixFragment.h | 5af3bb53a619cba34b7e422ab5e685840710f200 | [] | no_license | radek-p/CaDP-assignment-2 | 12c88cb139ee4053ddc3345bdea05524768424ae | d843662a21d3b5c253316ee213239da393fa0679 | refs/heads/master | 2021-06-03T17:27:05.972194 | 2016-06-08T19:14:47 | 2016-06-08T19:14:47 | 59,947,471 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,061 | h | SparseMatrixFragment.h | //
// autor: Radosław Piórkowski
// numer indeksu: 335451
//
#ifndef MATRIXMUL_SPARSEMATRIX_H
#define MATRIXMUL_SPARSEMATRIX_H
#include <vector>
#include <string>
#include <iostream>
#include <memory>
#include <boost/serialization/base_object.hpp>
#include <boost/mpi/communicator.hpp>
#include "MatrixFragme... |
94ad66c2ee09fe5f68442c0b68b9ae6900fda05a | 7c5d7fb6a64df1a118a64bdf6087ecf395a3a722 | /data/open-Green/sources/000400-open-2015-214-Green.cpp | 722e7160b88f3e04670d41e038ff8ebe6ee86668 | [] | no_license | alexhein189/code-plagiarism-detector | e66df71c46cc5043b6825ef76a940b658c0e5015 | 68d21639d4b37bb2c801befe6f7ce0007d7eccc5 | refs/heads/master | 2023-03-18T06:02:45.508614 | 2016-05-04T14:29:57 | 2016-05-04T14:54:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 685 | cpp | 000400-open-2015-214-Green.cpp | #include<iostream>
#include<algorithm>
#include<map>
using namespace std;
map<pair<long long, int>, long long> dp;
long long solve(long long n, int k)
{
pair<long long, int>cur = make_pair(n, k);
if (dp.count(cur)!=0)
{
return dp[cur];
}
if (k == 1)
{
dp[cur] = (n + 1) / 2;
return dp[cur];
... |
118f91660e6c40609969414c2ae047cbe31164fe | 34ce78ff103efde9539b0c057142e6cca051ab11 | /src/helics/core/ipc/IpcBroker.h | a28e29fd36ebd758e1b64a03d1215a956cb50436 | [] | no_license | huangrenke/HELICS-src | 846bb0ab71b8aaa0b3fab45f22bbbedf2b3e7574 | 1de4532deffd84955aac0eba39dbfda45e012308 | refs/heads/master | 2021-04-27T10:57:47.595405 | 2018-02-13T14:23:03 | 2018-02-13T14:23:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,261 | h | IpcBroker.h | /*
Copyright (C) 2017-2018, Battelle Memorial Institute
All rights reserved.
This software was co-developed by Pacific Northwest National Laboratory, operated by the Battelle Memorial Institute; the National Renewable Energy Laboratory, operated by the Alliance for Sustainable Energy, LLC; and the Lawrence Livermore ... |
2b58695d3b3bafef51f9ed36ae9dddf14091e022 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/git/gumtree/git_old_log_2064.cpp | 667d7a8a61f30e7d84dde39a3fa5245ef8aa3856 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 75 | cpp | git_old_log_2064.cpp | printf("%s was both good and bad\n",
oid_to_hex(current_bad_oid)); |
71529d52ca19c14864202237b47f52ea98aff8a4 | aab86c6a80734596f19d30e06a8d402f96a9809e | /speed_test/src/main.cpp | 2fa76305e8a994dfe8243bc801be82ea4eb87d06 | [
"Zlib"
] | permissive | speedwago/2dengineexperiment | 374f8827fcf209700cd95165fc97032420c732e3 | 025506c2de1fe1c25d5a3aac29e4a0d8f8d13ae3 | refs/heads/master | 2016-09-06T19:20:32.163822 | 2015-01-12T00:36:48 | 2015-01-12T00:36:48 | 29,100,350 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 463 | cpp | main.cpp | // Include standard headers
//#define EMSCRIPTEN
#ifndef __ANDROID
#include <stdio.h>
#include <stdlib.h>
#include "common.h"
#include "Utils.h"
#include "Game.h"
#ifdef EMSCRIPTEN
#include "emscripten/emscripten.h"
#endif
using namespace speed;
int main( void )
{
Game game;
game.Init(GameLogic::kScreenW,GameLogic... |
9f94c366c235a05a7be45b8d55b481ac0b23bfe0 | 6278226a46fe1160b820a23a561e295e8f1404bb | /QTLinuxProj/Handanlty/工程/L12_P2_Gui/system_manage/network_select.cpp | 3d5c41af5e690769b8617e6675277628709a0aee | [] | no_license | qdleepo/ProjectAfcApp | 60485b376c347866795f199a117cb5097c6c2c6a | 9b5a5d710893cbdec8973fabd3353e011d2ea576 | refs/heads/master | 2021-05-23T19:10:45.914003 | 2018-09-23T01:43:37 | 2018-09-23T01:43:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,865 | cpp | network_select.cpp | #include "network_select.h"
#include "../class/common_interface.h"
#include "LtyCommonStyle.h"
#include <QListView>
#include "class/common/my_messagebox.h"
#include "class/ltystring.h"
#define MESSAGEBOX_BUTTON_WIDTH 140
#define MESSAGEBOX_BUTTON_HEIGHT 65
#define STR_CONNECT tr("连接")
#define STR_CONNECTING... |
590ca03f11517abfcdab4a702d8a69105f9f8cc1 | 0793bbf907331df239cfec8b8c452f6ae3620002 | /Skil 3/UI/deletescientist.h | ead9f9ac7e4b6c6c1951e70b98223b2fcc3395ce | [] | no_license | SenpaiPlz/0011Week | 9c499249882b63bf79033893a83763b7154d24fc | 63fbd68160691c252a3b15eef8d4113a4776b33d | refs/heads/master | 2021-01-10T15:41:14.008313 | 2015-12-15T21:07:48 | 2015-12-15T21:07:48 | 46,973,081 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 971 | h | deletescientist.h | #ifndef DELETESCIENTIST_H
#define DELETESCIENTIST_H
#include "domain/domain.h"
#include "domain/helper.h"
#include "The_Children/computerscientist.h"
#include "QMessageBox"
#include <QDialog>
namespace Ui {
class DeleteScientist;
}
class DeleteScientist : public QDialog
{
Q_OBJECT
public:
explicit DeleteSci... |
bf000a8552229630bc002ed93d9bfe1b7b72b75d | 31287dccda1fa0be67d87c61175fc7e9206134e8 | /QtBook/Paint/Base/ArcChordPieWidget.h | a930ccb00c7a0ebfc7ecab2630a01924b0412635 | [] | no_license | xtuer/Qt | 83c9407f92cef8f0d1b702083bb51ea29d69f18a | 01d3862353f88a64e3c4ea76d4ecdd1d98ab1806 | refs/heads/master | 2022-06-02T02:32:56.694458 | 2022-05-29T13:06:48 | 2022-05-29T13:06:48 | 55,279,709 | 15 | 13 | null | null | null | null | UTF-8 | C++ | false | false | 449 | h | ArcChordPieWidget.h | #ifndef ARCCHORDPIEWIDGET_H
#define ARCCHORDPIEWIDGET_H
#include <QWidget>
namespace Ui {
class ArcChordPieWidget;
}
/**
* @brief 画 Arc, Chord and Pie
*/
class ArcChordPieWidget : public QWidget {
Q_OBJECT
public:
explicit ArcChordPieWidget(QWidget *parent = 0);
~ArcChordPieWidget();
protected:
v... |
9ca2a49d129d8500ea4bbe9981df8edd5a5c8855 | 24717ac4a7ccb7c97103ecc7501ad1dad4481841 | /ellipse.cpp | 0eae7a32acbdec11ecf7f999f64de41eb5b1d193 | [
"MIT"
] | permissive | z-peterson/2DGraphicsModeller | 0fc2dbaa58df06045dcaca4d055cc89c67e26b0e | 02b531c0b55521f5a81a305f12968f6a25e4f9fc | refs/heads/main | 2023-04-23T15:59:40.608577 | 2021-05-14T06:19:13 | 2021-05-14T06:19:13 | 367,206,354 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,225 | cpp | ellipse.cpp | #include "ellipse.h"
Ellipse::Ellipse(const QColor &bColor, const QColor &color, const PenStyle &Pstyle, const PenCapStyle &PCstyle, const PenJoinStyle &PJstyle, const BrushStyle &Bstyle, int width, int id, int a, int b, int x, int y)
:Shape(bColor, color, Pstyle, PCstyle, PJstyle, Bstyle, width, id)
{
set... |
d0fc103522b28a775caf20f2ba1e9af1f3ced875 | ac052fa00767e9a7a3212a4fecd4cd4795b2c55b | /include/boss_room.h | 01ef49e07b45c7ad1e1371c5af413e63e5206cfa | [] | no_license | SebastianCoraccio/Dungeon-Generator | a22697f2d92d0b7b6b04d9201dab75b13a6900f0 | eab02ad3b6bdc07e746bb13483e2abdfdeac2a11 | refs/heads/master | 2021-03-22T04:48:00.793129 | 2018-04-15T16:20:04 | 2018-04-15T16:20:04 | 75,749,880 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 777 | h | boss_room.h | //
// Boss rooms are located at the room furthest from the start room.
// They do not branch, and act as a way to end the dungeon
//
#ifndef DGNGEN_BOSS_ROOM_H
#define DGNGEN_BOSS_ROOM_H
#include "room.h"
class BossRoom : public Room {
public:
BossRoom(int x_pos, int y_pos);
// Randomly decide... |
b66d598276d77c8be71e763f2bb5fb200775f1b2 | a26c5a27b05718d49fe9304607a5d31bb71901b1 | /TimusOJ/Timus 1607.cpp | 00ba82dc6dba50e5c62309d4b554382d27da7647 | [] | no_license | eleusKUET/online-judge-solutions | dba1cd01c08904348a07def976a730d3979ffaac | b965009d19bb1c5745f5e21559c5ba8adb7d85bb | refs/heads/master | 2023-01-21T16:08:02.839380 | 2023-01-06T18:40:40 | 2023-01-06T18:40:40 | 239,486,065 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 291 | cpp | Timus 1607.cpp | #include "bits/stdc++.h"
using namespace std;
signed main()
{
int a, b, c, d;
cin >> a >> b >> c >> d;
while (true) {
if (a >= c) break;
a += b;
if (a >= c) {
a = c;
break;
}
c -= d;
}
cout << a << "\n";
}
|
b51c8bb8419bb53b5cb74dfee46a5d572cc5c4a9 | a65c77b44164b2c69dfe4bfa2772d18ae8e0cce2 | /boi/friends.cpp | 390e1ec02555532ebe19e0e46553c8f2eaea1cf8 | [] | no_license | dl8sd11/online-judge | 553422b55080e49e6bd9b38834ccf1076fb95395 | 5ef8e3c5390e54381683f62f88d03629e1355d1d | refs/heads/master | 2021-12-22T15:13:34.279988 | 2021-12-13T06:45:49 | 2021-12-13T06:45:49 | 111,268,306 | 1 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 2,695 | cpp | friends.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
#define REP(i,n) for(int i=0;i<n;++i)
#define REP1(i,n) for(int i=1;i<=n;++i)
#define SZ(i) int(i.size())
#define eb emplace_back
#define ALL(i) i.begin(),i.end()
#define X first
#define Y second
#ifd... |
61ba5222e64f239cf8417a5a60a62555964c9bed | 61217ed3c502eb5d01075645f1f1afff655673ae | /src/rng/AvidaRNG.cc | d7279978c01d698527c72a18540a1bf2f7d3428e | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | dmbryson/apto | d1493f5a839b90631556246b2a81b91fab197a25 | 9184c91a3a82297c420540baaf355aac80213a29 | refs/heads/master | 2021-08-10T08:22:15.244321 | 2020-04-25T02:50:30 | 2020-04-25T02:50:30 | 1,676,724 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,835 | cc | AvidaRNG.cc | /*
* AvidaRNG.cc
* Apto
*
* Created by David on 10/24/12.
* Copyright 2012 David Michael Bryson. All rights reserved.
* http://programerror.com/software/apto
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
* following conditions are me... |
a37d58000e6fe9455652593935e9a8e55542129c | 2ba94892764a44d9c07f0f549f79f9f9dc272151 | /Engine/Source/Runtime/IOS/IOSAudio/Private/IOSAudioSource.cpp | 98f695587ce829d75c615313d9d0186f88aa6165 | [
"BSD-2-Clause",
"LicenseRef-scancode-proprietary-license"
] | permissive | PopCap/GameIdea | 934769eeb91f9637f5bf205d88b13ff1fc9ae8fd | 201e1df50b2bc99afc079ce326aa0a44b178a391 | refs/heads/master | 2021-01-25T00:11:38.709772 | 2018-09-11T03:38:56 | 2018-09-11T03:38:56 | 37,818,708 | 0 | 0 | BSD-2-Clause | 2018-09-11T03:39:05 | 2015-06-21T17:36:44 | null | UTF-8 | C++ | false | false | 20,073 | cpp | IOSAudioSource.cpp | // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
IOSAudioSource.cpp: Unreal IOSAudio source interface object.
=============================================================================*/
/*--------------------------------... |
278761c196d2cfdac778f21fb2da0ca3880831e1 | cfabd26fcf1058ebf846c3fec726704f4a15a4d7 | /C/GF.cpp | 2b2c47632ac4bd354109d0b1f36d17791c939b24 | [] | no_license | gavin-Ma/GC | 9f4bcf2794862350e390096df7a0a720a7ba2e62 | 7ed4eb3a7c8bd31c440ff36e5eed37c65d330b1b | refs/heads/master | 2021-09-22T03:19:25.230894 | 2018-09-05T18:09:42 | 2018-09-05T18:09:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,317 | cpp | GF.cpp | #include "GF.h"
#include <iostream>
#include <math.h> /* log */
#include <string>
#include <NTL/ZZ_p.h>
using namespace std;
using namespace NTL;
GF::GF(int mlen, int lengthExtension = 1)
{
this->mlen = mlen;
setDem(lengthExtension); //set numBlock and blockLength
this->gf = nextPrime(pow(2, blockLength));
... |
ddb4244dc830f3dcc7e0f4dcc6a54fdf485f3586 | 0699d883a26888309d12120231de6c5bafee33b9 | /RenderX/src/RenderX/Base/Input.cpp | 9d590a0620b90854498a4833234b79899ac7c250 | [
"MIT"
] | permissive | willproj/RenderX | 574c1f57a4bf83f72c813ccddc179d782ac56ee7 | 9f8c4f141c3b81377964d886208bf898c1828c02 | refs/heads/master | 2023-06-01T01:35:20.090790 | 2021-06-26T02:28:30 | 2021-06-26T02:28:30 | 194,184,165 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 59 | cpp | Input.cpp | #pragma once
#include "pch.h"
namespace renderx::base
{
} |
9bb64937b04c4715e6011bc55709254f90ed2ee9 | af4f186dee49cc8db8da0d67511cab45e7c0b01c | /StudentDayShedule.h | d035a3f20638c76cde4f3ea9a1886f334f266253 | [] | no_license | NiceOneWorld/University | cfe9fa979cd31e87a0e51b0da15c31c8716e7728 | 2a06a22a749cb7a571959a0355fa896df562eae6 | refs/heads/master | 2022-11-05T16:01:31.718318 | 2020-06-25T16:37:07 | 2020-06-25T16:37:07 | 274,965,908 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 313 | h | StudentDayShedule.h | #pragma once
#include"StudentClass.h"
class StudentDayShedule
{
list < shared_ptr<StudentClass>> studentShedule;
public:
StudentDayShedule(shared_ptr<StudentClass> t);
void addClass(shared_ptr < StudentClass> tc);
void removeClassSubject(const string& str);
void viewStudentDayShedule();
};
|
61b08860be44d6469be2d066daf3a579687946fb | ba176a151b1c64b7de713a420e1aeaa3338587d0 | /rlclientlib/logger/logger_facade.h | caa722a8dc4f99605a827fe5a2e7a62646267a1f | [
"MIT"
] | permissive | cirvine-MSFT/reinforcement_learning | 8337e551627cb607fc14f2894dedb93060495da8 | c006b21d0a027b78d9285bf2597b503669bac82c | refs/heads/master | 2023-06-13T06:41:44.615973 | 2021-07-12T18:53:42 | 2021-07-12T18:53:42 | 265,958,190 | 0 | 0 | MIT | 2020-05-21T21:46:15 | 2020-05-21T21:46:14 | null | UTF-8 | C++ | false | false | 5,237 | h | logger_facade.h | #pragma once
#include "api_status.h"
#include "configuration.h"
#include "constants.h"
#include "learning_mode.h"
#include "ranking_response.h"
#include "error_callback_fn.h"
#include "utility/watchdog.h"
#include "message_sender.h"
#include "time_helper.h"
#include "event_logger.h"
#include "model_mgmt.h"
#include... |
1a2c695154cfcb8b75774181af26fa65b331bba1 | 0d0128d788ebd8e2ca959fd529616b945c63479d | /src_hydro/hydro_functions.H | d24d1c8f277e1c55d8aa993d6c440488decc0966 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | ckim103/FHDeX | 3353a6922f6b6d0bb74bc6c6591e71e961647097 | 9182d7589db7e7ee318ca2a0f343c378d9c120a0 | refs/heads/master | 2020-09-12T20:44:01.775795 | 2019-11-18T20:56:35 | 2019-11-18T20:56:35 | 222,548,819 | 0 | 0 | NOASSERTION | 2019-11-18T21:33:07 | 2019-11-18T21:33:06 | null | UTF-8 | C++ | false | false | 2,894 | h | hydro_functions.H | #ifndef _hydro_functions_H
#define _hydro_functions_H_
#include <AMReX.H>
#include <AMReX_MultiFab.H>
#include <AMReX_Vector.H>
#include <AMReX_MLABecLaplacian.H>
#include "common_functions.H"
#include "gmres_functions.H"
using namespace amrex;
///////////////////////////////////////////////////////////////////////... |
2bbc92a88eaac2974e3ef6d56a438bb761095d0d | a8a8ed43faee21e7c7de459298d1b0b39ba7f4ac | /Supermarket/orderDao.cpp | 01a1a96ef7f03b4273ca479b29c7920c7e6214d7 | [] | no_license | keyzbw/Supermarket | ccad5ffa518f1d17c6d7b120f22e1a225ca277ae | 58f339b8bd3ee8b9b155ac2a820f90c47252ddaa | refs/heads/master | 2020-04-30T20:40:13.888510 | 2019-03-22T04:55:34 | 2019-03-22T04:55:34 | 177,073,746 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,328 | cpp | orderDao.cpp | #include "stdafx.h"
#include "orderDao.h"
orderDao::orderDao()
{
}
orderDao::~orderDao()
{
}
CString orderDao::addOrder(orderMaster om)
{
CString sql, orderNo, orderNo2;
MYSQL* conn;
conn = mysql_init(NULL);//初始化数据库对象
if (!mysql_real_connect(conn, "localhost", "root", "123456", "supermarket", 3306, NULL, 0))
... |
9fd74a0c5f9b0dc6511b8d447a7c05aa706d0e09 | 80a327693fcbc392af9bca78fe0b1646002f3b10 | /OverlordProject/MainGame.h | ff2b6abc03f19cdd276ca661d10cf3a515136bfe | [] | no_license | Kwintenvdb/DirectX-Turret-Game | 83d40b152ed7297ceeb14caa3672e844ad1388b2 | d5cdb49b32fbda34a09e76cd12bcc06a3f05a5c7 | refs/heads/master | 2020-06-04T11:16:40.974589 | 2014-11-06T11:10:39 | 2014-11-06T11:10:39 | 25,698,189 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,305 | h | MainGame.h | //------------------------------------------------------------------------------------------------------
// _____ _______ ____ _ ___ ____ ____ _____ _ _ ____ ___ _ _ _____ ______ ___ _
// / _ \ \ / / ____| _ \| | / _ \| _ \| _ \ | ____| \ | |/ ___|_ _| \ | | ____| | _ \ \/ / / |
// | ... |
01759af0371cad22a65cac6ecafb42293a828cd5 | 040f728652d20d6367a5e108f95cadc817edddb5 | /CsharpConverterDLL/CsharpConverterDLL/converter_source/expressions/cpp/class_UnaryExpr.cpp | 8eb7384e6ce988b311656501d916626292af9d76 | [] | no_license | sp0wk/Cpp2CsharpRuby_CodeConverter | dcd2116ff47bcd95b874e715c3501347cf1ac959 | a7529f952975baf84ef190b8831160b051f64f0a | refs/heads/master | 2021-01-19T15:23:15.159526 | 2018-02-07T00:51:04 | 2018-02-07T00:51:04 | 100,965,081 | 6 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 3,074 | cpp | class_UnaryExpr.cpp | #include "../class_UnaryExpr.h"
// determine unary operator
int UnaryExpr::determine_oper(string& op_in)
{
if (op_in == "") return 0;
else if (op_in == "++") return 1;
else if (op_in == "--") return 2;
else if (op_in == "*") return 3;
else if (op_in == "&") return 4;
else if (op_in == "!") return 5;
else retur... |
2a441f1d2574c9aefdd45fce9492109556fb16b5 | b1b71cab75125ca645a09cac92b941eefb47e1b8 | /Chapter2/chapter2.2.cpp | 6dada7214d669c9e051e7d1820ea8f3d071959c9 | [] | no_license | xiazhiyiyun/C-Program | bc6dfed0ad7016ce47e75f837835fd29932ea3e9 | 93eb84344876efbc6a192dd939c06be2ce5e7450 | refs/heads/master | 2021-01-20T21:13:01.148896 | 2016-07-03T15:18:24 | 2016-07-03T15:18:24 | 60,155,571 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,050 | cpp | chapter2.2.cpp | #include <iostream>
#include <vector>
#include <cstdlib> // srand(seed);rand();exit(status)
using namespace std;
void display(vector<int> vec);
void swap(int &val1,int &val2);
void bubble_sort(vector<int> &vec);
void init(vector<int> &vec,int size);
int main(){
int size = 20;
vector<int> vec(size);
init(v... |
eafbe8afac42f37b7711d64d1ddb477614d12e45 | 2b24315c37ef5c9e692fad423f90d9d39829d1e7 | /src/backend/collections/algorithms/insertionsort.hpp | 4b20e6f93df9c4c89cfe1311e1e5f120613aae38 | [
"MIT"
] | permissive | MATF-RS20/RS013-djiki | 765145f1deebf1b215287b0fa4327dfe56abc22c | 0cce8529c90f2eaf4d3d33f3d66dbe4b10d02374 | refs/heads/master | 2020-09-21T02:10:32.546358 | 2020-01-24T14:52:05 | 2020-01-24T14:52:05 | 224,649,468 | 5 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 287 | hpp | insertionsort.hpp | #ifndef INSERTIONSORT_HPP
#define INSERTIONSORT_HPP
#include "../collectionalgorithm.hpp"
class InsertionSort : public CollectionAlgorithm
{
public:
InsertionSort();
InsertionSort(Collection *c);
void definePseudocode();
void solve();
};
#endif // INSERTIONSORT_HPP
|
03cef2acf943237e0f5f17768b064f49739d9e7e | d067b7954a3ec4bd92d4542e65ef8259d63b47a4 | /mgeom/MGeomPix.h | 0d51f0a7ca358b35185311b015d68ea649f05414 | [] | no_license | fact-project/mars_pulse_truth | b767f781cceb782ae014e5eba54ace4846dc4b50 | c0db9cce9fbb2f866b69f53d7820dea65d96aa4f | refs/heads/master | 2020-06-17T20:10:10.343838 | 2016-11-29T17:04:58 | 2016-11-29T17:04:58 | 74,973,456 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,033 | h | MGeomPix.h | #ifndef MARS_MGeomPix
#define MARS_MGeomPix
#ifndef MARS_MGeom
#include "MGeom.h"
#endif
class MGeomPix : public MGeom
{
public:
static const Float_t gsTan60; // tan(60/kRad2Deg);
static const Float_t gsTan30; // tan(30/kRad2Deg);
static const Float_t gsCos60; // cos(60/kRad2Deg);
static const Float... |
ad288f99bf28d3cb97c6ff5d210cf67c37875609 | d95227461094febdd05ebac0ce84e9b26f3c4b61 | /include/cpp2cxx/DemacBoostWaveIncludes.h | 77de71706b1a9e6a60f5d59f2068a15c23ef2d69 | [
"Apache-2.0"
] | permissive | operativeF/cpp2cxx | 4567d479bd20fbdddc4f5eff74e9e232da070e81 | 7a41466460ca063bd3f8e4ef0fb4ee35a3c48e4e | refs/heads/master | 2022-12-12T18:28:34.960459 | 2020-09-01T08:34:33 | 2020-09-01T08:34:33 | 278,582,856 | 0 | 0 | null | 2020-07-10T08:38:37 | 2020-07-10T08:38:36 | null | UTF-8 | C++ | false | false | 2,174 | h | DemacBoostWaveIncludes.h | /**
cpp2cxx is an open source software distributed under terms of the
Apache2.0 licence.
Copyrights remain with the original copyright holders.
Use of this material is by permission and/or license.
Copyright [2012] Aditya Kumar, Andrew Sutton, Bjarne Stroustrup
[2020] Thomas Figueroa
Licensed und... |
77dd715d6c8be4c5bb93d5f64f25e20e815ad4ea | dce27d2996bcf5012df74b0e41b4a5f24c20f915 | /question1.cpp | 36dbda86238ad11742432b66c69f3f5122a1b27f | [] | no_license | prnjlblwl/lab-5 | 81d9d15926a4f3cd4ca6101abe1f22976c817f14 | 2b387f7ce62b2794f98ae4a261536be17aef37b6 | refs/heads/master | 2021-07-12T14:03:54.895560 | 2017-10-15T13:20:14 | 2017-10-15T13:20:14 | 107,013,816 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 383 | cpp | question1.cpp | #include <iostream>
using namespace std;
int sum(int no[],int l);
int main() {
int n,arr[n],i,s=0;
cout<<"enter the number of elemnts in an array\n";
cin>>n;
for(i=0;i<n;i++)
{
cin>>arr[i];
}
s=sum(arr,n);
cout<<"the sum of the elements in an array is "<<s;
return 0;
}
int sum(int no[],int k)
{
int j,su... |
218a58c99826b35cb7ac9468bde828f705e39b65 | 6d48e159427bd235e890281b1514553733397729 | /src/scenegraph/SDFShader.h | ac24a4711ca7dae7457d22bf4172e1ade5703029 | [] | no_license | KDE/kquickcharts | 3f97ca99349bea793034aa075e7511c3807c3771 | 0e57976490842335fb413bdbc8bfa109bc881e1a | refs/heads/master | 2023-09-03T23:14:52.355201 | 2023-09-01T17:56:51 | 2023-09-01T17:56:51 | 217,096,726 | 18 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 3,364 | h | SDFShader.h | /*
* This file is part of KQuickCharts
* SPDX-FileCopyrightText: 2019 Arjen Hiemstra <ahiemstra@heimr.nl>
*
* SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
#ifndef SDF_SHADER_H
#define SDF_SHADER_H
#include <QSGMaterialShader>
struct UniformDataStream {
inline Un... |
9c2d91e378cc15eec836b51f1ff8960237eb3f80 | cf158951833a5d62693d3bad86f2b0427fdaacd8 | /tcmalloc/transfer_cache.h | 69481f7dc35ead1db39f08ad8ce0a01280b76399 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | karehouse/tcmalloc | 46b7cdc7a76348e18807c66f02acbda8d81ae3b0 | b70e96e79d72c65c94c3e33cbcd1de58341e190c | refs/heads/master | 2022-04-23T17:55:24.466701 | 2020-04-30T21:12:06 | 2020-04-30T21:12:31 | 260,357,435 | 0 | 0 | Apache-2.0 | 2020-05-01T01:44:34 | 2020-05-01T01:44:33 | null | UTF-8 | C++ | false | false | 5,654 | h | transfer_cache.h | // Copyright 2019 The TCMalloc Authors
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... |
5e0f475e6ecc67d6c79aca061cc30fea12548b36 | d003accdc24848c109b09b1340911ecc9395ac00 | /check.cpp | 7720d4359826ba46ba5338deb3fa1bd7373bc6f2 | [] | no_license | zerdnem/kasbahaw | cd1a0652a97ea53fb4f435d6ddf595aaab967c24 | 86d78450413bd92576c27520eb45353d7cc46634 | refs/heads/master | 2020-05-25T03:24:51.536764 | 2019-05-20T12:45:21 | 2019-05-20T12:45:21 | 187,601,643 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,877 | cpp | check.cpp | //Compile with g++ check.cpp -ljsoncpp -lcurl verify
#include <iostream>
#include <map>
#include "api.h"
using namespace std;
struct M
{
static map<string, string> g()
{
map<string, string> m;
m["social"] = "http://35.197.145.18:5000/api?email=";
m["hibp"] = "https://haveibeenpwned.c... |
25a9b8ce9829a0bc48a3493a55f21fb49d86ccf7 | 745a45b6bcf85fe497fc1acd06ef0b68b934626a | /suif/suif2b/utils/value_block_utils.cpp | 7afe9cb2f631b281cc2c892e82e0f3de31fb97e1 | [] | no_license | jrk/suif2 | e7c9f5e644f30422f7735837734e34248115cd2c | 6f4dee1a906cfd00d3b57a7ead6f9fc807d7455d | refs/heads/master | 2021-01-23T11:54:36.487230 | 2011-03-23T03:18:28 | 2011-03-23T03:18:28 | 1,514,729 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,801 | cpp | value_block_utils.cpp | #include "common/system_specific.h"
#include "value_block_utils.h"
#include "basicnodes/basic.h"
#include "suifnodes/suif.h"
#include "basicnodes/basic_factory.h"
#include "suifnodes/suif_factory.h"
#include "typebuilder/type_builder.h"
// Assumptions: elements are entered in ascending order
// pa... |
90f115d72b5a6b72828f69b81798d73e65a1a6e4 | 0c6032efd49282dc97ae45af8bd007255493bf24 | /devel/include/reactor_control/reactorTelemetry.h | 8b006b363639bca125caaa253620f11226f8f277 | [] | no_license | kingstone1927/USTPhantomXArm | edd3f4d712605cc3fad5ea3c393c5b008405876e | bca50540907a18c2cf30fb2d6847615d35a7e15c | refs/heads/main | 2023-08-25T16:45:41.660499 | 2021-11-08T02:00:44 | 2021-11-08T02:00:44 | 425,667,135 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,162 | h | reactorTelemetry.h | // Generated by gencpp from file reactor_control/reactorTelemetry.msg
// DO NOT EDIT!
#ifndef REACTOR_CONTROL_MESSAGE_REACTORTELEMETRY_H
#define REACTOR_CONTROL_MESSAGE_REACTORTELEMETRY_H
#include <string>
#include <vector>
#include <map>
#include <ros/types.h>
#include <ros/serialization.h>
#include <ros/builtin_... |
cb3fed0dc0c0f0e4c48bd359f1ea213a0f1ea2bf | f4ab3ab95f91b867dcc080f5b4dc8694a5c600ee | /Cargo Pirates (Space Invaders)/Source/game.cpp | 0c44643953c22fe29fd65e8306841b9df50c6755 | [] | no_license | chocofries/Engine-Projects | 8f50c0fe9d8ce916a29bd4812e46dacbeeaf02e4 | 1a556867e12fb56ecb45ba31ae89127b70bdb05a | refs/heads/master | 2020-07-17T05:30:31.775904 | 2019-09-04T05:45:47 | 2019-09-04T05:45:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,636 | cpp | game.cpp |
// Bachelor of Software Engineering
// Media Design School
// Auckland
// New Zealand
//
// (c) 2018 Media Design School.
//
// File Name : Cargo Pirates (Space Invaders)
// Description :
// Author : John Bu with support by Rory More
// Mail : John.Bu@mediadesign.school.nz + ruairidh.more@mediadesign.school.nz
//
... |
48c18764bac0d8c01264b86904be48a396946798 | fbf2f77d14b7bf4afebb8dd1dfc6295895635b88 | /include/tktk/ecs/SystemB.hpp | bce51cd034daa55a867c318a53123d67022762be | [
"Zlib",
"MIT",
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Mezozoysky/tktk | cd5723af1a03b33f40557614c7fd200b2de9d2f8 | c83cf4fe4aa32633e67d659d35ae6457e8e24fa6 | refs/heads/master | 2020-04-06T07:04:47.974952 | 2016-06-06T07:00:50 | 2016-06-06T07:00:50 | 38,129,489 | 1 | 1 | null | 2016-04-05T18:51:31 | 2015-06-26T19:23:12 | C++ | UTF-8 | C++ | false | false | 5,801 | hpp | SystemB.hpp | // tktk
//
// tktk - Copyright (C) 2015-2016 Stanislav Demyanovich <stan@angrybubo.com>
//
// This software is provided 'as-is', without any express or
// implied warranty. In no event will the authors be held
// liable for any damages arising from the use of this software.
//
// Permission is granted to anyone t... |
70a073db2e6b8cccd2a80a40641aea65884f60ae | f8312275d5aa069cbe8d829861a3875871edb8da | /Dynamic Programming/edit_distance.cpp | e12552af7e24477eefe181dacc5f18a1579cdab5 | [] | no_license | gp330841/Algorithm-And-Data-Structure-Programs | c868e57b2a0bd400aa152c2ee8646228c6c054c7 | a4f39e371b297d398380e015b456e5dc52e81f19 | refs/heads/master | 2020-03-24T13:55:40.865431 | 2018-07-29T11:24:13 | 2018-07-29T11:24:13 | 142,754,491 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 796 | cpp | edit_distance.cpp | #include<iostream>
using namespace std;
int min(int a,int b,int c)
{
if(a<b && a<c)
return a;
else if(b<a && b<c)
return b;
else if(c<a && c<b)
return c;
}
int edit_distance(char *x,char *y,int m,int n)
{
int dp[m+1][n+1];
int i,j;
for(int i=0;i<=m;i++)
... |
fd2869106bfc01b61523c492f4db770433de9f26 | 65dcb72f02dcd53b9818ac924de84edcecea20e2 | /Contest_Creation_Tools/Test_Case_Generation/Dynamic_Range_Sum_Queries/main.cpp | 2fee801d31884229604dc9b02b21d19c4088aab8 | [] | no_license | voidcs/RCC_ACM | 7d149a19de8a113d9df7b3234318d4f21c65996c | 4ce98a62d732fa4bf938557a9b008a17832e6cbf | refs/heads/master | 2022-12-06T06:28:25.775001 | 2022-11-18T22:10:04 | 2022-11-18T22:10:04 | 252,374,369 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 816 | cpp | main.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll INF = 1e18;
const ll mod = 1e9+7;
int main(){
freopen("input.txt", "w", stdout);
random_device rd;
mt19937_64 eng(rd());
uniform_int_distribution<long long> rand;
int n = rand(eng) % 100 + 900, m = rand(eng) % 100 + 900... |
e43f6e61911445acd4820579415eb142f3a945cb | a52f9f1165a97a161e371e5d2c72fdd61593341f | /external/pcl/include/pcl/GlobalSettings.h | 0deffba905d89d3c18618dbf6701761233d0a387 | [
"LGPL-3.0-only",
"LGPL-2.0-or-later",
"Zlib",
"MIT"
] | permissive | AstrocatApp/AstrocatApp | 3c27d7b1c1413dbc531f8ed973da3d3d525f59ff | 0b3b33861260ed495bfcbd4c8601ab82ad247d37 | refs/heads/master | 2023-08-12T01:07:57.961008 | 2021-05-25T05:15:24 | 2021-05-25T05:15:24 | 335,548,027 | 2 | 1 | MIT | 2021-10-07T05:15:50 | 2021-02-03T07:53:32 | C++ | UTF-8 | C++ | false | false | 30,147 | h | GlobalSettings.h | // ____ ______ __
// / __ \ / ____// /
// / /_/ // / / /
// / ____// /___ / /___ PixInsight Class Library
// /_/ \____//_____/ PCL 2.4.7
// ----------------------------------------------------------------------------
// pcl/GlobalSettings.h - Released 2020-12-17T15:46:29Z
// ---------------------... |
59455fb9c6757b45008c2d0639eee9a35a211e39 | fd016aacb50a65dbda2f0e2b35cec38a63baf68d | /targets/AzureRTOS/SiliconLabs/_nanoCLR/nanoFramework.Hardware.GiantGecko/nf_hardware_giantgecko_nanoFramework_Hardware_GiantGecko_Utilities.cpp | 117a661441ebab95237e38c8186241865245a94b | [
"MIT"
] | permissive | nanoframework/nf-interpreter | 4795563afe8b1d8e4819a4b4ebd700c9e36a4d80 | 2ebb0aeef2d9482a6233e4c78f562878ba726cf6 | refs/heads/main | 2023-08-29T11:30:31.384324 | 2023-08-29T10:55:46 | 2023-08-29T10:55:46 | 74,834,622 | 283 | 266 | MIT | 2023-09-14T00:22:43 | 2016-11-26T15:45:06 | C | UTF-8 | C++ | false | false | 2,187 | cpp | nf_hardware_giantgecko_nanoFramework_Hardware_GiantGecko_Utilities.cpp | //
// Copyright (c) .NET Foundation and Contributors
// See LICENSE file in the project root for full license information.
//
#include "nf_hardware_giantgecko.h"
#include <em_device.h>
HRESULT Library_nf_hardware_giantgecko_nanoFramework_Hardware_GiantGecko_Utilities::
NativeGetDeviceUniqueId___STATIC__VOID__SZAR... |
20abad92ba632e5393879a5b50c9a291d08b5837 | f2789f265fbbeec80cce94045aabaff7e913dfb2 | /test_conformance/basic/test_vloadstore.cpp | d34ecbf906809d267444fa994548c6185752eb78 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | KhronosGroup/OpenCL-CTS | 1ea9d0f8958cede6dbbe354a3bf092e8485d4d64 | c511ac62b095a6d54a34f188aa7e87c62c2fa98a | refs/heads/main | 2023-09-04T05:50:15.872643 | 2023-08-29T16:19:45 | 2023-08-29T16:19:45 | 91,338,943 | 169 | 170 | Apache-2.0 | 2023-09-14T20:49:42 | 2017-05-15T13:06:40 | C++ | UTF-8 | C++ | false | false | 40,397 | cpp | test_vloadstore.cpp | //
// Copyright (c) 2017 The Khronos Group Inc.
//
// 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 applicable la... |
f709253e1d86444548a6f44cac9d260908d2f413 | 989b34c46586ce2b769afc334e53ad310ccf4ed7 | /Pride/PLight/PLight.cpp | 6701c95f8756fdabed30945d5ed6cc005079f160 | [
"Unlicense"
] | permissive | DavidCoenFish/ancient-code-1 | ed51ae1cc75cea7ed77db111d46846d36aac7975 | 8d76c810209b737bfc1ce996611807f62122fb41 | refs/heads/master | 2020-03-21T10:18:51.234695 | 2018-06-24T01:24:48 | 2018-06-24T01:24:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,784 | cpp | PLight.cpp | //file: Pride/PLight/PLight.cpp
#include "Pride/PridePreCompileHeader.h"
#include "Pride/PLight/PLight.h"
/////////////////////////////////////////////////////////////////
// using
/**/
using namespace Hubris;
using namespace Pride;
/////////////////////////////////////////////////////////////////
// typedef
/**/
st... |
82b5fe06fe76e1551f68a5473a311ef331d221ca | 816387bfc88fd5832ee12715ec6f8ad4e3a721ee | /BinarySearchTrees/218checkIfBST.cpp | b350c35eb30f925ab00d704d3f90bdb00e37be1d | [] | no_license | Siriayanur/DSA | 2710163f93e65878d0985307cc838128bfcfb8f5 | 11679a585b2aec2d5b1eeefb97e469ac6f95ef84 | refs/heads/master | 2023-06-18T04:54:38.886743 | 2021-07-17T12:37:50 | 2021-07-17T12:37:50 | 314,945,846 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 652 | cpp | 218checkIfBST.cpp | #include <iostream>
#include "structureBT.h"
using namespace std;
// return true if the given tree is a BST, else return false
class Solution
{
public:
bool helper(Node *root, int left, int right)
{
if (!root)
return true;
if (root->data < left || root->data > right)
{
... |
be600e34818d4b80d82a8b8a8a537fe814e7b289 | aa939e717e119d5b119159485510bb67f7e6097a | /zrak_api_esp32/zrak_api_esp32.cpp | 97d1d76e4eb216230e69280a643c26999c0b7223 | [] | no_license | janvr1/arduino_libs | 03af388fad2be65474add48bf36642777d6f8056 | 8e25b1eb3323727a19f311eaa7a41ef1bb3ccab5 | refs/heads/master | 2022-04-14T14:20:35.350631 | 2020-03-14T17:42:40 | 2020-03-14T17:42:40 | 219,595,183 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,748 | cpp | zrak_api_esp32.cpp | #include "zrak_api_esp32.h"
zrak_client::zrak_client(String username, String password) {
_username = username;
_password = password;
}
void zrak_client::addVariable(String var_name, String var_value) {
_payload += "\""+ var_name + "\": " + "\""+ var_value + "\", ";
}
void zrak_client::addVariable(String ... |
7dd2341a88e78362c6adc52cb4fd4898e1ee01d3 | 7d396ae24eb23b4f95b9de6ee1fa19200e3d25fc | /Cplus复习/review01.cpp | b745a21df56f40f2e2dec0d55e5c41b2a1aa0758 | [] | no_license | RuningBird/cPlusReview | 8c17a8a8d9827e912dcc9f87aff677733d213bba | 0eca65ea597c77f90f14a168298d27f6667bd89b | refs/heads/master | 2021-01-19T04:25:08.051825 | 2017-08-21T14:51:38 | 2017-08-21T14:51:38 | 100,573,139 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 6,010 | cpp | review01.cpp | #include<iostream>
#include<iomanip>
#include<cmath>
#include<ctime>
#include<cstdlib>
#include<random>
#include<string>
#include<sstream> //可以判断字符串是否为数字
#include<cctype> //可以判断单个字符是否是数字,字母等;
using namespace std;
// 显示本机各个类型的大小
void showTypeSize() {
cout << "Size of char : " << sizeof(char) << endl;
cout << "Size ... |
44b10d41625cd397ea018e737d6caaede4cac828 | 19b8830775acc91dcda150f52326a79efd788383 | /src/plugins/coffee/light.cpp | 47a8a2cd552a3e6b3f2fa6d5c9ae30c494b33438 | [] | no_license | NielsHolst/UniSim2 | d3f17cec9f66343c330bbdd94dee7c5677c93079 | 03627d0ebc7ac535074e13d7ff94219463096353 | refs/heads/master | 2022-07-06T22:24:17.239149 | 2022-06-10T07:25:42 | 2022-06-10T07:25:42 | 47,770,237 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,409 | cpp | light.cpp | /* Copyright 2005-2021 by Niels Holst, Aarhus University [niels.holst at agro.au.dk].
** Released under the terms of the GNU Lesser General Public License version 3.0 or later.
** See: www.gnu.org/licenses/lgpl.html
*/
#include <base/publish.h>
#include "light.h"
using namespace base;
using namespace std;
namespace c... |
4c361c63c7e17f4e6c6ab5cddacf7e7816d4b914 | 2c40e6b9738b4375762f1a9c4c94bb8187b44ceb | /src/avoid/avoid.h | 5e8e7c4d5964bfaca485d87afffc5fcc7ab2a2a1 | [] | no_license | OldIronHorse/robot | d90ee1b49f096163f071c89427e1faeeeb37c1d1 | 51283b8af3f172f86de096c91431f8200ee0aa53 | refs/heads/master | 2021-01-22T21:07:32.877743 | 2018-02-27T15:27:11 | 2018-02-27T15:27:11 | 85,393,990 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 834 | h | avoid.h | #ifndef avoid_h
#define avoid_h
#include <rover.h>
#include <VL53L0X.h>
//TODO: Interrupt-based range checking?
// algorithm is setup, loop and callback function set
// setup() configures iterrupts and callback is required
// This looks a lot like a main.ino file...
// So maybe no abstraction is required, just work wi... |
38cf858ba3d0f8ef5b3fe142ae89f7243a564f2c | a9094abe48a4364ab6d9b955857594ab964d94e8 | /d01/ex04/ex04.cpp | 2eac8802f54aa29fdc4fc75ec494ec8e2944e319 | [] | no_license | link162/piscine_cpp | e5ac722453d54b8e4a9d4c156f47ea292e27cce8 | 526c74cac4d1617bc381401f81b31203ff594fcb | refs/heads/master | 2020-09-22T09:35:43.418383 | 2019-12-08T17:54:09 | 2019-12-08T17:54:09 | 225,140,366 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,123 | cpp | ex04.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ex04.cpp :+: :+: :+: ... |
f44558929b01d541fe6cadd3c846c3235439c04f | 8c763081c9088e759575c383ba6e1421c9f16c17 | /mitkpdp/steps/inc/thickening_identification.h | 9503c504f1e6e1e71068d56bbc895f20cfb27a0b | [
"BSD-3-Clause",
"LicenseRef-scancode-public-domain"
] | permissive | hksonngan/phan-anh-pdp | 369d7349033ae37496aea17e4fcf52cbae9aabfe | 306b2820f3bca8ada8d194cddf360a780e82bf20 | refs/heads/master | 2021-01-10T10:04:14.006874 | 2013-02-08T08:05:38 | 2013-02-08T08:05:38 | 50,319,191 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,382 | h | thickening_identification.h | #pragma once
#include "app/thickening_detection_step_base.h"
#include "steps/inc/Thickening3d.h"
#include "app/itk_filter_progress_watcher.h"
#include <QString>
#include <itkImage.h>
#include <mitkImage.h>
#include <mitkImageCast.h>
//! \todo remove?
//#include "steps/inc/pdpItkSliceExtractor.h"
//#incl... |
a9299b0c67f4a6eea474c33c7e6d82eb914da149 | 3310d7fa7364f8fe23136508d8fee3200901da35 | /TetrisV2/MastersAlgs/LinkedList/CPlusPlus/LinkedList.h | 9fe6701eb7fe075d06cf3923237f2257feaf8af9 | [] | no_license | D000M/Games | f239919a0bd7bf2326f318e1902b38ecd323e05e | 90ac1172a7383f30944a1137f349fe3ca5255536 | refs/heads/master | 2021-07-11T21:43:54.625976 | 2020-05-28T07:15:23 | 2020-05-28T07:15:23 | 142,460,210 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 773 | h | LinkedList.h | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: LinkedList.h
* Author: default
*
* Created on July 29, 2019, 2:24 PM
*/
#ifndef LINKEDLIST_H
#define LINKEDLIST_H
... |
dad7c77e0a8be364ca545b09cef427a77942c2df | df56e3b937c98aa42404f8cb28c97f8781163dd5 | /main.cpp | 985a7d7277eb240e50b33a6dac9700c13c3dfbf0 | [] | no_license | utec-ads-2019-2/prime-ring-problem-524-StephanoWurttele | f97ef4d44cb21a93701fad142700b7eb136399c4 | 112ea1a2a172075a9ed294be100b8093864dd27e | refs/heads/master | 2020-08-09T08:57:11.575365 | 2019-10-13T04:33:35 | 2019-10-13T04:33:35 | 214,053,264 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,910 | cpp | main.cpp | #include <iostream>
#include <vector>
using namespace std;
int primes[11]={2,3,5,7,11,13,17,19,23,29,31};
struct Node{
int data;
Node* next;
Node* prev;
bool used=0;
Node(int value) : next(nullptr), prev(nullptr), data(value){};
Node(): next(nullptr),prev(nullptr),data(-1){};
void killSelf() {
if(... |
1e7211470c2f3818cddd120416232b639ce904ed | afceed8695d8b783842a803cd038c0123b6a1473 | /test/src/TestLoad.cpp | eca50419f0b072589b947267442e583b53527b05 | [] | no_license | garfieldnate/CS240Chess | 3966b1d85ce855b1284a8fa772dc1b6288667da4 | 049998e0b6a8c1b362fa1bef8d8c9b607a1f42bf | refs/heads/master | 2021-01-10T11:11:53.054556 | 2015-09-24T06:39:21 | 2015-09-24T06:39:21 | 43,049,522 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 416 | cpp | TestLoad.cpp | #include "tests.h"
#include "ChessConstants.h"
#include "UnitTest.h"
#include "TestLoad.h"
#include "Game.h"
#include <iostream>
#include <string>
using namespace std;
TestLoad::TestLoad(){}
bool TestLoad::testLoad(ostream & os, string dataDir){
bool success = true;
Game * game = new Game(dataDir + "fewmoves.xml"... |
c6a5c9c2bbb37bbd269758696f2979fdb9f2146f | d80d44b026e027d5616f1c4cfecc56ffd0b25d06 | /RMPControls.cpp | 18f13e546590d0853a03681ad7ee76d54017bbfc | [] | no_license | Robbitron16/RMPSegwayFiles | d1ca0440b0d5c826a40be86ef0986747013b9f8b | 4b0da43b1c5cac5847b3e980518f40f7ea0df815 | refs/heads/master | 2021-03-12T19:43:42.215440 | 2015-11-10T17:34:31 | 2015-11-10T17:34:31 | 42,965,825 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,127 | cpp | RMPControls.cpp | // Client-reference.
#include "headerFunctions.h"
// Include files from Linux Machine.
#include <stdint.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
// Define the RMP Segway IP Address, Port, and size of buffer.
#define RECEIVER "192.168.0.40"
#d... |
8de18c7f49ce61ff807c52ba3aefc40976c2418f | 1e5e49c7b3b6bfdf2badf3b03efce9f024f3e3c1 | /Minigin/CrossingHolder.cpp | 3fa8de46f8e3f38e13d26c1992c0317d60f10799 | [] | no_license | SenneHawer/Minigin | b693014ec1ab0f227bca4a604d80b2e169bdc0a6 | 2592f414ff88756922363fbfed15109a6a615dbf | refs/heads/master | 2020-03-18T17:54:40.391626 | 2018-05-27T16:59:15 | 2018-05-27T16:59:15 | 135,059,651 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,343 | cpp | CrossingHolder.cpp | #include "MiniginPCH.h"
#include "CrossingHolder.h"
#include <algorithm>
#include "Vector2f.h"
#include "RigidBodyComponent.h"
#include "TransformComponent.h"
#include "GameObject.h"
#include "Crossing.h"
CrossingHolder::CrossingHolder()
{
}
CrossingHolder::~CrossingHolder()
{
}
void CrossingHolder::UpdateCollisio... |
95d9bb5bc0d5e2334957d197313c0348faabb4ba | 737cc20f83064009c0406675d1d4ee9b2092a80b | /SampleBase/ParticleEmitterPressure.h | 82e3115a626a32338600e291a503941d6287b331 | [
"MIT"
] | permissive | jjuiddong/KarlSims | 7e32e077da376deb1c0f270eb7855d84bfa6f7f1 | e05108eb7d2e68bfe0a90a7550eba727424081b6 | refs/heads/master | 2020-04-29T03:49:14.572321 | 2016-10-13T03:30:46 | 2016-10-13T03:30:46 | 14,440,791 | 5 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,254 | h | ParticleEmitterPressure.h | // This code contains NVIDIA Confidential Information and is disclosed to you
// under a form of NVIDIA software license agreement provided separately to you.
//
// Notice
// NVIDIA Corporation and its licensors retain all intellectual property and
// proprietary rights in and to this software and related documentation... |
46eb2a09c0fbdfe15ff09309ea86580a0dc50bbd | 125ae0adb562478b184bbb35d40f2c43b335415c | /GoFree/tGoFreeMessageSink.h | eab7fa435c3e821c72d95ab6637506e79e4903fc | [] | no_license | dulton/53_hero | ff49ce6096c379931d7649b654c5fa76de4630de | 48057fe05e75f57b500a395e6ff8ff9c06da6895 | refs/heads/master | 2020-02-25T04:19:18.632727 | 2016-05-20T03:44:44 | 2016-05-20T03:44:44 | 62,197,327 | 3 | 2 | null | 2016-06-29T05:11:41 | 2016-06-29T05:11:38 | null | WINDOWS-1252 | C++ | false | false | 844 | h | tGoFreeMessageSink.h | /*****************************************************/
// Copyright © 2007-2012 Navico
// Confidential and proprietary. All rights reserved.
/*****************************************************/
// tGoFreeMessageSync.h
//-------------------------------------------------------------------------------------------... |
67438fc67b21fb2d481374ac332f2828f4c13f9c | 71cbc64910807ceab826a6c54e0fea8d96104506 | /WorldBase/NavMap/NavResBitMap.cpp | 3f7357491b4f5bf1a144aab355364300238a1327 | [] | no_license | adrianolls/ll | 385580143dfc2365428469a51c220da08bfea8ec | 9c7d480036b1e6f1e3bdffe93b44bd5c70bd944a | refs/heads/master | 2022-12-26T07:06:13.260844 | 2020-09-16T04:36:17 | 2020-09-16T04:36:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 780 | cpp | NavResBitMap.cpp | #include "StdAfx.h"
#include "NavResBitMap.h"
namespace WorldBase
{
IMP_RTTI(NavResBitMap,NavResBase);
NavResBitMap::NavResBitMap(const TCHAR* szName): NavResBase(szName)
{
m_pBitMap=NULL;
}
NavResBitMap::~NavResBitMap(void)
{
SAFE_DELETE(m_pBitMap);
}
UINT NavResBitMap::CreateContent( DWORD param )
{
... |
81c70160b96af506db25a64ccbc16c64c554d81e | f257f557427c2a145b52a62b18ef704d19fc8eb8 | /examples/STM32_LAN8720/UdpSendReceive_LAN8720/UdpSendReceive_LAN8720.ino | 11deed94ad4d94f4033aa4e2a5e2592a16249294 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | khoih-prog/EthernetWebServer_STM32 | 11c1e10259fccf35e3c4198cc5f9f17410c1a06f | 232e0141115d8fb607248c2441d32e9f79cf6677 | refs/heads/master | 2022-12-12T23:19:27.967062 | 2022-12-05T03:50:08 | 2022-12-05T03:50:08 | 243,453,165 | 84 | 26 | MIT | 2020-09-25T01:35:51 | 2020-02-27T07:01:12 | C++ | UTF-8 | C++ | false | false | 3,450 | ino | UdpSendReceive_LAN8720.ino | /****************************************************************************************************************************
UDPSendReceive_LAN8720.ino - Simple Arduino web server sample for ESP8266/ESP32 AT-command shield
For STM32 with built-in Ethernet LAN8742A (Nucleo-144, DISCOVERY, etc) or W5x00/ENC28J60 shi... |
a728bb413380ec7ad485ba7f12fe3c5c7226ef1d | 7762b2955cc842dda06c400e24bb29cfb5dbd664 | /Dream/DreAnimator.h | 017abdd34572f77227028011c93ee8b7c7b376a4 | [] | no_license | roke123/DreamEngine | d3b2404778cf8e253454bc65fbf839b59ed7b4de | 6f3d2b73367a8783078496af7f33e72a4bcc6915 | HEAD | 2016-09-05T11:31:06.882346 | 2014-10-09T15:57:53 | 2014-10-09T15:58:08 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,056 | h | DreAnimator.h | #ifndef __DREANIMATOR_H__
#define __DREANIMATOR_H__
#include "DreSceneManagerDeclaration.h"
namespace dream
{
/** 关键帧
*/
class KeyFrame
{
public:
/** 构造函数 */
KeyFrame(f32 timePoint) : mTimePoint(timePoint), mISinvalid(false)
{
// 留空
}
/** 虚析构函数 */
virtual ~KeyFrame() {};
/** 通知当前帧已被销毁 */
voi... |
1441101c2f6adc64f1aa46d92797cf666d17843a | 72852e07bb30adbee608275d6048b2121a5b9d82 | /algorithms/problem_0666/other1.cpp | fadf4bcd122af18842615a72002bcad308b22307 | [] | no_license | drlongle/leetcode | e172ae29ea63911ccc3afb815f6dbff041609939 | 8e61ddf06fb3a4fb4a4e3d8466f3367ee1f27e13 | refs/heads/master | 2023-01-08T16:26:12.370098 | 2023-01-03T09:08:24 | 2023-01-03T09:08:24 | 81,335,609 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 938 | cpp | other1.cpp | class Solution {
public:
int pathSum(vector<int>& nums) {
int N = nums.size();
int level = 0, pos = 0, val = 0;
for (const auto & n : nums)
{
level = n / 100;
pos = (n % 100) / 10;
val = (n % 100) % 10;
record[level][pos] = val;
... |
7f436fb1e420c2ce9cadd73478b856199500e54c | 4df0f970005f816502f910866df88ec7fb20641b | /gtests/base_io_test.cc | f17b4e7bc9803311d7b51b17b740372d7a1f4f92 | [
"MIT"
] | permissive | qiniu/c-sdk | 69ed894c5bfa2265236bd9594e3cb8002e628392 | 40f7e5f59c02a5531bab364574cc82b7735d37a3 | refs/heads/master | 2023-08-18T15:43:08.857928 | 2023-07-14T06:36:11 | 2023-07-14T06:36:11 | 4,356,318 | 76 | 90 | null | 2023-08-31T02:45:45 | 2012-05-17T08:39:43 | C | UTF-8 | C++ | false | false | 2,398 | cc | base_io_test.cc | #include <gtest/gtest.h>
#include "test.h"
static const Qiniu_Int64 fsize = 4 * 1024 * 1024 + 2;
TEST(UnitTest, TestEqual)
{
Qiniu_Eq eq;
Qiniu_Seq seq, seq2;
Qiniu_Section sect;
Qiniu_ReaderAt in = Qiniu_SeqReaderAt(&seq, (size_t)fsize, 10, '0', 0);
Qiniu_Reader r = Qiniu_SectionReader(§, in, 0, (off_t)fsi... |
d9e5a8cceaa092678d18b83e5da2ea95f205e6f7 | 701d7a81ec02e599fa1d8fa5b30fcca07f0728fe | /day05/ex02/ShrubberyCreationForm.hpp | 6c966673580b6978ddc3e354222ea5da3c686b88 | [] | no_license | Gharbaoui/cpp-pool | aeda31bad734fc0ccd04f64fbb87cde98d1a4afd | c3ea3219f05e4f2f4085570c25279843db03c0c0 | refs/heads/master | 2023-09-01T00:21:47.679730 | 2021-09-29T12:08:48 | 2021-09-29T12:08:48 | 392,745,684 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 456 | hpp | ShrubberyCreationForm.hpp | #ifndef SHRUBBERY
#define SHRUBBERY
#include "Form.hpp"
class ShrubberyCreationForm : public Form
{
public:
ShrubberyCreationForm();
~ShrubberyCreationForm();
ShrubberyCreationForm(std::string const target);
ShrubberyCreationForm(ShrubberyCreationForm const &cp);
ShrubberyCreationForm &operator=(ShrubberyC... |
d48740f6ec83fe481f0b324c4a3911cc074e7df0 | 7e0c28dd83ae6fdf23caf0ab7e34e67bf0b22620 | /Source/SmallWorld/Private/GameActors/Soldiers/Archer.cpp | 96fce9e25732e87ec1a5b1a948bedaf82b301657 | [] | no_license | 1097195326/SmallWorld | fd32b1c1ec1feb6d577ed5e38747c458114f666f | 4bde46145d8091b0b375a573860a9ca728c9ccb7 | refs/heads/master | 2023-05-25T16:18:03.710953 | 2020-06-17T04:04:37 | 2020-06-17T04:04:37 | 170,458,832 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 395 | cpp | Archer.cpp | #include "Archer.h"
AArcher::AArcher()
{
mSoldierType = S_Archer;
CurrentWeapon = ProjectileWeapon = NewObject<USoldierProjectileWeapon>();
ProjectileWeapon->SetOwner(this);
ProjectileWeapon->AddToRoot();
}
AArcher::~AArcher()
{
ProjectileWeapon->RemoveFromRoot();
ProjectileWeapon = nullptr;
}
void AArcher::On_... |
73aa12db7fd8f65f5929cab1988ea3189794a120 | a43269ecc525e5a22f0ff836017581d731aa5a0a | /sailco_accel.ino | e2728d950b426a75b335f8bb888efbb9f78adcc4 | [
"BSD-3-Clause"
] | permissive | larskaislaniemi/sailco | 6e20d040d10eaf22f70b3c220cce3dc3d8a92469 | 19701ffec62115fa4523dd8986567502e774ef01 | refs/heads/master | 2021-01-16T23:18:15.978913 | 2017-02-25T23:01:47 | 2017-02-25T23:01:47 | 82,856,823 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,102 | ino | sailco_accel.ino | /*
* stream mode: latest 32 samples in the FIFO
* watermark interrupt once fifo has more samples than defined by "samples bits" of FIFO_CTL register
*
* read from fifo:
* x, y, z 0x32..0x37 (DATAX, DATAY, DATAZ)
* these hold _oldest_ values
*
* 0x1E..0x20 offsets x, y, z
* . 15.6 mg/LSB
* 0x38 FIFO_CTL
*... |
d07a27920a2b07f6d5ee13c8e94404b47bf6a5e0 | ec6d82eec01de000a919f9a3b7741cd953d3aef7 | /TKOM-proj/statement/AtrStatement.cpp | b5bcf1b19c524173c0ed88c3f2b00e58fd6e4407 | [] | no_license | Kasia4/SmartHouseLang | 4bd80c2f41b868ac4266eaa1243baf9feac2bbef | c9e0d01605fb65019353c7468330f49ea791d97f | refs/heads/master | 2020-03-12T18:47:31.381142 | 2018-05-19T16:22:12 | 2018-05-19T16:22:12 | 130,769,450 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 118 | cpp | AtrStatement.cpp | #include "AtrStatement.h"
std::string AtrStatement::toString() const
{
return "ATR " + dev_name + " " + atr_name;
}
|
017fa0a8053cb2cb46353f5fe80f7258f9f3bcb3 | f717e561649d68a2aeb626ced90587fa2b4de176 | /Extensions/PatchedAppleNVRAM/PatchedAppleNVRAM.cpp | 15d03458043ded7afc8158a0f6eae2b341df18a6 | [] | no_license | OpenDarwin-CVS/XPostFacto | 9235e78d3302bc3a22911e6d33b40ff3206ccdc3 | 1803de6542e90ac878fd99aa808b15449a124fb4 | refs/heads/master | 2016-09-10T10:16:24.830437 | 2005-08-10T00:01:25 | 2005-08-10T00:01:25 | 19,126,537 | 8 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 9,057 | cpp | PatchedAppleNVRAM.cpp | /*
Copyright (c) 2005
Other World Computing
All rights reserved
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and t... |
9f409b87949c2002cf3484869959d2253769b1fb | 0d764c9b482b52f63f5f34d205dbaaa4071c5a14 | /program4_8.cpp | 79bbc0e7ed803e1071c7e84e8f65b044db287148 | [] | no_license | CodeAsPoetry/NoteBook | f93a74d4e4b0e0092360bc30d45adff9770c148a | 8c60549907d99bd247ed1d35834cad485cd2a556 | refs/heads/master | 2020-04-01T19:58:48.043878 | 2018-12-11T12:40:55 | 2018-12-11T12:40:55 | 153,581,748 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,337 | cpp | program4_8.cpp | #include<iostream>
#include<cmath>
using namespace std;
const int M=1000+5;
double c[M][M],w[M][M],p[M],q[M];
int s[M][M];
int n,i,j,k;
void Optimal_BST(){
for(i=1;i<=n+1;i++){
c[i][i-1]=0.0;
w[i][i-1]=q[i-1];
}
for(int t=1;t<=n;t++){ //t为关键字的规模
//从下标为i开始的关键字到下标为j的关键字
f... |
2ea291683d5c76580ad14485709b6b46614b9864 | 884ec91636775e36b58371b02b51b4bfadefa9c8 | /src/Sharp.h | 53cfee74e73e770728e4d6cc408e661c88cd3343 | [] | no_license | hku-systems/DAENet | 8b38aad60a299063a6ee1c4e848fb1a4db6c6492 | dc1ce4dd67ef6c5fa18d09e1a66e9387f1d423ce | refs/heads/main | 2023-02-15T08:51:44.451871 | 2021-01-11T13:04:31 | 2021-01-11T13:04:31 | 328,600,531 | 2 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,518 | h | Sharp.h | //
// Created by maxxie on 16-7-19.
//
#ifndef SHARPVPN_SHARP_H
#define SHARPVPN_SHARP_H
//#define TARGET_WIN32
//#define TARGET_LINUX
#ifdef __gnu_linux__
#define TARGET_LINUX
#elif defined(__APPLE__)
#define TARGET_MACOSX
#endif
//#ifdef _WIN32
//#define TARGET_WIN32
//#endif
#ifdef TARGET_WIN32
typedef unsign... |
4b235c88c89ff89abc681d139406571d8558e2ac | c0e2fc2049cdb611b44af8c3a656d2cd64b3b62b | /src/Debug/FunctionsStatistics/FunctionsStatistics.h | dc5e1b108a145acf49211e8da14c5630a45b6c07 | [
"Apache-2.0"
] | permissive | github188/SimpleCode | f9e99fd6f3f73bb8cc6c1eea2a8fd84fff8dd77d | 781500a3b820e979db64672e3f2b1dc6151c5246 | refs/heads/master | 2021-01-19T22:53:56.256905 | 2016-02-02T08:02:43 | 2016-02-02T08:02:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,691 | h | FunctionsStatistics.h | /***************************************************************
*
* 函数性能统计模块。。。。。
* 不用任何初始化(需要初始化的东西会在main()函数执行之前完成),
* 编译时加上-finstrument-functions参数即可。
* 生成的可执行程序不要strip。(strip后无法通过函数地址查找函数名)
*
* 由于动态库的加载基址不确定。。因此不支持库内符号查找。。
*
* 调用ShowStatistics后会输出各函数执行次数与平均花费时间,
* 以微秒计数。可通过环境变量FF_THRESHOLD来设置统计阈... |
1b403ceb50a0d80042b324d001c419b0a43a34c5 | 5e36f65f1d84cbf50cd683ccc27c7a5c87e6a960 | /TrabalhoDesCompressaoArquivosHuffman/compressorDescompressor/arvore.cpp | 8bfd32eff7fe6f9a96c11272e59689352d0a45a6 | [] | no_license | gsalmeida/Estrutura-de-Dados-II | 417288c419e21f6a9f215edfeec3b80f45748f3b | 94037c8a088bf34126e305efe7cca6612d50eb75 | refs/heads/master | 2021-01-10T10:58:50.174751 | 2016-03-07T04:28:21 | 2016-03-07T04:28:21 | 53,295,494 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 885 | cpp | arvore.cpp | #include "arvore.h"
Arvore::Arvore() {
info = 0;
filho[ESQUERDA] = filho[DIREITA] = 0;
ladoEmRelacaoAoPai = ESQUERDA;
}
Arvore::Arvore(Info *i) {
info = i;
filho[ESQUERDA] = filho[DIREITA] = 0;
ladoEmRelacaoAoPai = ESQUERDA;
}
Arvore::Arvore(Info *i, Arvore *e, Arvore *d) {
info = i;
filho[ESQUERDA]... |
6f4f564235eda8b1f26c748e7d5d300eb22f27aa | 0ccfe6ed689f31358ba97e6f043fe5751bdc7279 | /ArduinoReceiver_NX/mFunctions.ino | acbc3cd2ea0e92186e455a0ba46c69a305b91540 | [
"MIT"
] | permissive | ips-lab/Scorepoint-board | 488e9b4328901effa505667253cca951be53827c | a380c80d79aa235c2402ba23bcb40f6a009c703d | refs/heads/master | 2020-12-30T15:30:44.394553 | 2017-05-16T00:44:57 | 2017-05-16T00:44:57 | 91,153,278 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 867 | ino | mFunctions.ino | void DispFill(char pat) {
for (int i = 0; i < g_LmxDev1.NbPanel; i++) {
LedMxSetRam(&g_LmxDev1, 0, pat, 32, g_LmxDev1.PanelAddr[i]);
LedMxSetRam(&g_LmxDev2, 0, pat, 32, g_LmxDev2.PanelAddr[i]);
}
}
// Scroll text from right to left until text runs off the display
void DispScroll(char *pText) {
int col = ... |
2e2e70eda3f30f27e532038566cae8060cc259cf | edd7e0f1583f982cd9e33bc67b8da2cfeb58cb36 | /include/node.h | 34544acbcbf71d245cd7ab440aa5ae5384fdfce6 | [
"MIT"
] | permissive | yebra06/graph | ff78c13e717289d7f1b151a9c5b3c971668733ad | 46ab4e58278d901bbcd1b4a00996eda8925fd713 | refs/heads/master | 2021-01-12T05:16:19.381480 | 2017-04-29T02:50:21 | 2017-04-29T02:50:21 | 77,891,280 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 279 | h | node.h | #ifndef GRAPH_NODE_H_
#define GRAPH_NODE_H_
namespace ay_graph
{
template <class T>
class V
{
public:
typedef std::size_t sizeType;
V(sizeType degree=0, T data=0);
private:
sizeType index;
sizeType degree;
T data;
};
}
#include "../src/node.tpp"
#endif
|
70cc977f093ebc4baca10edf1deba87942133566 | 111c3ebecfa9eac954bde34b38450b0519c45b86 | /SDK_Perso/include/inter/Include/edModel/inl/ModelEntryPoint.inl | f798f05659dbc01551b959bc0370343d23706efa | [] | no_license | 1059444127/NH90 | 25db189bb4f3b7129a3c6d97acb415265339dab7 | a97da9d49b4d520ad169845603fd47c5ed870797 | refs/heads/master | 2021-05-29T14:14:33.309737 | 2015-10-05T17:06:10 | 2015-10-05T17:06:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,370 | inl | ModelEntryPoint.inl | #include "edModel/IGraphModelManager.h"
#include "edModel/IModelManager.h"
#include <dlfcn.h> // для загрузки длл
template <typename ModelManager> struct ModelManagerTraits{};
template <> struct ModelManagerTraits<model::IGraphModelManager>{
static const char *getDllName(){return "edModelGraph.dll";}
static const... |
0ed122d12665c77e1ee3c02b03be92a2c2484aed | cfe55da4d59a44cdba3f8d07f4fb46500ea69985 | /RGno/Content/Hvy2DHUD.h | 7a9d0a285cca641fa870a85bf7881604fce3c632 | [
"MIT"
] | permissive | GarrettVance/RGno | 54e70fc0768e80aab7609cd3d06b6876480da7b8 | 2daa4230523a65bd35e2a9b81adfc701e90d0e9e | refs/heads/master | 2020-06-08T09:43:58.548761 | 2019-11-02T16:54:21 | 2019-11-02T16:54:21 | 193,207,842 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,368 | h | Hvy2DHUD.h |
#pragma once
#include <string>
#include "..\Common\DeviceResources.h"
#include "..\Common\StepTimer.h"
namespace HvyDXBase
{
class Hvy2DHUD
{
public:
Hvy2DHUD(const std::shared_ptr<DX::DeviceResources>& deviceResources);
Hvy2DHUD::Hvy2DHUD(
... |
13bc2c9f48844cdbef26b8465490963f0d356719 | 29d643e7b42ef8e66321a86a68c3cd47cad49b28 | /InferenceEngine2019/Settings.h | 9eafedf74e2bf379a0712c118282104e5bed6818 | [] | no_license | JPGalovic/InferenceEngine2019 | 5e2f40de1bd26b7d8fb3ba5bb0a2751a187aca23 | e7852cb759c419ad40e16fbc7b1ad74557b2092b | refs/heads/master | 2022-01-17T16:39:36.138455 | 2019-05-28T04:52:00 | 2019-05-28T04:52:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 67 | h | Settings.h | #pragma once
namespace Settings
{
const bool Debug = true;
} |
98587a9052a76ae40881c6ea137700a504843b26 | 650043ce21b1b474237c280bd29fbc672b187960 | /plugin/Plugins.h | dd7f1f3e15e35eaa166016e9886a1df10c0c646b | [
"Apache-2.0"
] | permissive | rmosolgo/sorbet | 98a7aedf96eedd2b3dccd19b032e383412c74289 | 7ab2564aaca51c990aec7b3958b61455c1567283 | refs/heads/master | 2023-08-30T09:54:09.694611 | 2019-06-20T19:41:30 | 2019-06-20T19:41:30 | 192,978,123 | 3 | 0 | Apache-2.0 | 2019-06-20T19:41:58 | 2019-06-20T19:41:57 | null | UTF-8 | C++ | false | false | 423 | h | Plugins.h | #ifndef SORBET_PLUGIN_PLUGINS_H
#define SORBET_PLUGIN_PLUGINS_H
#include "common/common.h"
#include "core/GlobalState.h"
#include "main/options/options.h"
namespace sorbet::plugin {
class Plugins final {
public:
static void dumpPluginGeneratedFiles(const core::GlobalState &gs, const realmain::options::PrinterCon... |
aadcf3f5da4f241fb84f6ae0af8981a347dd2fb7 | f4efcb49c3c702557ef80f771c20b8b56d1a8cf5 | /pat/1002.h | 37c55de44e20dc6182c6a8ed9df3600f5fd7cdf7 | [] | no_license | liqia/pat | b6b3ea89f625051200b1189ac31dfda6e58b568b | 61b2803720f6b69103ec5f26a4049ce5df667b93 | refs/heads/master | 2020-03-22T14:03:04.652876 | 2018-07-11T03:44:01 | 2018-07-11T03:44:01 | 140,150,207 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,143 | h | 1002.h | //
// Created by gary on 18-7-8.
//
#ifndef PAT_1002_H
#define PAT_1002_H
#include <iostream>
#include <vector>
#include <queue>
using namespace std;
struct ArcNode{
string adjCity;
int cost;
ArcNode* next;
};
struct VNode{
string city;
int happiness;
ArcNode* first;
};
struct ALGraph{
ve... |
d0418c8817a6c1b41b2803668f6be9565cc9ca72 | 32ddd9b23c88f9c078656cf09529567ba53f3262 | /sio/cli.cpp | 56ad542a17ab77184e1618edead369cde15a09c0 | [] | no_license | lw1a2/test | 06769e141c0877ce37c02ca307f2934062c36342 | 0f647aa74c65c85f120b9f0a12981801af9df9ea | refs/heads/master | 2020-12-18T15:15:50.496440 | 2018-04-15T19:22:52 | 2018-04-15T19:22:52 | 4,145,806 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 967 | cpp | cli.cpp | #include <sys/types.h>
#include <sys/socket.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <netinet/tcp.h>
#include <iostream>
#include <sys/select.h>
using namespace std;
int main()
{
int ret = 0;
int sock = socket(AF_I... |
aba7c8c8e6b379c9123242b01a0140e160b497eb | 068596abc962f78c0804ea07f8de546cea8b9a71 | /OpenGL Graphics Programming/Cube.h | f9b66e79355a554141a8c3057da470f4eea168be | [] | no_license | Alps709/Advanced-Graphics-Programming | d4a5d4f8cb4c35ffb046b86eded21473959be057 | 6631582087ee430577f4e1a799037c1bf79eab0f | refs/heads/master | 2021-07-14T04:02:22.388534 | 2021-04-03T03:51:59 | 2021-04-03T03:51:59 | 243,881,203 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 402 | h | Cube.h | #pragma once
#include "GameObject.h"
class Cube : public GameObject
{
public:
Cube() = default;
Cube(glm::vec3 _position, Texture* _texture, glm::vec4 _colour, bool _useStencil = false);
~Cube();
void SetShaderUniforms(Camera& _myCamera, bool _fogRenderMode, bool _stencilOutline) const;
void Render(Camera& _myCa... |
d0350cbf9874ab1686efedefbd0777722df7dc57 | 5ed1d5ccd166dff2065ab4a5444504053cbc8b68 | /src/main.cpp | aaccce74a915dd29dd61305bab378a6ba28b62a2 | [] | no_license | r-o-b-o-t-o/opengl-particles | 711e331ccd412e49bfcc43fdebb1036282b84d7a | 25da4860c05b57ea0d9290c878fac4b88b179a57 | refs/heads/master | 2020-08-13T02:22:36.383905 | 2019-10-13T21:44:56 | 2019-10-13T21:44:56 | 214,890,031 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,280 | cpp | main.cpp | #define STB_IMAGE_IMPLEMENTATION
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "glad/glad.h"
#include "GLFW/glfw3.h"
#include "glm/glm.hpp"
#include "stb_image.h"
#include "stb_image_write.h"
#include "imgui/imgui.h"
#include "imgui/imgui_impl_glfw.h"
#include "imgui/imgui_impl_opengl3.h"
#include "pch.h"
#include ... |
488647f01c31b61e97cd68fb5829d2ec42fdd4a2 | 64699c2a69e7362bc07fbdd59a34e1dcbd7068f9 | /20_validParenthess/main.cpp | 0515f9f1e1c25afdba67f89b66594c4c1cedbe7e | [] | no_license | yuanyind/dyy.leetcode | fb492d0771a9ce29002833e2d7af2f685fcf5d27 | b523262d142ba38437bf32d7ab2334c31d4a27d4 | refs/heads/master | 2021-01-18T22:42:06.312105 | 2016-06-05T22:36:04 | 2016-06-05T22:36:04 | 41,131,783 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 358 | cpp | main.cpp | //
// main.cpp
// validParenthess
//
// Created by 杜袁茵 on 15/8/27.
// Copyright (c) 2015年 杜袁茵. All rights reserved.
//
#include <iostream>
#include "solution.cpp"
int main(int argc, const char * argv[]) {
Solution *s=new Solution();
bool result=s->isValid("{)[]");
std::cout<<result<<std::endl;
... |
be5b7439f7c1281ffa48271b81f2b82a6b2f2273 | b9c041c48479a4403c6d67acfc5b6518aa6efd1f | /src/C/_16_PrimeNumber/PrimeNumber.cpp | 2ffce3d0a6d531c4c23bbfb8854cf6046ebf2fa9 | [] | no_license | seven8527/General | 543e89c67e783b03b8676b6644379fc2fbb2c90e | 6e6e667efe7b54b04dd324169a1b5a6cbe5e791a | refs/heads/master | 2021-01-01T03:37:29.341688 | 2016-09-21T08:49:57 | 2016-09-21T08:49:57 | 57,861,819 | 3 | 2 | null | null | null | null | GB18030 | C++ | false | false | 398 | cpp | PrimeNumber.cpp | #include<stdio.h>
#include<math.h>
int main()
{
int a, i, p;
printf("plase input a number : ");
scanf("%d", &a);
p = sqrt(a); // 素数的开平方 不存在可以整除自己的数 该数也是素数
for(i =2; i<=p; i++)
{
if(a%i == 0) break;
}
if(i >=p+1)
printf("%d is a Prime number\n", a);
else
printf("%d is not a Prime... |
555c20f2e4aa68770416373542d995581ff4f0db | 53fb9a1bee4fdf1939b3732155643f53c533b610 | /R-TypeClient/inc/stdafx.h | cc2c72fd6b64066f93d4cc15f9ebf09167326713 | [] | no_license | kefranabg/R-Type | b7b414a5a24eeb42a3ba0fa0d5102d1e20d7952d | 683369ca907747415425e637b15104a53885bfde | refs/heads/master | 2021-01-10T08:53:04.145904 | 2016-03-22T06:18:51 | 2016-03-22T06:18:51 | 54,450,517 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 544 | h | stdafx.h | // stdafx.h : fichier Include pour les fichiers Include système standard,
// ou les fichiers Include spécifiques aux projets qui sont utilisés fréquemment,
// et sont rarement modifiés
//
#ifndef STDAFX
# define STDAFX
#include <SDKDDKVer.h>
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <w... |
e224c60545a35b9d63fb46383c23024c8edf58de | 1e0eb122a703f3edb78b8dfdf82fed5c4defd6aa | /src/hud/BonusMessages.h | 66b4c78ab58f9c4e3c556c80f0c01fa78fe0655d | [] | no_license | dwks/HexRacer | 66043a6cfefeb5458bad26c68ea7260739e33da8 | e24ef120a34aa6ca6619fb01e9f0a5885e3af25b | refs/heads/master | 2020-07-03T10:27:45.157003 | 2015-09-09T21:55:18 | 2015-09-09T21:55:18 | 42,206,529 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,105 | h | BonusMessages.h | #ifndef PROJECT_HUD__BONUS_MESSAGES_H
#define PROJECT_HUD__BONUS_MESSAGES_H
#include "bonus/BonusMessageQueue.h"
#include "render/TextureObjectChain.h"
#include "render/StringTexture.h"
#include "event/Enabler.h"
#include "event/BonusEvent.h"
namespace Project {
namespace HUD {
class BonusMessages
: public Event::E... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.