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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0f1fd01e3054e050b1b86ca643e9be482eb9a5c4 | 0ddee25267440e6758e1637b61f795db692ef308 | /c++/rlge/src/Screen.cpp | 05d2112d95afe1ca24a6cf917b4b5109b8e3b090 | [] | no_license | kramar42/experiments | 6324ad6d57cc8dadbfcc137fc492a232dcf3aa30 | e0b82f638384df25dc269902ac69997b133abee3 | refs/heads/master | 2021-05-25T10:30:18.895994 | 2020-08-29T09:25:55 | 2020-08-29T09:25:55 | 14,934,889 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,781 | cpp | Screen.cpp | #include "../include/Screen.h"
Screen::Screen(TTF_Font *font)
{
_font = font;
_surface = NULL;
}
Screen::~Screen()
{
// Free _surface
SDL_FreeSurface(_surface);
_surface = NULL;
// Remove all tiles
_tiles.clear();
}
int Screen::init_screen(int width, int height)
{
_surface = SDL_SetVi... |
8ef4117c6a7f7d0a18f9170e31ddc5042843aafa | 76b953255947f80780e544b587d64f4471b336bb | /CropTools/CropImage.cxx | 8b52666d393a9ddb5bde398653e64f6b13f2f5ad | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | NIRALUser/niral_utilities | 80e60b857013e5ecdc7cbc72da29aba5b6484892 | 90e8e9479f43c2713cb3e565c0d9f2be39d49ef1 | refs/heads/master | 2022-02-27T01:38:25.337367 | 2022-02-18T17:45:19 | 2022-02-18T17:45:19 | 24,944,395 | 7 | 9 | Apache-2.0 | 2022-02-18T17:45:20 | 2014-10-08T14:26:38 | C++ | UTF-8 | C++ | false | false | 20,802 | cxx | CropImage.cxx | /*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: $RCSfile: CropImage.cxx,v $
Language: C++
Date: $Date: 2009/10/23 14:11:14 $
Version: $Revision: 1.9 $
Copyright (c) 2002 Insight Consortium. All rights reserved.
See I... |
5f02e1760e5209c808bdcb6699bb64d594e5bab0 | 71678fe1cd31568a09935af4df4555de99bd5e27 | /16.TemplateProgramming/4/find.hpp | d738f3371f7dd186ea0788763e510fa509684a01 | [] | no_license | aFleetingTime/Cpp | 31e51a5fd3b84a8f79fa8c4b25326ea7ea20ab67 | 88c0f80c096cb4c24d611cbf89da25d8a63fe63f | refs/heads/master | 2021-01-25T13:19:23.474468 | 2018-08-08T14:32:50 | 2018-08-08T14:32:50 | 123,560,040 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 185 | hpp | find.hpp | template <typename IterType, typename ValType>
IterType find(IterType beg, IterType end, const ValType &val)
{
while(beg != end)
{
if(*beg == val) break;
++beg;
}
return beg;
}
|
ef728b248865625ad622e28e7aca2dea71a10a03 | 6d1b49d8515d37c906b2a2847b19ae667230de6d | /src/duct/drag.cpp | 6b67eedab688d676937e2dc8fa23b6c96ab53fa2 | [] | no_license | asceenl/tasmet | 14346fd87db857ad4cbebad45765bdbc46661dbd | e925e5a06727ad4cf1d78139c894466e93d3ab2e | refs/heads/master | 2022-09-17T16:08:43.559863 | 2020-04-28T07:33:09 | 2020-04-28T07:33:09 | 269,564,094 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,117 | cpp | drag.cpp | #include "drag.h"
#include "bccell.h"
#include "jacrow.h"
namespace duct{
namespace drag {
using tasystem::JacRow;
using std::make_tuple;
using std::tuple;
vd DragResistance::drag(const Cell& v) const {return vd(v.gc->Ns(),fillwith::zeros);}
JacRow DragResistance::dDrag(const Cell& v) const {return JacRow(... |
c967a9dda950140866a3f52525f242963b41007f | 77a71595a2ebdc12b6485046e193f94b930ec721 | /Array/66. Plus One.cpp | c119fced56404d5d7f4e9aefe3ecdee6e8727dff | [] | no_license | Masud-Parves/Interview-Preperation-LeetCode | 87e85fdbadf0c79b6c674b167475b4a3e751d7fe | 8b27d3e86cb0a1762a24e6c357568655243ef489 | refs/heads/master | 2022-12-05T21:57:28.834988 | 2020-08-22T11:22:57 | 2020-08-22T11:22:57 | 287,895,752 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 730 | cpp | 66. Plus One.cpp | class Solution {
public:
vector<int> plusOne(vector<int>& digits) {
int n = (int)digits.size();
bool done = 0;
if(digits[n-1]==9){
for(int i=n-1 ; i>=0 ; i--){
if(digits[i]!=9){
digits[i]++;
done = 1;
... |
30437c33ea76dc7b06e89acdd992e8ad77bf5a2e | b68e2f020ba7ff85fa1ff9627ee7aa99ca301cea | /stage1_3rdFloor.h | 1ecc9a30e78bb66a33a6632ac3b683f5da1c69f2 | [] | no_license | tsubaki4242/RiverCityGirl | 0b01047eab15f3f13ce9d2109134adaa3c11a4d6 | 70765759dfe57abce797ba564f7b7c6278f29db1 | refs/heads/main | 2023-08-06T09:26:00.539706 | 2021-09-28T11:21:12 | 2021-09-28T11:21:12 | 411,229,976 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 398 | h | stage1_3rdFloor.h | #pragma once
#include "gameNode.h"
class stage1_3rdFloor :
public gameNode
{
private:
// 이미지
image _background1;
// 픽셀
image _background2;
// 레터 박스
image _background3;
public:
stage1_3rdFloor() {}
~stage1_3rdFloor() {}
virtual HRESULT init();
virtual void release();
virtual void update();... |
f78a94e46802bbda796fdd93f78726fe72611ca0 | 1adf5a6aca54bd7f7d172a6eb266e8b301e71732 | /Challenge/July_LeetCoding_Challenge/Day27_construct_BT_from_in_and_pos/Day27_construct_BT_from_in_and_pos/Day27_construct_BT_from_in_and_post.cpp | 956548351986ab38a6b7009b80709f74cc1e4511 | [] | no_license | Strawberry9583/LeetCode | 2251120760257ab420b1fb50880cc7fc76124452 | 2be42fc42615e664f1be343941c46758ad1315c4 | refs/heads/master | 2021-06-07T01:58:07.535947 | 2020-11-08T04:18:41 | 2020-11-08T04:18:41 | 149,228,581 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 2,927 | cpp | Day27_construct_BT_from_in_and_post.cpp | #include<iostream>
#include<vector>
#include<string>
#include<map>
#include<unordered_map>
using namespace std;
// Definition for a binary tree node.
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode() : val(0), left(nullptr), right(nullptr) {}
TreeNode(int x) : val(x), left(nullptr), right(... |
1bf725ed5d96f4139794375d5ca4269454701fd9 | e0dda07ee69df68b01f5a9d8289ddb69db18947d | /engine/src/game.cpp | 4f79ea2682c13709d18414f0d5380c8e43e3584e | [] | no_license | HugoGallagher/Game-Engine-Old | d28d9ec3af2d78592c2ca1ca1de7945c21613a8a | 970c5a97b31268e5215180943af85ac55a636c17 | refs/heads/master | 2022-12-12T15:12:05.839274 | 2020-09-13T22:30:13 | 2020-09-13T22:30:13 | 257,755,208 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,314 | cpp | game.cpp | #include "pch.h"
#include "game.h"
#include "base/logger.h"
#include "base/window.h"
#include "base/input.h"
#include "base/maths/types/vector2.h"
#include "base/maths/types/matrix.h"
#include "base/maths/types/matrix4.h"
#include "base/renderer/material.h"
#include "base/renderer/shapes/cube.h"
#in... |
35f2b3bfe33c13d4f150912c08e089d231d864b6 | bf21587b750b4c7456cafdd44d441cde98e246a0 | /dalun/1/Rev/Name/main.cpp | 534363b3761187ae96fe9d28d25e7bc85e067f1a | [] | no_license | N15RA/1072_finalCTF | ba7e255b72e0d25c8e8ef97980165ad7cc4a5e4b | 777e19e8c6fd6c610da6c2f8932ee53d90eba475 | refs/heads/master | 2020-11-24T14:52:35.536976 | 2019-12-15T15:08:20 | 2019-12-15T15:08:20 | 228,201,307 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 456,615 | cpp | main.cpp | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
unsigned char nothinghere[] = {
0x97, 0xec, 0x91, 0x84, 0x73, 0x20, 0x27, 0x23, 0x2d, 0x27, 0x31, 0x74,
0x6f, 0x68, 0x34, 0x6f, 0x64, 0x72, 0x30, 0x6d, 0x9a, 0xbf, 0x61, 0x72,
0x75, 0x6d, 0x6a, 0x36, 0x6c, 0x66, 0x71, 0x33, 0x6f, 0x67, ... |
30740a9d4b61b285a89dda9368f9e9e1f15f4e7b | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /third_party/blink/renderer/modules/xr/xr_input_source_event.cc | 0a81047984835cc779d097b3972c46d27130ce8b | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | 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 | 1,216 | cc | xr_input_source_event.cc | // Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/modules/xr/xr_input_source_event.h"
namespace blink {
XRInputSourceEvent::XRInputSourceEvent() {}
XRInputSourceEvent::XRInputSourceEvent... |
cbd759f8a1eb4686689e94a1b82d0ca9cbfbc27d | f7a84728a6aff172f4b087e8daf45bbe628a5a26 | /reactor/cuda/utility.hpp | 99d33b8649acc4ce686c9e4161499b11ad5cbb43 | [] | no_license | skitaoka/react | d9b689197b86b233ec67ec468bff5945b1c82f67 | f2fa64dff42e435ce1b5737e10278f1d2bd98b21 | refs/heads/master | 2021-01-02T09:02:48.638077 | 2016-03-09T11:15:10 | 2016-03-09T11:15:10 | 21,720,102 | 1 | 0 | null | 2016-03-07T15:36:13 | 2014-07-11T03:22:08 | C++ | UTF-8 | C++ | false | false | 786 | hpp | utility.hpp | #pragma once
#ifndef REACTOR_CUDA_UTILITY_HPP_INCLUDED
#define REACTOR_CUDA_UTILITY_HPP_INCLUDED
namespace reactor
{
namespace cuda
{
template <typename Synchronizable>
inline void synchronize(Synchronizable const & _) throw(reactor::cuda::exception)
{
_.synchronize();
}
template <typen... |
799ed4112cec28ba4d9b0bb6b2786c494816e1d3 | 6bdfedc026af8f532f3291e902346824d192727d | /navigation.h | 33124af5894b8a5183b993e40b20789e93026ec2 | [] | no_license | thangkhuc/navigator | fd9234a26ccd876ed1346aa43681fef12c39b77d | 245e1c5694abaaa900d66934063b675f27b35066 | refs/heads/main | 2023-06-23T23:24:35.933787 | 2021-07-11T12:18:31 | 2021-07-11T12:18:31 | 377,296,748 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,012 | h | navigation.h | #ifndef NAVIGATION_H
#define NAVIGATION_H
#include <QMainWindow>
#include <QMessageBox>
#include <QButtonGroup>
#include <QRadioButton>
#include <QPainter>
#include <QInputDialog>
#include <string>
#include <fstream>
#include "adress.h"
#include "poi.h"
#include "anzeige_dialog.h"
#include "graph.h"
QT_BEGIN_NAMESP... |
039dd41088373ce714e595fa35d5c403f6996ad9 | edfc92a7df8d8ce526324f8e21d603450bec6c23 | /IPXACTmodels/registermodel.cpp | af19f5c9e3fc93021f64f0787b4773f469b4f648 | [] | no_license | shrimpdede/kactus2 | 97be5f47918c99c7a3b3c4e17cf89f1cba267588 | 401b9dc80c2f4f3d081a639e498b08a50c89de71 | refs/heads/master | 2021-01-21T20:30:09.864195 | 2015-09-14T12:42:14 | 2015-09-14T12:42:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,143 | cpp | registermodel.cpp | /*
*
* Created on: 26.10.2010
* Author: Antti Kamppi
*/
#include "registermodel.h"
#include "parameter.h"
#include <IPXACTmodels/XmlUtils.h>
#include <QList>
#include <QDomNode>
#include <QString>
#include <QSharedPointer>
#include <QXmlStreamWriter>
#include <QDomNamedNodeMap>
Register... |
1243a1f5d4f5c2e173f4f4ef9373040ec505c637 | 945e5f8c7c43b7eaa89bac1d7eb9e072f76e3fbf | /Commands/CmdLoaderExtendAndWait.cpp | 94a2ae24f406ced209ad62fae2dc81444cd508fa | [] | no_license | flash1319/2014master | 6d387d0948e08a5d9864791bb260a5e604fed5e3 | 86544d63881ca35531cbbd15c504ace3b283b308 | refs/heads/master | 2021-05-01T03:49:19.953851 | 2014-04-05T08:07:31 | 2014-04-05T08:07:31 | 17,530,929 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,062 | cpp | CmdLoaderExtendAndWait.cpp | #include "CmdLoaderExtendAndWait.h"
#include "../Robotmap.h"
CmdLoaderExtendAndWait::CmdLoaderExtendAndWait() {
// Use requires() here to declare subsystem dependencies
// eg. requires(chassis);
Requires(loader);
}
// Called just before this Command runs the first time
void CmdLoaderExtendAndWait::Initialize() {
... |
fd48c562c860fda1eed8d5b97613de58ce8721c4 | 1e3173adef501b70fdc6d9c9097824300c9e6d07 | /Test.cpp | 50e1fdc4a51e232597e04ee274f7282cf669b4b9 | [] | no_license | Arghnews/project | ea39c4cf7025916ae92d99dc10f690d6bdca691f | b94334694219fbba05425e566a45a48ec17165d8 | refs/heads/master | 2021-01-13T08:49:08.339502 | 2017-08-05T20:35:25 | 2017-08-05T20:35:25 | 79,636,245 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 729 | cpp | Test.cpp | #include <string>
#include <iostream>
#include <sstream>
#include "Compress.hpp"
int main() {
std::cout << "Hi\n";
std::string s = "Hi there bill I'm going ouit on a walk right now I'll see you later matey pi\nasdasfgasfjkasfjsafjksafsafsafsafasfasfasfasdafhwhfiuafhuiwhiuvhcxvhxczivzicvczivihzvuzc asdjakdjwua... |
96eff2a7e2a97ca8be88c961773b8cb5f26b83f9 | 84638572e7e85082c002ebfa41ff178cb32f6eda | /Builder/Product.h | 94b3ae2f70ee5f322ebff15236f044e3526e9068 | [] | no_license | jiemojiemo/DesignPatterns | 096ad1b3813ad96690728ba396e144ed764b1d7f | 4604fd20c86c7e7e7260ba2dc89d0034cada348a | refs/heads/master | 2021-01-10T22:15:16.639215 | 2016-10-25T12:14:21 | 2016-10-25T12:14:21 | 70,330,719 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 327 | h | Product.h | #pragma once
class Product
{
private:
int partA;
double partB;
char partC;
public:
int GetPartA()const { return partA; }
double GetPartB()const { return partB; }
char GetPartC()const { return partC; }
void SetPartA(int a) { partA = a; }
void SetPartB(double b) { partB = b; }
void SetPartC(char c) { partC = c... |
6144477d029449744952fdb566088592968ee693 | e9eaf8ef9475cdc55f26e001738f4502d181eaeb | /Prima/main.cpp | edd8f34445c68b38df08501eee82404670773deb | [] | no_license | oshipka/parallel-computing | 1119e8eace991f53a872cf7433470c143fb5797b | 2652d4f3075c247c39c8f90650c41d77012c19cc | refs/heads/master | 2020-04-07T22:04:02.070033 | 2018-11-27T09:14:27 | 2018-11-27T09:14:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,651 | cpp | main.cpp | #include <iostream>
#include <thread>
#include <chrono>
#include <string>
#include <algorithm>
#include <mutex>
#include <vector>
using namespace std;
int threads = 2;
const int matrixSize = 1000;
const int inf = 9999;
int **m1, *resultAll;
int setter[7][7] = {
{0, 1, 3, inf, inf, 2},
{1, 0, 5, 1, inf, inf},
{3, ... |
73c1c8e710256eb6d15c485ef50a79d7a64a146f | 61a7d8ddd2086f8f9a932528957c08a7fad8f530 | /Turtle/tools/c++_func_creator.cpp | ddbaeab8dbfac4647ef07dfdff03b788dd925b3a | [] | no_license | EldercatSAM/RoboTurtle | fa9d153b059119e14ecd97f1d6b4bc45032120c2 | eba4d47eed1552f5a1fa91c564fded85dfad99b7 | refs/heads/master | 2020-06-29T23:47:13.827577 | 2019-08-30T07:12:16 | 2019-08-30T07:12:16 | 200,658,993 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,353 | cpp | c++_func_creator.cpp | #include<bits/stdc++.h>
//#include<conio.h>
using namespace std;
int main() {
// freopen("C:\\in.txt","r",stdin);
// freopen("C:\\out.txt","w",stdout);
freopen("in.txt", "r", stdin);
freopen("out.c", "w", stdout);
/*printf("#!/usr/bin/python\n# -*- coding:utf-8 -*-\n\nimport os\nimport serial\nimport time\nfrom ... |
ef6042ea538ccdfd6361679ef9bf53f126a01b67 | bf0d3ee072cc1de3e310a09f26c29b62df827051 | /src/RcppConversions.cpp | 980fdfaa30f638726f1e11adc2fbf053575fbe11 | [] | no_license | xrobin/MCMS | eaf5b2111f5dbe959a79d061f1a0e998764be23f | 84acb5e3072ee7d5b7a311121905ef7feb6060a0 | refs/heads/master | 2021-04-30T14:37:47.405270 | 2021-04-06T11:08:15 | 2021-04-06T11:08:15 | 121,221,364 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,251 | cpp | RcppConversions.cpp | #include "conversions.h"
#include "RcppConversions.h"
namespace Rcpp {
template <> oParams::o_type as(SEXP anOList) {
return convertListToOMap(as<List>(anOList));
}
template <> SEXP wrap(const oParams& anOParams) {
throw std::runtime_error(std::string("not implemented"));
//wrap(List)
}
template <> Varian... |
a67827415b41ff594fbadfe1a6b8cecf00bfd3d2 | 296992b2ac454754ca15da53117aa07128ba54b4 | /BearScriptUI/Properites Dialog Special.cpp | 9ebb7c33fba710cdace1dce0e131147f97c98131 | [] | no_license | get-over-here/X-Studio | 0893e7edce4780caa4dfdbce84ba6af467863887 | 66ae0ed8c2e017e32d60de979abf44997511510e | refs/heads/master | 2022-10-22T22:27:11.495043 | 2020-06-11T15:30:16 | 2020-06-11T15:30:16 | 271,582,106 | 0 | 0 | null | 2020-06-11T15:29:45 | 2020-06-11T15:29:44 | null | UTF-8 | C++ | false | false | 6,118 | cpp | Properites Dialog Special.cpp | //
// Properties Dialog Special.cpp : Legacy properties page for a language document
//
// NB: Best viewed with tab size of 3 characters and Visual Studio's 'XML Doc Comment' syntax colouring
// set to a colour that highly contrasts the 'C/C++ comment' syntax colouring
//
#include "stdafx.h"
/// ///... |
3cd9542dc59b08ca509e96aeb0fd76457566148a | 955559e10f9d6fe2b05c60b62cc6f14e6f6ed44e | /HTML.h | 8459c543e9be04222a76024283ef804e9dc1d0a5 | [] | no_license | bolvarak/HeimdallGI | 445f2f71251546b236c710a900eea7f3f6a56315 | 1031f31cdd708627581c5750fb77b6689e6e07f3 | refs/heads/master | 2016-08-11T20:28:52.597045 | 2016-01-11T23:22:56 | 2016-01-11T23:22:56 | 49,460,541 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 36,968 | h | HTML.h | ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Definitions //////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////... |
512b05dc67f420225e898386ce0ca8a5106f20c9 | 830a053dba54e92a5b897677cf5dbb1a2929cc92 | /JonsEngine/Renderer/DirectX11/DX11Shadowmap.cpp | 04fd478e841ba173d488cab7ba114b853f375861 | [] | no_license | JohanJons/jonsengine | a46d1b9459a8365c353f62cc71cc3441a668db47 | e0125e6e6c268c897c62c833f5363093ab7544bf | refs/heads/master | 2021-07-22T06:53:16.240354 | 2021-07-19T10:26:21 | 2021-07-19T10:26:21 | 34,865,761 | 5 | 1 | null | 2019-05-07T18:26:19 | 2015-04-30T16:49:41 | C | UTF-8 | C++ | false | false | 4,265 | cpp | DX11Shadowmap.cpp | #include "Renderer/DirectX11/DX11Shadowmap.h"
namespace JonsEngine
{
DX11Shadowmap::DX11Shadowmap(ID3D11DevicePtr device, ID3D11DeviceContextPtr context, const RenderSettings::ShadowResolution shadowmapRes, const uint32_t numTextures, const bool isCubeTexture) :
mContext(context),
mShadowmapTexture(null... |
1d71e0ee0d6ca078c9bc3228cf87a1fc13e74ebc | c9cf0586ace11aa32fa67606d237a130a06364ee | /circular-cylinder-2-20/w_20/38/phi | 482eff0d31901481dd0a2d29aeb7485d11ce6d8a | [] | no_license | jezvonek/CFD-Final-Project | c74cfa21f22545c27d97d85cf30eb6dc8c824dc1 | 7c9a7fb032d74f20888effa0a0b75b212bf899f4 | refs/heads/master | 2022-07-05T14:43:52.967657 | 2020-05-14T03:40:56 | 2020-05-14T03:40:56 | 262,370,756 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 195,899 | phi | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
... | |
5036dc5746faaafdb24609a3dbfbb29c69629a89 | 27c75711bbe10b3120c158971bb4e830af0c33e8 | /HackerRank/101hack22/D.cpp | 98da70d37b9dd22df7e4174fda870694b77aa030 | [] | no_license | yl3i/ACM | 9d2f7a6f3faff905eb2ed6854c2dbf040a002372 | 29bb023cb13489bda7626f8105756ef64f89674f | refs/heads/master | 2021-05-22T02:00:56.486698 | 2020-04-04T05:45:10 | 2020-04-04T05:45:10 | 252,918,033 | 0 | 0 | null | 2020-04-04T05:36:11 | 2020-04-04T05:36:11 | null | UTF-8 | C++ | false | false | 1,212 | cpp | D.cpp | #include <bits/stdc++.h>
#define REP(i, a) for (int i = 0; i < (int) (a); i ++)
#define REPP(i, a, b) for (int i = (int) (a); i <= (int) (b); i ++)
#define MST(a, b) memset(a, b, sizeof(a))
using namespace std;
const int N = 2e5 + 5;
vector<pair<int, int> > edge[N];
int son[N], n;
long long sum[N], dp[N];
void dfs(... |
e4e46e013788a67c3ceebd11198876db43d71a00 | 372d2c1cac620d2cf335da6cfcab1d6e4d0803b6 | /Editors/SelectObject.cpp | 8e632844c81aaa0225212ef6c84af29d4207cddd | [] | no_license | ugozapad/xray_ol | 39000950815ef5c56801b0fa8f92d047a6e430da | 13536bd1b520d9ec140e4f924216ad07a000b59f | refs/heads/master | 2023-03-15T22:46:17.676641 | 2021-03-08T21:49:30 | 2021-03-08T21:49:30 | 340,637,264 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,411 | cpp | SelectObject.cpp | #include "pch.h"
#pragma hdrstop
#include "ui_tools.h"
#include "SelectObject.h"
#include "scene.h"
#include "sceneobject.h"
#include "sceneclasslist.h"
#include "sobject2.h"
#include "propertiesobject.h"
#include "ui_main.h"
//---------------------------------------------------------------------------
#pragma package... |
8d0e3c6004716205ae7a919db046bf3e972fd061 | 7a2b4a9ed14b254f2f5e5390263fe533e67dfc59 | /syntax_analyzer/context_free_grammar/util/first_set.h | f4a3cf8f4de265585c58091118e737b9e97c5e3b | [
"MIT"
] | permissive | Ziyadelbanna/JavaCode-Compiler | 92878228badd5998ffa5460ce80c5361fdf7af75 | fe26009c3891550f8143fbe8d78284146ca70674 | refs/heads/master | 2020-04-30T01:59:36.973928 | 2020-02-06T18:21:31 | 2020-02-06T18:21:31 | 176,545,718 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,353 | h | first_set.h | //
// Created by awalid on 4/25/18.
//
#ifndef COMPILER_CFG_SET_H
#define COMPILER_CFG_SET_H
#include <unordered_map>
#include <vector>
#include <unordered_set>
#include <set>
#include "../cfg_symbol.h"
class cfg_symbol;
struct pair_comparator {
bool operator () (const std::pair<cfg_symbol, cfg_production *> &... |
a24c292139effed2ab8be0468bdd34f45ddd3162 | 0040fcd881a6a126f06b0abb9cca19f4b91a5a02 | /src/refractStore.cpp | c88536ff1dc091cc0940df8725ce7dccd820f959 | [
"Artistic-2.0",
"MIT",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | YonghaiShen/scatdb | c4cb26f8bd19facf22f81c9462bd043b5c260675 | d17a42097d81bcf2688f3af79512414f04da58e3 | refs/heads/master | 2020-03-26T19:28:57.255756 | 2018-04-11T13:18:59 | 2018-04-11T13:18:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 754 | cpp | refractStore.cpp | // Code segment directly based on Liu's code. Rewritten in C++ so that it may be
// compiled in an MSVC environment
#define _SCL_SECURE_NO_WARNINGS // Issue with linterp
#pragma warning( disable : 4244 ) // warnings C4244 and C4267: size_t to int and int <-> _int64
#pragma warning( disable : 4267 )
#include <cmath>
#i... |
d2f8c200f1061574304c1d8f87cf94d718ae5258 | 4fbfb50904f208236b7da8a63961f50d3d1de0df | /src/Tools/Code/Polar/Patterns/GPP/SCL/Pattern_polar_SCL_rep.hpp | d775896450ff49f3587577cd5bb59fea33391c48 | [
"MIT"
] | permissive | aff3ct/polar_decoder_gen | a6f046db7420bc5c080526272ff520c2d89b9d3d | 7d02025aa62bbef58b88f8fca65f5ee9ed86727e | refs/heads/master | 2021-06-06T12:58:08.627089 | 2020-03-17T08:54:58 | 2020-03-17T08:54:58 | 98,864,521 | 10 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,802 | hpp | Pattern_polar_SCL_rep.hpp | #ifndef PATTERN_POLAR_SCL_REP_HPP_
#define PATTERN_POLAR_SCL_REP_HPP_
#include <aff3ct.hpp>
namespace aff3ct
{
namespace tools
{
class Pattern_polar_SCL_rep : public Pattern_polar_rep
{
protected:
Pattern_polar_SCL_rep(const int &N, const Binary_node<Pattern_polar_i>* node,
const int min_level... |
1080f5a67daab02098c138a624a37fde3b63ddf4 | 70343f59ab9050b9fa6840f23ff186a1a9b964ce | /Map/UnitField.h | dc72924b5c424b1e3a064d88f7fcdc5a568b2894 | [] | no_license | ChronoDS/cpp-game-logics-design | d150477c62db62a5033eb57621cac5af36f6b801 | be1c54a925da4d5d31387603266ce82924980439 | refs/heads/master | 2020-07-15T23:40:34.488227 | 2019-09-03T16:02:26 | 2019-09-03T16:02:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 636 | h | UnitField.h | #ifndef UNIT_FIELD_H
#define UNIT_FIELD_H
#include "Point2d.h"
#include "Soldier.h"
#include "Item.h"
#include <list>
class UnitField{
std::list<Soldier*> soldiers;
std::list<Item*> items;
bool isAvailable;
public:
UnitField();
~UnitField();
list<Soldiers*> getSoldiers();
list<Ite... |
09f7ba3974acdf4075ea18128652a0b59252dd1b | 19118f39aaa306de955d75ac2eef0a037326fc45 | /Source.cpp | 12e2a1001d37cb1b85f21452bdffd7423a27fccf | [] | no_license | dustindinh/student-console-management | 302d0d1b6d398ae55d46c079427b9d60e2d90646 | 2dc72a81f4ac2304527ce3c8627efc66c61b217a | refs/heads/master | 2020-05-23T05:37:20.997398 | 2019-05-24T14:57:12 | 2019-05-24T14:57:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,855 | cpp | Source.cpp | #include<iostream>
#include<conio.h>
#include<string>
#include <iomanip>
#include "console.h";
using namespace std;
/* TÀI KHOẢNG CỦA GIÁO VIÊN / HỌC SINH */
#define TEACHER_USERNAME "trucvy"
#define TEACHER_PASSWORD "123abc!"
#define STUDENT_USERNAME "sinhvien"
#define STUDENT_PASSWORD "123123"
vo... |
bbda462dbc08aff2d9cb1c40bfd0c8e9b92e5408 | d6f2642a9c2c57133464a657e3dc9a33b15afdc8 | /fac.cpp | d72486c50826ec9e495277a24cb7dd7dc7e10a28 | [] | no_license | tarunsinghal97/code | 59faab2aa5e54cee96d831be38f0a28cfef79f60 | 7ca8705a3e88acd26f09c0778483cb2d2ec9357f | refs/heads/master | 2021-01-19T09:14:36.264036 | 2017-10-30T18:43:46 | 2017-10-30T18:43:46 | 82,078,361 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 591 | cpp | fac.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
int t;
scanf("%d",&t);
for(int p=1;p<=t;p++)
{
int n,arr[200],count=0,k,l;
scanf("%d",&n);
for(int i=0;i<n;i++)
scanf("%d",&arr[i]);
sort(arr,arr+n);
for(int i=n-1;;i--)
{
if(50%arr[i]==0){
k=50/arr[i];
}
if(50%arr[i]!=0)
{
... |
5fad445dd7f4b66d4465fdbe4bc7f1862bef1ae4 | 1095886d4e32db6d1d179244969eb48ed6b03322 | /common/examplebase.cpp | 5d5bca5e4e6c0b8bd223624a00d982ba9bb0738d | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | xixi853/OpenGLES_Examples | aad601657ed41a059a74dea9143a6a08080436b2 | dd2354921834098e038cd62990d43a186b8a870f | refs/heads/master | 2020-06-21T22:00:00.809046 | 2019-07-15T17:12:04 | 2019-07-15T17:12:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 39 | cpp | examplebase.cpp | // Implementation of Common library
|
123c101f51cb4272b4b2defe219a7c123e2c7760 | 60ff005ba22805a33548b1516e29409a84544e2a | /lw_6/Solve4/Solve4.h | 779041272bca5ba654934fbe14eac657b34a2771 | [] | no_license | gordenia/OOP | 6535561f43a25a35a50689b33d1ab4f864e40266 | 30b93754461f04c0506441a4cdf1f8450e212b85 | refs/heads/master | 2021-01-25T12:36:17.766347 | 2018-07-05T16:46:09 | 2018-07-05T16:46:09 | 123,481,182 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 290 | h | Solve4.h | #include <vector>
struct EquationRoot4
{
size_t numRoots = 0;
//double roots[4];
std::vector<double> roots;
};
EquationRoot4 Solve4(double a, double b, double c, double d, double e);
double Solve3(double a, double b, double c);
std::vector<double> Solve2(double a, double b, double c); |
6f586c21323cceacc32d6724938f658a36d3a03a | 7b67cab222fa108d3bb9728ac5ccb8dccb820435 | /AnalysisExamples/SiStripDetectorPerformance/src/ClusterAnalysis.cc | c15e45735576b2c7c764dcc15f2c325c86fe5c40 | [] | no_license | lsilvamiguel/usercode | 5fbfa224c0be162df350cff8a6964e15d665b925 | 16e28f8126b844775853c58c0e6bba3a24e106dc | refs/heads/master | 2021-01-09T05:57:56.039791 | 2016-12-21T16:05:30 | 2016-12-21T16:05:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 48,606 | cc | ClusterAnalysis.cc | /*
* $Date: 2007/05/19 20:20:07 $
* $Revision: 1.27 $
*
* \author: D. Giordano, domenico.giordano@cern.ch
* Modified: M.De Mattia 2/3/2007 & R.Castello 5/4/2007
*/
#include "AnalysisExamples/SiStripDetectorPerformance/interface/ClusterAnalysis.h"
#include "DataFormats/TrackerRecHit2D/interface/SiStripRecHit2D.h"... |
2908eba8672a3a54c19dcc629c16cf398bc6a9fa | 489a45659476fafb66934427e42bfce3d60a0116 | /Sources/CvOutcomeList.cpp | a7764949c43c90d42dc0191f368dce4d415aa806 | [] | no_license | billw2012/Caveman2Cosmos | 3a8c6ea347e75dbe2de9519fe70e6b38e0cf6dbe | 2382877536e1669972dd024ce2d0f3d0d5ffd988 | refs/heads/master | 2020-07-19T00:14:48.856106 | 2019-09-03T23:20:42 | 2019-09-03T23:21:02 | 197,989,388 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 7,487 | cpp | CvOutcomeList.cpp | // $Header:
//------------------------------------------------------------------------------------------------
//
// FILE: CvOutcomeList.cpp
//
// PURPOSE: A list of possible outcomes with a relative chance
//
//------------------------------------------------------------------------------------------------
#include... |
c6b84c0e94b9b2b68799f6d0e1da9f280992d355 | d8d0ece686132fcec71b272a39cb6895b78f8c14 | /SpaceSumo/hud_positioning.h | abb653521e06b8b461543eceacdd84eed396e087 | [] | no_license | Ryxali/SpaceSumo | bce49e1eaa47542d9099e936d94cd8ceb7b35ca5 | 81da176deb2d825ec052400237c310ddd5352d0c | refs/heads/master | 2016-09-05T16:46:55.690164 | 2014-03-21T14:04:34 | 2014-03-21T14:04:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 393 | h | hud_positioning.h | #pragma once
#include <Common\Config.h>
namespace cfg
{
static Config TOP_LEFT_CFG("res/conf/characters/ui_positioning/top_left.cfg");
static Config TOP_RIGHT_CFG("res/conf/characters/ui_positioning/top_right.cfg");
static Config BOTTOM_LEFT_CFG("res/conf/characters/ui_positioning/bottom_left.cfg");
static Config B... |
ee14160b595dad1660ed30d81ea63327a6c7a82c | 1f6b7d893869289a11ce926f5771f5cd61c9ebe4 | /src/BusaoBLL/BusaoBLL.cpp | a70099507462744f63597cb5d47d4eca7ae0c8fa | [
"MIT"
] | permissive | mpeschke/OOP-A1-BUSAO | 96cf98372cd9bdf86b13813b032f7fe01ac9063d | eb1dedc0c44cba23a97a44f9fa1c259fbd0455aa | refs/heads/main | 2023-04-23T13:47:29.910717 | 2021-05-11T03:09:33 | 2021-05-11T03:09:33 | 365,058,465 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,478 | cpp | BusaoBLL.cpp | /**
BusaoBLL.cpp
Purpose: Busao Onibus class
@author Matheus Peschke
@version 1.0.0 2021-05-09
*/
#include "stdafx.h"
#include "BusaoBLL.hpp"
#include "Exceptions.hpp"
namespace BLL {
static const char* const g_InvalidParameters("Valor tem que ser maior que zero.");
static const char* const g_Lotacao... |
2f9cd43eae9fc8bc0046fde38e732a316bf1fa80 | aff457e2600887c173c6b316bf095ee3ed0d0526 | /6/src/6.1.cpp | 7ace999b0c7a9119f9594287d6a12aba760a4e44 | [] | no_license | teozec/numerical-simulation | 3235940b03e50ce968cc650c8e064dc36826599b | 6c8133c5e5fd34c760575e69e1adf38bd270c3e4 | refs/heads/master | 2023-07-17T22:07:25.935574 | 2021-09-03T21:05:57 | 2021-09-03T21:05:57 | 352,906,461 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,923 | cpp | 6.1.cpp | /****************************************************************
*****************************************************************
_/ _/ _/_/_/ _/ Numerical Simulation Laboratory
_/_/ _/ _/ _/ Physics Department
_/ _/_/ _/ _/ Universita' degli Studi di Milano
_/ _/ ... |
c8c81952a429331787c5fbec28cd28dcbcd9da97 | 332ac761313484e2f575b685de928eed0c7287f0 | /n9095/main.cpp | b75b9faf82d0d893cca7cb7253929228544124bf | [] | no_license | cheezzjazz/BOJ_Algorithms | 890c7f2513bee4eee5ecab6269d4557f39035ec1 | aef4053896b75f5b011134c211c6ea8ec291987a | refs/heads/master | 2023-05-20T05:15:29.277042 | 2021-06-08T03:00:59 | 2021-06-08T03:00:59 | 360,132,579 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,115 | cpp | main.cpp | //두번째 풀이
#include <iostream>
#include <cstdio>
#include <vector>
using namespace std;
int ans;
void go(int sum, int n) {
if(sum > n) return;
if(sum == n) {
ans += 1;
return;
}
for(int i = 1; i <= 3; ++i) {
go(sum +i, n);
}
}
int main() {
freopen("input.txt", "r", st... |
b63db705181a7a0303259f5cdab3aa58964221db | 843a9a01ce8a4f0e1e23ec4d37055505f5a7d98b | /Algorithm/Algorithm/소스.cpp | 7691a2f8c5911b8235cdf6df3d2726f660908373 | [] | no_license | perext5528/Visual_studio_code | 985499eec65d65828b1e3b30a470bcb8f6678a3c | baf4bd897d9ee9ee00bb80f40ed5ca460cc9df22 | refs/heads/master | 2020-04-30T09:33:13.357483 | 2019-03-20T14:25:48 | 2019-03-20T14:25:48 | 176,749,134 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 849 | cpp | 소스.cpp | #include <stdio.h>
void main() {
int data[] = { 6, 3, 11, 9, 12, 2, 8, 15, 18, 10, 7, 14 };
int lstack[11] = { 0 }, ustack[11] = { 0 };
int m = 0, n = 11;
int i, j, temp;
int top = 0, count = 1;
lstack[0] = m;
ustack[0] = n;
while (top > -1) {
m = lstack[top];
n = ustack[top];
top--;
i = m;
j = n;
... |
f65ddafc683f43a850c52851f4c910b9e84f4976 | d0d1160e7727bde0ebe7aa8e0deda2ac6cc57b3a | /proto/frontend/src/action_prof_mgr.h | 78cdb632c4178ca5883a73f302c1c8148cfc8ed8 | [
"Apache-2.0"
] | permissive | liusheng198933/PI | 9c0be8064d5e0d283d535a99ae2712121dd01d6f | 124ac3c45df72a4b93eee1664266e923f4b69545 | refs/heads/master | 2021-05-12T12:39:39.420972 | 2018-01-19T09:45:00 | 2018-01-19T09:45:00 | 117,418,492 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,074 | h | action_prof_mgr.h | /* Copyright 2013-present Barefoot Networks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... |
1a1beb0d09088d834b90c8f5287fc405cdf4e8d8 | a088811232f43aaa06a12a8690e4962e950d4d9d | /Assignment 3/code/client2.cpp | 80283722e6c4ca47fd365cb461fc6d0cb149e275 | [] | no_license | rs07/Computer-Network | 1b96dee1d820ae38edaa95951722cb1b26565116 | e95cdf24134d5fbe0357352ef7d7f9b15eeed383 | refs/heads/master | 2020-03-29T13:29:36.039241 | 2018-09-23T21:46:24 | 2018-09-23T21:46:24 | 149,964,985 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,085 | cpp | client2.cpp | #include<iostream>
#include<bits/stdc++.h>
#include<stdio.h>
#include<sys/types.h>
#include<sys/socket.h>
#include<stdlib.h>
#include<unistd.h>
#include<netdb.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include<pthread.h>
#include<fstream>
using namespace std;
#define MICRO 1000000
typedef long long ll;
//#defin... |
9805c4c06b4121863713cac27c0eb6ebc55ac816 | 61d4b8ad05866ca901f0e980f3158b91e33acfec | /src/shuffler.cc | f0ed1ceae53ce8cd39fd4a9ee059885ece775a03 | [
"LicenseRef-scancode-other-permissive"
] | permissive | anderspkd/groth-shuffle | 4b866022a6e6b1993d6148701f350250c9764a38 | ab58498137d7502e65f5805b8841198f06ec332d | refs/heads/master | 2023-09-05T05:32:59.716274 | 2021-10-17T16:02:45 | 2021-10-17T16:02:45 | 418,179,752 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,182 | cc | shuffler.cc | #include "shuffler.h"
#include <iostream>
#include <numeric>
shf::Permutation shf::CreatePermutation(std::size_t size, shf::Prg& prg) {
if (!size) return Permutation();
Permutation p(size);
std::iota(p.begin(), p.end(), 0);
std::vector<std::size_t> r(size);
prg.Fill(r);
// Fisher-Yates
std::size_t c =... |
59fdad3eec649937a4d3ba110356a7787b9a00f7 | c9a56654744b48b83ad052b86d811094044b3c69 | /MvsServer/source/HK_SipService.cpp | e8fd538629ff792c684f33e0a7eb5b49d188e0c3 | [] | no_license | zhuhaijun753/bocomSrc | 6c1f3a9ffefb6bf605b4c30bba184bb2719d98a7 | 5ea248f2da29e7932d2c8b8034d9ed08499ea513 | refs/heads/master | 2022-04-28T09:35:27.320694 | 2020-04-27T04:32:56 | 2020-04-27T04:32:56 | 259,205,543 | 0 | 0 | null | 2020-04-27T04:32:14 | 2020-04-27T04:32:13 | null | GB18030 | C++ | false | false | 43,807 | cpp | HK_SipService.cpp | // 博康智能视频检测识别软件 V2.0
// Bocom Intelligent Video Detection & Recognition Software V2.0
// 版权所有 2008-2009 上海博康智能信息技术有限公司
// Copyright 2008-2009 Shanghai Bocom Intelligent Information Technologies Ltd
// 博康智能公司秘密 Bocom Intelligent Information Technologies Ltd Confidential Proprietary
//
#ifdef HK_SIP_SERVICE_OPEN
#in... |
16bb30ab53c728038b24067782b608d1b1c20076 | c69473a0366b53fa835ad5051289a07e0b2b822a | /MFC_P4/MFC_P4Dlg.cpp | 4a9b7353f8e2865ed01f7f6cb27bc41a3ca19146 | [] | no_license | yaxinqq/ScanMine | b51d7773d741ed5ee9dc7fc25454434dec26a710 | dda76bba52585a948ef3a3569741a106806cf2d4 | refs/heads/master | 2020-09-13T02:29:53.479852 | 2019-11-19T08:25:04 | 2019-11-20T01:03:05 | 222,633,399 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 29,070 | cpp | MFC_P4Dlg.cpp |
// MFC_P4Dlg.cpp : 实现文件
//
#include "stdafx.h"
#include "MFC_P4.h"
#include "MFC_P4Dlg.h"
#include "afxdialogex.h"
#include <cstdlib>
#include <cstdio>
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
#define random(x) (rand()%x)
// CMFC_P4Dlg 对话框
CMFC_P4Mine::CMFC_P4Mine(bool IsMine, int Column, int Line, int AroundMi... |
d1a25172bf90b2c05f277b4d58c275e918ba4d72 | 9f4c35cff855b14127e4a84e18ad8e2072113994 | /src/vSLAM/StereoFeatures.cpp | e353eadc017cd7e4fafbd61a224ed49b800bb0d2 | [] | no_license | RyanEvanWolf/BasicSLAMStructures | cb03c0076cb8f0ac3e39a6106917eba93ffe46ae | d92c3d299ea7ff752af48e113954eea648621d23 | refs/heads/master | 2020-12-24T23:09:23.874751 | 2018-01-12T23:13:03 | 2018-01-12T23:13:03 | 100,127,986 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,044 | cpp | StereoFeatures.cpp | #include "Structures/vSLAM/StereoFeatures.hpp"
namespace stereo
{
StereoFeatures::StereoFeatures()
{
}
void StereoFeatures::read(const cv::FileNode& node)
{
node["ImageMetaData"]>>frameData_;
node["detectionSettings_"]>>detectionSettings_;
cv::FileNodeIterator meas_it,meas_end;
cv::KeyPoint tempIn;
meas... |
d7fa9016fb3e764a2d15faf68b9a6fc10554d111 | fdd5d99a506b4cdccb6b58164d54127d77de2feb | /MnozenjeMatrica/MnozenjeMatrica/test/DSTLAssertions.cpp | 5d569f0db766d42e17f278c35c1b6ee45be6ed10 | [] | no_license | panicmilos/MnozenjeMatrica | d0ebfcbb75adf2ca4b93b3ba3d21c5fae960d261 | 99e89aac34035eb1e7430d4328aa6dfe29281c4c | refs/heads/master | 2022-09-21T11:06:29.188809 | 2020-06-02T17:02:37 | 2020-06-02T17:02:37 | 261,267,945 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,144 | cpp | DSTLAssertions.cpp | #include "DSTLAssertions.h"
#include <algorithm>
#include <vector>
#include "gtest\gtest.h"
#include "UtilsForTests.h"
void MatrixAssertions::MATRIX_DIMENSIONS_EQ_(const Matrix& m, std::pair<size_t, size_t> dimensions)
{
const auto [numberOfRowsExpected, numberOfColumnsExpected] = dimensions;
const auto [numberOfR... |
9b67d6dad7ee845bca34f6348e4fdc720b0e2882 | 053f1a3df314db938107e6aec66ecdd8caf75042 | /10182 - Bee Maja/bee.cpp | bf0614542648af79ea7af1938f3c07520504cc47 | [] | no_license | yuting-zhang/UVa | 70cedd7f12b1cdca31688f2926ceac8c4c48f8e5 | 9ab1380d62f1b9479b8a82af7233d6f2a7d07732 | refs/heads/master | 2021-01-20T17:03:30.651083 | 2017-03-01T07:15:57 | 2017-03-01T07:15:57 | 48,550,831 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 898 | cpp | bee.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<pair<int, int>> solution(100000);
solution[0] = {0, 0};
solution[1] = {0, 1};
int x = 0, y = 1;
int layer = 1, dir = 0, step = 0;
int walk[6][2] = {{-1, 1}, {-1, 0}, {0, -1}, {1, -1}, {1, 0}, {0, 1}};
int num = 2;
w... |
e07c376e67f7452140a3ed50e325afa6e1ee8c74 | 2e543d1e0ac96540f03125ba0762b663973191ba | /clib/Searchable.h | 0e3685069ff812c750bb23aec28c47d75902279b | [
"Apache-2.0"
] | permissive | hpcc-systems/eclide | c1ebaca1944d5d107b0d3ee58004581e1d8e8e27 | 38a6e01da20ff2c821f35a8c517f34e427b08ba5 | refs/heads/master | 2023-09-04T00:09:39.538261 | 2023-08-31T16:07:22 | 2023-08-31T16:07:22 | 2,189,986 | 10 | 16 | NOASSERTION | 2023-08-15T15:35:29 | 2011-08-11T08:33:27 | C++ | UTF-8 | C++ | false | false | 2,798 | h | Searchable.h | #pragma once
#include "clib.h"
class CSearchableResult;
class CSearchableInfo;
__interface ISearchable
{
bool CanBeSearched() const;
bool Search(const CSearchableInfo &info, CSearchableResult &result) const;
};
#ifndef _INC_COMMDLG
//search flags are from common dialog if that isn't included, these will do
... |
9e042f421408d799103ea22979a994b67f1e606c | 83ea745bd92cc65fa91c79fb071fb70cbbafabcd | /StringToInt/src/main.cpp | 68faf0055655f48564c587ce535281403b437dc7 | [] | no_license | Austin-Derrick/CPP_InClass | 87b6ddaed255f4940ccdbef1dad65c7aa7fc44af | 96c82d1856953d937eb54de49b86cd00b2fdadce | refs/heads/main | 2023-04-26T13:51:20.370810 | 2021-05-15T03:47:34 | 2021-05-15T03:47:34 | 367,525,503 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,178 | cpp | main.cpp | #include <iostream>
#include <cstdio>
#include <stdio.h>
int stringToInt(std::string _string)
{
int currentChar = 0;
int sign = 1;
int intResult = 0;
while (currentChar < _string.length() && _string.at(currentChar) == ' ')
{
std::cout << "found a space" << std::endl;
currentCh... |
c00974125067423a9760d8023427fa0cb212675b | 5e42800bf2f07f4697f22c89e64f89aa04f91de5 | /c++/pente/StringTokenizer.h | 6aee6667e81ed02708c685ea02d8cb19d3d0b821 | [] | no_license | trieck/source | 52cee310f8c28781996c546e05ce14baca28ac0f | ad8da1b70deef58005aa4226e36d5eefad71920a | refs/heads/master | 2023-01-22T14:44:51.389815 | 2023-01-14T23:02:21 | 2023-01-14T23:02:21 | 13,166,584 | 1 | 0 | null | 2021-06-27T21:24:46 | 2013-09-28T03:42:40 | C++ | UTF-8 | C++ | false | false | 809 | h | StringTokenizer.h | // StringTokenizer.h: interface for the StringTokenizer class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_STRINGTOKENIZER_H__E845A57C_2B53_410B_9124_8D47D351EF06__INCLUDED_)
#define AFX_STRINGTOKENIZER_H__E845A57C_2B53_410B_9124_8D47D351EF06__INCLUDED_
#if _MSC_VER > 10... |
cfaafc3c9e385fb5d38b40ea3848bdb070199212 | 6fc54f48326523f4daabbae215fa905ba7c4d70f | /Examples/Benchmark.hpp | 50225a6b10f58af779fedc1d4b1484179f2e75ae | [
"MIT"
] | permissive | cos8oih/GDCrypto | 69f71bdaba21ef6fb39ae10b1c745f455dfb3fbb | 2d75646475a752e93c8b2a829033e2350ecc862c | refs/heads/master | 2023-08-10T07:52:46.426181 | 2020-12-24T14:45:00 | 2020-12-24T14:45:00 | 146,644,540 | 4 | 3 | MIT | 2023-05-07T05:41:47 | 2018-08-29T18:52:16 | C++ | UTF-8 | C++ | false | false | 493 | hpp | Benchmark.hpp | #ifndef _GDCRYPTO_BENCHMARK_HPP
#define _GDCRYPTO_BENCHMARK_HPP
#include <chrono>
namespace gdcrypto
{
class Benchmark
{
long long m_Start;
long long now()
{
return std::chrono::duration_cast<std::chrono::milliseconds>(
std::chrono::high_resolution_clock::now().time_since_epoch()).count();
}
public... |
f1a1b6489e6e6e2bb0bd9743a02bc995155d3f7c | 1e1713c9f11cb03a1c38e5f3a276083f9d25dc0a | /Matrix/Day-13-2D-Matrix/rowsWithMax1s.cpp | bb14cae3747fbae4266120f2aa93b2ffb051cfec | [] | no_license | VikrantSingh16/DSA | 1679575bd4b5fc525f7d796710644cf5ccec3cac | 93de2e09f1d59e7c6be68ba1e789930f87fd076c | refs/heads/main | 2023-07-26T05:48:52.395985 | 2021-09-04T04:09:19 | 2021-09-04T04:09:19 | 370,332,768 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 679 | cpp | rowsWithMax1s.cpp | #include <iostream>
#define row 4
#define col 4
using namespace std;
int main()
{
int prevCount = 0, maxCount, index = 0;
int a[row][col] = {{0, 1, 1, 1},
{1, 1, 1, 1},
{1, 1, 1, 0},
{0, 0, 0, 0}};
for (int i = 0; i < row; i++)
{
... |
340e1546dfc954a4e7c9f151eca79f281abbb218 | 3512ad6c64f4f86089372a508b034cde1e17685c | /detail/objects.h | 29034ac2f6b8f5cbb926ff6fc1a70d626de51de7 | [] | no_license | zwkno1/serialization | 0794260c802dc33c514b15d9b8f0bfd4a45a8657 | 476ab350014100ee45444cc65ce94036aaa27c0d | refs/heads/master | 2020-04-12T05:00:48.400935 | 2016-09-29T04:11:55 | 2016-09-29T04:11:55 | 63,677,301 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,330 | h | objects.h | #pragma once
#include <list>
#include <string>
#include <ostream>
#include <cstring>
#include <exception>
#include <rapidxml/rapidxml.hpp>
#ifdef SERIALIZATION_NO_TRACE
#define SERIALIZATION_TRACE(os, str1, str2)
#else
#define SERIALIZATION_TRACE(os, str1, str2) ::serialization::trace trace_object(os, str1, str2); (... |
6710608703714e7bfcd57306e6b0813b3b373c12 | 0f456c0b493c44a78472a167183655695c66246a | /src/Compiler/Compiler.h | 96cf8f672f2ce9b6c5434054acc0af8b1a76648e | [
"BSD-3-Clause"
] | permissive | zetabasicdev/zetabasic | 8f77a6b765b282950472074167e32fc7cfb1f875 | 230ef475efcb57d6ddaf224e1d41dd57c8accbb0 | refs/heads/master | 2021-04-28T15:32:36.792578 | 2018-04-15T17:59:47 | 2018-04-15T17:59:47 | 121,991,570 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,357 | h | Compiler.h | // BSD 3-Clause License
//
// Copyright (c) 2018, Jason Hoyt
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice, this... |
330150120803a792a59cfe5edee58a438ddc811c | d0fb46aecc3b69983e7f6244331a81dff42d9595 | /apds/src/model/SyncMigrationJobRequest.cc | b98be30df3b79bfba22a682d2c4d8613c500985a | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-cpp-sdk | 3d8d051d44ad00753a429817dd03957614c0c66a | e862bd03c844bcb7ccaa90571bceaa2802c7f135 | refs/heads/master | 2023-08-29T11:54:00.525102 | 2023-08-29T03:32:48 | 2023-08-29T03:32:48 | 115,379,460 | 104 | 82 | NOASSERTION | 2023-09-14T06:13:33 | 2017-12-26T02:53:27 | C++ | UTF-8 | C++ | false | false | 1,735 | cc | SyncMigrationJobRequest.cc | /*
* Copyright 2009-2017 Alibaba Cloud 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... |
88fd0e8d79529289cfbcca38c1461affaf6a5c46 | 4ed96afb54af599a8a4a14621628fa33d9667d74 | /c2-practical-1/src/common/quadrature.hh | 65cc46835e3af32d52d1a4ef6725b2303cbe38c6 | [] | no_license | osiaaan/C2practical | ad5aa0274c422332370b27f44d0e69ccaa1db823 | aeee3d5980794b86568d201fa90560bf29d4959d | refs/heads/master | 2020-05-01T00:33:57.173632 | 2019-03-27T14:05:58 | 2019-03-27T14:05:58 | 177,171,198 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,214 | hh | quadrature.hh | #ifndef QUADRATURE_HH_INCLUDED
#define QUADRATURE_HH_INCLUDED
//- system includes
#include <vector>
/** @addtogroup Quadratures
@{
*/
/** \brief Quadrature interface class. To implement a new quadrature
derive from this class and use the method \b addQuadraturePoint to add
new quadrature points.
*/
... |
594ea04b65c8291524b6e41911348b19d200de4d | 820a765168e890630a320842f9b79222f13126cf | /include/regex.hpp | 16d5c64dbfbe67542ad1bb88f11f2024dcc2ae22 | [
"MIT",
"Apache-2.0"
] | permissive | hjiayz/cpp_regex | 60662e4a5016fdfd7cb8e53d8329103996406d8f | 10acf6936b82a78b1566fcc6cc196b2c856dbd7c | refs/heads/master | 2023-08-02T22:03:18.847584 | 2021-10-01T13:50:29 | 2021-10-01T13:50:29 | 410,188,462 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,055 | hpp | regex.hpp | #pragma once
#include "rust/cxx.h"
#include <string>
#include <regex>
struct MatchItem;
struct MatchGroup;
class Regex
{
public:
std::regex pattern;
std::regex_constants::match_flag_type match_flag;
Regex(std::string const &s, std::regex_constants::syntax_option_type pflag, std::regex_constants::match_fla... |
0a367ef6542f7b4aeed49e84e5d77a519f5b2c39 | 3349be5969cac6fea2327873549e9ed7e70847f4 | /NYXEngine/GameEngine.cpp | 8a79fdb04fe7a8bba6f63ce276e6398abf70c29c | [] | no_license | RayMicheau/Old-Nyx-Engine | e3f7e746863b92cbe0d9351e1b2696094951b7f2 | eb3d0d6fc2c155905060439e98108efdb7b36181 | refs/heads/master | 2020-06-11T14:59:55.724628 | 2016-12-05T16:25:00 | 2016-12-05T16:25:00 | 75,643,637 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,225 | cpp | GameEngine.cpp | #include "pch.h"
#include "GameEngine.h"
GameEngine::GameEngine()
{
Renderer = new OpenGLRenderer();
Window = new WindowView();
}
/*controller update isnt being called idk why*/
void GameEngine::Update() {
while (SDL_PollEvent(&SDLEvent))
{
//std::cout << "SDLEvent.type" << SDLEvent.type << "\n";
switch (SDLE... |
1b56ae142e06689234bf31f5aec013e841ed7aed | 1640f5232ea960a3bb020e34d7b00b88a8c488fc | /Projeto/NiceHolidays/pacote.cpp | 5aa1e0a36f771146a4af6b82bb9605afa6272e13 | [] | no_license | joaoDossena/NiceHolidays | 39649f0cf337f95c3ed293bd45f75644681383f4 | 93148f92b676d13a598a9b18471eb3dc5cbe59e4 | refs/heads/master | 2020-05-18T00:26:00.331447 | 2019-05-10T13:40:21 | 2019-05-10T13:40:21 | 184,061,798 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 10,708 | cpp | pacote.cpp | #include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <cstdlib>
#include "pacote.h"
using namespace std;
//STRUCTS
typedef struct data //Struct para datas dos pacotes
{
int ano;
int mes;
int dia;
}data_t;
typedef struct pacote //Struct para pacotes turísticos
... |
1699ef3720685d3925a064e52f9d8c95e8b37c57 | 9bf3a9d55d87ee8c93453cbc88059e93eb754596 | /Kostka/Kostka.ino | 229218e735d07a71bfb0d606e842f59a5c5ffa7d | [] | no_license | profesor79/kostka | 097c24a2e02daa2696fec66cb74fd28c01d35822 | 198ca0e7c8df9b42b31dcece126626d3c9488017 | refs/heads/master | 2021-08-10T19:25:19.816179 | 2017-11-12T22:43:49 | 2017-11-12T22:43:49 | 110,467,296 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,618 | ino | Kostka.ino | /*
dice is a simple solution for my kids
modes
0 * two dices 90 seconds
*/
int lastPort = 20;
int gameMode = 0;
long randNumber;
short dice1 = 6;
short dice2 = 6;
short dice3 = 6;
int dice1StartPin = 2;
int dice2StartPin = 8;
int dice3StartPin = 14;
byte diceValues_array[18];
// Variables will change:
in... |
eafbb51e59703f2f39d269ca5387255ba938f724 | bb68538cd69b7dfd6a8e8bf5fc4c66f4825f34f2 | /catkin_ws/src/hardware/vesc/vesc_interface/include/vesc_interface/odom_publisher.h | 4953bbef315e2b642fbafcf645c5a4030cdd5a3c | [] | no_license | chuangshiji789/assured_autonomy_car | 6f8b9a3bb02a11a9aeb8dcae1cc7f9445f4c7553 | 5c17bbd29e7ef6e100b80eb314a335d629a8851b | refs/heads/master | 2022-04-20T02:46:55.288027 | 2020-03-03T11:55:17 | 2020-03-03T11:55:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,480 | h | odom_publisher.h | #ifndef ODOM_PUBLISHER_H_
#define ODOM_PUBLISHER_H_
#include <ros/ros.h>
#include <vesc_msgs/VescStateStamped.h>
#include <std_msgs/Float64.h>
#include <boost/shared_ptr.hpp>
#include <tf/transform_broadcaster.h>
#include <nav_msgs/Odometry.h>
#include <geometry_msgs/TransformStamped.h>
namespace vesc_interface
{
... |
4a10a29e461a44366758531f3f8a66e4904416b4 | 1c33b6fd7fbf966a961ccd679ad2ba344f2fc05f | /UVA/Curious Robin Hood.cpp | cf3a3fb970f8b964dc772a71052755cb4774d87e | [] | no_license | zim2510/Online-Judge-Solves | f57170e5bf14f339944079ed62bed01bdc5b27e3 | 949ab3cfba0cc7ec4ffaa6f2b3e5b0c517d9377a | refs/heads/master | 2022-01-07T10:23:12.653572 | 2019-05-19T11:30:58 | 2019-05-19T11:30:58 | 135,351,009 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,809 | cpp | Curious Robin Hood.cpp | #include <bits/stdc++.h>
#define Read() freopen("in.txt", "r", stdin)
#define Write() freopen("out.txt", "w", stdout)
#define min3(a, b, c) min(a, min(b, c))
#define max3(a, b, c) max(a, max(b, c))
#define TC(i, a, b) for(int i = a; i<=b; i++)
#define FOR(i, a, b) for(int... |
8a8c53e5f08218e93676fbf6e050db3bd6476129 | ab25c8745474535663cc4aca4eeea5bbe913fd1e | /checkBST.cpp | 0a6a9ba99dc4277133392da22d86e68aac577c5b | [] | no_license | egalleye/interviewqs | cda8ccc6335518f4f71777c146323a5170566b51 | f792356dcbb86b7aeee222142a4f35419d1daf4e | refs/heads/master | 2021-01-21T17:57:13.545373 | 2017-05-22T02:17:12 | 2017-05-22T02:17:12 | 92,002,631 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,836 | cpp | checkBST.cpp | /* Hidden stub code will pass a root argument to the function below. Complete the function to solve the challenge. Hint: you may want to write one or more helper functions.
The Node struct is defined as follows:
*/
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <sstream>
#includ... |
0b7d49b0c6538fd56214f18a4f58bf1e4b558a6c | 6a13e4e32bdea049646c1b02f73ee952ec4896a7 | /jni/native-lib.cpp | 600fe4210cc90521432dec7dc98765550c625f0e | [] | no_license | BechirZalila/PropertySample | 666a836e69044d409935a134971396f6ee69f450 | 1ea383e886eac3a670d75b8b6ccfec8c1e9c5964 | refs/heads/master | 2020-06-17T08:43:31.864629 | 2019-07-09T09:32:42 | 2019-07-09T09:32:42 | 195,866,694 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 393 | cpp | native-lib.cpp | #include <jni.h>
#include <string>
#include <cutils/properties.h>
extern "C"
JNIEXPORT void JNICALL
Java_com_sofia_propertysample_MainActivity_enableProp(JNIEnv *env, jobject instance) {
property_set("service.test", "1");
}extern "C"
JNIEXPORT void JNICALL
Java_com_sofia_propertysample_MainActivity_disableProp(JN... |
2e5c49cd2f3b0c49d72b1dc179f1879121dda4fa | 815ac8efa0fa113566fa0eb6718968bd9b613315 | /hummingbot/hummingbot/market/market_base.cpp | 33c47bb29ae97a299cbabdb4269467240f0b1f5b | [
"Apache-2.0"
] | permissive | hide77/hum-botInterface | e2b0fd69d9d14f7659a6fdf22df6efcd1331e5a3 | 0a40eb58dc2981adfad4d1351ad56befa1b81ce9 | refs/heads/master | 2023-03-21T15:00:57.764409 | 2020-05-17T02:14:44 | 2020-05-17T02:14:44 | 264,439,278 | 0 | 7 | null | 2021-03-20T03:53:06 | 2020-05-16T13:06:48 | Python | UTF-8 | C++ | false | true | 861,705 | cpp | market_base.cpp | /* Generated by Cython 0.29.5 */
/* BEGIN: Cython Metadata
{
"distutils": {
"depends": [
"hummingbot/core/cpp/OrderBookEntry.h",
"hummingbot/core/cpp/PyRef.h"
],
"include_dirs": [
"./hummingbot/core",
"./hummingbot/core/data_type"
],
... |
b7853014fd0591e59434c90279248c81f7f29f43 | a1cdae0eb10691ce2918b187dc1e3c6d2201a7da | /3.using的使用.cpp | df2358f8b8ed3922c2dce57809de2c68da7a77ec | [
"MIT"
] | permissive | fengjijiao/cplusplus-code | 99659df518e81bde0d1c84cd67f1013254ffa2de | 5e87ea10ca8dfe19c63d69d66c7dacf752adad55 | refs/heads/master | 2023-06-20T04:28:48.021286 | 2021-07-17T00:08:14 | 2021-07-17T00:08:14 | 260,839,035 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,573 | cpp | 3.using的使用.cpp | #include <iostream>
using namespace std;
//使用“using namespace”可以使得后面不需要每次指定名字空间,相当于java中的import功能。不过,多次使用“using namespace”时,被指定的名字空间同时有效,很容易冲突。
namespace na
{
void print(int a) {
cout << "na::print: " << a << endl;
}
}
namespace nb
{
using namespace na;//使在该代码块中的调用(importance)均使用namespace na
voi... |
711dba05418e06aa68c52d6e33349871f3bdd4d9 | 3603a0c374fae8eb00437b0bd3086230e12874de | /twxes10/libs/cocos2dx/tileMap_parallax_nodes/CCTMXTiledMap.cpp | da617bc745dd30d38c4465ff5c3362cde500b07a | [
"MIT"
] | permissive | diwu/Tiny-Wings-Remake-on-Android | b5bfb8dada7783546622464690c5f212ebba9479 | a9fd714432a350b69615bf8dbb40448231a54524 | refs/heads/master | 2021-01-01T18:06:41.598507 | 2017-04-18T02:09:20 | 2017-04-18T02:09:20 | 4,390,705 | 50 | 23 | null | 2017-04-18T02:09:21 | 2012-05-21T06:53:30 | C | UTF-8 | C++ | false | false | 7,774 | cpp | CCTMXTiledMap.cpp | /****************************************************************************
Copyright (c) 2010-2011 cocos2d-x.org
Copyright (c) 2009-2010 Ricardo Quesada
Copyright (c) 2011 Zynga Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software ... |
bcfa5b1ce072df334820394a2fea9705be4be3e0 | 089077acd7dc512a1afde017692382b0b9ada02f | /SmartHSR/ViewBoundary.h | 4896660cd93b7050443b1b83a2e51f0311686112 | [] | no_license | lizzyly7/SmartDraw | 6830b172cebcf2005366b7438d771af3faa137cf | cb891dbe66d75bbb3f692fce72e91402e1c97010 | refs/heads/main | 2023-04-19T05:54:52.948266 | 2021-05-04T11:02:01 | 2021-05-04T11:02:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,685 | h | ViewBoundary.h | // ViewBoundary.h: interface for the CViewBoundary class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_VIEWBOUNDARY_H__1547AEEC_1481_46FB_B39E_511ADE7DD001__INCLUDED_)
#define AFX_VIEWBOUNDARY_H__1547AEEC_1481_46FB_B39E_511ADE7DD001__INCLUDED_
#if _MSC_VER > 1000
#pragma ... |
3b0d011c1639978e1c3fb613e4709f23c8c72d2b | 22d385ada8cadb33649341567d3b178dcddf6e0e | /Steuerung/Arduino/test_pi_comm/test_pi_comm.ino | 0b216e013f858c74dd5dfc37982b93ec779f876c | [] | no_license | Silberhorn/smartvideocar | 0dc5341e23fe64b788b72794b17256f9645f8a21 | d7dce0515d91bad84b67c2923510e51c33d39b50 | refs/heads/master | 2020-05-01T16:31:26.650714 | 2019-09-25T22:22:54 | 2019-09-25T22:22:54 | 177,574,312 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,203 | ino | test_pi_comm.ino | #include <Servo.h>
//Motor 1
int enA = 3;
int in1_1 = 11;
int in1_2 = 8;
//Motor 2
int enB = 5;
int in2_1 = 7;
int in2_2 = 6;
//Servo
Servo servo1;
void setup() {
Serial.begin(9600);
pinMode(enA, OUTPUT);
pinMode(enB, OUTPUT);
pinMode(in1_1, OUTPUT);
pinMode(in1_2, OUTPUT);
pinMode(in2_1, OUTPUT);
... |
7557d4a94f6124baaf7d5b2a80e6e03d5639c5ae | 8bb13df66047ee25f55fb7f428b5b5d313705926 | /Hashcionary/Hashcionary.cpp | 31a8c23496c78802ee3fea737f2d1b7d70f64246 | [] | no_license | thiagoarmede/HashcionaryFinal | ca6964a218222818baccada74031873c57e0d9f2 | 960a76a8a76ce33de5c2e64fa571ebc6c97cbfdc | refs/heads/master | 2021-07-18T22:16:21.752135 | 2017-10-27T05:03:11 | 2017-10-27T05:03:11 | 107,429,898 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 2,954 | cpp | Hashcionary.cpp | #include "Hashcionary.h"
Hashcionary::Hashcionary(QWidget *parent)
: QMainWindow(parent)
{
ui.setupUi(this);
popup = new popup1();
this->janelaInsercao = new JanelaInsercao();
this->janelaLista = new JanelaLista();
QObject::connect(ui.botaoBuscar, SIGNAL(clicked()), this, SLOT(recuperaRegistro()));
QObject::co... |
7878703b76e7b460e49d4bffe41d277de5162a03 | d617f146714f6db45a89fc555393315e20683f4d | /helloworld/A.cpp | 31a10de3e610d98b572f0b7a83800dadab8cde2f | [] | no_license | vkinsane/Voice-to-Code-EDI-Project | 80b4944f41e9b6512fdc07f3c942e95893d27bcf | 0a586d5520353d880c1a7a4680abc9bfb42fdc23 | refs/heads/master | 2023-06-23T22:21:31.200709 | 2021-07-21T18:39:07 | 2021-07-21T18:39:07 | 357,892,466 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,927 | cpp | A.cpp | #include <iostream>
#include <sstream>
#include <cstring>
#include <vector>
using namespace std;
void split(string s, vector<string>& ans)
{
istringstream iss(s);
for (string s1; iss >> s1;)
ans.push_back(s1);
}
void initialiseWithoutElement(string name, string type, string size, bool common)
{
cout << type;
if... |
dc74baa2488b2f1d38f234c493503881cb17abbf | 2b4c0dbe1f6914e63b130167291c677ac7a765c3 | /src/TempSensors.h | 54d5a6952c11cfc50d08135fc78d75aa44b48380 | [] | no_license | diagon555/SMH | dcd3325b642c35ab0a3874c5b7301a57e0d29f4d | c2d28b4db4cf5b6972db796e0fbb16c26205586b | refs/heads/master | 2021-01-10T12:02:41.235113 | 2016-03-05T07:34:37 | 2016-03-05T07:34:37 | 48,612,200 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,177 | h | TempSensors.h | #ifndef TempSensors_h
#define TempSensors_h
#include <Arduino.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include "interfaces.h"
#include "Commands.h"
#define TEMPERATURE_PRECISION 9
#define MAX_ERROR_REQUEST 5
#define MAX_COUNT_SENSORS 20
class TempSensor: public iNamable
{
uint8_t deviceAddress[8];
... |
500110518e415ee6300da972f95a2a96c9bd72c4 | 486ebb733af8ad0d9773c60a685be32092c9b526 | /suffix_automaton.cpp | bd16bc9c5068fc371aed50f2df00df7d2d4f7b8d | [] | no_license | Alpha-Zone/Templates | 957d38b550899c529a169fd7cff97d0caad3aae3 | b8e34083694484e1b991e6a1fb072c5e440924a9 | refs/heads/master | 2022-12-29T05:15:54.912066 | 2020-10-11T22:19:48 | 2020-10-11T22:19:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,512 | cpp | suffix_automaton.cpp | // overkill sol to https://atcoder.jp/contests/abc097/tasks/arc097_a
// more functions https://github.com/bqi343/USACO/blob/master/Implementations/content/strings%20(14)/Heavy/SuffixAutomaton.h
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
struct st{
int len, link;
map<char, int> adj;
};
const... |
28aacb5de285ef3aeacf61a9ef33b6370ee28f07 | e0dc744f65a4d4d08ba257d9546cf48299f95a5d | /17_LetterCombinationsOfAPhoneNumber.cpp | c9dd44bd48b368f633015deef1473b1359bc9e33 | [] | no_license | clpk8/leetcode2020 | 80bd2fe0393823c9641d1843fcf782322f50a78c | a1418df8fecec8865c8928c85072d1fd5a7a8fc3 | refs/heads/master | 2022-12-12T18:30:35.222311 | 2020-09-02T20:48:04 | 2020-09-02T20:48:04 | 264,571,714 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,109 | cpp | 17_LetterCombinationsOfAPhoneNumber.cpp | //
// Created by Chunbin lin on 8/13/20.
//
class Solution {
public:
vector<string> letterCombinations(string digits) {
if (digits.empty()) return {};
vector<vector<char>> d(10);
d[0] = {' '};
d[1] = {};
d[2] = {'a','b','c'};
d[3] = {'d','e','f'};
d[4] = {'g'... |
dfacd55bd6bb67588abc0ce11ad49848cb68e780 | 7863379a7abc753396a339df8021645214e8bfef | /Source/IntruderMulti/UI/Gameplay/GameplayHUD.h | ef1cddd9d1ad0e9504496af4e0f2b55f0833d313 | [] | no_license | Bertolen/IntruderMulti | 807cc235a6bc72b2813cc8ada55b28b06d52926c | 47502d1d0d65fbcd679087ed0ed2253a0d6f344b | refs/heads/master | 2021-10-25T19:15:57.410624 | 2019-04-06T09:16:59 | 2019-04-06T09:16:59 | 115,042,274 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,285 | h | GameplayHUD.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "IntruderMulti/GameInstance/GameInfoInstance.h"
#include "IntruderMulti/UI/AllLevels/ChatWindow.h"
#include "IntruderMulti/UI/Gameplay/GameplayMenu.h"
#includ... |
4ba97d66aa025dae7ef65c9dca443059a354f020 | 983d7a70d0f298fcfad7431b21a157e854591aa6 | /child_matrix_sum.cpp | 3a55747a5ff8ba6383b8478622f7c8566aab2e9d | [] | no_license | gitliuyuhan/Algorithm | 86ca79bc09b1106522f7e73ee6d36f60871ab0fc | 8d8819eec46ffd5833c58f53782a40e5b34d0bf5 | refs/heads/master | 2021-01-21T14:01:13.968868 | 2016-05-08T07:41:41 | 2016-05-08T07:41:41 | 53,648,207 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,618 | cpp | child_matrix_sum.cpp | /*======================================================
> File Name: child_matrix_sum.c
> Author: lyh
> E-mail:
> Other : 判断一个数组是否可以分成两个和相等的子数组
> Created Time: 2016年04月22日 星期五 20时22分41秒
=======================================================*/
#include<iostream>
#include<stdio.h>
//判断是否可以分成两个子... |
42170a2ffef3d565cc7be569f3c942c353a0bc7c | 89930c64c66ea258a0b75d0943b3b99425d9a4e1 | /src/ElfSegment.cpp | dfb82a9283d8fddc95e15e83fb926fbaead0df4a | [
"Apache-2.0"
] | permissive | kito-cheng/libelfxx | 0f4eee553d5fa07b72f12d2c014c7e038895ef7b | 423b5f56a56b2a6a0cb5197a86d31e6b6d1ef1d7 | refs/heads/master | 2023-08-06T20:27:13.436956 | 2023-07-21T01:44:52 | 2023-07-21T01:44:52 | 7,987,187 | 9 | 7 | null | 2023-07-21T01:44:53 | 2013-02-03T06:23:25 | Shell | UTF-8 | C++ | false | false | 1,620 | cpp | ElfSegment.cpp | /*
* Copyright (C) 2012-2013 Kito Cheng (kito@0xlab.org)
*
* 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 ap... |
5fd0f13e9593b45c287018ef7367b6834934a20e | 2dbbca065b62a24f47aeb7ec5cd7a4fd82083dd4 | /OUAN/OUAN/Src/Physics/PhysicsComponent/PhysicsComponentComplexConvex.h | 9619e18b333dda7e39bd1ce300a61d43a8411283 | [] | no_license | juanjmostazo/once-upon-a-night | 9651dc4dcebef80f0475e2e61865193ad61edaaa | f8d5d3a62952c45093a94c8b073cbb70f8146a53 | refs/heads/master | 2020-05-28T05:45:17.386664 | 2010-10-06T12:49:50 | 2010-10-06T12:49:50 | 38,101,059 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,994 | h | PhysicsComponentComplexConvex.h | #ifndef PhysicsComponentComplexConvexH_H
#define PhysicsComponentComplexConvexH_H
#include "PhysicsComponentComplex.h"
namespace OUAN
{
// Complex elements with low detail, shape will be Convex
class PhysicsComponentComplexConvex: public PhysicsComponentComplex
{
public:
PhysicsComponentComplexConvex(c... |
61bfd811ee8a458d8ca6c4db4f69e7134c621360 | ff3b3beb602535d8f57f064ab120a9195654031d | /client.cpp | 0a2ec8642026be2e57eb2553ced019044e1ff8e4 | [] | no_license | alittleton/NetworksProject1 | 5b4b9b0c00282d64dcfcc6399064c91fd2524775 | 0f8f9f2a10c4d7f37ddb7eb4a3780f07002c587d | refs/heads/master | 2021-04-26T16:43:56.014002 | 2016-02-23T05:31:53 | 2016-02-23T05:31:53 | 50,076,888 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,277 | cpp | client.cpp | //This an simple exmple of client. The client
//takes the server name and port number as an command line arguments.
// The client calls DNS function to resolve the server name,
// it then request a connection to server. Once connection is established
// the client ask user to enter a message and send the message to... |
353b27a7dde39d78a55dd25e9e9b6448287fdcb4 | d8aa7ddfbec886b243cd59a9c6e3c7df3c9d5f14 | /sedit.cpp | 42678fb65854a5a48c28c11409d3b40db4507fd4 | [
"BSD-2-Clause"
] | permissive | loran4d/mud | 64e0840bc707141caeb16f8cb2dddb018e1fac27 | 2e0bbae7e4ca242f075f2b31b41a3856ad8469dd | refs/heads/main | 2023-08-22T00:19:46.136790 | 2021-11-01T21:31:03 | 2021-11-01T21:31:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 23,895 | cpp | sedit.cpp | /************************************************************************
* OasisOLC - Shops / sedit.c v2.0 *
* Copyright 1996 Harvey Gilpin *
* Copyright 1997-2001 George Greer (greerga@circlemud.org) *
************************************************************************/
#include "config.h"
#includ... |
72ebe17fa614ae135c14742d212ad79d0430b2a4 | 85ca65e84eb9503710ff7aa406845918911971f3 | /table.cpp | d9a0b5d4b5c4a15059ab1b0e7cbe9fcfd55da070 | [] | no_license | jsoon049/2372Project | 765eeceefe3401c7d2237ebceb897e43a6d0556a | b7febc10e0065f9c06d56376e56363b0e247c449 | refs/heads/master | 2023-02-14T14:55:22.946366 | 2021-01-13T17:12:53 | 2021-01-13T17:12:53 | 309,804,025 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,498 | cpp | table.cpp | #include "table.h"
#include "player.cpp"
// Constructor which accepts an istream and reconstruct the Table from file.
Table::Table(istream& in, CardFactory* cardfactory) {
string firstWord; // Stores first firstWord of each line
string text; // Stores each line
string secondWord; // Used to store second wo... |
f939577d6eda98eaae666ba7b29634506675e86f | 29b81bdc013d76b057a2ba12e912d6d4c5b033ef | /boost/include/boost/serialization/deque.hpp | 84e52c3635de267465c626445932c1131dc0257d | [] | no_license | GSIL-Monitor/third_dependences | 864d2ad73955ffe0ce4912966a4f0d1c60ebd960 | 888ebf538db072a92d444a9e5aaa5e18b0f11083 | refs/heads/master | 2020-04-17T07:32:49.546337 | 2019-01-18T08:47:28 | 2019-01-18T08:47:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 129 | hpp | deque.hpp | version https://git-lfs.github.com/spec/v1
oid sha256:bc3b7a3cfc269a7d3730912d644f5bf8f12b292a9baa8cef9f26a00e4babc6b1
size 2444
|
8f123b2179037d1bedb6ce5bb48a966de58d330a | cfc95fd29c2ec95cd0e7824038de400c9f75f900 | /robots/wam7dof/wam7dof_kinematics/src/wam7dof_kinematics-component.cpp | a08bcf11dd1d7528947954128065579c61672e1c | [
"MIT"
] | permissive | hjeldin/HILAS | d3da843f672ca08d39c6eea66125c28d69644928 | 49e45fc4a345607c17349fbf0d3a6e35e2c6bbd3 | refs/heads/master | 2021-01-22T11:42:37.105521 | 2015-05-06T05:43:13 | 2015-05-06T05:43:13 | 35,051,186 | 0 | 0 | null | 2015-05-06T05:43:13 | 2015-05-04T18:15:15 | null | UTF-8 | C++ | false | false | 4,124 | cpp | wam7dof_kinematics-component.cpp | #include "wam7dof_kinematics-component.hpp"
namespace Wam7dof
{
Wam7dofKinematics::Wam7dofKinematics(std::string const& name):
Hilas::IRobotKinematics(name, 8, 8,Wam7dof::SIZE_JOINT_NAME_ARRAY,Wam7dof::JOINT_NAME_ARRAY)
{
joints_min_limits[1] = -2.6;
joints_min_limits[2] = -1.985;
joints_min_limits[3] = -2.8;
joi... |
d92fb3b9e982a08f86e99c61d9f3e7062c78db16 | 3a75005c997c18ae8054894c5954e5527c64b557 | /mainPizza/src/Repositories/OrderRepository.cpp | cc75425547da72cf23b3bd37ea649b7360f33461 | [] | no_license | SigrunSunna/batman | 67703eed0c69205e460dc1b97166cdf0d9a4edca | 6cf9d6c99f6c56831fd29ba0aef7bf01dbaa8c2c | refs/heads/master | 2021-08-30T02:11:15.805693 | 2017-12-15T16:43:06 | 2017-12-15T16:43:06 | 112,203,171 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,223 | cpp | OrderRepository.cpp | #include "OrderRepository.h"
#include <string>
#include <windows.h>
#include <dirent.h>
#include <sstream>
OrderRepository::OrderRepository()
{
//ctor
}
OrderRepository::~OrderRepository()
{
//dtor
}
void OrderRepository::storeOrder(const Orders& o)
{
CreateDirectory("Orders\\",NULL);
string fi... |
2aa831073e81d696a83fb20f6542787963458a56 | 446f73a73114c704937195723db0ad50c16f5ff0 | /ros/src/cooperative_driving/cooperative_driving_networking/src/networking/wave-app_noROS.cc | 3bc77b4a36f625a0f2990fe2d53fd2c4ff1dfde0 | [] | no_license | AmjadAlsati/pg2017w_April_8_ | 45ece3b3667cc0dbf5009c98ac7a6a0fc460d611 | 7301b726c5955a6d157ebba6e7709f4deb2f23f0 | refs/heads/master | 2020-03-09T07:54:39.897152 | 2018-04-08T19:50:41 | 2018-04-08T19:50:41 | 128,675,776 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,476 | cc | wave-app_noROS.cc | //////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2017, CCS Labs
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// * Redistributions of s... |
1172fb67362dc367ec7245850c965434013ac641 | 93c9152252bc6c5848d57c226c362dd3a39fc6ce | /cpp/1247_minimum_swaps_to_make_strings_equal.cpp | 65a9f77a13b60cf816348fa86657dafef9e96107 | [] | no_license | grwkremilek/leetcode-solutions | 295a11c2c6ce5ef3d65a06439d10050b9c217578 | ac920c40544248bf9f1292f2efc042c7cbd77f98 | refs/heads/master | 2020-05-03T22:05:17.007801 | 2020-02-13T21:05:50 | 2020-02-13T21:05:50 | 178,837,293 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 492 | cpp | 1247_minimum_swaps_to_make_strings_equal.cpp | //https://leetcode.com/problems/minimum-swaps-to-make-strings-equal/
class Solution {
public:
int minimumSwap(string s1, string s2) {
int x = 0;
int y = 0;
for (int i = 0; i < s1.size(); i++)
{
if (s1[i] != s2[i] and s1[i] == 'x') { x++; }
... |
98c04f739787e04c4ebdfc6b42349158859fac5d | 9b96fc2af45510edcac6851ed6c6ddcc645a7553 | /Daa_code/common/Tpm_utils.cpp | 9c5f87aeab7559d15fa24699aae7fc63a8e699fb | [
"BSD-2-Clause"
] | permissive | UoS-SCCS/ecc-daa | 91c9c312cc6c04b75c0cd201780d56efdbde1717 | eebd40d01aed7a3ccb8dc33df8a4b6415f02dda9 | refs/heads/master | 2021-07-17T12:18:44.008155 | 2020-10-18T18:46:43 | 2020-10-18T18:46:43 | 219,568,397 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,051 | cpp | Tpm_utils.cpp | /*******************************************************************************
* File: Tpm_utils.cpp
* Description: TPM utilities (that are not dependent on the Tpm_daa class)
*
* Author: Chris Newton
*
* Created: Thursday 21 June 2018
*
* (C) Copyright 2018, University of Surrey.
*
******************... |
806075500032883c3b72eeb96d552a59f0ce01f3 | ff4c45c8403987718817db07ef84ebc51d0e73f2 | /MoneyDevLV/Application.cpp | 372f0121d41d944bf13a8c986ff5428c9ad8d967 | [] | no_license | vlychagin/MoneyAppsLV | 7f09bd2473feed831f36ecd98909148b1bc27ed8 | 0c67a0f65743c328f66c083c4cdb5c8153fe650a | refs/heads/master | 2021-01-13T05:38:07.518532 | 2017-06-22T13:30:41 | 2017-06-22T13:30:41 | 95,118,180 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 3,572 | cpp | Application.cpp | #include "stdafx.h"
#include "Utils.h"
#include "Application.h"
#include "Money.h"
Application::Application()
{
// подготовка приложения к работе
init();
money1 = new Money();
money2 = new Money();
} // Application::Application
Application::~Application()
{
delete money1, money2;
waitForKey("Нажмите любую к... |
df22a4d6f5d4f67185b8cfaa2ba000f2058efa04 | 6b1d1c9ce18c0371f3a2226c9a752cd321056b1e | /cppproject/baekjoon/baekjoon14289.cpp | 833df72da9e09af5b40ccf5efce0d6c40ede4bb1 | [] | no_license | rlatkdgus2627/C_and_Cplusplus_code | cdb03c0ff48663133bd6be722efe5b3e9045a010 | ec833540440bd86eb82d267217d43fedb65e3fa3 | refs/heads/master | 2023-06-13T00:10:14.000127 | 2021-07-07T05:30:45 | 2021-07-07T05:30:45 | 326,126,954 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,192 | cpp | baekjoon14289.cpp | #include <bits/stdc++.h>
using namespace std;
long long D;
const long long MOD = 1e9+7;
long long matrix[51][51];
long long temp[51][51], ans[51][51];
int n, m;
void multiple1() {
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
temp[i][j] = ans[i][j];
ans[i][j] = 0LL;
}
}
for (int i = 0... |
d9b629a8518b9a872c510bb8f475e71a7ae44fc3 | a9305ca0522007354ec3189c94854bd92ac9a8fa | /URI/1379.cpp | 3e742ac2ddd06110bf224d89572934c6f45e3433 | [] | no_license | pkmm91/competitive-programming-solutions | d3e51f4b5aea22d684d0d80d6e23b06c3d5d8cd0 | 323fa71b6e3eae38f997725cda580a5d8ea9bbf4 | refs/heads/master | 2021-01-10T06:15:33.449652 | 2016-03-16T13:53:56 | 2016-03-16T13:57:19 | 54,032,433 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 335 | cpp | 1379.cpp | #include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;
int main()
{
int a,b,c;
while(1)
{
std:cin>>a>>b;
if( a == 0 && b == 0) break;
else
{
c = (3*a) - (a+b);
float avg = (a+b+c)/3;
int arr[3] = {a,b,c};
std::sort(arr, arr+3);
float median = arr[1];
if(avg == median)
std::cout<<c<<endl;
}
... |
2591d5e66d1f3e279a4ebb91ec8a042026986b80 | f6c49e0b0d481a43164c44818b1bce9f87f1bbca | /library/VuoImageRenderer.cc | 940bda7455e0c402b2f4667f25ca5b49ef6f3e31 | [] | no_license | pooyaniazi/vuo | 1425a968f63544347dc1661597a7957aac19ff38 | cccc6057463c978f0bc355c00ca9752659198b70 | refs/heads/master | 2021-06-18T06:32:26.047326 | 2017-07-02T00:45:33 | 2017-07-02T00:45:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,959 | cc | VuoImageRenderer.cc | /**
* @file
* VuoImageRenderer implementation.
*
* @copyright Copyright © 2012–2016 Kosada Incorporated.
* This code may be modified and distributed under the terms of the MIT License.
* For more information, see http://vuo.org/license.
*/
#include "VuoImageRenderer.h"
#include "VuoGlContext.h"
#include "VuoGlP... |
86b99f01862a4e5a00e46ff6253371ba7258f5fd | 5386865e2ea964397b8127aba4b2592d939cd9f2 | /grupa C/olimpiada/oblasten/2008/reshenija/Pleven/B/MVD/stamps.cpp | 828299eca39fe3e15afd966b9f2d6000fbcfd228 | [] | no_license | HekpoMaH/Olimpiads | e380538b3de39ada60b3572451ae53e6edbde1be | d358333e606e60ea83e0f4b47b61f649bd27890b | refs/heads/master | 2021-07-07T14:51:03.193642 | 2017-10-04T16:38:11 | 2017-10-04T16:38:11 | 105,790,126 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 415 | cpp | stamps.cpp | /* suma s min br elementi*/
#include<iostream>
#include<stdio.h>
using namespace std;
long long a[3002],f[5002];
long long i,s,min1,k,n,r;
int main()
{
cin>>s>>r;
for(i=1;i<=r;i++)
scanf("%d",&a[i]);
sort(a,a+r+1);
for(i=1;i<=s;i++)
{ min1=2000000000;
for(k=1;k<=r;k++)
if(a[k]<=i)
if(f[i-a[k]]<mi... |
1d258b7b24fa9388280b8f8b9da7e31523fd3235 | 5879255ef03810ce9488c22514e01942be1675ca | /Software/ExpShield2/ASSrc/GPIOHelper.cpp | 97a561c505d8580c763a8f158c8b317f2d2d3a4a | [] | no_license | ec-jrc/airsenseur-sensorsshield | 0321ce44caec82b4e65f876dc266e5aec8ca20e7 | 7069ced06ca2407d194144845c761517a9289256 | refs/heads/master | 2023-05-24T18:07:18.022929 | 2023-05-16T15:11:00 | 2023-05-16T15:11:00 | 143,874,983 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,946 | cpp | GPIOHelper.cpp | /* ===========================================================================
* Copyright 2015 EUROPEAN UNION
*
* Licensed under the EUPL, Version 1.1 or subsequent versions of the
* EUPL (the "License"); You may not use this work except in compliance
* with the License. You may obtain a copy of the License at
*... |
aad09b9d5dda6ea8020bdfc85a85795c3330a75e | dcf26a6bcf853a3f8f6f50f9379998ef4d8aad40 | /foundation/aafwk/services/abilitymgr_lite/src/ability_record.cpp | 45fc2802fa057a007f690581d89dcec60e924365 | [] | no_license | small-seven/testmem | c5f3202dce1c369e9d84cdaaccc2008b827c16d8 | 2771460c617439bd1be562ffdc94543ea170a736 | refs/heads/main | 2023-03-12T22:16:28.824577 | 2021-03-03T04:24:59 | 2021-03-03T04:24:59 | 343,847,762 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 105 | cpp | ability_record.cpp | #include "ability_record.h"
#include "adapter.h"
#include "securec.h"
#ifdef APP_PLATFORM_WATCHGT
#endif
|
c03fbd394167c0391a220d0b6a9482ba6df70a8c | 092f83af8daf07844bef4f5c61b1ca7d298488b8 | /libs/game/include/game/playback_controls.h | 555ec3ed7d1f9380cf88c0f59997227f92f5734e | [
"MIT"
] | permissive | tiaanl/red5 | 1fd0d1ab0f86f8f70fc27d8b7b072d1eb1e956ad | ea7593b38f61f64f8aeb7d58854106bd58c05736 | refs/heads/main | 2023-01-07T05:11:57.569662 | 2020-11-14T19:19:46 | 2020-11-14T19:19:46 | 305,490,400 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 928 | h | playback_controls.h | #pragma once
#include <optional>
namespace game {
enum class PlayDirection {
Forward,
Backward,
};
enum class LoopMode {
Loop,
PingPong,
Stop,
};
class PlaybackControls {
public:
PlaybackControls();
PlaybackControls(I32 firstFrame, I32 frameCount);
I32 firstFrame() const {
return m_firstFrame;... |
fff3b3ba874673a116ffbe8e873cbee8f40f9841 | 94c1bfb9d8ab84af31c278611f6b7385e55f5da9 | /robot_model/tags/latest/robot_state_publisher/include/robot_state_publisher/robot_state_publisher.h | 781082c0702d8b0eecdcb098d4952024a10d8623 | [] | no_license | jbohren-forks/personalrobots-stacks | a8644002b45bbd794a3608ca9a45e29ac9a205ae | 237f5abe0b4cd1bac44e0997f683db20fa0079d4 | refs/heads/master | 2021-01-06T04:01:58.058144 | 2009-09-04T19:47:26 | 2009-09-04T19:47:26 | 99,518,983 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,665 | h | robot_state_publisher.h | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2008, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... |
1b1dbe4e5f388da7a5244340265dd7ab9d9ee341 | 1b8e1ddcb86f0a5cd018bc6b3400c8c6fb1c1984 | /server/server/login/.svn/text-base/GameMsg_C2S_TouristSignInfo.cpp.svn-base | 17427eea2a1d1f6828ab50245e0bc7d22029ee13 | [] | no_license | yzfrs/ddianle_d1 | 5e9a3ab0ad646ca707368850c01f8117a09f5bfd | abffb574419cc2a8a361702e012cdd14f1102a6d | refs/heads/master | 2021-01-01T03:32:51.973703 | 2016-05-12T09:27:00 | 2016-05-12T09:27:00 | 58,615,329 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 457 | GameMsg_C2S_TouristSignInfo.cpp.svn-base | #include "GameMsg_C2S_TouristSignInfo.h"
#include "../share/ServerMsgDef.h"
#include "../../socket/ParamPool.h"
GameMsg_C2S_TouristSignInfo::GameMsg_C2S_TouristSignInfo()
:GameMsg_Base(MSG_C2S_TouristSignInfo)
, m_nUserType(0)
{
}
GameMsg_C2S_TouristSignInfo::~GameMsg_C2S_TouristSignInfo()
{
}... | |
58dbb55af855f617ce0cbc4e4e5690418b76ac4e | 833b0ad8f71cd1a2cd0a0f761edb059a86a79e55 | /BOJ/1000~/9461.cpp | 107f47ab1298a1958f8fa190897f8b93e870f79a | [] | no_license | kin16742/Problem-Solving | 339c0be925eeaab82c2715bbcb571d32ffd00b8c | f549bdf05f16d3179fcc7a177378241b405db56e | refs/heads/master | 2022-12-28T14:29:58.613114 | 2020-10-07T12:24:47 | 2020-10-07T12:24:47 | 185,807,578 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 398 | cpp | 9461.cpp | #include <iostream>
#include <vector>
#include <string>
#include <string.h>
#include <cmath>
#include <stack>
#include <queue>
#include <algorithm>
using namespace std;
int n, t;
long long p[105];
int main() {
cin >> t;
p[1] = 1;
p[2] = 1;
p[3] = 1;
p[4] = 2;
p[5] = 2;
for (int i = 6; i <= 100; i++) {
p[i] = p... |
e595a77d872b72a68294ac4150089f8cc8670f56 | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/8d/1c50f22ca03c2d/main.cpp | f23a5e28f75c882550892b63a4b5f33ebb46bb70 | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 884 | cpp | main.cpp | //#define PROBLEM_FIX1
//#define PROBLEM_FIX2
#include <utility>
template<typename Tp>
struct move_capture {
template <typename Up>
move_capture(Up&&) {}
move_capture(move_capture const& o)
#if !defined(PROBLEM_FIX1)
{} // this is noc linking in clang++
#else
= default; // fix 1: use default
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.