text
stringlengths
8
6.88M
#ifndef F3LIB_TERRAINTEXTUREIDMAP_H_ #define F3LIB_TERRAINTEXTUREIDMAP_H_ #include <map> namespace f3 { namespace types { typedef std::map<int, std::string> TerrainTextureIdMap; } // namesace types } // namespace f3 #endif // F3LIB_TERRAINTEXTUREIDMAP_H_
#include "test_suit1.h" #include <QDebug> #include <QString> #include <limits> #define LOG_ERRORCODE(code) (qDebug() << QString("return code: %1").arg(code1)); void TestSuit1::test_QuerySessionHistoryMsgFromServer() { // YIMManager*im = YIMManager::CreateInstance(); // XUINT64 i {1}; // YIMErrorcod...
// Created on: 2015-07-13 // Created by: Irina KRYLOVA // Copyright (c) 2015 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 publ...
#include <iostream> using namespace std; int spd, tgSpd, dist; int main(){ ios_base::sync_with_stdio(false); cin.tie(0); cin >> spd >> tgSpd >> dist; cout << dist / (spd * 2) * tgSpd << '\n'; return 0; }
#pragma once #include "Mass_ToolKit.h" class NeuralNet { private: //VARIABLES double rnd; //For initializeWeights() and Shuffle() int numInput; int numHidden; int numOutput; int numTestData; std::vector<double> inputs; std::vector< std::vector<double> > ihWeights; std::vector<double> hBiases; std::v...
#include <RTCDS1307.h> #include <SPI.h> #include <Wire.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> #include <splash.h> #include <ArduinoJson.h> #include <ESP8266HTTPClient.h> #include <ESP8266WiFi.h> #define RECALIBRATION_CONSUMPTION_KWH 5 #define SCREEN_WIDTH 128 #define SCREEN_HEIGHT 64 #define OLED_...
#include "../http_SIMD_zero_mem_alloc_parser.h" #include "../http_parser_meth_two.h" #include "../http_state_machine.h" #include "../http_zero_mem_alloc_parser.h" #include <benchmark/benchmark.h> #include <cstring> static void Http_State_Machine_Parser(benchmark::State &state) { const char *sample_get_request = ...
#define num 10 int light[5]; int plight[5]; int maxlight[5]; int minlight[5]; int midlight[5]; int samlight; boolean lightflag[5]; double lpf = 0.1; long tm; void setup() { Serial.begin(9600); pinMode(2, OUTPUT); pinMode(3, OUTPUT); pinMode(4, OUTPUT); pinMode(5, OUTPUT); pinMode(6, OUTPUT); for (int i ...
#include "stdio.h" #include "conio.h" #include "dos.h" void main () { clrscr(); char sym='*'; int i=0; for (i=1; i<=20; i++) { textcolor (i); cprintf("%c",sym); delay(150); } getch(); }
#pragma once #include "Core/Core.h" namespace Rocket { static String GenerateName(); }
// // compression: set NTFS attr // /* * Usage: compression file * ToDo: * ReadOnly */ #define STRICT #define UNICODE #define WINVER 0x0500 #define _WIN32_WINNT 0x0500 #include <windows.h> #include <winioctl.h> // element number #define numberof( a ) (sizeof( a ) / sizeof( a[0] ) ) // // -- Put Info & Abort -...
#include "GeneratorInterface/GenFilters/interface/PythiaFilterGammaJetIsoPi0.h" #include "SimDataFormats/GeneratorProducts/interface/HepMCProduct.h" #include "SimGeneral/HepPDTRecord/interface/ParticleDataTable.h" #include "FWCore/Framework/interface/EventSetup.h" #include "FWCore/Framework/interface/ESHandle.h" #...
#include "ProjectRasterization.h" ProjectRasterization::ProjectRasterization() { vs_path = "../Project1/projects/ProjectRasterization/glsl/shader.vs"; fs_path = "../Project1/projects/ProjectRasterization/glsl/shader.fs"; for (int i = 0; i < MAX_POINT; i++) { vertices[i] = 0.0f; } counter = 0; show_what = 0; ...
#include<bits/stdc++.h> using namespace std; int m,n,k,l; int a[100]; void input(){ cin >> m >> n >> k; l = m*n; for (int i = 0; i < l; ++i) cin >> a[i]; } int main(){ freopen("TROCHOI.inp", "r", stdin); input(); sort(a,a+l); int t = 0; for (int i = 0; i < l-k; ++i) t += a[i]; cout << t; ...
// Copyright (c) 2008 Peter Dimov // Copyright (c) 2017 Agustin Berge // // SPDX-License-Identifier: BSL-1.0 // 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) #pragma once #include <pika/config/compiler_specifi...
/******************************************************************************** ** Form generated from reading UI file 'popup.ui' ** ** Created by: Qt User Interface Compiler version 5.11.2 ** ** WARNING! All changes made in this file will be lost when recompiling UI file! ********************************************...
#include <ionir/passes/pass.h> namespace ionir { BooleanLiteral::BooleanLiteral(bool value) : Value(ValueKind::Boolean, TypeFactory::typeBoolean()), value(value) { // } void BooleanLiteral::accept(Pass &visitor) { visitor.visitBooleanLiteral(this->dynamicCast<BooleanLiteral...
/* This file contributed by the Tape Join project and modified locally. See attached copyright notice. */ /* $Id: DCE.C,v 1.8 1996/12/13 21:34:02 jussi Exp $ $Log: DCE.C,v $ Revision 1.8 1996/12/13 21:34:02 jussi Replaced assert() calls with error return codes. Revision 1.7 1996/12/12 22:04:34 juss...
/* * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and...
#include <iostream> #include <fstream> #include <cstring> #include <cstdlib> using namespace std; ifstream fin("input.txt"); //part 1 inline bool check1(int nr) { int lastdigit = 10; bool doubled = 0; while (nr > 0) { if (nr % 10 > lastdigit) { return 0; } if (nr % 10 == lastdigit) { doubled = 1; ...
#include "TestFramework.h" #include <treecore/SimdObject.h> #include <treecore/FloatUtils.h> #include <treecore/IntUtils.h> using namespace treecore; void TestFramework::content() { typedef treecore::similar_int<float>::type IntT; SimdObject<float, 4> result = SimdObject<float, 4>(123.456f, -789.1...
#include "No.h" No::No(int id, int label, int dado) { this->id = id; this->dado = dado; this->label = label; prox = NULL; adjRaiz = NULL; ultimaAdj = NULL; grau = 0; grauEntrada = 0; frequencia = -1; //ctor } No::~No() { do { Adjacencia* adj = adjRaiz; if (...
#include<iostream> #include<cstdio> #include<map> #include<set> #include<vector> #include<stack> #include<queue> #include<string> #include<cstring> #include<sstream> #include<algorithm> #include<cmath> #define INF 0x3f3f3f3f #define eps 1e-8 #define pi acos(-1.0) using namespace std; typedef long long L...
#pragma once #include <iostream> struct Point{ double x; double y; Point(double x, double y):x(x),y(y){ } Point operator+(const double other){ return Point(this->x + other, this->y + other); } Point& operator+=(const sf::Vector2<double>& vector){ this->x += vector.x; this->y += vector.y; ...
#include "stdafx.h" #include <vector> #include "tile.h" #include "bitmap.h" TilePalette::TilePalette() { for (UINT i = 0; i < 16; i++) { transparent_[i] = 0x00000000; } } bool TilePalette::LoadSpriteSubPal(CartFile& cart, UINT id) { CartFile::Scope scope(cart); DWORD addr; addr = 0x0...
#include "stdafx.h" #include "player.h" HRESULT player::init() { //rectView = false; isDie = false; IMAGEMANAGER->addFrameImage("player", "image/playerMove.bmp", 434, 80, 7, 1); IMAGEMANAGER->addFrameImage("death", "image/deathExplosions.bmp", 800, 94, 12, 1); IMAGEMANAGER->addImage("gameOver", "image/gameOver.bm...
//Accepted. Time-0.030s #include <bits/stdc++.h> using namespace std; #define ll long long #define vll vector<ll> int main() { ll t,d,l,h,q,p,c; string m; cin>>t; for(int i=0;i<t;i++) { if(i!=0) cout<<"\n"; cin>>d; vector<pair<string,pair<ll,ll> > > um; for(int i=0...
#include <iostream> #include <fstream> // Para salvar todos os dados importantes em arquivos para uso posterior #include "Interacao.h" // Para poder utilizar toda a interface using namespace std; struct data_type{ // Uma struct para a leitura de dados (Estilo JSON) string parametro; // O parâmetro ...
#include<iostream> #include<cstring> #define FOR0(i,n) for(i=0;i<n;i++) #define FOR(i,j,n) for(i=j;i<n;i++) #define FORD(i,j,k) for(i=j;i>=k;i--) #define MAX(a,b) (a)>(b)?(a):(b) #define MIN2(a,b) (a)<(b)?(a):(b) #define MIN3(a,b,c) (a)<(b)?((a)<(c)?(a):(c)):((b)<(c)?(b):(c)) using namespace std; int n,k,m; l...
#pragma once #include "Core/Core.h" #include "Vulkan/VulkanFunction.h" #include <vulkan/vulkan.h> namespace Rocket { class VulkanDevice { public: operator VkDevice() { return logicalDevice; }; VulkanDevice(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface); ~VulkanDevice() = default; void Initialize(...
#include "Font.h" #define STB_TRUETYPE_IMPLEMENTATION // force following include to generate implementation #include "stb_truetype.h" namespace rend { void Font::initFont(std::vector<unsigned char> buffer) { stbtt_BakeFontBitmap(&buffer.at(0), 0, 32.0, temp_bitmap, 512, 512, 32, 96, cdata); // no guarantee this ...
#pragma once #include <string> #include "PredicateValues.h" /** * A PredicateVehicle is the representation of a vehicle object with predicates which are represented by IDs. */ class PredicateVehicle { public: /** * Instantiates a predicate vehicle with the given values * @param id The ID of the vehicle. * @param ...
#include <iostream> #include <cstdio> #include <string> #include <vector> #include <fstream> #include <boost/lexical_cast.hpp> #include <boost/bimap.hpp> #include <boost/flyweight.hpp> using namespace std; using namespace boost; using key = uint32_t; struct User { User(std::string const& first_name, std::string...
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- ** ** Copyright (C) 2005 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 SVG_SUPPORT #include "modules/svg/sr...
#include <iostream> //#include <fstream> using namespace std; typedef unsigned long long int ll; const int smg = 4; //ofstream fo("OUTPUT.OUT"); struct cn{ int r; int d; }; int n; ll tongmul, dt; cn a[smg+1]; bool t[smg+1]; bool tt; string *s; void set(){ tt = false; tongmul = ...
#include <QString> #include "ShoeMessageLogin.h" QString ShoeMessageLogin::getIMEI() { /** * 这里牵扯这个imei是bcd编码 * 0123456789012345 m_imei.toHex() 是 * 123456789012345 第一个去掉 * */ return mIMEI; } void ShoeMessageLogin::parseData(QByteArray data) { // 登录包是个异常包 ...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; using ii= pair<ll,ll>; #define F first #define S second #define MP make_pair #define PB push_back //using min_of_3=min({ll a,ll b,ll c}); vector<ll> v[26]; ll indegree[26]={0}; vector<ll> topo; map<ll,ll> ma; // map to count number of distinct ...
#ifndef NET_PRIMS_HPP #define NET_PRIMS_HPP class VM; void net_init_primitives(VM* vm); #endif // NET_PRIMS_HPP
#ifndef __USER_RECORD_H__ #define __USER_RECORD_H__ #include <cocos2d.h> using namespace cocos2d; //±£´æÍæ¼ÒÊý¾Ý class UserRecord : public Object { public: UserRecord(){} ~UserRecord(){} static UserRecord* getInstance(); virtual bool init(); void saveIntegerToUserDefault(const char *key, int ...
#include <bits/stdc++.h> #define ll long long #define ull unsigned long long #define FOR(i,n) for(ll i=0;i<n;i++) #define FOR1(i,n) for(ll i=1;i<n;i++) #define FORn1(i,n) for(ll i=1;i<=n;i++) #define FORmap(i,mp) for(auto i=mp.begin();i!=mp.end();i++) #define vll vector<ll> #define vs vector<string> #define pb(x) push_...
#pragma once // Std. Includes #include <string> #include <sstream> #include <vector> // GL Includes #include <GL/glew.h> #include "Shader.h" #include "Texture.h" #include <assimp/scene.h> using namespace std; using namespace glm; struct Vertex { vec3 Position; vec3 Normal; vec2 TexCoords; }; class Mesh { public: ...
// // Created by cirkul on 23.11.2020. // #include "Playground.h" Playground::Playground(int rows, int cols) { this->rows = rows; this->cols = cols; this->pg.resize(this->rows, std::vector<Cell>(this->cols)); for (std::size_t i = 0; i < this->rows; ++i) for (size_t j = 0; j < this->cols; ++j) ...
#include "_pch.h" #include "VClsDataEditorPanel.h" #include "PGClsPid.h" #include "dlgselectcls_ctrlpnl.h" using namespace wh; using namespace wh::view; //----------------------------------------------------------------------------- //--------------------------------------------------------------------------- //VCls...
#include <glm/glm.hpp> #include "Camera.h" #include "../input/Input.h" class CameraController { public: virtual ~CameraController() = default; virtual void update() = 0; virtual void resize(uint32_t width, uint32_t height) = 0; virtual void zoomBy(float offset) = 0; virtual glm::mat4 getViewProj...
#include <iostream> using namespace std; using ll = long long; int main() { ll N, M; cin >> N >> M; if (N > M) swap(N, M); ll rem = 0; if (N == 1) { rem = min(M % 6, 6 - M % 6); } else { if (N % 2 == 1 && M % 2 == 1) { rem = 1; } else { if (M ==...
//////////////////////////////////////////////////////////////////////////////// #include "interpolate.h" #include "MeshUtils.h" #include <geogram/mesh/mesh_AABB.h> #include <vector> #include <queue> //////////////////////////////////////////////////////////////////////////////// namespace cellogram { namespace { /...
// Problem No. 04 => Kadane's Algorithm #include<iostream> #include<climits> using namespace std; int main(){ int arr[] = {-2,1,-3,4,-1,2,1,-5,4}; int sum = 0; int maxi = INT_MIN; for(auto it : arr){ sum += it; maxi = max(sum, maxi); if(sum < 0) sum = 0; } cout<<"Max...
#include<cstdio> #include<iostream> #include<map> #include<cstring> #include<algorithm> using namespace std; int x[110][55],y[110][55]; int nx[55],ny[55]; int N; int total(int i){ int flag=1; for(int j=0;j<i;j++){ flag=1; for(int k=1;k<=N;k++){ // printf("j:x[%d]=%d y[...
// // config.h // trackers // // Created by Lianghua Huang on 16/5/22. // Copyright © 2016年 Lianghua Huang. All rights reserved. // #pragma once class Config { private: std::map<std::string, std::string> conf_map; public: Config(const std::string& path_conf); ~Config(); std::string oper...
//----------------------------------------------------------------------------- // Module A // // Description - Does the parsing of the input file and reads the positions // file //----------------------------------------------------------------------------- #ifndef MODULEA_HPP #define MODULEA_HPP #inclu...
#include "SingleLinkList.h" #include <iostream> #include <stack> void printListReversingly(const SingleLinkList &list) { std::stack<int> stackData; listNode* p =list.getpHead();//使用常引用传参(const singleLinkList &list),常对象list只能调用常函数,所以getpHead只能是const常函数 while(p!=nullptr) { stackData.push(p->data);//栈中存节点...
#include <tuple> #include <cmath> #include <boost/geometry.hpp> #include "kGeoMath.hpp" #define PI 3.14159265 namespace bg = boost::geometry; std::tuple<double, double, double> attitudeToDirection(float pitch, float heading) { bg::model::point<long double, 2, bg::cs::spherical<bg::degree>> dir_spherical(90 - hea...
// // engine.h // mini-sql // // Created by Дмитрий Маслюков on 17.02.2020. // Copyright © 2020 Дмитрий Маслюков. All rights reserved. // #ifndef engine_h #define engine_h #include "db.h" #include "parser.h" #include "server.h" class engine { DB database; // not to perform strcmp each time as it will hav...
// Este codigo ha sido generado por el modulo psexport 20180802-w32 de PSeInt. // Es posible que el codigo generado no sea completamente correcto. Si encuentra // errores por favor reportelos en el foro (http://pseint.sourceforge.net). #include<iostream> #include<cstdlib> using namespace std; // Para leer variables d...
#ifdef DEBUG #define _GLIBCXX_DEBUG #endif #include <iostream> #include <algorithm> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <memory.h> #include <math.h> #include <string> #include <string.h> #include <queue> #include <vector> #include <set> #include <deque> #include <map> #include <functional>...
// Created on: 1994-05-31 // Created by: Christian CAILLET // Copyright (c) 1994-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 ...
#pragma once /// 从文件读入BAL dataset class BALProblem { public: /// load bal data from text file explicit BALProblem(const std::string &filename, bool use_quaternions = false); ~BALProblem() { delete[] point_index_; delete[] camera_index_; delete[] observations_; d...
#pragma once #include <PA9.h> #include "DSspecs.h" #include "IdGenerator.h" class C3DSpriteData{ private: void * m_spriteData, * m_paletteData; u16 m_width, m_height, m_paletteId, m_textureId; u8 m_textureType; public: C3DSpriteData(); C3DSpriteData(void * sprite, void * palette, u16 width, u16 heig...
// SegaCDI.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "Dreamcast\CdiImage.h" #include "ISO/Iso9660.h" void printUse() { // Print the program command line args. printf("SegaCDI.exe <cdi_file> <options>\n\n"); printf("\tOptions:\n"); printf("\t<cdi_file>...
// // main.cpp // // Created by Héctor Esteban Cabezos on 15/1/19. // Copyright © 2019 Héctor Esteban Cabezos. All rights reserved. // #include <iostream> #include <string> #include <vector> #include <sstream> #include <iterator> using namespace std; int rows, columns; vector<vector<double>> initiliaze_matrix(ist...
#include "MasterPlaylistParser.h" #include "ParserStreamReader.h" #include <QTextStream> #include <QDebug> namespace hls { std::unique_ptr<BasePlaylist> MasterPlaylistParser::parse(const QByteArray &data) { QSet<const char *> parsedTags; ParserStreamReader reader(data.trimmed()); if (!reader.status()) { t...
#include "util/glutil.h" class VertexBuffer { public: VertexBuffer(const void* data, ui32 size); ~VertexBuffer(); void bind() const; void unbind() const; private: ui32 ID; }; VertexBuffer::VertexBuffer(const void* data, ui32 size) { glGenBuffers(1, &this->ID); glBindBuffer(GL_ARRAY_BUFFER,...
/* * fonc_gnu.h * * Created on: 2 mars 2014 * Author: droper */ #ifndef fonc_gnu_H_ #define fonc_gnu_H_ #include <vector> #include "node.h" #include "fonc.h" class fonc_gnu : public fonc { public: fonc_gnu(const char*, double (*fnc)(double)); ~fonc_gnu(); void display(std::ostream&, int); double get...
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- * * Copyright (C) 1995-2009 Opera Software ASA. All rights reserved. * * This file is part of the Opera web browser. It may not be distributed * under any circumstances. */ #ifndef DOM_DOMJILOBJECT_H #define DOM_DOMJILOBJECT_H #include...
#ifndef QP_SOLVER_H #define QP_SOLVER_H #include <Eigen/Dense> #ifdef QP_SOLVER_USE_SPARSE #include <Eigen/Sparse> #endif #include <cmath> #include <limits> #ifndef SOLVER_ASSERT #define SOLVER_ASSERT(x) eigen_assert(x) #endif namespace qp_solver { #ifdef QP_SOLVER_USE_SPARSE template <int _n, int _m, typename _Sca...
#include <iostream> using namespace std; int main() { int t, n, x; cin >> t; while (t--) { cin >> n; int sum = 0, mi = 1e9; for (int i = 0; i < n; i++) { cin >> x; sum += x; if (x < mi) mi = x; } cout << sum - mi * n << endl; } ...
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- ** ** Copyright (C) 2005 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 SVG_SUPPORT #include "modules/svg/src/SV...
#ifndef _LoginHallProc_H_ #define _LoginHallProc_H_ #include "IProcess.h" class LoginHallProc :public IProcess { public: LoginHallProc(); virtual ~LoginHallProc(); virtual int doRequest(CDLSocketHandler* clientHandler, InputPacket* inputPacket,Context* pt) ; virtual int doResponse(CDLSocketHandler* clientHa...
#pragma once #include "../gl_command.h" #include "../gl_strings.h" namespace glmock { // // http://www.opengl.org/sdk/docs/man3/xhtml/glFlush.xml class GLFlush : public GLCommand { public: GLFlush(); virtual ~GLFlush(); }; }
// https://oj.leetcode.com/problems/spiral-matrix-ii/ class Solution { void fill(vector<vector<int> > &matrix, int row_from, int row_to, int col_from, int col_to, int start_val) { if (row_from > row_to || col_from > col_to) { return; } // go right ...
// // Created by griha on 13.01.18. // #pragma once #ifndef MIKRONSST_HSM_LIB_CRYPTO_CONTEXT_HPP #define MIKRONSST_HSM_LIB_CRYPTO_CONTEXT_HPP #include <crypto/crypto_context.hpp> #include <crypto/error.hpp> namespace griha { namespace hsm { extern "C" { __declspec(dllexport) ICryptoContext * __cdecl ...
/* Copyright (c) 2014 Mircea Daniel Ispas This file is part of "Push Game Engine" released under zlib license For conditions of distribution and use, see copyright notice in Push.hpp */ #include "Core/Buffer.hpp" #include <algorithm> namespace Push { Buffer::Buffer(Buffer&& rhs) { std::swap(m_data, r...
#include"Winsock.h" #include"windows.h" #include"stdio.h" #pragma comment(lib,"wsock32.lib") #define RECV_PORT 5001 #define MaxNum 10 //最大连接数 #define MaxLength 1024 //最大消息长度 DWORD ClientTread(void * PD); SOCKET ServerSock; sockaddr_in ServerAddr; int Addrlen; HANDLE HdTread[MaxNum]; struct { int num; char name[1...
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- * * Copyright (C) 1995-2009 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 "adjunct/quick/widgets/QuickChrome...
#pragma once #include "PCH.hpp" class Timer { public: Timer(); void Start(); void Stop(); void Pause(); void UnPause(); double GetTime(); bool IsStarted(); bool IsPaused(); private: double m_startTime; double m_pausedTime; bool m_isStarted; bool m_isPaused; };
#pragma once #include <cstdlib> #include <cstring> #include <iostream> #include <utility> #include <vector> namespace SVParser { class Pattern : private std::vector< unsigned short > { typedef std::vector< unsigned short > _Base; public: static const unsigned short DONT_CARE = 2; friend std::ostream& ope...
#include <cstdlib> #include <iostream> #include <vector> #include <fstream> #include <string.h> #include "vid.h" #include "kmziaes.h" #include "stegan.h" #include "server.h" using namespace std; int main(int argc, char* argv[]) { string fileDataName,fileKeyVigName,fileKeyAesName,fileContainName; int port=0; ...
#pragma once #include "plbase/PluginBase.h" #include "CVector.h" #include "CEntity.h" #include "CObject.h" #pragma pack(push, 1) class PLUGIN_API CRope { public: CVector m_avRopeSegments[32]; CVector m_avRopeSegmentsReleased[32]; int m_dwId; float float304; float m_fMass; float m_fRopeTotalLength; CEntity *m_pR...
#include <iostream> #include <vector> #include <queue> #include <cstring> typedef long long ll; struct route{ int A, B; ll dist; bool operator<(const route &rhs) const{ return dist > rhs.dist; } }; int V, E; int parent[10001]; int Find(int idx) { if(parent[idx] == 0) { return i...
#pragma once #ifndef SINGLELINKEDLIST_HPP_INCLUDE #define SINGLELINKEDLIST_HPP_INCLUDE #include <iostream> namespace sll { typedef struct Node { int value; struct Node *next; } Node; // LinkedList structure has pointer to first element, and count of // elements in list. typedef struct LinkedList { Node...
#pragma once class Fahrzeug; class Weg; class FahrAusnahme { public: FahrAusnahme(Fahrzeug* pCar, Weg* pWay); ~FahrAusnahme(void){}; virtual void vBearbeiten() = 0; protected: Fahrzeug *p_ptFahrzeug; Weg *p_ptWeg; };
#include <cppunit/extensions/HelperMacros.h> #include <Poco/Exception.h> #include "cppunit/BetterAssert.h" #include "math/SimpleCalc.h" using namespace std; using namespace Poco; namespace BeeeOn { class SimpleCalcTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(SimpleCalcTest); CPPUNIT_TEST(testConstant)...
#include "RocketMQPullConsumer.h" #include "MPLogger.h" RocketMQPullConsumer::RocketMQPullConsumer(const std::string& sGroupName) : RocketMQConsumer() , m_PullConsumer(sGroupName) , m_sGroupName(sGroupName) { } RocketMQPullConsumer::~RocketMQPullConsumer() { } bool RocketMQPullConsumer::Awake( const...
#include<iostream> using namespace std; int main(){ char Yes = 'Y'; cout<<Yes; return 0; }
#include <conio.h> #include <iostream.h> void main () { clrscr(); int i=2; while (i<=50) { int a=0, j=1; while (j<=i) { if (i%j==0) a+=1; j++; } if (a==2) cout <<i <<" is prime number\n\n"; i++; } getche(); }
// Calculate level crossings for the hermitian index staggered operator. // Uses inverse power iterations to get the eigenvalues of the operator squared, // then figure out if the proper eigenvalue is +/- sqrt(eigen). #include <iostream> #include <iomanip> // to set output precision. #include <cmath> #include <string>...
// 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 GNU Lesser General Public License version 2.1 as published ...
// 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_accessor_ButtonIcon_TextColor.h> #include <_root.ButtonIcon.h> #include <Uno.Bool.h> #include <Uno.Float4.h> #include <Uno.Object.h> #in...
#ifndef UTILITY_H #define UTILITY_H //#include <SFML/Graphics/Sprite.hpp> #include <SFML/Window/Keyboard.hpp> #include <SFML/System/Vector2.hpp> #include <SFML/Window/Event.hpp> #include <sstream> namespace sf { class Sprite; class Text; } void centerOrigin(sf::Sprite& sprite); void centerOrigin(sf::Text& ...
// // Created by xpl on 2021/6/24. // #ifndef LAPUTA_FFMPEG_AUDIOCHANNEL_H #define LAPUTA_FFMPEG_AUDIOCHANNEL_H #include "BaseChannel.h" #include <SLES/OpenSLES.h> #include <SLES/OpenSLES_Android.h> extern "C" { #include <libavcodec/avcodec.h> #include <libswresample/swresample.h> } class AudioChannel : public Bas...
#include <string> #include <sstream> #include "TaskSystem.h" #include "../common/catch.hpp" class FinishedMatcher : public Catch::MatcherBase<std::tuple<array<100>&, array<100>&>> { public: FinishedMatcher(std::initializer_list<uint32_t> l) : list(l) {} bool match(const std::tuple<array<100>&, array<100>&>& r) con...
#ifndef wali_HM_HASH_GUARD #define wali_HM_HASH_GUARD 1 /*! * @author Nicholas Kidd */ #include <cstring> // for hm_equal< char * > /* These were taken from Thomas Wang * http://www.concentric.net/~Ttwang/tech/inthash.htm * * On machines where long is 64 bits, the below should * probably be used. * */ #und...
// Copyright (c) 2017 Shoshana Jakobovits // // SPDX-License-Identifier: BSL-1.0 // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include <pika/config.hpp> #include <pika/schedulers/local_priority_queue_schedul...
/* TouchKeys: multi-touch musical keyboard control software Copyright (c) 2013 Andrew McPherson This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at you...
//#include <iberbar/Font/CharMapper.h> // // //iberbar::CFontCharMapper::CFontCharMapper() // : m_CharsMapper() // , m_LatinBitmaps() //{ //} // // //void iberbar::CFontCharMapper::AddCharBitmap( wchar_t nChar, const UFontCharBitmap& pBitmap ) //{ // if ( nChar >= 31 && nChar <= 126 ) // { // m_LatinBitmaps[ nChar -...
#include <bits/stdc++.h> using namespace std; #define MOD 1000000007 #define rep(i, n) for(int i = 0; i < (int)(n); i++) #define rep1(i, n) for(int i = 1; i <= (int)(n); i++) #define showmap(is, js, x) {rep(i, is){rep(j, js){cout << x[i][j] << " ";}cout << endl;}} #define show(x) {for(auto i: x){cout << i << " ";} cout...
 #ifndef ASSIGN2_PLAYER_H #define ASSIGN2_PLAYER_H #include <string> #include "LinkedList.h" class Player { public: Player(); ~Player(); //玩家姓名 std::string name; //玩家得分 int score; //保存玩家手中的tile LinkedList hand; //玩家从bag抽取tile,一次性抽取count个数的tile void Drawn(LinkedList* pBag, int count); //清...
#include "../DetectMemoryLeak.h" #include "ProjectileManager.h" #include "Projectile.h" #include "../EntityManager.h" #include "../GenericEntity.h" ProjectileManager::ProjectileManager() { } ProjectileManager::~ProjectileManager() { } void ProjectileManager::AddProjectile(CProjectile * projectile) { projectileList....
//************************************************************************** // File......... : NetEventServer.cpp // Project...... : VR // Author....... : Liu Zhi // Date......... : 2018-09 // Description.. : Implementation file of the ...
/**************************************************************************** * * * Author : lukasz.iwaszkiewicz@gmail.com * * ~~~~~~~~ * * Lice...