text
stringlengths
8
6.88M
#include "rvterrain.h" RVTerrain::RVTerrain(double width) :RVSurface() { m_minS = -width/2; m_maxS = +width/2; m_minT = -width/2; m_maxT = +width/2; m_numSegS = 50; m_numSegT = 50; m_VSFileName = ":/shaders/VS_heightmap.vsh"; } QOpenGLTexture *RVTerrain::heightmap() const { return...
#pragma once #include "../ofxDatGui.h" #include "../Controller/File/Settings.h" #include "../Model/Mask.h" #include "../Controller/File/MyFile.h" #include "../Controller/EditShape.h" class DatGui { public: static ofxDatGuiToggle* crosshairToggle; static ofxDatGuiColorPicker* crosshairColor; static int brightness; ...
// // Created by dwb on 2019-07-19. // #ifndef SAMPLE_TEACHER_H #define SAMPLE_TEACHER_H #include <iostream> #include <string> using namespace std; class Teacher { public: Teacher(){ cout << "Teacher()" << endl; m_name="Mike"; m_age=20; } Teacher(const string& t_name,int t_age) ...
// http://codeforces.com/problemset/problem/279/B #include<iostream> using namespace std; int main() { long long n, t, b[100000], opti, cur,curCount, optiCount, first; cin >> n >> t; for(int i = 0; i < n; i++) cin >> b[i]; optiCount = cur = curCount = 0; first = 0; b[n] = t + 1; //h...
/* * @Description: * @Author: Ren Qian * @Date: 2019-07-17 18:25:13 */ #ifndef LIDAR_LOCALIZATION_SENSOR_DATA_GNSS_DATA_HPP_ #define LIDAR_LOCALIZATION_SENSOR_DATA_GNSS_DATA_HPP_ #include <deque> #include "Geocentric/LocalCartesian.hpp" namespace lidar_localization { class GNSSData { public: double time =...
#include "EGameInstance.h" #include "ECore.h" #include "EMovementSystem.h" #include "EInputManager.h" #include "EJobManager.h" #include "Render2DSystem.h" DEFINITION_SINGLE(EGameInstance) EGameInstance::EGameInstance() { } EGameInstance::~EGameInstance() { } void EGameInstance::Tick() { } ...
#include "BattleBase.h" BattleBase::BattleBase() { ReuseInit(); } BattleBase::~BattleBase() { } BattleStatus BattleBase::GetStatus()const { return m_nStatus; } void BattleBase::SetStatus(BattleStatus bs) { m_nStatus = bs; } uint32_t BattleBase::GetRound()const { return m_nRound; } vo...
#include "json.hpp" #include "zmqpp/curve.hpp" #include "zmqpp/zmqpp.hpp" #include "cereal/archives/portable_binary.hpp" #include "cereal/cereal.hpp" #include "cereal/types/chrono.hpp" #include "cereal/types/memory.hpp" #include "cereal/types/string.hpp" #include "mqexec_shared.h" int main(int argc, char** argv) { ...
#include <bits/stdc++.h> using namespace std; int main() { int a,i,b,x,y,z; z=0; while(scanf("%d",&a)!=EOF){ if(a==0) break; x=0; y=0; for(i=0;i<a;i++){ scanf("%d",&b); if(b==0)x++; else y++; } cout<<"Case "<<z+1<<": ...
#include "Application.h" #include <stdio.h> int main(int argc, char** argv) { bool success = init_application(); if (!success) { printf("Unable to initialize :("); return -1; } run_application(); quit_application(); return 0; }
#include <iostream> #include <set> #include<cstring> using namespace std; bool setDigits(bool used[], int n) { for (; n > 0; n /= 10) { if (used[n % 10]) return false; used[n % 10] = 1; } return true; } int main() { set<int> s; for (int n = 2; n < 100; n++) { bool used[10] = {1}; if (!setDigits(used,...
/******************************** Name: Saiteja Yagni Class: CSCI 689/1 TA Name: Anthony Schroeder Assignment: 10 Due Date: 04/20/2016 *********************************/ #include "Shape2.h" //Includes the class definitons and headers in Shape2.h this will as include headers in Shape2.h #incl...
// This file was generated based on /Users/r0xstation/18app/src/.uno/ux13/List.g.uno. // WARNING: Changes might be lost if you edit this file directly. #include <_root.app18_ButtonEntry_icon_Property.h> #include <_root.app18_ButtonEntry_Value_Property.h> #include <_root.ButtonEntry.h> #include <_root.ItemListSelected....
// Copyright 2012 Yandex #include "ltr_client/configurator.h" #include <stdexcept> #include <memory> #include <sstream> #include "boost/lexical_cast.hpp" #include "boost/algorithm/string/predicate.hpp" #include "logog/logog.h" #include "ltr/utility/container_utility.h" #include "ltr_client/utility/common_utility....
//kkcckc AhoCorasickDoubleArrayTrie for SS //20171030 #include <iostream> #include <vector> #include <fstream> #include <algorithm> #include <list> using namespace std; class AC { private: vector<vector<string>> output; vector<string> model; vector<char> ch; vector<long> next, fail, check, base, pos; ...
// testleetcode.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include "pch.h" #include <iostream> #include <vector> #include <string> #include <windows.h> #include <random> using namespace std; class Solution { public: vector<string> generateParenthesis(int n) { vector<string> list; backtrack(list, "", 0, 0, n); ret...
#include "ReceiveProto.h" using namespace CPPClient::Net::Cmd; void ReceiveProto::Receive(const char *buffer) { lspb::SrvRes res; res.ParseFromString(buffer); switch (res.methodid()) { case lspb::SrvMsgType::srvEnterRoom: SrvEnterRoom(res.srventerroom(), res.result(), res.errstr()); ...
#include "testwindow.h" #include "ui_testwindow.h" TestWindow::TestWindow(QWidget *parent, DataProcessor *processor) : QWidget(parent),dataPro(processor), ui(new Ui::TestWindow) { ui->setupUi(this); testModel.setHorizontalHeaderItem(0, new QStandardItem(QString("动作前功率/KW"))); testModel.setHorizonta...
#include "FPSCamera.h" #include <iostream> #include <math.h> #include <cmath> #include "Utils.h" #include "Mouse.h" #include "Keyboard.h" #define MOUSE_INTENSIVENESS 0.15f #define WALK_SPEED 0.05f #define PLAYER_SIZE 2.8f #define WALK_AMPLITUDE 0.1f #define WALK_FREQUENCY 0.2f void FPSCamera::update(Terrain terrain...
#pragma once #include "SA.hpp" #include <memory> #include <string> namespace MarsColonisation { ref class MainForm; public ref class Series_executor { public: Series_executor(System::Windows::Forms::Label^ gui_series, System::Windows::Forms::Label^ gui_iterations, System::Windows::Forms::ListBox^ gui_best_solut...
// Created on: 2014-05-14 // Created by: Denis BOGOLEPOV // Copyright (c) 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 pu...
#pragma once #include <string> #include <vector> #include <GL/glew.h> #include "Color.h" static std::vector<unsigned int> textures; namespace engine{ unsigned int loadTextureFile(std::string file, bool genMipmap, int filtering); unsigned int createEmptyTexture(unsigned int width, unsigned int height, std::...
#include <stdio.h> #include <string.h> #include <opencv2/opencv.hpp> #define GRAY 0 #define INV 1 #define THRESH 2 #define EDGE 3 #define BYTE 8 #define MAX_RGB 765 #define MAX_GRAY 255 using namespace cv; typedef struct { uchar blue; uchar green; uchar red; } pixel; // ----- FUNCTION HEADERS ----- // ui...
#include "pch.h" #include "ShadowMapInstance.h" #include "Camera.h" using namespace SimpleMath; ShadowMapInstance::ShadowMapInstance() { m_deviceContext = nullptr; m_width = 0; m_height = 0; } ShadowMapInstance::~ShadowMapInstance() {} VS_VP_MATRICES_CBUFFER ShadowMapInstance::getLightMatrices() const { return ...
/// Legati prin linii fiecare element din coloana Constructia de elementul corespunzator din coloana Reprezinta /// Constructia: /// 1.alfa /// 2."alfa' /// 3.'10"' /// 4.'20"" /// 5.'alfa' /// 6.5000 /// 7."alfa" /// 8.'500' /// 9."120" /// Reprezinta: /// a.Identificator data elementara /// b.Constanta de tip sir d...
#include "quitwindow.h" #include "ui_quitwindow.h" #include <QDialog> quitWindow::quitWindow(QWidget *parent) : QDialog(parent), ui(new Ui::quitWindow) { ui->setupUi(this); exampleDialog = new QDialog; closeButton = ui->closeButton; cancelButton = ui->pushButton_2; connect(closeButton, SI...
#include <Q2HX711.h> const byte HX711_DATA_PIN = A2; const byte HX711_CLOCK_PIN = A3; Q2HX711 HX711(HX711_DATA_PIN, HX711_CLOCK_PIN); double output = 0; long t; void setup() { Serial.begin(9600); Serial.println("Starting setup"); HX711.startSensorSetup(); } void loop() { // Start weight sensor setup i...
#include "SQLiteHelper.hh" #include <filesystem> #include <utility> namespace SQLiteWrapper { using namespace std; const int SQLiteHelper::SQLiteBinder::bind(const sqlite3_stmt& _stmt) { const int ret = bind_cnt; bind_cnt = 1; return ret; } SQLiteHelper::SQLiteHelper() { auto deleter = [](sqlite3 * _co...
#include <bits/stdc++.h> using namespace std; int i,j,t,a,arr[100],temp,co; int swap(int arr[],int b){ co=0; for(i=1;i<=b-1;i++){ for(j=i+1;j<=b;j++){ if(arr[i]>arr[j]){ temp=arr[i]; arr[i]=arr[j]; arr[j]=temp; co++; } ...
// Fill out your copyright notice in the Description page of Project Settings. #include "TopDownCharacter.h" #include "Camera/CameraComponent.h" #include "Kismet/GameplayStatics.h" #include "GameFramework/CharacterMovementComponent.h" #include "GameFramework/SpringArmComponent.h" // Sets default values ATopDownChara...
// // main.cpp // DistinctSubsequences // // Created by Russell Lowry on 11/17/17. // Copyright © 2017 Russell Lowry. All rights reserved. // #include<cstdio> #include<string.h> #include <algorithm> using namespace std; void add(char str1[], char str2[], char res[]){ int len1 = strlen(str1); int len...
#ifndef STRINGLISTMODEL_H #define STRINGLISTMODEL_H /** * @brief stringlistmodel.h * This is the header file for object class meant for instantiation of the QObject type * Add this header to be able to use this class functions. */ #include <QObject> #include <QtQml> //Macro declaration #define MAXWIDTH 20 class Str...
#include "../headers/JsonReader.h" JsonReader* JsonReader::pInstance = 0; bool JsonReader::load() { const char* path = "config.json"; file.open(path,std::fstream::in); if (!file.is_open()) { std::cout << "Error abriendo el archivo de configuración" << std::endl; return false; } bool parsingSuccessful = ...
#include <iostream> int main(){ freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout); long long a, b, c; std::cin >> a >> b >> c; if (a >= b+c) std::cout << "YES"; else std::cout << "NO"; }
#ifndef SubExtra_HPP #define SubExtra_HPP #include <QObject> class SubExtraPrivate; class SubExtra : public QObject { Q_OBJECT public: SubExtra(); ~SubExtra(); private: SubExtraPrivate* const d; }; #endif
#pragma once #include "utils.h" #include "Light.h" #include <stdio.h> #include <string> #include <vector> #include <glad/glad.h> #include <glm/glm.hpp> #include <glm/gtc/type_ptr.hpp> class ShaderProgram { public: GLuint Id; ShaderProgram(const char * vertexShaderSource, const char * fragmentShaderSource); voi...
#include "Core.h" #include "Input.h" #include "World.h" #include "Object.h" #include "Screen.h" #include "Resources.h" #include "Camera.h" #include "GUI.h" #include "Exception.h" #include <glm/glm.hpp> #include <AL/al.h> #include <AL/alc.h> //! The AudioCore class. This initialises the audio software. struct AudioCor...
// // Class AliRsnCutEventUtils // // It works with ESD and AOD events. // // authors: F. Bellini (fbellini@cern.ch) #ifndef ALIRSNCUTEVENTUTILS_H #define ALIRSNCUTEVENTUTILS_H #include "AliRsnCut.h" class AliVVertex; class AliAnalysisUtils; class AliRsnCutEventUtils : public AliRsnCut { public: ...
#include <blinklib.h> #include <shared/blinkbios_shared_functions.h> #include <string.h> #include "message_handlers.h" #include "src/blinks-broadcast/manager.h" #include "src/blinks-broadcast/message.h" #include "src/blinks-debug/debug.h" broadcast::Message count_blinks; broadcast::Message report_blinks; ...
/* * LSST Data Management System * Copyright 2014-2015 AURA/LSST. * * This product includes software developed by the * LSST Project (http://www.lsst.org/). * * 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...
// Redirector.h : Declaration of the CRedirector // reference MSDN : http://msdn.microsoft.com/en-us/library/bb250489.aspx // and : http://msdn.microsoft.com/en-us/library/bb250436.aspx for more details. // and : http://msdn.microsoft.com/en-us/library/aa768283.aspx #ifndef __REDIRECTOR_H_ #define __REDIRECTOR_H...
// // Auto.h // Apuntadores // // Created by Daniel on 22/09/14. // Copyright (c) 2014 Gotomo. All rights reserved. // #ifndef __Apuntadores__Auto__ #define __Apuntadores__Auto__ #include <iostream> class Auto { public: Auto() {} virtual void Corre(); friend std::ostream & operator << (std::ostream &...
#include <bits/stdc++.h> using namespace std; #define TESTC "" #define PROBLEM "13187" #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; ...
#ifndef __AASFILE_H__ #define __AASFILE_H__ /* =============================================================================== AAS File =============================================================================== */ #define AAS_FILEID "DewmAAS" #define AAS_FILEVERSION "1.08" // travel flags #define TFL...
class Category_644 { duplicate = 622; }; class Category_610 { duplicate = 622; };
#include <iostream> using namespace std; #define LONGUITUD 1002 /*** 3 4 6 .... .T.. .... */ char mapa[7][7]; // tabla para indicar terreno int R,C,K; // tamaño del terreno, renglon y columna int Caminos=0; void buscar(int r, int c , int k){ if (k>0){ if (mapa[r][c]!='x'){ /// no...
#include <iostream> using namespace std; int str2int(const char *str) { const char *p = str; int tmp=0; if(*str == '-'||*str == '+') { str++; } while(*str != 0) { if(*str<'0'||*str>'9') { break; } tmp = tmp*10+*str-'0'; str++; ...
/*********************************************************\ * 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...
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- ** ** Copyright (C) 2009-2011 Opera Software AS. All rights reserved. ** ** This file is part of the Opera web browser. It may not be distributed ** under any circumstances. */ /** * @file OpenSSLSocket.cpp * * SSL-capable socket implement...
#include <bits/stdc++.h> using namespace std; int main() { int a,c,b,d; while(scanf("%d %d",&a,&b)!=EOF){ if(a==0 && b==0) break; c=sqrt(a); d=sqrt(b); //if(c*c==a) // printf("%d\n",c); // else if(c*c==a) printf("%d\n",d-c+1); ...
/* This class is the master ancestor class. Anything that is brought into existance by the resource * manager class. The resource manager will maintain UUIDs that can be used for global reference of * any object. so this includes Meshes, materials, cameras, buffers, etc. It is worth noteing that * some objects may h...
// Created on: 1996-06-06 // Created by: Philippe MANGIN // Copyright (c) 1996-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...
// 0922_7.cpp : 定义控制台应用程序的入口点。 //求平均成绩 //假设一个班有n(n<=50)个学生,每人考m(m<=5)门课, //求每个学生的平均成绩和每门课的平均成绩,并输出各科成绩均大于等于平均成绩的学生数量。 //n和m,分别表示学生数和课程数。然后是n行数据,每行包括m个整数(即:考试分数)。 #include <iostream> using namespace std; int main() { int n, m;//n个学生m科课程 const int size = 100; while (cin >> n>> m) { if (n > 50 || m > 5 || n <= 0 ...
#include "mpu9250.h" uint8_t mpu_id, ak_id; // variable to hold register addresses uint8_t a_scale = AFS_2G, g_scale = GFS_250DPS, m_scale=MFS_16BITS; // define scales for return values float a_res, g_res, m_res; //variables to store resolution uint8_t a_rate = 0x04; //sets to 200Hz float mag_calibration[3] = {...
#include <iostream> #include <vector> #include <iterator> using namespace std; void product(vector<int> input, vector<string> &output){ int N = (int)input.size(); int *left = new int[N], *right = new int[N]; left[0] = right[N-1] = 1; for (int i = 1;i<N;i++){ left[i] = left[i-1]*input.at(i-1); right[N-i-1] = r...
#include <bits/stdc++.h> using namespace std; const int maxn = 30; int t, n, k, a[maxn], b[maxn], c[maxn]; int main() { scanf("%d%d", &t, &n); while(t--) { memset(a, 0, sizeof(a)); memset(b, 0, sizeof(b)); memset(c, 0, sizeof(c)); int ans = 0; for (int i = 1; i <= n; i++) { scanf("%d%d", &a[i], &k); i...
// a4_q1.cpp : This file contains the 'main' function. Program execution begins and ends there. //***************************************************************************** // Student Names: Chaitya Patel and Mayurah Omkararuban // // SYDE 121 Assignment: 4 // Filename: a4_q1 // // We hereby declare that th...
#include <stdio.h> int main() { double sales_tax = 0.04; double purchase = 52; double tax = purchase*sales_tax; double total = purchase+tax; printf("%f\n", total); return 0; }
// Created on: 1993-01-09 // Created by: CKY / Contract Toubro-Larsen ( SIVA ) // Copyright (c) 1993-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 ...
/* Copyright (c) 2005-2022 Xavier Leclercq Released under the MIT License See https://github.com/ishiko-cpp/test-framework/blob/main/LICENSE.txt */ #include "TestNumber.hpp" namespace Ishiko { TestNumber::TestNumber() { } TestNumber::TestNumber(int major) { m_number.push_back(major); } TestNumber::...
/** * Tomer Rahamim 203717475 * Roi Peretz 203258041 */ //main.cpp #include <vector> #include <string> #include <iostream> #include <iterator> #include <sstream> #include "MoviesSystem.h" #include "Server.h" #include "UDPServer.h" #include "TCPServer.h" #include <pthread.h> using namespace std; int main(int argc,...
#ifndef VnaCwSweep_H #define VnaCwSweep_H // RsaToolbox #include "Definitions.h" // Etc // Qt #include <QObject> #include <QScopedPointer> namespace RsaToolbox { class Vna; class VnaChannel; class VnaCwSweep : public QObject { Q_OBJECT public: explicit VnaCwSweep(QObject *parent = 0); VnaCwSweep(VnaC...
#include "../../headers.h" #include "Log.h" #include "SettingsReader.h" //------------------------------------------------------------------------------------------------- SettingsReader::SettingsReader(const std::string& path) { path_ = path; mtim_.tv_nsec = 0; mtim_.tv_sec = 0; } //-----------------...
#include <cstdio> int main() { int a,b,c; scanf("%d %d %d", &a, &b, &c); if(a<b) { a=b; } if(a<c) { a=c; } printf("%d eh o maior\n", a); }
/* TESTS/basic/microstep/main.cpp Check that Pololu2968 microstep() works */ #include "mbed.h" #include "rtos.h" #include "stdio.h" #include "Pololu2968.h" #include "unity.h" Pololu2968 foo(p22,p21,p23,NC,p30); int main(void){ pc.printf("Pololu2968 version "); pc.printf(POLOLU2968_VERSION); pc.printf...
/*********************************************************\ * 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...
#pragma once #include "widget.h" namespace sge{ namespace graphics { namespace gui { class Component: public Widget { protected: std::vector<Widget*> m_Widgets; math::mat4 m_TransformationMatrix; public: Component(const math::Rectangle& bounds); ~Component(); void addTransformation(math::mat4 transform)...
/* * @Description: matching 模块任务管理, 放在类里使代码更清晰 * @Author: Ren Qian * @Date: 2020-02-10 08:31:22 */ #ifndef LIDAR_LOCALIZATION_MATCHING_MATCHING_FLOW_HPP_ #define LIDAR_LOCALIZATION_MATCHING_MATCHING_FLOW_HPP_ #include <ros/ros.h> // subscriber #include "lidar_localization/subscriber/cloud_subscriber.hpp" #include ...
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- ** ** Copyright (C) 1995-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" #ifdef ENCODINGS_HAVE_TABLE_DRIVEN #incl...
#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 eps = 1e-9; double equ[100][300]; int fri[100]; vector<double> a; b...
#include <iostream> #include <cstdlib> #include <fstream> #include <chrono> #include <unistd.h> #include <string> #include <vector> #include <sstream> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <windows.h> #include <winsock2.h> #include <ws2tcpip.h> #include <iphlpapi.h> #include...
#include <iostream> using std::cout; using std::endl; using std::cin; #include <string> using std::string; bool has_upper(const string& s) { for(auto c : s) { if(isupper(c)) return true; } return false; } void to_upper(string& s) { for(auto& c : s) { c = toupper(c); } ...
#ifndef _MSG_0X82_UPDATESIGN_TW_H_ #define _MSG_0X82_UPDATESIGN_TW_H_ #include "mcprotocol_base.h" namespace MC { namespace Protocol { namespace Msg { class UpdateSign : public BaseMessage { public: UpdateSign(); UpdateSign(int32_t _x, int16_t _y, int32_t _z, const String16& _text1, const String16& _text2, const S...
// Created on: 1993-05-07 // Created by: Jean Yves LEBEY // Copyright (c) 1993-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...
#include <bits/stdc++.h> using namespace std; int N; vector<long long> bit; void upd(int i, int x) { while (i <= N) { bit[i] += x; i += i & (-i); } } int query(int i) { long long s = 0; while (i > 0) { s += bit[i]; i -= i & (-i); } return s; } int main() {...
#include "utils.hpp" #include "origin_ptts.hpp" namespace pd = proto::data; namespace pcs = proto::config; namespace nora { namespace config { origin_ptts& origin_ptts_instance() { static origin_ptts inst; return inst; } ...
//Probar ya que esta versión no la probe. Debería andar con la aplicación #include <Adafruit_CC3000.h> #include <SPI.h> #include "utility/debug.h" #include "utility/socket.h" //WiFi Shield #define led13 13 #define ADAFRUIT_CC3000_IRQ 3 #define ADAFRUIT_CC3000_VBAT 5 #define ADAFRUIT_CC3000_CS 10 #d...
#include <iostream> #include "base.hpp" #include "op.hpp" #include "rand.hpp" #include "mult.hpp" #include "div.hpp" #include "add.hpp" #include "sub.hpp" #include "pow.hpp" #include "factory.hpp" int main(int argv, char** argc) { factory* f = new factory(); Base* res = f->parse(argc, argv); if(res == nu...
// Created on: 1995-10-26 // Created by: Yves FRICAUD // Copyright (c) 1995-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 L...
#include <stdio.h> #include <conio.h> #include <stdlib.h> #include <time.h> main() { int array[10],x,i,n,k=0,h=0,j; int loopc=10; srand(time(NULL)); do { printf("\n1. Generate and display a random array of size 10\n\twith values between 1 and 100 \n"); printf("2. Find the first occurrence of a ...
/********************************************************* * Copyright (C) 2017 Daniel Enriquez (camus_mm@hotmail.com) * All Rights Reserved * * You may use, distribute and modify this code under the * following terms: * ** Do not claim that you wrote this software * ** A mention would be appreciated but not needed * *...
#pragma once namespace texture { class DXTexture; }; namespace mesh { class Mesh; class MeshEntry { public: MeshEntry() {}; MeshEntry(D3DXMATRIX& transform, Mesh* mesh) { this->transform = transform ; this->mesh = mesh; }; D3DXMATRIX transform; Mesh* mesh; }; typedef vector<MeshEntry> Mesh...
#ifndef _DX11_RENDERABLE_H_ #define _DX11_RENDERABLE_H_ #include "Renderable.h" #include "d3d11.h" namespace HW{ class DX11RenderSystem; class DX11Renderable : public Renderable{ public: DX11Renderable(RenderSystem* renderSystem); virtual ~DX11Renderable(); virtual void createInternalRes(); virtual void r...
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; c-file-style: "stroustrup" -*- ** ** Copyright (C) 2009-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 DO...
#include "comn.h" #include "http-deal.h" int main() { CInternetSession session(_T("Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2) Gecko/20100115 Firefox/3.6")); Fun_InternetGetConnectedState(); }
#ifndef Model_h__ #define Model_h__ #include "../../middleware/includes/glm/glm.hpp" #include <vector> #include "../../middleware/includes/gl/glew.h" class Model { public: //VAO GLuint mVertexArrayObjectID; //VBOs GLuint mVertexDataBufferID; GLuint mColorDataBufferID; GLuint mIndicesDataBufferID; GLuint mUVD...
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; c-file-style: "stroustrup" -*- */ /** Typed Arrays - as specified Khronos (WebGL being the main motivator); http://www.khronos.org/registry/typedarray/specs/latest/ (a variant may end up as a EcmaScript TC39 specification at some point...
// Created on: 2007-07-06 // Created by: Pavel TELKOV // Copyright (c) 2007-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 ...
#include "application.h" namespace sge { using namespace graphics; App* App::s_Instance = nullptr; App::App(const std::string &name, const WindowProperties& properties) :m_FramesPerSecond(0), m_UpdatesPerSecond(0), m_Name(name){ window = new Window(name, properties); s_Instance = this; std::cout << w...
#include "core/pch.h" #ifdef M2_SUPPORT #include "modules/util/simset.h" #include <ctype.h> #include "nntprange.h" #include "nntpmodule.h" NNTPRangeItem::NNTPRangeItem() : m_from(-1), m_to(-1) { } NNTPRange::NNTPRange() : m_availablerange_from(-1), m_availablerange_to(-1) { } NNTPRange::~NNTPRange() { r...
#include "Air.h" #include <sstream> #include <iostream> using std::cout; using std::endl; using std::stringstream; Air::Air(){ } Air::Air(string flechas_, int pelo_){ pelo=pelo_; flechas=flechas_; } string Air::getFlechas(){ return flechas; } void Air::setFlechas(string p){ flechas=p; } int Air::g...
#include "tablestring.h" #include "streams/streams.h" #include <sstream> using namespace NAMESPACE_BINTABLE; BinTableString::BinTableString(InputStream &stream) { read(stream); }; BinTableString::BinTableString(InputStream &stream, uint32_t size) { read(stream, size); }; BinTableString::BinTableString(const...
#include <ostream> #ifndef _LIBROS_H_ #define _LIBROS_H_ //tamaņos maximos #define LIB_BUFFER 245 #define LIB_CAMPOS 11 #define LIB_MAX 80 //tamaņos de campos #define MAX_AUTOR 3 #define LIB_MAX_CODIGO 6 #define LIB_MAX_NOMBRE 80 #define LIB_MAX_AUTOR 30 #define LIB_MAX_EDITORIAL 20 #define LIB_MAX_CATEGORIA 20 //campo...
#include "ui_uiA.h" #include "ui_uiB.h" // AUTOUIC includes on the first two lines of a header file #include <QObject> class UicOnly : public QObject { public: UicOnly(); ~UicOnly(); private: Ui::UiA* uiA; Ui::UiB* uiB; };
#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> #include <numeric> typed...
#pragma once #include <boost/noncopyable.hpp> #include <mutiplex/callbacks.h> #include <mutiplex/ServerSocket.h> #include <mutiplex/InetAddress.h> namespace muti { class EventSource; class EventLoop; class Acceptor: boost::noncopyable { public: Acceptor(EventLoop* loop, const std::string& addr_str); Accept...
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #include "Spherobot.h" #include "SpherobotGameMode.h" #include "SpherobotCharacter.h" #include "SpherobotBaseLevelScriptActor.h" ASpherobotGameMode::ASpherobotGameMode() { // set default pawn class to our character DefaultPawnClass = ASpherobotCharacter::...
/* * Copyright (c) 2009 Joel de Vahl * 2009 Markus Ålind * see LICENSE file for more info */ #ifndef INC_SIMD_DEBUG_HPP #define INC_SIMD_DEBUG_HPP #include "intrinsics.hpp" #include <cstdio> #define vDebugPrint(V) vDebugPrint_helper(#V, V) #define vDebugPrint_u32(V) vDebugPrint_u32_helper(#V, V) #d...
// $Id$ // // Copyright (C) 2001-2006 Greg Landrum and Rational Discovery LLC // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #include <Gr...
#pragma once #include "color.h" #include <vector> #include <string> #include <glm/glm.hpp> class Image { std::vector<ColorRGBA> image; glm::uvec2 size = { 0, 0 }; public: void Load(glm::uvec2 Size, ColorRGBA DefaultValue = { 0, 0, 0, 255 }); void Load(const std::string& file); void Save(const std::string& file...