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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
95550b316479a0319930a2de2ccf5c2aec65759a | 0cb85cd0c88a9b9f0cca4472742c2bf9febef2d8 | /ProductCore/basegui/wingui/WinCtrls.h | ea5d67a60b521876d1e63e4c9affbda1d2bad8c3 | [] | no_license | seth1002/antivirus-1 | 9dfbadc68e16e51f141ac8b3bb283c1d25792572 | 3752a3b20e1a8390f0889f6192ee6b851e99e8a4 | refs/heads/master | 2020-07-15T00:30:19.131934 | 2016-07-21T13:59:11 | 2016-07-21T13:59:11 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 74,254 | h | WinCtrls.h | // WinCtrls.h: interface for the CWinCtrls class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_WINCTRLS_H__5401AE0F_38DD_4399_883A_F072CC926781__INCLUDED_)
#define AFX_WINCTRLS_H__5401AE0F_38DD_4399_883A_F072CC926781__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#e... |
ada200cb6c6db2fc35ef1680146c1547efebed04 | a6156b7fb1378cf8791eef0ff290cc7f9e08aa3f | /pat/1015/1015.cpp | b2f50e3b19c3df062dff2154e2bd624d5144a2d1 | [] | no_license | mazewu1102/oj | 757a7712eaf8ad04f81e354f4e92f01a45b0dea6 | b76703b31f0afecd9a4446cd452d0a683623731b | refs/heads/master | 2021-01-13T17:06:03.388209 | 2014-09-24T16:29:07 | 2014-09-24T16:29:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 792 | cpp | 1015.cpp | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <stack>
using namespace std;
bool is_prime(int n)
{
for (int i = 2; i < n / 2; ++i)
if (n % i == 0)
return false;
return true;
}
bool judge(int n, int d)
{
int len = 0;
stack<int> si;
for (; n... |
937f72fe71ad65a347a8018b3eb9d33087f36eb8 | 471a76e984af91c107b5650e37983e94b185de9b | /src/service/common/io_module/connector_initializer.h | a227e20aa68a60b95096d9337be6d835847675e6 | [] | no_license | KennethMilner/LTN | 5b1592c8c6a9efd7c3483395c6ce2f54b1e3bd78 | a9209ee9981d12bdff8335f969497ecd5949a9ab | refs/heads/master | 2021-01-16T09:00:40.508218 | 2020-02-25T18:10:37 | 2020-02-25T18:10:37 | 243,051,167 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 348 | h | connector_initializer.h | #pragma once
#include <io/io_handler_initializer.hpp>
#include "client_connector_handler.h"
using namespace micro::core;
class connector_initializer : public io_handler_initializer
{
public:
void init(context_chain & chain)
{
chain.add_last("client connector handler", std::make_shared<client_conn... |
d9bdff51e1e83896f95090837212d9b3a75e22c1 | 9678aa59a00ab4058424b6f10348c1de870e807c | /gtkWidget.cpp | 82f4b27823a452048a632824615fb9ec7d3b7aea | [] | no_license | reaperofchaos/GladeParrser | 7e2479d225780236e73c5788039e73cc9ca77d36 | fb30ed5eef35ff51ee9437648d9b2c01b591b34e | refs/heads/master | 2021-03-17T04:59:53.955015 | 2020-04-20T18:05:40 | 2020-04-20T18:05:40 | 246,962,750 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 243 | cpp | gtkWidget.cpp | #include "gtkWidget.h"
void GtkWidget::setType(std::string type)
{
GtkWidget::type = type;
};
std::string GtkWidget::getType()
{
return GtkWidget::type;
}
std::string GtkWidget::getID()
{
return GtkWidget::id;
}
|
d9df1c59c8d35cb2b302b2d2eb9e30a26a02d4bf | d72e73bf1e5bcc7458deaee5ba5f3a9c575d1219 | /Lab02/Lab02/ajohar5_lab02_q1.cpp | 09e1c912be1e0e9f1a8196b93dfbf4b9b0e2a220 | [] | no_license | kevin-johar/CPlusPlus_Assignments | 66619e6a172907bd3753454d7714c2401ee615f2 | c5eeef3fb1c9a24a6f5c86f72d110a376efe14cb | refs/heads/master | 2021-09-09T15:05:11.326670 | 2018-03-17T08:09:05 | 2018-03-17T08:09:05 | 125,609,026 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,560 | cpp | ajohar5_lab02_q1.cpp | // ajohar5_lab02_q1.cpp
// Lab02
//
// Created by Kevin Johar on 2018-02-12.
// Copyright © 2018 Kevin Johar. all rights reserved.
//Name: Kevin Johar
//Student Number: 250 969 894
//Section: 006
//Email: ajohar5@uwo.ca
#include <iostream>
#include <string>
using std::cout;
using std::cin;
using std::endl;
//Mai... |
65e5312920aa082fbf9b0f092926672d83b4d2ba | 46dc0e6e18ab6ffc1c4816d399a8d07c65caa9f8 | /GeantFast/src/FCCTrackingAction.cc | a60dd477580d9c90dca504c066e06d3ba5edef94 | [] | no_license | degrutto/FCCSW | 6e2bea60ec47f70a8a1939bbe5cfc3c78af8eeda | a484057871def7d388c5a98d219d2807696d74bc | refs/heads/master | 2020-12-31T06:31:31.554671 | 2015-04-15T13:47:53 | 2015-04-15T13:47:53 | 27,708,049 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,097 | cc | FCCTrackingAction.cc | #include "FCCTrackingAction.hh"
#include "FCCEventInformation.hh"
#include "FCCPrimaryParticleInformation.hh"
#include "FCCOutput.hh"
#include "G4ThreeVector.hh"
#include "G4EventManager.hh"
#include "G4RunManager.hh"
#include "Randomize.hh"
#include "G4SystemOfUnits.hh"
#include "G4TrackingManager.hh"
#include <ioma... |
c5205017af2cba1efa4489b863fc92fc30c84f14 | 2ba3af942830df1177d971210efb5028e948e6f9 | /include/SceneStart.h | 4134a4c846d6045f2e2488cc39bb77667626f989 | [] | no_license | sxysxy/HfCloud | e8443cb81b87fae10b4a82a65f48961e18707b0b | 506721b0d5e3c90c66accea80f4e38973ed3c002 | refs/heads/master | 2021-01-20T09:36:53.534928 | 2017-06-03T11:15:12 | 2017-06-03T11:15:12 | 90,265,794 | 11 | 7 | null | 2017-06-03T11:15:13 | 2017-05-04T13:20:17 | C++ | UTF-8 | C++ | false | false | 354 | h | SceneStart.h | #ifndef _SCENESTART_H
#define _SCENESTART_H
#include "Graphics.h"
#include "Scene.h"
using namespace HfCloud;
// the start scene
class SceneStart : public Scene{
public:
virtual void start_scene(); //when start the scene
virtual void end_scene(); //and when end
virtual void update(); //u... |
9b17b58b4538befc13c78996d9f86e1620488876 | c2a7688012c783d014f131edbc10856027f492d4 | /mcdatacreator/EditorCode/DockspaceMenu.h | 1950ea50a8a18372a32666edda09f9486058c861 | [] | no_license | Crashaholic/mcdatacreator | e301919ff4e8fd2829a9ad15b7c01ac1854b7b4b | 7feb4898f16c498e1a7d425a0ba99fcd4d111e00 | refs/heads/master | 2023-06-08T17:16:22.024807 | 2021-06-23T05:16:42 | 2021-06-23T05:16:42 | 283,416,649 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,271 | h | DockspaceMenu.h | #pragma once
#include <imgui/imgui.h>
#include <imgui/include/imgui_impl_opengl3.h>
#include <imgui/include/imgui_impl_glfw.h>
#include "imgui_internal.h"
#include <imgui/misc/cpp/imgui_stdlib.h>
#include "Windows/ShowWindowBools.h"
#include "Windows/OpenProjectWindow.h"
#include "Windows/NewNamespaceWindow.h"
#inclu... |
9e68526286fee9349780f6679233923a8c31222e | d9a66840bf09cb926de8ee1749a47acc11bcdd05 | /old/Codeforces/131/A.cpp | 1d40a392b839dd8f187e20ef11804dd4d0adfd72 | [
"Unlicense"
] | permissive | not522/CompetitiveProgramming | b632603a49d3fec5e0815458bd2c5f355e96a84f | a900a09bf1057d37d08ddc7090a9c8b8f099dc74 | refs/heads/master | 2023-05-12T12:14:57.888297 | 2023-05-07T07:36:29 | 2023-05-07T07:36:29 | 129,512,758 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 235 | cpp | A.cpp | #include "template.hpp"
int main() {
string s;
cin >> s;
if (all_of(s.begin() + 1, s.end(), [](char c){return isupper(c);})) {
transform(s.begin(), s.end(), s.begin(), [](char c){return c ^ 32;});
}
cout << s << endl;
}
|
f45e35ed3c502736319e91b6e29f6c7c12226aab | 00dcd1e50986ede7209287fc9f9741580559f923 | /regex_engine/Token.cpp | 4707179e30fc9d17cd8bb1585f85ee518b184bcf | [] | no_license | zywww/regex_engine | 927108605f6b0874843492c4eb9d1414d83e609f | 2bb2b97d163051f80cca6be01c82be3620a1b825 | refs/heads/master | 2020-03-26T08:47:34.630830 | 2016-12-23T07:43:29 | 2016-12-23T07:43:29 | 61,547,331 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 104 | cpp | Token.cpp | #include "Token.h"
Token::Token(TokenType type, std::string lexeme) : type_(type), lexeme_(lexeme)
{
} |
3a6104b77b7e8845cd201e77c70216f2f7bf2da8 | b472d1b03a8efb55b62ceb848bf02f314699dd58 | /principle diagonal.cpp | bd8abce283ac685d7f4c021b2e09525aae1a71a2 | [] | no_license | Raj-588/CP_code | d9ae230bb9197f66ee9af0afabfc500f36a81602 | ca87bf14dcac8d0496574623201a6c8070f2f14b | refs/heads/main | 2023-05-29T11:36:50.199919 | 2021-06-12T12:42:00 | 2021-06-12T12:42:00 | 376,286,930 | 0 | 0 | null | null | null | null | MacCentralEurope | C++ | false | false | 832 | cpp | principle diagonal.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int arr[4][4]= { {2,1,4,3},
{1,6,3,5},
{9,7,6,6},
{4,8,3,9}};
for(int i=0;i<4;i++)
{
for(int j=0;j<4;j++)
{
cout<<arr[i][j]<<" ";
}
cout<<endl;
}
cout<<endl;
for(int ... |
c91e51d5314ee6bc67b6fa8c6fccdcecf361d1b7 | 3411e29f72a38d61223662245753877b6c7850e5 | /src/breslin/letter/letter.cpp | 38ec53fdf96de6c17df6916139982f8a18266597 | [] | no_license | sanan1986/baseapplication | 4550bfa62ad85af316f4db9ce5cd73892cd694ae | f9be781782d92b139d3504cb52010ad6609f338b | refs/heads/master | 2020-12-29T23:24:49.036361 | 2013-11-02T22:07:18 | 2013-11-02T22:07:18 | 238,774,855 | 1 | 0 | null | 2020-02-06T20:09:57 | 2020-02-06T20:09:56 | null | UTF-8 | C++ | false | false | 327 | cpp | letter.cpp | #include "letter.h"
#include "../baseentity/baseEntity.h"
#include "../message/message.h"
//log
#include "../serverside/tdreamsock/dreamSockLog.h"
//message
#include "../message/message.h"
Letter::Letter(BaseEntity* receiver, Message* message)
{
mReceiver = receiver;
mMessage = message;
}
Letter::~Letter(... |
244c8e7f43657c5d326f24c131ebd53cd32527df | 166facd141cfb42292db448578fbd0bdf9b795ac | /ImasiEngine/Source/Graphics/Programs/Shader.cpp | 1f0609ec8db33aef275a0038efa866abf5f6e129 | [] | no_license | imasiprojects/ImasiEngine | 7dbcd75d2b4215e603a1bf8bcac1dd586d2ae921 | 03fe836099aec3d567fb16aefa923c245ddab9f8 | refs/heads/master | 2021-09-10T01:59:12.237695 | 2021-09-02T23:04:40 | 2021-09-02T23:04:40 | 161,831,834 | 1 | 1 | null | 2021-09-02T23:04:41 | 2018-12-14T19:33:20 | C++ | UTF-8 | C++ | false | false | 2,228 | cpp | Shader.cpp | #include "Shader.hpp"
#include <map>
#include <GL/glew.h>
#include "../Opengl/OpenglHelper.hpp"
#include "../../Utils/Logger.hpp"
namespace ImasiEngine
{
Shader::Shader()
: GLObject()
{
}
Shader::Shader(Shader&& shader) noexcept
: GLObject(std::move(shader))
{
... |
f65cba3b238ca7c6f6806c782766ad00468a7e11 | 15419e6b114d5b89e78648dbae52a0aae276b673 | /UVa/Comptitive Programming/Ch-05 Math/04 Number Theory/04 Finding Prime Factors/UVa 516 - Prime Land - AC.cpp | 8d8a14a7b50087f3b4ecaec1056c14e2d288fd2a | [] | no_license | ImnIrdst/ICPC-Practice-2015-TiZii | 7cde07617d8ebf90dc8a4baec4d9faec49f79d13 | 73bb0f84e7a003e154d685fa598002f8b9498878 | refs/heads/master | 2021-01-10T16:29:34.490848 | 2016-04-08T04:13:37 | 2016-04-08T04:13:37 | 55,749,815 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,059 | cpp | UVa 516 - Prime Land - AC.cpp | #include <iostream>
#include <cstdio>
#include <math.h>
#include <string>
#include <sstream>
#include <vector>
#include <algorithm>
#include <functional>
using namespace std;
typedef long long int int64;
typedef pair<int64,int64> pii;
int main(){
string str;
while(getline(cin,str) && str!="0"){
strin... |
6bc7edf17ad1b1c0fc0fc491e5886dc8509cde21 | 48eee7c1cdbfcb7e06851fb036ebfb5566849d63 | /ov3/src/mastermind.cpp | 8761ab88acc1a7d0d1478f0e5b4663f8a516f5cd | [] | no_license | johnolos/TDT4102 | 82d6e2d38126ffdb1f1504f1d01d9fdb2e4c5571 | e21270df26086fe1be41144bda91fe99b165f5f7 | refs/heads/master | 2021-01-22T00:58:32.134301 | 2013-11-13T11:03:03 | 2013-11-13T11:03:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,201 | cpp | mastermind.cpp | #include <iostream>
#include <random>
#include "mastermind.h"
using namespace std;
const int SIZE = 4;
const int LETTERS = 6;
char randomChar() {
int randNumber = rand() % LETTERS + 65;
return (char)randNumber;
}
void readInput(char table[]) {
int i = 0;
char guessedChar;
cout << "Guess " << SIZE << " chars fro... |
f0d27a109bc6de2b28dfb424bbed6ad18abbe3ec | f3310695876806b13d5410a463779e50635bfdae | /arregloPacientes.cpp | 25f62686d226f5112d9c742526a529e7f0c072cd | [] | no_license | andremg10/PruebaHospi | 0e64ed752b9555ccd972dd6e20bdb6738a84a129 | 255c4791d6e81f54e08fbe65004758107e842f50 | refs/heads/master | 2020-08-01T11:52:40.813806 | 2019-09-26T03:07:19 | 2019-09-26T03:07:19 | 210,988,853 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,337 | cpp | arregloPacientes.cpp | /*
* 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: arregloPacientes.cpp
* Author: andre
*
* Created on 9 de septiembre de 2019, 07:39 PM
*/
#include <cs... |
a8cb5b538d78af965db206158b840d5f299ed2a4 | 93db044eb00abbd18b75eeb0617dd1e054f2b199 | /Engine/Source/Runtime/Engine/Private/InstancedFoliage.cpp | 52069da43603f8734310a5ca1253083cd7521328 | [] | no_license | cadviz/AHRUnrealEngine | 9c003bf9988d58ece42be4af030ec6ec092cd12e | e0c1a65098f4a86b4d0538535b5a85dd1544fd30 | refs/heads/release | 2021-01-01T15:59:31.497876 | 2015-04-13T22:03:55 | 2015-04-13T22:03:55 | 34,035,641 | 9 | 19 | null | 2015-04-16T05:12:05 | 2015-04-16T05:12:05 | null | UTF-8 | C++ | false | false | 47,855 | cpp | InstancedFoliage.cpp | // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
InstancedFoliage.cpp: Instanced foliage implementation.
=============================================================================*/
#include "EnginePrivate.h"
#include "Sta... |
38b8d7944b8d5ed16c341f35e1d4563c58fd2de1 | fc718d08bd934266fce33896d42d0a8641af37b8 | /LL_Dialog.cpp | 8a190019b734467479a5649d15366ecf76a99741 | [] | no_license | ixchow/Preshack | de690b1c500e9389f54db524a82ac920e028e6fd | d8aa0f8ef8cca8d5b1aed759a92202de8355934e | refs/heads/master | 2021-06-08T12:05:10.338455 | 2017-08-25T03:36:42 | 2017-08-25T03:36:42 | 4,300,347 | 15 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,552 | cpp | LL_Dialog.cpp | #include "LL_Dialog.hpp"
#include "LL_LayeringModule.hpp"
#include <Graphics/GLSLShader.hpp>
#include <cassert>
REQUIRE_GL_EXTENSION(GL_ARB_shader_objects);
namespace {
Module *create_module(const std::string ¶ms_in) {
return new LayersDialog();
}
class Fred {
public:
Fred() {
register_module("ll_di... |
862d193026087473860eac695273d2936ccba4c4 | e6dcd5fe12d4a17947bb754e0dc76d9fc0731626 | /xll/src/xlscala/register/ioregister.cpp | e3579cff7b7ce9b693d0d5a5139b17ab96559dd9 | [] | no_license | slapedra/xlscala | 574bbb6e4b6e2721a97c889ab085173b503b0e2f | 171857e789827af7be82273e7c34ac0486dccd28 | refs/heads/master | 2020-06-24T00:33:06.324321 | 2019-07-25T09:13:07 | 2019-07-25T09:13:07 | 198,793,176 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 626 | cpp | ioregister.cpp |
#include <xlscala/register/register.hpp>
namespace xlscala {
void registerIOFunctions() {
// tyFullIO
registerXLFunction(
L"XLScala - io",
L"xlsFullIO",
XL_LPOPER+XL_LPOPER+XL_LPOPER+XL_UNCALCED+XL_VOLATILE,
L"xlsFullIO",
L"tranpose, trigger",
L"return full io output",
L"transpose output ... |
e5c851b34470d769134dff9f62499e2d933ac671 | da5c560a121c3f4b2898eabb4025996592fe2a81 | /StdAfx.h | fd05535c7625f3ecd3dd1d32064caf55c248528c | [
"MIT"
] | permissive | powerxjq/mfcmapi | 289bdaa44f9322f27ac107729996f49da045ee16 | 435476b0791a7e3d89d354c038c5952f2703d296 | refs/heads/master | 2020-04-16T17:45:28.098283 | 2019-01-11T15:04:57 | 2019-01-11T15:04:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,936 | h | StdAfx.h | #pragma once
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
#pragma warning(push)
#pragma warning(disable : 4995)
#include <cstdio>
#include <cstring>
#include <cwchar>
#pragma warning(pop)
#include <list>
#include <algorithm>
// Speed up our string conversions for output
#ifd... |
c2becc44f64973ba11e253687567a8e16f943600 | 402c348e2c99433e8f682ceafe457f7426beaf21 | /websmith/String.h | 77eb0641ca967b1aa70bfca059488edeef759712 | [] | no_license | TGlad/webSmith | 1629965397632a4365fdb6a093b305078a838c5f | 81e383bc2400f644f37bf39f0faf160b6a417085 | refs/heads/master | 2021-01-22T17:47:33.502362 | 2014-11-15T06:21:32 | 2014-11-15T06:21:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,122 | h | String.h | #pragma once
#include <string.h>
// Warning, Strings may reference shared character buffers. If you use this class it is up to you to
// remember whether the String is using a shared buffer or its own. If in doubt create it new with newString()
// Also: strings are stored on the stack, so do not reallocate the stri... |
86d0579373330cf7edb32cf1b5d919dbf0627d97 | 0b9b802fed8496d8d66da872b28a20788c1e5f0b | /hackerrank/Magic_Spells_v1/main.cpp | 557eb38fb293d705509b8779b50133877d89b3d6 | [] | no_license | mosorio-byte/cplusplusSources | e6503e44d4fb0c74d08748fcd9c5f00fd6f5aaae | 769c133d9d3a3341cbefa706144749289a73991c | refs/heads/master | 2023-03-06T06:55:56.002383 | 2023-03-06T02:16:11 | 2023-03-06T02:16:11 | 145,359,990 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,331 | cpp | main.cpp | /*
* 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: main.cpp
* Author: manuel.osorio
*
* Created on 26 de junio de 2018, 10:52 AM
*/
#include <iostream>
#include <vec... |
b8fb28d6e3c4ef94f1fecf75585f475d4abd1afd | 4754a6074bf8c74e426ec6e42d746fe094a2a944 | /1~4주/구간합.cpp | fdd620c6345d9694e653f38b54e8044ba1d006eb | [] | no_license | lmalma2004/algorithmStudy | 5eb4798dd19d92e272409b78cb8ac6494a135d74 | 8b343b4548e295e13eb3125f18186cdda60f1818 | refs/heads/master | 2021-03-22T17:54:58.217230 | 2020-05-12T13:05:41 | 2020-05-12T13:05:41 | 247,389,437 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,975 | cpp | 구간합.cpp | //배열의 구간 최소 쿼리(RMQ) 문제를 해결하는 구간 트리의 초기화
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int N, M, K;
class RSQ {
public:
int n; //배열의 길이
vector<long long> rangeSum; //각 구간의 합
public:
RSQ(const vector<int>& array) {
n = array.size();
rangeSum.resize(n * 4);
init(array, 0, n - 1... |
494a71164e482f98bbdda95fb137dc56a1e34516 | dbbf75ac033c0e3fccfd3fcb41441c76011a5bd1 | /NMGAME/NinjaGaiden/GunMan.cpp | f838e3d9eb1b071938036b36f67fca1178fb6028 | [] | no_license | trungnqhcm/NijaGaiden | f05a3bf84e9ea72d49f1f09ba04320844e52fca7 | 34af8d6e2aa6b7142dde96bdd134992e19176d56 | refs/heads/master | 2020-05-29T17:12:03.812902 | 2019-05-29T19:37:41 | 2019-05-29T19:37:41 | 189,268,187 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 552 | cpp | GunMan.cpp | #include "GunMan.h"
#define SPEED_X 0.07f
#define SPEED_Y 0.07f
#define MAX_HEIGHT 250.0f
GunMan::GunMan(void) : MovingObject()
{
}
GunMan::GunMan(float x, float y) : MovingObject(x, y, 0, 0, EnumID::gunMan_ID)
{
type = ObjectType::Enemy_Type;
active = false;
}
void GunMan::Update(int dt)
{
sprite->Update(dt);
... |
69cb15eeb3a45e6b325c2650cd6a231fc7e717d4 | 06358eb270d23c4242bfaa24e85bba9ac6d93ecc | /codeforces/359B.cpp | deb30608871fe860875e6d5d1c87bff2c31f7c81 | [] | no_license | dwivedir/coding | e26ea9fd14f7982f0c3d7760b2e38372231abf87 | 4dcb0576c936cd4b6be1d29566a82b91b7925032 | refs/heads/master | 2016-09-09T18:57:08.979659 | 2015-02-10T14:17:25 | 2015-02-10T14:17:25 | 29,722,675 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 240 | cpp | 359B.cpp | #include<iostream>
#include<stdio.h>
using namespace std;
int main()
{
int n,k;
cin>>n>>k;
n *= 2;
while(k--)
{
cout<<n-1<<" "<<n<<" ";
n -= 2;
}
for(int i=1; i<=n; i+=2)
cout<<i+1<<" "<<i<<" ";
return 0;
}
|
cb6a1e8795e43834b53327c15096a16a6bcc35bb | 1ff238216569262dbe3316508be99d02a9d594e4 | /src/output/dummy.cpp | 53d128dda7aa55bf1c48010e341b74ab0cde5aa4 | [
"MIT"
] | permissive | cglogic/sight | f16d520e8c872edc9be7b2b26b503f0050f1641f | 9ffb62cec974bbfa48c58e6168edc40801dafcba | refs/heads/main | 2023-06-20T11:23:28.195913 | 2021-07-10T09:02:30 | 2021-07-10T09:02:30 | 362,887,851 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,611 | cpp | dummy.cpp | #include "dummy.h"
#include <chrono>
#include <glog/logging.h>
namespace Sight::Output {
Dummy::Dummy(const json& config,
size_t id,
std::vector<std::vector<Slot>>& slot,
Queue<uint32_t>& queue) :
Module(config, id),
mSlot(slot),
mQueue(queue) {
if (config.contains("local_... |
90543a11087a9e4838d6924ab1169ce551a809e5 | e5f1facd318402c5d580862fddffcecd047e5c28 | /token.cpp | e4e94a1a85d56d75ea16b1e1f1d979e911a2aa4c | [] | no_license | Radiogag/gotv1 | 85ee2248dd2f7303bf32719d30b6b026f88f636c | bc8c9e203660abb2600286e52c4bb3fec8053e31 | refs/heads/main | 2023-03-27T01:31:02.976482 | 2021-03-26T08:53:37 | 2021-03-26T08:53:37 | 351,718,349 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 391 | cpp | token.cpp | #include "token.h"
token::token(int nhouse, int npos, QString type) : pos(npos), house(nhouse)
{
QString f = "./resources/tokenpics/" + QString::number(house) + "/" + type + ".png";
QFile file(f);
if (!file.open(QIODevice::ReadOnly)) {
qWarning("Cannot open file for reading");
}
pic = new Q... |
fbfdba7e513b305679527c5abe550d71fb0af2be | 25c5da3b6481fd7bcf90fbc11bdfca601f2e72e4 | /plotting.hpp | 054f8847e240b6be7f556dfe24f52c9b437962e4 | [] | no_license | ssnover/clahe | 6c37302f56d1d353688d4131c98a3dd73ff6bdd1 | 13fd97316dd7a4405c975253f17fd3fb7d9fac31 | refs/heads/master | 2022-12-09T08:26:47.806532 | 2020-09-08T18:45:52 | 2020-09-08T18:45:52 | 159,100,957 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 704 | hpp | plotting.hpp | #pragma once
#include "utility.hpp"
namespace cv
{
class Mat;
} // namespace cv
/*
* Takes in a histogram and parameters for the size of the output plot image
* and creates the plot image.
*/
int createHistogramPlot(ImageHistogram const & histogram,
unsigned int width,
... |
5f9f92e3b7612cf7fdc0e1525121d6f506618d70 | 0433887e1bdce27d20bfc2c658adeac945fe5bc7 | /Controller/MazeContoroller.cpp | 786a5baa4a8b83b61a5b8324609d2d315df7d4a3 | [] | no_license | Yamarbel/Maze2D | 56e36f4303776da8c595c196830de62740d05d70 | d58e4e4c7c1ba2e17bfaa3bc6d65448833cc1890 | refs/heads/master | 2022-12-17T15:04:52.039589 | 2020-09-23T11:02:51 | 2020-09-23T11:02:51 | 297,937,232 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,087 | cpp | MazeContoroller.cpp | #include "MazeContoroller.h"
using namespace std;
MazeContoroller::MazeContoroller()
{
Commands["dir"] = new DirRequest();
Commands["generate_maze"] = new GenerateRequest();
Commands["display"] = new DisplayRequest();
Commands["save_maze"] = new SaveRequest();
Commands["load_maze"] = new... |
88c59e2e148121ad63253038127bd5a3bf00b7a8 | 7f33ba43b6497f3eef0b69e0a7b1a6f8ea02d382 | /src/sensors/tgSpringCableActuatorSensorInfo.h | c2a5deec6769fdfdc3f216a8acfe5b6818f91c43 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | furlong-cmu/NTRTsim | ce30ac719a0ebd25b5dac5e0a6626863c9c3704d | 96874617cefb0b63f9725751eb5af1ed4f30deae | refs/heads/master | 2020-05-31T12:39:28.805410 | 2019-06-05T03:29:15 | 2019-06-05T03:29:15 | 190,285,545 | 0 | 2 | Apache-2.0 | 2019-06-04T22:03:07 | 2019-06-04T22:03:07 | null | UTF-8 | C++ | false | false | 2,996 | h | tgSpringCableActuatorSensorInfo.h | /*
* Copyright © 2012, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The NASA Tensegrity Robotics Toolkit (NTRT) v1 platform is licensed
* under the Apache License, Version 2.0 (the "License");
* you may not use t... |
baeb463ec72bab6465de7d2d0a6442f016f7f518 | 206245ddca35f83f59f02cb2b57f216f27a68e19 | /Libraries/OccupancyDetection/BaseTask.h | 87e5281949931228f83c1d4a8e52fe54f3fa4c09 | [] | no_license | rohmer/ArduinoRailroad | e8abb334458c9cccd7b2ae283c4cb12852b58c58 | f63c93f04cd4decc10a268e90d1b64c0f0ce46b0 | refs/heads/master | 2021-01-25T03:26:34.595267 | 2015-02-16T21:59:32 | 2015-02-16T21:59:32 | 30,058,724 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 492 | h | BaseTask.h | // BaseTask.h
#ifndef _BASETASK_h
#define _BASETASK_h
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
#include <iterator>
#include <vector>
#include "Logger.h"
class BaseTask
{
protected:
std::vector<byte> taskArguments;
Logger logger;
public:
BaseTask(std:... |
9aa1fa4de20e5a16427978cc8178f356ab0981e0 | e0358ea53be374b3d6ecf27f3bce2b6961a43550 | /src/s2/encoded_s2cell_id_vector_test.cc | 191d7a3500795045c4ee34a4dada35ed70a8ad59 | [
"Apache-2.0"
] | permissive | ericyao2013/google_s2geometry | 9f59b8698faa4305427eb8334f3b9d519c2df944 | 77c4c2454628d66649384faac8fffeb05ea4595c | refs/heads/master | 2020-03-17T09:41:19.812714 | 2018-05-11T19:01:46 | 2018-05-11T19:01:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,518 | cc | encoded_s2cell_id_vector_test.cc | // Copyright 2018 Google Inc. 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 applicable... |
81eef6c44bb0e8ac5eefa20592cf7986a2763788 | 63c17f092bf95bc9daaf92ee05f6a823623f2f9b | /src/dialog.cpp | cab5ace1b86288b25bfa8ff91790753b66585891 | [] | no_license | sodiumda250/bkhdpnl | ba9d36b9b77d23c6cac004ce3c4818d19564eed4 | 52e628f3bc70f38bea4c6287778c3a3d765f37bf | refs/heads/master | 2020-03-31T11:59:52.220401 | 2009-10-20T05:50:43 | 2009-10-20T05:50:43 | 3,039,672 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 8,076 | cpp | dialog.cpp | /*
* $Id: dialog.cpp,v 1.5 2005/05/26 04:09:08 woods Exp $
* dialog.cpp : ダイアログ用のプロシージャ定義
*/
static char id[] = "$Id: dialog.cpp,v 1.5 2005/05/26 04:09:08 woods Exp $";
#include <stdio.h>
#include "resource.h"
#include "dialog.h"
#include "bkhdpnl.h"
#include "panel.h"
// グローバル変数:
/// 現在のインスタンス
static HINSTANCE ... |
22e7a48b8ae3f82cdabb525877e69de3c4763c62 | d09edf43ce35f205497d9aac1711848a27616aaa | /source/TeamContextualMenu.cpp | ca7c83c2f611fdf60500fa9d4fedb5c8e156cec6 | [] | no_license | HaikuArchives/XRayDock | 522bf4f58f81319162bd1d734fcf0e07df944815 | d1d386c3152aff620d0a92b7ced43584f4d4aa89 | refs/heads/master | 2021-01-20T09:01:29.973778 | 2014-08-07T17:29:31 | 2014-08-07T17:29:31 | 12,199,630 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,225 | cpp | TeamContextualMenu.cpp | /* TeamContextualMenu.cpp par etno 2008 */
#include "TeamContextualMenu.h"
#ifndef XDOCK_APP_H
#include "XDockApp.h"
#endif
TeamContextualMenu::TeamContextualMenu()
: BPopUpMenu("Team")
{
minimize_all = new BMenuItem("Minimize All The Team", new BMessage(DOCK_MINIMIZE_ALL));
bring_all_to_front = new BMenuItem("Bri... |
c8dc435d5fda2fca34541082693d1746f9fdfd31 | e5f4f37d941ceb8145d65f92028cc54658b1ac01 | /Code/Engine/Core/World/Implementation/WorldData.cpp | 8969646ef38bcf351d4d79ee719857a313e7f139 | [
"MIT"
] | permissive | ezEngine/ezEngine | 19983d2733a5409fb2665c6c3a0a575dadcefb50 | c46e3b4b2cd46798e4abb4938fbca281c054b039 | refs/heads/dev | 2023-09-06T02:17:28.152665 | 2023-09-05T18:25:43 | 2023-09-05T18:25:43 | 18,179,848 | 1,050 | 165 | MIT | 2023-09-14T21:44:39 | 2014-03-27T15:02:16 | C++ | UTF-8 | C++ | false | false | 13,226 | cpp | WorldData.cpp | #include <Core/CorePCH.h>
#include <Core/ResourceManager/ResourceManager.h>
#include <Core/World/Implementation/WorldData.h>
#include <Core/World/SpatialSystem_RegularGrid.h>
#include <Core/World/World.h>
#include <Foundation/Time/DefaultTimeStepSmoothing.h>
namespace ezInternal
{
class DefaultCoordinateSystemProv... |
fec4b44e97061367615489d23eb6b22f7a966dad | d974ca6744ae597b8c7a705655482ff727960f0d | /practice/networks.cpp | c867d270add787d80c385adc833512ae8941bf0b | [] | no_license | BenzhaminKim/LeetCode_Algorithm | 9fd210e4f4afdd16bd67d2d1e3caebef8792a845 | 09410f71d4a78f10552ad43f8b278fd20c7b936a | refs/heads/main | 2023-04-09T02:01:37.599339 | 2021-04-19T13:58:17 | 2021-04-19T13:58:17 | 333,283,178 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 983 | cpp | networks.cpp | #include <string>
#include <vector>
#include <string.h>
#include <iostream>
using namespace std;
/*
1 1 0
1 1 0
0 0 1
1 1 0
1 1 1
0 1 1
*/
int solution(int n, vector<vector<int>> computers) {
int answer = 0;
int net[n];
int networks = 0;
memset(net,0,sizeof(net));
vector<int> stack;
for(in... |
7fe0bd26adc6dc5e66b9d89592568415c5b8cc7f | f55a97d7e0528cc67a9b849d546541c724652f80 | /src/MeshBuilder.cpp | 73b467e22e363d2109ef44d88ecfb0f5e64ed147 | [] | no_license | Drakoskai/vulkan-renderer | 611fa775dc77eac9e271d6a806a89ba1b5491b05 | 9d094f9bd137865d34dcd5ebb19a548fa8b43367 | refs/heads/master | 2020-12-30T12:44:55.001038 | 2017-10-04T01:19:59 | 2017-10-04T01:19:59 | 91,357,040 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,134 | cpp | MeshBuilder.cpp | #include "MeshBuilder.h"
#include "Util.h"
void PreMesh::SolveAABB() {
const float maxValue = 99999999.0f;
aabbmin = Vec3(maxValue, maxValue, maxValue);
aabbmax = Vec3(-maxValue, -maxValue, -maxValue);
for(size_t v = 0; v < vertex.size(); ++v) {
const Vec3& pos = vertex[v];
if(pos.x > maxValue || pos.y > ma... |
2c6629348604db20d59851f35fa571cad6c31465 | af02bc4013250a9c18947ac26ba28468b239cd96 | /openearthsdk/src/main/cpp/earth/TileManager.cpp | 4a6e47df9d729945c19b70353431aa93140fbdc0 | [
"Unlicense"
] | permissive | MAPSWorks/OpenEarth | 834df34d0f5c982ec906f919952e92f94ea22122 | f30f5fd2d4bb91e00d323f8c8a1d17169a3e8fbb | refs/heads/master | 2020-11-24T15:48:01.364584 | 2019-06-25T11:21:03 | 2019-06-25T11:21:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 72 | cpp | TileManager.cpp | //
// Created by GXSN-Pro on 2017/12/14.
//
#include "TileManager.hpp"
|
ed2b52ad7910ffe6a85c22096b54549440f38b61 | af172028a211cd5ec72b254bbe506cacfe1d9e60 | /FBLua/LuaUtils.cpp | d1d168f18cb5a9a168efd02cdb9c01e24320284d | [] | no_license | fastbird/fastbirdEngine | c99ea03416217696ca048db96da7346c7001d24a | 619e1c3af72a58ff939c3ecba8f5cc56b5ea3144 | refs/heads/master | 2021-01-17T00:26:01.866593 | 2017-06-17T10:21:05 | 2017-06-17T10:21:05 | 22,362,299 | 18 | 6 | null | 2015-12-04T06:32:44 | 2014-07-29T00:17:23 | C++ | UTF-8 | C++ | false | false | 40,425 | cpp | LuaUtils.cpp | /*
-----------------------------------------------------------------------------
This source file is part of fastbird engine
For the latest info, see http://www.jungwan.net/
Copyright (c) 2013-2015 Jungwan Byun
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and a... |
4d7110308bfec9817449ec5f0f9513b21edaef3b | 1859e30178bffa621c73aaeeb28f4168ba3e57d8 | /CharmCPP/benchOutsrc/TestDSEOut.cpp | 5a3e971afd88290bfdcb3035f8188fd1aa475d9d | [] | no_license | JHUISI/auto-tools | a97441e96781523646f8607570a1978417a78135 | 88d20b08dbd2f7a799619ac25986184633af459f | refs/heads/master | 2021-08-29T07:04:06.846700 | 2021-08-23T13:29:55 | 2021-08-23T13:29:55 | 8,965,681 | 21 | 6 | null | 2017-01-23T20:07:52 | 2013-03-23T04:13:24 | Python | UTF-8 | C++ | false | false | 8,887 | cpp | TestDSEOut.cpp | #include "TestDSEOut.h"
void Dsewaters09::setup(CharmList & mpk, CharmList & msk)
{
G1 g;
G1 w;
G1 u;
G1 h;
G1 v;
G1 v1;
G1 v2;
ZR a1;
ZR a2;
ZR b;
ZR alpha;
G1 gb;
G1 ga1;
G1 ga2;
G1 gba1;
G1 gba2;
G1 tau1;
G1 tau2;
G1 tau1b;
G1 tau2b;
... |
18a0b18898e5477b86496dcb1a9f5be3f7ca3087 | 3ef19ce87c2dedb055f19ebc763817e703c09736 | /CBarGraphLayer.cpp | 8c249812af173a8b995833c02041f71252369123 | [] | no_license | Emut/onyon | 2b02bbfc2a34e023bdaf8590e98e58dd377484b9 | 6715916f618f2c11981ec756704ac8355bd264f1 | refs/heads/master | 2022-12-24T16:31:39.581748 | 2020-09-30T18:16:52 | 2020-09-30T18:16:52 | 248,066,781 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,586 | cpp | CBarGraphLayer.cpp | #include "CBarGraphLayer.h"
#include <math.h>
void CBarGraphLayer::Draw(CBuffer<CRGB> buf)
{
m_activeArea = buf.getAreaRect();
int dataCnt = m_data->size();
if (dataCnt < 1)
return;
float maxData = 0;
float minData = 0;
for (int i = 0; i < dataCnt; ++i)
{
CSeriesData *data =... |
7021362b0cbcb1bf5b69b2edc706009700a3879f | 988c484d1242084bf49c5b104d873a33d76825b9 | /B/1065/main_1.cpp | 974dc4a42f5ca196c72e22405244f23b6c79c723 | [] | no_license | yjqiang/pat | de9e7b50df55eb2a2cd6eeae781ac76896fcb736 | 8b459ce087e048cb66954cc160efc5419b2964f2 | refs/heads/master | 2022-04-22T15:43:52.282615 | 2020-04-16T02:09:38 | 2020-04-16T02:09:38 | 242,607,944 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,187 | cpp | main_1.cpp | #define _CRT_SECURE_NO_WARNINGS
#include <vector>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <string>
#include <iostream>
#include <map>
#include <cmath>
#include <climits>
#include <queue>
#include <set>
using namespace std;
map<int, int>couples;
set<int> all_people;
int main() {
int N;
sc... |
56c9f5f81b78bda37b1e1a0e032fee09c56f9ab9 | 02ce7bf627d3e27315fa47df7953e285f32ecae7 | /EvtPostService.cpp | c0cd81d4ffc0167ccd9b80fda5371c5905230df1 | [] | no_license | pabitrad/EventPost | 1332b9b797d4f8afd2cc388f861c76f0d89a077f | 04b1ead09ae0723485ed7a3591615c3fde256549 | refs/heads/master | 2022-10-25T02:49:16.302696 | 2020-06-09T13:23:13 | 2020-06-09T13:23:13 | 263,888,129 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,853 | cpp | EvtPostService.cpp | #include "stdafx.h"
#include "Service.h"
VOID WINAPI ServiceMain(DWORD argc, LPTSTR* argv);
wchar_t g_serviceName[] = L"EvtPost";
wchar_t g_serviceDisplayName[] = L"EvtPost service";
DWORD Install();
DWORD Uninstall();
extern void ReadLogs();
extern void UploadLogs();
int _tmain(int argc, _TCHAR* argv[])
{
if (arg... |
d7cbec8d373d9109f9caa03a9a6104d17458871c | e86fcbd73260f184a678bac683bb4ed687649355 | /src/pydnp3.cpp | e5676660d1b1096e9f96d448c1cb1671a50251bf | [] | no_license | kyle8615/ddd | 5b725b438e004e5670c62cf3d82417e05dc743fa | fa891318224af1d69f248d2fbcf1819d6e230133 | refs/heads/master | 2023-04-09T15:44:32.350679 | 2020-04-29T15:16:25 | 2020-04-29T15:16:25 | 258,099,556 | 0 | 0 | null | 2021-04-20T19:49:04 | 2020-04-23T05:04:17 | C++ | UTF-8 | C++ | false | false | 1,716 | cpp | pydnp3.cpp | #include <pybind11/stl.h>
#include <pybind11/complex.h>
#include <pybind11/functional.h>
#include <pybind11/chrono.h>
#include <map>
namespace py = pybind11;
typedef std::function<py::module&(std::string const &)> ModuleGetter;
// Split pydnp3 into multiple compilation units to reduce memory requirements
void init_... |
34580cb85b68400fc500e1f4c6db03ab1fdafb35 | 42abe286eeda7c909e30273e01f2fcd8af9c476e | /ProjectGame/ProjectGame/Common_Function.h | 3ac19638e31b2b1290068154ea136786258ab8d3 | [] | no_license | hungld2909/project_c- | 723a0f7871022c1a89345a631c8fd8c4c8d79a4d | 13422e77da9e1faee8767a91429f0e1aea1fa215 | refs/heads/master | 2022-11-08T09:53:01.563962 | 2020-06-27T15:15:41 | 2020-06-27T15:15:41 | 275,397,536 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,091 | h | Common_Function.h |
#ifndef COMMON_FUNCTION_H_
#define COMMON_FUNCTION_H_
#include "stdafx.h"
#include <Windows.h>
#include <string>
#include <SDL.h>
#include <SDL_image.h>
#undef main
// khai báo biến const để định dạng các thông số cố định.
const int WIDTH_BACKGROUND = 4800;
const int HEIGHT_BACKGROUND = 600;
const int SCREEN_WIDT... |
038d159e83c8c5f53c570ab96f4ed318ea163c0c | 7ea45377de05a91d447687c53e1a836cfaec4b11 | /spoj/helpbob.cpp | 3780ebedfe1a5e474bf4ea1637caaa996e243f8a | [] | no_license | saikrishna17394/Code | d2b71efe5e3e932824339149008c3ea33dff6acb | 1213f951233a502ae6ecf2df337f340d8d65d498 | refs/heads/master | 2020-05-19T14:16:49.037709 | 2017-01-26T17:17:13 | 2017-01-26T17:17:13 | 24,478,656 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,792 | cpp | helpbob.cpp | #include <iostream>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <cstring>
#include <set>
#include <stack>
#include <vector>
#include <map>
#include <list>
#include <queue>
#define lli long long int
#define ii pair<int,int>
#define mod 1000000007
#define inf 999999999
using namespace std;
inline ... |
95b1cfbc1593b870e98427ad7241161bd8fa3421 | 83eeb714b0c8b3c9e427b7418ae3a2ab7c5b7e1d | /console/include/console.h | 4352d51b06df3893a0cbceb688346559cd115ac1 | [] | no_license | urieken/inet_review | 36c6a54a796098e146480a81a7eef15c695946fe | de38f5e8cdbbc87a1baaaa16e5e87f22edaa817f | refs/heads/master | 2021-01-01T19:39:37.770534 | 2015-08-04T10:00:34 | 2015-08-04T10:00:34 | 40,158,935 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,439 | h | console.h | #ifndef __console_h__
#define __console_h__
#include <string>
typedef struct _console_msgs
{
std::string prompt;
std::string welcome;
std::string exit;
inline _console_msgs()
: prompt("console: ")
, welcome("Starting console")
, exit("Shutting down console"){}
inline _co... |
a3540d24267d3df4841e5848a4feb40ace8f5eab | 9c9628c540a3e4d9322d881be828e0858e4fb00c | /src/GUI/GUIManager.cpp | 1d83dcf6509af36792e1575c0efed9fa9aa69a3f | [
"LicenseRef-scancode-other-permissive"
] | permissive | InDieTasten/--EXP-old- | 7f7726143d53a2bad92bf78dbb242274ca5c53f2 | 6d6229d5638297ba061b188edbbe394df33d70b0 | refs/heads/master | 2021-06-03T03:11:11.840691 | 2016-09-28T19:32:46 | 2016-09-28T19:32:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,785 | cpp | GUIManager.cpp | #include <GUI\GUIManager.hpp>
GUIManager::GUIManager(AssetManager* _assets) : Responsive(_assets)
{
EXP::log("[Info]Constructing GUIManager... " + utils::tostring(this));
assets->addFont("Mono", "C:/Windows/Fonts/lucon.ttf");
assets->getFont("Mono")->load();
assets->addTexture("missing", "./content/stock/te... |
0bae38aca59ebf35d8928c23876f6ee6345d47de | c80b3309477f3718f113d98971910b3f64830cef | /src/Database.cpp | 3b6e99d2a6c92117e6494a96908374db5682140a | [] | no_license | minexew/Glacius | cf093b98957a4a5a228697493f6183918c15b29e | 4c039d9bc66e5e10af70eb5f237b2e6e9e09e2ee | refs/heads/master | 2021-06-16T02:30:47.946222 | 2021-01-16T22:30:23 | 2021-01-16T22:30:23 | 122,851,230 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,962 | cpp | Database.cpp |
#include "Config.hpp"
#include "Database.hpp"
#define Driver_MySQL_mysql
#define Driver_SQLite_sqlite
#ifdef Driver_MySQL_mysql
#include <BlueShine.h>
#endif
namespace Glacius
{
using std::make_unique;
inline String escape( String input )
{
return input.replaceAll( "'", "''" );
}
inlin... |
55198bce5aa162230ff3fca20d724e92d85332a6 | 18ffd9c0da9b26e1a238472f2fb59ccca565c14c | /Test/ActivityListTest.cpp | fd9c4e044117aa1c3176753c06111f8a8dee5a9d | [] | no_license | RalucaBuzamurga/Activity_Tracker | 2d6d145161befb138dfad51df2b0a934edbd5917 | e092a5a69c046aea19e4bf3924b7bb4692454204 | refs/heads/master | 2023-04-12T18:15:40.188216 | 2021-05-04T15:49:58 | 2021-05-04T15:49:58 | 357,254,775 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,513 | cpp | ActivityListTest.cpp | //
// Created by Raluca Michela Buzamurga on 30/04/21.
//
#include "gtest/gtest.h"
#include "Body/ActivityList.h"
#include "Body/Activity.h"
#include "Body/Date.h"
#include "Body/ActivityTime.h"
#include <list>
class ActivityListTest : public ::testing::Test {
protected:
virtual void SetUp() {
activityLi... |
3a641df1cde3f165636243b560744051ac924193 | 1557da887929720f7495cfb09f1baea96d6a9a6b | /Classes/Scenes/ClippingNodeScene.h | 890d2ee89a16b65bb2ade8a6c450b9d83f1fad8f | [] | no_license | DreamZhou/LearnCocos2d-x | 27781bb1615f7928c0bbd54f3042e17e04c154c0 | 3c4725d5da3ea2ec782e5c96e7977a3ea8fa6f20 | refs/heads/master | 2021-05-16T06:11:47.323582 | 2018-02-02T17:36:40 | 2018-02-02T17:36:40 | 103,379,720 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 435 | h | ClippingNodeScene.h | #ifndef _CLIPPING_NODE_SCENE_H__
#define _CLIPPING_NODE_SCENE_H__
#include "Base/BaseScene.h"
class ClippingNodeScene :
public BaseScene
{
public:
static cocos2d::Scene * creatScene();
bool init() override;
void onToucheBegan(const std::vector<cocos2d::Touch*>& touches, cocos2d::Event * unused_event);
void pok... |
aaf710592e4152ed0ce9e61b8e9e43214a7bf5a1 | 0cda2dcf353c9dbb42e7b820861929948b9942ea | /fileedit/2009/AvoidingProduct.cpp | 021f6dad1e1338688eb7a24389d1c15c1456853d | [] | no_license | naoyat/topcoder | 618853a31fa339ac6aa8e7099ceedcdd1eb67c64 | ec1a691cd0f56359f3de899b03eada9efa01f31d | refs/heads/master | 2020-05-30T23:14:10.356754 | 2010-01-17T04:03:52 | 2010-01-17T04:03:52 | 176,567 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,042 | cpp | AvoidingProduct.cpp | // BEGIN CUT HERE
/*
// PROBLEM STATEMENT
//
You are given a set A of integers and a positive integer n. You must find positive integers x, y and z such that their product is as close to n as possible (minimize |n - x * y * z|), and none of them belongs to A. If there are several such triples, find the one with the sm... |
6b12f147bab0f5c510d3949ce445757d18dcc0bd | 8793ab6f455499c6cd164f29e4d01e90b0677f02 | /dsound/src/fullduplexfilter/fullduplexfilter.cpp | 6c65b4e7bcea5202e61ada11e0e7b0dfef840e9d | [] | no_license | BieHDC/mingw_dx7_sdk_samples | 2f9363cd424d1e9fdbfc0d5ec98c5ecbd7b56c45 | 77056be5f78cef607b4801669647551d7a0dc2b1 | refs/heads/master | 2021-05-23T02:08:12.036688 | 2020-04-05T08:12:01 | 2020-04-05T08:12:01 | 253,181,954 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,001 | cpp | fullduplexfilter.cpp | //-----------------------------------------------------------------------------
// File: FullDuplexFilter.cpp
//
// Desc: DirectSound support file for sample showing how to use DirectSound
// to implement full duplex audio and a filter.
//
// Copyright (c) 1999 Microsoft Corp. All rights reserved.
//------------... |
d1229be43f8a0c281e34ddc4cdd3331777e06998 | 27a70bd4b6abba8b21231b425e7f98ae47d582b9 | /class-olympiad/1394/code-forces/628/test.cpp | 364e0fefd191adf114c1dd079fa88e64270cdd79 | [] | no_license | nimacgit/CPP | bc6011176b6a1c840c857fcdaed89df4347bfee9 | da35095c8f3def539f641f959f96d2f3f4d55486 | refs/heads/master | 2020-04-08T00:21:44.668748 | 2018-11-23T15:43:31 | 2018-11-23T15:46:27 | 158,849,201 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 636 | cpp | test.cpp | /*
* =====================================================================================
*
* Filename: test.cpp
*
* Description:
*
* Version: 1.0
* Created: ۱۶/۰۱/۳۱ ۱۹:۱۰:۴۲
* Revision: none
* Compiler: gcc
*
* Author: YOUR NAME (),
* Organization: ... |
1a309347409f6087e1083548a72245bc64b75d83 | ebb635113e638357dbb3456c4fdfb9a50b64ea55 | /main.cpp | f6355bb5b3c74407bbcf0b44ade5d54744b7a78f | [] | no_license | pjheden/mechanical_mirror | 15026e551f4f23049d2e7b176df1f4d80bbaead0 | a2183808e7f52ce2265252a4f357022b6282b4b7 | refs/heads/master | 2022-12-02T04:02:16.024614 | 2020-08-08T20:15:59 | 2020-08-08T20:15:59 | 287,572,350 | 1 | 0 | null | 2020-08-14T16:02:58 | 2020-08-14T16:02:57 | null | UTF-8 | C++ | false | false | 4,108 | cpp | main.cpp | #include <opencv4/opencv2/core.hpp>
#include <opencv4/opencv2/core/mat.hpp>
#include <opencv4/opencv2/core/types.hpp>
#include <stdio.h>
#include <unistd.h>
#include <opencv2/opencv.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#define ever (;;)
#define WHITE_THRESHOLD 25
#define PIXEL_THRESHOLD ... |
20fd8c224b9b3ca14def92e73a5148c5c71bfccc | c5314a77c938ea922732ad57eefeb9f16730352d | /CPlusPlusStandardLibrary/Chapter01/1functor.cpp | d8b6e375c16160cda636b8fba790120c24061857 | [] | no_license | zhangrongzhao/CPlusPlusStandardLibrary | c69cdf6afcf6624b66b222ab832ed0eaa9e7688c | 4af2baba65b818d94e5ed1843d333151ca500215 | refs/heads/master | 2021-01-11T05:42:13.714506 | 2016-12-07T08:01:16 | 2016-12-07T08:01:16 | 71,548,275 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 507 | cpp | 1functor.cpp | #include "stdafx.h"
#include <iostream>
using namespace std;
template<typename T>
struct testplus{
T operator()(const T& x, const T& y) const{ return x + y; }
};
template<typename T>
struct testminus{
T operator()(const T& x, const T& y) const { return x - y; };
};
//int main(){
// testplus<int> plusobj;
// testm... |
c5a32ee3f4ca293f04c23831af26285442ce5697 | c321c14237e6da91bcc2b3f9829a28d33141e460 | /rush00/Ncurses.hpp | a8ad5402d2b38647f649119b501e46ab3ca4bfef | [] | no_license | liderako/Piscine-CPP | 87e84395b5b8288ffb154d85ce3567d37130c12a | 3f3f69c8ef732b25d837512636c96b5d555bb294 | refs/heads/master | 2021-04-09T15:46:05.172885 | 2018-04-12T18:24:38 | 2018-04-12T18:24:38 | 125,656,986 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 464 | hpp | Ncurses.hpp | #ifndef NCURSES_HPP
#define NCURSES_HPP
#include <ncurses.h>
class Ncurses {
private:
void init(void);
int someVarForCanonical;
public:
/* construct and destruct */
Ncurses( void ); /* canonical */
Ncurses( Ncurses const & f ); /* canonical */
~Ncurses( void ); /* canonical */
/* operator */
Ncurses ... |
4f9c6a1c2fd79f74674cbaffa35b9da23a80e5bf | 5dec397cdfda92fe96119a793ced7c24b85a3190 | /include/gfx/model.h | 202fc2e01869c50396d58d9540366102a80c1bde | [
"MIT"
] | permissive | codingwatching/megagruve | 3733d8f4da3a33048c7f731223baab5b30243dae | 22b5315fcf3d13147d60506d12f722bf3aae5cb8 | refs/heads/main | 2023-08-21T05:55:37.541487 | 2021-10-23T06:18:39 | 2021-10-23T06:18:39 | 428,945,927 | 1 | 0 | MIT | 2021-11-17T07:19:43 | 2021-11-17T07:19:42 | null | UTF-8 | C++ | false | false | 351 | h | model.h | #ifndef MODEL_H
#define MODEL_H
class model
{
public:
model();
virtual ~model();
struct vertex
{
wposition position;
glm::vec2 uv;
direction normal;
};
std::vector<vertex> vertexes;
protected:
priv... |
cc1a7834661f141156101d9478ecc890e0174562 | c7f2d6ee34eaa622ccf3f15583f9be2975b1d187 | /MuTauTreelizer/plugins/DiMuDiTauAnalyzer.cc | 01bb40a58c038e832fa9cc4ce17e690db2cf8f7e | [] | no_license | Fengwangdong/MuMuTauTauTreeMaker | 3a54e70efe2b34e30090905a00306d405579e3cf | 6e4c5d2db30ca2873af6b236fa7552e69856f2d6 | refs/heads/master | 2023-02-20T06:15:02.342802 | 2021-02-02T15:03:12 | 2021-02-02T15:03:12 | 180,764,640 | 0 | 4 | null | 2020-03-13T12:47:12 | 2019-04-11T09:59:10 | C++ | UTF-8 | C++ | false | false | 66,466 | cc | DiMuDiTauAnalyzer.cc | // -*- C++ -*-
//
// Package: MuMuChannel/DiMuDiTauAnalyzer
// Class: DiMuDiTauAnalyzer
//
/**\class DiMuDiTauAnalyzer DiMuDiTauAnalyzer.cc MuMuChannel/DiMuDiTauAnalyzer/plugins/DiMuDiTauAnalyzer.cc
Description: [one line class summary]
Implementation:
[Notes on implementation]
*/
//
// Original Autho... |
a4c0138b9cf6cabe4b4188399c77408f98740516 | ffcae3227a8ce86ae97b6d834ca26debd850954d | /include/Components/CollisionComponent.hpp | 295c809a0df82198390a89526eb7d45a6766f1f6 | [
"MIT"
] | permissive | tylerwinkler/msg-game | 14ad0b3282b77722723fdc41840ea62f7e09e0f0 | 7db1ead37b61d54b87224c38d15a8b1d5e348755 | refs/heads/master | 2021-05-02T07:52:10.947231 | 2018-08-06T16:52:28 | 2018-08-06T16:52:28 | 120,840,302 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 770 | hpp | CollisionComponent.hpp | #ifndef MSG_GAME_COMPONENTS_COLLISIONCOMPONENT_HPP
#define MSG_GAME_COMPONENTS_COLLISIONCOMPONENT_HPP
#include <functional>
#include "SFML/Graphics/Rect.hpp"
#include "Components/Component.hpp"
class CollisionComponent : public Component
{
public:
CollisionComponent();
CollisionComponent(int x, int y, int w... |
0d25469344cf720b9c9db880b582774209291a6c | a060ea4d4d6b1cbffbeecce2cc138f70b8c5fbea | /C++/Visteon/9. OOP and UML Fundamentals C++ OOP Aspects/HW/Visteon C++OOP-HW-CowsGame/OOP_Start/inc/Grazing.hpp | bf36727a643f6a89f910f10818be5fe1d7f7717f | [] | no_license | VentsislavSimeonov/C | 8825517a437cb24c195f86b61db8d5292e7fd558 | fbc5718be76247d155f96eb81793da8cf135f8b5 | refs/heads/master | 2021-01-23T22:06:41.821984 | 2017-09-03T20:59:23 | 2017-09-03T20:59:23 | 83,118,343 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 340 | hpp | Grazing.hpp | /*
* Grazing.hpp
*
* Created on: Aug 16, 2016
* Author: venci
*/
#ifndef INC_GRAZING_HPP_
#define INC_GRAZING_HPP_
#include <Animal.hpp>
class Grazing: public Animal {
public:
virtual ~Grazing() {
}
Cell* look() = 0;
Cell* walk() = 0;
protected:
Cell* location;
Strategy* currStrategy;
};
#endif /* ... |
436b002e8edea6299701516fbd3aaf1013653cc8 | 29aea8e10d37857f2d059420f52e7f503eeb85fd | /include/types.hpp | 0449ee995d7da93597be6402db687096c23ac89f | [] | no_license | Squolly/GBEmulator | fdc15578ed6090cbc9d99984ba9afac44e49551d | 62289dea48a1b229b14f5e80d1bbffd02b0ec535 | refs/heads/master | 2021-05-04T10:30:41.002742 | 2017-06-17T15:12:48 | 2017-06-17T15:14:01 | 53,200,520 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 300 | hpp | types.hpp | #ifndef __TYPES_HPP__
#define __TYPES_HPP__
typedef unsigned short ushort;
typedef unsigned char uchar;
typedef unsigned char uint8;
typedef unsigned short uint16;
typedef unsigned int uint32;
typedef signed char sint8;
typedef signed short sint16;
typedef signed int sint32;
#endif |
ebf0eae6411e30f61c9884db2611f303cc580422 | d1cf34b4d5280e33ebcf1cd788b470372fdd5a26 | /livearchive/2008/North_America.Southern_California/4437.cpp | 40e32fa5c8ed80d84144d542e09b57e811c74549 | [] | no_license | watashi/AlgoSolution | 985916ac511892b7e87f38c9b364069f6b51a0ea | bbbebda189c7e74edb104615f9c493d279e4d186 | refs/heads/master | 2023-08-17T17:25:10.748003 | 2023-08-06T04:34:19 | 2023-08-06T04:34:19 | 2,525,282 | 97 | 32 | null | 2020-10-09T18:52:29 | 2011-10-06T10:40:07 | C++ | UTF-8 | C++ | false | false | 3,027 | cpp | 4437.cpp | #include <cctype>
#include <cstdio>
#include <string>
#include <cstring>
using namespace std;
int vTab;
inline int _C(int a, int b) {
static int v[] = {1, 1, 0, 1};
return v[(a << 1) ^ b];
}
inline int _D(int a, int b) {
static int v[] = {1, 1, 1, 0};
return v[(a << 1) ^ b];
}
inline int _E(int a, ... |
650eb044bc3c011e27972279e8b69d52fb6fe884 | fda76b7454f25df25a8fd7d82df838eb190acee9 | /dailyCodingProblem/feb22.cpp | 02a92345fb8761cec6230158069393136de8502d | [] | no_license | laihoj/cplusplus_primer | 400f1752a308ec93f9193f0ff317e1d24a253e45 | e507d0bb210cd04a2cf438f21ad1db4131d2f8d7 | refs/heads/main | 2023-03-28T11:58:48.739065 | 2021-03-30T14:05:33 | 2021-03-30T14:05:33 | 330,633,512 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,433 | cpp | feb22.cpp | /*
This problem was asked by Google.
Suppose we represent our file system by a string in the following manner:
The string "dir\n\tsubdir1\n\tsubdir2\n\t\tfile.ext" represents:
dir
subdir1
subdir2
file.ext
The directory dir contains an empty sub-directory subdir1 and a sub-directory subdir2 containing... |
75e0fca3ee1ac54085020ea5202f642f10603dbf | 81d10aa222d970dc22bbae0b59a423ec4c6ad597 | /examples/HoTTServer/HoTTServer.ino | 0a517d5e5878ed3b59514f336db827f4ed99ea28 | [] | no_license | Matorra/HoTTServer | 224d168daca6c26137c13e234e7985d0c7e589bd | 13b73b6fbbe7300fa2b9816ca2a00b9e8a153f4b | refs/heads/master | 2021-09-04T17:22:13.412863 | 2018-01-20T09:49:25 | 2018-01-20T09:49:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,622 | ino | HoTTServer.ino | #include "HoTTServer.h"
HoTTServer server;
void setup() {
server.registerModule(HoTTServerVario);
server.start();
}
void loop() {
// server.setCellVoltage(1,4.2);
// server.setCellVoltage(2,3.1);
// server.setCellVoltage(3,2.0);
// server.setCellVoltage(4,1.3);
// server.setCellVoltage(5,5.7);
... |
e9140d59c284747734bf43f071d777b2a1fb1461 | 5675c4ca774ff9a80add5b3580853ad0ae956078 | /Tankerfield/Tankerfield/Obj_Item.h | f0d9a29b1b929b1d1f8275b7dbf62fddf688ba13 | [
"MIT"
] | permissive | gamificalostudio/Tankerfield | aad164f0271e9f2adee6e9e1b27aec7c3644e58d | f3801c5286ae836c0fd62392cc14be081b5c74e8 | refs/heads/development | 2022-02-20T14:28:17.481238 | 2019-06-17T14:59:09 | 2019-06-17T14:59:09 | 172,491,751 | 7 | 1 | MIT | 2019-09-08T11:42:32 | 2019-02-25T11:18:35 | C | UTF-8 | C++ | false | false | 311 | h | Obj_Item.h | #ifndef __OBJ_ITEM_H__
#define __OBJ_ITEM_H__
#include "Object.h"
class Obj_Tank;
class Obj_Item : public Object
{
public:
Obj_Item(fPoint pos);
//Called a single time after the creation of the item
virtual bool Use();
public:
Obj_Tank * caster = nullptr;
ItemType type = ItemType::NO_TYPE;
};
#endif |
8905b8b8426da26ca80256a8a5dbd6841a76bacd | 805e359e666537fb783d8efbbb347c86310fd40d | /alice_step2_UAVsCoverage_part4_limitedUAVs/src/GAGeneticAlgorithm.cc | f3d745ea302294a2e7fa8cc097c12aa85c4ba74f | [] | no_license | PascalXie/disasterStratage_management_machineLarning | ec0f54c68a1a16c2d56e3964a5cb1a553c216800 | 03d5402ac6f3f954892dd5c55fa70d5ef8f24065 | refs/heads/master | 2020-10-01T16:40:06.513330 | 2019-12-12T10:33:31 | 2019-12-12T10:33:31 | 227,578,886 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,244 | cc | GAGeneticAlgorithm.cc | #include "GAGeneticAlgorithm.hh"
//-------------------------
// Constructor
//-------------------------
GAGeneticAlgorithm::GAGeneticAlgorithm(string name, int GenerationSize, int IndividualSize, int CrowdPathTimeID)
: name_(name),
GenerationSize_(GenerationSize),
IndividualSize_(IndividualSize)
{
// Tool preparing... |
0017c0fc6bcd8bda778c8b643c4d2c31e1c54e06 | 4f4a8000ce3a08055859dd6334fecc3bf3c53613 | /Code/View/ModificaEvento.h | 1e4bb22c02ba6c54ba72f40ceaf21099cbcad059 | [] | no_license | lucadalmedico/SacredHeart | a032c9c7d134ef62cf8e46b23554a3b7636466bc | a923ede9e6ce49b1df86c6615a7052beed98781d | refs/heads/master | 2021-04-12T04:35:58.221291 | 2018-03-20T10:45:41 | 2018-03-20T10:45:41 | 126,001,859 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 489 | h | ModificaEvento.h | #ifndef MODIFICAEVENTO_H
#define MODIFICAEVENTO_H
#include "AzioniEvento.h"
class ModificaEvento :public AzioniEvento{
Q_OBJECT
private:
shared_ptr<Evento> evento;
public:
ModificaEvento(const shared_ptr<Database>&, const shared_ptr<Evento>);
~ModificaEvento();
private slots:
void Invio();
signals... |
ca4409bec3ca771ecdbe7ce554940021fb5a1f02 | 6c996ca5146bd307a062f38819acec16d710656f | /workspace/iw8/code_source/src/staticmodels/staticmodels_havokshapeinternals.cpp | ba5b4b48e7c7bdf7cee3b4e371891e83a06445a7 | [] | no_license | Omn1z/OpenIW8 | d46f095d4d743d1d8657f7e396e6d3cf944aa562 | 6c01a9548e4d5f7e1185369a62846f2c6f8304ba | refs/heads/main | 2023-08-15T22:43:01.627895 | 2021-10-10T20:44:57 | 2021-10-10T20:44:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,046 | cpp | staticmodels_havokshapeinternals.cpp | /*
==============
StaticModels_HavokShape::updateCachedBounds
==============
*/
bool __fastcall StaticModels_HavokShape::updateCachedBounds(StaticModels_HavokShape *this)
{
return ?updateCachedBounds@StaticModels_HavokShape@@QEAA_NXZ(this);
}
/*
==============
StaticModels_HavokShape::addInstancesToBoundingVolume
=... |
f809d8be4cc84764ae0a4c01bde166d88980b0ce | 951f8f8126843dee0a87348bdc3367b171be8f30 | /ch07/Window_mgr.cpp | 8d89043550bcc763939e1c94c077e67a6806ddfe | [] | no_license | Ryan-Git/cpp-primer | cfbc4f24e9126b1628e5bcb81b8a6236449f341a | 249482276ee8183c72ee302734584f32db557bae | refs/heads/master | 2021-09-03T06:37:39.495947 | 2018-01-06T14:19:03 | 2018-01-06T14:19:03 | 111,973,957 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 646 | cpp | Window_mgr.cpp | //
// Created by Ryan on 01/12/2017.
//
#include "Window_mgr.h"
#include "Screen.h"
void Window_mgr::clear(ScreenIndex i) {
Screen &s = screens[i];
s.contents = std::string(s.height * s.width, ' ');
}
Screen &Screen::move(Screen::Directions cm) {
return (this->*Menu[cm])();
}
Screen::Action Screen::Menu... |
0770075b2127fb987c23db0a8898a7c0457d249c | 903df65564a0a03893e1dc738f7593b34058262d | /test_package/example.cpp | e77a894475e6c49f7c1c0723da8883ee7475628c | [] | no_license | jgsogo/conan-podofo | 3cbbb587590a7a8fcc8a3da497eff914578db995 | 5fa1a3b038c8d95926729751733f53272f2c7cba | refs/heads/master | 2020-03-27T07:50:35.783549 | 2018-10-08T18:40:27 | 2018-10-08T18:40:27 | 146,195,007 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 127 | cpp | example.cpp | #include <iostream>
#include "podofo/podofo.h"
int main() {
std::cout << "Podofo v" << PODOFO_VERSION_STR << std::endl;
}
|
4ec067dbca0852b15f06034a52b8cf490a4888b7 | 0de63bbad4dbb22e9f078380d3cb670f3fd43e3a | /oop/lab2/main.cpp | abbdaa553af4678927ee3eca50a46ce3f6e31cc2 | [] | no_license | znifer/archive | 696ed3455f614425eb43c0bd44542ce8272c3867 | 25213a91b272a2929325e271b0554eacb4a2d4e0 | refs/heads/master | 2021-07-06T20:48:00.720205 | 2021-04-28T11:24:38 | 2021-04-28T11:24:38 | 235,637,953 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,731 | cpp | main.cpp | #include "adressBook.hpp"
#include <locale.h>
int main(){
system("chcp 1251");
int mode, pos, datSize, datMaxSize;
ifstream fset;
fset.open ("settings.txt");
fset >> datSize;
datMaxSize = datSize * 2;
fset.close();
adressField *dat;
dat = (adressField*)malloc(datMaxSize*sizeof(adre... |
c65e6d2f76b026a3d6e2ef5baed8fc911c21e0c0 | 1f50d80a1147e3b631d68cecf534f756688ea1a0 | /test/TestParallelSuite.h | c13b99e7bce725b41c59d21750f808c17cff9e72 | [
"MIT"
] | permissive | doe300/cpptest-lite | 27745bcaece8e8bef8e02c9848d04f93480ce740 | 8e0ab01b32794be0861fd0fb8eb491bb7afe6477 | refs/heads/master | 2022-05-03T09:02:30.799579 | 2022-04-09T06:21:40 | 2022-04-09T06:21:40 | 42,398,765 | 7 | 5 | MIT | 2022-04-02T05:22:37 | 2015-09-13T14:25:55 | C++ | UTF-8 | C++ | false | false | 334 | h | TestParallelSuite.h | /*
* File: TestParallelSuite.h
* Author: daniel
*
* Created on October 16, 2015, 1:10 PM
*/
#ifndef TESTPARALLELSUITE_H
#define TESTPARALLELSUITE_H
#include "TestMacros.h"
#include "TestSuites.h"
class TestParallelSuite : public Test::ParallelSuite
{
public:
TestParallelSuite();
};
#endif /* TESTPARALL... |
7862f0cdfef09aa7879931575e75c514904f80d1 | 4f76464ab556ee36e00881f661bbfdee98d69add | /projects/engine/nex/platform/windows/CrashHandlerWin32.hpp | 64ade2b4a7fae593006285b1bbe252e5c5795ea2 | [] | no_license | Neconspictor/Euclid | 5406c25cf0089d0c11c319349ae4b7a7a437774c | 3a144723d1e79b9670336ec66cbdee875d97a1d6 | refs/heads/master | 2022-04-14T17:48:23.527977 | 2020-04-01T14:47:18 | 2020-04-01T15:14:06 | 251,591,695 | 2 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 4,021 | hpp | CrashHandlerWin32.hpp | #pragma once
#include <nex/platform/windows/StackWalker.h>
#include <cstdio>
#include <tchar.h>
namespace nex {
class StackWalkerToConsole : public StackWalker
{
protected:
virtual void OnOutput(LPCSTR szText) { printf("%s", szText); }
};
// For more info about "PreventSetUnhandledExceptionFilter" see:
// ... |
92604cb3c8eca12a9c34ff7c03cc09bd2c724ca1 | 269086d18c4488219df5ea9ba6e8b3867c9bb12a | /src/expression/funcCallExpr.cpp | 00202299b896e9e364a38be8f20337b05d5596bc | [] | no_license | GorodentsevD/llvm | a43c3e436895dd43f5d19c4eae5bd20ca50ad6dd | b1067f129a5556dc584744d9dc1a53d3832dfd91 | refs/heads/master | 2021-01-01T13:09:50.405775 | 2020-02-12T14:06:03 | 2020-02-12T14:06:03 | 239,293,564 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,217 | cpp | funcCallExpr.cpp | #include "expr.hpp"
/*
======================
FUNC CALL EXPRESSION
======================
*/
llvm::Value *FunctionCallExpression::codegen() {
llvm::Function *callee_function = module->getFunction(m_function);
if (callee_function == nullptr) {
yyerror("Function " + m_function + " doesn't exist");
... |
ab6628b8d8d85878b1d17308b7d477a7740cfae8 | 7f66cc610d50f49a853d1969c7ac461c57ae894f | /sources/tests/test_geometry.cpp | dfb5189cd409cd2087ded93ac0e1921a50732346 | [
"BSD-3-Clause"
] | permissive | shumingcong/seq2map | ec819d42cd092c422152a27f55050629637d56ec | cc8cd20842b3c6db01f73d2e6ecf543189e56891 | refs/heads/master | 2020-04-04T03:33:46.173929 | 2018-04-21T18:54:27 | 2018-04-21T18:54:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,475 | cpp | test_geometry.cpp | #define BOOST_TEST_MODULE "Geometry"
#include <boost/test/unit_test.hpp>
#include <seq2map/geometry.hpp>
using namespace seq2map;
BOOST_AUTO_TEST_CASE(constructors)
{
cv::Mat mat = (cv::Mat_<int>(3, 4) << 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12);
Geometry g0(Geometry::ROW_MAJOR, mat);
Geometry g1(g0);
G... |
d579a384e2c242618f583c01221349280b1ddc96 | 3594cb8a5233130863b86b3a358c1d3ffe246c51 | /3_2.cpp | cb3bc99827b2eabb684073370d370870f7b6b970 | [] | no_license | Latte2017/Cracking_theCoding_interview | 9079f3ac0b2219dfb74fdb67eff01aa26b354db1 | 5fd7261274a146acb3f3f3e415c9eb9f2448b5fb | refs/heads/master | 2022-11-23T21:19:33.004334 | 2020-07-25T14:34:53 | 2020-07-25T14:34:53 | 273,756,557 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 979 | cpp | 3_2.cpp | /*
Design a min stack which in addition to push and pop also returns min in O(1)
*/
#include<iostream>
#include<vector>
using namespace std;
class stk {
private:
vector<int> numbers;
vector<int> min_stk;
int max_size;
public:
stk(int size) {
max_size = size;
}
void push(int num) {
if (numbers.empty()) {
... |
8978cbc0ccb7195d631e37f5daf77598f1723c10 | 0406821f59a5a524ba2fa87fd8a38e4692a8bf0d | /src/com/devsda/gargantua/topcoder/598/500.cpp | 92732994fd6e9aff5a8457a4d85b93ba4c2e1500 | [
"MIT"
] | permissive | devvsda/gargantua | bedc3fa2b8d4e9c5dfb6e28546bafd2c367a611c | 9e41f87d5c73920611bafdfa15047639cb322809 | refs/heads/master | 2021-08-30T13:45:12.457326 | 2017-12-18T06:23:13 | 2017-12-18T06:23:13 | 114,602,637 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,432 | cpp | 500.cpp | #include<iostream>
#include<string>
#include<vector>
#include<map>
#include<algorithm>
#include<cmath>
using namespace std;
/*
class BinPackingEasy {
public :
};
*/
int minBins(vector <int> item) {
int setItems = 0;
int index;
int done[item.size()];
... |
c10263fa59ed7162ee558fe0ba24f6bb8ab24cd0 | b9fec31908e40cfc52400e13f847ac0f4e8c48bb | /matlab tests/DH/libs/obs/include/mrpt/obs/CObservationWirelessPower.h | 4d7f2c0d2d0fb6bedef562434ae1b3803589a992 | [
"BSD-3-Clause"
] | permissive | DavidRicardoGarcia/measurement-of-angles | e7ff8e9f15a9e50bc57c0d45f5807fcf1fa0ec74 | ab16ca937262e05bf9f82dca5f425791cacfa459 | refs/heads/master | 2021-07-16T12:30:53.523173 | 2021-06-24T07:16:49 | 2021-06-24T07:16:49 | 122,414,543 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,287 | h | CObservationWirelessPower.h | /* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... |
28c1bd406f6c0beb40e954ee20936b6e5b05d4b6 | a5f0259469ce8d1dc1fdd9b1dfc9c5df383fe987 | /tool/program_p2_c4.cpp | ac3c823d8ddd76223905f8f502a9fcc97e104879 | [] | no_license | cyt2017/opengl_shaderLesson13_2 | 135ab7afd37db78cdfc772e8765cf25a20c90410 | 118b566572b5d5e7591ddc122ad1fdc93bf224e0 | refs/heads/master | 2021-08-22T20:28:01.949732 | 2017-12-01T06:19:35 | 2017-12-01T06:19:35 | 112,702,732 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,322 | cpp | program_p2_c4.cpp | #include "program_p2_c4.h"
PROGRAM_P2_C4::PROGRAM_P2_C4()
{
_position = -1;
_uv = -1;
_uv1 = -1;
_MVP = -1;
_texMask = -1;
_texBrush1 = -1;
_texBrush2 = -1;
_texBrush3 = -1;
_texBrush4 = -1;
}
bool... |
2daf284e7a737d203169e83edc9e5bc46a8badda | de813a0ee710328aae34d30b5abc4b98146cf894 | /FibonacciFirst.cpp | b0c6cf7cb053bf0b3185f41b8480032e3ce76f6e | [
"MIT"
] | permissive | vanigupta20024/Programming-Challenges | ab885d9af98ce6a967e1b8edbc70da1dcd17ac73 | 578dba33e9f6b04052a503bcb5de9b32f33494a5 | refs/heads/master | 2023-08-31T08:11:54.650564 | 2021-10-07T07:09:19 | 2021-10-07T07:09:19 | 271,755,231 | 21 | 4 | MIT | 2020-08-25T19:17:14 | 2020-06-12T09:03:13 | Python | UTF-8 | C++ | false | false | 1,556 | cpp | FibonacciFirst.cpp | /*
FIBONACCI
Challenge #1, Difficulty #1 (beginner-friendly)
Suggested language: Java, C++, Python
Languages you shouldnt use: Assembler :P
void task() {
Take two integers as input by the user.
Now calculate atleast 10 iterations of the Fibonacci-sequence with the two integers as starting poin... |
75521033a8002809c2d836d600dde3cb00c6fe33 | a941b182980b464611158779b8c0a8b1159f4ee1 | /Adler32/Klasa.cpp | 37ebb1a4a4432b8353c5c7247c6054f3f1df7870 | [] | no_license | Matus942/Adler32 | c5c2cac9a5a7c837ddfddf7b0194e5e72c462e41 | f6e50550a1adbc81a3c8111a6a9a4bc96c7ac5f6 | refs/heads/main | 2023-02-27T00:21:34.326225 | 2021-02-01T06:22:32 | 2021-02-01T06:22:32 | 334,851,330 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 964 | cpp | Klasa.cpp | #include "stdafx.h"
#include "Klasa.h"
unsigned int klasa::licz(string str)
{
unsigned int k = 0;
for (int i = 0; i < str.size(); i++)
{
k = str[i];
A = (A + k)%65521;
B = (B + A)%65521;
}
return (B*65536)+A;
}
void klasa::symuluj(int d)
{
string x = "";
srand(time(NULL));
ofstr... |
722732e988a3516da0c3a9bcb244a083015a032d | d83666da73ec2f4e20ee6ed743c3941923c2d7b2 | /assigment .cpp | 04087f0120ad46e994898eddbf644b2e09863e83 | [] | no_license | Alkhateem75872/newassigment | 9999fcff3ff75184e05b471c9e55a5eb9bc18b98 | e719baffe25276322760cefc0683297e05e87bb8 | refs/heads/master | 2023-01-19T15:04:26.113626 | 2020-12-05T18:09:51 | 2020-12-05T18:09:51 | 318,854,258 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,688 | cpp | assigment .cpp | /* name : mohammed kabashi hammad
class : second
deparment : computer e
*/
#include <iostream>
#include <string>
using namespace std;
class Shape // الكلاس الاب
{
protected :
int width , height , radius; // هنا لادخال البيانات وانواعها
float pi = 3.14 ;
public :
void set_Width() //داله ادخال العرض
... |
9be0725c2b7d0b5306e6bbdbebf0cbff042c0430 | be9873b81f1d35b43bc9dbfaacfd163624177a29 | /main.cpp | 712a42cef0f62e78b3ed6099d3f0ba3f824ac6b3 | [
"MIT"
] | permissive | tuvok302/burroughsLSeriesTapeReader | 367af9f0dc5147d14e1fe06b0241a7dea81f6bf3 | 386d90038af4ff6887206cdb3d1046bc274cb976 | refs/heads/master | 2020-09-26T09:45:08.938218 | 2019-12-06T02:31:39 | 2019-12-06T02:31:39 | 226,229,779 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,276 | cpp | main.cpp | #include <iostream>
#include <fstream>
#include <sys/stat.h>
#include <vector>
#include "SerialPort.h"
#include <bitset>
#include <conio.h>
#define DATA_LENGTH 64 //send 512 byte blobs of data to the arduino at a time
using namespace std;
char* portName = "\\\\.\\COM9";
SerialPort *arduino;
int mai... |
6ffe83438f90bd24e10f06c229ac17538917953a | 0f174c0938f269e8adb2b36e227867f534cfeed8 | /SFRTestDemo/sfr.h | 8895ebc58575dd2e5800cfc80ddc04328a393c41 | [] | no_license | lnengbo/sfrTest | fccc3fab6c97c263523a7fac285d20fdc6147f0a | 43b761940dd32bf84df1e0d3fa39dcd0ac0247a6 | refs/heads/master | 2023-05-09T07:50:03.204547 | 2021-06-08T02:31:54 | 2021-06-08T02:31:54 | 374,859,551 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 203 | h | sfr.h | #pragma once
#include "opencv2/opencv.hpp"
#include <vector>
#define M_PI 3.1415
int SFRCalculation(cv::Mat &ROI, double gamma,std::vector<double> &resVec,std::vector<double>&,std::vector<double>&);
|
0af99c30dcc28a1704a461c2c4fe9f9fba4d5707 | a1809f8abdb7d0d5bbf847b076df207400e7b08a | /Simpsons Hit&Run/game/libs/pure3d/pddi/GameCube/gcrefractionshader.cpp | aabe821ca1240addaa8facc206dc9028e0ccf776 | [] | no_license | RolphWoggom/shr.tar | 556cca3ff89fff3ff46a77b32a16bebca85acabf | 147796d55e69f490fb001f8cbdb9bf7de9e556ad | refs/heads/master | 2023-07-03T19:15:13.649803 | 2021-08-27T22:24:13 | 2021-08-27T22:24:13 | 400,380,551 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,107 | cpp | gcrefractionshader.cpp | //=============================================================================
// Copyright (c) 2002 Radical Games Ltd. All rights reserved.
//=============================================================================
#include <pddi/gamecube/gcrefractionshader.hpp>
#include <pddi/gamecube/gctex.hpp>
#incl... |
4aa4d4d23d1c37b802bb886ab83935438d996d27 | 2e3b8e766956b5d0cf15be181979a2e869da37cd | /src/Core/Geometry/VertexDistance.cpp | 841d4efb1c64616768641cc4f13624e07169c820 | [
"Apache-2.0"
] | permissive | benardp/Radium-Engine | 71a921f481cc1f737dec2fe5b955813a448c0ba5 | 3bc6fcafb31d6f1a32be839913ada226c8ba9a3c | refs/heads/master | 2021-09-11T17:24:10.631591 | 2021-09-01T12:34:50 | 2021-09-01T12:34:50 | 214,979,558 | 0 | 1 | Apache-2.0 | 2020-10-02T07:49:57 | 2019-10-14T07:43:11 | C++ | UTF-8 | C++ | false | false | 1,761 | cpp | VertexDistance.cpp | #include <Core/Geometry/VertexDistance.hpp>
namespace Ra {
namespace Core {
namespace Geometry {
void vertexDistance( const VectorArray<Vector3>& v0,
const VectorArray<Vector3>& v1,
std::vector<Scalar>& sqrDist,
Scalar& sqrMin,
Scalar... |
3bfb76b19e966e9d58be24d62b437fd17de83f6c | cc07d76ea85c48087898af08aca15acd0523c0ac | /Firmeware/EnsembleSix/EnsembleSix.ino | d3104277385c1a28bcb1397fca6e121903dc004f | [
"MIT"
] | permissive | Sonoscopia/Phobos | 4c9540307e63eaa4a675622db630cf171fcd2aae | 5f420055d18f2776db2e68ef79ae80f345ab77dd | refs/heads/master | 2020-06-30T20:13:12.284804 | 2017-06-26T14:22:11 | 2017-06-26T14:22:11 | 74,355,175 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,256 | ino | EnsembleSix.ino | /* PHOBOS - EnsembleFive firmware v.0.3 (20.06.2017)
*
* using:
* Arduino v1.8.0
* MIDI_Library v.4.3.1 by fortyseveneffects
* Servo Library v.1.1.2
* EEPROM Library v.2.0.0
*
* plays:
* A - 2 sevos striking pendulums
* B - 4 lights controlled by relays
*/
#include <EEPROM.h>
#include <Servo.h>
#inclu... |
75e48eb0c966a871cc61cd9b583a9c50947de06a | 236f97fcc4c598167fc6872b9be9057768762323 | /sketch_may27a/sketch_may27a.ino | be80db794d22e97931e4a25fbf572759534df2c6 | [] | no_license | cgardan99/physical_variables_monitoring | 92847102c1266bba81fa030e5db8161446cd2920 | 5fbea49e0733e81b06ea0a18c1154cf055ec0daf | refs/heads/main | 2023-05-26T11:02:24.675455 | 2021-06-15T23:41:26 | 2021-06-15T23:41:26 | 376,620,523 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,537 | ino | sketch_may27a.ino |
#include <DHT.h>
#include <WiFi.h>
#include <HTTPClient.h>
// Definimos el pin digital donde se conecta el sensor
#define DHTPIN 4
// Dependiendo del tipo de sensor
#define DHTTYPE DHT11
// Pin digital del sensor de vibración
#define vs 5
// Definimos el pin digital donde se conecta el sensor de movimien... |
ae99418bdbf87b8beb6b7f275616db441fefebc9 | 8f129ee9745e1464bce580712be6f97af15c8c29 | /FilmBuff/Movie.h | c80cc3083044e52d6225090a9c75665d1f25b9d0 | [] | no_license | FilmBuffProject/FilmBuff | a0d5784c25eb08d7ff25689336e943024a8ad532 | e4ad90dba48ada477f7e96ee312c2a1748a17ff8 | refs/heads/main | 2023-02-02T23:25:37.778080 | 2020-12-21T19:00:34 | 2020-12-21T19:00:34 | 314,633,979 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 391 | h | Movie.h | #pragma once
#include <string>
using namespace std;
class Movie
{
private:
string title;
string genre;
string description;
int year;
double score;
public:
Movie();
Movie(string _title, int _year, string _genre, string _description, double _score);
string getTitle() const;
string getGenre() const;
string get... |
973a6e2e1ae2648c4edd8e9302e1955d1a60e264 | 01e013db1632e0302ae9f4ba3b5cee5e6782b1ac | /Sensor/fsr_sensor_board_dual/fsr_sensor_board_dual.ino | 7dbdf06434b1be381a9a988bff5b3fa245a75303 | [] | no_license | seihan/feetback | 8c9e2fed2bf5b2b812370a2870428f5be4dc90cf | f077655bf3d8c1d7e88cf85f50a4c7dc81725845 | refs/heads/master | 2022-10-14T01:54:33.071320 | 2021-10-12T16:17:28 | 2021-10-12T16:31:28 | 96,529,175 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,709 | ino | fsr_sensor_board_dual.ino | /*********************************************************************
This is an example for our nRF52 based Bluefruit LE modules
Pick one up today in the adafruit shop!
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
produ... |
ecc553111e57cc4985e803cb6ae334917754d7a7 | ca07c9746711f554983e9fbafa577087729a070f | /WorkerMoney.cpp | 63dc26bf382dbff7db37b8040d5aecdd8e34c66b | [] | no_license | LionOpeter/TheBank | 77cd095ff1655fea81ceb152fca6ce8b5c7a81ba | fd1ab535ba4ffdc40fd0a4870d9c16f3dc454d86 | refs/heads/master | 2021-06-26T02:03:33.075209 | 2020-11-18T14:25:45 | 2020-11-18T14:25:45 | 159,335,665 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,009 | cpp | WorkerMoney.cpp | //============================================================================
// Name : WorkerMoney.cpp
// Author : LironT
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
... |
9ea0b35c04ffb7803cc392a725b3cf4688ab9e0d | c7c6fb590e9eb4c01a3872fff856dd62c747c5bb | /boj/11052_PS_card.cpp | 1ec00729006794d6d52eb979fb1df25871e5f600 | [] | no_license | r3dzone/Algorithm | 60d51cd00fdf86b845c936dfad3077b7b9fb04ee | 29a4fcf40b0cfff2b6dc848fe72f83209c32b782 | refs/heads/master | 2023-05-13T20:02:40.901720 | 2023-05-05T13:52:25 | 2023-05-05T13:52:25 | 224,964,196 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 499 | cpp | 11052_PS_card.cpp | #include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
const int MAXN = 1e3;
int memo[MAXN+5];
int arr[MAXN+5];
int n;
int DP(int x){
if(x <= 0) return 0;
if(x == 1) return arr[x];
int& ret = memo[x];
if(ret != -1) return ret;
int tmp = 0;
for(int i = 1; i <= x ; i++)
tmp = max(DP(... |
f10c1805ad25ec7fcba97661877e93dd29b5f8d1 | 9b5a1dac6cb8dbcf052193aaff14087407abfd16 | /Project 3/Main.cpp | 1be8bf50558aaacc1910a78de9562e0f85d04269 | [] | no_license | TjayCargle/Project-3 | 61ec6e175afb027065cb22e1d0f89a8b577663d7 | 16d110cc9f6b59a1d85557f42b71e580fd853ad9 | refs/heads/master | 2020-12-25T14:23:55.856984 | 2016-07-27T02:19:49 | 2016-07-27T02:19:49 | 64,269,897 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,374 | cpp | Main.cpp | #pragma once
#include "Game.h"
#include <conio.h>
#define VK_BackSpace 8
#define VK_RETURN 13
#define VK_ESCAPE 27
#define VK_UP 72
#define VK_DOWN 80
#define VK_Left 75
#define VK_Right 77
class DTSTimer
{
unsigned int startTime;
public:
DTSTimer()
{
... |
d97b35ce0e57d4e71c53918915e52469598bac04 | f125d550d0457a35220ed35a375c8820efd373e6 | /Userland/Libraries/LibC/termcap.cpp | 034663af9f809b49c9995118e06c5ad26ef1360e | [
"BSD-2-Clause"
] | permissive | seven1m/serenity | 3c4a744fe1cc65e54c9aa62c9f97fb5df04b43bf | 447b8e808219d7f326fa6a4fd922adf7a3f86759 | refs/heads/master | 2021-06-24T19:44:42.274014 | 2021-02-07T17:25:30 | 2021-02-07T17:36:31 | 207,917,650 | 1 | 0 | BSD-2-Clause | 2019-09-11T22:28:44 | 2019-09-11T22:28:44 | null | UTF-8 | C++ | false | false | 4,763 | cpp | termcap.cpp | /*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright noti... |
aa3b558f21a79435c88f71f4f37f907336c41667 | 16e130599e881b7c1782ae822f3c52d88eac5892 | /leetcode/validParentheses/main.cpp | b26386ac9fed911937c2752253b23e59e17b5796 | [] | no_license | knightzf/review | 9b40221a908d8197a3288ba3774651aa31aef338 | 8c716b13b5bfba7eafc218f29e4f240700ae3707 | refs/heads/master | 2023-04-27T04:43:36.840289 | 2023-04-22T22:15:26 | 2023-04-22T22:15:26 | 10,069,788 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 997 | cpp | main.cpp | #include "header.h"
class Solution {
public:
bool isValid(string s) {
std::stack<char> ss;
for(char c : s)
{
switch(c)
{
case '(':
case '[':
case '{':
ss.push(c);
break;
ca... |
244409f91095d6f69e76fbb5402ab0719db83b0f | 6aeccfb60568a360d2d143e0271f0def40747d73 | /sandbox/assign_v2/boost/assign/v2/support/check/equal_container/lifo.hpp | 6a599bcf0c3cbb8e9cd8f96cefc9376f19c638f5 | [] | no_license | ttyang/sandbox | 1066b324a13813cb1113beca75cdaf518e952276 | e1d6fde18ced644bb63e231829b2fe0664e51fac | refs/heads/trunk | 2021-01-19T17:17:47.452557 | 2013-06-07T14:19:55 | 2013-06-07T14:19:55 | 13,488,698 | 1 | 3 | null | 2023-03-20T11:52:19 | 2013-10-11T03:08:51 | C++ | UTF-8 | C++ | false | false | 1,654 | hpp | lifo.hpp | //////////////////////////////////////////////////////////////////////////////
// Boost.Assign v2 //
// //
// Copyright (C) 2003-2004 Thorsten Ottosen //
// ... |
57a83e3c8c3c0d0235660da1394cc9e8b781ee9e | 90fc041cb98dd71d34bfff72761226d63c74f23e | /markus_crack/src/main.cpp | e1dfec9e78465d50a9a228b9fe5615049842d2c2 | [
"Unlicense"
] | permissive | mudlord/crackme_solutions | 510eb3258778febc0971dea4bb0aef67837cb95f | 9877a16e51bc41027d0363841f182e49bcee70ff | refs/heads/master | 2023-03-27T21:45:58.205384 | 2022-06-15T00:28:54 | 2022-06-15T00:28:54 | 212,070,700 | 8 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 744 | cpp | main.cpp | #include "patternfind.h"
#include <stdio.h>
#include <string.h>
int main(int argc, char* argv[])
{
unsigned char data[0x100];
memcpy(data, main, sizeof(data));
//find pattern offset
size_t found = patternfind(data, sizeof(data), "68 ?? ?1 0? 00");
printf("found: main+%p\n", found);
if(found =... |
b7c6a6eccf3e38f79a679a06505dd59d40f8d508 | f157735a34957e381ecd2758a26e43edf9f7c6ca | /DM2125/USE ME/MyGraphics/Test/Test.cpp | 56b99f3b421f25bad082e14b5e9724674a96f468 | [] | no_license | 155129R/School-Stuff | fe753812e77650053fe127ab8ffa36bb8b3aa472 | 03c19b13a53e2681b44004fe16aff40edf448dad | refs/heads/master | 2021-01-13T13:00:39.082294 | 2016-02-15T15:55:19 | 2016-02-15T15:55:19 | 47,772,195 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,550 | cpp | Test.cpp | #include "gtest/gtest.h"
#include "MathUtility.h"
//***********************************************************************FACTORIAL TESTS
//Tests factorial for zero
TEST(FactorialTest, HandlesZeroInput){
EXPECT_EQ(1, factorial(0));
}
//Tests factorial of positive numbers
TEST(FactorialTest, HandlesPositiveInput)... |
64c60e9693143ff8e604d9354067afe3528e160e | 703a7df711c0809893f85fe28a69b7cf1d707148 | /UWP/Il2CppOutputProject/Source/il2cppOutput/Il2CppGenericMethodDefinitions.cpp | fa0bd0be41c485e588f9f171d97251b482fc81b6 | [] | no_license | gunsolex/Vuforiav2 | a982d431da59ad96e6a88e9dd951047756f29b34 | bca16cc3ba71006258cd971dedd67c7fabeb2f57 | refs/heads/master | 2020-04-18T09:09:02.388382 | 2018-12-17T07:43:46 | 2018-12-17T07:43:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,024,042 | cpp | Il2CppGenericMethodDefinitions.cpp | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include "class-internals.h"
#include "codegen/il2cpp-codegen.h"
extern const Il2CppMethodSpec g_Il2CppMethodSpecTable[50044] =
{
{ 76, -1, 0 },
{ 78, -1, 0 },
{ 79, -1, 0 },
{ 80, -1, 0 },
{ 81, -1, 0 }... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.