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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
81cfd709ba84d3c96b7cfc3dad3b799b1f7305bd | b4145c423da8e47e2c3daf66cfbf51084ffe0edd | /MeshWork/mwtool.cpp | 078491d82f3acb8e363b712e51512028981c7f10 | [] | no_license | yfguo91/remesh | 7cf21938b4d39ee9746e15d2f5867c0a7bf0f331 | 31d020402b9cb826b0ab570e9642d17e615152e1 | refs/heads/master | 2023-01-06T07:11:58.015907 | 2023-01-03T09:51:42 | 2023-01-03T09:51:42 | 277,212,308 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 30,961 | cpp | mwtool.cpp | #include"externalcommon.h"
#include"internalcommon.h"
namespace meshwork
{
double GetDistFromLine(const Point<3> & lp1, const Point<3> & lp2, Point<3> & p)
{
Vec<3> vn = lp2 - lp1;
Vec<3> v1 = p - lp1;
Vec<3> v2 = lp2 - p;
Point<3> pold = p;
Point<3> pp;
if (v2 * vn <= 0) {pp = lp2; return (pold - pp).L... |
3e99f649d4304b630197a8c9849e2f34166c772d | 81bd3e115716aa7aad27cd3e69f3e63c3fcf1bab | /bootloader/cobs.cpp | 46e2c4f779aa7740ae166bb674c3a1d9dd191045 | [] | no_license | 00mjk/f303k8-bootloader | 8745520c97f4e082c0dbc5f8a015e027164768e8 | 551c38ef3bee1921381cbab6e62ce1870bcb3f2b | refs/heads/master | 2022-03-08T06:43:47.613679 | 2016-09-02T01:39:05 | 2016-09-02T01:39:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,788 | cpp | cobs.cpp | #include "cobs.h"
COBSDecoder::COBSResult COBSDecoder::decode(uint8_t* chunk, size_t length, size_t *read_out) {
*read_out = 0;
if (currReader == NULL) {
return kErrorNoBuffer;
}
while (length > 0) {
uint8_t byte = *chunk;
(*read_out) += 1;
if (byte == 0x00) {
if (decoderStatus == kDeco... |
168270bcfe408651c7a1cd55882eaa19c311516d | 791fbbae9692629756cd2c7760b90f7fb234166d | /main.cpp | ca8672c31e2864bc8d733dec793f903250e4eb81 | [
"MIT",
"BSD-3-Clause"
] | permissive | kmingulov/MAnalyzer | f6f87d7c190927187024c6f7e2b61be73568404a | ce0e56e0d02be1117f1c17fe751a5ed3e6cbd74f | refs/heads/master | 2020-04-14T00:43:25.824421 | 2012-09-10T09:53:47 | 2012-09-10T09:53:47 | 5,161,426 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,331 | cpp | main.cpp | /**
* @file main.cpp
* @brief The example of MAnalyzer using.
*/
#include <vector>
#include <iostream>
#include <fstream>
#include <cstring>
#include <cstdlib>
#include "analyzer/word_infos.h"
#include "analyzer/analyzer.h"
int main()
{
Analyzer * analyzer = analyzer_new("dics_ru");
WordInfos * wi = info... |
ce3f6843c9e88eacf4f0632b272772728170a2d3 | d8228663d2858a48a2988fdcb9e2715b47a20fc7 | /class_19/constructor_4.cpp | dc176e9332b6f93f5f3101dc77f090c7eb7198f2 | [] | no_license | stackCuiBin/CPP_DiTai | 9f42480c8040080e2c8590fe1008ef2fab7d2da6 | e85e41eb644df698ccd027b9173199d37f19110f | refs/heads/master | 2021-06-14T22:27:55.265925 | 2019-07-21T13:53:49 | 2019-07-21T13:53:49 | 184,539,177 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,148 | cpp | constructor_4.cpp | /*************************************************************************
******* File Name: constructor_4.cpp
******* Author: bb.cui
******* Mail: bb.cui@foxmail.com
******* Created Time: Tue 28 May 2019 06:43:44 AM PDT
************************************************************************/
#include <iostrea... |
013a3228f4c2fd254b4326a09f6448db63a6c2c9 | a4bcc6764b7ee37437446f19eaed815c89633564 | /37 - DP - problem nadluzszego rosnacego podciagu LIS/lis.cpp | e7a516360cd359c6071c7c12ea0253b3515bafec | [] | no_license | gjasinski/algorithms-and-data-structures | bca80c19d3a6b426631ab548d109e533f07992c8 | 9b8b82c5223d0862a408b5cf492201f0e71bc9d5 | refs/heads/master | 2021-06-01T07:45:56.193183 | 2016-07-05T17:07:18 | 2016-07-05T17:07:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,570 | cpp | lis.cpp | /*
Problem nadluzszego rosnacego podciagu - LIS
Dane:
A[0, n-1] - tablica liczb
Zadanie:
Obliczyc dlugosc najdluzszego rosnacego podciagu niekoniecznie spojnego.
Tests:
https://www.hackerrank.com/challenges/longest-increasing-subsequent
*/
#include <stdio.h>
#include <cstdio>
int lis... |
377eb4d624cbbf1313dc4efbdaa0031094ab32f6 | 9cda6331f1240a1f9fbf366cfc8fbf8c55efbd36 | /udacity/class_1_ basic/header_first.hpp | 6ada98e08b0ab644547be610cb265f60952c98bb | [] | no_license | Wiliansster/project_c_cpp | 8a5cd3cbca47e0e8f7fec10bd5ac86a1f07e2acb | 6f1d0158052a99b6688b518f6016e9bb6c0e742c | refs/heads/master | 2022-11-05T03:05:32.906479 | 2020-06-28T15:32:07 | 2020-06-28T15:32:07 | 273,983,144 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 67 | hpp | header_first.hpp | // This is a header file.
#include<iostream>
using namespace std; |
e302848bf7c1db3eddd9caed04f7cb173d86f188 | ef8dcbacd194ba7a694d70fd642e594f11c46e3d | /src/scripting/scripting/script_state.h | a119a3c6843a76a926c2035dff260acb037fda2a | [] | no_license | RikoOphorst/blowbox-2018 | b4a590f483348562eda6919935d8f2cd27e55c11 | a1d7d69f0637c9ecefa3ce9f79808f13b2f808d7 | refs/heads/master | 2020-03-09T17:19:44.702439 | 2018-05-17T22:14:04 | 2018-05-17T22:14:04 | 128,906,460 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 649 | h | script_state.h | #pragma once
#include <core/data/path.h>
extern "C"
{
struct lua_State;
}
namespace blowbox
{
namespace scripting
{
class ScriptState
{
public:
ScriptState();
~ScriptState();
void Initialize();
void Shutdown();
void StackDump();
void CompileAndRun(const Pa... |
8ccd7b4c2c6e2e8fc632fa9ac9469052614ce538 | 53d93802dd0f9d852cffcc244394be275e57d19d | /MainMenu.cpp | 376a256c6af7a233e66f995219bb72b7ee2fa93f | [] | no_license | vfrolov263/stealth_action | 675a5b30bf4e707061a3ca570495f5c716d7aa7b | 115ad094a206850fdff220d11e73d5d8d372c3d1 | refs/heads/master | 2020-12-24T18:51:02.075525 | 2016-06-02T07:47:10 | 2016-06-02T07:47:10 | 59,055,472 | 0 | 1 | null | 2016-05-18T18:26:03 | 2016-05-17T20:14:48 | C++ | WINDOWS-1251 | C++ | false | false | 7,531 | cpp | MainMenu.cpp | #include "MainMenu.h"
#include "Game.h"
void CALLBACK CMainMenu::Init(){
pComponentsManager->GetComponent((IComponent *&)_pBackSprite, GCT_SPRITE); // Получаем спрайт и записываем его в указатель _pBackSprite
pComponentsManager->GetComponent((IComponent *&)_pButtonAnim, GCT_ANIMATION); // ... |
150e7f99a916e8f5e4ea7aa5f3966181d28fb0bc | d2fc7fb55ce6acc1f274efc51789dc1dc06c3eb2 | /idea/Jojo/go/detail/config/thread_forward.h | ec13277d46e58db00a55c8d10e19d93a9acd51b2 | [] | no_license | Strongc/isu | 31dc6b7049e009bc753d000307936141787942d1 | d40f16c3841552b00329b16a61f5c9893ea6c4eb | refs/heads/master | 2021-01-15T18:14:32.458687 | 2014-11-03T14:22:02 | 2014-11-03T14:22:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 546 | h | thread_forward.h | #ifndef ISU_GO_THREAD_FORWARD_H
#define ISU_GO_THREAD_FORWARD_H
//File:thread_forward.h
// (C) Copyright 2013 四元飒
// Use, modification and distribution is subject to the Isu source code
// License, Version 0.1. (See local file LICENSE_0_1.txt)
// See http://blog.csdn.net/fq_hayate for updates, documentation, and revis... |
a020a22e6ac7199ff0b0bfaec2251f9898cf6fb3 | 3460bdb87a859f64c204c57c694bca33c9c10cd7 | /SpaceInvaders/LCFramework/message.h | c8dea5b4def7c6aea45a7b62b8ba9eab9250707f | [] | no_license | ruulaasz/SpaceInvaders | 6040eab3aa425d8f513830464e2ed5a32fc1fcaf | 76e50c43083cac54b85a871178ef3643a70d6eb3 | refs/heads/master | 2021-05-02T15:06:58.792354 | 2018-03-05T22:47:18 | 2018-03-05T22:47:18 | 120,684,951 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,298 | h | message.h | #pragma once
#include <iostream>
#define MESSAGE_LOG char*
#define M_ERROR "ERROR"
#define M_SUCCESS "SUCCESS"
#define M_WARNING "WARNING"
#ifdef _DEBUG
static bool PrinteMessage = false;
static inline MESSAGE_LOG ReturnCallMessage(MESSAGE_LOG Descriptor, MESSAGE_LOG aditionalText, int line, char* foo, char* file)... |
96d09f537a582eea60ae95469a56623d02b22785 | 502b8e183b5602136eeb78c2ea6a4eb3db7769db | /driver.h | 97f071f614cdc8aebdedd113f4d328fc2d701022 | [] | no_license | eliogovea/vibration-analysis | f9007ac9ee08af6cf970416bae1e425b885b4736 | db665b402004a02218156e4e4ba3f26e37865618 | refs/heads/master | 2020-05-07T20:00:33.759720 | 2019-09-20T01:00:24 | 2019-09-20T01:00:24 | 180,840,665 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 639 | h | driver.h | #pragma once
#include <QWidget>
#include <QFrame>
#include "reader.h"
#include "signalchart.h"
class Driver : public QFrame {
Q_OBJECT
public:
Driver(int windowSize, QWidget* parent = 0);
public slots:
void getNewData(AccData);
void getNewX(double);
void getNewY(double);
... |
a393da5e9400b58e8d0d9ba060043bbe8155d59a | b3e525a3c48800303019adac8f9079109c88004e | /nic/sdk/platform/elba/elba_barco_crypto.hpp | 216c5f430331357e97ae19767e145d6b4f90869e | [] | no_license | PsymonLi/sw | d272aee23bf66ebb1143785d6cb5e6fa3927f784 | 3890a88283a4a4b4f7488f0f79698445c814ee81 | refs/heads/master | 2022-12-16T21:04:26.379534 | 2020-08-27T07:57:22 | 2020-08-28T01:15:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26,889 | hpp | elba_barco_crypto.hpp | //
// {C} Copyright 2020 Pensando Systems Inc. All rights reserved
//
//----------------------------------------------------------------------------
///
/// \file
/// elba barco crypto headers
///
//----------------------------------------------------------------------------
#ifndef __ELBA_BARCO_CRYPTO_HPP__
#define _... |
1c1c729ce62552a6a2a2bcc147d6af1594645f8f | b6986d606ce256b293cd6f43aa99b3255e9352a7 | /software/libraries/Uberdust/examples/airconditioner/airconditioner.ino | 61a9421936edf20f9e4d8f2edd89447d53a11150 | [] | no_license | Vammoso/arduino | 85b0038bcc782a7fdff88c8b41024b95326edb11 | 79161be94f0dc2c97401777c4c1aedf99df2c457 | refs/heads/master | 2023-05-09T17:54:24.680821 | 2012-05-28T07:22:06 | 2012-05-28T07:22:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,652 | ino | airconditioner.ino | #include <Uberdust.h>
#include <XbeeRadio.h>
#include <XBee.h>
#include <stdio.h>
#include <string.h>
#include <SoftwareSerial.h>
// Create the xbee object
XBeeRadio xbee = XBeeRadio();
// Create reusable response objects for responses we expect to handle
XBeeRadioResponse response = XBeeRadioResponse();
// Al... |
36c7ccf03f167b419699941a86c1f16e719a042d | 6f4cd6b32182507f5dc5c5da3077899ff68e9bc8 | /manipulator_cout_setf.cpp | 17abc86ce2519ca851a96bddfd8e91820e48d5ff | [] | no_license | LEEleonardo/cpp | adf559e3346c9e282a29005b9e4eb642b8872aaf | 5053ba5ebb42363a5c4b8832a57e3fc70b2448d2 | refs/heads/master | 2021-09-01T10:21:47.499370 | 2017-12-26T12:45:02 | 2017-12-26T12:45:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,782 | cpp | manipulator_cout_setf.cpp | #include "stdafx.h"
#include <iostream>
#include <fstream>
//#include <iomanip>
using namespace std;
//int main()
//{
// ifstream inStream; //1/객체생성
// ofstream outStream; //1.객체 생성
// inStream.open("infile.txt"); //2.객체 연동(infile.txt라는 파일과의 연동을 진행함)
// if (inStream.fail())//instream이라는 파일이 없을때의 결과를 정의
// {
// cout <<... |
fd5a2279dcc8b17423ff1c0021c833bffdce3889 | 11ef4bbb8086ba3b9678a2037d0c28baaf8c010e | /Source Code/server/binaries/chromium/gen/chrome/common/offline_page_auto_fetcher.mojom-params-data.h | dd2f6af8605d20efa6a3bcc9b2132b616aee659a | [] | no_license | lineCode/wasmview.github.io | 8f845ec6ba8a1ec85272d734efc80d2416a6e15b | eac4c69ea1cf0e9af9da5a500219236470541f9b | refs/heads/master | 2020-09-22T21:05:53.766548 | 2019-08-24T05:34:04 | 2019-08-24T05:34:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,235 | h | offline_page_auto_fetcher.mojom-params-data.h | // Copyright 2019 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.
#ifndef CHROME_COMMON_OFFLINE_PAGE_AUTO_FETCHER_MOJOM_PARAMS_DATA_H_
#define CHROME_COMMON_OFFLINE_PAGE_AUTO_FETCHER_MOJOM_PARAMS_DATA_H_
#include "base/... |
5161375c34fadc6907f5bae4c8c315a87f92b04b | 59eafae3bc4d13b9844c47d2e12aaa2b04fb6da0 | /AtCoder/ABC158/C.cpp | e73874f5a5a7ac1483c0e4aa745b358b20c43e6f | [] | no_license | pes-magic/procon | 004d7cd877e1cb56fea8d4b8b6cc8ba564a93a29 | 7afd1564b9228144d53920cc8e6a91012144b530 | refs/heads/master | 2023-08-31T17:29:06.829263 | 2023-08-25T12:32:27 | 2023-08-25T12:32:27 | 228,394,327 | 3 | 0 | null | 2023-08-24T11:48:04 | 2019-12-16T13:33:20 | Jupyter Notebook | UTF-8 | C++ | false | false | 314 | cpp | C.cpp | #include <iostream>
using namespace std;
int solve(int A, int B){
for(int i=1;i<=20*B;i++){
int a = int(0.08*i);
int b = int(0.1*i);
if(a == A && b == B) return i;
}
return -1;
}
int main(){
int A, B;
while(cin >> A >> B){
cout << solve(A, B) << endl;
}
} |
31a78eb6c9c591fa4aa49889cb663cb31ce8765a | 5e2e27daacfddfe119015736fcc6e9a864d66c49 | /GameEngine/Graphics/Cube.cpp | c0778e02b286b7347646afa06c4b9a1185462784 | [] | no_license | mdubovoy/Animation_System | 17ddc22740962209e7edbd8ea85bec108499f3e2 | b356d0ea6812e0548336bc4813662463e786de93 | refs/heads/master | 2021-01-22T11:41:13.637727 | 2014-09-22T14:01:20 | 2014-09-22T14:01:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,532 | cpp | Cube.cpp | #include "OpenGLWrapper.h"
#include "Cube.h"
#include "MathEngine.h"
#include "Camera.h"
#include "File.h"
#include "GraphicsObjectFileHdr.h"
#include "TextureManager.h"
#include "TextureMap.h"
#define CREATE_CUBE_DATA 1 // 1 - creates file, 0 - uses file
#define COLLISION_DEMO 0
void Cube::loadTexture(void)
{
/... |
168671887b18558ee093e2002922c65b7830479d | 9e2ac192df50dd211f214e0c9d40f2d8f0afca29 | /src/Logic/Game.h | 9236ee2bd7d576756c7c1d0205877638bc7720ca | [] | no_license | pwl-salach/ZCpp_MissionImpossible | 77e4ab327cffa0d9b6388956330f81202958135e | 960d35872f9933b7126bd8bd166bec520a02a844 | refs/heads/master | 2021-04-28T13:25:00.533073 | 2018-06-19T22:02:23 | 2018-06-19T22:02:23 | 122,104,154 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,275 | h | Game.h | //
// Created by Salach on 19.02.2018.
//
/*!
* @file Game.h
* @brief Deklaracja klasy Game
*/
#ifndef ZCPP_MISSIONIMPOSSIBLE_GAME_H
#define ZCPP_MISSIONIMPOSSIBLE_GAME_H
#include <thread>
#include "../GUI/StartWindow.h"
#include "Environment.h"
#include "Headquarters.h"
/*!
* @brief Głowna klasa w grze zarządza... |
78e6459f56606a24586742743edbd483f7681d29 | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/dc/b4f40944e35e35/main.cpp | fb6dfdea42e9407fea358458b315e9fd1491b380 | [] | 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 | 739 | cpp | main.cpp | #include <iostream>
#include <algorithm>
#include <functional>
#include <vector>
using namespace std::placeholders;
using namespace std;
struct MyType {};
struct MyType2 {};
ostream& operator<<(ostream &os, const MyType &n)
{
cout << "MyType" << endl;
return os;
}
ostream& operator<<(ostream &os, const MyTy... |
3225e9c96ece503280317de58c65f365a00e587c | 84fb8960760e29c20d25597aa86213ae35b374fc | /Cellule.cpp | 6c0d7d32544443611f262bf25235c8d0340f549c | [] | no_license | teeyo/popmaze | c5e486d7c2f89292fe03f1b966903c20f8dbb896 | 1479e49e972d4c04485c99a325b11b3c16e65545 | refs/heads/master | 2021-01-20T09:56:53.227802 | 2017-05-04T21:07:51 | 2017-05-04T21:07:51 | 90,309,494 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 2,565 | cpp | Cellule.cpp | #include "Cellule.h"
//________________________________________
// constructeur par défaut
// on initialise les portes en "true" ( cela veut dire qu'elles sont fermée )
// et le type initialisé en 1 cela veut dire que la même chose que la ligne de commentaire en haut
// toutes les portes fermée ( c'est pas une sorte de... |
17473dcddf63472a21196114b83a4d9633b9cc35 | b02f404aa833b685997f8421a2c4bc31706da30b | /Leetcode/面试题/167.cpp | 885e049f27a49ede4b39d5bbd5e8e3b705b054a1 | [] | no_license | Super-long/Leetcode | a596fda29cb0d210048957c9e6798586486316f1 | d16d16a8e6076f37889c21f4c2c04ded7b915a85 | refs/heads/master | 2021-07-01T19:31:45.559894 | 2021-03-18T06:54:51 | 2021-03-18T06:54:51 | 226,631,026 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,070 | cpp | 167.cpp | // 两数之和 II - 输入有序数组
#include <bits/stdc++.h>
using namespace std;
// https://leetcode-cn.com/problems/two-sum-ii-input-array-is-sorted/solution/yi-zhang-tu-gao-su-ni-on-de-shuang-zhi-zhen-jie-fa/
// 这道双指针法本质类似于杨氏矩阵
// 一般而言搜索空间都是一个靠右上的三角形(lhs <= rhs),当然这道题没有等于
// 然后随着两个指针的推移可以降低时间复杂度
// 这道题最大的收获就是知道了双指针法的本质
class Solu... |
bbe940fd6282f0343d08a002a2648b4dab778699 | 89d71656f1ba411c081f7e26258b498b7f10aaa2 | /MathAlgorithm/3.7/Text_3_7_4.cpp | be520ff35831944f69e36e52e63dd8cf427951bc | [] | no_license | noblesseoblige6/Algorithms | 4b06d01b7ca015c5b2b28398ae3142f10a281048 | ae8d1085009e0cd98e805795b4cc31a4e2e161ac | refs/heads/master | 2023-08-29T09:22:47.419651 | 2023-08-02T06:50:05 | 2023-08-02T06:50:05 | 51,254,943 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 739 | cpp | Text_3_7_4.cpp | #include <iostream>
#include <algorithm>
#include <iterator>
#include <cmath>
#include <vector>
int main()
{
std::uint32_t n, s;
std::cin >> n >> s;
std::vector<std::int32_t> a(n+1);
std::copy_n(std::istream_iterator<std::int32_t>{std::cin}, n, a.begin()+1);
std::vector<std::vector<std::int32_t>>... |
a92eb545c6f28aa999e7017e8e3403aeac26449d | 5acc13dd0db7a1ac7324ada2a19c18b794aadfe1 | /MyStr.cpp | e705f43cb0d4154386d44923b60c2d1064fc7d84 | [
"BSD-3-Clause"
] | permissive | josue-nsiama/MyLib | de159bd5d9b7fb6cd4940b962b8a405012bbfd8f | f399e839a9264dd1c155f1750e2fea0e67667c56 | refs/heads/master | 2021-05-18T14:23:23.361534 | 2020-04-01T15:09:57 | 2020-04-01T15:09:57 | 251,280,192 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 368 | cpp | MyStr.cpp | #include "MyStr.h"
String::MyStr(const char*__STR) {
len = strlen(__STR)+1;
STR = new char[len];
STR= __STR;
}
String String::operator=(const char*__STR) {
len = strlen(__STR) + 1;
STR = new char[len];
STR = __STR;
return STR;
}
std::ostream& operator<<(std::ostream& so, const String& a) {
so << a.... |
c000d123dc6e06e05af88c8b3c83cf5ab2704fe0 | 3edeb989d73634546fde869695eda0aefad5d396 | /Add_complex.cpp | fbf4de93eae83b917d3d204a3bd150ed941cc36a | [] | no_license | sriabhik/Oops | 531f2d98d7670c74e03b8df4b3b09a432db79467 | c92fcfb35695f4b39e4d4473d491258b619c0621 | refs/heads/master | 2023-06-10T01:35:52.167805 | 2021-06-30T07:18:04 | 2021-06-30T07:18:04 | 381,610,989 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 346 | cpp | Add_complex.cpp | #include<bits/stdc++.h>
using namespace std;
class complex{
int a ;
int b;
public:
complex(){}
complex(int val1 , int val3){
a = val1;b = val3;
}
friend complex sum(complex,complex){
}
friend void Display(){
}
};
int main(){
complex ... |
183b86f046e560211b256ee262dbadda5c0d55bc | 9329fb1dc8d8534a940f1a0e34b2c8c208f4e959 | /ros_ws/src/graph_slam/src/create_map_node.cpp | 6574793550d02f130dfac157121b8fe39ac209cc | [] | no_license | pasqualecortese/pose-landmark-graph-slam | 428504ad915fb802c34764509daced99ffc023b3 | efe84492d7b7ec12f9188e8e42546329cd1a8647 | refs/heads/master | 2023-02-17T21:44:25.208824 | 2020-10-14T02:18:35 | 2020-10-14T02:18:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,595 | cpp | create_map_node.cpp |
#include <geometry_msgs/TransformStamped.h>
#include <pcl_conversions/pcl_conversions.h>
#include <graph_slam/create_map_node.h>
namespace graph_slam
{
CreateMapNode::CreateMapNode(
const std::string& in_odom_topic, const std::string& in_cloud_topic,
const std::string& out_cloud_topic, bool use_odom_as_corr... |
0caec2a9424b1825a6ed6463b76142a2b79d1c57 | 25f8154b8f03966e2dce56c466b3e2ccfce88d48 | /shared/include/hw/led.hpp | 112a3326f069409ed13c76566c62cadc9725f907 | [] | no_license | idubrov/garage-firmware | 8e7a29420c9a8d24b9b2f44746f7bdca1bbb6510 | d36f6bfbeb8605a1fda735b737ff73df1d922c6c | refs/heads/master | 2021-01-20T13:38:12.052104 | 2017-05-25T01:28:44 | 2017-05-25T01:28:44 | 90,509,781 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 863 | hpp | led.hpp | #ifndef __HW_LED_HPP
#define __HW_LED_HPP
#include "stm32_hal.h"
#include "core.hpp"
namespace hw {
namespace led {
template<uint32_t PortBase, uint16_t Pin, bool HighOn = true>
class led_t {
using port_ref = core::port_ref<PortBase>;
public:
static void initialize(... |
2c376c86d9bbc506c949a33d6bf5d2e79759ded3 | 179d44748113f5d6504ee05f268d87aaf8ec9862 | /src/NodePopplerAsync.cc | 8cbdb26a723ac967b238ad51b0a808d6e89fe676 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT"
] | permissive | tpisto/pdf-fill-form | 27390572321616af396478cea7d302cbd0e5e297 | a6779ba18f1e5340b9df4f40cb93117e0bc80976 | refs/heads/master | 2023-01-21T20:27:14.779912 | 2023-01-05T09:54:14 | 2023-01-05T09:54:14 | 33,435,927 | 220 | 71 | MIT | 2023-01-05T09:54:15 | 2015-04-05T09:11:49 | C++ | UTF-8 | C++ | false | false | 1,718 | cc | NodePopplerAsync.cc | #include <nan.h>
#include <QtCore/QBuffer>
#include "NodePoppler.h"
using v8::Function;
using v8::Local;
using v8::Null;
using v8::Number;
using v8::Value;
using v8::Object;
using v8::String;
using v8::Array;
using namespace std;
class PdfWriteWorker : public Nan::AsyncWorker {
public:
PdfWriteWorker(Nan::Callb... |
b96d70acb8610b8d831a3c02e0b757b318e85a25 | 5bd3eaf8c38d4d784b0cda4473bb0d774243c52a | /src/UI/TextUI/formater/ViewFormater.cpp | 4dc49c82b14b2b0e5fba8ab896312ab722c51dd5 | [] | no_license | michalPietraszko/Demo-Sensor-Network | 1d731cb6caf9b1114581b7b5f03031707fefb3c0 | c8011476aa12652182d073182fd8fa78cef1057b | refs/heads/master | 2022-12-05T18:37:35.521773 | 2020-07-29T17:03:42 | 2020-08-03T10:28:38 | 277,131,144 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,145 | cpp | ViewFormater.cpp | #include <BasicFormater.hpp>
#include <MenuViewFormater.hpp>
/* MenuViewFormater */
const std::vector<FormatGlyphs> MenuViewFormater::headline{FormatGlyphs::element,
FormatGlyphs::newLine,
Format... |
c09d13644808e72f451947c78e80f62f0b03c537 | 1b6b5f630696eb5ca848399a7cf8910ebc5d3fc2 | /skinnyleetcode/reverse.cpp | 8b4b7bd6065ba44185629651ce62798e5b32a178 | [] | no_license | hmofrad/CodingPractice | bde55f7616d44f20aaaf544cf3c88b37f05651a0 | 7f642e4b9a2e3db0fe54ba66e8d3bf98b8407dce | refs/heads/master | 2022-12-10T03:49:06.226039 | 2020-09-02T02:48:29 | 2020-09-02T02:48:29 | 63,923,207 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,084 | cpp | reverse.cpp | /*
* https://leetcode.com/problems/reverse-integer/submissions/
* (c) Mohammad Hasanzadeh Mofrad, 2020
* (e) m.hasanzadeh.mofrad@gmail.com
*/
class Solution {
public:
int reverse(int32_t x) {
printf("%d %d\n", INT_MAX, INT_MIN);
int y = 0;
while(x) {
int... |
707740b88e59bb9bc927ebdf96b0c9f56002f86a | d7a68eaf3365cb41ea3ad5ca90ad57873d283f9b | /sourcecode/MainScene.h | af6cd4fe0294eeb850504a4465f2b7b3f9d73a2a | [] | no_license | SeongHyunJeong/2016DiCon | e4d5697b872a2af2c31ccac2ac4cc1fcc2d66cd7 | 6d0b9480701f0c09766cad020cfc8cc4cc6353ad | refs/heads/master | 2020-01-19T21:40:34.094445 | 2017-06-13T15:01:18 | 2017-06-13T15:01:18 | 94,222,656 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 417 | h | MainScene.h | #pragma once
#include "Scene.h"
#include "Sprite.h"
#include"SText.h"
#include"Sound.h"
#include"Scene_Village.h"
#include"Button.h"
#include"Inventory.h"
class MainScene :
public Scene
{
public:
MainScene();
~MainScene();
Button * startButton;
Button * howButton;
Button * exitButton;
//Button * settingButton;... |
b0ec0097c206f69dd3f780e9a52dc3e1e2236c99 | c05ec6793dc48b2e966f204989a32a65623288f9 | /src/dinput8drv/keyboard.hh | 08fa7439bb9afb8f425dfa2f9038f8a8d9aa32ce | [] | no_license | pkamenarsky/hastegame | b29741a7f2f38d51ce445f14a3dd4f656e204102 | 5320863576804e51f799bdeacf29321ed50a0962 | refs/heads/master | 2021-01-13T02:06:26.613636 | 2015-08-17T13:18:40 | 2015-08-17T13:18:40 | 40,895,961 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,813 | hh | keyboard.hh | #ifndef ION_DINPUT8DRV_KEYBOARD_HH_INCLUDED
#define ION_DINPUT8DRV_KEYBOARD_HH_INCLUDED
#include "di8.hh"
#include "../base/dll.hh"
#include "../base/iontypes.hh"
#include "../input/inputdevice.hh"
namespace ion {
namespace dinput8drv {
class Keyboard:public input::Inputdevice
{
public:
Keyboard(HWND hWnd,LPDI... |
cdc14fbafbd61e8cc6db166306fb0e50ec7fe884 | 37c4eef2f778788afebf37efe643dafefc290960 | /STL/string3.cc | 89c2620e96c93b4ab312af4e2acc2d7515bbfb52 | [] | no_license | i-sushant/CP | 27833b166923f6ce9f385e0f6b9b8c47c95017ab | fcc01898f8d254690ba9400c6a48e13b2f772b63 | refs/heads/master | 2022-11-24T16:22:24.194259 | 2020-07-28T08:39:21 | 2020-07-28T08:39:21 | 264,732,968 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 346 | cc | string3.cc | #include <algorithm>
#include <cstring>
#include <iostream>
using namespace std;
int main()
{
char s[100] = "Today is sunday";
char* ptr = strtok(s, " ");
cout << ptr << endl;
// ptr = strtok(NULL, " ");
// cout << ptr << endl;
while (ptr != NULL) {
cout << ptr << endl;
ptr = ... |
6381d5544c1968640f74b4a56a79b92e7ab4ff19 | 8bcd1514663f8f0914490da201ce5b9e36064756 | /SFML-Editor/StaticObject.cpp | 9e9e0af39d99c8bfc4ec64436aa3dfd3405d5cf9 | [] | no_license | KarlOfDuty/LuaProjekt | 02a8a8bbd4332f280306c9836f213d996def042e | cc25243cd18c353cfdcf9da82afd8bec4c2291a2 | refs/heads/master | 2021-03-24T13:50:15.921952 | 2018-08-13T22:43:43 | 2018-08-13T22:43:43 | 89,336,870 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 726 | cpp | StaticObject.cpp | #include "StaticObject.h"
StaticObject::StaticObject(sf::RectangleShape shape) : Tile(shape)
{
tileNumber = 0;
}
StaticObject::StaticObject(sf::RectangleShape shape, int number) : Tile(shape)
{
tileNumber = number;
}
StaticObject::~StaticObject()
{
}
int StaticObject::getTileNumber()
{
return tileNumber;
}
voi... |
f4c8ec0d08e3d02fc88400e2ef80682b19590325 | c05ec6793dc48b2e966f204989a32a65623288f9 | /src/base/string.cpp | 49e79c9e12a356945a1fc408b55ec702c2310458 | [] | no_license | pkamenarsky/hastegame | b29741a7f2f38d51ce445f14a3dd4f656e204102 | 5320863576804e51f799bdeacf29321ed50a0962 | refs/heads/master | 2021-01-13T02:06:26.613636 | 2015-08-17T13:18:40 | 2015-08-17T13:18:40 | 40,895,961 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,284 | cpp | string.cpp | #include <algorithm>
#include <functional>
#include "string.hh"
namespace ion {
namespace base {
String::String():m_String(new std::string)
{
}
String::String(const char *cstr)
{
m_String=cstr ? (new std::string(cstr)) : new std::string;
}
String::String(const std::string& str):m_String(new std::string(str... |
a58546a581692251fd3124235db9b78932fab90d | a49f3c8a9a9b382c8ea170530c1400b33aa3e2fb | /src/sudoku/sudoku.cpp | b81d5c82bf61178eae51df0d3acf1b416c73884e | [] | no_license | Lion1Blue/MySolutionsQt | 88a21d383f872797c1e5b52df646d83bfd485b15 | e4639558a3cb4b7909b4dd488f3ac83f9d97f5ba | refs/heads/main | 2023-03-26T11:09:30.788726 | 2021-03-22T09:03:40 | 2021-03-22T09:03:40 | 350,268,681 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,208 | cpp | sudoku.cpp | #include "sudoku.h"
#include "qdebug.h"
#include "qmessagebox.h"
#include <QRandomGenerator>
Sudoku::Sudoku()
{
}
Sudoku::Sudoku(ISudokuMainWindow* sudokuMainWindow)
{
m_sudokuMainWindow = sudokuMainWindow;
for (int i = 0; i < 9; i++) {
m_startingSudoku[i].fill(0);
}
m_currentSudoku = m_startingS... |
bc2bb6a9082059daac1b5e85c76f9b97601e2931 | 9612905f19ea864f344cd3176ed8512cc6d4af79 | /GuiaTelefonos/diccionario.h | 7ee3efaae01a5acec3cefb973fa2e4f330997ff7 | [] | no_license | marlenelis/CC | f1a49a1edcdd7eda297989edc1a4ecd04a599eb6 | ea09d2d9647f81eb4e8d0e5bb8e453313ec088e4 | refs/heads/master | 2021-01-01T19:55:38.510785 | 2015-02-06T11:40:17 | 2015-02-06T11:40:17 | 30,026,736 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,742 | h | diccionario.h | #ifndef DICCION__H
#define DICCION__H
#include <utility> // para pair
#include <vector>
using namespace std;
template <class t1,class t2>
class Diccionario{
private:
vector<pair<t1,vector<t2> > > data;
void Copiar(const Diccionario<t1,t2> &D){
data = D.data;
}
void Borrar(){
d... |
47ce337f79bc7aac376092b0a6118bc39ec26d97 | 85ba56df8b459a2e3c4c7e3d66bf4d96c7f8c9b1 | /Codeforces/1092A.cpp | 74a57a94ecb9c6fec33bf8a0824aa16eee135741 | [] | no_license | raghavaggarwal99/Competitive | 80c29213a4f81b39a01d5b2b5e70ab22ceb9738c | fa8a472eddf612f969ec67104110bcdfe03332c9 | refs/heads/master | 2021-07-10T09:31:01.666951 | 2020-09-26T17:03:40 | 2020-09-26T17:03:40 | 203,055,409 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 637 | cpp | 1092A.cpp | #include <iostream>
#include<bits/stdc++.h>
#include<unordered_map>
using namespace std;
int main()
{
long long int t;
cin>>t;
for(int i=0; i<t; i++){
long long int a,b;
cin>>a>>b;
long long int count=0;
int v=0;
while(1){
for(char j='a'; j<=('a'+b-1); j++){
... |
81a9e330bd6381a2768a761fa6aa61de56e552d2 | 55f5d42e9e2cbfb2c3d41c1dd0050fbb6ad13781 | /ejemplo_1/ejemplo_1.ino | 7abf765122c99ea78abef6a4bbcc49732dd8cf0c | [] | no_license | juchani/respaldp | 97c2f4555134c376f132306dbe846adc7e7c0722 | 0e46792a35d076c45562e0b58cbaec3ae08cd4f5 | refs/heads/master | 2021-09-01T21:52:58.353039 | 2021-08-03T15:26:27 | 2021-08-03T15:26:27 | 134,037,744 | 0 | 0 | null | 2018-05-19T06:55:22 | 2018-05-19T06:51:54 | null | UTF-8 | C++ | false | false | 213 | ino | ejemplo_1.ino | int led=12;
int tiempo=1000;
void setup() {
pinMode(led,OUTPUT);
}
void loop() {
digitalWrite(led,HIGH);//enciende led que se encuentra en el pin 13
delay(tiempo);
digitalWrite(led,LOW);
delay(tiempo);
}
|
f23cf3f843a11d5bd1ca28da224fce1a202280a3 | 8b05f84f414b53f4aa89ead06621de99996ae140 | /MonsterChase/Engine/Memory/Source/ReferenceCounter.h | 7fcd941ad87fce60cef965f950cfc8ebe0d0fc8a | [] | no_license | luyao795/PersonalCodeApplication | a32b42ab962aa943b09301a20ee973b9c4203ab7 | 9599c8ddd527a34781c8a50e867fa6c6f1b9bc07 | refs/heads/master | 2021-01-19T20:57:17.349736 | 2018-02-06T16:22:03 | 2018-02-06T16:22:03 | 101,242,133 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 486 | h | ReferenceCounter.h | #ifndef REFERENCECOUNTER_H
#define REFERENCECOUNTER_H
namespace Engine
{
class ReferenceCounter
{
public:
ReferenceCounter() :
smartCount(1),
weakCount(0)
{
}
~ReferenceCounter();
long IncrementSmartReferenceCount();
long DecrementSmartReferenceCount();
long IncrementWeakReferenceCount();
lo... |
e2b2813e2124831b0983238247a60f85375f7a5e | aaf52e3f7570f40b0905ae1a04933697156518f8 | /src/autores.h | 28d08697648ce459754d92060a0cda4510656d14 | [
"MIT"
] | permissive | prantlf/node-posix-ext | a84e0859aee4eb9b12942627e99aab6818377963 | 56631788edc6f2acc666fb549f3eb49d59cbd1e3 | refs/heads/master | 2020-06-02T07:54:19.781754 | 2018-04-29T01:47:25 | 2018-04-29T01:47:25 | 15,496,247 | 6 | 2 | MIT | 2018-06-08T15:33:00 | 2013-12-28T17:35:40 | C++ | UTF-8 | C++ | false | false | 18,091 | h | autores.h | #ifndef AUTORES_H
#define AUTORES_H
#ifdef _WIN32
#include <windows.h>
#include <lm.h>
#endif
#include <cstdlib>
#include <cassert>
#include <new>
namespace autores {
// abstract class for wrappers of resources which need to be freed;
// the destructor disposes of the wrapped resource autmatically
//
// descendant ... |
98f007a53b67e14f023d29a6b26721d082377b90 | d3f1ad1e684f35225a8b162f2a39160e18257634 | /sketch_may16a.ino | 2321a9cb9a9f48776888334a14e663e11133f9ee | [] | no_license | 4RTY05HK4/IoT-Refrigirator | daa2f2359aa26b31830ce9caf37692a76e32d43d | e85d487c9a6ddb17775848a62aac1713ab74dba0 | refs/heads/main | 2023-07-13T02:39:27.076621 | 2021-08-23T17:32:50 | 2021-08-23T17:32:50 | 399,187,936 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,568 | ino | sketch_may16a.ino | #include <LiquidCrystal_I2C.h>
#include <Wire.h>
#include <RTClib.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include <WiFi.h>
#include <ESP32Ping.h>
#include <HTTPClient.h>
RTC_DS3231 rtc;
OneWire oneWire(27);
DallasTemperature sensors(&oneWire);
LiquidCrystal_I2C lcd(0x27, 16, 2);
DeviceAddr... |
46568ac0ff607617e057b5e95238dab0e2ea5cb8 | 338f16b907cdca5d99f6fc4ee978b3dede217615 | /src/authentication/executor/jwt_secret_generator.cpp | 1d7c010a111c8dfcb574e8044694d670b641cf33 | [
"Apache-2.0",
"GPL-2.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-protobuf",
"LGPL-2.1-only",
"PSF-2.0",
"BSL-1.0",
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-2-Clause"
] | permissive | apache/mesos | 24c92eb34ea9cbb2912d6471815a433c9942e0c9 | 8856d6fba11281df898fd65b0cafa1e20eb90fe8 | refs/heads/master | 2023-08-28T06:36:36.458732 | 2023-01-13T21:00:06 | 2023-01-14T00:29:23 | 11,469,439 | 4,860 | 2,034 | Apache-2.0 | 2023-04-12T06:10:25 | 2013-07-17T07:00:13 | C++ | UTF-8 | C++ | false | false | 2,070 | cpp | jwt_secret_generator.cpp | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
1da969c5538cddb5b518632e027a97cbf62151bc | 46fda2ea47f311ee7fefc6f6210811c7f4bd74ad | /www/chromium/files/patch-chrome_services_speech_soda_soda__test__paths.h | 9775a8f1fcec1885ffd6820f652fabacc2db1377 | [
"BSD-2-Clause"
] | permissive | truenas/ports | ad560a8adde884dc0cfc4b292bbbcad91903b287 | da4ed13ad08a6af5c54361f45964fa1177367c68 | refs/heads/truenas/13.0-stable | 2023-09-02T03:00:28.652837 | 2023-08-16T16:05:00 | 2023-08-16T16:05:00 | 8,656,293 | 18 | 9 | NOASSERTION | 2023-09-12T15:15:34 | 2013-03-08T17:35:37 | null | UTF-8 | C++ | false | false | 503 | h | patch-chrome_services_speech_soda_soda__test__paths.h | --- chrome/services/speech/soda/soda_test_paths.h.orig 2021-09-14 01:51:52 UTC
+++ chrome/services/speech/soda/soda_test_paths.h
@@ -34,7 +34,7 @@ constexpr base::FilePath::CharType kSodaResourcePath[]
constexpr base::FilePath::CharType kSodaTestBinaryRelativePath[] =
FILE_PATH_LITERAL("SODA_for_testing.dll");
... |
ec63520dd8c133c56bde0fc7d6748c8887520b06 | 19fde8ce837204bc8ab1a2d34445a7326d95b153 | /wust/1588.cpp | 1a9e40e73cf16f0ac8cca28b57c9037db08eef98 | [] | no_license | JS00000/acmCode | aad59f1fdd66bb3b4b2208c8c5be0f26b7169405 | eda5dbcef4a66618fc27e79184a2ae93618ee6b1 | refs/heads/master | 2021-05-24T04:27:11.966469 | 2021-03-01T08:55:35 | 2021-03-01T08:55:35 | 55,392,212 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,304 | cpp | 1588.cpp | #include <iostream>
#include <cstdio>
using namespace std;
int md[12] = {31,29,31,30,31,30,31,31,30,31,30,31};
int whatDay(int y, int m, int d)
{
int ans;
if (m == 1 || m == 2)
m += 12, y--;
if ((y < 1752) || (y == 1752 && m < 9) || (y == 1752 && m == 9 && d < 3))
ans = (d + 2*m + 3*(m + 1)/5 + y + y /4 + 5) ... |
3d20e97b34656135dd97cbca09d09486345f1fd6 | ee979b1a63104896fe94686f689e593c2df2d4c1 | /datastructures/experimentalProfiling/max_k_heap.h | 51dba7ab22fd706ec66220b383e060d87382855d | [] | no_license | ajgrowney/compscience_intro | dc295704388eb5590b455839466ce6458097e43b | df69b419ef0aee4da812cbe0009f811ad5f235be | refs/heads/master | 2023-08-24T23:03:04.127988 | 2022-05-28T16:40:54 | 2022-05-28T16:40:54 | 253,696,336 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 518 | h | max_k_heap.h | #ifndef MAX_K_HEAP
#define MAX_K_HEAP
#include <math.h>
#include "HeapInterface.h"
template<typename T>
class MaxKHeap: public HeapInterface<T>{
// See Implementation for Pre,Post,Return Conditions
public:
MaxKHeap(int size);
void insert_bottomup(T val);
void insert_upheap(T val);
void buildheap();
bool isEmpt... |
caa6dd806eb433d9858ac684271e7ec91d3f055d | 1e02ed3f3369d36379be725a6b4cec6b155e97c9 | /threads/main.cpp | cb6f5782e82a91f6beadd08dedb03add14c3ef54 | [] | no_license | dormon/prj | 0f803287f316606ff4e0f475930a6f9e7a6b3bb9 | 7ab62eedccd8153ac905fc27f74adcaf634771c7 | refs/heads/master | 2023-08-04T04:23:12.785661 | 2023-07-20T23:19:45 | 2023-07-20T23:19:45 | 89,816,202 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 563 | cpp | main.cpp | #include<iostream>
#include<memory>
#include<set>
#include<vector>
#include<map>
#include<sstream>
#include<thread>
#include<mutex>
#include<chrono>
int data = 0;
std::mutex mtx;
void thread_a(){
std::lock_guard<std::mutex>guard(mtx);
for(int i=0;i<100;++i)
data += 1;
}
void thread_b(){
std::lock_guard<st... |
de670e0fbfab5517d8f469223c0115fd530d7093 | 9a1e18c88790eb05dfcf4a8f6ef50ade8ff4f731 | /objcLib/test/bench/doc/ctut/tmp/boss.h | 0ee19ea794321f1c19a2ce0b649fc8d64ce16c0d | [] | no_license | CodeFarmsInc/QSP | 25d6af4d5bfc064f115ade014a39290f7cc02149 | 031c9fe2ee4008fce3837ed08bff1f6511c26b15 | refs/heads/master | 2021-01-25T14:58:32.496669 | 2018-03-04T01:13:45 | 2018-03-04T01:13:45 | 123,725,986 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,320 | h | boss.h |
// -------- data structure SINGLE LINK ---------------
// EQUIVALENT OF:
// template <class Parent, class Child> class boss_SingleLink
// ---------------------------------------------------
#ifndef ZZ_boss_SINGLE_LINK_INCLUDED
#define ZZ_boss_SINGLE_LINK_INCLUDED
class Department;
class Manager;
// ----------------... |
9a444b2b066dc7158bb09617ea2704d5ee9d475d | 59f03b13be6b0518a3368ee63443c02bc3afb301 | /src/OrbitGl/CaptureViewElement.cpp | 2aecc95158b0a5f7e5402dc6a8665066891c43e7 | [
"BSD-2-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | idfumg/orbit | f91e8d58c3dbe4b88ea19d2b9bc5245d1f3257e4 | 578b20d3647b483b0d7834072b76933891c442fc | refs/heads/main | 2023-07-25T06:29:18.090625 | 2021-08-31T12:54:05 | 2021-09-01T16:36:15 | 402,305,769 | 1 | 0 | BSD-2-Clause | 2021-09-02T05:51:40 | 2021-09-02T05:51:39 | null | UTF-8 | C++ | false | false | 1,264 | cpp | CaptureViewElement.cpp | // Copyright (c) 2020 The Orbit 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 "CaptureViewElement.h"
#include "TimeGraph.h"
#include "Viewport.h"
namespace orbit_gl {
CaptureViewElement::CaptureViewElement(CaptureViewEl... |
493e859d4e6ad32e93c422ce4825bd0388c52618 | 4e3183ff9dcc6a3bc2318deaec8eff6901d6967f | /BaseDataStructure/tree/binarylinkedlist.cpp | 9e25d446f6f1b87e922d3bc7722256fbd787be71 | [
"MIT"
] | permissive | accountos/LeetCodeLearning | 54a471afe974bd1413defacdb9804588131d2041 | 3c22a4fcdfe8b47f9f64b939c8b27742c4e30b79 | refs/heads/master | 2023-08-15T00:41:09.522876 | 2021-02-26T02:36:14 | 2021-02-26T02:36:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,838 | cpp | binarylinkedlist.cpp | //
// Created by Jesson on 2021/2/21.
//
#pragma once
#include<iostream>
#include<stack>
#include<queue>
using namespace std;
struct binary_tree {
int data ; // Data area
binary_tree * left;
binary_tree * right;
};
typedef struct binary_tree node;
/**
*
*边界问题
* @param tree
* @param val
*/
void ins... |
ebe03b3069d17f4aabccff8384eb48eb698c28df | ed854678ba4f278144e26bcfeba9ce6227353f80 | /gravity/gravity.h | 26732beb3700a984a33ccd8e171dbaa65b08a7a9 | [
"BSD-3-Clause"
] | permissive | moses-mugoya/gehuehist | d246115e280d8e8d79cf4dd5075f9a86a3a8c4b2 | 02e69352410c5e2455c74076226868cc1183129c | refs/heads/master | 2020-08-06T00:38:21.480755 | 2016-01-25T11:16:23 | 2016-01-25T11:16:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 250 | h | gravity.h | #ifndef GRAVITY_H
#define GRAVITY_H
#include <vector>
#include <cmath>
using namespace std;
struct Point {
double x;
double y;
Point(double a, double b) : x(a), y(b){};
};
extern void gravity(vector<double>&,vector<double>&);
#endif
|
4f3d2ac5a5c48d0bc5d1c78e449e348ece94b626 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Reconstruction/Jet/JetInterface/Root/IJetConsumer.cxx | c274fa1b6c6cebad41bb89fcdcab2f43f588f8e4 | [] | 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 | 324 | cxx | IJetConsumer.cxx | /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
// IJetConsumer.cxx
#include "JetInterface/IJetConsumer.h"
//**********************************************************************
IJetConsumer::~IJetConsumer() { }
//*******************************************************************... |
77fab655a65f634e0fd56b18a3ae485b2628801d | 6d254e667d22baa19f96aeca858391792589fc9c | /UserService.h | 8de1ab607a3c3dd33c9355d9f93fc78beeee4851 | [] | no_license | mikshaspolya/kursach_oop | feb3a338ab2624d11cfcf1c0397cae0fb3d9805f | 53b90d1a0e43c78210e7ea454c27a0b9a0a6b97a | refs/heads/master | 2023-08-28T20:13:23.665244 | 2021-11-09T15:02:33 | 2021-11-09T15:02:33 | 425,566,593 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 839 | h | UserService.h | #pragma once
#include "BaseService.h"
#include "UserDTO.h"
class UserService : public BaseService<UserDTO>
{
private:
static bool CompareLogin(string login);
static bool CompareLoginAndPassword(string login, string password);
static bool CheckIsAdmin(UserDTO obj);
public:
void Create(UserDTO obj);
vector<UserDTO... |
292c826f894194849ce86f1a09d01e07210ccc36 | 065b12aa319f0431d1ab2912b0893ca357b7109c | /StExBar/src/ContextMenu.cpp | 8406e9b2c3eed4e8bd85c094046ce7cca4d3b2de | [] | no_license | mcjt/tools | 1dfef3e35091292c3901031c3a7cd273936210fb | ed896afbd0e85980a33fc02b5e3dc7372dbc6d8d | refs/heads/master | 2021-05-20T08:40:23.596696 | 2020-03-18T12:58:47 | 2020-03-18T12:58:47 | 252,202,387 | 1 | 0 | null | 2020-04-01T14:42:42 | 2020-04-01T14:42:41 | null | UTF-8 | C++ | false | false | 12,347 | cpp | ContextMenu.cpp | // StExBar - an explorer toolbar
// Copyright (C) 2007-2010, 2012, 2014, 2017 - Stefan Kueng
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your ... |
7c551fea12892c93b7887e31a7960d6c80e30724 | 53e5f3b52f6d3aab128be556f473e9645be9b069 | /include/moost/utils/yesno.hpp | f3dd4c24aca4718763df70b9b1875644fbf9f69d | [
"MIT"
] | permissive | 1901/libmoost | 7fe1fecdbec78f026c40a2d06eb3885dc2105bdf | 895db7cc5468626f520971648741488c373c5cff | refs/heads/master | 2021-01-21T04:11:53.023058 | 2013-02-22T11:49:18 | 2013-02-22T11:49:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,035 | hpp | yesno.hpp | /* vim:set ts=3 sw=3 sts=3 et: */
/**
* Copyright © 2008-2013 Last.fm Limited
*
* This file is part of libmoost.
*
* 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,
... |
8eea565594ee2f328bc9983e89f6085c6d0e3beb | 02df7f45b5e6a451aa660532bc97422f266f4636 | /playground/ast.cpp | df582252bdb243ba81570514743c75a09225f116 | [
"MIT"
] | permissive | tobiashienzsch/tcc | 70a64209ace15282b14a08ffac398daa1b1f217e | 0311a92804fb32baca8b562bb18683e40f4686e2 | refs/heads/master | 2021-06-25T04:08:17.219726 | 2021-04-21T03:30:57 | 2021-04-21T03:30:57 | 227,749,111 | 0 | 0 | MIT | 2020-04-06T21:16:54 | 2019-12-13T03:36:15 | C++ | UTF-8 | C++ | false | false | 523 | cpp | ast.cpp | #include "ast.hpp"
auto operator<<(std::ostream &out, ast_node_type const type) -> std::ostream & {
switch (type) {
case ast_node_type::op: {
out << "Operator";
break;
}
case ast_node_type::constant: {
out << "Constant";
break;
}
case ast_node_type::binary_expression: {
out << "BinaryEx... |
9413bd4426b98253bc1906693654554d64c2ca3b | 51bfe0ba28825cdd60d9980a7a4d35700c3462f9 | /copy cons.cpp | 5e9c5fd7b39834c652115f81272d811b95a6f3f1 | [] | no_license | ManasviRaj/cpp-programs | 0f5ac00f06f6ccf080ba3a85b08b265f28639a89 | cbf3bc43fa164045ba4a3cf5898d472d99fe6c6a | refs/heads/master | 2022-12-28T20:43:55.164369 | 2020-10-17T17:00:37 | 2020-10-17T17:00:37 | 304,926,535 | 0 | 0 | null | 2020-10-17T17:00:39 | 2020-10-17T16:57:43 | null | UTF-8 | C++ | false | false | 413 | cpp | copy cons.cpp | #include<iostream>
using namespace std;
class example
{
int a,b;
public:
example(int x,int y)
{
a=x;
b=y;
cout<<"i m constructor:";
}
example(const example&obj)
{
a=obj.a;
b=obj.b;
cout<<"i m copy constructor:";
}
void display()
{
cout<<"\nvalues:"<<a<<b;
}
};
int main()
{
exampl... |
77df212d4f1d70bb9633ef7ff440ffa069a21bb7 | bc43ce4c2c6dc1217b4a607eaa63bcaa7fdaebd1 | /UVA_code/pset2/forest.cpp | 3bc2aaf1a476a07d21761c5d59e3200492b3d168 | [] | no_license | AlanCBH/ICPC-code-sample | 8216424e94c65a2235f06f2d97889bd626ecc0f8 | 2eebb8496a8f2c50569ff96da98b9bb46f357d7d | refs/heads/master | 2021-08-17T00:13:14.386838 | 2021-06-24T22:04:05 | 2021-06-24T22:04:05 | 219,434,819 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 422 | cpp | forest.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
int num;
string read;
cin >> num;
getline(cin, read);
for (int i = 0; i < num; i++) {
map<int, set<int>> heard;
getline(cin, read);
while (read != '\n') {
size sz;
int p = stoi(read, &sz);
int t = stoi(read.substr(sz));
he... |
c43bef1993a3ae8c995ede94a1ecf9389af7d3d6 | 1eef5d9ce175dd7efca403b3412457b631512bfd | /core/Item_factory.h | 1341fb26531f420d4d02d72edcb412c2e715601a | [] | no_license | AnyaIliyina/geo | 27cd7808ec4b9b1bd750d2ded028d430ba81928b | c4d6617fa6c33a21a6bcfa6b1887b64a010fb146 | refs/heads/master | 2021-01-13T14:37:13.258111 | 2016-05-05T13:44:10 | 2016-05-05T13:44:10 | 53,266,650 | 1 | 0 | null | 2016-04-26T12:20:55 | 2016-03-06T17:17:32 | C++ | UTF-8 | C++ | false | false | 286 | h | Item_factory.h | /*!
\file
\brief Фабрика элементов
\author Чернышев Д.Р.
\date Апрель 2016
*/
#pragma once
#include <QVariant>
class BaseItem;
static class ItemFactory
{
public:
static BaseItem* loadFromDb(int type);
static BaseItem* createNew(int type);
}; |
bdcbc748294c6ba0eb12ec2b40421e906baf13cc | 38b9daafe39f937b39eefc30501939fd47f7e668 | /tutorials/2WayCouplingOceanWave3D/EvalResults180628-Eta-W/28.6/p_rgh | 49d080944719d2b4a737e4717b9e798e8cdee946 | [] | no_license | rubynuaa/2-way-coupling | 3a292840d9f56255f38c5e31c6b30fcb52d9e1cf | a820b57dd2cac1170b937f8411bc861392d8fbaa | refs/heads/master | 2020-04-08T18:49:53.047796 | 2018-08-29T14:22:18 | 2018-08-29T14:22:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 196,990 | p_rgh | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 3.0.1 |
... | |
c4381e6a19fd5e9b970c86dafe4e792541cd313c | d3fb7b8d57cf008beeb662038eefe0ed563a3f77 | /fbEngin/Robo.h | c5d363d9d279cd7334e54735e11d097baeeba1bd | [] | no_license | flanbel/DECIDE | 61fb9e9970742463fe2ab4943ecbf5af380624d3 | 5e27b56d7785238f5584d817e1e79cf697e1380b | refs/heads/master | 2020-04-18T09:47:39.626152 | 2016-09-13T04:58:04 | 2016-09-13T04:58:04 | 66,625,462 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 294 | h | Robo.h |
#ifndef _ROBO_H_
#define _ROBO_H_
#include "Character.h"
class CRobo :public CCharacter
{
public:
CRobo();
//初期化を行う関数(一度のみ呼ばれる)
void Start();
//更新を行う関数
void Update();
//描画を行う関数
void Render();
private:
};
#endif //_ROBO_H_ |
81292ef88966b88b2f76871656f4e6c674858215 | d1ec47ff6acacb9f5368064e4c87f8d3770b016b | /contests/abc169/d.cpp | 91a0388e343a5330e1ec1cae487f817cee62bd60 | [] | no_license | fj0rdingz/Competive_Programming | 8bca0870311b348ea4c38d134f73346edceadf15 | 3dc42a85b7c9f4e77ba8c5488d84fb0f1f3ac75c | refs/heads/master | 2021-10-29T02:25:52.820526 | 2021-10-25T06:23:29 | 2021-10-25T06:23:29 | 252,177,293 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,018 | cpp | d.cpp | #include <bits/stdc++.h>
#define mod 1000000007
#define INF 1001001001
#define ll long long
#define ln cout<<endl
#define Yes cout<<"Yes"<<endl
#define No cout<<"No"<<endl
#define REP(i,m,n) for(ll i=(ll)(m);i<(ll)(n);i++)
#define rep(i,n) REP(i,0,n)
using namespace std;
struct cww{cww(){ios::sync_with_stdio(false);cin... |
663563220896518bc2231e4b72cd1b317fec7c98 | 54681145b1695d3d70329c522b161b790bc7b562 | /leetcode_interleaving_string.cpp | a5f45fd2753b07dc7e9a3e3959710cc968cc0dac | [] | no_license | avyavkumar/coding-solutions | 9d640d3f85447120cc313cdaab9fd1b0f194742f | f4b6cb4cb8050bb997d7ff1c46bedd745fd11c4d | refs/heads/master | 2021-01-11T00:13:13.379101 | 2020-10-01T16:28:57 | 2020-10-01T16:28:57 | 70,577,636 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,243 | cpp | leetcode_interleaving_string.cpp | #include <bits/stdc++.h>
using namespace std;
class Solution
{
public:
bool isInterleave(string s1, string s2, string s3)
{
if (s1.length() + s2.length() != s3.length())
return false;
std::vector<std::vector<bool>> dp;
dp.resize(s1.length()+1);
for (i... |
2186d2b90e232a9ab59f83536cdfaf573f70085a | fbb640cce65ced68430e9ca849c0dd819bf588ec | /src/FeatureTrap.h | b3db9e553aa730904c48dca91c7c885f40c0f27e | [] | no_license | ronw23/ia-osx | 8c452d8516b695f09d11dd5a56bf5a17d9b891b3 | d4c0344c2ab9b1cbe1fe8003850867bc1cde13c6 | refs/heads/master | 2020-04-07T14:20:33.575128 | 2013-04-05T01:06:36 | 2013-04-05T01:06:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,343 | h | FeatureTrap.h | #ifndef FEATURE_TRAPS_H
#define FEATURE_TRAPS_H
#include "Feature.h"
#include "AbilityValues.h"
#include "Art.h"
#include "Feature.h"
#include "ConstTypes.h"
class Engine;
class SpecificTrapBase;
class TrapSpawnData;
enum Trap_t {
trap_blinding,
trap_dart,
trap_gasConfusion,
trap_gasFear,
trap_gasParalyze,... |
2cbcb516eb548240ad68e13d08e2bfc5389e2f3b | 09047d1cffb8cc38478c5b70bd12926e76cf1d18 | /AES/AES/HMAC_SHA2.cpp | 2a5bc55df78dc610d71d9b479dfa1e76da099c66 | [] | no_license | hwajong/visual_cpp | 4938ef5200a5ccd7868e160802218a8f06bf2e85 | 88f790e2bdaaf3e2c885a10caee0a86eea361924 | refs/heads/master | 2016-09-06T04:15:25.326392 | 2014-12-19T12:12:52 | 2014-12-19T12:12:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,255 | cpp | HMAC_SHA2.cpp | #include "HMAC_SHA2.h"
#include <cstring>
using namespace std;
#define _BIG_ENDIAN
typedef unsigned char U8;
typedef unsigned int U32;
#define ENABLE_SHA_256
#define ENABLE_SHA_512
/*
#define ENABLE_SHA_224
#define ENABLE_SHA_384
*/
typedef struct { /* sha-224/256 uses half size of buffer */
U32 bits[4];
U32 in... |
29249592f2cd420cd6eb4130580bd478df88bbbc | 984f870fd8fc3ecdbb4153eff18ff29dd43f3808 | /Trees/tempCodeRunnerFile.cpp | 93553f0475f4b472c1c89e6060308c0c898d37f5 | [] | no_license | sakshamsomani2345/c-plus-plus-practice | 7c777fbb4444cd717bdcc6e77501b74f78c06964 | aa36723642c5f740564bcf95469ebfe0893c5121 | refs/heads/main | 2023-08-06T22:38:52.811277 | 2021-09-03T04:54:31 | 2021-09-03T04:54:31 | 402,649,494 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 842 | cpp | tempCodeRunnerFile.cpp | int sum=0;
if (root == NULL)
{
return 0;
}
queue<Treenode<int> *> pendingQ;
pendingQ.push(root);
while (pendingQ.size() != 0)
{
Treenode<int> *front = pendingQ.front();
// cout << front->data << ":";
sum=sum+front->data;
pendingQ.pop();
for (in... |
b878674db1dd5cad979f96937bc33fdac708ce81 | f5f1cd65c2d9e26a8573cb5bb885fdc486136d7e | /Debugging Exercise/Debugging Exercise/Marine.cpp | 3eb67c9637f2c93fdce04e280ebbbe667ff12269 | [] | no_license | LASpencer/aie-Debugging-Exercise | b7ae85aa0d7a0a5425d19104c9d675dbf6210f8a | 39b3a765d95cc203293720e92caacb748ab61a01 | refs/heads/master | 2021-01-23T05:14:52.090893 | 2017-04-01T14:34:48 | 2017-04-01T14:34:48 | 86,290,753 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 778 | cpp | Marine.cpp | #include <iostream>
#include "Marine.h"
#include "Zergling.h"
Marine::Marine()
{
maxHealth = STARTING_HEALTH;
health = STARTING_HEALTH;
}
Marine::~Marine()
{
}
int Marine::attack()
{
return DAMAGE;
}
void Marine::update(std::vector<Zergling>& targetList)
{
int damage = attack();
std::cout << ATTACK_MESSAGE... |
586a7d0772664ad8fc77c68add99f04bb0b8da6e | eee64ef3b384930cc04de645316e8ffea01b1b72 | /DynamicProgramming/cpp/longestPalindromeSubseq.cpp | 7bdc948f7507a7c562ee0513566e4e4df78985f1 | [] | no_license | XingBin111/LeetCode | 17a8b2d764900510989531198f71bfbfbb601803 | 6bceb5569e45ffc0d83f22467d25380bbc25aa77 | refs/heads/master | 2023-07-22T05:12:32.092963 | 2021-09-09T09:37:48 | 2021-09-09T09:37:48 | 266,281,037 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,523 | cpp | longestPalindromeSubseq.cpp | #include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
bool isPalindrome(const string& s)
{
string::const_iterator begin_iter = s.begin();
string::const_iterator end_iter = s.end();
while (begin_iter < end_iter)
{
if(*begin_iter != *end_iter)
... |
6a84e37cec39c9009c7ccf0bcc35c4401c8bb248 | a4ee06bd408862827bd0dcbb905a213b45bf593b | /PKMN/v2/Editor/AddMapDlg.h | 685d59fceb1b7c74f74c7eed2c2d1328127b485e | [] | no_license | davekessener/VirtualMachine | 1a6b3af761e2763eebd1d61010fda517f51167d5 | 61679dd47f17246cad8261781000cf4aca5bfe14 | refs/heads/master | 2021-01-17T14:53:55.771007 | 2016-05-29T13:15:33 | 2016-05-29T13:15:33 | 14,454,172 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 392 | h | AddMapDlg.h | #ifndef PKMN_EDITOR_ADDMAPDLG_H
#define PKMN_EDITOR_ADDMAPDLG_H
#include "../common.h"
#include "surface/Surface.h"
namespace editor
{
class AddMapDlg : public surface::Surface
{
public:
private:
void i_doInit( );
void i_doUpdate(int) { }
void i_doRender( ) const;
void create( );
private:
surfa... |
6485a1d4ae175d482e841ba2074e5b2a11d54f30 | be6f96fd154cce5215045fb090f58889a91b8bd7 | /MSG_Server/Models/ConnectedUsers/ConnectedUsers.cpp | 14f672c460cf23fbf323ae51afd9c2b3c5ef56f1 | [] | no_license | KillerOfFriend/MSG | d9bb7a10172933cecef33ea2407624e062458b3c | 7d53b66fa2bacb9719b2f1abdc7d1ae07db7cc33 | refs/heads/master | 2020-04-27T21:47:46.036917 | 2019-05-11T07:14:44 | 2019-05-11T07:14:44 | 174,712,199 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,598 | cpp | ConnectedUsers.cpp | #include "ConnectedUsers.h"
#include <algorithm>
#include <QHostAddress>
#include <QColor>
//-----------------------------------------------------------------------------
TConnectedUsersModel::TConnectedUsersModel(QObject *inParent) : QAbstractTableModel(inParent)
{
fUserTypes = std::make_shared<TUsersTypeModelD... |
44ba46d26d86822e9989550b673bffb1cb67c7c7 | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/38/c2bdd4ff297043/main.cpp | 8cde1a65689c2da587821f78da0c232c2fc34126 | [] | 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 | 716 | cpp | main.cpp | #include <string>
struct X
{
int has_some_properties;
std::string data;
};
// now, for our named instances:
// define some character arrays **with external linkage**
namespace Names
{
extern const char Vanilla[] = "Vanilla";
extern const char Banana [] = "Banana";
extern const char Cocon... |
f48aa6d56426292e2a2adec09b7dc0201f40e2fe | 41495754cf8b951b23cece87b5c79a726748cff7 | /Solutions/URI/MARATONA DE PROGRAMAÇÃO DA SBC 2019/maratona_2019_M.cpp | fcc737d4abc8e214487dc76b8b63a8e7dc5cd307 | [] | no_license | PedroAngeli/Competitive-Programming | 86ad490eced6980d7bc3376a49744832e470c639 | ff64a092023987d5e3fdd720f56c62b99ad175a6 | refs/heads/master | 2021-10-23T04:49:51.508166 | 2021-10-13T21:39:21 | 2021-10-13T21:39:21 | 198,916,501 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 773 | cpp | maratona_2019_M.cpp | #include <bits/stdc++.h>
using namespace std;
long long N,C,T;
vector <long long> s;
bool can(long long x){
long long eat = x * T;
long long cont = 0;
long long i;
for(i=0;i<N;i++){
if(s[i] <= eat){
eat -= s[i];
}else{
cont++;
i--;
eat = x * T;
if(cont == C)
bre... |
59d389444a064acdaf6befcede8f18f18e80b197 | 36b1e8298f60f237476617d08b77a375ef95a640 | /BentukanLain6.cpp | 12d2ea973b33c0e92f685471cd13e64ad7798f9d | [] | no_license | Dimesss/Prog.-Tipe-Bentukan-Lain | 45e331e3248342100400667f5e6bd3130ac16b39 | aa946e70ab04690975f2229ae11ab3130a060849 | refs/heads/master | 2022-04-22T03:15:17.674499 | 2020-04-24T07:41:09 | 2020-04-24T07:41:09 | 258,441,296 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 508 | cpp | BentukanLain6.cpp | #include <iostream>
#include <string>
using namespace std;
struct data {
string nama;
long long int stambuk;
string kelas;
} ;
void screen(struct data bio)
{
cout << "Stambuk : " << bio.stambuk <<endl;
cout << "Nama : " << bio.nama <<endl;
cout << "Kelas : " << bio.kelas <<endl;
}
int m... |
a88b5150b2e98f3091bdc35c1a2ecfd58d9d242a | 5290330db470294df6615e38d958d7547e1b21bf | /Volume-109/UVa_10905.cpp | 4233fa1c0f21c77c041b5eeeea9cd2710bffbbdc | [] | no_license | milon/UVa | 897807b9891ab1943245f6640388084a777bfa15 | ba5c1e247bfa442c039deb465c56e9300cc11f0d | refs/heads/master | 2022-06-08T08:30:01.420605 | 2022-05-14T07:15:08 | 2022-05-14T07:15:08 | 11,388,237 | 14 | 12 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 592 | cpp | UVa_10905.cpp | //UVa Problem-10905(Children’s Game)
//Accepted
//Running time: 0.408 sec
#include<iostream>
#include<vector>
using namespace std;
int n;
string str;
bool condition(string a,string b){
bool s =(a+b)<(b+a);
return s;
}
int main(){
while(1){
vector<string>t;
cin>>n;
if(n==0) br... |
0c647ed1ccf0aaf78224ac5abb50a0cb2a270e8f | 5d014d63154f0edbb378375dd82fdb931e0b80c1 | /ppm.cpp | 76e39dddcf3fccb4abe77e8844f62d241b8630c1 | [] | no_license | hta1996/Raytracing | 71c43804cd383e8030cdaff5abee745a06d47e34 | e574690716d2e95dc0fe07f9c11ee98b8421135b | refs/heads/master | 2023-03-18T14:23:28.956515 | 2018-01-20T06:51:16 | 2018-01-20T06:51:16 | 115,580,377 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,877 | cpp | ppm.cpp | //
// ppm.cpp
// Raytracing
//
// Created by hta on 2017/12/17.
// Copyright © 2017年 hta. All rights reserved.
//
#include <stdio.h>
#include "ppm.h"
#include <mutex>
#include <thread>
#include <algorithm>
using namespace std;
void Photontracer::emit(int photonT)
{
double powerT=0;
int tot=0,threadT=Const... |
8c39731376acabf2422aa0049e6220ce0be6cae4 | c3f09fdce1afe96b50809b6e8e6d803329a5b438 | /2013-05-27-note/logic/include/ScriptSystem.h | ae02df1aa9a81ccff56b4f6bdc0ba0b60535b6fb | [] | no_license | xiaoxiaoyi/windows2linuxnote | 7e219f6e58d8b5eeb5c67c9d5d6d717e793da964 | 35ba4b305cb3bc0fe58e4429078d91b6bdb63616 | refs/heads/master | 2021-01-10T20:04:51.806084 | 2013-08-12T13:01:48 | 2013-08-12T13:01:48 | 10,140,640 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,936 | h | ScriptSystem.h | #ifndef _NINJIATRIBE_SCRIPTSYSTEM_H_
#define _NINJIATRIBE_SCRIPTSYSTEM_H_
#include <include/common/Singleton.h>
#include <script_support/CCScriptSupport.h>
#include <string>
using namespace cobra_win;
class ScriptSystem : public cocos2d::CCScriptEngineProtocol, public cobra_win::Singleton2<ScriptSystem>
{
publi... |
c47c6f82b2b74f82aba181d9c1e403244b0abeec | ddf70888736e995a0604cbd8d4adfa8f87dc0c81 | /Source/Core/RenderAPI/RenderAPI/RenderAPIHeader.h | 4c27d277d52093faf5f249b50f428183f24198a8 | [
"MIT"
] | permissive | Cube219/CubeEngine_old2 | 4a9ccb7d4b90e7961b3edefeea03a5a93f3a38c0 | d251d540a4fdbc993ec5c9183eb30ac4dc81d5be | refs/heads/master | 2022-10-15T21:49:55.143857 | 2020-06-16T13:19:09 | 2020-06-16T13:21:58 | 180,976,441 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 934 | h | RenderAPIHeader.h | #pragma once
#include "Base/BaseTypes.h"
#include "Interface/RenderTypes.h"
namespace cube
{
namespace render
{
struct RenderAPIAttribute;
class RenderAPI;
struct DeviceAttribute;
class Device;
struct BufferAttribute;
class Buffer;
class BufferView;
class CommandList;
class Fence;
struct G... |
dac5b4d5a73acf28b6fc372bbecb7d653568d2a4 | 3d11e5d6f1fcf6e415de0c78b25a19c6612bec27 | /include/iris/sensor-api/iris/configuration/PcFlash.h | 4af55e166d44cf551d0e3a7405bdeff8ac5910d5 | [
"LicenseRef-scancode-stlport-4.5",
"BSL-1.0"
] | permissive | LESA-RPI/scr.tof_control | ca3ef2387e5b531c93d4bf3f0ac09994ac71a824 | 418714fb29900ce7fdd4ba0bed9105b0c3d623a7 | refs/heads/master | 2020-03-20T22:15:04.552842 | 2018-08-07T14:18:05 | 2018-08-07T14:18:05 | 137,788,093 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,742 | h | PcFlash.h | // ***************************************************************************
// * _ _ ____ _ ____ ___ *
// * (_)_ __(_)___ / ___| ___ _ __ ___ ___ _ __ / \ | _ \_ _| *
// * | | '__| / __| \___ \ / _ \ '_ \/ __|/ _ \| '__| / _ \ | |_) | | *
... |
4ca8d4f052d6b566a1f9430dfe4fe7acb9fe80ab | aa902a1e732f448afa24a3a0bc2e2212c66ec2d1 | /QASI_AHPUTRI_TT3D_P4_Project_SensorAlkoholMQ7/QASI_AHPUTRI_TT3D_P4_Project_SensorAlkoholMQ7.ino | e6bff4bd5ae06c16bf26f88ecb6eda7cfe371e61 | [] | no_license | qasiahputri/qasiah_sensoralkohol_mq7 | b5d41b69153119a84209b5c2549adbef03f16b36 | bc9c6ec7bb7be745e974e0b61da047244f1dbde2 | refs/heads/master | 2023-01-03T14:42:09.411680 | 2020-10-17T14:58:26 | 2020-10-17T14:58:26 | 304,900,240 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 915 | ino | QASI_AHPUTRI_TT3D_P4_Project_SensorAlkoholMQ7.ino | #include <LiquidCrystal.h>
LiquidCrystal lcd(13,12,11,10,9,8);
int SENSOR_GAS_MQ7=3;
int RED_LED=4;
int GREEN_LED=5;
void setup() {
// put your setup code here, to run once:
pinMode(SENSOR_GAS_MQ7, INPUT_PULLUP);
pinMode(RED_LED, OUTPUT);
pinMode(GREEN_LED, OUTPUT);
lcd.begin(20,4);
lcd.setCursor(0,0);
lcd.print("SI... |
1c0ba1d8bc58feb6a716183482e30226da995504 | 06bed8ad5fd60e5bba6297e9870a264bfa91a71d | /LayoutEditor/automatsummary.h | 9ef01b597c9e8eb816c58fb4ad986a54cfb736e0 | [] | no_license | allenck/DecoderPro_app | 43aeb9561fe3fe9753684f7d6d76146097d78e88 | 226c7f245aeb6951528d970f773776d50ae2c1dc | refs/heads/master | 2023-05-12T07:36:18.153909 | 2023-05-10T21:17:40 | 2023-05-10T21:17:40 | 61,044,197 | 4 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 2,056 | h | automatsummary.h | #ifndef AUTOMATSUMMARY_H
#define AUTOMATSUMMARY_H
#include <QObject>
#include <QMutex>
#include "swingpropertychangesupport.h"
#include "runnable.h"
#include "liblayouteditor_global.h"
class AbstractAutomaton;
class PropertyChangeListener;
class SwingPropertyChangeSupport;
class Runnable;
class LIBLAYOUTEDITORSHARED... |
d5bc524b251ed06c8e56cf106d7859c8a9e3a99f | ddc88be2b47eafe2362756ce58aa1a146e33e5de | /Projects/Arm/main.cpp | b960c2bc3d1c04d92ffbcc629481e5786967399a | [] | no_license | ghsecuritylab/SeniorProject | 04ad9848ccb9e280b15b9e8e06bdbfb521bc0703 | ac934a6cc68f51fa767d74139340d93495b98060 | refs/heads/master | 2021-02-28T14:24:37.309358 | 2018-05-04T19:38:53 | 2018-05-04T19:38:53 | 245,704,715 | 0 | 0 | null | 2020-03-07T20:59:57 | 2020-03-07T20:59:57 | null | UTF-8 | C++ | false | false | 1,563 | cpp | main.cpp | #include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "esp_spi_flash.h"
#include "Source.h"
// #include "Arm_I2C.h"
#include "IMU.h"
#include "Magnet_Encoder.h"
#include "RTOS_Tasks.h"
#include "common_init.h"
extern "C" void app_main()
{
printf("Arm Testing ... |
87817c982adbe8440b39abaaa7f374db10035c7c | 067ce7939ac2884a0ca51b2fc6081cd7608124f9 | /experiment/threadtest_bdb.cpp | 8076a4b0ccda41f78bfbadfc7298766ccfbac6b7 | [] | no_license | Meditator-hkx/NVHT | 7c1d5718f50a5546f946bd8178e775bc3a574626 | b3f571de351acb41220850b0711da62b6f90e025 | refs/heads/master | 2020-03-29T18:16:06.021679 | 2018-09-25T06:44:00 | 2018-09-25T06:44:00 | 150,202,492 | 0 | 0 | null | 2018-09-25T03:28:36 | 2018-09-25T03:28:36 | null | UTF-8 | C++ | false | false | 5,728 | cpp | threadtest_bdb.cpp | #include <pthread.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <unistd.h>
#include <sys/time.h>
#include "db.h"
long long ustime(void) {
struct timeval tv;
long long ust;
gettimeofday(&tv, NULL);
ust = ((long)tv.tv_sec)*1000000;
... |
9ffc5b198da6771f57960f1f5c743b50d2863bc2 | 2c3a39409604a33547ac85fc87d2d94358244db5 | /chapter1/job1-2-2.cpp | 4496d4903e5852d3ee13b728f64764a8d62ed2b6 | [] | no_license | kmysen/C-Primer-study | 12635eaa4da476b844c7bb01d594f5327891bba2 | b4e4f8a46fd2858f06635bdc1276f7a85c075329 | refs/heads/master | 2022-04-25T00:12:55.532092 | 2020-04-28T09:59:21 | 2020-04-28T09:59:21 | 258,926,287 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 217 | cpp | job1-2-2.cpp | #include<iostream>
using namespace std;
int main()
{
int a,b;
cout<<"input 2 integer and i will tell you their sum and product!"<<endl;
cin>>a; cin>>b;
cout<<a+b<<" "<<a*b<<endl;
system("pause");
} |
c4bfe4092dadf60ddbbbf8939d60969681471f7d | f703bebbc497e6c91b8da9c19d26cbcc98a897fb | /camps/summer_school_Kremenchuk_2016/day9/D.cpp | d09d119ea71d48960b310ffbe339aee02a19fd35 | [
"MIT"
] | permissive | mstrechen/competitive-programming | 1dc48163fc2960c54099077b7bfc0ed84912d2c2 | ffac439840a71f70580a0ef197e47479e167a0eb | refs/heads/master | 2021-09-22T21:09:24.340863 | 2018-09-16T13:48:51 | 2018-09-16T13:48:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,284 | cpp | D.cpp | #include<iostream>
#include<cstdio>
#include<vector>
using namespace std;
long long max(long long a, long long b)
{
return a>b?a:b;
}
long long min(long long a, long long b)
{
return a<b?a:b;
}
long long getDoubleArea(long long xBe,long long yBe,
long long xEn,long long yE... |
6405a73fcf8233a3fe8e55f00d0e57f4792d9e6c | 8225b0dfbc468199bf3356abd4639f02ace48491 | /AliAnalysisTaskWeightedSpectrum.cxx | 57aa9b421a6318a25456764133e7cb5b5af79d87 | [] | no_license | gabrielefronze/Upsilon-Task | 14117428ae288a3199e4b0d4780815b4fc553da9 | 6cc7e075ff9c825ebea57b7e643d6bf64c0ef7b6 | refs/heads/master | 2021-01-17T05:09:15.234043 | 2016-06-12T21:46:36 | 2016-06-12T21:46:36 | 59,654,288 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,831 | cxx | AliAnalysisTaskWeightedSpectrum.cxx | #include <iostream>
using std::cout;
using std::endl;
#include "AliMCEvent.h"
#include "TH1.h"
#include "THnSparse.h"
#include "TF1.h"
#include "TGraphAsymmErrors.h"
#include "TMath.h"
#include "TH3D.h"
#include "TList.h"
#include "TChain.h"
#include "TString.h"
#include "TCanvas.h"
#include "TTree.h"
... |
2186daea1e1011c771d3b1618dcc2d9e394e2430 | a6f47c6b702055aa2cc1a9ee051017320a8c602b | /scene/resources/environment.cpp | 069364e7a391d167dd3b7d08c36d0a80a430bad7 | [
"FTL",
"Zlib",
"MIT",
"BSD-3-Clause",
"Bitstream-Vera",
"CC0-1.0",
"MPL-2.0",
"OFL-1.1",
"CC-BY-4.0",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | Stary2001/godot | 849ca3045a687d9b34de7cc24a8b6d26f89f95bc | 00c6ce9716ed542997bc2b59136bceb3729db970 | refs/heads/3.5.2-stable_switch | 2023-05-25T08:38:55.387308 | 2023-04-14T23:07:10 | 2023-04-23T20:32:29 | 148,190,960 | 306 | 38 | MIT | 2023-05-19T20:10:22 | 2018-09-10T17:11:15 | C++ | UTF-8 | C++ | false | false | 67,860 | cpp | environment.cpp | /**************************************************************************/
/* environment.cpp */
/**************************************************************************/
/* This file is part of: */
/* ... |
5cb09ba5eec6843fada5b60c5b0bfaf1fc6a11ee | 81fea7e421f7a8dce11870ca64d4aed1d1c75e04 | /c++03/substitution_test.cpp | 92353e430632400a15270c4033d4355b908b5c01 | [] | no_license | petergottschling/dmc2 | d88b258717faf75f2bc808233d1b6237cbe92712 | cbb1df755cbfe244efa0f87ac064382d87a1f4d2 | refs/heads/master | 2020-03-26T14:34:26.143182 | 2018-08-16T14:00:58 | 2018-08-16T14:00:58 | 144,994,456 | 27 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 450 | cpp | substitution_test.cpp | #include <iostream>
#include <string>
class a
{
public:
int f() { return 3;}
};
class b
: public a
{
public:
float f() { return 4; }
// virtual std::string f() { return "xxx3xxx"; }
};
int main (int argc, char* argv[])
{
a aa;
b bb;
std::cout << "aa.f() = " << aa.f() << '\n';
s... |
62c986ac7276ef4c1a5f23c6a5c0a4dc9b27b8e2 | 4dcaeb327dc2462390825e6d91c366d5beb7944f | /d05/ex01/Form.hpp | 384ac7e091c3260eaf684b602869ae597bd0528c | [] | no_license | sshiling/42-C-Plus-Plus-Pool | 279545b8fa86872a325c8715a9d95345bd4694fe | c3a75afb2d77baa3371147bf9194acdb600183d0 | refs/heads/master | 2020-03-26T20:09:53.216518 | 2018-08-19T15:48:49 | 2018-08-19T15:48:49 | 145,308,357 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,705 | hpp | Form.hpp | #ifndef FORM_HPP
# define FORM_HPP
# include "Bureaucrat.hpp"
class Bureaucrat;
class Form {
private:
std::string const _name;
bool _signed;
int const _grade_to_sign;
int const _grade_to_execute;
public:
Form(void);
F... |
61fbb7b351f5b886030b7962c50a64fee4c827b2 | 7a268e89b96eb853bd4cc8ba814c146988c62e5c | /unboost/functional/hash.hpp | 7e9ff29afd8ab8e2eed7bf32d8713be4fbd9abda | [] | no_license | katahiromz/SpeakJ | 916d1c7f0c339bd934a9884fda93269879a00e44 | a26fdd12b95dd38fbe33f198bfea95c6f6d5bf2e | refs/heads/master | 2021-01-11T16:27:12.700366 | 2018-11-09T08:20:54 | 2018-11-09T08:20:54 | 80,085,404 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,539 | hpp | hash.hpp | // hash.hpp --- Unboost hash
//////////////////////////////////////////////////////////////////////////////
#ifndef UNBOOST_HASH_HPP_
#define UNBOOST_HASH_HPP_
#include "../unboost.h"
// If not choosed, choose one
#if (defined(UNBOOST_USE_CXX11_HASH) + defined(UNBOOST_USE_BOOST_HASH) + defined(UNBOOST_USE_U... |
c74c8cafb061c4816b6dc22c0d3a5f86b75d04ac | b4b59352de09361639f9d9906115c0bb82088ae5 | /GreedySnake/src/modSnake.cpp | 58d921c29e2827c9ef14864bdd72c976a91efd66 | [] | no_license | lml123-1/GreedySnake | 5e8943b252d9e5ce745b5d2e5a7ce750079285c7 | dca9d6ba3d5b6ba09427c4bd2a68bd0d3f1235c4 | refs/heads/master | 2023-06-27T17:34:14.843830 | 2021-08-02T09:31:28 | 2021-08-02T09:31:28 | 391,277,955 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 149 | cpp | modSnake.cpp | #include "modSnake.h"
#include "snake.h"
void modSnakeInit()
{
_MYSNAKEINFO.SnakeInit();
}
void modSnakeRun()
{
_MYSNAKEINFO.SnakeRun();
}
|
072fc04d54777028b09c94d01f37297bf06ef22a | b5844b5c144d8a0e0695291003d72950fff5aabe | /LaproII/Conta_Bancaria/ContaCorrente.h | 4fef1649d5601a97712ea3e6f3ba04cd6b248062 | [] | no_license | William98/Pucrs | 7918b5244323441d380e9d735fd8bd727bf5464d | c7f03a6cc35ef337c1be002a65f1652eb3ee7e7d | refs/heads/master | 2020-03-20T18:46:26.871968 | 2018-06-15T02:19:07 | 2018-06-15T02:19:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,031 | h | ContaCorrente.h | #include "Conta.h"
class ContaCorrente : public Conta
{
private:
double limite;
public:
// Construtora
ContaCorrente(int numero, string nome, double saldo, double l):Conta(numero, nome, saldo){
limite = l;
}
double getLimite(){
return limite;
... |
40621787a736a5d5172dc59c458f8b8cd0fe95c8 | 02c201b1afd2de7f8237adc3737734e19b77cd2b | /src/support/debug.h | f6f560b8fd0f9e7d2a503ba7d8b33b113acd5a70 | [
"Apache-2.0"
] | permissive | WebAssembly/binaryen | 1ce65e58489c99b5a66ab51927a5b218c70ae315 | 90d8185ba2be34fa6b6a8f8ce0cbb87e0a9ed0da | refs/heads/main | 2023-08-31T21:01:27.020148 | 2023-08-31T19:32:33 | 2023-08-31T19:32:33 | 45,208,608 | 7,061 | 768 | Apache-2.0 | 2023-09-14T21:41:04 | 2015-10-29T20:26:28 | WebAssembly | UTF-8 | C++ | false | false | 2,374 | h | debug.h | /*
* Copyright 2019 WebAssembly Community Group participants
*
* 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... |
8b88dfa58649ad1f2e4e85d10350952f191f5112 | 8dfc06b77cf0f346d86276beac10d5c9b931dd9b | /AcmCode/codeforces_300c.cpp | a144708ac2ed3e1d945130840f0b9feb8b0616e6 | [] | no_license | xcszbdnl/TrainingCode | c7ef1f5b3b390dadc43ff586a8adbefe953c627a | b3ea6124a2e9595e73c38e4b37bb092967b94c56 | refs/heads/master | 2020-05-16T22:27:40.998048 | 2017-08-29T14:38:49 | 2017-08-29T14:38:49 | 28,027,399 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,575 | cpp | codeforces_300c.cpp | #include <cstdio>
#include <string.h>
#include <iostream>
using namespace std;
const int MAX_NUMBER = 1000007;
const long long MOD_NUMBER = 1000000007;
long long value[MAX_NUMBER];
bool isGood[MAX_NUMBER * 9];
int a,b;
int length;
int check(int number) {
while (number) {
int temp = number % 10;
... |
9e702ce96a8cf00ba8ba71cac3d0e89b0993709a | 9f520bcbde8a70e14d5870fd9a88c0989a8fcd61 | /pitzDaily/300/U | 1a7be31212ef5d324b64365875d153a8d50d7050 | [] | no_license | asAmrita/adjoinShapOptimization | 6d47c89fb14d090941da706bd7c39004f515cfea | 079cbec87529be37f81cca3ea8b28c50b9ceb8c5 | refs/heads/master | 2020-08-06T21:32:45.429939 | 2019-10-06T09:58:20 | 2019-10-06T09:58:20 | 213,144,901 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 251,336 | U | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1806 |
... | |
6e22334d90d975f1bdc8e99453af6d7e54dfd78c | 2111950850f018472488bb51e0875e0b9da9803a | /Comportement.h | 4131cea7e7736deabfc313db3e193e5f53c505d3 | [] | no_license | morokhalid16/C-ecosystem-simulation | 00c92a66d1ea76fa0b5686b7eab03be3b915dcf9 | 1172093969f5c57b2f3cdde0f90fd5c0e50c278a | refs/heads/master | 2020-11-23T19:51:27.683622 | 2019-12-13T16:00:16 | 2019-12-13T16:00:16 | 227,797,025 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 510 | h | Comportement.h | #include "Bestiole.h"
#include <iostream>
using namespace std;
class Comportement{
private:
int comportement;
bool persoMultiple;
static const float PROBA_GREGAIRE;
static const float PROBA_PEUREUSE;
static const float PROBA_KAMIKAZE;
static const float PROBA_PREVOYANTE;
... |
f240ad3e2256685e9ea2151512de1493a7837cef | c2ad49b2de77aaf04863ae102590dcc7f0d97612 | /Сlass Sparse Matrix/SparseMatrix.cpp | dc9a7bf1b972ac3168b611f59601c4acee4edfd1 | [] | no_license | emilien23/study-Cplusplus | f98734498ebb472cd890e9be8ef7bc63bfed8e12 | a93a2f07b0b434424b27bd2ce92ece6ce66a5def | refs/heads/master | 2021-01-12T13:44:19.502917 | 2017-09-21T07:48:35 | 2017-09-21T07:48:35 | 69,121,942 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 841 | cpp | SparseMatrix.cpp | // 3nomer3.cpp: определяет точку входа для консольного приложения.
//
#include "stdafx.h"
#include <iostream>
#include <windows.h>
#include "SMatrix.h"
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** ... |
1dc9921a6f649efb8617f638d2718e43df35b4f4 | 8fd1ca2affad0450ca42e7ed63a0a1a12d094fcb | /src/GameSettings.hpp | fefb66eb21166d825647ec3170bbb3ba11796faa | [] | no_license | VincentSchmid/raylib-test | 8dafd28a8778c7f8940983708b4787547526cc4b | bbcab17fc5058099d521fc32d9aa48d7898b9e54 | refs/heads/main | 2023-03-28T05:12:42.383951 | 2021-03-20T19:18:39 | 2021-03-20T19:18:39 | 324,949,975 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,132 | hpp | GameSettings.hpp | #pragma once
#include <map>
#include "raylib.h"
using namespace std;
class GameSettings
{
public:
// Camera Settings
const Vector3 upAxis = (Vector3){ 0.0f, 1.0f, 0.0f };
Vector3 camPos = (Vector3){ -10.0f, 10.0f, 10.0f };
Vector3 camTarget = (Vector3){ 0.0f, 0.0f, 0.0f };
... |
49e5d6edc23d6825093be4d9fc786d9196f9bacb | c08a26d662bd1df1b2beaa36a36d0e9fecc1ebac | /classicui_plat/tsrc/bc/apps/S60_SDK3.0/bctestpopups/src/bctestpopupsettingpagecase.cpp | dca3349f548f81c9d0e9acccf3e9440e30c3d3cf | [] | no_license | SymbianSource/oss.FCL.sf.mw.classicui | 9c2e2c31023256126bb2e502e49225d5c58017fe | dcea899751dfa099dcca7a5508cf32eab64afa7a | refs/heads/master | 2021-01-11T02:38:59.198728 | 2010-10-08T14:24:02 | 2010-10-08T14:24:02 | 70,943,916 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,599 | cpp | bctestpopupsettingpagecase.cpp | /*
* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-... |
7fdecc20e92dbde134781ef5fe75e32d757564b7 | 13e980a17ab3fa42493e0dcd8fcb41f073ed71d5 | /2DFrameWork/endingScene.cpp | e7b62ea93937fc1488f9ea69c9755c8730bbe655 | [] | no_license | denialboy1/DragonsCrown | a03f0b55f479d8c8eb6c6f3603c1a2e23efedd61 | ddb22b513c18eb3783d4b77e1e3afcd5c9bae3af | refs/heads/master | 2020-05-20T10:51:05.202576 | 2020-04-03T16:47:20 | 2020-04-03T16:47:20 | 185,532,217 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 623 | cpp | endingScene.cpp | #include "stdafx.h"
#include "endingScene.h"
endingScene::endingScene()
{
}
endingScene::~endingScene()
{
}
HRESULT endingScene::init(){
//동영상 초기화
if (getHVideo()){
MCIWndClose(getHVideo());
MCIWndDestroy(getHVideo());
setHVideo(0);
}
setHVideo(MCIWndCreateA(_hWnd, _hInstance, MCIWNDF_NOMENU | MCIWNDF_NO... |
2fc363b927ae1cca2992b83f963e2d418ec8ba5d | e3c0499cc58c9fbec887a2e85672d5e29588f9e0 | /com/flty.h | 84f364c43e678661b7760f2cb295754ee1cc6984 | [
"BSD-3-Clause"
] | permissive | stevenknown/xoc | bf19fba2a7851f0c91d62846b61f12000993fa94 | 3514aaf0d742e7c1bff956f5a5e96a92102abe8a | refs/heads/master | 2023-05-14T10:18:34.851859 | 2023-04-29T08:15:24 | 2023-04-29T08:15:24 | 40,242,945 | 132 | 19 | NOASSERTION | 2023-09-08T08:04:04 | 2015-08-05T12:02:52 | C++ | UTF-8 | C++ | false | false | 4,789 | h | flty.h | /*@
XOC Release License
Copyright (c) 2013-2014, Alibaba Group, All rights reserved.
compiler@aliexpress.com
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above c... |
6f94f190317bc5d917f5f92c5527328791b796ab | b5e49d5cc2f95cdb07449b7c58c5368ebf0deb23 | /C++/seq_num/653_e.cpp | 18751bf0699ac24687937f9e0affcde3fbf64d55 | [] | no_license | changsongzhu/leetcode | f5140afe8d4a397a9a785b72a12df2c20804ea92 | fea7de085e3f7b012e6bbf661569de00d2a3eb3e | refs/heads/master | 2021-01-22T18:54:04.308549 | 2018-03-30T21:50:48 | 2018-03-30T21:50:48 | 85,131,357 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,018 | cpp | 653_e.cpp | /**
653[E]. Path Sum IV -- Input is a BST
Given a Binary Search Tree and a target number, return true if there exist two elements in the BST such that their sum is equal to the given target.
Example 1:
Input:
5
/ \
3 6
/ \ \
2 4 7
Target = 9
Output: True
Example 2:
Input:
5
/ \
3 6
/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.