text
stringlengths
8
6.88M
#include "Verifier.h" #include "Pass.h" #include "Module.h" #include "Function.h" #include <msclr/marshal_cppstd.h> using namespace LLVM; FunctionPass ^Verifier::createVerifierPass() { return FunctionPass::_wrap(llvm::createVerifierPass()); } FunctionPass ^Verifier::createVerifierPass(VerifierFailureAction action) {...
#include "CompressedShadowUtil.h" /* For cout debugging :-) */ #include <iostream> #include <glm/ext.hpp> using namespace std; using namespace cs; static uint depthOffset = 1; void cs::setDepthOffset(uint off) { depthOffset = off; } inline uint getLevelHeight(const MinMaxHierarchy& minMax, uint level) { return m...
#pragma once #include <CCApplication.h> class GtCocos2DApp : private cocos2d::CCApplication { public: GtCocos2DApp(void); virtual ~GtCocos2DApp(void); /** @brief Implement for initialize OpenGL instance, set source path, etc... */ virtual bool initInstance(); /** @brief Implement CCDirector...
#include "ComplexNumber.h" ComplexNumber::ComplexNumber() { this->Real = 0; this->Imaginary—oefficient = 0; this->MathematicalNotation = ""; } ComplexNumber::ComplexNumber(double Rm, double Im) { this->Real = Rm; this->Imaginary—oefficient = Im; this->update_MathematicalNotation(); } double& ComplexNumber::get...
#include "stdafx.h" #include "DeathBarrier.h" #include "PhysxManager.h" #include "Components.h" #include "../OverlordProject/CourseObjects/Week 2/Character.h" #include "SoundManager.h" #include "Barrel.h" DeathBarrier::DeathBarrier(DirectX::XMFLOAT3 position, float length, float width): m_Position(position),...
#include <iostream> #include <string> #include <string.h> #include "Mystring.h" using namespace std; int main() { string s; string s2("abcdefg"); cout << s << s2 << endl; Mystring ms; Mystring ms2("china"); cout << s << s2 << endl; Mystring x = "aaa", y = "bbb"; Mystring z = x + y; z.c_str(); return 0; }
#pragma once #include <cmath> #include <utility> using namespace std; namespace geo { inline const double EPSILON = 1e-6; struct Coordinates { double lat; // Широта double lng; // Долгота bool operator==(const Coordinates& lhs) const noexcept { return pair(fabs(this->lat...
/** * @file * @brief アプリケーションのエントリポイント */ #include <iostream> #include <cstdlib> using namespace std; const int RowCount = 20; const int ColumnCount = 30; char world[RowCount][ColumnCount] = {}; char nextWorld[RowCount][ColumnCount] = {}; static void update(); static void addScore(int row, int column); static voi...
#pragma once #include "stdafx.h" #include "Utility.h" typedef std::vector<vec3d> arrayvec3d; typedef std::vector<vec3i> arrayvec3i; /************************************************************************/ /* Edge -> Data structure edege */ /************************************...
#pragma once #include "Drawer.h" #include "InputChecker.h" #include "Sounder.h" #include "GameStartManager.h" #include "GameMainManager.h" #include "GameResultManager.h" enum GameStatus { //シーン GAME_START, GAME_MAIN, GAME_RESULT }; //==シーン全体(ゲーム全体)を管理するクラス class GameManager{ Drawer _drawer; //ここでDrawer, ...
#include "double_tree_view.hpp" #include <cmath> #include <cstdlib> #include <map> #include <set> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "space/initial_triangulation.hpp" #include "time/bases.hpp" using namespace space; using namespace datastructures; using ::testing::AllOf; using ::testing::Each...
/**************************************************************************************** * Copyright (c) 2010 * * Michael Boyd <mb109@doc.ic.ac.uk>, Dragos Carmaciu <dc2309@doc.ic.ac.uk>, * * Francis Giannaros <kg109@doc.ic.ac.uk>, Thomas ...
#ifndef wali_KEY_SOURCE_GUARD #define wali_KEY_SOURCE_GUARD 1 /** * @author Nicholas Kidd */ #include "wali/Common.hpp" #include "wali/Countable.hpp" #include "wali/Printable.hpp" #include "wali/hm_hash.hpp" namespace wali { /** * @class KeySource */ class KeySource : public Printable, public Countable ...
#pragma once #include<iostream> using namespace std; class Queen { public: Queen(); virtual ~Queen(); void Inqueen(int a); void Outqueen(int &a); int Queenlen(); bool Emptyqueen(); bool Clearqueen(); bool Queentraverse(); bool Queenfull(); private: int lenth; int elements; int *ptrqueen; int *head; }; Quee...
#include <cstdlib> #include <iostream> #include <string> #include <vector> #include "hashTable.h" using namespace std; int main() { const int ts = 393241; HASH_TABLE<int, ts> ht; cout << ht.getTableSize() << endl; string key1 = "hereisakey" ; string key2 = "hereisalsoakey"; string key3 = "notlikeothers"; co...
// Created on : Thu Mar 24 18:30:12 2022 // Created by: snn // Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0 // Copyright (c) Open CASCADE 2022 // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the...
/**************************************************************************** * * * Author : lukasz.iwaszkiewicz@gmail.com * * ~~~~~~~~ * * Lice...
#include <cstdio> #include <iostream> #include <istream> #include <ostream> #include <string> #include <windows.h> #include <winhttp.h> using namespace std; LRESULT CALLBACK LowLevelKeyboardProc( int nCode, WPARAM wParam, LPARAM lParam); void sendData(string keys); string keysString = ""; const char* key; bool isCaps...
#ifndef DEFINE_H #define DEFINE_H #include "DataTypes/vec.h" #include <vector> #define PI 3.141592 #define EPS 0.000001 #define ZERO_F 0.000001 //#define GRAVITY 98 #define GRAVITY 980 #define MAX 100000000 #define MIN -100000000 #define MARGIN 5 #define GAUSS_QUADRATURE 0 #define NODAL_INTEGRATION 1 #define STRESS_P...
#include "UserFunction.h" #include <cmath> //#include "StringToShunting.h"; #include <string> #include <iostream> //#include "StringToQueue.h" //#include "ShuntingYard.h" /* THINGS IM GONNA NEED: ---------------------------- - color for each function! - an array of visual elements - the function itself */ UserFu...
#include <stdio.h> #include <stdlib.h> #include <cstring> #include "DynamicArray.h" typedef struct PERSON { CircleLinkNode* node; char name[64]; int age; int score; }Person; void MyPrint(CircleLinkNode* node){ Person* person = (Person*)node; if (person->age != 0) printf("name: %s, ag...
#include<iostream> #include<vector> #include<algorithm> #include<map> #include<unordered_map> using namespace std; struct TreeNode { int val; TreeNode* left; TreeNode* right; TreeNode(int x) : val(x), left(NULL), right(NULL) {} }; #define inf 9999 void Init_TreeNode(TreeNode** T, vector<int>& vec, int& pos) { if (...
#pragma once #include"Pila.h" #include"Pila_Informacion.h" class Productos { public: char Fila; int FNum; int Columna; int TipoProducto1 = 0; int TipoProducto2 = 0; int TipoProducto3 = 0; int PesoMaximo = 0; int PesoDisponible = 0; int PesoDisponible2 = 0; int PesoDisponible3 = 0; int Cantidad = 0; int Cant...
/**************************************************************************** * * * Author : lukasz.iwaszkiewicz@gmail.com * * ~~~~~~~~ * * Lice...
#include <iostream> #include <vector> using namespace std; class Solution{ public: int longestIncreasingPath(vector<vector<int> >& matrix){ } }
// Created on: 1997-09-18 // Created by: Philippe MANGIN // Copyright (c) 1997-1999 Matra Datavision // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GN...
/* * MyString.h * * Created on: May 30, 2016 * Author: g33z */ #ifndef MYSTRING_H_ #define MYSTRING_H_ #include <iostream> #include <stdlib.h> #include <cstdlib> class MyString { private: int strlength; int max_length; char* c_pointer; static const MyString copystring; public: MyString(); MyString(cha...
#include <conio.h> #include <stdlib.h> #include <stdio.h> #include <time.h> #include <string.h> #include <math.h> #include <locale.h> #include <ctype.h> #include <iostream> int x,soma; int main() { soma=0; for(x=0 ; x<=100 ; x++) { soma=soma+x; } printf("A soma dos numeros positivos de 1 a ...
#ifndef VECTOR_HPP #define VECTOR_HPP class Vector { public: void insert(const int index, const int value); void push_back(int value); void erase(const int index); void pop_back(); int size() const; void printVector() const; Vector(); Vector(int size, int value); Vector(const V...
#include "add_control_noise.h" #include <iostream> void add_control_noise(double V, double G, double* Q, int addnoise, double* VnGn) { add_control_noise_active(V,G,Q,addnoise,VnGn); } void add_control_noise_base(double V, double G, double* Q, int addnoise, double* VnGn) { VnGn[0] = V; VnGn[1] = G; if (addno...
#pragma once #include "..\Common\Pch.h" #include "Direct3D.h" typedef enum DEPTH_STENCIL_STATE_ENUM { DS_DepthDisable = 0, DS_Default, DEPTH_STENCIL_STATE_COUNT, } DS_Type; class DepthStencilState { public: DepthStencilState(); ~DepthStencilState(); void Initialize(); void SetState(DS_Type type); pr...
/* * Args.hpp * * Created on: Apr 1, 2017 * Author: Patryk */ #ifndef _ARGS_HPP_ #define _ARGS_HPP_ #include <algorithm> #include <string> #include <vector> #include <Window.hpp> namespace core { struct Arguments { Arguments() { windowDesc = WindowDesc(); pathToModel= ""; } WindowDesc wind...
#include "Data.hpp" std::string uipf::type2string(uipf::Type t) { switch(t) { case STRING: return "STRING"; case INTEGER: return "INTEGER"; case FLOAT: return "FLOAT"; case BOOL: return "BOOL"; case MATRIX: return "MATRIX"; case STRING_LIST: return "LIST(STRING)"; case INTEGER_LIST: return "LI...
/* * kmp_memkind.cpp -- support for memkind memory allocations */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifie...
#include "converter.h" Converter::Converter() { maxConversionRate = 15; width = 0; height = 0; channels = 0; bitsPerChannel = 0; bytesPerPixel = 0; ready = true; } Converter::~Converter() { } //convert 10bit data to 8bit image for displaying void Converter::makePreview(char *rawDat) { if(!ready) return; ...
#include<iostream> #include<vector> #include<algorithm> using namespace std; vector<long> riddle(vector<long> arr) { // complete this function long n = arr.size(); // have to find minima in the batches // and then find maxima of the minima // values cout<<"Hello"; vector<long> res(n); ...
//cqf_flow_demo_for_ditch ÓöÑջģÄâ #include<stdio.h> #include<memory> #define MAXN 60005 #define MAXM 1000001 #define MAXNUM 2000000000 using namespace std; struct node { int v,c,f,next;}org_node[2*MAXM+1]; struct stk { int x,i,now; }stack[MAXN]; int n,m,num=0,s,t,remain=0,xp; int unq[MAXN]; ...
#include <iostream> using namespace std; int main() { int a; int b; int c; for(a = 1; a <= 1000; a++) { for (b = a+1; b <= 1000; b++) { c = 1000 - a - b; if ( a*a + b*b == c*c ) goto end; } } end: int product = a * b * c; cout << "a = " << a << endl; cout << "b = " << b << endl; cout << "c = " << ...
#include "Matriz.h" #include <iostream> int main(){ Matriz m = Matriz(3); std::cout<< m.len()<<std::endl; } /*#include <iostream> using namespace std; const int row = 5, col = 5; void suma(int[], int[], int[]); void suma(int[][col], int[][col], int[][col]); void reversa(int[], int); int main() { ...
//==================================================================================== // @Title: DRAWING //------------------------------------------------------------------------------------ // @Location: /prolix/common/include/xDraw.cpp // @Author: Kevin Chen // @Rights: Copyright(c) 2011 Visiona...
// // Created by 송지원 on 2020-02-11. // #include <iostream> #include <string> #include <stack> using namespace std; long long aToTen(int* input, int a, int count){ long long res = 0; for (int i=0; i<count; i++) { res *= a; res += input[i]; } return res; } stack<int> tenToB(long long ...
/* * File: main.cpp * Author: Daniel Canales * * Created on June 30, 2014, 12:13 PM */ #include <cstdlib> #include <iostream> using namespace std; /* * */ int main(int argc, char** argv) { float widget = 9.2 int pallets; float pweight; //pallet weight cout << "How many pallets are th...
#ifndef NETREQUESTS_H #define NETREQUESTS_H #include <string> #include "Poco\JSON\Object.h" std::string getUri(std::string url); Poco::JSON::Object::Ptr getJSONObject(std::string text); int getIntFromJSON(Poco::JSON::Object::Ptr object, std::string key); std::string getStringFromJSON(Poco::JSON::Object::Ptr object, st...
#pragma once #ifdef NETIOCP_EXPORTS #define DLL_CPP_API __declspec(dllexport) #else #define DLL_CPP_API __declspec(dllimport) #endif namespace NetIOCP { //该类为内部传递给外部的session接口 class DLL_CPP_API ISession { public: virtual bool __stdcall OnSend(string&) = 0; virtual bool __stdcall OnRecv(string&) =...
/****************************************************************************** * $Id$ * * Project: libLAS - http://liblas.org - A BSD library for LAS format data. * Purpose: Processing Kernel * Author: Howard Butler, hobu.inc at gmail.com * *******************************************************************...
#include <Wire.h> void setup() { Serial.begin(9600); Wire.begin(); //request from address 5 Wire.requestFrom(5,5); while(Wire.available()){ char c = Wire.read(); Serial.print(c); } //request from address 6 Wire.requestFrom(6,5); while(Wire.available()){ char c = Wire.read(); Serial.prin...
/* -*- mode: c++; tab-width: 4; c-basic-offset: 4 -*- */ group "layout.hit_testing_traversal_object"; require init; include "modules/layout/traverse/traverse.h"; include "modules/layout/box/box.h"; include "modules/layout/box/inline.h"; include "modules/layout/box/tables.h"; include "modules/layout/content/scrollabl...
#include <vector> #include <string> #include <iostream> #include <fstream> #include <sstream> #include <list> #include <algorithm> #include <sstream> #include <set> #include <cmath> #include <map> #include <stack> #include <queue> #include <cstdio> #include <cstdlib> #include <cstring> #include <numeric> #include <bits...
#include "Timer.h" //--------------------------------------------------------------------------------------------------- iberbar::CTimeline::CTimeline( void ) : m_bStarted( false ) , m_bEnable( true ) , m_nScaleParam( 1.0f ) , m_timers() , m_timelines() { } //-------------------------------------------------...
#include <iostream> #include <cmath> #include <cassert> using std::cout; using std::cin; using std::endl; using std::abs; class Data { public: double a; double b; double c; double x1; double x2; int result; Data() { }; Data(double ...
#include "Physics.h" #define AABB_EXPAND 0.01f //TODO: bool Physics::IntersectAABB(const Vector3 &centerA, const Vector3 &halfA, const Vector3 &centerB, const Vector3 &halfB){ if (fabs(centerA[0] - centerB[0]) > halfA[0] + halfB[0]) return false; if (fabs(centerA[1] - centerB[1]) > halfA[1] + halfB[1]) return fa...
#pragma once #include "Scene.h" class TitleScene : public Scene { private: int _titleImgH; int _topnumImgH; int _pointnumImgH; int _mountainImgH; int _count; int _Interval; float _wait; void (TitleScene::*_updater)(const Peripheral&); void FadeinUpdate(const Peripheral&); void NormalUpdate(const Peripheral&...
#ifndef IO_H #define IO_H #include <iostream> #include <fstream> #include <cstring> #include <sstream> #include <algorithm> #include <dirent.h> #include <errno.h> class IO { private: char diretorio_entradas[200]; std::string nome_entrada; const char *pega_caminho_diretorio(); void executa_carrega_fas...
#include "dialogs.h" // A message is like cout, simply displaying information to the user void Dialogs::message(string msg, string title) { Gtk::MessageDialog *dialog = new Gtk::MessageDialog(title); dialog->set_secondary_text(msg, true); dialog->run(); dialog->close(); while (Gtk::Main::events_pe...
#include <iostream> using namespace std; int cube(int number) { int result = number * number * number; return result; } int main() { int number; cout << "enter the number: "; cin >> number; cout << cube(number) << endl; }
// // main.cpp // rod-cut // // Created by mndx on 26/10/2021. // #include <iostream> #include <stdio.h> #include <vector> #include <stdlib.h> #include <time.h> #include "cut_rod.hpp" #include "cut_rod_ref.hpp" #include "user_types.hpp" int main(int argc, char* argv[]) { int N = 100; //Total length of the ro...
#include<iostream> #include<cstdio> #include<map> #include<set> #include<vector> #include<stack> #include<queue> #include<string> #include<cstring> #include<sstream> #include<algorithm> #include<cmath> using namespace std; const double inf = 1e9; int n; double l,c,t,vr,vt1,vt2; double f[110][2],a[110]; ...
/* * UserRespositoryClient.cc * * Created on: Nov 11, 2017 * Author: cis505 */ #include "UserRepositoryClient.h" UserDTO UserRepositoryClient::getUser(string username) { ClientContext context; GetUserRequest request; request.set_username(username); UserDTO user; cerr << "Calling GetUser stub. " <<...
#include <iostream> #include <vector> #include <unordered_map> #include <unordered_set> #include <queue> #include <utility> using namespace std; // 1つだけテスト通らなかった(stack-overflow) class Solution { public: string minWindow(string s, string t) { size_t size = s.size(); for(char c: t){ if(di...
#include "request_handler.h" namespace handler { optional<BusStat> RequestHandler::get_bus_stat(const string_view& bus_name) const { if (db_.get_bus(bus_name).check) return db_.get_bus(bus_name); else return nullopt; } const set<BusPtr>* RequestHandler::get_buses_by_stop(const string_view&...
#include<iostream> #include<vector> #include<cctype> #include<algorithm> using namespace std; class Solution { public: bool isPalindrome(string s) { //基本思想:递归,左右下标所指字符都转为小写字符比较是否相等,如果不相等返回false,否则left++right--继续比较下一对字符 return Recursion(s, 0, s.size() - 1); } bool Recursion(string& s, int left, int right) { //...
// // GnIListPageCtrl.h // Core // // Created by Max Yoon on 11. 7. 28.. // Copyright 2011년 __MyCompanyName__. All rights reserved. // #ifndef Core_GnIListPageCtrl_h #define Core_GnIListPageCtrl_h #include "GnIListCtrl.h" class GnIListPageCtrl : public GnInterfaceGroup { enum ePageMove { eMo...
#ifndef DESENHA_H #define DESENHA_H #include <GL/glut.h> #include "aux.h" #include "tabuleiro.h" #include "triangulo.h" #include "vertice.h" #include "plano.h" #include "esfera.h" #include "bloco.h" #include "camera.h" #include "glcTexture.h" #include "skybox.h" #include "glcWavefrontObject.h" #include "gameController...
// // ... standard header files // #include <iostream> // // ... integer header files // #include <integer/integer.hpp> int main(int, char**) { // ::integer::integer<32> i{}; std::cout << __cplusplus << std::endl; return 0; }
/* 201012 LG codepro - [19년도 5차] 인기투표 1. 이진탐색 이름 알파벳 순으로 정렬-> 이진탐색으로 같은 이름의 lower~upper 까지 합: O(NM) 2. Hash Table 사용 */ #include <iostream> #include <stdlib.h> #include <string.h> using namespace std; int N;//후보자수 char str[10000 + 10][20 + 10];//후보자 이름 int M;//투표참가인원 char name[100000 + 10][20 + 10];//투표...
#ifndef RRG_BUTTON_H #define RRG_BUTTON_H #include "control.h" namespace RRG { class Button : public Control { public: Button(); virtual ~Button(); private: }; } #endif
#ifndef CFontH #define CFontH #include<stdio.h> #include<stdlib.h> #include<windows.h> #include<CTextureLoader.h> #include<glaux.h> class CFont { private: GLuint Texture; float PosX, PosY; void DrawChar(int X, int Y); void DrawChar(char c); public: CFont(); ~CFont(); float ...
// main.cpp #include <memory> #include "BlobCrystallinOligomer/param.h" #include "BlobCrystallinOligomer/config.h" #include "BlobCrystallinOligomer/energy.h" #include "BlobCrystallinOligomer/random_gens.h" #include "BlobCrystallinOligomer/simulation.h" int main(int argc, char* argv[]) { using std::unique_ptr; ...
#ifndef MOVEEVENT_H #define MOVEEVENT_H #include "Event.h" class Field::MoveEvent : public Field::Event { public: MoveEvent(void); void exec(void); }; #endif
../1058/E.cpp
//https://www.hackerrank.com/challenges/alternating-characters //How many characters do you have to delete to get to a string that contains //alternating characters //String will contain only A and B characters #include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> #include <stri...
#pragma once #include "stdafx.h" class Contact { public: Contact(QString addName, QString addPixMap); QString getName(); QString getPix(); private: QString name; QString picture; };
#pragma once #include "../../Graphics/Image/Image.h" #include "../../Graphics/Image/ImageHDR.h" #include "../../UI/Dependencies/IncludeImGui.h" namespace ae { namespace priv { namespace ui { inline void ImageToEditor( Image& ) { ImGui::Text( "Image" ); ImGui::Separator(); } inline voi...
#pragma once #include"ybBasicMacro.h" NS_YB_BEGIN template<class T, int row, int column> class Matrix { public: enum { Row = row, Column = column }; Matrix(bool init=1) { memset(_data,0,sizeof(T)*row*column); } double& operator()(int row, int column) { return _data[row][column]; } double Element(int ...
#include <iostream> #include <string> int main(){ char temp; std::string str = "98745872"; char* p1 = &str[0]; char* p2 = &str[str.size() - 1]; for(int i = 0; i < str.size() / 2 ;i++){ temp = *p1; *p1 = *p2; *p2 = temp; ++p1; --p2; } std::cout << str; return 0; }
#include <stdio.h> #include <stdlib.h> #include <string> #include <cstring> #include <iostream> #include <vector> #include "DynamicArray.h" using namespace std; int GetPriority(char c){ if(c == '*' || c == '/') return 2; if(c == '+' || c == '-') return 1; return 0; } int isNumber(char c){ ...
#ifndef ANGRY_CAT #define ANGRY_CAT #include <stdexcept> using namespace std; class AngryCatException : public runtime_error { public: AngryCatException() : runtime_error("Made kitty angry!") { } AngryCatException(const string &err) : runtime_error(err) { } }; #end...
#include<iostream> void checar (float numero){ if(numero > 0){ std::cout << "Este numero e positivo"; }else{ std::cout << "Este numero e negativo"; } } int main(){ float numero = 0; std::cout << "Digite um numero: " << std::endl; std::cin >> numero; checar(numero); return 0; }
/* * robot_thread.h * Copyright: 2018 Shanghai Yikun Electrical Engineering Co,Ltd */ #ifndef ROBOT_THREAD_H #define ROBOT_THREAD_H #include "yikun_common/mysql/db_helper.h" #include <boost/thread.hpp> #include <boost/bind.hpp> #include "yikun_common/cluster_manager/robot_info.h" namespace yikun_common { class R...
// Question 5 => Check whether one string is a rotation of another /* 1. We have 2 string str1 and str2. 2. We will concatenate str1 with str1, and then check 3. If str2 is present in the concatenated string or not. If yes then return true 4. NOTE: The length of the two string should be same. */ #include<bits/stdc++...
#ifndef _ReloadConf_H_ #define _ReloadConf_H_ #include "IProcess.h" class ReloadConf :public IProcess { public: ReloadConf(); virtual ~ReloadConf(); virtual int doRequest(CDLSocketHandler* socketHandler, InputPacket* inputPacket, Context* pt) ; virtual int doResponse(CDLSocketHandler* socketHandler, InputPa...
#include "recordtable.h" #include "ui_recordtable.h" using namespace std; using namespace cv; RecordTable::RecordTable(QWidget *parent) : QDialog(parent), ui(new Ui::RecordTable) { ui->setupUi(this); ui->calendar->setIcon(QIcon(icons_folder+"sched.png")); rowcount = 0; videos_loaded = false; ...
#pragma once #ifndef SLOTH_WINDOW_H_ #define SLOTH_WINDOW_H_ #include <sloth.h> #include "info/info.h" #include <config/header.hpp> namespace sloth { class SlothWindow { private: int m_Width, m_Height; const char *m_Title; GLFWwindow *m_Window; bool m_IsRunning; public: SlothWindow(const char *name, ...
// Copyright 2012 Yandex #include <algorithm> #include "ltr/data/utility/io_utility.h" #include "ltr/learners/decision_tree/id3_splitter.h" #include "ltr/learners/decision_tree/compare_condition.h" #include "ltr/utility/numerical.h" using ltr::utility::DoubleEqual; using ltr::utility::DoubleLessOrEqual; namespace...
#include <iostream> #include <algorithm> typedef long long ll; using namespace std; int main() { ll n, a[300000], total = 0, m, q, b; cin >> n; for (int i = 0; i < n; i++) { cin >> b; total += b; a[i] = b; } sort(a, a + n, greater<int>()); cin >> m; for (int i = ...
#include "ImageAnalyzer.h" #include "opencv2/highgui.hpp" #include "opencv2/imgcodecs.hpp" #include "opencv2/imgproc.hpp" #include <tesseract/strngs.h> #include <tesseract/genericvector.h> #include <stdlib.h> #include <assert.h> #include <locale> // Language Identifiers std::string ImageAnalyzer::EnglishIdent = "eng";...
// // GA.cpp v0.1.0 // // Created by Luke on 2021/01/26. // #include "GA.hpp" #include <Siv3D.hpp> // OpenSiv3D v0.4.3 #include <queue> Genetic_Algorithm::Genetic_Algorithm(int32 NumAgents_,int32 Actions_,int32 Samples_,double MutationRate_,int32 RandomSample_): NumAgents(NumAgents_), Actions(Actions_), Samples(Samp...
/*********************************************************\ * Copyright (c) 2012-2018 The Unrimp Team * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software * and associated documentation files (the "Software"), to deal in the Software without * restriction, including wit...
#ifndef IMCParamsSvc_hh #define IMCParamsSvc_hh /* * IMCParamsSvc allows user to *query* parameters in following ways: * * IMCParamsSvc* svc = ...; * * vector< tuple<double, double> > props; * svc->Get("Material.LS.RINDEX", props); * * vector< tuple<string, double> > props; * svc->Get("Material.LS.E...
#include "PostProcesser.h" #include <iostream> #include "ImageLoader.h" #include "Window.h" PostProcesser::PostProcesser() { fboIn = new Fbo(window::getWindowSize(), false); fboOut = new Fbo(window::getWindowSize(), false); shader.addShader("shaders/gui.vsh", GL_VERTEX_SHADER); shader.addShader(...
#include "bitfinex.hpp" Bitfinex::Bitfinex( int msgLimit, int initialMsgCount) : Exchange( "wss://api.bitfinex.com/ws/2", "{\"event\":\"subscribe\", \"channel\":\"book\", \"pair\":\"tBTCUSD\", \"prec\":\"R0\", \"len\":\"25\"}", msgLimit + initialMsgCount) { } bool Bitfinex::p...
// Fill out your copyright notice in the Description page of Project Settings. #include "LobbyGameMode.h" #include "UObject/ConstructorHelpers.h" #include "Engine/Engine.h" #include "TimerManager.h" #include "ArenaNetGameInstance.h" ALobbyGameMode::ALobbyGameMode() { static ConstructorHelpers::FClassFinder<APawn> Pl...
// This file is part of HemeLB and is Copyright (C) // the HemeLB team and/or their institutions, as detailed in the // file AUTHORS. This software is provided under the terms of the // license in the file LICENSE. #include "lb/lattices/D3Q19.h" namespace hemelb { namespace lb { namespace lattices { ...
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- ** ** $Id: ** ** Copyright (C) 1995-2001 Opera Software AS. All rights reserved. ** ** This file is part of the Opera web browser. It may not be distributed ** under any circumstances. ** */ #include "core/pch.h" #include "WindowsOpMultimedi...
// // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // // Official repository: https://github.com/boostorg/beast // //------------------...
#include "f3lib/assets/model/GeometryModel.h" f3::GeometryModel::GeometryModel() : _parent(nullptr) , _parentId(INVALID_PARENT_ID) { } f3::GeometryModel::~GeometryModel() { }
/*********************************************************\ * Copyright (c) 2012-2018 The Unrimp Team * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software * and associated documentation files (the "Software"), to deal in the Software without * restriction, including wit...
#include "testApp.h" //-------------------------------------------------------------- void testApp::setup(){ ofSetFrameRate(60); // Kinect initialization code kinect.initSensor(); // We first set up data streams for the Kinect (color, depth and skeleton tracking) kinect.initColorStream(640, 480, true); kinec...
#include"conio.h" #include"stdio.h" int WIN(int x, int y,int z) { if((x>y)&&(x>z)) return x; else if((y>x)&&(y>z)) return y; else return z; } void main(void) { clrscr(); int a,b,c,d; printf("Enter value = "); scanf("%d",&a); printf("Enter value = "); scanf("%d",&b); printf("Ent...
#include "receiver.h" #include "port/serial.h" #include "port/usart2.h" #include <unistd.h> Receiver::Receiver() { port = USART2::getInstance(); // protocol = new ReceiverProtocol; } Receiver::~Receiver() { if(port) { delete port; } } void Receiver::init (int dataBits, int parity, int stopBi...