text
stringlengths
8
6.88M
#include "menubox.h" MenuBox::MenuBox(QWidget *parent) : QComboBox(parent) { setPalette( QPalette( Qt::blue ) ); }
/* * Copyright (c) 2016-2019 Morwenn * SPDX-License-Identifier: MIT */ #ifndef CPPSORT_COMPARATORS_PARTIAL_GREATER_H_ #define CPPSORT_COMPARATORS_PARTIAL_GREATER_H_ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// #include <type_tra...
#ifndef Catipillar_h #define Catipillar_h #include "Animation.h" class Catipillar : public Animation { public: Catipillar(void); virtual void loop(variables_t *vars); virtual void reset(variables_t *vars); private: }; #endif
#include<iostream> #include<vector> using namespace std; int M,N; struct Node{ int steps; int sum; }; vector<vector<int>> compute_cost; int res=0; void dfs(int i,int j,vector<vector<int>> visited,vector<vector<Node>> dp) { if(visited[i][j]==1) return; visited[i][j]=1; if(i==M-1&&j==N-1) ...
#define encoder_motor_pin_A 2 //change to corresponding pins in mega #define encoder_motor_pin_B 3 //change to corresponding pins in mega #define encoder_motor_pin_input_1 10 #define encoder_motor_pin_input_2 12 #define encoder_motor_pin_enable 11 volatile unsigned int encoder_motor_pos = 2250; void setup() { pinM...
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4; c-file-style:"stroustrup" -*- ** ** Copyright (C) 1995-2010 Opera Software AS. All rights reserved. ** ** This file is part of the Opera web browser. It may not be distributed ** under any circumstances. ** ** Espen Sand */ #ifndef _X11_ICON_H_ ...
/* ** $Id: ldo.h,v 2.28 2015/11/23 11:29:43 roberto Exp $ ** Stack and Call structure of Lua ** See Copyright Notice in lua.h */ #ifndef ldo_h #define ldo_h #include "lobject.h" #include "lstate.h" #include "lzio.h" namespace youmecommon { /* ** Macro to check stack size and grow stack if needed. Parameters ** ...
#include "StaticObjectCoinsView.h" #include "Core.h" void StaticObjectCoinsView::initView(StaticObjectModel* staticObjectModel) { m_staticObjectModel = staticObjectModel; //Obtain the atlas key looking up where the mesh is. Could be any mesh. m_atlasKey = Core::singleton().textureManager().findAtlas("ccoins"); a...
#include <bits/stdc++.h> using namespace std; #define TESTC "" #define PROBLEM "12602" #define USE_CPPIO() ios_base::sync_with_stdio(0); cin.tie(0) int main(int argc, char const *argv[]) { #ifdef DBG freopen("uva" PROBLEM TESTC ".in", "r", stdin); freopen("uva" PROBLEM ".out", "w", stdout); #endif int CASE; ...
#pragma once #include <cstdint> #include "..\object.hpp" #include "..\math.hpp" namespace leaves { namespace pipeline { class sampler : public object { public: enum class filter_mode : std::uint8_t { min_p_mag_p_mip_p, min_p_mag_p_mip_l, min_p_mag_l_mip_l, min_p_mag_l_mip_p, min_l_mag_p_mip_p, ...
#pragma once #include "Module/GraphicsManager.h" #include "OpenGL/OpenGLPipelineStateManager.h" #include "OpenGL/OpenGLFrameBuffer.h" #include "OpenGL/OpenGLVertexArray.h" #include "OpenGL/OpenGLVertexBuffer.h" #include "OpenGL/OpenGLIndexBuffer.h" #include "OpenGL/OpenGLUniformBuffer.h" #include "OpenGL/OpenGLShader.h...
#include<iostream> #include<cstdio> #include<map> #include<set> #include<vector> #include<stack> #include<queue> #include<string> #include<cstring> #include<algorithm> #include<cmath> using namespace std; const int move[4][2] = {1,0,-1,0,0,1,0,-1}; struct data { int x,y; }; data from,to; int vis[510][...
#ifndef CRECT_H #define CRECT_H // system includes #include <vector> // project includes #include "CPoint.h" // external include #include "xmlParser.h" // global namespace declaration using namespace std; // forward declaration class CRect; class CRect : public CShape { public: CRect( cons...
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- * * Copyright (C) 2006-2011 Opera Software AS. All rights reserved. * * This file is part of the Opera web browser. It may not be distributed * under any circumstances. */ #ifndef OP_CERTIFICATE_H #define OP_CERTIFICATE_H /** @short In...
#include <I2Y0A21.h> #include <LED.h> #include <TPC8407.h> I2Y0A21 ri(6, 0.05); I2Y0A21 li(1, 0.05); I2Y0A21 fi(0, 0.05); TPC8407 rmotor(2, 4, 3, 5,176); TPC8407 lmotor(7, 8, 6, 9,170); LED fled(16); LED lled(18); LED rled(17); LED bled(19); double distr, distl, distf; double pdistr, pdistl, pdistf; boolean right, ...
#pragma once #include <vector> #include "Object.hpp" class Entity : public Object { public: void setHealth(int h) { health = h; } void setMaxHealth(int h) { maxHealth = h; } int getHealth() { return health; } int getMaxHealth() { return maxHealth; } int createCycle(int row, int w, int h, int amoun...
/** * Copyright (c) 2022, Timothy Stack * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this * list of condi...
#include "stdafx.h" #include "ImageManager.h" ImageManager::ImageManager() { } ImageManager::~ImageManager() { } void ImageManager::Release() { DeleteAll(); } Image * ImageManager::AddImage(string strKey, const char * fileName, float x, float y, int width, int height, bool isTrans, COLORREF transColor) { Image*...
#include <iostream> #include <algorithm> #include <cstdio> #include <cstdlib> #include <ctime> #include <memory.h> #include <cmath> #include <string> #include <cstring> #include <queue> #include <vector> #include <set> #include <deque> #include <map> #include <functional> #include <numeric> #include <ss...
#include "struct.hpp" #include "parse.hpp" #include "other.hpp" #include "shading.hpp" using namespace std; using namespace Eigen; int main(int argc, char* argv[]) { if (argc != 5) { // commands are insufficient to run the program cerr << "incorrect command inputs" << endl; return 1; }...
// // Created by Omer on 22/01/2018. // #include "River.h" using namespace mtm; River::River(const std::string &name) : Area(name) {} River::~River() = default; static vector<GroupPointer>::iterator getStrongestGroup (vector<GroupPointer> &groups) { auto strongest_group = groups.begin(); for (auto...
#include <stdio.h> #include <math.h> #include <stdlib.h> #include <iostream> #include <string.h> using namespace std; #define INV_NUM 15 //Number of inventory slots void header (char*); class players { char name[32]; int att, def, mgk, mdef; int health, max_health; int mana, max_mana; public: // players(); v...
#include <afx.h> #include <fstream> #include <string> #include <sstream> #include "traderspi.h" #include "mdspi.h" #include "windows.h" #pragma warning(disable : 4996) extern int requestId; extern HANDLE g_hEvent; extern Strategy* g_strategy; void CtpMdSpi::OnRspError(CThostFtdcRspInfoField *pRspInfo, int nReq...
/** * Revised on Jan 7, 2018. * @author: Zijie Jiang * Changes: Added comments * */ #include"Chamber.h" #include"Floor.h" #include<iostream> Chamber::Chamber(int x, int y, int length, int width, int chamberIndex) :Entity(x, y, '.', "Chamber") { this->length = length; this->width = width; this->hasPlayer = fal...
#include <iostream> #include <limits> using namespace std; //creates variable choice for user int Choice; int main() { do { //prompts the user to choose a beverage cout << "Please choose a number 1 through 5" << endl << "1 for Mountain Dew, 2 for Coca Cola, 3 for Lemonade, 4 for Dr. Pepper, and 5 for Wat...
#ifndef __MEDIA_PARSER_HH__ #define __MEDIA_PARSER_HH__ class CMediaParser { public: static CMediaParser* CreateNew(); protected: CMediaParser(); ~CMediaParser(); public: int getFrameWidth() { return mVideoFrameWidth; } long getDurationMs() { return mVideoDuration / 1000 ; } float getVideoFrameRate(...
#include "endgame.h" #include "ui_endgame.h" endgame::endgame(QWidget *parent) : QDialog(parent), ui(new Ui::endgame) { ui->setupUi(this); } void endgame::setState(int black, int white){ if(black > white){ char txt[100]; snprintf(txt, sizeof(txt), "Black won with score %d/%d", black, w...
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- ** ** Copyright (C) 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 "modules/style/css_gradient.h" #ifdef ...
// // Created by heyhey on 20/03/2018. // #ifndef PLDCOMP_APPELFONCTION_H #define PLDCOMP_APPELFONCTION_H #include <ostream> #include "Expression.h" #include "Parametre.h" class AppelFonction : public Expression { public: AppelFonction(); AppelFonction(const string &nomFonction, Parametre *parametre); ...
/* Copyright 2018 Stanford * * 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 law or agreed to in wri...
// internal #include <iostream> #include "physics_system.hpp" #include "world_init.hpp" // Returns the local bounding coordinates scaled by the current size of the entity vec2 get_bounding_box(const Motion& motion) { // abs is to avoid negative scale due to the facing direction. return { abs(motion.scale.x)...
#ifdef DEBUG #define _GLIBCXX_DEBUG #endif #include <iostream> #include <algorithm> #include <cstdio> #include <cstdlib> #include <ctime> #include <memory.h> #include <cmath> #include <string> #include <cstring> #include <queue> #include <vector> #include <set> #include <deque> #include <map> #include <functional> #inc...
#define BOOST_TEST_LOG_LEVEL test_suite #define BOOST_TEST_MODULE test_main #include <boost/test/unit_test.hpp> #include <boost/mpl/assert.hpp> #include <thread> #include <mutex> #include <condition_variable> #include "Server.h" #include "Writers.h" using namespace boost::asio; std::mutex mtx; std::condition_variab...
#ifndef SPI_h #define SPI_h #include "Arduino.h" #define CFG_ENABLE (1 << 0) #define CFG_MASTER (1 << 2) #define CFG_SLAVE (0 << 2) #define CFG_LSBF (1 << 3) #define CFG_CPHA (1 << 4) #define CFG_CPOL (1 << 5) #define CFG_LOOPBACK (1 << 7) #define SPI_MODE0 ( 0 | 0 ) #define SPI_MODE1 ( 0 |...
#include <iostream> #include "Point.h" using namespace std; int main() { Point a(1, 2), b(3, 4); PointManagement pm; double dis = pm.getDistance(a, b); cout << dis << endl; }
#include <bits/stdc++.h> using namespace std; #define MOD 1000000007 #define rep(i, n) for(int i = 0; i < (int)(n); i++) typedef long long ll; vector<ll> a,f; ll n; ll binarySearch_latest(bool (*callback)(ll, ll), ll userQuery = 0) { ll ng = -1; ll ok = 10e12; while(abs(ok - ng) > 1){ ll mid = (o...
/* filename: moparallelitem.cpp author: Sherri Harms last modified: 8/8/01 description: Class mop_item Inherited IMPLEMENTATION file for episodes. Values of this type are a composite of episode, support, and a list of occurrences; This implementation uses a list for the occurrences and a vector for episode. *****...
class Solution { public: int maxResult(vector<int>& nums, int k) { long curr=0; deque<int> dq; for(int i=nums.size()-1;i>=0;i--) { curr=nums[i]+(dq.empty()?0:nums[dq.front()]); while(!dq.empty()&&curr>nums[dq.back()]) dq.pop_back(); ...
class ParachuteBase; class ParachuteWest: ParachuteBase { model = "\z\addons\dayz_epoch_v\vehicles\chute\PARA.p3d"; };
#ifndef RANDOMNUMBERGENERATOR_H #define RANDOMNUMBERGENERATOR_H #include "boost/random.hpp" #include "boost/generator_iterator.hpp" class RandomNumberGenerator { private: boost::mt19937 _rng; public: int GenerateRandomNumber(int bottonLimit, int upLimit); }; #endif
#include <iostream> #include <vector> #include <string> using namespace std; vector<char> stLeft; vector<char> stRight; int main(){ ios_base::sync_with_stdio(false); cin.tie(0); string input; cin >> input; for(int i = 0; i < input.size(); i++){ stLeft.push_back(input.at(i)); } int ...
#pragma once #include <string> #include <vector> #include "bass.h" class Audio { public: static void init(); Audio(); Audio(std::string_view filepath); void loadFromFile(std::string_view filepath); void play(); void restart(); void pause(); void stop(); bool isPlaying() const; void ...
// // CubeMap.cpp // Odin.MacOSX // // Created by Daniel on 27/10/15. // Copyright (c) 2015 DG. All rights reserved. // #include "CubeMap.h" #include "LogManager.h" #include "DebugIL.h" #include <IL/il.h> #if defined ODIN_DEBUG #include <IL/ilu.h> #endif #include <memory> namespace odin { namespace resource ...
#pragma once #define MAKE_KEY(a,b) {#a,b}, namespace input { struct { char* name; int value; } keys[] = { MAKE_KEY(KEY_ESCAPE , 0x01) MAKE_KEY(KEY_1 , 0x02) MAKE_KEY(KEY_2 , 0x03) MAKE_KEY(KEY_3 , 0x04) MAKE_KEY(KEY_4 , 0x05) MAKE_KEY(KEY...
// // Created by user24 on 2019/10/17. // #define LIST_NUM 8 <<<<<<< HEAD ======= >>>>>>> 6f64abf56672e2083b6d811935c95993048fedb0 typedef int ElemType; #include <cstring> #include "SeqList.h" <<<<<<< HEAD #include "SeqList.cpp" using std::to_string; void clear() { #ifdef _WIN32 system("cls"); #else ...
// core.hpp // // Copyright 2010 Kevin Pors <krpors@users.sf.net> // // 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 2 of the License, or /...
#pragma once #include <ostream> #include <string> #include <utility> namespace dot_pp { class SerializationPolicy { public: using AttributeName = std::string; using AttributeValue = std::string; using Attribute = std::pair<AttributeName, AttributeValue>; Serialization...
#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 <stdio.h> #include <string.h> #include <numeric> #define INF (1<<28) using nam...
#ifndef SPHEREMODELCLASS_H #define SPHEREMODELCLASS_H // INCLUDES // #include <fstream> #include <D3DX10.h> using namespace std; class SphereModelClass { public: struct SphereModelType { D3DXVECTOR3 position; D3DXVECTOR2 texture; D3DXVECTOR3 normal; D3DXVECTOR3 tangent; D3DXVECTOR3 binormal; }; struct ...
#include "Maestro.h" #include <sstream> using std::stringstream; Maestro::Maestro(){ } Maestro::Maestro(string n, string na, int e, string s, Elemento* el, Poder* p){ nombre=n; nacion=na; edad=e; sexo=s; elemento=el; poder=p; } Poder* Maestro::getPoder(){ return poder; } string Maestro:...
#pragma once #include "dice.h" dice::dice(int val) { value = val; int vl; vl = val; model = models[vl - 1]; } void dice::change_value(double val) { value = val; int vl; vl = val; model = models[vl - 1]; }
// Author: Kirill Gavrilov // Copyright (c) 2015-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 So...
#ifndef DISTANCES_H #define DISTANCES_H typedef std::vector<double> dataPoint; double rmsd(const dataPoint&, const dataPoint&); #endif
/****************************************************************************** * * * Copyright 2018 Jan Henrik Weinstock * * * ...
#include "Enes100.h" // Global vars float theta; // tank angle in rad float xPos; //tank x coord float yPos; //tank y coord //float theta_desired = PI / 12; // Enter the target angle in the space here int minMotorValue = 140; // minimum input value which will produce a turning movement in the tank int leftD = 4; int...
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- ** ** Copyright (C) 2000-2006 Opera Software AS. All rights reserved. ** ** This file is part of the Opera web browser. It may not be distributed ** under any circumstances. ** ** Peter Karlsson */ #ifndef PREFSENTRYINTERNAL_H #define PREFSEN...
#pragma once #include "point.h" #include "controller.h" #include "drawManager.h" #include "toolbarControl.h" #include <functional> #include "appConsts.h" class Button : public ToolbarControl { private: const ButtonTheme *buttonTheme; Point<float> pos, size; std::string label; std::function<void(void)> even...
/***************************************************************************************** * * * owl * * ...
#pragma once namespace Hourglass { enum FileArchiveOpenMode { kFileOpenMode_Read, kFileOpenMode_Write }; class FileArchive { public: ~FileArchive(); // Open file for read or write bool Open(const char* filename, FileArchiveOpenMode mode); // Close file void Close(); // Is file open for operat...
#include <cstdio> #include "hello/public/World.h" void world() { printf("world\n"); }
// Copyright (c) 2011-2017 The Cryptonote developers // Copyright (c) 2017-2018 The Circle Foundation & Conceal Devs // Copyright (c) 2018-2023 Conceal Network & Conceal Devs // // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php....
//hung.nguyen@student.tut.fi - student id: 272585 //sanghun.2.lee@student.tut.fi - student id: 272571 #include <vector> #include <string> #include <iostream> #include "splitter.hh" using namespace std; /*split input file line into seperate string and store them into *a vector which is returned by the function. */ v...
/* * @Fichier : main.ino * @Auteur : Adam Martineau, Félix Thibault-Giguère * @Date : 20/oct/2018 * @Bref : Attaquant pour le défi de l'octogone * @Environnement : Visual Studio Code, PlatformIO * @Compilateur : C++ * @Matériel : Arduino mega 2560 * @Revision : 1 */ //--- LISTE DES #INCLUDES ---// #include <...
// Copyright (c) 2007-2017 Hartmut Kaiser // Copyright (c) 2017 Shoshana Jakobovits // Copyright (c) 2010-2011 Phillip LeBlanc, Dylan Stark // Copyright (c) 2011 Bryce Lelbach // // SPDX-License-Identifier: BSL-1.0 // Distributed under the Boost Software License, Version 1.0. (See accompanying // file ...
#include "Poly.h" #include <Gizmos.h> #define DEBUG true #define SHOW_NORMALS true Poly::Poly(vector<vec2> const & vertices, vec2 position, vec2 velocity, float rotation, float fAngVel, float mass, float elasticity, float fFricCoStatic, float fFricCoDynamic, float fDrag, float fAngDrag, glm::vec4 colour) : Ri...
#pragma once #include <iberbar/RHI/D3D11/Headers.h> #include <iberbar/RHI/RenderState.h> namespace iberbar { namespace RHI { namespace D3D11 { class CDevice; class CBlendState : public IBlendState { public: CBlendState( const UBlendDesc& Desc ) : IBlendState( Desc ) , m_pD3DBlen...
#include "../../idlib/precompiled.h" #pragma hdrstop #include "../Game_local.h" #include "../Weapon.h" #define BLASTER_SPARM_CHARGEGLOW 6 class rvWeaponBlaster : public rvWeapon { public: CLASS_PROTOTYPE( rvWeaponBlaster ); rvWeaponBlaster ( void ); virtual void Spawn ( void ); void Save ( idSaveGa...
/* -*- Mode: c++; indent-tabs-mode: nil; c-file-style: "gnu" -*- * * Copyright (C) 1995-2005 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 XPATH_SUPPORT #include "modules/xpath/src/...
#pragma once #include "Cube.h" #define CUBE_DIMENSION 3 #define CUBE_COUNT 27 /** * @brief 以前面的那一层开始,左上角方块记号0,横向扫描,左边记号3,左下记号6 * 再中间层,左上角9,最后层,左上角18 */ class MagicCube { // 魔方的中心 TOOL_CREATE_GET(Point*, center, Center); // 魔方的每个方块的边长 TOOL_CREATE_GET(GLfloat, eachSide, EachSide); // 魔方的相邻方块之间的间距 TOOL...
/* -*- C++ -*- */ // Time-stamp: <03/16/2009 10:42:25 星期一 by (>>>USER_NAME<<<)> /** * @file (>>>FILE<<<) * @author (>>>USER_NAME<<<) */ #include "(>>>FILE_SANS<<<).h" (>>>POINT<<<)
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- * * Copyright (C) 1995-2010 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" #include "modules/dom/src/domclonehandler....
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QtGui> #include <QLabel> #include <QMessageBox> #include <QThread> #include "ui_mainwindow.h" #include "chemcontroller.h" #include <formreacsettings.h> #include <formtstatconfig.h> #include <config.h> QT_BEGIN_NAMESPACE namespace Ui { class Ma...
#include <FHandle.h> #include <stdio.h> // To judge if a double number is a interge. bool isInt(const double& x) { return ( x == (int)x ); } // Get the sign of a double number. int sgn(const double& x) { if(x > 0) { return 1; } else if(x < 0) { return -1; } else // if(x == 0) { return -1; } } // Conv...
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- ** ** Copyright (C) 1995-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" #if defined(_JPG_SUPPORT_) && defined(USE_...
#include <lwr4p_bhand_test/utils.h> using namespace as64_; int main(int argc, char **argv) { ros::init(argc, argv, "lwr4p_robot_test"); ros::NodeHandle nh("~"); bool run = true; // give some time to other nodes (rviz) to start as well std::this_thread::sleep_for(std::chrono::milliseconds(1500)); // ===...
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
#include "GetIdleTableProc.h" #include "ClientHandler.h" #include "Logger.h" #include "Configure.h" #include "Player.h" #include "GameServerConnect.h" #include "PlayerManager.h" #include "HallHandler.h" #include "SvrConfig.h" #include "RobotRedis.h" #include "Util.h" #include <json/json.h> #include <string> #include "R...
#include "EnemyInvisible.h" sf::Texture EnemyInvisible::texture; EnemyInvisible::EnemyInvisible(float x, float y, int level, int id) : BasicEnemy(id) { if (level == 1) { invisibleScale = 1; shootDelay = 2000; } if (level == 2) { invisibleScale = 1.5; shootDelay = 1200; } if (level == 3) { invisib...
/************************************************************************/ /* Multi-tracker based on CNN */ /************************************************************************/ #ifndef __CNN_MULTI_TRACKER_H__ #define __CNN_MULTI_TRACKER_H__ #include "../utils/util.h" #in...
/**************************************************************************** Copyright (C) 2002-2014 Gilles Debunne. All rights reserved. This file is part of the QGLViewer library version 2.6.3. http://www.libqglviewer.com - contact@libqglviewer.com This file may be used under the terms of the GNU General Pub...
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- * * Copyright (C) 2002-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.h" #include "modules/inputmanager/inputmanage...
//===-- server/multi-client-handler.hh - MultiClientHandler ----*- C++ -*-===// // // ODB Library // Author: Steven Lariau // //===----------------------------------------------------------------------===// /// /// \file /// Implementation of ClientHandler that can handle multiple client types /// //===---------------...
#include <iostream> #include <vector> #define print_vector(v)\ std::cout << "size = " << v.size() << std::endl\ << "capacity = " << v.capacity() << std::endl int main() { std::vector<int> v; print_vector(v); v.resize(100); print_vector(v); }
#ifndef DEVICESEARCHWINDOW_H #define DEVICESEARCHWINDOW_H #include <QDialog> #include <QTimer> #include <QString> #include <iostream> #include <QMutex> #include <QCloseEvent> #include <QThread> extern std::vector<QString> device_search_ips; extern QMutex device_search_ips_mutex; extern void log(std::string log_msg);...
#include "Bone_Animation.h" Bone_Animation::Bone_Animation() { } Bone_Animation::~Bone_Animation() { } void Bone_Animation::init() { root_position = { 2.0f,1.0f,2.0f }; // // target_position = { 3.0f, 8.0f, 3.0f }; roottop_position = { 2.0f, 1.5f, 2.0f }; roottop_upp_tran...
#include "Socket.hpp" namespace net { Socket::Socket(int socket) { this->m_socket = socket; } Socket::Socket(const NetAddress &address) { m_socket = socket(address.family(), SOCK_STREAM, IPPROTO_TCP); if(m_socket == -1) throw Exception(__PRETTY_FUNCTION__, "Fai...
#ifndef __STDNORMAL_TEST_H__ #define __STDNORMAL_TEST_H__ #include <vector> #include "../../Point2D.h" void testStdNormal(const std::vector<Point2D>& pts, float exp_mean[2], float exp_std[2]); #endif
#include "maneuvers/trajectoryPublisher.h" int main(int argc, char **argv) { ros::init(argc, argv, "trajectory_generator"); ros::NodeHandle nh(""); trajectoryPublisher referencePublisher(nh); ros::spin(); return 0; }
#include <iostream> #include "base/config/config.h" #include "base/util/file.h" #include "base/util/runfiles_db.h" #include "tile/codegen/driver.h" #include "tile/lang/gen_stripe.h" #include "tile/lib/lib.h" #include "tile/stripe/stripe.h" #include "tile/targets/cpu/jit.h" template <typename F> void with_profile(F f)...
#include <iberbar/RHI/OpenGL/Device.h> #include <iberbar/RHI/OpenGL/Buffer.h> #include <iberbar/RHI/OpenGL/CommandContext.h> #include <iberbar/RHI/OpenGL/ShaderProgram.h> #include <iberbar/RHI/OpenGL/ShaderState.h> #include <iberbar/RHI/OpenGL/ShaderVariables.h> #include <iberbar/RHI/OpenGL/VertexDeclaration.h> #inclu...
#include "GamePch.h" #include "HealthModule.h" #include "Projectile.h" #include "Common.h" #include "../Engine/Component/ParticleEmitter.h" uint32_t Projectile::s_TypeID = hg::ComponentFactory::GetGameComponentID(); Projectile::Projectile() : m_damage(0), m_live(true) { } void Projectile::LoadFromXML(tinyxml2::XML...
// Created on: 1992-11-18 // Created by: Christian CAILLET // Copyright (c) 1992-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 ...
#include <iostream> using namespace std; using ll = long long; template <typename T> T gcd(T a, T b) { if (a < b) return gcd(b, a); return b == 0 ? a : gcd(b, a % b); } int main() { ll N, M, K; cin >> N >> M >> K; if (N * M * 2 % K != 0) { cout << "NO" << endl; return 0; } ...
#include<netinet/in.h> #include<sys/types.h> #include<sys/socket.h> #include<stdio.h> #include<stdlib.h> #include<string.h> #include<iostream> #include<arpa/inet.h> #include<unistd.h> #define SERVER_PORT 6666 #define LENGTH_OF_LISTEN_QUEUE 20 #define BUFFER_SIZE 1024 #define FILE_NAME_MAX_SIZE 5...
// // Created by Yujing Shen on 28/05/2017. // #ifndef TENSORGRAPH_SESSIONNODE_H #define TENSORGRAPH_SESSIONNODE_H #include "TensorGraph.h" namespace sjtu{ class SessionNode { friend class Graph; public: SessionNode(Session *sess, const vector<int>& shape); SessionNode(const Ses...
#ifndef VNALINEARSWEEP_H #define VNALINEARSWEEP_H // RsaToolbox #include "Definitions.h" #include "NetworkData.h" // Qt #include <QObject> #include <QScopedPointer> namespace RsaToolbox { class Vna; class VnaChannel; class VnaLinearSweep : public QObject { Q_OBJECT public: explicit VnaLinearSweep(QObject...
#include "treeface/base/PackageManager.h" #include "treeface/misc/Errors.h" #include <treecore/File.h> #include <treecore/HashMap.h> #include <treecore/HashSet.h> #include <treecore/RefCountHolder.h> #include <treecore/InputStream.h> #include <treecore/JSON.h> #include <treecore/MemoryBlock.h> #include <treecore/Memo...
#pragma once #include <boost/container/deque.hpp> #include <boost/container/options.hpp> #include <boost/container/small_vector.hpp> #include <boost/container/static_vector.hpp> template <typename I, size_t N> using SmallVector = boost::container::small_vector<I, N>; template <typename I, size_t N> using StaticVector ...
// includes system #include <algorithm> #include <iomanip> #include <fstream> #include <cmath> // includes project #include "file_util.h" #include "tools.h" #include "util.h" #include "red_type.h" #include "red_macro.h" #include "red_constants.h" using namespace std; using namespace pp_disk_t; nam...
// // Created by zhanggyb on 16-9-19. // #include "test.hpp" #include <skland/core/color.hpp> #include <skland/graphic/paint.hpp> #include <SkPaint.h> using skland::Color; using skland::Paint; Test::Test() : testing::Test() { } Test::~Test() { } TEST_F(Test, enums_check_1) { // Compare Paint::Style and Sk...