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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4097ff7d0db69efa6f75d9028724b8cb843764ee | 6627d27fc69922f179b14b612b366bbf0bc4eff9 | /old/robots/sabre/control/motor_check.cpp | 9246673262401548cd1eaad4038401f8562cfbc1 | [] | no_license | errorcodexero/newarch | 1a4773377197174ae58b6e4ef6d670bf197c643b | e69a864012e09548014ad208affeb8901835a654 | refs/heads/master | 2021-06-03T16:28:41.840622 | 2020-03-15T18:15:08 | 2020-03-15T18:15:08 | 139,747,384 | 9 | 6 | null | 2020-01-31T05:35:34 | 2018-07-04T16:54:36 | C++ | UTF-8 | C++ | false | false | 2,148 | cpp | motor_check.cpp | #include "motor_check.h"
#include<iostream>
#include<set>
#include<cmath>
#include "../util/util.h"
using namespace std;
bool operator==(Motor_check a, Motor_check b){
return (a.get()==b.get() && a.seen()==b.seen());
}
bool operator!=(Motor_check a,Motor_check b){ return !(a==b); }
Maybe_inline<Motor_check::Status... |
6a29c97a4dae7e47f9e2b108ed53bde7332f7bdf | 29e4cf82ae6601b6e2c42f1df9341d4f6d006eac | /src/metadata_manager/IrisMetadataManager.h | f1a9c7dafbcddf0ac7294ce629b2fce5a78bbc33 | [
"Apache-2.0"
] | permissive | akougkas/iris | bb3ebc48372e4c51bbf265ca3375f57b84fee340 | ae8b077afa6cec7ce3ea845dc7caad9b5e105c9d | refs/heads/master | 2020-03-21T21:03:54.036421 | 2019-10-07T14:45:46 | 2019-10-07T14:45:46 | 139,044,253 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 635 | h | IrisMetadataManager.h | /*******************************************************************************
* File IrisMetadataManager.h
*
* Goal:
*
* Created: December 10th, 2016 - Anthony Kougkas
* Updated:
* Illinois Institute of Technology - SCS Lab
* (C) 2016
******************************************************************************/
... |
2a0ef48f2eb9a6fb9c955fa2841d35e5a4e312d1 | 3dc04eeb6102856c28a96de3eef94591a5827f54 | /Transforms/Transforms.h | 4135f335cc2a21d87c369c18b8f6ba17da7611b7 | [
"MIT"
] | permissive | ryanwersal/refactorial | ba9a05b9a72e1d6f82ffac2d8d302ed86b918bea | f8b4a88799a041fa187c197db0dd5936d9fc01ba | refs/heads/master | 2020-12-25T08:14:26.285390 | 2016-07-27T16:30:07 | 2016-07-27T16:30:07 | 61,321,738 | 5 | 1 | null | 2016-06-16T19:54:40 | 2016-06-16T19:54:40 | null | UTF-8 | C++ | false | false | 2,005 | h | Transforms.h | #ifndef TRANSFORM_H
#define TRANSFORM_H
#include <string>
#include <vector>
#include <stdint.h>
#include <clang/AST/ASTConsumer.h>
#include <clang/Basic/TokenKinds.h>
#include <clang/Frontend/CompilerInstance.h>
#include <clang/Lex/Lexer.h>
#include <clang/Tooling/Refactoring.h>
#include <yamlreader.h>
class Transf... |
3fa07dc57c748ed80430231fd224ee8e2d6a46ec | f8bee118391a4657c117dbebd21f508424094863 | /sampleCode/ch20/20.6MergeSort/MergeSort.cpp | 7718124bf45aa8093a67cd49e1e336dc08a75fea | [] | no_license | BoKiMoMo/myC--ProgramPractice | 9ef8b2afe189fbe1aa573f8e2ef0cdce4308658f | bd3602bc79110edfc995cd72b0ffd25296d969f7 | refs/heads/master | 2023-06-09T05:08:33.366842 | 2021-06-23T10:36:25 | 2021-06-23T10:36:25 | 274,411,954 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,065 | cpp | MergeSort.cpp | // Fig 20.6: Fig20_06.cpp
// Sorting an array into ascending order with merge sort.
#include <array>
#include <ctime>
#include <iostream>
#include <random>
using namespace std;
// display array elements from index low through index high
template < typename T, size_t size >
void displayElements( const array< T, size >... |
022a0f6401169aa7dcfcac4be5c468df7bcfa662 | 402a47671a3e916b7daab7ddcdf8ecc273d46117 | /Propagator/Test.cpp | 5ddd7754d475b7926e445672f03cb5604a8271d1 | [] | no_license | jetpotion/CPP-Design-Pattern | eb7c2ab64f62be4c896965081410f1dd79a38d0f | e147ecdfedc435fa799d58a0bc672bbc20720e47 | refs/heads/main | 2023-01-08T19:41:54.771530 | 2020-11-09T17:35:08 | 2020-11-09T17:35:08 | 311,403,133 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 410 | cpp | Test.cpp | #include "Counter.hpp"
#include "Observable.hpp"
int main()
{
Counter c = Counter();
std::shared_ptr<Observable> l = std::make_shared<Counter>();
std::shared_ptr<Observable> h = std::make_shared<Counter>();
c.AddObserver(l);
c.AddObserver(h);
c.IncrementCounter();
c.IncrementCounter();
c.IncrementCounter();
c... |
ac155c3e35c049a0df1e5af9a7223e38a406bfbf | aff467eb1546d63bfe6ba0e3dec566bf866128b6 | /src/datacontrolstateformat1.cpp | 7345ab4c6a62e91546a3ac98492220dc99c63090 | [
"MIT"
] | permissive | leroythelegend/rough_idea_project_cars | 1bc83f96cd932fe529218e215e6c9d602e793f84 | 07ead73fa04402c860b21039d5aa8c22a33a7d93 | refs/heads/master | 2021-05-09T03:04:14.369536 | 2019-04-20T11:06:18 | 2019-04-20T11:06:18 | 119,230,622 | 4 | 1 | MIT | 2019-03-08T03:14:40 | 2018-01-28T05:26:28 | C++ | UTF-8 | C++ | false | false | 410 | cpp | datacontrolstateformat1.cpp | #include "datacontrolstateformat1.h"
namespace pcars {
Data_Control_State_Format_1::Data_Control_State_Format_1(std::shared_ptr<Decoder_Telemetry_Data> telemetry_data)
: telemetry_data_{telemetry_data} {}
unsigned int Data_Control_State_Format_1::joy_pad_0() const {
return telemetry_data_->joy_pad();
}
unsigned ... |
8120cced090229ae409195fc757965dceda1b303 | 8a9bb0bba06a3fb9da06f48b5fb43af6a2a4bb47 | /LeetCode/ReverseStringII.cpp | b23ed41d0a826257ceb57894c96c54c897a1abec | [] | no_license | ruifshi/LeetCode | 4cae3f54e5e5a8ee53c4a7400bb58d177a560be8 | 11786b6bc379c7b09b3f49fc8743cc15d46b5c0d | refs/heads/master | 2022-07-14T09:39:55.001968 | 2022-06-26T02:06:00 | 2022-06-26T02:06:00 | 158,513,101 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 300 | cpp | ReverseStringII.cpp | #include "stdafx.h"
#include "ReverseStringII.h"
#include <algorithm>
string Solution::reverseStr(string s, int k) {
if (s.size() == 0) return s;
if (k == 0) return s;
for (int i = 0; i < s.length(); i += 2*k) {
reverse(s.begin() + i, min(s.begin() + i + k, s.end()));
}
return s;
} |
eb19c331c7cafff5e510696365407ef6942fcf60 | 681f212bfe2b0b11c9b3a790b18608f522b75c2e | /1.cpp | de1ffd2d6c45a5a3f70cbfb4185f1f7fc370d601 | [] | no_license | GuiltyBike50/YAP_Pr_2 | 9a1171be858f9e9f5790bd4070a73e8a0cf9c69d | 83f3fe75677d0473bf8bf29ea9afb66f2ae0ed8f | refs/heads/main | 2023-05-31T06:33:55.719639 | 2021-06-09T07:21:26 | 2021-06-09T07:21:26 | 374,355,359 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 301 | cpp | 1.cpp | #include <iostream>
#include <ctime>
using namespace std;
int main ()
{
locale loc("ru_RU.UTF-8");
locale::global(loc);
time_t t = time(NULL);
tm * ptm;
char time [100];
ptm = localtime(&t);
strftime(time, 100, "%c", ptm);
cout << time << endl;
return 0;
}
|
5f8cf20d6437ea2280e6435fbd90a2ed45356a39 | 5638be520c7794e028a864abac29f51c88c07f27 | /codeforce/div529_c.cpp | 73816a6d19e6bed4deddffe95534e4d975e91825 | [] | no_license | CcChangJF/AlgoCodes | eb8af69764ff4042819bafd15abc0d573b80f9c9 | 737ae8f6aed4d43386c08ca1b007c03d698e042c | refs/heads/master | 2020-04-26T11:23:03.166366 | 2019-03-17T02:11:01 | 2019-03-17T02:11:01 | 173,514,478 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,972 | cpp | div529_c.cpp | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
int powers[32];
map<int, int> rev;
int res[32];
int getOnes(int n) {
int ans = 0;
while(0 != n) {
++ans;
n = n & n - 1;
}
return ans;
}
int highbit(int n) {
int t = 1;
while(0 != n) {
t = n;
... |
e9420cf13a1c87cc16e0120c634a9e07102f85b8 | 48d165fae29756c570ffb567694e113e4d87575c | /Source/XRProject/NetworkAsyncTask.cpp | 25460646f9eec73cd0eee48c6c78dd6dfc78207f | [] | no_license | seoaplo/XRProject | 424ad4a052e1913f0de75fc227985ddf6603fad7 | e375031fda28066cefe986f462bad64ff0a38cff | refs/heads/master | 2020-12-15T07:44:53.614064 | 2020-03-06T03:37:19 | 2020-03-06T03:37:19 | 235,035,134 | 1 | 2 | null | 2020-01-21T01:27:12 | 2020-01-20T06:38:47 | C# | UTF-8 | C++ | false | false | 1,439 | cpp | NetworkAsyncTask.cpp | #include "NetworkAsyncTask.h"
INetworkAsyncTask::INetworkAsyncTask()
{
}
INetworkAsyncTask::~INetworkAsyncTask()
{
}
ForwardAsyncTask::ForwardAsyncTask(const task_t& task, const std::function<bool(void)>& repeat)
: stored_task_(task), repeat_(repeat)
{
}
void ForwardAsyncTask::ExecuteAsyncTask()
{
if (sto... |
342a5b8ebeae54dd67e31a9f78e500d5c6bfc7eb | 46885801c2459416e82517f93b7d452d78b33aff | /source/script/tolua.h | efe0dcd7914d2fef83c909f7377d29130c9cf062 | [] | no_license | libercv/smallengine | aabe92d4743789e8eab4a65d86d5a838ddc2aded | c1645fb99db213b419a81d4815a6645e1be89fe9 | refs/heads/master | 2021-01-10T08:09:05.991405 | 2009-04-01T14:52:59 | 2009-04-01T14:52:59 | 36,439,082 | 0 | 0 | null | null | null | null | ISO-8859-10 | C++ | false | false | 182 | h | tolua.h |
// ņapita para no tener que tocar bindings.h cada vez que usamos toluaexe.exe
#include "lua/tolua.h"
#include "../log.h"
#include "../stategame.h"
using namespace Small;
|
3c479d33fced493fa681b5f0bc4e3cd3d01ccdae | 5b6060b654b714f0928234017c90d32118ecf910 | /include/hpp/kwsplus/roadmap/kpca-rdm-builder.hh | b5843dd581ecfa2353facbe872d81501607692a7 | [
"BSD-3-Clause"
] | permissive | laas/hpp-kwsplus | 2999141346fb20e175188df4d64da8c51c6e8c5e | 8ab8cdc83e37905c20da902d0755988306f3e1ff | refs/heads/master | 2016-08-06T21:15:33.609154 | 2013-10-08T13:13:10 | 2013-10-08T13:13:10 | 13,106,158 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 22,544 | hh | kpca-rdm-builder.hh | /*
Research carried out within the scope of the Associated International Laboratory: Joint Japanese-French Robotics Laboratory (JRL)
Developed by Sebastien Dalibard (LAAS-CNRS)
*/
#ifndef KWS_PLUS_KPCA_ROADMAP_BUILDER
#define KWS_PLUS_KPCA_ROADMAP_BUILDER
/*************************************
INCLUDE
*********... |
b40bb077aceac0321de3d192d3ac70475f81e3c5 | 02897f61b2a5b0423cd6729e5fa70060a1ec696f | /Enemy.h | 52d6d1f5a959018f7b4378e50d2aa79c55cac7f9 | [] | no_license | 7cougar7/dungeoncrawler | 806653c24142c68de85904bfb960ff426e121443 | 6c1422c4bec17e5c60fabcc80df55ab1c077ac53 | refs/heads/master | 2022-08-26T17:23:40.339989 | 2020-05-13T05:07:56 | 2020-05-13T05:07:56 | 262,516,426 | 0 | 0 | null | 2020-05-13T05:07:57 | 2020-05-09T07:37:37 | C++ | UTF-8 | C++ | false | false | 1,239 | h | Enemy.h | //
// Created by Marc Abdallah on 5/11/2020.
//
#pragma once
#include <string>
class Enemy {
protected:
//FixMe
//SpriteDataType sprite;
std::string name; //name of enemy
std::string enemyTip; //caption or description of enemy when clicked on?
int speed; //how many tiles the enemy can move in one ... |
c6ea49bcf67b0ac4a8faa262e738102822de4130 | a04d0ef76a662bd88eacf5a077d112319cc5df4c | /CalcMoneyInLeetcode.cpp | 6d52ea4adc276b63936fcde837874f5d8f7e16a9 | [] | no_license | vanshsehgal2001/GreedyAlgoQues | 80886ffa2fb8c7fc05e7bd129c16baefccdd8887 | 26f2ca5baf113d29fc4b8a353e1f00de21f11aef | refs/heads/main | 2023-03-28T17:06:21.246101 | 2021-04-01T18:26:36 | 2021-04-01T18:26:36 | 350,631,037 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 475 | cpp | CalcMoneyInLeetcode.cpp | class Solution {
public:
int totalMoney(int n) {
//BRUTE FORCE(O(N))
int step=1;
int ans=0;
while(n>0){
for(int i=0; i<7 && n-- > 0 ;i++){
ans+=(step+i);
}
step++;
}
return ans;
//O... |
8d7896806fe91b5f4ce3527cf8cc0240a4bec689 | 810c01108c3bcc0670c41b4f74cd2b6b3cf6a101 | /segment.h | 77488ea098ad08521a7e2221b9cdca08a56d2edb | [] | no_license | Waydjinn/projetcpp | e0e88b8c498dfb5853d77999fe662155fde4df76 | fc560929812114afdcfb5a4c6384d02a2758f09f | refs/heads/master | 2021-01-12T17:23:11.062611 | 2017-01-04T22:41:27 | 2017-01-04T22:41:27 | 71,556,961 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 488 | h | segment.h | #ifndef SEGMENT_H
#define SEGMENT_H
#include <point.h>
using namespace std;
class Segment:public Point
{
private:
Point A,B;
public:
Segment();
Segment(const Point &p1, const Point &p2);
Segment(const Segment &s);
Point get_A()const;
Point get_B()const;
void move(int x, int y);
void a... |
5fa5f61e776e31f4b5b4f5cba0f43fdff370c202 | 71a87e9b5fa105b7a8965e97e293c986f61b9402 | /ProblemInCPP/twoSum.cc | d4166c9193220da10669715f140869f6e0203919 | [] | no_license | ltp19930730/__Algorithm__ | e03d1afce2f4b42978fabfe17edec3c353846a36 | e62acc3c9fb83d387f454e2f9198514fe6cd3969 | refs/heads/master | 2021-06-12T12:51:35.201381 | 2017-03-01T23:43:13 | 2017-03-01T23:43:13 | 54,263,284 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,526 | cc | twoSum.cc | /*
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.
Note:
Elements in a triplet (a,b,c) must be in non-descending order. (ie, a ≤ b ≤ c)
The solution set must not contain duplicate triplets.
*/
class Solution {
... |
ce5e9a97c39206d4f0f13b50ca8dd437d366dbbf | 862b99ca55bd20d28d08d64436270c402da21905 | /LibXenoverse/LibXenoverse/EMM.cpp | 05d1a40feceb90be03c6747e41f9bf1c8d6e55a1 | [] | no_license | Olganix/LibXenoverse2 | 5dbe669a21cccb95e46af0f59e1f23cb91a8d8d2 | b398e34196e48705619d2681ec02c4b219b948e4 | refs/heads/master | 2022-06-11T08:53:21.235816 | 2020-07-17T13:41:07 | 2020-07-17T13:41:07 | 94,200,397 | 7 | 7 | null | 2022-05-25T23:38:03 | 2017-06-13T10:22:23 | C++ | UTF-8 | C++ | false | false | 19,334 | cpp | EMM.cpp |
#include "XenoFiles.h"
namespace LibXenoverse
{
/*-------------------------------------------------------------------------------\
| ~EMM |
\-------------------------------------------------------------------------------*/
EMM::~EMM(void)
{
size_t nbMa... |
9080536ddff4c06cc5a08f4c560eecabeffb4580 | e359db0e752a11c5d677e3a82574065831bab447 | /app/demo/home_automation/home_control_demo/generated/images/src/blinds/room_layout_blinds.cpp | 92b9ac2e9f2a8bf910f521de70381e887de46780 | [] | no_license | chichtlm/TouchGFX | 694936495ba49b4baba4fb56fd1165f424518c94 | 09cfdf466ae98fa61f54d55548248134a007871f | refs/heads/master | 2020-05-10T00:07:11.813953 | 2016-12-14T06:55:22 | 2016-12-14T06:55:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,174,030 | cpp | room_layout_blinds.cpp | // Generated by imageconverter. Please, do not edit!
#include <touchgfx/hal/Config.hpp>
LOCATION_EXTFLASH_PRAGMA
KEEP extern const unsigned char _room_layout_blinds[] LOCATION_EXTFLASH_ATTRIBUTE = { // 540x400 RGB565 pixels.
0xbe,0xe7,0xbf,0xe7,0xbe,0xe7,0xbe,0xe7,0xbf,0xe7,0xbe,0xe7,0xbe,0xe7,0xbf,0xe7,0xbe,0xe7,0xb... |
a6ba398b4581dc5b500d8e2a03d6445aac8f8826 | db73ca5eeefba36ae73c128caefcff668b70dbb3 | /EarthDefender/jni/Base.cpp | 44cc906a100d49cd9a6a6f8d1f5a2db45876d84e | [] | no_license | inirion/PUM_Project | 7160b8e1b9ede5b0e3f4f39d4681423644f46bd1 | a2aa7af12cce0268f537a500b6611789ad8af795 | refs/heads/master | 2021-01-23T00:21:28.923274 | 2017-03-21T16:06:08 | 2017-03-21T16:06:08 | 85,724,432 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,207 | cpp | Base.cpp | /*
* Base.cpp
*
* Created on: 3 maj 2016
* Author: Piotr Okoń
*/
#include "Base.hpp"
#include <cmath>
#include <string>
void Base::setBasePosition(sf::Vector2i pos){
xyPosition = pos;
sf::Vector2f temp;
int offset;
if(pos.x % 2 == 0)
offset = Conf::TILE_WIDTH/2;
else
offset = 0;
temp.x = pos.y *... |
486eac745da51f2dc34ba7929e2cb76038a58d5d | addce48b3e377a86f8fd98519afa40756e4f096a | /2/dialog.cpp | 5f75ee4b1ed27ed4f0d1ee80a39f50dcd00f35bb | [] | no_license | absentje/Qt | 6cb076820c0c2c3a8b34dc878fcb0f82b1d73e2c | 8df922dc4e0385001d661b33969fcd8446c62544 | refs/heads/master | 2021-01-19T11:42:08.111956 | 2018-01-28T23:53:23 | 2018-01-28T23:53:23 | 87,989,149 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,588 | cpp | dialog.cpp | #include "dialog.h"
Dialog::Dialog(QWidget *parent)
: QWidget(parent)
{
setWindowTitle("Dialog");
// the main layout
QVBoxLayout* main = new QVBoxLayout(this);
// other layouts
QHBoxLayout *firstInput = new QHBoxLayout;
QHBoxLayout *secondInput = new QHBoxLayout;
QGroupBox *sex = n... |
e53ec9efff8c844d22b0ed4e8acaddeaae29e7ba | a6f1cd042e91b17f72bcc7872a47cc022f2cf21e | /Tree/314. Binary Tree Vertical Order Traversal.cpp | 01e09956f601695e4bcf437ed943b6cb099f66a3 | [] | no_license | sammiiT/leetcode | bc1b8fa107c15bbdd803e6f5e4f86a179904a988 | 8e882f4a6fb05ba645bd1ff8355d3b8f14654fb0 | refs/heads/master | 2023-09-06T04:43:54.582944 | 2023-09-04T15:19:00 | 2023-09-04T15:19:00 | 219,103,778 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,280 | cpp | 314. Binary Tree Vertical Order Traversal.cpp | //===類似題===
987. Vertical Order Traversal of a Binary Tree
//===思路===
(*)使用map<T>
- map會依照key數值的大小作排列 ;且之後key對應的值,會覆蓋之前key對應的值
- 每次搜尋都會在logn時間之內完成
- 定義map<int,vector<int>>//<x_idx, x_idx上所有的數值>
- x_idx上的所有數值,就是vertical element所構成的陣列
(*)使用queue<T>
- 定義queue<pair<int,TreeNode*>>//<x_idx, x_idx對應的TreeNode*>
-以preorder方式p... |
65d6971c074fa2cc079fcaa54aede40646f952f3 | 076ba173f5b518977d30f4336c63b177a5a7f66d | /cases/comparison_trackers/param/env/objects/static/surfer__us_15o58__surftimeconst_4o5__reorientationtime_0o5/group/homogeneous/_member/agent/_behaviour/tracker/_behaviour_velocity/const/choice.h | db37c4b95cd082a41cc5c9145ce39cf8bf73d79a | [
"MIT"
] | permissive | C0PEP0D/sheld0n | a661b27ffee7b087731f0a3e9f92c2ee26d7d560 | a1b9a065cfaa2e3faf5a749f14201a84baa41ce9 | refs/heads/master | 2023-04-28T20:53:27.684636 | 2023-04-18T21:20:00 | 2023-04-18T21:20:00 | 421,041,396 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,308 | h | choice.h | #ifndef C0P_PARAM_OBJECTS_SURFER__US_15O58__SURFTIMECONST_4O5__REORIENTATIONTIME_0O5_GROUP_HOMOGENEOUS_MEMBER_AGENT_BEHAVIOUR_TRACKER_BEHAVIOUR_VELOCITY_CONST_CHOICE_H
#define C0P_PARAM_OBJECTS_SURFER__US_15O58__SURFTIMECONST_4O5__REORIENTATIONTIME_0O5_GROUP_HOMOGENEOUS_MEMBER_AGENT_BEHAVIOUR_TRACKER_BEHAVIOUR_VELOCITY... |
00a78fa72eb8364c3c7e90adfe265dd285f6d928 | 26fd74d4bb306bc92fe9bffbd64295598e74411f | /bwi_kr_execution/actasp/include/actasp/AspFluent.h | a79254ef3099e63d3a02069c067c3f2f7cb2a7d9 | [
"BSD-3-Clause"
] | permissive | mathew-kurian/bwi_experimental | fef98bfdce18bb99088835580760512bd12981d7 | 34acf75867869cb99862843591e6ec59d841b323 | refs/heads/master | 2021-05-28T01:17:13.796678 | 2014-12-23T00:48:36 | 2014-12-23T00:48:36 | 26,314,844 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,682 | h | AspFluent.h | #ifndef actasp_AspFluent_h__guard
#define actasp_AspFluent_h__guard
#include <string>
#include <vector>
#include <stdexcept>
#include <set>
#include <functional>
namespace actasp {
class ActionComparator;
class ActionEquality;
class AspFluent {
public:
AspFluent(const std::string& formula) throw (std::invalid_a... |
7bf5c1f5080da22542c952ea9c465f71785ab8b9 | e80cd0018b3b1d0cab817f18aa1f212dd113b6cf | /FYP/src/FYP_Client/CEGUI/InGameGUI.h | a91edd8f5be5d9bf69190a043132575291e9ac9d | [] | no_license | tectronics/dgfyp | 8ee477a3846357cf60715d2d8f850ba7057a41c4 | 06ccc5cfd5dfd5ead1ab55d52e37fc2e10236304 | refs/heads/master | 2018-01-11T15:00:39.018769 | 2013-04-25T05:19:10 | 2013-04-25T05:19:10 | 47,458,001 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,062 | h | InGameGUI.h | #ifndef __InGameGUI_h_
#define __InGameGUI_h_
#include "GUIObject.h"
#include "CEGUIPropertyHelper.h"
[event_source(native)]
class InGameGUI: public GUIObject{
public:
InGameGUI(void);
~InGameGUI(void);
void UpdateInGameGUI(PlayerData data, InventoryData inventoryData);
void UpdatePlayerDataOnGU... |
02d41b6ec66b6a312076238d36cd775229ff44cf | 7d342f8b1d13e83f3b97f84f4c3ad09936dd179b | /Locker.h | 8540e15d79cbaa64b20aa19990e245fe34e82d09 | [] | no_license | IliaIlyin/DirectoryAccessChecker | b6dafe253b6bd82b73c3d172649d825012d479d7 | 2b0da3a036d64e372831564c3bcceeff75a618cb | refs/heads/master | 2023-01-03T10:52:46.646684 | 2020-11-03T17:25:57 | 2020-11-03T17:25:57 | 309,687,812 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 638 | h | Locker.h | //
// Created by Ilya on 11/2/2020.
//
#ifndef DIRECTORYACCESSOR__LOCKER_H_
#define DIRECTORYACCESSOR__LOCKER_H_
#include <string>
#include <iostream>
#include <fstream>
/*
* class that creates a file with a specific name
*
* @author Ilya Ilyin
*/
class Locker {
public:
/*
* constructor that creates a file ... |
31c089fd541d533095cc9045b4179b5860fac7a5 | 0a4541e219bbfe9296cc659618dd4a91c81e0d56 | /KR3/common/memlib.h | 9475331846f9d18d4d70a9c234cb1cc2124ae2ab | [] | no_license | karikera/ken | e07b8858f63d839ac1cc9b69c648897644d5bfe2 | c41bee5f2da2b8e99d0b9284a53404218c4a6869 | refs/heads/master | 2023-04-27T17:48:03.681745 | 2023-04-17T09:20:50 | 2023-04-17T09:20:50 | 182,513,850 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,040 | h | memlib.h | #pragma once
#include "../meta/align.h"
#include "../meta/number.h"
#include "autovar.h"
#include <memory.h>
namespace kr
{
template <size_t size>
class IntableValue
{
public:
template <typename T>
inline IntableValue(T v) noexcept;
template <typename T>
inline operator T&() noexcept;
template <typenam... |
61e01ad0e243b4607ddd5f6da3368743e76c127d | 879d701dcda8dc4a2aad823226687b12c990f908 | /Salesman's Problem/Backtracking.cpp | fd003e0cc38ef5adb31715039f5920211141c5cb | [] | no_license | MWizmo/Salesman-s-Problem | d4c5865c4b2a0dc8a16e0b3facf5855a27b3e56f | f5ef930e93d2f686096ed86a7d3f2523347d4507 | refs/heads/master | 2020-06-12T23:05:26.585060 | 2016-12-03T15:08:27 | 2016-12-03T15:08:27 | 75,480,853 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,424 | cpp | Backtracking.cpp | #include "stdafx.h"
#include "Backtracking.h"
void BackTracking_Method(matrix Graph, int n)
{
int i;
matrix Copy = Graph;
vector<int> way;
vector <bool> flag;
for (i = 0; i < n; i++)
flag.push_back(false);
way.push_back(0);
flag[0] = true;
while (way.size() < n) {
for (i = 0; i < n; i++)
Line_Reduction... |
2a440f217708c86428e2606d2efd8dfd4c728e1d | 38636d8690df7a758cb0f8219196f0231337bf78 | /src/common/media/image.cpp | ab3ba579a73424b50c0d4b1384ad2df0fbff86b3 | [
"WTFPL"
] | permissive | socialpercon/trance | cc6ba210a5727b2dad633e329ce91e29ecc529c4 | 518d92046e881ed125ab1dd452c4c00bc809bd46 | refs/heads/master | 2021-01-22T18:27:51.153785 | 2017-02-18T02:08:47 | 2017-02-18T02:08:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,422 | cpp | image.cpp | #include "image.h"
#include <common/util.h>
#include <iostream>
#define VPX_CODEC_DISABLE_COMPAT 1
#pragma warning(push, 0)
#include <giflib/gif_lib.h>
#include <libvpx/vp8dx.h>
#include <libvpx/vpx_decoder.h>
#include <SFML/Graphics.hpp>
#include <SFML/OpenGL.hpp>
#include <libwebm/mkvparser.hpp>
#include <libwebm/mk... |
8d42ddec9fa5e5022d6427524a577c205000b6ff | fe75c01034319f9dce383fd57ec45dd627db27cc | /libclassiccrypto/vigenere/headers/vigenerecipher.h | 88de5e0f83ed9e1e5ef8e00f3be211e5d6ad7056 | [] | no_license | forgottenbutnotgone/module_crypto | 5590d51a9c47f78ea20796d213321bbb412a5b91 | 4e7d775d1d70c40e5f8559142fc459750320422e | refs/heads/master | 2023-03-17T03:25:37.187186 | 2017-12-12T07:45:17 | 2017-12-12T07:45:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,215 | h | vigenerecipher.h | /*! \file */
#pragma once
#include <string>
#include <unordered_map>
/*! \brief Contains all library code for the vigenere cipher
This includes only the vigenere transformer type
The Vigenere cipher was invented during the 16th century, and is often attributed
to Vigenere. The ciper works similarly to a shift ciphe... |
8cf60d0d8529b402719f01f9c6ed88339381f5e3 | a041ddee9d39150ad5d610decce3f98de15e964a | /4.17/main.cpp | 44148a8d64430e00ef03fb4cdaccc0794bbb0636 | [] | no_license | xiaozhichuan/zhai_xinyi | 9aba9dcd8736a744b3b58f1cf4f98a6f1ea54a56 | 7b2ddc03dcb215ee1f195ddf15a9b15010cfb5e9 | refs/heads/master | 2020-04-27T12:30:31.124420 | 2019-06-02T10:46:30 | 2019-06-02T10:46:30 | 174,333,844 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 394 | cpp | main.cpp | //Fig4.17: fig.04_17.cpp
#include <iostream>
using namespace std;
int main()
{
int counter = 0 ;
int number =0;
int largest=0;
cout << "Enter the first number :";
cin >> largest;
while(++ counter < 10)
{
cout << "Enter the number :" ;
cin >> number;
if (number >largest)
... |
82b5567dddaa74d5a4ea5e022536e9b8d1474774 | d5baa4702ab5d72f4b9f93f4f892df3fb44c8fd3 | /src/use_designpattern/src/MementoPattern.cpp | 7dbad9197ee8917328408c5424b42b060143123f | [
"Apache-2.0"
] | permissive | unihykes/mark | 8c418957b91fd1789564656362ad2a1d7749e863 | ab0edcf7fab9d0abdc8e62a3a9fbdc08820ebbb7 | refs/heads/main | 2023-04-09T18:01:20.600588 | 2023-03-17T16:25:44 | 2023-03-17T16:25:44 | 121,125,785 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,714 | cpp | MementoPattern.cpp | /***************************************************************************************************
LICENSE:
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/l... |
84af5425c33cd732d765203cfcb35b551b98d75f | 96ae3d9b840cc4f4a1124bd29b00ec0160bcc2b1 | /src/DataLoaderCloudRos.cxx | bdb5216a09859b4c972763f0078c21991301d7d6 | [] | no_license | AIS-Bonn/data_loaders | 0105bda7c90df9c9cf645392a654c9d0f62b61ab | 862c5b408e4a771b1e61695a36f57e175a728203 | refs/heads/master | 2023-01-29T16:59:20.417285 | 2020-12-09T16:51:29 | 2020-12-09T16:51:29 | 320,022,168 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,517 | cxx | DataLoaderCloudRos.cxx | #include "data_loaders/DataLoaderCloudRos.h"
//loguru
#define LOGURU_REPLACE_GLOG 1
#include <loguru.hpp>
//configuru
#define CONFIGURU_WITH_EIGEN 1
#define CONFIGURU_IMPLICIT_CONVERSIONS 1
#include <configuru.hpp>
using namespace configuru;
//ros
#include <pcl/conversions.h>
#include <pcl_ros/transforms.h>
#include... |
bf2a0ead244bb58990c103f0e98b1975b32c50b9 | 719ca866888053c63c4f76207f3792b0a46b5c8a | /Libraries/BulletAnimatSim/BlBox.cpp | 1887813fded2bc358917c0df3e0615cbb4b35aa5 | [] | no_license | silicondosa/AnimatLabPublicSource | 08e71f28c221881bf8527bb95df8cf530c455ca0 | c5b23f8898513582afb7891eb994a7bd40a89f08 | refs/heads/master | 2023-03-20T02:16:00.390767 | 2016-10-04T18:17:59 | 2016-10-04T18:17:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,997 | cpp | BlBox.cpp | // BlBox.cpp: implementation of the BlBox class.
//
//////////////////////////////////////////////////////////////////////
#include "StdAfx.h"
#include "BlJoint.h"
#include "BlMotorizedJoint.h"
#include "BlRigidBody.h"
#include "BlBox.h"
#include "BlSimulator.h"
namespace BulletAnimatSim
{
namespace Environment
{
... |
98f5439ed0508cc6b574cce4f28edb7d3eb89451 | a0ed4c90b79c715bd6226301e2176f8f4b3d2b8e | /CF/CF489C==Given Length and Sum of Digits.cpp | 95a435ebb63ecddde79dd0d2a4030e82d03a1b35 | [] | no_license | marlonwc3/cp-codes | 501fdab9a173bad3c2b34dbbd188b693e1c8fc2c | dafd83e66f8ee223fae7d09cadc616952be1e799 | refs/heads/master | 2020-07-02T06:30:11.554661 | 2015-10-06T00:53:14 | 2015-10-06T00:53:14 | 28,721,298 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,041 | cpp | CF489C==Given Length and Sum of Digits.cpp | #include <bits/stdc++.h>
#define _ printf("\n");
#define sc1(a) scanf("%d", &a)
#define sc2(a,b) scanf("%d %d", &a, &b)
#define sc3(a,b,c) scanf("%d %d %d", &a, &b, &c)
#define sc4(a,b,c, d) scanf("%d %d %d %d", &a, &b, &c, &d)
#define iz(b) if(b==0) { break; }
#define pf(a) printf("%d ", a);
#define pfc(c,a) printf("%... |
3e37df0d8ed5a4b668eca680b6cf13f584835289 | 712ca5da87ba576c855b1dc9eae9812b7015d5c8 | /cpp/priorityQueue/priorityQueue_minheap.cpp | b5bdb8b2d87791e3c79134b880298260bcb531e0 | [] | no_license | dans77777/Data-Structures-And-Algorithms-codes | 248d8b85a43d9cf6252176c5d18671f395c4f16f | be59ac7c35a36a670f0380f1c83be7313ddcc78c | refs/heads/main | 2023-05-31T16:07:36.949154 | 2021-06-22T15:57:18 | 2021-06-22T15:57:18 | 369,836,811 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,785 | cpp | priorityQueue_minheap.cpp | #include<iostream>
#include<vector>
using namespace std;
class priority
{
public:
vector<int>pq;
int data;
priority()
{
//data=this->data;
}
int getSize()
{
return pq.size();
}
bool isEmpty()
{
return pq.size()==0;
}
... |
01a2ca7defa7c1cf64d22c66d7c47115debca694 | 00aeb727adc647745106a7835ed8f2b7c5f42907 | /Labs/Lab12/checkingAccount.cpp | 0f23d662a3436693dba0f7b9ff1df5aa82219e3a | [] | no_license | thiagosantos1/Practice_CPlus | a65ffb8c7e7af9e87bf5ec0a215b0ad7db498772 | bd5dc2f93245af34ece22ff8de8f2c0fd24ce013 | refs/heads/master | 2020-04-24T01:47:54.676362 | 2016-09-07T16:34:04 | 2016-09-07T16:34:04 | 67,624,835 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 774 | cpp | checkingAccount.cpp | #include <iostream>
#include "bank.h"
#include "checkingAccount.h"
CheckingAccount::CheckingAccount(double balance_in, double anuualInterest_in)
: Bank(balance_in, anuualInterest_in){
accountType = "Checking";
}
/*
string SavingsAcount::getAccountType(){
return accountType;
}*/
void CheckingAccoun... |
0ae1a11d160e21b1c36c7ef9bcca25a5cc2ce06b | 8e81d723f435d8da01a9878b427075794bcf523f | /main.cpp | 51a218deb9ac5b545ba36f71e055c72bfd5c98f2 | [] | no_license | AnastasMIPT/Akinator | 2b0bf86bf1653adcb89c2960baa9ca062cb8f4da | 8c0566192a01aa4a0a0d8ef47eb3097f4b0665fb | refs/heads/master | 2020-11-24T05:37:26.605401 | 2019-12-14T08:09:53 | 2019-12-14T08:09:53 | 227,988,123 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,855 | cpp | main.cpp | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <cstdarg>
#include <AnastasLib\Stack.h>
const int DataSize = 100;
const int Question = 1;
const int Object = 2;
const int LenMassage = 150;
const int LenStringTree = 500;
const int LenStrPath = 100;
struct Node
{
char* data;
... |
7c7d39b79489ea906907a2990a9607c5e4f70deb | 88e364025c322b88882efb51f5da16f1274ac15a | /acm/10209.cpp | b745438b22ec18e99c01d3629b03becf606cce7b | [] | no_license | koukaipan/problem_solving | b3613db330841e33965b7d621a752a8a96e1e0a9 | c71da70f538401c7282352d84ad63d58db184ae7 | refs/heads/master | 2022-06-22T00:49:07.308185 | 2022-05-15T07:47:21 | 2022-05-15T07:47:21 | 195,614,818 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 373 | cpp | 10209.cpp | #include <stdio.h>
#include <math.h>
int main()
{
double lenth;
double area1, area2, area3;
while(scanf("%lf", &lenth)==1)
{
//calculate
area1 = (2.0*acos(0.0)/3+1-sqrt(3.0))*lenth*lenth;
area2 = ((1.0*acos(0.0)-1)*lenth*lenth - area1)*2;
area3 = lenth*lenth - area1 - area2;
//print
printf("%.3lf %.... |
4d06033a9d751deb536d320bde8bc3a5557a132e | 3c56c3c38c1c6a0b790af53bda9ee7c4e1fac6f2 | /Source/AgogCore/Private/AgogCore/AVec2i.cpp | 0fcd3f9f81862fc213e54600c71156e353dc6589 | [] | no_license | marynate/SkookumScript-UnrealEngine | 5a338be07365ec8bd2378ad85abf9bde692bb34f | 879bf51cee0c454ffbe6817f6efb522a35d8ea0d | refs/heads/4.8 | 2021-01-18T07:53:22.646022 | 2015-06-24T09:21:20 | 2015-06-24T09:21:20 | 38,041,531 | 5 | 3 | null | 2015-06-25T09:51:54 | 2015-06-25T09:51:53 | null | UTF-8 | C++ | false | false | 830 | cpp | AVec2i.cpp | //=======================================================================================
// Agog Labs C++ library.
// Copyright (c) 2005 Agog Labs Inc.,
// All rights reserved.
//
// AVec2i class definition module
// Author(s): Conan Reis
// Notes:
//==============================================... |
3cd55f38665a92bc0b42b26b3bac73f2c323048e | 9581f84891232db37d5570e847ea47f8557bfa1c | /guiTest/src/ofApp.h | cf0698bd2e3642d1641e0a525f7b4f6468bca7e9 | [
"MIT"
] | permissive | jdsierral/Cuboid-HW4 | 1ac05356bdb699374c810660f66c8823aac783c5 | a6251947497edcc62fefee4a776e3ac49fec7d35 | refs/heads/master | 2020-12-24T12:12:25.694080 | 2016-11-13T09:03:13 | 2016-11-13T09:03:13 | 73,070,668 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,444 | h | ofApp.h | #pragma once
#include "ofMain.h"
#include "ofxGui.h"
class Hit
{
public:
Hit(){
p = 0.8;
}
void excite(ofVec3f newDir, float newMag) {
setDir(newDir);
setMag(newMag);
}
void excite() {
setDir(ofVec3f(ofRandom(1), ofRandom(1), ofRandom(1)));
setMag(ofRandom(100));
}
void setDir(ofVec3f newDir){... |
fd184be63ed8644f2892320ae9ed1e3639a41dfd | b0705c9c4eaf4aa95779294df98ca5b6eac48d90 | /tp3.cpp | a88e6002ed17afd0ba1eb9a373d09a5dd334e027 | [] | no_license | TallerDeLenguajes1/tpn3-sotaski | 6453c5a3bfae01db030cfa6afa903ae423ac677a | 6013ad7407e8f9f46e594ec8aad6c6a90b97f98c | refs/heads/master | 2022-06-15T10:09:40.085514 | 2020-05-06T23:06:57 | 2020-05-06T23:06:57 | 259,727,190 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,382 | cpp | tp3.cpp | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
char *TiposProductos[]={"Galletas","Snack","Cigarrillos","Caramelos","Bebidas"};
typedef struct Producto {
int ProductoID; //Numerado en ciclo iterativo
int Cantidad; // entre 1 y 10
char *TipoProducto; // Algún valor del arregl... |
1e513746b2cf2f5ce00f0ea2828affc9e35e0137 | f95b759969b1bbfd0ebf3034cba861f5b9790a0e | /USBtoPS2KeyboardController/USBtoPS2KeyboardController.ino | 7bf8de7de82279fd95812a540645b2218633f534 | [] | no_license | Jenna64bit/usb2ps2dev | 008fb6f6055342df1cfdb8cfbacb43635d2f4ecc | 7a671e65345bba33ebb9e0e23834e15af38abb94 | refs/heads/master | 2022-08-13T18:17:41.697335 | 2020-05-23T21:27:39 | 2020-05-23T21:27:39 | 266,421,326 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,643 | ino | USBtoPS2KeyboardController.ino | /*
USB to PS/2 Keyboard Controller
*/
// Includes
//Emulate a PS/2 device
#include "src/PS2/ps2dev.h"
// Require keyboard control library
#include <KeyboardController.h>
// On SAMD boards where the native USB port is also the serial console, use
// Serial1 for the serial console. This applies to all SAMD boards ex... |
0b2aba93e680930dc69481c594c6dda02e8d5c88 | 4b375593f9616a7c621aad84e541480f8a84fd5c | /10305/10305/Source.cpp | d15cdf0f19189f4b3f409e7f7d036f47291ed586 | [] | no_license | yousiftouma/IMPA | 0846ca21dfb26b1c46e3eccd8e70a705478bf13c | bb9162ae630536fc023eda7408382439ebfd0f50 | refs/heads/master | 2020-04-11T00:41:49.832688 | 2016-11-28T23:18:18 | 2016-11-28T23:18:18 | 51,471,112 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,328 | cpp | Source.cpp | #include <iostream>
#include <queue>
#include <vector>
using namespace std;
vector<int> topological_sorting(vector< vector<int> > graph) {
vector<int> indegree(graph.size(), 0);
queue<int> q;
vector<int> solution;
for (int i = 1; i < graph.size(); i++) {
for (int j = 0; j < graph[i].size(); j++) { //iterate ove... |
eeb913f6093a0b4256501ab55a78d8037caf0bb6 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /DataFormats/HcalIsolatedTrack/interface/IsolatedPixelTrackCandidateFwd.h | 4c77fa81179396b7fbb4adb64b7ce9a5d7ecc6cf | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | C++ | false | false | 1,329 | h | IsolatedPixelTrackCandidateFwd.h | #ifndef HcalIsolatedTrack_IsolatedPixelTrackCandidateFwd_h
#define HcalIsolatedTrack_IsolatedPixelTrackCandidateFwd_h
#include <vector>
#include "DataFormats/Common/interface/Ref.h"
#include "DataFormats/Common/interface/RefProd.h"
#include "DataFormats/Common/interface/RefVector.h"
namespace reco {
class IsolatedPi... |
538722076d50425b460e59401a32a5fd6a07dadb | 032de413fe4b756456bed9aefcf81f38ac38a3ed | /longest_common_prefix.cpp | 69f6286e3415c12a8d4eaa87fa75847c62e65d75 | [] | no_license | elden2010/leetcode | 1eede355bd466114e005a6cb4e6e758cf2dceca6 | d6963e82826721901cdcf51ba4fbef4732c102ee | refs/heads/master | 2020-05-27T20:12:53.861858 | 2013-11-02T04:13:06 | 2013-11-02T04:13:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 598 | cpp | longest_common_prefix.cpp | class Solution {
public:
string longestCommonPrefix(vector<string> &strs) {
if(strs.empty())
return string("");
// find the shortest size of strs
string dummy;
int shortest = dummy.max_size();
for(int i=0;i<strs.size();++i)
if(strs[i].size()<shortest)
shortest = strs[i].size();
//
strin... |
6283c0bbde73e58bd6dd039d01ad69c3cf0338da | f5ea540a350950d8215212aebc76a2c5bcc55dbe | /tests/base/zArrayTest.cpp | 2d4fc3acad15207f1d318ea3b0d9951ba23bf1f1 | [] | no_license | zanfire/zanbase | f0335dc4516fc880960078dbebf39f8d396f218e | da3125c33aa2ecf2218f074f0dab6ee1ae0b32b5 | refs/heads/master | 2016-09-06T18:04:24.186489 | 2014-02-27T13:11:10 | 2014-02-27T13:11:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,559 | cpp | zArrayTest.cpp | #include "zArrayTest.h"
#include "zLogger.h"
#include "zArray.h"
#include "zThread.h"
#include "zRunnable.h"
#include "zReference.h"
#include "zString.h"
#include <memory.h>
#include <string.h>
zArrayTest::zArrayTest(void) {
}
zArrayTest::~zArrayTest(void) {
}
bool zArrayTest::execute(int index) {
switch(index... |
ae20ca2f8a5b57b2361e9b67e202e734857de964 | 434f9c1d601fa16e91c3a13120592dc92b560c6a | /ChartViewController.h | dd3a228b18d1b22d8581e0e0c29c82996f631829 | [] | no_license | thewitcher/TrainingApp | 2cebe4c889d49257dc32d378a06d5d9ad6d08bd3 | 0c15c776e242c13a6aa0a1fb01f8766a1f409e8b | refs/heads/master | 2021-07-25T20:52:51.416115 | 2017-11-06T18:51:57 | 2017-11-06T18:51:57 | 109,735,802 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,033 | h | ChartViewController.h | #ifndef CHARTVIEWCONTROLLER_H
#define CHARTVIEWCONTROLLER_H
#include <QtCharts/QChartView>
#include <QtCharts/QSplineSeries>
#include <QtCharts/QDateTimeAxis>
#include <QtCharts/QValueAxis>
#include <QObject>
#include "ChartTip.h"
class ChartViewController : public QObject
{
Q_OBJECT
public:
enum ESeriesType
{... |
1dbe027938ae1348b7c1d53a8118a310db339510 | 105d53a8897fad29025910e1d6473b7c832930d7 | /layer.cpp | 1f2b6efc3ad85077f1dd146268e04e75b4eb3f3d | [] | no_license | alban316/scroller | e56e8829569192a3f1405dd8817e6fec77338330 | 3df33dc5c2711ba75c3ad69ea234cd2ec173fea4 | refs/heads/master | 2022-09-04T01:42:52.172402 | 2020-05-28T13:10:43 | 2020-05-28T13:10:43 | 267,158,536 | 1 | 0 | null | 2020-05-27T23:11:54 | 2020-05-26T21:45:18 | C++ | UTF-8 | C++ | false | false | 1,064 | cpp | layer.cpp | #include "layer.h"
#include "logger.h"
Layer::Layer() {
digVal = new short[8];
for (int i = 0; i < 8; i++) {
digVal[i] = 0;
}
}
Layer::~Layer() {
delete digVal;
}
// create a layer from a copy
Layer::Layer(Layer *source) {
digVal = new short[8];
for (short i = 0; i < 8; i++) {
digVal[i] = sourc... |
5a2d20a429b5f1fc585f16fde784da23d5b2a43d | a6b698105aec67701cdd509cb9a48528786049d2 | /RegainEarthCheat/SDK/AI_Base2_DetourCrowdAI_EnemyAi_classes.h | fa3b84e58c80ea48031781d213361cce230b5025 | [] | no_license | ejiaogl/RegainEarth-Cheat | 859d44d8400a3694b4e946061b20d30561c6304f | 4136c2c11e78e9dbb305e55556928dfba7f4f620 | refs/heads/master | 2023-08-29T09:39:45.222291 | 2021-10-19T19:56:05 | 2021-10-19T19:56:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,142 | h | AI_Base2_DetourCrowdAI_EnemyAi_classes.h | #pragma once
// Name: RegainEart-FirtstStrike, Version: Version-1
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Classes
//--------------------------------------... |
ceead7ecd7bfbf203d9165235f9c5eb65c6f9970 | 8594aa9156920cd817cc5cfe42342fd60b128973 | /testCases/removeCollisionsInvolvingObjects.inc | d93dad00443fa6196cf1d9bcf0a49bab0610bbda | [] | no_license | John-Sharp/coll | 5a21896d1ab7083b2a3b261a8d33d1e2b39e164d | f81f6f9cf047244af19a4192ae993fed16c7087e | refs/heads/master | 2021-09-08T12:59:22.901905 | 2018-03-09T22:57:43 | 2018-03-09T22:57:43 | 114,573,318 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,578 | inc | removeCollisionsInvolvingObjects.inc | removeCollisionsInvolvingObjectsTestCase tcs[] = {
{ numCollisions:3,
pairings: {{objects: {(jcObject *)0x1, (jcObject *)0x2}, handler: NULL}, {objects: {(jcObject *)0x3, (jcObject *)0x4}, handler: NULL}, {objects: {(jcObject *)0x5, (jcObject *)0x6}, handler: NULL}},
collisionList: {{t:0.5},{t:0.5},{t:0... |
b0b7583013af9a7ddc84748e4dbee6df74568d4d | a3ec7ce8ea7d973645a514b1b61870ae8fc20d81 | /LeetCode/36.cc | cc7bf4346b0b009cb555118c782b5510696a8d25 | [] | no_license | userr2232/PC | 226ab07e3f2c341cbb087eecc2c8373fff1b340f | 528314b608f67ff8d321ef90437b366f031e5445 | refs/heads/master | 2022-05-29T09:13:54.188308 | 2022-05-25T23:24:48 | 2022-05-25T23:24:48 | 130,185,439 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,420 | cc | 36.cc | class Solution {
bool validate_line(vector<vector<char>> const& board, int i, int j, int di, int dj) {
vector<bool> v(9, false);
for(int k = 0; k < 9; ++k) if(auto&& cell = board[i+k*di][j+k*dj]; isdigit(cell)) {
int val = cell-'0';
if(v[val-1]) return false;
... |
9bef69f31a5aac23d948ed42352ef118393a2bad | 482891b0c9b2a023a447d88c5ae70a7ce198c7ac | /StRoot/StBbcSimulationMaker/StBbcSimulationMaker.h | 81af3b9f674b8909ecd69321b4b9f6b693ddfa74 | [
"MIT"
] | permissive | xiaohaijin/RHIC-STAR | 7aed3075035f4ceaba154718b0660c74c1355a82 | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | refs/heads/master | 2020-03-28T12:31:26.190991 | 2018-10-28T16:07:06 | 2018-10-28T16:07:06 | 148,306,863 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,945 | h | StBbcSimulationMaker.h |
#ifndef STAR_StBbcSimulationMaker
#define STAR_StBbcSimulationMaker
/*!
*
* \class StBbcSimulationMaker
* \author <a href="http://www.star.bnl.gov/~kopytin> M.Kopytine </a>
* \date 2002/08/20
* \brief BBC simulation
*
* This is a standard... |
710cb3d0848f02db951d75c567db5a9fe1facf7f | 0a0830362c091390734cad3ce4272d6684f96f49 | /Formal languages and grammars/Elective/Elective/Grammar.cpp | 283325afdc1400ae3d21b038437c33e3982abdb5 | [] | no_license | MirzoevNik/University | c22517437184cf3627c8178e331631616dd77612 | 15fd2dea41cf786ded81ba3e02c925211fd91782 | refs/heads/master | 2021-01-18T21:58:02.358030 | 2018-03-02T18:17:59 | 2018-03-02T18:17:59 | 46,814,645 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,956 | cpp | Grammar.cpp | #include "stdafx.h"
#include "Grammar.h"
Grammar::Grammar(void)
{
}
Grammar::~Grammar(void)
{
}
void Grammar::addNonTerminal( string non_terminal )
{
this->non_terminals.insert( non_terminal );
}
void Grammar::addTerminal( string terminal )
{
this->terminals.insert( terminal );
}
void Grammar::addProduction( s... |
395e72e691d76b84c72baf54921773dad0ec3b84 | 09ddd2df75bce4df9e413d3c8fdfddb7c69032b4 | /src/ljavac/cppcompiler_old.h | 9902e812822568791b080147e0e051bbecd37b98 | [] | no_license | sigurdle/FirstProject2 | be22e4824da8cd2cb5047762478050a04a4ac63b | dee78c62a1b95e55fcdf3bf2a9bc79c69705bf94 | refs/heads/master | 2021-01-16T18:45:41.042140 | 2020-08-18T16:57:13 | 2020-08-18T16:57:13 | 3,554,336 | 6 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 33,888 | h | cppcompiler_old.h | #ifndef __CPPCOMPILER_H_
#define __CPPCOMPILER_H_
#define ASSERT(x) ATLASSERT(x)
#define ASSERT_VALID(x)
#if 0
#include "..\Utils\UPtrList.h"
#endif
#include "../Utils/utempl.h"
#include "../Utils/UMap.h"
class ckw
{
public:
char* str;
inline ckw()
{
str = NULL;
}
inline ckw(char* _str)
{
str = _str;
}... |
d3930e118f6de2e8971d5deac6a63e0148313083 | 2f64799a0dc47b5187c60ea9395b5a0e707e5d53 | /Joe.h | b4e30a4b3d3a4395bc802fff316aa89c51b077ac | [] | no_license | Jorge-Morales/SideProject | 6fb874aaf9f67a6a383d4c736105764393297c09 | 884f2c5c02304c1713b3a56fbd36371f178f93ce | refs/heads/master | 2016-09-10T21:33:24.057627 | 2014-08-22T06:34:11 | 2014-08-22T06:34:11 | 23,214,922 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,567 | h | Joe.h | #ifndef JOE_H
#define JOE_H
#include "Entity.h"
#include <vector>
class IWeapon;
class Event;
class Joe : public Entity
{
private:
// Index of the currently active weapon
unsigned int currentWeapon;
// Store all the weapons the player currently has
std::vector<IWeapon*> Weapons;
// Switch to a new weapon in... |
6ff688b468849195c3970ad972809718a45399cd | d65b6c76c2b71a4e8464257a57bf44ff513aa843 | /Room_2014_04_25/Program/Sequence/SequenceManager.cpp | 64b4e604c0cfb6e05588e534572e1a48a58c2616 | [] | no_license | KouheiFujiwara/Examination-meeting | edf59001b4ddcd306d0ae348d4f9be84a9746b32 | 029806dc0ab47f3d5bbefcf231097cd2784c0787 | refs/heads/master | 2021-01-16T01:01:44.991102 | 2014-04-26T09:50:36 | 2014-04-26T09:50:36 | null | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,673 | cpp | SequenceManager.cpp | #include "DXUT.h"
#include "SequenceManager.h"
#include "Play/Play.h"
#include "Title/Title.h"
#include "../../Support/Fade.h"
#include "../../Support/Camera.h"
SequenceManager* SequenceManager::SharedInstance ;
SequenceManager::SequenceManager()
{
m_NowSequence = Title::GetInstance() ;
}
SequenceManager::~Sequence... |
268bfd2023b67dd652c8f9f6bf4bc1ab24c805f9 | 879681c994f1ca9c8d2c905a4e5064997ad25a27 | /root-2.3.0/run/tutorials/multiphase/twoPhaseEulerFoam/RAS/bubbleColumn/77/U.airMean | f67255794061b8ec8d1e9aa183cc06d1dc96c9ab | [] | no_license | MizuhaWatanabe/OpenFOAM-2.3.0-with-Ubuntu | 3828272d989d45fb020e83f8426b849e75560c62 | daeb870be81275e8a81f5cbac4ca1906a9bc69c0 | refs/heads/master | 2020-05-17T16:36:41.848261 | 2015-04-18T09:29:48 | 2015-04-18T09:29:48 | 34,159,882 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 47,121 | airmean | U.airMean | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
... |
0cec739b0f07c95761405a200312f0c2515b43fb | 211ec31a7f09435b4c5d491139a2831c98e0f69c | /BestarProject/Framework/jni/encrypt/file.cpp | f85f24ae6406df6dcc6c839a783b12c73dcc212f | [
"Apache-2.0"
] | permissive | bestarandyan/ShoppingMall | 6e8ac0ee3a5ae7a91541d04b1fba8d2d1496875c | ee93b393b982bdfe77d26182a2317f2c439c12fc | refs/heads/master | 2021-01-01T05:49:52.010094 | 2015-01-23T10:29:59 | 2015-01-23T10:29:59 | 29,727,539 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 907 | cpp | file.cpp | #include <fstream>
#include "file.h"
char CIPHER_IN_FILE[] = "";
std::string readCipher(std::string& filePath)
{
std::ifstream inputFile;
std::string line;
inputFile.open(filePath.c_str(), std::ios::in);
if (!inputFile.good()) return "";
while (!inputFile.eof())
{
inputFile >> line;
}
inputFile.close();
... |
77b5a30d9196fd2d32cdc9cba23e60af93ef1111 | 4692e66c43cb0fa77524e105cd1cc6895c8122e0 | /AeroGroundControl_BDMap_VS15/scatter.cpp | b8a9b3e0d8629c4a2f9a908f4b0ed0d2ef192f10 | [] | no_license | oldwang2018/Qt5.9.3 | 2a1f95d3c639d69ede7c71d1c9a4484a99d0ecc5 | 89da4e856189b0389a9db52951823d5972f488fb | refs/heads/master | 2020-04-29T15:12:31.743942 | 2019-04-16T06:19:00 | 2019-04-16T06:19:00 | 176,220,802 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,068 | cpp | scatter.cpp | #include "scatter.h"
#include "ui_scatter.h"
#include <QSplitter>
#include <QColorDialog>
#include<QDebug>
#include<QStatusBar>
#include<QHBoxLayout>
Scatter::Scatter(QWidget *parent) :
QWidget(parent),
ui(new Ui::Scatter)
{
ui->setupUi(this);
iniGraph3D();
QSplitter *splitter=new QSplitt... |
21e843ae270034e81d9abdf8d5e92a67b65dd94a | 3df6badbe1e4ab7f5f5400e79732868d9c5c9274 | /code/lt0011.cpp | 51d53e3f0a246d1f6aeb92c6f8a8853a89efa776 | [] | no_license | iwtbam/leetcode | fa440bf889b69bf3a6a3de1bf1846db3ca6aace9 | d76b120068919971775595ae306683aa0bab2bde | refs/heads/master | 2021-07-01T10:20:03.507257 | 2021-02-14T14:20:51 | 2021-02-14T14:20:51 | 214,327,800 | 11 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 623 | cpp | lt0011.cpp | // https://leetcode-cn.com/problems/container-with-most-water/
// container with most water
class Solution {
public:
int maxArea(vector<int>& height) {
int max_area = -INT_MAX;
int l = 0;
int r = height.size() - 1;
while(l < r)
{
int w = r - l;
... |
3732bc723436352e39dd93808a2f2fce0ee574fd | 778d12777577b279ca29581442b27ef3c49e4801 | /src/entity3d.h | e5d4cb5898ac49b774582ae347a623e01b86ed5c | [] | no_license | gui2one/angine | 9ba8fe4321fd2ac6fe138d553877923cf989b94b | 66cdb7f455d12c1acfbffffddc5340acee955aa1 | refs/heads/master | 2020-04-11T03:12:45.385692 | 2019-04-01T21:14:12 | 2019-04-01T21:14:12 | 161,471,023 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,317 | h | entity3d.h | #ifndef ENTITY3D_H
#define ENTITY3D_H
#include "pch.h"
#include "param_layout.h"
class Entity3D
{
public:
Entity3D();
// copy constructor
Entity3D(const Entity3D& other);
virtual ~Entity3D();
glm::mat4 transforms = glm::mat4(1.0);
glm::vec3 position;
glm::vec3 scale;
glm::vec3 rotation;
v... |
17309bc456a0d18ca6a2c18ace0150bbe043164c | 4b4aa4fbbe21026ca4c8a2c3e9e8af62ff9ff19f | /src/test/algo/strlen.t.cc | 1363d0c4ae308c1a4b29b9b01e43b2fa014ffbad | [
"Apache-2.0"
] | permissive | DenisYaroshevskiy/algorithm_dumpster | 961c75600232d030c2468a2300bad4531988f5d2 | 5e276d90f9bd9968b0a25ec57a91106aedecd021 | refs/heads/master | 2020-06-28T02:45:04.429293 | 2020-05-10T17:14:55 | 2020-05-10T17:14:55 | 200,123,104 | 3 | 3 | Apache-2.0 | 2020-03-08T10:25:46 | 2019-08-01T21:45:52 | C++ | UTF-8 | C++ | false | false | 1,620 | cc | strlen.t.cc | /*
* Copyright 2020 Denis Yaroshevskiy
*
* 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 agr... |
1aad66acb21f84523e5556121d88dde64b27894a | f24c9c3eb1124be176015ffec9c6f5763009f2dc | /KetaminRudwolf/src/game/player/Player.cpp | 08c50a2fb71eaadc7536492441a990c1aba1aa40 | [
"Apache-2.0"
] | permissive | Vasile2k/KetaminRudwolf | 0fbdd911d381c0619faebd9e65147be14fbdca31 | 8e1703a2737c2ff914380a14c71f679e27786a10 | refs/heads/master | 2020-04-16T07:57:10.802826 | 2019-01-17T08:57:59 | 2019-01-17T08:57:59 | 165,405,264 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,168 | cpp | Player.cpp | #include "Player.hpp"
#include <SDL_image.h>
Player::Player(SDL_Renderer* r) : renderer(r) {
texture = IMG_LoadTexture(renderer, "res/tex/Player/santa.png");
explosion = IMG_LoadTexture(renderer, "res/tex/Explosion/exp2_0.png");
}
Player::~Player() {
SDL_DestroyTexture(explosion);
SDL_DestroyTexture(texture);
}
... |
a8c312bc7d412519f7a33862977cbd4f5d0aee64 | 1f860ca19a9152f04d3fbfe07f32870683ce2424 | /DougTypingGuild/Accuracy.h | 53f29618c79a9013bc45bd710a1260bd9555c5da | [] | no_license | evankrug/Doug-s-Typing-Guild | 8a96c9a6a8c466046b04869133a87cce398fcb5a | ca2f22fc49826f12607df6dc47ac82f73b9bc818 | refs/heads/main | 2023-07-24T20:10:37.403792 | 2021-09-05T16:12:33 | 2021-09-05T16:12:33 | 403,353,792 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 342 | h | Accuracy.h | #pragma once
#include <iostream>
using namespace std;
class Accuracy
{
private:
int numChar;
int mistakes;
double pct;
public:
//------------------------------------------------------
// Calculates accuracy percentage for typing
//--------------------------------------------------
double CalculatePCT(int numC... |
f7feb10a6ff1237591a25dc525ec7347d303c400 | 5cf3e97d4d06e35d4eab01ca58348ce25de92146 | /LinkedList/printNthFromLast.cpp | d401cf27ffb36ecb2263822e10e54c2006345191 | [] | no_license | irajatpandey/Practice | 321bf86c0431e1089ea42a1dfdd7039356c89a0c | e4cc72cac55527f415766b5faa99f77de2cd43b9 | refs/heads/master | 2023-01-22T20:15:35.768063 | 2020-11-19T20:07:14 | 2020-11-19T20:07:14 | 258,999,717 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,328 | cpp | printNthFromLast.cpp | #include<bits/stdc++.h>
using namespace std;
class LinkedList{
public:
int data;
LinkedList *next;
LinkedList(int x){
data = x;
}
};
int getLength(LinkedList *head){
if(!head) return 0;
return 1 + getLength(head -> next);
}
int printNthFromLast(LinkedList *head, int n){
LinkedList *mainPointer = head;
Li... |
380a7e42dab7d2cda0de1c93c26dc71828154756 | 864b9ba11c6eb9e477118a9129063411aaf47e5f | /src/RosterTree.cpp | 5f1d66a6df8c39c5b373faf8e20ca25ac55289c9 | [] | no_license | Connlaio/IMFriendsList | 684ae8b52fac5bb8206e47e711d3f17fc649c144 | 735e22c83e8e0ad7d63d4b630cd68d70c11586e1 | refs/heads/master | 2021-01-17T05:55:44.163309 | 2015-03-18T18:41:20 | 2015-03-18T18:41:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,122 | cpp | RosterTree.cpp | #include "RosterTree.h"
#include "RosterWidgetItem.h"
// QXmpp
#include <QXmpp/QXmppRosterManager.h>
#include <QXmpp/QXmppVCardManager.h>
#include <QXmpp/QXmppPresence.h>
#include <QXmpp/QXmppUtils.h>
// Qt
#include <QMouseEvent>
#include <QContextMenuEvent>
#include <QMenu>
#include <QAction>
#include <QDebug>
Rost... |
ff5e1ebcaba18f0aa32a8bbed453c65c6e15b428 | e829bb09f4ecd2146aba56996825a994307391cc | /finalproject/src/screen.cpp | 7e8babd5fa32ed8bd8f04df1d48608eb888cf23e | [] | no_license | lvoytek/VoiceModulator | 83d1c8866e8cef69a02132a84e4b4b2ad7ef76c9 | 6e3aa5a66629daf740e260a9a278bc5d3c100de0 | refs/heads/master | 2020-04-28T06:36:33.007597 | 2019-05-09T04:22:55 | 2019-05-09T04:22:55 | 175,065,403 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26,931 | cpp | screen.cpp | // Authors: Nadine Najdawi, Jacob Bowles, Jessica Sofka, Lena Voytek
// Net IDs: nadinealnajdawi, bowlesj, jsofka, dvoytek
// Date: May 2019
// Assignment: Final Project
// LENA DOES THIS
#include "screen.h"
//Images to display on screen
unsigned char dale[] = {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,... |
1bea3090649b9252e5b0c5d5d068791d453953c1 | 0ceea470862151870c877d8cf838f9a2ffd50ce9 | /inc/base/base_convert.hpp | 875e5a980d422d6b62d0f224d9bd4b17da146c1c | [] | no_license | yanrk/common | 8269438b3ed2bc4fb9f05c0b4d5a7f74a826b6b6 | 361b1170a78f912b41b70e85baba1fff6bed1b09 | refs/heads/master | 2020-06-01T13:35:14.862576 | 2013-08-12T17:17:52 | 2013-08-12T17:17:52 | 12,059,988 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,091 | hpp | base_convert.hpp | /********************************************************
* Description : convert between string and build-in type
* Data : 2013-08-03 22:26:44
* Author : yanrk
* Email : feeling_dxl@yeah.net & ken_scott@163.com
* Blog : blog.csdn.net/ken_scott
* Version : 1.0
* History :
... |
bbc6db8fff2519a2cdca31ad75aebae406233351 | ff6ded2a1e7340da55c803a0f70c91d545702a13 | /tp/tp3/src/HelloHandler.hpp | 9c4d1fa5a796b82079e0c479ea770dd7107a81c7 | [] | no_license | AdamMartinCote/ElevationJukebox | 5ceecfd03258c3dad76a6524efe6571260e3277b | d1a20dba3ed826e29fa2640f1763749978239e21 | refs/heads/master | 2021-06-07T00:42:12.945000 | 2019-01-16T00:49:04 | 2019-01-16T00:49:04 | 165,945,785 | 0 | 0 | null | 2021-06-01T23:14:39 | 2019-01-16T00:35:37 | C++ | UTF-8 | C++ | false | false | 744 | hpp | HelloHandler.hpp | #ifndef SRC_HELLO_HANDLER_HPP
#define SRC_HELLO_HANDLER_HPP
#include <fstream>
#include "pistache/endpoint.h"
#include "RequestEvent.hpp"
#include "ErrorEvent.hpp"
#include "PrintHandler.hpp"
#include "PrintQueue.hpp"
#include "thread"
using namespace Pistache;
class HelloHandler : public Http::Handler {
public:
... |
d48a0b0c30d99a7fe73228dd97ae3a78700405b7 | bdd9f3cdabe0c768641cf61855a6f24174735410 | /src/engine/client/library/clientGame/src/shared/core/AwayFromKeyBoardManager.h | 48128a196eabce4f6f8ec994978b35f8713b46e5 | [] | no_license | SWG-Source/client-tools | 4452209136b376ab369b979e5c4a3464be28257b | 30ec3031184243154c3ba99cedffb2603d005343 | refs/heads/master | 2023-08-31T07:44:22.692402 | 2023-08-28T04:34:07 | 2023-08-28T04:34:07 | 159,086,319 | 15 | 47 | null | 2022-04-15T16:20:34 | 2018-11-25T23:57:31 | C++ | UTF-8 | C++ | false | false | 1,784 | h | AwayFromKeyBoardManager.h | // ============================================================================
//
// AwayFromKeyBoardManager.h
// Copyright Sony Online Entertainment, Inc.
//
// ============================================================================
#ifndef INCLUDED_AwayFromKeyBoardManager_H
#define INCLUDED_AwayFromKeyBoardMa... |
9083284a1a0a9fb1b218f87818051afe088369a7 | bc787a7a76cdc7ad4f574fede976a5dd067f2302 | /vector/main.cpp | a7269a567759e7be71424e5867ad79798257d374 | [
"MIT"
] | permissive | bulingma/DataStructAndAlgorithm | fca7693cf52c0be7393bd4200aeae9e9efb31ab1 | 76da9f14dc2c5818590dd3ca007723967575a310 | refs/heads/master | 2022-01-14T01:35:10.027233 | 2019-06-16T15:42:34 | 2019-06-16T15:42:34 | 188,689,784 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 7,010 | cpp | main.cpp | /******************************************************************************************
* Data Structures and Algorithm in C++ .
* Junhui DENG(deng@tsinghua.edu.cn) is first author, Yuguang Ma learn、add and modify it .
* All rights reserved.
**************************************************************************... |
5c7550d4506b0960816f8b242ca3905a248049a8 | 2baea3de30c2c16ebd263e47a9bc44fa98fab33c | /GameDev_WS_20_21/GameDev_WS_20_21_OpenGlEngine/src/Private/Rendering/VertexBufferLayout.cpp | ab4d31e1eee3957f6feb25eb03adc6d792b5c967 | [] | no_license | LaFoster00/GameDev_WS20_21 | 86c8184f9e3eb2acb56b8eb04b470630f9348989 | 055537b4172981899569379541267b7ff578cc51 | refs/heads/main | 2023-07-22T17:07:38.127249 | 2021-09-10T21:04:43 | 2021-09-10T21:04:43 | 341,959,832 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 41 | cpp | VertexBufferLayout.cpp | #include "Rendering/VertexBufferLayout.h" |
5a8eabebfb3170334c573c0a4ed1275f5cbcf228 | 725fb888856bff21f8a46518340cd46e22518e67 | /src/util/Mutex.cc | cd60e2b0e4cd64af79d6a18c5ace03b748ffdda8 | [] | no_license | lsst/qserv | 6fe6549d6dfc2f708fc29eac507d5b1e85f7c630 | 4971fc53bc3934686aa22cea7a74791ff3f5cb69 | refs/heads/main | 2023-08-18T15:50:18.747158 | 2023-08-17T01:02:13 | 2023-08-17T01:02:13 | 23,013,460 | 27 | 35 | null | 2023-09-14T07:26:31 | 2014-08-16T07:50:36 | C++ | UTF-8 | C++ | false | false | 2,026 | cc | Mutex.cc | /*
* LSST Data Management System
* Copyright 2018 LSST Corporation.
*
* This product includes software developed by the
* LSST Project (http://www.lsst.org/).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Fr... |
30f139e239b8f08f7b1aba86d6fe8489d5acba3e | 2d00505c7940f1bd1dcff122aa1e8bbd5d2edea2 | /inst/examples/dispatch.cc | 3e59b6bfbcd849dd428464e5dbafa4940385bf03 | [] | no_license | kashenfelter/RGCCTranslationUnit | cb647e6c57e78656bb196e68834d60fd664e66cd | 1bd45f5589516334afa57a75e936d2a36ff943b6 | refs/heads/master | 2020-03-23T00:32:22.815755 | 2013-04-21T21:38:45 | 2013-04-21T21:38:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 309 | cc | dispatch.cc | typedef struct {
} A;
typedef struct {
int i;
} B;
typedef struct {
} C;
typedef struct {
int i;
} X;
//B g_b = {1};
void foo(C c);
void foo();
void foo(A a);
void foo(A a, B b);
void foo(A a, C c);
void foo(A a, B b, C c);
void foo(X x, B b);
void foo(A a, B b, X x);
void foo(X x, int b = 1);
|
5253a78edaa5fdea20ec3b4cc24f0b164ba76ea3 | 3333dd52c91331597c0a785c1ae8e663ae12dfdd | /CNT/Semester 2/CNT252/ICA20/ICA20/main.h | 5923cfa12a53739e3304e8d1e4e9740e61c7cfc6 | [] | no_license | mtikoian/School | 2e20f2fc1d6992d0047bc8686c8ac34be4369c3c | 901d5ea0fd384c1713f6a7415401f15cbc75e274 | refs/heads/master | 2020-12-03T08:44:16.261018 | 2018-01-31T16:22:19 | 2018-01-31T16:22:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 688 | h | main.h | #ifndef MAIN_H
#define MAIN_H
#include <iostream>
#include <crtdbg.h>
using namespace std;
struct SData
{
int m_iX;
int m_iF;
SData* m_pNext;
};
void FlushCINBuffer ();
void GetInput (int* const piValue, char const * const szPrompt,
int const iLow, int const iHigh);
char Menu (bool bFullM... |
b4f8473089aea063f9fd9216942102208ed66038 | 419e8023d086a5a725f4ef92526c013c6c466c16 | /s2e_win/GetLocalTime-hook/GetLocalTime-hook.cpp | 69c5dd9c7ba8b9457e2d3986269789fd8ca47c3c | [] | no_license | CyFI-Lab-Public/MARSEA | 9a922da63dae21331f4714b56a219392e1d4278a | fc53c4629065eeaad78258a11d950265cb059c5d | refs/heads/master | 2023-08-01T08:27:51.988814 | 2023-04-18T14:39:44 | 2023-04-18T14:39:44 | 689,190,726 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,043 | cpp | GetLocalTime-hook.cpp | ///
/// Copyright (C) 2018, Adrian Herrera
/// All rights reserved.
///
#include <Windows.h>
#include <strsafe.h>
#include <easyhook.h>
// We need this header file to make things symbolic and to write to the S2E log
#define USER_APP
extern "C" {
#include <s2e/s2e.h>
}
/// Maximum message length to write to S2E debu... |
519d577b28470ba5531ef4cc3db1085962b6bbfb | d553b3cb754aa62c7764729bb9fa6e3c277fb71d | /C++/Assignment 5/Cartoon.h | 02ce2ebf5ff09596395099a8af14a5ab1ce39481 | [] | no_license | liuxuanhai/Programming_in_C_and_CplusPlus | 21c852445327541c03ac4620171a0a48ca8984b5 | aed2ee5afa168a594720f5f299dc01d9592613f9 | refs/heads/master | 2020-07-23T21:29:57.690088 | 2016-04-19T01:11:32 | 2016-04-19T01:11:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,556 | h | Cartoon.h | #pragma once
#include "Object.h"
class Cartoon : public Object{ //Cartoon class with it's data members
std::string type;
std::string name;
std::string likes;
public:
void set(List<NVPair<std::string, std::string>, DATA_MEMBERS_PER_OBJECT>list) { //assigns values to the data members from List
for(int i=0; i <... |
52d1a717d4eb93397818b57dd77ded6471c92db7 | 01c9081fd534f38d3fc1ac131258755054feba56 | /src/plugins/keyHijacker/keyHijacker.cpp | 70cd1e90ec5d0656d0d10e6a5faa8ccbecbaf0c3 | [] | no_license | adituv/GH3-Plus | 1f893de23888ade9e4c323c96879bed206f2d1f2 | b181c104f959493a2279ab623452825ecfed7520 | refs/heads/master | 2021-01-13T12:54:32.858627 | 2017-02-22T23:42:45 | 2017-02-22T23:42:45 | 72,787,084 | 0 | 1 | null | 2017-04-19T20:32:50 | 2016-11-03T21:09:18 | C | UTF-8 | C++ | false | false | 6,772 | cpp | keyHijacker.cpp | #define PITCHSHIFT
#include "keyHijacker.h"
#include "resource.h"
#include "core\Patcher.h"
#include "gh3\GH3Keys.h"
#include "gh3\GH3GlobalAddresses.h"
#include "gh3\QbStruct.h"
#include <Windows.h>
#include <mmsystem.h>
#include <string>
#include <cstdio>
#pragma comment(lib,"Winmm.lib")
static const LPVOID changeD... |
059bb90729c087bc01ebf07c10b90676e65c62b0 | 5f96b5f6def820dbc5c2376ca0c3fc55ca9366ae | /test/CTCI/Hard/test_Q1.cpp | 66517c7cbebc896b630db9ad1a570528d75b0d0d | [] | no_license | vsiddharth/GoogleTest-Experiment | 50753e1626cbeede4244153ba05c91e8f4e88b75 | b6100dfe8bdaf23b9a68c0702acfff240dd558fa | refs/heads/master | 2020-09-10T18:03:22.920653 | 2016-09-01T22:09:25 | 2016-09-01T22:09:25 | 66,510,214 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 207 | cpp | test_Q1.cpp | #include "gtest/gtest.h"
#include "CTCI/Hard/Q1.h"
TEST(Hard, Q1a)
{
int a = 0, b = 0;
int r = add(a, b);
ASSERT_EQ(0, r);
}
TEST(Hard, Q1b)
{
int a = 1, b = 1;
int r = add(a, b);
ASSERT_EQ(2, r);
}
|
4a6b3b0a5052735a1c80abb541df4c894b6e2292 | ddb2870ac22217c7f58e02ecb9b4e12e06ac3034 | /Client/Code/CollisionMgr.h | 54821d4bd93ef6446e6c296674778f137f7075fb | [] | no_license | jw96118/Little-NightMare | b147159c4948cd9528882cad08e9c9c253e29d7d | 7c56a4ceb0bf411f6bd4a10c2b834f3d262ba198 | refs/heads/main | 2023-07-04T09:37:46.257693 | 2021-08-16T04:29:28 | 2021-08-16T04:29:28 | 396,616,425 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 2,548 | h | CollisionMgr.h | #ifndef CollisionMgr_h__
#define CollisionMgr_h__
#include "Defines.h"
#include "GameObject.h"
#include "Layer.h"
class CollisionMgr
{
private:
typedef struct tagOBB
{
_vec3 vPoint[8]; // 큐브를 이루는 정점
_vec3 vCenter; // 큐브의 중점
_vec3 vProjAxis[3]; // 중점에서 각 면을 향해 뻗어나가는 방향 벡터
_vec3 vAxis[3]; // 큐브의 면과 평행... |
d18c633a7e0725bd037057140b8fa80a036b1dbd | 5c34da2af58f790de4d01da27f3d46d7ff5d5700 | /src/contests/676/B.cpp | 9aa26c62cc41dbe2c2c739f4eb8934fe31176f81 | [] | no_license | nschepsen/codeforces | ea124a4d43c07b7106f087d38b24602059e1c159 | 963b624045b67aabfa16c235f857800742a866b7 | refs/heads/master | 2021-09-08T23:17:10.099340 | 2021-09-01T16:39:30 | 2021-09-01T16:39:30 | 134,918,112 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 962 | cpp | B.cpp | #include <iostream>
#include <cmath>
#include <vector>
/*
* Contest: Code Forces Round #354 (Task 676-B)
* URL: http://codeforces.ru/contest/676/problem/B
*/
int main(int argc, char** argv)
{
std::ios_base::sync_with_stdio(false);
int n, t, l; std::cin >> n >> t;
l = std::log2(t + 1);
// std::vect... |
62a14a0985a88b98632be9dc319cf8a392999063 | 7ecc83985c216e6e2b45255a01ea86d0f7c16c28 | /Libraries/ionScience/IColorMapper.h | 3e45f3133d4d3eafcc0356d2725b878b59b7d872 | [
"MIT"
] | permissive | iondune/ionEngine | 98426728173152d80905a2e2493cb11fd9b243c8 | 0c848cb024e8cb1cb24b17fda52b0ad60db5f5cc | refs/heads/master | 2023-06-09T13:50:47.269610 | 2021-04-26T01:29:46 | 2021-04-26T01:29:46 | 25,057,840 | 40 | 10 | null | 2016-05-01T22:59:00 | 2014-10-11T00:21:17 | C++ | UTF-8 | C++ | false | false | 313 | h | IColorMapper.h |
#pragma once
#include <ionScene.h>
#include <ionCore.h>
#include "IDataRecord.h"
#include "IDatabase.h"
namespace ion
{
class IColorMapper
{
public:
virtual color4f const GetColor(IDataRecord<double> const & DataRecord) = 0;
virtual void PreProcessValues(IDatabase<double> & Database) = 0;
};
}
|
39fe4ea636f60e596cee7ecfc88f38058bbe0018 | 214a6c416fd03ec4700bdb5e08432cb93c6ca928 | /ant.cpp | 67d2c01184644d13ef407190831889c4fdf501a1 | [] | no_license | ryoungblom/cs162_langtonsAnt | b0cccb8126aa99f07d79727a72cb0fbe60e3218a | 9cd3a944a0b35f347d13adb16072833fc7af69b8 | refs/heads/master | 2021-01-02T08:43:49.806814 | 2017-08-02T00:42:47 | 2017-08-02T00:42:47 | 99,055,405 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,499 | cpp | ant.cpp | /*********************************************************************
** Program name: ant.cpp
** Author: reuben youngblom
** Date: 1/22/17
** Description: function implementation file for project 1
*********************************************************************/
#include "ant.hpp"
/*
Start function. ... |
9335b2facfb3316401c069a02eaf90e9996ed215 | 953d8872d49eb8ba3f60bc69718da147559bdf40 | /src/RcppExports.cpp | 5140b7f773743e5e1e8f370f2c5fbac3052a4b1c | [
"MIT"
] | permissive | GoldenSushi/helpeR | 0b16c886583ffecf72c4b87898ac1d138f14b409 | b63076c77eb86a42140c352e8ba1897b380fd84c | refs/heads/master | 2020-03-15T03:19:49.154099 | 2018-05-07T03:43:00 | 2018-05-07T03:43:00 | 131,939,768 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,732 | cpp | RcppExports.cpp | // Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#include <Rcpp.h>
using namespace Rcpp;
// cread_csv
Rcpp::DataFrame cread_csv(std::string& fileName, bool header);
RcppExport SEXP _helpeR_cread_csv(SEXP fileNameSEXP, SEXP headerSEXP) {
B... |
1b8bdc35bee4feb6785a7916869fd4260f7ffcff | 37e4d1a67827b29144295f31b269071af8f5b0e8 | /Lab4/funcs.cpp | 08e7a84b8ba16355b30d11a0f3b29432deb29af0 | [] | no_license | superyideng/ee595_software_design_labs | 32d02735625fb15cd6c17f2e1ebaccf0b82c25a5 | bf77fef7ce3efb577ec06b4ea3e067b8c03146b8 | refs/heads/master | 2021-05-25T19:46:41.087527 | 2020-04-16T02:06:48 | 2020-04-16T02:06:48 | 253,894,830 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,773 | cpp | funcs.cpp | //
// funcs.cpp
//
#include "class.h"
#include <fstream>
#include <algorithm>
// constructor
Matrix::Matrix(const string& file_name) {
// open a stream to the Matrix file
ifstream f_in;
f_in.open(file_name.c_str());
string str;
int cur_row = 0;
bool is_firstnum = true;
while (!f_in.eof()) {
getl... |
d9c846b65697808e90164b9d5feb8fedd6c6a4f1 | bb5b7fae61cb0950d9a80a59837fecbbcde00660 | /Guión 4/Ejercicio 13.cpp | 01aaf8ab9b1e24e1d37d0d12faa7766d3e145337 | [] | no_license | AlejandroFrndz/FP | 94124bbde9a880bd1c80ae27e2ea65f76f99cb9d | 0d2c482c98c9ef7b85caba5085bd2ec926629cf5 | refs/heads/master | 2020-04-20T21:37:26.425002 | 2019-02-04T17:22:59 | 2019-02-04T17:22:59 | 169,102,982 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 747 | cpp | Ejercicio 13.cpp | //Programa que lee 25 enteros y muestr los comprendidos entre el mayor entero negativo y el menor entero postivo
#include<iostream>
using namespace std;
int main()
{
int i = 1, x, numero, mayor_negativo, menor_positivo;
cout << "Introduce 25 numeros enteros " << endl;
cin >> numero;
menor_positiv... |
72d7f1399e0a1bc02249810ec5dffffe5706b1bd | 4238f2b5c0c7d24759f08670b0826b231fcc0b3a | /2_félév/objektum_elvű_programozás/előadás/kollatalas/students/inpfile.cpp | dfde7fe7f034e24d67d04d4ce95a8c9ad071dad6 | [] | no_license | Petrosz007/uni | 41a0c24164cde1dd69e9533d6f67039d004b1a53 | 71d86569f0cf5385324905545ed8c4e985b80dee | refs/heads/master | 2021-06-17T07:01:34.889343 | 2021-02-10T16:23:25 | 2021-02-10T16:23:25 | 160,044,475 | 4 | 1 | null | 2019-10-31T14:52:26 | 2018-12-02T12:22:45 | C++ | UTF-8 | C++ | false | false | 1,352 | cpp | inpfile.cpp | //Author: Gregorics Tibor
//Date: 2017.08.08.
//Title: implementation of the type of sequential input file including results of students
#include "inpfile.h"
#include <iostream>
#include <cstdlib>
#include <sstream>
using namespace std;
//Task: Getting the results of the next student out from the input ... |
f14b24c2e34ce308ee662907b72e28e531cc021f | 42b243fa82b6b13d4303fa6d80f77567108cbaae | /src/GRAPHGEN/image_frequencies.cpp | 6a271fb91f763f531488fb4adc92b276e54bff2d | [
"BSD-3-Clause"
] | permissive | prittt/GRAPHGEN | 5f529b427b394acfa925581139927c6b0ebaf81e | 0d5090cac5726fedfd2214414c6529a6d0c14812 | refs/heads/master | 2023-03-10T16:11:15.641193 | 2021-02-25T10:39:19 | 2021-02-25T10:39:19 | 103,240,655 | 6 | 3 | BSD-3-Clause | 2020-12-23T12:41:41 | 2017-09-12T07:59:17 | C++ | UTF-8 | C++ | false | false | 13,437 | cpp | image_frequencies.cpp | // Copyright (c) 2020, the GRAPHGEN contributors, as
// shown by the AUTHORS file. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include "image_frequencies.h"
#include <iostream>
#include <limits>
#include <filesystem>
#include <algori... |
346ac69f4fdf9c97901fbd9f425aed06e76d3872 | c460005037bd98d0580e7fdce1e4ed56982c7253 | /led_pixels/Actor.h | ce259a11cb8a7f4dfa0a9899713f634829916f71 | [
"Unlicense"
] | permissive | gperks/Valentine-Arduino | 28724693e58b0ad0fc3676c33370979115432598 | b598430b32ac563f2be96af2ff0e5d5fba05260e | refs/heads/master | 2020-05-20T04:32:05.116630 | 2014-02-14T03:56:26 | 2014-02-14T03:56:26 | 16,653,330 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 415 | h | Actor.h | #ifndef _ACTOR_H_
#define _ACTOR_H_
#include "LEDFader.h"
class Actor
{
public:
Actor(LEDFader &fader, double duration);
// Returns true if this animation is complete.
virtual bool loop(unsigned long delta) = 0;
virtual ~Actor() {}
protected:
LEDFader &_fader;
double _transitionDuration; // ... |
a0f1dbb3c1f7b7fd80a16a0280661f2219219b5c | a7e0e596c70235da1736ab96ab49fcf0dd034f25 | /YummyPatches/include/ConfigConstants.h | 308066b384882df9be63f1cbb1756db454d06f77 | [
"NCSA"
] | permissive | FomaMironenko/klee | 025ffcfe12e977991cbed625f5d85063fec2ec73 | fb1b874b6f5d68e799f5922e107258640ed0ebf7 | refs/heads/master | 2021-05-19T07:01:41.344886 | 2020-06-02T20:18:42 | 2020-06-02T20:18:42 | 251,574,428 | 0 | 0 | NOASSERTION | 2020-03-31T10:46:11 | 2020-03-31T10:46:11 | null | UTF-8 | C++ | false | false | 625 | h | ConfigConstants.h | //
// Created by fomius2000 on 06.04.20.
//
#ifndef KLEE_CONFIGCONSTANTS_H
#define KLEE_CONFIGCONSTANTS_H
namespace yummy
{
const bool PRINT_CONSTRAINTS = true; // ConstrainManager::~ConstraintManager
const bool PRINT_VALUES = false; // MemoryObject::~MemoryObject
const bool PRINT_STATE ... |
48496815d4f6ebe0364cc8921651fb18c5ed54f9 | dbedaf0962601cccaf90c8a8e6f68935696b461c | /src/gui_draw.cpp | 4569eb5ea84bc1b075042c3308ef09572117d270 | [
"MIT"
] | permissive | fadan/gui | 9c6ee081c939f14c7f5a8f163bc81a8137b967d8 | 0ece6c52094bc21ceb2fe3c107f83c661b9b7bd8 | refs/heads/master | 2021-01-20T05:27:29.750521 | 2017-10-01T21:17:38 | 2017-10-01T21:17:38 | 101,446,226 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 25,228 | cpp | gui_draw.cpp |
static void add_poly_outline(UIState *ui, vec2 *points, u32 point_count, u32 color, f32 thickness, b32 connect_last_with_first)
{
u32 vertice_index = ui->num_vertices;
u32 element_index = ui->num_elements;
u32 num_points = point_count;
if (!connect_last_with_first)
{
--num_points;... |
50c7e7dc093cc067c1dcee91b6f3a5967944e88f | 45a3eab05ec36df58de23326a9fa863bf28965e9 | /Str2D/seg_container_base.h | f02551281d184c547d25b180d4d3a7b7e2ada988 | [
"MIT"
] | permissive | im95able/Str2D | e99c9acad2bb0527c1f187c86e090693e04571d5 | a2c33f4bf49ac086a7f099eb8d04bc4308560935 | refs/heads/master | 2021-07-11T20:59:17.035066 | 2020-08-23T13:46:03 | 2020-08-23T13:46:03 | 189,492,032 | 24 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 21,617 | h | seg_container_base.h | #pragma once
#include <cstdint>
#include <vector>
#include <utility>
#include "utility.h"
#include "seg_algorithm.h"
namespace str2d
{
namespace seg
{
// Terminology for internal mechanisms of segmented data structures and algorithms
// "segment" - an array of initialized elements
// "data" - an array which c... |
218764a36317b2f2ae4aa7f97379df085ad1e6df | 2fdff5796822895bec8a5724ff18fd192a7e2309 | /P1/convert.cpp | 4b9ef1822327e1aae09ecd0f79f0b68948842985 | [] | no_license | travesto/CS130work | 7a1bcf6805690f9f06858727d233bb6d365db008 | e51a70040e38f5ce26a961e27f84929e3cf16412 | refs/heads/master | 2021-01-24T17:53:59.718889 | 2016-04-25T23:09:15 | 2016-04-25T23:09:15 | 56,562,976 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 596 | cpp | convert.cpp | #include <iostream>
#include <iomanip>
using namespace std;
int main()
{
float pounds = 0;
float kilograms = 0;
float ounces = 0;
cout << "This program converts kilograms to pounds and ounces." <<endl << "Kilograms: ";
cin >> kilograms;
// Convert kilograms to pounds
pounds = kilograms ... |
b9f3954dd86532601f10152795f9e766fa12f0b2 | 20ce917e4c59caa3434bf4362f764f08714fb0c5 | /Client/Engine/BitMap.h | 552aff82136d5707f687232fd6af7a56fe6e275a | [] | no_license | imhy1117/Tetris | 25fc3616da42666378eae059d845909d35645556 | b80c2da82c21958954c8ecd3ed24c31e0686ad81 | refs/heads/master | 2020-04-09T04:03:27.631812 | 2018-12-02T02:56:21 | 2018-12-02T02:56:21 | 160,008,580 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 487 | h | BitMap.h | #pragma once
#include "EngineDefine.h"
#include <string>
using namespace std;
class BitMap
{
private:
HDC m_hMemDC;
HBITMAP m_hOldBitMap;
HBITMAP m_hBitMap;
SIZE m_size;
ANCHOR m_anchor;
public:
void Init(HDC hdc, string filename);
void Release();
inline void SetAnchor(ANCHOR anchor)
{
m_anchor = anchor;
}
... |
ca76288b384ca755feefc588c420425f37a42050 | e02e4edbe0a697b3e3db4a9b3ed34e8206872f23 | /Control/Drone-Drain -untested/MoveController.cpp | 22eae9dcb9257eb82f70f15d01214835aef6d7b6 | [] | no_license | ericssondrc/dronechallange | cdc79aec64d0e624d41ca6f40907517888fafabe | 9e3446051a94b27e1dad53192ae78388040aa565 | refs/heads/master | 2021-03-22T00:31:04.620014 | 2017-09-26T17:42:46 | 2017-09-26T17:42:46 | 104,561,581 | 1 | 5 | null | 2017-09-25T11:47:01 | 2017-09-23T11:08:01 | Arduino | UTF-8 | C++ | false | false | 3,876 | cpp | MoveController.cpp | #include "MoveController.h"
MoveController::MoveController(MovingValueManager *movingValueManager, SerialController* serialController)
{
this->movingValueManager = movingValueManager;
this->serialController = serialController;
Reset();
}
MoveController::~MoveController()
{
delete(movingValueManager);
delete... |
de645086bae376f1a58062c013ce082dfffd578a | 7737efb06c7087ed67e965d65ce08ef4e13bd806 | /Node.h | 08f99652630334c7f1387e3e5bfb8410e5305cc6 | [] | no_license | SpicyRicecaker/GraphCreator | 7bea8aaa8901b48fe40819b1dd1cb422fd356f99 | b9f74c5d41142caaaa05661583f5aa441683dbc9 | refs/heads/master | 2022-10-02T17:48:07.323348 | 2020-06-08T21:58:34 | 2020-06-08T21:58:34 | 264,567,680 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 897 | h | Node.h | #ifndef NODE_H
#define NODE_H
class Node{
public:
//Constructor for a node
Node(Node* newNext, char* newLabel, int newWeight);
//Destructor for a node
~Node();
//Getters and Setters for values
Node* getNext();
... |
4e41123acaf22360abd98a3186610b53989434e0 | 19dcdcd3691b4c0256e87f6ffc950dc4072bdab6 | /agent/Agent.h | 6ae9e8094a41e8d37795d58e0a857ec233d2ac1f | [] | no_license | dkosaty/MAS | 0b2f413204fa4160315e40920a26cf74ed3f09e0 | 72e3efc0e51e7ae41af1bd7f255c627d444fe5a7 | refs/heads/master | 2020-03-28T08:35:35.119665 | 2018-09-08T22:52:06 | 2018-09-08T22:52:06 | 147,657,784 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 177 | h | Agent.h | #ifndef AGENT_H
#define AGENT_H
class Agent
{
public:
Agent();
void setValue(double value);
double getValue();
private:
double value_;
};
#endif // AGENT_H
|
27d4788c563bd378d14ced0547c33fb590080ff2 | 118125c6818273b62c97a35109939a3d676a5126 | /NativeMissionSDK/DotNetInterop/CppInterface.cpp | 335807debab6e2d83f8160a21e82dfb6a537962d | [] | no_license | TechCor8/OP2DotNetMissionSDK | ae607f32f05bb96a7f959912775e6152ac675185 | 1967595ee9f1282fb4d1029457bfd0442c5ee9d1 | refs/heads/master | 2021-06-17T22:28:44.038622 | 2021-02-15T09:38:50 | 2021-02-15T09:38:50 | 173,667,238 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,860 | cpp | CppInterface.cpp | #include "stdafx.h"
#include "CppInterface.h"
#include "DotNetMissionSDK.h"
namespace DotNetInterop
{
// Singleton class for accessing DotNetMissionEntry
public ref class DotNetMissionDLL
{
static Assembly^ m_Assembly;
public:
// Interface for Mission Entry in the C# mission DLL
delegate bool AttachDelega... |
fa1f00ade16b6c333054520c94251b7f269610d6 | 633842301cd36cad562767da691ed5297ccd559f | /Accepted/UVa/uva11461-Square Numbers.cpp | 816b611401f4765301e660c8747e2ee986f6fbba | [] | no_license | turtle11311/Codes | c5b87864f59802241b6784ccd5cd553fe5533748 | 7711679dffb421323ab2cc389662d106d50ab16c | refs/heads/master | 2020-04-06T05:20:33.810466 | 2014-12-24T12:20:13 | 2014-12-24T12:20:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 227 | cpp | uva11461-Square Numbers.cpp | #include <iostream>
#include <cmath>
using namespace std;
int main () {
double a, b;
while (cin >> a >> b, a && b) {
if (a<b) swap(a, b);
a = floor(sqrt(a));
b = ceil(sqrt(b));
cout << a-b+1 << endl;
}
} |
5e6ac5376e66bb84ffb4f6160c0634fa669e2dea | 6ab8bc7c02696b1e386e3be2717d50761cb4390c | /52-problems-Shubeen/prob24.cpp | fe2bc43f4f17a1657ed2905e74e90ce7384f8ae4 | [] | no_license | shahriercse/Online-Judge-Solutions | 4c71d21cadaf12a04e2021f0168b27fba436e257 | 2b35452116547e1f7769fa3f32ca6cc3a5eb2e75 | refs/heads/master | 2023-08-20T20:47:22.104809 | 2021-10-26T09:39:16 | 2021-10-26T09:39:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 364 | cpp | prob24.cpp | #include<iostream>
#include<vector>
using namespace std ;
int main()
{
vector <int> arr;
int t ; cin >> t;
int n ; cin >> n;
while(t--){
for ( int i = 0; i < n; i++ ){
int x; cin >> x;
arr.push_back(x);
}
for( int i = 1; i < arr.size(); i+=2 ){
cout << arr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.