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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
19ef0461a93e3f6aeb28f7b2c10dc5fe53b5d7d6 | 43e38e777937e9e250ac16de70694fea7d991575 | /sections/section11FriendClaseB.h | 7553bc7bfca943f7f77eca3f315c17d1279bb426 | [] | no_license | locus0002/c-plus-plus | 1fd89535bd297c606e155e09292017571066e968 | 8a1456ea3ce739b9f9a957db810dc6a310b296da | refs/heads/master | 2023-03-08T03:43:15.878868 | 2021-02-10T07:16:56 | 2021-02-10T07:16:56 | 124,449,057 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 183 | h | section11FriendClaseB.h | #ifndef FRIEND_CLASS_B
#define FRIEND_CLASS_B
class B{
friend class A;
int attributeB;
public:
void setValueinB(int);
int getAttribute();
};
#endif |
7253fb544c6b5dd23d1d6f7cb4e6d7ea4b1166ba | 6f73f1bc4a8debbdaf582eb89854eefb27641ac0 | /LunaEngine/LunaEngine/Systems/EntityManager.h | e28b550cc8f3367a1b51e582fde604c1fbcba97c | [] | no_license | junming1901/LunaEngine | b45fa1c541f547520e9f6ba06cd4cb5d2a11c136 | 4b809c4ad6dcc251c8a45352f5b200bf4814fee3 | refs/heads/master | 2021-05-25T13:38:21.258753 | 2020-04-14T06:51:03 | 2020-04-14T06:51:03 | 253,775,232 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 498 | h | EntityManager.h | #pragma once
#include "Entity.h"
#include "System.h"
#define MAX_ENTITIES 1000
class EntityManager : public System
{
public:
template <typename T, T... ints>
EntityManager(std::integer_sequence<T, ints...> seq);
private:
Entity m_EntitiesList[MAX_ENTITIES];
};
// Initialize the entities with their ID at compil... |
456930e470173f7c70395cbe78967767497948ac | c0068537b6428ab7b60f9579c6921a568cb8b30b | /src/input/win/win_input.cpp | 7062c94284c06224a16997b4aec84ab46c3f7ea0 | [] | no_license | kyuu/sphere | 76756f3f19bb9293f273b14dbe4dc8dcd43f5331 | ecda66a17be1cc4191dea520198b274fe3399088 | refs/heads/master | 2021-01-10T20:36:33.835137 | 2012-03-21T02:51:45 | 2012-03-21T02:51:45 | 2,723,079 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,140 | cpp | win_input.cpp | #include <cassert>
#include <vector>
#include <deque>
#include <cassert>
#include <vector>
#include <windows.h>
#include <SDL.h>
#include <SDL_Haptic.h>
#include "../input.hpp"
#define PRESSED 1
#define RELEASED 0
namespace sphere {
namespace input {
//--------------------------------------------------... |
0c7e092c82135e1a35e3b5d2842f1e5cad31b950 | a1809f8abdb7d0d5bbf847b076df207400e7b08a | /Simpsons Hit&Run/game/libs/pure3d/p3d/refcounted.cpp | 9560b1aed236d4abe52b14f7c7cb7fc73fb8ca9e | [] | no_license | RolphWoggom/shr.tar | 556cca3ff89fff3ff46a77b32a16bebca85acabf | 147796d55e69f490fb001f8cbdb9bf7de9e556ad | refs/heads/master | 2023-07-03T19:15:13.649803 | 2021-08-27T22:24:13 | 2021-08-27T22:24:13 | 400,380,551 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 764 | cpp | refcounted.cpp | //=============================================================================
// Copyright (c) 2002 Radical Games Ltd. All rights reserved.
//=============================================================================
#include <p3d/refcounted.hpp>
#include <p3d/error.hpp>
#include <p3d/utility.hpp>
//#... |
972a6d17a483d4ac4c1b43a335d091d8dd68b193 | 7daf22d2ac55a3c2ef54b4102451f7a9a79662b8 | /algorithms/cpp/longestCommonPrefix/longestCommonPrefix.cpp | c88d36e793e233fb013991325e93f2a2b922d28d | [] | no_license | RobinC94/leetcode | 63691fc7766cefeedac3299acb283a182f3f2ded | ccec111075eb3327974058868650da86b37f1da5 | refs/heads/master | 2021-04-18T21:38:16.789390 | 2020-09-11T11:01:31 | 2020-09-11T11:01:31 | 126,580,222 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,097 | cpp | longestCommonPrefix.cpp | // Source : https://oj.leetcode.com/problems/longest-common-prefix/
// Author : Robin Chen
// Date : 2018.4.1
/**********************************************************************************
*
* Write a function to find the longest common prefix string amongst an array of strings.
*
*
**********... |
b7e993a51262334b58720b7350c57b11cbd02a8c | aaf75a8db5b5d0993e1e6f03c77265fa88309fac | /cli/process_requests.hpp | bb449e2d1d177166e71642d1713afa741c6f7137 | [] | no_license | hanchon/bitprim-dojo | 8849abc416a08f62fe2991f793b41b3ab1355f23 | 297ccc1063cf7c355021c870680e9ac680a33612 | refs/heads/master | 2021-07-24T10:27:00.565138 | 2018-07-06T01:58:41 | 2018-07-06T02:02:52 | 135,053,018 | 0 | 1 | null | 2018-06-16T00:29:05 | 2018-05-27T14:18:54 | C++ | UTF-8 | C++ | false | false | 11,723 | hpp | process_requests.hpp | //
// Created by hanchon on 6/3/18.
//
#ifndef BITPRIM_DOJO_PROCESS_REQUESTS_HPP
#define BITPRIM_DOJO_PROCESS_REQUESTS_HPP
#include <string>
#include <bitcoin/bitcoin.hpp>
#include <wallet/wallet_functions.hpp>
#include <simple_web_client/requester.hpp>
#include <wallet/transaction_functions.hpp>
namespace bitprim {... |
a0c7983515df46ae5a2da476532b13a3bc679c7a | e17a68cd5152658c05599b3d7f52b22c1319a019 | /Maquina_de_busca/consulta.cpp | 5561e3a2082d09cef07f9d099de88d522e6cfef1 | [] | no_license | BrunaoW/Maquina_de_Busca | ab03f6217dd719d0f8b2e3cb1ceda5c590181118 | 4b3a1cd99f029b23ffadfc92441fad6f1212084f | refs/heads/master | 2020-05-17T05:21:42.984690 | 2019-06-13T22:42:44 | 2019-06-13T22:42:44 | 183,532,251 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,253 | cpp | consulta.cpp | #include "consulta.h"
Consulta::Consulta()
{
}
map<Palavra, double> Consulta::ObterCoordenada()
{
return coordenada_.ObterPosicao();
}
Consulta::~Consulta()
{
}
void Consulta::AtribuirCoordenada(Coordenada coordenada)
{
this->coordenada_ = coordenada;
}
void Consulta::CalcularCoordenadasParaPalavras(IndiceInver... |
7377813987121ebbd9e2cad755920095639dfb3e | e245c0b9e6a011f5017f85a1d144b75f0a2ab376 | /ambarella/app/cloud/common/base/runtime_config/xml/runtime_config_xml.h | 8accdfdb10e567a40254a74d54d8ebee69c8f8e7 | [] | no_license | EricChen2013/SS001_SDK2.6 | e31172cc2edb6933a6f93d5697dd4df1a7f66f59 | d536bb6cf699b9b4959c0dded6c3ef238668d503 | refs/heads/master | 2016-10-19T04:27:45.668386 | 2016-05-11T03:08:53 | 2016-05-11T03:08:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,798 | h | runtime_config_xml.h | /**
* runtime_config_xml.h
*
* History:
* 2013/05/24- [Zhi He] create file
*
* Copyright (C) 2014 - 2024, the Ambarella Inc.
*
* All rights reserved. No Part of this file may be reproduced, stored
* in a retrieval system, or transmitted, in any form, or by any means,
* electronic, mechanical, photocopying, r... |
a7931b5bec38f888b243dd4e150662412ad7a6de | 05c98687243a5b15602e4fdcddc14d23582be12f | /Assignment_2/src/reactive_robot/main.cpp | 06b6259eb37a62528e078f4b91d4e2a46d27d713 | [] | no_license | FilipeMRibeiro/FEUP-ROBO | 85713ef8884596ccac0a5e54af76ce2bb98fbff1 | ac7fd8735b567fd60850bbe98d9e0296f0331cbd | refs/heads/master | 2021-04-28T07:44:24.758619 | 2018-01-02T14:50:31 | 2018-01-02T14:50:31 | 122,230,385 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,646 | cpp | main.cpp | #include <ros/ros.h>
#include <geometry_msgs/Twist.h>
#include <limits>
#include <sensor_msgs/LaserScan.h>
#include <string>
using namespace std;
// handle conversion between radians and degrees
#define PI 3.14159265358979323846
float toDegrees(float angle) { return angle * (180 / PI); }
float toRadians(float angle)... |
eb06670c196346a0e93b5bb8fd84b585efcd1af6 | 951f4bcf0c99630a7d60f9facd1fb11a9e887568 | /session10a/Mouse.cpp | a1e4937402f13afc151b1db34b920fd341f69f3b | [] | no_license | utec-cs1102-2019-2/ec1 | f387ae34a5a42102216f886c4c210b3ecc1ba254 | 6494f54b4f220f41547740c2ddc12b85a2992992 | refs/heads/master | 2020-07-24T10:58:10.003131 | 2019-11-27T21:38:34 | 2019-11-27T21:38:34 | 207,901,124 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 313 | cpp | Mouse.cpp | #include "Mouse.h"
#include <iostream>
using namespace std;
void Mouse::printDescripcion(){
cout<<"-----------------------"<<endl;
cout<<"Mouse features:"<<endl;
cout<<this->color[0]<<" "<<this->color[1] << this->color[2]<<endl ;
cout<<this->precision<<endl;
cout<<"-----------------------";
} |
2266edc61ae7b4487b43759ca971f69d6b1abb7f | f20e965e19b749e84281cb35baea6787f815f777 | /LHCb/Hlt/HltDAQ/src/HltDiffHltDecReports.cpp | 51561c1fe98847bd2af55226b1927990876e63f1 | [] | no_license | marromlam/lhcb-software | f677abc9c6a27aa82a9b68c062eab587e6883906 | f3a80ecab090d9ec1b33e12b987d3d743884dc24 | refs/heads/master | 2020-12-23T15:26:01.606128 | 2016-04-08T15:48:59 | 2016-04-08T15:48:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,868 | cpp | HltDiffHltDecReports.cpp | // $Id: HltDiffHltDecReports.cpp,v 1.1.1.1 2009-06-24 15:38:52 tskwarni Exp $
// Include files
// from Gaudi
#include "GaudiAlg/GaudiAlgorithm.h"
#include "Event/HltDecReports.h"
#include <iterator>
class HltDiffHltDecReports : public GaudiAlgorithm {
public:
/// Standard constructor
HltDiffHltDecReports( const ... |
b0d711f96c3e82f6e6064b7f30b4540863d199c0 | 2d9fc118ad13bae59803d96fca34096ebcedfcee | /src/lvm_wt/lvm_wt_bin_map_item.cpp | f5d722b8c671f9b4bf377f493046a5fd83546c44 | [] | no_license | MetaBarj0/test_driven_bin_mapping | 436619bff2daa60a20204a9e49f1c6df85d326dc | 49a4f02765c4508e4cf0d05ef2faf8494917e811 | refs/heads/master | 2020-05-01T16:10:42.409136 | 2018-11-14T14:41:56 | 2018-12-05T20:54:18 | 177,565,827 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 785 | cpp | lvm_wt_bin_map_item.cpp | #include "lvm_wt_bin_map_item.h"
#include "common/string_manipulations.h"
#include <utility>
namespace Qx
{
namespace BinMapping
{
LvmWtBinMapItem::LvmWtBinMapItem(std::string &&aTestName, int aTestNumber, int aBinNumber, std::string &&aBinName) noexcept :
mTestName{ Qx::TrimStringLeftSideOf( std::move( aTestNam... |
7f484336cf451fd0ea031971e50de3f9567299e4 | 4bf4c257299f2e70b387483cb348c5060ede309d | /NDNc/face/transport.hpp | 7ae1c2dffb6f15d0c7cd1b18023fcace01ff8b30 | [
"MIT"
] | permissive | cmscaltech/sandie-ndn | ba436f1b7c1c923cc0e0147b91e2de7ee14d3f19 | 528efdaaa6da4b6528b12b201f2648f54088503b | refs/heads/master | 2023-08-15T08:36:54.891243 | 2023-07-22T11:13:04 | 2023-07-22T11:13:04 | 136,227,335 | 6 | 4 | MIT | 2023-02-25T09:43:21 | 2018-06-05T19:49:51 | C++ | UTF-8 | C++ | false | false | 2,902 | hpp | transport.hpp | /*
* N-DISE: NDN for Data Intensive Science Experiments
* Author: Catalin Iordache <catalin.iordache@cern.ch>
*
* MIT License
*
* Copyright (c) 2021 California Institute of Technology
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentatio... |
cde7316eacc720a0af63f108ab800b8da050cb1a | 9230eb69c9e43e3c330b4a1c6a1ce5a328535176 | /Sort/Problems/MergeSort/CollinearPoints/brute_collinear.cpp | 543e76d43a89a94feb5d3370e9072cbbdad74a70 | [] | no_license | babhijit/algo | c34e6d0599352eafecc039e10761e68417768bc9 | 33032474d109a9b8a89aa9129f1e6e6b8d94f5e5 | refs/heads/master | 2021-01-12T03:38:49.352834 | 2017-04-19T03:30:46 | 2017-04-19T03:30:46 | 78,245,449 | 0 | 2 | null | 2017-02-08T00:09:14 | 2017-01-06T23:04:16 | C++ | UTF-8 | C++ | false | false | 1,958 | cpp | brute_collinear.cpp | #include "brute_collinear.h"
#include <algorithm>
#include <map>
namespace algo {
namespace problems {
/**
* @brief This finds line segments (containing at least 4 collinear points).
* The line segment may also contain more than 4 collinear points
*
* @param line_segments : the output parameter that ... |
2f4bb428ce149039e55f9a84d6e3cb6320fc0670 | 7e74e920ac19648aae67d4d0e6ab92a6ca31f2e8 | /src/server/JasmineGraphInstanceService.cpp | d565e0a435661955cdb34a667dac7769d8060c02 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown",
"MIT"
] | permissive | miyurud/jasminegraph | ec0553969e5ee7a106f71763460292eeb7fb47e8 | 0112710523199eafcdc5193b50df67077d003dbf | refs/heads/master | 2023-08-17T15:59:07.513075 | 2023-08-10T14:10:40 | 2023-08-10T14:10:40 | 149,000,275 | 32 | 27 | Apache-2.0 | 2023-09-12T18:37:38 | 2018-09-16T13:50:05 | C | UTF-8 | C++ | false | false | 232,857 | cpp | JasmineGraphInstanceService.cpp | /**
Copyright 2018 JasminGraph Team
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... |
a2171105394fdcb25a0ec1d034d349c2bb2f79e9 | 9cb7a1c7086deedfc5967a6bed7bf90434c1770e | /src/utils/BufferStream.h | aff0bc3a6220b17bf61b4316039528795576b699 | [
"MIT"
] | permissive | after12am/sunflow | 23d2bfbf6b8c4e30b4cf51fe4f926307106a62e6 | 77c3455ba80b93e51158407989135a1d7ffdb2fb | refs/heads/master | 2021-01-20T10:42:47.733834 | 2015-02-18T05:59:02 | 2015-02-18T05:59:02 | 4,174,260 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,522 | h | BufferStream.h | //
// BufferStream.h
// sunflow
//
// Created by Okami Satoshi on 12/04/27.
// Copyright (c) 2012 Okami Satoshi. All rights reserved.
//
#ifndef _BufferStream_h
#define _BufferStream_h
#include <sstream>
#include <iostream.h>
#include "Constants.h"
class BufferStream {
private:
std::ostringstream osstream;
... |
488fbf39f3c9862a2f7c13eac8de5d837ddcecec | 4cf533a3d03c3979a39fa308f06c6a515c9f1bee | /osi_laba_4/lab4_p1/writer.cpp | f6cd8d8a058051e35d9d834386460ecd86481bee | [] | no_license | Milllkyway/osi_projects | 923c77246b32ab7ae74fd3f7ef88ccdea3245e9d | 9884cf1afdf439feec6f5fc4114a1d177d0ea430 | refs/heads/master | 2023-02-22T13:47:39.531543 | 2021-01-29T06:24:16 | 2021-01-29T06:24:16 | 307,385,143 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,355 | cpp | writer.cpp | #include <iostream>
#include <string>
#include <fstream>
#include <windows.h>
#include <random>
#include <ctime>
#pragma comment(lib, "winmm.lib")
using namespace std;
const char* text = "HelloThisIsBigData";
const int PAGE_NUM = 18;
const int PG_SIZE = 4096;
int main() {
string s1 = "fileMapped";
string s2 = "w... |
f7bc3c9760fa9e03a4899e765a0ea515990bfd2b | e2e3e85061e35b622a8b172235d8d99f734848a5 | /Cubixcraft_v0.0.3-alpha_2021.05.18_src_VisualC++2019/Cubixcraft/utils.h | e94102bb17a71a55b6751fe77909218c8ea8cd02 | [] | no_license | BlackMightyRavenDark/Cubixcraft | e2bfebc7f79efedf3992d3a12fbb5b7d559a2a0d | a76bfb64f9b9d60a63145ee03c57d2cc4f63fe7b | refs/heads/master | 2023-04-12T11:25:02.220385 | 2021-05-18T09:41:59 | 2021-05-18T09:41:59 | 258,738,515 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 465 | h | utils.h | #include <iostream>
#include <codecvt>
#include <GL/gl.h>
class CBlock;
class CTessellator;
enum class MOUSE_WHEEL_DIRECTION { MW_UP = 0, MW_DOWN = 1 };
int RenderCubeSideHud(CBlock* block, CTessellator* t, float x, float y, float z, float cubeSize, int cubeSideId);
int CheckOpenGlError(std::string t);
st... |
8e06f1e7dd4a9c7a71f7a15d230d0eb09124f56d | 490923eb35803c92a1dc931e51e8c5eee635b628 | /HermitianCode_LCC/[FacCheating]Herm(512,314)_LCC/FiniteFieldBasisGF(64).cpp | 697a453698475acdafda703f05a30ebc9eba1c88 | [] | no_license | codywsy/Simulation-by-C | 60814a934bc191fcbe5adfda99216c02eef3ef20 | 6ac645452447357b3d63a3a80b2004b916918bd3 | refs/heads/master | 2021-01-21T14:08:33.144358 | 2017-10-21T14:24:28 | 2017-10-21T14:24:28 | 54,982,938 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,223 | cpp | FiniteFieldBasisGF(64).cpp | //FiniteFieldBasis.cpp
//int mularray[] = {1,2,4,8,3,6,12,11,5,10,7,14,15,13,9}; //this array is used to the infinite field element mul
//int root[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}; //n+1 be used to the factorization
//int logNum[] = {-1,0,1,4,2,8,5,10,3,14,9,7,6,13,11,12}; //used to locate the degree of f... |
31f6c102cadce9f6e40e250a4952fd99f102bedb | cf95dd4509488daefa10defabdb4d8665237ff67 | /src/core/src/SpatialInertia.cpp | a1d68d1744c7a62f72890faacdf06ecf27fed916 | [
"BSD-3-Clause"
] | permissive | robotology/idyntree | c5c71172a0411ae56084074462edc401ce658610 | eab099dd9d457ce33e476ab73a8fe7b26a0627c6 | refs/heads/master | 2023-08-27T21:00:36.746627 | 2023-08-18T08:41:19 | 2023-08-18T08:41:19 | 17,824,536 | 130 | 72 | BSD-3-Clause | 2023-09-12T13:58:57 | 2014-03-17T10:35:53 | C++ | UTF-8 | C++ | false | false | 9,683 | cpp | SpatialInertia.cpp | // SPDX-FileCopyrightText: Fondazione Istituto Italiano di Tecnologia (IIT)
// SPDX-License-Identifier: BSD-3-Clause
#include <iDynTree/Core/Position.h>
#include <iDynTree/Core/SpatialInertia.h>
#include <iDynTree/Core/SpatialMomentum.h>
#include <iDynTree/Core/Twist.h>
#include <iDynTree/Core/SpatialAcc.h>
#include <... |
9f72b352aaa94c592f90b0e945fb4ca9d15a9c86 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Simulation/ISF/ISF_Core/ISF_Tools/src/components/ISF_Tools_entries.cxx | ba698c84402d3c3131da7ad84e2c787486e69278 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,351 | cxx | ISF_Tools_entries.cxx | #include "GaudiKernel/DeclareFactoryEntries.h"
#include "../ParticleHelper.h"
#include "../MemoryMonitoringTool.h"
#include "../GenericBarcodeFilter.h"
#include "../EntryLayerFilter.h"
#include "../KinematicParticleFilter.h"
#include "../CosmicEventFilterTool.h"
#include "../GenericParticleOrderingTool.h"
DECLARE_NAME... |
2d3bd74db7f0b56c900f1f97f404336c1ec9c449 | 9e3a878f6579f68e41bf8de5dd26cc6b908119ae | /eigen.cpp | d04e28df42394381b64ab300637c4220fc695204 | [] | no_license | TazdingoDing/P.O.S.C | d4ff15e48a3961c57bcd8299951a76d8092a3d50 | 71f63279c8449973229d510ebaf718f6a11fdfbb | refs/heads/master | 2020-03-21T07:09:16.086279 | 2018-07-18T08:58:23 | 2018-07-18T08:58:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,704 | cpp | eigen.cpp | #include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <functions.h>
#define NR_END 1
#define RADIX 2.0
#define FREE_ARG char*
#define SWAP(a,b) do { double t = (a); (a) = (b); (b) = t; } while (0)
#define SIGN(a,b) ((b) >= 0.0 ? fabs(a) : -fabs(a))
#define SQR(a) ((a)*(a))
const int length = 3;
static do... |
63292aa96217eb406c0fd38d6b48e6e6d0863477 | a5411e0b1108ca85e424e7095009661f36a315b0 | /soundPlayer.h | 21d51545cae9798f0944fa3cc9c73991cd868062 | [] | no_license | andras-szabo/project-shmup | de402a4683cdaf2cc03d1864d1985b8380736b50 | 41003a62a74e59695bd35766f2ac125a9d91153b | refs/heads/master | 2020-05-18T15:16:58.238431 | 2014-05-27T09:56:25 | 2014-05-27T09:56:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 684 | h | soundPlayer.h | #ifndef __shmup_project__soundPlayer__
#define __shmup_project__soundPlayer__
#include <SFML/Audio.hpp>
#include "resourceHolders.h"
#include "globalVariables.h"
#include <list>
class cSoundPlayer {
public:
cSoundPlayer();
void play(SfxID);
void removeStoppedSounds();
voi... |
de308833320e402f4349c5b1595ffb1bdc4cda01 | 8545842a34af43dcd60cd271fa17913f3cc432c5 | /GalaxyNotes/GalaxyNotes/Context.h | b6b65805676420dcd3d9be157872e9943a3d35c6 | [] | no_license | pamhrituc/Design_Patterns | cb17bc9583d64f98842035cb2dd8516af531a82a | 139790a63a9f3c8cc80af21ee4eface5c1601587 | refs/heads/master | 2022-11-05T06:54:05.182326 | 2020-06-23T19:07:49 | 2020-06-23T19:07:49 | 259,892,935 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 260 | h | Context.h | #pragma once
#include "Strategy.h"
class Context
{
private:
Strategy* strategy;
public:
Context();
Context(Strategy* strategy) : strategy(strategy) {}
StarListIterator* executeStrategy(std::string how, StarListIterator* star_list_iterator);
~Context();
}; |
fbca6f73f5ff667234b1fc4b971f6bba89956c1c | 3693a4c271684c2b6d913ea694b100806ed28dbd | /Classes/Models/Characters/States/StateHandlers/Ryunosuke/InEdgeObstacleStateHandler.h | 355e75f67b4428f01f24fc2819bcd304068cbb96 | [
"MIT"
] | permissive | HectorHernandezMarques/NinjaNoMeiyo | 1f99d13a66a3203df5a3dbb55cc8d86ffca53394 | 4ae0b99e12d172a34e84de990e47817deed632e2 | refs/heads/master | 2021-03-24T12:16:15.388635 | 2018-06-04T23:31:25 | 2018-06-04T23:31:25 | 84,374,001 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,085 | h | InEdgeObstacleStateHandler.h | #ifndef NINJANOMEIYO_MODELS_CHARACTERS_STATES_STATEHANDLERS_RYUNOSUKE_INEDGEOBSTACLESTATEHANDLER_H
#define NINJANOMEIYO_MODELS_CHARACTERS_STATES_STATEHANDLERS_RYUNOSUKE_INEDGEOBSTACLESTATEHANDLER_H
#include "../CharacterStateHandler.h"
namespace NinjaNoMeiyo {
namespace Models {
namespace Characters {
namespace... |
95c192f89ec2df7007013b8a3914786f16aa51cb | 9fbff544471056f0816fa52d1bbf0c4db47c1f24 | /leetcode/696.计数二进制子串.cpp | c63188fbfcb47eb61fe51e962c0d799c4e95bb4b | [] | no_license | theDreamBear/algorithmn | 88d1159fb70e60b5a16bb64673d7383e20dc5fe5 | c672d871848a7453ac3ddb8335b1e38d112626ee | refs/heads/master | 2023-06-08T15:47:08.368054 | 2023-06-02T13:00:30 | 2023-06-02T13:00:30 | 172,293,806 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,414 | cpp | 696.计数二进制子串.cpp | /*
* @lc app=leetcode.cn id=696 lang=cpp
*
* [696] 计数二进制子串
*/
#include <string.h>
#include <algorithm>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
using namespace std;
... |
48fd36fa5e5609db1d1e3c5066bde54adce06855 | 85381529f7a09d11b2e2491671c2d5e965467ac6 | /比赛源码/2015 Multi-University Training Contest 06/1002.cc | 192c3a6d3d2fffb736940733be538eebff3e2846 | [] | no_license | Mr-Phoebe/ACM-ICPC | 862a06666d9db622a8eded7607be5eec1b1a4055 | baf6b1b7ce3ad1592208377a13f8153a8b942e91 | refs/heads/master | 2023-04-07T03:46:03.631407 | 2023-03-19T03:41:05 | 2023-03-19T03:41:05 | 46,262,661 | 19 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 3,274 | cc | 1002.cc | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 1e5 + 10, MAXM = 1e5 + 10;
struct edge {
int x, y, st, ed;
} e[MAXM << 2];
char ret[MAXM];
namespace dsu {
int fa[MAXN], d[MAXN], a[MAXN];
int s[MAXN << 4], top;
int find(int x) {
while (fa[x] != x) x = fa[x];
return x;
}
int d... |
f504413e3b0059b36574a541e61c6c688439b26f | 6463da9a716e1267cf0505e230b5801bc5b175aa | /compress_code/main.cpp | 236e66067b48e73119756139feb85ccd1359ae0f | [
"LicenseRef-scancode-public-domain"
] | permissive | lianzeng/cplusplus11.Examples | c333948f70a16b84ce139f1e5812ab9f0ba45afe | f27335ec622938d0af17d664877f5934e418dcd3 | refs/heads/master | 2021-01-24T18:38:42.216365 | 2016-11-16T17:13:53 | 2016-11-16T17:13:53 | 84,463,090 | 0 | 1 | null | 2018-01-31T04:22:41 | 2017-03-09T16:15:43 | C++ | UTF-8 | C++ | false | false | 1,500 | cpp | main.cpp | #include"lexer.hpp"
#include<iostream>
#include<string>
#include<fstream>
#include<thread>
#include<chrono>
int main(int argc, char **argv) {
if(argc == 3) {
std::fstream source;
source.open(argv[1], std::ios::in);
if(!source.is_open()) {
std::cerr << "Er... |
e7c43f86bdac44df4d1ddf1a29d5f4d995dbcbda | 3ddfed50cea6d0c0c9f46788f33088915128a569 | /Lab03/Exercise03.cpp | 7b5b89f059d5f24697dfea7ae6fe960e8a99ef05 | [] | no_license | ITITIU20337/LabCProgramming-Solution | 429a9677dfe4dc147cdc24d96e6a136d27bedade | 88fce65335ed4546dd95b9f55065a03331fa6b42 | refs/heads/main | 2023-08-28T00:52:05.300969 | 2021-10-29T15:00:34 | 2021-10-29T15:00:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,176 | cpp | Exercise03.cpp | /*
3. Input an array of n integers. Find the largest sorted sub array
(sorted array increasing/decreasing and has the largest number of elements)
Ex:
_____________________________________________
| Input: 2 5 3 4 8 9 7 6 10 |
| Output: Increasing 3 4 8 9 Decreasing 9 7 6 |
|__________________________... |
297e9d4f7d2917a7e5a72949fee4788b9e279c02 | 71633e529e35d66c5f0376058cf1a14d378625b2 | /032. Longest Valid Parentheses—Dynamic Programming/Longest Valid Parentheses.cpp | 81bccb737bb0d8cb74091e61fb43ab17132cf0b6 | [] | no_license | MilesWangSeven/leetcode-DailyProblem | 01277087d2554d271f108fee9633b4492d9ecff8 | 946809e39d66a9d32aa39b7d2fad58b23439e1c4 | refs/heads/master | 2020-04-04T00:32:58.612671 | 2019-04-19T00:33:05 | 2019-04-19T00:33:05 | 155,653,646 | 1 | 0 | null | 2018-11-01T02:56:29 | 2018-11-01T02:56:29 | null | UTF-8 | C++ | false | false | 710 | cpp | Longest Valid Parentheses.cpp | class Solution {
public:
int longestValidParentheses(string s) {
int max_len = 0, last = -1; // the position of last '('
stack<int> lefts;
for (int i = 0; i < s.size(); ++i) {
if (s[i] == '(') {
lefts.push(i);
} else {
if (left... |
079ab3ebb91c90676a29a299cf19e7d38a539c7b | 0e0a39875ad5089ca1d49d1e1c68d6ef337941ff | /inc/Core/ForEach.h | 5c4267abfb4eaaab046468a78d6783e1724e0985 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | FloodProject/flood | aeb30ba9eb969ec2470bd34be8260423cd83ab9f | 466ad3f4d8758989b883f089f67fbc24dcb29abd | refs/heads/master | 2020-05-18T01:56:45.619407 | 2016-02-14T17:00:53 | 2016-02-14T17:18:40 | 4,555,061 | 6 | 2 | null | 2014-06-21T18:08:53 | 2012-06-05T02:49:39 | C# | WINDOWS-1252 | C++ | false | false | 2,582 | h | ForEach.h | /************************************************************************
*
* Flood Project © (2008-201x)
* Licensed under the simplified BSD license. All rights reserved.
*
************************************************************************/
#pragma once
#include "Core/API.h"
#include "Core/Task.h"
#include <f... |
8fb46765fce87db4c6536b986c06e9f25e87275a | baebb4f11b771713e76ddf60e437ea53260af7ec | /src/Acceptor.h | 4536bb24e4bc636173783b3e225b9256a85a4141 | [] | no_license | xeon2007/rtmp_relay | 3f333406c4624baf545acf8d953958957c03b434 | 8e14eb38188e4224a1dcb3579507de2941766321 | refs/heads/master | 2018-05-13T05:20:50.271786 | 2016-05-12T15:22:34 | 2016-05-12T15:22:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 510 | h | Acceptor.h | //
// rtmp_relay
//
#pragma once
#include <vector>
#include <functional>
#include "Socket.h"
class Acceptor: Socket
{
public:
Acceptor(Network& network, int socketFd = -1);
virtual ~Acceptor();
Acceptor(Acceptor&& other);
Acceptor& operator=(Acceptor&& other);
bool startAccept(uint16_t... |
d862d4df68ea5c8617e88aa23bcd900654e93f10 | dd1a4ca7020ba5cac93d90829798a3a6f80d33a1 | /Loj/loj102.cpp | 7e4d4cb93ba632710bb7b9ebe7e33ee3a0bc1cb9 | [] | no_license | Exbilar/Source | a0f85b8b47840a4212fd4a9f713f978cab13e9a3 | b8bc0dc52e51f6c4986bd0f37de61b13d98e6e8c | refs/heads/master | 2022-05-03T22:35:57.300520 | 2022-03-14T09:03:03 | 2022-03-14T09:03:03 | 97,890,246 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,488 | cpp | loj102.cpp | #include <cstdio>
#include <cstring>
#include <algorithm>
static const int maxm = 1e6 + 10;
static const int INF = ~(1 << 31);
int fst[maxm],nxt[maxm],to[maxm],cst[maxm],cap[maxm];
int inq[maxm],vis[maxm],dis[maxm],que[maxm];
int S,T,allc,n,m,cnt = 1;
void ins(int f,int t,int v,int c){
nxt[++cnt] = fst[f],to[cnt] =... |
442d508fc00b7d86fe0612acd12b440607742cc9 | c6f4505920e0ef7a4c6b9fff5fed4c9ce24d97af | /VisitorMode/ListVisitor.h | 78865dafcf208db82557b08c724df96ace18c7f7 | [] | no_license | luzh0422/DesignPatterns | 43f47e85fbc6a73d24435e2117ea726a17d7cf55 | ca59713c9fa59115742da63ef0afbea1e7c6a8b2 | refs/heads/master | 2021-06-07T02:27:40.188342 | 2020-05-06T14:37:25 | 2020-05-06T14:37:25 | 153,556,496 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 359 | h | ListVisitor.h | //
// Created by Luzh on 2019/2/21.
//
#ifndef VISITORMODE_LISTVISITOR_H
#define VISITORMODE_LISTVISITOR_H
#include "Visitor.h"
#include <string>
class ListVisitor : public Visitor{
public:
void visit(File *file) override;
void visit(Directory *directory) override;
private:
std::string currentDir = "";
}... |
7916dd7ed4df5155329029bc3fd743897d32ed71 | aa0168a62f7629c08f4d30d8719fe4239e978cfb | /libVcf/VCFInputFile.cpp | dd2ab70d0bd50bf891268536cfc3192316cfd154 | [] | no_license | Shicheng-Guo/rvtests | e41416785f42e4ff7da87f633ffff86dd64eaf60 | be1bd88b2bd663804bb8c2aff8a4d990a29850d2 | refs/heads/master | 2020-04-07T10:51:02.496565 | 2018-10-05T05:59:27 | 2018-10-05T05:59:27 | 158,302,712 | 1 | 0 | null | 2018-11-19T23:20:09 | 2018-11-19T23:20:08 | null | UTF-8 | C++ | false | false | 8,597 | cpp | VCFInputFile.cpp | #include "VCFInputFile.h"
#include "base/IO.h"
#include "base/Utils.h"
#include "BCFReader.h"
#include "TabixReader.h"
// use current subset of included people
// to reconstruct a new VCF header line
void VCFInputFile::rewriteVCFHeader() {
std::string s = "#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT";
... |
fadfe19e6b3497f5f3c4160c6bfa3379bee9748c | d308dcec76de6e76c8f504d520cbd3a690322e0b | /Robot/group03/Traffic Light Detection (Final Project)/Traffic_Light_Detection/Traffic_Light_Detection.ino | c804c96eaa094d4e8ccc6feea17da5054eae7899 | [] | no_license | asla9709/MobileRobotics | 188c6edf35e0c043c105b2698577ff82c487c415 | 0d7828866f551ce9df9eed4299cd027cb41d7cae | refs/heads/master | 2020-03-11T16:13:53.934986 | 2018-06-14T04:20:45 | 2018-06-14T04:20:45 | 130,110,061 | 0 | 0 | null | 2018-04-24T05:43:17 | 2018-04-18T19:10:32 | C++ | UTF-8 | C++ | false | false | 1,690 | ino | Traffic_Light_Detection.ino | #include "Motor.h"
#include "Wire.h"
const int startButton = 10;
const int trigPin = 12;
const int echoPin = 13;
const int ledPin = 7;
//initialize car components
Motor leftMotor(2,3);
Motor rightMOtor(4,5);
//initialize car
bool start_motion = true;
unsigned long startMillis;
unsigned long currentMillis;
const uns... |
92c510813a43cbe0a622b5922863f7b671e623dd | 4416d4c599f175b68f54e0ee2aca97b18639567f | /DXBase/DXBase/sources/Actor/Person/Enemy/Bosses/MiniBoss/MediumBoss/BossScrollPoint.cpp | 63154402e61108cbf52ccbb53903122220889e5f | [] | no_license | kentatakiguchi/GameCompetition2016_2 | 292fa9ab574e581406ff146cc98b15efc0d66446 | df1eb6bf29aba263f46b850d268f49ef417a134b | refs/heads/master | 2021-01-11T18:21:34.377644 | 2017-03-03T08:25:39 | 2017-03-03T08:25:39 | 69,625,978 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 3,095 | cpp | BossScrollPoint.cpp | #include "BossScrollPoint.h"
#include "../../../../Player/PlayerBody.h"
#include "../../../../Player/PlayerConnector.h"
#include "../../../../../../World/IWorld.h"
#include "../../../../../../Define.h"
BossScrollPoint::BossScrollPoint(IWorld * world, const Vector2 & position) :
Actor(world, "BossScrollPoint",
pos... |
978a435ba82bb8b86ec3daeadaac18ba07d0fef0 | fb5545a27eba0d1df279a11ebe2c0e47921f9ff3 | /Science/FFTData.cpp | e2aa566f9d2bc93e0a6ef61bc7689c3fe29bc2f6 | [] | no_license | OpenEngineDK/projects-MRISIM | f9e187652847c42ed49e30df34fb5d608c553071 | f2ccfc41e84f3b61448ec0b99ad12baed7bd49ca | refs/heads/master | 2020-12-24T20:15:30.488997 | 2016-05-05T00:43:11 | 2016-05-05T00:43:11 | 58,077,385 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 632 | cpp | FFTData.cpp | #include "FFTData.h"
namespace MRI {
namespace Science {
FFTData::FFTData() {
}
void FFTData::SetFFTOutput(vector<complex<double> > data) {
convertedData.clear();
for(vector<complex<double> >::iterator itr = data.begin();
itr != data.end();
itr++) {
complex<double> c = *itr;
... |
3abcc5b0f6bbbf31ba68ebde29752eb57cd72254 | 51ac3033058d790645e1e91ebf962ea9deaf96d0 | /src/include/evaluate.h | b74cee24a791a45c6a4826d72013142bb4d755a3 | [] | no_license | YznMur/kitti_deep_vo | 4247dfc7de0abd14c0046f0c3070e3ce297583c9 | 90b46f500ac326cb2b3c2fcde1d4e4a0f44e0f0d | refs/heads/main | 2023-07-15T22:44:50.985512 | 2021-08-26T08:32:09 | 2021-08-26T08:32:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 740 | h | evaluate.h | #ifndef VO_EVALUATE_H
#define VO_EVALUATE_H
#include "matrix.h"
#include "common.h"
struct Error
{
double r_err, t_err;
};
bool LoadPoses(std::vector<Matrix>& poses, const std::string& filename);
std::vector<double> ComputeTrajectoryDistances(const std::vector<Matrix>& poses);
int ComputeLastFrame(const std::vect... |
0b0c9e7180cfa666686de943cd38e572afe3a0bf | e7aeb9c49f0d35caa1cea7f416ee1d238c8a2426 | /HDUOJ/HDU2097-Sky数.cpp | dd7d4e54e83114f93a0cdf6e2a840a6ef0361955 | [] | no_license | protectors/ACM | 1ee0c2ade796c5bda80fc0551647661c2b40c65a | a9b33912d8763c6af37fbbae4135b2761a69a2a8 | refs/heads/master | 2022-07-26T13:57:40.590234 | 2022-06-21T03:41:13 | 2022-06-21T03:41:13 | 85,793,349 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 638 | cpp | HDU2097-Sky数.cpp | #include <iostream>
using namespace std;
bool issky(int n){
int tmp,t10,t12,t16;
t10=t12=t16=0;
tmp=n;
while(tmp){
t10+=tmp%10;
tmp/=10;
}
tmp=n;
while(tmp){
t12+=tmp%12;
tmp/=12;
}
tmp=n;
while(tmp){
t16+=tmp%16;
tmp/=16;
}
... |
d23115fbd0f1dfc6c507f3d93f4aa63f31fae124 | bf7141f609a670741dc5e07299e378412f37ed84 | /XtractL/XtractL/tools/TransducerActionOStream.cpp | ee339f6a296aaad76f05b51f873da80df3b059e5 | [] | no_license | ADozois/GPA789_Lab1 | 874ed96e28a800f6e6fd300d12c3cee6746a854b | 1ecc2c149116334d66902bb95e2b4abb8698ccec | refs/heads/master | 2021-07-16T07:53:45.831016 | 2017-10-22T21:30:27 | 2017-10-22T21:30:27 | 104,134,175 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 135 | cpp | TransducerActionOStream.cpp | #include "TransducerActionOStream.h"
TransducerActionOStream::TransducerActionOStream(ostream * oStream)
: mOStream{ oStream }
{
}
|
da6a984c62f8f2268fcdc694c64cf1069b0f40d2 | 85fe031ad1b7ba918fd2de0ccc68185b0e19439e | /source-code/Find_Duplicate_Subtrees.cpp | 80e51d7f25e87318897d45bead4aa11285175b76 | [] | no_license | Mogileeswaran/LeetCode_problems_solution | e7bbe0387bd98fed115ba4c73ea549270aa7a7bd | f31032c69fcb0d549797023584aa131507e7471e | refs/heads/master | 2021-01-09T00:21:28.139841 | 2019-01-13T07:00:39 | 2019-01-13T07:00:39 | 242,186,579 | 1 | 0 | null | 2020-02-21T16:46:29 | 2020-02-21T16:46:28 | null | UTF-8 | C++ | false | false | 2,921 | cpp | Find_Duplicate_Subtrees.cpp | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right... |
91c0d03a5164fdc9b7e4e0cd2eed4ba3b00911cc | 66deb611781cae17567efc4fd3717426d7df5e85 | /ppro/PrivacyProtection/rule/KVariableString.cpp | 84730b5276f4136b7b8727087d89b7e7070c8e58 | [
"Apache-2.0"
] | permissive | heguoxing98/knoss-pcmanager | 4671548e14b8b080f2d3a9f678327b06bf9660c9 | 283ca2e3b671caa85590b0f80da2440a3fab7205 | refs/heads/master | 2023-03-19T02:11:01.833194 | 2020-01-03T01:45:24 | 2020-01-03T01:45:24 | 504,422,245 | 1 | 0 | null | 2022-06-17T06:40:03 | 2022-06-17T06:40:02 | null | GB18030 | C++ | false | false | 2,214 | cpp | KVariableString.cpp | #include "stdafx.h"
#include "KVariableString.h"
#include "KSystemEnvirVar.h"
BOOL KVariableString::SetVariable(LPCTSTR szName, LPCTSTR szString)
{
BOOL bReturn = TRUE;
CString strName(szName);
CString strString(szString);
std::map<CString, CString>::iterator iter;
strName.MakeLower();
strString.Ma... |
5035cb03ad37557871b68fa468354f82e2be8206 | 71cae6e39c666be24a1e5c55e110a15a0d65faed | /Ants/main1.cpp | fa7e127908de1bc391c77363efc37161ef9717ca | [] | no_license | crazyjerryh/Practice | 18bb7a885e7652ba867fbbe8cf844d56cf19eb29 | e8862083d37066dac1a395c652e2f36793ab48e3 | refs/heads/master | 2021-01-18T13:57:26.490761 | 2015-10-29T14:08:45 | 2015-10-29T14:08:45 | 33,871,665 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,855 | cpp | main1.cpp | #include<cstdio>
#include<cstring>
#include<algorithm>
#include<iostream>
#include<cmath>
#define N 110
using namespace std;
typedef long long ll;
const double inf=1e40;
const double eps=1e-6;
double s[N][N],slack[N];
double lx[N],ly[N];
int mat[N],n;
bool vx[N],vy[N];
bool dfs(int u){
vx[u]=1;
for(int i=1;i<=n... |
87d7f19107134f784bebe1876e2822fcbfcb05dc | 07074962be026c67519a0ccfb3d48bd95ede38ed | /Reports/cr5saleremoveddishes.cpp | 2c9955295a70ec88c8dfbd6f5177d4e834b8d871 | [] | no_license | End1-1/Cafe5 | 2fa65c62f395c186e2204f3fb941a2f93fd3a653 | ba2b695c627cf59260a3ac1134927198c004fe53 | refs/heads/master | 2023-08-17T02:39:29.224396 | 2023-08-14T06:37:55 | 2023-08-14T06:37:55 | 151,380,276 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,635 | cpp | cr5saleremoveddishes.cpp | #include "cr5saleremoveddishes.h"
#include "c5tablemodel.h"
#include "c5waiterorder.h"
#include "c5mainwindow.h"
#include "cr5saleremoveddishesfilter.h"
CR5SaleRemovedDishes::CR5SaleRemovedDishes(const QStringList &dbParams, QWidget *parent) :
C5ReportWidget(dbParams, parent)
{
fIcon = ":/delete.png";
fLab... |
3f695417651a60347685ec3a4a17ec6c293dfc16 | 9d01fb26dc549de3fa424ec31f0ca6caa5c7f9de | /Clases/Ventana_principal.h | 9759b222c82dc2e056a6e0e27646304fbe07f706 | [] | no_license | alrus2797/FLDSMDFR | 6a8158d0dd69fd98c111f8e5f958737b56a53f14 | 2e6a6a449c6f94b684cb27582f1a8bac3f3827fc | refs/heads/master | 2021-08-14T08:27:40.890771 | 2017-11-15T04:58:47 | 2017-11-15T04:58:47 | 104,372,516 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,271 | h | Ventana_principal.h | #ifndef VENTANAPRINCIPAL_H
#define VENTANAPRINCIPAL_H
#include "Ventana.h"
#include "Politica.h"
#include "PoliticaFIFO.h"
#include "PoliticaPRIO.h"
#include "PoliticaSPF.h"
#include "PoliticaRSPF.h"
#include "PoliticaRoundRobin.h"
#include "PoliticaRoundRobinPrio.h"
class VentanaPrincipal: public Ventana{
public:
... |
714ff83569005c6f2509f723c80b306a0b96f4d0 | 374d23f6a603046a5299596fc59171dc1c6b09b4 | /tensores/FltkImageViewer/fltkRGBImage2DViewerGUI.h | 46be05a26a7179d3910cba02b13b2bd31125a9f9 | [] | no_license | mounyeh/tensorespablo | aa9b403ceef82094872e50f7ddd0cdd89b6b7421 | f045a5c1e1decf7302de17f4448abbd284b3c2de | refs/heads/master | 2021-01-10T06:09:53.357175 | 2010-09-19T22:57:16 | 2010-09-19T22:57:16 | 51,831,049 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 892 | h | fltkRGBImage2DViewerGUI.h | // generated by Fast Light User Interface Designer (fluid) version 1.0107
#ifndef fltkRGBImage2DViewerGUI_h
#define fltkRGBImage2DViewerGUI_h
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <fltkRGBImage2DViewerWindow.h>
#include <FL/Fl_Value_Slider.H>
class fltkRGBImage2DViewerGUI {
public:
fltkRGBIma... |
e3e394dfb2dab1057e14aafb86104a37c005cb9d | c9e2d2523f0fe58d592f0c975a80de58be6fd5c3 | /src/storm/events/cInput.h | 5759c43bc1e6c7e56b47518be59d53a22d6c2daf | [
"MIT"
] | permissive | master312/quantum-kidney | 85e00d0f30402a36815fba09211dec9612afebc6 | 042e97e9a9998be4fc062eb703c51141ea7bd2e4 | refs/heads/master | 2021-01-23T11:33:53.932861 | 2015-08-27T00:27:41 | 2015-08-27T00:27:41 | 40,671,890 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,348 | h | cInput.h | //Created by Petar Ostojic
//Tue Feb 24 00:55:00 2015
#include "../defines.h"
#include "../graphics/cGraphics.h"
#include "eKeys.h"
#include <map>
#include <vector>
#ifndef CINPUT_H
#define CINPUT_H
//DONE: Window resize event
//DONE: Dont ignore arrows, functions, backspace, escape, shift tab, and ctrl, keys while tex... |
2c7635a6d019c3a82643d05a465ba75e6295eb7d | ed182c04b6b91a978d2fbc3c99ebd7bed525390e | /GUI/ui_mainwindow.h | d9f7f5c30ca7188060d6aefac7ef56b6627b8739 | [] | no_license | matheusmlopess-zz/Expenditure-Weights-Calculator | e281725ada4fd35b36296c3a51a471b6fe4df5ba | 6a1ea1ebd0b11d36a02adff1130557d930375007 | refs/heads/master | 2021-06-17T22:16:13.727611 | 2017-06-19T19:34:52 | 2017-06-19T19:34:52 | 69,246,292 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 36,864 | h | ui_mainwindow.h | /********************************************************************************
** Form generated from reading UI file 'mainwindow.ui'
**
** Created by: Qt User Interface Compiler version 5.7.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
**********************************... |
cc2e3efe0337881c7c178def932b90c9b5bfaaa7 | 783279f7d64424fd4535a819cc19be335a3ce196 | /atcoder/con/B.cpp | d335ab2d27c6b292b05716d67873ef4f0290d89b | [] | no_license | rish-singhal/CompetitiveProgramming | 2bfa88e086c084c9d68624f176ee3cbcb20b8577 | 5ed290ea7e28b81e38679f8c0e99c9c3f80da231 | refs/heads/master | 2023-07-02T18:59:11.817298 | 2021-08-10T04:15:52 | 2021-08-10T04:15:52 | 248,025,974 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 567 | cpp | B.cpp | #include <bits/stdc++.h>
using namespace std;
#define LL long long
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
string s; cin>>s;
LL n = s.size();
LL l = 0, r = ((n-1)/2) - 1;
int b = 1;
while(l<r){
if(s[l]!=s[r]){
b =0;
break;
}
l++, r--;
}
l = ((n+3)/2) -1... |
4ee0505f27f9fe3ab71468e629741bbe78e763ba | 3eb4d2f547185dd0a97153206c5516ce274186aa | /categories_dlg.h | d5172d4fe8aa9e6ddead250abc789d017eea997c | [] | no_license | joaodeus/yuc | 5b98ea4a39be86693e3634145803cfbf305abaab | 5dda3d9339f851d94f200772a9c66bb7cbfb7b27 | refs/heads/master | 2021-01-10T20:26:09.118015 | 2012-04-10T22:48:20 | 2012-04-10T22:48:20 | 32,681,481 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 594 | h | categories_dlg.h | #ifndef CATEGORIES_DLG_H
#define CATEGORIES_DLG_H
#include <QDialog>
#include <QModelIndex>
#include "categories_units/categories_units.h"
namespace Ui {
class categories_dlg;
}
class categories_dlg : public QDialog
{
Q_OBJECT
public:
explicit categories_dlg(QWidget *parent = 0);
~categories_dlg();
... |
94816e0787744cd4e11aeb9d7ee94976bd1335e9 | fa3ec96179a2929a1b2ab24839750a5f8e05b4dc | /CP/Codeforces/Oct2020/797_OddSum.cpp | 01bdaf0ce5941a8739704c972fec5ccd8179007c | [] | no_license | sankalp1999/Competitive-Programming | d0b92c3f87b428867ced747accbeca4aba625cfb | 246bb46e5b853c5099e480ea3b66afcce761babb | refs/heads/master | 2023-08-14T12:26:33.153259 | 2021-10-15T06:16:41 | 2021-10-15T06:16:41 | 201,873,733 | 13 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 1,227 | cpp | 797_OddSum.cpp | #include<bits/stdc++.h>
#define REP(i,n) for (int i = 0; i < n; i++)
#define mod 1000000007
#define pb push_back
#define ff first
#define ss second
#define ii pair<int,int>
#define vi vector<int>
#define vii vector<ii>
#define lli long long int
#define INF 1000000000
#define endl '\n'
#define gcd __gcd
const double PI ... |
c64e7549b2c4bb34c24050af64a39ad2537e227a | 395c2efeba8ec9db03eb5cfe162dc8352b95d7e3 | /lab6/lab6/OperationSubtract.cpp | 2a903647a54cf58045e04118fc08d7535837d469 | [] | no_license | jonazeiselt/da378a | 48ce6e68389f9f3481ad9b0f1fcef1468bee13b3 | 13189644b75a012e17b64338d608c0a4d140d944 | refs/heads/master | 2020-03-28T19:34:21.932455 | 2018-09-16T11:20:30 | 2018-09-16T11:20:30 | 148,988,137 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 160 | cpp | OperationSubtract.cpp | #include "stdafx.h"
#include "OperationSubtract.h"
int OperationSubtract::compute(int operandOne, int operandTwo) const
{
return (operandOne - operandTwo);
}
|
c28d287b6d1c8527bcc3b9fff173da6a0cd95910 | 9e18e0527e80c48159c015bab032a57dca4c4224 | /src/hud/TooltipManager.cpp | 85c4054ff9ba3ace0855f01ecf0487c8739447cc | [] | no_license | Smeky/Tower-Defense-Game | 4fa4675580ab12d1d9b81a7ed1167e77edd06046 | afcaaaf033412be7cb0b5c2d2ce5cc012e2f8e79 | refs/heads/master | 2020-03-27T10:41:38.599359 | 2018-08-28T11:44:29 | 2018-08-28T11:44:29 | 146,438,803 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,953 | cpp | TooltipManager.cpp | #include "hud/TooltipManager.h"
#include "hud/TooltipWarning.h"
#include "hud/TooltipDescription.h"
#include "iostream"
using namespace std;
void TooltipManager::createTooltipDescription( Engine* game, Tower_data data, int x, int y ) {
m_description = new TooltipDescription( game, data, x, y );
}
void... |
b9f428889d1d69618cd73e99f1670812e0fecbe0 | 80e7fc9aa5ea6f4031386f4e1ae9eb5b9aae4346 | /include/particle_system/effect_compiler.hpp | c932518218fa9e4687e0faba4f3cd977b047138a | [] | no_license | UCAS-IIGROUP/graphics-engine | f556d9e176e40019243f13f1ef323ee8add812b9 | f0049f05c9911d5878894c33b40b6382f82ee471 | refs/heads/master | 2023-02-07T20:21:34.237981 | 2020-12-30T21:46:08 | 2020-12-30T21:46:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 538 | hpp | effect_compiler.hpp | #pragma once
#include <material_system/material_compiler.hpp>
namespace GraphicsEngine {
class Emitter;
class SpriteEmitter;
class MeshEmitter;
class EffectInstance;
class EffectCompiler : public MaterialCompiler {
private:
std::string getEmitterDefines(const Emitter& emitter) noexcep... |
4eaffcebd959c122f3bc2de4a4ab61b703291b7a | 10e407aae7222d381fdaee71d7edd9750c6d022e | /ransac_circle 2.cpp | b6c679d99b0a4c9fcb4d1d75c2ab75c5771e2778 | [] | no_license | kumar00786/Ransac_circle | 0b23e2cf916abd3338cbec573bb566cde44d9498 | 56451e4479a3c786f81e8553bce48b4f765efcca | refs/heads/master | 2020-03-23T02:45:35.841517 | 2018-07-15T01:28:25 | 2018-07-15T01:28:25 | 140,990,676 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 956 | cpp | ransac_circle 2.cpp |
/// Ransac for drawing the Circle
Circle::Circle(){
this-> radius = 0;
this-> center = mypoint2f();
this-> isSingular = true;
}
Circle::Circle(double radius, mypoint2f center){
this-> radius = radius;
this->center = center;
this-> isSingular = false;
}
Circle::Circle(mypoint2f a, mypoint2f b... |
b0a8493d4ad3355c3f8b81d279ba843a3a26999a | da3e8cddd0ec0e42cbd280a42d231553d96ced80 | /z-series/foundations/cpp/written/written_35.cpp | 02b74d077f5fd5eab30b68320f7d1854fcf6a58b | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | kwonus/Digital-AV | 1f0a61f3abbcaf446bcb6a2b5fd176dcfea5760a | 5bdbba76e82ff65ae5ceeef86dc11e160f16d67a | refs/heads/master | 2023-05-11T19:13:46.911206 | 2023-05-09T04:25:59 | 2023-05-09T04:25:59 | 144,848,042 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 123,980 | cpp | written_35.cpp | #include "written.h"
AVXWritten::AVXWrit const AVXWritten::written_35[] = {
{ 4853, 0, 0, 0, 22732, 0x8136, 0x00, 0xE0, 0x0D00, 0x00000094, 0x0136 },
{ 4853, 0, 0, 0, 22732, 0x0D83, 0x00, 0x00, 0x4010, 0x000001DC, 0x0D83 },
{ 2265, 0, 0, 0, 22732, 0x0C14, 0x00, 0x00, 0xC020, 0x40090E51, 0... |
75157015dfb366f6b213090ecaf9797b994b51da | 6a310dfa54ed2bb17adeada34f5952d4c2216dab | /MathsLib/Matrix4.cpp | b1d727827836ed147e8c058194a739a950e6a92d | [] | no_license | Mondotrasho/MathsLib | 3a144ff09d985e5bc51c5f71f934084af81b00c8 | 26837881312d2b62c044a3f72bc0f251f0c7f89c | refs/heads/master | 2020-03-20T21:02:44.214132 | 2019-03-07T02:36:14 | 2019-03-07T02:36:14 | 137,720,721 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,722 | cpp | Matrix4.cpp | #include "Matrix4.h"
#include <math.h>
Matrix4::Matrix4(): data{ { 0,0,0,0 },{ 0,0,0,0 },{ 0,0,0,0 },{ 0,0,0,0 } }
{
}
Matrix4::~Matrix4()
= default;
Matrix4::Matrix4(const Matrix4& Matrix) : x_axis(Matrix.x_axis), y_axis(Matrix.y_axis), z_axis(Matrix.z_axis), translation(Matrix.translation)
{
}
Matrix4::Matrix4(c... |
641700ca1c855ec881efe32b8d87cc4bf6c2be33 | 6068b59b73cb2897d508c3c966291658c7da864e | /meta-arm/meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack-clang.inc | c5b746341fe9c54b3677e7ad1708fb797a6062aa | [
"MIT"
] | permissive | HCLOpenBMC/openbmc | 4f0699074168d75773ee23d879e4508ab0bc19c8 | 6b38051dd74ae395e774daa8593afa79e6f07023 | refs/heads/master | 2023-04-07T11:28:58.829854 | 2023-03-22T09:02:03 | 2023-03-29T06:50:48 | 246,829,632 | 1 | 1 | NOASSERTION | 2020-06-22T07:18:46 | 2020-03-12T12:33:52 | Python | UTF-8 | C++ | false | false | 300 | inc | linux-arm64-ack-clang.inc | # Clang-specific configuration of kernel build
# We need to add this dependency as the kernel configuration depends on the compiler
do_kernel_configme[depends] += "androidclang-native:do_populate_sysroot"
DEPENDS:append = " androidclang-native"
KERNEL_CC = "${CCACHE}clang ${HOST_CC_KERNEL_ARCH}"
|
6a7a3300bc650814a813e870cdba5f293da48ccb | 279067393024ac3bbced2c1fd51a6cbf556bb237 | /Projects/RGB-LED-Wireling-Driver/software/Wireling-Driver-for-RGB-LED/Wireling-Driver-for-RGB-LED.ino | 3d00f912e3195470b124d131322d7fd1390bd830 | [] | no_license | TinyCircuits/Wiki-Tutorials-Supporting-Files | 282fe9d139ec2c291091f6dfd02dbd0f12a51f53 | a59605dddcc655574f5eb4fd811898ebfe0bf39f | refs/heads/master | 2022-10-18T06:26:31.614773 | 2022-09-19T19:14:48 | 2022-09-19T19:14:48 | 190,281,098 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,205 | ino | Wireling-Driver-for-RGB-LED.ino | /*
TinyCircuits Wireling Driver for RGB LED
This program uses three separate Wireling inputs to drive a strip of RGB LEDs.
Port 0: RGB LED Strip
Port 1: Capacitive Touch - drives the brightness of the LEDs
Port 2: Rotary - drives the color of the LEDs
Port 3: Joystick - drives the pos... |
d782114c477f49e0898f5a98e66862f65439fb84 | 3fa272b5821148c9ebfff02be860368143bf6f28 | /observer.hpp | 9b589f0df483b97365004cf45e27263a64d7f699 | [] | no_license | medarezki/cppdesignpatterns | 76ebbb7356902ef552d6df4d3dbd1fcd9b86cdf9 | b7a3335d6ba2c2b36214db6236b604e9a3f6187b | refs/heads/master | 2023-04-05T16:19:07.520676 | 2021-04-25T01:46:34 | 2021-04-25T01:46:34 | 270,881,772 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,649 | hpp | observer.hpp | #include <iostream>
#include <vector>
//Observer Design Pattern (Basic)
template<class T >
class ObserverPattern{
public:
ObserverPattern();
ObserverPattern(T& observed_);
virtual ~ObserverPattern<T>();
void observe(T& );
void update(T& );
private:
T observed;
};
template<... |
4fc8a36689d7f1ae64fa2b743ca6ea66324ddcd6 | cf8e31d2a06f164caf7412e33552e309fefd51fb | /MyStopWatch/mainwindow.cpp | b16edf684701412ae21b3d6e05127b736fbea8b9 | [] | no_license | pustowoitow/my_StopWatch | aaeb228bc5ba5380309d5ca9f8e3ae2cb3a13737 | 28af8d2e92cee17438ced73cf349bb488b780b93 | refs/heads/master | 2020-04-29T11:26:28.613911 | 2019-03-17T19:08:11 | 2019-03-17T19:08:11 | 176,098,241 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,222 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent), ui(new Ui::MainWindow),
mRunning(false), mStartTime(), zero('0'), ms_all(0), ms_saved(0)
{
ui->setupUi(this);
connect(ui->StartStopButton, SIGNAL(clicked()), SLOT(start_stop()));
conne... |
d5ad34c84244428ede2f69820141bf16cca76a42 | 19af2ab7a4796a0e39363abb9e0ef99a7b481b1d | /coursework2015/Robots/robotbase.01/robotbase.cpp | 8e7a1085786b9487b2a9c56819e2fad2d85d7d15 | [] | no_license | mustafinas1205/AS.1204.SysProg.2 | 26e51149af46fc9a77dd095780d9e0ffd0c7d217 | e3ac3eec2b99a895e0716e0ab1a5b61256bebe6b | refs/heads/master | 2021-01-21T07:30:15.040233 | 2015-06-18T13:28:08 | 2015-06-18T13:28:08 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 23,359 | cpp | robotbase.cpp | // robotbase.cpp: определяет экспортированные функции для приложения DLL.
//
#include "stdafx.h"
#include "robotbase.h"
using namespace std;
int xx1,yy1,xxarh1,yyarh1,xx11,yy11,xxarh11,yyarh11;
int type;//1=Ne; -1=Nl
int fl=-1,fl2=-1,fl3=-1,fl4=-1,fl5=-1;//если не дошли до нужных станций первый раз
int f=0,f2=0,f3=0,... |
ee8d6a94dcfe3bb7d9b385a6d074b1eb2964e912 | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/62/f2ddca6bdaee24/main.cpp | c2b3e3b38e81ceb26aef698b827063e4b25952d7 | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 367 | cpp | main.cpp | #include <iostream>
struct A
{
int a;
int b;
A() : a(10) { std::cout << "default ctor" << std::endl;}
~A(){ }
A(const A&){ std::cout << "copy ctor" << std::endl; }
A(const A&&){ std::cout << "move ctor" << std::endl; }
};
A init()
{
A a;
a.b = 20;
return a;
}
int main()
{
A a ... |
170424128c433ad2c693913d0e631cc21361d9b8 | ece500c4d68f4fec02bfeeb106a86c8cc686673c | /src/eclipse/render/interactive_renderer.h | f990eefe246f0319d3987b68da541cef156ff656 | [] | no_license | jo-va/eclipse | 8037f53f09b1131ace0ea472ceb57a4ea7b54d37 | 95af16c1a4094b921f70c89b2e8d66150b953794 | refs/heads/master | 2021-01-21T11:36:17.296482 | 2017-09-08T15:25:24 | 2017-09-08T15:25:24 | 102,016,157 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,211 | h | interactive_renderer.h | #pragma once
#include "eclipse/render/renderer.h"
#include "eclipse/render/window.h"
#include "eclipse/scene/scene.h"
#include "eclipse/math/vec3.h"
#include <cstdint>
#include <vector>
#include <memory>
namespace eclipse { namespace render {
struct StackedSeries
{
void init(size_t num_series, size_t max_len);
... |
eac88b35e439db512ac6cfecaea84aafb0e223b0 | c369b6c7f1c461c0af778f4a5e0ec307cfb6a3be | /KLibrary/KinectManager.h | d1b1f095edab8b857373e0954d7e990aa3c7c717 | [] | no_license | PhoenixDigitalFX/FaceCap | 3f328bb63e3449fa6172adfde38cb8f3e8c0556d | ec44e1ab506110703293467c5554efdc241204e2 | refs/heads/main | 2023-07-19T17:16:58.130825 | 2021-07-16T03:16:58 | 2021-07-16T03:16:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,468 | h | KinectManager.h |
#ifndef __HW_KINECT_MANAGER_H
#define __HW_KINECT_MANAGER_H
#include "SensorManager.h"
#include "../src/stdafx.h"
class SensorManager::Impl
{
public:
Impl();
~Impl();
bool init();
void update();
bool getDepth(unsigned short *dest);
bool getColor(unsigned char *dest);
unsigned char* getColorFrame();
unsign... |
8dd803f7fa1ae26abda5bdebd295dcb1fc26486a | 0eadc9647b56ac23bddc50a2f1d69349f5a243e6 | /08-threads-I/exemplo1-threads.cpp | a042bd2c05eab4c1312ab5597c3c731e5a68691a | [] | no_license | fredericocurti/supercomp | 3ef5a2edac0e8a04b3a8576da6d27c1ad50f83d8 | 9f96463d3f4127693ec5cc7e4963684387631b03 | refs/heads/master | 2020-07-03T06:22:34.225857 | 2019-12-04T02:59:38 | 2019-12-04T02:59:38 | 201,818,004 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 936 | cpp | exemplo1-threads.cpp | #include <thread>
#include <iostream>
void funcao_rodando_em_paralelo(int a, int *b, int tid) {
std::cout << "Thread: " << tid << "a=" << a << std::endl;
*b = 5;
}
int main() {
int b = 10;
int tid = 0;
unsigned concurentThreadsSupported = std::thread::hardware_concurrency();
std::thread *thre... |
2f3a2e462affc4a89549693efd9870753be447cd | bf5732d30e477f932b91c48ad4d779ba46d4a915 | /sys.cpp | ea1859b1464a9b80cafe420c61c25f747d8e49c6 | [] | no_license | sharadkejriwal/FTP-Server-and-Client | 2654ac22fe0d12b776daa73b977065aa556b0682 | e039944cf07eea25f073434cb07373e4a269f086 | refs/heads/master | 2021-01-20T16:59:07.678404 | 2017-02-22T20:34:36 | 2017-02-22T20:34:36 | 82,849,362 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 449 | cpp | sys.cpp | #include "sys.h"
int sys::changedir(char *dir)
{
int r = chdir(dir);
return r;
}
//cmd can be "ls" or "pwd"
char *sys::cmdinfo(char *cmd)
{
//if(cmd == "ls")
// strcat(cmd,"- l");
FILE *fp = popen(cmd, "r");
char *buffer = (char *)malloc(buffer_len * sizeof(char));
fread(buffer, 1, ftell(fp), fp);
retur... |
bfd7fe2721aa447f6aca2d27ad1e28b984c7d53e | 6c9cf05c8fd15cb33d1b6d99496ae54fabdba4b0 | /src/backend/backendconnection.hpp | c480d9224672cc28ed33cca84220e411535ce6d8 | [
"MIT"
] | permissive | dmitritt/qlb | 3a7efcb44158305963983cb4c2345259ada60cf4 | 936f2a7c7546b7d74cdf6a552012deed87e4ab79 | refs/heads/master | 2021-01-22T00:06:08.689241 | 2016-01-26T02:09:07 | 2016-01-26T02:09:07 | 46,975,767 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,694 | hpp | backendconnection.hpp | /*
* Copyright (c) 2016 Dmitri
*
* 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, di... |
959d712cc81d829bd9a9464e65f92b51836b222f | 96fb1353679afdd341415db403e7eed6dfd50be7 | /roadrunner/ludum/Player.cpp | 841543c3d267fb1de91f2d1db78771b2a276389b | [] | no_license | maxime1907/minigames | c4e740eac7ea42b00c6c675d265d0166de4032c4 | 40ba4d20b63e73fd72fefbd1ef40bcfaeb623c78 | refs/heads/master | 2022-06-27T17:40:17.361041 | 2020-05-05T15:21:28 | 2020-05-05T15:21:28 | 261,506,944 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,493 | cpp | Player.cpp | #include "stdafx.h"
#include "Player.h"
#include "Common.h"
Player::Player(const std::string & pseudo, std::string & t_name, int id)
: Sprite(t_name)
{
this->t_score = new Text(R_FONT("Roboto.ttf"));
this->pseudo = pseudo;
this->id = id;
this->setSpeed(sf::Vector2f(D_SPEED_X, D_SPEED_Y));
this->setS... |
4e12d838d3ca0f39e5ce4732ea6c843899d77000 | 41b977ea112430d4e249635be5645de7111a1d6b | /CarRentalManagement/ui/dialog/contract/contracttabledialog.cpp | 4b04edbab1babc0f43b6c684cdbc469d8319fa79 | [] | no_license | longcp/CarRentalManagement | 168956e0767b451c82dec7ac7d5792d418431a24 | 1b2c8b0d94cc23f9c7b8d790dd911913326d9935 | refs/heads/master | 2021-01-11T17:39:26.219784 | 2017-09-03T16:56:33 | 2017-09-03T16:56:33 | 79,816,071 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,000 | cpp | contracttabledialog.cpp | #include "contracttabledialog.h"
#include "ui_contracttabledialog.h"
#include <database/database.h>
#include <rentaldocument.h>
#include <tablemodel.h>
#include <contract.h>
#define LOG_TAG "CONTRACT_TABLE_DIALOG"
#include "utils/Log.h"
ContractTableDialog::ContractTableDialog(QWidget *parent) :
... |
bd20e6df9160713e242a7bd1b1301db3f957efeb | f4e0f5e651bb44f3e095bd4ca22fe79a8a5b92e5 | /src/lib/solution.cc | 77829d2cd9b0f9b79876d2658876c261a27c7129 | [] | no_license | RudrenduMahindar/EE599-HW2-Q5_2 | 360b8a584b74d204f4cb22f567a5332427837532 | 88620e0e2eba7f52824667167c07bf97285f3fe8 | refs/heads/master | 2020-12-28T11:20:51.341675 | 2020-02-04T21:32:19 | 2020-02-04T21:32:19 | 238,311,191 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 202 | cc | solution.cc | #include "solution.h"
#include <vector>
#include <string>
#include <algorithm>
#include <iostream>
using namespace std;
void Solution::StringReverse(string& s) {
reverse(s.begin(),s.end());
}
|
bd643dce3d943ccd7813f5de1ada590a1cd25117 | 349fe789ab1e4e46aae6812cf60ada9423c0b632 | /FIB_DataModule/SprProject/UDMSprProject.cpp | cfb8b9b6811b1c9d1463f19fe6623c7610f7f8b2 | [] | no_license | presscad/ERP | a6acdaeb97b3a53f776677c3a585ca860d4de980 | 18ecc6c8664ed7fc3f01397d587cce91fc3ac78b | refs/heads/master | 2020-08-22T05:24:15.449666 | 2019-07-12T12:59:13 | 2019-07-12T12:59:13 | 216,326,440 | 1 | 0 | null | 2019-10-20T07:52:26 | 2019-10-20T07:52:26 | null | WINDOWS-1251 | C++ | false | false | 9,492 | cpp | UDMSprProject.cpp | //---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "UDMSprProject.h"
#include "UGlobalConstant.h"
#include "UGlobalFunction.h"
#include "IDMSetup.h"
#include "IDMQueryRead.h"
#include "IConnectionInterface.h"
#include "IMainInterface.h"
#include "IMa... |
644c1dae0deb2438b127da2a0e19bce4a89d83ef | 4a8f783118bd1bba8023f5dbd499b08e1822ce93 | /tests/Unit/Evolution/DiscontinuousGalerkin/Limiters/Test_LimiterActionsWithMinmod.cpp | 3e6b665f0a307f863426e7b300e11dc3d05fc8cd | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | denyzamelchor/spectre | 8db0757005dea9bb53cd7bd68ee8d11551705da4 | 1c1b72fbf464827788dbbdb8782a8251a2921c48 | refs/heads/develop | 2020-04-26T05:57:25.244454 | 2019-06-22T04:11:17 | 2019-06-22T04:11:17 | 155,779,028 | 0 | 0 | NOASSERTION | 2018-11-01T21:38:07 | 2018-11-01T21:38:06 | null | UTF-8 | C++ | false | false | 5,605 | cpp | Test_LimiterActionsWithMinmod.cpp | // Distributed under the MIT License.
// See LICENSE.txt for details.
#include "tests/Unit/TestingFramework.hpp"
#include <boost/functional/hash.hpp> // IWYU pragma: keep
#include <cstddef>
#include <memory>
#include <pup.h>
#include <string>
#include <utility>
#include "DataStructures/DataBox/DataBox.hpp"
#include... |
8fe23290adb220d3c596bdc4d33a2653ffd175b9 | 0fdaa8fc6d9d8bd9085f7f45d51c3974a125d135 | /tugas 1/oprasi_hitung.cpp | 1eb09709eb0d7a6996e6f602945848f2f5fd4989 | [] | no_license | univmajalengka/20.14.1.0055-Andi_gunawan | c291d256697de80a72c2269deabd4a92b69a1d20 | 5e6da65e8d8768b37275d430a818f55468e3bcc0 | refs/heads/main | 2023-04-15T18:19:13.273997 | 2021-04-22T15:21:29 | 2021-04-22T15:21:29 | 350,022,594 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 627 | cpp | oprasi_hitung.cpp | #include<iostream>
using namespace std;
void batas(){
cout<<"----------------------------"<<endl;
}
int main(){
int i,j;
cout<<"Masukkan nilai i : ";
cin>>i;
cout<<"Masukkan nilai j : ";
cin>>j;
batas();
cout<<"| operasi | hasil operasi |"<<endl;
batas();
cout<<"| "<<i<<" + "<<j<<" | ... |
acc18d60d09e966337b6ef852d04185d7031de10 | a596d4c41d911af298debb7366d5bfa75e5ad9e1 | /tkrzw_lib_common.cc | d50e044339d623e2bae24c94842b9562454fbd46 | [
"Apache-2.0"
] | permissive | strogo/tkrzw | 863d520d7ef123e22b8d628f58ef503b0ace5bc7 | b2eca2c739628498155c5c7f9d18ff0658730f39 | refs/heads/master | 2023-05-01T14:08:44.939861 | 2021-05-17T04:41:19 | 2021-05-17T04:41:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,499 | cc | tkrzw_lib_common.cc | /*************************************************************************************************
* Common library features
*
* Copyright 2020 Google LLC
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of t... |
f3a5e0428698ef15f63f1aae82873b822342b497 | ae33344a3ef74613c440bc5df0c585102d403b3b | /SDK/SOT_BP_BountyRewardSkullItemInfo_Legendary+_parameters.hpp | b1b97cd1d16ec80dd7c7d65ab4ae9a2f18bb3132 | [] | no_license | ThePotato97/SoT-SDK | bd2d253e811359a429bd8cf0f5dfff73b25cecd9 | d1ff6182a2d09ca20e9e02476e5cb618e57726d3 | refs/heads/master | 2020-03-08T00:48:37.178980 | 2018-03-30T12:23:36 | 2018-03-30T12:23:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,186 | hpp | SOT_BP_BountyRewardSkullItemInfo_Legendary+_parameters.hpp | #pragma once
// SOT: Sea of Thieves (1.0) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x4)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------------------------------------
// Function BP... |
1840aa52abb58d42205012c8fa927df6bbfe00a8 | 15e9ba286ef373b7c1e9982e8f7217155b997c2d | /FileUtil.h | f3c58bbcdb5c6f48674558fc374b16d3d19ed01c | [] | no_license | tzl0031/i2cdevlib | a2af74506315dbe08f1bcfae309276333f418c52 | ef80e7b7626e637648526367a1482f41a63a77c6 | refs/heads/master | 2021-01-12T00:10:19.300419 | 2017-06-21T16:07:14 | 2017-06-21T16:07:14 | 78,680,148 | 0 | 0 | null | 2017-06-21T16:28:55 | 2017-01-11T21:10:57 | C++ | UTF-8 | C++ | false | false | 483 | h | FileUtil.h | // FileUtil//
// FileUtil.h
// adxl345_cpp
//
// Created by TianLiu on 1/11/2017.
// Copyright © 2016 TianLiu. All rights reserved.
//
#include <fstream>
#include <iostream>
#include <json/json.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
using namespace std;
#ifndef FILEUTIL_H
#define FILEUTIL_H
... |
4a71b53349d9319470611f391d58beea71acec89 | f3001cd56567b121736343b480a1abf9cba1cd52 | /K-Scope/Host/graph.cpp | 0ed7bc151e5b1d30d49685ca80ed951fe06a49bc | [] | no_license | cjsatuforc/AvrProjects | 257f0594740b215ff2db2abaa79ec718cd14d647 | a9f70a87a28e426ee4a558ca5ddc198f97a1ebdb | refs/heads/master | 2020-04-13T19:00:06.609001 | 2011-03-18T16:01:42 | 2011-03-18T16:01:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,413 | cpp | graph.cpp | #include "graph.h"
#include <QtGui/QPainter>
#include <QtGui/QPen>
#include <QtGui/QKeyEvent>
#include <QtGui/QPainterPath>
#include <QtGui/QPrinter>
#include <QtGui/QPrintDialog>
#include "mytransform.h"
#include "exception.h"
//----------------------------------------------------------------------------
... |
0c41b0f23a4d0c9ae55a231fe76a845d8feeea98 | 9503d7b9359625235c4311e397fe012ae136d4b1 | /source/Loader/Memory/MemoryMap.cpp | df3d35d0686eb392a97d786e045de1e47499359e | [] | no_license | zhiayang/mx | 43a45e5eef17f7bd5c08f7037b97c386a53406d7 | 4c181951913eb18c59d5542df43148259f0cba92 | refs/heads/develop | 2020-12-24T19:17:32.447631 | 2019-02-05T16:39:17 | 2019-02-05T16:39:17 | 23,584,386 | 18 | 8 | null | 2019-02-05T16:40:03 | 2014-09-02T15:34:31 | C++ | UTF-8 | C++ | false | false | 1,514 | cpp | MemoryMap.cpp | // MemoryMap.cpp
// Copyright (c) 2014 - 2016, zhiayang@gmail.com
// Licensed under the Apache License Version 2.0.
#include "../FxLoader.hpp"
namespace Memory
{
void Initialise(Multiboot::Info_type* MBTStruct, MemoryMap_type* memmap)
{
uint64_t TotalMapAddressess = (uint64_t) MBTStruct->mmap_addr;
uint64_t Tot... |
733c454121db5b44c933064b35b3d1d54971273d | e08f3f5904f70ed2d2b36d5d10bd517e4dec9ea2 | /benchmark/runner.cpp | 29b2d704407c29a5e598dc9618765ad94e9bfbfb | [
"BSL-1.0",
"Apache-2.0"
] | permissive | sdmg15/outcome | 9bc4f11f6d7ee6a561584a5547c8aa323783eb8e | 1157d7b2e43cdccd66402ca64fd0317383c81391 | refs/heads/develop | 2022-12-20T01:21:02.716082 | 2020-09-16T11:40:43 | 2020-09-16T11:40:43 | 298,104,544 | 1 | 0 | Apache-2.0 | 2020-09-23T22:04:10 | 2020-09-23T22:02:32 | null | UTF-8 | C++ | false | false | 1,641 | cpp | runner.cpp | /* Benchmark test runner
(C) 2017-2020 Niall Douglas <http://www.nedproductions.biz/> (7 commits)
File Created: Mar 2017
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License in the accompanying file
Licenc... |
95d649484455aeaffc558bc8788d8e722ff34719 | 86aef33f7aae96c0d0a2d5afb7ff0f70a1ce1e83 | /src/Sound/SDLSystem.hpp | e7fc73c489eac92158e94b2d02235a790789f1cc | [] | no_license | ughman/pistachio-doom | 6fb9c3696b7f6887f6a7e8bd05b337e0de728a7c | 8b676f1edc9e86ea4d1df3cae16044517bae7422 | refs/heads/master | 2020-08-27T04:38:06.975508 | 2012-11-02T22:57:02 | 2012-11-02T22:57:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 744 | hpp | SDLSystem.hpp | #ifndef Sound_SDLSystem_hpp
#define Sound_SDLSystem_hpp
#include <SDL.h>
#include "../List.hpp"
#include "System.hpp"
namespace Sound
{
class SDLSystem : public System
{
private:
SDLSystem(const SDLSystem &);
SDLSystem &operator=(const SDLSystem &);
PtrList <Stream> Sounds;
PtrList <Stre... |
43d7e43c99996bc7d9497d7d7e932d6cc9140046 | 81d6038455f5a48ebb68dca111d410dc93805886 | /iterator.cc | e2ec26fb133800122dcacc8d2a24e54e645be048 | [] | no_license | jeetendrabhattad/design_patterns | ac7be12b100d171bff2f775a7a3dc21b7110546c | c0ee3da8ea40b2ec73648cb2c4bc1c52874516e1 | refs/heads/master | 2020-05-23T22:51:28.491276 | 2019-05-16T07:30:32 | 2019-05-16T07:30:32 | 186,982,714 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,386 | cc | iterator.cc | #include <iostream>
using namespace std;
template<typename T>
class IIterator
{
public:
virtual void First() = 0;
virtual void Last() = 0;
virtual bool Next() = 0;
virtual T Current() = 0;
};
class Container
{
int arr[5];
int size = 5;
public:
Container() : arr{1,2,3,4,5}
{
}
... |
78aa6f590c9d1760366cb9f50db7f2a5dd5b1413 | eda03521b87da8bdbef6339b5b252472a5be8d23 | /Userland/DevTools/HackStudio/Debugger/RegistersModel.h | 0d4505b2ea8b88c96803d389677a7270f1cd6bf3 | [
"BSD-2-Clause"
] | permissive | SerenityOS/serenity | 6ba3ffb242ed76c9f335bd2c3b9a928329cd7d98 | ef9b6c25fafcf4ef0b44a562ee07f6412aeb8561 | refs/heads/master | 2023-09-01T13:04:30.262106 | 2023-09-01T08:06:28 | 2023-09-01T10:45:38 | 160,083,795 | 27,256 | 3,929 | BSD-2-Clause | 2023-09-14T21:00:04 | 2018-12-02T19:28:41 | C++ | UTF-8 | C++ | false | false | 1,570 | h | RegistersModel.h | /*
* Copyright (c) 2020, Luke Wilde <lukew@serenityos.org>
* Copyright (c) 2022, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Vector.h>
#include <LibGUI/Model.h>
#include <sys/arch/regs.h>
namespace HackStudio {
struct RegisterData {
DeprecatedString nam... |
7cba8a7f63dc2c98204dac73531ee2a06d9e1b1e | 2fcd8317ace48c6085ff9082325c796730b54796 | /src/overlaybd/fs/path.cpp | 085b9a10a674fec4a3dad61e0a62eb67bc4f6636 | [
"Apache-2.0"
] | permissive | zhuguoliang/overlaybd | 57692be2b2c4f30dcfc6d13f5c4f2554f4d67ce7 | f057b44a5e4cf684e454a1f420b8db0753277b81 | refs/heads/main | 2023-05-25T07:49:26.028290 | 2021-05-06T08:26:43 | 2021-05-06T08:26:43 | 363,534,802 | 0 | 1 | Apache-2.0 | 2021-05-02T00:25:43 | 2021-05-02T00:25:42 | null | UTF-8 | C++ | false | false | 9,646 | cpp | path.cpp | /*
Copyright The Overlaybd Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... |
df6e4cbb8740934b2cfaa59737148461ab82c6c1 | 765bfddd9ad06a56db801cc825b8e35eea5ecfce | /src/modelwidget.cpp | 9022117829c4260a882007a3aa51ec72540644ae | [
"MIT"
] | permissive | Instalox/dust3d | d3e09fad2acfdbf78f0875d24f61b12c702cdcc0 | 30ae8b1acd7bd887d62188f7704fe194bd567f63 | refs/heads/master | 2020-03-11T23:15:15.007484 | 2018-04-19T23:05:58 | 2018-04-19T23:05:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,272 | cpp | modelwidget.cpp | #include <QMouseEvent>
#include <QOpenGLShaderProgram>
#include <QCoreApplication>
#include <QGuiApplication>
#include <math.h>
#include "modelwidget.h"
#include "ds3file.h"
#include "skeletongraphicswidget.h"
#include "modelwidget.h"
// Modifed from http://doc.qt.io/qt-5/qtopengl-hellogl2-glwidget-cpp.html
bool Mode... |
c0d7adab5a282fcb8735ff818a832b601661900e | 646c5c30055f94274658c55904987b32625e914d | /phys/Sprite/SpriteDemo/Physics.cpp | 397906e59d97ac1899b17ce28bf78304042075c9 | [] | no_license | pgtruong/Puzzle-Engine | a2c0ed7e859e48cabba2f28f0f496c772b4ea53e | 7c3484cb8a5e729308ca68b659894e32b36821e3 | refs/heads/master | 2021-01-10T05:36:17.782986 | 2015-03-13T00:21:05 | 2015-03-13T00:21:05 | 44,230,007 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,311 | cpp | Physics.cpp | #include <Physics.h>
Physics::Physics()
{
}
Physics::~Physics()
{
}
Physics::Edges Physics::boundarycheck(Sprite* s, int topleftx, int toplefty, int width, int height) //returns an int if a moving sprite (typically player) from moves outside a rectangular space restriction
{//use enums
//if two walls/ "corner"
if ... |
d0c7fd081f18763dfa0e61fcebfa97b40a28b711 | fcb748331b9400f45be59105cf1cff7a291536ef | /lab4/JG.Sierpinski/JG.Sierpinski/SierpinskiPPM.h | 1acf1259cf15bd8955365f8b88d7a9a116a6a184 | [] | no_license | Jacob273/JG.TechLearning.OpenMP | 13b4b90256ccecf8c0f81db2a60323c34c3faaf8 | 6371abff483c68e14214b3c6acc25c1bdd559121 | refs/heads/master | 2023-02-13T03:19:38.701172 | 2021-01-17T22:34:45 | 2021-01-17T22:34:45 | 316,916,971 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,050 | h | SierpinskiPPM.h | #include <math.h>
#include <stdio.h>
#include <thread>
#include <iostream>
#include <chrono>
#pragma warning(disable:4996)
namespace SierpinskiPPM
{
class Sierpinski
{
private:
//unsigned char rgbImage[800][800][3];
unsigned char*** rgbImage;
const int maxLevel = 9;
int _iYmax;
in... |
58b2917b4410815b6d64fa612c738d24c80f8918 | e3f27e4c99605900529e2ab2df55f63223468ad7 | /src/qt/CellItem.cpp | 610feefee9cc3080538cbb31de0f3d82f6024b55 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | tudoroancea/game_of_life | ffb818c79d3465c79461b462ba6d1cfa4098b6ba | 69485760edc54f05ed433418df3997a4bd933b37 | refs/heads/develop | 2023-07-07T09:38:04.549702 | 2021-04-16T14:18:59 | 2021-04-16T14:18:59 | 303,137,746 | 5 | 0 | MIT | 2021-08-13T16:56:09 | 2020-10-11T14:22:22 | C++ | UTF-8 | C++ | false | false | 1,721 | cpp | CellItem.cpp | //
// Created by Tudor Oancea on 26/02/2021.
//
#include <QGraphicsRectItem>
#include <QGraphicsSceneMouseEvent>
#include <QtCore>
#include <QPainter>
#include <QBrush>
#include <iostream>
#include "CellItem.hpp"
CellItem::CellItem(qreal const& x, qreal const& y, qreal const& size) : QGraphicsRectItem(x, y, size, ... |
42fe1e1585bc7c9f552848a183cdd170ba0178c4 | 2cf838b54b556987cfc49f42935f8aa7563ea1f4 | /aws-cpp-sdk-datapipeline/include/aws/datapipeline/model/ReportTaskProgressResult.h | 5e27d64357b6992681bce90bf0df1626d40c1b20 | [
"MIT",
"Apache-2.0",
"JSON"
] | permissive | QPC-database/aws-sdk-cpp | d11e9f0ff6958c64e793c87a49f1e034813dac32 | 9f83105f7e07fe04380232981ab073c247d6fc85 | refs/heads/main | 2023-06-14T17:41:04.817304 | 2021-07-09T20:28:20 | 2021-07-09T20:28:20 | 384,714,703 | 1 | 0 | Apache-2.0 | 2021-07-10T14:16:41 | 2021-07-10T14:16:41 | null | UTF-8 | C++ | false | false | 1,836 | h | ReportTaskProgressResult.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datapipeline/DataPipeline_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} /... |
e3bc0419c954344add251ab0e7ddab7cad465929 | 28df9481d16cd7f31554329dc6a82013e61880ee | /Pac-Man/Player.h | 1e62dae798029273c1ad7c6df9df9a87d5a654fe | [] | no_license | Jonathan-Louis/Games2D | fbda09f9e0e64c9ee7f609a746dbd2a638cf5940 | 42146395be56226b489bbc52a84867e75eb986a8 | refs/heads/master | 2020-08-08T04:20:02.005979 | 2019-11-03T14:03:22 | 2019-11-03T14:03:22 | 213,710,905 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 982 | h | Player.h | #pragma once
#include <Bengine/InputManager.h>
#include <Bengine/ResourceManager.h>
#include <Bengine/Camera2D.h>
#include <SDL/SDL.h>
#include "Agents.h"
class Player : public Agents
{
public:
Player();
~Player();
//initialize the player
void init(float speed, Bengine::InputManager* inputManager, Bengine::Came... |
18a9036c2b7e0cc2fdf09a7951551b11e9374c97 | 489bfd258b9a57a9314cf34f739105f1b4915d5c | /集训/9-7-30/数字三角形.cpp | 80da50c058a9db843db3be64d7947f9d1309dc9c | [] | no_license | CBYHD/xinao | 3ba7f524ea4a4fde47c0521ca921b08bf38eeb70 | 8b0a8fdeee6807b6446b8d376bb79c3e54d9ac3b | refs/heads/master | 2022-12-24T10:46:25.235252 | 2020-10-02T12:43:47 | 2020-10-02T12:43:47 | 281,280,448 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 660 | cpp | 数字三角形.cpp | #include <iostream>
using namespace std;
int dp[10000][10000], a[10000][10000];
int main()
{
int n;
cin >> n;
for (int i = 1; i <= n; i++)
{
for (int j = 1; j <= i; j++)
{
cin >> a[i][j];
dp[i % 2][j] = max(dp[(i - 1) % 2][j - 1], dp[(i - 1) % 2][j]) + a[i][j];
... |
b1f12afae1f8b43330c9daab94bbc2d3fdd1941d | dd110efb203da8cd1b50702b60302bc4d87310f1 | /mainwindow.h | 8b46e5d872f7e1b33b8a53225d0bb88a1dbc4424 | [] | no_license | MaximenkoDmitry/FileManager | 76b90b6e9e4eb20458f0108fbcceb6ee3c1d123c | 6e405779fb760e5d8905dfcc52b1df67b951347e | refs/heads/main | 2023-08-11T14:33:07.948858 | 2021-09-16T07:51:54 | 2021-09-16T07:51:54 | 406,696,806 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,201 | h | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QProcess>
#include<QDesktopServices>
#include<QListWidgetItem>
#include <dirent.h>
#include <string>
#include<QUrl>
#include <QMessageBox>
#include <iostream>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include<functions.h... |
5092bd85f9789bfa09eede2cfde455d4309b4d6b | fd06efb5c6c9981b9445011cfe40443f9b55d777 | /src/com/brickblock/util/logger/ConsoleLogger.h | 55e6fb5df537b78ce7baa10a81d6b488c6c7804b | [] | no_license | Andy608/Brickblock | 4055673dae22ff68ad1f37db1735448647efc047 | e365208e522708aa7a4b0c8447f3c5a8f3bc1ffc | refs/heads/master | 2021-09-18T14:39:17.876697 | 2018-01-11T13:26:14 | 2018-01-11T13:26:14 | 105,421,930 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 944 | h | ConsoleLogger.h | #ifndef BB_CONSOLELOGGER_H_
#define BB_CONSOLELOGGER_H_
#include "../libs/spdlog/spdlog.h"
#include "Logger.h"
namespace bb
{
class ConsoleLogger : public Logger
{
public:
ConsoleLogger(std::string consoleLoggerName, std::string consoleLoggerFormat = Logger::DEFAULT_FORMAT, spdlog::level::level_enum loggerLevel ... |
8569b7102eddb1b722a5d08910c046e8eea12454 | 3ab3575de3f03ba959b7eac312d5a9e60590eb33 | /Assignment3/4 - Universal Health Care/UniversalHealthCoverage.cpp | d11716173a7a7b73d63dab7133e8f86a87ddcc41 | [] | no_license | lnadi17/programming-abstractions | f998f243580dae99dfc4ed426470b0011ca81b8f | 7899bc5383ab372e8ae4d35ed0ca364dfe5be6e2 | refs/heads/master | 2023-05-12T00:59:59.619977 | 2023-04-27T14:47:29 | 2023-04-27T14:47:29 | 204,444,729 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,387 | cpp | UniversalHealthCoverage.cpp | /*
* File: UniversalHealthCoverage.cpp
* ----------------------
* Name: [TODO: enter name here]
* Section: [TODO: enter section leader here]
* This file is the starter project for the UniversalHealthCoverage problem
* on Assignment #3.
* [TODO: extend the documentation]
*/
#include <iostream>
#include <string>
... |
ffa27a77975d6fbd9bae7bc3a33e05c94e72fed3 | dd9be50b40b274f0cc61b504eb6156774ad26ff0 | /tests/PathTest.cpp | 94aaab6eb513a8ed16edb091fc42045aa92fb6b5 | [] | no_license | Claire-Dong/GlucoseGuardian | ecfe449cff4721ab1179ab75adc40821429521ac | 34041e78c5cd1b494de413796f0d2a4aaf365703 | refs/heads/master | 2020-08-09T06:15:30.585638 | 2019-10-09T20:34:35 | 2019-10-09T20:34:35 | 214,016,575 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 311 | cpp | PathTest.cpp | #include "ArtificialPancreas.h"
#include "GlucoseMonitor.h"
#include <thread>
int main()
{
ArtificialPancreas *artificialPancreas = new ArtificialPancreas();
GlucoseMonitor *glucoseMonitor = new GlucoseMonitor();
std::thread t1(&GlucoseMonitor::listen, glucoseMonitor, artificialPancreas);
t1.join();
} |
f720c3fea58cdecf124661556e5cfb420ad8e466 | ff0c041d88ba25c87e07274818e58ea461a1355a | /oop/method.h | f9b5d22498e7c9a36464ea23ec4ef2766e342ed9 | [] | no_license | xsandyguo/punkin | a91a02720df2ddc00f43ebddcfa52bb23dfab92d | acd5d59a03447193b80b531fca0672adc21fe781 | refs/heads/master | 2020-04-15T01:56:25.049041 | 2019-01-27T16:08:49 | 2019-01-27T16:08:49 | 164,297,172 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,443 | h | method.h | #ifndef CLASSFILE_METHOD_H
#define CLASSFILE_METHOD_H
#include <vector>
#include "oop/oop.h"
class Klass;
struct ExceptionHandler {
u2 start_pc;
u2 end_pc;
u2 handler_pc;
u2 catch_type;
};
struct CodeArea {
u2 max_stack;
u2 max_locals;
u4 code_length;
u1* code;
... |
78435c1218fc71c4d1aa08cc78b265c713486ea5 | 0a27164b8baf9c57c6b8dc8c8ef6e61a34d6f3a3 | /백준 유형별 문제풀이/BFS/7576토마토.cpp | 2f9b66f34519e04539f1f5a6a46e429121c51370 | [] | no_license | GyosunShin/ProblemSolving | 56840196d3a49b57e50e49ff2fa2ddb4488d38db | 4ddedf4b26d9124e10f4f4490834078d9701f750 | refs/heads/master | 2021-01-04T10:00:12.712086 | 2020-06-29T12:29:45 | 2020-06-29T12:29:45 | 240,494,077 | 1 | 0 | null | null | null | null | UHC | C++ | false | false | 1,840 | cpp | 7576토마토.cpp | // 2 ≤ M(가로),N(세로) ≤ 1,000 이다
// 1 : 익은 토마토 / 0 : 안 익은 토마토 / -1 : 빈칸
//
// OUTPUT
// 토마토가 모두 익을 때까지의 최소 날짜를 출력해야 한다.
// 만약, 저장될 때부터 모든 토마토가 익어있는 상태이면 0을 출력해야 하고,
// 토마토가 모두 익지는 못하는 상황이면 -1을 출력해야 한다.
#include <stdio.h>
#include <queue>
using namespace std;
struct INFO{
int r, c, time;
};
int M, N;
int map[100... |
8341ed8b50228ecf840c86c835d3311ecec70bfe | 9d6a173022d6cf7ba29fc5a75b4190a3ba52f7d8 | /cpp/CPP Module 00/ex01/main.cpp | a9d3517d823e7195d1a193f7ed28e1593d62114a | [] | no_license | blureddoor/42 | 2fa09025e3b889a8734862d0f74d42edd623a768 | b4fb3b1f86667589d826ca3c26485719b1c0d706 | refs/heads/master | 2023-07-06T21:20:20.147322 | 2023-06-25T09:42:52 | 2023-06-25T09:42:52 | 233,448,504 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 980 | cpp | main.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: ... |
345f4208030ea5a4af72e9cdf82776d0cdb63c35 | 394615fa3a4b69b173f521b30bc87c139250e81b | /matrix.cpp | 6acc875c7c4a72301eabc0dcd22da56c823f91dc | [] | no_license | WesleyCh3n/cplus-tutorial | 94850469158db627291e2c4a87101debcea6aab2 | e96c90572201cd664a257305e06dc8d63074cac9 | refs/heads/main | 2023-08-14T21:10:51.554171 | 2021-09-26T00:50:15 | 2021-09-26T00:50:15 | 302,523,147 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,751 | cpp | matrix.cpp | #include <iostream>
#include <iomanip>
#include <math.h>
using namespace std;
#define INM 3
#define INL 4
#define INN 5
double answer1 = 0;
double** matrixMultiplication (double** A, double** B, int M, int L, int N);
void printMatrix(double** Matrix, int row, int col);
int main(){
double A[3][4] = {
{2.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.