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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
93969e44db1a117f8a2360c8e4b49c8f15c5114b | b82e951293252bd5300773a4571d0c554fcc11d5 | /A Fantasy Role-Playing Game/cyberdemons.cpp | 33535298b59bca74e8602fc5d61d3cc702ff6b24 | [] | no_license | canberkarc/Cpp-Projects | 047698d6d64fff17ba9534c8cff3b63187968e3f | ca46eb443734f996dc19995628ad040d703cd421 | refs/heads/master | 2022-11-29T13:32:11.736843 | 2020-08-09T14:33:09 | 2020-08-09T14:33:09 | 270,172,669 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 645 | cpp | cyberdemons.cpp | #include "cyberdemons.h"
using std::cout;
namespace Canberk{
//Constructors of class
Cyberdemons::Cyberdemons():Demons(){
setType(1);
}
Cyberdemons::Cyberdemons(const int stren, const int hit):Demons(stren,hit){
setType(1);
}
//getSpecies function of class Cyberdemons
string Cyberdemons::getSpecies()con... |
98b593b03aec4551a55d2d32bcca773ec0da7ce8 | 5a96a16ccca4d5dd3f1b99fb6a840bc8748a961e | /Pushlock/Pushlock/SoundSystem.cpp | 501a3348b443000e9511d37d62e3c1471cb3fc01 | [] | no_license | fkaa/Lspg6 | 10b5c735f52aecdf0f278e9032831a3e93bb99f1 | 643c73394de42f5ad2112e8d600adbffd84db9db | refs/heads/master | 2020-05-04T22:05:57.562687 | 2017-06-01T19:34:13 | 2017-06-01T19:34:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,772 | cpp | SoundSystem.cpp | #include "SoundSystem.h"
#include <tchar.h>
#include <windows.h>
#include "mmsystem.h"
#pragma comment(lib, "winmm.lib")
SoundSystem::SoundSystem()
{
this->buffers = new sf::SoundBuffer[25];
this->sound = new sf::Sound[512];
this->buffers[0].loadFromFile("../Resources/Sounds/fireball.wav");
this->buffers[1].load... |
58ffab42f21dfe137c1108d3ffdac56ed8668ffc | 7af6319bcfde8740b1fd302ed4b44a4e608d6ae9 | /removeduplicatesfromagivenstring/main.cpp | 55eb0f0e2641ff2b6317219106308c7a10ce70b1 | [] | no_license | rishabh-66/practice | 906cd48c940d966146239b4d22b061068bd58e9c | 4671bc3bb1c2886c89058b1427b7d9b1ef510322 | refs/heads/main | 2023-05-05T05:18:06.238039 | 2021-05-25T15:40:25 | 2021-05-25T15:40:25 | 370,747,926 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 398 | cpp | main.cpp | // C++ program too create a unique string using unordered_map
#include <bits/stdc++.h>
using namespace std;
void removeDuplicates(string s){
unordered_map<char,int> exists;
int index = 0;
int n = s.length();
for(int i=0;i<n;i++){
if(exists[s[i]]==0)
{
s[index++] = s[i];
exists[s[i]]++;
}
}
cout<<s;
}
//driver c... |
a0f1355ec1d8e8d323d8fb48356334e4abe8d3b2 | 73d65106516f60544a6d3707919c3fd533b5f099 | /lectures/Week5/th1-1.cpp | f70897f64ed1ba13abf3762b706aca879cbde3c6 | [] | no_license | pkgoesdigital/systems-pickle | 8ee77f228367adb89965e4a43f55c926f8157b38 | d5714a49259d6e550805e200be9f9c15ddaa9fd9 | refs/heads/master | 2020-09-16T08:01:59.949003 | 2019-11-24T07:09:02 | 2019-11-24T07:09:02 | 223,706,110 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 669 | cpp | th1-1.cpp | #include <iostream>
#include <thread> // compile with -std=c++11 -pthread options
// g++ -std=c++11 -pthread th1.cpp -o th1
void func(int threadID, int start, int stop, int* results)
{
for(int i=start; i < stop; i++)
{
std::cout<<"thread id: " << threadID <<", Iteration: "<<i<<"\n";
... |
9337239aa189c5841ca154ae1a45c3f00f0c075b | c3b1ad0d4e1b7e5d6f841b051980cbefc866d52a | /src/tools/text_parm.cpp | eac1753ab8a3832fc9e61825c3d567a53af02eb1 | [] | no_license | QiChan/OkayServer | 0031e84f9f8f8c7957a72a8b4c8cbec21b0b7c48 | 0d655e830bd46a7b2d18f9bc9a1880fa4c477910 | refs/heads/master | 2021-05-25T20:57:39.413575 | 2020-04-07T21:34:27 | 2020-04-07T21:34:27 | 253,916,707 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 953 | cpp | text_parm.cpp | #include "text_parm.h"
const std::string TextParm::nullstring_;
void TextParm::deserilize(const char* stream, size_t len)
{
char key[10000];
char value[10000];
int vlen;
if (len > 10000)
return;
std::unordered_map<std::string, std::string> temp_map;
size_t i = 0;
while (i < len)
{
int klen = 0;
if (s... |
9d0e92ade3a12d3fb30e9c140d2bdc45950bd4ad | 77a666255a09b5d203ec207327e64814ffdef1dd | /xayautil/compression.cpp | db84770cc7e71c656219ea7a393047f353fd5acb | [
"MIT"
] | permissive | xaya/libxayagame | f876c3cf88490d07ee789af689986fb76c35f5b0 | 54d6952c9c146a0ceb5a267a53ac39ebd87661ae | refs/heads/master | 2023-07-22T22:06:20.555994 | 2023-07-13T12:40:38 | 2023-07-13T13:32:41 | 144,584,542 | 25 | 18 | MIT | 2023-02-23T08:50:00 | 2018-08-13T13:36:24 | C++ | UTF-8 | C++ | false | false | 4,417 | cpp | compression.cpp | // Copyright (C) 2019-2020 The Xaya developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "compression_internal.hpp"
#include "base64.hpp"
namespace xaya
{
/* ****************************************************... |
790b824af39867a79d8cf4b63faaad9f765b1009 | ef7ad96103876b24bbb45be8dfba7e80771c76e7 | /ui-qt/Pretreatment/ImgpreprocessModule/ContrastStrengthenDlg.h | e754984c82830f3260db3e491342472e8c1b9f19 | [
"MIT"
] | permissive | TinySlik/FPGA-Industrial-Smart-Camera | ecb6274f4ef16cf9174cd73812486644f821152a | 54b3e2c2661cf7f6774a7fb4d6ae637fa73cba32 | refs/heads/master | 2021-06-25T11:09:21.212466 | 2017-09-01T07:23:58 | 2017-09-01T07:23:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,999 | h | ContrastStrengthenDlg.h | /**
* @file [ContrastStrengthenDlg.h]
* @brief ContrastStrengthenDlg
* @author <szj>
* @date <2017/05/08>
* @version <1.0>
* @note
* detailed description
*/
#ifndef CONTRASTSTRENGTHENDLG_H
#define CONTRASTSTRENGTHENDLG_H
#include <QDialog>
#include <QTimer>
#include <stdbool.h>
#include "AcceComm... |
338ca9baddef759a614c69c83fc2e01752bb9f0a | af180db27145eae7511360f11d51b796354bf4f9 | /Oblig1/fish.cpp | 2654dd2bd27f7e5dbb1a085d0aff8554c3cd7a55 | [] | no_license | Amnesthesia/Course-OOP | 3577a2ee87ab6816d471382692e29029a37c5559 | 5a22dfa49def7cbcd26763f15994ca41b1ebe427 | refs/heads/master | 2020-04-27T15:03:01.314271 | 2014-11-29T01:56:28 | 2014-11-29T01:56:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,748 | cpp | fish.cpp | #include "fish.h"
fish::fish()
{
// Set known values
this->setPhylum("Chordata");
// Is this a saltwater fish?
this->setSaltwater( reqBoolInput("Saltwater fish") );
// Is this a schooling fish?
this->setSchoolfish( reqBoolInput("Schooling/Schoaling fish") );
// Request user-input for ... |
0d983c3969f9cb8bdde32a0c1114608a657a2ad6 | 62c961d328dc399929514d0983a82ccd254fd8d0 | /bright/GameObject.h | 6ee46fa189c764c926bee486d739dfb8d685436b | [] | no_license | husheng0/bright | 6534e811d9e2a28097a5004f2940adfade1950c2 | 337eb4dddab84efd001683dbc74c7da5481f455d | refs/heads/master | 2020-09-06T12:24:41.499730 | 2018-03-01T04:01:46 | 2018-03-01T04:01:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 254 | h | GameObject.h | #pragma once
#include "IGameObject.h"
#include "IComponent.h"
namespace pasha
{
class GameObject :public IGameObject
{
public:
virtual void Render() override = 0;
virtual void Update() override = 0;
virtual void Awake() override = 0;
};
}
|
037847504a9b7f2e63c6f019d12ab96bd2becadb | 41e03364326243ed180bb49f26889162a1472ba1 | /Graph.h | 6934952476fe5706d0f2ce0341a2f4216681c3a4 | [] | no_license | pullp/Data_Structures_and_Algorithms | d5fd05f9b2c2c61618ca7ff8dadce228bf6405aa | 85e0b713a3ebcf0187687ac6433640918771525b | refs/heads/master | 2021-08-23T09:14:38.384150 | 2017-12-04T13:07:27 | 2017-12-04T13:07:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,223 | h | Graph.h | //
// Created by 12181 on 2017/12/2.
//
#ifndef DATA_STRUCTURES_AND_ALGORITHMS_GRAPH_H
#define DATA_STRUCTURES_AND_ALGORITHMS_GRAPH_H
#include <iostream>
#include "ChainNode.h"
#include "NativeExceptions.h"
using namespace std;
template <class T>
void Make2DArray(T **&x, int rows, int cols){
x = new T *[rows];
... |
e20d4284a05ae43ed4caf1ae8ec6abe6d5019e99 | 0907b9afbaa6b4946aff1da6ec042a781ec6fdc1 | /tests/CMakerTests.cpp | abaeca8dcff3365ccec77ac2e3f0b097345644fd | [
"MIT"
] | permissive | ha11owed/xcmake | 23269781fc9b85a3e700bb89250f53c3283e8e96 | c3704b9d6a0ef744c192513062c4e6eb7db5c996 | refs/heads/master | 2022-12-07T19:54:10.110045 | 2020-09-01T21:25:38 | 2020-09-01T21:33:31 | 279,369,516 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,745 | cpp | CMakerTests.cpp | #include <CMaker.h>
#include <Config.h>
#include <file_system.h>
#include <gtest/gtest.h>
namespace gatools {
static std::string g_xcmakeJson;
static std::string g_inputCbp;
static std::string g_expectedCbp;
class CMakerTests : public ::testing::Test {
public:
void SetUp() override;
void createTestDir();... |
97824583efdcdb7199a88d70ea7ca0f9c768ee6b | 441f149a73fb77ac854ec8fe7c3297dd812584fe | /src/element/pmlelastic2d1.cc | e4bfbf3b4f44e37f6398b6d47b18d030309bafc7 | [] | no_license | dbindel/hiqlab | b0f960d3eb7e78e5fbc01653f7a1d906064649ae | de9021b55cb7992b616a9a4637c402faf05d59c7 | refs/heads/master | 2021-01-20T19:53:01.091690 | 2012-01-13T22:22:44 | 2012-01-13T22:22:44 | 65,870,655 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,862 | cc | pmlelastic2d1.cc | #line 1 "pmlelastic2d.cc"
/* HiQLab
* Copyright (c): Regents of the University of California
*/
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <vector>
#include "luasupport.h"
#include "qmatrix.h"
#include "gaussquad.h"
#include "qcomplex.h"
#include "shapes.h"
#include "pmlelastic2d.h"
#include "m... |
6909bc78da31ae16ae91d540f352c91d2096cd47 | 1cdcc9cab308afa31141e55baf71d225a090dfb3 | /web/charting/wd3/include/modules/hmpp/column.h | 253575833b0e58ce7d4d56079082705544412e4f | [
"Apache-2.0"
] | permissive | orri93/experimental | b256391206a56557dc202f1fc6732237dd39e23e | 6aa8ef71656c6086d3660faafe91fa57b5aff80a | refs/heads/master | 2022-08-30T11:55:33.746451 | 2022-07-27T09:02:17 | 2022-07-27T09:02:17 | 241,103,958 | 0 | 0 | Apache-2.0 | 2021-04-30T20:26:41 | 2020-02-17T12:37:08 | JavaScript | UTF-8 | C++ | false | false | 1,303 | h | column.h | #ifndef WD3_HM_CPP_COLUMN_H_
#define WD3_HM_CPP_COLUMN_H_
#include <cstddef>
#include <ctime>
#include <deque>
#include <memory>
#include <modules/hmpp/types.h>
#include <modules/hmpp/point.h>
namespace wd3 {
class column {
public:
column(const int& size, const ::wd3::type::time& time);
column(const column& co... |
33ca560505b8dcc125aadd5a129d823f51ff309c | 5791fdaa441fb4fd6a3d18cfcc60e855431aba50 | /KargerMinCut/KargerMinCut/Main.cpp | b7f7b2ce2c2c7b8e6628ebca9b04c3c71507c896 | [] | no_license | egross91/Summer2013 | d42bca953a50ed0871d3d5adbc81a09a8619362c | 645965626378b0fd8580862ede266180747541cd | refs/heads/master | 2021-01-22T07:39:16.209566 | 2013-08-24T18:23:16 | 2013-08-24T18:23:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,608 | cpp | Main.cpp | #include <iostream>
#include <fstream>
#include <algorithm>
#include <vector>
#include <string>
#include <sstream>
#include <unordered_map>
#include <math.h>
#include <time.h>
using namespace std;
unordered_map<int, vector<int> > verts_edges;
vector<int> keys;
void loadFile();
void saveFile();
int randomVertex();
in... |
db460f7b67ffd67e505fb4699bbce839a90f3075 | 417836b8bca49dfbd0f55fcc616161fb97b87ba7 | / my-simple-code/src/game/LoongBgSrv/BattlegroundState.h | 4de1c75804b31b33447048f05caf3d2916d1ddbb | [] | no_license | befollow/cppGameFrame | 636c729d4fe4b44b36e4d2190773b0a4ec0e0ea1 | c494a489e0cdde7e95712fd543b709cb33586bb4 | refs/heads/master | 2020-03-20T08:51:16.215723 | 2015-03-19T06:44:49 | 2015-03-19T06:44:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 977 | h | BattlegroundState.h | /*
* BattlegroundState.h
*
* Created on: 2012-3-23
*
*/
#ifndef GAME_BATTLEGROUNDSTATE_H_
#define GAME_BATTLEGROUNDSTATE_H_
#include <mysdk/base/Common.h>
#include <string>
using namespace mysdk;
class Battleground;
class BattlegroundState
{
public:
typedef enum tagBgStateE
{
BGS... |
e926a073cade186ec3776a27052d8a4ff8bed47e | b4eedc991f5d08b8cc9d914d0812567c733535e9 | /HB_Strings/stringComparision.cpp | 238328f2e9cf032e30fe7ced50e3848df87e6c2f | [] | no_license | vibgyor98/cp | 170ccd97d83889f2bc93405685a3966bc9009890 | 56afcb34006c9dc2214e27df3dc98479e6fe0dfb | refs/heads/master | 2023-03-03T09:50:32.851019 | 2021-02-11T07:28:52 | 2021-02-11T07:28:52 | 270,623,457 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 583 | cpp | stringComparision.cpp | #include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
void solve(string s, int l) {
for(int i=0; i<l; i++) {
int cnt = 1;
while(s[i]==s[i+1]) {
cnt++;
i++;
}
cout<<s[i]<<cnt;
}
}
int main() {
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt", "w... |
a47c25d750dd35b39652ef9922a3360766d3005f | 8ab4c744f78fe4806212e7ad9f3cbc0fa6501541 | /test/linear/test_list.cc | 1e5ad5eaed666af8f6599fb27d9ee950eff534d3 | [] | no_license | bianliangpai/data_structure | bb4edb235ecd4a11452ed7570b9433981ce58e6d | b877484a692c39c04b9c3cbf5906618198a6f0c5 | refs/heads/main | 2023-08-07T19:59:35.411448 | 2021-09-08T15:59:59 | 2021-09-08T15:59:59 | 399,283,431 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 736 | cc | test_list.cc | #include <iostream>
#include "Linear/List.h"
int main() {
blp::List<int> li;
for (int i{0}; i < 10; ++i) {
li.push_back(i);
}
std::cout << li << std::endl;
blp::List<int> li1 = li;
std::cout << li1 << std::endl;
auto sz = li1.size();
for (auto i{0}; i < sz; ++i) {
li1.erase(li1.begin());
}... |
62142a3b40b501af16ce8905aad293dd02cd3799 | 4909489caa5f8c81123d1b8419fa185d62f16a97 | /src/robot/commands/toggle_collector.cpp | 24074f3073c78524aa2ec00173e90df5c5ce636a | [
"MIT"
] | permissive | Lukanite/FRC-14 | 25f7217940557a02689c69efe5aace6c62508b97 | 0f0193c254ce3c05903aa7e59008a0bf6e76dfa0 | refs/heads/master | 2021-01-24T19:50:04.175210 | 2014-11-05T23:19:18 | 2014-11-05T23:19:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 281 | cpp | toggle_collector.cpp | #include "toggle_collector.hpp"
#include "../subsystems/subsystems.hpp"
Toggle_Collector::Toggle_Collector() {
Requires(Subsystems::tilter);
}
void Toggle_Collector::Initialize() {
Subsystems::tilter->toggle_position();
}
bool Toggle_Collector::IsFinished() {
return true;
}
|
bdf56316ce40573d02f8c51d1b44d810b9a13a06 | 05dfdf22fd4f2a55b97ff341c02d812adea241fe | /static_external/main.cpp | 4eb943dfed519884b1e28837235029186afeb5e9 | [] | no_license | vanyaio/opp | 6aa461f6bd5f6051500fde0de92b2a72fdbae5d4 | f01b3b021ff185ddafdbefbed88119d8c2c2a347 | refs/heads/master | 2021-08-20T05:28:33.282815 | 2017-11-28T08:09:43 | 2017-11-28T08:09:43 | 109,867,354 | 0 | 0 | null | 2017-11-23T20:37:29 | 2017-11-07T17:17:53 | C++ | UTF-8 | C++ | false | false | 769 | cpp | main.cpp | #include <iostream>
#include "global_vars.h"
using namespace std;
void foo()
{
static int calling_foo_cnt = 0;
calling_foo_cnt++;
cout << "calling_foo_cnt: " << calling_foo_cnt << endl;
}
void test()
{
cout << "and this is main's test func" << endl;
}
int main()
{
cout << global_c << endl;//globa... |
ccda91de4eb2bbf55877b8fdb46b9c572f83ff22 | ac2274b0a9bdddc2e786c0cbede3262b3b45a8ae | /tsconwiz/descriptionproperties.cpp | db1bbc42872b6267e8ef8753233cbcd6fdb5e754 | [] | no_license | hjgode/ceTSC | f2583f348fab833b44e355d09a206caaffee63fe | 3823921a3b7e03e039ff712b4ecf2c3eede06ca4 | refs/heads/master | 2021-01-18T18:41:50.515797 | 2016-06-27T07:55:24 | 2016-06-27T07:55:24 | 61,810,663 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,488 | cpp | descriptionproperties.cpp | //
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source cod... |
0a8b198a8ed52d01e680506491ac7b69dccb35ac | 90361f62f87ff70eb82583841ca77bf85285c9ce | /main.cpp | 86676e15d0fd121910fd590cbae3de6e16905c62 | [] | no_license | johnmaxwilson/TsunamiSquares | 4c1ddc5c178c3547d935f1d45d32d89a71ec3d9c | 65b91d7fe6dcf780a81d270cb6b7c0de177cd756 | refs/heads/master | 2021-01-24T04:20:21.754640 | 2019-04-10T19:53:58 | 2019-04-10T19:53:58 | 61,148,699 | 0 | 0 | null | 2016-06-14T19:05:52 | 2016-06-14T19:05:51 | null | UTF-8 | C++ | false | false | 17,860 | cpp | main.cpp | // Copyright (c) 2015 Kasey W. Schultz
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publi... |
ffa0cf17592e7ff2edc60f878a3a43beef06f24f | 810d63f0570e5f0a2a965e21114daa0fe9830b69 | /Katatous/Framework/PhysXScene.cpp | c9432f3651311eb4d2e58798fda9d84927460b77 | [] | no_license | ydeagames/Katatous | 02663e780e60c3708a6cce76f6b25c0b4a770372 | 73a8415e3acc9d1ef1827aaf09b57e34bf16eb0a | refs/heads/master | 2020-06-02T06:56:45.863742 | 2019-07-17T17:39:03 | 2019-07-17T17:39:03 | 191,076,556 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 666 | cpp | PhysXScene.cpp | #include "pch.h"
#include "PhysXScene.h"
#include "PhysXManager.h"
using namespace physx;
PhysXScene::PhysXScene(const px_unique_ptr<physx::PxScene>& scene)
{
}
PhysXScene::~PhysXScene()
{
}
physx::PxScene& PhysXScene::GetScene()
{
return *m_scene;
}
void PhysXScene::ActivatePvd()
{
auto pvdClient = m_scene->get... |
b1cfbf523a5f2dc05de9558b4309914243ab8b10 | 6f885bc26e67694258a93d7f9ab55b2da5e629dc | /756C.cpp | baecd6d909619b20defd0bcbc0b406ad39d06718 | [] | no_license | Ashik1704026/codeforce | 644121030b3fdadb5405451f2e3b857acb7203d6 | 04b6d72b739cdf4bc3ce7e68e6dc72ebf983ab20 | refs/heads/master | 2021-11-22T14:23:47.848180 | 2021-08-30T18:18:11 | 2021-08-30T18:18:11 | 223,139,729 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 234 | cpp | 756C.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n,x,ans = 0; cin>>n;
set<int> b;
for(int i = 1;i <=n;i++){
cin>>x;
if(x==i) ans++;
else b.insert(x);
}
cout<<ans+(b.size()/2);
} |
013b842ba76daa26637b154ca1285c94194bf64a | b78a3af0e46c7df32963d0632843234a07652424 | /Manual Map Injector/main.cpp | 1b17094457e7973eb958e278483c215d40f99c4e | [
"MIT"
] | permissive | Gzsgcser/Simple-Manual-Map-Injector | 591838731926787105157d26822d2b51d28c2e9f | 9415b04989d16a204930b4e81633287387a6024d | refs/heads/master | 2023-08-24T11:20:03.303648 | 2021-10-28T13:01:47 | 2021-10-28T13:01:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,187 | cpp | main.cpp | #include "injector.h"
#include <stdio.h>
#include <string>
#include <iostream>
using namespace std;
bool IsCorrectTargetArchitecture(HANDLE hProc) {
BOOL bTarget = FALSE;
if (!IsWow64Process(hProc, &bTarget)) {
printf("Can't confirm target process architecture: 0x%X\n", GetLastError());
return false;
}
BOO... |
1514093f3f83e71ad1ec16780359e8cbfacf5937 | c8655c23bdc4c70de268977e7b2ed36e98fb07f7 | /clean_matlab_code/nufftw/include/nufft_gen.h | 0befa13489d8ffdb71395249f81ace5111e933b6 | [
"BSD-3-Clause-LBNL"
] | permissive | arbrefleur/tomocam | 0946c4b3e799534167b8aa335b4dddeab1d6414a | 983f3a30182d5fba9e27ee94ebe8015d30bc3dc0 | refs/heads/master | 2020-09-08T21:49:54.474831 | 2018-07-03T17:24:04 | 2018-07-03T17:24:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,926 | h | nufft_gen.h | /* Michal Zarrouk, June 2013 */
/* This file includes general definitions for the nufft toolbox. */
#include <cstdlib>
#include <iostream>
using namespace std;
#include <omp.h>
/* type-dependent issues */
#define FLOAT 1
#define DOUBLE 2
// trajectory type
#if TRAJ_TYPE == DOUBLE
#define TRAJ_T double
#elif TRAJ... |
6ac6000ad9e6424392f2069e3d0d8c9f989bebe7 | 74643610501fc55d3762e3c84ef9ae94e57ed3c1 | /lab/lab/analyzer.cpp | 449ffe5d20f267c4e0513bd7db45c009b1060ef0 | [] | no_license | yudakov1814/Interpreter | 3f49de4a7040a1b42901011a5ffe1262e7d26a83 | 765706b41fe7efe424593cc94424afe12c054971 | refs/heads/master | 2023-02-12T23:00:38.176397 | 2021-01-06T13:54:16 | 2021-01-06T13:54:16 | 327,010,265 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,255 | cpp | analyzer.cpp | #include <stdexcept>
#include "analyzer.h"
bool ischar(char ch) {
return ('a' <= ch && ch <= 'z') || ('A' <= ch && ch <= 'Z');
}
lexeme get_next_lexeme(const string& text, int& cur_idx) {
char cur_ch = text[cur_idx];
cur_idx++;
lexeme result;
result.value = cur_ch;
if (ischar(cur_ch)) {
result.lexeme_type =... |
2be1de54c0a8db3db6c9a13aece1edd8b6d63af9 | 49fa0df5361951169b31b6839a16f8997d0d8e9c | /Texture.h | 9ba6fc4689fadd1a47150ed9e7e7e32664fad1ee | [
"MIT"
] | permissive | erodriguezg/sdlogl | ddfa37c984774f8bcb70430d8809a4a1a79d45f4 | 56785de82a90bfb2b7132c7d46249ac358f673ff | refs/heads/master | 2020-03-11T12:21:37.948480 | 2018-05-13T12:30:10 | 2018-05-13T12:30:10 | 129,995,062 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 319 | h | Texture.h | //
// Created by lalo on 16-04-18.
//
#ifndef SDLOGL_TEXTURE_H
#define SDLOGL_TEXTURE_H
#include <string>
#include <GL/glew.h>
class Texture {
public:
Texture(const std::string &fileName);
virtual ~Texture();
void bind(unsigned int unit);
private:
GLuint textureId;
};
#endif //SDLOGL_TEXTURE_H
|
cfbb1f3896001b95fcfbd91d74248fe19c742d6f | 9da6ffc55ba8a19192bd0efad09657758de4e792 | /lg1140.cpp | a83ecdd500712027ff756d26883f73200821a8eb | [] | no_license | fsq/codeforces | b771cb33c67fb34168c8ee0533a67f16673f9057 | 58f3b66439457a7368bb40af38ceaf89b9275b36 | refs/heads/master | 2021-05-11T03:12:27.130277 | 2020-10-16T16:55:03 | 2020-10-16T16:55:03 | 117,908,849 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,944 | cpp | lg1140.cpp | #include <cstdio>
#include <iostream>
#include <cstring>
#include <cmath>
#include <ctime>
#include <vector>
#include <string>
#include <algorithm>
#include <map>
#include <set>
#include <unordered_map>
#include <unordered_set>
#include <queue>
#include <deque>
#include <stack>
#include <numeric>
#include <memory>
#inc... |
aafc9b2ac8d542686321cb995560a5278ecae65c | ff700010b916553909e7120fe9063667f364c105 | /test/20171017/source/zzc/segment.cpp | 76401297e4cf574be66262833983191a78574d91 | [
"MIT"
] | permissive | DesZou/Project-Eros | c1f5992e14454330f9b9656428bba16f30116244 | f49c9ce1dfe193de8199163286afc28ff8c52eef | refs/heads/master | 2022-11-21T01:59:48.651692 | 2020-07-11T02:45:23 | 2020-07-11T02:45:23 | 106,544,614 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,390 | cpp | segment.cpp | #include <cstdio>
#include <algorithm>
#include <cstring>
#include <iostream>
#include <climits>
// const int Inf = -1u >> 1;
const size_t Size = 1e5 + 5;
template<class T> T max(const T &a, const T &b) {
return a > b? a : b;
}
template<class T> T min(const T &a, const T &b) {
return a < b? a : b;
}
templat... |
03efe37f0c29c294263861ac6caa9ed835db8294 | 0ba6faa4c7f94a355f4719c9d09be477a2ab58e2 | /arc100_C.cpp | 74ef29f3451a78ae4799b47c352843d47ee9ab73 | [] | no_license | k2font/atcoder | a97d851bae3c5ea210accd493e6e33df2869e038 | d2b7b8e6dbb843330f477b922bd4e2d2928ed810 | refs/heads/master | 2023-05-15T06:51:43.771882 | 2021-06-05T07:03:11 | 2021-06-05T07:03:11 | 278,045,287 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 931 | cpp | arc100_C.cpp | #include <bits/stdc++.h>
using namespace std;
#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define all(x) (x).begin(),(x).end()
using ll = long long;
string char_to_string(char val) {
return string(1, val);
}
int char_to_int(char val) {
return val - '0';
}
template<class T> inline bool chmin(T& a, T ... |
dee957ed36076289ea004193035ae5297f8c8a38 | 81e602f935bcebdd99cb9a541f8c014f1eb97b9e | /ConsoleGame/src/GameEntities/Monsters/ArcherMonster.h | 76c8b02d4d1bdf50a311068df2dd0d76b0d8c32c | [] | no_license | kladarak/ConsoleRogueLike | e0723334b3a0b24a3669382542a05cb1cb9c3c07 | 6b75c6217cc2a4caf85e0a08aa58e486c138f506 | refs/heads/master | 2016-08-04T14:36:26.961397 | 2015-07-27T11:59:50 | 2015-07-27T11:59:50 | 37,187,497 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 241 | h | ArcherMonster.h | #pragma once
#include <EntityComponentSystem/World/World.h>
class MessageBroadcaster;
class GameData;
struct IVec2;
namespace ArcherMonster
{
Entity Create(World& inWorld, MessageBroadcaster& inMsgBroadcaster, const IVec2& inPosition);
} |
aab6ab345f7d30fda2e8d09d5697ae82edb240b7 | 1087ac2f911f03b41271d633fb7f0f9ca68719c5 | /sandbox/File/test.cpp | 449f300115b1134a9a7de98daf801d1e7718c26a | [
"MIT"
] | permissive | martintb/correlate | e82018b734dee1494e887e53f51b04bee475f9e4 | b0be89af4e57cc5fe96ec3a5c7a9bb84430d2433 | refs/heads/master | 2020-06-27T22:27:40.083538 | 2017-11-06T18:57:41 | 2017-11-06T18:57:41 | 97,071,642 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 236 | cpp | test.cpp | #include <string>
#include <mpi.h>
#include "File.hpp"
#include "inFile.hpp"
#include "outFile.hpp"
using namespace std;
int main()
{
File::ptr fptr = make_shared<outFile>("test_set","topo.dat",false);
return EXIT_SUCCESS;
}
|
bb7a5c36e99d9397658ef753e115a79f18c24d73 | 6e60b3a8670f358c194c8e00474db0e14c687a0d | /Graph/library/includes/TTGraphInput.h | 9f528a2e08189d47696515fa299d7232f1ac5f69 | [
"BSD-3-Clause"
] | permissive | aprigent/JamomaCore | a9b7038413074d33f7fa10aa71679e155b5a0b77 | 30612a4b5008331d2ba997f01c1bea785425c29d | refs/heads/master | 2021-01-16T21:24:49.913179 | 2013-04-08T18:23:53 | 2013-04-08T18:23:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 836 | h | TTGraphInput.h | /*
* Jamoma Asynchronous Object Graph Layer
* Creates a wrapper for TTObjectBases that can be used to build a control graph for asynchronous message passing.
* Copyright © 2010, Timothy Place
*
* License: This code is licensed under the terms of the "New BSD License"
* http://creativecommons.org/licenses/BSD/
... |
5062ca48962c07e8a54d90c2d7da096ac62c14a6 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5630113748090880_1/C++/ramzai/main.cpp | 87b8b8967298c93707e23fbc304dfb5261f0d2a2 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,280 | cpp | main.cpp | #include <cmath>
#include <algorithm>
#include <vector>
#include <string>
#include <iostream>
#include <sstream>
#include <map>
#include <set>
#include <list>
#include <memory>
#include <string>
#include <vector>
#include <functional>
#include <climits>
#include <cstring>
#include <cstdio>
using namespace std;
#define... |
da9a6f009b564437027521e0435e906c20be420a | 8847577430e98fea1e69125a0a32649ae93b81b5 | /0125_Valid_Palindrome/0125.cc | 0b56418b1dde73ce1c33785ddbdfb4c171ed636d | [
"Apache-2.0"
] | permissive | LuciusKyle/LeetCode | 07bb70b25f496ea83300a6d3c8d6b498b69c7b15 | 66c9090e5244b10eca0be50398764da2b4b48a6c | refs/heads/master | 2021-06-03T05:46:33.524486 | 2020-11-29T14:03:09 | 2020-11-29T14:03:09 | 129,054,923 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,465 | cc | 0125.cc |
#include<string>
#include<cctype>
using std::string;
class Solution {
public:
bool isPalindrome(const string s) {
size_t left = 0;
size_t right = s.size() == 0 ? 0 : s.size() - 1;
while (left < right) {
const char ch_left = std::tolower(s[left]);
const char ch_right = std::tolower(s[right]);
if (!(('... |
ff7d49b5f85167e672181ba18f27cb7ab5cfbc66 | 88a7d6bcb08361496699200e8d271adf53638923 | /637. 二叉树的层平均值/源.cpp | c070720265c9b221fc64d61f62675bc16a9bc641 | [] | no_license | zh593245631/leetcode | a957892c6d3767f37bf24f3333e016e9e0dc8a5a | 70e8eb3261ef8a6b48abfdf811b5e6c2ce4c297a | refs/heads/master | 2020-05-13T18:06:23.411718 | 2019-06-18T08:38:24 | 2019-06-18T08:38:24 | 181,647,375 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 935 | cpp | 源.cpp | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
vector<double> averageOfLevels(TreeNode* root) {
vector<double> ans;
queue<TreeNode*> q;
que... |
8eafc25ac64f0170ea68ea76ce9671e7e819122b | d4a9066bf398beb1aa1ccb388171b306b7b14176 | /Engine/RVector.cpp | cfc0d6e9e07dc6f615776e05e95301aa26631239 | [] | no_license | kimsin3003/NewWorld | b610e87eb99cd747a0fe4ad361b2cd2a69e9561b | 2850b26a86b7f041db9dd74dcf68b15f4777d7a3 | refs/heads/master | 2021-06-01T16:54:08.386213 | 2021-05-26T09:53:39 | 2021-05-26T09:53:39 | 116,279,409 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21 | cpp | RVector.cpp | #include "RVector.h"
|
069ab52b3b8d8abbb75cf2a32bb2f4e499829ddd | 1b2ff0453c72c25784178ad070be1dbe00efcca7 | /GUI/combobox.cpp | 737a53039efc6c8bfaedd7e1fb8c0c100aaa226e | [] | no_license | kirkbackus/meal-track | 2f14d9c217336d2eee732eb432e2b20d1b10e1da | 2d0c46cebd8d5a51725d4c6c3fc76aca120213b1 | refs/heads/master | 2016-09-05T18:42:01.843695 | 2014-11-22T22:15:17 | 2014-11-22T22:15:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,114 | cpp | combobox.cpp | #include "gui.h"
ComboBox::ComboBox() {
}
ComboBox::ComboBox(Control c, RECT r, LPCSTR t) {
Control();
//Create font and the button
hFont = CreateFont(-11, 0, 0, 0, 400, FALSE, FALSE, FALSE, 1, 400, 0, 0, 0, "Arial");
hWnd = CreateWindowEx(WS_EX_CLIENTEDGE, "COMBOBOX", t, CBS_DROPDOWNLIST | CBS_HASST... |
6cd146a817745432714c9c7280b88448bc0b95bc | eec522e24f5ae89f35e59f09e6821d88c7c8e7bc | /arduino/blindhumans/sketch_apr20a/sketch_apr20a.ino | 152745b6063b5a741b7550ab48bb16b2678354c6 | [] | no_license | teejonz/projects | 3b5a8a6e632c03ce472676727d9d16ac13ca5112 | b767d7eca43a8a22078709b0e0eccd7d4d144ad7 | refs/heads/master | 2020-03-23T17:12:07.975563 | 2018-07-21T21:59:13 | 2018-07-21T21:59:13 | 141,848,473 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,604 | ino | sketch_apr20a.ino | //Modified from code found on the Sparkfun website
//A modified code from of the Haptic Feedback Driver
//and ultrasonic sensor installation tutorials
//include libaraies for the driver
#include <Sparkfun_DRV2605L.h>
#include <Wire.h>
SFE_HMD_DRV2605L HMD;
//initialize pins
int trigPin = 3;
int echoPin = 2;
// Anal... |
91a11c8c3e4b5151127326ec8e4919e39f60698c | 1f706a4369946b8eba3ad67b4bb021b05a337e92 | /8_puzzle_test.cpp | a8222e51a76153cb4249453e7fcdf5ecf9559111 | [] | no_license | xoca-inf/8-puzzle-solver | e5234538ec46aa7095e5437a1e0b688d905f97de | 3b1e4378ce816172281af272f4b060549f739ee2 | refs/heads/master | 2022-02-25T07:59:55.663814 | 2019-10-19T13:45:39 | 2019-10-19T13:45:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,765 | cpp | 8_puzzle_test.cpp | //
// Created by tima on 01.06.2019.
//
#include <iostream>
#include "solver.hpp"
void test(const std::vector<std::vector<unsigned>> &a) {
board b(a);
if (b.is_solvable()) {
solver s(b);
std::cout<< "moves to solve |||| " << s.moves() << '\n';
for (const auto &it : s) {
std... |
ccb1a7ec04600f83eed3eabae575b773829077c8 | 0f0aa60f4515fcbfecd70bc49d9b1272d4d499ff | /CCBelock/ATMCMsgConvert/myLockTimeSync.cpp | ce37c3050dbce2befd4b92fc5a3730718d77c2f0 | [] | no_license | starwar6160/ccbt1 | d88c43d76cf9549cea25734bcba1dc25a3c3e982 | 0e7171abfdf0d9be4ee4fef68b0c383fd0da2439 | refs/heads/master | 2021-06-22T08:01:54.741259 | 2021-02-27T03:59:58 | 2021-02-27T03:59:58 | 194,269,914 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 10,329 | cpp | myLockTimeSync.cpp | #include "stdafx.h"
#include "zwCcbElockHdr.h"
#include "myConvIntHdr.h"
extern uint32_t G_JCDBG_CODE;
namespace jcAtmcConvertDLL {
time_t myGetCcbUTC(const ptree & ptccb)
{
string ccbDate = ptccb.get < string > (CCBSTR_DATE);
string ccbTime = ptccb.get < string > (CCBSTR_TIME);
time_t ccbUTCSec =... |
2993295c5f1159ffca9bedacdf663cd0c8900bc0 | 79b9e9e6904087b42965af5f58987a28894f4ef1 | /Source/Gruppe2_1/Projectile.h | ccbbdd71dcd27f44bae5e3e3fbe7a6366e160761 | [] | no_license | NotBjoggisAtAll/Gruppe2_1 | 0134ccc27cabc23c9ef17430929e66e8b229254b | 78ae5af5a27560e67117f98c805cc15981909ad7 | refs/heads/master | 2021-03-27T19:21:22.342438 | 2018-05-22T21:54:12 | 2018-05-22T21:54:12 | 117,854,261 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,365 | h | Projectile.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Projectile.generated.h"
class UProjectileMovementComponent;
class UStaticMeshComponent;
class AMyHealthUp;
class AMyFireRateUp;
UCLASS()
class GRUPPE2_1_API... |
4608fd3337d8187b5589b286e73ea6b03a54a8c4 | 31f671e589e58f7a34ddf383d6701bc04f74bfd4 | /ps/week6/task1/chernykh/homeWork6Task1.cpp | 3086a0caf41cc01620d9c4e7356c56efe37eff2b | [] | no_license | Boklazhenko/itstephomework | 450fbdd43c56fadb9f53573573197f2c880e832a | 368f951936620332ca68d14eb444084db9bb33a4 | refs/heads/master | 2020-09-08T16:54:19.988831 | 2020-08-08T13:22:35 | 2020-08-08T13:22:35 | 221,188,173 | 5 | 10 | null | 2020-08-15T07:00:35 | 2019-11-12T10:13:14 | C++ | UTF-8 | C++ | false | false | 681 | cpp | homeWork6Task1.cpp | #include <iostream>
using namespace std;
int degreeNumber(int number, int degree)
{
int result = 1;
for (int i = 0; i < degree; ++i)
{
result *= number;
}
return result;
}
double degreeNumber(double number, int degree)
{
double result = 1.0;
for (int i = 0; i < degree; ++i)
{
result *= number;
}
retur... |
8697b90ceddc59d89f0cac2133814fac0b10aa8a | 49b68ec482338ea405f3d91b7648dd1aa3d0455b | /TestBCC/DGtal/images/ImageCache.h | b05ffa89a33f2e8a43932de5d11ac0b5abeb6c90 | [] | no_license | quanganhct/Research | 51343cc39b23cf007004c88f616b6efedc84ee9c | 3a7b43ebfc68ce12ad24d76e9650e4763e366b46 | refs/heads/master | 2016-09-03T01:17:58.237334 | 2015-04-30T10:25:27 | 2015-04-30T10:25:27 | 34,203,891 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,072 | h | ImageCache.h | /**
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that ... |
0e12d002c2fcaac9a55758194b176d63469b2505 | 93e3bd4dcb5eb0549f0bdf988b1ea918b190ca45 | /classviewer.h | b38a81b5f9012a4326c14a70c32057eb591e31de | [] | no_license | Zstorm999/ClassMaker | 82f3addd608074e1b8394457ac6faec0d4438634 | 9c6c9ad620deeddc34ec7b44cea40f2b6b483df3 | refs/heads/master | 2020-07-02T19:46:18.057692 | 2019-08-10T14:50:08 | 2019-08-10T14:50:08 | 201,643,416 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 365 | h | classviewer.h | #ifndef CLASSVIEWER_H
#define CLASSVIEWER_H
#include <QtWidgets>
#include <QDialog>
class ClassViewer : public QDialog
{
Q_OBJECT
public:
ClassViewer(QString code,QString header=QString(), QString language=QString("cpp"));
private:
QTextEdit *m_code;
QTextEdit *m_header;
QPushButto... |
a633ff657403ffc43ed422f3821435f6d5f00ba8 | d019fbfbb483214c322a246f04b6953e8b33b324 | /source/zipdialog.cpp | 7a950753682ddbe901a557f6ee95d72223876011 | [] | no_license | nelsont/qmmander | fd5657e124b499c3355e0b16b36aadd5b5a81dcd | 6a48e28f371f4dd60824907ec3a9a61208ccf97b | refs/heads/master | 2021-05-09T03:45:45.176670 | 2013-08-25T12:58:45 | 2013-08-25T12:58:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,275 | cpp | zipdialog.cpp | /****************************************************************************
**
** This file is part of the Qmmander Filemanager.
**
** Copyright (C) Alex Skoruppa 2009-2013
** All rights reserved.
**
** This is a dialog with some zip-option which is shown before the
** file compression process.
**
** Qmmander is fre... |
9397a4790b13b83e0d0e3747d91c23acab1d2e73 | 4c93ca76318969f1624a0e77749bcdea3e7809d3 | /~9999/2269_수들의 합.cpp | 33cfcf17573a3231185b49dc2ca20dc01b50851e | [] | no_license | root-jeong/BOJ | 080925f6cfbb5dcbdf13c4c3a3c7e0a444908e6e | ec1ef5ad322597883b74d276078da8a508f164a8 | refs/heads/master | 2022-04-03T22:33:44.866564 | 2020-01-08T12:21:19 | 2020-01-08T12:21:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,349 | cpp | 2269_수들의 합.cpp | #include <iostream>
using namespace std;
#define swap(a,b) {int t = b; b = a; a = t;}
#define MAX_N 1000001
typedef long long ll;
ll tree[MAX_N * 4];
ll update_tree(int now, int target, int start, int end, int value) {
if (target > end || target < start) return tree[now];
if (start == end) {
retu... |
ba2dde1c466db0c5a180569a7b161557eb372547 | 11c2f8a5409578a245c66cfb1d5727dd8160e492 | /extent_server.h | fa3809fe403d42fa8a121fbfd543f80d4a56b4d9 | [] | no_license | adityavit/DistributedSystemRepo | 205016b8d3b0cc5c20d885719be17c85c365f9ce | 37b7db5052554aa9f130a450c56d9cc27b85aec9 | refs/heads/master | 2020-05-17T00:29:01.266900 | 2012-12-16T20:28:27 | 2012-12-16T20:28:27 | 6,002,863 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,130 | h | extent_server.h | // this is the extent server
#ifndef extent_server_h
#define extent_server_h
#include <string>
#include <map>
#include <vector>
#include "extent_protocol.h"
using namespace std;
class extent_server {
private:
struct filedata {
string file_content;
int content_size;
map<string,extent_protocol::extentid_t... |
681b3ff5d5f3306f7fda1d472aa02199a86db94e | 7f1ef34214ee4a25429fce694f66826316672b1b | /Project 2/player.h | efe546c4306e711fe190882ab99af4917cf277b0 | [] | no_license | Neel1997/CPlusPlus_Labs_Projects | ca39b201d77c0491ae953f8fb1b3a8c20186c506 | d631c5c9df217e1e2fd8d9528d596f86d6ccec53 | refs/heads/main | 2023-06-30T00:25:36.101943 | 2021-07-28T20:38:31 | 2021-07-28T20:38:31 | 390,493,464 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 462 | h | player.h | #ifndef PLAYER_H
#define PLAYER_H
#include <iostream>
#include <cstdlib>
using namespace std;
class Player {
private:
int health;
string playerName;
int maxLow;
int maxMid;
int maxHigh;
public:
Player();
Player(string);
void setName(string);
int getHealth();
void getLow();
... |
b2d077e4772d016bbe819fe7e0ba7d813912045d | 4e60c55b6d8484daf0d7c6c246dfd56dc0919b4c | /test/string_utils_test.cpp | 7dc7812bdfdea780eec08302c8b6d2622f7b8408 | [] | no_license | gaomy3832/utils | b59ce22c851574b67294036653e6c5d436ec3360 | 3ab7e58b5d4357eb048336daa9cdf97be9d30086 | refs/heads/master | 2020-12-13T22:52:58.609322 | 2019-11-11T05:56:21 | 2019-11-11T05:56:21 | 23,154,219 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,460 | cpp | string_utils_test.cpp | /*
* Copyright 2016 Mingyu Gao
*
*/
#include "gtest/gtest.h"
#include "utils/string_utils.h"
TEST(StringUtils, tokenize) {
std::vector<std::string> tokens;
// Normal.
std::string str1 = "a bb ccc dddd";
tokens.clear();
tokenize(str1, &tokens);
ASSERT_EQ(4, tokens.size());
ASSERT_EQ("a"... |
b47f6c3acc1db7c1c834a353151d4c4350bc18be | a4eaa62c5de13054608915f8d021b9ebe792024a | /task26/Source.cpp | 50efc831c6a6c17408c2bf2f9cdf4ba7b66b2866 | [] | no_license | Vermillio/Editing-Steps-Problem | 4e43e2f5073f483888dd2aa883b5c6165fb052eb | 7d076d5b5b1c2bbd71d6123a169ba35a0cd636c0 | refs/heads/master | 2021-08-31T16:16:02.978155 | 2017-12-22T01:46:44 | 2017-12-22T01:46:44 | 115,063,845 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 118 | cpp | Source.cpp | #include "StepsLadderFinder.h"
int main()
{
StepsLadderFinder finder;
finder.test();
system("pause");
return 0;
} |
96b5b444e543bed487c57c26a12f2580b44ad715 | ec8f4cf382d7033dd8ba0042a28a5559997920f5 | /interviewCode/src/someCompany/FlexRay/gennumberalternatively/gennumberalternatively.h | 8620279f7b9bf888c7157f8bc2798fc8677d92d9 | [] | no_license | jiguosong/coding_practice | 7d5b008fbf0cb4181497020fef97e68669f969b0 | 4313bd943c7755ed8127626cad194d7a60d05a14 | refs/heads/master | 2020-12-14T06:09:52.598169 | 2016-12-31T21:40:26 | 2016-12-31T21:40:26 | 68,734,717 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 286 | h | gennumberalternatively.h | /*
* gennumberalternatively.h
*
* Created on: Dec 1, 2016
* Author: songjiguo
*/
#ifndef GENNUMBERALTERNATIVELY_H_
#define GENNUMBERALTERNATIVELY_H_
class gennumberalternatively {
public:
int produceNumber(int num1, int num2);
};
#endif /* GENNUMBERALTERNATIVELY_H_ */
|
58d9ab582e2a9b45624db3e69a235510c6fe01ef | a66d35211adc012b160346c5905e0bc0d860d95b | /src/board.hpp | 6e2948d39ea146a139764990b802cbd828ecaf6b | [
"MIT"
] | permissive | DCGroothuizenDijkema/MENACE | 904f73231007feb59fd5a5820ac10a6ff1d5a420 | c16b1f1ce62c0506d1877a40a64467c3ea22eda0 | refs/heads/master | 2020-12-01T15:28:26.287592 | 2020-05-27T08:47:38 | 2020-05-27T08:47:38 | 230,681,711 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,578 | hpp | board.hpp |
//+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+//
// //
// board.hpp ... |
bd3652a7bf2c0a52d097800d14d6fa35b3d74fa2 | 06fad6b088c930c13315f051ea708e358f5d67c9 | /Conversione basi numeriche/int_dectobin.cc | 442f18cc4990442294a59a3febe6547ad6122e54 | [] | no_license | paoli7612/algorithms | fe4a97b6128089811b7c408016abaeccb99f3c3f | d16f601fc9ddf4ec9494eea1453e64847f49298d | refs/heads/master | 2022-02-28T06:29:40.283487 | 2022-02-08T23:27:23 | 2022-02-08T23:27:23 | 253,812,759 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 852 | cc | int_dectobin.cc | #include <iostream>
#include <cmath>
using namespace std;
int chartodec(const char *dec)
{
int cifre = 0;
for (; dec[cifre]!='\0'; cifre++);
int decimale = 0;
for (int i=0; i<cifre; i++)
decimale += (dec[i] - '0') * pow(10, cifre-i-1);
return decimale;
}
char* dec_to_bin(const char ... |
6193ebc6e5f1f7d75404a345fd32486b8e42d4bd | 3478ccef99c85458a9043a1040bc91e6817cc136 | /HFrame/HBase/test/UnitTestCategories.h | 619b8f7a3626655b221f8d5b9c6799913bef5754 | [] | no_license | gybing/Hackett | a1183dada6eff28736ebab52397c282809be0e7b | f2b47d8cc3d8fa9f0d9cd9aa71b707c2a01b8a50 | refs/heads/master | 2020-07-25T22:58:59.712615 | 2019-07-09T09:40:00 | 2019-07-09T09:40:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,561 | h | UnitTestCategories.h |
namespace UnitTestCategories
{
static const String analytics { "Analytics" };
static const String audio { "Audio" };
static const String audioProcessorParameters { "AudioProcessorParameters" };
static const String blocks { "Blocks" };
sta... |
771853de01139dd0e69dd527093b84afa5a27476 | 49f394ccd6c3729e9c382a3fe09415344ca98874 | /dali-toolkit/devel-api/controls/table-view/table-view.h | c0b3e352f08cdb90208ec098af8487a0f9dc6dc4 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | dalihub/dali-toolkit | 69ccb4c71904fdc9f1d88e0a1fedeaa2691213f8 | 4dec2735f5e5b5ed74f70a402c9a008d6c21af05 | refs/heads/master | 2023-09-03T05:02:34.534108 | 2023-09-01T14:02:39 | 2023-09-01T14:02:39 | 70,086,454 | 8 | 12 | NOASSERTION | 2020-08-28T14:04:59 | 2016-10-05T18:13:51 | C++ | UTF-8 | C++ | false | false | 19,243 | h | table-view.h | #ifndef DALI_TOOLKIT_TABLE_VIEW_H
#define DALI_TOOLKIT_TABLE_VIEW_H
/*
* Copyright (c) 2020 Samsung Electronics Co., Ltd.
*
* 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://ww... |
602da7cb1cb76f40326e81a681e5b8464f19e6e8 | 670640bd025a0c2c965a874a150f518d44b3c1e7 | /trunk/SOM_C/absom/Point.h | af832d33c8d846e48a83bd158a6876b4c54d8f1f | [] | no_license | andersonberg/SOM-dissimilarity-tables | b7c413a2375cf9d73580928bdeead7806144adbb | a7a20a5930d9981e5445bac4278a9b01ee9d2074 | refs/heads/master | 2021-01-16T19:34:05.473075 | 2012-04-04T17:25:19 | 2012-04-04T17:25:19 | 1,548,386 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 235 | h | Point.h | /*
* Point.h
*
* Created on: 22/08/2011
* Author: Anderson
*/
#ifndef POINT_H_
#define POINT_H_
class Point {
public:
Point(int x, int y);
virtual ~Point();
int x;
int y;
};
#endif /* POINT_H_ */
|
e368bee92d24b982326ac3dcb4fcf0247f874fcd | d85c29789c26d0c372b56941b44dd216757e0734 | /sp_v6_html_s/sp_v6_html_s.ino | 6999adb6ae74c7a1e6d225021afa48cb3001e436 | [] | no_license | nettigo/CHIP | 937750d7e7187be7aef4d4aff812198d84c44508 | d5b1e2c75be47a1b4f214a9b5e51261e7ad5a9bc | refs/heads/master | 2016-08-03T06:26:32.404935 | 2014-02-06T21:03:49 | 2014-02-06T21:03:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,930 | ino | sp_v6_html_s.ino | #include <Wire.h>
#include "DHT.h"
#include <Adafruit_Sensor.h>
#include <Adafruit_BMP085.h>
#include <SPI.h>
#include <Ethernet.h>
Adafruit_BMP085 bmp = Adafruit_BMP085();
DHT dht(8, DHT22);
EthernetServer server(80);
byte mac[] = {
0x90, 0xA2, 0xDA, 0x0D, 0xA5, 0xB0 };
byte ip[] = {
192, 168, 22, 177 };
... |
957ccc056178821f4a30fe8d793faaf549cbc794 | eb18c6097945928122843c50234e32082a9fbf2e | /InterviewBit/Math/palindrome-integer.cpp | 07ffcddfd5c905f4666bf17b731078f16ae5ec81 | [] | no_license | techytoes/competitive-programming | 5b44dee39e753ed39e5029ad95b19417e5690e7b | 10394fd65058c77f6835b08f98a82adc1f6803ea | refs/heads/master | 2021-09-21T17:45:11.787238 | 2018-08-29T18:00:12 | 2018-08-29T18:00:12 | 111,452,554 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 292 | cpp | palindrome-integer.cpp | //https://www.interviewbit.com/problems/palindrome-integer/
int Solution::isPalindrome(int A) {
int rev = 0;
int N = A;
while(N>0){
int rem = N%10;
rev = rev*10 + rem;
N = N/10;
}
if(A == rev){
return 1;
}
else
return 0;
}
|
5ffbbfc2fb544e37caeed12b02620fca742669ff | 6f8a2dfe6fe0fe73b4df674be8761f6b70fea1ee | /038OwnershipTransfer.cpp | 071d5cb1b3a8ce7699c7ff41f340ab849f180e19 | [] | no_license | 237suraj/CPP | e3912adcf2344dd05f23da3b0ff6bbb5d3e810b5 | 1a098ac02cacde84db3957e8b79facfcee196e3d | refs/heads/master | 2020-03-28T09:02:58.983733 | 2018-12-02T17:09:05 | 2018-12-02T17:09:05 | 148,009,783 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 567 | cpp | 038OwnershipTransfer.cpp | #include<iostream>
using namespace std;
namespace nm038
{
class CA
{
CA()
{
cout<<"CA Ctor"<<endl;
}
~CA(){
cout<<"CA Dtor"<<endl;
}
public:
void Fun()
{
cout<<"CA Fun"<<endl;
}
friend class Smart;
};
class Smart
{
CA *ptr;
public:
Smart():ptr(new CA())
{
}
Smart(Smart& par):ptr(par.ptr)
{
... |
ca3f56eeff56b3f04a764f829d65e5148affd198 | e80972c3d72814438e7f2564fbd8931d1eb773ba | /shared/GraphicsLib/Event.h | 0a64234652db7b53109026e0f71b586a93e7cf9f | [] | no_license | dacuster/GameAI | 9b8a8bc75e34142612d0ddefc8c136a300c0017a | 0f6814e33e875af3493eb3de36029ebee491fa02 | refs/heads/master | 2020-09-01T14:25:49.511069 | 2019-12-06T09:32:25 | 2019-12-06T09:32:25 | 218,979,316 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 398 | h | Event.h | #pragma once
#include <string>
#include <trackable.h>
using namespace std;
class Event:public Trackable
{
public:
enum EventType
{
INVALID_EVENT_TYPE = -1,
MOUSE_MOVE_EVENT,
MOUSE_BUTTON_EVENT,
KEYBOARD_EVENT,
NUM_EVENT_TYPES
};
Event( EventType type );
virtual ~Event();
Eve... |
6fdc0d005c24f0bc78e9b321834d02f2420a4a32 | 432416efe3f78ec362d8a2cb02bc0048748101d7 | /src/expressions/arithmetic/nadd.hpp | 1a12f7705bd78634491b1aeb99d3dd26a16dcffe | [] | no_license | reymontero/Leonardo | df06bd115629d1e7b3dab9d879b397f0a949ba6e | 1e70d138aa618cf8fd4835ba278a622c31f7b70a | refs/heads/master | 2021-12-09T12:04:34.862656 | 2016-05-12T15:03:25 | 2016-05-12T15:03:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 643 | hpp | nadd.hpp | #ifndef NADD_HPP
#define NADD_HPP
#include "arithnode.hpp"
#include <memory>
/** Node responsible for adding two operand nodes. */
class NAdd : public ArithNode
{
private:
// left calculation operand
std::unique_ptr<ArithNode> left;
// right calculation operand
std::unique_ptr<ArithNode> right;
public:
... |
281f4b8faa8c58b4e9bd7802e02f5106a749e92c | ee2682b03c9787c9f6407fc6de34786eac6b87d6 | /src/frontend/ncurses/settings.cpp | 51c83a6c79d965d1f060dd45309d61af7a6e4432 | [] | no_license | Esteban-Salzert/Rush3-MyGKrellm | 2787496a93ec62ec8961d3f2b27be0d924710f23 | a33aedca6fb15468114cbda2e8c08091568c810a | refs/heads/main | 2023-02-28T14:48:57.626512 | 2021-02-02T16:54:58 | 2021-02-02T16:54:58 | 335,344,937 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,823 | cpp | settings.cpp | /*
** EPITECH PROJECT, 2021
** rush3
** File description:
** settings
*/
#include "monitor.hpp"
void draw_settings(MonitorDisplay &disp, const System &sys)
{
(void)sys;
wclear(disp.wins[SET].win);
box(disp.wins[SET].win, 0, 0);
wprintw(disp.wins[SET].win, "Display Settings (press 1/2/3/4 key to edit)"... |
9ba9a2d9dce7701a3e32c744a4443f49a6679413 | a2206795a05877f83ac561e482e7b41772b22da8 | /Source/PV/build/Wrapping/ClientServer/vtkLSDynaReaderClientServer.cxx | 9637bbcbcaecc055d2aa0da689ba9695c58a0f97 | [] | no_license | supreethms1809/mpas-insitu | 5578d465602feb4d6b239a22912c33918c7bb1c3 | 701644bcdae771e6878736cb6f49ccd2eb38b36e | refs/heads/master | 2020-03-25T16:47:29.316814 | 2018-08-08T02:00:13 | 2018-08-08T02:00:13 | 143,947,446 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 42,769 | cxx | vtkLSDynaReaderClientServer.cxx | // ClientServer wrapper for vtkLSDynaReader object
//
#define VTK_WRAPPING_CXX
#define VTK_STREAMS_FWD_ONLY
#include "vtkLSDynaReader.h"
#include "vtkSystemIncludes.h"
#include "vtkClientServerInterpreter.h"
#include "vtkClientServerStream.h"
vtkObjectBase *vtkLSDynaReaderClientServerNewCommand(void* /*ctx*/)
{
ret... |
96a7c6ab018545087a60c676a6848a90415a291e | 6fee4c583884ab81173a0666635ce16e15fb0206 | /arduino/Libraries/IRremoteESP8266/src/IRutils.h | 0d0b677b57b1e0e7c2edf043453c261a71af4905 | [
"Apache-2.0",
"LGPL-2.1-only"
] | permissive | MattS8/IRSmartHub | b993bb739c33c4b767bbe22c8d888e82f53f5198 | b099232e51d13bf4c26787d9d537176148489e48 | refs/heads/master | 2023-01-07T19:36:36.726363 | 2020-01-25T10:45:45 | 2020-01-25T10:45:45 | 190,078,801 | 2 | 0 | Apache-2.0 | 2019-06-20T04:07:20 | 2019-06-03T20:37:45 | C++ | UTF-8 | C++ | false | false | 2,079 | h | IRutils.h | #ifndef IRUTILS_H_
#define IRUTILS_H_
// Copyright 2017 David Conran
#ifndef UNIT_TEST
#include <Arduino.h>
#endif
#define __STDC_LIMIT_MACROS
#include <stdint.h>
#ifndef ARDUINO
#include <string>
#endif
#include "IRremoteESP8266.h"
#include "IRrecv.h"
uint64_t reverseBits(uint64_t input, uint16_t nbits);
#ifdef ARD... |
7731e461ded08ac7beceeff495349de42079e9e4 | 39ae254dea25edbc2e9c8634df0c74f65f0076d8 | /AACube.h | 219cbd9b1d1684de93ff41df7f6456230c0bb6ab | [] | no_license | melsov/OGLVoxelEngine | 94fe5ef41eeed8d56cc845281b3b35b8f57f77ef | 01bb260a335a39b54a176b519fe7d54b6e03245f | refs/heads/master | 2020-04-15T05:54:17.844249 | 2019-01-26T20:25:31 | 2019-01-26T20:25:31 | 164,441,178 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,212 | h | AACube.h | #pragma once
#include <glm/glm.hpp>
namespace VEMath
{
struct Edge
{
glm::vec3 a, b;
Edge() {}
Edge(glm::vec3 aa, glm::vec3 bb)
{
a = aa; b = bb;
}
};
class AACube
{
public:
glm::vec3 origin;
glm::vec3 size;
glm::vec3 points[8];
glm::vec3 get(int i) const { return points[i]; }
glm:... |
5847653ba5d5edecc185cb844b07d8ef8b34d6ef | aab7eafab5efae62cb06c3a2b6c26fe08eea0137 | /rocurves/second_attempt_new2016tuples/src/main.cc | 36c4174471626d9f468fda69e31714a271738f84 | [] | no_license | Sally27/B23MuNu_backup | 397737f58722d40e2a1007649d508834c1acf501 | bad208492559f5820ed8c1899320136406b78037 | refs/heads/master | 2020-04-09T18:12:43.308589 | 2018-12-09T14:16:25 | 2018-12-09T14:16:25 | 160,504,958 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 13,722 | cc | main.cc | #include "usefulFunctions.hpp"
//#include "Lenin.h"
#include <iostream>
#include <string>
#include "KFolder.hpp"
//#include "usefulFunctions.h"
#include "Lenin4.hpp"
//#include <iostream>
//#include <string>
//#include "KFolder.hpp"
using namespace std;
int main()
{
//-----------Define Background and Signal Sam... |
cf261bf1085981d449169597ba0f1049ed65e6ca | 1ba1ee4d9c1e81de026549536c408fd1c4f6aed0 | /photons.h | 8aefd07b47134d032305d2b16c5dc662cc29c510 | [] | no_license | rocee/polarized_montecarlo | 1c9406c7c7bb5663c50d33cb692ae5cd11cbf545 | 6c1faa1a17cef856e86a7d89b63995afbaaddad4 | refs/heads/master | 2020-03-27T09:41:12.152647 | 2016-11-30T18:12:45 | 2016-11-30T18:12:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,235 | h | photons.h | #include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include "Vector.h"
#ifndef __photons__h
#define __photons__h 1
#define ALIVE 1
#define DEAD 0
/* Properties of the light defined in main.cpp */
extern double *s11, *s12, *s33, *s43;
extern double I_R, Q_R, U_R, V_R, I_T,... |
3d41e3ae143eb10e0ec4a8195139c5c55e4d8219 | 3c2b9919dfaeef2232e467b50ba83b64d0c96c63 | /cpp/cf/835C.cpp | d770c6488365d2cacce3fd28164ae3e469706643 | [] | no_license | filhoweuler/programacao-competitiva | 81c2a5fbcc6fdd751785360d2e50fd79cd8a2d07 | a6b4a450479c73fb2479e0b0a9a84fdca27f14d8 | refs/heads/master | 2021-09-01T14:14:19.836502 | 2017-12-27T11:41:17 | 2017-12-27T11:41:17 | 109,110,743 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,592 | cpp | 835C.cpp | #include <bits/stdc++.h>
using namespace std;
int sky[105][105];
int tree[105][105][11];
int n, m;
void update(int row, int col, int val, int t) {
int delta = val - sky[row][col];
//sky[row][col] = val;
printf("upd [%d,%d]",row, col);
for (int i = row; i <= m; i += i & (-i)) {
for (int j = col; j <= n; j... |
409a2652eec56576297d94069acae2afcede33c2 | 06bed8ad5fd60e5bba6297e9870a264bfa91a71d | /LayoutEditor/path2d.h | 857453ca5a6137106af356aa792df79e7810a5cc | [] | 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 | 7,433 | h | path2d.h | #ifndef PATH2D_H
#define PATH2D_H
#include <QVector>
#include <QPointF>
#include <qobject.h>
#include "shape.h"
class PathIterator;
class Logger;
class JShape;
class AffineTransform;
class Path2D : public JShape
{
Q_OBJECT
public:
Path2D();
/*public*/ static /*final*/ int WIND_EVEN_ODD;// = PathIterator.WIND_EVEN_O... |
0b9e17a68ab2cc4ee65667d85fd5d3a67837f0d9 | 125e8801fa2047294b68ca60c5e762d9afa27184 | /include/station_optimization/simulation/helpers/Initial_Info.h | ae8a2d35b7bf9b0663aa6f066f412c4291695f0a | [] | no_license | ZhengchaoWang/ElectricVehicleChargingStation | 7f26946409e5817e147449994e7b6845b22b59ad | f9b3744e4d7d7531d3f1758d7a5897c88761eb30 | refs/heads/master | 2020-03-21T08:05:41.712292 | 2019-04-08T10:36:48 | 2019-04-08T10:36:48 | 138,319,823 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,388 | h | Initial_Info.h | //
// Created by ZhengchaoWANG on 10.09.18.
//
#ifndef CHARING_INITIAL_INFO_H
#define CHARING_INITIAL_INFO_H
#include <vector>
#include <array>
#include <string>
#include <numeric>
#include <iostream>
#include <fstream>
#include <sys/types.h>
#include <dirent.h>
#include <boost/filesystem.hpp>
#include "station_opt... |
afd08b2acf2c1c77e614e5f708ac98afebeeae1c | d6bb54215e44e94a1f29d2c2a2d6c24f129edd8c | /COLOR.cpp | c165236418c0410464038bb6680c9db68f7bf388 | [] | no_license | subarnaChat/Codechef-submissions | df864061e01c6b00cc4525be689fe1079a8d27a9 | 119ff33e1e6426f8cd085698319b69237400bae9 | refs/heads/main | 2023-01-12T18:55:22.623077 | 2020-11-04T14:52:53 | 2020-11-04T14:52:53 | 310,031,735 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 532 | cpp | COLOR.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
int t;
long int n,i,j;
cin>>t;
while(t--)
{
cin>>n;
string s;
cin>>s;
//j=0;
long int r[3]={0};
for(i=0;i<n;i++)
{
if(s[i]=='R')
r[0]++;
... |
d31107c8e59f6d0a91f3d5a06b69dc91da64269f | fc6d01c0a4ff1dd611a97b4a1999ba3e0ec051b5 | /Combinations.cpp | 0a48315e0a856a93a5ce5e4891ebbd54994c4fae | [
"MIT"
] | permissive | fz1989/LeetCode | 9e32ffbf13073b89a4d2b3b19a5a3cada5c09cc4 | 6d9c3ddf3e2048c7be456902841d7e5fc80cd741 | refs/heads/master | 2020-06-04T01:13:25.302987 | 2014-03-04T13:41:23 | 2014-03-04T13:41:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 644 | cpp | Combinations.cpp | class Solution {
public:
vector<vector<int> > combine(int n, int k) {
vector<vector<int> > ret;
int A[n + 1];
helper(0, n, 0, k, ret, A);
return ret;
}
void helper(int now, int N, int pos, int K, vector<vector<int> > &ret, int A[]) {
if (pos == K) {
vector... |
d4abdd1e2173fc2e7deab9ab7b0bc840d355445d | 2154cd09218ce57a7e184ac7d7594e9a4c5faf2b | /Lecture-6/kadane.cpp | ed629bb83b30ce79378db293751cf371d12f027e | [] | no_license | himdhiman/Launchpad-May | 41ec8f88042032dcca9c2bb753a66c0c574a120b | cb0a6d2a9986bf025035b0026b23ace0ee3c6cc0 | refs/heads/master | 2022-02-25T06:15:12.928790 | 2019-08-02T18:09:36 | 2019-08-02T18:09:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 295 | cpp | kadane.cpp | #include<iostream>
using namespace std;
int main(){
int arr[100] = {-7,1,-4,5,1,-3,11};
int n = 7;
int max = INT_MIN;
int currMax = 0;
for(int i=0;i<n;i++){
currMax+=arr[i];
if(currMax<0){
currMax = 0;
}
if(currMax>max){
max = currMax;
}
}
cout<<max<<endl;
}
|
4b50f70f631da60a21e1350c3b816ced13d10d97 | 35321390460c43a8003f8b613ce20b3c733ee6ed | /cpp_bomberman/Coord3.cpp | 3b76e011e8168f101f5724025496e4f97c54a52f | [] | no_license | Vypz/Global-project | 39540c59bc316b1cd23a9e7777e853c42a02c3bc | 72aa8c00d5934d542aa9484501cb5d6ae3f49829 | refs/heads/master | 2023-09-02T05:09:35.173690 | 2021-09-22T15:01:34 | 2021-09-22T15:01:34 | 197,783,486 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,502 | cpp | Coord3.cpp | //
// Coord3.cpp for bomberman in /home/pridea_v/rendu/cpp_bomberman
//
// Made by virgile prideaux
// Login <pridea_v@epitech.net>
//
// Started on Sun Jun 1 01:23:49 2014 virgile prideaux
// Last update Sun Jun 15 18:19:26 2014 virgile prideaux
//
#include "Coord3.hh"
extern glm::vec3 rotationvec[];
Coord3::... |
27f080b422dd0761a25ec4f48f740e5c3401ba14 | 3d43ba42e5c0ba4d021a11f49d33fed1ad51e957 | /day 6/day 6 (zadacha 8).cpp | bf8b16e741d31078d3839aa6ffe09c2ead7fad37 | [] | no_license | ridik22/practik | 54e60930e6b9fe7542815cf6676a5edf78fce150 | b3731343a8c7fd0d5ae49ed1d9cf50c60b6bfffa | refs/heads/master | 2016-09-06T18:42:57.631678 | 2014-11-26T11:42:49 | 2014-11-26T11:42:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 756 | cpp | day 6 (zadacha 8).cpp | # include <iostream>
# include <conio.h>
# include <time.h>
# include <fstream>
# include <stdlib.h>
using namespace std;
void star (int ,ofstream *);
char save_file (void);
int *a=new int [1000];
int max_z=5;
int main ()
{
srand(time (NULL));
cout<<"Vvedite cholichestvo chifer = ";
cin>>max_z;
for (int i=0;i<max_z;... |
25ae377cf01daf5eed622338946871ddeaac0509 | 4352b5c9e6719d762e6a80e7a7799630d819bca3 | /tutorials/eulerVortex.twitch.alternative.numerics/eulerVortex.cyclic.twitch.moving/1.99/meshPhi | 86fc87f1e8924e375329afa261b1b2c61eb4eb80 | [] | no_license | dashqua/epicProject | d6214b57c545110d08ad053e68bc095f1d4dc725 | 54afca50a61c20c541ef43e3d96408ef72f0bcbc | refs/heads/master | 2022-02-28T17:20:20.291864 | 2019-10-28T13:33:16 | 2019-10-28T13:33:16 | 184,294,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 428,625 | meshPhi | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
a868871300a5a4b4bcc94b675f91446c5e0e37e7 | 16e90b3fb905350bdfe012f786ed24d83ee7d00c | /event/ArchonHandler.cc | f8dc581b2a4a4ae6828ad9718f5423d2cbb7795e | [] | no_license | lcls-daq/ami | b216fac06164d4e860d8bf385b381d01a15719da | 4b46b80970fec84979be24eedea8639bd90a9748 | refs/heads/master | 2023-08-03T00:30:36.833126 | 2023-07-29T09:28:36 | 2023-07-29T09:28:36 | 87,128,480 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,848 | cc | ArchonHandler.cc | #include "ami/event/ArchonHandler.hh"
#include "ami/data/EntryImage.hh"
#include "ami/data/ChannelID.hh"
#include "pdsdata/xtc/DetInfo.hh"
#include "pdsdata/xtc/Xtc.hh"
#include "pdsdata/psddl/archon.ddl.h"
#include <stdio.h>
using namespace Pds;
static unsigned default_columns(const DetInfo& info)
{
unsigned rv =... |
40bb291da7af7681dd8ce280c7f2212950bd9526 | daa47619bb1d0eecbbb102d2d873b59a8fa5a9ef | /エクサウィザーズ 2019/d.cpp | 3ebe32ce52c10e3b30aaff8f6733797ee482c662 | [] | no_license | burugaria7/AtCoder | f2bc90d628deecd78eb4a450ba2de35ff1a75748 | 8aced833101866afb5c9140d3c2f0b15f71ba9e6 | refs/heads/master | 2023-04-04T14:44:25.647806 | 2023-03-26T20:09:44 | 2023-03-26T20:09:44 | 182,044,831 | 0 | 0 | null | 2022-09-17T05:26:44 | 2019-04-18T08:08:19 | C++ | UTF-8 | C++ | false | false | 317 | cpp | d.cpp | #include <iostream>
#include <vector>
#include <string>
#include <cmath>
using namespace std;
int main(void){
cin.tie(0);
ios::sync_with_stdio(false);
int n,x;
//vector<int> s(n);
int s;
int tmp;
for(int i=0;i<n;i++){
cin >> s;
tmp = x[bmod]y;
}
return 0;
} |
f9c8d997c2b2882f86ab6eecd4de8a9a6054b09d | 9313d1ef537fb68c9d6b94ea819758f36dd461bb | /DShipTiny.cpp | 3de19dfafbe4ee66b1a44a365bcd85f19d8e08bb | [] | no_license | badprog/badprog-design-pattern-decorator | 7897130a2c27b60d143718feb4e1f196d62a3f67 | 5bd97a601079aad2dd9dbb9a663075a8fd73a5e4 | refs/heads/master | 2020-03-10T02:38:59.815291 | 2018-04-11T19:23:02 | 2018-04-11T19:23:02 | 129,141,768 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 924 | cpp | DShipTiny.cpp | // Badprog.com
#include <iostream>
#include <string>
#include "DShipTiny.h"
//-----------------------------------------------------------------------------
// Constructor
//-----------------------------------------------------------------------------
DShipTiny::DShipTiny() {
std::cout << "ShipTiny created." << std:... |
80556d01beba37beb5e2aeb438db37568356e20b | 6dbf7ea75a74dbf6cbbb43da7f0bf13743f50b80 | /CSE167 PA3/MatrixTransform.h | 62d6d728f658206d432df6d4c10e1f87c10145e8 | [] | no_license | yumingqiao/OpenGL-Projects | 05e454b05c72352dd3e5d9aacec4de06d2c2b2d7 | 46b19cd73f52209ef7f49ce8d6404cdae701e89d | refs/heads/master | 2022-01-01T19:24:56.330524 | 2016-08-09T03:58:00 | 2016-08-09T03:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 460 | h | MatrixTransform.h | #pragma once
#include "Group.h"
class MatrixTransform: public Group
{
public:
glm::mat4 M;
glm::mat4 R;
glm::mat4 S;
glm::mat4 T;
MatrixTransform();
~MatrixTransform();
void update(glm::mat4 C);
void draw();
//test
void rotate(float ang, glm::vec3 rotation, glm::mat4);
void translate(glm::vec3 translation)... |
1aa4c3df559cffaae559fc74c2344b7bd373aa79 | 8564a7836782bf0c5166fa224a8caf8d441ef379 | /StiPersist/MapIterator.h | 1a11e0936ad7373c896b17db9a4e541faad185eb | [] | no_license | jordsti/stipersist | af1fd49c08bf8c7aea9cb5e47760211eca7bff65 | a651516c80dba70264b0c465f086d3d20adf0bfa | refs/heads/master | 2020-05-19T17:04:22.442637 | 2014-04-29T13:47:22 | 2014-04-29T13:47:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 578 | h | MapIterator.h | #ifndef MAPITERATOR_H
#define MAPITERATOR_H
#include "Iterator.h"
#include "Map.h"
namespace StiPersist
{
namespace Container
{
class MapIterator :
public Iterator
{
public:
MapIterator(Map *m_map);
virtual ~MapIterator();
bool hasNext(void);
bool moveNext(void);
std::string getKey(void);
... |
b408b05a1aeccbe09fc66c7b7728281a1956f781 | cd50eac7166505a8d2a9ef35a1e2992072abac92 | /solutions/ecoo/ecoo14r2p3.cpp | f8c129960e56b150474c5cc592384d1a00cb940b | [] | no_license | AvaLovelace1/competitive-programming | 8cc8e6c8de13cfdfca9a63e125e648ec60d1e0f7 | a0e37442fb7e9bf1dba4b87210f02ef8a134e463 | refs/heads/master | 2022-06-17T04:01:08.461081 | 2022-04-28T00:08:16 | 2022-04-28T00:08:16 | 123,814,632 | 8 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 2,371 | cpp | ecoo14r2p3.cpp | /*
Solution to ECOO '14 R2 P3 - EasySweeper by Ava Pun
Key concepts: simulation
*/
#include <bits/stdc++.h>
using namespace std;
#define f first
#define s second
#define pb push_back
#define FILL(a, b) memset(a, b, sizeof(a))
typedef long long int ll;
typedef pair<int, int> pii;
typedef pair<pii, int> piii;
type... |
836a2d8bfcf6d8eadf51dd593a3b83e2aca2d3af | 2aab3a0d0502b73dba7adb3b4daf68e00a3676af | /lib/TroykaMeteoSensor-master/src/TroykaMeteoSensor.h | 5733761a917bb47f432cc58401eb21f6d379862f | [] | no_license | iscanderufa/NEW_HDISTILER | 5ac4cea8dd4cc6465ac92f27a60730ad9b67f5c0 | 403c6c5250a104a216583df0848611d5f87de643 | refs/heads/master | 2022-11-19T00:12:56.362688 | 2020-07-16T18:12:46 | 2020-07-16T18:12:46 | 279,868,906 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,159 | h | TroykaMeteoSensor.h | /****************************************************************************/
// Function: Header file for TroykaMeteoSensor
// Hardware: SHT30, SHT31 and SHT35
// Arduino IDE: Arduino-1.8.5
// Author: Igor Dementiev
// Date: Aug 20,2018
// Version: v1.0.0
// by www.amper... |
f74bdbc736f7d9af6a00623a4e76dd0a7e873877 | 7e48d392300fbc123396c6a517dfe8ed1ea7179f | /RodentVR/Intermediate/Build/Win64/RodentVR/Inc/GeometryCache/GeometryCacheMeshData.generated.h | 2686b356528dc262a4f45d58e9f35df79e5c4397 | [] | no_license | WestRyanK/Rodent-VR | f4920071b716df6a006b15c132bc72d3b0cba002 | 2033946f197a07b8c851b9a5075f0cb276033af6 | refs/heads/master | 2021-06-14T18:33:22.141793 | 2020-10-27T03:25:33 | 2020-10-27T03:25:33 | 154,956,842 | 1 | 1 | null | 2018-11-29T09:56:21 | 2018-10-27T11:23:11 | C++ | UTF-8 | C++ | false | false | 1,902 | h | GeometryCacheMeshData.generated.h | // Copyright Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
========================================================================... |
978022bb13d033ef96d75dcf5a905dfc1f054d32 | d25d74bad8c68ac8f2a29a22c6d6860290185254 | /lc1402rdcDsh.cpp | 8b2fbe0c0bddd379639e7953b7e6934f3bbe0006 | [] | no_license | ZhongZeng/Leetcode | 9b7e71838ff4ad80a6b85f680f449e53df24c5d2 | a16f8ea31c8af1a3275efcf234989da19ba1581e | refs/heads/master | 2021-07-14T19:32:49.911530 | 2021-03-29T04:25:54 | 2021-03-29T04:25:54 | 83,813,978 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,180 | cpp | lc1402rdcDsh.cpp | /*
1402. Reducing Dishes
Company OT
Related Topics Dynamic Programming (suggested: Greedy)
Hard (suggested: Medium or Easy)
Runtime: 4 ms, faster than 93.93% of C++ online submissions for Reducing Dishes.
Memory Usage: 8.1 MB, less than 100.00% of C++ online submissions for Reducing Dishes.
Next challenges: ... |
21bba90ac6c0430daf57d22ffb1a0c851163d646 | 63beb1e37f381a8cf09fd70fae9b99d743dc5dbe | /Ksiegarnia/Pracownicy.cpp | cfdc5273804336b5de5797ef6c264388494b7d2b | [] | no_license | jakubmagier/Ksiegarnia | 845f126c2458266fca102de23e85168d93a1eec5 | 748f4f2e3c213b3a074ca238af86b23a51447b3d | refs/heads/master | 2021-01-22T23:21:29.575193 | 2017-05-15T18:10:20 | 2017-05-15T18:10:20 | 85,631,437 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 819 | cpp | Pracownicy.cpp | #include <iostream>
#include <string>
#include "Pracownicy.h"
using namespace std;
Pracownicy::Pracownicy()
{
#ifdef _DEBUG
cout << "Wywolano konstruktor obiektu Pracownicy" << endl;
#endif
}
Pracownicy::Pracownicy(string nowe_nazw, float nowe_zarob)
{
#ifdef _DEBUG
cout << "Wywolano konstruktor z parametrami o... |
f5e6f8d6bc799cb63bff33187c8cd098ff351251 | dcf74fbce1974282cc2f6757bf3d077db4cdf381 | /QuadTable.h | 4cf1f0ba51319f0ff10a92116c02788499011a5d | [] | no_license | ChristopherMcCracken/Compiler | d8cfd6800cb365064404c64428174700be68221e | a0a5f93cda16d59bdfab68b94d8cb0d4f6f2fb4f | refs/heads/main | 2023-02-09T07:38:34.168458 | 2021-01-04T06:16:26 | 2021-01-04T06:16:26 | 326,583,973 | 0 | 0 | null | null | null | null | WINDOWS-1258 | C++ | false | false | 1,173 | h | QuadTable.h | #pragma once
#include <vector>
#include <iostream>
#include <iomanip>
using namespace std;
// Holds sequence of quadcode instructions and helper functions
class QuadTable
{
public:
vector<vector<int>> quadTable;
// Create a new, empty QuadTable ready for data to be added, with the specified number of rows(size).
... |
7f7aeea847bf0747b60d92a4607ef71f719f7dfb | baa2750c792f2d99aa02cdff343944dc02a3e368 | /p3.cpp | 75c70c319e337592a7c421a393bb838f7be1429c | [] | no_license | Damien8x/Project-3 | 1cb7e14263b0f2f4a9d7d63d34e83152b0bca9cc | 9117bd73c84d18c5c64b243e2c6289d87652c370 | refs/heads/master | 2021-08-08T09:03:46.408201 | 2017-11-10T02:12:04 | 2017-11-10T02:12:04 | 109,187,591 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,545 | cpp | p3.cpp | // Author: Damien Sudol
// Filename: EncryptWord P2
// Date: 10/16/2017
// Version: 1.3
// Description: Driver designed to test overloading of operators for both EncryptWord and FindFault
// types, ensuring that the intended functionality is consistant, while logical.
//
// Overloaded operators tested for F... |
7cce270714edd59f3f78b0057311a42441190a8d | 6b74d1343b75e0ad00d7dee4a9f655e3c64c26c2 | /BOJ/2743.cpp | c6618b631ba3ac7d4cea8496a062002b6ac30467 | [] | no_license | snh15978/BOJ | d260841869e14c65cae898b81e3a3369683ffbcc | a7bc13e2b6f9f0171469b5534d688e64ff34d9e9 | refs/heads/master | 2021-01-12T12:15:11.294853 | 2018-09-05T08:13:17 | 2018-09-05T08:13:17 | 72,388,749 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 143 | cpp | 2743.cpp | #include <stdio.h>
#include <string.h>
int main() {
char s[100];
scanf("%s", s);
int cnt = strlen(s);
printf("%d", cnt);
return 0;
} |
2c04cbdd9b76e60a6cf83810b493d4c7ad021f7d | 88986eaf5bcfec0775ddc1df37b56022dac9a9af | /core/holodeck_client.h | ab9c50c88d6d3c5d77b43593d82529e86827d73b | [] | no_license | BYU-PCCL/HolodeckCppBinding | 821235c85afd98e87c83fbd116a110675534b53b | a123c5cfea63fc9d836d884bb7d95736f6c90b3e | refs/heads/master | 2020-03-08T00:46:01.236612 | 2018-04-04T19:23:54 | 2018-04-04T19:23:54 | 127,813,261 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,958 | h | holodeck_client.h | /**
* HolodeckClient is a class which makes it easy to use SharedMemory objects
* to communicate with a Holodeck Server.
*/
#ifndef HOLODECK_CORE_HOLODECK_CLIENT_H_
#define HOLODECK_CORE_HOLODECK_CLIENT_H_
#include <string>
#include <map>
#include <memory>
#include "core/shmem.h"
#ifdef _Win32
#define LOADING_... |
4a42247f9f0696055f30345a8970034af99ffee4 | f824b3542a5e4deba5337879f0c721ae727714a9 | /100DaysOfCode/Graph/DjisktraAlgo/main.cpp | a3a848fcc540ee1cbbfb9872728fd42079916b91 | [] | no_license | ahmadi7/DataStructuresWithCpp | 691236d067df4c0702dcd821d3af4e012a69c865 | 7280d39ff6964a6cb9a42e3a5dc8fb1752f71a9c | refs/heads/master | 2021-01-25T22:31:00.958063 | 2019-12-24T18:04:55 | 2019-12-24T18:04:55 | 243,208,011 | 1 | 0 | null | 2020-02-26T08:21:47 | 2020-02-26T08:21:46 | null | UTF-8 | C++ | false | false | 729 | cpp | main.cpp | #include <QCoreApplication>
#include "graph.h"
int main()
{
int n = 7;
Graph g(n);
int dist[n], prev[n];
int start = 0;
g.addEdge(0, 1, 3);
g.addEdge(0, 2, 6);
g.addEdge(1, 3, 1);
g.addEdge(2, 1, 6);
g.addEdge(2, 3, 1);
g.addEdge(2, 4,... |
067de588a271db147f5390b27145595a91ed6aa6 | e1fe38f9207053ffa1c68c050ed6dc5e63975cd4 | /trappingrainwater.cpp | 75adcb8e2e0698c08d639b88fdbf5bc7c1126b57 | [] | no_license | dhruv2600/leet | 3199c568d7296219336ede0da8238ecd094ac402 | 71e73e999fa689285e7a9bc2414e7536c72cdab7 | refs/heads/master | 2023-09-03T06:24:41.885912 | 2021-10-22T17:15:06 | 2021-10-22T17:15:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 508 | cpp | trappingrainwater.cpp | class Solution {
public:
int trap(vector<int>& height) {
vector<int>rightgreater(height.size());
vector<int>leftgreater(height.size());
int len=height.size();
stack<int>stk;
stk.push(height[len-1]);
rightgreater[height.size()-1]=-1;
for(int i... |
464340a450f8c44f2ea349df50ba60222c11a0a0 | fd65996d057431fa9b719352bbb341157e369347 | /structure variable lecture c language.cpp | 86bf015613ff388904fff93b9b5586f0059c7ae8 | [] | no_license | pawanchoure2000/C-Language- | 453625c198796bd846da33f6395ff3c416624451 | d87cca18e04825e6095cb68da6877e52fc9b1bdf | refs/heads/master | 2020-12-03T16:51:06.575104 | 2020-01-03T02:54:14 | 2020-01-03T02:54:14 | 231,396,367 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 501 | cpp | structure variable lecture c language.cpp | #include<stdio.h>
#include<math.h>
struct point
{
int x,y;
};
struct point make_point(int x,int y)
{
struct point temp;
temp.x=x;
temp.y=y;
return temp;
};
double norm(struct point p)
{
return sqrt(p.x*p.x+p.y*p.y);
}
int main()
{
int x,y;
//struct point pt;
//scanf("%d %d",&x,&y... |
7dd3a11b8555b718a773b47dd8bf6b062cf48de4 | 55bce7e5b04c8beb51ea9a518f492af2c10fa21e | /metro/src/main.cpp | 78f2eb7442fbc5f65d56a026b1bffc3b01da3bcf | [] | no_license | BasselAlnabhan/Embedded_course_projects | 32a7ee7d8a706cc1217cefa6a9783857370f978f | 53e812fb3369466428c5d3ed106480ba1b6804e4 | refs/heads/main | 2023-02-13T22:17:14.909224 | 2021-01-12T02:53:52 | 2021-01-12T02:53:52 | 308,005,471 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 273 | cpp | main.cpp | #include <Metro.h>
#include <Arduino.h>
uint8_t ledState = LOW;
Metro metro = Metro(1000U);
void setup()
{
pinMode(LED_BUILTIN, OUTPUT);
}
void loop()
{
if (metro.check())
{
digitalWrite(LED_BUILTIN, ledState);
ledState = !ledState;
}
} |
73c7585f6335aec262b69b7a0720086aad0bc6fa | ffdc77394c5b5532b243cf3c33bd584cbdc65cb7 | /mindspore/ccsrc/pipeline/jit/parse/parse.h | b3ccfb32e6bb31e9da9eedb2aab2befc79e2c392 | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"MPL-1.0",
"OpenSSL",
"LGPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause-Open-MPI",
"MIT",
"MPL-2.0-no-copyleft-exception",
"NTP",
"BSD-3-Clause",
"GPL-1.0-or-later",
"0BSD",
"MPL-2.0",
"LicenseRef-scancode-f... | permissive | mindspore-ai/mindspore | ca7d5bb51a3451c2705ff2e583a740589d80393b | 54acb15d435533c815ee1bd9f6dc0b56b4d4cf83 | refs/heads/master | 2023-07-29T09:17:11.051569 | 2023-07-17T13:14:15 | 2023-07-17T13:14:15 | 239,714,835 | 4,178 | 768 | Apache-2.0 | 2023-07-26T22:31:11 | 2020-02-11T08:43:48 | C++ | UTF-8 | C++ | false | false | 24,740 | h | parse.h | /**
* This is the C++ adaptation and derivative work of Myia (https://github.com/mila-iqia/myia/).
*
* Copyright 2019-2022 Huawei Technologies Co., Ltd
*
* 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... |
2e5ed8425388e985f65f124c83efeae825a0528a | 9c16d6b984c9a22c219bd2a20a02db21a51ba8d7 | /chrome/browser/ui/toolbar/media_router_action.cc | f6742e6dde4bc5417bb68fdeba741992317ec468 | [
"BSD-3-Clause"
] | permissive | nv-chromium/chromium-crosswalk | fc6cc201cb1d6a23d5f52ffd3a553c39acd59fa7 | b21ec2ffe3a13b6a8283a002079ee63b60e1dbc5 | refs/heads/nv-crosswalk-17 | 2022-08-25T01:23:53.343546 | 2019-01-16T21:35:23 | 2019-01-16T21:35:23 | 63,197,891 | 0 | 0 | NOASSERTION | 2019-01-16T21:38:06 | 2016-07-12T22:58:43 | null | UTF-8 | C++ | false | false | 5,841 | cc | media_router_action.cc | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/toolbar/media_router_action.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/media/router/issue.h... |
2fbb769d3423ea4362eb281652e5a3c9daf4234a | 50281f48a26900c85e4e8b4072472548d5107dcc | /data_structure/f.cpp | d57eddc14593857aa95508a8834c539865540127 | [] | no_license | chiunyi23/OnlineJudgeCode | a04c6d4e61d2434f53374131ee231ceeaf5b45f5 | 8b109ef84bc78d293a47592a7eb01170c954a20b | refs/heads/master | 2022-12-18T17:09:43.076794 | 2020-09-27T11:39:26 | 2020-09-27T11:39:26 | 293,214,212 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 469 | cpp | f.cpp | #include <stdio.h>
void sortArray(char arr[])
void swap(char* a, char* b) {
char temp = a;
a = b;
b = temp;
}
void Permutation(char* arr, int begin, int end) {
if(begin == end - 1) {
printf("%c", arr[begin]);
}
else {
swap()
}
}
int main()
{
int num;
char arr[501]... |
6208c3d78fbb63728e032b242c4ecf97d6fd31a3 | a10b5e2a40b755fc69fd4ea0fa96585af75dd24c | /FSMProject/CleanBarState.cpp | 36f051896aeda366e259b4099d6d736cdcd22b6d | [] | no_license | NicolasBunn/GameFSM | 58ffcbaf672f70e851ca6c18cdedfd8706a4161e | 3ba3406c101253fffcab84204ef66d6c1bcc0a54 | refs/heads/master | 2020-05-15T22:29:30.522342 | 2019-04-21T12:10:27 | 2019-04-21T12:10:27 | 182,528,240 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 551 | cpp | CleanBarState.cpp | #include "CleanBarState.h"
#include "PrepareDrinkState.h"
CleanBarState* CleanBarState::Instance()
{
static CleanBarState instance;
return &instance;
}
void CleanBarState::Enter(Barman* entity)
{
}
void CleanBarState::UpdateState(Barman* entity, int decision)
{
}
void CleanBarState::Execute(Barman* entity)
{
... |
a42f6fb3feed331b5f471655880bd973529a6a8b | 65972aa912b2237ce2683733b04006f8be12f52b | /src/InspectorMediaDock.cpp | 8c7194d68285b8580a7c16dcc81e07124aee93c6 | [] | no_license | sean-m/qtradiant | 87f44280ebca94d8282d5f54f4a5a8fb1b0a78b1 | bcbe389d8c506cbe63e07dd54dc2a914aac911e6 | refs/heads/master | 2020-12-11T01:50:51.085763 | 2013-11-26T22:29:19 | 2013-11-26T22:29:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 485 | cpp | InspectorMediaDock.cpp | #include "InspectorMediaDock.h"
#include "ui_InspectorMediaDock.h"
InspectorMediaDock::InspectorMediaDock(QWidget *parent) :
QWidget(parent),
ui(new Ui::InspectorMediaDock)
{
ui->setupUi(this);
}
InspectorMediaDock::~InspectorMediaDock()
{
delete ui;
}
void InspectorMediaDock::changeEvent(QEvent *e)
{
QW... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.