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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
05b36dd36741246f2307f184787614afa76c2e01 | 9e224420b02534a83d32f1c2400d31927c1f7dcb | /5_Longest Palindromic Substring/Longest Palindromic Substring.cpp | 6cb64d34fb71fb76b9687a182d578a6e0a3096e5 | [] | no_license | zhaogaowei/leetcode | ad42265399da1a096d867699f925bde866bb7fa0 | 4c8de6cfe98e583a2fe45c860136acd828dd5157 | refs/heads/master | 2021-08-23T08:58:30.594351 | 2017-12-04T11:58:07 | 2017-12-04T11:58:07 | 110,125,215 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 177 | cpp | Longest Palindromic Substring.cpp | #include "Longest Palindromic Substring.h"
int main() {
string s1("ccc"), s2("abccbda");
Solution s;
cout << s.longestPalindrome_1(s1)<<endl;
system("pause");
return 0;
} |
c012a0b82315ca7224df353669899e6fd4411a54 | 9875073000f7e81b08ff459831469d293c2800e0 | /Hackerrrank/CandyMaker.cpp | 06485351e297de34ad34b6877bf733ef2714c7ba | [] | no_license | Minato1803/Code_Competition | 47b31cf5eefbd38d4519b034f55f58ca700c05d4 | 21e893c8e9a457f095aa9fbbf8dd439a516cbc4d | refs/heads/master | 2023-02-17T04:52:31.070539 | 2021-01-20T11:41:30 | 2021-01-20T11:41:30 | 161,519,880 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,912 | cpp | CandyMaker.cpp | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define db double
#define fix_set(x) fixed<<setprecision(x)
#define buff ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define Input freopen("E:/code/testing/input.txt", "r", stdin)
#define Output fr... |
689b10ce2be52f6b70763a5f10f4f80199139ec6 | 9f5d5a3fddddba2980a93df3b1766ac2394a353f | /Tools.h | b3f62f3c09b78be8f7d96882d014cbefaeac55cb | [] | no_license | tectronics/RFClientServer | b604726e2c5dd888bbae4289650b4318e3a3efb5 | bb497d7a027645eda18500c4a186984e6619b599 | refs/heads/master | 2017-05-22T11:09:54.458796 | 2016-01-31T16:57:12 | 2016-01-31T16:57:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,167 | h | Tools.h | #ifndef TOOLS_H
#define TOOLS_H
#include <iostream>
#include <sstream>
#include <fstream>
#include <cstring>
#include <map>
#include <time.h>
#include <sys/time.h>
#include <vector>
#include <cstdio>
#include <memory>
#include <tr1/memory>
#include <algorithm>
#include <functional>
#include <cctype>
#include <locale... |
9f18e300fe119a166d49d9d068d8760ab8462fd4 | 221e8e82fd30b667b43a28b162ba7c19e216c7a7 | /구직자_오전/CPP/상속_프렌드/0602/실습/DftProduct.cpp | 3587207506fca850349b0334319fda047bd89c25 | [] | no_license | godls1650/ByteC | edecda387990726b4bca9d26dba512dd52503dc0 | 2ff14c9c0c9bb8f9bf375d5e23a30d8e4fe4b712 | refs/heads/master | 2022-11-28T00:06:03.795278 | 2020-08-07T08:54:43 | 2020-08-07T08:54:43 | 256,149,399 | 0 | 1 | null | null | null | null | UHC | C++ | false | false | 2,428 | cpp | DftProduct.cpp | #include "DftProduct.h"
DftProduct::DftProduct():m_nPdCode(0),m_nPrice(0),m_nStock(0){
m_sPdName = string();
m_sPdCompany = string();
m_sPdSellerNM = string();
};
DftProduct::DftProduct(int code, string name, string company, string seller,int price, int stock):
m_nPdCode(code), m_nPrice(price), m_nStock(stock)... |
f9c8112baaf3d1a0c7bc44d0024a016d7dee6383 | 8ccd56623982d8101b11e03f14d7d2f3928c89ef | /C++/Day2/part2.cpp | d7d679edc03667984cfe48953e2e9d2820f8a751 | [
"MIT"
] | permissive | AD9000/AdventOfCode | 584e0af15101038975e1489c70481a7c0aeb9c3b | b65beac7a2cbca25cb2d673fcdfb3999864a61fa | refs/heads/main | 2023-02-06T10:55:36.895373 | 2021-01-01T03:19:40 | 2021-01-01T03:19:40 | 320,850,243 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 622 | cpp | part2.cpp | #include <iostream>
#include <cstring>
using namespace std;
#define FASTIO \
ios_base::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0);
int main()
{
FASTIO;
int start, end;
char dash, letter, colon;
string line;
int count = 0;
while... |
5fda8bb7664264a6ea7b157e1b5ae707e125f0dd | eb36aca43fe47e9c894f3cdd9cf7eacf493e76b4 | /windows_server/server.cpp | d69d927493d11e029f326c7175e7ab78e88d1017 | [] | no_license | EluvK/Chatroom | 2caf431b3bd57e2b32b63419d6336a4212b405ac | a16bf8aa9c2f8148ffad65d36d59594d754bd038 | refs/heads/master | 2020-12-07T22:35:56.142333 | 2020-01-11T09:08:09 | 2020-01-11T09:08:09 | 232,818,139 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,575 | cpp | server.cpp | #include "server.h"
Server::Server() {
WSADATA wsaData;
if(WSAStartup(MAKEWORD(2, 2), &wsaData) < 0) {
exit(0);
}
//创建套接字
SOCKET servSock = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP);
//绑定套接字
sockaddr_in sockAddr;
memset(&sockAddr, 0, sizeof(sockAddr)); //每个字节都用0填充
sockAddr... |
a5308c944c01feb26a5c910625a9b729ca18406c | 7548ff48005d063d31033fd0129ab6461ec2f305 | /URI/1073---Quadrado-de-Pares.cpp | 5d7ed5588c4d822761526de06be50c928941eb68 | [] | no_license | elissandro13/Problems-Solved | 423d554b604f03dadbef7461efe96886eb0c71dd | 1b3b745283c5cd19a5f988120cb95ba151b9e5f8 | refs/heads/master | 2020-06-26T20:33:36.652931 | 2020-04-07T20:20:30 | 2020-04-07T20:20:30 | 199,749,609 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 197 | cpp | 1073---Quadrado-de-Pares.cpp | #include <stdio.h>
#include <stdlib.h>
int main() {
int x, n;
scanf("%i", &n);
for (x = 1; x <= n; x++) {
if (x % 2 == 0) {
printf("%i^2=%i\n", x, x * x);
}
}
return 0;
}
|
398ab6052f207b2b3560471f92bd3c7820d25c20 | 291b317b68529a553179c8fe111f11f624c60689 | /pattern/observer/ConcreteObserver.h | cba201d9dff2f4fd1d8f87778ae3337f4473d596 | [] | no_license | jelly074100209/pattern_in_cpp | dc05d928bc98a1870b7914dbb51aed6e4c324c4f | f2acaed9fb0f393b9a5ce52d1c655cc07fb2859e | refs/heads/master | 2023-06-27T03:17:37.697239 | 2023-06-10T10:09:08 | 2023-06-10T10:09:08 | 71,435,495 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 400 | h | ConcreteObserver.h | /*
* ConcreteObserver.h
*
* Created on: 2016年10月24日
* Author: JSS
*/
#ifndef PATTERN_OBSERVER_CONCRETEOBSERVER_H_
#define PATTERN_OBSERVER_CONCRETEOBSERVER_H_
#include "Observer.h"
class ConcreteObserver: public Observer {
public:
ConcreteObserver();
virtual ~ConcreteObserver();
virtual... |
ebac5fa6b322e584e33571fee6dc0c0bfde57b1d | 07ddf64f1532f15b8f75b8eb0f21a4476e70368d | /GLT/Shader.cpp | bc54c36e517f87c90bd5c6d5d912b8a2aee98285 | [] | no_license | DuckMonster/GLT | 2e61ee1d32f6def543e252a3dd5822c87f55edb8 | 34af3fd47face137c438f3b6456c35bfaadb35fe | refs/heads/master | 2020-04-16T23:48:46.158176 | 2017-02-10T08:07:39 | 2017-02-10T08:07:39 | 52,892,280 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,089 | cpp | Shader.cpp | #include "Shader.hpp"
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <glm\gtc\type_ptr.hpp>
#include "Log.hpp"
using namespace std;
using namespace glt;
using namespace glm;
using namespace glt::debug;
// Currently used program
GLuint Shader::activeProgram = -1;... |
7e1aaa4f61f4dd8cb65f198e05a035a0fe9f198b | 370e6f99b6180939322c67629c62b5cae0b2f2d5 | /data/leetcode/56.cpp | 13882d4639a5781d9216875f94f242e31c028508 | [] | no_license | zhuwenboa/data_struct | 40e5625af67080855d1ea27b45e8b51c0df279b9 | 0511b01a59117fad6966e98a839b687cb31c9900 | refs/heads/master | 2021-06-10T15:16:11.586819 | 2021-03-23T07:02:45 | 2021-03-23T07:02:45 | 150,682,316 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,252 | cpp | 56.cpp | #include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
class Solution
{
public:
vector<vector<int>> merge(vector<vector<int>>& intervals)
{
if(intervals.size() == 0)
return intervals;
sort(intervals.begin(), intervals.end());
vector<vector<int>> res;... |
bbaf930d7d5d405ba2e039b8a547ac938f828ee4 | 91a882547e393d4c4946a6c2c99186b5f72122dd | /Source/XPSP1/NT/enduser/stuff/itircl/inc/mvsearch.h | 0578b0519afdcb85b1fa9a44b1edd13bca674b68 | [] | no_license | IAmAnubhavSaini/cryptoAlgorithm-nt5src | 94f9b46f101b983954ac6e453d0cf8d02aa76fc7 | d9e1cdeec650b9d6d3ce63f9f0abe50dabfaf9e2 | refs/heads/master | 2023-09-02T10:14:14.795579 | 2021-11-20T13:47:06 | 2021-11-20T13:47:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 34,783 | h | mvsearch.h | /*************************************************************************
* *
* Copyright (C) Microsoft Corporation 1990-1994 *
* All Rights reserved. *
* ... |
cbd4e4b392aef0bfccf5528a1b4f65fec7044b2e | 3755cd56bdd0a7ad5ce7f8c5539b4d5a920ef512 | /Semester1/HomeWork7/7.2/7.2/7.2/7.2.cpp | 0f4620a04174fcea0dd872b281bf473b913f1936 | [
"Apache-2.0"
] | permissive | NikitaBabich26rus/SPbU-HomeWork | 3e314b4f90a937f31086e12fbe49684d0e53322d | f95dd0da5b7ba673bd58a2f0cc68887d7c9da1bf | refs/heads/master | 2023-08-23T16:12:26.124582 | 2021-10-12T10:18:36 | 2021-10-12T10:18:36 | 213,057,600 | 4 | 0 | Apache-2.0 | 2021-10-12T10:11:10 | 2019-10-05T19:17:15 | C# | UTF-8 | C++ | false | false | 911 | cpp | 7.2.cpp |
#include <stdio.h>
#include "List.h"
int algorithm(int size, int count)
{
List* list = createList();
for (int i = 0; i < size; i++)
{
push(list, i + 1);
}
ListElement *parent = takeTail(list);
while (parent != takeNextElement(parent))
{
for (int i = 0; i < count - 1; i++)
{
parent = takeNextElement(p... |
ab0350006da59e6b6bc206647c98f4ba9fee4c1f | e3de77cd1f1ca94ecb626d71cce2acb2ca5a22b2 | /SocketModem/utils/MTSText.h | a16322b18c8e3fbe13dfa1def5f8327625be2f86 | [] | no_license | cduck/bikeOdometer | e5f16d7cb7a5787a47384fcd35f351db7fafebd1 | 47e0c36d362be74e8c1aa312618d8db603c03e0b | refs/heads/master | 2021-01-10T13:28:35.704907 | 2015-12-16T23:56:03 | 2015-12-16T23:56:03 | 44,568,444 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,485 | h | MTSText.h | /* Universal Socket Modem Interface Library
* Copyright (c) 2013 Multi-Tech Systems
*
* 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
... |
5ac7df329e7b121d3569e24c13d65a069f0da19d | 608a2e871c7b534a3922914595c294dc147a5310 | /Source/FireAndIce/PlatformMoving.h | 3fbbab1fa693b5714133a63b9485ca3429de577c | [] | no_license | aokeefe97/FireAndIce-Test | 0214094f2e8f2d1ed3cb06981b67c2265d8e58c9 | e665709bc18d384c5046164105b59e7a46d2b27d | refs/heads/master | 2020-03-11T10:09:48.629277 | 2018-04-17T16:31:16 | 2018-04-17T16:31:16 | 129,934,656 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 786 | h | PlatformMoving.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "PlatformBase.h"
#include "PlatformMoving.generated.h"
/**
*
*/
UCLASS()
class FIREANDICE_API APlatformMoving : public APlatformBase
{
GENERATED_BODY()
public:
APlatformMoving();
UPR... |
57d0e5a9811a10145312c63c01ce75f33c8c24e1 | becf02ce503bf193cc436ae05aaf0874214f38ad | /LogisticFlow.h | 831c29f1bb714ed872bbfd69dcb5c337f5222bbc | [] | no_license | fredlsousa/EmulationAPI | 9598d1eb28d69903bcd859b061847bb30895bf48 | 2986210fdf12315f7f196d9d0b05495ffdc11bde | refs/heads/master | 2020-05-27T18:09:56.694453 | 2019-12-24T05:29:17 | 2019-12-24T05:29:17 | 188,737,178 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 402 | h | LogisticFlow.h | //
// Created by Frederico on 07/06/19.
//
#ifndef API_SINGLETON_LOGISTICFLOW_H
#define API_SINGLETON_LOGISTICFLOW_H
#include "FlowImpl.h"
#include "System.h"
class LogisticFlow : public FlowImpl{
public:
LogisticFlow();
LogisticFlow(System*, System*);
LogisticFlow(const string&, System*, System*);
~... |
8607d5f132264c49899caacd764baa0fc742611c | 9cc35bb73ac837b14abca57bd46d92fca8b8f3e4 | /src/moveSCU/MoveExecuteSCU.h | bbfb52d17d48e1bb141f2807f69b8493f625fb24 | [] | no_license | cambrian07/WeDICOM | d278f829810d772dc8a9642bbc54ba7a4cf8fe92 | 1e0c2846529a9f5822f6ddfb27479e811367fa0b | refs/heads/master | 2018-12-28T20:15:24.572706 | 2015-07-10T08:42:57 | 2015-07-10T08:42:57 | 37,645,850 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,345 | h | MoveExecuteSCU.h | #pragma once
#include "MoveSCUSubOpSCP.h"
#include "dcmtkinclude.h"
#include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */
#include "dcmtk/ofstd/ofcond.h" /* for class OFCondition */
#include "dcmtk/dcmdata/dcxfer.h" /* for E_TransferSyntax */
#include "dcmtk/dcmnet/dimse.... |
c27ce2a99fc7f03ecaaff0c002ed2302e8e57117 | 0cb85cd0c88a9b9f0cca4472742c2bf9febef2d8 | /PPP/ScIEPlugin/ClsFact.h | 47512910e12a49bce58063927c1879d686f19484 | [] | no_license | seth1002/antivirus-1 | 9dfbadc68e16e51f141ac8b3bb283c1d25792572 | 3752a3b20e1a8390f0889f6192ee6b851e99e8a4 | refs/heads/master | 2020-07-15T00:30:19.131934 | 2016-07-21T13:59:11 | 2016-07-21T13:59:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,039 | h | ClsFact.h | /**************************************************************************
File: ClsFact.h
Description: CClassFactory definitions.
**************************************************************************/
#ifndef CLASSFACTORY_H
#define CLASSFACTORY_H
#include <windows.h>
#include... |
8ec0b14c95ba57a19daccbbdc3b773779a8cfdb7 | 363687005f5b1d145336bf29d47f3c5c7b867b5b | /atcoder/abc129/b/Main.cpp | d1c7829aa041e8aa6309e912327891da53df0c14 | [] | no_license | gky360/contests | 0668de0e973c0bbbcb0ccde921330810265a986c | b0bb7e33143a549334a1c5d84d5bd8774c6b06a0 | refs/heads/master | 2022-07-24T07:12:05.650017 | 2022-01-17T14:01:33 | 2022-07-10T14:01:33 | 113,739,612 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 577 | cpp | Main.cpp | /*
[abc129] B - Balance
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<int, int> pii;
typedef pair<ll, int> pli;
typedef pair<ll, ll> pll;
const int MAX_N = 100;
const int INF = 1e9;
int N;
int W[MAX_N];
ll solve() {
int ans = INF;
for (int t = 0; t < N; t++) {
... |
986305858082875dbe907df7ba3abb290d776fce | faab032868944112bc0ac8d2f0bcf1d4bd801c17 | /menu/MenuDrag.h | 003fea3ab03eed6f7515e50228372aa763e16028 | [
"MIT"
] | permissive | luissifu/tankcoder | b3fb4410bd5ac343ee2f98d8dba9b4a569c40bfb | 11d7a010a02ad8e2dc1c230e86f67262532a85a4 | refs/heads/master | 2020-06-04T14:16:22.660361 | 2014-11-27T17:59:27 | 2014-11-27T17:59:27 | 24,907,435 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 322 | h | MenuDrag.h | #pragma once
#include "MenuItem.h"
class MenuDrag : public MenuItem {
public:
MenuDrag();
void mouse_moved(float px, float py, bool pressed);
MenuEvent event;
private:
bool inside(float px, float py);
bool dragging;
bool in_drag;
float original_x;
float original_y;
float mouse_x;
float mouse_y;
}... |
82a9182050cfcf9de20c9a02c34621431bd6546a | 18ef53fe4cbadeae223032b4b1efad74044f5bee | /Standart_Tree.cpp | b0980965710bcb4a16d57c825079ed9a589c84cf | [] | no_license | kostya2709/New_Roman | 9039eb33bdfc40a38fb17c1c679c3e546ab4625a | f1e3434bef05f687fd7d29bf06f3789578ae05a6 | refs/heads/master | 2020-09-27T18:05:02.982410 | 2020-06-05T08:54:18 | 2020-06-05T08:54:18 | 226,575,459 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,625 | cpp | Standart_Tree.cpp | #include "Front_Head.h"
void Back_End_Cycle(Node* start, int comp);
void Push_Stand_Call_Func (Node* start);
void Push_Stand_Func (Node* start);
void Call_Func (Node* start);
static FILE* f;
static Hash* hash;
static int comp = 0;
static int cond = 0;
void Push_Stand_Expr (Node* start)
{
if (start->left)
... |
0af6b74c76ac13c96ebe68fc001a11a957475842 | 9b220e880425151aa55407a774cef67510e1e1be | /editorui.h | 77982f6ae5b1430022dacda45741b2840f4a3467 | [
"MIT"
] | permissive | Aspor/moleculeIdentificator | 0f7ccc91fe8b5d8f7ac9af437706e3c23921e9e5 | 5f44f243c7012e981e5287bab2ef20721b917249 | refs/heads/master | 2020-05-21T21:00:39.819050 | 2019-05-02T12:37:11 | 2019-05-02T12:37:11 | 64,826,975 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 745 | h | editorui.h | #ifndef EDITORUI_H
#define EDITORUI_H
#include <QWidget>
#include"editorscene.h"
namespace Ui {
class EditorUi;
}
class EditorUi : public QWidget
{
Q_OBJECT
public:
explicit EditorUi(QWidget *parent = 0);
~EditorUi();
EditorScene* getScene();
signals:
void molInf(QString);
void elements(i... |
e0770fc0eecba38106cccad5d8b6c38c74677fb0 | 430ba077bb8220ea695b1e14c52a13fbaed9b04b | /src/wss-echo-server/Config/Spec/type.def.hpp | 8d70e268f00fccde4eb5fd983248fd90ec8136ab | [] | no_license | Zistack/net-test | b84e2a3bfc097ab1f2fc424b9108c00847c75ac1 | 3df21b06cf8563dabc4c07922003a1a5e1e44ff8 | refs/heads/master | 2020-07-24T12:52:28.728508 | 2020-01-10T19:37:54 | 2020-01-10T19:37:54 | 207,934,492 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 447 | hpp | type.def.hpp | template <typename Wrapper>
using T = GetConfig::Section::T
<
Wrapper,
GetConfig::Member::T
<
TLS::Server::Config::T,
false,
TLS_CONFIG,
TLS_CONFIG_DESCRIPTION
>,
GetConfig::Member::T
<
HTTP::Server::Config::T,
false,
HTTP_CONFIG,
HTTP_CONFIG_DESCRIPTION,
HTTP_CONFIG_DEFAULT
>,
GetConfig::Memb... |
22d1d427087c833d0469208e8fa2482121bb34ac | 0c258214302025d721e8569a0892b852de2b451a | /FinalProject/Chart.h | 12947ce70b453b95da1ced2cf75fae294e48f2c5 | [] | no_license | emanguy/cmsc435-final-project | 3415643192515c12d329714f70ab8498806f2935 | 62692c0f23037107c5b48c346f7a5250af3054e9 | refs/heads/master | 2021-01-21T14:02:13.497204 | 2016-05-17T16:00:55 | 2016-05-17T16:00:55 | 57,247,754 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,323 | h | Chart.h | // Name: Jason de Bernard
// File: Chart.h
// Email: d105@umbc.edu
// Description: Graph class that has a bunch of bar graphs
#ifndef CHART_H
#define CHART_H
#include <iostream>
#include <list>
#include <map>
#include <vector>
#include <string>
#include <algorithm>
#include <QGLWidget>
#include "DDIMatrix.h"
#include... |
4fd101cdfad2cc55e1b2bb9d03e4c394c703fafc | a33aac97878b2cb15677be26e308cbc46e2862d2 | /program_data/PKU_raw/88/1433.c | 17964ce325402817c1ef8f63ef5146915a7f1b0c | [] | no_license | GabeOchieng/ggnn.tensorflow | f5d7d0bca52258336fc12c9de6ae38223f28f786 | 7c62c0e8427bea6c8bec2cebf157b6f1ea70a213 | refs/heads/master | 2022-05-30T11:17:42.278048 | 2020-05-02T11:33:31 | 2020-05-02T11:33:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 736 | c | 1433.c |
int main()
{
char q,*p;
int now;
scanf("%c",&q);
while (!((('0'<=q) && ('9'>=q))))
{
scanf("%c",&q);
// printf("%c\n",q);
}
long tot=0;
while (q!='\n')
{
if (('0'<=q)&& ('9'>=q))
{
tot=t... |
456c8a5c83f8d2bdcd0016a6473efddd8bc1a63a | 19768702dedab7bfc01c21eaadca645e6034e55c | /iwkats_core/core/iwkats_core.cpp | 2cba015fcaad46f8003c84b1cf917786990dfc60 | [
"Apache-2.0"
] | permissive | GenKnight/gemms | 2949e4bf5798d0a74ccc703de2c0437fa437c0b7 | 22efad39f54cadad44f8c6789e3eb268771a9e48 | refs/heads/master | 2020-03-29T17:58:24.419642 | 2017-12-26T10:35:12 | 2017-12-26T10:35:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 546 | cpp | iwkats_core.cpp | #include "iwkats_core.h"
IWKATS_NAMESPACE_BEGIN
char* GetErrorMsgByCode(int err_code) {
switch(err_code) {
case kLimitReqSeconds: return "每秒发送请求数量超限";
case kQueueLimit: return "请求队列超限";
case kNetwordError: return "网络原因ctp失败";
case kSuccess: return "Success";
case kUnpackMsgError: return "解包失败";... |
4d341ff4f85da7fcd492fdeff1612069ab209b13 | a3d3f686b6951125676356c60c4c7ddc3faed99f | /hello/hello.cpp | a5acb6abf6fc3b804e157549d82fe45e98ff6f3e | [] | no_license | lauvinson/c-study | 32a1e40aee8375cf69dca9b15d80b63232cf9f78 | 0318fa068ec65468f0ff59f27ab90f07992ca440 | refs/heads/master | 2022-11-21T11:25:08.281135 | 2020-07-21T07:53:56 | 2020-07-21T07:53:56 | 170,807,486 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 519 | cpp | hello.cpp | /*~vinson~ c/c++学习项目*/
/*
1:未使用面向对象结构时,编译时使用~顺序编译~。
2:函数可以声明在前,实现在后。
*/
using namespace std;
#include "func.h"
/********************************************************/
int main() {
//printTypeSize();
//cout << &ALARM;
//double sinV = getSin(30.2);
//printRand();
//pointer();
//reference();
//getDateTime... |
57f9c1120a21badf2a1cdb798079173df05acab8 | 63f1efd54e45a5e78f23aef855a4e412754a6f42 | /src/core/v4/fft/fftmkl_plans.hpp | 733b64111405fbcfcc3ada6c6c51eefe940b1e85 | [] | no_license | spirosn/znn-release | 81d4be35c0c931f31fad5cb116992832bd19bac6 | c08f9b86bb5a433e3df51df2bc983468135f1881 | refs/heads/master | 2021-01-17T14:12:32.457391 | 2015-08-21T16:59:37 | 2015-08-21T16:59:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,051 | hpp | fftmkl_plans.hpp | #pragma once
#include <mkl_dfti.h>
#include "../types.hpp"
#include "../cube/cube.hpp"
#include <zi/utility/singleton.hpp>
#include <zi/time/time.hpp>
#include <map>
#include <iostream>
#include <type_traits>
#include <mutex>
namespace znn { namespace v4 {
inline vec3i fft_complex_size(const vec3i& s)
{
auto ... |
b2f18e01978b682ce5e82246e544a22bde4bfb44 | c7b6a7218e6f7a9e786e0f452ac219e8bb396b64 | /src/DigitalEqualizerRemote.hpp | e50b6e7ea6c5bf7419496061a968ab0989c9b743 | [] | no_license | artudi54/DigitalEqualizerRemote | b631261dab8011857927787d22502a383a60d448 | 2deff37b4925195721e9c383b8d17fb8118693db | refs/heads/master | 2020-12-12T07:33:13.544237 | 2020-01-14T22:41:35 | 2020-01-14T22:41:35 | 234,079,294 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 647 | hpp | DigitalEqualizerRemote.hpp | #pragma once
#include <QQmlApplicationEngine>
#include <QQuickWindow>
#include <controller/PlayerController.hpp>
#include <model/ConnectionModel.hpp>
#include <model/PlayerModel.hpp>
class DigitalEqualizerRemote {
public:
DigitalEqualizerRemote();
~DigitalEqualizerRemote();
void startConnecting();
vo... |
18208120429f1280b0f930c95a58b97389c0adfb | 9ad40d7fff54f5e4f36ae974e33712a9beb7378e | /AUG20B/chefwars.cpp | 4854ce6f3897658140b692c7b55c1dcad1d060e2 | [] | no_license | vikram-shaw/cpp | 7fcac406b003dd717abe43fc5f15ea253b486b1d | 8d4367dedef4e48aed649c8174cee74d38be09ea | refs/heads/master | 2023-01-31T19:13:04.363704 | 2020-12-20T05:50:24 | 2020-12-20T05:50:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 394 | cpp | chefwars.cpp | #include<bits/stdc++.h>
using namespace std;
void solve()
{
int h,p;
cin>>h>>p;
bool chef = true;
for(int i=1;i<18;i++)
{
h -= p;
p >>= 1;
if(h <= 0)
break;
if(p == 0)
{
chef = false;
break;
}
}
if(chef)
puts("1");
else
puts("0");
}
int main()
{
int t;
scanf("%d",&t);
for(... |
e4be8b985918c5737ac8933f527ca2547e4ed126 | f740dc97dd5c4556d3bccef34fa7105abc640b67 | /src/lib/self/Itplayer.cpp | f6cd1cd7f0add56b6dd3592e1c7c2a23ffa53365 | [
"MIT"
] | permissive | waynehuge/autoshadower | c778c70292e31d761554dbd30a502e58d51e83b4 | 994f59a844f2d34a4695529c60982dda55bc633d | refs/heads/master | 2021-01-14T11:35:49.457024 | 2016-02-15T12:59:23 | 2016-02-15T12:59:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,972 | cpp | Itplayer.cpp | // last modified
#include "Itplayer.h"
#include <iostream>
#include <algorithm>
#include "../helper/Misc.h"
#include "../helper/RichTxt.h"
using namespace std;
const string Itplayer::itplayer_url("http://it-player.com/");
Itplayer::Itplayer (Certificate::Mode mode, const string& url_test, const string& savas_path... |
6043956f7d56be76e7eff49f66a30081c4d11432 | 5f1ab94bba0fbf3b3471c8f596db6b34cae538f1 | /adaboost_r/test/7_1/plus_7_1.cpp | bcef269edc8193901b1d31cd14b73bb6561d8514 | [] | no_license | momokomir/MLP_inversek2j_experiment | a2a5c6d2b554340d0efefe7fc7750d72bd52fccf | 7a1b79722205014acbef633b9b8960b8e6a1993d | refs/heads/master | 2021-01-11T01:33:19.299802 | 2016-12-05T02:32:11 | 2016-12-05T02:32:11 | 70,691,240 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 748 | cpp | plus_7_1.cpp | #include<iostream>
using namespace std;
#include <fann.h>
#include <fann_cpp.h>
#include <floatfann.h>
int main()
{
FANN::neural_net nn;
const float desired_error = 0.00001;
const unsigned int max_epochs = 500000;
const unsigned int epochs_between_reports = 1000;
const unsigned int layers_count = 3;
const u... |
3578576db582d13504e3620e6fdc939f5d5c05b3 | f56b38def3b049783a643f2bc6e5adda1a1680ef | /fg_lite/feature/FillMapDataBTreeVisitor.h | 9393d82479104ca5e72d4ce7d4757215248036c1 | [] | no_license | wxxlouisa/FeatureGenerator | fb168a5ce3b450d20c9707443ef8070de0d7bd14 | ae5fbcf8781803d7c414fc025b038488b28ef579 | refs/heads/master | 2023-08-17T12:09:01.814151 | 2021-09-24T12:09:04 | 2021-09-24T12:09:04 | 409,458,951 | 0 | 0 | null | 2021-09-23T05:23:50 | 2021-09-23T05:23:50 | null | UTF-8 | C++ | false | false | 1,088 | h | FillMapDataBTreeVisitor.h | #pragma once
#include <map>
#include "fg_lite/feature/BTree.h"
namespace fg_lite {
template<typename KeyType, typename ValueType>
class FillMapDataBTreeVisitor : public BTreeVisitor<KeyType, ValueType> {
public:
FillMapDataBTreeVisitor(const std::map<KeyType, std::vector<ValueType> > &doc, int blockSize) {
... |
c3014aaab951d2518bbe3c1b2e52d0bfe6e12117 | 5bf0e73d5b42ee43e25370ad6719dcf776fb2005 | /Game/GamePlayer.cpp | da1cf97ff3028f712db28c68f5fd0cc3dee5a188 | [] | no_license | Tomkor9/FirstGame | 09f0ffde6c020f6b7e75392545833bf10a626d37 | 48a5b2434a5ec99d0e8386d55d5785291c52d046 | refs/heads/master | 2021-07-12T08:38:45.681060 | 2019-02-08T23:43:00 | 2019-02-08T23:43:00 | 147,971,222 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 531 | cpp | GamePlayer.cpp | #include "GamePlayer.hpp"
GamePlayer::GamePlayer()
{
}
GamePlayer::GamePlayer(Sprite& _sprite)
{
sprite = _sprite;
rb.Initialize(0.01F, 1.01F, sprite.GetPos(), sprite.GetRot(),
sprite.GetScale(), sprite.GetSize(), sprite.GetSpeed());
}
void GamePlayer::Update()
{
sprite.Update();
rb.Update();
}
void GamePlay... |
b675002ca10b8e56306f964c7cb3444623677505 | 262f6017fb11ffd4866cbb47fb77651fea2ac33b | /ORPR/transports-1.0.2-OR/src/id/selfsign.cc | c4790273c88c3f508f3ca4575d41ecc4505026d3 | [
"MIT"
] | permissive | jdecouchant/PAG | 80fd4f46ab385ad7712fab13fd048762dfe8a155 | 99c1d6afac05e3f4b488e45e6ef08c17aed6d193 | refs/heads/master | 2021-01-10T09:02:12.373322 | 2015-12-18T17:16:40 | 2015-12-18T17:16:40 | 48,244,867 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,752 | cc | selfsign.cc | #include "peerreview/transport/id/selfsign.h"
#include <openssl/opensslv.h>
#if OPENSSL_VERSION_NUMBER<=0x0090701fL
#define openssl_ptr_type unsigned char**
#else
#define openssl_ptr_type const unsigned char**
#endif
#define SUBSYSTEM "selfsign"
#define panic(a...) do { fprintf(stderr, a); fprintf(stderr, "\n"); abo... |
6ba07bee43540a4dd7e459f1927a9c4ed557f0d9 | 972eeaa52538744daf5b597a3d387b704779fcc8 | /C++/stack.cpp | 34da2a93e63c1f9fdc2d571b9c5a51242c3b8125 | [
"MIT"
] | permissive | yonisimian/containers | 0a8ac1d41f48b1adb815bacfb6ac9e0f34080906 | 914a23c48968969b3ace06afaca81cecc3d1d1d2 | refs/heads/main | 2023-09-02T23:04:36.935307 | 2021-10-27T19:15:38 | 2021-10-27T19:15:38 | 392,098,249 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,130 | cpp | stack.cpp | #include "stack.h"
template<class T>
Stack<T>::Stack(int size) : data(new T[size]), size(size), nextIndex(0) {}
template <class T>
Stack<T>::Stack(const Stack<T>& s) :
data(new T[s.size]), size(s.size), nextIndex(s.nextIndex) {
for (int i = 0; i < nextIndex; ++i)
data[i] = s.data[i];
}
template <class T>
Stack<T... |
3516338002b115b4d6214c6b5d5f660ac7e17d84 | fe3cda9cf77b9afff5de9db1078d2316e95df2e6 | /kstar/opisrc/src/EC1/src/ECCD_Gyrotron_1.h | 3245b6e72eb3c71041bc7949ca1378899025976b | [] | no_license | Sangil-Lee/RefCode | c230f9dbab9246c510799cc8bc523e8acfdcf008 | c9bd25d1a9033c0071b70eab17b442b535a188fb | refs/heads/master | 2023-08-08T15:38:42.616284 | 2023-07-22T01:28:15 | 2023-07-22T01:28:15 | 34,648,348 | 3 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 496 | h | ECCD_Gyrotron_1.h | #ifndef ECCD_GYROTRON_1_H
#define ECCD_GYROTRON_1_H
#include <QtGui/QWidget>
#include "ui_ECCD_Gyrotron_1.h"
#include "qtchaccesslib.h"
class ECCD_Gyrotron_1 : public QWidget
{
Q_OBJECT
public:
ECCD_Gyrotron_1(QWidget *parent = 0);
~ECCD_Gyrotron_1();
private slots:
void slot_MMPS_Stat_Desc(double);
vo... |
9ef1655c4d7333512929af412df52071449e4581 | eb2f8b3271e8ef9c9b092fcaeff3ff8307f7af86 | /Grade 10-12/2018 autumn/Shenzhen Middle School/1375/t2/tt2.cpp | 6c13585744c71fc1e84e915473980083d886d08f | [] | no_license | Orion545/OI-Record | 0071ecde8f766c6db1f67b9c2adf07d98fd4634f | fa7d3a36c4a184fde889123d0a66d896232ef14c | refs/heads/master | 2022-01-13T19:39:22.590840 | 2019-05-26T07:50:17 | 2019-05-26T07:50:17 | 188,645,194 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 915 | cpp | tt2.cpp | #include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<cassert>
#include<map>
#define ll long long
using namespace std;
inline int read(){
int re=0,flag=1;char ch=getchar();
while(!isdigit(ch)){
if(ch=='-') flag=-1;
ch=getchar();
}
while(isdigit(ch)) re=(re<<1)+(re<<3)+ch-'0',ch=getc... |
692fcb4302b33665b0ea9dd536ab28b0a1d73e66 | 0eaa67e8138079c175a77b979285d55eecab73c5 | /ARVision/manual.cpp | 4c449c1aa99a5203928bbe646db6ff006f99a4ac | [] | no_license | DatabasesWorks/AvisionR---Windows-GUI-Application | 98aa73c3141a44852ca5eacc1ed0d47394d0edd8 | c64b393f0d0552a5a8ba28fb940c2ff527805f9c | refs/heads/master | 2020-04-05T01:22:49.203200 | 2015-05-06T22:11:41 | 2015-05-06T22:11:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,638 | cpp | manual.cpp | #include "manual.h"
#include "ui_manual.h"
#include "database.h"
Manual::Manual(QWidget *parent, QString name, Log *log) :
QDialog(parent),
ui(new Ui::Manual)
{
ui->setupUi(this);
globalName = name;
thisLog = log;
QPixmap windowIconPix("pixMap/eye.png");
QIcon windowIcon(win... |
24e32d8ce8fc4a2bb710a9ce23812e00ec8887e3 | 46abd1e564dd3812c0a93f6c7535b34365786eed | /example/src/ofApp.cpp | 64bb1fac084b4aaf1e1dcc3778019a85c8e5416c | [] | no_license | ryokomy/ofxCameraExtended | e0894d4bbc6cf27c2f790dfeb1cd66a09624130a | 093bab97220b2ae460b5cd1b1e177bd9705060cf | refs/heads/master | 2021-07-10T15:32:46.977000 | 2017-05-29T05:57:25 | 2017-05-29T05:57:25 | 92,705,516 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,339 | cpp | ofApp.cpp | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofEnableDepthTest();
// use meter scale
// easy_cam
easy_cam.setNearClip(nearclip);
easy_cam.setFarClip(farclip);
easy_cam.setDistance(8);
easy_cam.orbit(45, -15, 8);
// orbit_cam
... |
bd57f215ce5f52b243043feb28fab10faeaecb80 | 17b772300ca681e99625e5f0149a7f00f6d15f2c | /Zoo_Managment_System/Giraffe.cpp | 559fc6e6a36297807910af273ef01da53291ba59 | [] | no_license | ZoharBergman/C-second-part | 357d41848579f1742297152d98a135a62e19ba02 | e562a94bbb6ecea8260220e16ea347015bc5cb8b | refs/heads/master | 2021-07-11T05:38:51.434583 | 2017-10-14T19:06:35 | 2017-10-14T19:06:35 | 104,094,602 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 276 | cpp | Giraffe.cpp | #include "Giraffe.h"
Giraffe::Giraffe(const char *name, float weight, int birthYear, float lengthOfNeck) :
Animal(weight, birthYear, name), lengthOfNeck(lengthOfNeck){}
void Giraffe::toOs(ostream& os) const
{
os << ", Length of neck: " << this->getLengthOfNeck();
} |
7532ccd0b3ceadb4f1ac24d32b1fef5a82d543d9 | decafdd9e99fccbe3cc04466a3072bf9a97e081d | /TP1/Service.cpp | c3381b38a0b247ecf7e52d112c971bb33aaab034 | [] | no_license | CGHoussem/telcom-cpp | 66b1536433dea8b4f48939f0c226494970094472 | 3322659ad5ba9f2bc0455ae797f3dc6fe944b761 | refs/heads/master | 2020-06-01T17:59:54.277682 | 2019-06-08T10:26:41 | 2019-06-08T10:26:41 | 190,874,702 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 748 | cpp | Service.cpp | #include "Service.h"
#include <iostream>
Service::Service(int num, std::string desc, float p)
: numero(num), description(desc), prix(p)
{
}
Service::Service()
{
numero = (rand() % RAND_MAX) & RAND_MAX;
description = "";
prix = 0;
}
Service::~Service()
{
}
int Service::getNumero()
{
return numero;
}
std::str... |
ee50d8806e775a91c4fe16d32b994d40c470dd37 | ad10052619b7bc79d311940bd2419772c4bc8a53 | /topcoder-master-2/gcj/gcj2010/round1a/rotate/rotate.cpp | c82901bc64b416837ab8e76979a7e749667e19f0 | [] | no_license | bluepine/topcoder | 3af066a5b1ac6c448c50942f98deb2aa382ba040 | d300c8a349a8346dba4a5fe3b4f43b17207627a1 | refs/heads/master | 2021-01-19T08:15:06.539102 | 2014-04-02T21:10:58 | 2014-04-02T21:10:58 | 18,381,690 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,909 | cpp | rotate.cpp | #include <sstream>
#include <string>
#include <vector>
#include <map>
#include <algorithm>
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <utility>
#include <set>
#include <cctype>
#include <queue>
#include <stack>
#include <fstream>
#include <cstring>
#include <numeric>
using names... |
db6c5faeaadeb3e5dcb8b9ca8f1b322426c847e3 | 4aed7082ffef9b871703c20e36ca284fdce78c2f | /bufferevent_single/Hikv/test_main.cc | 93ca7f133f7b9d259b85c4e5a7146442e1c7e750 | [] | no_license | 2016k8009929004/libevent_test | 3de51bfb817a7d1c07a3ba8443de7f40b021590f | d645ea5d7caff85d9e419d90911ea7d04626e739 | refs/heads/master | 2022-09-22T07:12:44.338794 | 2020-05-29T09:45:45 | 2020-05-29T09:45:45 | 236,311,984 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,373 | cc | test_main.cc | #include "city.h"
#include "config.h"
#include "pflush.h"
#include "random.h"
#include "pm_alloc.h"
#include "hikv.h"
#include <map>
#include <pthread.h>
#include <string>
#include <limits>
#include <random>
#include <string>
#include <vector>
#include <cstring>
#include <fstream>
#include <cstdlib>
#include <stdio.h>... |
bb7b50154c6cc2aa5ad304a940ce8147e5371974 | ac0d7292e8921bee1f6f04b02b7f4f8207623ea1 | /TRAB2/Huffman.h | a0a1c89c8b433026c41d4a9eb5cbcf437fdaa97c | [] | no_license | dell2duo/Data-Structure | c82329fc8b843553abe5d841966e1ad38713bf5a | 323e365a42abbd28093ba2e0e185d82068c0294e | refs/heads/master | 2022-12-11T07:46:31.095137 | 2020-09-14T18:40:25 | 2020-09-14T18:40:25 | 191,229,027 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 717 | h | Huffman.h | #ifndef HUFFMANTREE
#define HUFFMANTREE
#include "MyPriorityQueue.h"
#include "Node.h"
#include "MyQueue.h"
class HuffmanTree{
public:
HuffmanTree():root(NULL){}
HuffmanTree(const int freqs[]);
HuffmanTree(const HuffmanTree &);
~HuffmanTree();
void comprimir(MyVec<bool> &out, const MyVec<unsigned... |
0a9902c861eb7f8d72f252eb56c0faa0507eb2fb | aeeb70ee311ca6beaa59507952ae0fd8296b7f28 | /forCodingTest01/forCodingTest01/line_05.cpp | b4a0d89400c9cbd824ddf771eb8cf3d248e4c35a | [] | no_license | flyingtw/CodingTestRepository | 73ef2650913e629ded31367573ad3761fff84204 | eecd7b6bc7f8c3a12ce4a750568ebd95e5f9a9bf | refs/heads/master | 2023-01-18T20:00:37.196557 | 2020-11-20T05:51:36 | 2020-11-20T05:51:36 | 259,932,004 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 3,107 | cpp | line_05.cpp | #include <bits/stdc++.h>
#define endl "\n"
using namespace std;
void init();
vector<int> cards = { 10, 13, 10, 1, 2, 3, 4, 5, 6, 2 };
int deal_hide = 0;
int deal_show = 0;
int player_point = 0;
int money = 0;
void check(int n) {
int deal_ret;
if (deal_show == 1) {
if (deal_hide + 11 > 17) {
deal_ret = deal_h... |
ff8b52a9ee95b321b268494af4847fcbdd518925 | ab87927036553d6474e75955624de689e4447344 | /LambdaEngine/Source/Rendering/Core/Vulkan/SwapChainVK.cpp | 6017b1e45fd00b00970a158c76b49358b0e67cc7 | [
"MIT"
] | permissive | TimTheToad/CrazyCanvas | e4285052215fd5a311ecbfc825d39b07cba526c1 | f60f01aaf9c988e4da8990dc1ef3caac20cecf7e | refs/heads/master | 2023-03-22T02:28:50.013198 | 2021-03-03T19:05:05 | 2021-03-03T19:05:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,416 | cpp | SwapChainVK.cpp | #include "Log/Log.h"
#include <algorithm>
#include "Containers/String.h"
#include "Application/API/Window.h"
#include "Application/API/PlatformApplication.h"
#include "Rendering/Core/Vulkan/SwapChainVK.h"
#include "Rendering/Core/Vulkan/GraphicsDeviceVK.h"
#include "Rendering/Core/Vulkan/VulkanHelpers.h"
#include "... |
2295dbbfc29ab73e664d2e11ffde17de9d8395fa | 2258bb560c107caeaf057e3b4f8ce9d91f010387 | /include/scgapi/Scg.h | 86fccd3b4261e7079e0ddf97eedc26b9b2b92619 | [
"MIT"
] | permissive | Syniverse/Messaging-C-Plus-Plus | 881f79df5ead1a5a026a0406e4c35e3617c67688 | 8b5b9ebc48a2a86664bbdf43255d08c033d3f6fe | refs/heads/master | 2021-06-22T07:06:28.544234 | 2017-08-08T17:30:39 | 2017-08-08T17:30:39 | 71,072,879 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,003 | h | Scg.h | #pragma once
/*! \mainpage SCG C++ API documentation
*
* The Syniverse Communication Gateway (SCG) API is a REST service
* available from Syniverse. This C++ library is a simple wrapprer around
* this REST service. For a full explanation about the properties
* of the classes, please refer to
* https://api.s... |
e90f3e95ba6bbb209e5367b8d0a979af1eaf9a23 | a6b250bdf0f8554fd039a6c0aac6b99782825fdf | /SPH/SPH_Ghost/SPH_Ghost_Solution/include/TimerWin32.hpp | 9855a789db482755df48ba756ec8d068130647a5 | [] | no_license | cjsb/2DGhostSPH | f1f2a79d0c15edd5309a7120080180effcc5b165 | afcf2022e67fd9759813aa540080c3a6f74faf9d | refs/heads/master | 2020-12-24T08:56:18.685123 | 2016-11-09T19:17:17 | 2016-11-09T19:17:17 | 73,308,034 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,446 | hpp | TimerWin32.hpp | #pragma once
// Classe totalmente traduzida do Ogre3D, com poucas adições
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef WIN32_EXTRA_LEAN
#define WIN32_EXTRA_LEAN
#endif
#define NOMINMAX
#include <windows.h>
#include <time.h>
class TimerWin32{
private:
unsigned long timeStepMs;
clock_t ... |
e6ee7e67f70db31ffbc07e4fe6556d3585848336 | 2c1637881bae1046c2bbd8f79c45a84eea5fc996 | /MathRuntimeEvaluator/Subtract.cpp | 3b5517cbccc4934ad5f1764e528add0d87f80f1f | [] | no_license | trironkk/MathRuntimeEvaluator | 7bde445453a0b79f89d2b4684feccf643810ce92 | 53f313bd79aea73a28ac932d5ee7908d46a77770 | refs/heads/master | 2020-04-14T04:42:42.665085 | 2012-08-10T21:06:39 | 2012-08-10T21:06:39 | 4,864,061 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,000 | cpp | Subtract.cpp | #include "Subtract.h"
using std::deque;
using std::string;
namespace MathRuntimeEvaluatorNamespace
{
// Returns a string representation of this Operator
string Subtract::GetIdentifier() const { return "-"; }
// Returns a helpful string explaining how to use this Operator
string Subtract::GetUsage() const
{
r... |
635b35074de2109bc8acadde7a36b4e639502105 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /CondFormats/DataRecord/src/ESPedestalsRcd.cc | 70458209aeac78b55681d4a9994bef8990126b4c | [
"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 | 177 | cc | ESPedestalsRcd.cc | #include "CondFormats/DataRecord/interface/ESPedestalsRcd.h"
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h"
EVENTSETUP_RECORD_REG(ESPedestalsRcd);
|
93be150983da6c7fbce7fba45d8b0c62dd4eed7e | 0eea0b9ca1018fcf5a6360b72640459f9d6c3d65 | /src/CombinationFactory.cpp | 94cb0112341d9397e911c40be58235884b670a79 | [] | no_license | Qiao712/Tetris | 5e8d24e51556c5fc1b86ba88ed114bfa3f123f7e | 8f83a1da1258819fa80cddbeeffdd7c5ba871857 | refs/heads/main | 2023-04-14T05:24:26.820016 | 2021-05-05T13:22:59 | 2021-05-05T13:22:59 | 333,099,641 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,655 | cpp | CombinationFactory.cpp | #include"Game.h"
#include "CombinationFactory.h"
#include "Combination.h"
#include "Block.h"
#include "BlockFactory.h"
#include<iostream>
// vector<Combination*> CombinationFactory::combinations;
int CombinationFactory::num_of_block_type = 6;
CombinationFactory::CombinationFactory()
{
static bool isExist = 0;
if (... |
102a0c5e3710d3b5821ec3de71f7e8a282d4fa75 | 6c627996d271fe7d3f08e779e2d3d321e02720db | /proto/scanner/bottom_detector/main.cpp | 5656e653321032848f1244ebb3eec4b02f32d493 | [] | no_license | mrkn/photo_scan | eab658967665835e5cd5280c6c22e7226e496bf5 | 00691345af1e6b183bfb13aea6b7b706856c5bb4 | refs/heads/master | 2020-05-18T04:53:59.983401 | 2009-09-29T04:58:17 | 2009-09-29T04:58:17 | 320,729 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,350 | cpp | main.cpp | #include <windows.h>
#include <tchar.h>
#include <commdlg.h>
#include <boost/filesystem.hpp>
#include <boost/gil/gil_all.hpp>
#include <boost/gil/extension/io/jpeg_dynamic_io.hpp>
#include <boost/gil/extension/numeric/sampler.hpp>
#include <boost/gil/extension/numeric/resample.hpp>
#include <boost/tuple/t... |
c471197e7757f5a56065726fa27bc3f1c8187be1 | 34d327054953bf108b0e4fefbe5670545648f8ac | /geometry2D/geometry2D.hpp | 6573a3a2a480ea595e6ed8b8eb8293f67caf96ca | [] | no_license | VIXER13/geometric_figures | 6bea26f1d25d5bff6974bff3b4e0b9fc688c1e2e | 762106c71335421670824aff20138c2aa46b36bf | refs/heads/master | 2022-11-10T18:08:12.202904 | 2020-07-06T00:27:40 | 2020-07-06T00:27:40 | 276,886,483 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 173 | hpp | geometry2D.hpp | #ifndef GEOMETRY2D_HPP
#define GEOMETRY2D_HPP
#include "polygon.hpp"
#include "dynamic_polygon.hpp"
#include "point.hpp"
#include "line.hpp"
#include "triangle.hpp"
#endif |
15cbdaeed9ab57ea8ee99458c17f6a319d152b2a | 2d4be44da2f314037f505a8fb08fd3ef69418600 | /backup_ui/backupclient.cpp | 1299f1ce96badc94a884987578dc14ea2c3d4a91 | [] | no_license | simon-rock/backup_d | 55ec6c1fd069211998ba9a6f8ffe6c943f308560 | 74b4f32ad228469d5065301358e2ec6ce5051b4d | refs/heads/master | 2020-06-04T10:45:57.544480 | 2013-07-07T13:01:20 | 2013-07-07T13:01:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,983 | cpp | backupclient.cpp | #include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
#include <string>
#include <cstdio>
#include <cstdlib>
#include <string.h>
using std::string;
////////////////////////////////////////////////////////////////////////////////////////////////
// arg analysis
#include "com_inc.h"
#includ... |
f4e393332a495ec8ecaf5a179ce535ac6f12c83f | 0f8a96150828755edcde8408cace57760ecc73dd | /Searching_Algorithms/Binary_Search/3_rotation_count.cpp | 07e9ba194630e0cd2e225d40bcdac51093297efc | [] | no_license | A5hi5hKujur/Competitive-Programming-MNNIT | 082ed0a04fcf81589e571b7955264a129b3befb6 | dbc23f13d8c3e94e0008a7cd5bdf32f9f0f486ad | refs/heads/master | 2021-09-28T04:51:02.851181 | 2021-09-27T09:29:27 | 2021-09-27T09:29:27 | 242,378,745 | 5 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 3,059 | cpp | 3_rotation_count.cpp | /*
Count number of rotations (left)
1. pivot element : smallest element of the array, whose left and right element both would be greater than itself.
If no such element is found then array is sorted correctly.
The number of rotation depends upon the position of the pivot element, which happens to ... |
bcf2615b44c6e65ad50b264e3a12518ffb5265ab | 3e3fe4344120006c3fd3664865eba160ae66a013 | /Game/TestScene.hpp | dbc80b95a8558ad469ab1bc4feb918fd680ec97f | [] | no_license | Kumazuma/3D_Project | f627f20c5c89d3e8f2adbb10d1ab8cb6a655f1ac | 4e38afd3de5a8a6cfb589adf5e73bb7d5772af33 | refs/heads/master | 2023-03-16T14:06:46.254172 | 2021-03-02T09:46:24 | 2021-03-02T09:46:24 | 314,772,394 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,735 | hpp | TestScene.hpp | #pragma once
#include"../framework.h"
#include<game/scene.hpp>
#include"RenderModule.h"
#include"common.hpp"
#include"typedef.hpp"
#include<thread>
#include<memory>
#include<mutex>
#include<atomic>
#include<vector>
#include"json.hpp"
class WavefrontOBJMesh;
class RenderObject;
class InGameRenderer;
namespace Kumazuma
{... |
8a43424b7e3b784eea4b02a276fee70b161e7e3f | d001abba19711d678f2ba09dfbd5c84357be6bb0 | /src/contest/atcoder/abc/abc110/D/main.comp.cpp | 63bdec3341c03aaf9e23e51311f100134e316cec | [] | no_license | cormoran/CompetitiveProgramming | 89f8b3ceda97985d32b8cd91056b49abeb243e6f | fa0e479ab299f53984fa7541d088c10c447fb6e4 | refs/heads/master | 2020-04-17T19:59:49.724498 | 2020-03-28T15:46:26 | 2020-03-28T15:46:26 | 65,995,023 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,619 | cpp | main.comp.cpp | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, j) for(int i=0; i < (int)(j); i++)
#define repeat(i, j, k) for(int i = (j); i < (int)(k); i++)
#define all(v) v.begin(),v.end()
class ModInt {
public:
static const ll MOD = 1000000007LL;
ll x;
ModInt():x(0){};
ModInt(... |
997a093b4cdce5664923e18925c3c715abf7adf3 | 6d4535f9d1496190cd34cb900621b35577bcfd1c | /source/Framework/GameEngine/Collision/CollisionManager/Source/CollisionPairCheck.cpp | 4abe3350e4406932ab15ca87ea7c1f164eabe7d1 | [
"MIT"
] | permissive | KaiAraki/BalloonWorld | d9476101da7b9ca07387a63067edfa3c1eca61d5 | 23379c83779c4f94b1a50e611ddab01d6256f827 | refs/heads/master | 2023-02-24T11:32:15.550523 | 2019-05-28T23:55:29 | 2019-05-28T23:55:29 | null | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,997 | cpp | CollisionPairCheck.cpp | //================================================================================
//! @file CollisionPairCheck.cpp
//! @brief 衝突ペア判定Class
//! @details static
//! @author Kai Araki @date 2018/05/08
//================================================================================
//***********************... |
f8b8ec40ce7cbda37a926e2ba5ce7c63925211c7 | 75079a4d96dd7c63eefd999299c0ea115d7ffa96 | /liczydlo/mainwindow.h | 4b5de355237779c613e3e8ad8fb52c84c7c8374b | [] | no_license | domi-nika60/Liczydlo-naukowe | 9862e02a0a31d79b3ab04c333f6c489356acce39 | 8840e9f7ed3e03bee800e688679592c113026fec | refs/heads/master | 2020-12-30T16:39:51.690332 | 2017-05-30T23:52:22 | 2017-05-30T23:52:22 | 91,001,346 | 0 | 2 | null | 2017-05-25T21:54:37 | 2017-05-11T16:35:07 | C++ | UTF-8 | C++ | false | false | 1,270 | h | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <math.h>
#include "expression.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void on_mc_clicked();
... |
480430bce971a3ac5416771d69a91c17ea7d4eae | d20cf7de868dfb2c53578a70d0dda21306167d72 | /data/preprocessed/train/student_58/headers/CProiectil.h | 746662dc9e1336a2cfb6e8086919fd0cdff9f0ac | [] | no_license | bulacu-magda/Alemia | 905a84ca79157fb657eb424e337b0303fd3323bd | 0fd019c4517064d300399feb94dbcb0f467e8d48 | refs/heads/main | 2023-03-01T17:41:08.788500 | 2021-02-05T08:00:35 | 2021-02-05T08:00:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 216 | h | CProiectil.h | #pragma once
#include "CObject.h"
#include "CMove.h"
class CProiectil :public CObject, public CMove
{
protected:
int damage;
public:
CProiectil(int row, int col);
int getDamage();
virtual ~CProiectil();
};
|
21494f24ff85b95d51315b5fc32ec95e41b5602b | 075458112968bc09f7cd88597824551126db0439 | /85. Maximal Rectangle.cpp | fe02d34bc1490ab9a1a01179a3932e1351c816b4 | [] | no_license | Fanye518/leetcode | 756ca925edbebba3c4e5a610f30c282cb8956b09 | 93782a235295621a513d19b7430a9a1a841e5104 | refs/heads/master | 2020-04-23T01:33:34.286572 | 2019-03-12T20:10:42 | 2019-03-12T20:10:42 | 170,816,588 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 768 | cpp | 85. Maximal Rectangle.cpp | // Monotonic stack for 2d array
class Solution {
public:
int maximalRectangle(vector<vector<char>>& matrix) {
if(!matrix.size() || !matrix[0].size())return 0;
int m = matrix.size(), n = matrix[0].size();
int res=0;
stack<int> s;
vector<int> v = vector<int>(n... |
7f5cef62218bec5993971824cd5953c6c4734bea | 838a1357efadd9cdc9a9391c2a9f34c20b23f84c | /src/globalvariables.h | ff03be024e4dca5a7e6398281972d70a0420b698 | [
"BSD-2-Clause"
] | permissive | adct-the-experimenter/Door-To-Life | 0ab6d7e27796ce601d5bdc2b609c11d3a5871cf2 | a36f5e753dd6d7a8401415ed763e24dfd6b42caf | refs/heads/stable | 2021-07-04T02:27:21.102026 | 2020-12-05T16:00:39 | 2020-12-05T16:00:39 | 203,637,398 | 2 | 0 | BSD-2-Clause | 2020-12-05T06:41:30 | 2019-08-21T17:58:18 | C++ | UTF-8 | C++ | false | false | 4,252 | h | globalvariables.h | #ifndef GLOBALVARIABLES
#define GLOBALVARIABLES
#include <iostream>
#include <string>
///Data Directory File Path
#define QUOTE(name) #name
#define STR(macro) QUOTE(macro)
//DATADIR macro used by automake for path to data files
//if DATADIR macro is not defined, define it as data
#ifndef DATADIR
#define DATADI... |
d29dd2a16ebfbaf4b7809d1f15056604ba3fa48e | 3fb0d0812e081190712b73ea8e43a5da7d0652e2 | /gameSystem/include/Node.hpp | 2812b5b5f6473553a3d2f1d9292b92e398c9cc4f | [] | no_license | MNA8686/equisetum2 | ea31ce4e97b191f98b7a320503acb79fa9ecfbab | ee36844b4add957ac803b9145afe4b011e49385c | refs/heads/master | 2021-06-18T13:20:07.894876 | 2021-01-14T13:16:43 | 2021-01-14T13:16:43 | 134,135,436 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 12,106 | hpp | Node.hpp | #if !defined(_EQNODE_H_)
#define _EQNODE_H_
#include "Equisetum2.h"
#include "INodeAttachment.hpp"
#include "EqVector.hpp"
using namespace Equisetum2;
#include <vector>
#include <functional>
template<class T>
class NodePool;
template<class T>
class Node final
{
public:
Node() = default;
~Node... |
d70f9e16198770fc523218af35970014dcbd27cd | 3b04925b4271fe921020cff037b86e4a5a2ae649 | /windows_embedded_ce_6_r3_170331/WINCE600/PRIVATE/TEST/STRESS/STRESS/MODULES/GDI/gdi.cpp | 6eb2f96059484b1e3ce314cb4e54af73f4d17ca6 | [] | no_license | fanzcsoft/windows_embedded_ce_6_r3_170331 | e3a4d11bf2356630a937cbc2b7b4e25d2717000e | eccf906d61a36431d3a37fb146a5d04c5f4057a2 | refs/heads/master | 2022-12-27T17:14:39.430205 | 2020-09-28T20:09:22 | 2020-09-28T20:09:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 27,099 | cpp | gdi.cpp | //
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft shared
// source or premium shared source license agreement under which you licensed
// this source code. If you did not accept the terms of the license agreement,
// you are... |
6cf9d66608d2b4c92de670bce0393e1d8f1b8edf | 948f4e13af6b3014582909cc6d762606f2a43365 | /testcases/juliet_test_suite/testcases/CWE134_Uncontrolled_Format_String/s04/CWE134_Uncontrolled_Format_String__wchar_t_environment_fprintf_84.h | fc85c15a12237e51a02fd23bef70501a713f42e9 | [] | no_license | junxzm1990/ASAN-- | 0056a341b8537142e10373c8417f27d7825ad89b | ca96e46422407a55bed4aa551a6ad28ec1eeef4e | refs/heads/master | 2022-08-02T15:38:56.286555 | 2022-06-16T22:19:54 | 2022-06-16T22:19:54 | 408,238,453 | 74 | 13 | null | 2022-06-16T22:19:55 | 2021-09-19T21:14:59 | null | UTF-8 | C++ | false | false | 1,903 | h | CWE134_Uncontrolled_Format_String__wchar_t_environment_fprintf_84.h | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE134_Uncontrolled_Format_String__wchar_t_environment_fprintf_84.h
Label Definition File: CWE134_Uncontrolled_Format_String.label.xml
Template File: sources-sinks-84.tmpl.h
*/
/*
* @description
* CWE: 134 Uncontrolled Format String
* BadSource: environment Read ... |
3cd02b98401b99eee3b787d65dd724512a9f398c | 3c9000d52078efeca73d38bfb64a251d2353b9b1 | /FMCSocketClinet/FMCSocketClinetDlg.cpp | 7f4134071ce8954e045d6317b73a4eb6defaacc9 | [] | no_license | SCSHICHUAN/FMCSocket | 09390fe73c4b046332f8bba11dc6bf1fc9db172d | dbee801802d4b4449350cd23fa8ed7874c8f325b | refs/heads/master | 2021-08-24T06:09:39.960896 | 2017-12-08T09:58:28 | 2017-12-08T09:58:28 | 113,559,184 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,730 | cpp | FMCSocketClinetDlg.cpp |
// FMCSocketClinetDlg.cpp : 实现文件
//
#include "stdafx.h"
#include "FMCSocketClinet.h"
#include "FMCSocketClinetDlg.h"
#include "afxdialogex.h"
#include<afxsock.h> //socket
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
#define hostIP _T("116.62.11.154")
#define port 443
// 用于应用程序“关于”菜单项的 CAboutD... |
2c31c7f6feca831633310c4b2e23f0c1867de8e8 | e564d4fbafc87e94bde51a77ff82bf3df6818ecc | /Interview/InterviewTaskLib/Output.h | 44a35c35046482dfb1bd7ac1dc3a58ae7c82bf0e | [] | no_license | marked29/xml-handler | c030aa94c146c0399ecd49a6320b75dd1e31c2a3 | 0b35430579c2eee28c601d0294609f9a50ae5fe7 | refs/heads/master | 2021-10-18T15:08:14.047134 | 2019-01-09T01:58:26 | 2019-01-09T01:58:26 | 162,928,662 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 669 | h | Output.h | #pragma once
#include <fstream>
#include <iostream>
#include <vector>
#include <string>
class Output
{
private:
std::ofstream m_OutFile;
int m_Indent;
int m_OpenTags;
int m_OpenElements;
std::vector<std::string> m_TempOpenTag;
std::vector<std::string> m_TempElementTag;
void m_Check();
public:
Output() = defa... |
999458d3c0bdfed9486318afaad23c94ac216104 | 6b8ead1e2d5aa4d0fbe7770785daf097ecfa6279 | /src/csv_loader.cpp | acaec842b23d75de593b72fc576a4ad1d942783a | [] | no_license | jawline/cpp_telegram_bot | 87bc2d73546f28e4c6232b5f191d4c92341aadc6 | 683588f153293971099dd36079d3dcd75754b048 | refs/heads/master | 2021-01-26T10:27:02.914534 | 2020-02-27T01:27:28 | 2020-02-27T01:27:28 | 243,403,217 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,288 | cpp | csv_loader.cpp | #include "csv_loader.hpp"
#include "spdlog/spdlog.h"
CsvLoader::CsvLoader(std::string& deliminator) {
spdlog::debug("CsvLoader created");
this->m_deliminator = deliminator;
}
CsvLoader::~CsvLoader() {
spdlog::debug("CsvLoader destroyed");
}
void CsvLoader::set_callback(CsvCallbackMethod callbackMethod) {
thi... |
641fa5c28afc30ba76449b8e623553f035c8b85e | adad30ababbb1c317aba936f69e7504e48b847b7 | /IPMP-2/src/service/AdminService.cpp | 55e1affa0297dd0e6051daca3a5c41ac98ef2a31 | [] | no_license | xjtuse2014/IPMP-1 | 2930551726e15f8128487d503e74cf60e7a13527 | 47b30c29069c986985bfccddacc3d1e5d1184198 | refs/heads/master | 2021-01-25T12:14:39.803639 | 2015-10-08T01:47:03 | 2015-10-08T01:47:37 | 42,928,732 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,270 | cpp | AdminService.cpp | /*
* AdminService.cpp
*
* Created on: 2015年9月22日
* Author: syq
*/
#include "AdminService.h"
AdminService::AdminService() {
// TODO Auto-generated constructor stub
}
AdminService::~AdminService() {
// TODO Auto-generated destructor stub
}
/**
* return 100;//登录成功
* return 101;//登录失败 :密码错误
* return 102... |
76fa8d1340cefed99825a418ef9f6e0931f88cd4 | 39aefca2ada07a46ebfb157d738ad91ee477b273 | /Tests/CompactTest/OclCompact.h | 78030426eace98d8885e899b4785b38127bc9e9a | [] | no_license | xinfushe/GpuImgProc | 1993b5723a2d890ae5c48a1c9a092bd15b32ef78 | 5dc886d4e454a859e74609126dab90df9ff1025e | refs/heads/master | 2020-12-14T02:59:02.099685 | 2017-04-17T04:29:33 | 2017-04-17T04:29:33 | 95,424,204 | 0 | 1 | null | 2017-06-26T08:15:52 | 2017-06-26T08:15:52 | null | UTF-8 | C++ | false | false | 701 | h | OclCompact.h | #pragma once
#include <CL/cl.hpp>
#include <memory>
class OclCompact
{
public:
OclCompact(cl::Context& ctxt, cl::CommandQueue& queue);
~OclCompact();
public:
void process(cl::Buffer& inp, cl::Buffer& out, size_t& outCount);
private:
size_t doScan(cl::Buffer& buffer);
void createIntBuffer(size_t buffSize);
pri... |
a7d7795024f1b1d2404cb1d0d83d0e9a3ed2c34c | e8404e7905c67f114445bd21a4e109c9ee711d9a | /src/xml_triggers.cpp | aee698a93f62da48c38ccf11ebb54d724c3e4278 | [
"MIT"
] | permissive | markkorput/raspi2030 | ecd97914314d7a0f463a73ccfb98a47b2531a089 | 4a918d240172b68634619567d47599fa02b8dd16 | refs/heads/master | 2016-09-13T17:07:53.857148 | 2016-05-08T15:09:59 | 2016-05-08T15:09:59 | 57,210,429 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 835 | cpp | xml_triggers.cpp | #include "xml_triggers.hpp"
#include "ofxXmlSettings.h"
using namespace of2030;
// XmlTriggers implementation
XmlTriggers* XmlTriggers::singleton = NULL;
XmlTriggers* XmlTriggers::instance(){
if (!singleton){ // Only allow one instance of class to be generated.
singleton = new XmlTriggers();
}
... |
9f057ac91411832607617851af1e76806f3418b5 | ab4a3a8f949898cf2e8e3d451d26dc07a6c86a36 | /CPP Programming Basic Code Example/practice.cpp | ac4141d82f62710b758041875a88a9ee01766625 | [] | no_license | Cemetry/cpp-programming-tutorials | 629b9fac6fa1541a7cd0a40141c90cbb64acf33e | 7971081e449640092873c713b0ce95834fb4f9dc | refs/heads/master | 2020-03-30T07:04:54.880518 | 2018-10-21T15:50:29 | 2018-10-21T15:50:29 | 150,913,884 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,688 | cpp | practice.cpp | /**pointer**/
/*
#include<iostream>
using namespace std;
int main()
{
int a=10;
int *p;
p=&a;
cout<<p<<endl;
int b = 104;
p=&b;
cout<<p<<endl;
return 0;
}
*/
/**swapping of two numbers**/
/*
#include<iostream>
using namespace std;
int main()
{
int a = 10;
int b... |
556a96f2d0d409702bdd764e4f9bf9a8a1bcb75a | 52e20f6ebe62bb24a0cc3c024b3ed8af0ef7bd57 | /Textures/Checker3D.cpp | 1ff865e73dd44df7b005b4225239311f7f1cb132 | [] | no_license | matthiascy/crocus | a4bcc9b5683230f97c71fc8c8232e3cfd1e3029b | d0780e36d30c43a35d5bf9adc6b99892845cf95e | refs/heads/master | 2023-01-14T01:15:29.091364 | 2019-12-09T17:59:51 | 2019-12-09T17:59:51 | 42,220,320 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 963 | cpp | Checker3D.cpp | #include "Checker3D.h"
#include "Constants.h"
#include "Maths.h"
Checker3D::Checker3D()
:size(1.0),color1(black),color2(white)
{}
Checker3D::~Checker3D()
{}
void Checker3D::set_size(float s)
{
size = s;
}
void Checker3D::set_color1(const RGBColor &c)
{
color1 = c;
}
void Checker3D::set_col... |
0a23e97ea82578204da0fc9f6a6511567272bc23 | ea63e35a1f17f793b03e5d45f5c856053600f5b0 | /testing/estimators.cpp | eaa34b1a6dd95655bba6d24d24566f3368c5592d | [
"MIT"
] | permissive | aakunitsa/grid_qmc | 3c48a1ff0eaa63ce95cf0ac3c9bd9f35bf913f00 | 60fdb77819cf5a8547e3f4cdad7e22b036d7b0c0 | refs/heads/master | 2020-04-14T18:35:47.111623 | 2020-03-12T17:55:06 | 2020-03-12T17:55:06 | 164,025,442 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,882 | cpp | estimators.cpp | #include <iostream>
#include "qparams_reader.h"
#include "qgrid.h"
#include "qintegral.h"
#include "qorbitals.h"
#include "qestimator.h"
#include <random>
#include <cstdio>
#include "qhamiltonian.h"
#include <chrono>
//#include "ref_qhamiltonian.h"
int main(int argc, char **argv) {
Params_reader q(argc, argv);
... |
b009b30974b1a6ed1fd6c00aaab846b8ddb7c86f | bb34f5345805f5cbb7a850948f29d78470fe1629 | /dice.cpp | 1b8d574e228b6341dfabf9a81e71d7a7d148849d | [] | no_license | december/Data-Struct-Homework-2 | 91ae0c102003ef14a9859842462560e2ac5bfd42 | f89569287298ed23344902cde221e61210e8c387 | refs/heads/master | 2021-01-16T20:34:12.934691 | 2013-12-06T14:54:54 | 2013-12-06T14:54:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,962 | cpp | dice.cpp | #include<cstdio>
#include<cstdlib>
using namespace std;
int origin[6];
int waitsize = 1;
struct data
{
int line;
int col;
int number[6];
}wait[20000];
struct node
{
int pos;
unsigned int dis;
bool choosed;
node* neighbor[4];
node():dis(-1), choosed(0)
{
for (int k = 0;k < 4;k++)
neighbor[k] = NULL;
}
... |
17496aefc9ee69f741894e22ef27d1b18dfee631 | 6a2bfd8531028b449aa13fde22dae172624b9502 | /src/signAPlugin/saFunPlugin/FunFit.h | 7b4e0c14491ca3c53e32b286b379633af62e5a5e | [] | no_license | 18771759263/sa | 2beab0a1aa99abdb6a84120c8aca9b2333341f41 | 8e7f6cfca6180b5f120c86b79f37cdb998fd59e5 | refs/heads/master | 2021-08-31T17:49:11.138171 | 2017-12-11T02:13:40 | 2017-12-11T02:13:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 184 | h | FunFit.h | #ifndef FUNFIT_H
#define FUNFIT_H
///
/// \brief 拟合的相关函数
///
class FunFit
{
public:
FunFit();
static void polyfitInChart();
};
#endif // FUNFIT_H
|
6c7aabbc51e7c149f2a81d213da465a44f4cc6cc | 324342dec81b5846e2c14f3555595ceae249ea40 | /src/test_twoNeurons.cpp | d7b02bee6666722eb3fc14529f1f54a0c283ff9f | [] | no_license | mroulet/CS116-2017-Margaux-Roulet | 734228b46c5a1e3ddfb85dcc4cfaa7d7399766a4 | ff6c44a5da4f9ac32ee6f2962f3d4fe8e1f4a707 | refs/heads/master | 2021-07-25T00:16:07.847634 | 2017-11-05T09:17:04 | 2017-11-05T09:17:04 | 105,517,259 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 831 | cpp | test_twoNeurons.cpp | #include "network.hpp"
#include "neuron.hpp"
#include <iostream>
using namespace std;
int main()
{
//initialisation du neuron
double Iext;
double stopTime;
//vérif erreurs entrée
cout << "Entrez le courant I(t):" << endl;
cin >> Iext;
cout << "Entrez la durée de la simulation:" << endl;
cin >> stopTime;
... |
2db7e2b2a1284674b34bd915c1a76e9d61c72c7a | 49c94f5a5b6bda74dfda7a628ddf17536f3a6424 | /Pobeguylo_Win2000/04_13_GetCurrentProcess.cpp | 09e39d205aec3a25e00b39eb1a8dd94dcdbfeb64 | [] | no_license | zer0cat/books | 49654ae7b48c3435479e8c352356f75bb8f0c52d | 6dc7cdfa3c5636bdb3804215863e0466963706e3 | refs/heads/master | 2022-09-12T10:11:59.852487 | 2022-08-19T09:09:47 | 2022-08-19T09:09:47 | 216,763,392 | 4 | 2 | null | 2020-01-06T20:43:20 | 2019-10-22T08:34:05 | C | WINDOWS-1251 | C++ | false | false | 345 | cpp | 04_13_GetCurrentProcess.cpp | #include <windows.h>
#include <iostream.h>
int main()
{
HANDLE hProcess;
// получаем псевдодескриптор текущего процесса
hProcess = GetCurrentProcess();
// выводим псевдодескриптор на консоль
cout << hProcess << endl;
cin.get();
return 0;
} |
4b8d01020c65b7c99d92e0f61df5f1bfed22243d | b8a21799bea766a45bc03c8d772f84a42ce3c036 | /parser.hpp.re | 2f4e07e87447492126661e7f9b17fbc7dad3dc2b | [] | no_license | bochsdbg/hlcup2 | 53c1b4744d25ee76be10d44ab54e498232b82993 | 37a2bbe3f384bb59183185d793113cfff1503dc6 | refs/heads/master | 2020-04-22T10:43:40.865795 | 2019-02-12T12:41:00 | 2019-02-12T12:41:00 | 170,314,739 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,566 | re | parser.hpp.re | #pragma once
#include <cstdio>
#include <string>
struct A {
std::string aaa;
std::string bbb;
};
const char *lex(const char *p, const char *pe, A *a) {
printf("start\n");
const char *YYMARKER;
int s = 0, c = 0;
char yych;
std::string *buf;
/*!types:re2c*/
/*!stag... |
aa01eb2b1de6a9aab8e838619d5b57f5d1f8075d | fd08a44be3e495cd9af8a90cc7b8dd5fc0ca521a | /w3resource/Basic Declarations and Expressions/5 array sum of odds.cpp | c434ee594851f4551eefb9686f53d3a0db2c802d | [] | no_license | mivebe/dev-C | b42efee9a811c70a78ade4eaae207dec1a881f38 | 62eda30cf9f8d6715ae11269ffed12570241bb56 | refs/heads/master | 2023-01-07T13:03:12.255702 | 2020-11-10T08:22:20 | 2020-11-10T08:22:20 | 275,864,105 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 325 | cpp | 5 array sum of odds.cpp | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main()
{
int i,j=0,num[5],sum;
for(i=0;i<5;i++){
printf("Vuvedete cifra.\n");
scanf("%d",&num[i]);
}
for(j=0;j<5;j++){
if ((num[j]%2)!=0){
sum+=num[j];
}
}
printf("Sbora na nechetnite ot vuvedenite chisla e: %d\n",sum);
system("pause");
return ... |
012239d6824e84fffc29036796602b620b220906 | 33b567f6828bbb06c22a6fdf903448bbe3b78a4f | /opencascade/TopOpeBRepTool_ShapeExplorer.hxx | 273abbd5cf22cf719e8d971e7c6d9b17329010e0 | [
"Apache-2.0"
] | permissive | CadQuery/OCP | fbee9663df7ae2c948af66a650808079575112b5 | b5cb181491c9900a40de86368006c73f169c0340 | refs/heads/master | 2023-07-10T18:35:44.225848 | 2023-06-12T18:09:07 | 2023-06-12T18:09:07 | 228,692,262 | 64 | 28 | Apache-2.0 | 2023-09-11T12:40:09 | 2019-12-17T20:02:11 | C++ | UTF-8 | C++ | false | false | 2,565 | hxx | TopOpeBRepTool_ShapeExplorer.hxx | // Created on: 1995-07-13
// Created by: Jean Yves LEBEY
// Copyright (c) 1995-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GN... |
591c4f823c015b2917d357b610328473449c55d6 | 44f46b35e1dd6eccbc7412b0f8f2c61224f30494 | /src/player/lobby.h | 9c8a37ce412fcf84621593922f6be71651da2b2a | [
"FSFAP"
] | permissive | csguth/Risk | 56edf2661b83b01a72c7f0a0172fae55c467b723 | 5bb0ffb541cc65d8880c4dd149d580a57f439789 | refs/heads/master | 2020-04-08T14:26:28.450625 | 2015-08-15T21:34:13 | 2015-08-15T21:34:13 | 38,949,128 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 896 | h | lobby.h | /*
* lobby.h
*
* Created on: 11 de ago de 2015
* Author: csguth
*/
#ifndef PLAYER_LOBBY_H_
#define PLAYER_LOBBY_H_
#include "player.h"
#include <vector>
#include <iterator>
#include <utility>
#include <set>
#include "../src/utils/storage.h"
namespace risk {
namespace player {
class lobby {
utils::li... |
e05bc0be018cd223f7f711277ce01946bccaea66 | 936d709f693f6cf1469482b1327e13db338e1460 | /src/Athlete.cpp | e822325ffe186fc2e2fc321b578bf44532bc5ca3 | [] | no_license | edrake911/SSUEJKcs360Project1 | 310e135db4b0dd3db3c6eb3a8a8863d402744299 | 77ce5eefbbd25b2da075dfc72e24b2741b47593e | refs/heads/master | 2021-01-01T19:39:13.932343 | 2012-09-19T00:19:25 | 2012-09-19T00:19:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 79 | cpp | Athlete.cpp | #include "Athlete.h"
string Athlete::sport(){}
float Athlete::scholarship(){}
|
118a016da9dcf7078aa9a96190d1060be944154e | 6186f53f4d4a3bbdcb26bc206182f99cfdc1a256 | /Trees/program.cpp | 9d9c08c4b92932af1b83947c0fd503ae646752bb | [] | no_license | gizemayydin/Exercises-About-DataStructures | 0cc855d38f97727008effe8127a8149cc47a1348 | d96d74910137bccaa0a2d2ad907ef7348c1602aa | refs/heads/master | 2021-05-02T07:26:39.313070 | 2019-02-09T21:52:57 | 2019-02-09T21:52:57 | 120,827,713 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,021 | cpp | program.cpp | #include "LinkedList.h"
#include "TwoDimTree.h"
#include <fstream>
#include <string>
using namespace std;
/*keeps the input coordinate*/
struct coordinate
{
coordinate(int x = -1, int y = -1) : x(x),y(y) {}
int x,y;
};
int main()
{
/*open rectdb.txt*/
string line,filename = "rectdb.txt";
ifst... |
e2652535e125ad1984ebb32b847284bd3edc6734 | faa5d1d27a89cba2657f6fe53d9106630ef2c104 | /AUOJ/1078.cpp | fc734bd6889fa77485f101dafad307607a519498 | [] | no_license | xiao-lin52/My-Codes | f4feef04a05b1904a1f31e0e5a04e0a48ee61cb9 | d8fc530ade2bbac32c016a731c667c4189e3c6c7 | refs/heads/main | 2023-03-12T23:32:55.219341 | 2021-03-07T07:31:32 | 2021-03-07T07:31:32 | 304,806,222 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 657 | cpp | 1078.cpp | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll N=1e5+10;
ll n,m,p1,p2,s1,s2,mn,sum1,sum2,c[N];
ll Abs(ll x)
{
return x>0 ? x : -x;
}
int main()
{
scanf("%lld",&n);
for(int i=1;i<=n;i++)
scanf("%lld",&c[i]);
scanf("%lld%lld%lld%lld",&m,&p1,&s1,&s2);
c[p1]+=s1;
for(int i=1;i<=m-1;i++)... |
2af274a279f16aeb46834be5724abd4ea59389bd | 9bfbc4aad8cc543315e56774bec3da85d8dbd77f | /src/types.h | 574e8028846353cda1a43f6c260131cbd707d7bd | [
"Apache-2.0"
] | permissive | yapiolibs/udpbridge | 990654f7748daaed3cceab42a30b0b02b06edc36 | 33a2ae033be442167d2c105695c79011bb73e109 | refs/heads/master | 2021-04-11T18:01:33.357036 | 2020-04-08T17:20:24 | 2020-04-08T17:20:24 | 249,042,425 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,873 | h | types.h | #pragma once
#include <WString.h>
#include <cstdint>
#include <CRC.h>
// -------------------------------------------------------------------------------------------------
template <uint16_t buffer_size> struct Payload
{
//!< On AVR based boards, outgoing UDP packets are limited to 72 bytes in size currently.
... |
888403aa248877923e905f4f9a8b4735b8209332 | 655f62a8c5d87d9311178b122db84da3e97bc771 | /2019暑假集训Day2/std/I.cpp | b2b8ca0aeb31deae2f0f7b9c9441822715f77a1c | [] | no_license | SetsunaChyan/ICPC-Resource | b5f24fbf46fe3049989e1c9940a3e30000464f39 | 705446034b42c9e9a287ce14eb1942e2cc74ec36 | refs/heads/master | 2020-06-13T20:23:03.779790 | 2019-11-05T08:54:16 | 2019-11-05T08:54:16 | 194,777,611 | 28 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 837 | cpp | I.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int n,m,tot,rk[100005],fa[100005];
ll ans;
struct edge
{
int x,y;
ll val;
}e[100005];
int _find(int x)
{
if(fa[x]==x) return x;
return fa[x]=_find(fa[x]);
}
void _un(int x,int y)
{
x=_find(x),y=_find(y);
fa[x]=y;
rk[y]+=r... |
b7a1e5daec70454ca41fb3cf885c2531d8573d02 | a1f1b30e4914ebfc622e194079e65585ba4a2248 | /Equipment/Chest.cpp | 6cc22426a550013cbef3b57ca167b5213690649b | [] | no_license | jastka4/PO_Project | cf3a145b20ec779cddb370e84bdda0531a58910e | 3eaee905d0a98c32a1592d56aee170fe4ad5c4cb | refs/heads/master | 2021-01-23T12:44:33.677724 | 2017-06-19T14:35:34 | 2017-06-19T14:35:34 | 93,193,001 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,646 | cpp | Chest.cpp | #include "Chest.h"
using namespace std;
Chest::Chest(size_t size): //constructor reserving in memory a vector of given size
size(size){
inventory.reserve(size);
}
Chest::~Chest() { //destructor
inventory.clear();
}
const vector<Item*>& Chest::showAllItems() { //returns vector of items
return inv... |
3ca5011a11b43e470abaed8de7c3c4ab80ffb034 | 4e7305a5f7014cab2d4cef012437a28736748d47 | /arrays/graph.cpp | 831e318dac75430b36c5f55b1c8d504b335cd93e | [] | no_license | readwrite-coder/dataStructures | 35e8ae5095eadb649bf3075f407b8182a315877f | ca7ca52a4665ccf696476ff609f85b5bd56de709 | refs/heads/master | 2022-11-22T18:46:35.998459 | 2020-07-26T03:11:57 | 2020-07-26T03:11:57 | 278,971,745 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,062 | cpp | graph.cpp | #include "graph.h"
#include <iostream>
graph::graph(){
numberNodes = 0;
numberEdges = 0;
//matrixCapacity = 2;
linkedListCapacity = 2;
vertices = NULL;
//adjacencyMatrix = new int * [2];
//for(int i = 0; i < matrixCapacity; i++){
//adjacencyMatrix[i] = new int[2];
//}
}
void graph::addVertex(std::string verte... |
7a2f87ae2a1692a050ca2d0dcc4f93e917d6ac1b | abc90f4e303dc7f78813bf57c39069f12c228b93 | /firmware/gondola/gondola.ino | 381e7c092fd902822d267fd5d28ca5ee972e29d6 | [] | no_license | mattvenn/atbristol-megadrawbz | 864d328824d83df5db6520f4a2066212156e4f3f | af7d898a1476505cc63f955a458e014a05dc2771 | refs/heads/master | 2020-04-15T13:37:51.449244 | 2017-07-03T15:35:44 | 2017-07-03T15:35:44 | 58,814,395 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,646 | ino | gondola.ino | //#include <SoftwareSerial.h>
#include <Servo.h>
#define LED_PEN 7
#define LED_STATUS A5
#define BEEP 6
#define XBEE_SLEEP 5
#define SERVO_ENABLE 8
#define SERVO 9
#define BUTTON 10
#define BATT_SENSE A0
#define BATT_DIVIDER A1
#define TOUCH A2
#define CHARGE 4
#define SERVO_MAX 160 //startup servo position hitec h... |
5dd2c834235661d1b9aeb2b0455c0a277502d031 | 588902f05f90b9cae513f1bdf88519dd3bdb1f67 | /build-QOpacityPractice-Desktop_x86_windows_msvc2019_pe_64bit-Debug/debug/qrc_qml.cpp | d58fab4d06c36c8bfa35f786121e53c7a0aa8bc3 | [] | no_license | Thegodfather510/QT-Qml-Properties-Animations | 9c20bdc65b736e1fd191377b10a850da2ea6fd02 | a078ffb476dd7ce3c4ce0f2dd8df9e5d07246277 | refs/heads/main | 2023-08-28T20:06:41.478351 | 2021-10-24T19:16:41 | 2021-10-24T19:16:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,143 | cpp | qrc_qml.cpp | /****************************************************************************
** Resource object code
**
** Created by: The Resource Compiler for Qt version 6.0.4
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
static const unsig... |
db561e8f9013433ed541ba01207fc9cd89f17bbd | ac1df9fb2ccd6ba8b7f1dbaefe8b126b6ac6d0ec | /SeaChessGame/SeaChess.cpp | d825f33ceb5a02af1c494f615eb06f83022840da | [] | no_license | ZornitsaDineva/SeaChessGame | e4c0179df2d55607489ae2384d682016f8b3ce62 | 8b15544321b2a54d00b409111215fb5f51c2e14f | refs/heads/master | 2020-07-25T23:11:58.043853 | 2019-09-14T14:32:20 | 2019-09-14T14:32:20 | 208,452,623 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,047 | cpp | SeaChess.cpp | #include "pch.h"
#include <iostream>
#include "SeaChess.h"
using namespace std;
SeaChess::SeaChess()
{
for (int r = 0; r <= 2; r++) {
for (int c = 0; c <= 2; c++) {
board[r][c] = ' ';
}
}
}
SeaChess::~SeaChess()
{
}
void SeaChess::start()
{
enterSymbol();
while (!isFinished()) {
doStep();
}
clearSc... |
f39564638732b06d943134745fecb2d0090129a1 | b28ee4aeb8a82798b1b85abb3676992bf6efbcaf | /TeamProject/Classes/Character/Player.cpp | 5d960106e607503306a5947cdd99e23e679732bb | [] | no_license | leduyvu/RacerMouse | 4dbbf131defc276ed46fff40b9e692857785d163 | a6a1f62c241ed0277c26c30e22824634ff76a550 | refs/heads/master | 2021-01-19T14:33:43.763525 | 2014-03-28T11:43:51 | 2014-03-28T11:43:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 921 | cpp | Player.cpp | //
// Player.cpp
// TeamProject
//
// Created by macbook_006 on 1/6/14.
//
//
#include "Player.h"
Player::Player(){
this->setVelocity(VELOCITY_PLAYER);
this->setIDCharac(ID_PLAYER);
this->setDefaultID(ID_PLAYER);
}
Player::~Player(){
}
void Player::create(){
this->spr = CCSprite::create("Character/m... |
b204808f3649c7be21ab655342e1cc5ed566adfb | c01379525aae7e5369ffe8e086aa4cf1831523e0 | /inc/point.hpp | 35f3c5f8cf96d0af9eaf981834748d00ed79cba5 | [] | no_license | ZeJackOfSpades/MakefileCPP | c9664e50b5c70b7e4f38f6f04d7ec50e77a2deda | 535f650cbcae2971514f38f35d90571fa46bb812 | refs/heads/master | 2022-11-06T07:27:22.887337 | 2022-10-24T09:57:43 | 2022-10-24T09:57:43 | 167,435,406 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 382 | hpp | point.hpp | #ifndef POINT_H
#define POINT_H
#include <iostream>
#include <string>
struct Point{
int x;
int y;
};
Point operator+ (Point p1, Point p2);
Point operator++(Point g,int); //post fix
Point operator++(Point g); //pre fix
Point operator--(Point g,int);
Point operator--(Point g);
Point InitPoint (int x, i... |
e5867ce2c9fc799c7ef9c0545a00fc65d5a8b2a7 | 8b521c41e28986bdd8c08af86efbdadd7205316f | /Tools/MPQ/MPQDraft/2009.09.13/src/MPQDraft/MPQDraft.h | 960709e84172a6f5e0afc78507ee056f2032b047 | [] | no_license | Elarose/Coffee | 64ac5621419d126f9154ff414c9266115d1da074 | a23b2a4236acf7c23a07cb393e2009f4bf437519 | refs/heads/master | 2020-06-24T13:19:14.063373 | 2016-11-24T21:14:31 | 2016-11-24T21:14:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,359 | h | MPQDraft.h | /*
The contents of this file are subject to the Common Development and Distribution License Version 1.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.sun.com/cddl/cddl.html.
Software distributed under the License is distributed on... |
88e30182e67ebad0ebc1b69a6a57852924702196 | 17231c567c73d343331cf13595741258413fd196 | /VTGraph/gfx/square.h | 6ca55cd92aca3fd19a6fb38114faceacca3c6a3e | [
"MIT"
] | permissive | mars-86/VTGraph | 367f73e3abf25e9c3eeca9b52284faea93ae705a | 3c23ca05457364f5762b2e752278a0463209e71b | refs/heads/master | 2021-12-31T21:30:32.278256 | 2021-11-17T02:50:18 | 2021-11-17T02:50:18 | 245,071,768 | 0 | 0 | MIT | 2021-11-17T02:50:20 | 2020-03-05T04:52:09 | C++ | UTF-8 | C++ | false | false | 580 | h | square.h | #ifndef GFX_SQUARE_H
#define GFX_SQUARE_H
#pragma once
#include <vector>
#include "rect.h"
namespace gfx {
template <typename T>
class SquareT : public RectT<T> {
public:
SquareT()
: RectT<T>() {}
SquareT(T x, T y, T size)
: RectT<T>(x, y, size, size)
{
this->draw(x, y, size, size);
}
SquareT(T x, T y, ... |
ab7add846e464befae1d23905eb920386d33658f | 54ddada4d59972e21a1b0f5163fe75ea8b1877a9 | /Source/Arcade/ArcadeHUD.h | ef9b755afdd005efb4283cd9051ba5bbe8c6d4e2 | [] | no_license | NoCodeBugsFree/Arcade | 6950b37289bad13b8350f6b625c7be860edf7b3c | 4b85fa1b3b4de444d6d7c1affd6c50cfa5cae299 | refs/heads/master | 2020-04-05T12:16:14.298040 | 2018-11-09T13:03:53 | 2018-11-09T13:03:53 | 156,862,915 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,303 | h | ArcadeHUD.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/HUD.h"
#include "ArcadeHUD.generated.h"
/**
*
*/
UCLASS()
class ARCADE_API AArcadeHUD : public AHUD
{
GENERATED_BODY()
/** represents player life */
UPROPERTY(EditDefau... |
65efb8cfb7eb8757f8cc9aba3cebce292cd57808 | 51e02a9181096211c4fde46ff8388ddb02615d61 | /Q2/Q2.ino | 9eee5e9d4db8f6957bc85333dc005b13bce1ff8a | [] | no_license | dpopa10/Diana-Popa | d7ba8c18dab47706a85e8dfae6ae8e5a10d470de | cae7986631487ac188bf5ceb92b4033c155031ec | refs/heads/master | 2020-12-27T19:10:06.170548 | 2020-04-13T20:06:48 | 2020-04-13T20:06:48 | 238,016,654 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 884 | ino | Q2.ino | void setup()
{
pinMode(7, OUTPUT);
pinMode(6, OUTPUT);
pinMode(4, OUTPUT);
Serial.begin(9600);
}
int pm[12][4] = {{1, 0, 0, 0}, {1, 1, 0, 0}, {0, 1, 0, 0}, {0, 1, 1, 0}, {0, 0, 1, 0}, {0, 0, 1, 1}, {0, 0, 0, 1}, {0, 0, 1, 1}, {0, 0, 1, 0}, {0, 1, 1, 0}, {0, 1, 0, 0}, {1, 1, 0, 0}};
unsigned long previ... |
3f7823ee6d006b1e415828475266b0e3682d703b | 4541d0c5153d826781ad60594549d7cf0f830c42 | /game/include/Game.h | f8ddf3bb7a7e7ceca90026db4ca21ddb55c406c9 | [] | no_license | spidamoo/rlsa | 8c2ecf9afead0ea47885da47f69cf8bd9ed5f66e | 0edf612fb10fe64ec8c20937ca7ccbebcd04a4b9 | refs/heads/master | 2021-06-21T01:53:35.911619 | 2017-08-14T18:28:31 | 2017-08-14T18:28:31 | 100,297,600 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,810 | h | Game.h | #ifndef GAME_H
#define GAME_H
#include <Lib.h>
const char GAME_STATUS_MAIN_MENU = 0;
const char GAME_STATUS_PLAYING = 1;
const char GAME_EVENT_START = 1;
const std::string KEY_NAMES[0x7C] = {
"",
"LMB",
"RMB",
"",
"Wheel",
"",
"",
"",
"BACKSPACE",
"TAB",
"",
... |
0700b99f95065c4edec2c97a5016c14ac9790966 | a33aac97878b2cb15677be26e308cbc46e2862d2 | /program_data/PKU_raw/3/2991.c | eb26baafcaeb5f4a551cade2cc2cc25a7f9eface | [] | no_license | GabeOchieng/ggnn.tensorflow | f5d7d0bca52258336fc12c9de6ae38223f28f786 | 7c62c0e8427bea6c8bec2cebf157b6f1ea70a213 | refs/heads/master | 2022-05-30T11:17:42.278048 | 2020-05-02T11:33:31 | 2020-05-02T11:33:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 389 | c | 2991.c | int main()
{ int n,k,i=0,j=0,flag=0;
int str[1000];
scanf("%d%d",&n,&k);
for(i=0;i<n;i++)
scanf("%d",&str[i]);
i=0;
for(i=0;i<n/2+1;i++)
{ j=0;
for(j=0;j<n;j++)
{
if((k-str[j])==str[i])
{flag=1;
break;
}
}
if(flag==1)
{
printf("yes");
b... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.