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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bbf782e69e4e4922e3efa03ca96dad4df543c12c | abf13d25f7f3417d3f2ba96cf3010fc9f712a142 | /mainwindow.cpp | 94db38b3755a8bc8e8cdb257de485d31bbecd18a | [] | no_license | yxliang/Image_detection | a7fad1879abb8652774d63c5dbcc69f7a30c0ac2 | 1fbf6fba5d5b1b7165bf8380f90f537b9415db7f | refs/heads/master | 2021-01-12T06:29:11.780764 | 2016-05-18T07:34:42 | 2016-05-18T07:34:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,974 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include "image_detection.h"
#include "iostream"
#include <QFileDialog>
#include <string>
#include <vector>
#include <QMessageBox>
#include <QDebug>
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "QGraphicsTextItem"
#include "detector_... |
7c882dd631fa1cfc64d5ee9b2c344a3f3db37e1b | 3eda0ac60200028413380d8b1a311096836d23bf | /src/c++/libos/spdk/spdk-queue.cc | 796d51a48fc36d12cbd955a5c56aba78cdd03618 | [
"Apache-2.0",
"MIT"
] | permissive | kwzhao/demikernel | 4fae11c48f14f26e119f66709f6a47127cd4ade3 | da425515b619e1384bb5c96255ec70831e7cc83d | refs/heads/master | 2022-09-17T00:23:28.736618 | 2020-05-08T17:51:13 | 2020-05-08T17:51:13 | 265,680,403 | 0 | 0 | null | 2020-05-20T20:35:09 | 2020-05-20T20:35:08 | null | UTF-8 | C++ | false | false | 47,683 | cc | spdk-queue.cc | // -*- mode: c++; c-file-style: "k&r"; c-basic-offset: 4 -*-
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "spdk-queue.h"
#include <dmtr/libos/library.h>
#include <fcntl.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <netinet/tcp.h>
#include <assert.h>
#include <string.h>... |
2aba84a01fa12278b7869ddc246d76492b1d3f9d | df656efce3d1e2ecb739625a193b5b60d5efbaee | /PAT1006/PAT1006/main.cpp | 20cf1d938dda1f306f8c706c5c1809fe12cd2178 | [] | no_license | crabyh/PAT | 7a7cd4ada976197ce8069beb06485982624ccb5e | c9d6db4d9373f2ea840fc7436226509638645e4f | refs/heads/master | 2020-04-04T14:48:00.416075 | 2015-03-20T08:13:36 | 2015-03-20T08:13:36 | 31,304,360 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,041 | cpp | main.cpp | //
// main.cpp
// PAT1006
//
// Created by Myh on 9/28/14.
// Copyright (c) 2014 myh. All rights reserved.
//
#include <iostream>
#include <deque>
using namespace std;
class C{
public:
string s;
int in, out;
};
int main(int argc, const char * argv[])
{
deque<C> SQ;
deque<int> sign_in, sign_out;
... |
b29603a52c48835e73257a6312e97d0510f7de57 | b21c58f30e08ede4df7fade4a58e05ee48c10a11 | /effectsscene.h | 923b4a93a9e59dd091fca98c01a5c36afc7e33cc | [] | no_license | Franchovy/Effect-Project | 3d14f3a2325c605589c4ec2af3c44d4c55ffca6d | d98fad2fd997bc48fd85147983a9025a2d5896f4 | refs/heads/master | 2022-11-13T01:16:49.136911 | 2020-07-06T13:36:03 | 2020-07-06T13:36:03 | 232,713,362 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,161 | h | effectsscene.h | #ifndef EFFECTUI_H
#define EFFECTUI_H
#include <QObject>
#include <QGraphicsScene>
QT_BEGIN_NAMESPACE
class Effect;
class EffectMap;
class GUI_effect;
class GUI_line;
class GUI_item;
class GUI_port;
class Port;
class QGridLayout;
class QComboBox;
class QGraphicsScene;
class QPushButton;
class QState;
class QStateMach... |
9f8c018993d426a95aad9fa5045a024a4e08744e | 5885fd1418db54cc4b699c809cd44e625f7e23fc | /kattis/pairingsocks.cpp | 065f2d4f8f298de3aed86905733e4b92bff6ae79 | [] | no_license | ehnryx/acm | c5f294a2e287a6d7003c61ee134696b2a11e9f3b | c706120236a3e55ba2aea10fb5c3daa5c1055118 | refs/heads/master | 2023-08-31T13:19:49.707328 | 2023-08-29T01:49:32 | 2023-08-29T01:49:32 | 131,941,068 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,176 | cpp | pairingsocks.cpp | #include <bits/stdc++.h>
using namespace std;
#define _USE_MATH_DEFINES
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
template <typename T>
using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
typedef long long ll;... |
0bd783755a193f270e0ff4ac9c8cba59cecf04f8 | a02cf531acab22e3bc78f435121f8043eeee102d | /algorithm/twoSum/twoSum.cpp | a0bf2c930d2f73b243011e33132461f66b459935 | [] | no_license | zhwufd/emmettLeetCode | dfc6ae7febc81ca064e2643281a011f040a3363a | c6f5a252a5aef0f2dacd9346039bb5e4ddb3486d | refs/heads/master | 2022-11-16T06:20:15.312324 | 2015-12-10T07:07:28 | 2015-12-10T07:07:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 982 | cpp | twoSum.cpp | #include <unordered_map>
#include <vector>
using namespace std;
class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
unordered_map<int,int> um;
for(int i = 0; i < nums.size(); i++) {
um.insert(pair<int,int>(nums[i], i+1) );
}
... |
56e1c715ecbcd02a59e0e89e31d19bf984b47492 | 3ea34c23f90326359c3c64281680a7ee237ff0f2 | /Data/1612/E | 46e2e9228602787eab4aea399c3a054aee2cb320 | [] | no_license | lcnbr/EM | c6b90c02ba08422809e94882917c87ae81b501a2 | aec19cb6e07e6659786e92db0ccbe4f3d0b6c317 | refs/heads/master | 2023-04-28T20:25:40.955518 | 2020-02-16T23:14:07 | 2020-02-16T23:14:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 80,877 | E | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
... | |
952491873b9a1a33f34190dd58012d8bd0349744 | 102cf3ebd5220740b38770f66ce3268e4f702d6b | /Bank.h | 33cadb841ed35db902221493464d2ab4b2e438c9 | [] | no_license | uresti/project | facfd10cf126449c80f0538da14e509011203065 | a599cfba53b3a05afb9ba6c1a8c76ddd2a52a006 | refs/heads/master | 2021-01-23T13:36:30.461149 | 2013-10-14T20:12:07 | 2013-10-14T20:12:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,904 | h | Bank.h | #include "Customer.h"
class Bank
{
public:
int vplace; //Vector placement
int a_num; //Account number
int low;
Customer* all;
Bank()
: all(new Customer[100]),vplace(1),a_num(600001),low(100){}
};
istream& operator>>(istream& is, Bank& All) //Cin bank.
{
Customer* called = new Custom... |
bceb8d2887841999625da8e279e29460730dee78 | 2c4b04f4bb73bb8e6fd649a1ac82181cd1108b78 | /Codigo-OpenGL/fachada-codigo/External Libraries/glm/glm/detail/type_vec3.hpp | 76ae5713745e967024e7ca8f751dabcf4e544b6f | [] | no_license | cgiovvnni/fachada-toy-story | 689454cf6e55db6b2b3259eb36c006a47b078bad | 2b82cf23a3226b1808d2efaf3c7dd0bdd9dcd3c4 | refs/heads/main | 2023-07-07T03:46:36.606228 | 2021-08-13T03:25:32 | 2021-08-13T03:25:32 | 377,280,764 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 130 | hpp | type_vec3.hpp | version https://git-lfs.github.com/spec/v1
oid sha256:d77e115b9020391bfb48620a8160c939cfdeed6ed5f76f46dc7b4e0fbcfb4537
size 17983
|
975ee9290285ef76d21e0a8f1f74fb1210f0fc12 | eb9de48d99732deac0b31a5b2c38853366216316 | /c++/BombEnemy/main.cpp | 225d1b2afc54b5d3ee79e9659f148a0a1306036d | [] | no_license | allenwhc/Leetcode | 0a46da2301f426cbb713817e955ecd7ec79670e1 | e9b27b7dd69df1a2e53992badc400e29fb475e54 | refs/heads/master | 2020-04-05T14:36:04.575863 | 2017-04-19T09:28:01 | 2017-04-19T09:28:01 | 41,320,519 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,059 | cpp | main.cpp | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int maxKilledEnemies(vector<vector<char>> &grid){
if(grid.empty()) return 0;
int m = grid.size(), n = grid[0].size();
int res = 0, rowHits = 0;
vector<int> colHits(n, 0);
for (int i=0; i<m; i++){
for(int j=0; j<n; j++){
if (!i || g... |
a7309976ec43e4beca0e7a782c55670be9a8066a | e55f92f42d5fb994a6e6fc306478e73839d81c46 | /Ssdsdk/src/CPUDetails.h | 01ad8dd33e1abd947b9f7f09afb051ca861334fd | [] | no_license | zphseu/cuiyan | 115f854e54ea35f18f44f26c2c865c4f8f98169e | ec121ddb16d9fe60b3edcc6c891f11318a12d32d | refs/heads/master | 2021-01-18T15:08:20.290861 | 2014-01-23T07:47:09 | 2014-01-23T07:47:09 | 53,846,163 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,044 | h | CPUDetails.h | // CPUDetails.h: interface for the CCPUDetails class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_CPUDETAILS_H__EDA256D3_C475_4780_AFD3_77BB33DA773A__INCLUDED_)
#define AFX_CPUDETAILS_H__EDA256D3_C475_4780_AFD3_77BB33DA773A__INCLUDED_
#if _MSC_VER > 1000
#pragma ... |
f1d93a039887f2aa9cdbaf425afc76bbb8a7d339 | ee5824d3c041ce25f4f05dd9d95a30e0bbbabe69 | /1032.cpp | 1202732acc616f65102a886dbaddd60f4e09531f | [] | no_license | Lisltria/PAT-Advanced-Level-Practice- | bcc3703116fd9387e4c406ef4b99b75ed94b7a06 | 529657db963bbd47cd7ad338a5f61b67e3bda9a2 | refs/heads/master | 2020-03-31T19:51:00.168002 | 2018-12-10T13:26:29 | 2018-12-10T13:26:29 | 152,514,436 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 799 | cpp | 1032.cpp | #include <iostream>
#include <cstdio>
using namespace std;
//本题可以用map和stack来做,复习时要练习
int start_position1,start_position2,N;
struct node{
char data;
int next;
}memory[100001];
bool read[100001];
int main(int argc, char const *argv[])
{
/* code */
cin>>start_position1>>start_position2>>N;
for(int i=... |
5a86d9fe06feb10d4eb221ba42b7f3845787e9cf | 5fe10205b1db221dd3550c86f1289baee14037e3 | /UVA/12542 - Prime Substring.cpp | 45627f98ce416932534c3e581b6171708cff7a34 | [] | no_license | alamgir5/Online-Judge | ce54da37a0a22d34a9b23a61e451829dc0a28201 | b840199d79339a3d44d04b72ef029ecefa223ac1 | refs/heads/main | 2023-03-12T08:20:58.212830 | 2021-03-02T13:31:23 | 2021-03-02T13:31:23 | 341,468,341 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,226 | cpp | 12542 - Prime Substring.cpp | #include<bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define ordered_set tree<int, null_type,less<int>, rb_tree_tag,tree_order_statistics_node_update>
#define faster ios_base::sync_with_stdio(0);cin.tie(0);c... |
8f24d4630bc98be8a45b18e4778f9b2090690e9b | 2e359b413caee4746e931e01807c279eeea18dca | /2226. Maximum Candies Allocated to K Children.cpp | 90772cb659b10ae81192001edb6d2e9bdc014e7b | [] | no_license | fsq/leetcode | 3a8826a11df21f8675ad1df3632d74bbbd758b71 | 70ea4138caaa48cc99bb6e6436afa8bcce370db3 | refs/heads/master | 2023-09-01T20:30:51.433499 | 2023-08-31T03:12:30 | 2023-08-31T03:12:30 | 117,914,925 | 7 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 440 | cpp | 2226. Maximum Candies Allocated to K Children.cpp | class Solution {
public:
int maximumCandies(vector<int>& a, long long k) {
long long sum = accumulate(a.begin(), a.end(), 0ll);
if (sum < k) return 0;
long long l=1, r=sum/k;
while (l < r) {
long long m = (l+r+1) >> 1, x = 0;
for (auto y : a) x += y/m;
... |
63c42c236e5b9d4aef593260346ee3a33ce58674 | 083973f506ea3a2d575e102acc2babd6dfa6bc93 | /niuke/栈/判断栈的弹出序列.cpp | b9099e2f21ece37f0fd390e2562196fb64d922c7 | [] | no_license | gsscsd/Code_Training | dd5ab4ef2a789ca84b372327b9a5a780d080f089 | 60efc5248c1bd30162b4b44b21cced66f4723059 | refs/heads/master | 2020-03-29T11:07:46.049496 | 2019-07-05T04:47:53 | 2019-07-05T04:47:53 | 149,837,404 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,433 | cpp | 判断栈的弹出序列.cpp | /**
题目描述
输入两个整数序列,第一个序列表示栈的压入顺序,请判断第二个序列是否可能为该栈的弹出顺序。
假设压入栈的所有数字均不相等。例如序列1,2,3,4,5是某栈的压入顺序,序列4,5,3,2,1是该压栈序列对应的一个弹出序列,
但4,3,5,1,2就不可能是该压栈序列的弹出序列。(注意:这两个序列的长度是相等的)
*
*/
#include <iostream>
#include <stack>
#include <vector>
using namespace std;
/**
*
解题思路:
借用一个辅助的栈,遍历压栈顺序,先讲第一个放入栈中,这里是1,
然后判断栈顶元素是不是出栈顺序的第一个元素,这... |
804b079328c6e87c2b9cdfeb9b8c13a777e024de | 04b1422bb3dd44a4c7fde871371c013997651300 | /dll/shared/test/map_test.cc | 689b12d3347db8635b988467c42dd596f4f34a9b | [] | no_license | naokiy/aviutl_scripts | cc35282ed5491248648675cd7bede2b2b6531068 | 9c535ff48edb4ff99509b8df2c39b76f581a9c7a | refs/heads/master | 2022-09-22T15:17:10.400520 | 2020-05-24T13:00:17 | 2020-05-24T13:00:17 | 264,544,000 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,937 | cc | map_test.cc | #include "aviutl/map.h"
#include "gtest/gtest.h"
#include "aviutl/point.h"
namespace {
using namespace aviutl;
TEST(MapTest, FromArray) {
const double values[4] = {10.0, 20.0, 30.0, 40.0};
const int width = 2;
const int height = 2;
Map<double> map_a = Map<double>(values, width... |
3c3f502013dde11752b5161c1e344d8d5ad0f62a | 0879f34b95a1bb915c72a1961da0eeb9ef8c7c8a | /PluginEditor.cpp | 2de31950557c77a9642b71488216e0faa86babef | [] | no_license | AustinSweet/VST-Saturator | c94cad143fa046457cdf53138d1e212493ba5759 | ecc50b1803264f2acf66b1960bb4c52e6d514f06 | refs/heads/master | 2022-12-01T09:19:36.753873 | 2020-08-07T01:09:31 | 2020-08-07T01:09:31 | 269,259,595 | 1 | 0 | null | 2020-06-04T04:23:43 | 2020-06-04T04:23:42 | null | UTF-8 | C++ | false | false | 1,483 | cpp | PluginEditor.cpp | #include "PluginProcessor.h"
#include "PluginEditor.h"
SaturatorAudioProcessorEditor::SaturatorAudioProcessorEditor(SaturatorAudioProcessor& p)
: AudioProcessorEditor(&p), processor(p) {
//Setting our UI Bounds, as well as making sure it always starts up on a blank selection
setSize(350, 350);
addAndM... |
93d1c250517547ebbd155b35defe93949232fb71 | d2a52d3705fe863e06af2e4271ddb5e22f52e7f6 | /include/nfa.hpp | f29f56ba18bc272d4665a5a28ae4f97da84f2ab0 | [] | no_license | petrarce/compiler | dc8060ef9d05c519cebef5229c4e3b25d3ed1e33 | 45042c5e403c789d70bdda380c68c7be69bdaf12 | refs/heads/master | 2020-04-10T18:57:18.811804 | 2019-02-21T22:00:35 | 2019-02-21T22:00:35 | 161,218,376 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,998 | hpp | nfa.hpp | #pragma once
#include <state.hpp>
#include <types.hpp>
#include <cstdint>
#include <cstdlib>
#include <iostream>
#include <vector>
#define EPS '@'
using namespace std;
typedef struct {
string analysed_str;
SATOKENS analyse;
} analyse_map_s;
class nfa
{
private:
vector<char> alphabet;
vector<state_c> states; ... |
c22d7f0c54d9eb41bb8a52149b83ca79e01f2295 | 108ecc2799fc4117f99964f36599f845d07b7c72 | /anagramstrings.cpp | 9a11555f885262c14e586d7e3a3b58f6938df5e2 | [
"MIT"
] | permissive | Anvesh0110/Hacktoberfest-1 | fa9d244fef531097e6a33299af76ae2730c57645 | 4c616bac6f5ed576dfd73c0f9e905ea4c27ea2fc | refs/heads/master | 2022-12-29T20:24:29.691865 | 2020-10-20T15:30:25 | 2020-10-20T15:30:25 | 305,752,207 | 1 | 0 | MIT | 2020-10-20T15:30:26 | 2020-10-20T15:27:44 | null | UTF-8 | C++ | false | false | 609 | cpp | anagramstrings.cpp | // anagram strin is string which is of same size and uses all the alpahabest of the string 1 to make a another string out
// for this ive used memoizing tehcnique to solve complexity is oreder of n( O(n) )
#include<bits/stdc++.h>
using namespace std;
int main(){
char a[20]="helloworld";
char b[20]="h... |
d617be1af34c098b55aad9c4339c122b6c050720 | db72a75570878894258ff4d9194a2a231ef9a7c7 | /SRC/CALCTL.H | 2b1d9740071659edc392ea7341bed04296a7fd74 | [
"MIT"
] | permissive | hannohinsch/Time-Planner-Deluxe | b559db4276d41191dc239511b08080dacf21db6b | 44aca68a9a54502059104b0cc228472452ac5963 | refs/heads/master | 2020-06-17T20:13:13.262437 | 2019-07-09T18:48:52 | 2019-07-09T18:48:52 | 196,039,752 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,804 | h | CALCTL.H | #ifndef __calctl__
#define __calctl__
_CLASSDEF( TCalCtl )
#ifndef __mousgrid__
#include "mousgrid.h"
#endif
#ifndef __apptime__
#include "apptime.h"
#endif
#ifndef __msg__
#include "msg.h"
#endif
class _CLASSTYPE TCalCtl: public TMousGrid {
public:
TCalCtl( PTWindowsObject AParent, WORD r... |
b2dcacb6c4e8f5ecf7f251eb033381a2a534e70f | 77c7106306f2766e6e0e9391b418124ccb28d505 | /projectile.cpp | 6cdb047d540d774085cf196ff01345112186a7f1 | [] | no_license | Matt146/OpenBuilder | 7c47fd933a739ffad0b1aedc8c9069c2c593d04b | 3e28017241cbde7b335f49edc0c322d490cd16c9 | refs/heads/master | 2022-11-18T10:37:57.425229 | 2020-07-15T03:14:58 | 2020-07-15T03:14:58 | 279,454,011 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,235 | cpp | projectile.cpp | #include "projectile.h"
Projectile::Projectile(SDL_Rect projectile_world_pos, int max_range, int max_frames, SDL_Texture* texture, SDL_Renderer* renderer, double velocity_x, double velocity_y) {
this->projectile_world_pos = projectile_world_pos;
this->initial_projectile_world_pos = projectile_world_pos;
t... |
92aead617dad64b39686e0f6d860476eea8f3fb4 | 5c3a1ea8d72b649ae4e059c57574767912223b4b | /websocket-cpp/source/src/commandWrapper/commands/createServer/createServer.cpp | 0dc4e0445b78b82f0e0eb140384c8ab8ccd7bae1 | [
"BSD-3-Clause",
"Zlib",
"MIT"
] | permissive | kleinschrader/GlassLine | 5810eabbd1ce994301652b5dabf87b7b08b8c278 | 2b185995b911fe1b528341a593fc61081951a6ce | refs/heads/master | 2023-02-09T07:23:04.346894 | 2020-07-11T17:35:21 | 2020-07-11T17:35:21 | 255,679,394 | 0 | 0 | NOASSERTION | 2021-01-06T00:28:33 | 2020-04-14T17:34:49 | C++ | UTF-8 | C++ | false | false | 1,246 | cpp | createServer.cpp | #include "createServer.h"
void createServer::run(const nlohmann::json &args)
{
//create a buffer for the required parameters
std::string servername;
std::string tenant;
std::string parent;
//place all parameters in their respective buffer
getParameter(args,"servername",servername);
getPara... |
fbbdf461278ec89d7e751ba0a6229f4467bc98d5 | c3c848ae6c90313fed11be129187234e487c5f96 | /VC6PLATSDK/samples/netds/RRas/rqs/common/rcusync.cpp | 4fc7384c664ebbae6a2525c6b26316c564f9af11 | [] | no_license | timxx/VC6-Platform-SDK | 247e117cfe77109cd1b1effcd68e8a428ebe40f0 | 9fd59ed5e8e25a1a72652b44cbefb433c62b1c0f | refs/heads/master | 2023-07-04T06:48:32.683084 | 2021-08-10T12:52:47 | 2021-08-10T12:52:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,329 | cpp | rcusync.cpp | //+--------------------------------------------------------------------------
//
// File: RcuSync.cpp
//
// Synopsis: Sychronization objects.
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//+--------------------------------------------------------------------------... |
e9229e9823dbfc5c765be461fc6e01ee8464cd18 | d6011b7406d8cbf1367f189fbbe17c405bc2d5e9 | /cond/cond/IControllable.h | 1fa6f6f919e5a0b1898eee6a2b192d4397f87f68 | [] | no_license | lordartemio02/origin | fc6ad7af0ea9c8e773416e8128d8b91d5f0631d0 | 76b8e6503ec300325e0f09952296db7b726a641c | refs/heads/master | 2020-09-25T05:06:41.419126 | 2019-12-04T18:05:40 | 2019-12-04T18:05:40 | 225,923,574 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 103 | h | IControllable.h | #pragma once
class IControllable
{
public:
virtual void control(int temp,std::string regum) = 0;
};
|
5fe8d0bdb4f66591e1b2a1f3b2622fd2bbda3cd3 | 43459ed5a731617437d74acf7d23192069b2db33 | /ros_lib/robocars_msgs/robocars_actuator_output.h | b2631649d3a7d0b9edc143e53c98440a593b2491 | [] | no_license | btrinite/robocars_rosserial_arduino_headers | 176c6e5f6793cb09396dcfa3eb81cf142e04d453 | 8d9a80f439d8e9b0b0abd8cb5a24f3b944ed7c7f | refs/heads/master | 2021-05-20T16:33:30.512835 | 2020-04-02T14:11:36 | 2020-04-02T14:11:36 | 252,369,454 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,562 | h | robocars_actuator_output.h | #ifndef _ROS_robocars_msgs_robocars_actuator_output_h
#define _ROS_robocars_msgs_robocars_actuator_output_h
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include "ros/msg.h"
#include "std_msgs/Header.h"
namespace robocars_msgs
{
class robocars_actuator_output : public ros::Msg
{
public:
... |
36d0a1a907799a6598a1a950d921db0ba5d7caaa | f1aaed1e27416025659317d1f679f7b3b14d654e | /MenuMate/Components BCB6/Eftpos/PINPADCONTROL2Lib_TLB.h | cdda1ff7d156aae87d6b2a638098516263d95408 | [] | no_license | radtek/Pos | cee37166f89a7fcac61de9febb3760d12b823ce5 | f117845e83b41d65f18a4635a98659144d66f435 | refs/heads/master | 2020-11-25T19:49:37.755286 | 2016-09-16T14:55:17 | 2016-09-16T14:55:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 169,744 | h | PINPADCONTROL2Lib_TLB.h | // ************************************************************************ //
// WARNING
// -------
// The types declared in this file were generated from data read from a
// T... |
4e774dc4c3f72590cafa791802abb645d31d3298 | b85e283e6872233e7b4b177e9e89103868cef5c5 | /src/Common/TEpsScaling.h | 33ee56e14ea9a46301392995732329f14bef70e1 | [] | no_license | bernhard-schmitzer/MultiScaleOT | fcce1508ab19f0f01043f4017f12d744195becd0 | 76444f9b2076f121de6be304129a14b93e315d3d | refs/heads/master | 2021-11-23T09:18:10.602950 | 2021-10-24T18:23:30 | 2021-10-24T18:23:30 | 247,050,048 | 11 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,172 | h | TEpsScaling.h | #ifndef TEPSSCALING_H_
#define TEPSSCALING_H_
#include<cstdlib>
#include<vector>
#include<cmath>
#include<cstring>
#include<Common/ErrorCodes.h>
#include<Common/Verbose.h>
class TEpsScalingHandler {
public:
// eps scaling over multiple layers
int nLayers; // number of layers
double **epsLists; // one eps list pe... |
dfc6d99dc3d5ace4bac05c28529d31c140ee7d4e | 6ba5ac30f9d003d2e0fafbedc135c03084c97c02 | /src/gen/RoadGen.cpp | dda8f01e2ba8ee89fa850c801e019c9d60764ffc | [
"MIT"
] | permissive | steschu77/7rgrwg | dac92d609d91e09c3ac3a9a2dfc404cb3065ac67 | 8fcadb389a99e9aa909687c9dfc1adf74bf4fb79 | refs/heads/master | 2021-01-12T16:01:04.280885 | 2019-02-03T09:41:56 | 2019-02-03T09:41:56 | 71,917,202 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,873 | cpp | RoadGen.cpp | #include "main.h"
#include <list>
#include "RoadGen.h"
#include "gfx/gfx.h"
#include "filter/Filters.h"
#include "world/BlockIds.h"
#include "graph/Graph.h"
#include "vector/vector2.h"
static int cCities = 4;
namespace noise {
extern double gRandomVectors[256 * 4];
}
// ==========================================... |
b3d921217d15a1e998f50dd0c2ebdf9049939dc9 | 0203e44ca7ea97ede931b557c08ae4751284c9f1 | /1088.cpp | 55342c680301738f14766994619e76dc85da139c | [] | no_license | szr712/PAT-Advanced-Level-Practice | 1df5265294b7664357a2ec8a56caaf6cd2b95d90 | 8dd3044d67a2e4f5c102a754f133ef7a9dc3743c | refs/heads/master | 2021-08-18T04:04:33.737385 | 2020-09-03T08:10:37 | 2020-09-03T08:10:37 | 218,432,220 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,113 | cpp | 1088.cpp | #include<iostream>
#include<algorithm>
#include<string.h>
#include<string>
#include<vector>
#include<map>
#include<set>
#include<cmath>
#include<stack>
#include<queue>
using namespace std;
typedef long long ll;
struct num
{
ll numerator, denominators;
ll integer;
};
num num1, num2;
ll gcd(ll a, ll b) {
if (!b) re... |
8953ac73175b1a62c91363dc10a22226aa6ca6b0 | 84a80d86aa7e4b62b5970a881a77d69991ff9dfc | /cartographer/cartographer/mapping_3d/ceres_pose.h | 297612873d339b6395ca4bc4f564639d6d48c9b8 | [
"Apache-2.0"
] | permissive | caoyifeng001/homework | 266c3286386f7d981a98ca6e87ba5e5d125d7e27 | 9a61de1408da6dd7802da89e96918e1fac1f4f00 | refs/heads/master | 2020-04-14T10:57:33.012184 | 2019-01-07T22:22:49 | 2019-01-07T22:22:49 | 163,800,651 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,557 | h | ceres_pose.h | /*
* Copyright 2016 The Cartographer Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
fffcb43e747446de7220823ef72c109192c99491 | 13631685089fb2624749a7b362eaee6c0a707822 | /5.cpp | 3e4b8061bdb8df3595d33ba23423b8e7da51969c | [] | no_license | SHRAVANNARAYAN/Hacktober | 6d178873e5c3a5e75da015df5d272f7937542767 | e3fbdcf2f2cc0b76ca224527d6adbf039e6c2605 | refs/heads/master | 2022-12-17T15:40:18.752206 | 2020-10-01T02:24:47 | 2020-10-01T02:24:47 | 300,114,164 | 0 | 0 | null | 2020-10-01T02:24:48 | 2020-10-01T02:14:59 | C++ | UTF-8 | C++ | false | false | 1,803 | cpp | 5.cpp | #include <iostream>
using namespace std;
struct node {
int data;
node* next;
};
node* front;
node* rear;
void Push() {
int x;
cout << "How many nodes do you want to enter?\n";
cin >> x;
node* temp;
cout << "Enter the elements:\n";
for (int i = 0; i < x; i++) {
... |
7a68c87c9b83c568bc1d747c8d805ad520933e84 | 927c7b015db178341e1d621259d30103b1ae82de | /srcs/response/Response.cpp | a34ed8092dd3517081d77b6175428a442c73c0df | [] | no_license | cozytk/webserv | f5a42c79aa145735cd7638ebfa7f438c96aff5ca | 6908178a6fc7fe98bbadebaf4c1532a594175bc1 | refs/heads/master | 2023-07-05T12:04:56.564225 | 2021-08-15T08:04:45 | 2021-08-15T08:04:45 | 386,563,366 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,350 | cpp | Response.cpp | #include "../../incs/Response.hpp"
/* ************************************************************************** */
/* ---------------------------- STATIC VARIABLE ----------------------------- */
/* ************************************************************************** */
std::map<int, std::string> make_status (... |
a505ba58406ab5409fee810b21021db2f9ba36ec | b80f1870b40206f30bbac9b25481665556496c40 | /cards/Items.hpp | e4c72597913fc517ebf4d36d45ab3f47af40c48d | [] | no_license | georgestamatelis/OOPProjcet | 5ddd10101176e455a50eeba143241bacab030f4e | 31d7d51c14a7e36ea9d304aa999414b0492cf0b1 | refs/heads/master | 2022-04-09T03:18:01.268673 | 2020-02-26T18:56:32 | 2020-02-26T18:56:32 | 229,264,170 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 568 | hpp | Items.hpp | #pragma once
#include "item.hpp"
class Katana : public Item{
public:
Katana(std::string name) : Item(name, 0, 2, 0, 1, 1, 2, 3){}
};
class Spear : public Item{
public:
Spear(std::string name) : Item(name, 0, 0, 2, 1, 1, 2, 3){}
};
class Bow : public Item{
public:
Bow(std::string name) : Item(name, ... |
2ac1f97f4e0aa847b8a0a191aeaffe25a04c745c | be0033991239b6efd45188d028df88a31ae05036 | /projmain.cpp | ba73b128d0148a488a63d6647e01d0c9607168a6 | [] | no_license | chajiuqqq/MyCpp | e7a18fc362260c0c7c12d64960fb3fadfd867979 | 030b559174c58b116056134a4e28e1ed025349b9 | refs/heads/master | 2020-08-17T23:22:54.068671 | 2019-10-17T07:04:35 | 2019-10-17T07:04:35 | 215,723,286 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,596 | cpp | projmain.cpp | #include <iostream>
#include <string.h>
using namespace std;
//123
//456
class Pack{
private:
char *dist;
char* readFile(char* path);
int write2File(char* content);
void addSplit(char* content,char* split,int account);
long getFileLength(FILE* fp);
public:
Pack(char* distPath){
dist=new char[100];
... |
84aeb276fef436f6c3a2259f1a0c9d14e8745395 | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /DP/3113.cpp | bbab04648e7019548423cc63b384a466d8b6fd6b | [] | no_license | thegamer1907/Code_Analysis | 0a2bb97a9fb5faf01d983c223d9715eb419b7519 | 48079e399321b585efc8a2c6a84c25e2e7a22a61 | refs/heads/master | 2020-05-27T01:20:55.921937 | 2019-11-20T11:15:11 | 2019-11-20T11:15:11 | 188,403,594 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,974 | cpp | 3113.cpp | #include <iostream>
#include <vector>
#define show(x) cerr << #x << " = " << x << endl;
using namespace std;
using ll = long long;
template <typename T>
ostream& operator<<(ostream& os, const vector<T>& v)
{
os << "[";
for (const auto& e : v) {
os << e << ",";
}
... |
ab18a80fedbeba47370382ec1e37978ebf750a67 | e524a24ed3021ec8e2cc97e3a38ff21cd9a32b2e | /old/firmware/libs/controllib/periodic_task.cpp | 2849df56758d6380e1678eabb00aee3155db64c5 | [] | no_license | psr2016/psr | 161f9208bbaba0e8ac8c8b3a6bd3afca1303e511 | 386b5461619a013313ca8b11ed6d20948ca1885c | refs/heads/master | 2020-04-07T01:43:54.044099 | 2018-06-11T14:26:56 | 2018-06-11T14:26:56 | 57,581,925 | 2 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,340 | cpp | periodic_task.cpp | /*
* periodic_task.cpp
*/
#include <stdio.h>
#include "periodic_task.h"
static PeriodicTask * task_list = NULL, * task_list_end = NULL;
PeriodicTask::PeriodicTask(const char * name, int period, float time_unit, int jitter, bool insert_as_last)
: m_name(name), m_period(period), m_jitter(jitter), m_time_unit(ti... |
14d9750f3724d610266cf882dac4c5e6e517a4a4 | cbf4b64891eaab84c8190afc114361e20e57e5f2 | /Rozposzony algorytm ewolucyjny/AlgorithmControler/AlgorithmNetInterface.hpp | e577967dcd3a2c73c47d6f550dd41a6bdd20b068 | [] | no_license | BGCX261/zprproject-svn-to-git | 873b80de30b27e25b60ad0aee2a0f677e7125676 | 51880b19c86ee5973a03f135cde669377070f4e0 | refs/heads/master | 2016-09-11T03:36:47.822207 | 2015-08-25T15:51:46 | 2015-08-25T15:51:46 | 41,595,514 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 948 | hpp | AlgorithmNetInterface.hpp | //
//
//
// @ Project : Rozproszony algorytm ewolucyjny
// @ File Name : AlgorithmNetInterface.hpp
// @ Author : Pawe� Marchewka, Bogdan Jezierski
//
//
#if !defined(_ALGORITHMNETINTERFACE_H)
#define _ALGORITHMNETINTERFACE_H
#include<iostream>
#include"Types.hpp"
#include<list>
#include"boost/shar... |
ed37fa40a33f36ff7ac01f924d8ba6eb8552cd7b | 0f755ae5a408f053cd6a9a8c77c1ca08a2b71ab8 | /BavUpdate/updater/updater.cpp | a7257d61a4963c00512011523be48cf1f0d804bb | [] | no_license | xuchaoigo/FileUpdater | 21c59cd6976202aa0eda0746061d069d1a84f98b | 136810a9977f39301225809851aa800e3aec0480 | refs/heads/master | 2021-05-04T06:33:04.273164 | 2018-02-26T04:01:17 | 2018-02-26T04:01:17 | 41,546,806 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,896 | cpp | updater.cpp |
#include "updater.h"
Updater::Updater()
{
}
Updater::~Updater()
{
}
INT Updater::parseDiffStr(std::string diff_str)
{
cJSON *json ,*json_string, *json_array;
std::string LatestVersion,DownloadURL;
json = cJSON_Parse(diff_str.c_str());
if (!json)
{
ERR("JSON Format err at: [%s]\n",cJSO... |
32cf683ac38855fd9ec410bbb93c4798a8dcb0fd | 480e33f95eec2e471c563d4c0661784c92396368 | /RecoBTag/SoftLepton/plugins/SoftPFElectronTagInfoProducer.h | f837f28057683191935aacd093a34e622607d698 | [
"Apache-2.0"
] | permissive | cms-nanoAOD/cmssw | 4d836e5b76ae5075c232de5e062d286e2026e8bd | 4eccb8a758b605875003124dd55ea58552b86af1 | refs/heads/master-cmsswmaster | 2021-01-23T21:19:52.295420 | 2020-08-27T08:01:20 | 2020-08-27T08:01:20 | 102,867,729 | 7 | 14 | Apache-2.0 | 2022-05-23T07:58:09 | 2017-09-08T14:03:57 | C++ | UTF-8 | C++ | false | false | 2,066 | h | SoftPFElectronTagInfoProducer.h | #ifndef RecoBTag_SoftLepton_SoftPFElectronTagInfoProducer_h
#define RecoBTag_SoftLepton_SoftPFElectronTagInfoProducer_h
#include <vector>
#include "FWCore/Framework/interface/stream/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Paramete... |
7454bd71e5d422f2016c7bcbd1272b9723473011 | c7307dc5fa854ceed357671046290fd76865aa48 | /Sparky-core/game/Entities/Wall.h | 359e7a5ed89ae6f48a7fb632d81b85d9edaf7122 | [] | no_license | pboyle225/2DGameEngine | 0c0f83de143b497db9bce5b43e2c731ee8a128cd | 1fbada860e5babe85d12bf0c5ff128186badda29 | refs/heads/master | 2022-04-20T08:28:31.304219 | 2020-02-21T17:52:13 | 2020-02-21T17:52:13 | 81,327,648 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 155 | h | Wall.h | #pragma once
#include "Entity.h"
class Wall : public Entity
{
public:
Wall()
{
id = 5;
globalID = Entity::globalIDCounter++;
name = "Wall";
}
}; |
431e6ce3e4d653a3cdff7bac8d5cfc64d31f3533 | c23b4c6253ca5a0d42822dd0d28ffa752c11ebf5 | /exercises/33f53605-b00f-4209-b723-db7ebb7dd7d9/skeletons/fcae69c5-31fc-4ce0-a1b8-8dc0776f3ae5/skeleton.cpp | b193e3a0fda11bceeecd47c7d3aecc81a21fa9b3 | [] | no_license | josepaiva94/e57d8867-6234-41a6-b239-2cd978ad1e70 | 803e2eb1e2db23c64409bc72ff00c4463875a82f | aa270941dd8cf7b2e1ec8ac89445b1ab3a47f89d | refs/heads/master | 2023-01-07T10:49:56.871378 | 2020-11-16T11:28:14 | 2020-11-16T11:28:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 56 | cpp | skeleton.cpp | string washHands(int N, int nM){
# your code here
}
|
904b02be5b3699b4f29ed7998523ed1361c283b3 | 39a222a5dbd2490f268954cfcec5b016d212d56a | /src/audioffmpegdecoder.cpp | c22a4bfe144dc05d2ef4023851974b6475895952 | [] | no_license | dirkvdb/audio | 3d211d5d8ca0d7df9f3d9624f2440a2f78eb3fbe | cc6b5ffc91eb5f7b6684e17223fc673cd7f35013 | refs/heads/master | 2020-03-28T03:14:33.106960 | 2014-11-23T08:19:27 | 2014-11-23T08:19:27 | 27,650,519 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,420 | cpp | audioffmpegdecoder.cpp | // Copyright (C) 2009 Dirk Vanden Boer <dirk.vdb@gmail.com>
//
// 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 Free Software Foundation; either version 2 of the License, or
// (at your option) any later... |
6d790907a654bcefefa98bc9106da783bd5df597 | 899aac89bda571b37ac819bf7c1f2b7da3ed0107 | /Bananagram/main.cpp | 43adcfdc5aca66cee1f271b2a91d1537b6b42cc3 | [] | no_license | mlrus/Bananagram | c0c6e833a2d1a23752d4c49ca5e69151db5e221a | 88ba622f5574b9cbe224b90e7376ad7393af091f | refs/heads/master | 2021-06-03T19:59:38.900147 | 2021-05-13T22:59:38 | 2021-05-13T22:59:38 | 82,709,715 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,037 | cpp | main.cpp | //
// main.cpp
// bananagram
//
// Created by Michah Lerner on 2/7/17.
// Copyright © 2017 Michah Lerner. All rights reserved.
//
/*
Linux:
mkae -C Bananagram clobber
make -C Bananagram
Bananagram/banana -h
Bananagram/banana -W IF,AFT,ALOES,TEAR,HIT,DO,FOE,BARD,DO,BASH,JOT -L BASEDHABTEDIALFOROO
... |
2c97adcc678d9d172b75b707a6bd5a0fd539cb91 | 3aa21651c9c3d37875e93d3784d0cc56f607aa7c | /section1.2/dualpal.cpp | 8267b8cd42bc659c38b5564ddc79a9aceb4da3bb | [] | no_license | wejendorp/usaco | ddd73c0598365ea0d50ab1f692b28ffa2fbc73d6 | 4295cb48048cdf72c7aa416125519e3cd59d3443 | refs/heads/master | 2021-01-02T09:33:17.000256 | 2010-12-27T02:49:01 | 2010-12-27T02:50:15 | 1,185,032 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 869 | cpp | dualpal.cpp | /*
ID: jacob4
PROG: dualpal
LANG: C++
*/
#include <fstream>
#include <string>
#include <math.h>
using namespace std;
char chars[16] = {'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'};
bool isPalindrome(string in) {
return (in.length() <= 1) || ((in[0] == in[in.length()-1]) && isPalindrome(in.substr(... |
8cdba81ebda53ecaf121abbe25399be7d093b75c | 2be97de642cea411642893eedb098f594373b66c | /src/tools/mapping.h | 22a6a40ac71514d74ceee5a58152b59592bf709f | [] | no_license | 0mar/dealiiscale | cabc0905a487e85519d6564e435cbeef56fe5c69 | ea563ad425dfb1359a6e8e152895ae376d561509 | refs/heads/master | 2023-05-31T21:22:47.303506 | 2021-02-17T15:30:10 | 2021-02-17T15:30:10 | 172,702,659 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,085 | h | mapping.h | //
// Created by omar on 2020-05-14.
//
#ifndef DEALIISCALE_MAPPING_H
#define DEALIISCALE_MAPPING_H
#include <deal.II/base/symmetric_tensor.h>
#include <deal.II/base/point.h>
#include <map>
#include <iostream>
#include <sstream>
using namespace dealii;
template<int micro_dim>
using KKT = SymmetricTensor<2, micro_dim... |
c7210bd66891a579e8028d8b7afff6dbc0f892cc | 1ef5a27c9326065db448dd539810e900cae9460d | /Classes/Stage040Scene.cpp | b380140aabeac2b657875dc9bbc2b85c8314ed82 | [] | no_license | langtuandroid/SuperBaby | c4e3f7faaa82d40c8da0f518b71251a8ff466c2f | 957a5202ba7d1078bdcfb6b0cd6b73a966893efe | refs/heads/master | 2021-01-06T20:43:54.083245 | 2017-06-18T14:19:00 | 2017-06-18T14:19:00 | 99,549,410 | 0 | 1 | null | 2017-08-07T07:25:29 | 2017-08-07T07:25:29 | null | UTF-8 | C++ | false | false | 2,504 | cpp | Stage040Scene.cpp | //
// Stage040Scene.cpp
// superBaby
//
// Created by Administrator on 15/7/24.
//
//
#include "Stage040Scene.h"
#include "Player.h"
#include "Round040_01.h"
#include "Round040_02.h"
#include "Round040_03.h"
#include "Round040_04.h"
#include "StageData.h"
#include "RoundNpc.h"
#include "Actor.h"
#define NPC_ONE_KE... |
53ee14d87200f7a5fa2295f354a60eca09d3c6be | 43e1578e82c17ad4fe3022a6699f4310e563e949 | /LGPOperators/LGPOperator_Division.h | a1f137f3b8d17e2806401d679311672743acfce4 | [
"MIT"
] | permissive | chen0040/cpp-mfc-fractal-art-iec-lgp | 1877c864c0be612473876f6a7e5e6c61603a7a9e | 108b6ca40f73accc7959da5da0fdcb963136ad0c | refs/heads/master | 2021-01-23T18:31:36.810457 | 2017-09-08T00:43:11 | 2017-09-08T00:43:11 | 102,797,517 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 689 | h | LGPOperator_Division.h | #ifndef _H_LGP_OPERATOR_DIVISION_H
#define _H_LGP_OPERATOR_DIVISION_H
#include "../LGPComp/LGPOperator.h"
class LGPOperator_Division : public LGPOperator
{
public:
LGPOperator_Division();
virtual ~LGPOperator_Division();
public:
virtual int Execute(const LGPRegister* operand1, const LGPRegister* operand2, LGPRegi... |
f9dff170080ea79a89d85161a88dc9208bba7a49 | 33eb8a7f92ea08f1529e42d7a30fcc51eabad75e | /Projet_Litchi/MenuCreator/VMenuElement.cpp | 63ad95586ccf699aa8948c3aefa6892ba387f6d7 | [] | no_license | KDelli/Projet_Litchi | 636259b93e8d441964e150da1ccf9da1e776da20 | 6f3ffffe57dff7da52e67a5bffde058f4d5cba25 | refs/heads/master | 2020-05-18T05:48:36.538453 | 2014-12-28T10:44:35 | 2014-12-28T10:44:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,643 | cpp | VMenuElement.cpp | #include "VMenuElement.h"
VMenuElement::VMenuElement(QString content, IMenuElement* parentMenu, int* var, int minValue, int maxValue):variable(*var)
{
if(parentMenu != nullptr)
{
this->parent = parentMenu;
}
else
{
this->parent = nullptr;
}
this->menuContent = content;
... |
0d75abb400f0ae24ffd8e94e355e19f9b77df7ee | 1013586234b6811b6ec319a40159d8b947777a63 | /src/font.hpp | c1424583ec5ed9d32e67bc9130de2b5e6be1d006 | [] | no_license | dorsath/sprite-game | 8feb0ce6bcf13770f6840f9a3ae3de7549651534 | 5436e1084e19397c188bb0aff48fe0b4f09df094 | refs/heads/master | 2021-01-21T22:29:24.516561 | 2015-09-18T12:31:52 | 2015-09-18T12:31:52 | 42,653,659 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 663 | hpp | font.hpp | #ifndef FONT_HPP
#define FONT_HPP
class Font {
public:
GLuint textureID;
void setup();
};
typedef int LONG;
typedef unsigned short WORD;
typedef unsigned int DWORD;
typedef struct tagBITMAPFILEHEADER {
WORD bfType;
DWORD bfSize;
WORD bfReserved1;
WORD bfReserved2;
DWORD bfOffBits;
} BITMAPFI... |
6efb890c003af05769f21438d25f88fc8609311e | ff4fca243e9c4637259471ae498c82fb592e16f3 | /SimpleProgram/include/RunAction.h | 0e130dd18cafdccfc1506ba86f52c9658d8ae599 | [] | no_license | neocosmos/Geant4-Intruction | 5612ad040cc240990258c7e544dc6ce61672f696 | 5074be96d0dbb88dd12a49594285123dc57cc3db | refs/heads/master | 2020-12-25T12:08:42.233405 | 2016-01-22T07:04:23 | 2016-01-22T07:04:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 395 | h | RunAction.h | //
// Created by herbertqiao on 1/20/16.
//
#ifndef GEANT4_INTRODUCTION_RUNACTION_H
#define GEANT4_INTRODUCTION_RUNACTION_H
#include <G4UserRunAction.hh>
class G4Run;
class RunAction : public G4UserRunAction {
public:
RunAction();
virtual ~RunAction();
virtual G4Run *GenerateRun();
virtual void E... |
2bb51b8fb4eadcb9348b29961766f77effd96d49 | d33a5191d950d6044e2611890a69d99de6b9418c | /GammaForest/src/slice.h | 7f38f43c3b60fe43be0f4decc9aa1d493b294776 | [
"MIT"
] | permissive | theodds/SharedForestPaper | 84a7ab8bc669c76314aaac897bea22fc21d5a211 | 00d91f4251c73eef4dae10304bbc3196831357f7 | refs/heads/master | 2022-03-01T18:51:16.132755 | 2022-02-19T17:59:19 | 2022-02-19T17:59:19 | 188,320,078 | 3 | 0 | null | 2019-05-23T23:34:36 | 2019-05-23T23:26:32 | C++ | UTF-8 | C++ | false | false | 2,311 | h | slice.h | #ifndef SLICE_H
#define SLICE_H
#include <RcppArmadillo.h>
struct Loglik {
virtual double L(double x) {return 0;}
};
struct ShapeWeight : Loglik {
double sum_log_v;
double sum_log_Y;
double sum_v_Y;
double n;
double L(double x) {
double alpha = pow(x, -2.0);
double out =
n * alpha * log(al... |
28d484b0143d5af98d505c5679e63a46ccfa81ba | e6363b0f994dad0496cc911a5e4460037b87ac7f | /include/hfsm2/detail/shared/array_view.inl | 8b8eb5f1ed7615c8fa73c39e6a01be1b5260c90b | [
"MIT"
] | permissive | hfsm/HFSM2 | 66166d8d62b35d6b4f45551f0b74cd46aeaa3970 | 61ecd4d36508dcc348049ee72d51f6cfca095311 | refs/heads/master | 2020-04-30T12:39:46.135873 | 2019-03-20T21:36:12 | 2019-03-20T21:36:12 | 176,832,164 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,705 | inl | array_view.inl | namespace hfsm2 {
namespace detail {
////////////////////////////////////////////////////////////////////////////////
template <typename T>
ArrayView<T>::ArrayView(const LongIndex capacity)
: _capacity(capacity)
{}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
template <typename ... |
ab1c95cec030c2059cea9ea1163fc0e4eee5a06a | 9b98f6763582bbdc17d51f1c5e0284a3a6628f03 | /EducationalDP/B.cpp | cd8dd9df7edc9449495949f4e15b99ca24813e69 | [] | no_license | tom24d/MyAtCoder | 720eaf61bb8255ceeecb2da41a0ae7a64dc9681e | d0145774d3c5625ed61a59a48dd1ad2025a42001 | refs/heads/master | 2022-01-17T10:10:50.761183 | 2021-12-31T08:55:55 | 2021-12-31T08:55:55 | 216,483,663 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 608 | cpp | B.cpp | #include <bits/stdc++.h>
#define rep(i, n) for(int i=0;i<(n); i++)
#define sz(x) int(x.size())
using namespace std;
int main(){
int n, k;
cin >> n >> k;
int h[100001];
rep(i, n){
cin >> h[i];
}
int dp[100001];
dp[0]=0;
for(int i=1; i<n; i++){
int temp;
for(int j ... |
963657bcb836c3a0c92c8bb45a760459eee4b8e3 | 87b61b564f285858fcda8b50b892c2183bd23d51 | /client/components/common/focus_input_context_manager_sub_component.cc | 076d7b7573250fd7f8e3eda14ef961d57bf3cb4a | [
"Apache-2.0"
] | permissive | randyli/google-input-tools | e1da92fed47c23cf7b8e2ff63aee90c89e1f0347 | daa9806724dc6dc3915dbd9d6e3daad4e579bf72 | refs/heads/master | 2021-05-18T13:00:21.892514 | 2020-04-11T13:26:33 | 2020-04-11T13:26:33 | 251,252,155 | 0 | 0 | Apache-2.0 | 2020-03-30T08:58:26 | 2020-03-30T08:58:26 | null | UTF-8 | C++ | false | false | 2,711 | cc | focus_input_context_manager_sub_component.cc | /*
Copyright 2014 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... |
81ad5baf4e01d72f8439a077bb4fc874c845f251 | ed444c4a0ed1fe679da64b81ec6aa1ddf885a185 | /Foundation/System/Cache/CacheMgr.h | 623d6a587a69729cb1860f0215df52dae749dff6 | [] | no_license | swaphack/CodeLib | 54e07db129d38be0fd55504ef917bbe522338aa6 | fff8ed54afc334e1ff5e3dd34ec5cfcf6ce7bdc9 | refs/heads/master | 2022-05-16T20:31:45.123321 | 2022-05-12T03:38:45 | 2022-05-12T03:38:45 | 58,099,874 | 1 | 0 | null | 2016-05-11T09:46:07 | 2016-05-05T02:57:24 | C++ | GB18030 | C++ | false | false | 752 | h | CacheMgr.h | #pragma once
#include <cstdint>
#include <map>
#include <string>
namespace sys
{
class CacheIdentity;
// 缓存管理
class CacheMgr
{
private:
CacheMgr();
virtual ~CacheMgr();
public:
static int32_t getStaticID();
static CacheMgr* getInstance();
public:
// 按id获取cache
CacheIdentity* getCache(int32_t nID) c... |
08d730a580b1c23c4f262c35154331d6dcfca650 | f5b536570bd3702aead2b40e4a0ae151938439f5 | /Basic/Product of Digits in A Number/SolutionBySowmya.cpp | 8d3daaf7e1f9e198e8301ef9d20035decfd28dd3 | [] | no_license | sowmya8900/Computer-Society | 37207afd15a732fc5029f9c3744744763dc61d85 | 064dbe2b78ad0f374a683d106782076f58e6c630 | refs/heads/master | 2021-03-26T01:59:35.241465 | 2020-05-07T15:37:01 | 2020-05-07T15:37:01 | 247,664,887 | 0 | 0 | null | 2020-03-16T09:47:27 | 2020-03-16T09:47:26 | null | UTF-8 | C++ | false | false | 388 | cpp | SolutionBySowmya.cpp | #include <iostream>
#include<string.h>
using namespace std;
int main()
{
int n , i;
int product = 1;
cout<<"Enter the number: ";
cin>>n;
string str = to_string(n);
for (i=0 ; i<str.length() ; i++)
{
if((str[i]-'0') != 0)
{
product = (str[i]-'0') * product;
... |
2f79a16db79bf50fbd3599b8146ee197f5a553d2 | 50f6b2224f3c8a83a1888d049c734c40cc2e52ba | /C++/PetesPitaV2/Pizza.cpp | 7d0e54b9944be5f949eaf058410ea7f4adea689f | [] | no_license | jlongley0314/portfolio | 045f85a5f0ee0aefa9b4e9ff3978007f29dd1877 | d76010be77543ba43ad2d6674dc3da72aa1650b2 | refs/heads/master | 2021-01-21T20:17:27.148786 | 2017-09-12T19:05:38 | 2017-09-12T19:05:38 | 92,218,267 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 53 | cpp | Pizza.cpp | //
// Pizza.cpp
// Program3
//
#include "Pizza.h"
|
95d30a29465a4a1883fcfa750d6715612672be4c | d0362ca7ab49b02149a53b1cae9a7ce0623d1f7b | /DACView/UnitTest/TestCSQIFileDoc.cpp | 58e5add98d75c4efdcbe47cd5a1c219f6dd838fd | [] | no_license | realgsg/DACView | 2fffb87b7feacbde2d468d63584e279f0935e2fe | 93ce0a9d479d6701e788159843ca4cf9546629df | refs/heads/master | 2023-06-19T04:09:04.757229 | 2019-05-15T12:56:38 | 2019-05-15T12:56:38 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 385 | cpp | TestCSQIFileDoc.cpp | #include"stdafx.h"
#include "gtest/gtest.h"
#include"SQIFileDoc.h"
namespace DACViewTest {
TEST(TestCSQIFileDoc, InitializeTest) {
//CSQIFileDoc c;
// SQIFileDoc类无法直接调用,是被windows系统函数调用的,故而如何测试,需要研究。
// 一种方法是将具体执行过程提出来,做为全局函数存在,这样就能测试了。
}
} |
29c7088ef083ce01e913f7ea39fd8809c7eed405 | de01cb554c2292b0fbb79b4d5413a2f6414ea472 | /algorithms/Medium/1529.bulb-switcher-iv.cpp | a7e8d24d8703993a41b84058710c4d800b620111 | [] | no_license | h4hany/yeet-the-leet | 98292017eadd3dde98a079aafcd7648aa98701b4 | 563d779467ef5a7cc85cbe954eeaf3c1f5463313 | refs/heads/master | 2022-12-10T08:35:39.830260 | 2020-09-02T23:12:15 | 2020-09-02T23:12:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,729 | cpp | 1529.bulb-switcher-iv.cpp | /*
* @lc app=leetcode id=1529 lang=cpp
*
* [1529] Bulb Switcher IV
*
* https://leetcode.com/problems/bulb-switcher-iv/description/
*
* algorithms
* Medium (70.33%)
* Total Accepted: 13.6K
* Total Submissions: 19.3K
* Testcase Example: '"10111"'
*
* There is a room with n bulbs, numbered from 0 to n-1, ... |
d7eb46b0fb781e182790f52b0dffe9c1f5069deb | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /v8/src/crankshaft/hydrogen-canonicalize.cc | 4a07357d58dc163d5b7ab1706df2406d4b593cb2 | [
"BSD-3-Clause",
"SunPro",
"bzip2-1.0.6"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | C++ | false | false | 2,352 | cc | hydrogen-canonicalize.cc | // Copyright 2013 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/crankshaft/hydrogen-canonicalize.h"
#include "src/crankshaft/hydrogen-redundant-phi.h"
namespace v8 {
namespace internal {
void HCanoni... |
937cc8d4af0d807a4f48a0d89d6f00db9616f623 | d464a30cc36f7e3b746cb8c8fb3bfd28bddd15d5 | /Problem2.cpp | bf032bd0d0fb1ab077c2366d4971b38e84c7ed1e | [] | no_license | jazellecatague/Experiment-2- | 67075fa662aa7ab720106a766f4f354b5d050b6b | 18f0c809a52b4403b1439fffcbaf96a4306f25da | refs/heads/master | 2020-05-19T05:59:41.993494 | 2019-05-04T07:52:55 | 2019-05-04T07:52:55 | 184,862,079 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 865 | cpp | Problem2.cpp | #include <iostream>
#include <conio.h>
using namespace std;
int main()
{
int ConsumedGallons;
float PreviousMonth, TotalCost;
const float WaterDemandCharge = 35, ConsumptionCharge = 1.10;
cout << "Enter unpaid amount from the previous month: \n";
cin >> PreviousMonth;
cout << "Enter gallo... |
b908e76ae758b1e8af80be85eb4610aa3d57f9f3 | 4220f1a7803da74da022917fcb7448d630cef7d8 | /Source Code/circle.cpp | 6cd28a3d6dc3a04209c37230840cabc996611c42 | [
"MIT"
] | permissive | tj-dunham/2D-Graphics-Modeler | 1981c79ae4ddc3effa3da5b37c0c0eb712022503 | 2c8f329a67a142c2ee2f7426047f0c3f51656169 | refs/heads/master | 2020-04-02T01:27:25.118393 | 2019-03-23T14:08:29 | 2019-03-23T14:08:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,217 | cpp | circle.cpp | #include "circle.h"
//! Sets the QPainter object to draw a circle according to the Circle object's specifications.
void Circle::draw()
{
painter.setPen(pen);
painter.setBrush(brush);
painter.drawEllipse(position.x(), position.y(), shapeDimensions[int(Specifications::RADIUS)], shapeDimensions[int(Spe... |
3b0700587c9227f09272fdc0cea773e0d0fea4cc | ab5657fc71130c794bbd339e5ea30671a790a2d9 | /EnshiceVector.h | 795d12467418de8eaf4e280a239f32dcf67a9709 | [] | no_license | enshice/DataStructures | 134379731e324952bebec581835b174e8cd8efae | 070875d22b5c68dcd3c03f0261453cbcf26786d7 | refs/heads/master | 2021-01-22T03:06:23.087092 | 2017-02-08T17:05:32 | 2017-02-08T17:05:32 | 81,101,709 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,424 | h | EnshiceVector.h | #include <stdlib.h>
namespace enshice
{
template<typename Object>
class Vector
{
public:
explicit Vector(int initSize = 0)
: theSize(initSize), theCapacity(initSize + SPARE_CAPACITY)
{
objects = new Object[theCapacity];
}
Vector(const Vector& rhs) : objects(NULL)
{
operator=(rh... |
39a79ff713d2e37772d2999eda4725a2b7b71854 | 86dae49990a297d199ea2c8e47cb61336b1ca81e | /c/Luogu/模板/P3366 【模板】最小生成树.cpp | df3ac7385c953b199eed546aff3eaf3ac725233a | [] | no_license | yingziyu-llt/OI | 7cc88f6537df0675b60718da73b8407bdaeb5f90 | c8030807fe46b27e431687d5ff050f2f74616bc0 | refs/heads/main | 2023-04-04T03:59:22.255818 | 2021-04-11T10:15:03 | 2021-04-11T10:15:03 | 354,771,118 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 979 | cpp | P3366 【模板】最小生成树.cpp | // luogu-judger-enable-o2
#include<stdio.h>
#include<algorithm>
using namespace std;
int fa[100000];
struct side
{
int val,f,e;
}s[200000];
int findfather(int a)
{
return fa[a] = fa[a] == a ? a : findfather(fa[a]);
}
bool cmp(side a,side b)
{
return a.val < b.val;
}
int main()
{
int n... |
aae411e16ccc127be5fafc724eb24f2667775515 | 0b41815e2e30d9cee85e21384ef6e09ebc6f8f9d | /kdrive/src/io/serial/SerialPort.cpp | f1b8dac99fe41154f71a540340b8df49417c0d06 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | weinzierl-engineering/baos | 96d338176c842e24223cb03981443ecf0450b8ac | bd0d893e1d1f23578d94275c90e7588885baf29b | refs/heads/master | 2022-12-08T09:19:08.823389 | 2022-11-15T11:35:02 | 2022-11-15T11:35:02 | 34,512,259 | 42 | 21 | MIT | 2022-11-15T11:35:03 | 2015-04-24T10:21:39 | C++ | UTF-8 | C++ | false | false | 5,367 | cpp | SerialPort.cpp | //
// Copyright (c) 2009-2010, Applied Informatics Software Engineering GmbH.
// All rights reserved.
//
// This is unpublished proprietary source code of Applied Informatics.
// The contents of this file may not be disclosed to third parties,
// copied or duplicated in any form, in whole or in part.
//
#incl... |
5867ce903465def912cd4532b06df261866ad913 | 5e9e0adef44a1618af987f07bf4363842660277a | /AngryBirds/source/AngryBirds.Desktop.OpenGL/Score.cpp | 5854122b0bf9fa660a9227d457b17dd0d93f2ddd | [] | no_license | rodrigobmg/Angry-Birds | cf7462c5c38d9b3074f1753d96390a22f5e5ddda | 0625646bc1e1d131a05e395bda60471eb4f74d04 | refs/heads/master | 2020-11-29T12:57:48.601554 | 2016-03-11T03:43:01 | 2016-03-11T03:43:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,617 | cpp | Score.cpp | #include "stdafx.h"
#include "Score.h"
void Score::init(TiXmlElement *scoreElement, int lives)
{
float imageWidth, imageHeight;
scoreElement->FirstChildElement()->QueryFloatAttribute("imageWidth", &imageWidth);
scoreElement->FirstChildElement()->QueryFloatAttribute("imageHeight", &imageHeight);
TextRenderer = new... |
024429216b9194f285cb3bde93dbe0e442063cb6 | b76b95f0b7e2c74c6c16c5a9de0a140d3ff1d163 | /Voo/Horario.h | 25dbb40d3ceafca645c0262df22edae8ce41cc50 | [] | no_license | arthuruan/LP1-Lista-1 | aa9bdd740eb819dfe88617d579cc034dbb18482d | 62437529975e667de332a1bb0e7fbdbf4cab88c9 | refs/heads/master | 2022-01-28T21:24:56.678361 | 2019-07-17T02:52:07 | 2019-07-17T02:52:07 | 197,302,401 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 506 | h | Horario.h | #ifndef HORARIO_H
#define HORARIO_H
#include <iostream>
using namespace std;
class Horario{
public:
Horario();
Horario(int h, int m, int s);
int getHora();
int getMinuto();
int getSegundo();
void setHora(int h);
void setMinuto(int m);
void setSegu... |
216a697df281365c8dd4c2930d4d1f5b585cb041 | 858a9488b9e1875cd11f5cc962d6b91eb2fb151f | /Classes/PipeSprite.h | 023f5eec846699d77afaca4fde13ef6067ba6333 | [] | no_license | lwgis/TaiMiMi | e7aab14622c4d6b00d47c4ebfd134d54589d0793 | 037b0a2347f98e61bed209a84dbd469b79e812b0 | refs/heads/master | 2020-05-21T00:15:52.235202 | 2014-04-19T15:01:17 | 2014-04-19T15:01:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 444 | h | PipeSprite.h | #include "cocos2d.h"
USING_NS_CC;
typedef enum {
TopPipe=0,
ButtomPipe=1
}pipeType;
class PipeSprite:public Sprite{
private:
pipeType type;
public:
bool isScore;
static PipeSprite *create(pipeType type);
virtual bool initWithSpriteFrameName(const std::string& filename);
virtual void update(float dt... |
4b48fe72da8993dce37d70cf4ae7dfc84f5116bc | 75e25e96c453ddce34720557bf140572c03e2f3c | /Practical1/Practical1/ShaderUtility.h | 1fdfc313a4e8625cf9256e0b1b7eb0d943b89131 | [] | no_license | JamesTheButler/Physics-Based-Simulation-Game | 9481400f03e1b9ff8f105df179095c12fa9b8eae | 00e271febbb713742764d57d3dc9b3fa2bbdfa7d | refs/heads/master | 2022-12-16T06:48:08.331528 | 2020-08-31T10:40:17 | 2020-08-31T10:40:17 | 157,512,457 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,397 | h | ShaderUtility.h | #pragma once
std::string getFileContents(const char* filename) {
std::ifstream in(filename, std::ios::in | std::ios::binary);
if (!in) {
std::cout << "Sorry, can't open file: " << filename << std::endl;
exit(0);
}
else {
std::string contents;
in.seekg(0, std::ios::end);
contents.resize(in.tellg());
in.... |
10f7b76ebd90658c12b6b02b774470466bd01ceb | f6ab96101246c8764dc16073cbea72a188a0dc1a | /OnlineJudge/ZEROJUDGE/b298.cpp | b4dc68a5b0bef2baedda76a3338f35a11be24f87 | [] | no_license | nealwu/UVa | c87ddc8a0bf07a9bd9cadbf88b7389790bc321cb | 10ddd83a00271b0c9c259506aa17d03075850f60 | refs/heads/master | 2020-09-07T18:52:19.352699 | 2019-05-01T09:41:55 | 2019-05-01T09:41:55 | 220,883,015 | 3 | 2 | null | 2019-11-11T02:14:54 | 2019-11-11T02:14:54 | null | UTF-8 | C++ | false | false | 651 | cpp | b298.cpp | #include <stdio.h>
#include <vector>
#include <algorithm>
using namespace std;
vector<int> g[32767];
int wa[32767];
int dfs(int u) {
wa[u] = 1;
for (int i = 0; i < g[u].size(); i++) {
int v = g[u][i];
if (!wa[v]) dfs(v);
}
}
int main() {
int n, m, l, q;
int x, y;
while (scanf("%d %d %d %d", &n, &m, &l, &q) ==... |
03d598fb29d0cb048e3d31bf7c3945ea9bc32c16 | 548140c7051bd42f12b56e8bb826074609c8b72e | /Engine/Code/Engine/Networking/TCPSocket.cpp | 63b4cdd121515666b84d89b2b7732339983bc4dd | [] | no_license | etrizzo/PersonalEngineGames | 3c55323ae730b6499a2d287c535c8830e945b917 | 6ef9db0fd4fd34c9e4e2f24a8b58540c075af280 | refs/heads/master | 2021-06-16T22:01:57.973833 | 2021-01-26T03:54:58 | 2021-01-26T03:54:58 | 135,343,718 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,587 | cpp | TCPSocket.cpp | #include "Engine/Networking/TCPSocket.hpp"
#include "Engine/Core/WindowsCommon.hpp"
#include "Engine/Networking/Net.hpp"
#include "Engine/Core/ErrorWarningAssert.hpp"
#include "Engine/Core/DevConsole.hpp"
TCPSocket::TCPSocket()
{
// now we have an address, we can try to bind it;
// first, we create a socket like we... |
eef6b120f79c856fd5571060b3b0dee72e165a19 | 5d15d44a6d0329f7df564549f6a2674b61855205 | /graph.h | 92bb7d8acb99164b9d3f00ba9089408877ab6580 | [] | no_license | edgarchaidez/SHORTEST-PATH-ALG | ed375e5afc2e7aa45d0b83470b72a6669170e809 | 928f04bc48fd42beb164423964e25402959dff8d | refs/heads/master | 2020-08-27T19:56:29.682404 | 2019-10-25T07:28:29 | 2019-10-25T07:28:29 | 217,476,098 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 635 | h | graph.h | #ifndef _GRAPH_H_
#define _GRAPH_H_
#include <string>
struct ELEMENT {
int node;
int d;
int p;
};
struct LIST {
int neighbor;
int weight;
struct LIST* next;
};
struct GRAPH {
int v;
int e;
struct ELEMENT* H;
struct LIST** A;
};
class Graph {
private:
// Helper met... |
27119a1067c4b38e346c3bb870d3e7a9b4ecf4d0 | c54b02b383b81ffae61a1b4bb2c81fcc216d06e2 | /UIControl/sofia/ui/control/SFScale9Sprite.cpp | 6a706afb206305eeafc7df8d8719c53a8a0f5094 | [] | no_license | atom-chen/client-1 | 10efcb0700aefbf685b96d8f2643efcf39ff27f8 | 5ead121c3b0028141427ce85c66b97d4e6c78fc2 | refs/heads/master | 2020-06-17T04:23:57.390868 | 2017-10-14T08:34:29 | 2017-10-14T08:34:29 | 195,772,492 | 0 | 1 | null | 2019-07-08T08:46:35 | 2019-07-08T08:46:34 | null | UTF-8 | C++ | false | false | 2,324 | cpp | SFScale9Sprite.cpp | #include "ui/control/SFScale9Sprite.h"
#include "ui/utils/VisibleRect.h"
SFScale9Sprite::SFScale9Sprite():m_scale9Sprite(NULL)
{
ignoreAnchorPointForPosition(false);
}
// SFScale9Sprite* SFScale9Sprite::createWithKey( int id, CCRect capInsets)
// {
// SFScale9Sprite *pRet = new SFScale9Sprite();
// if (pRet != ... |
13f5bbb2b63f5695e1fe45d60d843877406babc4 | 6e3b592de89cb3e7d594993c784e7059bdb2a9ae | /Source/AllProjects/Utilities/RemPortSrv/Client/CQCRPortClient_PortFactory.cpp | 0ac3057e48feb817b1a2c49cca3df8ce8d244357 | [
"MIT"
] | permissive | jjzhang166/CQC | 9aae1b5ffeddde2c87fafc3bb4bd6e3c7a98a1c2 | 8933efb5d51b3c0cb43afe1220cdc86187389f93 | refs/heads/master | 2023-08-28T04:13:32.013199 | 2021-04-16T14:41:21 | 2021-04-16T14:41:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,173 | cpp | CQCRPortClient_PortFactory.cpp | //
// FILE NAME: CQCRPortClient_PortFactory.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 09/14/2005
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// http... |
7521be4ce1dcd6e392883cb5bfdadb0158e84fa2 | 28d651c1b31dc588a829912029e8d42320b5648a | /dynamic_bench_test.cpp | 3eb15127a1051c262cae5a792c46dad6e47f9418 | [] | no_license | Kamp9/Speciale | 96d88ca86222dd5ac9a9baae79fa23202b1d47f7 | 372a3e765c306a51647324a27f6d4559c161d603 | refs/heads/master | 2021-03-27T10:27:46.240385 | 2018-08-02T08:53:14 | 2018-08-02T08:53:14 | 120,498,770 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,281 | cpp | dynamic_bench_test.cpp | #include <iostream>
#include <cstdlib>
#include <time.h>
#include <sys/time.h>
#include <ctime>
#include <boost/random/mersenne_twister.hpp>
#include <boost/random/uniform_int_distribution.hpp>
#include "bfpdynamic.cpp"
int NUM_REP = 10;
template <typename T>
BFPDynamic<T> gen_bfp(boost::random::mt19937 &rng, const ... |
1d64777c9be235f087a2e8e8e799b2d916e27f2b | 5edbf7058ae837436a019d61f17bec1fcc92e6f3 | /数据结构算法:TP311.12 H431D2/第二章/cirlinklistm.cpp | 58011f5ad06bb7bbf8a422be85debaf64172dd27 | [] | no_license | jash-git/ISBN-7-5084-2956-7 | 07091d53d6904ccf1eb8381eb05aaa5d4df7d513 | c276b93895a355e0a8f2f69acf11163b236ab8ac | refs/heads/master | 2020-07-13T01:02:19.319662 | 2019-08-28T14:39:59 | 2019-08-28T14:39:59 | 204,953,888 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,842 | cpp | cirlinklistm.cpp | //单循环链表的测试与应用cirlinklistm.cpp
#include<iomanip.h>
#include "cirlinklist.cpp"
void main()
{cout<<"cirlinklistm.cpp运行结果:\n";
int m=150,i,n=10,x,it;
cirlinklist p,t,q,mylink;
p.CreateCLinkL(n,m,1);
if(p.CListEmpty()) cout<<"单循环链表p空!\n";
else cout<<"单循环链表p非空!\n";
cout<<"单循环链表p(升序):\n";
p.TraverseCList();
if(p.CList... |
04326b7c63ce376b1354a0ee5623a9168cb4530a | 366bcea9c1de9b2ce0763bab32764550170e3424 | /except/ShapeException.h | 35bf30baf0e666f6aa353b72b05e764acfc67f34 | [] | no_license | ysanquer/mouton | a1b4b8863ad3daa318a141a111a61d6440bc20a0 | 3f5db49da4b9cebd7e5b68e085cd04a12fafe2d1 | refs/heads/master | 2021-01-21T11:23:16.550842 | 2017-03-17T11:39:19 | 2017-03-17T11:39:19 | 83,563,468 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 752 | h | ShapeException.h | #ifndef _SHAPE_EXCEPTION
#define _SHAPE_EXCEPTION
#include <exception>
///
/// \brief An exception thrown by Shape, its subclasses and systems
/// that work with them
///
/// \authors Jeremy Montanes
///
class ShapeException: public std::exception
{
private:
std::string _what_arg;
public:
//... |
bcfd3808200d9acdb2e593d9019482b31a4763b3 | 50d5558abbc50dd6bbef1e4b35f126a9a3116e89 | /Linked List/mid_point_runner_tech.cpp | f98ef9ee19e7d9c41620e011ca9deb34869cf725 | [] | no_license | Ayush32/Cpp-Data-Structures | 9f0824d6e53883981514db38c816f8f7fce8e3d6 | 90e73891f6b6a9450b28fc2b9a4119a116921749 | refs/heads/master | 2023-04-22T20:44:38.517164 | 2021-05-07T06:39:13 | 2021-05-07T06:39:13 | 288,621,719 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,748 | cpp | mid_point_runner_tech.cpp | /*
* Copyright (c) 2020
* All rights reserved.
*/
#include <iostream>
using namespace std;
class node
{
public:
int data;
node *next;
node(int d)
{
data = d;
next = NULL;
}
};
void print(node *head)
{
while (head != NULL)
{
cout << h... |
d14442b822b2e4c08f632a02ccfbb958d9a2e8c6 | 370160ccff37bc2f799588a37aec7b2a2590dd3b | /app/save.cpp | 62fb12fac5bd1b09e3537d7d69084dcc808bfa75 | [
"MIT"
] | permissive | Rakabidaasta/testing_lab2 | ab51f592159e6c9303c6f56ccda7d0e45988c41e | d1fef66f0ac946e36d80bc8f9e1b9bfa1a9cda45 | refs/heads/main | 2023-04-06T08:07:36.812207 | 2021-04-12T10:32:26 | 2021-04-12T10:32:26 | 350,326,208 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,054 | cpp | save.cpp | /**
* save.cpp -- функция загрузки текста в файл
*
* Copyright (c) 2021, Kvist Tatyana <kvist@petrsu.ru>
*
* This code is licensed under a MIT-style license.
*/
#include <stdio.h>
#include "common.h"
#include "text/text.h"
#include <assert.h>
void save_line(int index, std::string line, int cursor, void *f);
/... |
4102a20f8415addce6fab844e9be16c392832236 | e063939afb90e830dcb7a47135706ac8afecc244 | /include/Words.h | 6e9109ffcacc98262fae9ba61d2b4b91860777f9 | [] | no_license | ComprosoftCEO/MothersDay2020 | 5ae29bc38cf555130c07940aaab8be011ec35946 | 810682d2681a98a3ed0041126870d82e00cb996f | refs/heads/master | 2022-11-09T04:06:12.898581 | 2020-06-22T00:03:48 | 2020-06-22T00:07:06 | 273,995,032 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 509 | h | Words.h | #ifndef WORDS_HEADER
#define WORDS_HEADER
#include <set>
#include <string>
/**
* @class Words
* Class for generating the words to use with the challenges
*/
class Words final {
public:
const std::string& next_word();
// Repick word, may randomly repick the same word
const std::string& repick_word();
// ... |
7254e1db9fa12d250ffe8f38e5052f5f66a9874c | a536bed3d18435f119a26d6183e2d10e482dd275 | /beambeam.h | abd497e66dec85718307745d59f53087db56cd1b | [] | no_license | xud929/xxx | e7471df8a0d6589021ae4f0b394d8ad354e1dd64 | c51a6708c5c0b6e17b2bca938b58f344dedce913 | refs/heads/master | 2020-06-21T00:57:08.065247 | 2019-07-17T03:14:29 | 2019-07-17T03:14:29 | 197,304,282 | 0 | 0 | null | 2019-07-17T03:07:26 | 2019-07-17T02:58:22 | C++ | UTF-8 | C++ | false | false | 2,103 | h | beambeam.h | //
// Created by Yue Hao on 7/29/16.
//
#include <cmath>
#include <vector>
#include <random>
#include <iostream>
#include "mpi.h"
#include "beam.h"
#include "acc_model.h"
#include "omp.h"
#ifndef EPIC_BEAMBEAM_H
#define EPIC_BEAMBEAM_H
const double sqrtpi=sqrt(M_PI);
class beambeam{
private:
int model;
std:... |
7e510a573d343573bc9685434f750b90f98e408f | 478225cfca92f11cc9e8cb970caf884244716e6b | /src/lib/songstuff.hpp | 0620e0243c3108a6f358f6b4163312f0034c8a3a | [] | no_license | SomeoneSom/AutoNightFunkin | b6833ea1b7c0653d4e93c2999c5b0a757a1b54bc | e9884653a57ab8b428d47602a14dbbbbf6e1205d | refs/heads/main | 2023-05-19T22:25:55.952157 | 2021-06-03T15:53:25 | 2021-06-03T15:53:25 | 372,373,449 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 456 | hpp | songstuff.hpp | /* songstuff:
deals with decoding fnf charts (json files) into a vector of Notes (struct)
members ending in '__' should be seen as "private"*/
#include <vector>
#include <iostream>
#include <string>
#include "json.hpp"
#ifndef SONGSTUFF_HPP
#define SONGSTUFF_HPP
namespace SongStuff {
typedef struct Note {
i... |
b3b1cc953adae72d9ccda4e8415302cbe88a1711 | 39dea80337cae1a1f41798842dc8b2cde14e566c | /libraries/SliderMenuStructure/SliderMenuStructure.cpp | 65efcff64bf65bdc5464f2659d0a19db8a649bec | [] | no_license | phiber/slider | a1f08b0cff0208a533e28e7c895029e5ac8015c9 | b16aa5e86f0a6db5f7ac866cb68a8be6cef3e1c8 | refs/heads/master | 2021-01-21T04:43:38.716139 | 2015-02-14T15:17:12 | 2015-02-14T15:17:12 | 14,064,420 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 349 | cpp | SliderMenuStructure.cpp | #include "SliderMenuStructure.h"
menu_item menu_trigger[] = {
{ "DoTrigger", 'F', (void*)some_function}
};
menu_item menu_main[] =
{
{ "Trigger ", 'M', (void*)menu_trigger },
{ "Some funtion", 'F',(void*)some_function }
};
menu_item* createMainMenu() {
return menu_main&;
}
void some_function() ... |
57b16210dab56c5d126b3277d808af12011b84fa | 774e8271f37d0f370151ee796d49f47593127130 | /Tek2/Semester3/PiscineCPP/piscine_cpp_d09/ex02/Priest.cpp | 29e32f2442f220035ab48425af49411c45674e5b | [] | no_license | GaldanM/Epitech | 9253e76e7f0659091db9d6747830f14ad1d19b77 | 6aa85081747965a1d50bbdbdae238a8a2ea8bc49 | refs/heads/master | 2021-03-30T17:20:08.304384 | 2018-01-07T10:36:00 | 2018-01-07T10:36:00 | 87,180,084 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,003 | cpp | Priest.cpp | //
// Character.cpp for Chara in /home/moulin_c/rendu/piscine_cpp_d09/ex00
//
// Made by Galdan MOULINNEUF
// Login <moulin_c@epitech.net>
//
// Started on Thu Jan 15 12:17:37 2015 Galdan MOULINNEUF
// Last update Fri Jan 16 09:48:21 2015 Galdan MOULINNEUF
//
#include "Priest.hh"
/* INIT */
Priest::Priest(const ... |
1375bb9274c26360c06e15c6c6f21f00a0ebe364 | 3693376afc7e66c56a1591677e70e8c4acf77b5e | /ParserGenerator/src/ParserGenerator/Regex/Node.h | fb26b25d7ee200263938492b544e774252290bdb | [] | no_license | jonas2602/ParserGenerator | f33a38d6cc5c2d12c3d7d778ac015f0ce5a368db | d8bfb2837cd0a8ff30c71f8a9bd14b646953fc20 | refs/heads/master | 2022-01-18T16:24:30.325995 | 2019-06-02T20:37:55 | 2019-06-02T20:37:55 | 185,770,848 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,839 | h | Node.h | #pragma once
#include "ParserCore.h"
#include "NFA.h"
namespace ParserGenerator {
class Node_BASE
{
public:
virtual void ExtendMachine(NFA* OutMachine, PCA::State*& OutStart, PCA::State*& OutEnd, const std::string& Name, int FinalStatePriority = 0) const = 0;
};
class Node_CONST : public Node_BASE
{
protec... |
4098a5ea0842d33afc21e8cfcca06b5753c45565 | 2260a9ea727917e57fc6eae3749db2a2eebcd42b | /explore/main.cpp | 59232c5b7a9ebd76e720ed56eda7edc06ae3ea89 | [] | no_license | longwei/qt5pro | 806d0d880931e146f62d1462e1d4417d0f831513 | d0b1533b78f04d641e828535406d6e4e21641782 | refs/heads/master | 2020-04-17T19:31:58.231976 | 2015-01-06T23:44:14 | 2015-01-06T23:44:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,203 | cpp | main.cpp | /*
* Copyright 2013 Atlassian
*/
#include <QAbstractNativeEventFilter>
#include <QWindow>
#include <QDebug>
#include <QDir>
#include <QFile>
#include <QFileInfo>
#include <QFontDatabase>
#include <QMessageBox>
#include <QSslCertificate>
#include <QSslCertificateExtension>
#include <QSslConfiguration>
#include <QSslSoc... |
834d2801a906024af743820452a9ec318787f47b | 39a1d46fdf2acb22759774a027a09aa9d10103ba | /inference-engine/src/vpu/common/include/vpu/ngraph/operations/static_shape_loop.hpp | 5c9cdd9ef61d9d1d7774d55876cf516086afe73b | [
"Apache-2.0"
] | permissive | mashoujiang/openvino | 32c9c325ffe44f93a15e87305affd6099d40f3bc | bc3642538190a622265560be6d88096a18d8a842 | refs/heads/master | 2023-07-28T19:39:36.803623 | 2021-07-16T15:55:05 | 2021-07-16T15:55:05 | 355,786,209 | 1 | 3 | Apache-2.0 | 2021-06-30T01:32:47 | 2021-04-08T06:22:16 | C++ | UTF-8 | C++ | false | false | 677 | hpp | static_shape_loop.hpp | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <ngraph/opsets/opset6.hpp>
namespace ngraph { namespace vpu { namespace op {
class StaticShapeLoop : public ngraph::opset6::Loop {
public:
static constexpr NodeTypeInfo type_info{"StaticShapeLoop", 0};
... |
7451dd647dd7b378e67e8394fc8ef4433de43f9b | e1a123477c31c2261709b19ef1ea860ca9f5078b | /Temporal/Temporal/BaseEnums.h | abad784bc622e2d31366da5792be40a6e5f4fc96 | [] | no_license | shlomiatia/Temporal | 468381d979cd98275dfda937ea89e3d772b53fa1 | 8c16b3d5c3ac71a5723ddc48bcc441f784e52376 | refs/heads/master | 2022-11-15T21:36:56.537204 | 2020-07-15T20:45:02 | 2020-07-15T20:45:02 | 238,402,218 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 868 | h | BaseEnums.h | #ifndef BASEENUMS_H
#define BASEENUMS_H
namespace Temporal
{
namespace Side
{
enum Enum
{
LEFT = -1,
RIGHT = 1
};
inline Side::Enum getOpposite(Side::Enum value) { return value == LEFT ? RIGHT : LEFT; }
inline Side::Enum get(float value) { return value > 0.0f ? RIGHT : LEFT; }
}
... |
8143beaaa3fe33f909f45a7eebed02a6e28cf5dd | 23eadb2f6059c275a392987ef04f2065e31a8293 | /carol_kynea/CarolKyneaWorker.h | c119bc2f6975c386413220e21269d96f9292f3ac | [] | no_license | 5l1v3r1/mtsieve | c8842d0b24b6d6c5e22a80717ec0db5a93a44d2e | 02d53262c0d25db98e59381305b46ed30fb6139e | refs/heads/master | 2021-04-03T16:26:46.262589 | 2019-10-22T17:26:00 | 2019-10-22T17:26:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,645 | h | CarolKyneaWorker.h | /* CarolKyneaWorker.h -- (C) Mark Rodenkirch, July 2017
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 Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
*/
#ifndef... |
b117980cbe162b44bcc9eff000470ad58cac1ae1 | ef4d4a4e178ca31606503a6fedf0927bda713618 | /Google Kick Start/2016/Round A/Problem A: Country Leader.cpp | f3b338832234a5e72b93185ecb2f9dfc38e1fe0f | [] | no_license | Huixxi/Algorithm-with-Cplusplus | 8f28c9eec19eb6a33ad7beedeefd568a15c42ec9 | 7084b10d2b953e0b6cc7bd26dcce5744a039ad79 | refs/heads/master | 2022-05-05T12:39:26.062362 | 2022-03-06T09:19:49 | 2022-03-06T09:19:49 | 226,782,392 | 47 | 21 | null | null | null | null | UTF-8 | C++ | false | false | 805 | cpp | Problem A: Country Leader.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
int T;
cin >> T;
for(int ca = 1; ca <= T; ++ca) {
int n;
cin >> n;
string tarStr;
string str;
getline(cin, str);
int cnt = 0;
vector<int> nums(27, 0);
for(int i = 0; i < n; ++i) {
... |
111f60c9279213d42c15acbd3f1fef4c7b761b51 | a0b0eb383ecfeaeed3d2b0271657a0c32472bf8e | /hdu/5441.cpp | cb7c5116ca695e51ae8a81e6c5a89ed02bd574e2 | [
"Apache-2.0"
] | permissive | tangjz/acm-icpc | 45764d717611d545976309f10bebf79c81182b57 | f1f3f15f7ed12c0ece39ad0dd044bfe35df9136d | refs/heads/master | 2023-04-07T10:23:07.075717 | 2022-12-24T15:30:19 | 2022-12-26T06:22:53 | 13,367,317 | 53 | 20 | Apache-2.0 | 2022-12-26T06:22:54 | 2013-10-06T18:57:09 | C++ | UTF-8 | C++ | false | false | 1,134 | cpp | 5441.cpp | #include <cstdio>
#include <algorithm>
using namespace std;
const int maxn = 20001, maxm = 100001, maxq = 5001;
int t, n, m, q, fa[maxn], sz[maxn], sum, ans[maxq];
struct Edge
{
int u, v, w;
bool operator < (const Edge &t) const
{
return w < t.w;
}
} e[maxm];
struct Query
{
int id, w;
bool operator < (const Que... |
b2fcda04e98900b1bb837ca5d7040f8855f8d390 | 7d2ff04f48d636bd673f7058630fdfaf48b731f9 | /jackintheboxzombie.h | 0f6fc3bed81e6c11954a687b162550a2c0e824b9 | [] | no_license | String10/PlantsVsZombiesSimplifiedVersionQtVersion | 2e7b2c14257363894d61626127a509eaabcc9d96 | 20c76fe44dd52097ddab6c491a902467ffebac5d | refs/heads/main | 2023-05-28T10:41:15.322136 | 2021-06-16T10:49:27 | 2021-06-16T10:49:27 | 377,452,937 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 582 | h | jackintheboxzombie.h | #ifndef JACKINTHEBOXZOMBIE_H
#define JACKINTHEBOXZOMBIE_H
#include "zombiebase.h"
#define JACKINTHEBOXZOMBIE_HITPOINT 500
#define JACKINTHEBOXZOMBIE_RECHARGETIME 1000
#define JACKINTHEBOXZOMBIE_TICK 44.0 / 9
#define JACKINTHEBOXZOMBIE_BOMBATK 18000
class JackInTheBoxZombie : public ZombieBase
{
Q_OBJECT
public:
... |
6a8e5f249479edd3db1adc46fbfdc44378f2d746 | 799a21e89a17fffee2508d40072d68e065c903e4 | /ck2486296/Gaddis_7thEd_Chapter3/Gaddis_7thEd_Chap3_prob5/main.cpp | d92d0177c26083543312f24dfa3ed70f5b80930b | [] | no_license | Hillash/CSC5_Spring_2014_42450 | 5b8204b124338587a06210cf4cf05163463ac557 | 7a513d1a2f355da9a62cf86bf7ea5120699004fa | refs/heads/master | 2020-12-28T23:04:32.682727 | 2014-10-01T06:19:38 | 2014-10-01T06:19:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,243 | cpp | main.cpp | /*
* File: main.cpp
* Author: Christopher Kooyman
*Box office
* Created on March 17, 2014, 3:15 PM
*/
//system libs
#include <iostream>
#include <iomanip>
//global constants
const short ATIC=6;
const short CTIC=3;
//system prototypes
//execution begins here!!
using namespace std;
int main(int argc, char** ... |
4c2d95164e950aec97b62e59cb67c23b4d26d4d5 | 08cde8de37c109b7ee222d01c371b31cdba013b7 | /codeforces/1481_a.cpp | 184c15d320f8bc81d4dd2d6afdd8914cb87166a1 | [] | no_license | ayanchyaziz123/all-competitive-programming-documents-and-problem-solving | 6ec534e70ccc78c7744cb662899ca4639bb047f5 | cebc6a6e596a00d4e69d41927f672f82241ef402 | refs/heads/master | 2023-07-12T07:03:48.966461 | 2021-08-21T13:53:51 | 2021-08-21T13:53:51 | 289,900,378 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,222 | cpp | 1481_a.cpp | #include <bits/stdc++.h>
#define ll long long int
#define INF 2e18
using namespace std;
int main()
{
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif
int test_case;
cin >> test_case;
while (test_case--)
{
int x, y;
cin >> x >> y;
... |
e7e472eb7503900dab7b198415696c3793644e03 | 4986032c4189cbaf94c9ab482fae37a4b53e498f | /Client/group2.h | 33fc32cb403c0893dd5a57a378f18d8d6dfb588c | [] | no_license | alibabarahaei/Library_Project_Winform_Client_Desktop | c5c2619b354f293c0e509a79becbf12b44a3886f | 381530a9eb0ae175cfc336bccb8c6b6af2641c22 | refs/heads/master | 2023-07-01T01:20:48.593007 | 2021-08-05T06:21:29 | 2021-08-05T06:21:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 25,209 | h | group2.h | #pragma once
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
namespace Client {
/// <summary>
/// Summary for group2
/// </summary>
public ref class group2... |
00cdfebe340382a571b6a69191249dd8eedeaa84 | 6ff57800d13b3b40c8adb8d14b144c4faffb1137 | /Exercises/05/Task7.cpp | 2de5324578c01a16773c454c39d8717b01dc21f9 | [] | no_license | gaper94/UP_IS_2017 | d5609e36fc5591cbc77645d3d661aa99a91a4e51 | 9f36b78c0bf6a7576bcfd579aa5218232196e9bb | refs/heads/master | 2021-09-04T03:16:57.223295 | 2018-01-15T06:20:25 | 2018-01-15T06:20:25 | 105,460,217 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 571 | cpp | Task7.cpp | #include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
int iCopy, currentDigit;
bool isSpecial;
for(int i = 1111; i <= 9999; i++)
{
isSpecial = true;
iCopy = i;
while(iCopy > 0)
{
currentDigit = iCopy % 10;
if(currentDigit ... |
0609a49ee6b4975f365d5f45ceb3f09b7c5320ff | 613ea6be9abdcdfefb6ca4d2f44efd62d8fd591b | /code/anen.ino | 498406277ac35f66275e1eaca93bffea29667207 | [] | no_license | marsiitr/Universal-Manipulator | 916073625269012bb2c462216b394688ed276953 | 7731bdb3846364d345edcbc397f7dcac49a34ff6 | refs/heads/master | 2020-03-19T10:11:50.184618 | 2018-06-26T14:18:23 | 2018-06-26T14:18:23 | 136,351,581 | 0 | 1 | null | 2018-06-26T14:18:25 | 2018-06-06T15:48:38 | null | UTF-8 | C++ | false | false | 2,363 | ino | anen.ino | void enc_init()
{
//Setting up interrupt
//A changing pulse from encoden1 activated ai0().
attachInterrupt(digitalPinToInterrupt(en1PhaseA), ab, CHANGE);
//A changing pulse from encoden2 activated ai1().
attachInterrupt(digitalPinToInterrupt(en2PhaseA), ba, CHANGE);
}
void ab()
{
// ai0 i... |
b89d1d35743391b0da970e749e89957677c19e1b | 00b7e6b2c7ca45a40f79d19ef4e87d04afe6ef34 | /jni/Furniture/world/tile/FurnitureTiles.h | 3d79eb0c640774c928f2782b8c940310ae6377b9 | [] | no_license | finn287/MrCrayfishFurnitureMod-MCPE | d2f6c8d9a24802191fefa51519787ff3e70123cf | c97b0d178f925c5f0de9f608205ab19d9c0b0c3f | refs/heads/master | 2020-12-30T23:22:38.174381 | 2015-05-04T18:41:11 | 2015-05-04T18:41:11 | 35,110,699 | 1 | 0 | null | 2015-05-05T16:21:30 | 2015-05-05T16:21:30 | null | UTF-8 | C++ | false | false | 422 | h | FurnitureTiles.h | #pragma once
#include "MCPE/world/level/tile/Tile.h"
#include "MCPE/world/material/Material.h"
#include "Furniture/render/tile/FurnitureShape.h"
#include "MCPE/CommonTypes.h"
class FurnitureTiles : public Tile {
public:
static FurnitureTiles* tileTableWood;
static FurnitureTiles* tileTableStone;
static FurnitureTi... |
ab419af62dbe258fb150c76ec7f5d40613a204fc | ca32d531ff2596425ce5218a8e2b732a6744faa0 | /asterisk-cpp/src/manager/events/ShutdownEvent.cpp | e6a524da22ae39aefbc7ad081e2f32ec7a38dde1 | [
"Apache-2.0"
] | permissive | augcampos/asterisk-cpp | a8a115a164194db6e9712c676111af164a8526fb | 921423e0d1b6042d0ce2be6d7b9d98af4feb7460 | refs/heads/master | 2022-07-06T00:37:41.907214 | 2022-07-01T03:51:25 | 2022-07-01T03:51:25 | 2,310,863 | 22 | 15 | null | 2017-09-26T00:10:45 | 2011-09-01T23:05:30 | C++ | UTF-8 | C++ | false | false | 557 | cpp | ShutdownEvent.cpp | /*
* ShutdownEvent.cpp
*
* Created on: May 2, 2012
* Author: augcampos
*/
#include "asteriskcpp/manager/events/ShutdownEvent.h"
namespace asteriskcpp {
ShutdownEvent::ShutdownEvent(const std::string & values) :
ManagerEvent(values) {
}
ShutdownEvent::~ShutdownEvent() {
}
const s... |
18b997aaa3e08aabb902d3a9930944f04e5923e4 | 53a6aa5e4eb9ab54567aefccbac00ae722bbcb72 | /BW-RPG/BW-RPG.cpp | 4043dfd1c182cec3938fe2c64eea879a30463afa | [] | no_license | Jwasik/BW-RPG | 8254dd0a70c0c5b99bc0518a99de18923074bb7a | cc1d8ce56a19fc50200bc5cbc83b5e10585da6f8 | refs/heads/master | 2021-01-07T13:21:06.394681 | 2020-02-24T10:05:14 | 2020-02-24T10:05:14 | 241,706,536 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 108 | cpp | BW-RPG.cpp | #include "includes.h"
#include "GameClient.h"
int main()
{
GameClient g1;
g1.run();
return 0;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.