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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7cca209afcd089fb14be22900ff1e66abc3015e0 | a6e0dac05610177331c0413112ea92d0b1d5866b | /ProjectFR/FRClient/TurnMgr.cpp | 61535d9daa524eb771ea593f0a10685f06dd1594 | [] | no_license | wwr1977/SJ-Studio | 11c64f4bed95d53eefc2fe2198c17a419dcb0cf4 | 9da71a796fa6636f260b77694b51be828ce1a891 | refs/heads/master | 2020-05-18T03:46:24.014589 | 2019-04-29T22:35:19 | 2019-04-29T22:35:19 | 184,147,071 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 63,484 | cpp | TurnMgr.cpp | #include "Precom.h"
#include "TurnMgr.h"
#include "TurnOrderUI.h"
#include"BackGround.h"
#include"BattleUnit.h"
#include"UnitStatusBar.h"
#include"StandByPhase.h"
#include"SelectPhase.h"
#include"RotatePhase.h"
#include"ActionPhase.h"
#include"CheckPhase.h"
#include"RelocationPhase.h"
#include"BattleEndPhase.h"
#includ... |
2c815ca002c7e34e726556963533e085ae06b9ed | 7e1b1c5f2f3a40f6499b8d5d7b49bc722d2a1917 | /include/hermes/VM/JIT/ExecHeap.h | 1a87a9f84f768263bda56eef7d6038f23ffe9a9b | [
"MIT"
] | permissive | joshbedo/hermes | b2d6b0f6c5abaeff94190a2f7b343c0772d9df14 | cda1b533fcda1da28800c05878d27b920364b57d | refs/heads/master | 2022-12-18T18:15:44.266618 | 2020-09-22T18:35:45 | 2020-09-22T18:37:18 | 297,771,133 | 1 | 0 | MIT | 2020-09-22T21:00:35 | 2020-09-22T21:00:34 | null | UTF-8 | C++ | false | false | 5,683 | h | ExecHeap.h | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#ifndef HERMES_VM_JIT_EXECHEAP_H
#define HERMES_VM_JIT_EXECHEAP_H
#include "hermes/VM/JIT/PoolHeap.h"
#include "llvh/ADT/Optional... |
6381203f8c4ff0f3b51ca47aaecf13974de8e591 | 9c66dcdb71c99764ddca8fb7331efd03546cdbb5 | /HhUnitTestFramework/UnitTest.cpp | 643f21894b6355809d75e262e06aa2e113d398f3 | [] | no_license | jonmarinello/hammerhead | 7970f15786c5b4caa959c9031bfd22532552c1d6 | 0f9151f90654946f3157370160f3ef4105ec3141 | refs/heads/master | 2021-01-01T18:12:36.209955 | 2013-04-08T10:30:22 | 2013-04-08T10:30:22 | 3,426,969 | 0 | 0 | null | 2013-04-08T10:30:22 | 2012-02-13T03:52:13 | C++ | UTF-8 | C++ | false | false | 8,198 | cpp | UnitTest.cpp | /*
* Copyright (c) 2003-2005, Jon Marinello
*
*/
#include <string>
#include <direct.h>
#include <windows.h>
#include <HhUnitTestFramework/UnitTest.h>
HH_UnitTest::HH_UnitTest( bool& variableDataGeneration, bool interactive )
: m_variableDataGeneration( variableDataGeneration ),
m_interactive( interactiv... |
eb8cab563032f3d8a528ae5b60744b72f679de2f | 581fb8d4c581c6a41edd16c79971b7ceb1fa588b | /CG3D/letter.h | 826b6803f6cc73978b87a66ecbb97eadc851bb9b | [] | no_license | Isachenko/CG_LABS | 345fd45a10b6c789a0099367ed4fe5f70eace297 | ee1d5a5eb8ce282e78370563a6c78e10a31a53df | refs/heads/master | 2021-01-10T21:20:47.231968 | 2015-06-18T15:17:02 | 2015-06-18T15:17:02 | 37,666,835 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,420 | h | letter.h | #ifndef LETTER_H
#define LETTER_H
#include <QtOpenGL/QGLWidget>
#include <QMouseEvent>
#include <QColor>
#include <QGridLayout>
#include <QColorDialog>
#include <GL/glu.h>
class Letter : public QGLWidget
{
Q_OBJECT
public:
explicit Letter(QWidget *parent = 0);
GLint getMoveX() const;
void setMoveX(con... |
b7daf0018cef32a5fe7650cffbb38510ff788341 | 23004ab90b2c23cada5c46acd4333abb506d36c7 | /leak.cc | be320b8eb40e40da9eb0ce3a5816593c6c1e30c2 | [] | no_license | alexandregv/get_next_line | 58bc0e4c4e329800b990f92ac8934035128571c9 | 71805054b1518371c0e5fa61ac9dc74299114d27 | refs/heads/master | 2020-04-07T13:53:21.092866 | 2018-11-20T17:17:52 | 2018-11-27T18:21:38 | 158,425,968 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 696 | cc | leak.cc | #include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include "libft/libft.h"
#include "get_next_line.h"
int main(int argc, char **argv)
{
int fd;
int status;
char *line;
fd = open(argv[1], O_RDONLY);
if (fd == -1)
{
ft_putendl("########## Couldn't open ... |
cff398acf22eb05899f052829c2837e8854e00d9 | 711547b37343a20e123fffccf0a0f37c3ac14618 | /Homework/checksum/checksum.cpp | b4bfb2c0340b6f95b4c1801554b2288e0da91f6d | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Tokubara/Router-Lab | e5f3a24e53bc4c1dbb6891324a6b07699b212b13 | 59385239ee27419cbf59d76d628692ed13aab113 | refs/heads/master | 2020-11-30T14:37:18.821944 | 2019-12-27T09:48:38 | 2019-12-27T09:48:38 | 230,416,799 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,125 | cpp | checksum.cpp | #include <stdint.h>
#include <stdlib.h>
#include<stdio.h>
/**
* @brief 进行 IP 头的校验和的验证
* @param packet 完整的 IP 头和载荷
* @param len 即 packet 的长度,单位是字节,保证包含完整的 IP 头
* @return 校验和无误则返回 true ,有误则返回 false
*/
uint16_t calculateIPChecksum(uint8_t *packet, size_t len){
const uint32_t checkpoint = 65536;
const uint32... |
19a1c6145f9c5699d7b2ced77f3c9af3ff038553 | 3187dd3c1186cf97781987e455f5d11244f90aec | /examples/sysc/risc_cpu/decode.cpp | c11de67f1f47e4f80e4ed82ffbae7b07fe6f79fb | [
"Apache-2.0"
] | permissive | Muriukidavid/systemc-2.3.2 | fe5d9d57636025cfdc0dee7eb9c8114ca19628ad | c5d203ac014277b9d2c2af895edc43537a15674e | refs/heads/master | 2020-03-13T13:17:48.813825 | 2018-04-26T09:48:42 | 2018-04-26T09:48:42 | 131,135,420 | 0 | 1 | Apache-2.0 | 2018-06-28T15:17:19 | 2018-04-26T09:51:26 | C++ | UTF-8 | C++ | false | false | 40,469 | cpp | decode.cpp | /*****************************************************************************
Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
more contributor license agreements. See the NOTICE file distributed
with this work for additional information regarding copyright ownership.
Accellera licenses... |
a48809cd81ffed7122e30b7a3e087cfce9b50910 | 8ec8f385068a06181536e45a40e567b47f5b67fe | /Client/WrongCredentialsPopUp.h | f6f1d50ea5be3accf541e1a0ec7015d5574f0e45 | [] | no_license | roberto-borgone/Progetto_Malnati | b323d49d2c49a30c145be458145a029a7a836b54 | b30f12a09f2f3d0f9421205e8c12c7b28a3f4679 | refs/heads/master | 2021-07-10T10:26:35.814825 | 2020-10-23T20:55:47 | 2020-10-23T20:55:47 | 210,009,202 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,061 | h | WrongCredentialsPopUp.h | //
// Created by Clemente Cetera on 23/09/2020.
//
#ifndef EDITORCOLLABORATIVO_WRONGCREDENTIALSPOPUP_H
#define EDITORCOLLABORATIVO_WRONGCREDENTIALSPOPUP_H
#include <QDialog>
#include <QLabel>
#include <QDialogButtonBox>
#include <QBoxLayout>
class WrongCredentialsPopUp : public QDialog {
Q_OBJECT;
public:
WrongC... |
f82c90d743d223f883678e7bd0cbfac9136d0437 | 6bc0a6a6c8a93a0d6827f1717dfa1a0be2666da9 | /include/seec/Trace/DetectCallsLookup.hpp | 9eba87e101ff1b823e6d67b72931b93568f592a6 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mheinsen/seec | 1bcf98c6376ed9215cd79e1f02704a3958120442 | 4b92456011e86b70f9d88833a95c1f655a21cf1a | refs/heads/main | 2021-01-24T06:35:06.007131 | 2020-05-30T01:02:35 | 2020-05-30T01:02:35 | 5,106,293 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,719 | hpp | DetectCallsLookup.hpp | //===- seec/Trace/DetectCallsLookup.hpp ----------------------------- C++ -===//
//
// SeeC
//
// This file is distributed under The MIT License (MIT). See LICENSE.TXT for
// details.
//
//===----------------------------------------------------------------------===//
///
/// \file
///... |
79a05ea7cb3f899f12c85d3d8e9d60a5513ca92e | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/angle/src/compiler/translator/tree_ops/DeferGlobalInitializers.cpp | 035de73431d60d5645512435c21de19eb3d9f957 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | C++ | false | false | 7,607 | cpp | DeferGlobalInitializers.cpp | //
// Copyright 2016 The ANGLE 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.
//
// DeferGlobalInitializers is an AST traverser that moves global initializers into a separate
// function that is called in the beginning of mai... |
22bd8e01314ba8474248a2dae2493b7d4f7df8ea | af055a289e34f3c074cd1bdb2285ca1134cab792 | /tool/homography.cpp | f10e06dfe1993943d19501e49a376a92362ffbe8 | [] | no_license | EarlOu/smarthome | 647c8ea8601b932c47ef740af594286e56365216 | 880f1a96e9b655a0291ea75f125e4381cd66386f | refs/heads/master | 2016-09-05T09:35:47.243350 | 2015-04-21T07:05:11 | 2015-04-21T07:05:11 | 34,309,958 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,266 | cpp | homography.cpp | #include <opencv2/opencv.hpp>
#include <stdlib.h>
#include <stdio.h>
using namespace cv;
using std::pair;
const Scalar RED(0, 0, 255);
const Scalar GREEN(255, 255, 0);
Mat H;
Mat frame;
Mat map;
vector<Point2f> srcPoints, dstPoints;
void cross(Mat& img, int x, int y, Scalar color)
{
line(img, Point(x-5, y-5), Poi... |
222cafa9b02cc235ebf38d8e3dffa8f980dd52b2 | 670084764b586508d63da32d4bb89fd2171f2254 | /Patterns/AdapterPattern/Program.cpp | 1d5b100a9b40f9d4561eccecf311290f5fdbdc98 | [] | no_license | mylonabusiness28/cpp_design_patterns | ebaf91c7e818def9c1152d2adb0b1565496238b1 | 69331eccbc5c68798eea853c5b766734f2c81b96 | refs/heads/master | 2022-12-14T08:17:34.112611 | 2020-09-13T15:41:23 | 2020-09-13T15:41:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 868 | cpp | Program.cpp | // ===========================================================================
// Program.cpp // Adapter Pattern
// ===========================================================================
#define _CRTDBG_MAP_ALLOC
#include <cstdlib>
#include <crtdbg.h>
#ifdef _DEBUG
#ifndef DBG_NEW
#define DBG_NEW new ( _NORMAL_B... |
31d2b3aa2412cc8a3d4d3984fb7779fc760b9835 | dc3a5575a8165c8908b032e4d25302b7f1b7e29a | /Codeforces/1283D.cpp | 50fcbff2a13ff43e8a0aed365442fe734bf0ff32 | [] | no_license | algzjh/CompetitiveProgramming | 026d8b0e953a3845473ee747be832d81a81c7a74 | 8c62c54df3c2feb34cf8a2f467b21550d6822751 | refs/heads/master | 2023-07-07T16:03:17.905033 | 2023-07-01T02:54:09 | 2023-07-01T02:54:09 | 120,862,027 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,223 | cpp | 1283D.cpp | #include <bits/stdc++.h>
#define fi first
#define se second
#define mk make_pair
using namespace std;
typedef long long LL;
typedef pair<int, int> PII;
const int MAXN = 2e5 + 5;
const int INF = 0x3f3f3f3f;
int x[MAXN];
int dir[2] = {-1, 1};
map<int, bool> vis;
map<int, int> fa;
queue<int> q;
vector<int> ans;
int cnt = ... |
fcb71c65d4943869480663e6f522f819e119930d | 723cf0ea9635e534d6ef1f273cb0d0a5110c3e36 | /Node.cpp | 8880fed45a177ae4d38d62c8886ef1061f498ace | [] | no_license | webstorage119/HandPoseEstimation | ee192cd761c296026391995cd87e713e61ed878a | 257997542cf3e82cd54cbe644c8731016ac35434 | refs/heads/master | 2022-02-11T10:51:57.054474 | 2019-07-16T04:47:32 | 2019-07-16T04:47:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,339 | cpp | Node.cpp | #include "Node.h"
#include "CalSim.h"
/* By Tony, Sep 20.
Constructor for non-leave nodes.
*/
Node::Node(feature a, int d) {
this->chosenFeature = a;
this->depth = d;
this->subNodes.clear();
}
/* By Tony, Sep 20.
Constructor for leave nodes.
*/
Node::Node(example averageLabelValue, int d) {
this->label = a... |
cac0b9d2c83f93a13b6d5970425a0fd8d211d850 | dc5c89500c015e7d4526ee1b1da3b1408b7464b4 | /Arduino/Pirani/Pirani.ino | 76354871c399cf9c57ec5be5213c5f33f06e8e37 | [] | no_license | EastsidePreparatorySchool/FusorControl | 89df966f7c6426b8cb06c9f20da8fce9374c22b0 | 64d7b4e419cf0ba4af7970d060757cbbed24d850 | refs/heads/master | 2023-04-29T12:32:47.593412 | 2022-07-26T03:07:30 | 2022-07-26T03:07:30 | 154,580,626 | 3 | 10 | null | 2023-04-14T18:04:34 | 2018-10-24T23:08:55 | C | UTF-8 | C++ | false | false | 2,919 | ino | Pirani.ino | //
// Fusor project
// PIRANI
// Serial Reader for MSK 901 Pirani/Micro-piezo
// Arduino AVR boards/Arduino Mega 2560
// (we need the extra UART, could use ESP32 as well)
//
#include "fusor.h"
long avgSignal;
int newPercent = 10;
void setup(){
// must do this in init, the rest is optional
fusorInit("PIRANI");... |
755e24585c125676484d2ce289225677b43035c9 | a33aac97878b2cb15677be26e308cbc46e2862d2 | /program_data/PKU_raw/78/1851.c | 1505a51f9e7b5f5356dbabac9e78c3a48d0570d3 | [] | 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 | 887 | c | 1851.c | int main ()
{
int z,q,s,l;//????
int f(int,int,int,int);//???????????
for(z=1;z<=5;z++)//??
{
for(q=1;q<=5;q++)
{
if(q==z)
continue;//??????
else
{
for(s=1;s<=5;s++)
{
if(s==z || s==q)
continue;
else
{
for(l=1;l<=5;l++)
if(l==z || l==q ||... |
d882fc32e51468e28595a58d511c6847fe4a2fa5 | a6ccbb490380966bbab7861ae9db8ed94d9452e4 | /cmuxcontrold/ControlRequestHandler.cpp | 14c279abd7f5087c6eb43744954b04d1733bb465 | [
"MIT"
] | permissive | macherie/cmuxd | f3565dcc98745fa26ea4978c6eb075af73a8ddb2 | aebc7cb070c1172a53206993ecddf6d6ca635ef1 | refs/heads/master | 2021-05-03T17:18:28.739716 | 2013-12-13T18:00:07 | 2013-12-13T18:00:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,067 | cpp | ControlRequestHandler.cpp | #include <cmux/Package.h>
#include <cmux/Connection.h>
#include <stdexcept>
#include <errno.h>
#include <stdio.h>
#include "IRemoteParty.h"
#include "ControlRequestHandler.h"
#include "CMUXManager.h"
#include "CMUXInstance.h"
using namespace CMUX;
ControlRequestHandler::ControlRequestHandler(IRemoteParty *remote) ... |
626e7fa98dc271b59499365111fa46af8e66a184 | 33d88cf70ad9f56d2833b150b932ab07d08e9b6e | /arrays/chocolate distribution.cpp | 9a2047364aa29f2b25dab7d7d44f693eb69bf42b | [] | no_license | sanyamdtu/interview_questions | 386c33fd8a72ff22a73cfb4c3b1d4d730695cc63 | 157880e9d83009db455eec1a370010ea7b494ea0 | refs/heads/main | 2023-08-14T21:43:26.330843 | 2021-10-02T06:18:46 | 2021-10-02T06:18:46 | 315,205,280 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 307 | cpp | chocolate distribution.cpp | long long findMinDiff(vector<long long> arr, long long n, long long m)
{
sort(arr.begin(), arr.end());
ll ans = INT_MAX;
for (int i = 0, j = 0; j < n; j++)
{
if (j - i + 1 == m)
{
ans = min(ans, arr[j] - arr[i]);
i++;
}
}
return ans;
} |
f08ff5f52e5f67cb95271b547323e0dabd7147e1 | 7161996768012bf8b391f151aa52e2d3a9d2202d | /SegmentTrees/SegTrees.cpp | 71a04c2137a83dd55319249b49a87d6fa5b30292 | [] | no_license | pawan-nirpal-031/Competitive_programming | 2c0cfe98114a03faa761ada45e181a90010fa2d4 | 93763b1554428410d8f58de6eacdc972175d5ede | refs/heads/master | 2020-09-11T11:20:20.412425 | 2020-06-18T10:29:28 | 2020-06-18T10:29:28 | 222,047,110 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,815 | cpp | SegTrees.cpp | // problem link : https://cses.fi/problemset/task/1646
// This problem is better done using prefix arrays
#include <iostream>
#include <cmath>
#include <vector>
#include <algorithm>
#include <unordered_set>
#include <map>//O(log(n)) time per operation on avg a binary search tree with node having key value pairs sort... |
4a4cea486554eb5849dcaea5fb943187e599c111 | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-iot/include/aws/iot/model/CACertificateDescription.h | d525b3fb4cbea85f4bf591fe04bdb0f0a59ac9dd | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 19,381 | h | CACertificateDescription.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot/IoT_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iot/model/CACertificateStatus.h>
#include <aws/core/utils/DateTime.h>
#include <aws/iot/mod... |
a686484f4bb67fffb535af069a91c730e442e2a7 | 06bed8ad5fd60e5bba6297e9870a264bfa91a71d | /libPr3/ctc/nbhsensor.cpp | 2cfb57d7241fdc13ac96022fe8c8e5c47a701ec3 | [] | no_license | allenck/DecoderPro_app | 43aeb9561fe3fe9753684f7d6d76146097d78e88 | 226c7f245aeb6951528d970f773776d50ae2c1dc | refs/heads/master | 2023-05-12T07:36:18.153909 | 2023-05-10T21:17:40 | 2023-05-10T21:17:40 | 61,044,197 | 4 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 11,953 | cpp | nbhsensor.cpp | #include "nbhsensor.h"
#include "namedbeanhandlemanager.h"
#include "instancemanager.h"
#include "projectscommonsubs.h"
#include "ctcmanager.h"
#include "jmriexception.h"
/**
* This object attempts to "extend" (implements) Sensor functionality that
* is needed by the CTC system.
* <p>
* Goals:
* <ol>
* <li> Catc... |
c3bc54e6a73542e1824714e70e3432c087522c93 | 734e42be81caa2424c6fb03a729c9c079b0ab184 | /OpenGL/src/core/FileSystem.cpp | e4495b979b7e9288dab1be3bdccc50936fca86fe | [] | no_license | MrShedman/GL-Dev | 1d02b1d9c2564b0d69844c1348a89971b47fe90c | 920300273d37400088f03f0162dc163b3ed02729 | refs/heads/master | 2016-09-10T14:05:44.168733 | 2014-10-03T17:02:58 | 2014-10-03T17:02:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,310 | cpp | FileSystem.cpp |
#include "core\FileSystem.h"
#include <Shlobj.h>
#include <CommDlg.h>
#include <ShellAPI.h>
#include <Knownfolders.h>
#include "window\Utilities.h"
std::string getAppPath()
{
wchar_t appPath[MAX_PATH] = L"";
// fetch the path of the executable
::GetModuleFileName(0, appPath, sizeof(appPath)-1);
// get a point... |
950ee13df8551fda232e38dc40689324cdfafe6d | a021cb8ca52bb2416ad6b293c39acb8810409962 | /level_0.h | 2529a7662c656240a251db861d5e7103d114fa16 | [] | no_license | khubishah/Biquadris | 64641a0f1284b663c4d93ab8335574ee37eb1537 | 01fb9fe56d1b0c2ca5fdb351ed981f0e30b5dcc0 | refs/heads/master | 2020-12-07T11:45:28.267267 | 2020-01-11T16:30:46 | 2020-01-11T16:30:46 | 232,714,825 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 422 | h | level_0.h | #ifndef _LEVEL_0_H
#define _LEVEL_0_H
#include <string>
#include <fstream>
#include "level.h"
#include "block.h"
class Level_0 : public Level{
std::string inputfile; // file with the block sequence
std::vector<char> commandsVec; // create a vector of chars
int counter = 0;
public:
Block * generat... |
0136e0b0e7d863c883e685a8003e072edff30c02 | 39ab739dc6da171f8583c800a5426228e98539bf | /Lab04/Code/PhotoresistorReading/PhotoresistorReading.ino | 203beebc21f5719541b514800a46a93d04baae4d | [] | no_license | LinuxDevon/ECE-425-Mobile-Robotics | 82a31b3428edfc67d398f4bcce3cfcfa2e13714f | f5eda160e65f9435ff7e52500ad381735957f251 | refs/heads/master | 2020-04-09T06:18:02.283413 | 2019-02-16T20:01:28 | 2019-02-16T20:01:28 | 160,106,334 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,190 | ino | PhotoresistorReading.ino | /*
* Author: Devon Adair and Hunter LaMantia
* Date: 1/21/2019
* CM: 2202
*
* Description:
* Test program to read the sensor data to get calibration
* factors for the main program.
*/
#define photoLeft A1 // left photo resistor
#define photoRight A0 // right photo resistor
#define baud_rate 9600 ... |
b5fb80cede606605c252a4c818cca4c7f64c5946 | 4bc24c54239553ade13e93886f13f637af005d79 | /src/tests/cjson_tests.cpp | ba82792e2369351cf779341d7b888f467fd4f57a | [] | no_license | danielaparker/json_benchmarks | 189f3099e4d15b15296ceb80bd9bcb3813340569 | cd2489f8beff1c03d4da8af7b19c5ff282a82b2f | refs/heads/master | 2023-04-09T03:44:39.064325 | 2023-03-31T23:29:22 | 2023-03-31T23:29:22 | 119,314,460 | 4 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 6,298 | cpp | cjson_tests.cpp | #include <fstream>
#include <chrono>
#include <iostream>
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <vector>
#include <string>
#include "cjson/cJSON.h"
#include "measurements.hpp"
#include "memory_measurer.hpp"
#include "json_benchmarks.hpp"
using std::chrono::high_resoluti... |
a11318197d2ca261269faacc80f3311bc3cf0115 | 63ce0fe15537944da898324d32925d0b07685d41 | /include/data.h | a7feafa350675a79e049fa38098eec31dd3d3956 | [] | no_license | CopernicaMarketingSoftware/SMART-TPL | d560cd4e3ee047547192abeee8da16cd00f92c62 | 10faef946e12aa54cb0603608d60828b73ed6a05 | refs/heads/master | 2023-01-19T19:49:14.401845 | 2023-01-13T10:16:34 | 2023-01-13T10:16:34 | 17,873,023 | 25 | 10 | null | 2023-01-13T10:14:26 | 2014-03-18T16:25:27 | C++ | UTF-8 | C++ | false | false | 3,879 | h | data.h | /**
* Data.h
*
* When you process a template, you need to pass in a data object. This data
* object is filled with all the variables that can be used inside the
* template.
*
* In this header file this data class is defined.
*
* @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
* @copyright 201... |
cdfa8510741001188daf880b754a291967148847 | af48d5899c780bb46e9130d9ee9629ba83968dff | /lab3/MapperInput.h | 163ee9c78086b2bf01c2b20b27108da8a7104cf2 | [] | no_license | franco-ruggeri/polito-system-programming-api | c09c066d90e2c1edbd4aed5060b5fa3a9c7104f6 | 0f8948d3bf5c3668f376c4994f98cfef3e05008b | refs/heads/master | 2023-07-12T21:07:22.772394 | 2021-08-24T16:57:22 | 2021-08-27T21:07:59 | 274,999,872 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,550 | h | MapperInput.h | //
// Created by fruggeri on 7/2/20.
//
#pragma once
#include <string>
#include <vector>
#include <memory>
#include <sstream>
#include "Serializable.h"
class MapperInput: public Serializable<MapperInput> {
std::string input;
public:
std::string getInput() const { return input; }
friend std::istream& op... |
264cf1bb3f6d5944e9b274bb5326c97e0153a04c | c4922dce252c6a8ed658c3af922e5ecd9c66da83 | /Final_Review_p4.cpp | 33c4ac59fc43120111ebb1e9407059bb51933fb7 | [] | no_license | lopezem/CPlusPlus_Lab_Projects | 89c744bd88435c226b5ea3f879d2d26ea13515f3 | c03990911f489c36a130ac151caa23b2610000ca | refs/heads/master | 2021-05-27T20:17:42.837428 | 2014-06-14T06:42:25 | 2014-06-14T06:42:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 556 | cpp | Final_Review_p4.cpp | #include<iostream>
#include<fstream>
using namespace std;
int main()
{
char Part_Number[3];
double names;
int Price,Quantity,Amount;
ifstream firstfile("datafinal.dat");
if(firstfile.fail())
{
cout<<"error!"<<endl;
}
while(!firstfile.eof())
{
firstfile>>Part_Number>>Price>>Quantity>>names;
Amount=Quantity*... |
a972b96c16940cc16010698065f475efbc1cc8a4 | ece30e7058d8bd42bc13c54560228bd7add50358 | /DataCollector/mozilla/xulrunner-sdk/include/nsIPackagedAppService.h | 33dffe5554cb04ef8d60735461ead7e5edf88fd6 | [
"Apache-2.0"
] | permissive | andrasigneczi/TravelOptimizer | b0fe4d53f6494d40ba4e8b98cc293cb5451542ee | b08805f97f0823fd28975a36db67193386aceb22 | refs/heads/master | 2022-07-22T02:07:32.619451 | 2018-12-03T13:58:21 | 2018-12-03T13:58:21 | 53,926,539 | 1 | 0 | Apache-2.0 | 2022-07-06T20:05:38 | 2016-03-15T08:16:59 | C++ | UTF-8 | C++ | false | false | 3,240 | h | nsIPackagedAppService.h | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl\nsIPackagedAppService.idl
*/
#ifndef __gen_nsIPackagedAppService_h__
#define __gen_nsIPackagedAppService_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#i... |
e49704e534c9f5247d66bf9fc5d8bec93e654804 | 4f622b1acd6ee2e82595ed89ae4b9c4509cfd174 | /sumvector.cc | 58f579998a57963a66d8d117d1a8f85267ba10c2 | [] | no_license | GulafshanParveen/HackerRank | 671cfb0b808c06d861cbe48e91317a266ffd6607 | 41208064114504200e575184df271ac3a2713cc7 | refs/heads/master | 2022-11-14T06:27:14.050916 | 2020-06-25T18:22:32 | 2020-06-25T18:22:32 | 269,681,130 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 234 | cc | sumvector.cc | #include<bits/stdc++.h>
#include<vector>
using namespace std;
int main(){
int v[10],i=0,n=1,sum=0;
cin>>n;
for(int i=1;i<=n;i++){
cin>>v[i];
sum+=v[i];
}
cout<<sum<<endl;
return 0;
}
|
1f5fb59b888039b8a7eb57996ef5a886ce4d5b38 | 28f1786619290407b6fa3c94284025a5eb2512ec | /App/App.cpp | ce8306b8bc90e5bfbb3e919a36e516c556789d4b | [] | no_license | hitenderprakash/intelSGX-ParallelLocalAttestation | 31a7f01735c9458f35610ef614686752c0099ad1 | 62bee98d793a6e1a31186c234ac59e893fcba858 | refs/heads/master | 2021-09-03T03:33:52.941726 | 2018-01-05T07:28:31 | 2018-01-05T07:28:31 | 115,775,331 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,766 | cpp | App.cpp | /*
* Copyright (C) 2011-2017 Intel Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this li... |
09e59538e19302fd6b526442ebb654460a3203b0 | 2e13dc993b05cf372a8a00923cf56ed916313577 | /Object Oriented Programming/My OOP/Employee/Main.cpp | 4eec583517edd8f36b2035876153999e0e6819c2 | [] | no_license | thanhtung2105/Cpp_Practice_repository | b9034bcb5346f34d06d3a0f12762964440cc0f84 | f482ebb8d1b2c5d437ac144ca3af450d0e1862a5 | refs/heads/master | 2020-12-14T23:46:06.420317 | 2020-01-19T14:59:53 | 2020-01-19T14:59:53 | 234,913,748 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,997 | cpp | Main.cpp | #include <iostream>
#include "Employee.h"
#include "Officer.h"
#include "Worker.h"
#define MAX 100
using namespace std;
int main()
{
int i, iNoE, choice, o = 0, w = 0, iMax, iMin, checko=0, checkw=0; //number of employees
Officer O[MAX];
Worker W[MAX];
float SalaryMAX=0, SalaryMIN;
cout << "Input number of employ... |
1c4809c1ea4629de4ced1a63015a7610ff078c1f | 12c080b81ca5a7aaf87d4199e58dfe08b9670b7f | /120-Triangle (Tabulation).cpp | f4ca95c7b34e6299285301b7862ca5e9103bc770 | [] | no_license | PhoenixDD/LeetCode | 23970d3d5485f0c67ecc46afbf07c296a14f7a4d | 04d78870f56dc7c5057a8b22e5c3ed87ae04a8bf | refs/heads/master | 2021-01-01T19:21:32.795867 | 2020-11-26T05:12:48 | 2020-11-26T05:12:48 | 98,563,765 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 393 | cpp | 120-Triangle (Tabulation).cpp | class Solution {
public:
int minimumTotal(vector<vector<int>>& triangle)
{
vector<vector<int>> memo(triangle.size(),vector<int>(triangle.size()));
memo.back()=triangle.back();
for(int i=triangle.size()-2;i>=0;i--)
for(int j=0;j<=i;j++)
memo[i][j]=triangle[i][... |
1af3b918b3f57ee43c800a4622bc4bf86aaf6de1 | 5ff791c9d373f4403905078fe8624940044b6e38 | /src/pol/common/d3dapp/D3DKernel/D3DKernel.cpp | 6309bcdf10a3c3e9559819fdcd026b0098c1b9dd | [] | no_license | rocking-around/PoL1.62.002 | 029eb63f341b9b88bc574ae430c7eaba9f943026 | 919abd5afa7eef92dc52d4e1d1e858b906cc577f | refs/heads/master | 2023-03-21T00:20:25.192498 | 2020-03-19T08:46:56 | 2020-03-19T08:46:56 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 21,520 | cpp | D3DKernel.cpp | /***********************************************************************
Virtuality
Copyright by MiST land 2000
--------------------------------------------------------------------
Description:
-----------------------------------------------------------... |
cdd85d3256a83d9902f4a73e412de7c17365df66 | 8105d25a9e0b54a2d58c4faf0adac84761256d68 | /CoreRender/include/CoreRender/scene/PointLight.hpp | 2895c7f14bc9b6f00d19887995a7a36f682fa6f2 | [] | no_license | kinsunyang/CoreRender | a8f493674db487e158db6dd967e5682e963d81ea | b47ce06d63586ebc0927ab345e210b23ad8b7e87 | refs/heads/master | 2021-01-15T11:02:13.452362 | 2011-04-07T20:42:35 | 2011-04-07T20:42:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,995 | hpp | PointLight.hpp | /*
Copyright (C) 2010, Mathias Gottschlag
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distrib... |
d08b763eaf283d86548f5b69ce05c3c52b3c1f1f | 35b0581f1c7a8a0f71e2844cd5f028bbfaf6659c | /deived_tubes/deived_tube.h | a66151bcec23c51264c927172577962b99615578 | [] | no_license | scutlzk/Detached-moving-objects | 48bc5d18ad3c4358323848c400e566cf2e9f30e4 | d2d91867b213a83fe573f53fc6938c1d7b4f9e97 | refs/heads/master | 2020-04-04T10:00:07.414921 | 2018-11-02T13:09:26 | 2018-11-02T13:09:26 | 155,839,013 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,868 | h | deived_tube.h | #pragma once
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include<iostream>
#include<string>
using namespace cv;
using namespace std;
class deived_tube
{
public:
static int cp;
static int n_id;
int id;
int start;
int end;
int length;
Mat **data;
deived_tube*n... |
5e0a7e498693049b92224f94b6619e7f34f884f0 | cc681984758f182bc1a8373e4f79078adf3035de | /larcv/core/PyUtil/PyUtils_sparsetensor.h | f52f66289fe56bc6b9a870ce7a47eb2ffb7969e2 | [] | no_license | LArbys/LArCV | 49548b44fd4003f566a242db8e32b1a19766219e | b15bc765118a5b71964af1c2a479d67dcad6d231 | refs/heads/develop | 2023-04-08T17:49:41.007810 | 2023-03-18T09:08:44 | 2023-03-18T09:08:44 | 54,706,777 | 13 | 10 | null | 2022-06-06T18:11:27 | 2016-03-25T08:49:08 | C++ | UTF-8 | C++ | false | false | 1,049 | h | PyUtils_sparsetensor.h | #ifndef __LARCV_CORE_PYUTILS_SPARSETENSOR_H__
#define __LARCV_CORE_PYUTILS_SPARSETENSOR_H__
#ifndef __CLING__
#ifndef __CINT__
#include <Python.h>
#include "bytesobject.h"
#endif
#endif
#include "larcv/core/DataFormat/SparseTensor2D.h"
#include "larcv/core/DataFormat/SparseTensor3D.h"
namespace larcv {
// sparset... |
648a67e520a69d51be5d0585fd74b834616ed49e | 5fe1a2ee18212252aab3efdbd105ea27b71250c9 | /Documentos/ProyectoFinal/CC1036654435/Player.cpp | f4b5c359b5c8e80b28fd2b2a23385f6839cf8964 | [] | no_license | tritio1995/CursoFCII_UdeA_2021_1 | aa7ee5aec00fd16d24b6c30bdab1848996f3d5e6 | 1a31d3e9c1adfd176766a08e8869402563722fae | refs/heads/main | 2023-08-11T20:06:37.025214 | 2021-09-30T02:44:27 | 2021-09-30T02:44:27 | 343,785,653 | 0 | 0 | null | 2021-03-02T13:34:17 | 2021-03-02T13:34:17 | null | UTF-8 | C++ | false | false | 917 | cpp | Player.cpp | #include "Player.h"
Player::Player(sf::Texture *tex, int hpmax) {
HPMax = hpmax;
HP = HPMax;
texture = tex;
}
void Player::init() {
shape.setTexture(*texture);
shape.setPosition(game.setWidth()*0.5, game.setHeight()*0.75);
}
sf::Sprite Player::getSprite() {
return shape;
}
void Player::update(float x, float y... |
e7632660d9c5b4b73a7f139133ba5ff208a53659 | 506bbcdca33654333577b2b0f5a25b797e41ddee | /MxSusp.cpp | 5fbbf64b7cebe346d863cf98b985fdcae56a730a | [] | no_license | henyau/vehicle_sim | a8c36a87ff608a5c335794ce101895d6ca632152 | f3c1dde5e24a32d4a7d698f6e11dec10e49b04dd | refs/heads/master | 2021-07-03T16:59:28.779846 | 2017-09-24T23:18:42 | 2017-09-24T23:18:42 | 104,682,887 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 32,557 | cpp | MxSusp.cpp | #include "StdAfx.h"
#include "MxSusp.h"
//simple linear spring. soon to be non-linear. then to be moveable suspension geometry
CMxSusp::CMxSusp(CMxCarAttribute *_pCarAttr, CMxCar *_Car,int _which)
{
pCar = _Car;
m_iWhich = _which;
Initialize();
Reload(_pCarAttr);
}
CMxSusp::~CMxSusp(void)
{
}
void CMxSusp... |
1d01726c7a7e0bb34497e6a57f82cf9c9c0283d2 | f3e50a94449341bc5f05682b6084038417a531b2 | /CP/CP/main.cpp | 27b86e545d08458cb429a0257343e348eae1034c | [] | no_license | sridharreddy7/Algos | 1f61d1c9a6e4d16e2c0051f34ec0b04a63d66a2c | 6b03c949ce6ce0ef7f913efa209c08406ad4c656 | refs/heads/master | 2021-01-21T06:31:07.328879 | 2017-02-26T23:37:11 | 2017-02-26T23:37:11 | 83,248,827 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 760 | cpp | main.cpp | //
// main.cpp
// CP
//
// Created by Sridhar Maddireddy on 9/16/16.
// Copyright © 2016 Sridhar Maddireddy. All rights reserved.
//
#include <stdio.h>
#include <iostream>
#include <string>
#include <cstring>
#include <algorithm>
using namespace std;
// void reverse( int arr[],int f, int l){
// cout<<"f"<<f<<endl;... |
428320092814e3e818bbbde204595ca2067f8e91 | 1eccaabdcfe72e7d48e1049c3f10a06bba531967 | /SirCornellBox/Sphere.h | f4d389449bbd46a7a3ccb07c2d9b2a8d64672222 | [] | no_license | trainlock/SirCornellBox | 72e7480d255dc8408c35eb4dfc369303b3a59710 | 0ee355dd8d12836c3e56ae6ecd1d10c050e4c43f | refs/heads/master | 2020-04-06T23:38:32.248980 | 2019-03-04T10:58:33 | 2019-03-04T10:58:33 | 157,876,296 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 506 | h | Sphere.h | #pragma once
#include "ColorDbl.h"
#include "Material.h"
#include "../SirCornellBox/glm/glm.hpp"
#include "../SirCornellBox/glm/ext.hpp"
class Sphere{
public:
Sphere();
Sphere(glm::vec3 _centerPos, float _radius, Material _mat);
~Sphere();
bool calculateSurfacePt(glm::vec3 rayPos, glm::vec3 rayDir, glm::vec3 *su... |
627d7dd7f61835c70e82720f2388d91191ea26ff | 201b06f2178b1fa283c117c7b457a6a4d1683e98 | /src/frustum.h | 39019f654b9d159ea16b465564b39663ea4819dc | [
"MIT"
] | permissive | eeshadutta/Fighter-Plane-Game | 9586990fecc33e1a82803b1389c96e978a00bea1 | 2d5bb6561597204a5c8ec8e09ea84a7ae58b7fe0 | refs/heads/master | 2020-04-19T17:55:44.982795 | 2019-02-19T20:44:30 | 2019-02-19T20:44:30 | 168,348,640 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 370 | h | frustum.h | #include "main.h"
#ifndef FRUSTUM_H
#define FRUSTUM_H
class Frustum
{
public:
Frustum() {}
Frustum(float x, float y, float z, float h, float r1, float r2, color_t color);
glm::vec3 position;
float rotation;
float r1, r2, h;
void draw(glm::mat4 VP);
void tick(float speed_x, float speed_y, float speed_z);... |
b4e4726725ca249fb37ff556c3b081dbdc6c3101 | 40d7fc6e3c30008232f97529ec0509c02bd50f0a | /swbasic/mathematics/1934/1934.cpp | f5e5ecd56f0dd16b33e98bbd06f8b895d6b2a3b5 | [] | no_license | mooniverse131/SolutionsVSC | d528cc2f5d3010581075f932a83c4ae40c26b687 | 74c897b15d3b6f0d8055fb9428d00beb93e5fc21 | refs/heads/master | 2023-04-17T21:01:06.025158 | 2021-05-16T16:40:48 | 2021-05-16T16:40:48 | 279,222,355 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 751 | cpp | 1934.cpp | #include <iostream>
using namespace std;
int gcd(int a, int b)
{
int temp;
while (b != 0)
{
temp = a % b;
a = b;
b = temp;
}
return a;
}
int lcm(int a, int b)
{
int m = (a * b) / gcd(a, b);
return m;
}
int main()
{
int count;
while (1)
{
cin >>... |
d1622f16ec88abbfd647f9f7947a94ca2c436eb1 | 0f620b3cf2fd474b3ac0e0f3b1377fe1e557f86f | /src/SpriteAnimation.h | 9b0f2203df8a45e584463d41a52002c1ca8073b3 | [] | no_license | alfonso-balbuena/c_capstone_project | 8d2b58b485e164f3d272c38539cd06404f85f96b | 64ba9c190055e534d0a556b90784165c0f57ea8a | refs/heads/main | 2023-03-07T19:17:20.955315 | 2021-02-23T08:26:38 | 2021-02-23T08:26:38 | 337,575,062 | 0 | 0 | null | 2021-02-14T05:12:12 | 2021-02-10T00:30:26 | CMake | UTF-8 | C++ | false | false | 880 | h | SpriteAnimation.h | #ifndef SPRITE_ANIMATION_H
#define SPRITE_ANIMATION_H
#include <SDL2/SDL.h>
#include <vector>
#include <string>
#include <memory>
#include <map>
#include <iostream>
class SpriteAnimation {
public:
SpriteAnimation();
SpriteAnimation(const SpriteAnimation& other);
SpriteAnimation(SpriteAni... |
85b87ddbef0ebef92145e2c4b1f604729305ef1f | 67a46851a67f0a93d7312c5a9a89c942e37b73eb | /algorithm/HDU-ACM/ambition0109/12692.cpp | 2016203af9c468796fb81752ce9ca64c56e8036a | [] | no_license | zhangwj0101/codestudy | e8c0a0c55b0ee556c217dc58273711a18e4194c9 | 06ce3bb9f9d9f977e0e4dc7687c561ab74f1980b | refs/heads/master | 2021-01-15T09:28:32.054331 | 2016-09-17T11:11:06 | 2016-09-17T11:11:06 | 44,471,951 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,866 | cpp | 12692.cpp | ////////////////////System Comment////////////////////
////Welcome to Hangzhou Dianzi University Online Judge
////http://acm.hdu.edu.cn
//////////////////////////////////////////////////////
////Username: ambition0109
////Nickname: Ambition
////Run ID:
////Submit time: 2010-12-09 21:54:43
////Compiler: Visual ... |
f7d81f4f14397ccc83457b902ea9854766422780 | 51021a6aecf17df60a7b620308fcbea58bc7460a | /DataServer/TcpListener.cpp | 0aabd2e0dd716fabb4ae7423744608faf0ea21bd | [] | no_license | Neomer/energo | 53d5cf877821ab8e4848c38b24c8d82a71772ee6 | 32f4712fb30bba1a8875e9c085f0ff1f7ffa19f7 | refs/heads/master | 2020-09-24T14:42:13.850898 | 2019-12-06T06:48:01 | 2019-12-06T06:48:01 | 225,782,992 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 544 | cpp | TcpListener.cpp | #include "TcpListener.h"
TcpListener::TcpListener(PgreSqlDrv *connection, QObject *parent) :
QTcpServer(parent)
{
_conn = connection;
connect(this, SIGNAL(newConnection()), this, SLOT(onConnectionReceive()));
}
void TcpListener::setPort(int port)
{
_port = port;
}
void TcpListener::onConnectionReceive()
{
QT... |
ee4da531adefd8b93830013affbaf59ac56a279e | 36c8cf395214abaad868ec06bd97bf418733b1b0 | /test/unit-tests/gc/flow_control/token_distributer_test.cpp | fc18e948d263ce8552c9257bf48d2f5d1f97089d | [
"BSD-3-Clause"
] | permissive | south-potato/poseidonos | 69435ecb2dd80c1eb702f36501156705b1908111 | 35c5bbd392a261d257f1ead3e8be7c3f44c5831a | refs/heads/main | 2023-08-12T13:31:32.495095 | 2021-09-30T09:59:22 | 2021-10-05T02:27:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,560 | cpp | token_distributer_test.cpp | #include <gtest/gtest.h>
#include "src/gc/flow_control/token_distributer.h"
#include <test/unit-tests/allocator/i_context_manager_mock.h>
#include <test/unit-tests/array_models/interface/i_array_info_mock.h>
#include <test/unit-tests/gc/flow_control/flow_control_configuration_mock.h>
using ::testing::Test;
using ::tes... |
d0d1ab57304dbafe695b18d7b80ae7d5cbe85832 | 45ff2429af133fc2e36803a2a8e1492be5b73dc9 | /test_polymorphism.cpp | f6c84fd9ff6aab3beda2a4139229db693a061020 | [] | no_license | piyushkandpal/CrackingTheCodingInterview | f663d7398a88201df43d44134abecb0cd5e03e1e | a5afb5ee3b5dc6b859141ed7d13a8e47c67d6d4f | refs/heads/master | 2016-09-06T21:29:16.629512 | 2015-05-10T19:02:13 | 2015-05-10T19:02:13 | 35,383,539 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 355 | cpp | test_polymorphism.cpp | #include<iostream>
using namespace std;
class A
{
int a;
public:
void show()
{
cout<<" show of class A"<<endl;
}
};
class B:public A
{
public:
void show()
{
cout<<" show of class B"<<endl;
}
};
int main()
{
B *b=new A();
b->show();
A *... |
2c9a3cc9963d6f594e2212c4017dd2fde001fca9 | 5b3611018c15d36c7edc31efbab5f26e29b22fb7 | /DSP/DSPCore/dspapp.cpp | f54cbf3356df1ca59989a8b0ad537e01808a0590 | [] | no_license | ivansteezy/DSP | 8b5b0e250876c8751d89dbef6a416c0ee8cd87d5 | e79a43ec3fb6057d3cd889c7dff81b97c8a95b59 | refs/heads/main | 2022-12-15T16:22:57.073051 | 2020-09-14T22:59:38 | 2020-09-14T22:59:38 | 295,557,116 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 926 | cpp | dspapp.cpp | #include "dspapp.h"
#include "mainviewmodel.h"
#include <QtCore/QCommandLineParser>
DSPApp::DSPApp(QObject *parent) :
CoreApp(parent)
{
QCoreApplication::setApplicationName(QStringLiteral("DSP"));
QCoreApplication::setApplicationVersion(QStringLiteral("1.0.0"));
QCoreApplication::setOrganiza... |
4ea2708811cd44926a0a7892170faea4349e6489 | f7f360176abc319fe7aa733fd55c180b5b76a3e8 | /232.cpp | 345ec3e6a12fc8014e54d5fddf148474469005a4 | [] | no_license | cxwcfea/uva-code | 2f5ebe5bd30b14655bb9b6ecf3290d6bca3acc96 | 9e766f68591e7291e6c3577ae13a5eb090a7414f | refs/heads/master | 2016-09-03T06:53:47.549638 | 2015-02-28T02:48:55 | 2015-02-28T02:48:55 | 11,715,678 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,904 | cpp | 232.cpp | /*
* =====================================================================================
*
* Filename: 232.cpp
*
* Description:
*
* Version: 1.0
* Created: 07/04/2014 19:54:49
* Revision: none
* Compiler: g++
*
* Author: cxwcfea(cxwcfea@163.com),
* Or... |
d49e34c2da3fa1f77244ce55036abdb5e139cf2a | 7f8a13c84b77cfc3d464a303f1857454e6455ed3 | /Soomla/domain/CCSoomlaEntity.cpp | ce0087a2d18c20956aa46de4b88bcc5a3694f52b | [
"Apache-2.0"
] | permissive | scopely/soomla-cocos2dx-core | 8c866bc23a8a51ad0c63ed710d0f80391fc53ce0 | c8a189b8e1320989f742d3e627050493b9291912 | refs/heads/master | 2020-12-25T04:27:28.289516 | 2016-01-15T22:47:18 | 2016-01-15T22:47:18 | 42,206,933 | 0 | 1 | null | 2015-09-09T21:55:28 | 2015-09-09T21:55:26 | C++ | UTF-8 | C++ | false | false | 2,487 | cpp | CCSoomlaEntity.cpp | //
// Created by Fedor Shubin on 7/23/14.
//
#include "CCSoomlaEntity.h"
#include "CCSoomlaUtils.h"
#include "CCDomainFactory.h"
namespace soomla {
#define TAG "SOOMLA SoomlaEntity"
using namespace cocos2d;
bool CCSoomlaEntity::init(cocos2d::__String *id,cocos2d::__String *name, cocos2d::__String *desc... |
901ab01fe1a3344d0a7cac7261b240c3b7deb8a3 | 5c1712cdc90b859b48c20094d7bb7c813d3d8bec | /acm1013.cpp | 8a90d17738c65e99ad7a6f2f52c2057215dc84da | [] | no_license | Denislyl/POJACM | 2819199764604510f9da1e47251fdd363782626d | 695f33a0c30f904213e7cde545723d40ab9b2b0a | refs/heads/master | 2021-01-25T08:28:09.154677 | 2013-07-25T15:36:43 | 2013-07-25T15:36:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,822 | cpp | acm1013.cpp | #include <iostream>
int main()
{
int times = 0;
std::cin >> times;
for ( ;times > 0 ; times--)
{
char line1[5] = {0};
char line2[5] = {0};
char line3[5] = {0};
int result[12] = {0};
bool lock[12] = {false};
for(int it = 0; it < 3 ; ++it)
{
std::cin >> line1;
std::cin >> line2;
std::cin >> lin... |
449be0c65c64d8e477bbbe73339b78ab4665d8ea | 982fe1d410b5f928ac5e0496d426825b94df2894 | /streams/streams/Persistens.h | 277cffc3d19bcf7df5dce64ab0ff531ba2946b06 | [] | no_license | marcevald/CPP_School | f4cb00919708e1f94d7f4bee409fe4c3ff55ec41 | bb92a9d308e2df05281f2ef7684cf7c5b272a13b | refs/heads/master | 2021-04-28T08:06:13.300008 | 2018-06-05T21:05:08 | 2018-06-05T21:05:08 | 122,240,052 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 310 | h | Persistens.h | #include <string>
#include "c:\Users\od\Documents\Visual Studio 2015\Projects\PF2Books\PF2Books\Person.h"
#pragma once
using namespace std;
class Persistens
{
public:
Persistens();
void write(string text);
void writePerson(Person p);
string read();
Person readPerson();
~Persistens();
};
|
c4c04ec6d456ad74a22998d85468d4c74c6dc57b | ac7169b8f8e545ac3f511774639f6c456083eac5 | /mastery26.cpp | 365e51716702f2d2a35d2dcaf11c257f1c38d4e7 | [] | no_license | AsaPuls/WSQ | ecd4aee1902eae185a7723a13b0c8995b3a2fbca | d9a734ea10f7f47835deba649fe815cc6e0c8d1b | refs/heads/master | 2021-03-12T19:59:13.731159 | 2015-05-04T23:20:56 | 2015-05-04T23:20:56 | 30,938,290 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 508 | cpp | mastery26.cpp | #include <iostream>
using namespace std;
int main (){
int Array1[3], Array2[3], Array3[3];
cout << "This is a 3X3 matrix which contains the values 1-9" << endl;
for (int i=0; i<3; i++){
Array1[i] = i+1;
Array2[i] = i+4;
Array3[i] = i+7;
}
for (int i=0; i<3; i++){
cout << Array1[i] << " ";
... |
2bc06d8b164a45fb9b451bda65d0f18b4d90b3f8 | f06394eb49f055ce3a51c93eb56249350d64ddbb | /tests/generation-tests/kdm/event/EventRelationship.hpp | 28eb6687c481a39d91021f079aa0d2bcb07bc9dc | [] | no_license | happyj/e4c | a3c6eb523cf1d346a73b138c45a6cdfc83766710 | 59646a43d50749ddfc983e9a1f3a3c70fc5eb218 | refs/heads/master | 2020-03-26T05:15:09.814976 | 2014-02-22T11:20:12 | 2014-02-22T11:20:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,152 | hpp | EventRelationship.hpp |
#ifndef EMF_CPP_KDM_EVENT_EVENTRELATIONSHIP__HPP
#define EMF_CPP_KDM_EVENT_EVENTRELATIONSHIP__HPP
#include <kdm/event/fwd.hpp>
#include <kdm/event/meta.hpp>
#include <kdm/event/AbstractEventRelationship.hpp>
#include <e4c/mapping.hpp>
namespace kdm
{
namespace event
{
class EventRelationship : public virtual ::k... |
8673a9b07185ada11fcaf7e332cf4f8c38929478 | eb35fbb7bcd0d09b530642aa47c0d888f88c43d1 | /Hyperexponential/oneDimElement.h | a701726e2575c6947fd8a4e954fe14128e92769f | [
"MIT"
] | permissive | anton0824/mphnplusm | afbd47276b87444ee39bde7e111347df7d254078 | 21da291d64b2c5b794038877a6222598136775d0 | refs/heads/master | 2021-01-20T01:22:48.624729 | 2017-04-24T17:11:09 | 2017-04-24T17:11:09 | 89,266,083 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,125 | h | oneDimElement.h | #ifndef _ONE_DIM_ELEMENT_
#define _ONE_DIM_ELEMENT_
#include <vector>
#include "basicElement.h"
using namespace std;
class oneDimElement {
private:
vector<double> x, h;
public:
oneDimElement() {};
oneDimElement(const vector<double>& x_) {
setGrid(x_);
}
void setGrid(const vector<double>&... |
4ccff444b46e742104468f2f68caaf655351d400 | 5780afffca2ad73a75f8b732fa9e41f67d2864a3 | /src/C4Board/Move.cpp | 583998ffe65b97e781675b52f2cea249c871d0ad | [] | no_license | Xelvair/Connect4-Engine | 4dc41437eaf9a017e0373aeb63b75ebe5951585c | 37078c144eb180b523b5307f5c6e5aa77774614d | refs/heads/master | 2021-01-20T05:31:25.270731 | 2013-08-06T17:09:39 | 2013-08-06T17:09:39 | 11,929,733 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 743 | cpp | Move.cpp | #include "Move.h"
using namespace C4;
////////////////////
// MEMBER METHODS //
////////////////////
Move::Move(){}
Move::Move(Player player, const int column)
: m_player(player)
, m_column(column)
{}
Move::Move(Move const& rhs)
: m_player(rhs.m_player)
, m_column(rhs.m_column)
{}
Move::~Move(){}
Move& Move:... |
3d12a394df39aa5a9226793d20e280ac16466d58 | c498e1d2806f36cab5414f57b0211c8873eb43c4 | /GameSocket.cpp | 2ed1be61383b93a27272767066514db3e78895b6 | [] | no_license | mifa031/MFC_project_2017-2 | 469a00e9c9a6c475eabe6210ad28075cba47f39f | 073ebdb3b5b8ee8f2bb7d32ac098629986de4121 | refs/heads/master | 2021-03-27T15:28:40.421263 | 2017-12-19T18:12:31 | 2017-12-19T18:12:31 | 112,184,744 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 3,257 | cpp | GameSocket.cpp |
#include "stdafx.h"
#include "NetworkChess.h"
#include "GameSocket.h"
CGameSocket::CGameSocket()
{
m_pWnd = NULL; //윈도우 포인터 초기화
m_pFile = NULL; //파일 포인터 초기화
m_pArchiveIn = NULL; //아카이브 포인터(인) 초기화
m_pArchiveOut = NULL;//아카이브 포인터(인) 초기화
}
CGameSocket::~CGameSocket()
{
if ( m_pFile != NULL )
{
... |
aa29697c4e40cb8dc889310f1e7a5f6a7e16a05d | c32829b434b3527a9545fa5db37af62fba818508 | /WinSTDyn/STDFrame/STDFrame.cpp | 55d566a5126916147c35efd6d0f482d02feb567b | [
"MIT"
] | permissive | chen0040/ogre-war-game-simulator | 63dabfbf9e4bbfe4d1489cf7e67e2f93215af1c9 | 58eee268eae0612d206e7eb0b8e495708db1ef27 | refs/heads/master | 2021-01-20T06:14:31.772192 | 2017-09-06T00:27:39 | 2017-09-06T00:27:39 | 101,493,196 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,718 | cpp | STDFrame.cpp | #include "stdafx.h"
#include "STDFrame.h"
#include "../OSEnvironment/OSEnvironment.h"
#include "../STDEngine/STDEngine.h"
STDFrame::STDFrame(const std::string& frameName)
: mFrameName(frameName)
, mLeftButtonDown(false)
, mRightButtonDown(false)
, mContinue(true)
, mWindowsMouse(true)
{
STDEngine* app=STDEngine::getS... |
195f76262610183aa25613beb209c1258f596b0e | 294c7cca849cda6e5b40481748ce69c649be78cb | /BOJ/sqrt decomposition/13548.cpp11.cpp | 06e105ffc5de359ee5b556a0b742e451bbfd3a4b | [] | no_license | dgu14/cbs | 06b7a686dc84ce5d77cc6c9fe101738430665053 | 1eb4e3de5e91507364cf5840f2c4f432df5504d8 | refs/heads/master | 2021-07-10T18:41:39.155115 | 2019-02-24T05:07:08 | 2019-02-24T05:07:08 | 142,029,094 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,993 | cpp | 13548.cpp11.cpp | #include <bits/stdc++.h>
using namespace std;
class triple
{
public:
int x, y, z;
};
int n, m, sn, arr[100005], cnt[100005];
int fa[100005] = {0,}, maxx=0;
triple q[100005];
void add(int c)
{
if(c>=100001) exit(0);
fa[c]--;
fa[c+1]++;
maxx=max(maxx, c+1);
}
void del(int c)
{
if(c<=0) exit(0)... |
7b3c7dc82558faf6ca45ea8e729feb9813127966 | cf7a9a49b9e5c0325e33a4a3f65fe4958f4d329f | /BinarySearch/binarySearch.cpp | b83b747ec4a95501051e0782b0afbb4c0a5fe904 | [] | no_license | rahulgoyal911/DsAndAlgo | 9060f79f882b2e6ebba52488f8480e3c165bf984 | 357fe4303af8eeb0cdab457add3742f5a36ba6e2 | refs/heads/master | 2020-08-06T10:04:18.762646 | 2019-12-09T07:49:35 | 2019-12-09T07:49:35 | 212,936,609 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 577 | cpp | binarySearch.cpp | using namespace std;
#include<iostream>
int binarySearch(int a[],int l,int r,int number){
if(l<=r)
{
int mid = l + (r-l)/2;
if(a[mid] == number)
return mid;
else if(a[mid] > number)
binarySearch(a,l,mid-1,number);
else
binarySearch(a,mid+1,r,nu... |
9e62726438d299e99287791383d2283806ac0380 | 4d74aa247055ba254a7f3ab305634dffcc656185 | /tests/accessor/generic_accessor_api_fp64.cpp | 0fe0d3ed66d200d016dedd560450304946f4fee5 | [
"Apache-2.0"
] | permissive | KhronosGroup/SYCL-CTS | e2ecc8ffd0f80e90f6f44a2f5e1ce167aff53ba9 | cc653d0d88bb40d209e83267b5b91b070d84300a | refs/heads/SYCL-2020 | 2023-08-31T23:55:36.962775 | 2023-08-30T14:12:30 | 2023-08-30T14:12:30 | 160,528,100 | 51 | 60 | Apache-2.0 | 2023-09-14T15:49:21 | 2018-12-05T14:11:21 | C++ | UTF-8 | C++ | false | false | 1,309 | cpp | generic_accessor_api_fp64.cpp | /*******************************************************************************
//
// SYCL 2020 Conformance Test Suite
//
// Provides generic sycl::accessor api test for the double type
//
*******************************************************************************/
#include "../common/disabled_for_test_case.h"
#... |
ef6d0170c65a117adaf1057eb2048081e7878bac | 60193311299ad70a697da3a65699fcd8b63bf264 | /Orge-Study/Tutorial5/Tutorial5Application.cpp | 8c7474a5f4f8e9ecda06d5f841f19449dda30599 | [] | no_license | DGHeroin/Mirror-GLSL-Study | cd6fac3967173f9bf77d8d32776508fa81a98d86 | 9df468c5d8cc77bd89f4185230fd0b34c3721cad | refs/heads/master | 2021-09-23T23:30:59.336825 | 2017-07-03T16:14:42 | 2017-07-03T16:14:42 | 96,129,238 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,975 | cpp | Tutorial5Application.cpp | /*
-----------------------------------------------------------------------------
Filename: TutorialApplication.cpp
-----------------------------------------------------------------------------
This source file is generated by the
___ _ __ __ _ _
/___... |
90684c8590708e5f0f9cf2ac00d64536bb45ae12 | 008ef533f591232a547b7f530edce00cbd61596c | /eagle/eagle18/Server/SendSocket.cpp | 77a8827f441a7b02fd18504a76b02717522fb3ef | [] | no_license | becauseOf/k-down | ece189ed4d4e3be41591035e9fbbfa8b0a8f7e2f | 22337982fec1437bbfb268f1acfa288195cfb3d8 | refs/heads/master | 2021-01-20T12:51:49.526380 | 2017-02-21T11:08:59 | 2017-02-21T11:08:59 | 82,667,469 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 740 | cpp | SendSocket.cpp | // SendSocket.cpp : 实现文件
//
#include "stdafx.h"
#include "Server.h"
#include "SendSocket.h"
#include"ServerDlg.h"
// CSendSocket
CSendSocket::CSendSocket()
: m_pParentWnd(NULL)
, m_csIP(_T(""))
{
m_pParentWnd=NULL;
}
CSendSocket::CSendSocket(CWnd* pWnd)
{
m_pParentWnd=pWnd;
}
CSendSocket::~CSendSocket()
{
}
//... |
5282f4de38219a42fbb5afb7f9e70cb3504c9e42 | 259b8a3b25e064e59f9cca14a6492e705c40a301 | /二分+排序/归并排序.cpp | 7e8e50c5a1e063c80a8733ac721e654b8cb41a76 | [] | no_license | 1904240605/Summer | 32f039a359e45b85ff4606acfbee13465c5a1956 | 556b1d1515052babaeed18c854896a61df0a81fc | refs/heads/master | 2022-12-17T10:25:28.351746 | 2020-08-30T16:54:02 | 2020-08-30T16:54:02 | 277,723,000 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 649 | cpp | 归并排序.cpp | #include<bits/stdc++.h>
using namespace std;
int a[100],b[200],n;
void _merge(int l,int mid,int r)//归并
{
int p1=l,p2=mid+1;
for(int i=l;i<=r;i++)
{
//两段各个数比较大小存入9
if(((p1<=mid)&&(p2>r))||(a[p1]<a[p2]))
{
b[i]=a[p1];
p1++;
}
else
{
b[i]=a[p2];
p2++;
}
}
for(int i=l;i<=... |
a0b6ee6c30f5828cfa1dc3762f15c43c772c94a2 | ff46abcbd97f46529697650323d16010480dcc0e | /Stacks/remove_adjacent_duplicates.cpp | e7282187cecee9aabc88a2c94480d9403594ec14 | [] | no_license | sachinjose/Datastructure_n_algo | 2db6d26c1dc9903de266d8f1a7321a89a057907d | d1ef37c5f1aab6c7b5cb69231c9e4e54a05dcc98 | refs/heads/main | 2023-05-18T18:25:33.099531 | 2021-06-05T06:28:10 | 2021-06-05T06:28:10 | 335,059,698 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 662 | cpp | remove_adjacent_duplicates.cpp | #include"/Users/sachinjose/Desktop/DSnA/stdc++.h"
using namespace std;
vector<char> remove_adjacent_duplicates(vector<char> &s){
vector<char> temp;
temp.push_back(s[0]);
for (int i = 0; i < s.size(); i++){
char top_element = s.at(i);
if(temp[temp.size()-1]!=top_element){
temp.push_back(top_element);
... |
3e374798c4fc48cbbd054daad3a67bdc7e8d5254 | 586f3b2c96614b57d010ff17bbccf7830eb1449e | /Iterator/ObjectIterator.cpp | 402a8f931db066a63d1849d81bfd2f3aa44c1c5a | [
"MIT"
] | permissive | sung-gon-kim/CppDesignPatterns | d658c38f09d7c5a2b87e4122e2ce095b20754916 | 399cb7b040d30695edcc085eecfdaf74b3bde1bc | refs/heads/master | 2023-06-09T10:08:06.058023 | 2023-06-06T15:59:47 | 2023-06-06T15:59:47 | 177,288,172 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 316 | cpp | ObjectIterator.cpp | #include "ObjectContainer.hpp"
#include "ObjectIterator.hpp"
ObjectIterator::ObjectIterator(ObjectContainer* container) :
mContainer(container), mIndex(0) {
}
bool ObjectIterator::hasNext() {
return (mIndex < mContainer->getSize());
}
Object ObjectIterator::getNext() {
return mContainer->get(mIndex++);
}
|
bc2069143f78a7bea1f5cb0f4bd673254d5e18dc | 9b638c9a1a44fa37cae6c06e242bf0d98023c78e | /src/constraints/distinctperday.h | 751b40a5aafc8ff160b79c431f2229ce84970576 | [] | no_license | cjquines/timetable | 3a6aa2d9850d45194535d891ff840b8fcd53d6bd | 733410cd0f23c000bb1c0b1ad99c5ceb70351dd5 | refs/heads/master | 2021-10-08T13:09:42.861644 | 2018-12-12T16:05:00 | 2018-12-12T16:05:00 | 117,795,732 | 2 | 0 | null | 2018-12-12T16:05:01 | 2018-01-17T06:39:53 | C++ | UTF-8 | C++ | false | false | 569 | h | distinctperday.h | #ifndef _TIMETABLE_CONSTRAINTS_DISTINCTPERDAY_H
#define _TIMETABLE_CONSTRAINTS_DISTINCTPERDAY_H
#include "constraint.h"
class DistinctPerDay : public Constraint {
public:
DistinctPerDay(Schedule* schedule, int priority);
int CountTranslate(int section, int timeslot, int open_timeslot) override;
int CountSwapTim... |
8877af8929999b574a3fd554f30accec11d72308 | 051f421cc87bf33280620cfce372d6b0c34c4ca9 | /leica_geocom/src/class_leica/QtcpSocket/my_client/mytcpclient.h | 0d56d7e298cc7b01d320c3c59e94bf51ab4afe01 | [] | no_license | javpra/GeocomClass_Leica | 2f92fcfabef35a51453a61e03cc5d7d4dda5d56c | 9f322822adfad4e240553f6a5af20eda5710172a | refs/heads/master | 2021-09-07T21:54:02.338719 | 2018-03-01T16:22:47 | 2018-03-01T16:22:47 | 111,561,782 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 411 | h | mytcpclient.h | #ifndef MYTCPCLIENT_H
#define MYTCPCLIENT_H
#include <QtNetwork>
#include <QtCore>
class myTCPclient : public QObject
{
public:
explicit myTCPclient(QObject *parent=0);
public slots:
bool connectToHost(QString _host, qint16 _port);
bool writeData(QByteArray _dataWrited);
bool receiveData(... |
3ceadf0e01c5177fdf7deaf7e4e4d3beea799b71 | f4012432838885981121ed2e6830a66ea52ad5be | /project1/LMS/dialogaddreader.h | 95f62b34eb6bf3a384f5853f193dd1fcd7cf32aa | [] | no_license | HEtinto/Qt | 073ea1c36a5d2c05e5a0ea3db9e6a563cda345b7 | 9ed257a8f59315e34a156e90d7fc26bd7f01cebf | refs/heads/main | 2023-05-02T01:36:05.994615 | 2021-05-31T14:39:26 | 2021-05-31T14:39:26 | 330,092,355 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 632 | h | dialogaddreader.h | #ifndef DIALOGADDREADER_H
#define DIALOGADDREADER_H
#include <QDialog>
#include <QTime>
namespace Ui {
class DialogAddReader;
}
class DialogAddReader : public QDialog
{
Q_OBJECT
public:
explicit DialogAddReader(QWidget *parent = nullptr);
void initUi(QString S1, QString S2, QString S3);
~DialogAddRe... |
23e2827c2d6f6bde66eca6e9abd777279072c437 | 2a6569dee384b2ae4fec67f0bce739666d9810ac | /lightoj 1134.cpp | 97a09c51964552913ec0326c4ace89a3f24e181c | [] | no_license | AshrafulHaqueToni/Lightoj-solution | 156f12947fca707e17af8f73082d7bf1fc137449 | 24b75927fb7c8f3bb72a907d5025200c5f171fa4 | refs/heads/master | 2023-04-06T14:47:33.117230 | 2023-03-18T11:39:28 | 2023-03-18T11:39:28 | 214,278,231 | 8 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 527 | cpp | lightoj 1134.cpp | // Created by ash_98
#include<bits/stdc++.h>
using namespace std;
#define mx 100005
#define ll long long
#define mod 1000000007
int ar[mx];
char ch[mx];
int n,m,k,ii;
void solve()
{
map<int,int>mp;
mp[0]++;
scanf("%d%d",&n,&m);
ll re=0,sum=0;
for(int i=1;i<=n;i++)
{
int x;
scanf(... |
3163b324911749cbf8974e37a77159e4c326f595 | d63f892631a0a6b0ad2ecf6e93210a23d0aef608 | /hw6/hw6-1-4.cpp | 4604a2c73596d676109534b23a076304980fe1dc | [] | no_license | vivianjeng/PD2017 | a0c39e7c0187f658328279877d0e37ea81fd1b7c | 17bcb6bc114600976b3fd532283b36eab2c3fb36 | refs/heads/master | 2021-01-19T18:56:16.336240 | 2017-04-16T07:24:12 | 2017-04-16T07:24:12 | 88,388,417 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,764 | cpp | hw6-1-4.cpp | #include <iostream>
using namespace std;
int main() {
int n,m,p,c;
cin>>n>>m>>p>>c;
int companyx[n];
int companyy[n];
int storex[m];
int storey[m];
int total_revenue=0;
int needs[m]; //Store's needs
int capacity[n]; //Center's capacity
int unsatisfied=0;
int distance[m][n]; //distance betwee... |
66c4d9510cfcecc87932dbcbc25fa9cf4f4185cf | 239dd4d33c6de8da74de7d86139a0ef3906d33c8 | /test_case/test_params.cpp | 028baf799d12dd35bf74a06cb3d72c3122cb4073 | [] | no_license | firef0xff/SSHGS01 | d5e46e609603d265899ce074ba63237570ebb1d1 | ff55111678e06ba0e98b92b4639899259bc4d7ea | refs/heads/master | 2020-04-06T07:05:23.570392 | 2017-06-17T16:44:33 | 2017-06-17T16:44:33 | 39,292,588 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,317 | cpp | test_params.cpp | #include "test_params.h"
#include "tests.h"
#include <memory>
#include <mutex>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QFile>
#include <QLocale>
#include "test_case/implementation/test_params_hydro.h"
#include "test_case/implementation/test_params_servo.h"
#include "test_case/imp... |
cb95076cd042753f18c55b9783af0d01e33931dd | 5f914801fc884934900e59e8a017525e3396ee30 | /cplus/CrackingTheCodingInterview/8_8_PermutationsWithDups/8_8_PermutationsWithDups/main.cpp | 5eee9a4cbade0132ff41629e920ace73b87b1c04 | [] | no_license | GalitMiller/sandbox | bb374f0be5ffbea7c56a437ccd27db63cc8b625e | f24c064faf4c8a58edc8e903b2e71a5c502b8f0e | refs/heads/master | 2022-01-19T23:21:41.759164 | 2022-01-19T16:10:19 | 2022-01-19T16:10:19 | 50,676,610 | 1 | 0 | null | 2016-02-07T23:40:29 | 2016-01-29T16:52:07 | C++ | UTF-8 | C++ | false | false | 1,649 | cpp | main.cpp | //
// main.cpp
// 8_8_PermutationsWithDups
//
// Created by Lesley Miller on 1/6/16.
// Copyright © 2016 Lesley Miller. All rights reserved.
//
#include <iostream>
#include "vector"
#include "string"
using namespace std;
long factorial(long n)
{
return (n == 1 || n == 0) ? 1 : factorial(n - 1) * n;
}
void p... |
c467b4a70a67591934371f5d16fa13d21511f751 | b7e7141e459f3774a4c3066dbfa0a2c9da721559 | /OOP/test/controller.h | 4a8a88a2ef1c7a4419f8610e6cca46beebd78c76 | [] | no_license | VasilicaMoldovan/Year-1 | 1fcf93645040bfd2f76c5d28a07e1fae17c76f1e | a68b803d53f34e08191492891e3b0adf2ed34ee6 | refs/heads/master | 2023-01-24T09:42:04.126800 | 2020-12-01T16:03:51 | 2020-12-01T16:03:51 | 317,577,995 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 445 | h | controller.h | #pragma once
#include "repo.h"
class MicrospritesController {
private:
MicrospritesRepository controllerOfMicrosprites;
public:
MicrospritesController() {};
bool addNewMicrospriteToTheList(Microsprites newMicrosprite);
DynamicVector<Microsprites> getAllTheMicrosprites();
void sortMicrosprites();
void modifyPopul... |
941519e5ae012cb920b93c43a4f828627ef78e22 | ee0bd91f5f7fe881cb4c336c93cd3ddf8a14ded8 | /tests/tests.cpp | 67f9f7f92f175993954f2efd0980dbe8dc75c7e2 | [
"MIT"
] | permissive | menezes-/libisbn | e2807d3538b89d371835f9b38b73b99c8e3cd402 | 5e3ff78bff87672e6b3be663892b7b634b4b6cea | refs/heads/master | 2021-01-10T08:08:11.677824 | 2016-01-21T15:18:27 | 2016-01-21T15:18:27 | 49,606,111 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,204 | cpp | tests.cpp | #define CATCH_CONFIG_MAIN
#include <string>
#include <array>
#include "libisbn.hpp"
#include "Catch/single_include/catch.hpp"
using namespace libisbn;
TEST_CASE("clean") {
std::string t1{"978-1-891830-75-4"}, t2{"9781891830754"}, t3{"isbn 979-10-90636-07-1"},
t4{"073627099x"}, t5{"ISBN: 07-362-7... |
0ae74ad0d4999e7437ae26652398a54404c9aff0 | ea8aa77c861afdbf2c9b3268ba1ae3f9bfd152fe | /hdu2829.cpp | ddca2c4a5ce6cf53a5ce31989f6202fb1769442b | [] | no_license | lonelam/SolveSet | 987a01e72d92f975703f715e6a7588d097f7f2e5 | 66a9a984d7270ff03b9c2dfa229d99b922907d57 | refs/heads/master | 2021-04-03T02:02:03.108669 | 2018-07-21T14:25:53 | 2018-07-21T14:25:53 | 62,948,874 | 9 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,702 | cpp | hdu2829.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
const int inf = 0x3f3f3f3f;
const int maxn = 1000 + 10;
ll sum[maxn];
ll sqsum[maxn];
ll SI[maxn];
ll dp[maxn][maxn];
ld getg(int j, int k, int t)
{
ld numi = 2 * dp[j][t - 1] - 2 * dp[k][t - 1] + sqsum[j] - sqsum[k] + sum[... |
cd932fc100c2f292481014e6d3694d63fe9cbaeb | f591ca555eef1245bc00bf824a4dbb16fa50c092 | /HelloQt/patient_repository.cpp | a0460aa12963dc56c0a348083f28875421a6e58c | [] | no_license | Stefan-J-P/Hospital_Qt | e1b54af73131a9bec40273a27169d0ceb871071d | ba15017a94bc12afc4e5bbf2da18a9f7508942c8 | refs/heads/master | 2020-03-21T01:17:57.375381 | 2019-01-05T18:09:43 | 2019-01-05T18:09:43 | 137,934,834 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,605 | cpp | patient_repository.cpp | // Created by stefan on 5/27/18.
#include "patient_repository.h"
#include "sql_connection.h"
// ADD PATIENT ------------------------------------------------------------------------
void patient_repository::add_patient(const patient &p)
{
QString sql = "insert into patient "
"(first_name, last_nam... |
b5a0b057b0023e238438bc16092d8ce6ca12483c | c6c8bf3525698a8184fde1b5439a24744970512d | /searchlib/src/vespa/searchlib/tensor/hnsw_index_loader.cpp | ac98b28d1058fa13d9af026989e404cb13806b1a | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | socratesone/vespa | 0df03ece09de001942232300de23f8db13a38e45 | 7ee52b93cbae2695cf916c9b2941361b35b973f1 | refs/heads/master | 2023-03-16T23:35:10.953427 | 2021-03-17T02:41:56 | 2021-03-17T02:41:56 | 305,143,840 | 1 | 0 | Apache-2.0 | 2021-03-17T02:41:56 | 2020-10-18T16:18:57 | null | UTF-8 | C++ | false | false | 1,546 | cpp | hnsw_index_loader.cpp | // Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "hnsw_index_loader.h"
#include "hnsw_graph.h"
#include <vespa/searchlib/util/fileutil.h>
namespace search::tensor {
HnswIndexLoader::~HnswIndexLoader() {}
HnswIndexLoader::HnswIndexLoader(HnswGr... |
fe3ee31f63f6930e0e530a040a7f9f27c72d7e72 | aa58142f042192bd1d73290d9ca7d825c0377260 | /Lab2/lab2_2.cpp | 220888401ee70fe9641476bca5ab905fd5021bc8 | [
"Apache-2.0"
] | permissive | Aden-Hang/Sudoku | a4711034d0d0289f1e056e65ecbe83e76341086f | df6a29cdb61dcc51ce15ac23dadd57251df17d82 | refs/heads/master | 2016-09-01T15:02:12.213556 | 2016-03-30T17:17:38 | 2016-03-30T17:17:38 | 55,082,270 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 484 | cpp | lab2_2.cpp | #include<iostream>
#include<string>
#include<fstream>
#include<iomanip>
#include"BMI.cpp"
#include"BMI_class.cpp"
using namespace std;
float BMI[6];
int main()
{
int i , j ;
int ch[6][2] ;
ifstream file("file.in.in",ios::in);
for(i=0;i<5;i++)
{
for(j=0;j<2;j++)
{
file>>ch[i][j];
}
}
for(i=0... |
a232e61b91837a60793fde23578de7cbfd3fc610 | 2ad8e7ca390ac0851f49c04331e634ee1527c314 | /CC150/setStacks.cc | da8ae5d109c94de4914575d9d1b3d78d7c07b3a0 | [] | no_license | xuqing-ict/BackupCode | 1659e6e367a7c5f2c5509f66a6c7d79f2d70e738 | 73d29e572c01b2ff8e3e42d8b9ea9be7bd57e1cc | refs/heads/master | 2021-03-12T22:41:06.629381 | 2015-03-09T11:41:42 | 2015-03-09T11:41:42 | 24,397,766 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 635 | cc | setStacks.cc | /**
* @file setStacks.cc
* @brief
* @author Qing Xu, xuqinguestc@163.com
* @version 0.1.00
* @date 2014-06-11
*/
#include "setStacks.h"
int main()
{
SetofStack sos;
sos.push(1);
sos.push(1);
sos.push(1);
sos.push(1);
cout << sos.get_count() << endl;
//sos.pop();
sos.push(5);
cout << sos.top() ... |
e7263909586bc1765bb34b5b11d6f721b7aafe6d | 1666550e48b349d427cef82b4cd9032fd94c6f63 | /src/TreeFromQuadrics.h | 03ed233b158b4fa4056d352dc70cc3e24d0fc6e5 | [] | no_license | engelsjo/OpenGLAnimationProject | 93f617bdc590e585aa3692c70fd470a6ac1feff4 | 44c1f604aa788021380516a5236c808735deafc8 | refs/heads/master | 2016-09-05T11:30:08.871868 | 2015-03-15T02:02:39 | 2015-03-15T02:02:39 | 31,146,317 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 510 | h | TreeFromQuadrics.h | //
// TreeFromQuadrics.h
// ProjectTwo
//
// Created by Joshua Engelsma on 3/14/15.
//
//
#ifndef __ProjectTwo__TreeFromQuadrics__
#define __ProjectTwo__TreeFromQuadrics__
#include <stdio.h>
#include <GLUT/GLUT.h>
#include <string>
#include "GLUquadricSphere.h"
#include "GLUquadricCylinder.h"
using namespace std;
... |
503907b91c8e18c9772eced66285bef54b754147 | 4b4ba7ff73f1911b39a1315b9b709c98e1cbab73 | /Point3D.cpp | 68eba5d22302b7a2883faace288365e1cf4fc49d | [] | no_license | jlopez92/demo-apps | 8ef1fb243291ed587349bf983adffc0fa392ebb1 | 2fff6992e5d23a3e5f25fb4a1c8b647d14ca219c | refs/heads/master | 2022-04-17T00:00:28.963782 | 2020-03-31T05:00:19 | 2020-03-31T05:00:19 | 251,476,601 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,578 | cpp | Point3D.cpp | #include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
//parent class point with two data members for x and y.
//getter methods for x and y created as well
//default constructor initializes x and y to 1
//two arg constructor initializes with provided values.
class Point {
protected:
doubl... |
a83ebc2e286e8904b3c2b5a46f1e8cca1bfd6452 | 6362213c25d472c03354477bb9fa2e1c4fbe8002 | /n/graphics/TextureBase.h | f5288c4e9bb99493fb066c391f06008c2e8617ac | [] | no_license | gan74/n | f56503feccc4a6879ce58b0c5c54a98759dd1226 | 483b3d688f1257cbebee5f7ed027b32f1fd098e0 | refs/heads/master | 2021-04-12T04:34:38.565621 | 2016-05-15T17:25:16 | 2016-05-15T17:25:16 | 19,203,478 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,756 | h | TextureBase.h | /*******************************
Copyright (C) 2013-2015 gregoire ANGERAND
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 3 of the License, or
(at your option) any later version.
Thi... |
f5ae4fe0a722475288882a39cf2a633344017a1e | faf949597e55883f6f97b3fa3f25a3842b65cca4 | /с++/Lab1/kalkylator.cpp | 148a45245c6ea5903320aa723dd27b8e7866f4ca | [] | no_license | Terobit1/Labwork | 563f41d5c7457c2c3fcf7aaae56d141c8175c434 | 7b26001f457cbcb1734114530cec313b3846a148 | refs/heads/master | 2021-10-08T12:53:16.658744 | 2018-12-12T13:28:47 | 2018-12-12T13:28:47 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 1,411 | cpp | kalkylator.cpp | #include <stdio.h>
#include <math.h>
#include <iostream>
using namespace std;
int main()
{
double a, b, c;
char d;
int p = 1, mod;
setlocale(LC_ALL, "Ukrainian");
cout<<"-----------------------\n";
while (p = 1)
{
cout << " Виберiть кiлькiсть елментiв прикладу\n";
... |
f40625f63f8469f2096eda3c5542a42d3dccf607 | 5bc47dcf9ab0843b9d06bc25012bcb2f78874216 | /1176A.cpp | 5c091bf931f057469b29b6921e403562a736f84b | [] | no_license | MijaTola/Codeforce | 428f466248a4e9d42ac457aa971f681320dc5018 | 9e85803464ed192c6c643bd0f920f345503ac967 | refs/heads/master | 2021-01-10T16:27:12.479907 | 2020-10-14T15:00:14 | 2020-10-14T15:00:14 | 45,284,776 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 516 | cpp | 1176A.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
//ios::sync_with_stdio(false); cin.tie(0);
int q;
cin >> q;
while(q--) {
long long n;
cin >> n;
int ans = 0;
while(n != 1) {
if(n % 2 == 0) n /= 2;
else if(n % 3 == 0) n = (2 * n) / 3;
... |
41133a33b15d8c744c53111f0187d9dc7afaafc3 | 81cc6d93d8dd070d9ea7fd692dbdc441e9102b50 | /DataStructures/Trees/Binary Search Tree/BST.cpp | 07ccd01555e90c2dcd815c89c2e6c6c2a937e2e8 | [] | no_license | ponderstine/Personal-Portfolio | 5e4005029fee922b3168658ded031dbc0639b354 | 1b6ada9f2a0098a45cd4f4628a4c30cbb657f11e | refs/heads/master | 2023-01-04T18:37:19.635165 | 2020-10-29T19:09:36 | 2020-10-29T19:09:36 | 293,380,393 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,354 | cpp | BST.cpp | #include "BST.hpp"
binarySearchTree::binarySearchTree(){
// Create the tree with the root pointing to NULL
root = NULL;
return;
};
binarySearchTree::binarySearchTree(int key){
// create a new node for the root to point to
root = new Node;
root->key = key;
return;
};
void binarySearchTre... |
7ea45f52bd80b94387781b753ae8291b92f8e133 | 339dbf42f1bddbcc3d188803c3a6c1d56acc4c32 | /core/modules/cliff_module.cpp | 69c2e6dcb13feb37319d4f60a2f457f69198bc8c | [
"MIT"
] | permissive | konstantin-fedorov/PROWOGENE | 1d542b89358340ff1e121b367b20abb09286c0a5 | 6aebbdea88015bd186ed16cc0b6d2a845bcf7fed | refs/heads/master | 2021-07-05T01:36:42.794346 | 2021-05-24T14:28:43 | 2021-05-24T14:28:43 | 242,391,096 | 3 | 0 | MIT | 2021-05-19T12:12:01 | 2020-02-22T18:28:02 | C++ | UTF-8 | C++ | false | false | 2,076 | cpp | cliff_module.cpp | #include "cliff.h"
#include <cmath>
#include "utils/array2d_tools.h"
namespace prowogene {
namespace modules {
using std::list;
using std::string;
using utils::Array2D;
using AT = utils::Array2DTools;
void CliffModule::Process() {
const int size = settings_.general.size;
const int octaves... |
0cb1fb01547c794be7962a6fd4d2f6c38c321203 | b43e53d73ee97495580715839a8d791fbf4e860e | /Test/main.cpp | 8162427e5557353971cb2cc0dc883bf5085147d8 | [] | no_license | solidusex/arsenalcomp | 68f5058184b6848c74f89fe3ae8fcdef516326bc | 4870a8f0c5a1c06bee305b1dc4b91626cf0972c8 | refs/heads/master | 2016-09-06T16:54:32.705118 | 2015-07-06T19:10:15 | 2015-07-06T19:10:15 | 41,565,781 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,123 | cpp | main.cpp |
#define WINVER 0x0601
#define _WIN32_WINNT 0x0601
#define _WIN32_WINDOWS 0x0410
#include "test.h"
#include <iostream>
#include "Arsenal.h"
#include <Dbghelp.h>
#pragma comment(lib, "Dbghelp.lib")
#pragma comment(lib, "Arsenal.lib")
#pragma comment(lib, "Wldap32.lib")
#p... |
4e2770533a2bc059f9e3a897cf222a58f3f20102 | acfd1c8eecece97b33797dc75b3ded08687655d9 | /The Project/CharacterHistory.h | 60f001591ab7082f996564ed6acc2963439ad653 | [
"MIT"
] | permissive | Diablini/theproject | 100cb1d0146a90212dd2452cbf5be490e32bdbcf | 8088f547f13d5888679d70ae06b25ba94d3b530b | refs/heads/master | 2016-08-04T08:27:19.180388 | 2015-02-23T13:20:46 | 2015-02-23T13:20:46 | 30,911,803 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 121 | h | CharacterHistory.h |
#pragma once
#include <string>
struct CharacterEvent
{
};
class CharacterHistory
{
// TODO: write this class
};
|
5a8a86202c2f8e2eaf25c8bb76a6422b5a133ccb | 66c72feadf115c31aa56d5bb0a33615c4672d9cc | /Squeaky Engine/Main Engine Components/Time.h | 2b858021894c9102c13846f3984501cbf172404e | [
"MIT"
] | permissive | vvuu134679258/3D-Maze- | 2a1349dc970745e62865ce62dc8df89aba07f2e7 | 5cf815af15f9e432479dcfb90db033e0c9903e86 | refs/heads/master | 2021-09-14T03:33:28.153895 | 2018-05-07T16:15:04 | 2018-05-07T16:15:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 343 | h | Time.h | #pragma once
#include <GLFW\glfw3.h>
#include <iostream>
using namespace std;
class Time
{
public:
static void Start();
static void Update();
static float GetDeltaTime();
static float GetTime();
private:
static float currentTime;
static float lastTime;
static float deltaTime;
static int framesNum;
static... |
19b0d60dd004a7e75fc717b643a28a78f1f3b52b | 32e0a3de768683b47572987b3e26540e1cfdf041 | /FinalProject/rhodes_Pia.cpp | b76e623ca23003906bb3f73fc76cd21707a9c287 | [] | no_license | ahmedkhan1039/Compose-IT | 5d03da08aea4871389d49e3c107ee7b9e1b83653 | 247566982019866563d325df9bc130def32216a6 | refs/heads/master | 2020-03-19T04:15:19.988717 | 2018-06-02T11:03:30 | 2018-06-02T11:03:30 | 135,810,438 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 719 | cpp | rhodes_Pia.cpp | #include "rhodes_Pia.h"
#include <Windows.h>
#include <mmsystem.h>
#pragma comment(lib, "winmm.lib")
rhodes_Pia::rhodes_Pia(void)
{
}
void rhodes_Pia::playsequence(char p)
{
if (p == 'q')
{
PlaySound(TEXT("Rhodes/1.wav"), NULL, SND_ASYNC);
}
if (p == 'w')
{
PlaySound(TEXT("Rhodes/2.wav"), NULL, SND_ASYNC)... |
8a9413db84c5c17bbbf5f4b93189987fd78d4bca | 127fa080496be33be7ac47b0125b8f8b94acf9b1 | /ClarksonPolarisLinux_May2021/cs344/hw3/circularlist.cpp | 078bb6a7cb67788cb8cd67badcb38f75bb075571 | [] | no_license | pschmid1818/Clarkson-School-Projects | 53d1ce7c3d62bae34835d5bae78936ea6fe0109b | 88e1e01fa0e512a1f1aaa78882e659682e271672 | refs/heads/master | 2023-05-05T14:30:45.156017 | 2021-06-01T03:33:13 | 2021-06-01T03:33:13 | 372,693,906 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,777 | cpp | circularlist.cpp | #include "circularlist.h"
#include <iostream>
using namespace std;
Linkedlist::Linkedlist(){
rear = NULL;
}
Linkedlist::~Linkedlist(){
if(is_empty())
return;
while(rear->next != rear){
node *n = rear->next->next;
delete rear->next;
rear->next = n;
}
delete rear;
}
bool Linkedlist::is_empty(){
return (... |
1bde7ba35441a6234385e2bb793d3d049cd3d74f | b955510b69ed04f65572327244816ceb1127632a | /src/float2.cpp | 88473b6ac08d4cddf2fa3354ac2fc5b62d459d2e | [] | no_license | wrdn/GameEngine | f7f1518d944e1b114dd1af7be5e6454c87b7ad53 | 041ce85e9c1dc2a6ca62eee2e094ad8f1d7d80fc | refs/heads/master | 2016-08-04T22:56:43.112330 | 2013-06-23T13:42:31 | 2013-06-23T13:42:31 | 3,536,567 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,885 | cpp | float2.cpp | #include "float2.h"
#include <iostream>
const float2 float2::ZERO = float2();
const float2 float2::ONE = float2(1.0f);
float2::~float2() { };
float2::float2() { zero(); };
float2::float2(const f32 v) { setall(v); };
float2::float2(const f32 _x, f32 _y)
{
vec[0] = _x;
vec[1] = _y;
};
float2::fl... |
cff6c302b084136be3e9e750ec04d2ac281030c3 | 39d5ec15948f08246d620e9c5be138d664d203fa | /SRC/Core/Interpreter/Branch.cpp | d9214b16904f52b8f5bbf6e57a8d0949230b82bf | [
"CC0-1.0"
] | permissive | radtek/dolwin | d42a456cd6d90e224e7ee15d7b7e763fde18b082 | d997a42be7d1d1f687680657423aca300d9b0784 | refs/heads/master | 2022-11-10T22:31:38.514797 | 2020-06-28T13:04:32 | 2020-06-28T13:04:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,327 | cpp | Branch.cpp | // Branch Instructions
#include "../pch.h"
#include "InterpreterPrivate.h"
namespace Gekko
{
void Interpreter::BranchCheck()
{
if (Gekko->intFlag && (Gekko->regs.msr & MSR_EE))
{
Gekko->Exception(Gekko::Exception::INTERRUPT);
Gekko->exception = false;
return... |
b2079bfe2744805779b5ebbd4462b43e3e029f31 | 37619c3650c56172e58ce328708956506bd388bb | /Arduino开发基础/savework/onenat/onenat.ino | a8b863fc14b5209dafbec40a93371055269a0584 | [] | no_license | Jeffup/Classwork | 0dfbf1c3b047f111f02acd9cac61a43b1da008ee | bb5834d32e01391deaed7fde1d1ddb284fd6347c | refs/heads/master | 2020-09-07T08:48:19.692576 | 2019-12-01T09:37:14 | 2019-12-01T09:37:14 | 220,727,751 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,042 | ino | onenat.ino | //修改要上传的数据为温度和湿度在http函数中
#include <Adafruit_CC3000.h>
#include <ccspi.h>
#include <SPI.h>
#define Wido_IRQ 7
#define Wido_VBAT 5
#define Wido_CS 10
#include <dht11.h>
#define DHT11_PIN 4
dht11 DHT;
Adafruit_CC3000 Wido =
Adafruit_CC3000(Wido_CS, Wido_IRQ,
Wido_VBAT,SPI_CLOCK_DIVIDER);
#define WLAN_SSID ... |
1aad83acec243df6821a99340491fcc67a554c0f | a30a8b60e07ba5b3db7455c7901b3aa464db97d8 | /code/Ad-Hoc/p-level-2/1026.cpp | e7d499549c2292cdfaf258c882649fb7faf00edb | [
"Unlicense"
] | permissive | RenanTashiro/URI | a0cb7fca4eb4cca563efe41c7978514902f2b005 | 85c4d3079211d4b4415798649af8c6ce3be541b8 | refs/heads/master | 2021-01-22T19:55:02.241244 | 2018-05-25T19:38:46 | 2018-05-25T19:38:46 | 85,258,612 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,457 | cpp | 1026.cpp | /*
Nome: Carrega ou não Carrega?
ID: 1026
Resposta: Accepted
Linguagem: C++
Tempo: 0.628s
Tamanho: 2,24 KB
Submissao: 02/02/15 15:40:15
*/
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
string DecToBin(unsigned long long int number)
{
if ( number == 0 ) retur... |
5e177c447dc6521c62312ccf3b92427f0b5b080b | 2625a6411e83a2093d166337993c2f70cd3861a6 | /HOLAXIAN/Ranking.h | a2a170872e5c437aa1de9e1fb4bace3a92166561 | [
"MIT"
] | permissive | dawidholka/Holaxian | 682efbe68fd612f516af8fbca6d4444976772dd1 | 73a504b717a6be75ed2319ee60a41fa764dfaa33 | refs/heads/master | 2021-05-14T08:43:28.355182 | 2018-02-06T20:25:09 | 2018-02-06T20:25:09 | 116,308,189 | 0 | 0 | null | 2018-01-30T20:12:01 | 2018-01-04T21:13:55 | C++ | UTF-8 | C++ | false | false | 417 | h | Ranking.h | #ifndef RANKING_H
#define RANKING_H
#include "Header.h"
#include "Game/Text.h"
const int RANKING_TEXTS = 7;
const int RANKING_LIST_SIZE = 5;
const int SELECTED_EXIT_RANKING = 6;
class Ranking : public Text
{
private:
int score[RANKING_LIST_SIZE];
char players[RANKING_LIST_SIZE][6];
bool isRankingRunning;
... |
b724ae0534634788422443d8a70528a2b152e568 | bb1c9d8f47789137ce7269fdd056992f7848fed0 | /testsuite/tests/testlibs/ApplicationProcessBase.h | 5e4fd0fe13d78cea4f59da06113c0f4fda7b96c3 | [
"Apache-2.0"
] | permissive | osrf/opensplice | e37ed7e1a24ece7c0f480b4807cd95d3ee18daad | 7c3466f76d083cae38a6d7fcbba1c29106a43ea5 | refs/heads/osrf-6.9.0 | 2021-01-15T14:20:20.065297 | 2020-05-11T18:05:53 | 2020-05-11T18:05:53 | 16,789,031 | 10 | 13 | Apache-2.0 | 2020-05-11T18:05:54 | 2014-02-13T02:13:20 | C | UTF-8 | C++ | false | false | 3,004 | h | ApplicationProcessBase.h | #ifndef APPLICATION_PROCESS_BASE_H
#define APPLICATION_PROCESS_BASE_H
#include "TestLibsAPI_export.h"
#include "TestLibsAPIC.h"
#include "TestLibsAPI.h"
namespace OSPLTestLib
{
/**
* @brief Base class for an application to extend and overload to get notifications from
* the ProcessController, if it needs ... |
46822474f48ab0f0cacc66138948f8885bab57f3 | 63b6a18103e7b672b3f39a99528e53f33dad4b95 | /c++/c++11/auto/auto_type.cpp | 8ed9330b16b45428e88b62129966f70bd5fcc8bf | [] | no_license | smhuas/sample | d2407fe72b4257233d5a1aae545c0c3e427089dd | e072d566069ddd1b4e3b4ffe4b5e37cf8b0640e8 | refs/heads/master | 2023-02-18T07:36:23.541121 | 2021-01-22T04:07:42 | 2021-01-22T04:07:42 | 119,840,620 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 586 | cpp | auto_type.cpp | /*
// auto type
*/
#include <iostream>
#include <vector>
using namespace std;
int main()
{
auto a = 10;
auto b = 12.34;
auto str = string("vijay");
cout<<"a type is "<<typeid(a).name()<<endl;
cout<<"a type is "<<typeid(b).name()<<endl;
cout<<"a type is "<<typeid(str).name()<<endl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.