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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
be9bf4d633add3efa7b9fadb6c190aeefe38a149 | 54f8416303a7c0d91fdcb503fdc2b7c9af79ea7c | /src/utils/args.hpp | 4fdd88297e3626c61c79585fcf89d874217d2cd8 | [
"MIT"
] | permissive | praveenmunagapati/ccompiler | 2d564bd726e45253e70f49c9d55f07023ce680fd | f87418d5fb3f47e404b6e9004a06cb0e6faeea8d | refs/heads/master | 2021-07-16T15:51:16.914335 | 2017-09-16T23:25:21 | 2017-09-20T18:37:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,728 | hpp | args.hpp | #pragma once
#include <cstring>
#include <cassert>
#include <stdexcept>
#include "../cpp/string_view.hpp"
#include "../cpp/variant.hpp"
#include "../cpp/format.hpp"
#include "../cpp/contracts.hpp"
namespace utils
{
struct invalid_option : std::logic_error
{
using std::logic_error::logic_error;
};
inline auto is_o... |
dd1fe0497e13e13682a8127522867f5a98c93a28 | 90d253b075c47054ab1d6bf6206f37e810330068 | /LeetCode/Weekly322/2490.cpp | f01f36a1affa2819b4a38f81df780edce1beea88 | [
"MIT"
] | permissive | eyangch/competitive-programming | 45684aa804cbcde1999010332627228ac1ac4ef8 | de9bb192c604a3dfbdd4c2757e478e7265516c9c | refs/heads/master | 2023-07-10T08:59:25.674500 | 2023-06-25T09:30:43 | 2023-06-25T09:30:43 | 178,763,969 | 22 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 477 | cpp | 2490.cpp | class Solution {
public:
bool isCircularSentence(string sentence) {
istringstream iss(sentence);
string cur;
char f = '~';
char l = '~';
while(getline(iss, cur, ' ')){
if(l == '~'){
f = cur[0];
}else{
if(cur[0] != l) ret... |
7f3065ebe3a0ac4ce151fbd0aead0598f68a5eb2 | 1c43294f43549c3ebfa6b5bc038b955ef5e64cf3 | /food_and_drink.cpp | ce753bef744aca0ff52e8b56995a393227a48a04 | [] | no_license | J3B60/CPP-exercises-Week-2 | 6ac814864e124df539c5353091f2d0dfc5e98e3b | a02add32f3813340e3f2a21aaf1e792413696420 | refs/heads/master | 2023-03-15T00:44:12.122885 | 2021-02-22T18:56:09 | 2021-02-22T18:56:09 | 341,576,351 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,569 | cpp | food_and_drink.cpp | // Let's include the C++ string header
#include <string>
// I can also include any of the C standard library files
// by dropping the ".h" off the end, and putting a "c" at the front.
// So, if I want stuff contained in <stdlib.h> and <time.h>...
#include <cstdlib>
#include <ctime>
// Finally, we'll include our heade... |
e3135254c6020227e2727cf523957f3973e52e66 | a3d99125d2070073b4245223727cd58e81c43d68 | /CPPFileExample/src/CPPFileExample.cpp | e6d0fbb5233680e3c7f3de98fe7ed8033528f856 | [] | no_license | joseph2186/Prep-2017 | af7a7f66f5acdf5780ffd0f5a621e2e5501c7e15 | 386b59654eb0b0388a5e53ec0f694321bfb619d2 | refs/heads/master | 2021-01-09T06:20:23.666497 | 2017-10-18T03:38:32 | 2017-10-18T03:38:32 | 80,965,791 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 840 | cpp | CPPFileExample.cpp | //============================================================================
// Name : CPPFileExample.cpp
// Author : JKB
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
... |
9557aa64b292d83d625b46d5326e054ded23fdd0 | c9fbcd2712bccb1c64286497842da4585779b70b | /TwoDeeFramework/TwoDeeFramework/SDL_Manager.h | 3fe9b252766585cff124049452c11b24a3988785 | [] | no_license | ruulaasz/TwoDeeFramework | fae773a0b7c3f1fb6aec188e1c0754fa05dcf011 | 099dd73c7acb9ac63fc97b4f11fcc05679c521b1 | refs/heads/master | 2020-03-26T15:54:13.303361 | 2018-10-31T22:58:57 | 2018-10-31T22:58:57 | 145,070,677 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,633 | h | SDL_Manager.h | #pragma once
#pragma comment(lib, "SDL2.lib")
#pragma comment(lib, "SDL2_image.lib")
#pragma comment(lib, "SDL2_ttf.lib")
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_ttf.h>
#include "Module.h"
namespace TDF
{
class Texture;
//! A manager class for SDL 2.0.
/*!
Used to initialize and use the SDL 2.0 ... |
99c64d593874bc3de658020841f6d094185c9cba | 4be9494f8b5f4b77cbdcf7ff5b1780d4a3f27a9d | /test/unittests/lib/core/stack_unittest.hpp | cfabcbe08d6c30f82f5a0ae16db18c2a3a10b90b | [
"BSD-3-Clause"
] | permissive | PunchShadow/WasmVM | 122bcaef2888557f7b2018bf547557d04145c689 | 824ca57eb2d699b8c641382c867af089d7518b8a | refs/heads/master | 2020-04-05T15:21:26.343054 | 2019-04-30T11:14:55 | 2019-04-30T11:14:55 | 153,037,301 | 0 | 0 | BSD-3-Clause | 2018-10-15T01:40:13 | 2018-10-15T01:40:13 | null | UTF-8 | C++ | false | false | 857 | hpp | stack_unittest.hpp | #include <skypat/skypat.h>
#define _Bool bool
extern "C" {
#include <dataTypes/Value.h>
#include <core/Stack.h>
#include <dataTypes/Label.h>
#include <dataTypes/Frame.h>
#include <dataTypes/Value.h>
}
#undef _Bool
SKYPAT_F(Stack, create_delete)
{
// Prepare
Stack* stack = new_Stack();
// Check
EXPECT... |
c7f6252aff5a25957835ffae48d73c9ff9b4e326 | 55c9e34fc7deb751a553c1c3ed99d90d050a8b05 | /363A - Soroban.cpp | cd274513eb7758bb38f3ffe95400522deee3f334 | [] | no_license | WaterPlimpie/CodeforcesSolutions | 3287f496bc7d3b83f4bf7b11e6b97bca1b991e83 | edd5307449891ab23c53b4caf4046f6580468141 | refs/heads/master | 2020-03-22T06:31:51.504396 | 2018-07-03T23:23:57 | 2018-07-03T23:23:57 | 139,640,729 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 410 | cpp | 363A - Soroban.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
string nums[] {
"O-|-OOOO",
"O-|O-OOO",
"O-|OO-OO",
"O-|OOO-O",
"O-|OOOO-",
"-O|-OOOO",
"-O|O-OOO",
"-O|OO-OO",
"-O|OOO-O",
"-O|OOOO-"
};
for... |
6d063c7961ac8aacc86b5509c2eb9521f8098aa2 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /ash/app_list/model/search/search_result.h | e4ce65c0720604430613cfbbf7ec64a5ca642593 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 8,841 | h | search_result.h | // Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_APP_LIST_MODEL_SEARCH_SEARCH_RESULT_H_
#define ASH_APP_LIST_MODEL_SEARCH_SEARCH_RESULT_H_
#include <stddef.h>
#include <memory>
#include <string>
#include <utilit... |
96414def7200902a097c0ee0ba466fd537b5310c | 5d134a52c1a0148efd7c95bbdef486f4223be936 | /src/Simulation/Handler/ThermostatHandler.h | c4953de7b6d78f4982e228879c7bf53d6987bb6c | [] | no_license | molekulardynamik/projekt | d0ace5820cd36e35aa0ff29adfa0e4f7fe94e206 | 5c231bb997e70c4c9c403cea0c5ddbf8dae9573c | refs/heads/master | 2021-01-22T03:05:28.191968 | 2015-01-22T14:13:14 | 2015-01-22T14:13:14 | 25,927,925 | 0 | 0 | null | 2014-10-29T15:53:06 | 2014-10-29T15:40:16 | null | UTF-8 | C++ | false | false | 2,801 | h | ThermostatHandler.h | #pragma once
#include "ParticleHandler.h"
#include "../MaxwellBoltzmannDistribution.h"
namespace Simulation
{
/// \class Thermostat
/// \brief stores global data for temperature calculations
class Thermostat
{
public:
static int& numDimensions()
{
static int dim_;
return dim_;
}
static double& kineticEnergy()... |
92b44d2fe3060f99afcc55eaf45e8e7e3f3078ed | 84ce9ea0aaf0978485a357939e09bfe8e863305f | /RemoteEye/GoalkeeperAnalysis/src/VideoSession.h | e478404efb8a1b38ad60c421dd526c1cbb521907 | [
"MIT"
] | permissive | dmikushin/RemoteEye | af13043c19188b0ab9e486cf86efe9ecbcdbbcd6 | f467594e8d0246d7cc87bf843da1d09e105fcca7 | refs/heads/master | 2022-11-27T21:33:55.330974 | 2020-08-08T16:05:37 | 2020-08-08T16:05:37 | 286,013,449 | 0 | 0 | MIT | 2020-08-08T09:31:59 | 2020-08-08T09:31:58 | null | UTF-8 | C++ | false | false | 272 | h | VideoSession.h | #ifndef VIDEO_SOURCE_H_
#define VIDEO_SOURCE_H_
#include <functional>
class VideoSession
{
public:
virtual ~VideoSession() = default;
virtual bool startCapture(std::function<void(unsigned char*, unsigned int)> callback) = 0;
virtual void stopCapture() = 0;
};
#endif |
ac03c0d579e90a6e1c11babdc775d4815d2b0e87 | 26b8dec14c742c8f476e49ca3a3c6f2a86d43dd1 | /LIKECS04.cpp | 5163bef2f9df3eecd7865be002dad58b5e3846a7 | [] | no_license | anonyhostvn/WorkSpaceCpp | 758aa4aa4cd748c733dc92b1bed614408e51d422 | 83aa8eb3f07b0057f47a89f8dd9fe1473badb811 | refs/heads/master | 2021-10-27T11:54:59.894720 | 2019-04-16T19:27:17 | 2019-04-16T19:27:17 | 114,501,246 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,533 | cpp | LIKECS04.cpp | #include <bits/stdc++.h>
#define forinc(i,a,b) for (int i = a ; i <= b ; i ++)
#define fordec(i,a,b) for (int i = a ; i >= b ; i --)
#define forv(j,u) for (int j = 0 ; j < u.size() ; j++)
#define pb push_back
#define pf push_front
#define fi first
#define se second
#define mk make_pair
#define pii pair<int,int>
#define... |
acf0bb9a4dc467bc63b97c844436a2cea8988ff4 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_repos_basic_block_block_19003.cpp | 6148d0444f5f96c1ce553d0ca322835c251cd931 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,311 | cpp | Kitware_CMake_repos_basic_block_block_19003.cpp | {
switch (sys_err) {
case 0: return 0;
#if defined(EAI_ADDRFAMILY)
case EAI_ADDRFAMILY: return UV_EAI_ADDRFAMILY;
#endif
#if defined(EAI_AGAIN)
case EAI_AGAIN: return UV_EAI_AGAIN;
#endif
#if defined(EAI_BADFLAGS)
case EAI_BADFLAGS: return UV_EAI_BADFLAGS;
#endif
#if defined(EAI_BADHINTS)
case EAI_BADHINTS:... |
86787e77917ef6d0a201a6e76dbe826c4f9659cf | e2c364f6c0f38554ec8cf07035744dfc6ddd5484 | /graphics-fundamentals/ray-tracing/src/surfaces/world.hpp | 253cb64fa71fed13a20b1ae848c577aac97e26a1 | [] | no_license | gfxpg/gpu-studies | 0b39de7f2d77f3deb23a1190b9c8aa2a6c86ae9a | 26512842620ae2240b125a290ef02a07ab4c484b | refs/heads/master | 2022-03-30T15:08:06.800353 | 2019-12-30T04:50:10 | 2019-12-30T04:50:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 773 | hpp | world.hpp | #pragma once
#include <memory>
#include <numeric>
#include <vector>
#include "surface.hpp"
class World : public Surface {
public:
World() {}
World(std::vector<std::unique_ptr<Surface>> surfaces)
: surfaces(std::move(surfaces)) {}
virtual SurfaceHitResult hit(const Ray& r, float t_min, float t_max) const ... |
d1c7b3cbe0395fb9b5bc9322880752df50784c9e | 63dec0bbc41c6153e3de7e62091810d32f6b6191 | /060_The_Game_of_Life/060_The_Game_of_Life.cpp | 8231736e9f733b64f920b2755e2fccae675869cb | [] | no_license | naddu77/ModernCppChallenge | e02d4d6dac040338e39aed1133259ff104adf7f6 | 002d47e25424410cdb483813d4ef51a13a96e5d8 | refs/heads/master | 2021-06-09T09:13:23.735985 | 2021-04-18T06:57:59 | 2021-04-18T06:57:59 | 153,773,593 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,458 | cpp | 060_The_Game_of_Life.cpp | // 060_The_Game_of_Life.cpp : 이 파일에는 'main' 함수가 포함됩니다. 거기서 프로그램 실행이 시작되고 종료됩니다.
// Note
// - Range-v3 이용
// - 좀 더 간결?
#include "pch.h"
#include <range/v3/all.hpp>
#include <iostream>
#include <vector>
#include <random>
#include <array>
#include <chrono>
#include <thread>
#include <iterator>
namespace std
{
template... |
dfcf0ccd3c3fe78eeb8acc955436b44974641a04 | 4f1ed533ad46a7706a2bb43d60c4df97eecbf0a7 | /src/server.h | 902a003ade7757760e7e719c4f68684ef5da3b70 | [] | no_license | joebain/Simple-Sampler | 913a26a431833a66e90aebc1d6094201e2061205 | b9e941c750bad53f7fa052a3b0c467e220d81700 | refs/heads/master | 2021-01-25T08:54:39.473437 | 2010-08-08T18:54:35 | 2010-08-08T18:54:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,182 | h | server.h | #ifndef _SERVER_H_
#define _SERVER_H_
#include <list>
#include <map>
#include "jack.h"
#include "sound_maker.h"
#include "sample.h"
#include "synth.h"
#include "loader.h"
#include "pad_event.h"
#include "effect.h"
#include "bit_effect.h"
class Server {
private:
bool running;
void update();
Jack* ... |
f94d794f5cfbe16b57de8097ce19b76c90a1afaa | 39bac101a463852304207694072ed5db205b8794 | /week8/week08_ex00_move.cpp | da5a62689e480bba34d7165d88cd9b828dfae96a | [] | no_license | hyunbingil/OpenCV_lecture | bfbd482a0bad331984b2259227f36576f5dbe54b | d84e4783fcc3102df897d3b5147d782334571484 | refs/heads/master | 2022-07-27T05:27:05.796672 | 2020-05-19T10:58:20 | 2020-05-19T10:58:20 | 259,516,359 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 689 | cpp | week08_ex00_move.cpp | #include <opencv2/opencv.hpp>
using namespace std;
using namespace cv;
int main_1() {
int x, y, w, h;
w = 400;
h = 300;
Mat image1(h, w, CV_8U, Scalar(255));
string szTitle = "창 제어";
namedWindow(szTitle, WINDOW_NORMAL);
// WINDOW_NORMAL 옵션은 크기 재조정 가능. => 그래서 밑에서 resize할 경우 이미지가 window 창에 맞춰서 커진다.
// 하지만, WIND... |
c2f2cc93a09327444e030188cedbe5144b973a63 | 6c6082bfbd8a2f9f2645149545d0f1aba8ea939a | /Projects/Honey/Honey/Core/IBindable.h | 6924928249ed28618f468e61f7f96da925c49a0a | [
"MIT"
] | permissive | dSyncro/Honey | e33fa5b03b1a443cbfdea104056369d0ae0ed85c | 571862e56d2a977d319779be751e5c0ef79de5a1 | refs/heads/master | 2023-01-01T00:53:57.717544 | 2020-10-25T18:11:02 | 2020-10-25T18:11:02 | 254,705,369 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 481 | h | IBindable.h | /**
* @file IBindable.h
*/
#pragma once
namespace Honey {
/**
* @brief Interface for Bindable objects.
*/
class IBindable {
public:
virtual ~IBindable() = default;
/**
* @brief Bind object.
*/
virtual void bind() const = 0;
/**
* @brief Unbind object.
*/
virtual void unbind() const = 0... |
8f9f5ca56d56bdff41263599d8dd2da962754b2d | 9015268b0fe377d80abe0f84f41f235218774a2b | /XBee/XBee.ino | b565704161cb2c6c6d1a13c60ec235ce7ae94f45 | [] | no_license | houcy/WallE_Xbee_Arduino | 6827270d122e78268211064bad716c3112ab0397 | 4a78faf02eaa5f34bbddff37eee88e4c7b87daad | refs/heads/master | 2020-04-07T10:34:35.826855 | 2017-01-20T13:19:52 | 2017-01-20T13:19:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 361 | ino | XBee.ino | #include <SoftwareSerial.h>
SoftwareSerial Xbee(11,12);
void setup() {
Xbee.begin(9600); // opens serial port, sets data rate to 9600 bps
Xbee.print("Hello!!!");
}
void loop() {
if (Xbee.available()) { // is there any information available on serial port ?
Xbee.print("I received something!");... |
129c30768ec216043a0dc77367b4152daa99b1b4 | 5930303ea7c3ecc76657b8a118c7539d1d0a5403 | /MyLevelDB/status.h | ca906b86db473322c417b12b7ddcb059ca899e5b | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | Ja3on/LevelDB-1 | 2862f16e4209d138f76b89050e5c2f1390e4cfb2 | ab78f2c19468666f1db171dec8a87c792e909d09 | refs/heads/master | 2020-12-24T09:07:46.980557 | 2016-07-11T00:58:05 | 2016-07-11T00:58:05 | 62,025,105 | 0 | 0 | null | 2016-06-27T04:18:41 | 2016-06-27T04:18:41 | null | UTF-8 | C++ | false | false | 1,832 | h | status.h | #pragma once
#ifndef _MYLEVELDB_STATUS_H
#define _MYLEVELDB_STATUS_H
#include <string>
#include "../MyLevelDB/Slice.h"
namespace MyLevelDB
{
class Status
{
public:
Status():_state(NULL){}
~Status() { delete[] _state; }
Status(const Status&);
void operator=(const Status&);
static Status OK() { return St... |
3efb1b757a656bc92205c6626907df16d7596569 | 29b1e4d18e6e4e45c838492b465630bd734acf61 | /List/list_selectinsort.h | 1cd1613688b604fd68fef64d0683df23fbf4236f | [] | no_license | RanchoCooper/DateStructure | e150c4c190ff8a38f1494f8fe9990f41e2299f52 | f798703bc353af8fecc4b3deeefe41833a4d3197 | refs/heads/master | 2016-09-13T08:36:05.389321 | 2016-05-23T14:25:44 | 2016-05-23T14:25:44 | 55,966,450 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 853 | h | list_selectinsort.h | /*
* @author: Rancho (rancho941110@gmail. com)
* @date : 2016-05-09 14:52:17
*
* Brief: 列表的选择排序算法:对起始于位置p的n个元素排序
*/
#pragma once
template <typename T>
void List<T>::selectionSort(ListNodePosi(T) p, int n) {
ListNodePosi(T) head = p->pred;
ListNodePosi(T) tail = p;
for (int i = 0; i < n; ++i)
... |
3f2c8b2364917b994e21ea6e10311ffc8c56b1bc | 7dea08ae1ee8217793fb01b2964b60937ab28587 | /BestTimeToBuyAndSellStock.cpp | 3a8048c9aee8752230d9250523416e4f5816c395 | [] | no_license | chunyang-wen/leetcode | 4ade9e7bb49851f73b369eb118d6cd803923d990 | 109e9b957c06989c163b110c32b0f392d182517c | refs/heads/master | 2021-03-13T00:06:50.952274 | 2016-11-02T04:14:32 | 2016-11-02T04:14:32 | 25,857,398 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 733 | cpp | BestTimeToBuyAndSellStock.cpp | class Solution {
public:
int maxProfit(vector<int> &prices) {
if (prices.empty())
return 0;
int profit = 0;
// pre-processing
int len = prices.size() - 1;
int i = 0;
while (i < len) {
prices[i] ... |
ed3a29468a4b2ba98ad21fc4401be4891fcb9b12 | 7d5ca669279b53580383315225fc242bbeb3049b | /Classes/BagSprite.cpp | 568ea904105249eda3ea725aa00936d5cfa53e21 | [] | no_license | Everstar/FinalWar-Code-Refactoring | 25219e304a7d95933137e4a5bee2ce0f36eda150 | 8cfacd88efd41375c9721c641546b3a22c66c5cc | refs/heads/master | 2021-06-11T23:29:26.864040 | 2016-12-07T14:33:33 | 2016-12-07T14:33:33 | 72,450,964 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 415 | cpp | BagSprite.cpp | #include "BagSprite.h"
BagSprite* BagSprite::Instance = new BagSprite();
BagSprite::BagSprite()
{
}
bool BagSprite::init()
{
this->BindSprite(Sprite::createWithSpriteFrameName(PATH_MONSTER_BAGSPRITE));
this->setScale(0.18f);
this->atk = 20;
this->hp = 100;
this->type = MonsterType::BAGSPRITE;
return true;
}
M... |
50c154f19cde73b7412a3012cd4226b8395486c6 | 0f08276e557de8437759659970efc829a9cbc669 | /tests/p919.cpp | d56b9b72e9bef5f2e85ab349689edccb3fe95d16 | [] | no_license | petru-d/leetcode-solutions-reboot | 4fb35a58435f18934b9fe7931e01dabcc9d05186 | 680dc63d24df4c0cc58fcad429135e90f7dfe8bd | refs/heads/master | 2023-06-14T21:58:53.553870 | 2021-07-11T20:41:57 | 2021-07-11T20:41:57 | 250,795,996 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 107 | cpp | p919.cpp | #include "pch.h"
#include "../problems/p919.h"
TEST(p919, t0)
{
[[maybe_unused]] p919::Solution s;
}
|
d985325cf49299d73c0b016449b3a8cd096cf0fb | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-medical-imaging/source/model/ImageSetsMetadataSummary.cpp | 4850d32b2deb0898eaf26d271cc2e94164377808 | [
"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 | 2,357 | cpp | ImageSetsMetadataSummary.cpp | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/medical-imaging/model/ImageSetsMetadataSummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
name... |
35b825fcd8ab66035d1b89e9226a8ad9b8983d4d | dcb416cb97848d3eebc2349c69b92e2038b21bb5 | /includes/Smalltalk.h | 65c513187bc895aff22b2d2040f4303e6458e881 | [] | no_license | CNUClasses/327_Proj5_Lib | 6fd9ef8bd3d26e498cff5d0995e74c5906c1e809 | 1b06490af137bf85c5f15c8f122ce6eb6cae6805 | refs/heads/master | 2021-04-12T05:23:47.644192 | 2018-11-13T00:42:40 | 2018-11-13T00:42:40 | 125,701,065 | 0 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 2,083 | h | Smalltalk.h | #pragma once
#include <string>
#include <vector>
#include "Watch.h"
class Smalltalk
{
public:
//derived class will set Nationality, iPerson. iPerson is just a counter used to distinguish between objects of the same type
Smalltalk(std::string myNationality,int iPerson=1);
//if pWatch !=0 then be sure to delete wha... |
05c80959efdbd3106f9015ddca58bc76adb961b7 | b2ada748d391209322edfa2096bf9fcf946c7f0b | /1DAM/programacion en c++/ejercicios y practicas/UD5/ordenacion_selecion.cpp | 0c90b75edb8a1471dbf7a2645341ca544e50574f | [] | no_license | antonioguerrerocarrillo/1DESARROLLO-DE-APLICACIONES-MULTIPLATAFORMA | c790e9fcd1664485178c2c43d250180e8b667ce6 | 2906b345775bacc2d29a4ee9670597c781d5c7e4 | refs/heads/main | 2023-03-01T22:46:28.126945 | 2021-02-05T00:15:15 | 2021-02-05T00:15:15 | 336,117,504 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,445 | cpp | ordenacion_selecion.cpp | #include <iostream>
#include <cmath>
using namespace std;
void selecion (int vector[], int util_vector){
int pos_min = 0;
int aux = 0;
//util <= para que pare en una antes de lo que suele parar
for (int i = 0; i <= util_vector; i++) {
//guardo la i en posicion_min
pos_min = i;
//j = i+1 ya que sera la siguien... |
1074df704f9e8ef0ce52459fa7b06a4f5b0811b6 | e48bbf5115838fbb7c2474cd3864e686f6191b91 | /FIBOSUM.cpp | cefa05825e25ba3eb192be40b678b6e5fc05ae30 | [] | no_license | Vtech181/SPOJ_SOLUTIONS | a7af11b97ea8a78266891255fae931d35a78e96a | 3f0e52a2b7985395124a0aa6a5dfa37406bdc6b8 | refs/heads/master | 2020-06-13T17:56:03.946114 | 2018-06-28T17:06:51 | 2018-06-28T17:06:51 | 75,571,657 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,001 | cpp | FIBOSUM.cpp | #include <iostream>
#include <cstring>
using namespace std;
long long fibonacci(long long n)
{
long long fib[2][2]= {{1,1},{1,0}},ret[2][2]= {{1,0},{0,1}},tmp[2][2]= {{0,0},{0,0}};
int i,j,k;
while(n)
{
if(n&1)
{
memset(tmp,0,sizeof tmp);
for(i=0; i<2; i++) for(j=... |
97ce6aeaae43adb4cb0b97731569f5fc0b2818a1 | a57065b28eb6ffdda65617d719b06421cb4d9e6e | /2020.12.14/0111/0111/01 operation.cpp | a0df0bb6038b0bf35104a9503b1407a4b84559cc | [] | no_license | Kelia373/LearnCPP | 1862ec721c85f443a5d986c7a6bd2c30919a5b6f | 17b8411b400f48cb886a066498fe4c25cc9e9cdd | refs/heads/main | 2023-02-05T00:59:24.123339 | 2020-12-30T06:28:47 | 2020-12-30T06:28:47 | 325,472,828 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 191 | cpp | 01 operation.cpp | #include<iostream>
using namespace std;
int main_1()
{
int a1 = 10;
int b1 = 3;
cout <<"a1+b1 = "<< a1 + b1 << endl;
cout <<"a1 - 1 = "<< a1 - b1 << endl;
system("pause");
return 0;
} |
20d4b4730173597f27dd032df623e6c90ff09ab4 | ffcbe8d0222448caefd9e797e3451f1f354176e7 | /the main validate.cpp | 3e2f283e99a39d6e0554a9948f4c570a29a928b6 | [] | no_license | Rukiyat/Chessgroup | f426ee9a7b79456235e9b2add5c4b4d06ea484b1 | d83e2aebed07eb687bb8190321b5ae63d63d7a20 | refs/heads/master | 2021-01-17T12:07:43.121395 | 2017-03-27T00:09:44 | 2017-03-27T00:09:44 | 84,058,118 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 20,203 | cpp | the main validate.cpp | #include "validatemoves.h"
#include <QDebug>
validatemoves::validatemoves()
{
}
//switch base case to validate which ever piece that has been clicked on.
int validatemoves::chooser(walls *temp)
{
switch(temp->pieceName)
{
case 'S': flag=validateSoldier(temp); // S = Soldier
break;
case ... |
3eb939b1900477a4299bb0806356b8719c804364 | 41781f63a3f8ae236406ba3a797f52344da000bf | /00_src/MessageBox/MessageBox.cpp | 0506877b6aefc1cafb16845b893bcc59f1070936 | [] | no_license | tonnac/Study_0 | 760cd9d5847d1c6a7c9b0fd73efbe7d94e3d6e03 | dfbaaa5697ad30254bf4684246d0e84131ee595c | refs/heads/master | 2020-03-25T04:58:55.017853 | 2019-01-22T06:00:16 | 2019-01-22T06:00:16 | 143,423,294 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 195 | cpp | MessageBox.cpp | #include <windows.h>
int WINAPI wWinMain(HINSTANCE hins, HINSTANCE hprev, LPWSTR szCmdLine, int iCmdShow)
{
MessageBox(nullptr, L"Hello, Windows98!", L"HelloMsg", MB_ICONWARNING);
return 0;
} |
f04f70c9a1aed7be5701cbbac7efa8457cc4f42f | 1e00f34e0bb01f6e525b3d14a6125b7b960decfa | /Calibration_O2_sensor/pressure.h | 5ffef2039e87837443dea94782822c621c2fc373 | [
"MIT"
] | permissive | FastTachyon/CodeLife_uSherbrooke | 5f46fd446ab800bfda2d72cfe79a532a925387e9 | 8cd11cbfa3f610f3fd2848c10709a226d276db02 | refs/heads/master | 2021-04-17T23:29:11.294969 | 2020-04-01T02:17:54 | 2020-04-01T02:17:54 | 249,485,579 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 880 | h | pressure.h | #ifndef PRESSURE_H
#define PRESSURE_H
#include "Wire.h"
#include <Arduino.h>
#include <EEPROM.h>
#define OUTPUT_MIN 1638 // 1638 counts (10% of 2^14 counts or 0x0666)
#define OUTPUT_MAX 14745 // 14745 counts (90% of 2^14 counts or 0x3999)
#define PRESSURE_MIN -34740 // min is 0 for sensors that gi... |
a3be98b11ab377db453dcc7edda49f217e17ce38 | e759e684c8b799a2363f435e49ea99cd6d356870 | /math/psd.h | 3ad195069f38c5d24ef3beb285239aef57f66b5c | [] | no_license | Jorjor70/meuh | 56e115c107cc82bfc42dbfefef1101e64b34c3b5 | 0e2ee0227281c08f6e1dd8c892c03b162d3802dc | refs/heads/master | 2021-01-18T10:10:26.416036 | 2013-01-30T12:01:30 | 2013-01-30T12:01:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 281 | h | psd.h | #ifndef MATH_PSD_H
#define MATH_PSD_H
#include <math/types.h>
namespace math {
template<class A>
struct psd;
template<>
struct psd< mat > {
const mat& M;
psd(const mat& M);
vec operator()(const vec& v) const;
natural dim() const;
};
}
#endif
|
c14e6153663a512752ae3272a4157321814e677f | d61d05748a59a1a73bbf3c39dd2c1a52d649d6e3 | /chromium/ui/aura/mus/capture_synchronizer.cc | 8afbb3e232fe28817fe12f2c2127871d0f8e5d67 | [
"BSD-3-Clause"
] | permissive | Csineneo/Vivaldi | 4eaad20fc0ff306ca60b400cd5fad930a9082087 | d92465f71fb8e4345e27bd889532339204b26f1e | refs/heads/master | 2022-11-23T17:11:50.714160 | 2019-05-25T11:45:11 | 2019-05-25T11:45:11 | 144,489,531 | 5 | 4 | BSD-3-Clause | 2022-11-04T05:55:33 | 2018-08-12T18:04:37 | null | UTF-8 | C++ | false | false | 4,958 | cc | capture_synchronizer.cc | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/aura/mus/capture_synchronizer.h"
#include "base/auto_reset.h"
#include "services/ws/public/mojom/window_tree.mojom.h"
#include "ui/aura/clie... |
bcd728ed092dd881431f26d3a231327ff0eab19c | 36c31b485a5906ab514c964491b8f001a70a67f5 | /Codeforces/CF 1200 - 1299/CF1244/CF1244B.cpp | 5099e647790b3d0e1709648e5ee4a08ac689e999 | [] | no_license | SMiles02/CompetitiveProgramming | 77926918d5512824900384639955b31b0d0a5841 | 035040538c7e2102a88a2e3587e1ca984a2d9568 | refs/heads/master | 2023-08-18T22:14:09.997704 | 2023-08-13T20:30:42 | 2023-08-13T20:30:42 | 277,504,801 | 25 | 5 | null | 2022-11-01T01:34:30 | 2020-07-06T09:54:44 | C++ | UTF-8 | C++ | false | false | 734 | cpp | CF1244B.cpp | #include <bits/stdc++.h>
#define ll long long
#define sz(x) (int)(x).size()
using namespace std;
void solve(int n, string s)
{
if (s[0]=='1'||s[n-1]=='1')
{
cout<<2*n<<"\n";
return;
}
int first=0,last=0;
for (int i=1;i<n;++i)
{
if (s[i]=='1')
{
last=i... |
2037210702b8353ac1f0d7d1c7633ba92dac1441 | 5b7e69802b8075da18dc14b94ea968a4a2a275ad | /DRG-SDK/SDK/DRG_ENE_PF_SpiderBase_classes.hpp | 650ae4a2fc8e125d9a4b709c627d04ec2b76de6b | [] | no_license | ue4sdk/DRG-SDK | 7effecf98a08282e07d5190467c71b1021732a00 | 15cc1f8507ccab588480528c65b9623390643abd | refs/heads/master | 2022-07-13T15:34:38.499953 | 2019-03-16T19:29:44 | 2019-03-16T19:29:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,584 | hpp | DRG_ENE_PF_SpiderBase_classes.hpp | #pragma once
// Deep Rock Galactic (0.22) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "DRG_ENE_PF_SpiderBase_structs.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//-----------------------------------------------------------------------... |
e0be5385fce8f031dabc4785d1b7faf731eac04f | 04ba084d459b8030f7992660a6f1b39ebb08c15a | /Source code/Game/Header files/Main/Settings.h | cde1532d78992cdf445b63633b93d7c713bdf9a7 | [
"MIT"
] | permissive | Ansoulom/cat-rush | 0735596fb7b19c69d0ff1c4c4919cb5f7fa20e0a | e99b18d7bf7b72f0e4918f0cc24a190dd55747e6 | refs/heads/master | 2021-09-28T08:12:30.595627 | 2018-11-15T20:20:02 | 2018-11-15T20:20:02 | 104,118,660 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,126 | h | Settings.h | #pragma once
#include <filesystem>
#include "Window.h"
namespace Game
{
namespace Core
{
class User_settings
{
public:
explicit User_settings(const std::filesystem::path& file);
int resolution_width() const;
int resolution_height() const;
Window_fullscreen_mode fullscreen_mode() const;
bool vs... |
fd0d38c3ccdd2245bf2e0a29730faa8a93dfe952 | 71c7531ebc75b060982eb9dbb99e1c0adebf2afa | /U_8/ShoppingCart.cpp | 902e470d3dc841d94531fb7e1b110540dd457d4a | [] | no_license | WeiqiKong/ws1718_PR3 | 757ea09aefb5ed7bf331fdcc736aafb21763a5df | cd083f017393c3fa692e5c7db02e31fee1726cd2 | refs/heads/master | 2021-09-03T01:39:37.754075 | 2018-01-04T16:24:58 | 2018-01-04T16:24:58 | 106,850,266 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,188 | cpp | ShoppingCart.cpp | //
// Created by XUEXI on 2017/12/1.
//
#include <sstream>
#include <iomanip>
#include <iostream>
#include "ShoppingCart.h"
void ShoppingCart::add(CartItem* cartItem){
cartItems.push_back(cartItem);
}
double ShoppingCart::getTotalCost(){
double summe=0;
for(CartItem *cartItem:cartItems)
summe=sum... |
d951af8686ae89b23cfbb06327af157873a0759f | 19c066b929c30ed3e1ae85b2d1f8a9985fb88072 | /COption.cpp | ee160ff45b52ee02fcbef9b0eab6e35911f23709 | [] | no_license | MuhammadRehmanRabbani/DataStructure | 4318b3da6f9dbf285f889dd74a479a363f2b9a45 | 0fa14b9cf355686aca6f388bbce6bdeaf19c1a79 | refs/heads/master | 2023-08-17T13:37:08.679994 | 2021-09-14T21:09:23 | 2021-09-14T21:09:23 | 406,521,694 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,891 | cpp | COption.cpp |
/********************** Warship repair facility for Tie Fighters and Star Destroyers*****************************/
//including libraries
#include<stdio.h>
#include<stdlib.h>
#include <iostream>
#include <chrono>
#include <time.h>
#include<string>
#include <random>
#include <map>
#include <windows.h>
#define MAX 22
... |
f312df44e1a6d9cde26d4cc4eb02516384872653 | 9d30d1e62b919b68c5f2fe1c559aca1c93314a11 | /Recursion&DynamicProgramming/8.5.cpp | 066906691fe11bf40deae1542cc4e0ce2dcf050a | [] | no_license | 4msha/crackingTheCodingInteview | b78b6ad3e79bbfdd48eabc6ca709f88b970d2ecb | f117ab1d04518dc76d6ce08e1198a7c103c1b96b | refs/heads/main | 2023-07-09T06:41:56.338277 | 2021-08-06T07:38:06 | 2021-08-06T07:38:06 | 309,102,816 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 465 | cpp | 8.5.cpp | #include <bits/stdc++.h>
using namespace std;
int multiply(int small, int big)
{
if (small == 0)
return 0;
if (small == 1)
return big;
int s = small >> 2;
int half = multiply(s, big);
if (small % 2 == 0)
{
return half + half;
}
return half + half + big;
}
int m... |
cc018c3ddfe80525c31dff19a4ee3b5c5f711abb | 55ae5fddaece08d883c438654bf0a7b7fef625b9 | /Src/ProtocolGenerator/GenerateCode.cpp | 99ad96cc4729588dc9394593c4dab99cde191dc5 | [
"MIT"
] | permissive | sysfce2/Network-Library | fc33842079c436d555e2b832533be53029c4bf50 | 77fd989ad3229e31e52742ade73a7cf6967725e9 | refs/heads/master | 2023-08-01T02:06:00.786239 | 2021-09-17T02:51:55 | 2021-09-17T02:51:55 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 22,948 | cpp | GenerateCode.cpp |
#include "pch.h"
#include "GenerateCode.h"
#include <direct.h>
using namespace network2;
using namespace std;
namespace compiler
{
// Write Protocol Handler Code
bool WriteFirstHandlerHeader(sRmi *rmi, const string &marshallingName);
bool WriteHandlerHeader(ofstream &fs, sRmi *rmi);
bool WriteFirstHandlerCpp(sRm... |
af5f84de9554e91c18880813808d4cd305d05090 | 819b29d01434ca930f99e8818293cc1f9aa58e18 | /src/contest/ccc/CCC_2015_Stage_2_Solar_Flight.cc | d6ddd0448638722e970bcb45c774282af84bfd2e | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ANUJ581/competitive-programming-1 | 9bd5de60163d9a46680043d480455c8373fe26a7 | d8ca9efe9762d9953bcacbc1ca1fe0da5cbe6ac4 | refs/heads/master | 2020-08-06T18:43:09.688000 | 2019-10-06T04:54:47 | 2019-10-06T04:54:47 | 213,110,718 | 0 | 0 | NOASSERTION | 2019-10-06T04:54:18 | 2019-10-06T04:54:18 | null | UTF-8 | C++ | false | false | 2,919 | cc | CCC_2015_Stage_2_Solar_Flight.cc | #include <bits/stdc++.h>
using namespace std;
#define SIZE 2001
#define EPS 0.000001
typedef long long ll;
struct query {
int index, plane, position;
query(int index_, int plane_, int position_) {
index = index_;
plane = plane_;
position = position_;
}
};
struct collision {
double startPos, endP... |
315c7b2c7b443fc829855ebd269161806d3ce6b6 | c0eb66b77b44c7b49d59abdeba6db9477597b618 | /lib/Module/ThreadPreemption.cpp | a6ec307e6058d3c4c4d7f132405a5394d5a67b5c | [
"NCSA"
] | permissive | lmcarril/kleerace | c370432197b892461868d014c5bdfe278b0b54b0 | 59699e1b55bb06e1fc2a6e935887b08633b28b44 | refs/heads/master | 2021-08-08T21:43:41.737858 | 2015-12-01T14:48:32 | 2015-12-01T14:48:32 | 110,336,068 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,843 | cpp | ThreadPreemption.cpp | //===-- ThreadPreemption.cpp - Introduce thread preemption points ---------===//
//
// The KLEE Symbolic Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------------------------------------------------... |
5d5bd2179dd780e003008c4150fff1d923de09a4 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/arc075/D/1440406.cpp | 4c851db69f38987f6304ed10f67d7fb1efa01fad | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | C++ | false | false | 1,434 | cpp | 1440406.cpp | #include <cstdio>
#include <cstdlib>
#include <cmath>
#include <climits>
#include <cfloat>
#include <cstring>
#include <map>
#include <utility>
#include <set>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <list>
#include <algorithm>
#include <functional>
#include <ss... |
c702f69b8e454418287823cdd035073b0f498d59 | d1ac7405429c08aa4a7e9ba8f35a5a10e991d5e8 | /DD.cpp | 88c1b24531605922c39a7e0e3c719afa60d504f4 | [] | no_license | Badlylucky/SHIPC2018qual | 1459e5b9b28dabe037393f281afa60353acc1eb5 | 3b9dd1e8e2e7534e2afa6e57517b85d19a14981b | refs/heads/master | 2020-03-27T10:56:09.334918 | 2018-08-28T14:27:29 | 2018-08-28T14:27:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,659 | cpp | DD.cpp | #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <queue>
#include <cmath>
#include <utility>
#include <functional>
typedef long long ll;
using namespace std;
typedef pair<ll,int> P;
class Edge
{
public:
ll cost;
int from;
int to;
Edge(int n,ll c)
{
to=n;
cost=c;
}
... |
1ddaddaf24cadee63bcea2ea724dde41c3b8e5fd | 1299289ee0dfca66f5e43e17f311bab9ec1c8ef8 | /PL labs/lab3/src/Container.cpp | 09e03356c7ceed14eec8583d2e0f701c9beafa7b | [] | no_license | vangaru/labs | 3af62a7ce1369082be5d550c2039301ca2f5324c | 0b3be25ab782167acb91ee2486bccb2313857af3 | refs/heads/main | 2023-01-29T03:49:00.937672 | 2020-12-12T10:30:12 | 2020-12-12T10:30:12 | 303,487,417 | 0 | 1 | null | 2020-11-28T08:37:36 | 2020-10-12T19:04:16 | Python | WINDOWS-1252 | C++ | false | false | 3,373 | cpp | Container.cpp | #include "Container.h"
#include "Cube.h"
#include "Cylinder.h"
#include "Tetrahedron.h"
#include <iostream>
#include <cassert>
using namespace std;
Container::Container(int size) {
this->size = size;
this->container = new Figure* [this->size];
}
void Container::push_back(Figure* figure) {
Figure** tempContainer ... |
a070d2d15201664bc9b268658a5670bf42db0aca | 550ba921208b501f36af0f8d8a0e7ed491ae92fa | /SoftwareRenderer/Structs/Vector3.cpp | cdfa1e9b1f38f6db2d5da45155b527ef9a945165 | [] | no_license | damianGray77/SoftwareRenderer_old_and_decrepit | 538ecdfee26697fe0a7a876fa3ce3c5ed8a0dad5 | 174963dc74306db36d0c07bf41b9ebd0f3a23b7e | refs/heads/master | 2021-05-27T18:53:35.158741 | 2013-11-07T06:09:17 | 2013-11-07T06:09:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,648 | cpp | Vector3.cpp | #include "stdafx.h"
#include "Vector3.h"
const Vector3 Vector3::operator +(const Vector3 &v) {
Vector3 res = {
x + v.x,
y + v.y,
z + v.z,
};
return res;
}
const Vector3 Vector3::operator -(const Vector3 &v) {
Vector3 res = {
x - v.x,
y - v.y,
z - v.z,
};
return res;
}
const Vector3 Vector3::opera... |
edf521666ea525a63da57363e8f327bc558c09c7 | d0f84f51a7f29eb18c21613477df93770b7000b9 | /tests/derivatives/grad.hpp | 60b8477916f5728b184e8014a567e91424629895 | [] | no_license | mposypkin/bnbshmem | c360b5ba670efd32b2c7893f5168380b800f864a | e2c6d0dda6cd130b4bf036ea6251824bcd5b5c1c | refs/heads/master | 2021-12-15T01:29:27.362493 | 2021-12-12T09:37:42 | 2021-12-12T09:37:42 | 136,309,843 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,625 | hpp | grad.hpp | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: grad.hpp
* Author: alusov
*
* Created on June 24, 2017, 8:46 PM
*/
#ifndef GRAD_HPP
#define GRAD_HPP
#include <io... |
d8bbeb8b0b7459c773cc02594f1bce97ebaac875 | 190f998aeaf776c82bf7c7fbce226df7ab4942ea | /src/formula.cpp | 134ebb486aaceaf99b326074b1e65fcca05af86e | [
"MIT"
] | permissive | eryxcc/lois | f83253b89a52dcdf84e83265b65ee57f0a5d9ae0 | 9fe3d85b17398bc41b23505fdeca3d13a1327b7a | refs/heads/master | 2021-01-10T23:48:21.602184 | 2018-01-21T19:31:32 | 2018-01-21T19:31:32 | 70,793,562 | 4 | 1 | null | 2017-06-06T17:34:42 | 2016-10-13T10:00:36 | C++ | UTF-8 | C++ | false | false | 21,263 | cpp | formula.cpp | #include "../include/loisinternal.h"
namespace lois {
void subJoin(std::shared_ptr<Subdomain>& s1, std::shared_ptr<Subdomain>& s2);
std::shared_ptr<Subdomain> subJoin(const term& t1, const term &t2);
std::shared_ptr<Subdomain> subGet(vptr v);
std::shared_ptr<Subdomain> subGet(const term& t);
int triesleft, vids, che... |
8a8e4cfbe182ce81fd48978d05ea50fb1f4873cd | 9b8147ba98c8d335505cb899ff7a3222c6f44a24 | /src/won_game/WonGameUpdateHandler.cpp | eebdafda51b509ee998d7c00d4820054a14e9e5b | [] | no_license | carcag/gauntlet | 582848e74b30526906be815df32aa3aad1565943 | d8956cef85ce9a323d3a1a067913586312b8eade | refs/heads/master | 2021-01-21T15:00:37.041360 | 2017-05-22T07:33:07 | 2017-05-22T07:33:07 | 91,828,594 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 358 | cpp | WonGameUpdateHandler.cpp | #include "WonGameUpdateHandler.hpp"
#include "StateManager.hpp"
WonGameUpdateHandler::WonGameUpdateHandler() {
}
WonGameUpdateHandler::~WonGameUpdateHandler() {
}
void WonGameUpdateHandler::HandleUpdate(std::list<Entity *>& entities) const {
for (std::list<Entity *>::iterator it = entities.begin(); it != entities.e... |
2e68afdb2b657f3ed005ab0b6e77e0186324392c | 8f0588f3af7b617becd409dde57d2111a67247bd | /main.cpp | 41fb839b338ff1f3eca0828c3be1774e540f4a85 | [] | no_license | alvin-xian/QmlOpenglItem | 770140e4839f6bae853850176cec6a3234c814b1 | 87ffa684d39538d1b4b8c1d802d1e22b05a9af7f | refs/heads/master | 2021-03-07T17:04:55.789345 | 2020-06-09T04:58:03 | 2020-06-09T04:58:03 | 246,281,569 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 986 | cpp | main.cpp | #include <QtCore/qglobal.h>
#if QT_VERSION >= 0x050000
#include <QtGui/QGuiApplication>
#include <QtQml/QQmlApplicationEngine>
#else
#endif
#include "qmlopenglitem.h"
int main(int argc, char *argv[])
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
// ... |
da4f7fc52e177871b8589c1bec5f2d87d59a9219 | e6a55cfb3491c6bd6db8bc91bb1676faa78a3ea2 | /source/Components/Setting.cpp | 061bc6da9e334e85a16738823dbfbe2f0411b3c0 | [
"MIT"
] | permissive | 1pkg/halfo | 6c033c30e50ff82a263aa479ccbdeb59cf10117c | a57dc4b68d29165d6ab7ed36c7886326e414e269 | refs/heads/master | 2020-07-25T02:55:19.743753 | 2019-09-12T20:30:33 | 2020-04-26T17:09:17 | 208,142,067 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 978 | cpp | Setting.cpp | #include "constants.hpp"
#include "Setting.hpp"
namespace Components
{
const std::string Setting::PARAMETER_FIGURE_RESOURCE = "figure";
const std::string Setting::PARAMETER_BLADE_RESOURCE = "hammer";
const std::string Setting::FLAG_ADDS_DISABLED = "adds-disables";
const std::string Setting::FLAG_DEPLOY_FINISHED = "de... |
7887f6ff23c62b6a20dfaca56fbb6ee68b178e75 | c8303fc4440df0409d14cfba1a3243fdc657bc10 | /include/rusty_cpp/iter/enumerate.h | c09829924e3bf0d8c5bd403532f92b50d723314a | [
"MIT"
] | permissive | EFanZh/rusty_cpp | 366718eca597627da20fd10c52ec5434457335ff | 985dd8992a978b47107ad60563d57e31212f32eb | refs/heads/master | 2021-04-10T00:42:06.887165 | 2020-03-22T03:22:07 | 2020-03-22T03:22:07 | 248,897,965 | 0 | 0 | MIT | 2020-03-22T03:23:17 | 2020-03-21T03:15:07 | C++ | UTF-8 | C++ | false | false | 2,884 | h | enumerate.h | #ifndef RUSTY_CPP_ITER_ENUMERATE_H
#define RUSTY_CPP_ITER_ENUMERATE_H
#include <iterator>
#include <rusty_cpp/iter/utilities.h>
#include <tuple>
namespace rusty_cpp::iter::enumerate {
template <class I, class N>
class Iterator {
static_assert(utilities::IsGoodObjectMemberV<I>);
static_assert(utilities::IsGood... |
691de01ad3412f9fbc152ffcf33293bbc2177599 | 1a61e8d323e98836efe55fa34704031244feb5ac | /openMSYNC/server/Admin/MainFrm.h | 693d95211abfd5f015afc35878496db1f5a09f1d | [] | no_license | skwoo/openLamp | 0d37c59d239af6c851cfff48d5db5e32511ceae3 | 68bffd42f91a9978b4c8bf1df1b39f821acbe093 | refs/heads/master | 2022-01-10T04:40:30.881034 | 2019-07-05T04:04:48 | 2019-07-05T04:04:48 | 106,556,078 | 0 | 1 | null | 2019-07-05T04:04:49 | 2017-10-11T13:12:58 | C | ISO-8859-1 | C++ | false | false | 3,715 | h | MainFrm.h | /*
This file is part of openMSync Server module, DB synchronization software.
Copyright (C) 2012 Inervit Co., Ltd.
support@inervit.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Softwar... |
6490269999ff730ab8223593ae0ad0303273cd63 | 428989cb9837b6fedeb95e4fcc0a89f705542b24 | /erle/ros2_ws/install/include/std_msgs/msg/dds_opensplice/Float64_Dcps_impl.cpp | e379498e935500b5118c38870081b7d33952ca65 | [] | no_license | swift-nav/ros_rover | 70406572cfcf413ce13cf6e6b47a43d5298d64fc | 308f10114b35c70b933ee2a47be342e6c2f2887a | refs/heads/master | 2020-04-14T22:51:38.911378 | 2016-07-08T21:44:22 | 2016-07-08T21:44:22 | 60,873,336 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 117 | cpp | Float64_Dcps_impl.cpp | /home/erle/ros2_ws/build/std_msgs/rosidl_typesupport_opensplice_cpp/std_msgs/msg/dds_opensplice/Float64_Dcps_impl.cpp |
496c99072fed2416a5488d2f10f5e0dfa6fcbf8f | dd7c0edcfe34a74690a09ed186d76559eb5dd4dc | /Classes/Scene_1_7.h | 95c1e779314d4b13441a6d04084ef5fb085a0344 | [] | no_license | cnsuhao/Defend | 9fa33f2e3abd8075edfa21f43012f00bee10390d | 03743c041e3ecdd2089ae1cb2542d544a0014089 | refs/heads/master | 2021-05-29T15:23:57.637465 | 2015-10-02T05:44:33 | 2015-10-02T05:44:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,487 | h | Scene_1_7.h | #ifndef Scene_1_7_
#define Scene_1_7_
#include "object.h"
#include "Scene_UI.h"
#include "Scene_1_8.h"
class Scene_1_7 : public Scene_UI
{
public:
static Scene* createScene();
virtual void removeRes()
{
SpriteFrameCache::getInstance()->removeSpriteFramesFromFile("Scene_1/Object02-hd.plist");
SpriteFrameCac... |
bd7da42ec26b4e7fc57e44e6b16d1d3efb8616fe | 800cb4371ba4d5744b57e5e37465971728a806ec | /Llama/source/graphics/llconstantset.cpp | 6f82921498a8fcec57c08c2241d8d1da2fe5cf02 | [] | no_license | jonathan-matai/llama | e204b66033163685b247cb8b96b78d938fd08b62 | e02da8373b712421d18c17817e77a9e767c9c6a3 | refs/heads/master | 2021-04-11T12:37:13.151414 | 2020-05-17T12:59:45 | 2020-05-17T12:59:45 | 249,021,011 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 410 | cpp | llconstantset.cpp | #include "llpch.h"
#include "graphics/llconstantset.h"
#include "graphics/llbuffer.h"
#include "graphics/llimage.h"
#include "vulkan/llconstantset_vk.h"
llama::ConstantSet llama::createConstantSet(Shader shader, uint32_t setIndex, std::initializer_list<ConstantResource> resources)
{
return std::make_shared<Const... |
78b6c14e06d861c9db6f6a7e9214d6d3ed1212a1 | 3d79bd031067c210a3cdc702e899bdf0ac810fa6 | /2D_CircusChalie/winAPI/winAPI/animationTest.h | edb11cfd5c44a0c52d74a5411a779463d90afdb8 | [] | no_license | 1221kwj/PortpolioList | be115482bf372ea9274f990aa0f2ac624155e214 | a997578e78b7e95370cc6bfd8e9b204466f1924d | refs/heads/master | 2022-01-09T21:09:29.396760 | 2019-05-19T13:03:37 | 2019-05-19T13:03:37 | 169,703,866 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 362 | h | animationTest.h | #pragma once
#include "gamenode.h"
#include "animation.h"
class animationTest : public gameNode
{
private:
image* _kkr;
/*
animation* _ani1;
animation* _ani2;
animation* _ani3;
*/
public:
virtual HRESULT init(void);
virtual void release(void);
virtual void update(void);
virtual void render(void);
animat... |
4e06ce5bd1b8fb1f4327e7f98253c294043a5b96 | 8ef5cb1ce80f92d784e628fd72e682fe8d4a840a | /ALICE/src/GasModelParameters.cc | 907ffefee744592c40f3ab57a4f874b098b06a5f | [] | no_license | jeremyferguson/Geant4GarfieldDegradInterface | 59e497ec282d659907b47fddd1f7dee314eb6d60 | e0a271d33aa6d77a56b540eb3785d508a3d330f0 | refs/heads/master | 2022-12-02T05:45:23.793181 | 2020-08-19T19:33:02 | 2020-08-19T19:33:02 | 268,186,570 | 0 | 0 | null | 2020-05-31T01:06:02 | 2020-05-31T01:06:01 | null | UTF-8 | C++ | false | false | 1,322 | cc | GasModelParameters.cc | #include "GasModelParameters.hh"
#include "HeedDeltaElectronModel.hh"
#include "HeedNewTrackModel.hh"
#include "GasModelParametersMessenger.hh"
#include "DetectorConstruction.hh"
GasModelParameters::GasModelParameters(){
fMessenger = new GasModelParametersMessenger(this);
}
//Add particles (with energy range) to be ... |
a3ed566e274ac1cb53b0049e44c81b8a9bd0775f | d0267d6f19e7f8c846f29b921a8a62bcc7f4c3b9 | /190.cpp | a2ac389de3da8cf21b91ec90cdb2484444258a57 | [] | no_license | hasancuet13/uva | 90952d700b3ba8175e79a38034513ef38daf8272 | 2ab083d09d0da0bb1bbf05b13615a319b19d9605 | refs/heads/master | 2021-06-05T07:19:10.801209 | 2017-11-28T10:51:44 | 2017-11-28T10:51:44 | 34,615,489 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,662 | cpp | 190.cpp | #include<bits/stdc++.h>
using namespace std;
vector<double>d;
int main()
{
float x1,y1,x2,y2,x3,y3,d,d1,d2,d3,c_x,c_y,c_1,h,k,r;
int t=0;
char c,c1,c2,c3,c4;
while(cin>>x1>>y1>>x2>>y2>>x3>>y3){
if(t++) cout<<endl;
d=x1*(y2-y3)-y1*(x2-x3)+(x2*y3-x3*y2);
d1=(x1*x1+y1*y1)... |
46ca1cd7792557b0b4d189209987d1882b061646 | 22ee0b34382541ae9ab3aacd8e8257902aea1af6 | /stack/Largest_Rectangle_in_Histogram.cpp | 9430c625e9f66d8dbd6d73356636565f9c1917ba | [] | no_license | rohitishu/interview_prep | 3871e69ed9ede0e287e2be192ead9a7ae3b892b7 | 1e7844f7e2a8c1a52f03a98de059825b668a9108 | refs/heads/master | 2022-09-12T22:10:58.483807 | 2020-06-03T07:36:33 | 2020-06-03T07:36:33 | 262,955,157 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,425 | cpp | Largest_Rectangle_in_Histogram.cpp | //we can use stack for this problem. Here we need to find maximum histogram rectangle for that we need to find the minimum height
// minimum height because it can cover all the heights below it so we can calculate the total area
// suppose we have 2,1,5,6,2,3---> we can push all the number till we don't find number sma... |
eb48aaf3456625fc95172112e41359a74d6ea090 | 9a888c6ddd86c1938cd672c5f2ac24e928e48665 | /THREAD/USEREVT/USEREVT.HPP | 362d2b9f3605945963a079c30f2e801c2e60673b | [
"BSD-3-Clause"
] | permissive | OS2World/DEV-SAMPLES-BOOK-Power_GUI_Programming_with_VisualAge_for_Cpp | 228390f4876520bb72afd5a25fc985fb6ea82de8 | 919dfa422daf18d2bbb924213a0a813c06565720 | refs/heads/master | 2020-05-29T18:33:38.074186 | 2019-05-29T22:02:13 | 2019-05-29T22:02:13 | 189,303,859 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,744 | hpp | USEREVT.HPP | #ifndef _USEREVT_
#define _USEREVT_
/***************************************************************
* FILE NAME: userevt.hpp *
* *
* DESCRIPTION: *
* This file contains t... |
940a867ccad42f4a7db5549e49d62a343fc11785 | a94f4136b36b56b29f35054959fa26752841ad22 | /mightycity/graphics/mesh.cpp | 6144d7d84974d2e4ecea6717e59e1bd9410a2e3f | [] | no_license | lucafanselau/ovk | 63bc90a10dfb8932f6ec7ca11bd6496f5b57617f | 36232dddac2281b3d5b9cfc222052f7923ad30b2 | refs/heads/main | 2023-05-30T17:12:58.019713 | 2021-06-17T18:37:34 | 2021-06-17T18:37:34 | 377,928,763 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,892 | cpp | mesh.cpp | #include "mesh.h"
#include <base/device.h>
#include <cmath>
#include <tiny_obj_loader.h>
#include <noise/noise.h>
#include <sstream>
#include <boost/pfr.hpp>
#include "..\world\world.h"
Mesh::Mesh(ovk::Buffer &&buffer, uint32_t count, uint32_t offset)
: vertex(std::move(buffer)), vertices_count... |
17d052b48b1b117357d1ff23a9069dd87bd6dec6 | c2432c36ed258e450be2b1ecc517ac75a1e902cd | /FirePIC_PiTranslator.cp | c94a34cc5677487b38d5751179309f44ecf7b8f6 | [] | no_license | alennie1993/FireflyDiagnosticKit | c8a16c6fa920fe8b624f71c71c847a4cbae82b1d | 5da2cdd076cd860618af4ab9db1d2965de7261a3 | refs/heads/master | 2021-01-21T23:20:21.149842 | 2017-06-23T14:24:53 | 2017-06-23T14:24:53 | 95,227,737 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,435 | cp | FirePIC_PiTranslator.cp | #line 1 "C:/Users/alenn/Desktop/Summer Work 2017/FireflyDiagnosticKit/FirePIC_PiTranslator.c"
#line 18 "C:/Users/alenn/Desktop/Summer Work 2017/FireflyDiagnosticKit/FirePIC_PiTranslator.c"
char receivedByte = 0;
char counter = 0;
#line 27 "C:/Users/alenn/Desktop/Summer Work 2017/FireflyDiagnosticKit/FirePIC_PiTranslato... |
675f7211943534d520a95770884fd0002754cacc | da02937fa8b8b5571fa55979f39bdf98aff5bc58 | /Capstone_Create_Testing/Capstone_Create_Testing/SerialPortWrapper.cpp | ea235902f5b17a61faa39577f510e9dfb1ba3416 | [] | no_license | Matt-A-D/UMLCornellCup-R2DR | 67be9620225cf5386abff992238461514d3e759b | 03c07c12b49ab4a687ceb41b70ba901f5cd3ce5d | refs/heads/master | 2021-01-10T16:16:17.300177 | 2016-05-03T18:43:39 | 2016-05-03T18:43:39 | 49,810,638 | 0 | 1 | null | 2016-01-25T15:30:21 | 2016-01-17T09:24:19 | C++ | UTF-8 | C++ | false | false | 1,757 | cpp | SerialPortWrapper.cpp | #include "SerialPortWrapper.h"
#include "iRobotCreate2.h"
using namespace std;
bool SerialPortWrapper::Open(SerialPort^ Port, unsigned __int16 PortNumber, unsigned __int32 BaudRate, Parity Parity, unsigned __int16 DataBits, StopBits StopBits, Handshake FlowControl)
{
String^ strPort = String::Format("COM{0}", PortNum... |
c539855670d7dad55f804ef9c149e35be2c15f6b | 580fdf669753b29567be74b559148c875436a295 | /xcode/Controles.cpp | ea465e9a6efbf84aae7bb5274b99e837da4aa2ec | [] | no_license | leporino/PelucheOSC | f7465b367c79e21a404bf2ab65651ad7e01a9fd8 | 8a4cf02896c386a581ae4892dedf77d7e912e340 | refs/heads/master | 2016-09-06T18:17:28.643664 | 2014-11-30T18:12:50 | 2014-11-30T18:12:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,576 | cpp | Controles.cpp |
/*
#include <iostream>
#include "cinder/app/AppBasic.h"
#include "cinder/Rand.h"
#include "cinder/Vector.h"
//#include "Controles.h"
using namespace ci;
using std::list;
//ParticleController::ParticleController()
{
}
//ParticleController::ParticleController(int amt, const Vec2i &mouseLoc)
{
}
/*
ParticleControlle... |
c1b0db32d871a7341ddbf607afb1059e06c958c2 | ece5f0f44b4f91d09af81d74c232852919488cf8 | /2021/CAMP_1/String/Peatty_Robot3.cpp | 2517363214513b294c8a428287a6cc7aac3195f0 | [] | no_license | Phatteronyyz/POSN | 57020f27065fe106d49be8b6f89248da0ccd21e9 | 3c6fa467377d367104476208801993697a15bd4d | refs/heads/main | 2023-04-30T03:42:57.386892 | 2021-05-16T13:23:57 | 2021-05-16T13:23:57 | 351,687,620 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 633 | cpp | Peatty_Robot3.cpp | #include<bits/stdc++.h>
using namespace std;
char a[200];
int main() {
int len,i,j,k,n=0,e=0,w=0,s=0;
scanf(" %s",a);
len=strlen(a);
scanf("%d",&k);
for(i=0;i<len;i++){
if(a[i]=='N') n++;
if(a[i]=='E') e++;
if(a[i]=='W') w++;
if(a[i]=='S') s++;
}
while(k--){
... |
55cf94b29ac7f530cf27dd29909cf03ef6031db9 | 9d4505327049d3b078848e3b16a4e641461354d6 | /79.cpp | 4d215608e90183f9e7a0bb27846eeea308287648 | [] | no_license | kosekitau/C100 | 04f402b3679f84869595c4301d0dd74a078caed6 | 114f816d74a76b152c9ec252ad098fb6f2edf96b | refs/heads/main | 2023-08-21T10:34:02.021110 | 2021-10-27T00:20:39 | 2021-10-27T00:20:39 | 399,457,512 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 845 | cpp | 79.cpp | #include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <math.h>
#include <vector>
#include <queue>
#include <functional>
#include <set>
#include <tuple>
#include <map>
using namespace std;
using ll = long long;
using Graph = vector<vector<int> >;
using P = pair<int, int>;
#define INF 20... |
824d4c301ac28739a819c945db405eef40fe46a0 | 8ff5d6f435da374cae475f0e6771fef8ac18321b | /Framework/Core/Src/DebugUtil.cpp | 2faa9c9ce38da30740a0781aee78072f450e24bd | [
"MIT"
] | permissive | CyroPCJr/OmegaEngine | 18f982ad351ad18f4a7124091a9b3f5276160a92 | 8399ef8786ad487d9c20d43f5e12e4972a8c413a | refs/heads/main | 2023-08-16T19:55:14.881116 | 2023-08-08T22:31:31 | 2023-08-08T22:31:31 | 350,535,694 | 5 | 1 | MIT | 2023-08-08T22:31:32 | 2021-03-23T00:56:54 | C++ | UTF-8 | C++ | false | false | 103 | cpp | DebugUtil.cpp | #include "Precompiled.h"
#include "DebugUtil.h"
Omega::Core::DebugLogEvent Omega::Core::OnDebugLog; |
7ce87a8254a4e117adc03743e4af02cd33950fd1 | b257bd5ea374c8fb296dbc14590db56cb7e741d8 | /Extras/DevExpress VCL/Library/RS17/Win64/cxSchedulerCustomControls.hpp | 88fb4dfedb4859c4c19d7bedd809b0d60a234fc6 | [] | no_license | kitesoft/Roomer-PMS-1 | 3d362069e3093f2a49570fc1677fe5682de3eabd | c2f4ac76b4974e4a174a08bebdb02536a00791fd | refs/heads/master | 2021-09-14T07:13:32.387737 | 2018-05-04T12:56:58 | 2018-05-04T12:56:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 147,684 | hpp | cxSchedulerCustomControls.hpp | // CodeGear C++Builder
// Copyright (c) 1995, 2012 by Embarcadero Technologies, Inc.
// All rights reserved
// (DO NOT EDIT: machine generated header) 'cxSchedulerCustomControls.pas' rev: 24.00 (Win64)
#ifndef CxschedulercustomcontrolsHPP
#define CxschedulercustomcontrolsHPP
#pragma delphiheader begin
#pragma option... |
4deae1f5e061cbf910e1dab789d898a3c04b1849 | bc84c328d1cc2a318160d42ed1faa1961bdf1e87 | /windows/VC++/DLL/DLL_Add/call_add.cpp | 67e5bc7398d642ad07dbcc2d10ab791bd0c6df96 | [
"MIT"
] | permissive | liangjisheng/C-Cpp | 25d07580b5dd1ff364087c3cf8e13cebdc9280a5 | 8b33ba1f43580a7bdded8bb4ce3d92983ccedb81 | refs/heads/master | 2021-07-10T14:40:20.006051 | 2019-01-26T09:24:04 | 2019-01-26T09:24:04 | 136,299,205 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 354 | cpp | call_add.cpp | #include"stdio.h"
#include"windows.h"
typedef int(*lpAddFun)(int,int);
int main()
{
HINSTANCE hDll; // DLL句柄
lpAddFun addFun;
hDll=LoadLibrary("..\\Debug\\1073.dll");
if(hDll!=NULL) {
addFun=(lpAddFun)GetProcAddress(hDll,"add");
if(addFun!=NULL) {
int result=addFun(2,3);
printf("%d\n",result);
}
}
F... |
37425a307bb36c66051c2e1be0ffd495472d9313 | a462312d4b02adf64532a52425df1adf5a40d687 | /UWPLessons/Lesson 2/Program.cpp | 2069e736f7e7a53a9b7baf6f42b11c1328774689 | [] | no_license | AstreyRize/DirectXLessons | 3f0b3e9fd323b57c816505c20d9e007ca00c5958 | 8d89f3c65b5c18ada6d014d33a21b670633b7639 | refs/heads/master | 2020-03-31T03:41:21.893862 | 2019-10-13T15:41:17 | 2019-10-13T15:41:17 | 151,873,998 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 455 | cpp | Program.cpp | #include "pch.h"
#include "Window.h"
#include "Direct3DApplicationSource.h"
using namespace Lesson_2;
using namespace Windows::ApplicationModel;
using namespace Windows::ApplicationModel::Core;
using namespace Windows::ApplicationModel::Activation;
[Platform::MTAThread]
int main(Platform::Array<Platform::String^>^)
{... |
28caf396e299b03663f38110c194a48a18763caf | 1bb34d582ec78fbf8e30f80b8efea85ba2b65d23 | /Term2/CXX/comm-iliayar/include/comm.h | 241abb1fe23753817b70f5f977b1c1b087e04f1e | [] | no_license | iliayar/ITMO | 41187c292dd5a9f72d62ebe81b5e42c664020bd1 | 6194a511384f6243b7c43c3b6fd2c03a0d089e92 | refs/heads/master | 2023-09-03T06:54:32.742264 | 2023-08-19T17:00:08 | 2023-08-19T17:00:08 | 216,113,996 | 12 | 1 | null | 2023-04-18T13:21:54 | 2019-10-18T22:11:01 | Jupyter Notebook | UTF-8 | C++ | false | false | 3,522 | h | comm.h | #include <iostream>
#include <string_view>
#include <vector>
class Comm
{
public:
Comm(std::pair<std::istream&, std::istream&> inputs)
: m_eof({ inputs.first.eof(), inputs.second.eof() })
, m_lines({ "", "" })
, m_inputs(inputs)
, m_excluded(3, false)
{
read_next({ true, true ... |
bf405c15eece2a5bee56d66859f25dfdba1c8c7a | ca0b8d79fbce09ecbab4b9279fb230c2a7ad370a | /Esercizi assegnati/2013-2014/20140303/esercizio1-3-3.cpp | 67c8e9a23ea21471840599904db96f777dd86a0e | [] | no_license | FIUP/Programmazione-1 | 6523e4d7a5c64370eef5b7ac8e6c5687b620ffd8 | a897af997a5ded0d6e167f9f03d846d54a161add | refs/heads/master | 2021-06-03T16:22:01.190618 | 2020-09-30T20:57:12 | 2020-09-30T20:57:12 | 80,129,830 | 23 | 39 | null | 2020-09-30T20:57:13 | 2017-01-26T16:01:07 | C++ | UTF-8 | C++ | false | false | 2,550 | cpp | esercizio1-3-3.cpp | #include<iostream>
#include<fstream>
using namespace std;
struct nodo{
int info1, info2;
nodo* next;
nodo(int a=0, int c=0, nodo* b=0) {info1=a; info2=c; next=b;}
};
//PRE_F1=(L è una lista corretta, y e v sono interi qualsiasi, mentre k>0, L=vL)
nodo* F1(nodo*&L, int y, int k, int & v){
if(!L){
return 0;
... |
5746b99656e54bf3e7eeab8fdd4eecf0cc787fee | 09a5f628f61aa97be79f67e8d2dfb920fcc8f894 | /Projects/FrameWork/FrameWork/Systems/Renderer/ObjectRenderer.cpp | 3d922b1e99bb70d4b41f2f0a6160e9c93b14d3ee | [] | no_license | tozawa0406/SpriteMeshEditer | daafdedb9b5957263553d65107357a6bbdac3c76 | e8c02aa73045ba4cdfb45443ad7d5f96091e968e | refs/heads/master | 2020-04-24T17:38:46.367375 | 2019-11-13T12:04:49 | 2019-11-13T12:04:49 | 172,154,914 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 864 | cpp | ObjectRenderer.cpp | #include "ObjectRenderer.h"
ObjectRenderer::ObjectRenderer(RendererType type) :
manager_(nullptr)
, wrapper_(nullptr)
, transform_(nullptr)
, flag_(FLAG_ENABLE | FLAG_SORT)
, type_(type)
, shader_(Shader::ENUM::UNKOUWN)
{
material_.diffuse = COLOR(1, 1, 1, 1);
material_.ambient = COLOR(0.3f, 0.3f, 0.3f, 1... |
8e98b1686077b0b92fb7c50637120318d52d3c8b | 707ee180c9ddf29458b42a754d9c102097c7a385 | /Лаба 3 Вариант Б5/owner.cpp | 1b2abc3d7295d58c2da9ac6935f40333fbabd12b | [] | no_license | staskond/-Third-Lab-OOP-vB5 | 0c89d886a7cdb672ddcb8627aeb3947122eb8470 | bd116128694a5e2eca197be3d827eccde7550b5c | refs/heads/master | 2021-01-10T03:26:02.971086 | 2015-12-21T13:57:35 | 2015-12-21T13:57:35 | 47,631,704 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,599 | cpp | owner.cpp | // (C) 2013-2015, Sergei Zaychenko, KNURE, Kharkiv, Ukraine
#include "owner.hpp"
#include <algorithm>
/*****************************************************************************/
// TODO
/*****************************************************************************/
Owner::Owner(const std::string & _FullN... |
1f3441fb387d52d1e67d517e64d8a6c855448f3d | 01167b048623538b7121c1dcacaf22fad82b5fb8 | /tests/Switch.System.Windows.Forms.UnitTests/Switch/System/Windows/Forms/BootModeTest.cpp | 8133015118fef438bb74d608d62f9031d489b622 | [
"MIT"
] | permissive | victor-timoshin/Switch | 8cd250c55027f6c8ef3dd54822490411ffbe2453 | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | refs/heads/master | 2020-03-20T22:46:57.904445 | 2018-06-18T21:54:51 | 2018-06-18T21:54:51 | 137,815,096 | 5 | 3 | null | 2018-06-18T22:56:15 | 2018-06-18T22:56:15 | null | UTF-8 | C++ | false | false | 890 | cpp | BootModeTest.cpp | #include <Switch/System/Windows/Forms/BootMode.hpp>
#include <Switch/System/String.hpp>
#include <gtest/gtest.h>
namespace SwitchUnitTests {
TEST(BootModeTest, Normal) {
ASSERT_EQ(0, (int32)System::Windows::Forms::BootMode::Normal);
ASSERT_EQ("Normal", System::Enum<System::Windows::Forms::BootMode>(System::W... |
2003b8cf37741b024b96d09815934feb6f756edd | 82bf2730e87b2304305f781f996a4c87de0e32ac | /Chess/Test/Bishop.h | 53ef9e6d803adf86f8ce6df3460b318c1dcb1aab | [] | no_license | AndrewSavchuk1410/Chess-with-AI | 761dbd2d271ccc3ad963ce15cddac50d750260cf | 9c2f0b366dbeb43b1dbdb4ebdffd26bb0cb0c2ae | refs/heads/master | 2023-01-08T20:18:38.678438 | 2020-11-09T12:27:20 | 2020-11-09T12:27:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 245 | h | Bishop.h | #pragma once
#include "Figure.h"
#include "Board.h"
#include <SFML/Graphics.hpp>
class Bishop : public Figure
{
public:
Bishop();
Bishop(int x, int y, FIGURES figureType, int team, sf::Sprite sprite);
virtual void findAvaliableCells();
}; |
13549ea6e9a638be8e07fba5528912f097bb70e8 | 3f4e1ac1b83cf5c41a505ef67c099ecd422f985a | /main.cpp | 58de3d35f5b2e050fb308342091c61dc72f900fa | [] | no_license | hvanruys/EumetcastDirUpdate | ba7f3cdf872d42d607424e471d12be98479213e2 | a43fb5187b1c40994fb916a4565de0ad4ea2a452 | refs/heads/master | 2022-11-22T01:31:14.998466 | 2020-07-22T09:15:29 | 2020-07-22T09:15:29 | 281,412,365 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,967 | cpp | main.cpp | #include <QtCore>
#include <QCoreApplication>
#include <QSettings>
#include <QDir>
#include <QDate>
#include <QDebug>
#include <QRegularExpression>
#include <QBasicTimer>
#include <QTimer>
#include <iostream>
using namespace std;
struct FileTemplate {
QString filetemplate;
int startdate;
};
QList<FileTemplat... |
6568c6e8cbbc74ff296185d377b012d91bd68c04 | 03666e5f961946fc1a0ac67781ac1425562ef0d7 | /src/common/parser/VisItParser.h | eb38b4ecacae7599a6f6f96efe2b48aff1192629 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | visit-dav/visit | e9f81b4d4b9b9930a0db9d5282cd1bcabf465e2e | 601ae46e0bef2e18425b482a755d03490ade0493 | refs/heads/develop | 2023-09-06T08:19:38.397058 | 2023-09-05T21:29:32 | 2023-09-05T21:29:32 | 165,565,988 | 335 | 120 | BSD-3-Clause | 2023-09-14T00:53:37 | 2019-01-13T23:27:26 | C | UTF-8 | C++ | false | false | 3,894 | h | VisItParser.h | // Copyright (c) Lawrence Livermore National Security, LLC and other VisIt
// Project developers. See the top-level LICENSE file for dates and other
// details. No copyright assignment is required to contribute to VisIt.
#ifndef VISIT_PARSER_H
#define VISIT_PARSER_H
#include <parser_exports.h>
#include <vector>
#in... |
f0e7a8f7cd7352924b9a6b98be973d19a1831669 | f5f5a0b8a4726f4f97abbf49c4a9abc44d900da9 | /Codeforces/hit-the-lottery.cpp | dd6a9580fa9d04d1b11bb34a2dff3e4e5955c302 | [] | no_license | tapixhx/CPP | c96b87019000057096c2d33f5a2366c496cb6ed3 | 7271870738c75ef92c3fdb7aa019e78fbe1b5bfc | refs/heads/main | 2023-08-22T09:44:28.956406 | 2021-09-15T17:37:24 | 2021-09-15T17:37:24 | 334,462,809 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,522 | cpp | hit-the-lottery.cpp | //#include <bits/stdc++.h>
//
//#define ll long long int
//#define vii vector<int>
//#define vll vector<ll>
//#define mii map<int, int>
//#define mll map<ll, ll>
//#define sii set<int>
//#define sll set<ll>
//#define umi un... |
81adbf142bead17af1d7fa0be0eda0779f17aec1 | 8a45330c15b091b3603955137e36567dddb674ab | /hr_edl/src/hr_edl/samplers.h | c6b7b06f37113d0f6db7c422dd48d065745d8174 | [
"MIT"
] | permissive | dmorrill10/hr_edl_experiments | a73704f353754293fd0e3dd9c1adab4713a003fe | 9bedae2ce0e8950e6e6c158d450bb8a47d103d5d | refs/heads/master | 2023-05-25T18:09:07.230426 | 2021-06-10T23:57:16 | 2021-06-10T23:57:16 | 289,053,795 | 3 | 2 | MIT | 2021-06-08T04:11:54 | 2020-08-20T16:21:17 | Jupyter Notebook | UTF-8 | C++ | false | false | 8,777 | h | samplers.h | #ifndef HR_EDL_SAMPLERS_H_
#define HR_EDL_SAMPLERS_H_
#include <functional>
#include <memory>
#include <random>
#include <vector>
#include "absl/strings/match.h"
#include "open_spiel/spiel.h"
#include "hr_edl/types.h"
namespace hr_edl {
int SampleActionIndex(const std::vector<double>& policy, double random_number,
... |
ea34255c98b6e8a34d7ef4b1f1fa81ab2722cffa | 78823bb7d0c6bc5ac982f124b2e0ca0deaad548c | /ccp4/safe_mtz.h | f228817635dfa1ac172a558b15f4c835b4569c9a | [
"MIT"
] | permissive | Oeffner/MtzExtInfoTip | c4513d39be35d5d66f49fa3f0c76cc2cf430b24b | a9940f61b1b646691da3c55c88aec9b6b6945538 | refs/heads/master | 2021-12-28T08:43:52.037707 | 2021-11-23T23:56:00 | 2021-11-23T23:56:00 | 97,144,076 | 2 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 334 | h | safe_mtz.h |
// Modified version of phaser\codebase\phaser\lib\safe_mtz.h
// for reading column data into array of floats
#include <string>
#include <vector>
#include "cmtzlib.h"
#include "mtzdata.h"
int MtzReadRefl(CMtz::MTZ *mtz, std::vector< std::vector<float> > &columns,
int logmss[], CMtz::MTZCOL *lookup[], int ncols,... |
b73d53a80ca4e5a378cc44b7346c035a400dba09 | 6f99f5e2a30d30648360196d391c18718f7e412c | /Config.cpp | 34556e1e8612491d0b38c78027e24574109669b2 | [] | no_license | zenwong/tagu | f077b3018e55901123a3207fd344242ec4349fc1 | 0b1f6c3bd94f636929f69b8a43438ec1ecc0f8c1 | refs/heads/master | 2021-01-17T11:01:14.445800 | 2016-07-15T07:44:01 | 2016-07-15T07:44:01 | 16,742,319 | 12 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 46 | cpp | Config.cpp | #include "Config.hpp"
Config::Config()
{
}
|
2f761ae8474b4da3cebb423ad9125ecd78ee7bf2 | ae9df4db0dc16065b53030e39d1325d0c81e0221 | /include/FalconEngine/Graphics/Renderer/State/WireframeState.h | feab1b4c664d88ead756f478d8098506f524ea32 | [
"MIT"
] | permissive | LiuYiZhou95/FalconEngine | c0895dba8c2a86a8dcdf156da1537d4f2e9724c3 | b798f20e9dbd01334a4e4cdbbd9a5bec74966418 | refs/heads/master | 2021-10-25T18:40:42.868445 | 2017-07-30T10:23:26 | 2017-07-30T10:23:26 | 285,249,037 | 0 | 1 | null | 2020-08-05T09:58:53 | 2020-08-05T09:58:52 | null | UTF-8 | C++ | false | false | 225 | h | WireframeState.h | #pragma once
#include <FalconEngine/Graphics/Common.h>
namespace FalconEngine
{
class FALCON_ENGINE_API WireframeState final
{
public:
WireframeState();
~WireframeState();
public:
bool mEnabled = false;
};
}
|
6bdab79caf350358573ba4c13d04db1cad53acbe | 4cd0cbfb4f5b54ad8530ce06e218edb4b9a151ba | /signed_zero_behavior.hpp | f6c953ab2abf6a402bc6bc5879b0dda09335afc6 | [] | no_license | ariana-bruno/ECE4960-PA1 | f97329f291eed8f639f002857dc3210785c2ce64 | 75d4ab893f7391aa926cef59075e9616226f2eaf | refs/heads/master | 2021-09-07T16:15:24.193487 | 2018-02-25T23:17:26 | 2018-02-25T23:17:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 522 | hpp | signed_zero_behavior.hpp | //
// signed_zero_behavior.hpp
// Program1
//
// Created by Ariana Bruno on 2/12/18.
// Copyright © 2018 Ariana Bruno. All rights reserved.
//
#ifndef signed_zero_behavior_hpp
#define signed_zero_behavior_hpp
#include <stdio.h>
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <cmath>
using name... |
103112979281f416c5a7236685eadfe0dd4718d0 | d056776b25c9e93e7ed97695419e14e5732301d1 | /project2D/Application2D.cpp | a6e01498507d64828bb903ad41e80e5197508615 | [
"MIT"
] | permissive | regireed89/aieBoostrap | d53f9066d178a7ec80da819d7ae2101f6e062e55 | 811f7147ae3f3aad4d90620c96d5b44e9afe679e | refs/heads/master | 2020-06-15T03:41:02.213612 | 2016-12-16T20:22:55 | 2016-12-16T20:22:55 | 75,333,723 | 0 | 0 | null | 2016-12-01T21:19:34 | 2016-12-01T21:19:34 | null | UTF-8 | C++ | false | false | 4,561 | cpp | Application2D.cpp | #include "Application2D.h"
#include "Texture.h"
#include "Font.h"
#include "Input.h"
using namespace std;
Application2D::Application2D() {
}
Application2D::~Application2D() {
}
bool Application2D::startup() {
Shiruken = Player(Vector2(600, 400), Vector2(1,0));
Regi = Agent(Vector2(600, 400), Vector2(1, 0... |
b23a2d501ea6dd2e9538a634d490d5a033f76c38 | d09945668f19bb4bc17087c0cb8ccbab2b2dd688 | /srm/701-720/703/TreeDiameters.cpp | f4ab43cb82753ac477f88597f90a3d3fe0d8ea27 | [] | no_license | kmjp/procon | 27270f605f3ae5d80fbdb28708318a6557273a57 | 8083028ece4be1460150aa3f0e69bdb57e510b53 | refs/heads/master | 2023-09-04T11:01:09.452170 | 2023-09-03T15:25:21 | 2023-09-03T15:25:21 | 30,825,508 | 23 | 2 | null | 2023-08-18T14:02:07 | 2015-02-15T11:25:23 | C++ | UTF-8 | C++ | false | false | 3,230 | cpp | TreeDiameters.cpp | #include <bits/stdc++.h>
using namespace std;
typedef signed long long ll;
#undef _P
#define _P(...) (void)printf(__VA_ARGS__)
#define FOR(x,to) for(x=0;x<to;x++)
#define FORR(x,arr) for(auto& x:arr)
#define ITR(x,c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++)
#define ALL(a) (a.begin()),(a.end())
#de... |
d627317f3ec410ad27e143f542c7b36a821a3d5a | a597d2732a92c6f69e931810ffe8e70841e16f35 | /include/btree_node_page.h | 14f963513d2a386f10a214975681dd67f4bb1fb6 | [] | no_license | skyitachi/yedis | d28a5c9494acfc5a47fc032046abf0604ebfbc2a | a644515739157f4afb43ac0ea6fc2b3891ffbff8 | refs/heads/master | 2023-05-12T09:38:35.821445 | 2023-05-02T03:41:10 | 2023-05-02T03:41:10 | 286,519,651 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,802 | h | btree_node_page.h | //
// Created by admin on 2020/9/17.
//
#ifndef YEDIS_INCLUDE_BTREE_NODE_PAGE_H_
#define YEDIS_INCLUDE_BTREE_NODE_PAGE_H_
#include <spdlog/spdlog.h>
#include <initializer_list>
#include <common/status.h>
#include "page.hpp"
#include "btree.hpp"
namespace yedis {
class BufferPoolManager;
class BTreeNodePage: pub... |
3211333c720126c1ab3798c275bffdb246228405 | 8dfb00484889b3f601ff930afccdc723aff541d4 | /fish.h | 4889d00d025dcd0df644cb7870bfb2319831c5eb | [] | no_license | alenakulyakhtina/HW1-ABC | 5483635069a8f41f22c0a38c345f82e77d1a1cf4 | dd218cd24bf987f516de3748819b09e8551b07a0 | refs/heads/main | 2023-08-18T09:25:36.064259 | 2021-10-05T13:14:22 | 2021-10-05T13:14:22 | 413,823,580 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 935 | h | fish.h | #ifndef __fish__
#define __fish__
//------------------------------------------------------------------------------
// fish.h - содержит описание треугольника
//------------------------------------------------------------------------------
#include <fstream>
using namespace std;
#include "rnd.h"
// рыб... |
d8ba36ba882c3748e153447d4957c94be90c9c35 | cfd66fb49f5856f9c862038a628e160e6fa0a18d | /berlinunited/src/services.cpp | dc081dac279d3eb95e29b13498b78aebb83b018f | [] | no_license | sergiyvan/robotic_vl | c977fea8503ea2a10c319759ed1727301e6472bd | 1d3b66819e37a58e0ab752ea86aa2d8522643e1e | refs/heads/master | 2021-01-20T12:04:01.507082 | 2014-11-03T15:41:42 | 2014-11-03T15:41:42 | 25,864,171 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 161 | cpp | services.cpp | #ifdef BERLINUNITEDSTANDALONE
#include "services.h"
Services &services = Services::getInstance();
Services::Services() {
}
Services::~Services() {
}
#endif
|
99907669bf0b55cbadb1d5a8be98f79c94c48a79 | b621ba41c02e6da82d3aa7869c7740e52acdd740 | /Snake/Game.h | 5d071c8b719e4ab7a8cfd2f0891705acf4572972 | [] | no_license | ivansachkovski/Snake | 651144f95e550bffacad540483b5a332b61fa06d | b8e4383165982437c1df1cc9cfa756c3f8853bc4 | refs/heads/master | 2020-04-19T10:37:04.991291 | 2019-02-11T14:14:34 | 2019-02-11T14:14:34 | 168,145,361 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 374 | h | Game.h | #pragma once
class CSnakeGame :
public IGame
{
public:
static constexpr int m_exitCharacterCode = '.';
private:
std::atomic_bool m_bStop;
std::atomic_int m_inputCode;
std::unique_ptr<ISnake> m_pSnake;
std::unique_ptr<IField> m_pField;
std::thread m_inputThread;
public:
CSnakeGame(size_t, size_t);
void Ru... |
2d817caad76ae595fcaa7115bbb53cc477bdc719 | ab2eef9283ea9ffaac2152cde390a11ec2a6f636 | /习题/第三章/repeating_decimals.cpp | 24481cc54baf435e7e9ade96257262e8afbe4e97 | [
"MIT"
] | permissive | iuming/Classic_Algorithm | 6b0b8350a05454b74906f0ec7d32affdee8733c4 | bc0bba50e75cdfc80deba2f69fbeb438c935e912 | refs/heads/master | 2022-11-12T17:54:16.029169 | 2020-07-05T09:50:54 | 2020-07-05T09:50:54 | 275,477,874 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,040 | cpp | repeating_decimals.cpp | #include <iostream>
#include <cstring>
#define ll long long
using namespace std;
int n, m;
int r[3003], u[3003], s[3003];
int main()
{
while (cin >> n >> m)
{
int t = n;
memset(r, 0, sizeof(r));
memset(u, 0, sizeof(u));
int count = 0;
r[count++] = n / m;
n = n %... |
7ae4d874a33cdd669893028a7dad074cfb5bc1e3 | 0d3960bf9f417945ba897fb3230a25fb2af325a9 | /数据结构/课本习题答案/Programs Folder/GRTSBL.CPP | 83ff9d6100b07544263c5511408b39bb356834e1 | [] | no_license | JsthcitPizifly/SCU_Review- | 0ca32ec1c2738dd66c5cbc4e077b381f8dda398d | a5a420d135ddbc41d00fff0c883d8b47ccabb374 | refs/heads/master | 2020-06-11T15:32:25.927491 | 2019-10-12T02:35:54 | 2019-10-12T02:35:54 | 194,011,518 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,437 | cpp | GRTSBL.CPP | #include <iostream.h>
#include <stdlib.h>
#include "book.h"
#include "grlist.h"
#include "aqueue.h"
void printout(int v) {
cout << v << " ";
}
// Topological sort: Queue
void topsort(Graph* G, Queue<int>* Q) {
int Count[G->n()];
int v, w;
for (v=0; v<G->n(); v++) Count[v] = 0; // Initialize
for (v=0; v<G... |
097afdcc794139c131f8cf56cf5aafe7a3fa51d8 | d951266432e2b15b5a9e9b0f156a82c0aaf37af8 | /src/models/projectitem_model.cpp | 059f8fe5e65583b366987914cfa1c9ad48d85c68 | [] | no_license | winzlebee/mtrack | e09704481099221935ceec05540d3b2a15123393 | e3be57d874f23c5535674e4f2718cb3c661adfaf | refs/heads/master | 2021-06-14T13:05:33.601363 | 2021-03-23T11:57:18 | 2021-03-23T11:57:18 | 174,473,203 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 133 | cpp | projectitem_model.cpp | #include "projectitem_model.h"
ProjectItemModel::ProjectItemModel() {
add(m_col_id);
add(m_col_name);
add(m_col_icon);
} |
7bef6aa0fa7d24d800908790df6b41b2e84f1e84 | d96ebf4dac46404a46253afba5ba5fc985d5f6fc | /toolkit/crashreporter/google-breakpad/src/google_breakpad/processor/dump_object.h | eb735dc444916bd565fdca3d6573fda676aca7d1 | [
"LicenseRef-scancode-unicode-mappings",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | marco-c/gecko-dev-wordified-and-comments-removed | f9de100d716661bd67a3e7e3d4578df48c87733d | 74cb3d31740be3ea5aba5cb7b3f91244977ea350 | refs/heads/master | 2023-08-04T23:19:13.836981 | 2023-08-01T00:33:54 | 2023-08-01T00:33:54 | 211,297,165 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 256 | h | dump_object.h | #
ifndef
GOOGLE_BREAKPAD_PROCESSOR_DUMP_OBJECT_H__
#
define
GOOGLE_BREAKPAD_PROCESSOR_DUMP_OBJECT_H__
namespace
google_breakpad
{
class
DumpObject
{
public
:
DumpObject
(
)
;
bool
valid
(
)
const
{
return
valid_
;
}
protected
:
bool
valid_
;
}
;
}
#
endif
|
a8136b859c6ad6e824d05d3c820f892b91a0f441 | 2fd1f2a568ac21e636be169aa44fdf642b33bb17 | /ospray/common/Managed.cpp | 63a84673a903b863845fb84f09dcf8891cdaa930 | [
"Apache-2.0"
] | permissive | BlueBrain/OSPRay | c95720947135bf974252198e5f047f02cc07fc2d | 561eadfe21334ef1d33161947ead416a09040266 | refs/heads/master | 2023-06-25T08:57:45.906096 | 2017-10-20T12:45:50 | 2017-10-23T13:49:39 | 45,674,921 | 1 | 2 | Apache-2.0 | 2018-09-28T15:32:41 | 2015-11-06T10:15:04 | C++ | UTF-8 | C++ | false | false | 6,874 | cpp | Managed.cpp | // ======================================================================== //
// Copyright 2009-2017 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... |
24153c280c0b1043ade23cedc089e9b7ed648eb1 | c3bbdbbbc5f47577e332a280f81bd905617423c9 | /Source/AllProjects/WndUtils/CIDCtrls/CIDCtrls_ScrollArea.cpp | d10e33aefbdc1b06c479c4bec6b4097aa2f62590 | [
"MIT"
] | permissive | DeanRoddey/CIDLib | 65850f56cb60b16a63bbe7d6d67e4fddd3ecce57 | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | refs/heads/develop | 2023-03-11T03:08:59.207530 | 2021-11-06T16:40:44 | 2021-11-06T16:40:44 | 174,652,391 | 227 | 33 | MIT | 2020-09-16T11:33:26 | 2019-03-09T05:26:26 | C++ | UTF-8 | C++ | false | false | 16,350 | cpp | CIDCtrls_ScrollArea.cpp | //
// FILE NAME: CIDCtrls_ScrollArea.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 05/11/2015
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://opens... |
7a9c69fc25556172232a2afed4b91212eabb50b5 | 3eeca45d89f633406a9d032ad252c16bfdaaa0ef | /ngram.cpp | fdc593215392e7efd2a37c2ffce5ea5e2a4c1e11 | [] | no_license | twahlfeld/tgram | 6a53fbde8e05358f5dd142ddf59a1e07d298e338 | 2dc54373c6eb37848dca95bbaebe7d075af7a40f | refs/heads/master | 2016-09-12T02:58:01.641159 | 2016-04-15T14:48:19 | 2016-04-15T14:48:19 | 55,182,693 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,693 | cpp | ngram.cpp | /*******************************************************************************
* *
* Filename: ngram.cpp *
* ... |
53aa445b15b1151fe3b92fd01b7aabb086e0d6e0 | 3224a53b3b25f8b537e1b7ad3e1685fb431922c2 | /ConsoleApplication11/Source.cpp | f68d0bda341ce307e18c7e0640136ad7c03c18f8 | [] | no_license | Skan9/var15-z4 | 28a38d2201017e1651e856df5c5bb0ab657ad45a | 18317da4de0510a4a55fd1e70374b72996c5c564 | refs/heads/master | 2016-09-06T03:55:13.595795 | 2014-12-01T18:34:05 | 2014-12-01T18:34:05 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 939 | cpp | Source.cpp | #include <iostream>
#include <fstream>
using namespace std;
int main(void)
{
setlocale(LC_ALL, "rus");
int n, m, max;
ifstream in("in.txt");
if (!in.is_open())
{
cout << "Не удалось создать файл in.txt" << endl;
return -4;
}
in >> n >> m;
int** A = new int*[m];
for (int i = 0; i<n; i++)
{
A[i] = new int... |
bfb860414a5e852a8bbf8390792a1e6aac184867 | 5d85f37ac448403cfa78acf70f657421a47cdc2c | /.programm1.cpp | 46e7ffda81b93bb804a7551a1e1c5ea1b7ff6512 | [] | no_license | RomanPolishukov/practice | 84486c085757b5801e5bfca2af3f9170901d4716 | 1e39c41f1cb7b6d9e512f519fc727ec093230daf | refs/heads/master | 2021-01-21T08:02:23.681221 | 2015-07-24T07:38:24 | 2015-07-24T07:38:24 | 39,585,698 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,623 | cpp | .programm1.cpp | #include <stdio.h>
#include <iostream>
#include <fstream>
#include <iomanip>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <stdlib.h>
#include <fstream>
#include <vector>
#include <conio.h>
using namespace std;
int file_massive()
{
srand(time(NULL));
int a[10][2],i,j;
FILE *f = fopen("p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.