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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
569fb566736554a210786e6292de5ad2249248ed | ee027a6d4a551e92bd9c1d92ead359b0ed84b77a | /src/fixme.hpp | 78eaa95dce23b6fea32c4df0475487ff764f6652 | [
"ISC"
] | permissive | Surfndez/powerdxx | 5989b2144f2aa108d046b676ea9d585f8a988616 | 3e9bbcd05f83fd0dcde5bbc08a065aa9118daed0 | refs/heads/master | 2020-03-23T16:00:47.117710 | 2017-11-20T18:18:05 | 2017-11-20T18:18:05 | 141,789,559 | 1 | 0 | ISC | 2018-07-21T07:04:45 | 2018-07-21T07:04:45 | null | UTF-8 | C++ | false | false | 615 | hpp | fixme.hpp | /** \file
* Implementations in the fixme namespace.
*/
#include <sstream> /* std::ostringstream */
#ifndef _POWERDXX_FIXME_HPP_
#define _POWERDXX_FIXME_HPP_
/**
* Workarounds for compiler/library bugs.
*/
namespace fixme {
/**
* G++ 5.3 does not believe in std::to_string().
*
* @tparam T
* The argument type... |
c9b115501520706431b5b565eaf2edae571d3093 | 594fc4eadeff6b0fabe9c2923b8b996d2b13dea1 | /nudg++/trunk/Src/Codes3D/PoissonIPDG3D.cpp | 96367adbf040e3db6deb4286c95c8245b4fb199c | [
"LGPL-3.0-only",
"LGPL-2.1-or-later",
"MIT"
] | permissive | AlbaraaKhayat/nodal-dg | 506345d6a2e12c289c2965c1160118c3ea448ba3 | 28e43f41f0d55ff22ec543695d772a5f0ddae52d | refs/heads/master | 2022-12-23T17:40:30.554978 | 2020-10-01T06:24:17 | 2020-10-01T06:24:17 | 268,416,765 | 0 | 0 | MIT | 2020-06-01T03:32:24 | 2020-06-01T03:32:24 | null | UTF-8 | C++ | false | false | 7,081 | cpp | PoissonIPDG3D.cpp | // CurvedPoissonIPDG2D.m
// function [OP,MM] = PoissonIPDG3D()
// 2007/10/16
//---------------------------------------------------------
#include "NDGLib_headers.h"
#include "NDG3D.h"
#define NDG_New_CHOLINC 1
//---------------------------------------------------------
void NDG3D::PoissonIPDG3D(CSd& spOP, CSd& spMM)... |
36bc3110558e549b8dde8d9ed85580e476426c5f | 0eaf1873b46076b485810621247968ddda034624 | /libraries/Meeo/examples/NodeMCU/IPLocation/IPLocation.ino | e6c2010e389f3af1909ec5215a87074ae8902a1e | [
"MIT"
] | permissive | naveenneog/Arduino_Projects | d236df36377f08edb15c47dfe294e740c14110c2 | bfc8ee57297499396d192b26164d02702bd50dc9 | refs/heads/master | 2022-04-24T11:10:31.560851 | 2020-04-23T08:35:36 | 2020-04-23T08:35:36 | 258,142,147 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,442 | ino | IPLocation.ino | /*
IPLocation by Meeo
This example will make use of Meeo. If you haven't already,
visit Meeo at https://meeo.xyz and create an account. Then
check how to get started with the Meeo library through
https://github.com/meeo/meeo-arduino
OTHER REQUIREMENTS
Under Sketch > Include Library > Manage Libraries...... |
e8ea59dfdcb5d7ec0a9ced12df3b8869bd830c34 | 20a87d95b777d01fc49b7479512d7725674980f3 | /constants_io.hpp | ac33f302f80d2e9cdd986bbf1243c211f09db9d4 | [
"MIT"
] | permissive | Megacrafter127/Atomaker | 03169e1e3a84a0c38306617aa355b178e91ff4db | 03956be5c249277fde40e2cc5c62b846b9aa7ed2 | refs/heads/master | 2023-02-26T03:39:17.341485 | 2021-02-03T04:09:09 | 2021-02-03T04:09:09 | 282,981,927 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 934 | hpp | constants_io.hpp | /*
* constants_io.hpp
*
* Created on: 27.07.2020
* Author: Megacrafter127
*/
#ifndef CONSTANTS_IO_HPP_
#define CONSTANTS_IO_HPP_
#include "constants.hpp"
#include <cstdio>
template<typename T> constexpr static const char constantFmt[]="\nm_e: %f\nm_p: %f\nm_n: %f\nh_bar: %f\nepsilon_0: %f\ne: %f\nc: %f";
... |
d8deefb12cd456ddc766e7b9daffb2249def49c6 | 114c19f73364c59832ee0cc3f3035659975b2a6b | /tictactoe.cpp | 48f961ece5758df70ef5ad3feadba6a6f1b70e69 | [] | no_license | parag1999/random-project | 659281192978d2d4a17beced07c6fdbb41d2c56c | 2f20ac7da8aaf56561f96f16ed8d4572cd4566dc | refs/heads/master | 2021-04-06T20:02:48.328380 | 2018-03-15T19:38:08 | 2018-03-15T19:38:08 | 125,336,859 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,564 | cpp | tictactoe.cpp | #include <iostream>
#include <climits>
using namespace std;
int i,j,k;
char arr[9];
void x();
void play(int counter);
void display();
void check();
main ()
{
display();
for(j=1;j<=9;j++)
{
if(k!=1)
{
play(j);
check();
}
}
if(k!=1)
cout<<"DRAW"<<endl;
}
void display()
{
for (i=0;i<9;i++)
{
arr... |
3a9fce8c685dda963eccbede63356fca01741f3e | 16e54286bb66e4173f746936c829dda2c280ce68 | /C/牛客网/客似云来.cpp | 7eccad2ccd9fb65c6f2f72a1b27c437b6eb21d72 | [] | no_license | 569985011/Work-Space | 653b932ada697d29178c2211a40d7de7650f9421 | 9afeb1846433d22514a0997b7a48254ce85f5009 | refs/heads/master | 2021-05-04T00:28:23.098655 | 2020-09-30T11:32:57 | 2020-09-30T11:32:57 | 71,839,693 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 599 | cpp | 客似云来.cpp | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define N
int main(){
long long a[81],b[81],c[81];
a[1]=0;b[1]=0;c[1]=1;
a[2]=0;b[2]=1;c[2]=0;
a[3]=1;b[3]=0;c[3]=1;
int min=3;int from ,to;
while((scanf("%d%d",&from,&to))!=EOF){
if(to>min){//动态扩展,随着程序中验证的数据越来越多,数据库也就越来越完善
//相应的,后续我们就不用计算了。
for(int i... |
b7d77daa33b614399d8075f93623ff22f1c8a223 | 1ea4bcba5958b0d898b263dee4e2925670071df9 | /scripting/javascript/bindings/generated/jsb_cocos2dx_extension_auto.hpp | a9730abf3fc81b5e281cc8021e16164bd66b3a9a | [
"MIT"
] | permissive | victorchan123/Dorothy | d4cff893fadd6232932c940cf10da67b5db8e65b | 58b50c68ab4cdec6cc58205771776c7c150e898c | refs/heads/master | 2021-01-16T22:09:08.243632 | 2013-05-03T14:23:33 | 2013-05-03T14:23:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,355 | hpp | jsb_cocos2dx_extension_auto.hpp | #ifndef __jsb_cocos2dx_extension_h__
#define __jsb_cocos2dx_extension_h__
#include "jsapi.h"
#include "jsfriendapi.h"
extern JSClass *jsb_CCControl_class;
extern JSObject *jsb_CCControl_prototype;
JSBool js_cocos2dx_extension_CCControl_constructor(JSContext *cx, uint32_t argc, jsval *vp);
void js_cocos2dx_extension... |
716e3fc8619a04abfe31de462d0b48bf14e6c39b | c4c69e7c63bd338c369b348db69d8c074bdc6a48 | /FinanceStaticLib/BinomialTree.h | 91995c0d2b89d3c1f425d9413203db62324a2026 | [] | no_license | Sledis/Joshi-on-C- | 5b90960f310ad6dbd24780cc634d5385e1a2a787 | d9f1f8eb5b7a22fb66edd6285a413ac482eff4cc | refs/heads/master | 2020-07-13T01:04:43.223243 | 2019-09-23T13:53:58 | 2019-09-23T13:53:58 | 204,954,629 | 1 | 0 | null | 2019-09-22T20:35:52 | 2019-08-28T14:42:58 | C++ | UTF-8 | C++ | false | false | 567 | h | BinomialTree.h | #pragma once
#include "TreeProduct.h"
#include <vector>
#include "Parameters.h"
#include "Arrays.h"
class SimpleBinomialTree
{
public:
SimpleBinomialTree(double Spot_, const Parameters& r_, const Parameters& d_, double Volatility_, unsigned long Steps, double Time);
double GetThePrice(const TreeProduct& TheProduct);... |
7737bbeb63fbd9d20b9d3fc6a7e52ca7193aff85 | 2c97aabb4daad961f12f05a69a4001f2bc6d380b | /Server/REST_API.cpp | 845d378185300516c9b118e251c1a5854e6c8c02 | [] | no_license | dorinbotan/Greenhouse | de2128b3aa89206cfe7e069cbb3767e0859071e7 | aea26101365c1ee4ced246b2e31aa2ac7803ac63 | refs/heads/master | 2021-09-03T14:46:45.159042 | 2018-01-09T21:37:19 | 2018-01-09T21:37:19 | 110,474,108 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,304 | cpp | REST_API.cpp | #include "REST_API.h"
#include <QDebug>
using QtJson::JsonObject;
using QtJson::JsonArray;
QString REST_API::processTemperature( QHttpRequestHeader header, QString body )
{
QString responseHeader = getResponseHeader( 404 ).toString();
QString responseBody;
if( header.method().compare( "GET" ) == 0 )
... |
383a30d03c87e3bcb74bfec41d79c019e29b82ea | 49398de1cdd551c3a168896929d5dc5b0197a4a4 | /include/vulkan/internal/struct/VkSwapchain.hpp | 89d1d3301fcd4102d4aeb13f064baa55cf4c223b | [
"Apache-2.0"
] | permissive | skyline-emu/vkhpp | 9580b5ea039256bbf68c67e9197d2b3eab390cbe | a4b8f74942a932ea191dc95cc4a210fea524508f | refs/heads/master | 2022-04-23T20:51:15.446022 | 2020-04-22T21:02:56 | 2020-04-22T21:03:01 | 257,965,208 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 19,812 | hpp | VkSwapchain.hpp | // Copyright (c) 2015-2019 The Khronos Group Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicab... |
54ed83eb94788f3cfb1d41819597ce7accc195a1 | 8837bd83aa8373ac7c37628c0868ff6872f8c0aa | /distinctSubsequences.cpp | 5ebd881fb2741fc6c44c93888ca4ad2e5a42fda4 | [] | no_license | abhisehekkumr/DP | 5fb86e04f5a8625ac0c1a634f6a9d6217dd7f866 | 5942921cbd37d26e1dad099b826851c81356cfc0 | refs/heads/master | 2022-02-05T19:23:08.344463 | 2019-08-08T17:53:19 | 2019-08-08T17:53:19 | 197,929,987 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 853 | cpp | distinctSubsequences.cpp | #include<iostream>
#include<string>
#include<unordered_map>
using namespace std;
void totalSubsequences(string str, unordered_map<string, int> &m, string ans = ""){
//std::cout << "ans : " << ans << '\n';
if(str.size() == 0)
return;
if(m.count(ans))
return;
totalSubsequences(s... |
2fc764fe08e0833754e1a34e96d87620b3cc5713 | c39862dcbc5b9ad65f582752bcfd0c5eb9be463e | /dev/external/wxWidgets-3.1.0/include/wx/xrc/xh_toolb.h | e3f3f1416d57413c9bc61f4f7dd95c6e4b021c13 | [
"MIT"
] | permissive | rexdex/recompiler | 5f1138adf5d02a052c8b37c290296d5cf5faadc2 | 7cd1d5a33d6c02a13f972c6564550ea816fc8b5b | refs/heads/master | 2023-08-16T16:24:37.810517 | 2022-02-12T21:20:21 | 2022-02-12T21:20:21 | 81,953,901 | 1,714 | 120 | MIT | 2022-02-12T21:20:22 | 2017-02-14T14:32:17 | C++ | UTF-8 | C++ | false | false | 937 | h | xh_toolb.h | /////////////////////////////////////////////////////////////////////////////
// Name: wx/xrc/xh_toolb.h
// Purpose: XML resource handler for wxToolBar
// Author: Vaclav Slavik
// Created: 2000/08/11
// Copyright: (c) 2000 Vaclav Slavik
// Licence: wxWindows licence
///////////////////////////... |
a9dd3e3d5c3f2640a6080c4fa74845a87438fdd0 | 247aead7ae4d545b732babcaf8e2ab31e3ec4e3f | /methods/pw.cpp | d3ba3f4d3466054070f3843fdada8c42d3444238 | [] | no_license | GaetanLhoest/FacadeClipper | 787f1bcb5b35e72014d48a9169921138d23f4a74 | ef31e0077b8169a9e98036729a0e6359f9a58c9c | refs/heads/master | 2021-05-16T03:12:13.082129 | 2020-04-08T16:44:55 | 2020-04-08T16:44:55 | 40,994,763 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,250 | cpp | pw.cpp | #include "pw.h"
#include <stdio.h>
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <mccodimage.h>
#include <mcimage.h>
#include <cccodimage.h>
#include <lMSF.h>
#include <MSF_RW.h>
#include <powerwatsegm.h>
#include <image_toolbox.h>
#i... |
635f2122d998849719932ae1fba29695d3ee6e98 | 5dbb5dda4cb89668111285976f2b34c8ed1447bb | /LaTeX/code/beaglebone/http.cpp | eed36da93ed8b0d4b37e6b4cb2d7545f43dc8a79 | [] | no_license | BusoRN/MyThesis | 47a2af06113786225426f67a86cbc20c54d2556a | dcf6799d1b0732d04f10d5dc19c7aeaa0d0f89c1 | refs/heads/master | 2021-01-22T02:49:20.341497 | 2015-03-19T10:55:31 | 2015-03-19T10:55:31 | 31,878,219 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,365 | cpp | http.cpp | #include "http.h"
void post_data_sensor(int type, float value){
CURL *curl;
CURLcode res;
/* In windows, this will init the winsock stuff */
curl_global_init(CURL_GLOBAL_ALL);
/* get a curl handle */
curl = curl_easy_init();
if(curl) {
/* Fi... |
0dff20c1241f749819bc7bf542dc1b2d672943a0 | c2dbd667abeb1b37423f8eaee73bd395af290045 | /Contest/Contest-E.cpp | 14d8acb507652f90b0d73082db9e38a1f9930e1e | [] | no_license | BugMaker-Boyan/CS203-Sustech-DSAA | c925413cd5088f638bce051e5bb4d3e7f47e76e9 | da258d960baed7e4d1b77bc3958fe58b76cedde1 | refs/heads/master | 2023-02-24T17:41:29.249361 | 2021-01-27T06:43:50 | 2021-01-27T06:43:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,191 | cpp | Contest-E.cpp | ////
//// Created by Boyan on 2021/1/2.
////
//#include <iostream>
//#include <cstring>
//using namespace std;
//typedef long long ll;
//ll n,q,s,x,y;
//#define fio ios::sync_with_stdio(false);istream::sync_with_stdio(false);ostream::sync_with_stdio(false);cin.tie(nullptr);cout.tie(nullptr);
//
//ll number[10005];
//ll... |
8c4045885722655a32f3469fd79d0949169e1575 | 6136a66fb378a5dace4705fada2288c65cb03df8 | /Assignments/Homework/Homework 2/mazequeue.cpp/mazequeue.cpp | a9c20637f24003842e18e339c86cf39df934cdd6 | [] | no_license | ntjoar/CS32 | a5360ddcd3742b0745f571c12aa42eb0a2764b39 | 7c8f8bfcf9ed21e85e7f499b8009ce3c6fa6fee6 | refs/heads/master | 2020-04-29T22:25:59.462504 | 2019-03-19T07:16:35 | 2019-03-19T07:16:35 | 176,434,010 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,537 | cpp | mazequeue.cpp | //
// main.cpp
// mazequeue.cpp
//
// Created by Nathan Tjoar on 1/31/19.
// Copyright © 2019 Nathan Tjoar. All rights reserved.
//
#include <iostream>
#include <queue>
using namespace std;
class Coord
{
public:
Coord(int rr, int cc) : m_r(rr), m_c(cc) {}
int r() const { return m_r; }
int c() const { ... |
cd98e19a2ec941ab2f1c68106be93d57e3a58959 | 303316f1105ab10d0978bab2731ee8d9ef0f7ee3 | /module00/ex01/includes/map.h | 872cb3748147372e2682c4f305dbbf3c0330fcdc | [] | no_license | AcensJJ/Piscine-CPP | db26bcc710ce916c3313e73f429dc8918b9f60d3 | 773d3614a2eb7bf9f1c3e2f5a31a07e5b1ee4c7e | refs/heads/master | 2021-07-01T08:05:28.824226 | 2021-06-11T23:54:19 | 2021-06-11T23:54:19 | 241,883,493 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 2,442 | h | map.h | #ifndef MAP_H
# define MAP_H
# include <iostream>
# include <string>
# include <iomanip>
class Contact
{
public:
std::string getFirstName() const {
return this->first_name;
}
void setFirstName(std::string value);
std::string getLastName() const {
return this->last_name;
}
void setLastName(std::s... |
e9cd339ca3adc60b064d910c820e9f413333827e | f3e7a082d261d68467d15346118740c5a3db9fd8 | /nwn_tools/CERF/CERF.h | cb3a1bc1de60aaad5f6c4330df1758bace5bb7dc | [] | no_license | DanielmGoulart/Sinfar-NWNX | 1dea766e8a1f5bf2c5667725f56ef26b6cc5d841 | ae76cf748c0e3be14d18050c62064de18fad4849 | refs/heads/master | 2021-08-22T10:14:22.792483 | 2017-11-30T00:21:05 | 2017-11-30T00:21:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,289 | h | CERF.h | #pragma once
#include <stdint.h>
#include <string>
#include <cstring>
#include <vector>
#include <map>
#include <memory>
#include <fstream>
#include "../../nwnx/common/include/structs/CResRef.h"
#include "../CKey/CKey.h"
namespace aurora {
class CERF : public CResourcesContainer
{
friend class CERFResource;
pub... |
6aa4f659979f277b2a3eb77160a05a66263de761 | c47c254ca476c1f9969f8f3e89acb4d0618c14b6 | /datasets/github_cpp_10/9/6.cpp | 599bd7fdf2479b4a5b1adffc56d6a1be736d30a5 | [
"BSD-2-Clause"
] | permissive | yijunyu/demo | 5cf4e83f585254a28b31c4a050630b8f661a90c8 | 11c0c84081a3181494b9c469bda42a313c457ad2 | refs/heads/master | 2023-02-22T09:00:12.023083 | 2021-01-25T16:51:40 | 2021-01-25T16:51:40 | 175,939,000 | 3 | 6 | BSD-2-Clause | 2021-01-09T23:00:12 | 2019-03-16T07:13:00 | C | UTF-8 | C++ | false | false | 843 | cpp | 6.cpp |
#ifndef PROJECT_STRINGREVERSE_H
#define PROJECT_STRINGREVERSE_H
class stringReverse {
};
void LeftShiftOne(char* s,int n){
char t = s[0];
for(int i=1;i<n;i++){
s[i-1] = s[i];
}
s[n-1] = t;
}
void LeftRotateString_1(char* s,int n,int m){
while(m--){
LeftShiftOne(s,n);
... |
63135857dc7d3b6f971c32df9ef06c6abeb4bd71 | 935bf285a814882fc4ca8bdbd41c6847101752dc | /CustomerList.cpp | 65830afe0c6d90b7feeac8dee293925e570c4e85 | [] | no_license | Ranner198/CS221_Project_3 | 33f0d09c101694af1d62817d2075b545e17b554f | e7578bcbad7cf6fc1487738dca94e48e3dbcb99f | refs/heads/master | 2020-03-23T21:04:01.354396 | 2018-07-25T19:37:16 | 2018-07-25T19:37:16 | 142,079,374 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,731 | cpp | CustomerList.cpp | /*******************************************************************
* EmployeeRecord.cpp
* Ran Crump
* Prog 1 - Employee Record
*
* This program is entirely my own work
*******************************************************************/
#include <stdlib.h>
#include <iostream>
#include <iomanip>
#i... |
e3ca60ff39abd5aa6000d34587a4d95e43070504 | b18b7d5941a27c860619515a8d72a1420a92bdcb | /arduino/sketchbook/habitus.ino | 9d00d1e33029547663d11935b47de8e9524a5482 | [] | no_license | LaboratoireInsertio/Habitus | 28e51daf48a60a66cb28179426383eeb3f46cbc7 | aeef57547f059c91b1d233fc3cf96c762c3ef47e | refs/heads/master | 2018-10-08T13:37:33.541166 | 2018-06-22T18:16:00 | 2018-06-22T18:16:00 | 76,824,787 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,001 | ino | habitus.ino | /***********************************************************************************
*
* Demo Arduino code for 4CH AC DIMMER MODULE
*
* AC LINE FREQUENCY - 60HZ !
*
* Variables for dimming - buf_CH1, buf_CH2, buf_CH3, buf_CH4 !
*
* Variables have range 0-255. 0 - Fully ON, 255 - Fully OFF.
*
* KRIDA Electroni... |
c01aeea8599913bc66b05cd891f67dc0ee6f4df1 | b53db618066350fd2ed7090c8b173b5c8a0dc45a | /ffs-desktop/launcher/launcherwindow.cpp | e6d813639f03ae643fc0ab13a7c967bbf1c8e934 | [] | no_license | daffodil/ffs-desktop | ec23506eb55fb31bfe8966cc30810f71f24bcd7e | fa753575cc5c74a92c5243030abe2fa225f946e8 | refs/heads/master | 2021-01-22T14:38:52.106543 | 2011-03-29T16:29:26 | 2011-03-29T16:29:26 | 926,927 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,981 | cpp | launcherwindow.cpp |
#include <QtGui/QVBoxLayout>
#include <QtGui/QHeaderView>
#include "launcher/launcherwindow.h"
LauncherWindow::LauncherWindow(MainObject *mainOb, QWidget *parent)
: QMainWindow(parent)
{
mainObject = mainOb;
setProperty("settings_namespace", QVariant("launcher_window"));
mainObject->settings->restoreWindo... |
d8cd74dfbf4e4de848a8e2c3808ee40204b8165c | c67ed12eae84af574406e453106b7d898ff47dc7 | /chap17/Exer17_33.cpp | 3299deb1706f8cb933db7f742ba0e00958ec3954 | [
"Apache-2.0"
] | permissive | chihyang/CPP_Primer | 8374396b58ea0e1b0f4c4adaf093a7c0116a6901 | 9e268d46e9582d60d1e9c3d8d2a41c1e7b83293b | refs/heads/master | 2022-09-16T08:54:59.465691 | 2022-09-03T17:25:59 | 2022-09-03T17:25:59 | 43,039,810 | 58 | 23 | Apache-2.0 | 2023-01-14T07:06:19 | 2015-09-24T02:25:47 | C++ | UTF-8 | C++ | false | false | 2,383 | cpp | Exer17_33.cpp | // Note: this file uses data file ./data/map and ./data/input
#include <cstddef>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <random>
#include <ctime>
#include <stdexcept>
using std::size_t;
using std::cout;
using std::endl;
using std::ifstream;
... |
cf603b66386fe15fcda2ae5f3ecde75f37159009 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/windows/advcore/ctf/aimm1.2/dimm/imewnd.h | ec9d164951ab74df67c128c741d194cb1b725432 | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 7,353 | h | imewnd.h | /*++
Copyright (c) 1985 - 1999, Microsoft Corporation
Module Name:
imewnd.h
Abstract:
This file defines the Default IME Window Class.
Author:
Revision History:
Notes:
--*/
#ifndef _IMEWND_H_
#define _IMEWND_H_
#include "cstring.h"
extern "C" {
// windows subclass
L... |
661da04ee4c2b81efe27451526ae2427f2bb438d | 3c9f240e1735e8a90736506bf59055c19a9c7b88 | /leet_code/reverseWords.h | 1cc1b320b08926513fe838ac311d028f654cef96 | [] | no_license | jaykop/cpp_note | 110b2660580a84796e5347bbb1bcf12af26e46b7 | 38503b8634e327fa64126344a209ad855ef030ce | refs/heads/master | 2022-02-22T19:46:57.856936 | 2022-02-09T11:18:48 | 2022-02-09T11:18:48 | 189,674,148 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,078 | h | reverseWords.h | #pragma once
class Solution {
public:
string reverseWords(string s) {
vector<string> chunks;
string mid, res;
for (int i = s.length() - 1; i >= 0; i--)
{
if (s[i] == ' ') {
chunks.emplace_back(mid);
mid = "";
}
else... |
2b396794f1279f5790a43a08d28b61140562f560 | 73795a41095db06ef79a5d3a6374e6554ea0ec26 | /tests/test_zip_tuple.cc | b4ca9416f534b3a5e57accd8ce4500e06ae68cb6 | [
"BSL-1.0"
] | permissive | EVaillant/toolsbox | 9d63d530d7aa52bac27dc3fdd606620a94970180 | bc84fed59c7d440f322c49a82d299b2336d7b6c8 | refs/heads/master | 2021-01-10T17:08:06.941420 | 2016-05-03T20:32:53 | 2016-05-03T20:32:53 | 46,289,342 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,380 | cc | test_zip_tuple.cc | #define BOOST_TEST_DYN_LINK
#define BOOST_AUTO_TEST_MAIN
#include <boost/test/auto_unit_test.hpp>
#include <boost/test/unit_test_suite.hpp>
#include <boost/test/unit_test.hpp>
#include <toolsbox/zip_tuple.hpp>
#include <toolsbox/mpl/print_type.hpp>
BOOST_AUTO_TEST_CASE( zip_tuple_01 )
{
auto tuple = toolsbox::make_... |
5218801cefdc7fa1f5787d6143c5e865dd7d1703 | b4a294fa7e878e96bcee0e3269df61b75ce87695 | /src/Tile.h | 384f2dce5a78832a7e4372cf70c820f46a47f02c | [] | no_license | trungnt2000/PlatformerGame | 8fad25b1271c683e281da94185aebac66a2cede9 | fc89239df851bb7560dbe22425a4fb8a53606790 | refs/heads/master | 2022-07-17T22:48:42.273903 | 2020-05-20T07:33:03 | 2020-05-20T07:33:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 697 | h | Tile.h | #ifndef TMX_TILED_MAP_TILE_H
#define TMX_TILED_MAP_TILE_H
#include "TileLayerTile.h"
#include "box2d/box2d.h"
#include "tmxlite/Tileset.hpp"
#include <vector>
class Tile : public TileLayerTile
{
public:
Tile(const std::vector<TextureRegion>& staticTiles,
const tmx::Tileset::Tile& tmxTile);
~... |
2bcb0be05a138b0ca00d0580cf2567f7d2c29ca6 | 323b3f8e9d830ba983ef0d1b0742abdec9ba896f | /week-03/day-3/blogpost/Blogpost.cpp | 77c34a391d65ecbf1061c93c6406be5160223f30 | [] | no_license | green-fox-academy/dezur | 531aa6cab9243b6739ce74add0fef22fdb85557c | 9108978eeb4d7a8f44e6dcbdb726fa38b5f58751 | refs/heads/master | 2020-05-04T09:43:41.800182 | 2019-06-21T14:08:56 | 2019-06-21T14:08:56 | 179,074,444 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 896 | cpp | Blogpost.cpp | //
// Created by Zoli on 2019. 04. 17..
//
#include "Blogpost.h"
#include <iostream>
Blogpost::Blogpost(std::string author_name, std::string title, std::string text, std::string publication_date)
{
SetAuthorName(author_name);
SetTitle(title);
SetText(text);
SetPublicationDate(publication_date);
}
std:... |
f468debec02f0ff3009889ba4bf86dd79906d752 | 7aa577b301ec8aae962713ced4496c104919b7cb | /Classes/MainSceneWithTouch.h | b4127f91e18ab35b977ab40b1a5fed645eae3082 | [] | no_license | yeyuexia/SimpleGame | 64e50938b16553bbadf1ab306cf59b3e5a6f9848 | 1fa61e092a6211790e0c6ad35cb6caba9e17c527 | refs/heads/master | 2016-09-05T08:44:51.084157 | 2014-02-28T09:14:09 | 2014-02-28T09:14:09 | 17,280,761 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 595 | h | MainSceneWithTouch.h | //
// HelloWorldWithTouch.h
// Test
//
// Created by yeyuexia on 2/16/14.
//
//
#ifndef __Test__HelloWorldWithTouch__
#define __Test__HelloWorldWithTouch__
#include <iostream>
#include "cocos2d.h"
#include "MainScene.h"
class MainSceneWithTouch: public MainScene
{
public:
virtual bool init();
static... |
9c8215671f2e9a5ba49935e57fbedbe48deeb7bc | c4bdccfa1004c8c5d7f61b41c5ec65a1722311c4 | /TNonBlockQueue.h | 2a8b48fcafe98208bf0152dc0cfc94fe1f9a9e13 | [] | no_license | MikhailMalkov/Top | e58868943d2162db35f14a490716a18495ea52d1 | 4b15329123604313fd2a5613cbc76c9e83895304 | refs/heads/master | 2022-12-03T06:30:03.453049 | 2020-08-19T05:25:24 | 2020-08-19T05:25:24 | 288,477,977 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,607 | h | TNonBlockQueue.h | #pragma once
#ifndef NONBLOCKQUEUE_H
#define NONBLOCKQUEUE_H
#include <atomic>
template<typename T, size_t SIZE>
class TNonBlockQueue
{
public:
TNonBlockQueue()
: m_buffer(new Item[SIZE])
, m_bufferSize(SIZE)
{
for (size_t i = 0; i < m_bufferSize; ++i)
... |
3a0dd5342b6ec5d5da71d73955278d6ca1475d6e | 9a9aae69b61ed42b238a2d8273e08811abed9b58 | /src/libkdb/schema.cpp | f17082ddcab3e10e851ad6ac8f56c3c46397af97 | [] | no_license | qkmics/kdb | 911ab3f09bd1b6cf8476242dd30c7a46d45581cc | b7d2ca3a9f43dd99ab62cc80ba068bd178404ac7 | refs/heads/master | 2020-12-04T17:07:18.121691 | 2020-01-07T21:18:03 | 2020-01-07T21:18:03 | 231,848,006 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,379 | cpp | schema.cpp | #include "schema.h"
#include "record.h"
#include "../../include/ksql/sql-parser.h"
// Load schema from the input btree
void Schema::Load(const BTree& btree) {
LoadFromSubtree(btree, 1); // Page 1 is the root page of schema table
}
void Schema::LoadFromSubtree(const BTree& btree ,int root_page){
BTreeNode node(root_... |
2efac914b372762e108d923d645bc2a3cb754275 | dfa593b9efc1aac4d8dc96690acda7791925ed81 | /math3d/include/math3d/intersections.hpp | c74a333bec798b7f9205a4ad7eb2f4ba2c861ed2 | [] | no_license | perjoh/stuff | ce5e3a0c25bd9949506162b7dc52c68c16e2a2e0 | 897263c9fdfe5aed175c6cdc990ad3d2301819fb | refs/heads/master | 2021-01-01T06:45:48.413378 | 2014-12-15T19:55:03 | 2014-12-15T19:55:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,195 | hpp | intersections.hpp | #ifndef math3d_intersections_hpp
#define math3d_intersections_hpp
#include "helpers.hpp"
#include <limits>
namespace math3d {
namespace intersect {
//!
template <typename T>
struct Intersection
{
typedef vector<T, 3> vector_type;
Intersection()
: point_( 0 )
, normal_( 0 )
{ }
Intersection(
... |
4324bde7aba10f70f935d3c842f97c237b0c7d66 | 1791461e6740f81c2dd6704ae6a899a6707ee6b1 | /Codeforces/1257B.cpp | 5105d2d56c3fec9023a59ef8d0f42be98284b373 | [
"MIT"
] | permissive | HeRaNO/OI-ICPC-Codes | b12569caa94828c4bedda99d88303eb6344f5d6e | 4f542bb921914abd4e2ee7e17d8d93c1c91495e4 | refs/heads/master | 2023-08-06T10:46:32.714133 | 2023-07-26T08:10:44 | 2023-07-26T08:10:44 | 163,658,110 | 22 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 238 | cpp | 1257B.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
int T,a,b;
scanf("%d",&T);
while (T--)
{
scanf("%d %d",&a,&b);
if (a==1) puts(b<=1?"Yes":"No");
else if (a<=3) puts(b<=3?"Yes":"No");
else puts("Yes");
}
return 0;
} |
a2df2b205f1f0ef7fd394e8a159181c9adb15988 | 3a25498190f3d30b67220df5ae52988802d70070 | /engine/graphics/material/program/RMShaderProgram.hpp | dbae01ad5f97ca3f0a5d2a89abea6145ceb1fcba | [
"MIT"
] | permissive | vitali-kurlovich/RMPropeller | c80108ddeab9e8df74da87a33fbafc65490b266c | 6b914957000dc5bd35319828b7e2608ceb2c92ca | refs/heads/master | 2020-04-03T22:43:01.203168 | 2017-03-13T22:20:52 | 2017-03-13T22:20:52 | 56,176,234 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,244 | hpp | RMShaderProgram.hpp | //
// Created by Vitali Kurlovich on 8/23/16.
//
#ifndef RMPROPELLER_RMPROGRAM_HPP
#define RMPROPELLER_RMPROGRAM_HPP
#include <vector>
#include "graphics/material/material_common.hpp"
#include "RMShader.hpp"
namespace rmengine {
namespace graphics {
class RMShaderProgram : public RMObject {
... |
3915e5af9cd5cc64d3fc32f8b92e62c43b060ab4 | 042dd1b5ce81df82f3d3dd552dd873698612e8b2 | /app.ino | 1857519dfdcb1e5179e62d5ff39b0f5318363266 | [] | no_license | ThorMutoAsmund/ARD_NodeMCU_WiFiTest | 280a5157a052d2e12fbbf411a985ae3700529abc | d235a15e911c35eeaf2aac7dda558f9c9afac266 | refs/heads/master | 2020-04-15T02:54:32.244450 | 2019-01-06T19:28:18 | 2019-01-06T19:28:18 | 164,328,476 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,592 | ino | app.ino | #include <Arduino.h>
#include <ESP8266WiFi.h>
#include "DHT.h"
// See
// https://www.instructables.com/id/Quick-Start-to-Nodemcu-ESP8266-on-Arduino-IDE/
// Note about pin mappings
// static const uint8_t D0 = 16;
// static const uint8_t D1 = 5;
// static const uint8_t D2 = 4;
// static const uint8_t D3 = 0;
... |
e00560e4a31875ea0d889a93b9ea7cfdce6d731e | dc2a40a1c1f470f10d8e02a970be9f56f097d835 | /chrominobicolore.cpp | 3eea43532399086abe111fc6d1bd766c63c6adfa | [] | no_license | Abasy/chromino-project | 626cf8d2af16cf00781609fa4a15dd7161d49e8a | 10ecd1f12916900053427132af1a8ba7da44d069 | refs/heads/master | 2021-09-20T05:20:44.749857 | 2018-08-03T19:06:17 | 2018-08-03T19:06:17 | 112,177,822 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,711 | cpp | chrominobicolore.cpp | #include "chrominobicolore.h"
#include <QDebug>
using namespace std;
int ChrominoBicolore::nombre_chrominos_bicolore(0);
ChrominoBicolore::ChrominoBicolore(QVector<Case *> &cases, QGraphicsItem *parent)
:Chromino(cases[0],cases[1],cases[2],parent)
{
nombre_chrominos_bicolore++;
idChrominoBicolore = nombre... |
fd5e39f0f8970938ce2635393cba66a0891f43c9 | 9bdbc99174b877a07fa1d79176bd64f7222bfb99 | /src/color_map.cc | fd8791e561b6e2fad6a6c8054fbf1d21a1d6a361 | [
"MIT"
] | permissive | nagyistge/kortex | b93dedb0c3eec5f5bcf022ca4ae2d6bafc1f5e60 | a8658c9ca4190b38178225522ca55ec4e73be6d2 | refs/heads/master | 2020-06-16T17:10:39.080381 | 2016-09-20T10:04:39 | 2016-09-20T10:04:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,725 | cc | color_map.cc | // ---------------------------------------------------------------------------
//
// This file is part of the <kortex> library suite
//
// Copyright (C) 2015 Engin Tola
//
// See LICENSE file for license information.
//
// author: Engin Tola
// e-mail: engintola@gmail.com
// web : http://www.engintola.com
// web : ... |
053b9c64880b845ee205138b861c39fd8db1c502 | f1960e86ffed49ead6cbb02c07559ac304bd22e2 | /st6/main.cpp | eb70785812645c4b7f878e0db6f373dc7b4a99ab | [] | no_license | skiry/Highschool | 6aa09f28f0952c06953f9b8b417c32ef9970f6d4 | 319b05c33db733a4108b6fbd73328cca159caff3 | refs/heads/master | 2021-05-14T12:25:57.251753 | 2018-01-06T00:24:36 | 2018-01-06T00:24:36 | 116,405,336 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,952 | cpp | main.cpp | #include <fstream>
#include <vector>
#include <deque>
#include <algorithm>
#include <queue>
using namespace std;
ifstream f("6st.in");
ofstream g("6st.out");
int n,m,i,j,k,crs[301],minim[301],actual,prezent,el,minact,gint[301],gext[301],viz[301],initial,nr,total[301],vizcalc[301],suma;
vector <int> a[301];
de... |
b33633bfa87f78f0102e94dfcec4789fc1246072 | a14cf2c85ac756c75cf142fbb657f8ec05cd19ae | /unittest/common.h | 55e8dcf1b46330fe77c9a051bff0a2ab7f67a189 | [] | no_license | 343829084/futures_cell_proxy | e9083f6fdd11b63b49ac5ea8121815470315cdc8 | 552d8850227dfe84635fade0f3daee94d96b06d7 | refs/heads/master | 2020-05-16T09:32:46.947521 | 2018-09-16T12:28:54 | 2018-09-16T12:28:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 796 | h | common.h | // Copyright (c) 2017, Formax Inc. All rights reserved.
#ifndef FUTURES_CELL_PROXY_UNITTEST_COMMON_H
#define FUTURES_CELL_PROXY_UNITTEST_COMMON_H
#include <string>
#include "futures_cell_proxy/proto/futures_service.pb.h"
/////////////////////////////// 宏定义开始 ////////////////////////////////
//
#ifndef FUNC_NAME
#de... |
23d33c7d07cc5f57d3b65cc5b81f41812fa88704 | 3084462cc596f0d513edd65a9d7dd514a7284cc0 | /Graph/013MotherVertex.cpp | 487a7f457f8154f9da83979c622efc304ddb45f9 | [] | no_license | atlas25git/DSA_Mastery | 8d330f120a040105ff3932701009f289963ec2b3 | 97236ff9ada502af2ee2526c8568d3163e4daa2e | refs/heads/master | 2023-07-07T14:22:43.127799 | 2021-08-04T14:44:49 | 2021-08-04T14:44:49 | 303,709,740 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,706 | cpp | 013MotherVertex.cpp | // { Driver Code Starts
#include<bits/stdc++.h>
using namespace std;
// } Driver Code Ends
class Solution
{
public:
void dfs(int u, vector<int>adj[], vector<bool>&vis)
{
//marking current vertex as visited.
vis[u] = true;
//iterating over the adjacent vertices.
for(auto v: adj[u])
{
//... |
313778fb852f229c6f58183317269cead59fd21d | 376c88f77e904986c2d81eb9ea8de851a8135b9a | /projects/desktoplife/desktoplife.cpp | 723a5a73e35e42e6b5d2f27e590e37f2f651a33a | [
"MIT"
] | permissive | Wiladams/ndt | e01da0e7844c48c591031157cd0611fed08b6f0b | d93f6fd0e6de46e86dbe8e7dbb394f867fa799d4 | refs/heads/master | 2023-03-01T00:34:48.897819 | 2023-02-18T19:16:16 | 2023-02-18T19:16:16 | 252,350,143 | 14 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,888 | cpp | desktoplife.cpp | #include "p5.hpp"
using namespace p5;
/*
Game of life running on the entire desktop as a layered window
*/
int ** Array2D(int rows, int columns)
{
int **arr = new int *[rows];
for (int i=0; i<rows; i++) {
arr[i] = new int[columns];
}
return arr;
}
static const int w = 2; // size of a ... |
922e47af36d077abd4bc31f3f905c9ffdc3f458c | 81295026fe4861a79d9172a7496ac34299cbd361 | /main/compass.ino | 286bdff5613893c6ddbe9a27eaccd67df03b7f7b | [
"Apache-2.0"
] | permissive | trelorny/homealonerobot | 8a00120af973f44a9b30dcffa38d59e39f0a4b19 | 85e6eabeb94b904fbb634d78077df6ea69810183 | refs/heads/master | 2021-01-17T09:45:58.317155 | 2017-03-06T17:38:05 | 2017-03-06T17:38:05 | 83,992,431 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,015 | ino | compass.ino | #include <Wire.h>
#define Addr 0x1E
int BEARING_HYSTERESIS = 3;
int COURSE_CORRECTION_INTERVAL = 500;
void initCompass() {
// Setup compass module
Wire.begin();
// Set operating mode to continuous
Wire.beginTransmission(Addr);
Wire.write(byte(0x02));
Wire.write(byte(0x00));
Wire.endTransmission();
}
i... |
c9fd9683fdc8a01b2db33e3aee41f53f1d2f4ba3 | 60cfee38be68565e4263713fa293a3a4fe65fddd | /Blinker/arduino blink light/Blink/Blink.ino | bd17a12d06bc082ddd6e1a44755be3586af79f63 | [] | no_license | rupert96/python | 0295164cbdd5c27b3412fcb2127e2ce021fda941 | b8b1b492ee44f7d54449d19d4cb6f65925792d2e | refs/heads/master | 2021-01-11T03:50:28.914787 | 2016-10-30T18:52:20 | 2016-10-30T18:52:20 | 71,257,836 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,146 | ino | Blink.ino | // Code inside "setup" gets run once, when the program first starts up
void setup() {
pinMode(13, OUTPUT); // Set pin 13 to be in output mode
Serial.begin(9600);
}
// Code inside "loop" gets run over and over again, once "setup" has finished
void loop() {
if(Serial.available() > 0) {
char message = Seri... |
34071ac91f1507441079a79f03b9f9c656e9b3df | e17c7cf738ee8c59789e9bef6aca875715545912 | /kcwdebug.cpp | 9884ca8e0676163488f6a33aae6211020412fc6e | [] | no_license | KDE/libkcw | e279b1336b2228716853e3bc9465a1424adacd75 | 810b71cc946d7fa0625d481d4245cfb6d3f2a04c | refs/heads/master | 2016-09-08T01:32:43.445800 | 2014-01-17T21:07:48 | 2014-01-17T21:08:45 | 42,731,774 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,991 | cpp | kcwdebug.cpp | /* Copyright 2013-2014 Patrick Spendrin <ps_ml@gmx.de>
*
* 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 conditions... |
bcb9856e9582c49c4abc8790d6d56806d40df84e | 8f714265032c8444e3b33dded325ac79e3ece8c4 | /HW2/RestaurantReservations.cpp | 6693cb165a6010de414310070ecd8f9a8897c8f4 | [] | no_license | VictorNguyen031900/Computer-Science-II | dd14a0f20d27432a08ad5851c9396a9ed5a285ea | a440c189e05b6c3aa6d6bca08facc907c4ae981b | refs/heads/master | 2022-11-27T03:38:01.076681 | 2020-07-27T05:48:07 | 2020-07-27T05:48:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,483 | cpp | RestaurantReservations.cpp | #include "RestaurantReservations.h"
#include "Restaurant.h"
#include "Reservation.h"
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <fstream>
using namespace std;
RestaurantReservations::RestaurantReservations() //Default constructor
{
}
void RestaurantReservations::ProcessTrans... |
c6e509bc54b9acfca4a1af6799765c89c4e709a4 | 1a3d9fda52c764cdb2988f79d13861ae7151ca25 | /source/Utils/test/src/Math/FixedPointTests.cpp | e4c304fbdf1df23f16efeb9a5b9325c8ad78c8dc | [
"BSD-3-Clause"
] | permissive | mamaheux/apb | 3859ddd57b3fad2569c3cc08e2dc994b3587ec0b | 44e3a80c3c67c3516a7a1ac046c666fd7baafb4a | refs/heads/main | 2021-06-23T15:11:14.619016 | 2019-01-03T22:10:42 | 2019-01-03T22:10:42 | 142,214,833 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,356 | cpp | FixedPointTests.cpp | #include <Utils/Math/FixedPoint.h>
#include <gtest/gtest.h>
#include <sstream>
using namespace apb;
using namespace std;
TEST(FixedPointTests, Q3_4_defaultConstructor_shouldSetTheValueTo0)
{
stringstream ss;
FixedPointQ3_4 testee;
ss << testee;
EXPECT_EQ(ss.str(), "0");
}
TEST(FixedPointTests, Q3... |
79d771e1465002db76856a5a8ed8118487e3cbcb | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-appintegrations/include/aws/appintegrations/model/EventFilter.h | a42243211715aaa8cdd4d0dd12578be499565e32 | [
"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 | 2,339 | h | EventFilter.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appintegrations/AppIntegrationsService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
c... |
66c88eb5a973a07724d4a51b8fd0bce29bd74031 | 05ad9f92a8c687f883d4400ab7c489c1884fccfa | /jni/descriptor.cpp | a7b79568174cdb8b94b586a70aa5647351adb909 | [] | no_license | amankr/AndroidDrawing | 76a630b72e1c0c7135b8aa1dac04609a23ccdda4 | 330b5fbd2396656988a8c9017caf327b7d4282d8 | refs/heads/master | 2021-01-19T16:32:57.395966 | 2015-03-16T14:41:32 | 2015-03-16T14:41:32 | 32,331,334 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,780 | cpp | descriptor.cpp |
#include "ugp.h"
inline float dist(float x1,float y1,float x2, float y2){
return sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1));
}
void GetOrientations(Mat & src,Mat & dst){
int kernel_size = 3;
int scale = 1;
int delta = 0;
int ddepth = CV_32F;
Mat grad_x, grad_y;
Sobel( src, grad_x, ddepth, 1, 0, 3, scale,... |
e4f99939791d76c879eb2c2e605377820b01717e | bf5be9e5b6033c9634d46955df088771145f6da7 | /Source/GameFrame/Private/GameFrame.cpp | b6bac260d6615e307d85f0a4d5840513e4011414 | [] | no_license | devilmhzx/SmallWorld | eaff8c1abb460397d7844a083eac24ce77954b92 | eff5eddb408fc337e70be716a250ed98f17dd097 | refs/heads/master | 2020-07-19T00:04:27.629460 | 2019-09-03T13:34:58 | 2019-09-03T13:34:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 188 | cpp | GameFrame.cpp | #include "GameFrame.h"
#include "ModuleManager.h"
void GameFrameModule::StartupModule()
{
}
void GameFrameModule::ShutdownModule()
{
}
IMPLEMENT_MODULE(GameFrameModule, GameFrame);
|
ce0de5494cbc9f8e56e70059781dd46a4c065484 | c27df8ce4903389256023f71fc8004c6caf41d21 | /src/oxc_smallrl_q.cpp | b6005b5874c9132b11cee2d393c61892e20d4c23 | [] | no_license | atu-guda/stm32oxc | be8f584e6978fa40482bbd5df4a23bd6b41329eb | 591b43246b8928329642b06bad8b9de6802e62ed | refs/heads/master | 2023-09-03T08:42:36.058233 | 2023-09-02T19:15:15 | 2023-09-02T19:15:15 | 34,165,176 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,017 | cpp | oxc_smallrl_q.cpp | #include <cstring>
#include <oxc_smallrl_q.h>
// #include <oxc_debug1.h>
#include <task.h>
using namespace std;
using namespace SMLRL;
void task_smallrl_cmd( void * /*prm*/ )
{
struct SmallRlCmd cmd; BaseType_t ts;
while(1) {
ts = xQueueReceive( smallrl_cmd_queue, &cmd, 2000 );
if( ts != pdTRUE ) {
... |
0ff0431a3f50b1787428cf350855184ebc75aba5 | 0b01c0e41e5709bce4070005a53378e71c160601 | /WormsGame.cpp | 965a238db1470e71171a89e28769a46b1e4b6939 | [] | no_license | malustewart/TP4_WORMS | e4774369b5a617765f092699997b68504b09c251 | 41f3fe78b01a829acb4f4b021bf1538d4484fdf5 | refs/heads/master | 2021-01-18T19:03:53.436253 | 2017-04-05T09:23:30 | 2017-04-05T09:23:30 | 86,884,801 | 0 | 1 | null | null | null | null | MacCentralEurope | C++ | false | false | 5,191 | cpp | WormsGame.cpp |
//CalcNewState(); ver si ponerlo, en caso de que si, donde?
//inicializacion y destruccion de allegro poner en otro archivo.
#include <stdio.h>
#include <allegro5/allegro.h>
#define FPS 50.0
#define LOOKLEFT -1
#define LOOKRIGHT 1
#define EXIT ALLEGRO_KEY_SPACE //VER SI DEJAR ESO COMO EXIT... |
949e2b77eb60d963bc5aa50541eaee1b3e279d76 | 501656109d2e92441deb4cfc5ed0dccb50208935 | /挑战程序设计竞赛/2.1/poj3050.cpp | ef0101b9c344c465c50c814e3f606ae55b342d0f | [] | no_license | ailyanlu1/Acm-icpc-6 | 32cb3c7c5760dd6fd2f1d641e4dd2b130e317fed | b4c86f65aeb8ce4f4949046a4d3ce9c390034f22 | refs/heads/master | 2020-03-23T13:55:38.122388 | 2014-10-01T03:11:58 | 2014-10-01T03:11:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,546 | cpp | poj3050.cpp |
#include <iostream>
#include <sstream>
#include <ios>
#include <iomanip>
#include <functional>
#include <algorithm>
#include <vector>
#include <string>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <set>
#include <map>
#include <cstdio>
#include <cstdlib>
#include <cmath>
... |
61f35922c81c86e2ab9e330771f0f79bd74446b2 | 2998f0570cf4c345283ab5b3b61ac5c03fd40b6b | /src/pebble_rpc.h | 57880d865d8c94f88cc5c7a0c85e0724ec1591f9 | [] | no_license | zhaoyaogit/pebble_rpc | 5026433244984e9a03745caa88e5dbb9c9e118b6 | c2ce83aba0d21ea692ee0e231563080d850a2e02 | refs/heads/master | 2021-09-14T04:19:00.271462 | 2018-05-08T12:16:59 | 2018-05-08T12:16:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,754 | h | pebble_rpc.h | /*
* Tencent is pleased to support the open source community by making Pebble available.
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the Lic... |
b9e5cc030f1007b16a539eca4d6742ed42b87d02 | 93bb53787cb3e9fb32371bb0fdc4e9227edce60e | /codeforces/271/B. Worms/main.cpp | d59f17b37015b760ebe6337d33aafe3392623a2f | [] | no_license | lupvasile/contest-problems | b969f6e591d1b3feaebf5675b999642b1f2ade32 | a484632c23d8b62b98d550446f697675b50e9dc6 | refs/heads/master | 2021-07-03T22:19:41.142998 | 2017-09-27T21:00:02 | 2017-09-27T21:00:02 | 105,061,972 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 699 | cpp | main.cpp | #include <iostream>
//#include <fstream>
using namespace std;
#define nbuf 131072
//#define cin f
#define nmax 1000010
//ifstream f("date.in");
char buf[nbuf];
int pos(nbuf);
int gI()
{
int n=0;
while (buf[pos]<'0' || buf[pos]>'9')
{
if(++pos>=nbuf) cin.read(buf,nbuf),pos=0;
}
while (buf... |
6283c4263dada593726b82b84a98591673197b99 | 51e9f0b333fb3620063f26fe091abb2bf0032dee | /cpTerrainPro/main.cpp | 70fb54bb2c988c9ff9ab356d1d4f171682ab0e6e | [] | no_license | cpillion/AdvancedComputerGraphics | ced22bfd0fa2a2a2ab323271a49720bdc003ac9b | 7c9940cacd1151bf04da06f6c23f935a751ad5fb | refs/heads/master | 2021-01-18T18:40:05.142447 | 2017-05-18T22:54:53 | 2017-05-18T22:54:53 | 86,870,768 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,080 | cpp | main.cpp | //
// cpTerrainPro.cpp
// Final Project: Terrain Generation Using OpenGL 4 and Qt 5
// CSCI 5239 Spring 2017
//
// Description: Create a program using OpenGL and GLSL demonstrating knowledge of advanced computer graphics
//
// Created by Chris Pillion on 5/3/17.
// Copyright © 2017 University of Colorado - CPilli... |
77de510386135a4c4e6b868432ac4256c5196695 | e6559df51c2a14256962c3757073a491ea66de7c | /Codeforces/698 A - Vacations.cpp | 9bd0a5f0bff6ea6c4f5e8d2b6750323ea1fb470f | [] | no_license | Maycon708/Maratona | c30eaedc3ee39d69582b0ed1a60f31ad8d666d43 | b6d07582544c230e67c23a20e1a1be99d4b47576 | refs/heads/master | 2020-04-25T23:37:53.992330 | 2019-02-28T17:10:25 | 2019-02-28T17:10:25 | 143,191,679 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,041 | cpp | 698 A - Vacations.cpp | #include <bits/stdc++.h>
#define INF 1LL << 62
#define rep(i, a, b) for(int i = int(a); i < int(b); i++)
#define pb push_back
#define debug(x) cout << #x << " = " << x << endl;
#define debug2(x,y) cout << #x << " = " << x << " --- " << #y << " = " << y << "\n";
#define debugM( x, l, c ) { rep( i, 0, l ){ rep( j, 0, c ... |
5f47fc6ffe635f4d26c98f8cecf05d659523a464 | 3f7028cc89a79582266a19acbde0d6b066a568de | /test/common/network/listen_socket_impl_test.cc | c6b8c5fd5e1a6504489c282220e4e6224a11929d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | envoyproxy/envoy | 882d3c7f316bf755889fb628bee514bb2f6f66f0 | 72f129d273fa32f49581db3abbaf4b62e3e3703c | refs/heads/main | 2023-08-31T09:20:01.278000 | 2023-08-31T08:58:36 | 2023-08-31T08:58:36 | 65,214,191 | 21,404 | 4,756 | Apache-2.0 | 2023-09-14T21:56:37 | 2016-08-08T15:07:24 | C++ | UTF-8 | C++ | false | false | 11,592 | cc | listen_socket_impl_test.cc | #include <memory>
#include "envoy/common/platform.h"
#include "envoy/config/core/v3/base.pb.h"
#include "envoy/network/exception.h"
#include "envoy/network/socket.h"
#include "source/common/api/os_sys_calls_impl.h"
#include "source/common/network/io_socket_handle_impl.h"
#include "source/common/network/listen_socket_... |
555094ae0f9f6084940af98b4271ab71adff1f32 | d16e16221194e3061ab2492d0f25d4406a38365a | /Project/Source/GameEngine/EntitySystem/Components/PlayerProjectileCollisionComponent.cpp | ed5dea66909f178cfe45d4d12e93659e803c926c | [] | no_license | Karthik002/Hack_The_North_2021 | a4f246eb0851c48d5ffefb351ab5ecb0ab6dfc9d | 435f8201408fd27866c51e4b5da45bb7f0ae09f2 | refs/heads/master | 2023-02-19T12:57:50.605458 | 2021-01-17T19:10:57 | 2021-01-17T19:10:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,761 | cpp | PlayerProjectileCollisionComponent.cpp | #include "PlayerProjectileCollisionComponent.h"
#include "GameEngine/Util/CollisionManager.h"
#include "GameEngine/EntitySystem/Entity.h"
#include "GameEngine/GameEngineMain.h"
#include <vector>
using namespace GameEngine;
PlayerProjectileCollisionComponent::PlayerProjectileCollisionComponent() {
leftPlayerHitbox = ... |
db2bb64689dd5b3711f5036293a0e4dee035c466 | 8743445edc75a4116892f070ce3d1546bf5f607b | /clicache/src/impl/ManagedString.hpp | ec702dea89e2e71197381e3ef3a6376ef544de5f | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"LicenseRef-scancode-unknown"
] | permissive | apache/geode-native | d2ef8d21c62a6ab494bd6be9b20545f699340348 | 049309470cd01ddcb256cc2c0f60ed0aa3a4caf2 | refs/heads/develop | 2023-08-19T03:01:18.421251 | 2022-10-03T12:52:42 | 2022-10-03T12:52:42 | 80,904,111 | 53 | 77 | Apache-2.0 | 2023-08-19T01:26:43 | 2017-02-04T08:00:06 | C++ | UTF-8 | C++ | false | false | 2,344 | hpp | ManagedString.hpp | /*
* 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.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
273516886e5fee226811d28ae77272b38bb9db07 | 53ed88d6564725dd4f3992c98c62bb83f628d778 | /sliceOperatHandler.hpp | bbb002807c45953ffa289b78b256a13c8ad56f72 | [] | no_license | Chreschtf/matriceLangage | 34353c6be59b4c2f916fad180813079177aff272 | 84119e8ab14a83e73dc10d33b4db10b82e40bbaa | refs/heads/master | 2021-05-28T20:35:41.240341 | 2014-12-18T09:11:55 | 2014-12-18T09:11:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 848 | hpp | sliceOperatHandler.hpp | #ifndef _SLICEOPERATHANDLER_H_
#define _SLICEOPERATHANDLER_H_
#include <cstddef>
#include <iostream>
#include <memory>
template<typename T,std::size_t t>
class sliceMatrix;
template<typename Elem,std::size_t dim,std::size_t callsLeft>
class sliceOperatHandler{
private:
sliceMatrix<Elem,dim>& slice;
std::sha... |
0eddc152d2c0d9057668d403f0be346e86c859fc | 854d890848adf26be8eecc57787185fa81294ba0 | /SimpleCS/RefLibNet/reflib_circular_buffer.h | 1de027cd7033b77981e4a3e7d495be2042db1461 | [] | no_license | goopymoon/RefLib | e5c9871ebd249fbdb2a669eda850c3be5b77c4b0 | ca8196427dddedbbc66af9560b0e0c9f408c3ce6 | refs/heads/master | 2021-01-20T17:09:52.328840 | 2019-02-14T16:21:49 | 2019-02-14T16:21:49 | 60,628,227 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 818 | h | reflib_circular_buffer.h | #pragma once
#include "reflib_net_def.h"
namespace RefLib
{
class CircularBuffer
{
public:
CircularBuffer(unsigned int size = DEF_SOCKET_BUFFER_SIZE);
virtual ~CircularBuffer();
void Clear()
{
_headPos = 0;
_tailPos = 0;
}
unsigned int Size() const
{
return (_hea... |
92e695ddf8ededae53aa24f0a86a89abe9600606 | 93ce607184ed5143ef9e2b8fd99ece6a100c1cf4 | /App/Logger.hpp | 99d060d3c8dc69a33e88110b99b32d9f01c714b3 | [] | no_license | seven-1981/BPMCounter | d3f0bb468614349e4d9c5904954981223c286e8e | 9af69f17b0766d75922e15252b4d1f94fcce44fe | refs/heads/master | 2020-09-26T06:55:11.664877 | 2020-08-28T21:03:23 | 2020-08-28T21:03:23 | 226,195,629 | 0 | 0 | null | 2020-08-28T20:02:24 | 2019-12-05T21:54:25 | C++ | UTF-8 | C++ | false | false | 278 | hpp | Logger.hpp | #ifndef _LOGGER_H
#define _LOGGER_H
class MainWindow;
class Logger
{
public:
static Logger& logger()
{
static Logger logger;
return logger;
}
void init_logger(MainWindow* w);
void log(const char* text);
private:
Logger();
MainWindow* m_mainWindow;
};
#endif
|
3b081c814e517c9f553219449e3c7b7d4a6462a5 | b137f5bb9d3b77266f46073bc2da72bf445854d6 | /CJ1A.cpp | d08558eaa5d61480503c0ab6653e7548d3ec0ba6 | [] | no_license | killzdesu/cpp-archive | 307fa05be71618f2a64b3c852078eef88696da86 | 70f62a7bbc2f3398ac28818849841f18b1145f91 | refs/heads/master | 2023-04-08T20:16:57.460572 | 2021-04-20T06:23:31 | 2021-04-20T06:23:31 | 359,705,314 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,066 | cpp | CJ1A.cpp | #include<stdio.h>
#include<stdlib.h>
#include<algorithm>
#include<iostream>
#include<vector>
#include<map>
using namespace std;
vector<int> v1, v2, v;
vector<int>::iterator it;
map<int, int> m;
int main(){
freopen("A-small-attempt0.in", "r", stdin);
freopen("A-sm-out.txt", "w", stdout);
int a, b, c, d;
int s... |
4df9f2c5ff8c55bc15098e472024e2baa715c02b | 86d5e3ea484106dfb8f8dfcdb09f77c54f843bdb | /Lab_06/Sorted_2_3_Tree.cpp | d8b0a139ec0b5b6b60b900765613bf716d296869 | [] | no_license | Rasakhatskiy/Labs_S2 | 6daa487f8c37dacb07811f75f22dd0a929ebd7b2 | 24a96c45414c8979e5c2223b8130122c9adaa3b9 | refs/heads/master | 2020-12-19T23:43:56.630114 | 2020-05-30T16:20:16 | 2020-05-30T16:20:16 | 235,888,061 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,859 | cpp | Sorted_2_3_Tree.cpp | #include "Sorted_2_3_Tree.hpp"
typedef unsigned char byte;
Sorted_2_3_Tree::Sorted_2_3_Tree() :
Root(nullptr) {}
Sorted_2_3_Tree::~Sorted_2_3_Tree()
{
Dispose(Root);
}
void Sorted_2_3_Tree::Insert(std::string value)
{
Root = Insert(Root, value);
}
void Sorted_2_3_Tree::Remove(std::string value)
{
Remove(Root, v... |
b1e0ca401952a0196fe7514afd87b701f954688c | fa6114537e74eba28976ac5cbb3fa8b4bc3cf196 | /Lab 4/circularlist.cpp | bbaa92f3db7e73f55f33b9e13ae0c08ad5bb3f33 | [] | no_license | shakyasimha/dsa-lab-ioe | 4b22697c9821825fbc48c09b0e88c4df0a294e6c | c6f7641613ef293acff0289a907e0e038295a62d | refs/heads/main | 2023-06-02T09:33:44.572854 | 2021-06-21T06:24:36 | 2021-06-21T06:24:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,002 | cpp | circularlist.cpp | /*
DSA Lab 4: Implementation of Circular Linked List
Code written by Sushovan Shakya (THA075BEI046)
*/
#include <iostream>
#define null NULL
using namespace std;
struct Node {
int data;
Node *next;
};
class List {
private:
Node* head, *tail;
public:
List() {
head = null;
tail = null;
}
bool isEmpt... |
0a55834eb5265430079f3038794255763d053833 | a95f5fca3aecf2c871e3fb5957ca57e3b1d0da76 | /bài 9.cpp | 59486f078795f6b1525d39d4c78003ccf549d434 | [] | no_license | HoangVu52/b-i-ki-m-tra | 7b94ab64959b5527da55d5f81e86ff2e9cc31dda | 2bee25c9ae0d825e2adec3d42ccd5f9208488b4c | refs/heads/master | 2021-05-15T22:30:28.992505 | 2017-10-12T15:04:02 | 2017-10-12T15:04:02 | 106,707,600 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 340 | cpp | bài 9.cpp | #include <iostream>
#include <math.h>
using namespace std;
int main(int argc, char* argv[])
{
int n, i, dem;
dem = 0;
i = 1;
cout << "n= ";
cin >> n;
while (i <= n)
{
if (n%i == 0)
dem++;
i = i + 1;
}
if (dem == 2) cout << "SNT" << endl;
else cout << "k la SNT" << endl;
system("pause... |
605518a65e4b630e0f381c278764c65e2d108ed3 | 2d80a0c6d7ee392bf9c7256aa105d12bb9a14c25 | /driver.cpp | 6c143343caddb7540a50cc6a5cbd7d0209588d1b | [] | no_license | anagh07/slot_machine_game | 1d042d676f528e4f7036410356deaf106f41b816 | 68d9aca629c798030ec30b1bb3ee5152d83a93c3 | refs/heads/master | 2022-11-30T23:57:49.212919 | 2020-08-14T22:54:50 | 2020-08-14T22:54:50 | 287,638,226 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,004 | cpp | driver.cpp | #include <iostream>
#include <vector>
#include <string>
#include "Shape.h"
#include "Rectangle.h"
#include "Rhombus.h"
#include "AcuteTriangle.h"
#include "RightTriangle.h"
#include "SlotMachine.h"
using std::cout;
using std::cin;
using std::endl;
using std::string;
using std::vector;
int main ()
{
Rectangle rect(4... |
4483588a2a8416685e0b3be9e241b35a20931bf1 | 33a52c90e59d8d2ffffd3e174bb0d01426e48b4e | /uva/00500-/00530.cc | 8ab257acecf88c61a3b3154b33b8c556c3c0f403 | [] | no_license | Hachimori/onlinejudge | eae388bc39bc852c8d9b791b198fc4e1f540da6e | 5446bd648d057051d5fdcd1ed9e17e7f217c2a41 | refs/heads/master | 2021-01-10T17:42:37.213612 | 2016-05-09T13:00:21 | 2016-05-09T13:00:21 | 52,657,557 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,001 | cc | 00530.cc | #include<iostream>
#include<list>
using namespace std;
int nElement, nChose;
int gcd(int a, int b){
if(b==0) return a;
else return gcd(b,a%b);
}
bool read(){
cin >> nElement >> nChose;
if(nElement==0 && nChose==0) return false;
return true;
}
void work(){
if(nChose==0){
cout << 1 << endl;
ret... |
725cff1014435549dd22fe893e72b3ddce3c93d6 | 73861c79fbe4cb57e6f4a75369519cbe43a0406e | /tf/prog/dll/dac_ploan.cpp | 6cc0a38ea6c6add039128f4bbd625541aed5ff09 | [] | no_license | hunganhu/dac | 5d8cc276601fa8e7e23fa84ae003da51128c48af | a48c7a58578b3503edd564b9ca23eed1926d9642 | refs/heads/master | 2022-07-28T04:50:00.442444 | 2007-10-26T02:41:58 | 2007-10-26T02:41:58 | 266,997,798 | 0 | 0 | null | null | null | null | BIG5 | C++ | false | false | 23,657 | cpp | dac_ploan.cpp | //---------------------------------------------------------------------------
#pragma hdrstop
#include <vcl.h>
#include <stdio.h>
#include <Math.hpp>
#include "dac_ploan.h"
#include "loanApp.h"
#include "ploanSQL.h"
#include "functions.h"
#ifndef _WRFLOW //In Project->Options->directories/conditionals, append ";_WRF... |
c099df7bf899ec34bd71832d63f982605893f6a4 | 24a0e0b288ee1e30f9285d1719a13fabef0e320b | /factors.cpp | 8b63cd7accbc3e7157089bd8ee396c0facb9083b | [] | no_license | utkarsh235/CPP-Programming | db3569a8ad5e6605462147583346566245ddaa56 | d8faa7089d7fbb4ef6a7bb328c10fa78a7ed1751 | refs/heads/main | 2023-03-05T21:07:07.952797 | 2021-02-13T19:28:35 | 2021-02-13T19:28:35 | 330,452,704 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 444 | cpp | factors.cpp | #include<iostream>
using namespace std;
class factors
{
int a,b,c,i,n;
public:
void get();
void print();
};
void factors :: get()
{
cout << "enter the number whose prime factors you want to enter\n";
cin >> n;
}
void factors :: print()
{
for (i=1; i<=n ; i++)
{
if (n%i == 0)
{
c... |
e1290e378485904f5a236ef15cdaf8e0d2c4fd67 | 5e629210c351f369208155a11f395d47be9b837b | /conditionCompleteion/src/include/libraryUtils/object_storage_log_setup.h | 9a3f6fb1a1af7bc9ae6c1e347132139ba270d3f5 | [] | no_license | confi-surya/pythonicPracto | 028f2a50bc595b90bee95b235ec9218da3e45fe5 | c366afd9ab54b8cacda767189f1a13efb5f961b2 | refs/heads/master | 2020-03-23T12:56:55.843408 | 2018-07-19T11:51:59 | 2018-07-19T14:37:13 | 141,572,623 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,144 | h | object_storage_log_setup.h | /*
* $Id$
*
* objectStorageLogSetup.h, Initialize the logging mechanism in objectStorage.
*
*
*
*/
#ifndef _object_storage_log_setup_h
#define _object_storage_log_setup_h
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <syslog.h>
#include <boost/noncopyable.hpp>
#include <boost/filesystem/o... |
2aa6f821976bea337b00acc7e255e98479922072 | 73a6c73fa08a4fc7aabcc6bb705d2e71132685b3 | /src/libs/transaction_common/include/keto/transaction_common/SignedTransactionHelper.hpp | a2250b98f7c053f519491c14530f41fe0488776c | [
"MIT"
] | permissive | blockspacer/keto | 2f6ff979a9dc9513943bf9cedb4a302a70a2b66a | dbe32916a3bbc92fa0bbcb97d9de493d7ed63fd8 | refs/heads/master | 2021-02-15T06:48:08.661393 | 2018-05-22T14:01:34 | 2018-05-22T14:01:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,202 | hpp | SignedTransactionHelper.hpp | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: SignedTransactionHelper.hpp
* Author: ubuntu
*
* Created on April 3, 2018, 9:39 AM
*/
#ifndef SIGNEDTRANSACTIONHEL... |
c271d758986e7d78f9a496213184937c849170ad | 2e9c9c10104d2a1fadbd6a4b8c4538f9056cb93a | /schc.cpp | acc997981eaf1a82b4364a87165da5a2797cd8b0 | [
"BSD-3-Clause"
] | permissive | JesusSanchez456/SCHC_Client | ed02e311a64bdec9097e3b0aeae7c97826a375dc | 28aaaf58b3e53a2cdbf20d4f3432d2b549916b57 | refs/heads/master | 2023-03-29T00:10:01.155021 | 2021-03-31T16:21:28 | 2021-03-31T16:21:28 | 353,416,714 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,311 | cpp | schc.cpp | /*
* Copyright (c) 2018, Department of Information and Communication Engineering.
* University of Murcia. 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 co... |
2fe62706ed2b82d39d4e0e76c13eba5ad9a413e2 | ca33442a06291fe8b2d89cf2a00595b64bc17168 | /include/DecisionTree.hpp | 7c67b949575e18af43d4a1deb648f263eb69d915 | [] | no_license | tsenmu/kaadugal | 09382f5886affc875bc5de8fba2042f0ba932e3a | 605224851e3244af40b06b0620134c6a801e81dd | refs/heads/master | 2020-04-05T19:02:37.035428 | 2015-03-26T18:33:24 | 2015-03-26T18:33:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,034 | hpp | DecisionTree.hpp | #ifndef _DECISIONTREE_HPP_
#define _DECISIONTREE_HPP_
#include <vector>
#include <stdexcept>
#include "DecisionNode.hpp"
#include "Abstract/AbstractDataSet.hpp"
namespace Kaadugal
{
// T: AbstractFeatureResponse which is the feature response function or weak learner
// S: AbstractStatistics which contains so... |
9b2925b4ebc00ca00ba63436398db660ac5dd498 | 08a40030d730be6dd3f0985c3f586cc5b52c2a8f | /4.cpp | 3175d8682b982d7e54dc7e6d0172d2de3433075a | [] | no_license | jojiboy334/lafex | 5a52319ac15db74e6e3d8a5e4d86f35031a611b9 | 96d0e3b7d8a5b4921eb10a406aba7556dc60c07e | refs/heads/master | 2020-05-18T00:34:02.244625 | 2019-05-12T16:57:24 | 2019-05-12T16:57:24 | 184,066,798 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 763 | cpp | 4.cpp | #include <iostream>
using namespace std;
int main(void)
{
cout << "My heart's in the Highlands, my heart is not here\n"
<< "My heart's in the Highlands, a-chasing the deer\n"
<< "A - chasing the wild deer, and following the roe\n"
<< "My heart's in the Highlands wherever I go.\n"
<< "Farewell to the Highlands... |
b57d16ebfd38cad8e7f7a37c96a94d228fa22bd2 | da75006947c5ca13d76263a672657656057fd45c | /mainwindow.cpp | abbbb190a7b3b84bd53943f05464d43470a19433 | [] | no_license | planprm/threadsqt | 600658c0d7fe279d6913d76ae47cbca409ed7da2 | c1508e03046afa83c5d27894e1b00215bfa938c3 | refs/heads/master | 2020-03-22T08:09:32.700280 | 2018-07-04T17:11:38 | 2018-07-04T17:11:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,235 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
thread1 = new mythread();
thread2 = new mythread();
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::on_pus... |
30a4666d8b2c7b3ff531bbf112a740e187ff93be | e764d2c779a4c99fac505b6ff9eeba713ba4cc4a | /DirectStaticV.hpp | 4a297757c9c4787c3bacb933b6bfe469e21d06ba | [] | no_license | mgomezch/Pekomin | 77e591ba9ad1fd2c157f1df85e8161e0c223ab3f | fa2897c3f8af85ff5069e89a6c8d127cb44ee149 | refs/heads/master | 2021-01-10T20:33:01.151243 | 2012-02-03T22:18:38 | 2012-02-03T22:18:38 | 1,720,772 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 403 | hpp | DirectStaticV.hpp | #ifndef DIRECTSTATICV_HPP
#define DIRECTSTATICV_HPP
#include <vector>
#include "Behavior.hpp"
#include "Triple.hpp"
#define DirectStaticV_CALL_NAME getPos
class DirectStaticV : public virtual Behavior {
public:
DirectStaticV(std::string name);
virtual std::vector<Triple> Dir... |
7cf26ec5f248e7dc0d09c30acfa997ac576311bc | 76418b18abecbaad8592fa5c8525c0d5d8cb9e71 | /main tugas1.cpp | 03bf6fd1c1db2028af83dae32de863760acfc423 | [] | no_license | IcaNissolekha/tugas-praktikum-1 | 8fe1ee524c48128567553f0995b9d3e1d5d4d669 | 3dbe15d09664c9ce2f225ea938bcfdc75cbd73c9 | refs/heads/main | 2022-12-19T17:53:41.570595 | 2020-10-11T11:13:02 | 2020-10-11T11:13:02 | 303,100,804 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,567 | cpp | main tugas1.cpp | /*billing warnet*/
/*ica nissolekha*/
/*20051397064*/
#include <iostream>
/*run this program using the console pauser or add your own getch,system("pause")or input loop*/
using namespace std;
int main(int argc, char** argv)
{
int j1jam,j1menit,j1detik,j2jam,j2menit,j2detik,jumlahdetik,jumlahbayar,selisi... |
fde6b4cd5cb695534b5b8e09c1f007626228c316 | 25b2bfbc91dba186eafbd57260909ce4335ee167 | /LibMergeFS/NsError.hpp | bba2f5ae5508d8dfeff32260fde52cecf138de7b | [
"MIT"
] | permissive | SegaraRai/MergeFS | 2c8f1ad891feddcec40b452422ea2ecc6a9d857d | d28f8b0934b36fffc1b05149dbfcaa88b75b19a7 | refs/heads/main | 2023-01-11T08:48:34.095875 | 2022-12-30T03:40:59 | 2022-12-30T03:40:59 | 170,087,632 | 4 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 426 | hpp | NsError.hpp | #pragma once
#include <stdexcept>
#include <Windows.h>
class NsError : public std::runtime_error {
const NTSTATUS status;
protected:
NsError(NTSTATUS status, const char* string);
public:
NsError(NTSTATUS status);
NTSTATUS GetStatus() const;
operator NTSTATUS() const;
};
class W32Error : public NsErro... |
2f70f318f1c20fd043dde50d9e0a7ff2bbc40050 | 7a5bae16524ea2f59aab249dbae4d9788ce49e97 | /2097_조약돌.cpp | 640899114de51872cb4c6d6d685d1354e876236b | [] | no_license | tuktik/backjoon | 25ec144661cd90e004b833890c9e7192e8a838aa | 1bd2cd2573cdc66240c755708bf58a1a26710f57 | refs/heads/master | 2021-01-21T13:04:04.872267 | 2016-04-14T11:45:51 | 2016-04-14T11:45:51 | 48,376,274 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,012 | cpp | 2097_조약돌.cpp | #include <iostream>
using namespace std;
int main()
{
int inputNum;
cin >> inputNum;
int num = 1;
while (inputNum>num*num)
{
num *= 10;
}
int prev = num/10;
int next = num;
int pivot = (prev + next) / 2;
bool is_squareNum = false;
while (1)
{
//cout << prev << " " << next << " " << pivot << endl;... |
80b8409b63b771f1ab9e3aa12646a24cdce8e14d | cb8ffc89cea8fc1cfb54ec043bbaabb5b844dbb2 | /DLSim/MathTools.h | 11f3ddcaca2c3f849c6175acfda0205c794d27cf | [] | no_license | legharir/DLSim | be6f8ca494c5d452f3ab88eb34843017ff9ff4e1 | cbf7d60f1a4d02c3a6e259ac4177dbefe45cd81d | refs/heads/main | 2023-09-05T21:38:26.190698 | 2021-11-18T05:33:42 | 2021-11-18T05:33:42 | 429,954,558 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 146 | h | MathTools.h | #pragma once
#include <QPoint>
#include <QLine>
namespace MathTools
{
qreal avg(qreal p1, qreal p2);
QPointF midpoint(const QLineF& line);
}; |
9a9c3c8e47e8121a649e1ab0477694dc2a2ab7e1 | b56e0be82c6c633b5f4a95bf9f31adcb1429fd53 | /cpp/sparsematrix.cpp | 15119e5435211afea3b0db528b931342bc4d786b | [] | no_license | etsangsplk/sparseheatmap | 078c2c7ccca89e6c04bb6f4f3ffe1c097bcd7eaf | 258de1f5fa8625efaa1f3ba01c047be05d907ef2 | refs/heads/master | 2020-05-28T05:37:40.538855 | 2017-08-14T22:00:57 | 2017-08-14T22:00:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,085 | cpp | sparsematrix.cpp | #include "sparsematrix.h"
#include "colorengine.h"
#include "lodepng.h"
#include <stddef.h>
#include <node.h>
#include <math.h>
#include <iostream>
/**
* Constructor for a new sparse matrix
*/
Sparsematrix::Sparsematrix(int w, int h, int bw, int bh, int lt, unsigned int *bdata, int db, int fl, int tpl, int tpt, int ... |
9c4af3d99eee6572256abfd491cac594a83d1685 | 012cb90d1fe9db585e90a98907b5634a4dd10ca4 | /src/plugins/mi_audioengine/tools/mi_audioengine_scopedsettingschange.h | 46d26b5598e219901b7dd3235e6a50743978e607 | [] | no_license | andy-fillebrown/audiocarver | 6d9fed1a05400efc6b2b2464a10dce8f5d490bba | 3a5d79c82d350193f28df86c2cb0fe9b114d79bd | refs/heads/master | 2020-05-22T10:21:28.696699 | 2015-04-26T11:08:43 | 2015-04-26T11:08:43 | 186,297,278 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,550 | h | mi_audioengine_scopedsettingschange.h | /**************************************************************************
**
** This file is part of AudioCarver
**
** Copyright (c) 2013 Andrew Fillebrown.
**
** Contact: Andy Fillebrown (andy.fillebrown@gmail.com)
**
** This file may be used under the terms of the GNU Lesser General Public
** License version 2.1 as... |
f338f03d6b55d44ff322d53aa7781e275c08a27f | d8596f9b43425c490f99677d3efc3fc1f17d1351 | /Lista 6/Q11/Q11 - Ary.cpp | b28b1c7c183cfe0399d9973c2dc260949787183e | [
"MIT"
] | permissive | jhonatheberson/data-structure | 3b2a4eb56ac684626e9ca4132d70ac9d88ba2e9f | 0f0411228df817bb9e9849fa92772f0f94766db2 | refs/heads/master | 2021-06-22T21:40:00.437822 | 2021-04-25T16:54:39 | 2021-04-25T16:54:39 | 214,277,258 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,750 | cpp | Q11 - Ary.cpp | #include <stdio.h>
#include <stdlib.h>
#define MAX 10 // máximo do vetor de células (ver na função main)
/*
Estrutura célula contendo os seguintes campos:
- valor
- linha e coluna (posição da célula)
- ponteiro para o próximo elemento
- ponteiro para o elemento anterior
*/
typedef struct celula
{
int valor;... |
8f29817251ece168905d992210ee5cd056b0819a | 2c948211ead22820c13e3ba0f7c3e58ab23f3850 | /src/Primitives.cpp | a1bf6c802039175d60690508bcfe3eade2b9e06e | [] | no_license | Aakash1312/CS421_Project | 45a2f9f7ea782fe9c2957f3152bc395dbe30c955 | bf40792e76438753d43cd8173046a395fad3f2c2 | refs/heads/master | 2020-03-09T03:14:00.761230 | 2018-04-08T18:55:39 | 2018-04-08T18:55:39 | 128,560,297 | 0 | 1 | null | 2018-04-08T18:55:40 | 2018-04-07T19:16:50 | C++ | UTF-8 | C++ | false | false | 14,023 | cpp | Primitives.cpp | /*
* Primitive.cpp
*
* Created on: Feb 19, 2009
* Author: njoubert
* Modified: sidch
*/
#include "Primitives.hpp"
Primitive::Primitive(RGB const & c, Material const & m, Mat4 const & modelToWorld)
{
c_ = c;
m_ = m;
modelToWorld_ = modelToWorld;
worldToModel_ = modelToWorld.inverse();
}
Primi... |
76550a5e42511c69f44b2e42f144d5fd6357f098 | b8c47ade3553b715f03dc2dcef87eacfc4519354 | /src/main.cpp | 964b8d7eba376b570d763a875cf15df1d67835c1 | [] | no_license | dorislee80/gbenchmark_example | 93d7d3700ce96e94adb9e421fe72018c4223cd92 | 2fb0240ac8b1db91a6f35edd2e7cac004aca8c9b | refs/heads/master | 2020-04-07T07:06:28.571050 | 2018-11-20T05:52:32 | 2018-11-20T05:52:32 | 158,163,885 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 177 | cpp | main.cpp | #include <iostream>
#include <string>
#include "conversion.h"
int main(int argc, char** argv) {
std::cout << gbenchmarkexample::IntToString(123) << std::endl;
return 0;
} |
902c03b1e6a98bbc5e403e28215b3848611320a9 | 9b727ccbf91d12bbe10adb050784c04b4753758c | /ZOJ/vol14/ZOJ_2313.cpp | 5d637350760e0e5cc64ca3ba837d93a36067e74c | [] | no_license | codeAligned/acm-icpc-1 | b57ab179228f2acebaef01082fe6b67b0cae6403 | 090acaeb3705b6cf48790b977514965b22f6d43f | refs/heads/master | 2020-09-19T19:39:30.929711 | 2015-10-06T15:13:12 | 2015-10-06T15:13:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 929 | cpp | ZOJ_2313.cpp | #include <cstdio>
#include <cstring>
const int MAXN=2005;
char num[MAXN];
int ans[MAXN];
int n;
void dec(int o)
{
ans[n]-=o;
int i=n;
while (ans[i]<0)
{
ans[i-1]-=1;
ans[i]+=10;
i--;
}
while (!ans[ans[0]]) ans[0]++;
}
int main()
{
int test;
scanf("%d", &test);
while (test--)
{
scanf("%s", num);
... |
6225e4e3c16380e3b1d7d01acb31df5c5cfa1fdf | c85df9a1ad627707fc603f40f7df056af16900c9 | /source/settings/SettingsPrompts.cpp | e82536c2f2cd0a55ad42d5155980c1d6c13585c1 | [] | no_license | wiidev/usbloadergx | 28b582c2c8231ca7f313a321a134d6784358a770 | e25c4e96430524c080767679b0c4a0d7595412a8 | refs/heads/enhanced | 2023-08-11T18:47:12.728031 | 2023-01-07T23:30:02 | 2023-01-07T23:30:02 | 204,522,898 | 313 | 124 | null | 2023-07-21T17:06:18 | 2019-08-26T17:05:59 | C | UTF-8 | C++ | false | false | 9,211 | cpp | SettingsPrompts.cpp | #include <gccore.h>
#include <unistd.h>
#include <string.h>
#include "language/gettext.h"
#include "language/UpdateLanguage.h"
#include "prompts/PromptWindows.h"
#include "prompts/ProgressWindow.h"
#include "GUI/gui.h"
#include "GUI/gui_optionbrowser.h"
#include "settings/CSettings.h"
#include "settings/GameTitles.h"
... |
3583ae9cc3f64798604fe34fb848821be7167c0c | 6ff36a97f6d13e2d772658240c4a490d14095040 | /StorageObj.cpp | 4f4607acb923956b39e5331487ec7722912de0b7 | [] | no_license | rivitna/OLE2Viewer | 9ed362a71ef894641b8d92d00971cbb61ab41ebd | 0fd22f2d9a2377d10b8392da7383c6e4f3fb749b | refs/heads/master | 2022-01-21T20:29:09.319330 | 2021-12-30T13:34:40 | 2021-12-30T13:34:40 | 214,134,179 | 3 | 1 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 37,490 | cpp | StorageObj.cpp | //---------------------------------------------------------------------------
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <windows.h>
#include <malloc.h>
#include <memory.h>
#include "StrUtils.h"
#include "FileUtil.h"
#include "OLE2Type.h"
#include "OLE2CF.h"
#includ... |
497b1d9c56f223f65f605bfb78805a40c0ab1d0f | c3099f0394ff2abc937801e895e209779a07a0fc | /output/wzgSXX.cpp | 288d320d8a834b3789335edfd6443201d898844f | [] | no_license | sehe/ideone_slurp | d9307b9591f63c531a454b9809e1c60cdd7d04b0 | 2936fda7aa5a49921e599f8fccc586047eb760fd | refs/heads/master | 2020-05-18T19:07:22.729233 | 2014-03-17T23:29:48 | 2014-03-17T23:29:48 | 17,847,331 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,213 | cpp | wzgSXX.cpp | // error: OK
// langId: 44
// langName: C++11
// langVersion: gcc-4.8.1
// time: 0
// date: 2013-08-07 14:33:36
// status: 0
// result: 0
// memory: 0
// signal: 0
// public: false
// ------------------------------------------------
#include <boost/variant.hpp>
#include <boost/spirit/include/karma.hpp>
namespace karma... |
7b4db0564d29786ad7e3f9641e622fc64537c1a2 | 6adb44aaf4460a3da37c1454eb3aaa97f6699dc9 | /OnlineShopping/OnlineShopping/User.h | 3a02109d9c69c041ea70b5eeaafdc9d240c1a451 | [] | no_license | EvanFarry/SW-Arch-Assignment3 | b6b45ec319b0620781c7ed07dc7360a552fab5ad | 640cd7146535b1f7962304a21c3ebd05f188566d | refs/heads/master | 2021-04-15T19:01:08.213220 | 2016-09-13T16:39:30 | 2016-09-13T16:39:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 984 | h | User.h | #pragma once
/*
Consists of User and Admin functionality.
*/
class User {
public:
string name;
User();
User(string name);
void Login(Database db);
};
User::User(void) {}
User::User(string name) {
this->name = name;
}
void User::Login(Database db) {
char input[100];
cout << "Welcome, " << this->name << "!"... |
2a96ea441032f5e1e4ef575849b3dd1d3995618a | 8d11e9aa1c0a4cf39c30837672d5c07cb36034ff | /cash_dispenser.h | cc70f0e74d09a7dc8bde4febd96149a5fe4512d4 | [] | no_license | dandelionn/ATM | 2eb0fc9c7bfd8375a9a82986f52fe2b577661a95 | 2c4957a61e4b1215b4f746e4e9225ace990cf067 | refs/heads/master | 2021-06-26T11:08:32.159121 | 2020-11-18T18:56:43 | 2020-11-18T18:56:43 | 134,469,893 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,050 | h | cash_dispenser.h | #ifndef CASH_DISPENSER_H_INCLUDED
#define CASH_DISPENSER_H_INCLUDED
#include <fstream>
#include "display.h"
using namespace std;
const int vb[5]={500,200,100,50,10}; ///valorile bancnotelor in ordine descrescatoare
const int nrmaxb[5]={10,25,50,20,10}; ///nr maxim de bancnote de un anumit tip pe care a... |
2ade62b5a1f45df13f523cedf9e8fdec967c5fc9 | 8a40b7b049e901059cb31a757d49e8f92f4dc1fe | /cxx_pubsub/LibKN/include/LibKN/OfflineQ.h | ea017b45442192786e5827f8b9c7b1b0aad7f22a | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | gburd/mod_pubsub | 9c65a53cd04f9ab77306c3c49fe2aeb14e0c282a | 9abcdb07b02b7979bf4538ac8047783100ecb7bc | refs/heads/master | 2021-05-26T18:10:07.142318 | 2004-09-26T19:43:56 | 2004-09-26T19:43:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,166 | h | OfflineQ.h | /*
Copyright 2000-2004 KnowNow, Inc. All rights reserved.
@KNOWNOW_LICENSE_START@
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 cond... |
219811fc423287977dee1fd2fa5333ce7d8c29be | c7952699f6f980e1845fa46bb30e0cdac4e6b8ae | /Classes/Player.h | 158efd9ba32a50e06e2b529b316e0658859a3b9d | [] | no_license | Ghardian/CastingSpells | a254260f4fa4f653a3e9d45d98e322d5e1ccc6f0 | eb28b1dc7f238df92157c568eabbf6813f250711 | refs/heads/master | 2021-01-10T17:31:19.284017 | 2016-01-13T17:48:15 | 2016-01-13T17:48:15 | 44,616,969 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 201 | h | Player.h | #ifndef _PLAYER_H_
#define _PLAYER_H_
#include "Wizard.h"
#include <string>
namespace CastingSpells
{
class Player: public Wizard
{
public:
void TrySpell(std::string spellname);
};
}
#endif
|
e4c9b6e6b5662d5e26c79ec31f975c86d3c0e5eb | 911e1d7596af7d8196f609b0e2023f98961260de | /baekjoon/C++/1021.cpp | ef840579ea249762fe341b4008d8e5d6cd015fd9 | [] | no_license | not-over-yet/algorithms | 001df8939e67a725f95170261e3c47065ab90157 | 221d2eb07ffd47e44219647d1120d450307c32b5 | refs/heads/master | 2022-11-10T11:10:47.181615 | 2020-06-25T08:48:09 | 2020-06-25T08:48:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,598 | cpp | 1021.cpp | #include <iostream>
#include <vector>
#include <deque>
using namespace std;
int main(void) {
ios::sync_with_stdio(0);
cin.tie(0);
deque<int> dq;
vector<int> find;
int n, f, s = 0; cin >> n >> f;
for (int i = 0; i < n; i++)
dq.push_back(0);
for (int i = 0, buf; i < f; i++) {
... |
b16990df0b5f36356c1108f5cb5efd99380bb17c | e070c2c76bee2d4db180553083b896ce7da83f31 | /DwarfPlayerState.h | 3fef0575d2275afdfdd3c36bfd125bf633297820 | [] | no_license | blockheads/DwarfGame | fe24c525cadd68ee64072676e5deb42570b16516 | 812e50aa5b37d609d175614bec9da257ba30a105 | refs/heads/master | 2021-05-12T16:43:06.482079 | 2018-01-10T23:31:23 | 2018-01-10T23:31:23 | 117,023,959 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,174 | h | DwarfPlayerState.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "GameFramework/PlayerState.h"
#include "DwarfPlayerState.generated.h"
// forward dec
class ADworf;
/**
* State of each player in the game
* This is where all of a players dwarves should be kept, and the state for ... |
d25689fce6542471e3b622fb0ec6ad0f0153c162 | f3facba9b8fc4e0c34ebb723f70556063488696f | /include/General/mathexpression.h | a1b1626076c1fd2127e06a0850b368becb69c552 | [] | no_license | annequeentina/OpendTect | 9af07b099d8e738cf0bfefbd4f4c77fb8db9d370 | b728451cb04b8a3f3ec0355c5317ef4ebf62cb3f | refs/heads/master | 2021-01-02T08:59:20.285242 | 2017-08-02T11:52:16 | 2017-08-02T11:52:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,018 | h | mathexpression.h | #pragma once
/*+
________________________________________________________________________
(C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
Author: Kristofer Tingdahl
Date: 10-12-1999
________________________________________________________________________
-*/
#include "ge... |
c9dc376b54414818f9a9636ecab35cdbcf92fef8 | fa659fbb3ae62b3d16c551a6499776c2ec75e017 | /Object-oriented programming/c++ labs/lab7/lab7-1/main.cpp | a3074090d465aa7b89cf45a5b56d57eb07f788b2 | [] | no_license | stepanplaunov/bmstu-ics9 | fe5683371a7806154c735085b075ba94132afd05 | d3b1294626512fa0faf347c14856c65d7fa663d6 | refs/heads/master | 2023-03-16T03:32:06.492608 | 2020-09-17T08:54:09 | 2020-09-17T08:54:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 688 | cpp | main.cpp | #include <iostream>
#include "declaration.h"
std::ostream& operator<< (std::ostream& os, Matrix& matr){
for (int i=0; i<matr.m; i++)
for (int j=0; j<matr.n; j++){
os << matr[i][j].numerator << "/";
os << matr[i][j].denominator << std::endl;
}
return os;
}
int main() {
... |
5f9df55d87c48df59d52fd1c216979e6dfaf1777 | ee1a1eb207a53de1e744380e1480e8744542645f | /gui/checkbox.cpp | 0a5fb3ed73aeb07e36b9ea84fc744fbc4157ad5a | [] | no_license | lg6s/game | c4f56fe792095290c198c15e5b0c5e6dea3b450f | 269d60bcffcced6a89e5a3a7c1b67431cf19696b | refs/heads/master | 2022-02-08T03:13:33.879709 | 2013-12-07T23:34:02 | 2013-12-07T23:34:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,250 | cpp | checkbox.cpp | #include "checkbox.h"
#include "resource.h"
CheckBox::CheckBox(Resource &res):Button(res) {
state = false;
imgCheck = res.pixmap("gui/ckBox");
}
void CheckBox::setChecked( bool c ) {
if( state!=c ){
//state = c;
emitClick();
}
}
bool CheckBox::isClicked() const {
return state;
}
Tempest::... |
909f116870b11f32cdf5f6b3b57751203157e539 | f2400ecd988133667f4d2f4ce76e88d078448720 | /platform/OSP/BundleAdmin/src/BundleInfoHandler.h | 40cca7ac261f8ab0d635f2630f4e23f9931b91e0 | [
"Apache-2.0"
] | permissive | jacklicn/macchina.io | 29b2daf8fc093ef54cc60fbb5473c3df75024332 | d36d987b46efedc6fb5e2138711cdc2d5c33ffe8 | refs/heads/develop | 2020-05-02T03:10:26.000459 | 2020-02-29T18:11:23 | 2020-02-29T18:11:23 | 50,550,172 | 1 | 0 | null | 2016-03-14T07:02:40 | 2016-01-28T02:59:52 | C++ | UTF-8 | C++ | false | false | 1,223 | h | BundleInfoHandler.h | //
// BundleInfoHandler.h
//
// Copyright (c) 2007-2014, Applied Informatics Software Engineering GmbH.
// All rights reserved.
//
// SPDX-License-Identifier: Apache-2.0
//
#ifndef BundleAdmin_BundleInfoHandler_INCLUDED
#define BundleAdmin_BundleInfoHandler_INCLUDED
#include "RequestHandler.h"
#include <vector>
c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.