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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9264934314982d7d1c13c63affd48169a2f01ab1 | c2a50f048fd9cded050fdbdb1e1b1d0cdbd0fee5 | /src/boxes/FileTypeBox.cpp | e2e609c89f26ea59474151f59a323b075160d8a6 | [
"MIT"
] | permissive | alexmdodge/cmafp | 722ee87ab13bf67cddc3081725cec82e77db8282 | 47fc81918b594b36787e299be7175ed5aabedd38 | refs/heads/main | 2023-06-22T04:00:26.677461 | 2021-07-24T21:43:14 | 2021-07-24T21:43:14 | 378,416,727 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 550 | cpp | FileTypeBox.cpp |
#include "FileTypeBox.h"
FileTypeBox::FileTypeBox(std::shared_ptr<MediaFile>& file, uint32_t start_offset) : Box{file, start_offset} {
major_brand = shift_u32_str();
minor_version = shift_u32();
compatible_brands = {};
while (_byte_offset < size) {
compatible_brands.push_back(shift_u32_str()... |
23d6e88073ab35e6ae0c5585a6dd87543c358b7e | f8a2e00c2bae4cc8d7f95a7e4f7ce1f4048c7dec | /Source/Const/Rockets/IspConst.h | 82e99b128a259c4b8e653a0d802daf952b86cd46 | [
"MIT"
] | permissive | AzuxDario/Marsy | 756f81b98d26f6335c04203fbd9084c6ece2547a | d7fb746250566377cd18a9651d6b74c2bef6c342 | refs/heads/master | 2022-12-12T17:22:10.343672 | 2020-09-16T12:57:28 | 2020-09-16T12:57:28 | 274,488,096 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 247 | h | IspConst.h | #ifndef MARSY_ROCKETS_ISPCONST_H
#define MARSY_ROCKETS_ISPCONST_H
#include <string>
namespace Marsy
{
struct IspConst
{
const std::string strSeaLevel = "sea_level";
const std::string strVacuum = "vacuum";
};
}
#endif |
262466aca9a8f09bc8cdd959c20f295b558f0597 | ba454f239cde66084ea1eb17627f79bd18ac3f00 | /sketch_sep08c_gprs_test/sketch_sep08c_gprs_test.ino | b7ea32e8172eb42d8330b0be1cadbed73e9043e6 | [] | no_license | isaiah7p/QualityThoughtArduinoLibs | d9b60ab313c046746759265e2b9aab2fa18c6cdc | 416144b7de4479e669026a9d652ddad852582371 | refs/heads/master | 2020-07-08T14:57:19.864992 | 2019-09-09T16:41:10 | 2019-09-09T16:41:10 | 203,706,714 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,450 | ino | sketch_sep08c_gprs_test.ino | #include "SIM800.h"
#define APN "connect"
#define con Serial
static const char* url = "http://arduinodev.com/datetime.php";
CGPRS_SIM800 gprs;
void setup()
{
con.begin(9600);
while (!con);
for (;;) {
con.print("Resetting...");
while (!gprs.init());
con.println("OK");
con.print("Setting up... |
95b3a2338c3b61d881ffb69d55b0631125b19ddd | 39ebcfc953ecd27af86b312beba1f84d8b002bf0 | /gameBOI.ino | b36ce783268434e52bdd67849e0c9a7116409a5d | [] | no_license | savob/gameBOI | d9d9e029f38794fec98219108225e0201eb13f1f | 1ac057507d3ad3eb4a9e8d2c3c1c114c18bfec82 | refs/heads/main | 2023-03-22T08:33:46.174035 | 2021-03-08T07:35:04 | 2021-03-08T07:35:04 | 345,568,830 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,346 | ino | gameBOI.ino | /* gameBOI Code
This is the code for a project of mine, aiming to show off my
ability to design circuits and code by using an ATmega328P to
control a series of LEDs using shift registers to make a game
console that plays a set of one-button games.
The games also store their highscors in the... |
d2348d046463ce82fa9be56f4d7a7f6d708806e5 | 241a25105b2d44b8e8ef1564c04de6ba3001040c | /completed-projects/gradebook/fig07_05-Generate-Values-For-Elements-Of-Array.cpp | ddb2560a6e0c30e787d7326933ab4689d85b6218 | [] | no_license | amdiaznyc/My-Cpp-Projects | e6cc9d49df8d6916e8ef7badf4f38ed14b3b4231 | 357e4e23898d35b7f13f1738dd0619ef376973ed | refs/heads/master | 2022-12-30T09:10:38.069746 | 2020-10-24T01:33:20 | 2020-10-24T01:33:20 | 294,535,984 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 609 | cpp | fig07_05-Generate-Values-For-Elements-Of-Array.cpp | // Fig. 7.5: fig07_05.cpp
// Set array s to the even integers from 2 to 20.
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
// constant variable can be used to specify array size
const int arraySize = 10;
int s[ arraySize ]; // array s has 10 elements
for ( int i = 0; i < arr... |
0e7726bfbeea41bbc2f44e3e7ad7b4710c1e9569 | 48234773be30dc0a383f81ad8cb580ba0ec381d8 | /UAS/OOP03_Class_Person.cpp | 3f454b30119307dce48d17b2aa6c92b6ae6a7979 | [] | no_license | naufalfmm/Prak_Basprog | 4be1b2ea48a22564105c0bce00f8d2506ef2f26a | 99bb10e614fd0a57cb47f4e144debce01484f095 | refs/heads/master | 2021-06-17T17:07:27.797042 | 2017-05-09T01:04:29 | 2017-05-09T01:04:29 | 85,755,929 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 978 | cpp | OOP03_Class_Person.cpp | #include <iostream>
#include <string>
#include <iomanip>
using namespace std;
class Person {
string name;
int age,height;
double weight;
public:
Person() {name="";age=0;height=0;weight=0;}
void masukData(string n, int u, int h, double w) {
name=n;
age=u;
height=h;
w... |
b09ccad31bc84025f78380503952101569c3aa4f | 16a04a189c2f14d6d28a78d774a8c0ad8fb3bf28 | /LibCppSim - Cooperative Caching HPCS/generador/gen_rnd.h | 5a3be448e7292be9a44d6aa122e04967898af69d | [] | no_license | F951/Models-HPCS | 7895b9d708df04f7b2fe70c9e14c46ac32dd3d67 | 64b24311499b8ffd7e86c3698389494f0f5a8787 | refs/heads/main | 2023-03-07T16:02:02.620133 | 2021-02-24T15:38:44 | 2021-02-24T15:38:44 | 341,332,053 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,324 | h | gen_rnd.h | #ifndef GEN_H
#define GEN_H
#include "../glob.h"
#include "../auxiliar/Util.h"
#include "../auxiliar/Hash.h"
#include "../Observer.h"
#include "../wse/WSE.h"
#include "../wse/MessageWSE.h"
#include "../Observer.h"
class Observer;
class TlcProtocol;
class Gen_rnd:public process
{
// list<handle<TlcProtocol> *> que... |
032cc001cc65f4f48fc19957b84b9c2c0309aa51 | 7864f79e011cd5d661c025ea393e18ea0663ca29 | /process.h | 1fdee6702cb9ccac9386b0a7b1c49341493143e5 | [] | no_license | aikolesnikov/cpp1_stud | 631b256705dad30038f01c1800075ead6ee7992b | 94205fc00940954c18d71a5f58d05d8d3056854b | refs/heads/master | 2016-08-12T07:34:47.528411 | 2016-04-01T21:10:50 | 2016-04-01T21:10:50 | 55,129,235 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,967 | h | process.h | #ifndef PROCESS_H_INCLUDED
#define PROCESS_H_INCLUDED
#include "ui.h"
#include "custom.h"
#define MTOP if (MenuIndex==1) {MenuIndex=menu_size;} else {MenuIndex-=1;}; break;
#define MDOWN if (MenuIndex==menu_size) {MenuIndex=1;} else {MenuIndex+=1;}; break;
#define MLEFT
#define MRIGHT
using namespace std;
int esc_c... |
296b0e75a84749f477230229db918c1fd886c261 | 4fefd1ffea2c29af31422ae3dc0a84cdf5951345 | /json_gssapi/src/datamodel/GSSCredential.h | 2e8971fca759d0371a6ca69bff79433e2dbf20cd | [] | no_license | janetuk/gssweb | 08d8a1b51d23576e330b5621f56e410a91fa609c | 6e55e668ed481d25ab544112c56b9b2be35799b2 | refs/heads/master | 2021-01-18T15:23:50.508124 | 2015-08-02T13:57:07 | 2015-08-02T13:57:07 | 42,654,917 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,777 | h | GSSCredential.h | /*
* Copyright (c) 2014, 2015 JANET(UK)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of c... |
85256d6e3a6e8b188ff102338f6bcca1e8de872f | 613de79e1134485ce750cfbcdd2d2293831ca7f8 | /CP_Platform_Bucket/CodeChef/linchess.cpp | 43ff717ae8e612c0abcacc13366106acc4ea5de1 | [] | no_license | arkch99/CodeBucket | a668ad69bd759a2545ec402652c0c3fadfa6e489 | 2a4959114e3d9a501211afeb2341dc729f4042c2 | refs/heads/master | 2023-01-08T11:23:56.765635 | 2020-10-30T07:03:55 | 2020-10-30T07:03:55 | 303,733,044 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 545 | cpp | linchess.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define endl "\n"
#define fast ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
#define pb push_back
#define mp make_pair
int main()
{
fast;
int t;
cin>>t;
while(t--){
int n,k,i,flag=0,sq=0,minans=INT_MAX;
cin>>n>>k;
for(i... |
604703300606da8e38815ae4837be90ac48f8b14 | 6da95427f758b136246b194bf5e15a1074cfe453 | /Engine/Engine/Game.cpp | 85e1e6c693eb445f5ead39d4fe8713d896077797 | [] | no_license | LarsBK/SpaceRace | 3c245858328cdd1589fb05a2abceabe582a3783f | 0a3217fcac5fac70b2501b61499dadd563d5cf85 | refs/heads/master | 2020-04-06T01:52:36.837174 | 2012-03-14T11:31:14 | 2012-03-14T11:31:14 | 2,269,278 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 622 | cpp | Game.cpp | #include "Game.h"
Game::~Game() {
states.clear();
}
void Game::push(GameState* gs) {
cout << "Loading " << gs->getName() << endl;
if(gs->load(this) == 0) {
states.push_back(gs);
cout << "done!" << endl;
} else {
cout << "FAILED!" << endl;
}
}
void Game::pop() {
states.pop_back();
}
int Game::run() {
in... |
29e69cb35a6738227887c2d7262e4caa5309f434 | a06515f4697a3dbcbae4e3c05de2f8632f8d5f46 | /corpus/taken_from_cppcheck_tests/stolen_11954.cpp | ab9fbbf4350322865ef6071605a1ae78e13dbc12 | [] | no_license | pauldreik/fuzzcppcheck | 12d9c11bcc182cc1f1bb4893e0925dc05fcaf711 | 794ba352af45971ff1f76d665b52adeb42dcab5f | refs/heads/master | 2020-05-01T01:55:04.280076 | 2019-03-22T21:05:28 | 2019-03-22T21:05:28 | 177,206,313 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 131 | cpp | stolen_11954.cpp | typedef void ( __gnu_cxx :: _SGIAssignableConcept < _Tp > :: * _func_Tp_SGIAssignableConcept ) () ;_func_Tp_SGIAssignableConcept X; |
a9d7a3120ff7234cd19574f0bff96e2023135d33 | d17a8870ff8ac77b82d0d37e20c85b23aa29ca74 | /lite/kernels/host/roi_align_compute.cc | d8c5f862c24bad4d0d4b33cfb0715679f5a76216 | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle-Lite | 4ab49144073451d38da6f085a8c56822caecd5b2 | e241420f813bd91f5164f0d9ee0bc44166c0a172 | refs/heads/develop | 2023-09-02T05:28:14.017104 | 2023-09-01T10:32:39 | 2023-09-01T10:32:39 | 104,208,128 | 2,545 | 1,041 | Apache-2.0 | 2023-09-12T06:46:10 | 2017-09-20T11:41:42 | C++ | UTF-8 | C++ | false | false | 10,376 | cc | roi_align_compute.cc | // Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
5a2e8ab7bef539e1ca74452ed6c7effe93203d86 | ce736b211d7615fbb8c39186175c3c93168a09a7 | /service_module/algorithm/trees/red_black/rbtree.hpp | 04ff91ec06a4382f25d799f952c026b80f2b9d5e | [] | no_license | wuxiang/elephants | 7affb10385fc68c6380069cd07e2fb9d07b3cfa9 | bddb4671c3971ab984b6497acd1d83ff9c92e387 | refs/heads/master | 2021-01-22T21:28:29.581532 | 2016-09-13T03:00:40 | 2016-09-13T03:00:40 | 17,965,950 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 13,005 | hpp | rbtree.hpp | #ifndef ELEPHANTS_RBTREE_H_
#define ELEPHANTS_RBTREE_H_
#define BLACK 1
#define RED 0
#ifdef TEST_ALGORITHM
#include <iostream>
#endif
namespace Elephants
{
template<class TK, class TV>
class rbpair
{
public:
TK key;
TV value;
rbpair(TK& k, TV& val)
{
k... |
1cfb43c2f6080072793556f0123099745d2ce11e | e359db0e752a11c5d677e3a82574065831bab447 | /app/demo/home_automation/home_control_demo/generated/images/src/air_condition/kitchen_selected.cpp | 31a44e69954ab8a5a74f46b2fed1faf875b6785f | [] | no_license | chichtlm/TouchGFX | 694936495ba49b4baba4fb56fd1165f424518c94 | 09cfdf466ae98fa61f54d55548248134a007871f | refs/heads/master | 2020-05-10T00:07:11.813953 | 2016-12-14T06:55:22 | 2016-12-14T06:55:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 210,627 | cpp | kitchen_selected.cpp | // Generated by imageconverter. Please, do not edit!
#include <touchgfx/hal/Config.hpp>
LOCATION_EXTFLASH_PRAGMA
KEEP extern const unsigned char _kitchen_selected[] LOCATION_EXTFLASH_ATTRIBUTE = { // 162x129 RGB565 pixels.
0xae,0x12,0xae,0x1a,0xad,0x12,0xae,0x12,0xae,0x1a,0xad,0x12,0xae,0x12,0xae,0x1a,0xad,0x12,0xae,... |
131090beca33239ca860bb6d5bbbc2db28cc1d7a | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_repos_basic_block_block_15016.cpp | 5d344f6a2b8c4335628d0a201adae66d164da3c3 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15 | cpp | Kitware_CMake_repos_basic_block_block_15016.cpp | le->mode = mode |
e64d4cd51b855c56fcf192ce0691ca0f750ed9db | b269392cc4727b226e15b3f08e9efb41a7f4b048 | /CodeForces/CodeForces 910C.cpp | d47233c939f0046c2a73b00698de1051f41d2f92 | [] | no_license | ThoseBygones/ACM_Code | edbc31b95077e75d3b17277d843cc24b6223cc0c | 2e8afd599b8065ae52b925653f6ea79c51a1818f | refs/heads/master | 2022-11-12T08:23:55.232349 | 2022-10-30T14:17:23 | 2022-10-30T14:17:23 | 91,112,483 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,554 | cpp | CodeForces 910C.cpp | /*
********************************************************************************
* Author: ThoseBygones
* Version: V1.0
* Date: 2018-03-12
* Subject: ACM-ICPC
* Language: C/C++11
* OJ: CodeForces
* Algorithm:
********************************************************************************
* Algo-De... |
fd0d67aae82f12411bbd6e00a2a083e289cef249 | 9f752472e94ac2557af762df29ca4c61e401781c | /list/list.h | 5e658865b94d65e303d2e3b627a128f78679b9a9 | [] | no_license | Johnny-cn/DataStructure_cpp | 9097f3f22d5e847ece7f8fc378a3538bacd53ab3 | 496198ecacc601a11dc70ede9316e3ab8be91e54 | refs/heads/master | 2020-12-01T07:55:03.437230 | 2019-12-31T16:23:58 | 2019-12-31T16:23:58 | 230,586,697 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,784 | h | list.h | /******************************************************************************************
* Data Structures in C++
* Li MingFeng
* +86 15071373461
* this is Only for my self-study
* Copyright (c) 2019-~ All rights reserved.
********************************************************************************************/... |
99b53f11201790239302ae918f048163f69e9d75 | f30e2553ee1d751751f647ebc36f2d068d36f908 | /tile/tilerenderer.cpp | 38a10566086a708309d27ae0d10dabd208b8add4 | [] | no_license | ygarnui/barley-break | 7a51b38e11996945bb95b53a1fbae970df3093c8 | 8a017ade248993c537c86813276efd8ed08dfb68 | refs/heads/master | 2022-12-16T12:28:20.709059 | 2020-09-21T00:24:06 | 2020-09-21T00:24:06 | 297,169,885 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,652 | cpp | tilerenderer.cpp | #include "tilerenderer.h"
TileRenderer::TileRenderer()
{
initializeOpenGLFunctions();
initShaderProgram();
}
void TileRenderer::setTileManaget(std::shared_ptr<TileManager> tileManager)
{
tileManager_ = tileManager;
}
void TileRenderer::drawGeometry(const QMatrix4x4 &projMtr, const QMatrix4... |
9d25a0fbe223fa8aa069b105b851a8379074c566 | b160fc8aa6922126cd0335bcfb874a8d4b7893c9 | /Assignment1GP/GameCharacter.h | 661b88a87abf4164f49b3df3679a87fde4f42ae7 | [] | no_license | Shiner89/Assignment1GP | a255329f04061d5c5fd394f06422b0fa62e1a4cf | b2cbaea35ea5e300ddb2e7f72224b3c9535a6055 | refs/heads/master | 2020-04-01T21:07:59.089267 | 2018-10-25T22:33:49 | 2018-10-25T22:33:49 | 153,638,706 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 796 | h | GameCharacter.h | #pragma once
#ifndef GAMECHARACTER_H
#define GAMECHARACTER_H
#include <iostream>
#include <string> // used so that you can cout a string
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
using namespace std;
class GameCharacter
{
public:
void spawn(string typeID,int health, int speed, int x, int y);
void r... |
e53642b75080fdf653714626f2944712060f4309 | 216b7844875b690bab639707d66d9d3b451d404f | /src/sources/AppRunner.cpp | a4eff9b21085cea8c6bb8e99b8d0e3bb1f673eae | [] | no_license | Pritilender/Glittering-glamour | 703074d8c17313f003917c665e5ba71b7cfeb212 | 5c035e9a51bc506878ea3536110505392d966032 | refs/heads/master | 2021-01-19T13:56:02.088749 | 2017-09-20T11:38:33 | 2017-09-20T11:38:33 | 100,864,140 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,256 | cpp | AppRunner.cpp | #include "AppRunner.hpp"
AppRunner::AppRunner(const std::string &title, int height, int width) :
title(title), height(height), width(width) {
glfwInit();
createWindow();
}
AppRunner::~AppRunner() {
glfwTerminate();
}
void AppRunner::createWindow() {
// Window hints setup
glfwWindowHint(GLFW_C... |
491ca9b129ce5e5361de3735bf01bcff0aa30ad6 | 4e26f186fc59dbaa50e0ee8b78f295fef3bcce2b | /algo/B_hw4.cpp | 13a91e73766c3eab376e607dede68fbf8702584e | [] | no_license | ris-iris/structures_and_algorithms_2term | df929c80d78d8f3ec92a57ca600e99d1c87dc051 | 52f984a298959158a6fab8ea157b558c071e970b | refs/heads/master | 2022-12-27T07:39:18.920044 | 2020-10-03T18:24:35 | 2020-10-03T18:24:35 | 239,539,538 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,918 | cpp | B_hw4.cpp | #include <iostream>
#include <vector>
class SegmentTree {
std::vector<std::pair<int, int> > tree;
public:
SegmentTree(int n) {
tree.assign(n * 4, std::make_pair(0, 0));
}
void build(std::vector<int> &a, int l, int r, int v) {
if (l == r) {
tree[v].first = a[l];
} else {
build(a, l, (l... |
a3b3cb3df59c8fc87b76fc7901856a73a0f19bc4 | dbd759663b6f5d90da258aaeab5998c131d054a4 | /project-euler/problem_206.cpp | c378d34fd58c4dd7bcf0a77a28e0402222bd6288 | [
"Apache-2.0"
] | permissive | sihrc/Personal-Code-Bin | 9c0005993dfbd371f51e86ab525b3d4a9ac7a218 | 91a894a68606151d2381cf8f25709b997df00011 | refs/heads/master | 2020-02-26T15:13:33.960604 | 2014-04-28T16:02:28 | 2014-04-28T16:02:28 | 13,988,578 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 153 | cpp | problem_206.cpp | /*
Concealed Square
Problem 206
Find the unique positive integer whose square has the form 1_2_3_4_5_6_7_8_9_0, where each “_” is a single digit.
*/ |
8917beb9f5b5152b485cb958f4eede7ddbe6543b | 2946aed26e310f1f1ac75e12ba92453e07febb28 | /my-test-codes/socketTest/myException.cpp | 57125872e926d1f1c82b80d94e890d498a810364 | [] | no_license | freebendy/My-Demos | 1407c2ad7f0186b436e910381546ee258289711f | 185f60773fa6b4bcb34d5b1df7144ccfc810d3b7 | refs/heads/master | 2021-06-16T18:29:08.619714 | 2021-03-21T18:12:35 | 2021-03-21T18:29:08 | 1,643,336 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 570 | cpp | myException.cpp | #include "myException.h"
myException::myException(int errCode,const string& errMsg)
{
initVars();
errorCode = errCode;
if ( errMsg[0] ) errorMsg.append(errMsg);
}
void myException::initVars()
{
errorCode = 0;
errorMsg = "";
}
void myException::response()
{
winLog << "Error detect: " << endl;
winLog << " ==> ... |
3dfed0ff6d66495409e46e968653524ae5047d45 | 598e0e2c7d81754187f845daa5adad71c4a1387b | /hardware_applications/color_binning_solution/color_binning_solution.cpp | 32f904041a72b9d98f10f58bbd75c5882c1fc642 | [
"MIT"
] | permissive | aggarwalva/software-training | 414b37e801335b6febe0d34129257e7d9139512b | 921e89e459f7d92b118a10a8e78fa543818a1e87 | refs/heads/master | 2020-08-06T17:03:50.469780 | 2019-09-16T18:44:27 | 2019-09-16T18:44:27 | 213,086,247 | 0 | 0 | MIT | 2019-10-05T23:49:29 | 2019-10-05T23:49:29 | null | UTF-8 | C++ | false | false | 898 | cpp | color_binning_solution.cpp | #include <iostream>
#include <algorithm>
#include <vector>
#include <STSL/RJRobot.h>
using namespace std;
const int black_thresh = 2000;
int main() {
RJRobot robot(RobotType::REAL);
robot.SetDriveMotors(100, 100);
vector<int> values;
int value;
do {
value = robot.GetLineValue(LineSensor::CENTER);
... |
116ae9c1c1e1650aa82520ebc3a643a7d9dd6dcd | c90ff98a8d658bbcba91fd9d2213428498014619 | /screen_manager.cpp | 9f767282af8cf5d8d4e1d9cd80ee0b35e3e73fca | [] | no_license | sixthkrum/run-jump | 50bc13a14a1e0dcf633771893379e38aa4952d8a | fec1543b4d691e545abd5f4f987cf5381cf01d84 | refs/heads/master | 2021-05-17T01:18:35.392385 | 2020-03-27T14:22:54 | 2020-03-27T14:22:54 | 250,553,471 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,829 | cpp | screen_manager.cpp | #include "structs.h"
#include "common_functions.h"
#include<ncurses.h>
#include<fstream>
#include "screen_manager.h"
int manage_screen(screen& s,int cur_pos,float& points)
{
mvprintw(1,0," ");
for(int i = 0;i<20;i++)
{
if(s.top_screen[i]=='_')
{
mvprintw(0,i,"%c",s.top_screen[i]);
}
else
{
mvprintw(... |
92d46cc7e86cc11125a2af29bc4991b21a8fc950 | ef35fd19145c2df32466093ff51edc343e6b09a4 | /src/Model/AHGameModel.cpp | d1eb816b51dbaf69422e07210c916fcf54178d9d | [] | no_license | SockPuppet8/Alienhack | ed5d8c4bb9031f150532fdd2c7ba7912c97712a1 | b843d42641dae00eb87c283702e56429ea1a7ad2 | refs/heads/master | 2020-04-02T19:19:52.934817 | 2018-11-02T14:22:29 | 2018-11-02T14:22:29 | 154,730,646 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 24,927 | cpp | AHGameModel.cpp | #include "AHGameModel.hpp"
#include "IGameEvents.hpp"
#include "OverWorld.hpp"
#include "Objects/ObjectType.hpp"
#include "WorldObjects/Actor.hpp"
#include "World-2DTiles/Zone.hpp"
#include "Objects/PlayerCharacter.hpp"
#include "Objects/PlayerStats.hpp"
#include "Objects/Alien.hpp"
#include "Objects/TerrainType.hpp"
#... |
15422c22b1d6c1aaf83b9fe700d7e9aa8746ff53 | 1a2b7ce0ada8920f424f2d365b13c101e83eed97 | /mypushbottom.h | 51a1196007139ee8cb83e25ae25e8620022d469f | [] | no_license | qiunoyi/Qt_cake_game | 574d8fc8401b902b272a08d8c18a2f8ba82cdcbb | 9f1cd96543edb209b8b1a9eef20dd48061a9e6e2 | refs/heads/master | 2023-08-16T19:03:54.418248 | 2021-10-08T15:47:19 | 2021-10-08T15:47:19 | 409,583,630 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 440 | h | mypushbottom.h | #pragma once
#include<QPushButton>
#include<QMainWindow>
#include<QString>
#include<QPixmap>
#include<QDebug>
#include<QPropertyAnimation>
class MyPushButton : public QPushButton
{
Q_OBJECT
public:
explicit MyPushButton(QString,QString="",QWidget *parent = nullptr);
QString normalImg,pressImg;
void zoo... |
417de27a32f227c7cd6325ce6ffde294e51a7ae7 | 01da4fcec060cb49eb871a78c6605b446ab48c19 | /ZekeGame/ZekeGame/Engine/HID/Pad.cpp | 425a5c8d488b2fdeb57d67a9dffaff81b5b30a40 | [] | no_license | ZekeZR1/TGame | 4b63089b9be58e50947aee396aa96292723db676 | 04c78062764b895eeb223e0116ae42cd7a8574e0 | refs/heads/master | 2022-11-25T01:28:12.156020 | 2019-10-23T13:44:42 | 2019-10-23T13:44:42 | 155,800,357 | 1 | 3 | null | 2022-11-20T03:56:44 | 2018-11-02T01:58:08 | Python | SHIFT_JIS | C++ | false | false | 8,289 | cpp | Pad.cpp | /*!
*@brief パッド。
*/
#include "stdafx.h"
#include "Engine/HID/Pad.h"
#include <limits.h>
#define INPUT_DEADZONE ( 0.24f * FLOAT(0x7FFF) ) // 入力の遊びとなる範囲。
Pad g_pad[Pad::CONNECT_PAD_MAX]; //g_padの定義。
/*!
*@brief 仮想ボタンとXBoxコントローラのボタンとの関連付けを表す構造体。
*/
struct VirtualPadToXPad {
EnButton vBu... |
ec93ea2f77b6921ef5dc434a70c724bf4d13bdf0 | 7eb85778a7d363066a6fe9f6d09b712a7525739a | /tests/cpp/HubLikeModularizationTest/NotHubLikeModularizationTest1.cpp | e80de9a58ed56688527fad825b4a5d23090b8f57 | [] | no_license | Tomma94/CLEAN-Plus-Plus | cb5c23442c819f4a9947093a9d5502532d82eee4 | d88f9a909ea56ddb7c7d3e51d33223b8d433af88 | refs/heads/master | 2023-05-25T23:41:56.513266 | 2023-05-16T02:46:50 | 2023-05-16T02:46:50 | 582,962,844 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 674 | cpp | NotHubLikeModularizationTest1.cpp | // The class calls to less than 20 other classes and 20 other classes or more call it.
// -> Has nothub like modularization smell.
#include "NotHubLikeModularizationTest1.h"
void NotHubLikeModularizationTest1 :: func1() {
Not1ClassOut11 classOut11 = Not1ClassOut11();
Not1ClassOut12 classOut12 = Not1ClassOut12(... |
5330a0d9cbb01010b7f6dd2febd17b61aee272e8 | b09962c2153a68cb41b9e171487e2acfbc250283 | /source/UI_title.h | 05d1d3d3befda3b765075677910622dbb792d261 | [] | no_license | Kanan-dayo/SmashStone_master | 42d3adf3fed7444c428241a19b1df231aa8199fe | 9292f6556f03bc23e1a9878c61e9d4ba2040ba50 | refs/heads/master | 2022-12-28T19:50:32.226798 | 2020-10-08T04:52:21 | 2020-10-08T04:52:21 | 290,977,858 | 0 | 3 | null | 2020-09-25T05:20:05 | 2020-08-28T07:15:38 | C++ | SHIFT_JIS | C++ | false | false | 2,950 | h | UI_title.h | //==================================================================================================================
//
// UI_title[UI_title.h]
// Author : Seiya Takahashi
//
//==================================================================================================================
#ifndef _UI_TITLE_H_
#define... |
ab344c17814e85769afc0ba9ff24fd4e4c785805 | c2af96fb46e69f332be4595d8dd8b1953a1e9e9f | /VMgrDevice.h | c5e4d5f69b3e90a11d5b38e5684f51e96d63acb4 | [] | no_license | tongtianxing/windows_sdkdemo | e89b39070f30a7d6d566f7f77e23ce95e59639b7 | 892e617e6b439377b7f44614cc1fc6f8db6c0b01 | refs/heads/master | 2023-05-29T00:34:40.332972 | 2023-05-15T08:08:04 | 2023-05-15T08:08:04 | 231,333,002 | 2 | 5 | null | null | null | null | ISO-8859-1 | C++ | false | false | 3,329 | h | VMgrDevice.h | // VMgrDevice.h: interface for the CVMgrDevice class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_VMGRDEVICE_H__9037E462_21FE_452E_A505_78E5A6FBC317__INCLUDED_)
#define AFX_VMGRDEVICE_H__9037E462_21FE_452E_A505_78E5A6FBC317__INCLUDED_
#if _MSC_VER > 1000
#pragma ... |
c708ce7e8ad9cbaa63030df0673cb0ba01227146 | be5a6547ee66d075f0d37150d90962c3c87836e9 | /3DPG RACE/ResultScene.cpp | 0e3bdff2f66b2271107705c2a86a847d0bb1dd35 | [
"Unlicense"
] | permissive | ponyokacho/Smartpointer | 16fed9ed04a5c20e6fe0453bfc01d9add59a1e2b | bdab6e04031617866f0d88548f28ed609b15df16 | refs/heads/master | 2022-12-24T10:07:04.107537 | 2020-09-15T03:59:08 | 2020-09-15T03:59:08 | 262,933,540 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,976 | cpp | ResultScene.cpp | #include "ResultScene.h"
#include "GameTask.h"
#include "ResourceMng.h"
ResultScene::ResultScene()
{
_model = MV1LoadModel("model/ae86Cp.mv1");
_wheelFRModel = MV1LoadModel("model/ae86RWheel.mv1");
_wheelFLModel = MV1LoadModel("model/ae86LWheel.mv1");
_wheelRRModel = MV1LoadModel("model/ae86RWheel.mv1");
_wheelRL... |
c453648f188309f82cba01b58bedefcc0bdc6f3f | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /third_party/blink/renderer/core/css/css_basic_shape_values.h | f66ceaa6d82cb0ff87589d20cca14bff73b63937 | [
"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 | 12,012 | h | css_basic_shape_values.h | /*
* Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above
* copyright notice, this ... |
03c9dc900926040f564cb87a690684f3ea5242f0 | aeef4d7bab4ca441fbecc2823815e9f94cb4563b | /src/sim/otwdrive/trainingscript.cpp | 9a7afce40b95530394a3949ba88adc118a28f52c | [
"BSD-2-Clause"
] | permissive | FreeFalcon/freefalcon-central | 8fc80b6d82eab44ce314a39860e6ee8e6f5ee71a | c28d807183ab447ef6a801068aa3769527d55deb | refs/heads/develop | 2021-01-23T20:49:45.844619 | 2014-10-30T18:32:35 | 2014-10-30T18:32:35 | 7,615,342 | 133 | 90 | null | 2014-10-30T18:32:35 | 2013-01-15T00:02:23 | C++ | UTF-8 | C++ | false | false | 45,808 | cpp | trainingscript.cpp | /***************************************************************************\
TrainingScript.cpp
Mikal "Wombat778" Shaikh
06Mar04
-Script interpreter for training scripts
\***************************************************************************/
#include "Graphics/Include/renderow.h"
#include "stdhdr.... |
a7732df0c28c35b10870142e471fdd75539d2be3 | 154ec2f413d917f2ce0d20781ee1f929dd717571 | /Lab4/3/PublicProcess.cpp | f8e97b66289496b2d12d0eac468ee206d0648bbb | [
"MIT"
] | permissive | Dunsteer/Lab4 | 2554342a363feb8fefb9c51409d3663c40fa1ca6 | 6a6402b55b715902431b992952d189b7dbb49351 | refs/heads/master | 2021-08-29T18:39:36.117283 | 2017-12-14T16:41:15 | 2017-12-14T16:41:15 | 113,212,672 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 627 | cpp | PublicProcess.cpp | #include "PublicProcess.h"
#include "string.h"
PublicProcess::PublicProcess()
{
}
PublicProcess::PublicProcess(char* CreatorName, int sifra):Process(sifra,0)
{
creatorName = new char[strlen(CreatorName) + 1];
strcpy(creatorName, CreatorName);
}
PublicProcess::~PublicProcess()
{
if (creatorName != nullptr)
del... |
58216a87536d4d23966b9d203ff3f24a425e6d97 | e3d107007955a1a983ad9b646439ed9581d458f8 | /XTU_work/1115.cpp | 0460ab26a922cbfb476f446ad50c03136683df2b | [] | no_license | xzljyy2021/xtu_shining_xzl_code | 98002433f86770bf17b361c49d2e3a614d1990a0 | 50b416bc64ca60dae4a1c9303d954c76250fcd19 | refs/heads/main | 2023-03-07T14:43:41.236077 | 2021-02-10T12:27:34 | 2021-02-10T12:27:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 348 | cpp | 1115.cpp | #include <cstdio>
using namespace std;
char s[203];
int main()
{
int time,l,len,r;
scanf("%d",&time);
while(time--)
{
scanf("%s",&s);
scanf("%d%d",&l,&len);
l--;
r=len+l-1;
while(len--)
{
if(s[r]!=s[l]) break;
l++;
r--;
}
if(len>0) printf("No\n");
else printf("Yes\n... |
21d34410b9bab705922856399ae6a20c81c49b73 | 4ec00242fa586355e6a6b40c10cc2f926fff51ba | /lab2/lab2/OueueExecutor.cpp | f356e6b3a311225e810b6b987b7eb5e15dfdb3dc | [] | no_license | mrkomilfo/Computer-architecture | ea90eb7a8e6aaff92f63b40f18bb4a686e0663f5 | b00ded1c85d8a1824daa61db639cffa9d3354f8b | refs/heads/master | 2020-09-16T16:04:08.005257 | 2019-12-03T14:27:16 | 2019-12-03T14:27:16 | 223,820,820 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,443 | cpp | OueueExecutor.cpp | #include<thread>
#include<queue>
#include<vector>
#include<iostream>
#include "dynamicQueue.h"
#include "fixedMutexQueue.h"
#include "fixedAtomicQueue.h"
#include "iQueue.h"
using namespace std;
const int TASKS_NUM = 4*1024;
const vector<int> producers_num = { 1, 2, 4 };
const vector<int> consumers_num = { 1, 2, 4 };... |
45d2a9e610fc11069585bca73aacf679a701d7e6 | 33b21c1367eef2f73c3a69c62186986e80602939 | /628_maximum-product-of-three-numbers.cpp | 8365d97aa04eee9e1759df3ab04d7c7038af7d31 | [] | no_license | xmyqsh/leetcode2016 | 820357560c632188b116fb254183c21f0a956d60 | abd8e36a79cdd7f7e0c5d6c362b0f106933c7c40 | refs/heads/master | 2021-07-06T07:48:36.474328 | 2020-09-18T03:07:40 | 2020-09-18T03:07:40 | 65,090,012 | 5 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 1,911 | cpp | 628_maximum-product-of-three-numbers.cpp | class Solution {
public:
int maximumProduct(vector<int>& nums) {
vector<int> positive, negtive;
for (auto num : nums) {
if (num > 0) positive.push_back(num);
else if (num < 0) negtive.push_back(num);
}
if (positive.size() + negtive.size() < 3) return 0;
... |
8c1ae66a61a547c0744c3fe5aeeb3c126137372a | 2fa68713b628a87908777cfcbd2df93bcb99d4e3 | /src/GridGraph.cpp | b605f965e089977100a74ffb1183f2f5e5417916 | [
"MIT"
] | permissive | chanhanyi0923/KDEEB | 488708dc4d95bb55614c4a7652f0b0afe841764a | 5d1b7b4de4d6009e5fd43081d69177d154ef7e96 | refs/heads/master | 2021-07-04T18:13:54.032436 | 2019-03-16T08:39:37 | 2019-03-16T08:39:37 | 144,520,784 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,237 | cpp | GridGraph.cpp | #include "GridGraph.h"
#include <algorithm>
#include <set>
size_t GridGraph::GetRowSize() { return this->rowSize; }
size_t GridGraph::GetColumnSize() { return this->columnSize; }
void GridGraph::SetMaxFlow(int maxFlow) { this->maxFlow = maxFlow; }
void GridGraph::SetGridSize(size_t rowSize, size_t columnS... |
5ff4ee13d7c81f3c6b7c22144b18c5990bfef292 | 2e7c67d1d4a633f924ae1e54181549fe0d517eb7 | /uri/1007.cpp | b4f500991c3ead0be9481d114e5fa7505fedbb76 | [] | no_license | jonnatas/algoritmos | edd466455757643bd07be1e15d8fabb0cf57d90b | b4920431876788544c7bc70b4cffc5fdbd34df15 | refs/heads/master | 2021-01-17T17:38:31.261855 | 2016-10-10T18:19:09 | 2016-10-10T18:19:09 | 70,514,936 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 239 | cpp | 1007.cpp | #include <iostream>
int main(int argc, char const *argv[])
{
long long A, B, C, D;
long long DIFERENCA;
scanf("%lld\n%lld\n%lld\n%lld", &A, &B, &C, &D);
DIFERENCA = (A*B - C*D);
printf("DIFERENCA = %lld\n", DIFERENCA);
return 0;
} |
b5c655298c90831664ea84b2cf3418ad59055d6a | ee6a22f2eb27df120f9e563ea5b2bcd08ab2b7e9 | /macs-brain/macs_temperature.h | 028145023463475f903738204f37d8fe6980a546 | [
"Apache-2.0"
] | permissive | rafatahmed/macsxperts | bf677fa34902337c1b74c8b9a9580ac8e617226f | 970d8b83f1ae9711cb8157a485c2517c5fc90688 | refs/heads/master | 2022-02-25T08:28:50.931543 | 2019-10-12T19:53:09 | 2019-10-12T19:53:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 397 | h | macs_temperature.h | /**
Author: Aravinth Panchadcharam
Email: me@aravinth.info
Date: 05/02/16.
Project: Macsxperts Vertical Farming Solutions
Description: Temperature Sensor DS18B20
*/
// Libraries
#include "Arduino.h"
#include <OneWire.h>
// Declarations
#define temperatureSensorPin 47
class macs_temperature
{
pri... |
071c8606a6287bc165a6382ee1e20129765788b0 | 6348b3b6ceacd7dac91f44036b3df8ad5192a136 | /examples/source/tutorials/write_variables_demo.cpp | 1b74e47ffeac7a1eb81a5aab329956569e334e97 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ThePhD/sol2 | b0167676fecf9c65f371f6319833393cdbda0bbe | 9c882a28fdb6f4ad79a53a4191b43ce48a661175 | refs/heads/develop | 2023-08-22T21:48:22.328223 | 2023-08-06T21:47:47 | 2023-08-06T21:47:47 | 49,177,547 | 3,912 | 572 | MIT | 2023-07-18T17:46:18 | 2016-01-07T03:09:13 | C++ | UTF-8 | C++ | false | false | 969 | cpp | write_variables_demo.cpp | #define SOL_ALL_SAFETIES_ON 1
#include <sol/sol.hpp>
#include <iostream>
int main() {
sol::state lua;
// open those basic lua libraries
// again, for print() and other basic utilities
lua.open_libraries(sol::lib::base);
// value in the global table
lua["bark"] = 50;
// a table being created... |
c7d36d3f4889fe752f893a05fed9ed158dab6c1d | 3ccf4a95db32ab8447cc166eb0e7a832de773613 | /question1116/C++/question1116_2.cpp | 7c408bf214023345dbfd9009fafb3c6f9d12eef3 | [] | no_license | 617076674/PAT-ADVANCED | 819ddb3f586c99477fadcbee1310462c6d274282 | 8fad272826be1f9bd1058cd5c13cea7440beb80e | refs/heads/master | 2020-04-03T02:47:24.599663 | 2018-12-10T13:31:07 | 2018-12-10T13:31:07 | 154,967,128 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 941 | cpp | question1116_2.cpp | #include<iostream>
#include<cmath>
using namespace std;
int ranks[10000];
bool flag[10001];
void findPrime();
int main() {
fill(ranks, ranks + 10000, 0);
fill(flag, flag + 10001, true);
findPrime();
int N;
scanf("%d", &N);
int num;
for(int i = 1; i <= N; i++) {
scanf("%d", &num);
ranks[num] = i;
}
int... |
a1b7bdba0601ddfa55cca8bea06882145835250b | 6d088ec295b33db11e378212d42d40d5a190c54c | /contrib/brl/bbas/bpgl/bpgl_lon_lat_camera.hxx | 82aa760ea17538698df80b7ac08133c1f73b2343 | [] | no_license | vxl/vxl | 29dffd5011f21a67e14c1bcbd5388fdbbc101b29 | 594ebed3d5fb6d0930d5758630113e044fee00bc | refs/heads/master | 2023-08-31T03:56:24.286486 | 2023-08-29T17:53:12 | 2023-08-29T17:53:12 | 9,819,799 | 224 | 126 | null | 2023-09-14T15:52:32 | 2013-05-02T18:32:27 | C++ | UTF-8 | C++ | false | false | 3,131 | hxx | bpgl_lon_lat_camera.hxx | // This is bbas/bpgl/bpgl_lon_lat_camera.hxx
#ifndef bpgl_lon_lat_camera_hxx_
#define bpgl_lon_lat_camera_hxx_
#include "bpgl_lon_lat_camera.h"
#include <vil/vil_load.h>
#include <vil/vil_save.h>
#include <vgl/algo/vgl_compute_cremona_2d.h>
template <class T>
bool bpgl_lon_lat_camera<T>::init(std::string const& lon_pat... |
7487b62f0ba7d5d3a26ab4d732afedf6bf5865cb | e572e02dc4fd0f3117952610233b8f24fe5864b0 | /cisortho/cluster_base.cc | 419fb8c2ae3cc55df6a65855f7927f861df05326 | [] | no_license | hrbigelow/samutil | 59aa2249366cd1de59dd447b5aeddb8d46033eba | f3cf57cfb2830783edc7aaf72d819e21e24ceaa3 | refs/heads/master | 2021-01-19T00:30:13.359862 | 2015-02-27T18:21:08 | 2015-02-27T18:21:08 | 28,517,905 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,749 | cc | cluster_base.cc | #include <cmath>
#include <set>
#include "cluster_base.h"
#include "hit.h"
using std::cout;
//matches zic+{-2,30}ebox
namespace cis {
unsigned int UniqueID(){
static unsigned int counter = 0;
return counter++;
}
int cluster::cluster_count = 0;
//find the hit to the left of <right> such that
//[<left>, <... |
c84c10b25d1346941c25291a8bbe0737208391f8 | 56a8fe5a6646d0676088d1dd7d168a44b507cbcf | /QtFarterMike/level1screen.cpp | 802d5871b4b9f077365104a4392eb7ceca7d75b0 | [] | no_license | SergeyDyatlov/games | 64c59076d9499a5951526344bb57de841e9dfbe9 | f27729e6ffa85c00be71fdca3c6bfa3c3bfe5a68 | refs/heads/master | 2020-04-29T09:24:10.859573 | 2015-04-08T19:12:01 | 2015-04-08T19:12:01 | 30,821,907 | 1 | 1 | null | 2015-04-08T17:17:29 | 2015-02-15T08:19:48 | C++ | UTF-8 | C++ | false | false | 1,950 | cpp | level1screen.cpp | #include "level1screen.h"
#include "game.h"
#include "getresourcepath.h"
#include "texture.h"
Level1Screen::Level1Screen()
{
Map[0] = "||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||";
Map[1] = "| |"... |
b876d24f9f290e0d1a5b603c06d10177cb688e77 | c64636385f04459a9664840b621bccf80fd39505 | /C++/数组.cpp | d54aec191aa2222fb788f5ec7377ae40e2d61082 | [] | no_license | 0xCooper/Cpp | fddab539d98da4d3b4fbd9eedef7c61bb57274e6 | 75e6a6fae56be32896e55cade1638e8ffc39bfe6 | refs/heads/master | 2023-06-24T22:38:32.322947 | 2021-07-21T09:34:18 | 2021-07-21T09:34:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 271 | cpp | 数组.cpp | #include<stdio.h>
#include<string.h>
int add(int x,int y){
return x+y;
};
int main(){
int a=3,b=2;
int c =0;
c=add(a,b);
printf("c: %d",c);
printf("hello,world");
char d[10]="hello\n";
d[8]='a';
d[9]='a';
int num=strlen(d);
printf("\n%d",num);
return 0;
} |
c077379002e967f53e6e5c82538c1b0e837386b6 | 5578c7084b547f5533aa1efbacd35c32c7ef5ef8 | /BlosserCS285Week2Assignment/bankAccount.h | 323f0dc3f3d9bc36ffeff85757a3fe634421c428 | [] | no_license | eblosser1/CS285 | 06ed6ac5be4504999cbcbc287d7bafac89f2670c | e71db2bada1c83226cc08c2eb87c7ae5d33278b6 | refs/heads/main | 2023-06-26T19:38:30.658928 | 2021-07-21T00:26:06 | 2021-07-21T00:26:06 | 387,945,511 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 615 | h | bankAccount.h | #include <iostream>
#include <string>
#ifndef BANKACCOUNT_H
#define BANKACCOUNT_H
using namespace std;
class bankAccount
{
protected:
int accountNumber;
string accountName;
double accountBalance;
public:
bankAccount();
bankAccount(int acctNum, string acctName, double startBal);
~bankAccount(... |
79b79aeca9733091f0c7f465fcc26063c7432fdd | 9ede39123687e43c3cc90d35b363ee74fd955ec5 | /src/Actor.hpp | a77dce22008fa560fd42aee51102d2317ee4413f | [] | no_license | HotelBarton/ProjectLighterThanFast | 96d71cefcaaa5d4a0ed9ca5053fe1a29c143b08e | 691edef541595838f6aba32653218909190a801b | refs/heads/master | 2020-06-02T06:03:24.941414 | 2015-09-25T19:26:34 | 2015-09-25T19:26:34 | 42,973,922 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 140 | hpp | Actor.hpp |
class Actor {
public:
int x,y;
int ch;
TCODColor col;
Actor(int x, int y, int ch, const TCODColor &col);
void render() const;
};
|
c971cd860ca079aaee384e77a995e4b163d4785d | d5442afb09cce5c9b8803796ade15e4a1c4065e3 | /Punteros/aritmeticaPunteros.cpp | f82989674c788ba64c46b96dc46da8498955df61 | [] | no_license | santiagosj/Cplusplus-FirstSteps | 8588a7e1e8144a7f9d81d7bc0e502597849fc21a | 71eba35cfdde9ec20d338520d668cf088a5dedd6 | refs/heads/master | 2021-10-24T18:03:25.472552 | 2019-03-27T02:18:00 | 2019-03-27T02:18:00 | 170,842,150 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 517 | cpp | aritmeticaPunteros.cpp | #include <iostream>
using namespace std;
int main()
{
int X[6]={1, 2, 3, 4, 5, 6}, A;
int *ptrX;//declaro puntero;
ptrX = X;//inicializo el valor del puntero
A = *(X + 3);//A toma el valor del elemento 3 del vector
cout << endl << *ptrX;
ptrX += 2;
cout << endl << *ptrX;
ptrX -=2;
cout << e... |
5dcb2f732cf54574a03c736b0e23d0a38f5460cd | bca92f88e00020f3d648b6495fde82d721711695 | /src-cpp/Phobos/Utils/Streaming.h | 4c673b51e69898a84fa1ab97f836a13fe8d22537 | [] | no_license | kpk-pl/phobos | 803199665c5c4f819cd8e88204547d17e4b9295c | 0f5e6b07e4cfcf5ca2b5b6caacc4b624e3919227 | refs/heads/master | 2020-12-05T01:18:38.376044 | 2018-06-17T20:07:43 | 2018-06-17T20:07:43 | 231,960,687 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,169 | h | Streaming.h | #ifndef UTILS_STREAMING_H
#define UTILS_STREAMING_H
#include <string>
#include <type_traits>
namespace phobos { namespace utils { namespace stream {
namespace {
template <typename T> struct is_shared_ptr : public std::false_type {};
template <typename T> struct is_shared_ptr<std::shared_ptr<T>> : public ... |
e78798f35bfe50d35f563f8b372b5f3b3b2217f2 | 8a3d6da23255b0069a10f7d62d889102bb253f16 | /lectura_sondas_attiny_v00.ino | c0d26d93a7148f3c286caeb2e770b004034271f8 | [] | no_license | onsar/lectura_sondas_attiny | 8c1461a5d2b9266bfd5417f00ce16379eb6758b5 | a94ea7c51567b7852ab22534c3bfc512b4c46d4b | refs/heads/master | 2020-04-25T04:04:30.419663 | 2019-02-25T11:56:30 | 2019-02-25T11:56:30 | 172,498,453 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,506 | ino | lectura_sondas_attiny_v00.ino |
#include <SoftwareSerial.h>
#include <TinyWireM.h>
SoftwareSerial serial_debug(4,3);
#define DEBUG 1
int I2c_direcctions[] = {21,22,23,24};
float I2c_temperature[] = {0.0,0.0,0.0,0.0};
float I2c_humidity[] = {0.0,0.0,0.0,0.0};
void setup(){
delay(5);
TinyWireM.begin();
#ifdef DEBUG
serial_debug.begin(960... |
4086ac9efe8b4add1758cc752b06358e1296307e | bb9140e05d2b493422d65084bc9df4fb6ae88ba9 | /cpp/test/type/basic.cpp | b1027570a70fc8cef018afe77027bd72ba00d783 | [] | no_license | 8589/codes | 080e40d6ac6e9043e53ea3ce1f6ce7dc86bb767f | fd879e36b6d10e5688cc855cd631bd82cbdf6cac | refs/heads/master | 2022-01-07T02:31:11.599448 | 2018-11-05T23:12:41 | 2018-11-05T23:12:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 246 | cpp | basic.cpp | #include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
/* code */
const auto a = 1;
cout << a << "\n";
cout << typeid(a).name() << "\n";
// cout << (typeid(a).name() == "i") << "\n";
return 0;
} |
0e6e7487bcbeda4c49fbdb0df897f625c4c5bc08 | 8c744116fd98273e5210ca8683d6fc03467cb93a | /p5_lighting/classes.h | 64b7e834efb28ad7f1fa3bfc4107b6abd8331e09 | [] | no_license | bawjensen/COMP-365-CompGraphics | 5a0364606b9f57a1456d5cd3020f0c46c240db38 | fdbf896768bc07afa201e0d97ab306047e437f58 | refs/heads/master | 2016-08-03T16:13:16.958939 | 2015-04-14T17:08:21 | 2015-04-14T17:08:21 | 16,585,743 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,147 | h | classes.h | #ifndef _CLASSES
#define _CLASSES
#ifdef __APPLE__
#include <GLUT/glut.h>
#elif __linux
#include <GL/glut.h>
#endif
#include <iostream>
#include <fstream>
#include <vector>
#include <iomanip>
#include <random>
#include "baseClasses.h"
using namespace std;
class DEMGenerator;
class Camera {
private:
public:
sta... |
e58648c6507235a7ff84536b19ebce8d57368e31 | 74d8970b75ea21368fa5067010dd8db6eec48885 | /Proyecto/src/bank.cpp | 489d6e8be7002b8fda62421483894536dfb8b1ed | [] | no_license | PR2-2018-Sec2/Project-Pr2 | 1a5218f16d9685368f71836f0e9bbcedc1b545a4 | 4c1714824c34faa4d38edb0f36ad57b5ed7e48dc | refs/heads/master | 2021-06-12T15:22:32.389066 | 2018-09-26T21:45:26 | 2018-09-26T21:45:26 | 128,707,021 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,709 | cpp | bank.cpp |
/**
* @file bank.cpp
* @date 10/04/2018
* @author Leyra Albornoz
* \~Spanish @brief Definiciones para el TDA Cbank_account \~English @brief Cbank_account definitions
*/
#include<bank.h>
/// \~Spanish @name Constructores
///\~English @name Constructor
/// \~English @brief Default Constructor \~Spanish @brief Co... |
0f7ad47bd4f3302377287a291f5f4b76642a9dc0 | ff8a8e1bac3ece23f63abb2511b3265cb2924f48 | /qqStarMap.cpp | 6bcaac2b46a016deafc16fa2ff29c60f9c3f0eb2 | [] | no_license | qcmsqas/qqTree | c4fe2965addcbbd8e09692aaad34cfd5a36da063 | bf003d3643f1961e2def789bf6ca3d85bd20a4ab | refs/heads/master | 2020-03-16T16:06:31.516528 | 2018-05-09T14:56:13 | 2018-05-09T14:56:13 | 132,772,612 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 77 | cpp | qqStarMap.cpp | /*
* qqStarMap.cpp
*
* Created on: 2017-7-5
* Author: meng
*/
|
c8a6309111ffafa41ae22bedd4563dd9d5236b60 | 6daa97972fde5ada2aad58f24f95b5ab3eb62379 | /test/AClass.h | a9a9eedf97af6a1233c6233dd71577e9b20a91be | [] | no_license | xiaotseng/RayTracingInOneWeekend | 3d8b13189657d5773dacd1c1fe9312049407d364 | c15e9871bf1ff9381411950529adb07dabc36054 | refs/heads/master | 2020-03-18T23:13:03.072869 | 2018-10-05T09:43:46 | 2018-10-05T09:43:46 | 135,389,374 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 165 | h | AClass.h | #pragma once
#ifndef _ACLASS_H_
#define _ACLASS_H_
#include "MyClass.h"
class AClass
{
public:
AClass();
void clsFun();
ZengLingJun::MyClass MyClass;
};
#endif |
245f1c1b1f5343616b79914999a8bebbc8cb17ba | 7aa28217c567be0a87bdbd12d5f5ca4edaa634a5 | /hell-2015-cottin_j/charon/etape2/main.cpp | 70e7a475be354058ea57ab5b5a1dfc2bde32cf80 | [] | no_license | hallux4/SchoolProjects | 19b8f18f00673d50a420fa09253fd9e064fbb01b | 23797268ef19fc7c09be5406ea5b714b8bac984c | refs/heads/master | 2021-01-11T20:12:49.777237 | 2017-01-16T00:17:06 | 2017-01-16T00:17:06 | 79,068,287 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,140 | cpp | main.cpp | //
// main.cpp for in /home/pincho_m//projet/rush/hell/etape1
//
// Made by mathieu pinchon
// Login <pincho_m@epitech.net>
//
// Started on Fri Dec 14 20:00:44 2012 mathieu pinchon
// Last update Sat Dec 15 17:59:48 2012 mathieu pinchon
//
#include <string>
#include <iostream>
#include <boost/bind.hpp>
#include... |
4b82c3897b4cab05047b1a216da44ca4dd80b8a3 | ccd836715f059c10f3e92f621faffe84d72fd7cd | /Infix to PostFix.cpp | 75a843f9b5a8bc9d4a9bf0e08b56e72a91103586 | [
"MIT"
] | permissive | jonykarki/Data-Structures-Algorithms | 084680bef4023e43e13324913c93fd68541c258b | 6f8cb44434dcf86c04083bd75cae1939bb5852a8 | refs/heads/master | 2021-06-23T21:57:39.935470 | 2021-03-30T04:36:36 | 2021-03-30T04:36:36 | 213,068,504 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,453 | cpp | Infix to PostFix.cpp | /*
* InFix To PostFix converter.
* Implemented using Stacks (on arrays)
*/
#include <stdio.h>
#include <conio.h>
#include <cstdlib>
#include <ctype.h>
#include <string.h>
using namespace std;
#define MAX_a 100
char st[MAX_a];
int top = -1;
void push(char st[], char);
char pop(char st[]);
void InfixtoPostfix(cha... |
926693ad5fbb24a6f2e8001a4bdd8c54098e8a47 | 21ba1fa8a16e86a2d2e30e63670531c02192b22c | /test.cc | 67d2c9325a1166f1aaa4ff0dd030714cc7892b7a | [] | no_license | psathyrella/project811 | 78e632072115b278cebde1bdbe40d04f2db84925 | 5a0c0509b0d5f70c136c3ce87558c80a364b6a4c | refs/heads/master | 2021-01-23T09:49:30.659795 | 2013-04-10T17:22:23 | 2013-04-10T17:22:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,086 | cc | test.cc | #include <iostream>
#include <algorithm>
#include <cassert>
#include <sstream>
#include <math.h>
#include <fstream>
#include "TH1F.h"
#include "TROOT.h"
#include "TFile.h"
#include "TGraphAsymmErrors.h"
#include "TStyle.h"
#include "TTree.h"
#include "TF1.h"
#include "TCanvas.h"
#include "TString.h"
#include "RooPlot... |
31d2d2a2c6faff8bcc1b9eac6d3df46b65768ed8 | 56765100dc1a839c5f23f11db5a19ab4b7b8202a | /leetcode/validate_binary_search_tree.cpp | 488e10ee17bd34da8642ad2943741fbd6fbc7b49 | [] | no_license | ruiwng/program | 54388f4884aee11f22c83c35fed9ecc007f5ab47 | c7af325944a32ff4f9a134b52a62c92a81e8c9d1 | refs/heads/master | 2023-06-13T23:38:03.733419 | 2023-06-02T15:42:05 | 2023-06-02T15:42:05 | 28,026,664 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 516 | cpp | validate_binary_search_tree.cpp | #include <stdlib.h>
#include <limits.h>
struct TreeNode {
int val;
struct TreeNode *left;
struct TreeNode *right;
};
bool is_valid(struct TreeNode *root,long long min,long long max)
{
if(root!=NULL)
{
if(root->val<=min||root->val>=max)
return false;
return is_valid(root->left,min... |
0e72e4cef2827c8a37e0e96e7d1d6f007d7a6115 | 3b8eb6a13bdf8cdf4ed47fea31755f0ba78b1459 | /src/modules/CylindersModule.cpp | fd7fc928738c8caf8c8a2ab5634cb13b2eb105f5 | [] | no_license | glua/gm_libnoise | 56ef7e8790caa0a206997d20436a0353d6039c2d | 43e52b9e264f3ab155ab7596571abf6ae21b30ef | refs/heads/master | 2020-05-29T11:43:15.081947 | 2014-09-11T23:43:52 | 2014-09-11T23:43:52 | 23,805,687 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,319 | cpp | CylindersModule.cpp | #include "CylindersModule.h"
namespace Modules {
namespace CylindersModule {
noise::module::Cylinders *FetchModule(lua_State *state, int iStackPos) {
if (!LUA->IsType(1, GarrysMod::Lua::Type::USERDATA)) {
LUA->ThrowError("No userdata.");
return NULL;
}
return *(noise::module::Cylinders**)LUA-... |
9efb234ab713c1ee8080431eb66b7c47a20a751b | 2a5d4544cf877439f4d274738750e0bb607d1c72 | /dp/geraldandgiantchess.cpp | 5dd8d089951a0550d12c48838f65bf4b081b546b | [] | no_license | shivam215/code | 65294836832a0eb76a2156a872b1803bb0b68075 | d70751ca0add4a42a0b91ee8805eda140028452a | refs/heads/master | 2021-01-11T08:32:55.557166 | 2017-09-13T16:00:41 | 2017-09-13T16:00:41 | 76,486,143 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,192 | cpp | geraldandgiantchess.cpp | #include <bits/stdc++.h>
#define mod 1000000007
#define MAX 200005
#define ll long long
using namespace std;
ll f[2003],fac[MAX],invfac[MAX];
typedef pair<ll,ll> ii;
ll fastexp(ll a, ll b)
{
ll res=1;
while(b>0)
{
if(b&1)res=(res*a)%mod;
a = (a*a)%mod;
b>>=1;
}
return res;
}
... |
71a9b2f201ddd2d9fd2f373c32462a283a7b509c | dfe8d530ca9697c807acd658429171ea3aff5069 | /ExperimentADC/main.cpp | 89e2929489354fafbfca822d86a1abd2db752ad2 | [] | no_license | shirokunet/mbedLearning | a61efe3d7878fa16d923b59753c31c2e48ee97e4 | b02247d295775388e29cb3ad4dd672d1e74f71e2 | refs/heads/master | 2020-03-29T11:10:32.729979 | 2018-10-29T18:03:53 | 2018-10-29T18:03:53 | 149,839,479 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 809 | cpp | main.cpp | #include "mbed.h"
AnalogIn ain(p15);
PwmOut pwm(p26);
Serial pc(USBTX, USBRX, 115200);
#define BUFFERSIZE 4096
int main()
{
float buffer[BUFFERSIZE];
int t=0;
int value = 0;
int value_z1 = 0;
int store[2] = {0};
/* logging */
pwm = 0.5;
for (t=0; t<BUFFERSIZE; t++)
{
buffer[t] = ain... |
cc28b687b0e2b85084ee0ad35d0f432413d1bd2f | 2181883c8faac55bfc969a97d22d9b24a3e81ab3 | /com/win32com/src/extensions/PyILockBytes.cpp | fa456c3964ade88242c406e656d67ec3f30e84ca | [
"PSF-2.0"
] | permissive | mhammond/pywin32 | 574bf121cfeac8c7a9d28f94ee0f2069a425e8ab | 2a7137f21965013020ef9e4f27565db6dea59003 | refs/heads/main | 2023-09-02T13:16:52.307262 | 2023-08-17T19:42:26 | 2023-08-17T19:42:26 | 108,187,130 | 4,757 | 907 | null | 2023-08-23T01:45:49 | 2017-10-24T21:44:27 | C++ | UTF-8 | C++ | false | false | 13,383 | cpp | PyILockBytes.cpp | // This file implements the ILockBytes Interface and Gateway for Python.
// Generated by makegw.py
#include "stdafx.h"
#include "PythonCOM.h"
#include "PythonCOMServer.h"
#include "PyILockBytes.h"
// @doc - This file contains autoduck documentation
// ---------------------------------------------------
//
// Interfac... |
814fcde87a706e269fd16215b5a59a9cd7bd3e42 | 9b9535cb9f0266fed429aa71675ee21ca51596a9 | /arduino/serialLEDTweetMonitor/serialLEDTweetMonitor.ino | c9cea2d86c5b956f1c5a467a9b6657abba55b9e9 | [] | no_license | miketeix/LoveHate-Meter | f3a244034470bd6f88fe3bc2ea0ae57d348c0043 | 8196bd9e4897e07fde800392e6a02d4d3725aa95 | refs/heads/master | 2020-05-01T13:18:28.237232 | 2014-01-24T02:47:10 | 2014-01-24T02:47:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,286 | ino | serialLEDTweetMonitor.ino | #include "LPD8806.h" //Adafruit Adressable LED library (mode: LPD8806) for Arduino
#include "SPI.h"
// Twitter Love/Hate LED Strip Monitor - light pixels according to USB serial input
/*****************************************************************************/
// Number of RGB LEDs in strand:
int nLEDs = 48;
... |
88f0ee19b0c25ec3e4d0562b7f5b6b3752135853 | 246437150a9a1c9d78abd193fee381225c583014 | /CodeDesignStudy/SimpleFactory/OperatorFactory.h | 0189d8e7480a2a89ca4c069218bfe1a1e1550ee1 | [] | no_license | qingliujun/liujun_utility | 3c9b261817b388cd6289e24190cc4f63a1bb13e1 | b4985759be8879edf02b3e39611ac79221814fd2 | refs/heads/master | 2021-01-22T17:42:44.491762 | 2017-03-16T09:08:06 | 2017-03-16T09:08:06 | 85,031,839 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 161 | h | OperatorFactory.h | #pragma once
#include "Operator.h"
class COperatorFactory
{
public:
COperatorFactory();
~COperatorFactory();
COperator * CreateOpetator(char strOper);
};
|
dc1f950eb469d5e785eba1f2454ae35224ff35a6 | 965ee00eaea864cd6b1486488b2db456401736b3 | /mobiled3/mobile/mobileBorenstein.cc | 1984f01f5f234e39518a924a877b9226e5013fbc | [] | no_license | benadler/taser_genrob | 2d369fb4eb21aeb7c5b41818fb8810a1ec42218c | 4ae30e4b6ad4ae3071b78676d3894a758a6b7309 | refs/heads/master | 2021-01-25T07:18:52.496671 | 2011-11-15T17:38:53 | 2011-11-15T17:38:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,083 | cc | mobileBorenstein.cc | //
// mobileBorenstein.cc
// (C) 07-12/2003 by TeSche (Torsten Scherer)
// <itschere@techfak.uni-bielefeld.de>
//
#include <math.h>
#include <stdlib.h>
#include <unistd.h>
#include "thread/tracelog.h"
#include "mobile/mobile.h"
///////////////////////////////////////////////////////////////////////////////
//
//
/... |
487a13a7faee2f46a283163f32a2cc52806ff9e9 | c28a949525384d6834389463ce8b1436e6f1bbca | /Code/Layer2/Include/CubeBlockWorld/SceneLoader.h | 430592678fd8f44a326254af3f8d448571cdacdf | [] | no_license | devilwalk/DevilX | c8bb3daf2b9b1f88027230caa36b090721845923 | 854265ca2e004d9f93ec6de83c71f5eb685e4297 | refs/heads/master | 2021-01-11T20:21:38.967611 | 2020-09-30T07:53:23 | 2020-09-30T07:53:35 | 79,100,279 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,016 | h | SceneLoader.h | #pragma once
namespace NSDevilX
{
namespace NSCubeBlockWorld
{
class CSceneManager;
class CSceneLoader
:public ISceneLoader
,public TBaseObject<CSceneLoader>
{
protected:
const String & mName;
CSceneManager * const mSceneManager;
CThreadPool * mThreadPool;
CInt3 mPosition;
CUInt3 mSyncRan... |
96b8a319ceeeceaa261738fc7908741610523fa9 | 87c19026c556deb2f2ae81ad79ad689a76fa8f2d | /VulkanEngine/Matrix2.cpp | 460c4cf149e067869ab10da155b15526ab2c6213 | [] | no_license | KarimTakieddine/VulkanEngine | 1b9b3a9369ce92a255f7ce2b1d737e10d691f9ce | 39077273a226223e1ec2dd44d0a9f4b968cc3903 | refs/heads/master | 2020-03-22T08:15:13.230403 | 2019-04-24T00:40:44 | 2019-04-24T00:40:44 | 127,955,519 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 973 | cpp | Matrix2.cpp | #include "stdafx.h"
#include "Matrix2.h"
Matrix2::Matrix2()
{
data[0] = Vector2();
data[1] = Vector2();
}
Matrix2::Matrix2
(
Vector2 const & v
)
{
data[0] = v;
data[1] = v;
}
Matrix2::Matrix2
(
Vector2 const & a,
Vector2 const & b
)
{
data[0] = a;
data[1] = b;
}
Matrix2::Matrix2
(
float v_00,
float v_01,... |
9f1eb9611d42073d0722f6491d2825f6927af6b5 | eb0b9e28df8c8e522392d31628760c2361266693 | /tags/TeXstudio/2.2/latexstyleparser.cpp | bea7eda4bd8e1d765ee3add94afe37b1aa52e2aa | [] | no_license | svn2github/texstudio | 9b0c7ccf22ed2aef453b43edf0fb0c416c742c93 | de425fe2f8d2c48637d91632f3aa5554d6e68899 | refs/heads/master | 2021-01-25T07:29:04.777238 | 2013-08-27T16:18:15 | 2013-08-27T16:18:15 | 11,453,207 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,809 | cpp | latexstyleparser.cpp | #include "latexstyleparser.h"
LatexStyleParser::LatexStyleParser(QObject *parent,QString baseDirName,QString kpsecmd) :
QThread(parent)
{
baseDir=baseDirName;
stopped=false;
kpseWhichCmd=kpsecmd;
mFiles.clear();
}
void LatexStyleParser::stop(){
stopped=true;
mFilesAvailable.release();
}
void La... |
b6ae90a19ed40331f0a6fcb6296c081ff75fcaa0 | aaefcb0efdb5c0b59d4c3008723949d66d28ddd9 | /SPOJ/HOTELS.cpp | 10cd7ee1daf0ff762c4eb9298f5a5c5e9abbf677 | [] | no_license | UtopiaBeam/competitive | cb80aaee773e215eab68f172c173e2ec857b90ff | bf445ecb56c80b35fa915ca7bf0925d398a9c4d7 | refs/heads/master | 2020-03-28T20:25:33.124594 | 2019-10-19T03:43:20 | 2019-10-19T03:43:20 | 149,068,875 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 385 | cpp | HOTELS.cpp | #include<cstdio>
#include<algorithm>
using namespace std;
int n,l=0,r=-1;
long long k,a[300005],mx=0,sum=0;
int main(){
scanf("%d %d",&n,&k);
for(int i=0;i<n;i++)
scanf("%lld",a+i);
while(l<n && ++r<n){
sum+=a[r];
while(sum>k && l<=r)
sum-=a[l++];
mx=... |
baf7cbb9bb819c27a2acc53f42808c2cfad7a136 | 1695ef4ed3ceda5feba17ab59c552c34eb833f7d | /mra/mracontactlistentry.h | bdd8e75d91a1a019e2d3bc4c172a9fe01e7207fb | [
"BSD-2-Clause"
] | permissive | mikhainin/kopete_mrim | 1857a333e5b4d4fcdc3eac3dcd0749cfb7380ed5 | c75c28a451e17b14edbe4dcd1ff8b261273473a5 | refs/heads/master | 2023-06-09T19:00:18.917937 | 2017-01-28T20:49:46 | 2017-01-28T20:49:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 949 | h | mracontactlistentry.h | #ifndef MRACONTACTLISTENTRY_H_
#define MRACONTACTLISTENTRY_H_
#include <QString>
class MRAContactListEntry
{
private:
// uussuu (flags, group, address, nick, server flags, current status)
public:
MRAContactListEntry(ulong id);
MRAContactListEntry();
~MRAContactListEntry();
ulong flags() const;... |
de71c7b4d8f3adf98040a2e29c8bb68515b1cc95 | 7224d37a87a3d324e9bea007e621c67678285e12 | /src/ofApp.h | 3a53f9504cd007726965e597bdd30750db9af052 | [] | no_license | shrikantlokhande09/GeometricDrawing | a90d16597586518898b40e513dfea9e64ea3e4ad | 98eac07092e61ed31c3e816a86adb90ef448ac4d | refs/heads/master | 2020-12-03T16:23:58.164259 | 2020-01-02T13:45:08 | 2020-01-02T13:45:08 | 231,388,469 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,334 | h | ofApp.h | #pragma once
#include "ofMain.h"
#define LINE_CREATION_THRESHOLD 50
class ofApp : public ofBaseApp{
public:
void setup();
void update();
void draw();
void keyPressed(int key);
void keyReleased(int key);
void mouseMoved(int x, int y );
void mouseDragged(int x, int y, int button);
void mousePressed(... |
75caab21166ea4b696fc13610fa20c2519ec0594 | 67c10cf1326cba838b5a74a96a7e0bf1a0f8765c | /UnitTesting/Testing/Tests/Clips/NorOperator_test.cpp | eeeede6d62cf124eeb783969de4bf894341bc719 | [
"MIT"
] | permissive | samdup123/Connected_Harness | 2988c51bcfd09952021c4687d8f06a036a89778e | f2c66da5aba2505a2bb31f3c50d8e76b994bbe65 | refs/heads/master | 2021-03-28T08:53:35.018333 | 2017-03-23T01:46:21 | 2017-03-23T01:46:21 | 83,369,782 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,922 | cpp | NorOperator_test.cpp | /*
* Description Tests the Nor Operator
*
* Written by JamApps
*/
extern "C" {
#include "NorOperator.h"
#include "utilities.h"
}
#include "CppUTest/TestHarness.h"
#include "double_DigitalInput.h"
#define Given
#define Then
#define And
#define Thus
TEST_GROUP(NorOperator_test) {
ty_NorOperator instance;
ty_doub... |
6ecaa2c13c80595c419eeeba5a08205f71d1a5c6 | 2487e270fcda7a6ed5585c1a2043292ee5a850b5 | /src/Direction.h | 4e8a484bff9083973ae373d23675522c71e7cf14 | [] | no_license | ybakos/HelloOF | afa6d4925cdfe4bb276ad3cad94211c3932bc2b8 | 0592a6b2514863e3464543d99e23a862b4b7ef31 | refs/heads/master | 2021-01-22T11:38:12.754104 | 2014-04-28T19:23:36 | 2014-04-28T19:23:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 107 | h | Direction.h | #pragma once
namespace yjb {
typedef enum Direction {
UP, DOWN, LEFT, RIGHT
} Direction;
} |
50b70f57101d5be8a4d6041537e55f14632f3850 | 936866261ec222bcbdf231b3c2158170d3d29d59 | /source/algorithms/BagOfWords.cpp | 16e3f0b030ad888a8f8030d5b02c0177420f70cc | [
"MIT"
] | permissive | Rubix982/Digital-Bibliography-Library-Project---The-DBLP-Data-Structure-Project | 1bbca0612a1b6babf3b6c736940bd7f5136f58fc | 5f61a1f469f3eb8afbecc4bf3401069b2040118c | refs/heads/master | 2022-11-05T19:08:32.379456 | 2019-12-24T03:49:14 | 2019-12-24T03:49:14 | 225,673,663 | 0 | 0 | MIT | 2022-10-31T16:42:30 | 2019-12-03T17:04:59 | Python | UTF-8 | C++ | false | false | 2,855 | cpp | BagOfWords.cpp | //Natural Language Processing (NLP)
#include "BagofWords.h"
vector<int> word_freq;
vector<string> common, text;
int words = 0;
size_t common_count = 0;
void textFromFile(string & fileName) {
ifstream text_fil(fileName);
if (text_fil.is_open() ){
string x;
while ( std::getline(text_fil, x, ',') )
text.push_b... |
16d2ad96b02756959585b1c16b2fe061b04cd813 | 4959f2669434a8f42f229e4d5f5f638f51a0ceec | /Array/999_Available_Captures_for_Rook.cpp | 3c5673fa395b7ff690abd35e9696da6b7b0f8fb8 | [] | no_license | bruce1408/Alogrithm_Datastruct | 5425642afd6cdada6bd12968d832dcbf9dd526ab | 04d94b5bbf6680f689d22d15134e9a870d6a452e | refs/heads/master | 2023-07-08T03:27:13.051414 | 2023-06-24T13:00:51 | 2023-06-24T13:00:51 | 128,039,673 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,374 | cpp | 999_Available_Captures_for_Rook.cpp | #include <iostream>
#include <vector>
using namespace std;
/**
* On an 8 x 8 chessboard, there is one white rook.
* There also may be empty squares, white bishops, and black pawns.
* These are given as characters 'R', '.', 'B', and 'p' respectively.
* Uppercase characters represent white pieces,
* and lowercase... |
d1cda454d5ed3cb391e2afeda08a1e175d783071 | c132bb1d25857f932ef221b5fef42c88ccb70c30 | /lab8/Shapes.cpp | e08a20bcf7d2313d495455ac6868e93206ee8b9c | [] | no_license | wenyuchen17/Inheritance | 95657d6fc6434d06a671ce10163f99c9960814cb | b5f81eb650ad18c041a2705b1ddd2fd5ea073e5b | refs/heads/master | 2022-05-01T11:55:29.488840 | 2019-07-14T06:50:25 | 2019-07-14T06:50:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,896 | cpp | Shapes.cpp | #include "Shapes.h"
#include <iostream>
#include <vector>
#include <math.h>
using namespace std;
constexpr float pi = 3.14159;
Shape::~Shape() {
}
//2D starts here
//
bool Shape2D::operator<(const Shape2D &rhs) const {
if (this->Area() < rhs.Area()) {
return true;
}
else {
return fals... |
a5cca8e5512722cb4f20f0cac71b03da54b2af3e | 87871e09643ad99472a7e03d0d5ec67fd81e6772 | /Application _2/Phone.cpp | 754a39a011cac7167646710fb9db1e59db598693 | [] | no_license | Aravindhan-G/CPP-Files | f5da650872c2c017961fc96b17db0ed1dcdac34e | 6d0be6f91c2fbd1d3ac01fdf4b46fe9ad91d3c41 | refs/heads/main | 2023-01-03T02:57:46.190942 | 2020-10-30T13:48:18 | 2020-10-30T13:48:18 | 305,266,672 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,176 | cpp | Phone.cpp | #include<iostream>
#include<cstring>
#include<fstream>
using namespace std;
class Phone
{
char name[20],street[10],city[10],code[10],phnum[11];
int door_num;
public:
Phone()
{
strcpy(code,"DEL");
}
void getdata()
{
cout<<"\n Enter name : ";
... |
ce1bd8b4225f683f208a7a5757acdb8005dfd85c | ee80ddf7d1de919847f1072f83c9ee3e3deeae02 | /gwell/source/vi-kernel/vielemepolyhedge.hh | 78307013ac58b36cd24888051c18028851bfbc00 | [] | no_license | pjakwert/gwell3d | 8bef1d3616810e6a79aff12869f164cdff0ac8b5 | 798b928d91864ba7f2ed5b9ccd46b3d6a693908c | refs/heads/master | 2020-03-26T00:42:58.091397 | 2018-08-10T21:48:12 | 2018-08-10T21:48:12 | 144,333,776 | 0 | 0 | null | null | null | null | ISO-8859-2 | C++ | false | false | 5,883 | hh | vielemepolyhedge.hh | #ifndef VIELEMEPOLYHEDGE_HH
#define VIELEMEPOLYHEDGE_HH
/*! \file vielemepolyhedge.hh
* Plik zawiera definicję klasy ViElemePolyhEdge. Jest ona wykorzystywana
* jako klasa pomocnicza do iteracji krawędzi bryły elementarnej.
* Daje ona bezpośredni dostęp do opisu ścianek sąsiadujących z tą
* krawędzią oraz wsp... |
0199c0c3e62fd235b5700d9ad73bbe2ad3c75d02 | 08b71476193080e05a4de24fe73be1c002d04e2b | /atcoder/contest/a.cc | 6631449da9fc2c33b66681ecf5f88d1ee5f3d12e | [] | no_license | sency90/allCode | 7321fae92f0a733742ea6831c43ce35898b1d915 | 1e3ad5f6ba929631641d7889c57a398d89be9419 | refs/heads/master | 2022-10-23T00:32:09.833362 | 2022-09-27T16:33:31 | 2022-09-27T16:33:31 | 43,256,814 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 181 | cc | a.cc | #include <cstdio>
using namespace std;
int main() {
char s[101];
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
scanf("%s", s);
printf("%d %s\n",a+b+c,s);
return 0;
}
|
30bbd7451a1b641085a0a419a7bd9e5ce61055f4 | 420d68add773981757bc5317434864c939c4a927 | /codeforces/normal/300/A.cpp | 517b118372edcef6c34ff5586036ad68eae214e9 | [] | no_license | starsaminf/solutions | ea0b8d80740da87dd78d7840568718ab945b473b | 1ef506fc1760bad711d801a08eb8c54579aa958f | refs/heads/master | 2021-06-08T20:33:30.963285 | 2020-05-21T00:58:31 | 2020-05-21T00:58:31 | 23,294,554 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,690 | cpp | A.cpp | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int dat(vector <int> v){
int a=1;
for (int i = 0; i < v.size(); i++){
a*=v[i];
}
return a;
}
int main(){
int n;
scanf("%d",&n);
vector<int> ve;
vector<bool> vi;
int d;
while(n--){
scanf("%d... |
bf1c297db569a62bae645751cc15a05fbdda8fa1 | bb6d6b54e5043a66b7c84234090dac1b9d9b66cb | /Input_Output/Swaping/SwapValues2.cpp | 839df385be0a5ebe2656d8d3d1ae5bbbb8273713 | [
"MIT"
] | permissive | InamulRehman/CplusplusPrograms | d63c254d8af55226f812aaed84f885b68fd683e3 | 9504ade75c07ce3cb34b91760750ef0904fddc97 | refs/heads/main | 2023-07-30T00:07:54.445134 | 2021-09-11T05:23:30 | 2021-09-11T05:23:30 | 392,293,858 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 451 | cpp | SwapValues2.cpp | #include <iostream>
using namespace std;
int main ()
{
//swaping without using any temporary variable
int a, b ;
cout << "Enter first number: " << flush;
cin >> a ;
cout << "Enter second number: " << flush;
cin >> b ;
cout << "Numbers before swaping are a= " << a << " and b= "<< b << endl;... |
52f8726630af4399bb43424fe8a86e09297b2c84 | 60c6edf698dd1a87e40cdbeba1f71414b02cb705 | /include/data/serialize_tree.hh | 307d5e4a64e3a9a07c799519d60b1e0e9770436b | [] | no_license | soltesz-lab/neuroh5 | ab5ca250acc1d88a51121085f0c2e8d3ffaf0c8c | e6460784cb3e426b9789164d590ad8c6c7bfb783 | refs/heads/master | 2023-07-25T01:33:03.075322 | 2023-07-20T14:47:05 | 2023-07-20T14:47:05 | 212,163,032 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,765 | hh | serialize_tree.hh | // -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
//==============================================================================
/// @file serialize_tree.hh
///
/// Functions for serializing tree data.
///
/// Copyright (C) 2017-2021 Project Neuroh5.
//===================================... |
72be61ba37f7c954f29babffbbdda3b2345809c2 | 184c987aa3615b687cedde502ec706ad4a838124 | /code/geometry/halfplaneIS.cpp | 7d76061b065efae0d32b4836973544f29bee307e | [] | no_license | chinchila/ICPC | 71c85664df21acc1a9eb8f67632b556ae63a058d | 69cec145898ef287c25f4f927106f7a021591e0b | refs/heads/master | 2021-08-10T09:31:27.577825 | 2021-07-07T23:49:13 | 2021-07-07T23:49:13 | 232,422,330 | 6 | 2 | null | 2020-12-22T18:47:52 | 2020-01-07T21:39:00 | C++ | UTF-8 | C++ | false | false | 1,097 | cpp | halfplaneIS.cpp | // Half plane intersection O(n*log(n))
// lines must be ccw (antihorario)
#include "point.h"
#include "lineIntersection.cpp"
bool cmp (P a, P b) {
if( a.quad() != b.quad() ) return a.quad() < b.quad();
else return sgn( a.cross( b ) ) > 0;
}
bool operator < (L l0, L l1) {
if (sameDir(l0, l1)) {
return l1.includ... |
43c36a0651c62365a5fc8babf25d9816792d289d | 29af718d33105bceddd488326e53dab24e1014ef | /Satisfiability/FiniteFunctions/docus/QuineMcCluskey.hpp | 88b59fa9c26b64304be3e8d23e9dbff0c9cbc347 | [] | no_license | OKullmann/oklibrary | d0f422847f134705c0cd1eebf295434fe5ffe7ed | c578d0460c507f23b97329549a874aa0c0b0541b | refs/heads/master | 2023-09-04T02:38:14.642785 | 2023-09-01T11:38:31 | 2023-09-01T11:38:31 | 38,629 | 21 | 64 | null | 2020-10-30T17:13:04 | 2008-07-30T18:20:06 | C++ | UTF-8 | C++ | false | false | 3,079 | hpp | QuineMcCluskey.hpp | // Matthew Gwynne, 2.6.2009 (Swansea)
/* Copyright 2009 Oliver Kullmann
This file is part of the OKlibrary. OKlibrary is free software; you can redistribute
it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation and included in this library; either version 3 o... |
5d93813355e3bc0ca5b8da1862490037e33a276a | 2aa4c5ea5df016d9c0f6707ce82547cbba10e6de | /debug/qrc_qml.cpp | 81567a2180c2b44f3567a6989ea3d1a1d3c3abf5 | [] | no_license | RosimarSilva/gitPc | 4b950ec0754994b9c5699493ed5eb30707f55142 | c04f8de9654be4988062916e7261c82766310c52 | refs/heads/main | 2023-06-19T13:57:11.754343 | 2021-07-06T20:50:10 | 2021-07-06T20:50:10 | 383,595,069 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,512 | cpp | qrc_qml.cpp | /****************************************************************************
** Resource object code
**
** Created by: The Resource Compiler for Qt version 5.10.1
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
static const unsi... |
23a584e5d977dfaeb4880a72ff7bf4c56912692a | 715c86bb9b3689cdc86300cf4fa824a3864b1b3f | /src/ConsortiaServer_ICE/ConsortiaDataDefine.h | f7a62b21b36e1f28b9192b5bc49e12c0213bd518 | [] | no_license | Ivanhan2018/zsbbserver | cb94a2353453bd41ce237aa27865b491be04d9fd | 02a3827099b93f93a2e1aeb6460f6eede57ed8ee | refs/heads/master | 2022-01-30T07:48:41.497675 | 2022-01-15T01:04:28 | 2022-01-15T01:04:28 | 168,654,088 | 4 | 9 | null | null | null | null | GB18030 | C++ | false | false | 3,924 | h | ConsortiaDataDefine.h | #ifndef CONSORTIADATADEFINE_H__
#define CONSORTIADATADEFINE_H__
#include "IceUtil.h"
#include "Global_Macro.h"
#include "PlayerAcc.h"
#include "Consortia.h"
#include "ConsortiaOfficial.h"
#include "ConsortiaProtocol.h"
#include "PlayerRanking.h"
#include "CommonFunction.h"
#include "ConsortiaRanking.h"
#include "ZSBB_D... |
0ab82fed43f7fd04ad2cb858cf29a4bc9b150e9a | dc57ce7de9b6b7c9596cc2e0f733e9c57a482d65 | /src/Index/src/IndexedIdfTable.cpp | 4ee564f581397cf1d872ca8154f7841e6fedc9c7 | [
"MIT"
] | permissive | Markz2z/BitFunnel | 6ed179358ae71a324478db86e93ac6a256f77b0a | c2dca41a3f750ec2e0b4e55d2aeb579f7e52ea6e | refs/heads/master | 2021-01-12T06:46:25.538495 | 2016-12-16T04:00:51 | 2016-12-16T04:00:51 | 76,822,738 | 1 | 0 | null | 2016-12-19T02:55:08 | 2016-12-19T02:55:08 | null | UTF-8 | C++ | false | false | 3,534 | cpp | IndexedIdfTable.cpp | // The MIT License (MIT)
// Copyright (c) 2016, Microsoft
// 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, mo... |
2aaef6c9ce9a71dcd06529a5aba47e94a0f2a4ac | 7cf84171fd86c01b694dc7d282adef42988ede4e | /src/regextool.cpp | 1a07b447170bb4bf577e84d606984a35dc5b5b77 | [
"MIT"
] | permissive | holmesfems/UnitCalculator | 77c0bb1e7be013c500f385a9421820af70efd53a | 258e81bb6742ba6e2e1c694ef39e14a8664a6654 | refs/heads/master | 2021-01-11T11:35:02.481282 | 2017-11-16T10:05:27 | 2017-11-16T10:05:27 | 76,860,514 | 1 | 1 | null | 2017-02-09T13:57:43 | 2016-12-19T12:30:50 | C++ | UTF-8 | C++ | false | false | 1,251 | cpp | regextool.cpp | #include"regextool.h"
#include<iostream>
#include<string>
#include<exception>
//search all matches by regex explaination
std::vector<std::smatch*> regex_searchAll(
const std::regex& regex,
const std::string& target)
{
std::smatch* match;
std::vector<std::smatch*> result;
for(auto it=target.... |
1078dab4bf15f58f59d4b1f57849b9f3c0e26f77 | 16d902abfdf3276b08cb0fc7026c05055619fab5 | /src/Ext/ICallOutHandler.hpp | 2ad9c95a2c59031c9f8bea6fb593b95de956418e | [] | no_license | Error323/CORPSE | af9dcd14958f6f9bb1d087662a20ac8c47c7d1f8 | 66fadc445f330d30abe45fe009703f11c01894c4 | refs/heads/master | 2020-05-20T00:17:40.228280 | 2011-07-09T20:59:39 | 2011-07-09T20:59:39 | 554,109 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,785 | hpp | ICallOutHandler.hpp | #ifndef PFFG_ICALLOUT_HANDLER_HDR
#define PFFG_ICALLOUT_HANDLER_HDR
#include "../Math/mat44fwd.hpp"
#include "../Math/vec3fwd.hpp"
class SimObjectDef;
struct WantedPhysicalState;
// exposes simulation state to libraries
class ICallOutHandler {
public:
virtual float GetFloatConfigParam(const char** tableNames, const... |
76d5eba1553236580808f3727a288ad6b5a0cd6b | 2138cd434c815c449ee52b1276627575aa255ca5 | /EfficientFibonacciDp.cpp | 50b788485979c8ee59d3806fc3f1327b4b9195ae | [] | no_license | Cemetry/Hackerrank_Problem | 334779a4cd75a93acf18a334cfc4cacd004328e1 | 4c79dc80dff49148635913635fd5488e1f65fdc7 | refs/heads/master | 2020-03-10T17:24:20.241652 | 2018-05-01T19:23:46 | 2018-05-01T19:23:46 | 129,499,593 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 384 | cpp | EfficientFibonacciDp.cpp | /**Fibonacci Efficient DP programming**/
/*Author: Tanim Ahmed
**/
#include<iostream>
using namespace std;
int main()
{
int n;
cin>>n;
int fib[n];
fib[0]=fib[1]=1;
for(int i = 2;i<=n;i++)
{
fib[i]=fib[i-1]+fib[i-2];
}
for(int i = 0;i<n;i++)
{
cout... |
0908f4b873aa6b0314cc24b628a4760ad4e78d4c | f03270442bde999d5c967044f631798012d27ce5 | /BomberFire.h | 4bba2ab2e22e1bdd4f9e098c5120f5cbf5104445 | [] | no_license | YutaTachibana0310/SankouGoudou2019Summer | c989f49055f9436fa0422fb1f212949907b03a4a | 0bb41793c90856a88ed8f30b5677687ca3c8ef56 | refs/heads/master | 2020-05-29T14:10:13.235353 | 2019-09-12T08:34:40 | 2019-09-12T08:34:40 | 189,177,253 | 1 | 2 | null | 2019-09-12T07:34:02 | 2019-05-29T07:51:01 | RPC | SHIFT_JIS | C++ | false | false | 864 | h | BomberFire.h | //=====================================
//
//ボンバーファイアヘッダ[BomberFire.h]
//Author:GP12B332 21 立花雄太
//
//=====================================
#ifndef _BOBMERFIRE_H_
#define _BOBMERFIRE_H_
#include "main.h"
#include "Framework\AnimationParticle.h"
#include "Framework\BaseEmitter.h"
/*************************************... |
6c8d532ec5da97b75e9c776989e4867443eee6fa | 02f91e0d20cf4280e1362e5c373d1384d3719d7f | /exercise7 reverse.cpp | 826f5f07211c6f3152dc987ec70232f532927223 | [] | no_license | jamesmai0512/c-_practices | 53010983ad8304523ee033523e760bff3e37a463 | 3df5ed1afe8a558c937479b9d6f53f6773bb9ca1 | refs/heads/master | 2020-07-15T20:21:09.636461 | 2019-09-01T07:08:27 | 2019-09-01T07:08:27 | 205,641,866 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 401 | cpp | exercise7 reverse.cpp |
#include<iostream>
using namespace std;
int main()
{
int a[]={3,6,4,2,8};
int i;
int j;
int h=0; //This is a temporary variable
for (i=0; i<5; i++)
{
cout<<a[i]<<"\t";
}
cout<<endl;
for (i=0, j=4; i<=j ; i++,j--)
{
h = a[i];
a[i]=a[j];
a[j]=h... |
6b84563451ff17b26420e36ef95c10742c3eca81 | 2a6be98c835a1b597107f9bc28c257c599831f30 | /Bai_5.cpp | 4c13980ff8fbdc39a5f642d7a07eb471615cf889 | [] | no_license | canhnd99/bai-tap-cpp-co-ban-lan-I | da0f9688555956eba374a24b4a3a1001d9432fb1 | 4763aed942df2be3eb1f59bbc585f04e8564f41a | refs/heads/master | 2021-10-19T10:10:32.704830 | 2019-02-20T07:33:04 | 2019-02-20T07:33:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 769 | cpp | Bai_5.cpp |
/*
Bài 5: Viết chương trình tính n!
Định nghĩa: n! = n * (n-1) * (n-2) ... 2.1
+) Cách 1: Thực hiện giống như chương trình tính tích các số tự nhiên nhỏ hơn hoặc bằng n.
+) Cách 2: Sử dụng thuật toán đệ quy.
*/
#include <iostream>
using namespace std;
// Cách 1.
int Multiplication(int n) {
... |
9b21032916e69ba303d519154af93d1fa6ba556a | 877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a | /app/src/main/cpp/dir7941/dir7942/dir8062/dir8063/dir8254/dir8444/dir8720/dir10555/dir10807/file10941.cpp | 79805b9ec65a6072e355b6f3dfef16b8ddb37d16 | [] | no_license | tgeng/HugeProject | 829c3bdfb7cbaf57727c41263212d4a67e3eb93d | 4488d3b765e8827636ce5e878baacdf388710ef2 | refs/heads/master | 2022-08-21T16:58:54.161627 | 2020-05-28T01:54:03 | 2020-05-28T01:54:03 | 267,468,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 115 | cpp | file10941.cpp | #ifndef file10941
#error "macro file10941 must be defined"
#endif
static const char* file10941String = "file10941"; |
5a440f7cff5f027582749b812bee5c8a1cf6385e | 5412b4a21ea6ccde84a757b1474c0d47f5e2f0e6 | /src/main.cpp | dbee8d972f3fbf52c9b8908fcfbafc8faf3ece7d | [] | no_license | Renaultivo/RNI | b81c8bf61e50cba5d2d4c2f7b7cbf9e7f2eef683 | dea3e40547b53e36a4f3750186e3d7ff3d83eacc | refs/heads/master | 2023-03-30T12:08:27.961924 | 2021-04-03T10:57:55 | 2021-04-03T10:57:55 | 352,677,454 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,210 | cpp | main.cpp | #include <iostream>
#include "./Core/Core.cpp"
int main(int argc, char **argv) {
Core::getInstance()->init("RenaultivoNI", 1280, 800);
UIComponent *rightMenu = new UIComponent(
"rightMenu",
"My Component",
Core::getInstance()->getScreenWidth() - 250, 0
);
UIComponent *leftButton = new UICompone... |
543a01e5cb186d4026441a18f50ed90ae07c3ea6 | 938f3e27078c0a97e87ccf80ac5cce8124689df1 | /src/Hypergraph/SemiringAlgorithms.cpp | 7dec16f66fc4025829ecaa38bfa288d04721f159 | [] | no_license | lineryang/PyDecode | 423abaeff4578beab0b1728c7427aea373ab9f25 | 7f64618663575a760e5c514b2cb771b8a4ca3131 | refs/heads/master | 2021-01-22T16:54:15.555503 | 2014-09-22T02:28:46 | 2014-09-22T02:28:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,763 | cpp | SemiringAlgorithms.cpp | // Copyright [2013] Alexander Rush
#include <algorithm>
#include <cassert>
#include <exception>
#include <iostream>
#include <queue>
#include <set>
#include <utility>
#include <vector>
#include "Hypergraph/Algorithms.hh"
#include "Hypergraph/SemiringAlgorithms.hh"
#define SPECIALIZE_ALGORITHMS_FOR_SEMI(X) \
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.