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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f6d79594f22025201ea59b9fd89e4b58cf2c933d | 6849888c728ac1f83790e7bc2215c723b2e9c364 | /source/tutil.hpp | 64a10927a849ddfb1940e8657a79680af242d005 | [] | no_license | kaiwalya/komp | 43f6c351a20d578d032ab2c4baadc125fe58a411 | 99b63103161b73d456705eecad867d235567eaca | HEAD | 2016-09-05T14:41:05.563233 | 2013-10-24T05:58:02 | 2013-10-24T05:58:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,716 | hpp | tutil.hpp | #if !defined THREAD_UTILS_HPP
#define THREAD_UTILS_HPP
#include <memory>
#include <thread>
#include <map>
#include <assert.h>
#include <vector>
namespace komp
{
namespace thread
{
class pool
{
std::vector<std::thread> m_pool;
void start();
std::mutex m_mWorkerEnter, m_mWorkerExit, m_mWorkerSchedule;
... |
2d2a798bdfb9d6b483f0960012f0a66653b2ef75 | 8305b0679c8360ddbb86d257eb5b6329b45a8c7d | /Rectangle_Prob.cpp | 61dd697d0894b36b3e21676d9e06cd62c4e13b99 | [] | no_license | SidhartK/Pre-2019-Code | e74005816fdd41372c801b8ab646f1f633e9da03 | ff2dc687ce0712c155f09dbf11e2b509948050d1 | refs/heads/master | 2023-02-18T12:45:52.464430 | 2021-01-19T22:03:05 | 2021-01-19T22:03:05 | 277,211,466 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 281 | cpp | Rectangle_Prob.cpp | #include <iostream>
using namespace std;
int main()
{
int a;
int b;
int c;
int d;
int x;
int y;
std::cout << "Enter Coordinates" << std::endl;
std::cin >> a >> b >> c >> d;
x = std::abs(a - c);
y = std::abs(b - d);
std::cout << "Area is " << x * y << std::endl;
}
|
153ecb694121a93f3af68d267dcfe56d666de124 | 09954f48bed88f3c88e1ec668bfdf46bdfa77efd | /Source/MatchGame/Private/MatchGameCard.cpp | 34cc319a29c6abda25049ce7f3b84d2376de0736 | [] | no_license | quantumwaffles/MatchGame | 435d5ac4e408878f826690c49bc031001e505a4e | ea3c02763afb4f4caa7d2d1b4b7d058c20320d41 | refs/heads/master | 2021-05-27T14:11:40.586518 | 2014-08-06T01:19:06 | 2014-08-06T01:19:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,775 | cpp | MatchGameCard.cpp |
#include "MatchGame.h"
#include "MatchGameCard.h"
AMatchGameCard::AMatchGameCard(const class FPostConstructInitializeProperties& PCIP)
: Super(PCIP)
{
UE_LOG(LogTemp, Warning, TEXT("In AMatchGameCard Cons"));
// Structure to hold one-time initialization
struct FConstructorStatics
{
ConstructorHelpers::FObjec... |
013ad921cefea6c9f7f07826b284e13a3a580b47 | 52ca17dca8c628bbabb0f04504332c8fdac8e7ea | /boost/spirit/home/x3/support/traits/attribute_type.hpp | 8891fcbcf73dae045f1469980c7ee48e3f1b1eae | [] | no_license | qinzuoyan/thirdparty | f610d43fe57133c832579e65ca46e71f1454f5c4 | bba9e68347ad0dbffb6fa350948672babc0fcb50 | refs/heads/master | 2021-01-16T17:47:57.121882 | 2015-04-21T06:59:19 | 2015-04-21T06:59:19 | 33,612,579 | 0 | 0 | null | 2015-04-08T14:39:51 | 2015-04-08T14:39:51 | null | UTF-8 | C++ | false | false | 90 | hpp | attribute_type.hpp | #include "thirdparty/boost_1_58_0/boost/spirit/home/x3/support/traits/attribute_type.hpp"
|
7f0d374c0e414872c5b489fdd1b244d66f388283 | 3511b623ed64163471af16145b02caa7337757a9 | /Lab6/students/StudentRepository.h | 76ad6a9daa3fac608a17c32eef5c6e64cc1207b6 | [] | no_license | michalgreszta/cpp-academic | f9aeb797434650879f52f3d3d9e01136e83a3fec | 1190d15ca458feea6fab0005c0892376f1198244 | refs/heads/master | 2022-10-06T20:33:19.993990 | 2020-06-12T13:06:01 | 2020-06-12T13:06:01 | 271,798,296 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 357 | h | StudentRepository.h | #ifndef STUDENTREPOSITORY_H
#define STUDENTREPOSITORY_H
#include <vector>
#include "Student.h"
class StudentRepository{
public:
void AddStudent(const Student& person);
int NumberOfStudents() const;
Student operator[](int index) const;
private:
std::vector<Student> listOfStudent... |
143f3d1ad3fc9274f64d5516fb321afd58d96ea6 | 89e716dc73a202857ad90f31c4380746708cbf73 | /AnselHack/dllmain.cpp | 5a2ac32c16a76dfb0238076f4c9533f407d86351 | [] | no_license | morelli690/_tools_sigscan_cpp_AnselHack | ab6b20dab85c84610d7d310e2360c809a41acc96 | 72ce1ff8678f1dd7c83ac48819ef90abac7294e1 | refs/heads/master | 2020-07-31T17:52:55.796649 | 2019-07-13T18:39:31 | 2019-07-13T18:39:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,109 | cpp | dllmain.cpp | #include "StaticOffsets.h"
// check if a pointer is valid
bool IsValidPtr(void* ptr) {
return !IsBadReadPtr(ptr, sizeof(LPVOID));
}
// The game's AnselSettings class
class AnselSettings {
public:
char pad_000[0x90];
float CameraMaxWanderDistance;
};
DWORD WINAPI mainThread(LPVOID lpParam) {
// Get the address fr... |
40535d4c43ac7547cd12629878fa324849ca9308 | fcc88521f63a3c22c81a9242ae3b203f2ea888fd | /C++/0952-Largest-Component-Size-by-Common-Factor/soln-1.cpp | cdf44bf58e402b5f8bb463b5b2d64a000d6943e9 | [
"MIT"
] | permissive | wyaadarsh/LeetCode-Solutions | b5963e3427aa547d485d3a2cb24e6cedc72804fd | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | refs/heads/master | 2022-12-06T15:50:37.930987 | 2020-08-30T15:49:27 | 2020-08-30T15:49:27 | 291,811,790 | 0 | 1 | MIT | 2020-08-31T19:57:35 | 2020-08-31T19:57:34 | null | UTF-8 | C++ | false | false | 2,056 | cpp | soln-1.cpp | typedef long long ll;
typedef vector<int> VI;
typedef pair<int, int> PII;
#define REP(i,s,t) for(int i = (s); i < (t); i++)
#define FILL(x,v) memset(x, v, sizeof(x))
#define MAXN 100005
int parent[MAXN], cnt[MAXN];
int find(int x) {
if (parent[x] != x)
parent[x] = find(parent[x]);
return parent[x];
}... |
f66d0600016cf2b7aaa0d04e43b6600f1851cb88 | acd3ee53bc6f7348bbd05bb35101f64330538e31 | /vpython/vpMergeFdmAPI.hpp | 05dac760d5fd37c7358546a66950ad796938f25c | [] | no_license | lichaoren/boostpython | 2e8296bb141e6ce600908c61f529ffadd39fde47 | ddc94717578efd583ba755f90d31f7022fe6027b | refs/heads/master | 2020-07-06T06:08:50.057003 | 2016-11-17T18:54:17 | 2016-11-17T18:54:17 | 74,057,200 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,640 | hpp | vpMergeFdmAPI.hpp | /*
* File: vpMergeFdmAPI.hpp
* Author: yanhliu
*
* Created on April 9, 2015, 10:28 AM
*/
#ifndef VPMERGEFDMAPI_HPP
#define VPMERGEFDMAPI_HPP
#include <boost/python.hpp>
#include "vlVolume.hpp"
#include "FdmMerge.hpp"
#include "gmiAppModel.hpp"
#include "vmBoolMask.hpp"
#include "vlSurveyRegion.hpp"
#include "... |
443d11644d16f453e85b7f2602f01e156a9d06c3 | 83ae15a49dd029f5671997efbf2d52f25c124edd | /IRsendDemo/IRsendDemo.ino | f2b08f7a627216f6c7dfbb228433cc70337573f1 | [] | no_license | wangchll/Arduino-Roomba-IR | e05b62ba18c3c6439be87c4b64ecf5d6efe2a5c6 | e636cf3272eab6179c546f5c304f8f13e44d0863 | refs/heads/master | 2016-09-05T19:23:16.611553 | 2012-12-06T12:15:42 | 2012-12-06T12:15:42 | 7,035,091 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 827 | ino | IRsendDemo.ino | /*
* IRremote: IRsendDemo - demonstrates sending IR codes with IRsend
* An IR LED must be connected to Arduino PWM pin 3.
* Version 0.1 July, 2009
* Copyright 2009 Ken Shirriff
* http://arcfn.com
*/
#include <IRremote.h>
IRsend irsend;
unsigned int dock[] = {2650,1100,750,2900,750,2900,750,2900,750,2900,2650,1... |
a116701c38f4a819d6f8c040da27f0fa851357cf | 31982535b7e7ba7ef1d83de7c4a435f2cc9bfde2 | /HW_8/Pig.h | 1756dbd4ec22fa9266dd8fb35561db4e7641f828 | [
"BSD-2-Clause"
] | permissive | niki999922/Homework_cpp_3_term | 3f1442ec35e156538b0080ed50ca587d1a1aa619 | 73dd28144b603e97f0d573c1d9d69e93388ac1ae | refs/heads/master | 2020-03-28T13:04:06.824222 | 2019-05-27T17:54:30 | 2019-05-27T17:54:30 | 148,362,731 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 227 | h | Pig.h | #pragma once
#include "Unit.h"
#include "Animal.h"
class Pig: public virtual Animal {
public:
explicit Pig(int id, int hp=MAX_HP, int baseArmor=DEFAULT_ARMOR, int baseDamage=DEFAULT_DAMAGE);
virtual void grunt();
};
|
63c8ea32a4524b6a20e35281e46325e442c40406 | 02b187d56a2c6a71480135fcc4d24d0903c37ebe | /Baekjoon/15657.cpp | 70a87f147dbccae7cbdef962e7f3b86121016390 | [] | no_license | mbkim95/Algorithm | 13fdab15746dbeddd147986a56f4452430cc5963 | 5cb9ad2a8af9079725782b98ed068c711501f596 | refs/heads/master | 2023-04-27T20:33:04.569574 | 2023-04-16T02:50:50 | 2023-04-16T02:50:50 | 154,241,473 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 495 | cpp | 15657.cpp | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int n, m;
vector<int> num, ans;
void dfs(int idx) {
if(ans.size() == m) {
for(int i: ans) cout << i << ' ';
cout << '\n';
return;
}
for(int i=idx; i<n; i++) {
ans.push_back(num[i]);
dfs(i);
ans.pop_back();
... |
a9d53a2e0219982f3c30fce4920effc3cd5b5b91 | ac6f143ededead51a7f0eb94da26ddd589c1f2c2 | /libuvm/runtime.h | ac34ecfdc0968a7e584e3517c7d7109fb72aa4db | [] | no_license | andrewsen/uframework | f11bf0948e917fce99e382185d5bfe3b2bff4480 | 2629f6775a389cafcda4c257c57f130bf4eda0b2 | refs/heads/master | 2021-01-05T08:59:03.802078 | 2017-08-06T21:53:22 | 2017-08-06T21:53:22 | 99,514,592 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,138 | h | runtime.h | #ifndef RUNTIME_H
#define RUNTIME_H
#include "log.h"
#include "module.h"
//#include "blockallocator.h"
#include "jit.h"
#include <sstream>
//#include <cstring>
//#include <stack>
#include <execinfo.h>
//#include <unistd.h>
#include <unordered_map>
#define rtThrow(...) rtThrowEx(__FILE__, __LINE__, __VA_ARGS__)
/* ... |
07fed2e941ca717d926dbb640da4de77f73aeed0 | d732c881b57ef5e3c8f8d105b2f2e09b86bcc3fe | /src/module-ml/VType_Sigmoid.cpp | dabf446f5fdb370618e7746cfa3573305c869e4c | [] | no_license | gura-lang/gurax | 9180861394848fd0be1f8e60322b65a92c4c604d | d9fedbc6e10f38af62c53c1bb8a4734118d14ce4 | refs/heads/master | 2023-09-01T09:15:36.548730 | 2023-09-01T08:49:33 | 2023-09-01T08:49:33 | 160,017,455 | 10 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,788 | cpp | VType_Sigmoid.cpp | //==============================================================================
// VType_Sigmoid.cpp
//==============================================================================
#include "stdafx.h"
Gurax_BeginModuleScope(ml)
//------------------------------------------------------------------------------
// Help... |
fad14179d197eb4d7e5fc0de8201c38ec05e98ff | cc71e5a48d2999dcc6c2c7ccacb8b2ba1dbef532 | /Lab_4.4/Pair.cpp | d6e5aec0b8ddde50e9f426abf4e1aaf57502a335 | [] | no_license | Woloda/Lab_4_4 | 9b3846bfdfe432b21a29ca1e56806e34702a5dd7 | 0810234f955ad28fdb8aab89ba4582390c5510a1 | refs/heads/master | 2023-04-01T05:59:00.095143 | 2021-04-11T11:09:29 | 2021-04-11T11:09:29 | 356,845,002 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 638 | cpp | Pair.cpp | #include "Pair.h"
Pair::Pair() : x(0), y(0) {} //конструкторт за умовчанням(без параметрів)
Pair::Pair(double v_x, double v_y) : x(v_x), y(v_y) {} //конструктор ініціалізації
void Pair::Set_x(double value) { x = value; } //встановлення значення поля "x"
void Pair::Set_y(double value) { y = value; } //встановл... |
63c33538100a060abc7fb3ea8e457c0573432436 | 0bf1f7b901118b5cbe3d51bbc5885fcb634419c5 | /Cpp/SDK/UMG_EnchantmentWidgetBase_classes.h | 4fcd6631765c89645f2d8a2576246fe03f3de2c7 | [] | no_license | zH4x-SDK/zMCDungeons-SDK | 3a90a959e4a72f4007fc749c53b8775b7155f3da | ab9d8f0ab04b215577dd2eb067e65015b5a70521 | refs/heads/main | 2023-07-15T15:43:17.217894 | 2021-08-27T13:49:22 | 2021-08-27T13:49:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,091 | h | UMG_EnchantmentWidgetBase_classes.h | #pragma once
// Name: DBZKakarot, Version: 1.0.3
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Classes
//-------------------------------------------------------... |
8e18f7f3c05ea9a822c6d30e6ed27f19dfa6af9f | 9823f12bbe144dae3c9decaba2bc38d3a2e94e90 | /component/__discard/network/socket.cpp | 25208c9be2ad0dc212f487c72a7a1506d72cad95 | [
"MIT"
] | permissive | eboxmaker/eBox_Framework | e8512fe26ecd729df97fdf38c875567677954858 | b6c19c526568ac68df3032295c46cbd26212e111 | refs/heads/master | 2023-08-15T10:41:53.584433 | 2023-07-23T04:10:52 | 2023-07-23T04:10:52 | 95,169,842 | 133 | 68 | MIT | 2020-10-31T01:02:41 | 2017-06-23T01:07:19 | C | WINDOWS-1252 | C++ | false | false | 21,263 | cpp | socket.cpp | /**
******************************************************************************
* @file socket.cpp
* @author shentq
* @version V1.2
* @date 2016/08/14
* @brief
******************************************************************************
* @attention
*
* No part of this software may be us... |
64750cb2052e372fc589d404f2b29ace9182848b | 4ecab1190b24f6866cb3b0e8c5d4a6e74d911c26 | /programs/codes/codechef/SHIRO.cpp | 363cb3e827d86942a9728414390f9022d6ba501f | [] | no_license | bhupkas/Backup | f15ccfa8bc44a2dc3544b204dfeaeea6d8728ded | 67d5343cf9de9267488414aa4da0eb2ada867464 | refs/heads/master | 2020-06-08T09:37:48.140088 | 2015-05-22T21:00:15 | 2015-05-22T21:00:15 | 32,330,228 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 991 | cpp | SHIRO.cpp | /* bhupkas */
#include "iostream"
#include "stdio.h"
#include "algorithm"
#include "map"
#include "string.h"
#include "string"
using namespace std;
#define FOR(i,a,b) for(i=a;i<b;i++)
double A[105][10005];
int num[105];
int p[105];
int n;
int T[105];
double fun(int i,int val)
{
if(val<=0) return 1.0;
if(v... |
977809f85ff84c4b4afa6c99d7eb01fdb85205b5 | 07cc930397f60f8a9e1d437198244543f64d6ca6 | /ctn_cpp/src_cmake_template/include/modules/hello_english.hpp | 5bb7fe2a32caf9baa59ba7729b35151c79f4bb90 | [] | no_license | BTA198D/ctnguyen | 98e22ee8b1b89a44befc713c37408561ac997dc8 | 0affe545bced1c489e682277b18dd7bd012c1403 | refs/heads/master | 2023-03-20T10:11:48.083165 | 2020-10-30T15:14:41 | 2020-10-30T15:22:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 527 | hpp | hello_english.hpp | /************************************************
* Mini Porject helloworld for cmake *
* @authors Chi Thanh NGUYEN *
* contact chithanhnguyen.math@gmail.com *
*************************************************/
/*!
* @file include/moduels/hello_english.hpp
* @date Sept 2013
*... |
510ae7f5b145db4451ef378d4c210e00d6bf7669 | e9f6461fea7045bb07fc2be09ae1a9ec609b50f0 | /红马甲/Src/Client/Client/DlgLoad.h | 982fecc9297b758470844a4e47014b1db0000ec1 | [] | no_license | cash2one/important-files | bd1a88ea30e3ff16b4fbba6b4939ab6b13f5a6c8 | 12aebeae6322fafb89869ab15eac588420cbb004 | refs/heads/master | 2021-01-15T23:20:54.484632 | 2012-09-19T04:21:08 | 2012-09-19T04:21:08 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,490 | h | DlgLoad.h | #pragma once
#include "../../include/UI/Skin/SkinButton.h"
#include "../../include/UI/Skin/SkinLabel.h"
#include "../../include/UI/Skin/SkinCheckBox.h"
#include "../../include/UI/Frame/NonFrameDlg.h"
// CDlgLoad 对话框
class CDlgLoad
: public ui::frame::CNonFrameDlg
{
DECLARE_DYNAMIC(CDlgLoad)
publi... |
7ef9dbf8b9f1ac4a2ef627f458619cda5bc305e4 | 2694b5757220afebf0a07cc2c14e487c81219654 | /450-DSA-Cracker/Array/Codes/count-invversions.cpp | d54882ea61d456e966fa689627c08fb160881b3c | [] | no_license | sumitrathawani1810/Data-Structure-Algorithm | 64254e3116aad331b7e3019b5eebadf885bf9dc5 | 7ad452368e721c970f4b0ca9cde39d436bba2533 | refs/heads/main | 2023-08-31T20:26:23.648931 | 2021-10-23T04:07:39 | 2021-10-23T04:07:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 333 | cpp | count-invversions.cpp | #include<bits/stdc++.h>
using namespace std;
class Solution{
public:
long long int inversionCount(long lon arr[], long long N)
{}
}asy;
int main(){
long long N;
cin>>N;
long long A[N];
for(long long i =0;i<N;i++){
cin>>A[i];
}cout<<asy.inversionCount(A,N)<<endl;
... |
e4e01be1ddb553c340e812a231e7d5c4699fe54f | d081d466d16d6ad7aa80bc5c3de5c8484174cc37 | /Pig-to-escape/Pig-to-escape/ObjEnemyWolf.cpp | dc5f8e3163f64970c0d334a67b317d26deb07885 | [] | no_license | Wearecrazy/-Pig-to-escape | 5f2ea057d02d32dc0998fb8906c10be45ca5b229 | 20e6f6d3c6d8856affe713d77d085796dcbd1b92 | refs/heads/master | 2021-09-04T11:04:21.968885 | 2018-01-18T03:06:59 | 2018-01-18T03:06:59 | 113,135,253 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 2,995 | cpp | ObjEnemyWolf.cpp | //使用するヘッダーファイル
#include"GameL\DrawTexture.h"
#include"GameL\WinInputs.h"
#include"GameL\SceneObjManager.h"
#include"GameL\HitBoxManager.h"
#include"GameL\ObjBlock.h"
#include"GameHead.h"
#include"ObjEnemyWolf.h"
//使用するネームスペース
using namespace GameL;
CObjEnemy::CObjEnemy(float x, float y)
{
m_px = x;//位置
m_py = y;
}... |
309f8969764d567fa03bba780e3d93edf04f9592 | 54ab54febf36f5b20078ee19c53e34ffbb9cdee6 | /sprint05/t04/app/src/Weapon.h | 18eb2ca45337b7036e044cadffaaf3bf01efac00 | [
"MIT"
] | permissive | arni30/marathon-cpp | dca1a42fc1bbdffe68de7eaeb5dd2caaa8483eae | b8716599a891e2c534f2d63dd662931fe098e36a | refs/heads/master | 2022-12-16T12:45:21.252421 | 2020-09-12T15:50:10 | 2020-09-12T15:50:10 | 291,640,605 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 341 | h | Weapon.h | //
// Created by Oleksandr Arnopolin on 9/8/20.
//
#ifndef IMPERIALVSSTORMCLOAK_WEAPON_H
#define IMPERIALVSSTORMCLOAK_WEAPON_H
#include <iostream>
class Weapon{
public:
explicit Weapon(int damage);
virtual ~Weapon() = default;
int getDamage() const;
private:
const int m_damage;
};
#endif //IMPERIALV... |
ac35fdd21a6ab4e6ea7a76c1f4d6a0aa054d0125 | 4bf80608c442b4007e5e099444da6cd9417b9ff5 | /fastgraph.cpp | 2383861a90316595eb80bd82a87949e1e3afd64c | [] | no_license | BelovP/DevLang | 6eef6e6b87ff125ab22873ff61af4c61f0416f44 | 49842e425909ee66dd0390d456e8e96f3386221f | refs/heads/master | 2020-05-17T03:57:29.183047 | 2015-03-22T21:06:01 | 2015-03-22T21:06:01 | 30,828,372 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,693 | cpp | fastgraph.cpp | #include <vector>
#include <limits>
extern "C" {
#include <Python.h>
}
using std::vector;
static PyObject * Fast_Floyd(PyObject* module, PyObject* args)
{
PyObject * graph_matrix = PyTuple_GetItem(args, 0);
int vertnum = PyObject_Length(graph_matrix);
//int inf = std::numeric_limits<int>::infinity();
vector<ve... |
ed8c4e08e04493b3355667fa70c9465e622c5171 | ef8040b85285ab329370e6268b5dcfe9b6a8d080 | /QACGame/GeneratedFiles/ui_WelcomeWin.h | 4f8dd4fcc2748e6cbc11eea6feb6f8f4ed1d6189 | [] | no_license | xyfxfhw/QACGame | 37bcf45ab1f19e046bb46083c62b2b63375a747a | 02009e1a5b04e39c280af1663f23d98546e0a65c | refs/heads/master | 2021-01-02T22:35:23.031134 | 2017-08-04T14:18:39 | 2017-08-04T14:18:39 | 99,348,708 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,079 | h | ui_WelcomeWin.h | /********************************************************************************
** Form generated from reading UI file 'WelcomeWin.ui'
**
** Created by: Qt User Interface Compiler version 5.9.1
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
****************************************... |
47953e4e9a011a57795043e63d0387a3d31becdf | 46257da4d2174dade76fc7a1fcf252353cd23118 | /Classes/WelcomeLayer.hpp | 789d59d4041a4250a873ae8acfb401ae62360a01 | [
"MIT",
"Apache-2.0"
] | permissive | nickqiao/AirWar | 529e964a3ef26bbc2de6cbd547231bc1f13075f4 | 1cd8b418a1a3ec240bc02581ecff034218939b59 | refs/heads/master | 2021-01-11T19:06:18.319760 | 2017-01-24T08:17:19 | 2017-01-24T08:17:19 | 79,317,665 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 446 | hpp | WelcomeLayer.hpp | //
// WelcomeLayer.hpp
// AirWar
//
// Created by nick on 2017/1/22.
// Copyright © 2017年 chenyuqiao. All rights reserved.
//
#include "cocos2d.h"
USING_NS_CC;
class WelcomeLayer : public Layer {
public:
WelcomeLayer();
~WelcomeLayer();
virtual bool init();
CREATE_FUNC(Welcome... |
753a5aa68d0a52d66721eabd9e11b27d386fb432 | 9d0d9492c12b3e88303c87134d6c0536e727b34f | /t22_type_of_object_passed_by_ptr_ref.cpp | b42c6056f6fb9d7c391959b23c0b52b0c7e8cff8 | [] | no_license | s-kramer/cpp_tests | 361929b81b99fcb17da13014e78748f7578becc1 | 2d6d3404bc5d6405e0cba8159e1cce0248efc194 | refs/heads/master | 2021-01-10T03:54:39.174981 | 2017-08-07T08:16:14 | 2017-08-07T08:16:14 | 53,738,390 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,150 | cpp | t22_type_of_object_passed_by_ptr_ref.cpp | #include <iostream>
class Base
{
public:
explicit Base (void) {};
/*
* Virtual base class destructor inherited by all the derived classes.
* They don't have to implement their own constructors - compiler default
* destructor is already virtual.
*/
virtual~Base () { std::cout << "~Base... |
64c3f6d6676a9218b59b73bcc884ce564a6741ea | 6909fd4b649a67bcd8611af26af77d9f98be5cc1 | /KNearestNeighbours.h | 6022b936c7b751d5ffc5a3068079b023f474efcb | [] | no_license | DariusBotusanu/CIFAR-10-Image-Classifier- | 773794850885e29f936e844bdc224af0c28b8b44 | 8ccf717f6eea4b60d91bffbc069658e74002f5a0 | refs/heads/main | 2023-06-12T00:28:59.491252 | 2021-06-29T08:13:24 | 2021-06-29T08:13:24 | 380,749,160 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 599 | h | KNearestNeighbours.h | #pragma once
#include "Classifier.h"
#include "Dataset.h"
#include "metrics.h"
#include <string>
#include <vector>
typedef double (*dist)(Image*, Image*);
class KNearestNeighbours :
public Classifier
{
public:
KNearestNeighbours(const Dataset&);
KNearestNeighbours(unsigned int k, dist distance, const Data... |
b8301d605338a731961551de0147c1166b6342e2 | afcce85e08d8fc5141a840fe77bf7bf93f49df54 | /src/classifier/znnode.h | 64d1044725c566c280176f3f81d716fa00c28d93 | [] | no_license | icopavan/Automatic-Modulation-Classification-ELEN4012 | ff8f58a467129b371a9d2b042169fc99620b2959 | d72e3b4d36ad88b2872a8b33606c120f18b974e6 | refs/heads/master | 2021-01-12T21:07:15.807363 | 2015-10-09T21:29:56 | 2015-10-09T21:29:56 | 44,043,227 | 2 | 1 | null | 2015-10-11T07:30:41 | 2015-10-11T07:30:40 | null | UTF-8 | C++ | false | false | 1,754 | h | znnode.h | #ifndef ZNNODE_H
#define ZNNODE_H
#include "amc.h"
/**
* The ZnNode base class is designed to form the basis for AmcZnDecisionTree nodes.
*
* @author Anthony Farquharson - 563648
* @author Jacques Visser - 457817
*/
class ZnNode
{
public:
/**
* @brief ZnNode Constructor
* @param f the feature that... |
4e622cfcc7c58d63cd3c96f9d0ac84d54d8810b0 | 3cf0face47e124b8252372b9a1a00be0967c1566 | /Ads2020/week6lab/c.cpp | a5a45206200bd714914192c505a711dd7821ff1d | [] | no_license | Amanzhan989/Algorithms | d53666765c5b358753b620696ed00885b1897a4c | 11855a5d627eead29b508e47de89118eb800f5aa | refs/heads/main | 2023-01-09T06:19:39.485309 | 2020-11-05T17:22:11 | 2020-11-05T17:22:11 | 310,369,139 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,568 | cpp | c.cpp | #include<bits/stdc++.h>
using namespace std;
vector <int> v;
vector <int> l;
class MaxHeap {
public:
vector<int> a;
int parent(int i){
return (i-1)/2;
}
int left(int i){
return 2*i+1;
}
int right(int i){
return 2*i+2;
}
void insert(int k){
a.push_bac... |
aaf7d05ea0d588698554850c42b002a8337954f2 | 8130c16f3603a208ba86f0e5e833f9869870aeff | /Lab3/threadtest.cc | 55cf81ecae088e14b46ae899842372b32b726d2f | [] | no_license | MarxYoung/nachos-labs | fb1190f2b731941b4f5518bd20899c3cafdc9184 | cc78950e0daf82afb4765cc78396500b71bf8f89 | refs/heads/master | 2021-02-22T22:00:12.331529 | 2020-06-11T08:37:21 | 2020-06-11T08:37:21 | 245,385,797 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 26,816 | cc | threadtest.cc | // threadtest.cc
// Simple test case for the threads assignment.
//
// Create two threads, and have them context switch
// back and forth between themselves by calling Thread::Yield,
// to illustrate the inner workings of the thread system.
//
// Copyright (c) 1992-1993 The Regents of the University of Californi... |
942a687623738c47db69cb686e2c5323067afd38 | eafb6069989d9398cb4bd9a758b08ee645e90220 | /duty_angle_reserch/duty_angle_reserch.ino | 641b8320d87e938d242090db9dc047ecafc3cf28 | [] | no_license | okay003/braider-remix | 1a3a106e9739afb910f0d42ecd46eb42b3921027 | 0e01c4e401b244a0aa71be93be23692faad7adf4 | refs/heads/main | 2023-08-28T21:02:20.400503 | 2021-09-21T15:43:11 | 2021-09-21T15:43:11 | 408,864,435 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,143 | ino | duty_angle_reserch.ino | // see this site (step) :
// see this site (dc) : https://aisumegane.com/l298n/
#include <AccelStepper.h>
#define STEP_IN1 4
#define STEP_IN2 5
#define STEP_IN3 6
#define STEP_IN4 7
#define STEP_INTERFACE 8
#define DC_IN1 9
#define DC_IN2 8
#define DC_PWM 10
AccelStepper stepper(STEP_INTERFACE, STEP_IN... |
959166de069a0abac56ae44f5444804c89dfb809 | 7d2ef866bae9f524ab5a1db253e3deb56f906b62 | /inlinefunctions.cpp | 9e3ed1ca4f3dc0f581972caaab8e9fe7a652bcab | [
"MIT"
] | permissive | hemangsk/c-plus-plus | 5163f3d376da09cec7863c25af196bc9ce1195a1 | 683fe3ed08a98f9cacc31d3cf92c761d2dec7b0a | refs/heads/master | 2021-01-10T11:38:28.045232 | 2015-10-31T15:28:38 | 2015-10-31T15:28:38 | 44,863,577 | 1 | 1 | null | 2015-10-24T11:47:12 | 2015-10-24T11:41:11 | null | UTF-8 | C++ | false | false | 253 | cpp | inlinefunctions.cpp | #include <iostream>
#include <conio.h>
using namespace std;
inline int add(int a,int b)
{
return (a+b);
}
int main() {
/* code */
cout<<"We are adding 2 and 5 and the answer calculated using Inline () is = "<<add(2,5);
getch();
return 0;
}
|
a5e252ffad46fecd8340c6cdfa9c6a1ee8455469 | bab11a15f9ed2182c6da1771e77db319bfa87777 | /source/xfile.cpp | 268a80baa3709f1be432018d26ac03fb31085bb8 | [] | no_license | heartchord/xzero | c2821fae11821756bc4f0eae1f8c2515131d6ae3 | 8b646737e0d9a2f9d403076dffec487b5bfe724b | refs/heads/master | 2021-01-25T07:48:50.326023 | 2018-01-24T07:34:25 | 2018-01-24T07:34:25 | 93,660,934 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 33,232 | cpp | xfile.cpp | #include "xhash.h"
#include "xfile.h"
#include "xdebug.h"
#include "xstring.h"
#include "xpointer.h"
# pragma warning(disable: 4996)
#ifdef KG_PLATFORM_WINDOWS // windows platform
const char l_pszFileNewLine[3] = "\r\n";
const int l_nFileNewLineLen = 2;
#... |
2481b34c478dd71085a610378cd3761bd8936452 | f0d411a17896c2764f30bc8ec9bd3978ad7e9af9 | /ReverseWordsInAString.cpp | 59010f305f41d71202003e79ee40fe2bf0013e7c | [] | no_license | YongqianGit/DataStructure_and_Algorithm | 933a6bfa1b5db03161c97eb8c5604f2dec2e171c | d93a65a7879f6308074e45f094ce068b409013bb | refs/heads/master | 2021-01-17T18:51:40.437567 | 2016-08-06T20:40:41 | 2016-08-06T20:40:41 | 64,712,085 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 331 | cpp | ReverseWordsInAString.cpp | void reverseWords(string &s) {
string res;
string word;
istringstream str_in (s);
while (str_in >> word) {
if (res.empty() ) {
res = word;
}
else {
res.insert(0, word + ' ');
}
}
s = ... |
8d4da1b6802c636c1e7ff96493e40789b3c2da47 | 3d6c66924899724bf8026c2953dfe304ef0819bf | /Engine/Core.h | b839b2211b3454c1600e97e5ea4b8309ca476320 | [] | no_license | Vangoule/ECS-Particle-Engine | 860f1cc154c11646ce7c02f5217f1cc3fa12d651 | a82b10218fb57301d4222c852b0a35a7c2ad4a02 | refs/heads/main | 2023-07-05T10:04:23.204933 | 2021-08-17T20:51:48 | 2021-08-17T20:51:48 | 397,385,295 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 786 | h | Core.h | #pragma once
#include <iostream>
#include <GL\glew.h>
#define LOGGING_LEVEL_1
#include "Utils\Logger.h"
#include "Framework\Scheduler.h"
#include "Manager\WindowManager.h"
#include "Manager/SceneManager.h"
namespace DOI {
class App;
class Engine;
class Engine
{
public:
Engine();
~Engine();
void Init(... |
e414e17cc6c45e22ef15d43e17b381129f6c5d29 | 4a16522a9b1a62fae67b508cda6b1f4725984f98 | /M2FBX/M2PhysX/Source/PhysXModelBundle.cpp | 906caf6c5cabc97c17afac1234ce7333a62009b9 | [
"MIT"
] | permissive | moddingcode/Mafia2Toolkit | 686fb4db2e1a065da9af3eb5a86ba04a074c177e | 7e2089a74f385a51058374c3c30f94f452d17a2f | refs/heads/master | 2021-11-26T17:40:12.158905 | 2021-11-25T11:27:48 | 2021-11-25T11:27:48 | 214,235,374 | 0 | 0 | MIT | 2020-12-16T07:32:07 | 2019-10-10T16:43:36 | C# | UTF-8 | C++ | false | false | 484 | cpp | PhysXModelBundle.cpp | #include "PhysXModelBundle.h"
#include "PhysXCooker.h"
#include "PhysXStream.h"
void PhysXModelBundle::AddToCollection(PhysXModel* Model)
{
ModelCollection.push_back(Model);
}
void PhysXModelBundle::CookModelBundle(PhysXStream* OutStream)
{
for (int i = 0; i < ModelCollection.size(); i++)
{
PhysXCooker* Cooker ... |
055d7429fd6b2d97e302f85e9eec2ccd7fe18ca1 | fdbfbcf4d6a0ef6f3c1b600e7b8037eed0f03f9e | /multibody/plant/hydroelastic_traction_calculator.cc | 62b05e72dd7eccde7c63b08fb61f624d5bc70792 | [
"BSD-3-Clause"
] | permissive | RobotLocomotion/drake | 4529c397f8424145623dd70665531b5e246749a0 | 3905758e8e99b0f2332461b1cb630907245e0572 | refs/heads/master | 2023-08-30T21:45:12.782437 | 2023-08-30T15:59:07 | 2023-08-30T15:59:07 | 16,256,144 | 2,904 | 1,270 | NOASSERTION | 2023-09-14T20:51:30 | 2014-01-26T16:11:05 | C++ | UTF-8 | C++ | false | false | 15,211 | cc | hydroelastic_traction_calculator.cc | #include "drake/multibody/plant/hydroelastic_traction_calculator.h"
#include <algorithm>
#include <limits>
#include <memory>
#include <utility>
#include <vector>
#include "drake/math/rotation_matrix.h"
#include "drake/multibody/triangle_quadrature/gaussian_triangle_quadrature_rule.h"
#include "drake/multibody/triangl... |
5db241d807e9b97c93eec447056a36d942602f19 | a3c86fda4f54e621646afbb771d5fb7ec209120e | /archivos/archivoLibrosArgumento.cpp | 0177a4a91cdea06e99dcbc01527e99ef2b771468 | [] | no_license | angeloaroni/ejerciciosCpp | 9464cabfe6f1e15a9bfa440c090fde7c1796c5d6 | 845f6e58991e5915dc7eeef6f2bb7307f5ea0099 | refs/heads/master | 2022-01-14T11:49:20.802399 | 2019-06-11T06:55:08 | 2019-06-11T06:55:08 | 188,807,403 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,074 | cpp | archivoLibrosArgumento.cpp | // mantener un archivo de 3 libros, titulo y autor
//
// pasaremos por consola un argumento
// si es guardar , que pida pr teclado los datos y los guarde
//en el archivo
// y es mostrar, que los lea del archivo y los muestre
// y si es buscar que busque la palabra y que muestra la linea del contenido
#include<string>... |
3f1fdac0ef98f3d1ee0c04cc9502860a9bd6aa3a | 6f20f9a9a3d65d85164312c84005352392ea7fe4 | /Classes/SmallEnemy1.h | e6a02be2d6610b268927dabc9a6d40518bb912c9 | [] | no_license | HaroldYuan/LostRoute | ff900858df48186a856c604ae8f238af0eb7527c | 1423b205cea9a25440bd264498b86fcaf43caeb9 | refs/heads/master | 2021-01-17T13:44:17.591706 | 2016-07-23T05:22:37 | 2016-07-23T05:22:37 | 49,183,792 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 392 | h | SmallEnemy1.h | #ifndef SmallEnemy1_h__
#define SmallEnemy1_h__
#include "cocos2d.h"
#include "BodyParent.h"
#include "SimpleAudioEngine.h"
USING_NS_CC;
using namespace CocosDenshion;
class SmallEnemy1 :public BodyParent
{
public:
virtual bool init();
CREATE_FUNC(SmallEnemy1);
void shoot();
void repeatShoot(float dt);
virtu... |
d39439b15f7b4408d32d2838d2250a9eaa491d82 | 5ee0eb940cfad30f7a3b41762eb4abd9cd052f38 | /Case_save/case8/1700/U | 17fda01a2eefc9be30fe613ba715b49513abbba3 | [] | no_license | mamitsu2/aircond5_play4 | 052d2ff593661912b53379e74af1f7cee20bf24d | c5800df67e4eba5415c0e877bdeff06154d51ba6 | refs/heads/master | 2020-05-25T02:11:13.406899 | 2019-05-20T04:56:10 | 2019-05-20T04:56:10 | 187,570,146 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,106 | U | // -*- C++ -*-
// File generated by PyFoam - sorry for the ugliness
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "1700";
object U;
}
dimensions [ 0 1 -1 0 0 0 0 ];
internalField nonuniform List<vector> 459
(
(0.032631 0.0884278 0)
(-0.172099 0.0266904 0)
(-0.197678 0.0179042 0)
(... | |
3763175c089d598dee97dbc612cc63249e14cfe3 | fcc123da31299ec74ddfe094a53eb44899df393b | /piscine_cpp/cpp04/ex01/PlasmaRifle.cpp | 7f94d0e5070ae3e504d066ee5cdf238174531964 | [] | no_license | lubenicapp/42_common_core | 143f2f05afa910275108cf40012b7afa38fe0a94 | cd7065a4766b20866ea842e46ae6fc1489847d4e | refs/heads/master | 2023-08-22T19:58:14.079253 | 2021-10-26T14:22:43 | 2021-10-26T14:22:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 508 | cpp | PlasmaRifle.cpp | #include "PlasmaRifle.hpp"
PlasmaRifle::PlasmaRifle(): AWeapon("Plasma Rifle", 5, 21)
{
}
PlasmaRifle::PlasmaRifle(PlasmaRifle & T)
{
this->AWeapon::_name = T.getName();
}
PlasmaRifle::~PlasmaRifle()
{
}
PlasmaRifle & PlasmaRifle::operator=(const PlasmaRifle & T)
{
this->AWeapon::_name = T.getName();
this->AWea... |
4d85181f080f984e879f7b6eef57f434bb70a98a | 602f57af8c39a1992b44e18b448b54dc33482472 | /examples/appearance/colormaps/colormap/colormap_9.cpp | d1dd3fa77f5ddf73abf2fcd2981989ad54fbd8f8 | [
"MIT"
] | permissive | alandefreitas/matplotplusplus | 6e3bd7f5e641809c2e4d04f1c6e4af261dbf6c69 | 156001b56efb9b79c888426a7754c3255f15b665 | refs/heads/master | 2023-07-23T23:08:29.013396 | 2023-07-17T17:18:12 | 2023-07-17T17:18:12 | 291,173,540 | 3,596 | 292 | MIT | 2023-07-17T16:21:09 | 2020-08-29T00:45:11 | C++ | UTF-8 | C++ | false | false | 317 | cpp | colormap_9.cpp | #include <matplot/matplot.h>
#include <vector>
int main() {
using namespace matplot;
auto [X, Y] = meshgrid(iota(-5, .5, 5));
auto Z = transform(
X, Y, [](double X, double Y) { return pow(X, 2) + pow(Y, 2); });
surf(X, Y, Z);
colorbar();
caxis({20, 50});
show();
return 0;
} |
ec38992b6a7e87c416c252cd7ff7f683cfea2808 | b0b16a68a0649fbdc8d0a35b3f55eb179062b30d | /ui/widget/list/LayerLogListWidget.h | 3b3ac3646ff7fb5e4bed56c53aa2df2690c6733c | [
"Apache-2.0"
] | permissive | sid1980/openphoto | 32219bd276185e9fea0d7537d8abc6ffc331fc50 | e4466e5e80829385d2aa84813f2d5a8960053845 | refs/heads/master | 2023-02-27T20:32:02.462297 | 2021-02-06T03:22:57 | 2021-02-06T03:22:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 682 | h | LayerLogListWidget.h | #ifndef LAYERLOGLISTWIDGET_H
#define LAYERLOGLISTWIDGET_H
#include <QListWidget>
#include "../../../model/UiModel.h"
#include "LayerLogItemWidget.h"
class LayerLogListWidget : public QListWidget
{
Q_OBJECT
private:
LayerLogListItemData * layerLogListItemData = nullptr;
int layerLogListItemSize = 0;
QS... |
ffc51a8100900f4a07deac3c7a79c1f5d762f160 | eddc84bbf831f58c5b70d9fad0c53b7c2b12af43 | /codechef/CCDSAP/nonzero.cpp | c10a6e2504e3e38c4981c5dbdd0e43a2e43f3927 | [] | no_license | amitray1608/PCcodes | 79a91a85203b488eeca695ec8048e607269882e0 | e0d49c0b0c05d80d4d813e4a706a8b900de55a91 | refs/heads/master | 2023-06-20T02:01:05.875982 | 2021-07-23T02:25:54 | 2021-07-23T02:25:54 | 305,299,557 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 837 | cpp | nonzero.cpp | //“Make it work, make it right, make it fast.” – Kent Beck
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double dd;
const int siz = 1e6 + 5;
const int MOD = 1e9 + 7;
#define endl '\n'
#define deb(x) cout << #x << " = " << x << endl;
void solve(){
int n;
cin >> n;
int a[n];
int sum = 0,... |
e3c1a62247833e93c072b1fc7c0138e92ae44a11 | e4fa11cc5f6b76517e17acc6277d150ed89b8815 | /Classes/scene/StartScene.h | 84f916bb772824506bca3c8c6a54361cf437b754 | [] | no_license | yeadong/Fighting | 37512f9c0d407f8ac2599d6b876a45fe5a0225a2 | 1dde011d0e202db24b97b551ff11ba4a6212564d | refs/heads/master | 2021-04-27T19:16:19.767540 | 2016-03-03T04:01:59 | 2016-03-03T04:01:59 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 576 | h | StartScene.h | #ifndef _START_SCENE_H_
#define _START_SCENE_H_
#include "cocos2d.h"
/************************************************************************
* 开始场景
************************************************************************/
class StartScene:public co... |
c5ce50da5b8d62ea1672133af2ccc536661bdfae | 3a352192ba6de4a3895ae6a186d40b91940efe4b | /test/test_main.cpp | b7d4c0f53e4bccce23438f94fc500911d688f99f | [
"MIT"
] | permissive | chenhongquan/myframe | 51dafc9d28230a1b8cf58cfeb0f666d814ad66ac | 45efbfbf8184f371c693321f18e9cd9c42ee1b7b | refs/heads/master | 2023-01-31T21:06:06.642013 | 2020-12-15T09:49:50 | 2020-12-15T09:49:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 442 | cpp | test_main.cpp | #include <gtest/gtest.h>
class Environment : public testing::Environment
{
public:
virtual void SetUp()
{
std::cout << "Environment SetUP" << std::endl;
}
virtual void TearDown()
{
std::cout << "Environment TearDown" << std::endl;
}
};
int main(int argc, char** argv)
{
te... |
2a71f6744f521e834a6b978a36c011974f946f08 | 80a1aa8a528667fd75a7c93a1211e5f030370c9b | /YFVMprj/src/RT/MemManager.h | 95736bad28199b5a511cc288a3c888ced8ac0671 | [] | no_license | nklofy/YFVM | 7102e3f9698a1e75651d67780644cf56c37dbff1 | 5f236f015b5005da9c2075d21dfd3c52a2dc1384 | refs/heads/master | 2020-07-15T00:19:35.416941 | 2017-03-10T15:42:17 | 2017-03-10T15:42:17 | 73,872,602 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,032 | h | MemManager.h | /*
* MemManager.h
*
* Created on: Nov 17, 2016
* Author: luyunfei
*/
#ifndef SRC_MEMMANAGER_H_
#define SRC_MEMMANAGER_H_
#include "../Mem/Memory.h"
#include "../TypeSys/TypeSys.h"
#include <climits>
class MemManager {
public:
static long max_Mem;
static long max_singleMem;
static long VWidth;
MemManage... |
7dff4e6b773558824506b45c8c5c6e604c5aff74 | fc1c55f7683ae8b35340d8f46cc50cbc62c4e927 | /CAN_receive/CAN_receive.ino | 4d2a87231d511362bc44bd2c9fa0f399e36f583e | [] | no_license | filipisaci/can-bus | afc950b558362548c6d8def38fcd77137597bc86 | 109d26f616f13d406641312951ed13708b59df4f | refs/heads/master | 2020-03-07T10:23:52.663050 | 2018-03-30T13:24:03 | 2018-03-30T13:24:03 | 127,430,628 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,522 | ino | CAN_receive.ino | #include <mcp_can.h>
#include <SPI.h>
long unsigned int rxId;
unsigned char len = 0;
unsigned char rxBuf[1];
char msgString[128];
int LED = 10;
byte LedApagado[1] = {0x00};
byte LedAceso[1] = {0x01};
//Pinagem
#define CAN0_INT 48
MCP_CAN CAN0(53);
void setup()
{
Serial.begin(115200);
pinMode(LED, OUTPUT);
/... |
f4d398e2689ac5f9cf0acb80bf05528b220c6b15 | 23eed4abefeb7dfd67060aa5b8cdfd59f035038e | /include/Matrix.h | 2f15f2ccd9e0641efcc15f857fa5d077851e5fa2 | [] | no_license | alex2211-put/Linal | 7a5741a8d391f07121cf611819f85415d3cb9483 | b048f9ebd3ff88a6299dec6edc3a9625817acdea | refs/heads/master | 2021-07-17T05:06:15.506062 | 2021-05-13T18:07:11 | 2021-05-13T18:07:11 | 248,194,943 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,123 | h | Matrix.h | //
// Created by alik on 17.03.2020.
//
#ifndef LINAL_MATRIX_H
#define LINAL_MATRIX_H
#include <iostream>
#include <vector>
class Matrix
{
private:
int n; //количество строк
int m; //колиечство столбцов
double value[50][50]; //надеюсь, 50 хватит
public:
Matrix(int n, int m);
Matrix(int n, in... |
48cf7b256fa0cf07be79f9162507b16b50ae0baf | fe34aca1ddeeee075cc6d0b6ba726af9a64c1a16 | /trunk/PlugAlgo/PlugAlgo_i.h | aecc16a0ca01cf68176aa1fadcd21d9ec30efd7e | [] | no_license | LearnerJason/SMVS | 0c558874a27097940101ac6cec928f48e4c765c8 | 8105b2a8403b01ae467660cd5d6ea27e2ec2e5b2 | refs/heads/master | 2022-12-05T09:53:40.216127 | 2020-08-04T03:22:45 | 2020-08-04T03:22:45 | 284,647,830 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 758,822 | h | PlugAlgo_i.h |
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File created by MIDL compiler version 7.00.0555 */
/* at Thu Dec 26 10:05:45 2019
*/
/* Compiler settings for PlugAlgo.idl:
Oicf, W1, Zp8, env=Win32 (32b run), target_arch=X86 7.00.0555
protocol : dce , ms_ext, c_ex... |
8247760ee312e165016c2a9913f6a67d72b42eb1 | 292d4885ab2ca2cc8198ce8306b7bb54eadeaa34 | /cpptet_v0.5/CTetris.cpp | 1a4c9457f6ad30a1e2f0a5b42ca08b5c4135381b | [] | no_license | gjlee0802/Tetris2021 | e69a74845becbe316421a33728cee747d845a2f9 | 308f20fa6c518abecd222ff0b7d52356c9d77597 | refs/heads/main | 2023-06-16T12:29:43.645024 | 2021-07-01T10:49:15 | 2021-07-01T10:49:15 | 347,131,276 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,477 | cpp | CTetris.cpp | #include "CTetris.h"
Matrix **(*CTetris::setOfCBlockObjects);
void CTetris::init(int **setOfCBlockArrays, int MAX_BLK_TYPES, int MAX_BLK_DEGREES){
int i = 0; int j = 0;
Tetris::init(setOfCBlockArrays, MAX_BLK_TYPES, MAX_BLK_DEGREES);
CTetris::setOfCBlockObjects = new Matrix**[Tetris::nBlock... |
5824f8e88156aab5ddce6d99aa2f7b48955fe323 | 573c517d31d21d835b51a30e4d6619041b188013 | /sum-it/Source/main/Utils/Utils.cpp | a5c36576c00893e2922c6ce67b8ed1de57532487 | [] | no_license | keegnotrub/OpenSumIt | 69392e08368dbbe169a4dcfb733630f07044f100 | 74f7463c7b3216eb55b99536c340071602a5d21c | refs/heads/master | 2023-08-29T21:55:51.445937 | 2021-11-11T18:01:20 | 2021-11-11T18:01:20 | 280,171,988 | 1 | 1 | null | 2020-07-16T14:13:57 | 2020-07-16T14:13:56 | null | UTF-8 | C++ | false | false | 9,260 | cpp | Utils.cpp | /*
Copyright 1996, 1997, 1998, 2000
Hekkelman Programmatuur B.V. 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,
... |
627eed379f41902d8a0bbb4b42207a63c00926ff | 3591cbbde1ae35407bd17324fdd4229347006bb9 | /NDK_Day22/NDK_Day22/Student.h | 67ff7de58f43bce993b1f9cd6a1aea73ff799f86 | [] | no_license | keeponZhang/NDKStudy | 9e54dc42ec7bdae548273f5b77c54bbf54dfb979 | 8455123b3723006c5e61476a0423c7dc8720b930 | refs/heads/master | 2022-08-09T01:57:39.460535 | 2020-05-25T15:06:12 | 2020-05-25T15:06:12 | 265,887,500 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 528 | h | Student.h | #ifndef STUDENT_H
#define STUDENT_H
class Student{
private:
int age;
char* name;
public:
// 静态属性的声明
static int tag;
public:
Student();
Student(char* name);
Student(char* name,int age);
// 析构函数
~Student();
// 拷贝构造函数
Student(const Student& stu);
public:
void setAge(int age);
void setName(char* name);
in... |
9574b945a0a1dde0955c9c3506fd3fe17dbff6e1 | 67e8364603f885231b6057abd6859e60562a4008 | /Cpp/240_SearchA2DMatrixII/002.cpp | 003cfb5dabc70827fbdbaa7e87f509f545b28c44 | [] | no_license | NeighborUncleWang/Leetcode | 988417721c4a395ac8800cd04e4d5d973b54e9d4 | d5bdbdcd698006c9997ef0e368ffaae6f546ac44 | refs/heads/master | 2021-01-18T22:03:27.400480 | 2019-02-22T04:45:52 | 2019-02-22T04:45:52 | 36,253,135 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,345 | cpp | 002.cpp | class Solution {
public:
bool searchMatrix(vector<vector<int>>& matrix, int target) {
int rowSize = matrix.size();
int columnSize = rowSize == 0 ? 0 : matrix[0].size();
return helper(matrix, target, 0, 0, rowSize - 1, columnSize - 1);
}
private:
bool helper(vector<vector<int>>& matri... |
359e6cee45b5cb2bf676b316d20a1a8ea1e87987 | cbfc126095d958ce2e5e37adcb1e0f0be839c007 | /第一次上機考/第四題/main.cpp | 06dfd408b17ea86939bcda5c0a9ea943be2341b7 | [] | no_license | LaZoark/NIU_programming | 1dc23e0395db53e839b1a902b53ee2faa92cc01c | 8ac36310ba4af8e306e07b90e339b98ec469b8c7 | refs/heads/master | 2020-05-16T04:17:03.011449 | 2019-08-25T16:07:48 | 2019-08-25T16:07:48 | 182,770,420 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 249 | cpp | main.cpp | #include <iostream>
using namespace std;
int main()
{
char ch,s=65;
cin>>ch;
for(; s<=ch; s++)
{
for(int a=1; a<=26; a++)
if((s-64)>=a)
cout << s <<" ";
cout<<endl;
}
return 0;
}
|
a9df98317f8fc8e052b7cf95d18f24073a6400ce | 54a29cf19d0962b9e5d9c535918a1c56bcfebdd3 | /test/snippet/core/metafunction/range.cpp | 4818b3ba24b928d4e5919b54bfa0eb6c01b9616d | [] | permissive | giesselmann/seqan3 | c027ae539e92460371d0b354a9cf768d380a573b | 3a26b42b7066ac424b6e604115fe516607c308c0 | refs/heads/master | 2021-04-26T22:17:41.710001 | 2018-09-19T07:09:28 | 2018-09-19T07:09:28 | 124,063,820 | 0 | 0 | BSD-3-Clause | 2018-03-06T10:45:41 | 2018-03-06T10:45:41 | null | UTF-8 | C++ | false | false | 327 | cpp | range.cpp | #include <seqan3/core/metafunction/range.hpp>
using namespace seqan3;
int main()
{
//! [usage]
// these evaluate to true:
static_assert(seqan3::compatible_concept<std::string, std::vector<char>>);
static_assert(seqan3::compatible_concept<std::vector<std::string>, std::vector<std::vector<char>>>);
//! [us... |
5502d1c41b9ef6f836b0dd83d34ae46224a5e0e6 | a212f08a021efc46e367c3bff6f60b2e9a8eb74f | /MVDTools1-Jordi_Roig_Vilaseca/src/components/comp_movingplatform.cpp | c7402e0eaf4a8b9a1d96233d7f88e23527b1704e | [] | no_license | jroig24/MVDTools-1 | 6e94667ab8e45f458c5079cff9c1622cde3b015d | f82b2f340e6dcd6bc66bf5706dca7d4a055e79ad | refs/heads/master | 2020-06-16T12:23:52.393430 | 2019-07-06T18:40:47 | 2019-07-06T18:40:47 | 195,572,804 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,900 | cpp | comp_movingplatform.cpp | #pragma once
#include "comp_movingplatform.h"
#include "../EntityComponentStore.h"
#include "../extern.h"
void MovingPlatform::Save(rapidjson::Document & json, rapidjson::Value & entity)
{
rapidjson::Value obj(rapidjson::kObjectType);
rapidjson::Document::AllocatorType& allocator = json.GetAllocator();
{
rapidjs... |
86f9ad391751fb3b9fb76da0d827e26073839326 | 7dcdd401ce31389f7efa96d8f6a7420d42b39c38 | /A-ALLIZZWELL.cpp | cf9eac190b68c1d19c6bcb79cb0773530fdb08c1 | [] | no_license | ntloi95/ACM_ICPC_Codeforces | dc4449ea21fc37ba851101418cfb238b500c9afb | c97f8b9f6dea56b5e56a54acd3cabe66b5db2e7c | refs/heads/master | 2021-01-18T16:16:36.970659 | 2017-03-30T17:48:37 | 2017-03-30T17:48:37 | 86,731,723 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,401 | cpp | A-ALLIZZWELL.cpp | #include <bits/stdc++.h>
using namespace std;
int test, r, c;
char s[110][110];
char v[] = "ALLIZZWELL";
int n = 10;
bool visit[110][110];
int dist[110][110];
typedef pair<int, int> pii;
int dir[8][2] = { { -1, -1 }, { -1, 0 }, { -1, 1 }, { 0, -1 }, { 0, 1 }, { 1, -1 }, { 1, 0 }, { 1, 1 } };
bool good(int x, int y)
... |
04c0c8d807ae943657c231c268bc99e28656a836 | 9176fbc27068cf206b2d774fa20929bc0c46c6e9 | /Source/GameLoop.h | 540ead6d341fff720e68fa413039ef27344e5d77 | [] | no_license | IsaacMulcahy/PenguinPanic | c42b92a22501105be1e6f8736747e2eaf526b4f1 | 7b9f48011cba1b50d8d3fd15c6e2e5051292312e | refs/heads/master | 2020-03-14T13:27:13.341270 | 2018-04-25T22:20:11 | 2018-04-25T22:20:11 | 131,633,333 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,066 | h | GameLoop.h | #pragma once
#include "WorldController.h"
#include "LevelController.h"
#include "GameObject.h"
class AngryBirdsGame;
class GameLoop
{
public:
GameLoop() = default;
~GameLoop() = default;
enum GameAction
{
NONE = 0,
UP,
DOWN,
POWER_UP,
POWER_DOWN,
SHOOT
};
bool init(ASGE::Renderer* render_ptr, int... |
30580b807c7efdc8b1be631371f03be4e61f8d54 | 38b9daafe39f937b39eefc30501939fd47f7e668 | /tutorials/2WayCouplingOceanWave3D/EvalResults180628-Eta/41.8/phi | dbcc7250536d813d60062ac73fcc7e757bc166fe | [] | no_license | rubynuaa/2-way-coupling | 3a292840d9f56255f38c5e31c6b30fcb52d9e1cf | a820b57dd2cac1170b937f8411bc861392d8fbaa | refs/heads/master | 2020-04-08T18:49:53.047796 | 2018-08-29T14:22:18 | 2018-08-29T14:22:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 530,139 | phi | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 3.0.1 |
... | |
643a5b3cf00fe4b99aaed138d4e8ad863abec501 | 344cb1c867be25252652f0b4eeed6aca442ba152 | /Practice test_rit/3.cpp | bee8b3eb7b095f06634e4c3faade8a9fdc925521 | [] | no_license | shanjeevmaruthi/Design_Analysis_Of_Algorithms_Lab | a0eb399baeafb3c721bc52b9ab5653f695dcb6a5 | 8100439ad0e3ce1813860d522cffb653d7d7307e | refs/heads/main | 2023-03-20T10:30:32.061259 | 2021-03-18T20:46:46 | 2021-03-18T20:46:46 | 349,212,354 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 348 | cpp | 3.cpp | #include<iostream>
using namespace std;
int main()
{
int n;
cout<<"enter the number";
cin>>n;
int arr[100];
int c=0;
while(n)
{
arr[c]=n%10;
n=n/10;
c++;
}
for(int i=0;i<c;i++)
{
for(int j=0;j<c;j++)
{cout<<arr[i]<<arr[j];
... |
0503af4d3d6137dd8cc46d860c8f65aeeeb2e25e | 80f18dfaf342928f68d324aeb7be58cf8e00c540 | /KimHyunwoo/BOJ/BOJ9663.cpp | b1484c341c508ddfe8039f610894ed0cfb37d0ce | [] | no_license | waki94/Talgigong | 90f4e35ead7c2843503527bb787012c2d6eb5e62 | 83cebae4532b475ea5cdb6fd68bb834ddf7c14d9 | refs/heads/master | 2023-06-12T08:10:31.806269 | 2021-07-12T01:22:57 | 2021-07-12T01:22:57 | 354,872,542 | 0 | 0 | null | 2021-07-12T01:22:58 | 2021-04-05T15:01:23 | null | UTF-8 | C++ | false | false | 680 | cpp | BOJ9663.cpp | #include<bits/stdc++.h>
using namespace std;
int board[70][70];
int n;
int ans = 0;
void queen(int cur){
if(cur==n-1){
for(int i=0; i<n; i++){
if(board[cur][i]==0) ans++;
}
return;
}
for(int i=0; i<n; i++){
if(board[cur][i]>0) continue;
board[cur][i]++;
for(int j=cur+1; j<n; j++){
board[j][i]++;
... |
79ae039315365fa6781a3ea92b46da8e1536acdf | 4bd8cbd120d1030bc708fa197d2ea3bf59a45a30 | /Helper/include/Meshgenerator.h | f09d32cbaa15945f2455efe8fe260d7af3046828 | [] | no_license | cbauinge/CS111Winter2019 | df97cd80b2099abb37916241554f9d61b6d91103 | d9cbe2c5319bd1ff4a71922e513400e797b024c0 | refs/heads/master | 2020-04-21T11:25:43.409974 | 2019-05-30T04:26:11 | 2019-05-30T04:26:11 | 169,525,054 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 581 | h | Meshgenerator.h | #ifndef MESHGENERATOR_H
#define MESHGENERATOR_H
#include "Mesh.h"
/*! \brief Class to generate simple Mesh for testing.
*
* Generates a triangle mesh on the unit quad.
*/
class Meshgenerator
{
friend class MeshgeneratorTest;
public:
Meshgenerator();
//Generates a simplex mesh in the unit sqa... |
01467a1da24ce6b81c6bbe979a4fbd083e721650 | a958eeac2c2fa923e274f62d1f39f409d6a9a2d5 | /src/osx/helper.h | 15da03d84275917b80a13edc8a4c1ee6e8a675ad | [
"MIT"
] | permissive | bartzjegr/pvpkcs11 | e30324b15bc1d0a101a19b232889e5036b6bb073 | d47a2f5af59a585b587155d082618b57d10b3933 | refs/heads/master | 2020-07-06T15:29:57.550894 | 2019-07-06T13:17:08 | 2019-07-06T13:17:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,246 | h | helper.h | #pragma once
#include "../stdafx.h"
#include "../core/excep.h"
#include "../core/object.h"
#include <CoreFoundation/CoreFoundation.h>
#include <Security/Security.h>
namespace osx {
std::string GetOSXErrorAsString(OSStatus status, const char * _Nonnull funcName);
void CopyObjectAttribute(core::Object * _... |
2c054e47305ae6caee4d1bf62634751a3adf8c35 | 60db84d8cb6a58bdb3fb8df8db954d9d66024137 | /android-cpp-sdk/platforms/android-7/java/security/Security.hpp | d5ad279dc42c4734af63b8628ed99d4e82c765e6 | [
"BSL-1.0"
] | permissive | tpurtell/android-cpp-sdk | ba853335b3a5bd7e2b5c56dcb5a5be848da6550c | 8313bb88332c5476645d5850fe5fdee8998c2415 | refs/heads/master | 2021-01-10T20:46:37.322718 | 2012-07-17T22:06:16 | 2012-07-17T22:06:16 | 37,555,992 | 5 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 8,470 | hpp | Security.hpp | /*================================================================================
code generated by: java2cpp
author: Zoran Angelov, mailto://baldzar@gmail.com
class: java.security.Security
================================================================================*/
#ifndef J2CPP_INCLUDE_IMPLEMENT... |
26fb6eb302ed37f6f32e79c7d7698c7ab9109c04 | a2f8c13485222616213b735693adb26521c3e26a | /FusionConsole/Fusion/FusionPacketBuilder.h | a2a5ee83a937ecaadff354b65e9450f17f6441a6 | [
"MIT"
] | permissive | migers7/FusionConsole | a48d68c87013747ae676e7153a86affa3718765c | 9eade60f7163722738e7aacfaf4272f929fd26c5 | refs/heads/master | 2021-05-31T19:12:48.335202 | 2015-12-30T04:14:35 | 2015-12-30T04:14:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,272 | h | FusionPacketBuilder.h | //============================================================================
#pragma once
#include "FusionEnums.h"
#include "FusionPacketIO.h"
#include <vector>
//============================================================================
namespace migme
{
//=======================================================... |
d042a2321ec1833e749b5a3d2679e9cdabf7a9dc | c92e18501d8962b58c8f7c5f531a8b9aafc9d0ef | /CCC/ccc07s3.cpp | a3f35df6043b519b807afd5bbe852978e51f49f4 | [] | no_license | Dan13llljws/CP-Solutions | 8bc79208b741959c924ec117c2a8a9c7e79be0d8 | 4989119875843da53e0e076ecd9155a71112be8a | refs/heads/master | 2023-08-16T16:41:13.599206 | 2023-08-10T04:26:53 | 2023-08-10T04:26:53 | 254,217,958 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 848 | cpp | ccc07s3.cpp | #include <bits/stdc++.h>
using namespace std;
#define scan(x) do{while((x=getchar())<'0'); for(x-='0'; '0'<=(_=getchar()); x=(x<<3)+(x<<1)+_-'0');}while(0)
#define lb lower_bound
#define ub upper_bound
#define mp make_pair
#define pb push_back
#define nl '\n'
char _;
typedef pair<int, int> pii;
typedef long l... |
47d4b28168a0986b642953b8a14f061fa326de04 | 90f2b96a403f43805a4f9fa9e041e2253872efc2 | /Mesh/meshselector.h | 266668a9b1b5e1e958542999122eda58178bae6c | [
"MIT"
] | permissive | dwlcj/Rak | afa97e9a9e8ffbbbd0fa72256a9ccfd3ecf6d7b1 | 797bca35e8d1f21a5ae2677cf994ecb29a29eba0 | refs/heads/master | 2020-04-09T05:07:38.661042 | 2018-09-17T08:08:05 | 2018-09-17T08:08:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 374 | h | meshselector.h | #pragma once
#include <Mesh/BVH.h>
#include <Dependencies\DependenciesRendering.h>
#include <Mesh/Mesh.h>
namespace Rak {
namespace Rendering {
namespace Mesh {
struct Ray {
Vector3f Direction, Origin, OneOverDirection;
};
void Select(Window & Window,const Control::Camera & Camera,const std::vector<Mo... |
7b7212456a3e4b7985f442c3943b90f9e57c7ffc | b59bf04b82e9b7f6a6b96f1dceb33863819667e3 | /sql/src/laurena/sql/sql_error.cpp | 72c5b89e1465e6113a42e765db148cb9578da7e9 | [] | no_license | jmichael218/laurena | 34091a622e1c6867b75d048d94bde7b6a934d489 | 5ed6b0736fef7ae78fb6a737fe9b09e0706480ba | refs/heads/master | 2020-12-24T14:55:49.621637 | 2014-06-18T16:11:11 | 2014-06-18T16:11:11 | 39,240,491 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,263 | cpp | sql_error.cpp | ///
/// \file sql_error.cpp
/// \brief Toolbox of functions to generate errors
/// \author Frederic Manisse
/// \version 1.0
///
/// Toolbox of functions for sql persistance
///
#include <laurena/sql/sql_error.hpp>
using namespace laurena;
using namespace sql;
void sql_error::noPrimaryKey(const descriptor& ... |
0081779e044152b9165b779c8291f3ec9401e4ea | be0b51e9855258ea6acd7cc6ed9a2b7516700658 | /Source/FantasyNinja/MyBlueprintFunctionLibrary.cpp | f5cbfc004486d136823decbd63708dff4957a00b | [] | no_license | Omnistudent/FantasyNinja10 | e7b308a504f5dd90c3aab49965f0e0e703af9ea4 | 027611b834a87120e403a53f78d714786bcf34f0 | refs/heads/master | 2023-03-31T08:35:21.111386 | 2021-04-16T16:08:48 | 2021-04-16T16:08:48 | 352,062,631 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,464 | cpp | MyBlueprintFunctionLibrary.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "MyBlueprintFunctionLibrary.h"
int UMyBlueprintFunctionLibrary::HelloUnreal(int xx, int yy, int randomSeed, int chunkLineElementsExt, int chunkZElements, int chunkXindex, int chunkYindex, float firstmultiplier, float noisemultipl... |
aa081311767dcbbbd7f5d21c6fb2fde45785474f | 16fc6606f63a024b773459fecbecc1a29c58e344 | /test/ex1/glossaryentry.hpp | afe1e47fa8778a5f88862071ad43c4b45dff3cfc | [] | no_license | rdumitriu/ll1gen | d760921d980c99a356e46bdc6fbbc9af52a2af87 | 70646c944128fe781d07dc682dbd5ec50c887bb5 | refs/heads/master | 2021-01-01T16:56:13.644599 | 2015-06-02T18:15:54 | 2015-06-02T18:15:54 | 21,625,809 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,948 | hpp | glossaryentry.hpp | //
// GENERATED by ll1gen : Do not modify (or on your own risk)
//
#ifndef _LL1GEN_GLOSSARYENTRY_HPP_
#define _LL1GEN_GLOSSARYENTRY_HPP_
#include "json_utils.hpp"
//ll1gen::include_begin
#include "glossarydefinition.hpp"
//ll1gen::include_end
namespace test { namespace glossary {
class GlossaryEntry {
public:
... |
d82e0066573c9fbde4bf29cda2ee57ef625a421f | 5637549e7b1f7d01321d0d6e850454ebdf037392 | /src/items_vida.cpp | 680b61b150d717aa36d859dd80b5cdf36ce4bf55 | [] | no_license | zipleen/space-wolf | 01ffd88ec41338a97194fe2d406f309d7c218736 | 83bb1d0aaca4671b7c66b22cd9d4a3e1027eb3cd | refs/heads/master | 2022-02-13T09:30:10.674525 | 2022-01-19T22:39:36 | 2022-01-19T22:39:36 | 8,300,751 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,918 | cpp | items_vida.cpp | /*
* items_vida.cpp
* proj
*
* Created by zipleen on 1/11/08.
* Copyright 2008 __MyCompanyName__. All rights reserved.
*
*/
#include "items_vida.h"
Items_Vida::Items_Vida(GLfloat x,GLfloat y,int valor, int mapa_x, int mapa_y) : Items()
{
#ifdef WIN32
this->som_apanhar_item = this->s->loadSound("data\\soun... |
2dec0c4ea1836685e538f5120b585e0c3c3c39cb | ff482b05b2cf895d4cf791f4f30dc42bb57b8aeb | /redist/cpp/include/FunctionDefs.h | 393d7ef297afeae64ee4b47864e1ec41b2b99357 | [] | no_license | Karthik131289/Framework | 7b42c5b11686edbeaa22feb7dee41fdd918f70e8 | f9a164d0ba77ec18c35f7b189147e7892ca67e67 | refs/heads/master | 2021-01-17T14:49:48.546252 | 2018-09-17T11:57:04 | 2018-09-17T11:57:14 | 70,252,194 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 412 | h | FunctionDefs.h | #ifndef __FUNCTIONDEFS_H__
#define __FUNCTIONDEFS_H__
#include "Object.h"
#include "TransformContext.h"
VOLANTE_NAMESPACE_BEGIN
class VOLANTE_EXPORT FunctionDefs {
protected:
static Object* invokeCustomExternalClass(const vstring& className, ObjectList& args, TransformContext* cxt);
static CustomClassSupport<IInvo... |
841d497938c77bd5536e8d28109c325184fde6e6 | f4e7de868885b8fea4e79a7ef6597d1724ae802a | /LFSR/example.cpp | 532c9b5a570ecdb2e4fb95749d5f0cfff1319598 | [] | no_license | markrl/ee | 5b595de1e0a6980090c16ccec0e5bf9b148714b0 | e69c32f11beda8ae8c609b29c556f52a1d54ee28 | refs/heads/master | 2022-11-13T22:52:01.121994 | 2020-07-02T16:33:39 | 2020-07-02T16:33:39 | 271,399,084 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 886 | cpp | example.cpp | /**
* Example code using LFSR.h
*
* Uses the current time to set the seed of the LFSR then displays a pseudorandom bit sequence.
*
* compiled and ran using g++ 9.3.0 on Ubuntu using command
* g++ *.cpp -o example -Wall -Werror
* ./example
*
* Author: redd
*/
#include <iostream>
#include <ctime>
#include ... |
cc83c4b620d3ba8a6236ff2d8f491c3dd7888339 | 753980db5bc492f0e18f824d9fdb77caa3dadd16 | /例6.2.1胜利大逃亡.cpp | c66153af0ae0c11bfcae64aadcf75795673922ec | [] | no_license | hiphopquan/Cdemo | 8f7eb4607b7380388ffa6a2aba37ac8292413f5e | e2ca526a6ce8d5bae7776b44bf5c3ffb0e6c10a3 | refs/heads/master | 2020-05-02T21:09:23.849629 | 2019-03-28T13:48:40 | 2019-03-28T13:48:40 | 178,212,307 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,324 | cpp | 例6.2.1胜利大逃亡.cpp | #include<stdio.h>
#include<queue>
using namespace std;
struct N{
int x;
int y;
int z;
int t;
};
int go[6][3]={
1,0,0,
-1,0,0,
0,1,0,
0,-1,0,
0,0,1,
0,0,-1
};
queue<N> Q;
int mark[50][50][50];
int maze[50][50][50];
int BFS(int a,int b,int c){
while(Q.empty()==false){
N now=Q.front();//从队列取出一个状态
Q.pop()... |
800d7bb34fa6c3349895ba9f7a8602dbbb13e157 | 0641d87fac176bab11c613e64050330246569e5c | /branches/maint/maint-3-2/source/common/dbbi_tbl.cpp | 29eb3eb8b3840bfebc94ea7582902f304c44faec | [
"ICU"
] | permissive | svn2github/libicu_full | ecf883cedfe024efa5aeda4c8527f227a9dbf100 | f1246dcb7fec5a23ebd6d36ff3515ff0395aeb29 | refs/heads/master | 2021-01-01T17:00:58.555108 | 2015-01-27T16:59:40 | 2015-01-27T16:59:40 | 9,308,333 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,529 | cpp | dbbi_tbl.cpp | /*
**********************************************************************
* Copyright (C) 1999-2002 IBM Corp. All rights reserved.
**********************************************************************
* Date Name Description
* 12/1/99 rgillam Complete port from Java.
* 01/13/2000 helena ... |
2aa7d467a9063346a2fcfecf7f7fb8da74d887d2 | 27c75711bbe10b3120c158971bb4e830af0c33e8 | /HYSBZ/1005_BigInteger.cpp | 24be7038837ec935098b678b85d3eaaba3b5d6a6 | [] | no_license | yl3i/ACM | 9d2f7a6f3faff905eb2ed6854c2dbf040a002372 | 29bb023cb13489bda7626f8105756ef64f89674f | refs/heads/master | 2021-05-22T02:00:56.486698 | 2020-04-04T05:45:10 | 2020-04-04T05:45:10 | 252,918,033 | 0 | 0 | null | 2020-04-04T05:36:11 | 2020-04-04T05:36:11 | null | UTF-8 | C++ | false | false | 3,212 | cpp | 1005_BigInteger.cpp | #include <bits/stdc++.h>
#define REP(i, a) for (int i = 0; i < int(a); i++)
#define REPP(i, a, b) for (int i = int(a); i <= int(b); i++)
#define MST(a, b) memset(a, b, sizeof(a))
using namespace std;
const int N = 2005;
int a[N];
#define LL long long
const LL BASE = 1e9;
struct BigInteger {
vector<LL> v; //v中倒序存... |
68d128de4c1aa23877342ab1c15251755f608615 | 5d45988c172243d502a30750312aaa329b766b68 | /game_src/enemy/iEnemy.cpp | b5bdb59cc62480fd7087264dc37ed80f477d950e | [] | no_license | Animery/final_project_from_courses | 4262e8211623eba01adfa0eac90083037d23324c | 23120879f06b8c97533242da64612c5ad4c1c63d | refs/heads/master | 2023-04-13T02:33:55.959655 | 2021-04-26T11:17:10 | 2021-04-26T11:17:10 | 351,988,077 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 249 | cpp | iEnemy.cpp | #include "iEnemy.hpp"
#include "../../engine/debug_level.hpp"
#ifdef DEBUG_LEVEL
#include <iostream>
#endif
namespace enemy
{
iEnemy::~iEnemy()
{
#ifdef DEBUG_LEVEL
std::cout << "--- destor iEnemy" << std::endl;
#endif
}
} // namespace enemy |
5c43a5c7de8d5117310a84a61364050fc3226c72 | 136553fd770150a2598edf46e8c19e22c127cc1a | /shkola_fizika/rod_intensity.cpp | cb6f59b5cd34dd4105d36a08fbf12c5a959af4ba | [] | no_license | BorisVassilev1/CPP | ab504b355a81f916729d3e152fafd57555312565 | 18b48f6c5e88add50946096b91b474aa1d575eae | refs/heads/master | 2022-05-08T09:55:34.641817 | 2022-03-16T13:59:33 | 2022-03-16T13:59:33 | 165,307,950 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,226 | cpp | rod_intensity.cpp | #include <iostream>
#include "vectors.cpp"
using namespace std;
#define k 9e9
const double rod_length = .1;
const int points_count = 10;
const double charge = 1e-9;
vector2d point(0, 0.1);
vector2d intensity(vector2d& charge_pos, double charge, vector2d& point) {
double d_sq = (point - charge_pos).len... |
a21a8144d31430e103b1a177313246dada957b8c | ad23e796ec70d5b4dd082f34a8764b4e3c4863e6 | /controllers/front_motor/front_motor.ino | 075f04c4045537ad579f148d0a8477dcd65848e5 | [] | no_license | calebyu/Frost-E-Bike | 2b15ec446e184c6b9cc54aafe4215dce07551dad | ed31311b3accfdc1260430e53132f8734acf4516 | refs/heads/master | 2021-01-10T19:46:51.979218 | 2015-03-26T07:29:47 | 2015-03-26T07:29:47 | 32,283,755 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,915 | ino | front_motor.ino | #define COAST 22
#define PWM_OUT 21
#define VDSTH 20
#define BRAKE 19
#define CUR_REF_FB A2
#define CUR_SEN_R A1
#define CUR_SEN A0
#define MODE 13
#define CUR_REF A9
#define ESF 12
#define TACHO 11
#define RST_OUT 10
#define DIR 6
#define DIRO 5
#define FF1 1
#define FF2 0
#define LED 13
#define CANS 2
#define CANTX ... |
82631a1ee8ab0caf3e1830f6be6798b4f5a00027 | 30ff457cba36b56dcfb11fc04679d66c3d5dae9a | /src/Engine.h | fad60cfefca90e9b6e9fda24bf11b3d98aacb917 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | terraKote/Engine | d508d4e6c26337bbc106be6e160bcb78fb04e00a | 8361c31f614097d3d401f8ec0fe69919af49ae79 | refs/heads/master | 2022-04-07T23:47:46.838670 | 2022-03-12T10:01:58 | 2022-03-12T10:01:58 | 468,270,885 | 0 | 0 | NOASSERTION | 2022-03-10T09:15:30 | 2022-03-10T09:15:29 | null | UTF-8 | C++ | false | false | 1,500 | h | Engine.h | /*!
boldtemple Gaming ©, http://gaming.boldtemple.net
OpenSource Project - Check Development, License & Readme Sections.
BGE - boldtemple Cross Platform Game Engine
/Engine.h
!*/
#ifndef ENGINE_H_
#define ENGINE_H_
#include <iostream>
#include <string>
#include <vector>
#include <SDL2/SDL.h>
#include <SDL2/... |
30e852ad07264685e9f6338cfc6b053dfe2ef5a8 | 464aa9d7d6c4906b083e6c3da12341504b626404 | /src/lib/network/interface_table.hpp | 224c60604511a470f662347afdd67df0ae2e83e9 | [
"snprintf"
] | permissive | v2v3v4/BigWorld-Engine-2.0.1 | 3a6fdbb7e08a3e09bcf1fd82f06c1d3f29b84f7d | 481e69a837a9f6d63f298a4f24d423b6329226c6 | refs/heads/master | 2023-01-13T03:49:54.244109 | 2022-12-25T14:21:30 | 2022-12-25T14:21:30 | 163,719,991 | 182 | 167 | null | null | null | null | UTF-8 | C++ | false | false | 2,260 | hpp | interface_table.hpp | /******************************************************************************
BigWorld Technology
Copyright BigWorld Pty, Ltd.
All Rights Reserved. Commercial in confidence.
WARNING: This computer program is protected by copyright law and international
treaties. Unauthorized use, reproduction or distribution of thi... |
3e93032b154e8d057fdbc20024e2225602887b97 | 34b857d84384c4640ebfaa477068e746e6bf6791 | /include/tgbot/types/ChatMemberBanned.h | 666427c846ad7f829b699352b0d6c7f6f1002d0b | [
"MIT"
] | permissive | naveenvhegde/tgbot-cpp | 4e8ec846a2c9f5117d458a20b8de82429c340733 | 18efc6aca9838e3311d407b1a6cb1bddfa801d65 | refs/heads/master | 2021-12-02T06:40:59.095916 | 2021-07-18T15:21:53 | 2021-07-18T15:21:53 | 387,081,226 | 0 | 0 | MIT | 2021-07-18T03:25:41 | 2021-07-18T03:25:41 | null | UTF-8 | C++ | false | false | 871 | h | ChatMemberBanned.h | #ifndef TGBOT_CHAT_MEMBER_BANNED_H
#define TGBOT_CHAT_MEMBER_BANNED_H
#include "tgbot/types/User.h"
#include <cstdint>
#include <memory>
#include <string>
namespace TgBot {
/**
* @brief Represents a chat member that was banned in the chat and can't return to the chat or view chat messages.
* @ingroup types
*/
cl... |
4e7a80f8b59406937d4a6c1d5243da4d29d8ac62 | 173f215def238e5063a543c9097dc779c20c10d3 | /include/bealab/extensions/signal/sparse/base.hpp | 0a177834b4bc179f87e35b7a70441c4b4cc802b0 | [
"BSD-3-Clause"
] | permissive | damianmarelli/bealab | 84b686c90d7301c87816061e0fc04402f4c2bce3 | 3357a0b0fd836c3557f39863471680cc99721729 | refs/heads/master | 2020-12-24T16:32:43.761872 | 2016-05-09T17:32:04 | 2016-05-09T17:32:04 | 27,882,232 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,501 | hpp | base.hpp | /// @file bealab/extensions/signal/sparse.hpp
/// Base class for sparse approximation algorithms.
#ifndef _BEALAB_EXTENSIONS_SIGNAL_SPARSE_BASE_
#define _BEALAB_EXTENSIONS_SIGNAL_SPARSE_BASE_
#include <bealab/core/blas.hpp>
#include <bealab/core/plot.hpp>
#include <bealab/scilib/linalg.hpp>
#include <bealab/scilib/op... |
d343d55bbefca142b8a30109a6dd7f22aaaf3b72 | 09dfa5413a47a21431df3a034d1f168d48837e16 | /include/Bullet.hh | 00d407a9853b9f23ed3659734ac37eef3df6d09e | [] | no_license | LuisArias1998/videojuego | 7c7f4069ac6aaf3ea782b4efa9da729abce0dd6d | 327f68e02ddb4cda0c36af9e8022b213379abba2 | refs/heads/master | 2023-08-30T03:14:34.908479 | 2021-11-15T21:49:38 | 2021-11-15T21:49:38 | 428,369,548 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 485 | hh | Bullet.hh | #pragma once
#include<SFML/Graphics.hpp>
#include "GameObject.hh"
#include<box2d/box2d.h>
class Bullet : public GameObject
{
private:
b2Vec2 direction{};
float moveSpeed{};
void Movement();
public:
Bullet(const char* textureUrl, int col, int row, float width, float height, float scale, float moveSpeed,
sf::... |
01e522f160b3a1d33a0a6ce06cca49b0f4af3b73 | 674f62b6f8a3540424c48fdc560a1902b94e7a5c | /src/metaConfig.cxx | a04e2ea5348db02daa4b4bc200d3a38d3056c3d3 | [] | no_license | RichardOtt/Malleus | 2574733247bac3d68019fc6e539cb58e34279d30 | 62e3b977eadb4bac932ba610066ad882e54c82ca | refs/heads/master | 2016-09-06T11:20:43.013865 | 2012-07-25T22:39:59 | 2012-07-25T22:39:59 | 2,144,906 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,321 | cxx | metaConfig.cxx | #include <iostream>
#include <cstdlib>
#include <string>
#include <fstream>
#include <vector>
#include "Errors.h"
#include "Tools.h"
#include "metaReader.h"
using namespace std;
int main(int argc, char *argv[]) {
if(argc != 3) {
cout << "usage: metaConfig.exe inputFile outputFile\n";
cout << "inputFile... |
e1f973cdac98eb49e12bd5e905cbe51c1c584d8d | cc2e1c6c1ca8a0a99750bb80c4b3972d7500b593 | /last/receiver.cpp | d4b770526ae0bbdb636b0e1bf6aef4a9e4caf9b2 | [] | no_license | betheazdavida/sliding_windows | 0e2d6e2a88ffcdc93fb5d644e4139445bf9f1e45 | 76d58dc072c0fd3294e51fc31dff530817e3b72c | refs/heads/master | 2021-07-15T06:26:42.798740 | 2017-10-19T06:53:35 | 2017-10-19T06:53:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,679 | cpp | receiver.cpp | /*
demo-udp-03: udp-recv: a simple udp server
receive udp messages
usage: udp-recv
Paul Krzyzanowski
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <netdb.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <iostream>
#include <vector>
#include <fstream>
#inc... |
38f0cc7040b97d25596743c71aa91372d53d3689 | 3bece67e5f7af1f558d0457a61669c99296ac040 | /submission/All_Nodes_Distance_K_in_Binary_Tree.cpp | 85b7d4fed455134281266a2ab5523ccd37fafe36 | [] | no_license | DerrickPikachu/Leetcode | 2566faa872021c3d3ba97f8f3d871b5d6354221c | 764011a746a78b548613aabc34462213e50f97c6 | refs/heads/master | 2022-11-25T10:14:16.803921 | 2020-08-03T03:49:12 | 2020-08-03T03:49:12 | 278,987,120 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,114 | cpp | All_Nodes_Distance_K_in_Binary_Tree.cpp | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
private:
bool DFS(TreeNode* root, TreeNode* target, vector<TreeNode*>& path) {
if (!root)
... |
0555ba59af06d4cdcaad5c145cf56de6e45fbdf8 | a83378a11aa6b7f766374b50bd5082a2acb7ae54 | /Xtreme/DDraw/DDrawRenderClass.h | e4c1c17035b5c24ea5d3acff130391a1cd87eacc | [] | no_license | Spritutu/Common | 5e21579fa767621b6d3e487bdd9f12209d8f0948 | 311e512d896f563a9353c743bb0878dafcca1b5b | refs/heads/master | 2022-12-25T16:36:40.449491 | 2020-09-27T09:48:18 | 2020-09-27T09:50:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,798 | h | DDrawRenderClass.h | #pragma once
#include <Grafik/GFXPage.h>
#include <Grafik/GDIPage.h>
#include <Grafik/DDrawPage.h>
#include <Grafik/Image.h>
#include <Grafik/RLEList.h>
#include <Grafik/ContextDescriptor.h>
#include <Xtreme/XBasic2dRenderer.h>
#include <Xtreme/Xtreme2d/XMultiTexture2d.h>
class CDDrawTexture;
cl... |
39668bba37038cc7b671a50d8f7795f542ffdf47 | 42ed116e4e759c506580d3bdb61c0819b18aead6 | /example/rbtree_main.cpp | 007d6ca96737fb88327e44067d0c59a249b1ccd5 | [] | no_license | shunpeizhang/libnindex | 3e91c6e10201bb7287b8980e8d603d06be27a7cc | 6297901c56b3abb57122f3e8a8d2bb62402f35a5 | refs/heads/master | 2020-05-09T13:24:30.454684 | 2015-07-25T10:57:28 | 2015-07-25T10:57:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,359 | cpp | rbtree_main.cpp | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <time.h>
#include <math.h>
#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/socket.h>
#include <openssl/md5.h>
#include <arpa/inet.h>
#include <... |
902c1e7c958aab7aea6ac15f40dd22a713080ea6 | b721fbe6c7e9e4b9e0d66c4952e2802b131bfa0d | /src/sample/dragonboard410c/ipc_client/plugin/smartVideo/include/xpluginflow/manager/msg_manager.h | 52906a30c4e73bbfd44e632a46915e1a14e31771 | [] | no_license | robinfit01/bootprint_x2 | 0b506e0e11635701896edbb6decc24798db4dec1 | d26703e62f9a3aeed200403b1caa2ff05d391189 | refs/heads/master | 2022-04-13T05:24:34.970044 | 2020-03-16T02:58:28 | 2020-03-16T02:58:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,912 | h | msg_manager.h | /*!
* -------------------------------------------
* Copyright (c) 2019, Horizon Robotics, Inc.
* All rights reserved.
* \File msg_manager.h
* \Author Yingmin Li
* \Mail yingmin.li@horizon.ai
* \Version 1.0.0.0
* \Date 2019-04-22
* \Brief implement of msg_manager.h
* \DO NOT MODIFY THIS COMME... |
b9efa69927e590bdad6ad94e91a8856b88a82499 | c94b20c900fa7773336d0095350dadcb846ce2da | /cpp/Mar/10/insert_iterator.cc | c45cea012faa68d6ff40c2c708508fd1da9002d8 | [] | no_license | gongjianc/Learn | bae6a4928291c702b95575b6935d3f2993a2ec8c | be772a70ed5e96b48ae2623c16c333c0250ed87e | refs/heads/master | 2020-12-12T14:12:59.107400 | 2018-05-25T03:14:38 | 2018-05-25T03:14:38 | 54,636,263 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 390 | cc | insert_iterator.cc | /*
** @file insert_iterator.cc
** @author jaygong(gongjian0309@gmail.com)
** @date 2016-03-10 00:50:23
*/
#include <iostream>
#include <vector>
using std::cout;
using std::endl;
using std::vector;
template <typename T>
void printElements(T c)
{
typename T::const_iterator cit = c.begin();
for(; cit !... |
e13548b06a240490ce742491265c8718af51a8e6 | 52dd99549140d8dc72891ac22dc2fb152a86f7c0 | /_Course Assignments/_Data Structures and Algorithm/Micro Dictionary/String.cpp | 6e9bcf13086367b2ed1e8eae1464283c311142f9 | [
"MIT"
] | permissive | clivic/C-code-examples | 8059ad213378c35cadca4a2a022c5432255ce8d3 | c389484cb53236fc902c2aed74bc0ea0a82b32f0 | refs/heads/master | 2021-10-15T05:46:10.166957 | 2019-02-04T19:04:43 | 2019-02-04T19:04:43 | 169,118,485 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 8,498 | cpp | String.cpp | #include "String.h"
String::String()
{
entries = new char[1];
entries[0] = '\0';
length = 0;
}
String::String(const char *copy)
// Pre: The pointer copy references a C-string.
// Post: The String is initialized by the C-string copy.
{
length = Strlen(copy);
entries = new char[length + 1];
for (int i = 0; i < le... |
a3b5ae343098b8edc5b4e97c775aa7fc0984a024 | e936f4e50f36175fd6c7a0124245ef63c33af13f | /ch06/13.cc | 12f2c9e7e806d121f962ad9676c741b2f5a54d51 | [] | no_license | thlorenz/B.Stroustrup.Cpp | 4f3da4b1d72fb373b6022dc4bdf6762a863aa85a | 350c48fac98b703edc02b1cbb23ea4c4ed3bdf30 | refs/heads/master | 2023-06-19T19:00:45.872865 | 2012-12-08T22:56:55 | 2012-12-08T22:56:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 446 | cc | 13.cc | #include <iostream>
#include <string.h>
using namespace std;
const char* cat_(const char *s1, const char *s2)
{
int len = strlen(s1) + strlen(s2) + 1;
char *res = new char(len);
char *s = res;
while (*s1) *s++ = *s1++;
while (*s2) *s++ = *s2++;
s = 0;
return res;
}
int main(int argc, const char *argv... |
33552379b896dc6e0383ff42eb504295b9af1b5a | 961496d97ca74c310acbc8504b446e8a2af67638 | /hackerrank/bucket-fill.cpp | cf2b9a0d145c4e245489d73fe2e766f4dc7e316c | [] | no_license | vrjuliao/code-exercices | b53c737b695169942bfe07b12c38d3faf14a35fc | 248e0f334a0f4b8621fa6c641526154b4aa3637c | refs/heads/master | 2021-12-11T03:12:18.454946 | 2021-12-01T17:42:32 | 2021-12-01T17:42:32 | 174,548,593 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,395 | cpp | bucket-fill.cpp | #include <bits/stdc++.h>
#include <stdlib.h>
#include <sys/time.h>
#include <unistd.h>
using namespace std;
vector<vector<int>> dp;
void visit(vector<string> &picture, int i, int j, char c, int color){
if(j < 0 || i < 0 || j >= picture[i].size() || i >= picture.size())
return;
if(picture[i][j] != c || dp[i]... |
2cdbe7d3985f85a9319da19cf50b42924c1b9d47 | d963b4bdd72602e802defce87df053a899f2abef | /Network/network.cpp | 841da6e76e462c1007191f29c49d9b630f2e8157 | [
"MIT"
] | permissive | CombustibleLemonade/cppNet | 89ef323e7eaba5699dc9a59fdd97a31bba493b42 | f365101fbbf7f7fea29d5fb971dc4ecccf688ca3 | refs/heads/master | 2021-01-22T05:28:16.706355 | 2017-03-18T21:34:23 | 2017-03-18T21:34:23 | 81,664,791 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 608 | cpp | network.cpp | #include "network.h"
#include <iostream>
Network::Network(std::vector<int> s)
{
sizes = s;
for (int i = 0; i < sizes.size() - 1; i++)
{
Layer l = Layer(sizes[i+1], sizes[i]);
l.add_unit();
layers.push_back(l);
}
}
Network::Network(Network *n)
{
layers = n->layers;
}
void N... |
69f1347396ba9d17b82f29919c40412f746c98f9 | 411af41c04dad68ddb07180540069b23bdf6ed72 | /LEDs/Traffic_Light/Traffic_Light.ino | ce38a167f8b5f2fb0ec053cfbc872475acb8a72d | [] | no_license | aryan-tayal/LEDs | 0465d226158f613cea15b462564131a1c2e02bfd | 303db0a0bbdab1311eb95839bc0441393d0d953b | refs/heads/main | 2023-04-14T01:12:57.649297 | 2021-04-25T10:37:06 | 2021-04-25T10:37:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 770 | ino | Traffic_Light.ino | void setup()
{
pinMode(2, OUTPUT);
pinMode(4, OUTPUT);
pinMode(21, OUTPUT);
}
void loop()
{
int i = 1, j = 1;
if (i <= 8)
{
digitalWrite(2, HIGH);
delay(10000);
digitalWrite(2, LOW);
digitalWrite(4, HIGH);
delay(1000);
digitalWrite(4, LOW);
delay(1000);
digi... |
f2e505220e9b110ae3196104816bad27be703f80 | 5c5a916c937c1163aa8dd69d115173586147d891 | /Temp/Piece/FindExeByPid.cpp | d673233bca0e3b29bc514163184dec6e82996dac | [] | no_license | tommwq/demo | 37b1214064d6047f3dc6e036fc35638912cb4026 | a010a3fe77cd07cc1c4dbf9480fb584107311352 | refs/heads/master | 2023-05-12T23:21:38.812957 | 2021-07-15T16:06:13 | 2021-07-15T16:06:13 | 164,401,887 | 1 | 0 | null | 2023-05-05T02:24:12 | 2019-01-07T08:34:37 | HTML | UTF-8 | C++ | false | false | 824 | cpp | FindExeByPid.cpp | /**
* FindExeByPid.cpp
* 按照pid查找程序位置。
* 2014-07-01 tommwq
*/
#include <cstdio>
#include <cstdlib>
#include <iostream>
#define UNICDOE
#include <windows.h>
int wmain(int argc, wchar_t **argv){
if (argc == 1){
std::wcout << L"usage: " << argv[0] << L"<pid>" << std::endl;
std::exit(0);
}
DWORD pid = _w... |
299bb53d6f845a4e24aeb1f4dd18724572f9b024 | 4a3385b0279c811543d1d8a4722c109e1ca15cda | /nadezhda.gubenko/B4/B4/notebook.hpp | 34b424ea00c89400a31681f10add0a55518f0eb4 | [] | no_license | nadezhdagub/cpp-labs-2nd-sem | 76849bb27d6fd3a20735e06cbbc2a40c122ea4b4 | 3f3092776cf7eb599a6c71f589936c52c2d1dd26 | refs/heads/master | 2020-08-05T18:57:22.092693 | 2019-10-16T20:23:02 | 2019-10-16T20:23:02 | 212,666,247 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,552 | hpp | notebook.hpp | #ifndef B4_NOTEBOOK_HPP
#define B4_NOTEBOOK_HPP
#include <iostream>
#include <sstream>
#include <string>
#include <list>
#include <map>
#include <algorithm>
#include <set>
struct NotebookEntry
{
std::string phoneNumber, username;
};
struct EntryElement
{
NotebookEntry entry;
std::set<std::string> tabs;
};
class... |
13a89d6fa5fefd8cec363288c5170fedbd7199c4 | fc77c3e41e67fada01d93568b70c1dd74318825e | /db-06_secret_of_fantasy/src/entities/plancutscene.hpp | 22f65edebd0bbfa97f19c4cfa58b90d5e90ea02d | [] | no_license | olofn/db_public | 6e06663be27737768901628d8298ada3143fdeda | 13c56c094884509139328004c9fa95332bf50ba4 | refs/heads/master | 2021-01-25T05:57:43.675455 | 2016-08-01T18:41:17 | 2016-08-01T18:41:17 | 40,801,780 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 243 | hpp | plancutscene.hpp | #ifndef DB_PLANCUTSCENE_HPP
#define DB_PLANCUTSCENE_HPP
#include "entity.hpp"
class PlanCutScene: public Entity
{
public:
PlanCutScene();
void logic();
void draw(BITMAP *dest, int scrollx, int scrolly) {}
private:
bool mHasRun;
};
#endif |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.