text
stringlengths
8
6.88M
/**************************************************************************** ** Copyright (C) 2017 Olaf Japp ** ** This file is part of FlatSiteBuilder. ** ** FlatSiteBuilder is free software: you can redistribute it and/or modify ** it under the terms of the GNU General Public License as published by ** the Free S...
#ifndef Chassis_H #define Chassis_H #include <Commands/Subsystem.h> class Chassis : public Subsystem { private: // It's desirable that everything possible under private except // for methods that implement subsystem capabilities public: Chassis(); void InitDefaultCommand(); }; #endif // Chassis_H
#include "lib_status_machine.h" using namespace std; state_ctx::state_ctx(string _title) : node_rate(ros::Rate(50)) { title = _title; vehicle_ready = false; state_quit = false; car_state_update = false; start_fetch = false; start_storage = false; fault = false; car_state_error_times = ...
#include "ProfileMarker.h" ProfileMarker::ProfileMarker(){ type = MARKER_ERROR; len = 0; initial_alleles = 0; mut_type = MUTATION_ERROR; } ProfileMarker::ProfileMarker(MarkerType _type, unsigned int _len, unsigned int _initial_alleles, MutationType _mut_type, vector<double> &_params) : params(_params) { type =...
#ifndef __GAMEMANAGER_H_ #define __GAMEMANAGER_H_ class GameManager { private: GameManager() {}; virtual ~GameManager() {}; public: static GameManager* Instance() { static GameManager instance; return &instance; } private: static void AppRender(); static void AppReshape(int, int); static void AppKeyboard...
// // KInteger.cpp <Keepi> // // Made by Julien Fortin // contact <julien.fortin.it@gmail.com> // #include "KInteger.hpp" #include "KString.hpp" #include "KDouble.hpp" #include "KBool.hpp" #include "KZeroDivisionException.hpp" std::string KInteger::TYPE = "KInteger"; KInteger::KInteger(long long int integer) { th...
/*************************************************************************************************/ /* @file aePlatformTypes.h /* @author Alvaro Jesus Estrada Jaime (alvaro.jesus@estradajaime.com) /* @date 2016/09/15 /* /* @brief Declares the platform types. /************************************************************...
#ifndef _track_util_h_ #define _track_util_h_ #include "itkRGBPixel.h" #include "itkImageFileWriter.h" #include "itkImageFileReader.h" #include "itkImageRegionConstIteratorWithIndex.h" #include "itkImageRegionIterator.h" #include "itkNumericTraits.h" #include "itkImageDuplicator.h" #include "itkCastImageFilter.h" #inc...
#include "Brain.h" #include <iostream> #include <vector> #include "Card.h" #include <stdlib.h> #include <time.h> #include <chrono> #include "Hand.h" using namespace std; Brain::Brain(std::vector<Card> newReaded_hand_cards, std::vector<Card> newReaded_table_cards, int newNumberOfEnemies, LPCSTR newName) { readed_h...
#pragma once #include <iberbar/RHI/OpenGL/Headers.h> #include <iberbar/RHI/VertexDeclaration.h> namespace iberbar { namespace RHI { namespace OpenGL { class CDevice; class CShaderProgram; struct UGLVertexAttribute { GLuint nLocation; GLuint nOffset; GLenum nType; GLuint nSize; ...
#include "gtest/gtest.h" #include "mpiMock.h" TEST(SendResultsTests, dataAmountTest) { matrix m0(2,9); matrix m1(2,9); matrix m2(2,9); matrix m3(3,9); int rows = 2; for(int i = 0; i < 2; i++) { for(int j = 0; j < 9; j++) { m0.setValue(i, j, i); m1.setValue(i, j, i + 2); m...
//使用するヘッダーファイル #include"GameL\DrawTexture.h" #include"GameL\WinInputs.h" #include"GameL\SceneManager.h" #include"GameL\DrawFont.h" #include"GameL\UserData.h" #include"GameHead.h" #include"ObjTime.h" //使用するネームスペース using namespace GameL; //イニシャライズ void C0bjTime::Init() { m_time = 0; m_flag_time = false; } //アクション v...
#include "MazoDeCartas.h" #include <iostream> int main(){ MazoDeCartas *mazoDeCartas; char continuar = 'y'; while(continuar == 'y'){ } mazoDeCartas = new MazoDeCartas; const int numJugadores = 2; const int tamMano = 5; int *jugadores[numJugadores]; //Generamos Jugadores...
// Created on: 1991-05-14 // Created by: Laurent Painnot // Copyright (c) 1991-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...
// // Created by Lenovo on 2020/7/6. // #ifndef COMPLIER_QUATNAME_H #define COMPLIER_QUATNAME_H #include <string> using namespace std; //命名规范 //多个单词采取驼峰式命名法,即xxxYyyyZzzzTttt,如beginFunction //单个单词为开头大写,如Else //缩写单词为全大写,如ADD,MUL namespace quatName{ const string beginProgram="beginProgram"; const string beginFu...
// Guard against multiple inclusion // (Could also use header guards) #pragma once #include <iostream> using std::cout; using std::endl; // Pass by value: // (1) to use parameter locally without affecting caller // (2) can use const on parameter to indicate that it won't be changed locally, i.e. void passByValue(c...
#include <iostream> struct Node { int m_value; Node* m_next; }; Node* addNumber(Node* root, int value) { Node* newNode = new Node; newNode->m_value = value; newNode->m_next = nullptr; if (nullptr == root ) { root = newNode; } else { Node* temp = root; while (temp->m_next != nullptr) { temp = temp ->...
#ifndef CaveGenerationManager_h #define CaveGenerationManager_h #include "Ogre.h" #include "CaveRegionGenerator.h" class CaveGenerationManager { private: CaveRegionGenerator mGenerator; public: CaveGenerationManager(CaveRegionGenerator generator) : mGenerator(generator) {}; Ca...
#include <iostream> #include <cmath> #include <vector> #include <map> using namespace std; class Graph { private: vector<int> *g; public: int V, E; Graph(int size = 0) { V = E = 0; g = new vector<int>[size]; InEx = new int[size]; } vector<int>& operator[](const int i) { return g[i]; } double Den...
#include "stdafx.h" #include "EnumTemps.h" enum Temps { minute = 60, heure = 3600, jour = 86400, annee = 31557600 };
#include<iostream> #include<vector> #include <utility> using namespace std; #define ll long long void answer(vector<int> ans, int x, int z) { if((z-ans[x])%(ans[x]+1)==0) { int sum = (z-ans[x])/(ans[x+1]); if (sum >= ans[0] && sum <= ans[ans.size()-1]) cout<<ans[x]<<" "<<sum<<endl; } } int main() { vector<int>...
/* * the implement of the class rbtree * * author: dongbeibei * time: 2013/6/26 * * function: construction/destory/insert/delete/search/ */ #include <isotream> #include "rbtree.h" using namespace std; RBTree::RBTree() { if(!init()) cout<<"RBTree init fail."<<endl; } RBTree::~RBTree() { clear(m_root); d...
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- * * Copyright (C) 1995-2012 Opera Software ASA. All rights reserved. * * This file is part of the Opera web browser. * It may not be distributed under any circumstances. */ #include "core/pch.h" #ifdef _PLUGIN_SUPPORT_ #include "modules...
/* * 1 based arr indexing. 1 based seg indexing. [l, r] both inclusive; * Mostly have to change push and apply for different problems; * st.init(n) * st.build(1, 1, n); * * cses range update and sums; * cses polynomial queries */ const int mxN = 2e5 + 5; ll arr[mxN]; struct node { ll sum, inc, setx; bool ...
// BEGIN CUT HERE // PROBLEM STATEMENT // A redundant storage system can survive a certain number of // hard drive failures without losing any data. You are doing // some analysis to determine the risk of various numbers of // drives failing during one week. Your task is complicated // by the fact that the drives i...
#pragma once #include <QDockWidget> #include "ui_ControlWidget.h" class MainWindow; class ControlWidget : public QDockWidget { Q_OBJECT private: MainWindow* mainWin; public: Ui::ControlWidget ui; ControlWidget(MainWindow* mainWin); //void setRoadVertex(RoadVertexDesc vertexDesc, RoadVertexPtr selectedVertex...
#include "ShoeManagerNetworkAccessManager.hpp" #include "ShoeManagerNetworkConfig.hpp" #include <QEventLoop> ShoeManagerNetworkAccessManager::ShoeManagerNetworkAccessManager() { } QNetworkReply *ShoeManagerNetworkAccessManager::execRequest(const QString &url, const QString &method, const QJsonObject &reqBo...
#pragma once #include <iostream> #include <fstream> #include <string> #include <unordered_map> class CodeModule{ public: CodeModule(); std::string dest(std::string destInput); std::string comp(std::string compInput); std::string jump(std::string jumpInput); private: st...
#ifndef SCENE_H #define SCENE_H #include <vector> #include <SFML/Graphics.hpp> #include <common/entity.h> class Scene : public Entity { public: Scene(); ~Scene(); virtual void Update(sf::Event event); std::vector<Entity*> layers; private: Entity* bgLayer; Entity* entLayer; Entity* uiLayer; }; #e...
/** \file defenseGoalie.cpp \author UnBeatables \date LARC2018 \name defenseGoalie */ #include <includeMapBehavior.hpp> #include <qi/log.hpp> #define SPEEDTHRESHOLDY 10 #define SPEEDTHRESHOLDX 10 #define STEPTICKS 10 // TODO: // - TRATAR PRIMEIRA OCORRENCIA // - lastFrameAge para calcular veloc...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <folly/io/SocketOptionMap.h> #include <quic/congestion_control/CongestionController.h> #include <quic/stat...
#include "kompute/Sequence.hpp" namespace kp { Sequence::Sequence() { SPDLOG_DEBUG("Kompute Sequence base constructor"); this->mIsInit = false; } Sequence::Sequence(std::shared_ptr<vk::PhysicalDevice> physicalDevice, std::shared_ptr<vk::Device> device, std::shared_ptr<v...
#pragma once #define _USE_MATH_DEFINES #include <cmath> #include <deque> #include <mutex> #include <queue> #include <tuple> #include <vector> #include <thread> #include <cstdint> #include <utility> #include <algorithm> #include <boost/thread.hpp> #include <condition_variable> #include <boost/thread/shared_mutex.hpp> ...
#pragma once #include "..\stm\Inc\tmc2590defs.h" #include "tmc2590Converter.h" void tmc2590Converter::getDRVCTRL_SDOFF_0bits(int regValue, int% MRES, int% DEDGE, int% INTPOL) { DRVCTRL_SDOFF_0_t tmp{}; tmp.w = regValue; MRES = tmp.b.MRES; DEDGE = tmp.b.DEDGE; INTPOL = tmp.b.INTPOL; } int tmc2590Converter::getDRV...
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4; c-file-style: "stroustrup" -*- * * Copyright (C) 2009-2011 Opera Software ASA. All rights reserved. * * This file is part of the Opera web browser. * It may not be distributed under any circumstances. */ #include "core/pch_system_includes.h...
#include "FTPClient.h" #pragma comment(lib,"Ws2_32.lib") vector<string> getCommand(string cmd) { vector<string> ret; istringstream split(cmd); do { string part; split >> part; ret.push_back(part); } while (split); while (ret.size() > 0 && ret.back() == "") ret.pop_back(); return ret; } void main() { try ...
#pragma once #include <DXLib.h> const int KEY_MAX = 256; enum Joypad { //ジョイパット DOWN, LEFT, RIGHT, UP, INPUT_1, INPUT_2, INPUT_3, INPUT_4, JOYPADMAX }; //==キー・パット入力を管理するクラス class InputChecker{ int _key[ KEY_MAX ]; //キーの押されているフレーム数を格納する変数 int _joypad[ JOYPADMAX ]; //パットの押されているフレーム数を格納する変数 public: //---...
#include <iostream> #include <string> #include <sstream>// zz to string #include <NTL/ZZ.h> #include <vector> #include <random> #include <NTL/vector.h> using namespace std; using namespace NTL; ZZ modulozz(ZZ a, ZZ b) { if (a >= 0) return a - (a / b) * b; else return a - ((a / b) - 1) * b; } ...
#include<cstdio> #include<map> #include<vector> using namespace std; map<int,int> cou; vector<int> v; int main() {int t; scanf("%d",&t); while (t--) {int n; cou.clear(); v.clear(); scanf("%d",&n); for (int i = 1;i <= n; i++) {int x; ...
#ifndef MAPREDUCEFRAMEWORK_H #define MAPREDUCEFRAMEWORK_H #include "MapReduceClient.h" /** * This function produces a (K2*,V2*) pair * @param context - The context can be used to get pointers into the framework’s variables and * data structures. Its exact type is implementation dependent. */ void...
#include <iostream> #include <vector> #include <typeinfo> template<typename T> void f1(std::vector<T> &arg) { for (auto &val : arg) { arg = T{}; } } void test_pointers() { char c = 'a'; char *p = &c; } struct X { int a,b,c; }; void test_c_strings() { auto p = "adgjfaerggegriegnerg"; ...
#include "stdafx.h" #include <time.h> #include <ist/grid.h> #include <ist/wchar.h> #include "input.h" #include "network.h" #include "thread_specific.h" #include "game.h" #include "character/creater.h" namespace exception { class FrameBuffer : public IFrameBuffer { private: int m_source; GLuint m_tex;...
#include <SoftwareSerial.h> #include "Motor.h" Motor Left(5, 6); Motor Right(9, 10); int aux = 0; char cmd = '\n'; bool isNegative = false; int Vc = 0; int Wc = 0; int W1 = 0; int W2 = 0; SoftwareSerial BT(2,3); void setup() { BT.begin(9600); Serial.begin(9600); } void loop() { if(cmd_check()) { procc...
// -*- Mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- // // // Copyright (C) 1995-2000 Opera Software AS. All rights reserved. // // This file is part of the Opera web browser. It may not be distributed // under any circumstances. // #ifndef DEFS_H #define DEFS_H #ifdef M2_SUPPORT class Mess...
// // Created by dylan on 10-3-2020. // Cpp file containing the function definitions for the picture classs // Takes a given picture and turns it into an object that it can draw on the window // #include "picture.hpp" //Constructor for the picture object picture::picture(sf::Vector2f position, std::string fi...
// Fall 2020 Midterm Exam Question #47 // Write an interactive program where two distinct �rectangular� shapes using // the character 'X' maybe displayed on the screen given user input of //(a) two positive integers between 5 and 12 and //(b) the users choice of "rectangular" display type. #include <iostream> ...
#include "cli.hh" #include <chrono> #include <cstdio> #include <cstdlib> #include <iostream> #include <memory> #include <signal.h> #include <string> #include <thread> #include <unistd.h> #include "odb/client/tcp-data-client.hh" #include "odb/server/vm-api.hh" namespace { bool g_force_stop; void sigint_handler_fn(in...
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- * * Copyright (C) 1995-2007 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" #ifdef ACCESSIBILITY_EXTENSION_SUPPORT #i...
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- * * Copyright (C) 1995-2007 Opera Software AS. All rights reserved. * * This file is part of the Opera web browser. It may not be distributed * under any circumstances. */ #ifndef ACCESSIBILITY_TREE_RADIO_GROUP_NODE_H #define ACCESSIBILI...
#pragma once #include <ionir/construct/function.h> #include <ionir/const/const_name.h> namespace ionir { struct Bootstrap { [[nodiscard]] static Ast functionAst(const std::string &id = ConstName::anonymous); [[nodiscard]] static ionshared::Ptr<Function> function(const std::string &id = ConstName:...
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main(){ vector<ll> v; ll n; cin >> n; v.push_back(3); v.push_back(5); v.push_back(7); for(int i=0; i<9; i++){ int last = v.size(); for(int j=0; j<last; j++){ ll a = v[j] *...
//Libraries definitions //Xbee library #include <XBee.h> //Timer library #include <MsTimer2.h> //RHT03 library #include <DHT22.h> //Deipara library #include <Deipara.h> //Pin definition const int _InPinIrDetector = 7; const int _OutPinRelay = 11; const int _InPinDht22 = 10; //Xbee objects //create Xbee object to cont...
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4; c-file-style:"stroustrup" -*- * * Copyright (C) 1995-2008 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" #ifdef VEGA_SUPP...
#pragma once #include "material.h" #include "vec3.h" #include "light.h" #include <algorithm> class metal : public material { public: metal() = default; vec3 albedo; float fuzz; virtual bool scatter(const ray & r, hitrecord & data, vec3 &attenuation, ray & scattered, const light *l) const override; metal(const vec3...
/* 201004 Leetcode Easy 14_LongestCommonPrefix */ #include <string> #include <algorithm> #include <vector> using namespace std; class Solution { public: string longestCommonPrefix(vector<string>& strs) { int minLen=987654321; bool search=true; string retStr=""; ...
#include <WiFi.h> #include <FirebaseESP32.h> #include "DHT.h" #define DHTPIN 4 // P #define DHTTYPE DHT11 // DHT 11 #define FIREBASE_HOST "https://test4-8c9e7-default-rtdb.firebaseio.com/" #define FIREBASE_AUTH "BrQKjJhc16DBvEGPpqeWrwOTH6pqNwLKkgPkbzSV" #define WIFI_SSID "HTPro-T1" #define WIFI_PASSWORD "Ht88...
#include <iostream> #include <algorithm> using namespace std; int n, h[100001], t, ans; int solve(int l, int u) { int index = max_element(h + l, h + u + 1) - h; if (index == l || index == u) return 1; return 1 + min(solve(l, index - 1), solve(index + 1, u)); } int main() { ios_base ::sync_with_...
#include <map> #include <cmath> #include <cstdlib> #include <string> #include <cassert> using namespace std; #include "vector3.h" #include "vertex.h" #include "surf.h" #include "border.h" #ifndef VERSION #error La versione va` definita nel Makefile #endif #define MYNAME "surf" const double surf::evolve_factor = 0....
/* Petar 'PetarV' Velickovic Data Structure: Segment Tree */ #include <stdio.h> #include <math.h> #include <string.h> #include <iostream> #include <vector> #include <list> #include <string> #include <algorithm> #include <queue> #include <stack> #include <set> #include <map> #include <complex> #define MID (left+right...
#ifndef VARIABLE_H #define VARIABLE_H #include <string> #include <list> #include "term.h" class Variable { protected: /// @brief Name of the variable std::string name; /// @brief Lower bound of the range of the variable float rangeLow; /// @brief Upper bound of the range ...
#pragma once #include "charcreate.h" #include <stdio.h> #include <iostream> #include <stdlib.h> using namespace std;
#pragma once #include<memory> class Transition; class Situation; class TransitionGenerator { public: TransitionGenerator(); ~TransitionGenerator(); /** * Takes two Situations, compares them and generates a Transition if they differ. * @param oldSituation Pointer to the Situation where the Transition is suppo...
#include<iostream> using namespace std; class Student{ int roll_no, sem, rankk, pin; string name, address, city, branch; public: void add_details(); friend void get_details(Student arr[], int len); void update(); }; void get_details(Student arr[], int len){ string temp_branch; ...
#include <ctype.h> #include <stdlib.h> #include <string.h> #include <iostream> using namespace std ; struct stack { double operand ; int opcode ; }; stack A[100] ; int top = -1 ; int getOperand ( char expr[] , int &from ){ int operandValue = 0 ; while ( isdigit(expr[from]) ){ if ( (expr[fro...
#include <catch2/catch.hpp> #include "ecole/reward/lpiterations.hpp" #include "conftest.hpp" #include "reward/unit-tests.hpp" using namespace ecole; TEST_CASE("LpIterations unit tests", "[unit][reward]") { reward::unit_tests(reward::LpIterations{}); } TEST_CASE("LpIterations returns the difference in LP iteration...
#ifndef ANTERU_D3D12_SAMPLE_WINDOW_H_ #define ANTERU_D3D12_SAMPLE_WINDOW_H_ #include <string> #include <Windows.h> #include <memory> namespace AMD { /** * Encapsulate a window class. * * Calls <c>::RegisterClass()</c> on create, and <c>::UnregisterClass()</c> * on destruction. */ struct WindowClass final { public: W...
#include "CampsiteDB.h" /** * Construct a CampsiteDB given a filename and open * the file with bainary mode. * * @param filename file's name */ CampsiteDB::CampsiteDB( std::string filename ){ _filename = filename; if ( !_open_file() ){ //if the file doesn't exist... _create_file(); if (...
#pragma once #include <string> #define _USE_MATH_DEFINES #include <math.h> using namespace std; struct Mat44; struct Quaternion; struct Vec3 { double x, y, z; Vec3(double x = 0, double y = 0, double z = 0); Vec3 operator +(Vec3 &vec); Vec3 operator -(Vec3 &vec); Vec3 operator *(double); Vec3 ...
#include "./platform/UnitTestSupport.hpp" #include <Dot++/lexer/FileInfo.hpp> #include <Dot++/lexer/states/MultiLineEscapeState.hpp> #include <Dot++/lexer/Token.hpp> #include <Dot++/lexer/TokenInfo.hpp> #include <Dot++/lexer/TokenizerState.hpp> #include <deque> namespace { using namespace dot_pp::lexer; ...
// This file was generated based on /Users/r0xstation/18app/src/.uno/ux13/app18.unoproj.g.uno. // WARNING: Changes might be lost if you edit this file directly. #include <_root.app18_FuseVisual_LayoutRole_Property.h> #include <Fuse.Visual.h> #include <Uno.UX.IPropertyListener.h> #include <Uno.UX.PropertyObject.h> #inc...
#include <iostream> #include <tuple> #include <string> // no partial specialization for function templates /* template<std::size_t N> void func1() {} template<> void func1<0>() {} template<std::size_t N, typename... Ts> void func(std::string const& something, std::tuple<Ts...>& ts) { std::cout << "level " << N <...
#ifndef __IREPORTLISTVIEW_H #define __IREPORTLISTVIEW_H //----------------------------------------------------------------------------- #include "_pch.h" #include "IViewWindow.h" #include "ReportData.h" namespace wh{ //----------------------------------------------------------------------------- class IReportListView ...
#include <stack> //#include <functional> #include <iostream> #include <complex> #include "Parser.h" #include "Token.h" int main() { using namespace std::complex_literals; std::string expr1 = "f(3.14159 / 4) + i*f(3.14159 / 3)"; std::string expr2 = "i*(2 + i5)^2"; std::string expr3 = "(((g(PI, i*f(PI/4)^2))))"; s...
#include <iostream> int bs(int target,int arr[], int min, int max) { if (max < min) { return -1; } else { int mid; mid = (max + min)/2; if (arr[mid] == target) { return 1; } else if (arr[mid] < target) { return bs(target, arr, min = mid + 1, max); } else { ...
#pragma once #include "plbase/PluginBase.h" #include "CEntity.h" #include "eWeaponType.h" #pragma pack(push, 1) class PLUGIN_API CProjectileInfo { public: eWeaponType m_eWeaponType; CEntity *m_pLauncher; CEntity *m_pTarget; int m_dwTimeToDestroy; bool m_bState; char _pad[3]; CVector m_vLastPos; class FxSystem_...
#include <string> #include <sstream> #include <iostream> #include "include/helpers.hpp" std::string numToString (long l) { std::stringstream ss; ss << l; std::string newString = ss.str(); return newString; }
#include<bits/stdc++.h> using namespace std; #define PI 3.1415926535897932 int main(){ for (int i=1;i<10;++i) { for (int j=1;j<10;++j) { if (i>j) continue; printf("%d x %d = %d\n",i,j,i*j); } printf("---------------\n"); } }
#ifndef MACOSFWLIB_H #define MACOSFWLIB_H #include <QObject> #include <QString> class __attribute__((visibility("default"))) MacosFWLib : public QObject { Q_OBJECT public: explicit MacosFWLib(); ~MacosFWLib(); QString qtVersionString() const; }; #endif // MACOSFWLIB_H
#pragma once #include "logger.h" #include <fstream> namespace lm { //!A basic log to file. //TODO: implement this in terms of stream_logger, which implies some changes to //the stream logger thing, specifically the ability to build it WITHOUT //a stream!!!!!!. class file_logger :public logger { public: //!Class ...
/* * EventDefine.h * * Created on: Jul 22, 2017 * Author: root */ #ifndef EVENTDEFINE_H_ #define EVENTDEFINE_H_ #include "GlobalEvent.h" //事件的用法 /* class CTestEvent : public Singleton<CTestEvent> { public: CTestEvent() { } ~CTestEvent() { } bool TestEvetn(const EventArgs & e) { printf("\n\n--...
#include "encoder.h" #include <iostream> using namespace std; trevi::Encoder::Encoder() :_curGlobalIdx(0) { } trevi::Encoder::~Encoder() { } void trevi::Encoder::addStream(int streamId, StreamEncoder *encoder) { _encoders.insert( std::make_pair( streamId, encoder ) ); return; } void trevi::Encoder:...
#include <iostream> #include <vector> #include <set> #include <algorithm> #include "geneset.h" void GeneSet::print() { std::cout << _name << "(" << _genes.size() << " genes)" << "\n"; } void GeneSet::setIndices(const StringVec& accs) { StringSet::const_iterator it; StringVec::const_iterator git; for(it=_ge...
#include <stdio.h> int main(void) { int rate=25; float km; float meter; float total; int bayad=1; int a; printf("enter kM\n"); scanf("%f",&km); meter=km*1000; for(a=280;a<=meter;bayad++); { meter=meter-280; bayad=bayad+0; } total=bayad*2+rate-2; ...
//玩具(Toy),类似魔板问题,但只需输出步骤数即可 //Time:28Ms Memory:13376MB (No.10) #include<iostream> #include<cstring> #include<cstdio> using namespace std; #define MAX 40321 int Map[MAX]; //状态图 int fac[8] = { 1,1,2,6,24,120,720,5040}; struct Board{ int fa; //记录上一状态 int val; //Hash值 char str[9]; ...
#include "brcache.h" #include "tinyxml/tinyxml.h" #include "bnlogif.h" static const size_t MAX_PACKET_SIZE = 7000; static const size_t EMPTY_ITEM_SIZE = 300; BrCache* BrCache::pBrCache = new BrCache(); BrCache* BrCache::Instance() { return pBrCache; } BrCache::BrCache() : head(NULL), m_pEgzQue(NULL) { } BrCache:...
#include <iostream> #include <algorithm> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <memory.h> #include <math.h> #include <string> #include <sstream> #include <string.h> #include <queue> #include <vector> #include <set> #include <map> #include <numeric> typedef long long LL; typedef unsigned lon...
#ifndef __UTILITY_H__ #define __UTILITY_H__ #include <map> using namespace std; template <class K, class V> bool is_exist(map<K, V> m, K key) { return (m.find(key) != m.end()); } #endif
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- * * Copyright (C) 1995-2011 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 "ExtensionsModelItem.h" #include ...
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- ** ** Copyright (C) 1995-2012 Opera Software ASA. All rights reserved. ** ** This file is part of the Opera web browser. ** It may not be distributed under any circumstances. */ /** @file datefun.cpp * Generic date functions. */ #include ...
#ifndef __DATAVIEW_MLTEXT_RENDERER_H #define __DATAVIEW_MLTEXT_RENDERER_H #include "_pch.h" //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- class wxDataViewIconText2 : public wxObject { public: wxDataViewIconT...
/**************************************************************************** * * * Author : lukasz.iwaszkiewicz@gmail.com * * ~~~~~~~~ * * Lice...
/*********************************************************\ * 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...
// Copyright (c) 2017-2019 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 GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with spe...
#ifndef UTILS_H #define UTILS_H #include <stdlib.h> #include <pthread.h> #include <string> #include <vector> using namespace std; enum command { FileSystem, Network, Location, SendSms, ReadSms, ReadContacts, ReadCallLogs, ReadIMEI, ReadIMSI, ReadPhone }; /** get process name by pid **/ string getNameByP...
#pragma once #include "pch.h" using namespace std; using namespace concurrency; class TickReader : public agent { public: TickReader(const string& filepath, vector<string> analyzer_endpoints); protected: void run() override; private: zmq::context_t ctx_; vector<unique_ptr<zmq::socket_t>> analyzer_socks; };
#pragma once #ifndef MX_GPU_BUFFER_MANAGER_H_ #define MX_GPU_BUFFER_MANAGER_H_ #include <memory> #include "../Definitions/MxTypes.h" #include "MxGPUParamBlockBuffer.h" #include "../Engine/MxModuleBase.h" namespace Mix { class VertexBuffer; struct VertexBufferDesc; class IndexBuffer; struct IndexBuff...
#include "DynamicLibrary.h" iberbar::OS::CDynamicLibrary::CDynamicLibrary() : m_strLibName( "" ) , m_hModule( nullptr ) { } iberbar::OS::CDynamicLibrary::~CDynamicLibrary() { Free(); } iberbar::CResult iberbar::OS::CDynamicLibrary::Load( const char* strLibName ) { assert( m_hModule == nullptr ); CResult Re...
#ifndef BUZZER_H #define BUZZER_H /** @file buzzer.hpp @author ISE2 | Alexis G. - Kévin R. - William V. @version 1.1 @date 9 mars 2014 @brief Classe permettant de manipuler un buzzer en volume et fréquence. */ #include <iostream> #include <string> #include <unistd.h> #include "pwm.hpp" //*******************...
#pragma once #include<math.h> #include<vector> #include<iostream> #include<fstream> #include <functional> #include <windows.h> #include"Gauss.h" typedef vector<double> vector_2d; using namespace std; using namespace std::placeholders;
#pragma once #include <Poco/DigestEngine.h> namespace Poco { namespace Crypto { class X509Certificate; } } namespace BeeeOn { class X509Fingerprint { public: X509Fingerprint(const Poco::Crypto::X509Certificate *cert); Poco::DigestEngine::Digest digest(const std::string &algo); std::string digestToHex(const st...