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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
16a56cb04091d98f42dfd66b5c5f6487e5d2f429 | aa3dcfd5842f069b3b356131813086e0613b5e7c | /CodeForces/230b.cpp | 2730d46491ad74b39889a22a98960edd729e2ac8 | [] | no_license | Ajimi/Practice-C-CPP | 029584047588b9780b7b6e06b18604598caad5f4 | b8aa6475dca3b0d63409718e9ac714a65c03ebdd | refs/heads/master | 2021-06-11T21:12:47.097860 | 2016-12-07T22:33:41 | 2016-12-07T22:33:41 | 73,641,804 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 412 | cpp | 230b.cpp | #include "iostream"
using namespace std;
bool tprime(long long int a){
int k = a / 2 , count = 0;
for(int i = 1 ; i <= k ;i++){
if(a % i == 0)
count ++;
}
return count == 2 ;
}
int main(int argc, char const *argv[])
{
long long int n , x;
cin >> n;
for(int i = 0;i<n; i++){
cin>> x;
if... |
1ff5933d69b47f83b80eba3fbe794db61b987b29 | 0d4ecac4c0151f9dcbb1f4213200d18920875770 | /Program 14/TemplateFunction.cpp | ada21be3fab00542d97318650725c4d7b74b9e8c | [] | no_license | akshaykhare19/OOPS-BPIT | 16ea0b376afe1be61ce4965ad0e287a193b42cbf | e4c3f4b8c7ccdc0eb3f8346b0c6e270c70c44d23 | refs/heads/master | 2023-06-04T23:14:34.702797 | 2021-06-20T11:04:03 | 2021-06-20T11:04:03 | 378,148,637 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 596 | cpp | TemplateFunction.cpp | //Write a program to define the function template for calculating the square of given numbers with different data types.
#include<iostream>
#include<bits/stdc++.h>
using namespace std;
template<class S> S square(S val)
{
return val * val;
};
template<> string square(string str)
{
return str + str;
};
int m... |
f0cd3f754b1c8c96908719f76e179b3ac8acdf93 | a65b1ba6939f1de6dbf2f39b18762501a0c99a8b | /Symulacja_Cyfrowa/channel.cpp | 3372bc75c8d136feffa5cab9c0787536262f0590 | [] | no_license | SzPi1946/Symulacja_Cyfrowa | e0da197fd00c14cffd537ca362ed56ae27b0b839 | a5033198a4f4f0eff0bc9abaeb4813726673c3ec | refs/heads/master | 2021-05-25T08:11:18.095265 | 2021-02-23T11:51:27 | 2021-02-23T11:51:27 | 253,733,557 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,430 | cpp | channel.cpp | #include "channel.h"
#include <iostream>
#include "logger.h"
Channel::Channel(Logger* logger, Wirelessnetwork* network)
{
network_ = network;
status2 = true;
status = true;
logger_ = logger;
logger_->Debug("The channel has been created.");
}
Channel::~Channel()
{
logger_->Debug("The channel has bee... |
01f042942bf49804deb4caf980a40e1c6f7c5330 | 07086560eff6d8f04ffdcf317251e212f67bbfa1 | /QuiString.h | a15bdcaba371b0ab0e486d8fc4bc89187a2b57c0 | [] | no_license | cryos/QUI | 41fb40ac20ef4f315bae89de06358cb6e1d36558 | 4d5b4322bbed155f44ef781939c28ebb64bebebe | refs/heads/master | 2021-01-23T15:04:08.855824 | 2009-04-29T18:06:44 | 2009-04-29T18:06:44 | 188,636 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 903 | h | QuiString.h | #ifndef QUI_QUISTRING_H
#define QUI_QUISTRING_H
/*!
* \file QuiString.h
*
* \brief In theory this file should isolate the differeneces between using
* QStrings in the QUI and std::strings in the code.
*
* \author Andrew Gilbert
* \date October 2008
*/
#ifdef QT_CORE_LIB
#include <QString>
#else
#... |
b71bc16cbcfb7b2144aade58863e6444b682fa8a | c4270321848d8da394f171e907a9246f9ac48cdf | /2019/poo/interface/enfermeiro.h | a9a618aaef25820e5854c72a71c8725bf83ce772 | [] | no_license | marlovi/aulas | 99a83d2364a3e5573fd3fb8d58b696fb1d835ae4 | a8b22d506105217b196e9354a2b06fdd74758203 | refs/heads/master | 2023-01-08T03:22:24.067025 | 2019-11-12T00:23:44 | 2019-11-12T00:23:44 | 98,063,832 | 10 | 11 | null | 2023-01-04T12:26:56 | 2017-07-22T23:41:20 | JavaScript | UTF-8 | C++ | false | false | 162 | h | enfermeiro.h | #ifndef ENFERMEIRO_H
#define ENFERMEIRO_H
#include "acoes.h"
class Enfermeiro : public Acoes{
public:
float receberSalario();
bool baterPonto();
};
#endif
|
8a07bb5787b24f0b3b48e8d1f95ec8f508a9f28a | fd3f6fabd11cbdf2af9ba5f98a56d7c6f99d28ef | /OnlineJudgeUVa/C++/12xxx/12279 - Emoogle Balance/main.cpp | 6120ab9212d1e5219b3c71b172f4777586fb4278 | [
"MIT"
] | permissive | DVRodri8/Competitive-programs | 07e3ef71cb37b7b4b8cfc35ed9a594276f686b10 | db90c63aea8fa4403ae7ec735c7f7ce73c842be4 | refs/heads/master | 2021-01-19T00:33:37.506503 | 2017-07-19T17:05:14 | 2017-07-19T17:05:14 | 87,185,395 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 334 | cpp | main.cpp | #include <iostream>
#include <string>
using namespace std;
int main(){
int n, x, res, c = 1;
cin >> n;
while(n!=0){
res = 0;
for(n; n>0 ; n--){
cin >> x;
if(x == 0) res--;
else res++;
}
cout << "Case " << c << ": " << res << endl;
c++;
cin >> n;
}
cout << endl;
... |
e301ba732363eecea874df39517aa850b56cb40e | 86dcea4619590879ad9b1938d80ffe0a035cd041 | /NeuroData/reader/AbstractReader.cpp | 38d0da36280e2b83489159134850ac241708baa1 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | smmzhang/NeuroStudio | aaa4826ef732963e4f748a46625a468a1ae810d3 | f505065d694a8614587e7cc243ede72c141bd80b | refs/heads/master | 2022-01-08T23:37:52.361831 | 2019-01-07T11:29:45 | 2019-01-07T11:29:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 632 | cpp | AbstractReader.cpp | #include "stdafx.h"
#include "AbstractReader.h"
#include "BinaryReader.h"
#include "TextReader.h"
using namespace np::dp;
using namespace np::dp::preprocessor;
AbstractReader* AbstractReader::CreateInstance(DataReaderSet& reader_set, const model::AbstractReaderModel& model)
{
AbstractReader* reader = NULL;
if (mo... |
c5db3481cb77d66c2b5e74deadbbcab5f27dc790 | f16af0daae3d88df06fe45b57d762fe0ed0da6d6 | /INLib/inc/GELib/Ui/UiHitArea.h | b86355b1721ded7480788108c51a3017581fbf1b | [] | no_license | lop-dev/lop-lib | 1f15d48beca11dd7e4842b96780adecab186bea5 | ae22a29c82e31cbca53155fb0a1155569dfe2681 | refs/heads/master | 2023-06-23T09:45:43.317656 | 2021-07-25T02:11:19 | 2021-07-25T02:11:19 | 131,691,063 | 16 | 13 | null | null | null | null | UTF-8 | C++ | false | false | 1,342 | h | UiHitArea.h | //////////////////////////////////////////////////////////////////////
// created: 2010/06/06
// filename: GELib/Ui/UiHitArea.h
// author: League of Perfect
/// @brief
///
//////////////////////////////////////////////////////////////////////
#ifndef __GELIB_UI_UIHITAREA_H__
#define __GELIB_UI_UIHIT... |
297e972a258bb143717fba4960fe346ccddaad78 | a822c8510279f9a09cf1e81ea1d94fdf1952a24a | /ardumower/imu.cpp | 9dcf55fb0bd0eff8048927f93daa65f6211917a7 | [] | no_license | Boilevin/AzuritBer | 44b9584399d852133dd2b9702e2e55912c4bdd31 | 19fd14705ba3a814a1cddccf4482dce4f3ffa64a | refs/heads/master | 2023-02-22T12:13:16.598315 | 2023-02-12T18:17:38 | 2023-02-12T18:17:38 | 186,164,418 | 13 | 17 | null | 2021-08-30T14:14:19 | 2019-05-11T17:48:31 | C | UTF-8 | C++ | false | false | 22,442 | cpp | imu.cpp | /*
License
Copyright (c) 2013-2017 by Alexander Grau
Private-use only! (you need to ask for a commercial-use)
The code is open: you can modify it under the terms of the
GNU General Public License as published by the Free Software Foundation,
either version 3 of the License, or (at your option) any later v... |
e9d6d582b0bf3cc0fa9828be3d5cd8be396991cd | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /CommonTools/RecoAlgos/plugins/PtMinMuonSelector.cc | 3ff63794c7ba849fee47e9c4d5658304167c11fc | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | C++ | false | false | 512 | cc | PtMinMuonSelector.cc | /* \class PtMinMuonSelector
*
* selects muon above a minumum pt cut
*
* \author: Luca Lista, INFN
*
*/
#include "FWCore/Framework/interface/MakerMacros.h"
#include "CommonTools/UtilAlgos/interface/PtMinSelector.h"
#include "CommonTools/UtilAlgos/interface/SingleObjectSelector.h"
#include "DataFormats/MuonReco/int... |
592f2153d5a92244a306385bb491ce158f21cd2b | 2190702644f7f5e9dc0c8eade40651dfceaed1cc | /src/Window/Application.cpp | a939c047d0c98e20d549ba8df2f5a7d0d8c552fa | [] | no_license | po2xel/abollo | c5b3fca77af05c303b27a5981c28497db99db67c | f7947cf1936bac9d9f80d51afa0668c51b542d1c | refs/heads/master | 2022-03-23T20:33:45.843151 | 2019-11-23T10:16:49 | 2019-11-23T10:16:49 | 209,087,473 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,143 | cpp | Application.cpp | #include "Window/Application.h"
#include "Window/EventDispatcher.h"
namespace abollo
{
void Application::Run() const
{
for (SDL_Event lEvent; SDL_WaitEvent(&lEvent) && lEvent.type != SDL_QUIT;)
{
try
{
switch (lEvent.type)
{
case SDL_WINDOWEVENT:
... |
2e64db62de2c4212485f74ab069546db2ed53f1a | f8d76935f342abceff51a90a2844110ac57a4d2e | /solution/srm334_extendedhappynumbers.cpp | 57ff838aee94975412c085f8e669227e872a6d77 | [] | no_license | rick-qiu/topcoder | b36cc5bc571f1cbc7be18fdc863a1800deeb5de1 | 04adddbdc49e35e10090d33618be90fc8d3b8e7d | refs/heads/master | 2021-01-01T05:59:41.264459 | 2014-05-22T06:14:43 | 2014-05-22T06:14:43 | 11,315,215 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 73,484 | cpp | srm334_extendedhappynumbers.cpp | /*******************************************************************************
* Automatically generated code for TopCode SRM Problem
* Problem URL: http://community.topcoder.com/stat?c=problem_statement&pm=7244
*******************************************************************************/
#include <vector>
#... |
44822afcbd8c348ce1668475819e5151517e37b5 | 3e03bd443c3b0d26bd0dcaa4de677c7ceb975a71 | /Valid Parentheses.cpp | f81999075cb961d3de7362a98c544d9d6b966723 | [] | no_license | moophis/leetcode_solutions | 00fa2062657fdaee586b1b6e8d57da56b2ad7a17 | da99a4e512afc3c452dff29a89da7ec905f7add5 | refs/heads/master | 2020-05-02T12:08:19.144092 | 2014-10-20T03:23:52 | 2014-10-20T03:23:52 | 13,548,528 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,185 | cpp | Valid Parentheses.cpp | // https://oj.leetcode.com/problems/valid-parentheses/
class Solution {
public:
bool isValid(string s) {
size_t size = s.size();
if (size == 0) {
return true;
}
stack<char> stk;
for (size_t i = 0; i < size; i++) {
char c = s[i];
... |
78b56014b7450d6bafafa8eccaab3317bd234a0c | 03eb29c69423912741f7cf96a9403aa2cfba723e | /src/cml/Renderer.cpp | eb7e37402d46790fef48343ae72f915e812525e9 | [] | no_license | angeelgarr/ofxCamaraLucida | e9ab5b6130714cd00d1964964f96ca235717720e | 435fa8f6da0e7eb554ecf3c47f62d1fb2291af40 | refs/heads/master | 2021-09-03T01:14:42.776974 | 2018-01-04T14:02:40 | 2018-01-04T14:02:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,909 | cpp | Renderer.cpp | #include "cml/Renderer.h"
namespace cml
{
Renderer::Renderer(
cml::Config config,
OpticalDevice* proj,
OpticalDevice* depth )
//OpticalDevice* rgb )
{
this->proj = proj;
this->depth = depth;
//this->rgb = rgb;
_debug = false;
_viewpoint = V_DEPTH;
ofFbo::Setting... |
a78015bd5b77f25d961cced2ea393ebbe037b8e5 | 1a0bbe995438570ac8a2947e5ae7f7289428b335 | /include/merge_sort.h | 43001edec689791e1cc3e92aea09332fbd87056c | [
"MIT"
] | permissive | Algorithms-and-Data-Structures-2021/semester-work-merge-and-insertion-sort-DL | 227f833b04aa8e71f1e07d18d9478cbaea4141b6 | 2d6e5fe89eeab5a2897183b27358a23dff23b2d1 | refs/heads/main | 2023-04-25T11:37:18.163155 | 2021-05-24T16:20:54 | 2021-05-24T16:20:54 | 369,618,926 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 235 | h | merge_sort.h | #pragma once
#include <vector>
using namespace std;
namespace itis {
int min(int x, int y);
void merge(std::vector<int> arr, int start, int mid, int end);
void merge_sort(std::vector<int> arr, int l, int r);
} // namespace itis |
f3e457e67dfe317756115fc1ed3dc46b4452b92a | 097f23019557d17ca70e75222d54b26ca322c50d | /compte.cpp | 43ecf246f800f79ba9b63bc147faf38811bcd56a | [] | no_license | patrick-lainesse/Comptes-bancaires | 075524403c721ca626e8f9c807ed829787119e5e | a1e0cfb6cb01fd6334ed222b0b3837f9ac87fa84 | refs/heads/master | 2021-02-11T18:01:55.585505 | 2020-03-03T16:48:03 | 2020-03-03T16:48:03 | 244,517,460 | 1 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 12,431 | cpp | compte.cpp | /*
* Auteur: Patrick Lainesse
* Cours: IFT1166 - A19 - Mardi 16h30
*
* compte.cpp
* Classes et methodes implementant une classe abstraite pour gerer
* des operations bancaires.
*/
#include "compte.h"
// On declare globalement l'iteration des numeros de comptes pour qu'ils soient modifies a l'exterieur des classes
// ... |
9f48fd7c95e687042bc47a1543353a13ce14a24d | b67704525ef4b87e596ecc270bf40bc59df37e96 | /201821010211/Ex12_13/Ex12_13.cpp | 3209d6fa47791cd5a4ca233b263eb07645dc6320 | [] | no_license | 201821010211/Assignment_07 | 9bf7d6124161c18056b5050af9f24a149466bd70 | e38cdd760e7194a879de76d7129d29741716595d | refs/heads/master | 2020-11-27T16:31:33.103846 | 2019-12-22T07:45:24 | 2019-12-22T07:45:24 | 229,529,688 | 0 | 0 | null | 2019-12-22T06:49:04 | 2019-12-22T06:49:03 | null | UTF-8 | C++ | false | false | 519 | cpp | Ex12_13.cpp | #include <iostream>
#include <iomanip>
#include <vector>
#include <string>
using namespace std;
#include "Package.h"
#include "OvernightPackage.h"
#include "TwoDayPackage.h"
int main()
{
vector <Package*>packages(2);
packages[0]=new OvernightPackage("Z","L",300,0.5,0.1);
packages[1]=new TwoDayPackage... |
4e0184ec88c09cc4961520904b4487a29a75730d | f3562b1fd70da5883b2d5f851c3303c0e684ba92 | /pep_coding_ip/tue_nov_12/pow-x-n.cpp | cf664dc6ddecbc00650fd9f4c07164458e95724c | [] | no_license | himanish-star/cp_codes | d12581bbadf6063d085778e8e78686e30c149c91 | 5d13d537ed744ce783cf7f7188b058b7a44631a3 | refs/heads/master | 2021-07-13T04:44:46.872056 | 2020-07-13T11:57:40 | 2020-07-13T11:57:40 | 162,413,025 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 610 | cpp | pow-x-n.cpp | class Solution {
public:
double myPowUtil(double x, int n) {
cout<<n<<" "<<n%2<<endl;
if(n==1) {
return x;
}
if(n==-1) {
return (double)(1/x);
}
if(n==0) {
return 1;
}
double pow = myP... |
edd4448a20db5a79ec8ee8e5032f5d0575dffb31 | eae7d60af2e7b7cd5a335ed371860462a5698cb8 | /Neural Network/NNLM.h | 2d0bf9fe9d4309cf5660a6088c896fc72dd15fd0 | [] | no_license | nom-de-guerre/Matrices | 965828d1d737c7e6067c2946de595f5777b5866d | 65f7c0202c27cfb5f80abf1bd44ca192c6da0375 | refs/heads/master | 2021-09-05T21:52:04.468418 | 2021-08-26T09:31:59 | 2021-08-26T09:31:59 | 53,346,139 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,378 | h | NNLM.h | #ifndef __LEVENBERG_MARQUARDT__NN_H__
#define __LEVENBERG_MARQUARDT__NN_H__
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <float.h>
#include <data.h>
#include <matrix.h>
typedef Matrix_t<double> Md_t;
#define RECTIFIER(X) log (1 + exp (X))
#define SIGMOID_FN(X) (1 / (1 + exp... |
5efd0c9609d35da2aaa63349ff506cce7b5c07b3 | b645aaf9822bca5bb7c6008e0765ff56dd3c571f | /c++/tests/main.cpp | 3c02e95b183355e7450dc72505361b6f72b421c6 | [] | no_license | juli1/design-patterns | 4925e024041747b3371bee9cd8cb4b2b356bdf79 | fde7f99c64b99927e1791ffc072042efa3b95ed4 | refs/heads/master | 2021-01-12T01:50:19.200998 | 2017-02-06T05:54:34 | 2017-02-06T05:54:34 | 78,436,946 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,794 | cpp | main.cpp | #include <iostream>
#include "Singleton.hpp"
#include "Factory.hpp"
#include "Builder.hpp"
#include "Adapter.hpp"
#include "Composite.hpp"
#include "Decorator.hpp"
#include "Facade.hpp"
#include "Bridge.hpp"
#include "Command.hpp"
#include "ChainOfResponsibility.hpp"
#include "Mediator.hpp"
#include "Observer.hpp"
#in... |
550fa6b184246567dc134e3f5a77ae2311c7ae39 | cef6aa553e47bc17eb8d88c6afcc47cd71914488 | /Megaton Hammer/src/robot.hpp | 5cbc93e1b2b2d0d937b4d45c335f7254dd1cf1ea | [] | no_license | sAbhay/XCode-Projects | 95085b4cf3f3198c2bb08892d1c9a2a6e58e6dfc | 3614f676aca1b13b1f21bb204bae18dfb913327b | refs/heads/master | 2020-04-17T21:24:33.585121 | 2019-01-22T09:46:19 | 2019-01-22T09:46:19 | 163,640,802 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 846 | hpp | robot.hpp | //
// robot.hpp
// Megaton Hammer
//
// Created by Abhay Singhal on 27/03/18.
//
#ifndef robot_hpp
#define robot_hpp
#include <stdio.h>
#include "ofMain.h"
#include "camera.hpp"
#include "ofxAssimpModelLoader.h"
#include "ofVboMesh.h"
class Robot
{
private:
CeasyCam cam;
ofMesh mesh;
o... |
333652ee7c98a3d1741806028b4422378724cfca | 0905e1941724f66835985784e61bc60096365384 | /UVA/Old_Code/10935 - Throwing cards away I.cpp | 29e722672a1620cae20a46f54d75113c6582a822 | [] | no_license | smafjal/AcmOnlinePractice | eba75da039adf93c7f5c63ce76c5598c3fc32c94 | ecc1188256b598583d1334b1bef2588476426815 | refs/heads/master | 2020-04-09T21:25:13.519119 | 2016-02-21T11:39:47 | 2016-02-21T11:39:47 | 52,203,554 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,082 | cpp | 10935 - Throwing cards away I.cpp | #include<stdio.h>
#define sz 600
int queue[sz];
int f=1;int r;
int check(void)
{
if(r==f)return 1;
return 0;
}
int pop()
{
int p;
p=queue[f];
f++;
return p;
}
void pushintial(int i)
{
queue[1]=1;
}
void push(int i)
{
queue[++r]=i;
}
int main()
{
int i,... |
988a0a2769146b11e0b1d108ef7e37aacc60c65b | 88a14a13d7cba8d9f722d102f1065cf838c880e3 | /CS486 - HW1/CS486 - HW1/main.cpp | bdcd1c801ea24788604fd9ac5e6abe1337cc0a03 | [] | no_license | lavahot/Computer-Vision-Coursework | 94fe1ca42864648e4b67a5a25cb5e17630c43ec6 | 0902ad1fdc49e6b4404b42a4bc922b0e5da282c8 | refs/heads/master | 2020-04-11T08:44:10.526328 | 2013-02-26T06:35:44 | 2013-02-26T06:35:44 | 8,243,451 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,226 | cpp | main.cpp | //
// main.cpp
// CS486 - HW1
//
// Created by Taylor Mansfield on 2/16/13.
// Copyright (c) 2013 Taylor Mansfield. All rights reserved.
//
#include <iostream>
//#include "ReadImage.cpp"
//#include "WriteImage.cpp"
#include "Gauss2D.h"
#include "Image.h"
using namespace std;
int main()
{
char filename[30];
... |
72efb1f6c4636504370ad7e27ccef551c5605470 | bb2f2e85ca676f3756af4ed0bef9171304fcd058 | /Lab1_Templates/Lab1_Templates/complex_number.h | a65cd27be3d986a59ca7ef28dcc4a0d6930b94e2 | [] | no_license | MaslennikovaDaria/Lab1_Templates | 655486be20a6f5541dd2563e0f17ca66c4397a88 | 6f15fa9bad7747f6534fa145020f27115890496b | refs/heads/master | 2020-05-27T04:24:13.074585 | 2019-05-24T20:35:30 | 2019-05-24T20:35:30 | 188,482,003 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 461 | h | complex_number.h | #pragma once
#include <iostream>
using namespace std;
class complex
{
private:
int re, im;
public:
complex()
{
re = 0;
im = 0;
}
complex(int re1, int im1) //constructor
{
re = re1;
im = im1;
}
friend ostream& operator<<(ostream& out, const complex &numb)
{
out << numb.re;//w... |
9fb40dd94c57662b62e570fde67615342203736d | beeca2af3256ecc03b6820d3fd12b988e2e0eada | /communication/mavlink_stream.hpp | 5d098722a4049fde965a784016f1474cf288e188 | [
"BSD-3-Clause"
] | permissive | robert-b/MAVRIC_Library | 55f058c9c5570f1554d3adb82f6c419780e97a02 | 56281851da7541d5c1199490a8621d7f18482be1 | refs/heads/master | 2020-03-29T03:46:39.320069 | 2017-02-02T14:22:53 | 2017-02-02T14:22:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,576 | hpp | mavlink_stream.hpp | /*******************************************************************************
* Copyright (c) 2009-2016, MAV'RIC Development Team
* 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. R... |
390d7412d71750fdc16639b3ae519c7d5c51ac27 | c8b8ebdc916cd5bccc1c9fc64fae3a282ac8f90f | /Kinect2Win32App/featurePoint.h | 69de3a8c2a67f63d4379d8cf78d4db293d25b9d0 | [] | no_license | roylu007/kinectv2W32appVirtualTryon | f870a2f268b7303587fd8af50cfcd3e799e2dd9a | b82b3a1f278a41c8882fbbe6d0931374dcc56b11 | refs/heads/master | 2020-07-31T01:03:36.394405 | 2017-04-12T14:03:08 | 2017-04-12T14:03:08 | 73,612,614 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,594 | h | featurePoint.h | #ifndef FEATUREPOINT_H
#define FEATUREPOINT_H
#include <iostream>
#include <vector>
#include "include_opencv/opencv2/opencv.hpp"
#define ABS_FLOAT_0 0.000001
using namespace std;
using namespace cv;
template<class T>
class Compare
{
public:
int operator()(const T& A, const T& B)const
{
if (A.x > B.x)
return 0;... |
3ff66395f68e3e6a94b3f49f77b4b951cf01a856 | 023922d39d2dc2db93d153fe3116724430510015 | /OnlineGaming_Project1/BasePlayer.h | e9049c9fde0be8efe66d7168d4cacac1fd62f436 | [] | no_license | francis-carroll/OnlineGaming_Project1 | 25eb890a294538c86bb39ed2ac521a00690b72a7 | 7ad4ff3419d536909843675b619e09c0fa2f7bf4 | refs/heads/master | 2023-02-25T07:59:52.547153 | 2021-01-28T16:42:43 | 2021-01-28T16:42:43 | 319,598,270 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 586 | h | BasePlayer.h | #pragma once
#include <Client.h>
#include <Player.h>
class Play;
class BasePlayer : public Player
{
public:
BasePlayer(int t_id, string t_ip);
BasePlayer(int t_id, string t_ip, Identifier t_identifier);
BasePlayer(int t_id, string t_ip, Vector2f t_position, float t_radius);
BasePlayer(int t_id, string t_ip, Vect... |
1f7515e0f0e1d92c501886c73c2ca3060960e18c | 9be573b87220a3f9c02f17b987b16dc90ac6b048 | /build-train-Desktop_Qt_5_8_0_clang_64bit-Debug/ui_message.h | 6117de27b4a3318d96aa2a77e6ced2fa07e84e05 | [] | no_license | shuai1126/keshe | c72aeae176aa947f49a2a3fe8778acabbe10a365 | fab075306412c645a5746b8812db26608b055a54 | refs/heads/master | 2020-03-22T10:42:50.991682 | 2018-07-13T01:30:18 | 2018-07-13T01:30:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,077 | h | ui_message.h | /********************************************************************************
** Form generated from reading UI file 'message.ui'
**
** Created by: Qt User Interface Compiler version 5.8.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
*******************************************... |
ceeb80e2d3de524713391ecb418e2952a6132a34 | 7a4005182f6cac348283f2120c34e722627d8ae9 | /callable_object.cpp | 93f2517d3820b890db7007b37e305ad8740d6a61 | [] | no_license | Abdullah-Al-Zishan/C-Multi-threading | 41feacaceeea5cc8e7e465c2517fdafa53f06b9e | 5df119dc591318edf73eaebd9d9374fef0caf52b | refs/heads/master | 2022-07-31T12:34:16.059344 | 2020-03-20T18:00:00 | 2020-05-19T21:57:50 | 260,241,100 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,489 | cpp | callable_object.cpp | #include <thread>
#include <mutex>
#include <iostream>
/*
Simple functor with no purpose for demonstartion
*/
class Functor
{
public:
Functor()
{
}
~Functor()
{
}
void foo(int n, char ch)
{
std::cout << "Foo function called: " << n << ", " << ch << std::endl;
}
long bar(double n)... |
bda6e70f1e58776ff79c56645d7947a751bc3fb9 | 8b8bbaf6a44fb301df2157709b1dff0faf640523 | /tests/widget_callbacks.cpp | d676a9b83c926a2c351b4dcc88ad0c7fb87e3b31 | [] | no_license | Manewing/todo | b5fa249b38a5e21978ff158ef7121f36fb71bbc0 | a45d12ad144ae8c6c2b1a9727d1132b776134849 | refs/heads/master | 2021-01-10T17:04:01.777145 | 2017-05-06T12:56:36 | 2017-05-06T12:56:36 | 51,470,606 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,901 | cpp | widget_callbacks.cpp | #include <iostream>
#include <string>
#include <td-defs.h>
#include <td-widget.h>
#include <td-except.h>
#include <td-update.h>
class test_widget : public todo::widget, public todo::update_if {
public:
test_widget(std::string name) : todo::widget(), m_name(name) {
set_update(new todo::urecall_exception(th... |
a4ef7ace23b9685e0f5ecf057a2ef5e647067a2b | b5571d53d011154291cd5bfd34f7f374661ffbec | /include/basemodule.h | d543dfbb2309fe995d07052d310da93ded6ad13f | [] | no_license | standlucian/RoGecko | 387dff7dd0f97aa16f704e7ba2e5ff59d24c0bdc | 2129352c4c42acf5a60786cb6e6bfc3d3ac006aa | refs/heads/master | 2021-03-16T05:26:24.759891 | 2017-05-17T08:14:28 | 2017-05-17T08:14:28 | 91,550,573 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,638 | h | basemodule.h | /*
Copyright 2011 Bastian Loeher, Roland Wirth
This file is part of GECKO.
GECKO is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
GE... |
3c58910246bcba7304dd86e80ff58a616cde15a9 | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-glue/source/model/ResourceUri.cpp | af669d0035a20ae71f290eb456880475ca8392de | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 1,405 | cpp | ResourceUri.cpp | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/glue/model/ResourceUri.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Gl... |
50455d6c22eb0090a064660cc0f2e95976d7281c | 91a882547e393d4c4946a6c2c99186b5f72122dd | /Source/XPSP1/NT/admin/wmi/wbem/xmltransport/soap/server/opdelcs.cpp | d54b2ea477f3129104eb9760ac2509a2b346669c | [] | no_license | IAmAnubhavSaini/cryptoAlgorithm-nt5src | 94f9b46f101b983954ac6e453d0cf8d02aa76fc7 | d9e1cdeec650b9d6d3ce63f9f0abe50dabfaf9e2 | refs/heads/master | 2023-09-02T10:14:14.795579 | 2021-11-20T13:47:06 | 2021-11-20T13:47:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,255 | cpp | opdelcs.cpp | //***************************************************************************
//
// Copyright (c) 2000-2001 Microsoft Corporation
//
// OPDELCS.CPP
//
// alanbos 07-Nov-00 Created.
//
// WMI Delete Class operation implementation.
//
//***************************************************************************
... |
4e9ccf69c3a0de008ac551028694ac3d341cc67f | 51cc2aa23688d2d6df1511d316e312eacc5b1192 | /SDK/RC_SceneComponentPools_classes.hpp | 434a33118cd1d2411a96a38026639219eefc03e9 | [] | no_license | hinnie123/RogueCompany_SDK | eb5e17a03f733efdad99c64357d22b715b7c9879 | b6382f4b38626ff5c2929067f8ee2664c4bf92c4 | refs/heads/master | 2023-07-09T16:35:49.736981 | 2021-08-15T12:04:10 | 2021-08-15T12:04:10 | 250,232,865 | 4 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 7,238 | hpp | RC_SceneComponentPools_classes.hpp | #pragma once
// RogueCompany (Dumped by Hinnie) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
// Class SceneCompon... |
e08580d2fb0ec4a21c30cda224accb9f57cef736 | e7a918f81acb6eeda6166b06637f520ca314d80b | /BabyYodaAdventures/BabyYodaAdventures/BabyYoda.hpp | 008ef56273136894ca4c913b4f024dc3fde230b2 | [] | no_license | larvailor/BabyYodaAdventures | 1bee5100302c6966102e17a72c83701c278a2f18 | 8aca4d4bad97715348e5326c2cad21a8ca6983c3 | refs/heads/master | 2020-12-03T19:43:37.002929 | 2020-02-07T14:17:35 | 2020-02-07T14:17:35 | 231,459,728 | 0 | 1 | null | 2020-01-04T10:37:34 | 2020-01-02T21:07:29 | C++ | UTF-8 | C++ | false | false | 1,441 | hpp | BabyYoda.hpp | #ifndef BABY_YODA_HPP
#define BABY_YODA_HPP
#include "Entity.hpp"
class BabyYoda : public Entity
{
private:
/////////////////////////////////////////////////
//
// Methods
//
/////////////////////////////////////////////////
//-----------------------------------------------
// Initialization
//
void ini... |
69280ea919fe2475007c280ecbbf9cb95e61ec05 | 2b5b76f4a98fdba78d89c3b286b107ba51550f10 | /2-2/Game/qt_game/mainwindow/GeneratedFiles/ui_multiplaywindow.h | 2f802d7217afc473cc1f22c85077516512a21c4a | [] | no_license | Darkseidddddd/project | 7e2f3adc6f47188f062a9e1235016752860086dc | 9376fd84c0438e5c4dc3d5a8d3cf02b492d5d7ae | refs/heads/master | 2020-05-30T10:49:21.209581 | 2020-02-17T09:49:33 | 2020-02-17T09:49:33 | 189,682,072 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,629 | h | ui_multiplaywindow.h | /********************************************************************************
** Form generated from reading UI file 'multiplaywindow.ui'
**
** Created by: Qt User Interface Compiler version 5.12.2
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
**********************************... |
378bce2282584940592760447c314e61849d0626 | 228812957d65d1bdbb55261d5e6cecbdd4b7631c | /TopCoderSeason3/CrazyBot20161209.cpp | e66c285a160141cb05612e9153c1de8f043ccb8e | [] | no_license | eungmo/Algorithms | 33136b4e3ca61fa0289b68e3ebb34bc4f1cfbafc | 568b34721f68917055a68eb2945818098db9632b | refs/heads/master | 2020-06-10T04:19:00.661650 | 2017-01-12T09:19:14 | 2017-01-12T09:19:14 | 76,089,106 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,409 | cpp | CrazyBot20161209.cpp | #include <iostream>
using namespace std;
bool matrix[29][29] = {false, };
double dProb[4];
int vx[4] = {1, -1, 0, 0};
int vy[4] = {0, 0, -1, 1};
class CrazyBot {
public:
double getProbability(int n, int east, int west, int south, int north) {
double probaility = 0.0;
// caculate direction's probabilities;
dP... |
ed863d209b0919d04d92c6d3526557c44aa86141 | dacff6ccba4a485ffff6edea6cdfed94bb17f0cf | /source.h | 65645b9d3f99bda49747e4cfe93897df6aa55297 | [
"MIT"
] | permissive | mras0/solve | 9c4f43d28e37b766e25896ea874a9dcf88cb2569 | b9081c1e1f532511f38ceea696d52601a12d7342 | refs/heads/master | 2021-01-01T17:15:43.654797 | 2014-11-30T22:29:49 | 2014-11-30T22:34:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,332 | h | source.h | #ifndef SOLVE_SOURCE_H
#define SOLVE_SOURCE_H
#include <string>
#include <iosfwd>
namespace source {
class file {
public:
explicit file(const std::string& filename, const std::string& contents) : filename_(filename), contents_(contents) {
}
const std::string& filename() const { return filename_; }
c... |
60688a235e0a1c1b77ff7d825cc6886bf4d2ce7f | c6114798112d8c4c6b7fd8e7c8dbf31d11301bf0 | /洛谷代码存放/新手村/P1909.cpp | 6a53513df35bf5f71a3eb3a45f5ae1d80961f7a6 | [] | no_license | jiangtao1234ji/ACM-code | fb2b321d116a5f61b7771a8086862f886ed61935 | b549bbdf0aae7214e840ab0e15f9e484c5494781 | refs/heads/master | 2020-04-16T02:58:47.307497 | 2019-03-10T05:53:00 | 2019-03-10T05:53:00 | 165,215,632 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 303 | cpp | P1909.cpp | #include<iostream>
#include<string>
#include<algorithm>
#include<cmath>
using namespace std;
int main()
{
int num;
cin>>num;
int a, b, ans = 100000000, c;
for(int i=0; i<3; ++i)
{
cin>>a>>b;
c = ceil(num*1.0/a)*b;
ans = min(c, ans);
}
cout<<ans<<endl;
return 0;
}
|
e85b19de92da22e84499bd318bfa20ff02a91107 | 96c36c3e498ee48cf42176a76c2505003cedb609 | /lab12/processHistory.cpp | 1c643e5e3157ccb0f8b31af1069c381944228f50 | [] | no_license | pawelrosada/PO | 133ab180a5c7a238883498ede20ac5e3dd554066 | 00eca9ce538ac3c41aef4c01de1b56102912309f | refs/heads/master | 2021-01-01T05:44:01.847073 | 2016-04-19T15:09:50 | 2016-04-19T15:09:50 | 56,606,880 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,583 | cpp | processHistory.cpp | #include <iostream>
#include <map>
using namespace std;
#include "process.h"
#include "processManager.h"
#include "processHistory.h"
extern std::string intToStr(int n);
void ProcessHistory::addProcessHistory(unsigned int processID, ProcessState state)
{
std::map<int,string>::iterator it = processesHistory.begin();... |
519a18ecdf8c886b1c3e9249cbb186095a145945 | 7bc99add5ba003f810885a8bde96c5b0f3dc5d0c | /examples/tcp-example/echo-client.cpp | 8ad2e88ee3a873f24c50394e875b6a435accf89c | [
"Apache-2.0"
] | permissive | Dnnd/cpp-tp-advanced | 5b64496d949f87341b47c42e571183ff5cfd23cb | 21bbf539b9c935810300dabb9136098899b5eedf | refs/heads/master | 2022-10-01T17:18:59.569132 | 2020-06-01T19:13:41 | 2020-06-01T19:13:41 | 247,796,585 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 562 | cpp | echo-client.cpp | #include "cli.hpp"
#include "tcp/connection.hpp"
#include <cstdlib>
#include <iostream>
int main(int argc, char **argv) {
Config cfg = parse_cli_opts(argc, argv);
tcp::Connection con{cfg.hostname, cfg.port};
std::string out_buffer;
std::string in_buffer;
while (std::cin) {
std::getline(std::cin, out_buff... |
09b3cbde857cc28c6392c56e361ab4fa81f008d9 | f703bebbc497e6c91b8da9c19d26cbcc98a897fb | /CodeForces.com/regular_rounds/#345/C/b.cpp | 9705df0075326a3f6af64eef171da8c85447205c | [
"MIT"
] | permissive | mstrechen/competitive-programming | 1dc48163fc2960c54099077b7bfc0ed84912d2c2 | ffac439840a71f70580a0ef197e47479e167a0eb | refs/heads/master | 2021-09-22T21:09:24.340863 | 2018-09-16T13:48:51 | 2018-09-16T13:48:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,148 | cpp | b.cpp | #include <cstdio>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cstring>
#include <set>
#include <fstream>
using namespace std;
#define ll long long
#define type int
type min(type a, type b)
{
return (a>b)?b:a;
}
type max(type a, type b)
{
return (a>b)?a... |
e15222c718b48974b5bfcb1479e833ef7b91dda6 | ec98c3ff6cf5638db5c590ea9390a04b674f8f99 | /components/HaplotypeFrequencyComponent/src/HaplotypeFrequencyLogLikelihood.cpp | 07ed6d47fa75b287530691b4fe0e9b3c5a5f0a75 | [
"GPL-1.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0"
] | permissive | gavinband/qctool | 37e1122d61555a39e1ae6504e4ca1c4d75f371e9 | 8d8adb45151c91f953fe4a9af00498073b1132ba | refs/heads/master | 2023-06-22T07:16:36.897058 | 2021-11-13T00:12:26 | 2021-11-13T00:12:26 | 351,933,501 | 6 | 2 | BSL-1.0 | 2023-06-12T14:13:57 | 2021-03-26T23:04:52 | C++ | UTF-8 | C++ | false | false | 5,360 | cpp | HaplotypeFrequencyLogLikelihood.cpp |
// Copyright Gavin Band 2008 - 2012.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <string>
#include <iomanip>
#include <boost/math/distributions/binomial.hpp>
#include <boost/fu... |
629ae775bd42c2f90339e51144dd15d95af10efa | c22b3b90b8979d119640b353ac8725e9d20d3c92 | /VKTS_PKG_Scenegraph/include/vkts/scenegraph/scene/IPhongMaterial.hpp | 6663382ff4f33eb4bde8c0d127c2a478bfe1fd38 | [] | no_license | zomeelee/Vulkan-1 | dff543e264f7b4b5e871ebc128fedf3bf605ec9e | f1112926d5a6242769034dd25cf03698fa11c7b4 | refs/heads/master | 2020-06-19T21:35:37.396104 | 2016-11-26T10:43:21 | 2016-11-26T10:43:21 | 74,829,887 | 1 | 0 | null | 2016-11-26T14:16:57 | 2016-11-26T14:16:56 | null | UTF-8 | C++ | false | false | 3,725 | hpp | IPhongMaterial.hpp | /**
* VKTS - VulKan ToolS.
*
* The MIT License (MIT)
*
* Copyright (c) since 2014 Norbert Nopper
*
* 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, inclu... |
8596ed59c4386b773d33264fb378bcc806642442 | a0f0efaaaf69d6ccdc2a91596db29f04025f122c | /install/robot_control_msgs/include/robot_control_msgs/robot_ctrl_alarmHistory.h | 57cb86e307000acedea7df700f396ef375f56e8f | [] | no_license | chiuhandsome/ros_ws_test-git | 75da2723154c0dadbcec8d7b3b1f3f8b49aa5cd6 | 619909130c23927ccc902faa3ff6d04ae0f0fba9 | refs/heads/master | 2022-12-24T05:45:43.845717 | 2020-09-22T10:12:54 | 2020-09-22T10:12:54 | 297,582,735 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,409 | h | robot_ctrl_alarmHistory.h | // Generated by gencpp from file robot_control_msgs/robot_ctrl_alarmHistory.msg
// DO NOT EDIT!
#ifndef ROBOT_CONTROL_MSGS_MESSAGE_ROBOT_CTRL_ALARMHISTORY_H
#define ROBOT_CONTROL_MSGS_MESSAGE_ROBOT_CTRL_ALARMHISTORY_H
#include <string>
#include <vector>
#include <map>
#include <ros/types.h>
#include <ros/serializa... |
60645b19cf1f95436684e19da2e0f733aac93afc | 5cec8b239e562374c9e70b0e9b2a41b0cee79d02 | /Practica 3/Ejer9.cpp | b912215e8204f31d4a7b43f529e7068a5117aab4 | [] | no_license | garyDav/SIS100 | 0731797f46a14f8800e6b092c6e289f2a073f927 | e8b8332390a17750b7dc87e79f4c4a8b3459cda2 | refs/heads/master | 2020-03-19T14:58:37.706097 | 2018-10-23T14:52:34 | 2018-10-23T14:52:34 | 136,649,950 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 267 | cpp | Ejer9.cpp | #include <iostream>
using namespace std;
int main() {
long int lim_inf = 6, lim_sup = 13, fac = 1;
for (long int i=lim_inf;i<=lim_sup;i++) {
for (long int j=2;j<=i;j++) {
fac *= j;
}
cout<<i<<"! = "<<fac<<endl;
fac = 1;
}
return 0;
}
|
bd405c8dcf8301eb8445f3dee9c1f2c1cff3de44 | a48472ece08835eb158a5ebee3d79bfc4f3d1319 | /src/square_empty.cpp | a8d55f60b73ed8ac50816f6f6300f96462827e8b | [] | no_license | Ball-Man/GOP | a8b8a7ebfe55a6b9e073a799120afa07c404e35a | 5ecb10f058db4d2c8037f1bbe75745342fe1443a | refs/heads/master | 2021-05-03T21:12:44.267204 | 2018-03-21T14:11:29 | 2018-03-21T14:11:29 | 120,378,616 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 250 | cpp | square_empty.cpp | #include "square_empty.h"
#include "screen.h"
/// *** PUBLIC *** ///
SquareEmpty::SquareEmpty(const String& text) : Square(text) { }
// A nothing-card does nothing, logical(?)
void SquareEmpty::Do(Gameboard& gameboard) const
{
screen::Wait();
} |
d76f0e65188d2f1fbac68bdc8c148c90a6c5b561 | 6b09fdc05a6c6c756d6525b5bfe12aa2110f2922 | /STUB/STRUCTURE/configStruct.hpp | d9825553a3187a63389ff6e3b4049619aaf67cd5 | [] | no_license | roysuman/DatabaseStub | fcf3d4b405f272de521cd016946f133ca3817dfe | c7e07ffe2bdb2fd001d6498398a8918798996030 | refs/heads/master | 2021-01-18T23:00:38.368321 | 2016-05-12T05:38:31 | 2016-05-12T05:38:31 | 25,222,657 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 929 | hpp | configStruct.hpp | /*
* =====================================================================================
*
* Filename: configStruct.hpp
*
* Description: this file maintains all structures required to handle JSON configuration fiel of TCP stub
*
* Version: 1.0
* Created: Monday 03 March 2014 03:57:0... |
fdd3ebe432c2225b1a9c9589fcd35047e0996a17 | 944ff8d4d0c9ddccdad06bafd9a82c65cb885883 | /DXFramework/DXFramework.cpp | 7130834dcc6c3d6faa3960e5b640d17c6a13fc42 | [] | no_license | zww0815/TinyUI | 42076206bef37eb22a076d71a06572d9facb932b | 1368f5cd2f7278413201ad2e2f5b7a7c693fcddc | refs/heads/master | 2020-06-18T06:34:20.152519 | 2016-11-29T15:07:32 | 2016-11-29T15:07:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,119 | cpp | DXFramework.cpp | #include "stdafx.h"
#include "DXFramework.h"
#include "Control/TinyControl.h"
namespace DXFramework
{
typedef HANDLE(WINAPI *CREATEREMOTETHREAD)(HANDLE, LPSECURITY_ATTRIBUTES, SIZE_T, LPTHREAD_START_ROUTINE, LPVOID, DWORD, LPDWORD);
typedef BOOL(WINAPI *WRITEPROCESSMEMORY)(HANDLE, LPVOID, LPCVOID, SIZE_T, SIZE... |
fc3c2eb9ec77743ed21f2968b454030a9018865e | 5df6820e5a79c5f0965a5aee85e32b4b7ade0e01 | /Libnorsim_helpers.cpp | 503fd24a62e4b18412ef57cf9b35caabbae40056 | [] | no_license | obeny/libnorsim | e8b764f61185ae885171fd0aaee61b2ee8ade5e6 | e7222e0e098c49db45be0e6df8a6c096392fb072 | refs/heads/master | 2020-12-04T01:43:11.482566 | 2016-10-12T15:00:40 | 2016-10-12T15:00:40 | 67,953,718 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 201 | cpp | Libnorsim_helpers.cpp | unsigned long get_min(unsigned long g, unsigned long p)
{
unsigned long t = (0 != p);
return ((t<=g)?(t):(g));
}
unsigned long get_max(unsigned long g, unsigned long p)
{
return ((p>g)?(p):(g));
}
|
ee049abb8cc5c5bc8fd8865781af8901d97085dd | 1c582ee9eb4fd2afb7b86d8a2b7bffb43ed1aaf3 | /src/Dataset.cpp | 6c8c918572c39675dc17de72b79efbc9031d42c1 | [] | no_license | hunterluok/my_deeplearning | 28229faf17cddae09418dea5d40151768da26862 | df912862f382610b147a6da6f5182111aadf6061 | refs/heads/master | 2020-03-11T12:16:48.104211 | 2017-07-04T09:14:04 | 2017-07-04T09:14:04 | 129,993,012 | 1 | 0 | null | 2018-04-18T02:37:20 | 2018-04-18T02:37:19 | null | UTF-8 | C++ | false | false | 10,413 | cpp | Dataset.cpp | #include "Dataset.h"
#include <iostream>
#include <cstring>
#include <cstdlib>
using namespace std;
Dataset::Dataset(){
numFeature =0;
numLabel=0;
numTrain=0;
numValid=0;
trainData=validData=trainLabel=validLabel=NULL;
}
void Dataset::dumpTrainData(const char * savefile){
dumpData(savefile, numTrain, trainData,... |
06c68c12a276a296edc65452c5913588a0085b22 | 95eca09328bf7f3c787f9003ce679476eddf7481 | /chapter10/stock00/stock00/stock00.cpp | b613800642ce608195a03efce171e5f73a87e2ef | [] | no_license | lankuohsing/Cpp-Primer-Plus-6 | 2a47d1c58344564c4b3de7a460057f2e661d9f9d | dcf7c66ccac3e4bdebd3f415a2c1eb852e16e976 | refs/heads/master | 2021-01-12T17:50:49.848548 | 2017-12-20T06:51:16 | 2017-12-20T06:51:16 | 71,342,128 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 1,245 | cpp | stock00.cpp | //stock00.coo -- implementing the Stock class
//version 00
#include <iostream>
#include "stock00.h"
using namespace std;
void Stock::acquire ( const std::string & co, long n, double pr )
{
company = co;
if ( n < 0 )
{
cout << "Number of shares can't be negative;"
<< company << " shares set to 0.\n";
shares = ... |
40cbc84df2d555a65095208b83d63289495c425b | 658fa667a52532fbbe624dc42e1b37cbecd415be | /source/controllers/RenderResponseAppMngm.cpp | 5b1819eb78d906d7e51adaaa7eadcb06611d3699 | [] | no_license | kungyin/tf_cgi | 2196f50963c6849387fb3aa7b3e49e4b594dd619 | 0851a73fcaba03d121c72cb3db72ee7d7e6d5a3f | refs/heads/master | 2016-09-16T23:55:48.148318 | 2015-08-27T06:05:27 | 2015-08-27T06:05:27 | 52,253,268 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 84,197 | cpp | RenderResponseAppMngm.cpp | #include "RenderResponseAppMngm.h"
#include "http_ftp_download.h"
#include "Databaseobject.h"
#include <QDateTime>
#include <QDir>
#include <QFileInfo>
RenderResponseAppMngm::RenderResponseAppMngm(THttpRequest &req, CGI_COMMAND cmd)
{
m_cmd = cmd;
m_pReq = &req;
}
RenderResponseAppMngm::~RenderResponseAppMn... |
1d023058a247ca51e1510c78c1f7b6dce0553b97 | 0d653408de7c08f1bef4dfba5c43431897097a4a | /cmajor/sngxml/serialization/XmlSerializationContext.hpp | 14d610724cf86d72969fc4da7d34d67db2c66243 | [] | no_license | slaakko/cmajorm | 948268634b8dd3e00f86a5b5415bee894867b17c | 1f123fc367d14d3ef793eefab56ad98849ee0f25 | refs/heads/master | 2023-08-31T14:05:46.897333 | 2023-08-11T11:40:44 | 2023-08-11T11:40:44 | 166,633,055 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,416 | hpp | XmlSerializationContext.hpp | // =================================
// Copyright (c) 2022 Seppo Laakko
// Distributed under the MIT license
// =================================
#ifndef SNGXML_XML_XML_SERIALIZATION_CONTEXT_INCLUDED
#define SNGXML_XML_XML_SERIALIZATION_CONTEXT_INCLUDED
#include <sngxml/serialization/XmlSerApi.hpp>
namespace sngxml {... |
5e939a3cb4d638f35cc877e2c7362fe3b39af203 | 227098e691187ca1cd1a1a5bfeed5ab89d0f485d | /teams.cpp | 1f3cb0b630c66c429446adf088ca98b65ab812e0 | [] | no_license | lucassf/Garde | e5b6caf4c1f1b636b61a5a171b529fa40a147bf2 | a01703960e6a8ceb66be2046eba38e7bca4bde39 | refs/heads/master | 2021-07-17T10:36:06.910732 | 2017-10-24T15:27:32 | 2017-10-24T15:27:32 | 108,146,645 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,599 | cpp | teams.cpp | #include <bits/stdc++.h>
using namespace std;
typedef pair<double,double> dd;
struct team{
int points, goal_balance, pro_goals;
int id;
string name;
team(){}
team(string _name,int _points,int _goal_balance,int _pro_goals, int _id){
name = _name;
points = _points, goal_b... |
8b057955fb5238fece6a13b2f0e21efedeea7afb | 5c40da8a9b686b75276324395ca910dc0addc6ff | /dm9375/BigInteger.cpp | 530935d57f514cf65338342735713580137b7dde | [] | no_license | S1ckick/dm9375 | e6d1fe5fbc7aa848dc84f42929b0ad86a96229ab | ae8092e650398123ad62ea0f2447d31ca4db50bb | refs/heads/master | 2022-07-09T16:25:40.164960 | 2020-05-13T07:48:50 | 2020-05-13T07:48:50 | 257,342,019 | 0 | 0 | null | 2020-05-13T06:05:21 | 2020-04-20T16:34:21 | C++ | UTF-8 | C++ | false | false | 9,158 | cpp | BigInteger.cpp | #include "header.h"
BigInteger::BigInteger()
{
sign = plus_sign;
number = BigNatural();
}
BigInteger::~BigInteger()
{
}
BigInteger &BigInteger::operator=(BigInteger const &BigInt)
{
sign = BigInt.sign;
number = BigNatural(BigInt.number);
return *this;
}
BigInteger::BigInteger(int number)
{
i... |
492ec9fd84a0df8ff21498fbed17d9d8175c2e3e | a82dfb61b17fa66b9c75fe871401cff77aa77f56 | /utils/data_model_to_pymcell/generator_utils.cpp | fd3d7120177c8bc9ff13b3c05bc80a5292167612 | [
"MIT"
] | permissive | mcellteam/mcell | 49ca84048a091de8933adccc083d31b7bcb1529e | 3920aec22c55013b78f7d6483b81f70a0d564d22 | refs/heads/master | 2022-12-23T15:01:51.931150 | 2021-09-29T16:49:14 | 2021-09-29T16:49:14 | 10,253,341 | 29 | 12 | NOASSERTION | 2021-07-08T01:56:40 | 2013-05-23T20:59:54 | C++ | UTF-8 | C++ | false | false | 18,740 | cpp | generator_utils.cpp | /******************************************************************************
*
* Copyright (C) 2020 by
* The Salk Institute for Biological Studies
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*
***********... |
1ae3757a05e884a7847b44fcab88556139e318fb | e117951c2aaf2703f213317e2760c6684222872d | /Assignments/Text-Protocol/src/Message.h | c5bbbe8be723c963bd60737fdfa296676fa5d979 | [
"MIT"
] | permissive | prince-chrismc/Data-Communication | f3fe052b1864a24bd450d5a1e50288b81758adb1 | 04df3591ac726c1f330788b6b24cdb15309b5461 | refs/heads/master | 2021-07-11T22:10:42.921347 | 2019-02-11T04:10:39 | 2019-02-11T04:10:39 | 147,980,393 | 0 | 0 | MIT | 2018-11-16T15:34:14 | 2018-09-09T00:32:11 | C++ | UTF-8 | C++ | false | false | 3,316 | h | Message.h | /*
MIT License
Copyright (c) 2018 Chris McArthur, prince.chrismc(at)gmail(dot)com
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 ... |
9e3c60d06b71711ed182e9c1e0b5903cc8ea63b0 | 90d39aa2f36783b89a17e0687980b1139b6c71ce | /Codechef/aug12long/BLOCKING.cpp | f750c4d59c5548f87c13667729d7ab4f2b88ba70 | [] | no_license | nims11/coding | 634983b21ad98694ef9badf56ec8dfc950f33539 | 390d64aff1f0149e740629c64e1d00cd5fb59042 | refs/heads/master | 2021-03-22T08:15:29.770903 | 2018-05-28T23:27:37 | 2018-05-28T23:27:37 | 247,346,971 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,486 | cpp | BLOCKING.cpp | /*
Nimesh Ghelani (nims11)
*/
#include<iostream>
#include<cstdio>
#include<algorithm>
#include<map>
#include<string>
#include<vector>
#define in_T int t;for(scanf("%d",&t);t--;)
#define in_I(a) scanf("%d",&a)
#define in_F(a) scanf("%lf",&a)
#define in_L(a) scanf("%lld",&a)
#define in_S(a) scanf("%s",&a)
#define new... |
c999d75b05fb2c3319ee53b2ff2b9b0b246daa7c | 3278711458bdc044d263b7c58655a8e4164a9e48 | /vault13/volume/src/volume.h | 54e59876247f9022fbb2b6b165157705f2c4bcce | [] | no_license | z80/prototyping | 964b96e32623336d20c3b87e34f38e0f32956dd9 | b95a6b4a1350b527886180fd854310eed395fca2 | refs/heads/master | 2020-04-07T03:26:58.947548 | 2019-07-02T15:23:37 | 2019-07-02T15:23:37 | 158,016,718 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 506 | h | volume.h |
#ifndef __VOLUME_H_
#define __VOLUME_H_
#include "Ogre.h"
#include "OgreApplicationContext.h"
#include "OgreVolumeChunk.h"
#include "OgreVolumeCSGSource.h"
#include "OgreVolumeCacheSource.h"
#include "OgreVolumeTextureSource.h"
using namespace Ogre;
using namespace Volume;
class Volume2
{
public:
Volume2( Scene... |
f441356770ef0ffab2390313171b4371f4eebbd6 | cc7661edca4d5fb2fc226bd6605a533f50a2fb63 | /Assembly-CSharp/PhysicsEffects.h | 31db279bdae37622d712ef31b19201ca7c2e33e0 | [
"MIT"
] | permissive | g91/Rust-C-SDK | 698e5b573285d5793250099b59f5453c3c4599eb | d1cce1133191263cba5583c43a8d42d8d65c21b0 | refs/heads/master | 2020-03-27T05:49:01.747456 | 2017-08-23T09:07:35 | 2017-08-23T09:07:35 | 146,053,940 | 1 | 0 | null | 2018-08-25T01:13:44 | 2018-08-25T01:13:44 | null | UTF-8 | C++ | false | false | 801 | h | PhysicsEffects.h | #pragma once
#include "BaseEntity.h"
#include "SoundDefinition.h"
namespace rust
{
class PhysicsEffects : public MonoBehaviour // 0x18
{
public:
BaseEntity* entity; // 0x18 (size: 0x8, flags: 0x6, type: 0x12)
SoundDefinition* physImpactSoundDef; // 0x20 (size: 0x8, flags: 0x6, type: 0x12)
float minTimeBetwe... |
1d821fefaeb02ad11a89937fa1026b821b022b5c | a29da28e699887f1d7fc3d61e75982aee71e1c93 | /process_generator.cc | 5692d34e5bbb6cca3bbf9168bdba965be982c996 | [] | no_license | guybrush2105/schedulersimulator | 74e081115079f1fb3de3e6fb91f27c2e7c062398 | 3be1de3aa3a52f48b4ed18fcc2cdd3a59b394576 | refs/heads/master | 2022-03-22T10:05:56.911500 | 2019-11-21T17:14:55 | 2019-11-21T17:14:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,340 | cc | process_generator.cc | #include <sys/msg.h>
#include <unistd.h>
#include "task_struct.hh"
#include "queue.hh"
#include "mem.hh"
/*!
* \file process_generator.cc
*/
//! Funzione definita in sem.cc
void down(int sem_id, int n_sem = 0);
//! Funzione definita in sem.cc
void up(int sem_id, int n_sem = 0);
//! Funzione definita in execute.c... |
0389ace93a51b3ee9cfbde1bb48c18236d3d4024 | e1da11e5a4f12c98e92b4c87fcb0c65dcf8942d9 | /KinectOpenCV/Mesh.h | 73f9d012e8a4ee862490447b772984d8ad24edd4 | [] | no_license | WPI-ARC/cloth_tracking | 70e8b5b420d68361023a56f43b1bd7ba57f6f579 | 973fcbc4a12a40dbb364ea8adbfc5fcd150bfeda | refs/heads/master | 2016-08-12T09:54:54.054235 | 2016-02-11T00:39:41 | 2016-02-11T00:39:41 | 49,797,236 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,945 | h | Mesh.h | /**
* Author Michael McConnell
* Date: 10/9/2015
* SDK's: OpenCV 3.0
*
* This class represents a surface interpolation. The points are ordered from top left to bottom right row wise.
*/
#pragma once
#ifndef MESH_H
#define MESH_H
#include "stdafx.h"
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp... |
da17a73bdf755db7c2e99f97c71d4ed85211eddf | 038e3bed7eef1fae2d4d19b25f9f378b4fc091ed | /lab14_1.cpp | 8c4317fe0733996081fce724b4f1855c3badabe1 | [] | no_license | ChayanonPitak/lab14 | 08c6324d9b572bc1369419c4bc907912b03c4a25 | 8f77bed4066d0f07440886c20e1c540e4d4f8f28 | refs/heads/master | 2023-02-25T23:12:33.182652 | 2021-02-02T09:07:30 | 2021-02-02T09:07:30 | 335,208,531 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 597 | cpp | lab14_1.cpp | #include <iostream>
using namespace std;
int a = 5;
char b = 'A';
char &c = b;
int *x = &a;
char *y = &b;
int **z = &x;
void ShowVar()
{
cout << a << " ";
cout << b << " ";
cout << c << " ";
cout << x << " ";
cout << (void *) y << " ";
cout << z << endl;
return;
}
void ShowAddress()
{
cout << &a << " ";
cout ... |
3e6ae75d047780778ee1dff6e0840a14737a7476 | c675d42a6261ecfc09198c20a9a2e60d90e19f47 | /Arduino Basics and Kinematics/Reference/Robot Documentation/BOE Bot/Shield-Bot-Code-2013-12-01/RoboticsBOEShield_Ch4_20120310/ControlWithCharacters/ControlWithCharacters.ino | 4620716752590b74453e08b60a399c9dabb83a37 | [] | no_license | ryanhjohnston1204/Arduino-SLAM | 0e13a7c2512a8a1f7bf1f7b29bcce1f2a5f9f138 | 77065e75473583ccb0ee43977980592001f52a08 | refs/heads/master | 2022-12-01T13:18:42.592943 | 2020-08-16T03:44:04 | 2020-08-16T03:44:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,185 | ino | ControlWithCharacters.ino | // Robotics with the BOE Shield – ControlWithCharacters
// Move forward, left, right, then backward for testing and tuning.
#include <Servo.h> // Include servo library
char maneuvers[] = "fffffffffflllrrrbbbbbbbbbbs";
Servo servoLeft; // Declare left and right s... |
b1d28afb48dd1154a6da78e9832fcc5f0da2d8ec | fd862ecd66cc69f9d6e115130cbb29b6a7c1269e | /ztechallenge2020/utilities.cpp | 95894c6dd9836503ea6bde1ca0fffb85216b5c99 | [] | no_license | lyandut/ztechallenge2020 | cfd0062f5a3d59ad5f1999a547fe0a5edd5b3ac3 | 59bac826c4160b1a9b466190b18a8a28daf411b2 | refs/heads/master | 2022-07-05T15:17:59.381420 | 2020-05-10T19:57:01 | 2020-05-10T19:57:01 | 262,865,193 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 461 | cpp | utilities.cpp | #include "utilities.h"
void split(const string& s, vector<string>& tokens, const string& delimiters) {
tokens.clear();
string::size_type lastPos = s.find_first_not_of(delimiters, 0);
string::size_type pos = s.find_first_of(delimiters, lastPos);
while (string::npos != pos || string::npos != lastPos) {
tokens.push... |
60926ab69f24be22c2e93831a59d96d7c664b99b | b751d78debdc9ad12b880b15fa5db2834c68dd7f | /source/screens/Screen_TimerRecharge.h | beb6e4c89f35664dd3caf98f6fa4dec9a5079860 | [
"MIT"
] | permissive | rbultman/tv-timer | a341e81a2c6f6fe83a0eee4b0923a297945a3294 | 29b0fc9f9d96fc8b1c294d21a51505a1fd2ed9ff | refs/heads/main | 2023-03-11T19:28:43.920502 | 2021-03-01T11:06:47 | 2021-03-01T11:06:47 | 323,670,046 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 768 | h | Screen_TimerRecharge.h | /*
Screen_TimerRecharge.h
A screen that shows the time, date, and a recharge counter.
Author: Rob Bultman
License: MIT
*/
#ifndef SCREEN_TIMER_RECHARGE_H
#define SCREEN_TIMER_RECHARGE_H
#include "lvgl.h"
#include "screen_class.h"
#include "ds3231.h"
class Screen_TimerRecharge : public ScreenClass
{... |
25021064fcafe0bfea361d6d306598fd36b8bce6 | cfe790e3fdef80c64e208327929d923cf235a5f0 | /LAB3.cpp | 2810b0c84647a11c1056eb97cd96edd11be7814a | [] | no_license | IvanVlichko824/GameTheory | 4d5976aed55f209c98068c3144d3f92daa5a9f57 | eaf832e81ce376796c6a0ef65517b38d8d2d50e1 | refs/heads/master | 2023-05-07T00:08:41.034920 | 2021-05-23T13:39:46 | 2021-05-23T13:39:46 | 293,121,496 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 16,643 | cpp | LAB3.cpp | #include <iostream>
#include <ctime>
#include <cmath>
#include <vector>
#include <iomanip>
using namespace std;
//Функция транспонирования матрицы
template <typename T> void TransponMtx(T** matr, T** tMatr, int n) {
for (int i = 0; i < n; i++)
for (int j = 0; j < n; j++)
tMatr[j][i] = matr[i][j];
}... |
ee2df59b545ffa1e7264c6d87bce7fc378085cd0 | 0272bb2b79089db5e47b0332bc75a95b96e8ea00 | /robosherlock/src/queryanswering/src/RosPrologInterface.cpp | ab57cd2a25995a34d6db01cc92fac1214abe4741 | [] | no_license | RoboSherlock/robosherlock | 701bc6cd84e2195e7c157b69e031e4efe63f1d72 | 05f267924175802e7a42008a1125b2e4c7d49c6d | refs/heads/master | 2022-06-16T08:28:42.169944 | 2021-09-23T13:39:02 | 2021-09-23T13:39:02 | 44,106,043 | 28 | 42 | null | 2022-03-21T10:52:35 | 2015-10-12T12:29:16 | C++ | UTF-8 | C++ | false | false | 10,715 | cpp | RosPrologInterface.cpp | #include <robosherlock/queryanswering/RosPrologInterface.h>
#ifdef WITH_ROS_PROLOG
namespace rs
{
RosPrologInterface::RosPrologInterface()
{
outInfo("Creating ROS Service client for rosprolog");
}
bool RosPrologInterface::assertValueForKey(const std::string& key, const std::string& value)
{
std::stringstream ass... |
582ebe7ffb1d930aeb1bc9dff12b1110c55f24a8 | f9185f58ac3d826bad491b7c6a943c65618f48e9 | /New folder/characterArray.cpp | 663d6bf8696fa6cce693de8f3a606d716019eed4 | [] | no_license | ashwani471/c-_opps | 315e4accef5309c15af04b0fb882a97a83c7c263 | 53dd065a2391c2c92864db5901362e5f030dd054 | refs/heads/master | 2023-08-23T11:20:07.859248 | 2021-10-18T10:10:19 | 2021-10-18T10:10:19 | 401,703,269 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 436 | cpp | characterArray.cpp | #include<iostream>
using namespace std;
int main(){
// char ch[100];
// cin>>ch;
// cout<<ch;
//check palindrome
int n;
cin>>n;
char arr[n+1];
cin>>arr;
bool check=true;
for(int i=0;i<n;i++){
if(arr[i]!=arr[n-1-i]){
check =false;
break;
}
... |
2ce11f88ddc68d3a1ce7b71617624b928a8b93bd | 1490797b49fbadcdc17d6ebf4463535e3aee55f4 | /RS08_V4/src/FlashProgramming.cpp | 7487f350da6d51c4b6acffcc8616e058018b3bfe | [] | no_license | qiaozhou/usbdm-applications | 23347aa7a0aa101ac4cd30d88d4ce59f30de5c41 | 596a2a217f2ccc156890aa60540ec4423532e302 | refs/heads/master | 2020-05-20T09:46:38.162826 | 2012-08-20T00:20:02 | 2012-08-20T00:20:02 | 5,520,103 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 67,219 | cpp | FlashProgramming.cpp | /*! \file
\brief Utility Routines for programming RS08 Flash
FlashProgramming.cpp
\verbatim
Copyright (C) 2008 Peter O'Donoghue
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation;... |
da7207240c6661a33d6bd5d6f6ef3e9a9d6a72ac | fb69a4b90e3e1fd34860ecb360573d4fcf56150b | /include/HarmonicConstantsModule/Model_View/harmonicconstantfrequencytabledelegate.cpp | 3ff5c9d4aba325e07128826d892a3fed322f7b32 | [] | no_license | ryera89/TideAnalisisPredictionSystem | 40da629937ab9dbd7353e05f531ea0aa242e5736 | 2223446e9b48e741e5072664bbcc539f6953774f | refs/heads/master | 2023-07-08T06:57:22.105956 | 2021-08-07T20:58:43 | 2021-08-07T20:58:43 | 393,788,977 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,337 | cpp | harmonicconstantfrequencytabledelegate.cpp | #include "harmonicconstantfrequencytabledelegate.h"
#include <QDoubleSpinBox>
#include <QLineEdit>
#include <QPainter>
void HarmonicConstantFrequencyTableDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
{
if (index.column() == nameColumn){
QString name ... |
673564c75d7b61ec44b2ff1f97547bc712e76497 | 9d3b40ce69eb15ff8f70ca001bdc08d0fb609a75 | /integrationtest/src/TupleFeeder.cpp | 80c55386147834a9a08026ea60323a0a942e2875 | [
"Apache-2.0"
] | permissive | ClockworkOrigins/m2etis | bf6adbbb8f8718b1183ff4827d87c4002c479efe | 3b9c0f98c172f48889e75fe0b80a61a0e47670f5 | refs/heads/master | 2020-05-22T05:43:45.101808 | 2016-01-24T23:52:51 | 2016-01-24T23:52:51 | 50,309,673 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,964 | cpp | TupleFeeder.cpp | /*
Copyright (2016) Michael Baer, Daniel Bonrath, 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 applicabl... |
09671806454a039a286a663d14556abe40ee9aae | 45e5f37eff4a4cc3ab092194b24f654b137094d0 | /小易的升级之路.cpp | 45e16c15b990ae0bf860a4b63a5f87ee7447f4fc | [] | no_license | LJComeo/1130 | ee0a60061dc1fb03c5ca654ea739ea2572350f3f | 95b4794a609e82364e1599bdf1f839083071a14b | refs/heads/master | 2020-09-22T01:25:27.059726 | 2019-12-01T06:14:57 | 2019-12-01T06:14:57 | 225,002,484 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 455 | cpp | 小易的升级之路.cpp | #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstdio>
using namespace std;
int MaxNum(int m, int n)
{
int tmp;
while (n)
{
tmp = n;
n = m % n;
m = tmp;
}
return m;
}
int main1()
{
int n,m;
while (scanf("%d%d", &n, &m) != EOF)
{
int num = 0;
for (int i = 0; i < n; ++i)
{
scanf("%... |
ed57d1b8c04ffd3446b4e403ecfdcf69092469c9 | 3282ccae547452b96c4409e6b5a447f34b8fdf64 | /SimModel_Python_API/simmodel_swig/SimModel/framework/SimFlowEnergyTransfer_HeatExAirToAir_SensibleAndLatent.hxx | 2d20625fd48682f82f8696d0db52cd391c2b3b7f | [
"MIT"
] | permissive | EnEff-BIM/EnEffBIM-Framework | c8bde8178bb9ed7d5e3e5cdf6d469a009bcb52de | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | refs/heads/master | 2021-01-18T00:16:06.546875 | 2017-04-18T08:03:40 | 2017-04-18T08:03:40 | 28,960,534 | 3 | 0 | null | 2017-04-18T08:03:40 | 2015-01-08T10:19:18 | C++ | UTF-8 | C++ | false | false | 32,946 | hxx | SimFlowEnergyTransfer_HeatExAirToAir_SensibleAndLatent.hxx | // Copyright (c) 2005-2014 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Fre... |
10d3a95473f6b1d529953685dee1ef94a195c8f8 | 86d79021da256ddbc947bb8bf775289c5f398923 | /ui_WPosicionarDos.h | 40465d07633eea0be4406b40fb44fc3e40b217d9 | [] | no_license | Edgar1us/SnakeQT | 825c8bc6926c0f8748f65d9a49603d582e00f007 | 8e7e16e3569d7de340cd3b70eba2ca18c62a5d99 | refs/heads/master | 2023-05-23T22:43:02.932245 | 2021-06-15T10:51:02 | 2021-06-15T10:51:02 | 350,343,710 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,322 | h | ui_WPosicionarDos.h | /********************************************************************************
** Form generated from reading UI file 'WPosicionarDos.ui'
**
** Created by: Qt User Interface Compiler version 5.9.5
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
************************************... |
85222b78d8ebb08a6cf3b703de3c1a796894d728 | eca634ce6477e5680987dfc6536f6fdd93c58db6 | /DeferredClient/DetailsManager.cpp | 0e973242a1504f33d1ff8c18c4763fde3ce9355d | [] | no_license | tectronics/surface-physics | ba2ed585406f9e9955aeabc6d343cedeb41c2f61 | f5f2af539aee7483ae28f4edec4b7b62edfa2d61 | refs/heads/master | 2018-01-11T15:03:08.166454 | 2014-10-02T19:44:33 | 2014-10-02T19:44:33 | 45,230,360 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 54,679 | cpp | DetailsManager.cpp | #include "TerrainManager.h"
DetailsManager::DetailsManager( TerrainManager *_term, PlanetaryConfig *_CFG ) {
term = _term;
CFG = _CFG;
GS_Average = GS_High = GS_City = NULL;
PS_Average = PS_High = PS_City = NULL;
aTextures_AverageHigh = NULL;
VB_AverageHigh = NULL;
}
DetailsManager::~DetailsMana... |
596f355d4ad3bd6872aeaf3d60dcfdd00037b812 | c9b51989bc5db196a3590b840f60d0c2aa16c999 | /lab1/rle/rle/rle.cpp | 1a2321a3fc2def24d37974d24ad1f18ca708c2b7 | [] | no_license | artyRay12/OOP | 0d6a7e573c8aee2aae19fd62d78f186ae8b5856b | 3100ef5c2b54467a554f78641876b498eeea1b6f | refs/heads/master | 2021-01-08T02:31:16.936680 | 2020-08-20T17:41:07 | 2020-08-20T17:41:07 | 241,879,747 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,057 | cpp | rle.cpp | #include <iostream>
#include <fstream>
#include <optional>
#include <string>
#include <vector>
#include <sstream>
#include <map>
#include <iterator>
#include <iomanip>
#include <bitset>
using namespace std;
struct Args
{
string inputFileName;
string outputFileName;
};
optional<Args> ParseArgs(int argc, char* argv... |
fb4498fd17a098b233e1a4aaefca6502a1ec6be7 | b665ef5258bfc2cedc382300b9bfb95ffb1b15b2 | /source/Koopa.cpp | d4751d3b807aa04ad9f101baa8146b3b07b828cc | [] | no_license | aminb7/SuperMario | 423f401d0d98e56affc778c18f2d36b5772834b6 | ddd2b2ba56937d4373d1975da3136f422f48e9af | refs/heads/master | 2022-12-04T01:25:18.629819 | 2020-08-29T10:29:14 | 2020-08-29T10:29:14 | 291,249,053 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,627 | cpp | Koopa.cpp | #include "Koopa.hpp"
Koopa::Koopa(Point _position ) :position(_position){}
Point Koopa::getPosition(){
return position;
}
void Koopa::setDirection(string _direction){
direction = _direction;
}
void Koopa::setSituation(string _situation){
situation = _situation;
}
void Koopa::setFallingVelocity(int velocity)... |
9463ab1e2e38160e9fca4fd9014776aac1b15191 | 863b62b6ca534479773c1bc2051f875e0120e259 | /Unreal/CarlaUE4/Plugins/Carla/Source/Carla/FBXImport/MapProcessCommandlet.h | a94c05418855842a54f3da9fe42d0cb2ae14332e | [
"MIT",
"CC-BY-4.0"
] | permissive | fredxu93/carla | c295b375bc11c4961e08abd32f1548a1499c1d05 | 9183ef91960c2d8b66dde58c7e1081678b2066d8 | refs/heads/master | 2020-06-11T03:50:07.978434 | 2019-06-25T13:14:14 | 2019-06-25T14:08:57 | 193,842,795 | 1 | 0 | MIT | 2019-06-26T06:27:14 | 2019-06-26T06:27:14 | null | UTF-8 | C++ | false | false | 3,907 | h | MapProcessCommandlet.h | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Commandlets/Commandlet.h"
#include <Engine/World.h>
#include <UObject/Package.h>
#include <Misc/PackageName.h>
#include "CoreMinimal.h"
#include <Runtime/Engine/Classes/Engine/ObjectLibrary.h>
#include "Carla/OpenDrive/OpenDriveActor.h... |
c6395a5bc3ebf1eba5e9850c07ba698e5547a933 | 3b11cdd45dbe774bbb749975fd2d5fedbff6b1e3 | /src/Network.h | 3dcfe59f5612172eafb6a60e5f357f38626acfbb | [] | no_license | MartinUbl/kiv-psi-vtpgui | 91bceab7cf6b50501c1b70cea3e1f1cb4e77cb26 | c2d052413c3a2574a50de33da68c76abb86b232a | refs/heads/master | 2021-01-20T14:29:19.943425 | 2017-05-09T10:41:33 | 2017-05-09T10:41:51 | 90,618,419 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,674 | h | Network.h | /********************************
* KIV/PSI: VTP node *
* Semestral work *
* *
* Author: Martin UBL *
* A16N0026P *
* ublm@students.zcu.cz *
********************************/
#ifndef NETWORK_H
#define NETWORK_H
... |
2c0a9bc84b6fe1d50fa8077b999f2abbdaa80e68 | fb07649e1d33962aaf631ef1c4024314f8bfd4a9 | /THOR__chassis.cpp | 60f5f2040cd9d077f47252332a8592a80488b32a | [] | no_license | krylenko/embedded | 653923fe51ccc25e7ff7c6f085c3d5c689ca4188 | 518d1261c55801dd0e2ac9bc0551addd63550ecb | refs/heads/master | 2016-09-05T20:58:32.263316 | 2015-05-13T17:52:58 | 2015-05-13T17:52:58 | 34,310,661 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,480 | cpp | THOR__chassis.cpp | // (c) daniel ford, daniel.jb.ford@gmail.com
// chassis node
// communicates with PIC18F4580 to get and update state of chassis (motors, gripper, LEDs, etc.)
#include "ros/ros.h"
#include "chassis.h"
int main(int argc, char **argv)
{
// init chassis object
Chassis thor;
thor.init(); // initialize state va... |
48271e4b1411eb46b15c4e0c13e15fe5c0774c3c | 9c97b447f9294671b3c9b28fc67b6cbc0724a668 | /subversion/bindings/javahl/native/jniwrapper/jni_string_map.cpp | 2fb9a8439cfa8adb808099c892ebc2ef62b08626 | [
"LicenseRef-scancode-unicode",
"HPND-Markus-Kuhn",
"BSD-3-Clause",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-permissive",
"X11"
] | permissive | ezdev128/svn | 1d69fa158a417ac868fc0700750e58fdd6d032d7 | a5bdbda4d6ab2bd4e7ae87a86e4967e33968aa38 | refs/heads/master | 2021-01-10T20:39:57.918993 | 2015-01-30T10:44:16 | 2015-01-30T10:44:16 | 30,067,743 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,191 | cpp | jni_string_map.cpp | /**
* @copyright
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. ... |
f22184bfbcbd6c5a6fc509844eed9fe95ff56659 | 7b86ed0a2dd5f920608c799a7378bce40e620218 | /Amicable/Platform_GCC_Linux.h | d89fe84dc313130f314d2e4926652f4f9d8dd8a3 | [] | no_license | justinas2/Amicable | f1a1aa1d8b2499d6269f99e8d8f8db8364915d15 | d4efb90faf64a6b18bb29a44d33c9f94f96d39fb | refs/heads/master | 2020-03-31T08:36:15.929040 | 2018-01-06T16:02:58 | 2018-01-06T16:02:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,000 | h | Platform_GCC_Linux.h | #pragma once
#ifndef NOINLINE
#define NOINLINE __attribute__ ((noinline))
#endif
#ifdef FORCEINLINE
#undef FORCEINLINE
#endif
#define FORCEINLINE __attribute__((always_inline)) inline
#define CACHE_ALIGNED __attribute__((aligned(64)))
#define THREAD_LOCAL thread_local
template <typename T, number N> char(*ArraySi... |
9d84e7ea23a7a2d7e7cd3783218315549876969f | f0bd42c8ae869dee511f6d41b1bc255cb32887d5 | /Codeforces/479B. Towers.cpp | 55c8bb0f587ac2daba783dbe4e5d7585103ca7a9 | [] | no_license | osamahatem/CompetitiveProgramming | 3c68218a181d4637c09f31a7097c62f20977ffcd | a5b54ae8cab47b2720a64c68832a9c07668c5ffb | refs/heads/master | 2021-06-10T10:21:13.879053 | 2020-07-07T14:59:44 | 2020-07-07T14:59:44 | 113,673,720 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,023 | cpp | 479B. Towers.cpp | /*
* 479B. Towers.cpp
*
* Created on: Jun 11, 2016
* Author: Osama Hatem
*/
#include <bits/stdtr1c++.h>
#include <ext/numeric>
using namespace std;
int main() {
#ifndef ONLINE_JUDGE
freopen("in.in", "r", stdin);
// freopen("out.out", "w", stdout);
#endif
int n, k;
set<pair<int, int>> all;
cin >> n >>... |
d13502e8799a923f070fe641c6966bdc80c55260 | 21355ad1da114531103e1b3344ee69b36b45766b | /TheWhiteDeath/Source/TheWhiteDeath/Private/HitBoxComponent.cpp | 8e9274c1781cf4344135988338d1119b32a793e7 | [] | no_license | ACPLMaverick/Wawrzonowski_Samples | 306a96102d4031c76cead1f0eca560bf6fa0f6d1 | 0d48ff3dc199fe409a958cd825253e79fe55c777 | refs/heads/master | 2021-07-21T07:16:14.602554 | 2017-10-30T08:22:11 | 2017-10-30T08:22:11 | 107,714,116 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,628 | cpp | HitBoxComponent.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "TheWhiteDeath.h"
#include "HitBoxComponent.h"
#include "Components/BoxComponent.h"
#include "Components/DecalComponent.h"
#include "Components/MeshComponent.h"
#include "Components/SkeletalMeshComponent.h"
#include "TheWhiteDeathP... |
21aff4bf35f68e2ddbf7a6e55ff004352801f8f8 | ee9efe92303f92e75cc902378ff5d1ae43c1eaa7 | /include/exceptions/exceptions.h | 39f20b61343d684c0d117172877a07190ce303cd | [
"MIT"
] | permissive | S-1-T/pascal-c-compiler | 1329e39b285e2b7966ab33fb3fb24600d3a71ca0 | d5f95f31b2a15bf551d2a67f3ba23b8d99939a2d | refs/heads/master | 2022-12-15T12:40:06.184391 | 2020-09-11T01:33:08 | 2020-09-11T01:33:08 | 263,371,277 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,031 | h | exceptions.h | //
// Created by 69118 on 2020/9/10.
//
#ifndef PASCAL_C_COMPILER_EXCEPTIONS_H
#define PASCAL_C_COMPILER_EXCEPTIONS_H
#include <exception>
using std::exception;
class TypeException : public exception {
const char* what() const noexcept override {
return "无效的 Type";
}
};
class StatementException : p... |
e9044e4a0376b84418b496e2f2259a2a666f2435 | 316a6d4a905da881063c9712a0fa5ed6860ae5d9 | /402. Remove K Digits.cpp | a01816011c63ad4510a9a0b508a8c1bfb15102e4 | [] | no_license | alexliuyi/Leetcode | 0f7a217c2c8a63a10039424561aa474c424f70a1 | 389954c6c31ae49ce0674513905e3696fb7f49d2 | refs/heads/master | 2020-04-18T13:53:32.314264 | 2019-02-06T22:50:47 | 2019-02-06T22:50:47 | 167,573,884 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 729 | cpp | 402. Remove K Digits.cpp | #include <vector>
class Solution {
public:
string removeKdigits(string num, int k) {
std::vector<int> S;
std::string result="";
for(int i=0;i < num.length();i++){
int number = num[i] - '0';
while(S.size()!=0 && S[S.size()-1] > number && k>0){
S.pop_b... |
e915e5749c6e16bbe6dda46c30926d3b8494011e | 66c6c2d054777c3738297e6606c1385737345b90 | /codeforces/578div2/A.cpp | 0b3a8bfd17b50e4f3ab4aaf1d0acc3d2dc6abb20 | [
"MIT"
] | permissive | xenowits/cp | f4a72bea29defd77f2412d6dee47c3e17f4d4e81 | 963b3c7df65b5328d5ce5ef894a46691afefb98c | refs/heads/master | 2023-01-03T18:19:29.859876 | 2020-10-23T10:35:48 | 2020-10-23T10:35:48 | 177,056,380 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,361 | cpp | A.cpp | #include<bits/stdc++.h>
using namespace std;
#define fori(i,a,b) for (long int i = a; i <= b ; ++i)
#define ford(i,a,b) for(long int i = a;i >= b ; --i)
#define mk make_pair
#define mod 1000000007
#define pb push_back
#define vec vector<long long int>
#define ll long long
#define rnd mt19937_64 rng(chrono::high_resolu... |
37e0e66624e8cc19cda3ceb3964b8a16e5db49e4 | 711aa9c343b397d21ebd9532acc950ee15546d5f | /Manager.h | ab109063cbd68a25accf798fa6d204562a0b6f1e | [] | no_license | vkhakham/backgammon-cpp | 48484feff2b12a5984742f462e1a3b5382d287e0 | fbcf485efa4fec84bb2a5776d716edcf18e170dc | refs/heads/master | 2021-01-10T01:29:59.420519 | 2015-12-26T18:10:54 | 2015-12-26T18:10:54 | 48,293,071 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,706 | h | Manager.h | #ifndef _MANAGER_H_
#define _MANAGER_H_
#pragma once
#define DICENUM_VERSION1 46
#define DICENUM_VERSION2 72
#define PLAYINGAGAINSMAYANDROTEM 0
#define HOWMANYGAMESINAROW 0
#define DEBUG val->msg4="move from "+std::to_string(_move.first)+" to "+std::to_string(_move.second);
#define PLAYER1 0
#define PLAYER2 ... |
d6bd45ea84a2943780c65c97506dfec52e0661e1 | fb30c306a52b88044730909a7a4f82f03c9359de | /MS_BuildFight/source/administer/Maneger.h | e3ec94ad7ec0b25fd4357fb617d091d293a90495 | [] | no_license | yumina1021/miso1510 | 03cb988537f5a6a91065190efe887a3b720864ac | 9ab6917578c73bcbec315714a46950bf8e330911 | refs/heads/master | 2020-05-27T06:15:47.636456 | 2016-01-17T16:37:00 | 2016-01-17T16:37:00 | 41,708,868 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 6,394 | h | Maneger.h | //=============================================================================
//
// MS_BuildFight [CManager.h]
// 15/08/20
// Author : YOSHIKI ITOU
//
//=============================================================================
#ifndef _CMANAGER_H_
#define _CMANAGER_H_
//*******************************************... |
0b910376c28cb6cb03a0f85d691186d0a4496da8 | e278115aeb38b23598c6f94c805067bd7fbfac01 | /Modules/GUI/source/sqlnewprojectdialog.cpp | 7b97c3903249c34de285b9aa873ce623cf478a09 | [] | no_license | gdrealm/TTT | e44cf12f4f1845dc0be40b3508d758bbed003e90 | e0b773fed9c72dd7ec9f205b1f83ba8262504dac | refs/heads/master | 2020-03-08T05:06:43.563369 | 2015-07-03T16:09:06 | 2015-07-03T16:09:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,796 | cpp | sqlnewprojectdialog.cpp | #include "sqlnewprojectdialog.h"
#include "ui_sqlnewprojectdialog.h"
#include <itkImage.h>
#include <itkImageFileReader.h>
#include <qfiledialog.h>
SQLNewProjectDialog::SQLNewProjectDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::SQLNewProjectDialog)
{
m_Accepted=false;
ui->setupUi(this);
}
SQLNe... |
931aaa7b0215534c179a8a54ff6e2fec7ac65310 | 1ca3440ec13e8f00bd15d2d072fee105b74c9487 | /tests/unit/Common/test_TaskScheduler.cpp | 581784a385dc7468fe013f920108b12cf78ac2ce | [] | no_license | ronj/teensy-dash | 85b6b619ba9c4814724eb2e8a18ab1369d268b98 | f963b2e6ea70478275f46c02b661c1f9a553ac58 | refs/heads/master | 2021-01-18T21:46:51.967531 | 2015-08-15T13:31:59 | 2015-08-15T13:31:59 | 33,808,060 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,964 | cpp | test_TaskScheduler.cpp | #include "yaffut.h"
#include "Common/Task.h"
#include "Common/TimedTask.h"
#include "Common/TaskScheduler.h"
#include <functional>
// Not using hippomocks here since hippomocks won't call
// the constructor for us.
class TaskImpl : public Common::Task
{
public:
virtual bool CanRun(uint32_t now) { return Runnable(no... |
92a93552579c0ea1c1f2de2213ddbd8e57215862 | 4c1fc67a7060fb554e951c47bdc1e1239e893524 | /Helper.h | f59b291644ed3693f3ed18c30e215dd62a48999c | [] | no_license | csarigul/crboard | ffb0a98cbf349ff3f92002a7f87ccfcdb856d4a5 | 0de36f6c6aeb067fd24e3068ab9e5c91781ea884 | refs/heads/master | 2020-12-24T09:55:26.676657 | 2018-09-30T09:28:44 | 2018-09-30T09:28:44 | 73,259,903 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 962 | h | Helper.h | // Helper.h
#ifndef _HELPER_h
#define _HELPER_h
#if defined(ARDUINO) && ARDUINO >= 100
#include "arduino.h"
#else
#include "WProgram.h"
#endif
#endif
#include "LiquidCrystal.h"
class Helper
{
public:
/* Check methods */
/* Array methods */
static void PrintArray(byte obj[], byte length);
static void PrintArra... |
83b204b117692122869f0027a11a0ea27890b776 | 665e68033f9cee9419f6e6a604c9e0fb2bda5324 | /include/utils.h | 329c39260ff692b8c8479b564027f4481303d5f6 | [] | no_license | dronbonpon/FindWordInDictionary | 6f275ab9c72c1f736173fedc7ca34e2a6ae1d545 | 3ab55bc93dc237d50d5a73006075db45cab0fffc | refs/heads/main | 2023-04-02T06:12:28.463507 | 2021-04-12T22:25:31 | 2021-04-12T22:25:31 | 356,640,678 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 896 | h | utils.h | #pragma once
#include <vector>
#include <string>
namespace utils
{
// Разделить строку по сепаратору delimiter в вектор
void Split( std::vector<std::string>& result, const std::string& str,
const std::string& delimiter );
// Проверка на то, что строка является подпоследовательностью друг... |
545c8dfff83dd04bbcb7cbcbe8cb12f9605197a9 | efb739bb2dd3c9dd07cc26d62ffa46973760b7f2 | /src/fheroes2/heroes/skill.cpp | f758ae25e46ad904e09a88dfd521f58fc83efdbd | [] | no_license | infsega/fheroes2-playbook | a6c2bb632ac1582a6acd056326fd14831d9bdb44 | a1c2e43b6f7ce72a3e3eec29aad95ea6613200a9 | refs/heads/master | 2020-06-02T07:42:52.494152 | 2012-06-28T23:09:43 | 2012-06-28T23:09:43 | 4,770,518 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 34,324 | cpp | skill.cpp | /***************************************************************************
* Copyright (C) 2009 by Andrey Afletdinov <fheroes2@gmail.com> *
* *
* Part of the Free Heroes2 Engine: *
* http://... |
6dc70122b93f8cc564e2f5c01226f7c43f728a8d | 76cceb3e5d356a84f65a36e337babde906b46d4e | /src/AttractionClass.h | 40906e9240d98a3568386931be066fa12a467a56 | [] | no_license | shiyaowww/Event_driven_theme_park_scheme | edb754de71f79c33236b51706123dfd825d4f891 | 87789fe180c05a9a11684680d86e5ea5c48458de | refs/heads/master | 2022-12-22T18:37:49.150545 | 2020-09-22T20:07:25 | 2020-09-22T20:07:25 | 296,473,935 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 979 | h | AttractionClass.h | #ifndef _ATTRACTIONCLASS_H_
#define _ATTRACTIONCLASS_H_
#include <iostream>
#include <fstream>
#include <string>
#include "constants.h"
#include "CustomerClass.h"
using namespace std;
//Created by: Shiyao Wang
//Date: April 10, 2020
//Purpose: This attraction class will be the data type for an attraction
//which ... |
c137766519a9ace2dd09664c303f3274f8f0458e | 1cdbd26216487be7103b346987a142f9a6571c9f | /23-05-2021/closestPalindrome.cpp | 7f0145df4779e843c9ecd81e393126c68d857896 | [] | no_license | Thambidurai-Mahendran/Edabit | 43dc39085a6ab465cdf6f929f66034ddf1f3acee | 14f6d71acb0d655170089f31f241e5e8b4db00f3 | refs/heads/main | 2023-05-25T03:24:45.490511 | 2021-06-10T15:05:54 | 2021-06-10T15:05:54 | 366,587,238 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 902 | cpp | closestPalindrome.cpp | /*
Write a function that returns the closest palindrome number to an integer. If two palindrome numbers tie in absolute distance, return the smaller number.
Examples
closestPalindrome(887) ? 888
closestPalindrome(100) ? 99
// 99 and 101 are equally distant, so we return the smaller palindrome.
closestPalindrome(888)... |
fd20c33df278bf76383361891b23e126fd1431aa | 2b23944ed854fe8d2b2e60f8c21abf6d1cfd42ac | /HDU/1498/7717168_AC_46ms_1472kB.cpp | f6338ba13b5fb0133e4889467f85d3b3405a8b24 | [] | no_license | weakmale/hhabb | 9e28b1f2ed34be1ecede5b34dc2d2f62588a5528 | 649f0d2b5796ec10580428d16921879aa380e1f2 | refs/heads/master | 2021-01-01T20:19:08.062232 | 2017-07-30T17:23:21 | 2017-07-30T17:23:21 | 98,811,298 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,390 | cpp | 7717168_AC_46ms_1472kB.cpp | #include "cstdio"
#include "vector"
#include "cstring"
using namespace std;
int Map[111][111];
bool coler[55];
bool Mp[111][111];
bool l[111];
int c[111];
int n,k;
bool DFS(int u){
for(int i=1;i<=n;i++){
if(Mp[u][i]&&!l[i]){
l[i]=true;
if(!c[i]||DFS(c[i])){
c[i]=u;
... |
69d5d64afd910b6f9b03c0f920a2a0d2e86c6d90 | da90cd5855d6397969e2ed88551f0d9491b37065 | /framework/Mesh.cpp | 7aef6041e534337c196704cd98d9ec9a2f7e3b25 | [] | no_license | gianei/GraphicsAssessmentLincoln | 9cb0931d7c83048a2c62b9611689008d0b3a4817 | 8c0898d0e49d71ab551c1f3b06428cd52c43a615 | refs/heads/master | 2016-09-03T07:12:54.485999 | 2014-11-24T13:30:46 | 2014-11-24T13:30:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,348 | cpp | Mesh.cpp | #pragma comment(lib, "glew32.lib")
#pragma comment(lib, "opengl32.lib")
#include "Mesh.h"
using namespace glm;
using namespace std;
Mesh::Mesh(ShaderProgram *shader){
scale = 1;
rotationMatrix = mat4(1.0f);
this->shader = *shader;
}
Mesh::Mesh(ShaderProgram *shader, MeshData *data){
scale = 1;
rotationMatrix =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.