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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
841115a51c67c70793a991c3a74466f1d44fe7c4 | 6e882a3a0819b6257f602058b3913cf65376668a | /CNK/samsung/02_16234_main.cpp | 0223d78de4fc752582381338eef28c39a3d84c8c | [] | no_license | hyperpace/study_algo_gangnam | 79e4ffda3306cdd2d7572bd722a5b5ece5469eb5 | 34b017bcd68c67fffcae85a14a17baa4f2e4eb74 | refs/heads/master | 2021-06-12T12:37:31.694167 | 2021-03-20T09:58:54 | 2021-03-20T09:58:54 | 164,384,323 | 0 | 5 | null | 2021-03-20T09:58:54 | 2019-01-07T05:50:18 | Jupyter Notebook | UTF-8 | C++ | false | false | 2,391 | cpp | 02_16234_main.cpp | /*
인구 이동
https://www.acmicpc.net/problem/16234
*/
#include <algorithm>
#include <iostream>
#include <stack>
using namespace std;
int flag_val[2501];
int directions[4][2] = {{0, 1}, {0, -1}, {-1, 0}, {1, 0}};
int diff(int num1, int num2) {
if (num1 > num2)
return num1 - num2;
else
return num2 - num1;
}
v... |
effb86b2521c923c915406d8b065ebe7aa322f86 | c218f85ea0c3f8be36d733a0466cc1ecc54f5c9b | /Classes/ItemBridgeStartPos.h | 04125618c1edad3902dc4be7df3fe5a6579a0e45 | [] | no_license | chengqian1521/Mario | 0dac856ea32823e481188395a284af01f3a6eaf2 | faad1159208b782d51d6ab7125f589c1d5d2ee32 | refs/heads/master | 2020-12-24T09:38:42.510735 | 2018-05-01T08:23:29 | 2018-05-01T08:23:29 | 73,275,809 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 282 | h | ItemBridgeStartPos.h | #ifndef __ItemBridgeStartPos_H__
#define __ItemBridgeStartPos_H__
#include "Common.h"
#include "Item.h"
class ItemBridgeStartPos :public Item
{
public:
static ItemBridgeStartPos* create(ValueMap& map);
bool init(ValueMap& map);
virtual void collisionCheck(float dt);
};
#endif
|
3e59f1580ff66aff20a50484d506947684823490 | 4f088087a3c3d2745d2a7011ef34dda4f84f1d4f | /language/_template/template_name_resolution1.cpp | 524b47b905425de3f0a3d49e47bbe74fd3c532ae | [] | no_license | krisai/cppandstl | fcd7834da6740304a938e2589798ef9def9069f0 | 90eeb2ba4f59a57b5e4005dd3dde04e9e62856fe | refs/heads/master | 2021-01-23T09:01:28.533694 | 2017-10-08T17:44:20 | 2017-10-08T17:44:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 374 | cpp | template_name_resolution1.cpp | #include <stdio.h>
template <class T> class X
{
public:
void f(typename T::myType* mt) {
mt->p();
}
};
class Yarg
{
public:
struct myType {
void p()
{
printf("%s\n", "asdsadasdasd");
}
};
};
int main()
{
X<Yarg> x;
x.f(new Yarg::myType());
print... |
72e8118bc046ad871f44dd2ec976e0d45da162ba | 6e8dbcf3a86abfb8f631b222ee910f43623a832e | /week1/Sieve of Eratosthenes.cpp | 8ab2ceb3863d96353694a550d9e960090e3e21fc | [] | no_license | Yegizbayev/Algorithmtracking | 81694bc3581219cff1d5cde9c22cb4e5d06670b2 | e87aeb5fde61ea44677bd30ef9baa3b445360cdf | refs/heads/master | 2021-01-13T13:32:49.851307 | 2016-11-08T05:54:48 | 2016-11-08T05:54:48 | 72,587,438 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 391 | cpp | Sieve of Eratosthenes.cpp | #include <iostream>
#include<algorithm>
using namespace std;
void erotos( int n,int m ){
int i,j;
bool was[m];
for ( i=n; i<=m;i++ )
was[i]=false;
for ( i=n; i<=m; i++ )
{
if ( was[i]==false )
for ( j=i*i; j<=m; j+=i )
{
was[j]=true;
}
}
for ( i=n; i<m; i++ )
{
if ( !was[i] )
cout<<i<<" ";
... |
f626b36a7a50b92701b1577e855daf3b1b17739d | cf6e5d4176fcc491de1a4143a1fe662f1eb5ed85 | /src/qt/passion/subscription/subrow.h | 7b92fca5c3732a88d539822668d2486747ea53ba | [
"MIT"
] | permissive | PassionCash/PassionCashCoin | 58b5190a655e8c0643b2df65a48ff3bc362cff4e | 389a2fce7458cb400b900b0e816ed24db90f3c92 | refs/heads/master | 2023-06-03T12:19:19.191633 | 2021-05-08T19:19:15 | 2021-05-08T19:19:15 | 308,874,915 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 664 | h | subrow.h | //Copyright (c) 2021 The PASSION CORE developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef SUBROW_H
#define SUBROW_H
#include <QWidget>
namespace Ui {
class SubRow;
}
class SubRow : public QWidget
{
Q_OBJECT... |
33bd499e1df59d54a9226b89084eed8e07dbc734 | 7b85d5e9763acde7405d9738bafe82f735ce19a5 | /ScrabbleGame/main_window.h | f103e7c6b58d48adf15c8bd0345a766cff510e85 | [] | no_license | sepoquro/Public-Projects | 808b0b420c577d81467970663503965ac871e3e2 | 0260530647be9bdc32c6fd54ea4162672cf03e4a | refs/heads/master | 2021-01-22T19:48:43.701810 | 2017-05-29T11:31:22 | 2017-05-29T11:31:22 | 85,241,449 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,723 | h | main_window.h | #include <QWidget>
#include <QVBoxLayout>
#include <QLabel>
#include <QLineEdit>
#include <QTextEdit>
#include <QPushButton>
#include <QListWidget>
#include <QSpinBox>
#include <QMessageBox>
#include <string>
#include <vector>
#include "Dictionary.h"
#include "Board.h"
#include "Bag.h"
#include "Player.h"
#include "... |
d164b99d1fa7681ef876e4b2a0777a6be8972be8 | d5328e2f5c2817cf8e558119f7084528a9ab75eb | /src/Common/Errors.cpp | 2598db91125cd4591d8d12da0e9b90c5ba39fe82 | [
"MIT"
] | permissive | arudei-dev/Feral | a0e31517fd809533b5b1b8836c69fb991cf0d1c1 | 44c0254f9f85dbf0f11f8cc1f86dc106f6a16d92 | refs/heads/master | 2023-06-09T11:24:00.851064 | 2021-06-29T13:21:59 | 2021-06-29T13:22:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,055 | cpp | Errors.cpp | /*
MIT License
Copyright (c) 2020 Feral Language repositories
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, modi... |
e88cc1c6a0fe56b37ff7454ac56b0a44310e454f | 82a2be8e2f9ee82aae96d0a82bf77aa1a4db3a46 | /plugins/Substance/Source/SubstanceCore/Private/SubstanceCallbacks.h | 86b4aa0885c9cb986df6cdf243bf1c3e5cce51cd | [] | no_license | JoelWaterworth/Mice | 38d35d4a4e9f71b3f5288a8982d326b2c8bd50b4 | c19cf172ee0fe88c2dbdf9e72a8dbb3265b967b4 | refs/heads/master | 2021-09-14T04:04:38.670168 | 2018-05-08T03:42:10 | 2018-05-08T03:42:10 | 106,102,739 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,445 | h | SubstanceCallbacks.h | // Copyright 2016 Allegorithmic Inc. All rights reserved.
// File: SubstanceCallbacks.h
#pragma once
#include "substance/framework/typedefs.h"
#include "substance/framework/callbacks.h"
namespace Substance
{
class GraphInstance;
class OutputInstance;
struct RenderCallbacks : public SubstanceAir::RenderCallbacks
{
pu... |
18a04a871956486942bc86b9b6f166ac91c2f911 | 06a761b58f775e48aee48aeb372d4d8255e5c7cc | /lib/class_hmr.cpp | fea08198c4b218a8ce1173bc179d50d5935603cc | [] | no_license | zoom1539/pb_hmr | c70e24f93387ca4aefc347236abcd4a6ab6ecf6e | 7bbf8bef39a762c0959a17296625511308d31f62 | refs/heads/master | 2023-07-26T12:24:50.282847 | 2021-08-28T07:44:22 | 2021-08-28T07:44:22 | 377,339,215 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,225 | cpp | class_hmr.cpp | #include "class_hmr.h"
#include "class_hmr_.h"
class HMR::Impl
{
public:
_HMR _hmr;
};
HMR::HMR() : _impl(new HMR::Impl())
{
}
HMR::~HMR()
{
delete _impl;
_impl = NULL;
}
bool HMR::serialize(const std::string &wts_path_, const std::string &engine_path_)
{
return _impl->_hmr.serialize(wts_path_, engi... |
58e127cbb26c49077c53d22e12489e224390f966 | 3fdd5833b04cd9bd1a9250d582da10727c6600fd | /College projects/Sistemas Interaccion Persona Computador (C++ y Diseño Web)/ReconocimientoGestos/ReconocimientoGestos/MyBGSubtractorColor.cpp | 66d87389be1cc285cc7c632abc9cb96d53005ec1 | [
"MIT"
] | permissive | clooney2007/Dev | b3bbec5cebb01d11717fbcaa41763d5327049bcf | d080e040a2b1205b7b15f5ada82fb759e3cd2869 | refs/heads/master | 2023-03-24T13:47:34.611185 | 2020-07-29T19:32:00 | 2020-07-29T19:32:00 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 3,883 | cpp | MyBGSubtractorColor.cpp | #include "MyBGSubtractorColor.hpp"
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/video/background_segm.hpp>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <string>
using namespace cv;
using namespace std;
MyBGS... |
9050b11e5405cea98bd728824d62ca3ce330d429 | 9a3f8c3d4afe784a34ada757b8c6cd939cac701d | /InterviewBit/Heaps And Maps/waysToFormMaxHeap.cpp | 69f7f11cba7ad51ae13b7e79293f6ad481937dfa | [] | no_license | madhav-bits/Coding_Practice | 62035a6828f47221b14b1d2a906feae35d3d81a8 | f08d6403878ecafa83b3433dd7a917835b4f1e9e | refs/heads/master | 2023-08-17T04:58:05.113256 | 2023-08-17T02:00:53 | 2023-08-17T02:00:53 | 106,217,648 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,394 | cpp | waysToFormMaxHeap.cpp | /*
*
//*************************************************************Ways to form Max Heap.*****************************************************
https://www.interviewbit.com/problems/ways-to-form-max-heap/
*******************************************************************TEST CASES:********************************... |
7886174138e7aa8271596ec9b4d2d686cd35f062 | 0149ed842327e3133fc2fe7b49d6ee2e27c22021 | /shared/test/unit_test/gen11/icllp/excludes_gen11_icllp.cpp | e2bdb191e3691b59095f1ce5d9a623d36780eb9a | [
"MIT"
] | permissive | intel/compute-runtime | 17f1c3dd3e1120895c6217b1e6c311d88a09902e | 869e3ec9f83a79ca4ac43a18d21847183c63e037 | refs/heads/master | 2023-09-03T07:28:16.591743 | 2023-09-02T02:04:35 | 2023-09-02T02:24:33 | 105,299,354 | 1,027 | 262 | MIT | 2023-08-25T11:06:41 | 2017-09-29T17:26:43 | C++ | UTF-8 | C++ | false | false | 602 | cpp | excludes_gen11_icllp.cpp | /*
* Copyright (C) 2021-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/test/common/test_macros/hw_test_base.h"
HWTEST_EXCLUDE_PRODUCT(ProductHelperTest, givenProductHelperWhenAskedIfAdditionalMediaSamplerProgrammingIsRequiredThenFalseIsReturned, IGFX_ICELAKE_LP)
HWTEST_EXCLUDE_PROD... |
9bcddbb25f68207233f716e6b68d70ba15feb9a1 | 09f0d4908bb4a5ca51fa617205d789f2a398eb0e | /Freecell/include/PokerCardFreeCell.h | 74f19272383a5b1f5388b78a93052ca068eede98 | [] | no_license | zhous20/memorableAssignments | c9257db29d9ca06991def5e6f4b78fc69f21b5c8 | 7f6c538731cb411d5edc503916ab30cac97ce362 | refs/heads/master | 2023-02-23T14:12:43.847882 | 2021-01-19T06:39:31 | 2021-01-19T06:39:31 | 330,874,912 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,862 | h | PokerCardFreeCell.h | ///
/// \file PokerCardFreeCell.h
/// \author Shengchen Zhou
/// \brief The PokerCardFreeCell module (header)
/// \date 6 Apr 2018
///
#ifndef _POKERCARDFREECELL_H_
#define _POKERCARDFREECELL_H_
#include "PokerCardSeq.h"
class PokerCardPile;
class PokerCardFoundation;
///
/// PokerCardFreeCell type
///
class PokerC... |
df8eb89407eb97380e1517e7a3d60c4e249e3276 | bfb085fb890f22ed55f575ae42704878afc4a77b | /buble_sort/buble_sort.cpp | f2e5a244edbe2f076f90503c436b67166fa3aadd | [] | no_license | hikarido/sorts | b64af7fecc55f23c2135f99ae8690a18679e568d | 17c32baccec54796ef67669c4f1cb4a9473b0764 | refs/heads/master | 2020-05-28T08:52:20.962122 | 2017-07-11T20:49:06 | 2017-07-11T20:49:06 | 93,986,499 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,630 | cpp | buble_sort.cpp | #include "buble_sort.h"
void buble_sort(int * array, const int size)
{
//int tmp = 0;
for(int i = 0; i < size; i++)
{
for(int j = 0; j < size; j++)
{
if(array[j] > array[i])
{
//tmp = array[i];
//array[i] = array[j];
//arr... |
7b4186f4be9fd197f1e503c255f8419b42a34fdf | 9d1260f544bda8bf8705ac122bbb8402536502fe | /Source/Game/Asciimon/asciimon_evolver.h | f65da014ec0f3ce1b05f1ac3a01c801975f8b77a | [
"MIT"
] | permissive | Hopson97/ASCIImonClassic | d9cfa47ab20bed589318ee99416fc7cb865b1b99 | a20d0e7272c512434f767d128642a057b5b20ca5 | refs/heads/master | 2022-06-26T10:54:11.326829 | 2018-04-03T12:03:59 | 2018-04-03T12:03:59 | 64,428,967 | 1 | 1 | MIT | 2022-06-18T17:38:31 | 2016-07-28T21:20:25 | C++ | UTF-8 | C++ | false | false | 358 | h | asciimon_evolver.h | #ifndef ASCIIMON_EVOLVER_H
#define ASCIIMON_EVOLVER_H
#include "asciimon.h"
class Asciimon_Evolver
{
public:
Asciimon_Evolver( Asciimon& asciimon, unsigned id );
void evolve ();
private:
Asciimon getEvolvingInto ();
Asciimon& m_asciimon;
unsigned m_evolveInt... |
435937a8946692a955647cd550747ade0107e3c9 | b96092a1d83dfbd0543abcd90a45d849b969fd6d | /include/tasks/task.h | 4615ee883b09ea073c9a4aa98566c0bc2dc1d961 | [
"MIT"
] | permissive | wizehun/CNN-on-flash | a022d0282bfd2c3065fd5d95cf31a4fce88af240 | c76c0fd13a7fdb05711662953b7ead741e500c28 | refs/heads/master | 2022-03-26T12:39:48.852812 | 2019-11-26T13:11:16 | 2019-11-26T13:11:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,685 | h | task.h | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#pragma once
#include <atomic>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include "logger.h"
#include "pointers/pointer.h"
namespace flash {
extern std::atomic<FBLAS_UINT> global_task_counter;
... |
97489f82ba41d37105314bec0e81e30bba6be377 | d670e1b3608f3b0d9db3715d3822c28c2db95e06 | /src/roomsfromimage.h | f21b56f05cf0c1065811ee209ee56396bef8f209 | [] | no_license | pdJeeves/MapEditor | d576e5aa2c66e3d59e326454250c309d2c8272c3 | 9309067b4d9b21e0658aeda7c017f2d4cb91a4f5 | refs/heads/master | 2020-07-27T14:28:09.070687 | 2017-04-14T16:50:50 | 2017-04-14T16:50:50 | 77,937,553 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 732 | h | roomsfromimage.h | #ifndef ROOMS_FROM_IMAGE_H
#define ROOMS_FROM_IMAGE_H
#include "verticies.h"
#include "room.h"
class RoomsFromImage
{
static std::list<Verticies> getInverseVerts(const std::list<Verticies> & vertex_data);
static void insertVertex(std::list<Verticies> & vertex_data, uint16_t color, uint16_t color2, int x, int y, int ... |
3c0b20082f55aaa43a28eeab9f4555cecf9ab591 | a689ecf7fa37fc4710ee4e95782ecf2a2c86535a | /tirateima.cpp | 9536decd781ed0449fd70c9ee7a8e954af621223 | [] | no_license | GabrielMM123/CodCad | 2fb6d2bd128e106fb69bedddc9e75c06964200d3 | ab2e955cd87cc95a9a49d862a28180f898750494 | refs/heads/master | 2021-09-09T05:30:28.327547 | 2018-03-14T01:20:35 | 2018-03-14T01:20:35 | 125,135,995 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 212 | cpp | tirateima.cpp | #include <iostream>
using namespace std;
int main(){
int x,y;
cin>>x>>y;
if(x < 0 or y < 0 or x > 432 or y > 468){
cout << "Fora";
} else{
cout << "Dentro";
}
}
|
ee980befa83f91e1ca755c7def687413e03811ab | 16b19fde836c7deb9b3d1e50682dbca23e010166 | /50.Manager/09.TileMgr/TileMgr.cpp | 6de24f08dbb1265b8ab56f70da6aa293aec5ed05 | [] | no_license | js7217/Win32API_MapleStory | 8fe898140b5dc7be93405f13dfc3f2f90fc97bc2 | 1aa18cbd608d988a9e0d5195eca8faaed10d67ed | refs/heads/master | 2021-05-19T05:47:33.273520 | 2020-03-31T09:16:36 | 2020-03-31T09:16:36 | 251,553,337 | 2 | 0 | null | null | null | null | UHC | C++ | false | false | 3,442 | cpp | TileMgr.cpp | #include "stdafx.h"
#include "TileMgr.h"
#include "Player.h"
#include "Tile.h"
#include "Scene.h"
#include "SceneMgr.h"
#include "AbstractFactory.h"
IMPLEMENT_SINGLETON(CTileMgr)
CTileMgr::CTileMgr()
{
}
CTileMgr::~CTileMgr()
{
Release();
}
void CTileMgr::TileCollision(CObj* pDst, CScene* pScene)
... |
8edccf18247595d785ae4bd93f72e7614bb54c3f | 83cc38e86db979610d3b07de13a13b728154de65 | /Программирование встроенных систем управления/03_lab/03_lab/07_Keyboard/07_Keyboard.ino | 4d4f5431e046f314075d76050488cbad05427ffd | [] | no_license | Murad255/Sharaga_ | ffa412f0f5ae4dd4cc7f8bec2329e075026389fb | 3ba1ff62c0933b942e6fbbbb370e7e18ee49a682 | refs/heads/master | 2023-04-02T02:28:57.289478 | 2023-03-22T12:44:16 | 2023-03-22T12:44:16 | 178,941,358 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,749 | ino | 07_Keyboard.ino | /*
* Все кнопки подключены к одному аналоговому входу «A0» используя цепочку резисторов, которые выдают разное опорное напряжение для «А0» при нажатии любой кнопки.
* Eсли кнопки не нажаты напряжение на «A0» через резистор R2 (2кОм) будет 5В. Другие резисторы не влияют на схему, а при чтении аналогового вывода «A0» ... |
504a29b61480eb58bab81f022879ea8640d3a490 | c2e431f2ea8b7ea819b67e1e81952f0471359721 | /FMCW_Radar/Scripts/RFCalculator/RFCalculator.cpp | 2f3799543e548ec8127fb9a81808993322787b5c | [] | no_license | Matt-Santos/CircuitProjects | 7e2424c1189a85cba6f5b6a18599e68fbac46391 | 5ad0be7a630b01645bea09ae90aade39af1678c3 | refs/heads/master | 2021-09-15T22:38:33.910161 | 2018-06-11T21:36:35 | 2018-06-11T21:36:35 | 115,241,715 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 516 | cpp | RFCalculator.cpp | // Program for RF Reflection Calculations
// Written by Matthew Santos
// ID: 103103503
#include <string>
#include <iostream>
#include <list>
#include <iterator>
using namespace std;
#define MAX_DISTANCE 100 // meters
#define MIN_DISTANCE 1 // meters
#define DISTANCE_INC 0.1 // meters
int main(){
//Create Distan... |
270a141d5d022e74e7b8738e85ec350d3b7d5b7b | b219519f94e6c6782f641a5a9d2dcf22537fac3b | /normal/CF/ED_121/C.cpp | 7954c0dc7b6decc784c4655101603dafb3d603b8 | [] | no_license | liangsheng/ACM | 71a37a85b13aa7680a095cf0710c50acb5457641 | 0e80385b51e622b2b97431ac650b8121ecd56e51 | refs/heads/master | 2023-06-01T06:37:51.727779 | 2023-05-14T03:16:18 | 2023-05-14T03:16:18 | 9,337,661 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,391 | cpp | C.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
int main() {
// ios::sync_with_stdio(false);
// cin.tie(0);
int T, n;
cin >> T;
while (T--) {
cin >> n;
vector<int> k(n + 1), h(n + 1), L(n + 1), p(n + 1);
for (int i = 1; i <= n; i++) cin >> k[i];
f... |
7b9d225fac6940f7ba206bf9f0af8a59b1e87077 | 0d3a8b4082f3d62d3bb406e86dff0747b6d40706 | /include/unirender/vulkan/PipelineCache.h | 2b2bb77372d302bff83fa13122c743fdd4741584 | [
"MIT"
] | permissive | xzrunner/unirender | 8eef1049d1db435650b5e19ef8a2db0d096fbd18 | b6273c560a53650780f0211f7715ebb2467744ab | refs/heads/master | 2022-09-04T16:29:44.001102 | 2022-08-15T22:49:27 | 2022-08-15T22:49:27 | 259,783,656 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 449 | h | PipelineCache.h | #pragma once
#include "unirender/noncopyable.h"
#include <vulkan/vulkan.h>
#include <memory>
namespace ur
{
namespace vulkan
{
class LogicalDevice;
class PipelineCache : noncopyable
{
public:
PipelineCache(const std::shared_ptr<LogicalDevice>& device);
~PipelineCache();
auto GetHandler() const { return m_han... |
12210a134a968d7f2e4a7bf2cf81c7c6054ee56f | 8668491d9ed32921de147c093445d48b4166d9f5 | /Lab 6/lab 6.2/Source.cpp | fdbd7b364cde533af1888aed024a6a2c98b1a4af | [] | no_license | ToniPaltus/Labs_Cpp | 8f972ddea6b490cb3347d6a6814694c98a491912 | c2123d3405efc7d7d63057040823c2e5f586fdc4 | refs/heads/main | 2023-08-15T19:59:34.217565 | 2021-10-12T21:11:24 | 2021-10-12T21:11:24 | 416,497,367 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 5,021 | cpp | Source.cpp | /*
* Выполнить задания для текстового и бинарного файлов. Задания выпол-
нить через функции. Размер файлов <= 64GiB.
3. Компоненты файла f – целые числа, четных чисел столько же, сколько нечет-
ных. Получить файл g из чисел исходного файла, в котором не было бы двух со-
седних чисел одинаковой четности.
*/
#include "Fu... |
f342a9c7aee11f7d76d2bc09433963a96ffb20c4 | cdf54f698b3482862710a2b206dedda52ecc7522 | /src/xor_game.cpp | b9efcdaf743b8a15d7e0ab27e2992bda5873ecbe | [] | no_license | ygshuwu/note | 5bd5758c2740094e509db8e514bf6f600e91799a | 4a8e361eedc3eb5a4a749a5672b7f21f88abeb39 | refs/heads/master | 2020-04-19T09:31:22.289190 | 2019-02-06T16:53:54 | 2019-02-06T16:53:54 | 152,205,535 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 775 | cpp | xor_game.cpp | //leetcode:810
#include <iostream>
#include <vector>
#define N 1500
using namespace std;
vector<bool> tag(N,false);
bool xor_game(vector<int> &num)
{
//1.female first.
//2.assume the initial x=0 and the start is for(int &a:num){x^=a}
//3.if x==0,then female will failed,if x!=0 female always could find two differen... |
36b532f3bb39468c5b1ed1317a4641f371502ec6 | cdb011163d6bd08c9fd5ad23dbf234636107a28d | /tests/CppUTest/AllocationInCppFile.h | 6246cf13e3dd1e2fb9f772f2d116753deb7f8a74 | [
"BSD-3-Clause"
] | permissive | basvodde/cpputest | 438736398fd39a5847450d31ac1f3d6a120880ce | 52949320d24d61792084a5fed0cc6c8a01fc400c | refs/heads/master | 2022-09-16T05:46:41.855627 | 2022-08-26T14:10:14 | 2022-08-26T14:10:14 | 22,344,404 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 359 | h | AllocationInCppFile.h | #ifndef ALLOCATIONINCPPFILE_H
#define ALLOCATIONINCPPFILE_H
char* newAllocation();
char* newArrayAllocation();
char* newAllocationWithoutMacro();
char* newArrayAllocationWithoutMacro();
#if CPPUTEST_USE_STD_CPP_LIB
class ClassThatThrowsAnExceptionInTheConstructor
{
public:
_no_return_ ClassThatThrowsAnException... |
5a9d007c6a73ab2c26d0aeb5f2d7c86393f163a8 | 97ce80e44d5558cad2ca42758e2d6fb1805815ce | /Source/Foundation/bsfEngine/GUI/BsGUIScrollBarHorz.h | b9d6d1195783b6e17f48def86ee87d1bb9bd6349 | [
"MIT"
] | permissive | cwmagnus/bsf | ff83ca34e585b32d909b3df196b8cf31ddd625c3 | 36de1caf1f7532d497b040d302823e98e7b966a8 | refs/heads/master | 2020-12-08T00:53:11.021847 | 2020-03-23T22:05:24 | 2020-03-23T22:05:24 | 232,839,774 | 3 | 0 | MIT | 2020-01-09T15:26:22 | 2020-01-09T15:26:21 | null | UTF-8 | C++ | false | false | 2,971 | h | BsGUIScrollBarHorz.h | //************************************ bs::framework - Copyright 2018 Marko Pintera **************************************//
//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
#pragma once
#include "BsPrerequisites.h"
#include "GUI/BsGUIScrollBa... |
d81433dc60e1384d6a72bc6e8448c0dfbf5c3df4 | eb4efd4adf1677568b81624fb46312a6e4d18a6a | /include/rt1w/rng.hpp | c1bdaf364e7811d6750245387b49b24bf48f5fe0 | [
"MIT"
] | permissive | guerarda/rt1w | 61c82c903d0c9184080dff3c7f518b18046dcebc | 2fa13326e0a745214fb1a9fdc49a345c1407b6f3 | refs/heads/master | 2020-09-10T16:59:40.963361 | 2020-05-19T01:18:24 | 2020-05-19T01:18:24 | 67,761,401 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 343 | hpp | rng.hpp | #include "rt1w/sptr.hpp"
constexpr float OneMinusEpsilon_f32 = 0.99999994f;
constexpr double OneMinusEpsilon_f64 = 0.99999999999999989;
struct RNG : Object {
static uptr<RNG> create();
virtual uint32_t u32() = 0;
virtual float f32() = 0;
virtual uint32_t u32(uint32_t bound) = 0;
virtual float f3... |
28537f2ffa533ed83a4c8f842a6176449f8a8ddd | dcdbd888828f7d2b4f7cdad0c0bccf812679c22b | /Bankers_Algorithm/Owen_Zachary_Bankers.cc | 475743a50c2843ee684d03b922fee3f812640c09 | [] | no_license | HackyZach/OS-Concepts-CPSC-351 | 2b6b3e469a03b9fb156996fb12304ade97629604 | 8b05e241f9e403964e2af5e714a9420d1bfabde2 | refs/heads/master | 2020-03-19T08:27:59.838241 | 2018-06-07T05:56:41 | 2018-06-07T05:56:41 | 136,206,653 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,130 | cc | Owen_Zachary_Bankers.cc | /*
Owen, Zachary
CPSC 351: OS Concepts
Professor McCarthy
Banker's Algorithm
*/
#include <iostream>
#include <cstdlib>
#include <thread>
#include <mutex>
#include <chrono> // embedded system, real-time
#include <random>
using namespace std;
#define NUMBER_OF_REQUESTS 10
#define NUMBER_OF_RELEASES 5
#define REQUEST_A... |
f42f3aeecc0d482c0e97f6b817668f6aab13d2c5 | 507691a83a58d87aae1cabefcad8ab0d5c9434ae | /engine/src/RulesOfGameInstances.cpp | 4319063f75e957343dba1171e0c77a3f5ed2f2da | [] | no_license | VicNumber21/checkers | f17640e9a14a8049fd935705fa258ee3b10d74b4 | e240d82cc2d615b708d91bffad4681a1656f1ded | refs/heads/master | 2021-01-20T07:03:09.258992 | 2012-08-03T16:09:29 | 2012-08-03T16:09:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,257 | cpp | RulesOfGameInstances.cpp | #include "RulesOfGameInstances.h"
#include "AmericanCheckersBoardTraits.h"
#include "AmericanCheckersPositionAnalyser.h"
using namespace Checkers::Engine;
template <class BOARD_TRAITS, class POSITION_ANALYSER>
void RulesOfGameInstanceTemplate<BOARD_TRAITS, POSITION_ANALYSER>::activate()
{
m_objects.reset(new Rules... |
463bdf28d7af1a4a81141239680b5dc6badc0acc | bff3d3026b49eb7bad880f6a8daca12e6ea19c03 | /lena-x2-test.cc | 0659ff724b5653c0c160ba8322cc05202ea05981 | [] | no_license | ahmadhassandebugs/lte_simulation_ns3 | 377765f6044850b3efd87556b66434331cf3fe2b | ccb499e7bd64ffbf53638d653a70bc7eb9f04678 | refs/heads/master | 2022-06-20T09:07:41.427892 | 2019-05-30T12:07:18 | 2019-05-30T12:07:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,181 | cc | lena-x2-test.cc | #include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/internet-module.h"
#include "ns3/mobility-module.h"
#include "ns3/lte-module.h"
#include "ns3/applications-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/config-store-module.h"
#include "ns3/flow-monitor-helper.h"
#include "ns3/f... |
244edb46adc615f74f851d4e9a01836405a844a1 | 17fa41df54e1b6f03564b139d875267f72a470b3 | /server/Source/FluidOscServer.h | e4c15ba263f206af41eb20837d863f630b44c809 | [] | no_license | anattolia/fluid-music | 038295d40aab173bba087bd222221b86869de41d | fc25160d79871c00ce3cea05613e9d8c9c470a88 | refs/heads/main | 2023-02-13T06:33:36.661038 | 2021-01-23T06:30:48 | 2021-01-23T06:30:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,782 | h | FluidOscServer.h | /*
==============================================================================
FluidOscServer.h
Created: 18 Nov 2019 5:50:15pm
Author: Charles Holbrow
==============================================================================
*/
#pragma once
#include <iostream>
#include "../JuceLibraryCode/Ju... |
e99b16a334f0f892adcc930aafc9563b055b548c | 4cb12e2e1f202ac8cb96bcca6b3518d73f2bdebb | /lab6/funcs.h | 39fe002eb706fbf543eae5a1fed8b0902dce9197 | [] | no_license | Kushendra1/135-Labs | 35b980177b74c7c8fdc59e8b39aaa1136611185c | 8eab72480f9a830a43e50a9dc5b0b1447495292c | refs/heads/master | 2021-06-19T17:46:37.202332 | 2019-09-05T22:59:00 | 2019-09-05T22:59:00 | 206,665,423 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 511 | h | funcs.h | #pragma once
#include <iostream>
// sample signature
void test_ascii(std::string sentence);
char shiftChar(char c, int rshift);
std::string encryptCaesar(std::string plaintext, int rshift);
std::string encryptVigenre(std::string text, std::string keyword);
char shiftLeft(char c, int lshift);
char shiftRight(char c, ... |
2f8c53edfac813e5dafdc00deaaf8255508ff04f | 087de73d56e71aa5e939af09933cdc12405892bf | /codechef/Mathison_and_pangrams.cpp | b64a4054d8599c08bb0ffdf8bab5a1729e549d45 | [] | no_license | dineshmakkar079/My-DS-Algo-code | 4b7330a62e4f615c239d08af50e4dc5f66aebf00 | 52dbb641d13a2e132fb9b61bd2f34b5b00da1143 | refs/heads/master | 2021-03-30T17:14:05.512323 | 2017-10-22T05:14:48 | 2017-10-22T05:14:48 | 93,957,454 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,426 | cpp | Mathison_and_pangrams.cpp | /*
Time : Sat Aug 26 2017 19:40:18 GMT+0530 (IST)
URL : https://www.codechef.com/LTIME51/problems/MATPAN
Read problems statements in mandarin chinese, russian and vietnamese as well.
Mathison recently
inherited an ancient papyrus that contained some text. Unfortunately, the text was not a PANGRAM.
Now, Mathison has a... |
492a3c4266e86ee888a45f41741ff51df9c30938 | d18b939f416737da54419d9b1e91d0c761cbb677 | /src/domain/log/AircraftLog.cpp | 500d78da66141bd6796c7482c4f45d4b53751ec8 | [] | no_license | wellington3110/AirportSimulation | fd10dee3f3ec48dd3b92db1e30730bfdeb734fe5 | 6f7b72710ff8295ce6fe88f9966b24dab5391b64 | refs/heads/master | 2021-01-19T16:04:55.861716 | 2017-09-13T16:15:53 | 2017-09-13T16:15:53 | 100,984,391 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,256 | cpp | AircraftLog.cpp | #include "AircraftLog.h"
static Log* instance;
Log* AircraftLog::getInstance()
{
if(!instance)
instance= new AircraftLog;
return instance;
}
void AircraftLog::generateMessages()
{
messages[REQUESTING_LANDING ]= "Aircraft Log: Avião [x] solicitando pouso";
messages[RECEIVE_PE... |
d388ef0260f3e881ad36ca282924a12abc0e4cbb | 1749bc75e1a9f2622b4240331bf2ce0bd2082e01 | /compiled/interface/trainData.h | 9b9d90202abc35326afeaafb98b2be1f95880232 | [
"Apache-2.0"
] | permissive | schoef/DeepJetCore | cdd6c33b7e16c9b5f58a6fe9eb523be41e2c3244 | 70508d34bac0b7e0d07b65984c70816c48a53f19 | refs/heads/master | 2023-02-25T20:33:56.512602 | 2021-01-27T09:45:52 | 2021-01-27T09:45:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,762 | h | trainData.h | /*
* trainDataInterface.h
*
* Created on: 5 Nov 2019
* Author: jkiesele
*/
#ifndef DEEPJETCORE_COMPILED_INTERFACE_TRAINDATAINTERFACE_H_
#define DEEPJETCORE_COMPILED_INTERFACE_TRAINDATAINTERFACE_H_
//#define DJC_DATASTRUCTURE_PYTHON_BINDINGS//DEBUG
#ifdef DJC_DATASTRUCTURE_PYTHON_BINDINGS
#include <boost/p... |
1345814654cc96f02cf3b78faf9006b76a53212d | 1579910d094db659fd55f72225a4cf9f9a69e0da | /SinglyLinkedList/SinglyLinkedList.cpp | 8a951ec43f518c7bf5e469c92d61552ab2841d7a | [] | no_license | zincxenon/DataStructures | 850662a30851942a5c626887eb96c749b013e441 | 70cd892dc26ae22dbd8a9b6f9016f17c53cb3fa9 | refs/heads/master | 2020-12-24T22:29:27.169403 | 2014-05-23T05:59:33 | 2014-05-23T05:59:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,675 | cpp | SinglyLinkedList.cpp | #include "SinglyLinkedList.h"
SinglyLinkedList::SinglyLinkedList() {
head = new ListNode;
it = new ListIterator(head);
}
/* TODO: Finish these methods */
// SinglyLinkedListList::SinglyLinkedList(int * arr) {
// head = new ListNode;
// it = new ListIterator(head);
// //
// }
// SinglyLinkedList::SinglyLinkedList... |
b7369efa5e79095a1b61daa58287a90d41b052fb | cf7a3bade6974469dfad25ab006ca7ffd3a20576 | /ibrdtnd-0.12.0/src/routing/breadcrumb/BreadcrumbRoutingExtension.cpp | 6151f21c4c121ad01201662d05bbfb6824a95f7b | [
"Apache-2.0"
] | permissive | tkalbar/ibrdtn | 2e8053a42df74f96a26255e2808e2f636f0675fc | 7107a308ca8aa63f41c0b1ae4444beb58f0527c6 | refs/heads/master | 2020-12-31T03:34:29.392723 | 2014-07-08T14:44:07 | 2014-07-08T14:44:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 35,223 | cpp | BreadcrumbRoutingExtension.cpp | /*
* BreadcrumbRoutingExtension.cpp
*
*/
#include "routing/breadcrumb/BreadcrumbRoutingExtension.h"
#include "routing/QueueBundleEvent.h"
#include "routing/NodeHandshakeEvent.h"
#include "net/TransferCompletedEvent.h"
#include "net/TransferAbortedEvent.h"
#include "core/NodeEvent.h"
#include "core/Node.h"
#include... |
7cc4a973991e43986da84c691bcefebeb8062de7 | afa02ca05aa63d7ba7d752d4c80080c238c3959d | /src/Player.h | b83ba793428f2f208546223702058e48d4b9de00 | [] | no_license | nattfv/SabrePlusPlus | 512a4ae1321a651d24fc0b0ef88fb5d25536184c | 568080b5dd27c07d328569637f357773b4324690 | refs/heads/master | 2021-05-09T01:53:33.635140 | 2014-06-02T20:19:47 | 2014-06-02T20:19:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 871 | h | Player.h | /*
* Player.h
*
* Created on: Jan 27, 2014
* Author: sarniakjr
*/
#ifndef PLAYER_H_
#define PLAYER_H_
#include "Board.h"
#include "TileBag.h"
#include "Move.h"
#include <vector>
class Player {
public:
Player(std::string n, Board *b, TileBag *tb) :
name(n), board(b), move(b), points(0) {
}
virtual ~P... |
b7f0fdec395e15875a60e4e7e0767b975b447544 | 821b0cd7db54c96de5d4e24deb6f6d20952a1054 | /main.cpp | 4395f8a821207df450af382d21f6536fc88ff657 | [] | no_license | kornerr/lua-research | f7e4f67aefbca952d694d137f1ebca341f946013 | 1b149a9db9acbfd6a37ba18e200c088fd5139767 | refs/heads/master | 2021-01-01T19:31:15.976561 | 2017-07-29T05:46:34 | 2017-07-29T05:46:34 | 98,598,683 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,057 | cpp | main.cpp |
#include "colors.h"
#include "function.h"
bool loadLuaFile(lua_State *L, const char *fileName)
{
if (luaL_loadfile(L, fileName) || lua_pcall(L, 0, 0, 0))
{
printf(
"ERROR. Cannot load Lua file '%s': '%s'\n",
fileName,
lua_tostring(L, -1));
lua_pop(L, 1);
... |
3b4e6da06ceadfae8dbc259395b67cbecc8fb438 | ea7d278a54b88e45f414ca1f091de173da2951fc | /Proffy/DebugEventCallbacks.cpp | 69ee4c08805000b2748a9a0f6333a7998d9a5b0c | [
"ISC"
] | permissive | pauldoo/proffy | 191e2600178aaaea30f926a5509443810f8416fc | bd0494422073610f75e9768f7bd90d992a34ca31 | refs/heads/master | 2020-03-27T03:40:12.826532 | 2016-01-22T21:17:42 | 2016-01-22T21:17:42 | 568,783 | 24 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 10,901 | cpp | DebugEventCallbacks.cpp | /*
Copyright (c) 2008, 2009, 2012 Paul Richards <paul.richards@gmail.com>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOF... |
b12603d44378d2589ae9c9fb7688c36217fae76b | 9cd52e90be49244a525e15a7790f574747f3ea3b | /Collector.h | 32190ff504574ae93eb7d56201d1184f1744cbb8 | [] | no_license | achicu/mycompiler | 0a4fe5da0de3f2efb60c22ad5a0cf798dc0c3841 | e4d10f363c0c89c622e96e9a95134849924796ee | refs/heads/master | 2021-01-01T16:05:03.368462 | 2009-09-17T15:01:51 | 2009-09-17T15:01:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,741 | h | Collector.h | /*
* Collector.h
* lex
*
* Created by Alexandru Chiculita on 9/14/09.
*
*/
#ifndef COLLECTOR_H
#define COLLECTOR_H
#include <vector>
#include "RefCounted.h"
class RegisterFile;
template<size_t bytesPerWord> struct CellSize;
template<> struct CellSize<sizeof(uint32_t)> { static const size_t m_value = 64; }... |
1351fbfadaa9b900e3c5af0871c863bf9d76b9ef | c5fea32065e03070d1543a4eb580aaa41851412d | /linearregression.cpp | 19ab001f5ef83b1949226fb73bcfd3ecb87da492 | [
"Unlicense"
] | permissive | kyosheek/multidimensional_linear_regression | 2d27ba4fc4c31f7054d818e51cac1ec4e0bf8697 | 7c13e7db36bdf52202593f3054947c1ce856c51e | refs/heads/master | 2021-09-02T04:59:14.427827 | 2017-12-30T15:13:58 | 2017-12-30T15:13:58 | 115,803,834 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,089 | cpp | linearregression.cpp | #include <iostream>
#include "linearregression.h"
using namespace std;
LinearRegression::LinearRegression(double x[], double y[], int m) {
this->x = x;
this->y = y;
this->m = m;
}
void LinearRegression::train(double alpha, int iter) {
auto *J = new double[iter];
this->t = graident_descent(x, y, alp... |
3fedc965ebe59e01ab320e36cc0c04fd2a71839b | 1ef7b2a0fbcab871896b05c358de903c011b2473 | /casbin/rbac_api.cpp | 5ab2d3d392cbfab9b0b5371e848f4f3a4323ec62 | [
"Apache-2.0"
] | permissive | casbin/casbin-cpp | 88d6fc2f9ea0e17d8efbdf212c83dc81c2175de7 | 3e4241300808d72ba56bf6139c5339c7ce16beb2 | refs/heads/master | 2023-09-04T09:05:14.545386 | 2023-08-08T05:33:02 | 2023-08-08T05:33:02 | 243,148,805 | 221 | 90 | Apache-2.0 | 2023-09-11T18:28:29 | 2020-02-26T02:22:05 | C++ | UTF-8 | C++ | false | false | 9,313 | cpp | rbac_api.cpp | /*
* Copyright 2020 The casbin Authors. All Rights Reserved.
*
* 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 ... |
eda6d9264fd5e4cedc64d0b140ea109544a89846 | 75593770082f839c23d9aaac7fb1e32d97c18a7b | /Core/Core.h | 197010e01c3dbee7e47ef6667462a64c0373921f | [] | no_license | cn1504/Core | 51aa96ec802efe61c16d854e7a9e4024abf69236 | 11fbc8acfecc0eaeb69de3195f2823c26a8bb00e | refs/heads/master | 2020-04-05T23:07:34.178914 | 2014-06-18T19:45:11 | 2014-06-18T19:45:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,407 | h | Core.h | // Standard Engine Includes
#pragma comment(linker, "/SUBSYSTEM:windows /ENTRY:mainCRTStartup") // Hides the console window
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <list>
#include <deque>
#include <unordered_map>
#include <iomanip>
#include <memory>
#incl... |
20c42da52a25d87ff2ce986e4609941a92acd6b9 | 8f03c97d56a4de714ce4c91e7450f28eb1d14d49 | /SD_write_test/SD_write_test.ino | 4ce167df4e4c7913dc24314826472399b125f9c7 | [] | no_license | MichaelDouglass/hand_tracking_device | 7b2233937d590967264fbe4e946feba9d072727a | b847b10c7caf924c32c086c99a2c88d694d3e976 | refs/heads/master | 2020-05-18T03:13:32.643620 | 2019-05-08T07:18:09 | 2019-05-08T07:18:09 | 184,138,770 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,938 | ino | SD_write_test.ino | #include <SD.h>
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BNO055.h>
#include <utility/imumaths.h>
Adafruit_BNO055 bno = Adafruit_BNO055(55);
File myFile;
void setup()
{
Serial.begin(9600);
Serial.print("Initializing SD card...");
// On the Ethernet Shield, CS is pin 4. It's set as an o... |
c379d72d7283da899da571ede10708df45c6b9b6 | 4173182847aeefa4e075b87a0f76feb07b4e2221 | /lab-3/lab-3-cpp/src/dpa_definition.cpp | 4df0d464022d0253d7b5c0011103a156f5bc2a17 | [] | no_license | hermanzdosilovic/utr | 4a5ecbbb7e4e867c29b4be6fa3655dbc1b2954f8 | c4ac9d4e305f271dd50bb5d5cd9246d16ff9e4e8 | refs/heads/master | 2020-07-19T10:31:45.969864 | 2015-05-31T12:42:04 | 2015-05-31T12:42:04 | 32,258,922 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,111 | cpp | dpa_definition.cpp | #include "dpa_definition.h"
DPADefinition::DPADefinition() {
}
void DPADefinition::Read() {
states_ = ReadStates();
alphabet_ = ReadAlphabet();
stack_symbols_ = ReadStackSymbols();
acceptable_states_ = ReadAcceptableStates();
initial_state_ = ReadInitialState();
initial_stack_symbol_ = ReadInitialStackSym... |
a67798c0b79fd0b7fa8774a6008c306ff65e359f | a524ec3e87c62c6db1c7859b79b0730ff3ffe7fc | /lib/shmem/src/concurrentsync/semaphore.cpp | 937d670e8e965c64b2361f7141d58330fe96ab04 | [
"BSD-3-Clause"
] | permissive | nickeskov/AdvCpp_hw | cb1fcce67dbbf59d68d3b3c76eca0b95140e4cf5 | 304dc53b34843aed4b618887af196c51e7d7b2bf | refs/heads/master | 2023-05-25T23:34:42.874858 | 2023-05-11T22:51:22 | 2023-05-11T22:51:22 | 248,765,497 | 0 | 0 | BSD-3-Clause | 2023-05-11T22:51:23 | 2020-03-20T13:43:35 | C++ | UTF-8 | C++ | false | false | 1,373 | cpp | semaphore.cpp | #include "shmem/concurrentsync/semaphore.h"
#include "shmem/errors.h"
#include <cerrno>
#include <utility>
namespace shmem::concurrentsync {
Semaphore::Semaphore(bool is_process_semaphore, unsigned int value): is_empty_(false) {
if (::sem_init(&semaphore_, static_cast<int>(is_process_semaphore), value) < 0) {
... |
ee9028ce7e658cb6d15234c2c8e8e90a6d5a1517 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /components/omnibox/browser/inline_autocompletion_util_unittest.cc | f533f324eb0e854314f0496ac9f9e1a62a38715c | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 832 | cc | inline_autocompletion_util_unittest.cc | // Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/omnibox/browser/inline_autocompletion_util.h"
#include <stddef.h>
#include "base/strings/utf_string_conversions.h"
#include "testing/gmock/include/gmock/... |
97c98b2af65ccf571724957a11ef5b5ad401e0cb | 548b5edfa38f557878cc71ecd93d5441fdc1b73e | /Площадь n-угольника на плоскости/main.cpp | 67a302ad79abdcc67a13ab60464d1649f9767465 | [] | no_license | pmpu-133/general | 63ecfed396c6d561abfe7c87bc448ce6a0a581ef | b86f3e5107857ec94555c523f8c4892f3b7a613b | refs/heads/master | 2020-04-25T04:23:57.447159 | 2019-11-17T19:07:24 | 2019-11-17T19:07:24 | 172,509,018 | 1 | 2 | null | 2019-11-17T19:07:25 | 2019-02-25T13:15:43 | C++ | UTF-8 | C++ | false | false | 1,005 | cpp | main.cpp | #include <bits/stdc++.h>
using namespace std;
struct Vector{
double x, y;
Vector (double _x=0, double _y=0) {
x = _x;
y = _y;
}
Vector operator * (double a) {
return Vector (a * x, a * y);
}
double operator ^ (Vector a) {
return x * a.y - a.x * y;
}
... |
912f8dd17cd519a948f5356b8d6cdf53e8287e9a | f0f1063b5e6917ab6450d35b7bf5ffba4255c29b | /source/SensorData/main.cpp | 15feb0a3d3b228149bdb0dfcafec8cd71fe048ea | [] | no_license | zerohachiko/SensorData | a1462e114690b44a3a408dec46e01d316dc6069c | e277d60d246502cdec02ca3a7635bf785b4759f3 | refs/heads/master | 2020-07-04T02:13:57.104908 | 2016-11-26T03:29:08 | 2016-11-26T03:29:08 | 74,219,080 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,772 | cpp | main.cpp | #include "HttpPost.h"
#include <QApplication>
#include "QDir"
#include <QDebug>
#include <QDate>
#include <QTime>
#include <QTextCodec>
void customMessageHandler(QtMsgType type, const char *msg)
{
QString txt;
switch (type) {
//调试信息提示
case QtDebugMsg:
txt = QString("Debug: %1").arg(msg);
break; ... |
8d4947b2e6d5c8e00423e600a2a76f246688512e | 4eddea9fee782e0d5ae1f9ca43326fd5de9cb053 | /Charts/WidgetCharts/piechart/donutbreakdown/donutbreakdownchart.h | 006dc37e1b3074f35c5b35ff349a399eb09d6b84 | [] | no_license | joesGit15/Qt | b4bc1d6ad89958ad740dd0e6fcb85d6ad67b0f41 | 373679af75e3d2fc38512ed0c34dd6f6c5b947d7 | refs/heads/master | 2022-01-25T17:24:33.763192 | 2022-01-06T15:01:23 | 2022-01-06T15:01:23 | 100,150,203 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 528 | h | donutbreakdownchart.h | #ifndef DONUTBREAKDOWNCHART_H
#define DONUTBREAKDOWNCHART_H
#include <QtCharts/QChart>
namespace QtCharts {
class QPieSeries;
}
using namespace QtCharts;
class DonutBreakdownChart : public QChart
{
public:
DonutBreakdownChart(QGraphicsItem *parent = 0, Qt::WindowFlags wFlags = 0);
void addB... |
977d2309cb1f6867af6e92092e903cdaac4242a8 | 7f8ad1557d8aff2fb67738f4b8a7830642203fbc | /src/core/pinhole_camera_info.cpp | f381d5a6cd452cb76285fc7ed28603f6f95797e7 | [
"BSD-3-Clause"
] | permissive | Lab-RoCoCo/fps_mapper | c8afb9533edbecb9c9fe47a3cd4c4928dee2b8eb | 376e557c8f5012e05187fe85ee3f4044f99f944a | refs/heads/master | 2021-01-10T18:47:13.211881 | 2015-07-25T14:14:53 | 2015-07-25T14:14:53 | 35,717,494 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,156 | cpp | pinhole_camera_info.cpp | #include "pinhole_camera_info.h"
namespace fps_mapper {
using namespace std;
PinholeCameraInfo::PinholeCameraInfo(const std::string& topic_,
const std::string& frame_id,
const Eigen::Matrix3f& camera_matrix,
const Eigen::Isometry3f&offset_,
float depth_scale_,
int id,
boss::IdCont... |
74e9009f92c2982fecfa31a6b6d40d10773b1a26 | bc84ffab49351bed0cd4edaf4f55be2ef8fe8da5 | /NQueensProblem/NQueensProblem/main.cpp | c92e0e4539da87646631ddea47a8748c637d1943 | [] | no_license | jjhartmann/strident-octo-weasel | 8b81682d621e48a0e9725fc1586e507a3a80baf1 | d7489b5362547a8b913e459db0254a9de7c5eca8 | refs/heads/master | 2020-04-12T02:31:17.091513 | 2018-02-21T20:21:47 | 2018-02-21T20:21:47 | 45,711,022 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,008 | cpp | main.cpp | //////////////////////////////////////////////////////////////
// Main - N Queens Problem
#include <iostream>
#include <vector>
using namespace std;
typedef pair<int, int> Point;
////////////////////////////////////////////////////////////////
// Chessboard Class
class ChessBoard
{
public:
ChessBoard(int n) :
... |
0891d2d193e25160eac12e9e7c0ffbd05be4f43b | fa313b319b030d5e07ea9c715174674d0ce14dc6 | /hw6/copy.cc | 3d07bea48d63873b8e39821d2041cf8fdc37a7c0 | [] | no_license | fengshi99/homework | bae88d1eabfd0ca9b48fc7752a1a3f5500ff05f1 | 941c14a3dcc1b84b82963c9b40ddaf1cf73e9123 | refs/heads/master | 2020-04-16T10:02:21.603248 | 2019-01-17T07:41:25 | 2019-01-17T07:41:25 | 165,487,355 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 641 | cc | copy.cc | #include <iostream>
using std::cout;
using std::endl;
using std::cin;
class Point
{
private:
int _x;
int _y;
public:
Point() = default;
Point(int x,int y):_x(x),_y(y){}
~Point(){}
Point(const Point& P){
_x = P._x;
_y = P._y;
cout << "calling copy constructor! " << endl;
}
Point& operator=(const Point&);
... |
911d0e84253b9574c2e76c42e862673bf4be254e | 2b984e87cc5239bda08a9de7ddd31ad2a18774d5 | /baekjoon/11097.cpp | 4197a4cb9539b6a814ba0517289b4f26aff51a63 | [] | no_license | pce913/Algorithm | f862d0f450471c3b910bcf50e684caf856ec4165 | 1cb695972ea6804c8d669a9b606f1aaf87360af6 | refs/heads/master | 2022-02-08T06:51:39.537054 | 2022-01-31T16:20:03 | 2022-01-31T16:20:03 | 110,357,251 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 4,909 | cpp | 11097.cpp | #include<stdio.h>
#include<vector>
#include<cstring>
using namespace std;
int M[305][305];
int adj[305][305];
int parent[305];
int sccCnt;
bool check[305];
int Find(int x){
if (x == parent[x])
return x;
else
return parent[x] = Find(parent[x]);
}
void Union(int x,int y){
x = Find(x);
y = Find(y);
if (x != y){... |
606997923ceee802b63217886c55b3927ae92e91 | e6148031b471d952dbf1615d05eb47013591216f | /code/Nowcoder2019/day2/H_zayin.cpp | ceab50bfdfabf534faa8e342280c142a628a0321 | [] | no_license | Dafenghh/Training_Summary | 1bdc2a3efaf5dd8e71f9c4a566c4245727769c57 | c38f8d2062a87ead98cf65f3255a5960351f6002 | refs/heads/master | 2021-06-03T11:49:03.488574 | 2020-02-09T16:19:53 | 2020-02-09T16:19:53 | 144,736,350 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,590 | cpp | H_zayin.cpp | #include<bits/stdc++.h>
#define maxn 1050
using namespace std;
int n,m;
char s[maxn];
int h[maxn];
int stk[maxn],tp;
int L[maxn],R[maxn];
int cnt[maxn][maxn];
int main() {
scanf("%d%d",&n,&m);
int ans=0;
for (int i=1;i<=n;++i) {
scanf("%s",s+1);
for (int j=1;j<=m;++j)
... |
6fc9a2bead2ab6eb96e1354ac8e01873359942c7 | f0b7bcc41298354b471a72a7eeafe349aa8655bf | /codebase/apps/cidd/src/CIDD/data_pu_proc.cc | 047ab028be9107dc149e0852aa99f40bdeb2a8d8 | [
"BSD-3-Clause"
] | permissive | NCAR/lrose-core | 23abeb4e4f1b287725dc659fb566a293aba70069 | be0d059240ca442883ae2993b6aa112011755688 | refs/heads/master | 2023-09-01T04:01:36.030960 | 2023-08-25T00:41:16 | 2023-08-25T00:41:16 | 51,408,988 | 90 | 53 | NOASSERTION | 2023-08-18T21:59:40 | 2016-02-09T23:36:25 | C++ | UTF-8 | C++ | false | false | 5,994 | cc | data_pu_proc.cc | // *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
// ** Copyright UCAR (c) 1990 - 2016
// ** University Corporation for Atmospheric Research (UCAR)
// ** National Center for Atmospheric Research (NCAR)
// ** Bo... |
c94e362d29afda122c18b20d316dd4d1fea1aee4 | fac41520f67a8bb4881496fc205f26360ba66096 | /binder-demo-master/include/test/ITest.h | 4ff628e4bc14102eb2ea9510ba197520e607926f | [] | no_license | Liangwb/android | 2b9b6f10a3ee647673f836e078f3032a2dd572d9 | 3e8355ff5614a5dbf92b2e592d5dc3ba9c858230 | refs/heads/master | 2020-06-28T04:27:51.165316 | 2019-08-02T01:49:55 | 2019-08-02T01:49:55 | 200,142,548 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 746 | h | ITest.h |
#ifndef ANDROID_ITest_H
#define ANDROID_ITest_H
#include <utils/RefBase.h>
#include <binder/IInterface.h>
#include <binder/Parcel.h>
namespace android {
class Parcel;
class Surface;
class IStreamSource;
class IGraphicBufferProducer;
class ITest: public IInterface
{
public:
DECLARE_META_INTERFACE(Test);
vi... |
5a9a2c677d934008f88b1a37a4bf7c11d50e3ff9 | 5071065c885bc3bb3a4d0025654ebdf00ef9e357 | /5/Bit_Vector.cxx | bd755b2b4c1d9da36ad820c8ca9833e53c1ddc21 | [] | no_license | ybai69/Cpp-program | 4c2b072a8b33d6489d1f00b1cf81771e7290d0d4 | 9a29b17ebc00b5fcf269e44c39e0a1376768a9f5 | refs/heads/master | 2021-01-18T16:07:16.010999 | 2019-08-23T01:03:32 | 2019-08-23T01:03:32 | 86,713,843 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,012 | cxx | Bit_Vector.cxx | // Bit_Vector.cxx implements the class declared in Bit_Vector.h.
// Note: You don't have to change this code.
#include <iostream> // for istream, ostream
#include <climits> // for CHAR_BIT, #bits in a char
#include <cassert> // for assert()
#include "Bit_Vector.h"
using namespace std;
void Bit_Vector::write(ost... |
3a18ffcc184e6a3d56dfb7ca40b66628b2bd789b | 9254d35b527df03c1791a21d5bc43fbcd4bea0f1 | /AppliIHM/serviceControle2/lot.cpp | 43e59cdcecb78ff0915730c114b86045d8549b5f | [] | no_license | BaptisteAngot/BTSEpreuve | 40273e0a05b45cc50d17a37033f8c33908db8c5b | e51508e0bccff122ef156fae10ec888a36c09994 | refs/heads/master | 2020-11-30T05:49:01.736882 | 2019-12-26T20:59:03 | 2019-12-26T20:59:03 | 230,323,176 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 247 | cpp | lot.cpp | #include "lot.h"
#include <iostream>
using namespace std;
Lot::Lot(ProductionPersonnalise &pp, int quantite, string numCommande, bool statut) : pp(pp)
{
this->quantite=quantite;
this->numCommande=numCommande;
this->statut=statut;
}
|
585483a4b69c3bed01af54766a2f2ad96aef126b | 1345397c014d757daf99e4d782d76b502c3c6e2a | /cxx_271/change/main_1a.cpp | bf38d0ace380d3f785756199b8d95a736a033deb | [] | no_license | eobrie16/courses | 637dc912c949ac00509b590b65a8b213fe6c5298 | f660ca2a2791ef115e84230cceea90dba8f802bd | refs/heads/master | 2023-02-25T11:21:37.465227 | 2022-02-11T04:19:18 | 2022-02-11T04:19:18 | 85,152,794 | 0 | 0 | null | 2023-02-16T02:48:20 | 2017-03-16T04:30:50 | HTML | UTF-8 | C++ | false | false | 1,610 | cpp | main_1a.cpp | #include <iostream>
using namespace std;
struct CHANGE
{
int tens;
int fives;
int ones;
int quarters;
int dimes;
int nickels;
int pennies;
};
void printChange(CHANGE chg)
{
cout << "tens=" << chg.tens << " fives=" << chg.fives << " ones=" << chg.ones<<
" quarters="<< chg.quarters << " dime... |
ee55c200253b448f15589f4c9fd752ccbfad68f5 | 648a23ea59771a8ed11a94440b6ec51f3ba97e4d | /Desktop/CHEGG/c++/priorityqueue.cpp | 4ab761a023e981d60b8e737b3db50c208d3a3321 | [] | no_license | Anil-Bhimwal/chegg | 8f2e6aa0e4bf31ee238ff0563921387773e551ba | 4f7457814d0e803c15414b599c6f3e6ce1a99561 | refs/heads/master | 2022-07-29T03:05:23.394406 | 2020-05-14T18:03:47 | 2020-05-14T18:03:47 | 263,989,126 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 519 | cpp | priorityqueue.cpp | #include <iostream>
using namespace std;
#include <queue>
void kSortedArray(int input[], int n, int k) {
priority_queue<int> pq;
int i = 0;
for(; i < k; i++) {
pq.push(input[i]);
}
for(; i < n; i++) {
input[i-k] = pq.top();//Input[i-k]=pq.top();
pq.pop();
pq.push(input[i]);
}
while(!pq.empty()) {
... |
b5cca9baa4c26d3bd6376c6d1d429dcaa35ea3ec | 747336d891514ad5f6a9e95220590f9253de590d | /interview_questions/distinct_pairs/distinct_pairs.hpp | 058269d2f415108012def1a7e1f658a60a2bb45f | [] | no_license | alexcthompson/algo_learning | cf89de42d2784806c450187a8d5fbab6af662a3a | 0e6be95b26bbc7285f7b544deed267aae9d85fad | refs/heads/master | 2023-08-06T03:10:38.884767 | 2023-07-29T19:03:40 | 2023-07-29T19:03:40 | 159,570,983 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 870 | hpp | distinct_pairs.hpp | /*
From an interview, was asked to count the number of distinct pairs of nums in a which summed to k.
*/
#include <unordered_map>
#include <vector>
using namespace std;
int numberOfPairs(vector<int> a, long k) {
std::unordered_map<long, int> seen_elems;
int distinct_pairs = 0;
for (auto num : a) {
... |
4ad5a82b4b0c816542938d2988d13f23d9a75953 | d030061ef5bbcf1b78bf78469ed6b767b26fa62c | /submission/AlertEngine.cpp | f580f874c3f42e9c48b3c20c777561e96da284c1 | [] | no_license | AdamRaph/262A3 | 84e2cde4e578fbd997afc22caf371b90a9f928e0 | 859907daa9cace70c008d562b8a0fdb2bfb1bf9b | refs/heads/master | 2021-05-30T07:59:33.067736 | 2015-10-26T15:01:27 | 2015-10-26T15:01:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,554 | cpp | AlertEngine.cpp | #include <vector>
#include <stdlib.h>
#include <iostream>
#include <iomanip>
#include "AlertEngine.h"
#include "DataType.h"
/**
* check the anomaly in daily stat log
*/
void AlertEngine::checkAnomaly(vector<Stat> currentStats,vector<vector<EventTotal> > eventsTotals,vector<Event> events){
//create daily counters... |
5e2b7aa3c090db6cefe5a0e010e704219d2dbea1 | 1c803d259e1f459426fdd62b5399f4c3a65a5291 | /4/eg1.cpp | 697925f7cff42a783b44adf685791041a89bb97f | [] | no_license | CIS190/spring2020 | 3c13816718116b333d8ec9744fc19cde3e7661db | 3d58cefae7051e0adfa7159f6a83e439fe96bb14 | refs/heads/master | 2021-08-05T22:10:37.891693 | 2020-12-18T20:46:53 | 2020-12-18T20:46:53 | 230,176,647 | 7 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 476 | cpp | eg1.cpp | #include <iostream>
using namespace std;
class integer
{
private:
int * p = nullptr;
public:
integer(int i) : p {new int {i}}
{
cout << "ctor\n";
}
virtual ~integer()
{
delete p;
cout << "dtor\n";
}
int get() const
{
return *p;
}
void set(i... |
004cbc72c0cc66fdf40562f286b3d30466b57126 | f26d9c7d6560ffff2fb0479e3ecd52a48432052e | /1155C.cpp | cd0b79c758df353d18836717b7559354c2ffc888 | [] | no_license | HelioStrike/Codeforces | e7fc10af38546638ad1049e3a80a9c0884a3ca92 | 39ae1a0cd8c4ea6b795e74db7b486bef94db84dc | refs/heads/master | 2021-06-24T18:29:57.882308 | 2020-10-29T16:44:44 | 2020-10-29T16:44:44 | 158,788,257 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 490 | cpp | 1155C.cpp | #include <bits/stdc++.h>
#define FOR(i,a,b) for(int i = (a); i < (b); i++)
#define ll long long
using namespace std;
int n,m;
ll c,k,s,p,t;
ll gcd(ll a, ll b) { return b?gcd(b,a%b):a; }
int main()
{
cin>>n>>m;
cin>>c>>p; s=c; k=p-c;
FOR(i,2,n) cin>>c,k=gcd(k,c-p),p=c;
FOR(i,1,m+1)
{
cin... |
1bad8a7af4632bb74488c4f11791e7a1dbb1277c | c3ffa07567d3d29a7439e33a6885a5544e896644 | /CodeForce/409-H.cpp | 84524cd549e31382785012c9e5d86d442d82741c | [] | no_license | a00012025/Online_Judge_Code | 398c90c046f402218bd14867a06ae301c0c67687 | 7084865a7050fc09ffb0e734f77996172a93d3ce | refs/heads/master | 2018-01-08T11:33:26.352408 | 2015-10-10T23:20:35 | 2015-10-10T23:20:35 | 44,031,127 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 153 | cpp | 409-H.cpp | #include<stdio.h>
#include<string.h>
#include<algorithm>
using namespace std;
main()
{
int a,b ;
scanf("%d%d",&a,&b) ;
printf("%d",a+b) ;
}
|
3dbd2f5a7b5282a64eb607a695965336c9e469ea | 2f78e134c5b55c816fa8ee939f54bde4918696a5 | /code/3rdparty/hk410/include/physics/hkdynamics/world/commandqueue/hkPhysicsCommandQueue.h | 59f97b367494d7b72bc908ca0ba23582aafee58a | [] | no_license | narayanr7/HeavenlySword | b53afa6a7a6c344e9a139279fbbd74bfbe70350c | a255b26020933e2336f024558fefcdddb48038b2 | refs/heads/master | 2022-08-23T01:32:46.029376 | 2020-05-26T04:45:56 | 2020-05-26T04:45:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,139 | h | hkPhysicsCommandQueue.h | /*
*
* Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's
* prior written consent.This software contains code, techniques and know-how which is confidential and proprietary to Havok.
* Level 2 and Level 3 source code contains trade secrets of ... |
053c57ecfe7ec3d814bf23ceea5d4ef85a9a8028 | 92ecb3bf6c5c7beaff43ab58654d0e2aae0dfc51 | /src/engine/input.h | 594f3de086b3ad000ee187825fe86ba0e38307ac | [] | no_license | dualword/irrlamb | c6fca3b9c0b45fcd2cb6c2469808276f89abaf3e | ee8a9e50f65aaf17b21e9cc445d30982b792cb32 | refs/heads/master | 2023-03-16T05:15:58.324016 | 2013-05-14T21:44:31 | 2013-05-14T21:44:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,583 | h | input.h | /*************************************************************************************
* irrlamb - http://irrlamb.googlecode.com
* Copyright (C) 2013 Alan Witkowski
*
* 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... |
30ee8681ec4687d6bace6bd8b6104a973a0bf0f9 | 91f9e8ade87071becbfd1a9620d2b9148082d4eb | /Render.h | 66a865269baef30990a923de8544d50eba8af414 | [] | no_license | kuznetss/gd_project | 93fde6196cf8fc0c384218d586f0db905033527e | 85ffb0077d8c38fdf98342ddf9e9f31475badb37 | refs/heads/master | 2021-09-12T08:13:58.167523 | 2018-04-15T13:43:27 | 2018-04-15T13:43:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 349 | h | Render.h | #ifndef GD_PROJECT_RENDER_H
#define GD_PROJECT_RENDER_H
#include <vector>
#include <clocale>
#include "Consts.h"
#include "Bitmap.h"
#include "Map.h"
void render_map(Map, Bitmap*);
void render_path(std::vector<Coordinates> path, Bitmap * bmp);
void draw_line(Coordinates point_1, Coordinates point_2, Bitmap *bmp);
... |
018438e18ac1b8915315b733eeff4b08e9ddc430 | 8fb32f1bf227c2ff37e420a5a671047ee132e4c8 | /ㅇ3ㅇ/fightScene.cpp | 8f86f5b9dc43e90bbebd62607eb987e440d445f2 | [] | no_license | JaesunHan/FreeFighter | 0c0251ea81feb136577fc8c2d1564b8489eeed27 | d2ace29868544ab3e78ef5cf4d698590b5a6fed6 | refs/heads/master | 2020-03-22T00:00:50.911623 | 2018-08-04T08:36:07 | 2018-08-04T08:36:07 | 139,219,200 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 4,379 | cpp | fightScene.cpp | #include "stdafx.h"
#include "fightScene.h"
#include "playerManager.h"
#include "enemyManager.h"
#include "camera.h"
#include "player.h"
#include "enemy.h"
#include "grid.h"
#include "cube.h"
fightScene::fightScene()
: _pm(NULL)
, _em(NULL)
, _gameMode(GAME_NONE)
, _playerMode(PMODE_NONE)
, _physXScene(NULL)
, ... |
0b91f0d319778b5c3322bb3e9376c32dfa359196 | 0b5f5a38bb3f43ded62b9c1e4f710f882b1155c5 | /owGameMap/WDL_Node_Pass.h | 112f14ab3239c4b232c60a4baef41421cf434d30 | [
"Apache-2.0"
] | permissive | xuebai5/OpenWow | a3c41d984cebe4dc34e9e3d0530363da4106bb61 | 97b2738862ce0244fd5b708f4dc3f05db7491f8b | refs/heads/master | 2020-04-26T23:16:26.733576 | 2019-03-03T12:41:04 | 2019-03-03T12:41:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 328 | h | WDL_Node_Pass.h | #pragma once
// A pass that renders the opaque geometry in the scene.
class WDL_Node_Pass : public BasePass
{
public:
typedef BasePass base;
WDL_Node_Pass(std::shared_ptr<Scene3D> scene, std::shared_ptr<PipelineState> pipeline);
virtual ~WDL_Node_Pass();
virtual bool Visit(IMesh& mesh) override;
protected:
pri... |
7908452dee34317ad42b69c776b4071e8470b7a1 | 27fbce7c075cd9f4cee7e1250e82cd56a7699c02 | /tao/x11/dynamic_any/dynenum_i.cpp | fda49ebeb5b30acd4712b44fc818509ce13036c6 | [
"MIT"
] | permissive | jwillemsen/taox11 | fe11af6a7185c25d0f236b80c608becbdbf3c8c3 | f16805cfdd5124d93d2426094191f15e10f53123 | refs/heads/master | 2023-09-04T18:23:46.570811 | 2023-08-14T19:50:01 | 2023-08-14T19:50:01 | 221,247,177 | 0 | 0 | MIT | 2023-09-04T14:53:28 | 2019-11-12T15:14:26 | C++ | UTF-8 | C++ | false | false | 7,859 | cpp | dynenum_i.cpp | /**
* @file dynenum_i.cpp
* @author Marijke Henstmengel
*
* @brief CORBA C++11 TAOX11 DynamicAny::DynAny implementation
*
* @copyright Copyright (c) Remedy IT Expertise BV
*/
#include "tao/AnyTypeCode/Marshal.h"
#include "tao/x11/anytypecode/typecode_impl.h"
#include "tao/x11/anytypecode/any_unknown_type... |
746be7c3f7256e3ae328751f9726feb7a6e8bf51 | f39ca4d74cd69ac1e275803b3e3ed861e44abf90 | /Model/Animation.h | a7d76f8043725221b66e0685d5e5b7cfefdaed8e | [] | no_license | lyleunderwood/TGL | 856241ec88993218335537c288b5db115a972823 | 25df5fa2942613812a421262c3fa21a86b5c16f1 | refs/heads/master | 2021-01-16T17:42:57.456363 | 2012-11-22T03:49:05 | 2012-11-22T03:49:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 722 | h | Animation.h | #ifndef ANIMATION_H
#define ANIMATION_H
#include <QList>
#include "Frame.h"
#include "savable.h"
class Animation : public Savable
{
bool SaveToFile(QFile &file);
bool LoadFromFile(QFile &file);
private:
QString animationName;
QList<Frame*> frameList;
bool loop;
int nextAnimationID;
public:
... |
f3ea792e59c70d47837082dcb588d1416a1b2b3f | eecf0603c8336a49d35ca87f12ad7b2769115422 | /QOSS-V1.0/VTK/include/Ellipsoid.h | 16f2f27fcb25c7c9a3fd773c1c8fbcb6fe0b03d3 | [] | no_license | Devil-ly/QOSS-V1.0 | e90fab43f9a69fdd16f5cbfc5f95db83fa09e656 | 73e15f398be7567e187cb2814415a2dd23caaf63 | refs/heads/master | 2021-05-06T19:12:02.890104 | 2018-05-26T07:49:56 | 2018-05-26T07:49:56 | 112,161,447 | 2 | 4 | null | 2018-04-12T06:13:32 | 2017-11-27T07:15:17 | C++ | GB18030 | C++ | false | false | 853 | h | Ellipsoid.h | /*
* created by liyun 2017/12/7
* function 二次曲面 的子类
* x^2 / a^2 + y^2 / b^2 + z^2 / c^2 = 1
* R 为x,y的最大值
* version 1.0
*/
#ifndef ELLIPSOID_H
#define ELLIPSOID_H
#include "QuadricSurfaceMirror.h"
class Ellipsoid : public QuadricSurfaceMirror
{
public:
// 构造默认的平面镜 没有传入参数
Ellipsoid(const GraphTrans & _graphT... |
7bbafa13674ecefccab3e6d61146c370718b4251 | d37f2a4582730c1a6c8e2f4a3dbe4001bed82803 | /Cola/modeloCola.cpp | 2bce50c0a77468002016174b59638fb7cd116ddd | [] | no_license | andreina96/I-Tarea-Programada_Estructuras_de_Datos | 48731b9244e75b9aac90f4c8dcbb6cd2f8df30e4 | 7e4768bf980f174ed65d83f4b8a5b7d64f247f5e | refs/heads/master | 2020-07-12T02:38:50.481060 | 2016-11-17T04:45:00 | 2016-11-17T04:45:00 | 73,990,773 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,296 | cpp | modeloCola.cpp | #include "modeloCola.h"
modeloCola::modeloCola(){}
void modeloCola::crear(){
primero = 1; //el primero se coloa adelante del último para decir que la cola está vacia
ultimo = 0;
numElem = 0;
}
void modeloCola::destruir(){}
void modeloCola::vaciar(){
primero = 1;
ultimo = 0;
... |
5fa1e579bea8be445fcdc5dd90036e9b2902d524 | 2e6c001805d872577fb4b05d1e91bc812d1db41c | /answers/JS-0369/string/string.cpp | e941945fc37a76e4db42bdd04c7069fd21df338b | [] | no_license | fsy-juruo/noip2020-JS-Answers | f9e7ec8c7d86274bb8d18ecf7a9b858b11d9a8bb | 476106a54046665e1362bee246fa83b6f0d00857 | refs/heads/main | 2023-01-31T02:37:52.273421 | 2020-12-05T12:27:17 | 2020-12-05T12:27:17 | 318,722,231 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,231 | cpp | string.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll MOD1 = 1e9 + 7, MOD2 = 9999991;
const int maxn = 5e5 + 10, A = 26, SIZE = maxn * 20;
struct node {
ll a, b;
} sh[maxn];
ll pow261[maxn], pow262[maxn];
node gethash(int l, int r){
node re;
re.a = (sh[r].a - sh[l - 1].a * pow261[r - l +... |
234382609ee9b033061152122264b4d8b5ebcb15 | 614c73ad0afca74558cb4a8a4d7546745c16f8c8 | /Hmwk/Assignment4/Gaddis_8thEd_Chap5_Prob22_SquareDisplay/main.cpp | 8e3380b95840a29f58328b28207c1a47e3cef86e | [] | no_license | jg2436765/GarciaJesse_CIS5_45561 | 71de6e1490f07ec106e5ce8693f58f1658d1d138 | e013581b75128a58928691631095639a7afffa26 | refs/heads/master | 2021-01-21T14:47:59.735374 | 2017-07-25T19:50:12 | 2017-07-25T19:50:12 | 95,333,059 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 913 | cpp | main.cpp | /*
* File: main.cpp
* Author: Jesse Garcia
* Created on July 10, 2017, 11:47 AM
* Purpose: Square Display
*/
//System Libraries
#include <iostream> //Input - Output Library
using namespace std; //Name-space under which system libraries exist
//User Libraries
//Global Constants
//Function Prototypes
//Exe... |
6e4d9718386ef7a516bfb9c53744c8e2c343e99f | f77c8f6812905bbc761373c59bf87ed112e60fa2 | /Samples/System/SimpleExceptionHandling/SimpleExceptionHandling.h | 325fc8d4e819bfb91658c4bf3880de59f13be98b | [
"MIT"
] | permissive | kantamRobo/Xbox-GDK-Samples | d323fe14f79b994a6758e37291e8947cf8096af4 | d25a824d0ac395732826faecc803c586b8813104 | refs/heads/main | 2023-08-25T14:21:37.750150 | 2021-09-27T20:18:53 | 2021-09-27T20:18:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,249 | h | SimpleExceptionHandling.h | //--------------------------------------------------------------------------------------
// SimpleExceptionHandling.h
//
// Advanced Technology Group (ATG)
// Copyright (C) Microsoft Corporation. All rights reserved.
//--------------------------------------------------------------------------------------
#pragma once
... |
9c2cd1db8c0b33ace0e567ff66ad27e79c75c3af | 120f701ee4439524534294fac5401c97bbe4d28f | /Esculturas.h | f164dcb7e1eb6c24d1c365b441b019e8c122d211 | [] | no_license | alessadge/Examen120172-AlessandroGrimaldi | 1dae1a7bf60ff443e270c501bcc2fe51af347e7b | 37cc7d5109e972569e97c65d1147e599d6ca81c7 | refs/heads/master | 2021-01-21T15:18:20.491476 | 2017-05-19T23:46:00 | 2017-05-19T23:46:00 | 91,836,332 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 347 | h | Esculturas.h | #ifndef ESCULTURAS_H
#define ESCULTURAS_H
#include "Obras.h"
class Esculturas:public Obras{
protected:
double peso;
string material;
public:
Esculturas();
Esculturas(double, string,string,string,string,string,int);
double getPeso();
void setPeso(double);
string getMaterial();
void setMater... |
ec0963c5b090dfcf7e80913227ba67c459811592 | 34f7ee9ffb012c3c1b1c0e0e692752b0fbf8679a | /Funciones/3.cpp | 9bfcdcb024890517dfea70cad24f1acb44840015 | [] | no_license | Sleri/tallerNo5 | 9314fbc4e0a013f0513ded091f828b44835b9482 | eea3dff8235651c8c50fa9f1562eb67189050ddb | refs/heads/master | 2020-03-28T13:19:47.359368 | 2018-09-11T21:53:38 | 2018-09-11T21:53:38 | 148,384,316 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 519 | cpp | 3.cpp | #include <iostream>
#include <conio.h>
#include <string.h>
/*
* Programa: Lista desde 1 hasta x numero
* Fecha: 8 de septiembre de 2018
* Elaborado por: Natalia Agudelo Valdes
*/
using namespace std;
//impresion de lista
int num(int n1){
int i;
for(i = 1; i <= n1; i++){
printf("%d\n", i);
}
}
//funcion principal... |
7cc8350611b81e3065f88f7a5623472057f7f985 | cf1feebbace47827b1e1c7944ef65cd2687ccdee | /08 最近点问题-分治策略.cpp | 1daa2a3e8e1cf8488caa0e51f6e56585efe5900f | [] | no_license | plutoNJU/recursion | 7d2d9911dd54c2137732c7bb5b11c4c79d382cc8 | 544e7c2591b96ddc7d7ed388b5fc91b965517826 | refs/heads/master | 2020-04-03T15:37:30.198836 | 2019-01-17T06:59:59 | 2019-01-17T06:59:59 | 155,369,211 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,990 | cpp | 08 最近点问题-分治策略.cpp | #include <iostream>
using namespace std;
//最近对分治求解
//初始点按照x的从小到大排列点集S
struct point
{
int x,y;
};
double Distance(point a, point b);
void QuicksortByY(point P[], int first, int end);
void quickSort(point r[], int first, int end);
double ClosestPoint(point S[], int low, int high)
{
double d1, d2, d3, d;
int mid, i, ... |
edb9d7aaee32434bae04eb1f4fae72cbc07da3a6 | 014d58ab427fcae07269e7ea24c2ff267682e4c4 | /Lecture 16 Graphs 1/12 3 Cycle.cpp | 8ec79a56cbebd8a1a115915c92575454b56ef997 | [] | no_license | Sumit1608/CodingNinjas_CompetitiveProgramming_Solutions | 3113c8303912f729ac543fb4fe5111418d4fc434 | a36de7f67a3939932aa3ddfcb497479925ad4bed | refs/heads/main | 2023-07-18T15:18:05.204615 | 2021-09-08T07:25:32 | 2021-09-08T07:25:32 | 344,851,223 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 658 | cpp | 12 3 Cycle.cpp | #include<bits/stdc++.h>
using namespace std;
// time comp => O(n^3)
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int v, e;
cin >> v >> e;
int** arr = new int*[v];
for (int i = 0; i < v; i++)
arr[i] = new int[v]();
while (e--){
int a, b;
cin >> a >> b;
arr[a]... |
c07e86d3c19dd8f312c039e56e9e017ca2e4171a | ea2786bfb29ab1522074aa865524600f719b5d60 | /MultimodalSpaceShooter/src/core/Managers.cpp | 69ce07f56571c1839d16f8de30e605886ad8cf04 | [] | no_license | jeremysingy/multimodal-space-shooter | 90ffda254246d0e3a1e25558aae5a15fed39137f | ca6e28944cdda97285a2caf90e635a73c9e4e5cd | refs/heads/master | 2021-01-19T08:52:52.393679 | 2011-04-12T08:37:03 | 2011-04-12T08:37:03 | 1,467,691 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 565 | cpp | Managers.cpp | #include "core/Managers.h"
#include "core/Game.h"
AudioEngine& audioEngine()
{
return Game::instance().myAudioEngine;
}
EventManager& eventManager()
{
return Game::instance().myEventManager;
}
MultimodalManager& multimodalManager()
{
return Game::instance().myMultimodalManager;
}
Entit... |
d8012dbc092b6b6c0ade0946275c068c01259eb2 | cadf9f2b9f281f2adc2732c165b561f30830cc71 | /Libraries/Source/og/Math/Color.cpp | d10844b0e7abcce0eaf0104f169feafe14076923 | [
"Zlib",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ensiform/open-game-libraries | 0f687adc42beb2d628b19aa0261ed7398245c7e7 | 265c0d13198bd1910fe3c253b4ac04d55016b73f | refs/heads/master | 2020-05-16T23:42:18.476970 | 2014-04-26T17:47:21 | 2014-04-26T17:47:21 | 8,855,538 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,553 | cpp | Color.cpp | /*
===========================================================================
The Open Game Libraries.
Copyright (C) 2007-2010 Lusito Software
Author: Santo Pfingsten (TTK-Bandit)
Purpose: Color class
-----------------------------------------
This software is provided 'as-is', without any express or implie... |
a171c9d01f97b4a23d38448486b50d6dc9f7a21c | 6d088ec295b33db11e378212d42d40d5a190c54c | /core/vpgl/algo/Templates/vpgl_em_compute_5_point+double-.cxx | 8ee291ca7f3be257beacb12bb844a64a39487809 | [] | no_license | vxl/vxl | 29dffd5011f21a67e14c1bcbd5388fdbbc101b29 | 594ebed3d5fb6d0930d5758630113e044fee00bc | refs/heads/master | 2023-08-31T03:56:24.286486 | 2023-08-29T17:53:12 | 2023-08-29T17:53:12 | 9,819,799 | 224 | 126 | null | 2023-09-14T15:52:32 | 2013-05-02T18:32:27 | C++ | UTF-8 | C++ | false | false | 145 | cxx | vpgl_em_compute_5_point+double-.cxx | // Instantiaion of vpgl_em_compute_5_point<double>
#include <vpgl/algo/vpgl_em_compute_5_point.hxx>
VPGL_EM_COMPUTE_5_POINT_INSTANTIATE(double);
|
a998f36cefcef8de2db88209147bceb9d88ce67f | a41718adf8fdef37dff1bb70a9ba57ac776d139b | /src/net.cpp | 990753d455023b55c65649a12e06d222eb74dc3e | [
"BSD-4-Clause-UC"
] | permissive | saulopz/edge_filters | a803829f31c90e98a3320b57a9e7cd8416e65c30 | 85bd32a4e8093a6a8e64de4647cd71dd6b5f1964 | refs/heads/master | 2023-05-25T23:06:07.986256 | 2021-06-10T19:12:23 | 2021-06-10T19:12:23 | 375,805,412 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,947 | cpp | net.cpp | /* Neural network C code created by QwikNet V2.23
* Network file name: untitled
* Structure: 9/10/1
* Date: Thu Aug 30 08:45:32 2001
*/
#include <math.h>
#include <stdlib.h>
#define INPUTS 9
#define HIDDEN1 10
#define OUTPUTS 1
#define HIDDEN1_INDEX (INPUTS)
#define OUTPUT_INDE... |
70d7e4560012abec45e7f5faaae47e513626127a | 87ff31b06c2c7e02e50c452189dba3d0f965c8f6 | /Kpp/reg_alloc/reg_alloc.cpp | 8777042b4d56a1b85eb2e125cd22c4992cf2218e | [
"MIT"
] | permissive | Tonyx97/Kpp | 9b162e016c5daec3dae91ba75ac895809f4b1b3e | 13f23b371abf60967a89fd5c029195cb91fd88cc | refs/heads/main | 2023-08-20T09:42:07.161163 | 2021-10-19T10:30:07 | 2021-10-19T10:30:07 | 340,162,421 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,384 | cpp | reg_alloc.cpp | #include <defs.h>
#include <ir/ir.h>
#include <ssa/ssa.h>
#include "reg_alloc.h"
using namespace kpp;
reg_alloc::~reg_alloc()
{
}
bool reg_alloc::init()
{
x64::for_each_register([&](reg* r) { free_regs.insert(r); });
return true;
}
bool reg_alloc::calculate()
{
for (auto prototype : ir.get_ir_info().prototype... |
4ef10dfebdc681ca58cb0cfaaf6bc292e8852147 | b0abfa1599ae74dbefcb3a724ac86ba7db8308e8 | /Truck_coutainer_sercher/Truck_coutainer_sercher.ino | f0c6e659dc32eb6af3d8616b21ce97a243569312 | [] | no_license | sakatanitouga/Track_container_Sercher | ed98d4d936dfde0fb3696e21071171d8b8873a38 | db05815d9784c1b1e44e53f26eb3a83f44cdcff4 | refs/heads/master | 2022-12-19T18:23:46.138896 | 2020-10-05T08:24:52 | 2020-10-05T08:24:52 | 301,331,929 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,101 | ino | Truck_coutainer_sercher.ino | #include <SD.h>
#include "BluetoothSerial.h"
#include <driver/adc.h>
#define PSD 2800
const uint8_t cs_SD = 5;
File fo;
BluetoothSerial SerialBT;
int i = 0;
int d=0;
const char* fname ="/test1.txt";
void setup() {
adc2_config_channel_atten(ADC2_CHANNEL_4,ADC_ATTEN_DB_11);
delay(1000);
SerialBT.begin("ESP_... |
7d29d160cc5377dd9ab570853cbca8252d6a108f | 8a22dbf51e9b7e6651b29746c25a2402ee91cd48 | /testing.h | 8d67094962f7ab8bac46b5d101df09e31f3976ce | [] | no_license | Bak-JH/QMLLab | cbf8f707a5c03518c538584951a83e8b28346b05 | 72571c8c4c7924f240c68185e8f362040781d7a6 | refs/heads/master | 2020-08-17T16:19:38.763870 | 2019-10-18T07:58:24 | 2019-10-18T07:58:24 | 215,686,640 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 562 | h | testing.h | #ifndef TESTING_H
#define TESTING_H
#include <QtQuick/QQuickPaintedItem>
#include <QtQuick/5.12.3/QtQuick/private/qquickrectangle_p.h>
#include <QtQuick/5.12.3/QtQuick/private/qquickmousearea_p.h>
#include <QtQuick/5.12.3/QtQuick/private/qquickevents_p_p.h>
#include <QColor>
#include <QQmlComponent>
#include <QQmlEngi... |
eed0eafcf0d6591d78113aff4f29b2ee55edba4a | ddbbe9e6bead08f1f0089cbf9cdb2ff80bf08a78 | /reference.cpp | bfe88b70a6e377112c1a0c28cb6839265fac1c39 | [
"MIT"
] | permissive | xiaji/noip-csp | ff7405c863944326273fa06c8d906de941cd88e7 | 7551478e848f3c3d2a4cc2d780d0efeedab67e6e | refs/heads/master | 2020-08-08T12:14:40.902950 | 2019-11-15T12:46:37 | 2019-11-15T12:46:37 | 213,830,049 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 849 | cpp | reference.cpp | #include <iostream>
using namespace std;
void times_ref(int& a, int& b) {
a *= 2;
b *= 2;
}
void times(int a, int b) {
a *= 2;
b *= 2;
}
void prevnext(int x, int& prev, int& next) {
prev = x * 2;
next = prev + 1;
}
int main() {
int a = 2, b = 3;
times(a, b);
cout << "call times method without ampe... |
80dcc842e59ce62fb295bef15aeeda0af6a54f49 | cc848d47940a3d5e5d9906ffef0d553c465978d4 | /ch01/main.cpp | 7017bb2a6704f17c41127e8dd4c7a0945382d6ea | [] | no_license | BeastwareBoom/CppPrimer | 1b141f1a912e76dc9e9145d1965970ad5580dd02 | fbfa9b7fc611ed7f255f54c94d0daa80fc9ae5b5 | refs/heads/master | 2021-07-15T20:54:27.661155 | 2020-06-15T09:12:27 | 2020-06-15T09:12:27 | 175,634,429 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,246 | cpp | main.cpp | #include <iostream>
#include <string.h>
//using namespace std;
struct X
{
virtual void foo()/*=0*/;
};
struct Y : X
{
void foo() {}
};
struct A
{
virtual ~A() = 0;
};
struct B: A
{
virtual ~B(){}
};
//decleration only,see https://www.tutorialspoint.com/What-is-the-difference-between-a-definition-and-... |
69ded89ee19b4c4bc2bf35b4d66671534e337374 | f95c4d9fcea5606a0229844adc709c5fea1b6421 | /solvers/tisi/src/tisi.cpp | ff45ebc3b93f28e8e61f0e7adc84639e324ca0cf | [
"BSD-3-Clause"
] | permissive | sellamiy/GPiD-Framework | 4c5db6caa24929775f75b3e033aff187b3ba55a4 | f6ed1abb2da6d51639f5ee410b1f9b143a200465 | refs/heads/master | 2021-06-13T21:47:35.654411 | 2021-02-08T04:51:49 | 2021-02-08T04:51:49 | 140,702,115 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,184 | cpp | tisi.cpp | #define TISI_W_DOC_FOR_GPID__CPP
#include <tisi.hpp>
using namespace abdulot;
static TisiManager dummyManager;
static TisiConstraint dummyConstraint;
static TisiModel dummyModel;
static ObjectMapper<TisiLiteral> dummyMapper;
static std::map<typename TisiGenerator::index_t,
std::vector<typename TisiGe... |
261109ec67c2d5f3f44a0dad73dcfe2c0e7b585b | ca4c0b4c3747150cb985377cf00aaaf6062fed9f | /GFG DSA KING/2 SEARCHING/2 without adjustment.cpp | ea82fb522b2a50491d336ec2c6f0899118f2e736 | [] | no_license | darkLuciferDevilOfHisWord/GFG_DSA | 3ed3bde5fbab49d9272a3fc90d497d40d5cc7416 | cdcdf23dbd1f35ef9203ac4ca9749763d216c8c3 | refs/heads/main | 2023-06-06T16:24:10.721411 | 2021-06-30T10:51:23 | 2021-06-30T10:51:23 | 381,668,474 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 740 | cpp | 2 without adjustment.cpp | #include<bits/stdc++.h>
using namespace std;
long long arr[11000001];
long long FindMaxSum(int n)
{
long long incl_prev = arr[0];
long long excl_prev = 0;
long long incl_curr = 0;
long long excl_curr = 0;
int i;
for (i = 1; i < n; i++)
{
excl_curr = max(incl_prev, excl_prev);
incl_curr = e... |
9f4c5972540db47fb9b94d8d3665922c3febbd3b | 435e3c72f428de58c173c872232042093d7e122b | /A4_STL/4_1_vector/main.cpp | bb583f5f279d16fcdf8f91cc634ffd7215c08e30 | [] | no_license | RioKKH/c_example | 3cb05eb26a13094f5201996a057f7c5be9e4a4d8 | 697d80d9bc91d832dfba1ecc3893a79128963d43 | refs/heads/master | 2023-08-09T17:30:35.523459 | 2023-07-24T16:45:45 | 2023-07-24T16:45:45 | 164,203,389 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 694 | cpp | main.cpp | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main()
{
vector<int> v1;
vector<string> v2;
v1.push_back(1);
v1.push_back(2);
v1.push_back(3);
v2.push_back("ABC");
v2.push_back("DEF");
unsigned int i;
for (i = 0; i < v1.size(); i++) {
c... |
a2b5c4c4c5eaca380bfd5de3ffa35fc4cdd4b7c8 | 48f33ee027073e137ed98f4b0b2fe836756d8a34 | /Source/NetworkProgramming/FGRocket.h | a3231a54b1586cb10e4a7f93fc9a4f0b575d9eb1 | [] | no_license | fredrikhanses/NetworkProgramming | 6e748490646a803b60c22c5bc808b022c659ab61 | d683444f98e5b942013c0c28dc9d8e1c75688bf1 | refs/heads/main | 2023-02-26T07:10:09.578995 | 2021-01-31T22:56:48 | 2021-01-31T22:56:48 | 317,240,818 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,309 | h | FGRocket.h | #pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "FGRocket.generated.h"
class UStaticMeshComponent;
UCLASS()
class NETWORKPROGRAMMING_API AFGRocket : public AActor
{
GENERATED_BODY()
public:
AFGRocket();
protected:
virtual void BeginPlay() override;
public:
virtual void Tick(floa... |
3a99fab4123fc8996cf8102bd196a395b27b6a41 | 1fe10ee5e34cd76067c720ef4b4a054f6107b286 | /mobile/mobile/bundled_jni/chill/mobile/jni/PasswordManagerDialogRequest_jni.h | 4c3f78a207d09797b6824fb4762b63c2ba4ea819 | [
"BSD-2-Clause"
] | permissive | bopopescu/ofa | 9f001c4f36b07fa27347ade37337422fd6719dcc | 84e319101d4a1200657337dcdf9ed3857fc59e03 | refs/heads/master | 2021-06-14T08:53:05.865737 | 2017-04-03T12:50:44 | 2017-04-03T12:50:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,119 | h | PasswordManagerDialogRequest_jni.h | // Copyright 2014 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.
// This file is autogenerated by
// base/android/jni_generator/jni_generator.py
// For
// com/opera/android/browser/passwordmanager/PasswordManage... |
9727c12c1c88387e2c2d0819be223e7d4289d80c | b315d27f7abcf63769b99aae07b5425f4fc0c242 | /USS-Game-Project/Bullet.h | 0a955082124d2a2c1f87c1460a37bcf95cce2363 | [] | no_license | sachinjangra/USS-Game-Project | 5599fd33beb7b4956c86eff7dd106270a8bb3b48 | 3bc2de4dc890d404dd44b6a3ac0581f001ce16c6 | refs/heads/master | 2021-08-26T03:52:22.018842 | 2017-11-21T14:10:07 | 2017-11-21T14:10:07 | 110,434,975 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 359 | h | Bullet.h | #pragma once
class Bullet
{
public:
Bullet(bool isFiredTowardsRight);
void update(sf::Time& dt);
void draw(sf::RenderWindow& window);
void setPosition(sf::Vector2f position);
sf::Vector2f getPosition();
sf::Vector2f getSize();
void setTexture(sf::Texture& texture);
private:
sf::RectangleShape mBu... |
7f5b1d07f47ef1c4a218c054e2fa40a9b6c7f786 | d0362ca7ab49b02149a53b1cae9a7ce0623d1f7b | /DACView/Source/Objects/CPICTURE.CPP | 3c613183c2f1acde1367e9e93c2b8894b330716e | [] | no_license | realgsg/DACView | 2fffb87b7feacbde2d468d63584e279f0935e2fe | 93ce0a9d479d6701e788159843ca4cf9546629df | refs/heads/master | 2023-06-19T04:09:04.757229 | 2019-05-15T12:56:38 | 2019-05-15T12:56:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,773 | cpp | CPICTURE.CPP | #include "stdafx.h"
#include "CUnitBase.h"
#include "cPicture.h"
//#include "DlgPic.h"
#include "globedef.h"
IMPLEMENT_SERIAL(CObjectPicture, CRectVirtual, 1 | VERSIONABLE_SCHEMA)
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
static CString s_strClassName = "P... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.