text
stringlengths
8
6.88M
#ifndef CONTROLLER_HPP #define CONTROLLER_HPP #include <QObject> #include "Model.hpp" #include "View.hpp" class Controller : public QObject { Q_OBJECT protected: Model *linkedModel; View *linkedView; public: explicit Controller(Model *m, View *view); public slots: virtual void modelUpdate() = 0; }; #end...
#include "pch.h" #include "stdafx.h" #include "CBlockingSocket.h" CBlockingSocket::CBlockingSocket() { m_ip = "127.0.0.1"; m_port = 2121; m_socket = INVALID_SOCKET; } CBlockingSocket::CBlockingSocket(SOCKET socket) { m_socket = socket; } CBlockingSocket::CBlockingSocket(const char *ip, u_short port) { m_socket ...
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved. #include "PakMapToolsModuleEdModeToolkit.h" #include "PakMapToolsModuleEdMode.h" #include "Engine/Selection.h" #include "Widgets/Input/SButton.h" #include "Widgets/Text/STextBlock.h" #include "EditorModeManager.h" #include "Developer/DesktopPlatform/Publi...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <windows.h> #include <conio.h> typedef char palabra[60]; int menuPrincipal(); void gotoxy(int x,int y); void cuadro(int x1, int y1, int x2, int y2); void inicioSesion(bool &login); bool comprobacion(char auxUsuario[10], char auxContrasena[20]); stru...
/** * Copyright (c) 2023, 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...
/* * @lc app=leetcode.cn id=646 lang=cpp * * [646] 最长数对链 */ // @lc code=start #include<iostream> #include<vector> #include<algorithm> using namespace std; class Solution { public: int findLongestChain(vector<vector<int>>& pairs) { int n = pairs.size(); if(n==0)return 0; sort(pairs.be...
#include <bits/stdc++.h> using namespace std; ofstream fout ("pails.out"); ifstream fin ("pails.in"); #define For(x) for(int i = 0; i < x; i++) int main(){ int maxm = 0; int x, y, m; fin>>x>>y>>m; int mx = m/x; For(mx+1){ int n = x*i; int b = (m-n)/y; b*=y; maxm = max...
#include <iostream> using namespace std; int main2() { int i,x; int a[10]={5,7,2,3,7,9,8,0,78,89}; cout<<"The original array is\n"; for(i=0;i<10;i++) { cout<<a[i]<<"\n"; } cout<<"Enter the element to be searched\n"; cin>>x; for (i=0;i<10;i++) { if (a[i]==x) cout<<"Element found at position"<<i+1; } ...
#pragma once #include "FMODManager.h" class SoundManager { private: static FMODManager m_fmodManager; public: friend class Core; SoundManager(); ~SoundManager(); void init(); void update(); void addSound(const std::string &name, const std::string &filename); void removeSound(const std::string &nam...
#include <Arduino.h> #include <ArduinoOTA.h> #include <ArduinoJson.h> #include <AutoConnect.h> // библиотека автоконнекта #include <ESP8266WiFi.h> #include <ESP8266mDNS.h> #include <ESP8266HTTPClient.h> #include <ESP8266WebServer.h> #include <iostream> #include <string.h> #include <sstream> #include <SPI.h> #include <W...
#pragma once class CRgnCreateInfo { public: CRgnCreateInfo(void); ~CRgnCreateInfo(void); bool SaveToFileImage(CString strPath, int nImage); void CreateImageRgn(CString strPath); void FindImageInfo(CString strPath, CString &strImgPath, CString &strRgnPath); void SetRemoveColorRGB(int nRed, int nGreen, int nBlue)...
// Created on : Tue May 12 14:11:46 2020 // Created by: Igor KHOZHANOV // Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0 // Copyright (c) Open CASCADE 2020 // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it un...
/* ID: washirv1 PROG: sprime LANG: C++ */ #include <fstream> using namespace std; #define INFILE "sprime.in" #define OUTFILE "sprime.out" struct Node { int val; Node * next; Node(int v) : val(v), next(NULL) {} }; void insert(Node * primes, int v) { // Traverse primes so far, check primeness. // Insert only if ...
/** * @author E.Nyamjantsan * @date 10.04.2019 * @goal Shape eh class-s udamshsan TwoDShape class-s udamshsan Circle, Square, Triangle classuudiig baiguulj tedgeeriin talbai bolon perimeter-g oloh program. **/ #include <iostream> #include <cmath> using namespace std; //Eh class class Shape { protected: s...
#include "widget.h" #include "datamodel.h" #include "createdatamodel.h" #include <QApplication> #include <QDir> int main(int argc, char *argv[]) { QApplication a(argc, argv); Widget w; w.setWindowTitle("服务器"); QDir dir; if(!dir.exists("files")) { dir.mkdir("files"); ...
#include<bits/stdc++.h> using namespace std; vector<int>bfsOfGraph(int V,vector<int>adj[]){//V here is number of nodes vector<int>bfs; vector<int>visited(V+1,0);//visited vector to store if node was visited before for(int i=1;i<=V;i++){ if(!visited[i]){//if node not visited then perform actions que...
// ntinspect.cc // 4/20/2014 jichi #include "ntdll/ntdll.h" #include "ntinspect/ntinspect.h" // https://social.msdn.microsoft.com/Forums/vstudio/en-US/4cb11cd3-8ce0-49d7-9dda-d62e9ae0180b/how-to-get-current-module-handle?forum=vcgeneral EXTERN_C IMAGE_DOS_HEADER __ImageBase; //#ifdef _MSC_VER //# pragma warning(d...
#pragma once #include <QThread> #include "opencv2/core.hpp" #include <QMutex> class XVideoThread : public QThread { Q_OBJECT public: static XVideoThread* Get() { static XVideoThread vt; return &vt; } ~XVideoThread(); public: //打开视频文件 bool Open(const std::string file); void Play(); void Pause(); void ...
#pragma once #include "ToDoAreaWidgets/TaskAreaWidget/taskareawidget.h" class TomorrowTaskAreaWidget : public TaskAreaWidget { Q_OBJECT public: TomorrowTaskAreaWidget(); void readToDoFromfile() override; signals: void moveTask(TaskWidget moveTask); private slots: void addTaskFromSomeDayArea(Task...
/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the demonstration applications of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage ** Licensees holding...
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QImage> QT_BEGIN_NAMESPACE //namespace Ui { class MainWindow; } class QAction; class QLabel; class QMenu; class QHBoxLayout; class QPushButton; class QVBoxLayout; QT_END_NAMESPACE class MainWindow : public QMainWindow //single colon ...
//------------------------------------------------------------------------------ /* This file is part of Beast: https://github.com/vinniefalco/Beast Copyright 2013, Vinnie Falco <vinnie.falco@gmail.com> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby...
#include<fstream> #include<vector> #inlude<map> using namespace std; #include<Eigen/Core> #include<Eigen/Geometry> #include<opencv2/core/core.hpp> #include<opencv2/hihgui/highgui.hpp> #include<opencv2/calib3d/calib3d.hpp> #include<opencv2/core/eigen.hpp> #include<pcl/io/pcl_io.h> #include<pcl/point_types.h> #include...
#include<stdio.h> #include<iostream> #include<math.h> using namespace std; int main() { float N1, N2, N3, N4, N5; float maior, menor, soma; scanf("%f%f%f%f%f", &N1, &N2, &N3, &N4, &N5); if (N1 >= N2 && N1 >= N3 && N1 >= N4 && N1 >= N5){ maior = N1; } else if (N2 >= N1 && N2 >= N3 && N2 >...
#pragma once #include "afxwin.h" #include "GGridCtrl.h" #include "GDesignFormView.h" #include "GStageLevel.h" class GStageLevelDesignView : public GDesignFormView { DECLARE_DYNCREATE(GStageLevelDesignView) protected: CStatic mGpMobAttackLine; CStatic mGpMopAppear; CStatic mGpMassMobAppear; CEdit mEtStageNumber; ...
#include "StdAfx.h" #include "Player.h" CPlayer::CPlayer(void) { x=c_wid/2; y=660; speed_x=0; speed_y=0; speed=5; live=true; up=false; down=false; right=false; left=false; sh=false; shot=false; slow=false; shot_angle_p=true; del=0; del_max=0; hp=10; hit_time=0; sub_count=0; sub_angle=...
//=========================================================================== //! @file object_sea.cpp //! @brife 海オブジェクト //=========================================================================== //--------------------------------------------------------------------------- //! コンストラクタ //---------------------------...
// Created on: 2016-03-30 // Created by: Irina KRYLOVA // Copyright (c) 2016 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 <Ultrasonic.h> #define NOTE_B0 31 #define NOTE_C1 33 #define NOTE_CS1 35 #define NOTE_D1 37 #define NOTE_DS1 39 #define NOTE_E1 41 #define NOTE_F1 44 #define NOTE_FS1 46 #define NOTE_G1 49 #define NOTE_GS1 52 #define NOTE_A1 55 #define NOTE_AS1 58 #define NOTE_B1 62 #define NOTE_C2 65 #define NOTE_CS...
#include <iostream> #include <fstream> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <ncurses.h> using namespace std; int main() { int a, square, cube; scanf("%d", &a); square = a * a; cube = square * a; printf("Binh phuong cua %d la: %d\n", a, square); printf("Lap phu...
/** * Copyright (c) 2021, 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 <LiquidCrystal.h> #include "LedControl.h" #include "LinkedList.h" #include "IRremote.h" #define start_parts_number 3 #define refresh_time 220 // in milliseconds #define matrix_first 0 #define matrix_last 7 #define start_collumn 4 #define start_row 3 typedef struct coordinates { int row, collumn; } coordin...
// ClientDaemon.cpp: implementation of the CClientDaemon class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "ClientDaemon.h" using namespace std; ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////...
/* -*- 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. * * Petter Nilsen */ #include "core/pch.h" #include "adjunct/qu...
#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> #include <sstream> typ...
// // main.cpp // arbolTienda // #include <iostream> #include <stdio.h> #include <stdlib.h> #include <string.h> using namespace std; // Estructura Arbol struct arbol { int dato,precio,estado; // ID producto , precio char descripcion[40]; //articulo string char empaque[10]; // tipo de embase ...
#pragma once #include <optional> #include <string> #include "inst.h" namespace ionir { struct InstYieldOpts : public InstOpts { std::string yieldId; }; struct InstYield { std::string yieldId; explicit InstYield(std::string yieldId); }; }
#pragma once class Crate : public hg::IComponent { DECLARE_COMPONENT_TYPEID public: void LoadFromXML(tinyxml2::XMLElement* data); void Update(); hg::IComponent* MakeCopyDerived() const; void OnMessage(hg::Message* msg); void SpawnPresetEntity(); private: StrID m_SpawnEntity; float m_VelocityY; };
#pragma once #include "glm.hpp" #include "gl_core_4_5.h" #include "glfw3.h" #include "ext.hpp" #include <fstream> #include <sstream> class Shader { public: //should i have another constructor here to set all the veriables Shader(std::string vertex, std::string frag); ~Shader(); //void LoadShader(); // void Builds...
// Created on: 2016-11-10 // Created by: Anton KOZULIN // Copyright (c) 2016 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 "DefaultHeaderFiles.h" Enemy04::Enemy04() { int randSpawn = rand() % 1; x = 80; y = 15; AddMove(WEST, 1000); if (randSpawn == 0) { AddMove(SOUTH, 2000); } else if (randSpawn == 1) { AddMove(SOUTH, 10000); } row = 3; col = 3; speedX = 1; s...
using namespace System; public ref class ImportLibPure { public: static void Message() { Console::WriteLine("ImportLibPure"); } };
/* * We finally have enough parts to assemble a working spider */ #include "tdm_serial.h" #include "tdm_vector.h" #include "tdm_pwmio.h" #include "tdm_lights.h" #include "tdm_servos.h" #include "tdm_legs.h" #include "tdm_motion.h" #include "tdm_timers.h" #include "tdm_queue.h" #include "tdm_receiver.h" tdm::Receive...
#include <conio.h> #include <iostream.h> void main () { clrscr(); int pass; cout <<endl<<endl<<"\t\tEnter Password: " ; cin >>pass; if (pass==10 || pass==16 || pass==30) cout <<endl<<endl<<"\t\tWELCOME..."; else cout <<endl<<endl<<"\t\tOUTSIDERS NOT ALLOWED !"; getch(); }
#include "Frame.h" using namespace Frame; void CFrame::AddFormal( const Symbol::CSymbol* name ) { methodFormals[ name ] = new CVariableInRegister( new Temp::CTemp() ); formalCount += 1; } void CFrame::AddLocal( const Symbol::CSymbol* name ) { localVariables[ name ] = new CVariableInRegister( new Temp::CTemp() ); ...
// // Created by fab on 24/02/2020. // #ifndef DUMBERENGINE_IINPUTMANAGER_HPP #define DUMBERENGINE_IINPUTMANAGER_HPP #include <glm/vec2.hpp> #include "../ISystem.hpp" #include "../../rendering/renderer/IWindow.h" class IInputManager : public ISystem { protected: bool* keysDown; bool* keysPressed; bool* ...
/**************************************************************************** * Copyright (c) 2007 GeoMind Srl. * All rights reserved. * *--------------------------------------------------------------------------- * This software is part of the 3D Data Session library by GeoMind Srl; * it is not allowed to use, ...
int bar(int y) { return y * 6; } int foo(int x) { return x * bar(x); } int main() { return foo(4); }
#ifndef __INC_B_TREE_HPP #define __INC_B_TREE_HPP #include <list> #include "B_tree_node.hpp" #include "disk.hpp" #ifndef _STD #define _STD std:: #endif // !_STD #ifndef _ZHF_LIN_BEGIN #define _ZHF_LIB_BEGIN namespace zhf_lib{ #endif // !_ZHF_LIN_BEGIN #ifndef _END_ZHF_LIB #define _END_ZHF_LIB } #...
#include <bits/stdc++.h> using namespace std; #define TESTC "" #define PROBLEM "12608" #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 times,l...
#include <bits/stdc++.h> using namespace std; int main() { int t, n, a, b, ae, be; cin >> t; for (int i = 0; i < t; i++) { vector<int> va; vector<int> vb; int maxa = 0; int maxb = 0; cin >> n >> a >> b; for (int j = 0; j < a; j++) ...
#include "wx/wx.h" #include "wx/sizer.h" #include "DrawPanel.h" BEGIN_EVENT_TABLE(DrawPanel, wxPanel) EVT_PAINT(DrawPanel::paintEvent) END_EVENT_TABLE() DrawPanel::DrawPanel(wxWindow* parent) : wxPanel(parent, -1, wxDefaultPosition, wxSize(200, 200), wxBORDER_SIMPLE), image(NULL) { } DrawPanel::~DrawPanel() { } v...
#include <iostream> #include <cstdlib> #include <cmath> #include <gmpxx.h> #include <iomanip> using namespace std; /* Bernoulli Trials Simulator */ //You can change these for debugging, but reset them before the deadline #define MAX_LUCK 10 #define TRIALS 100 #define FLIPS 40 #define PERCENT_PER_STAR 1 //Some sample...
// // Keepi.cpp <Keepi> // // Made by Julien Fortin // contact <julien.fortin.it@gmail.com> // #include <cstdlib> #include "Keepi.hpp" #include "KTypes.hpp" Keepi::Keepi(bool debug) { this->__init(debug); this->__prompt(); } Keepi::~Keepi() { delete this->__symtable; } void Keepi::__init(bool debug) { this->_...
// -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4; c-file-style:"stroustrup" -*- // // Copyright (C) 1995-2007 Opera Software ASA. All rights reserved. // // This file is part of the Opera web browser. It may not be distributed // under any circumstances. // // Patricia Aas // #ifndef __MIME_TYP...
/** * DeferredGet.cpp * * Implementation of the DeferredGet call * * @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com> * @copyright 2014 Copernica BV */ /** * Dependencies */ #include "includes.h" /** * Set up namespace */ namespace AMQP { /** * Report success, a get message succeeded and ...
#include "bricks/imaging/font.h" #include "bricks/imaging/bitmap.h" #include "bricks/collections/array.h" #include "bricks/core/math.h" using namespace Bricks::Collections; namespace Bricks { namespace Imaging { struct RenderedGlyph { AutoPointer<FontGlyph> glyph; s32 line; s32 x; s32 y; RenderedGlyph(Font...
class vector3 { public: GLfloat x; GLfloat y; GLfloat z; }; void polydron(); void octagon ( int a, int b, int c, int d, int e, int f, int g, int h, int o ); void quad( int a, int b, int c, int d ); void drawPolydron(); vector3 getNormal( GLfloat p0[3], GLfloat p1[3], GLfloat p2[3] ); void getPolydronNormal( vector3 ...
// // Created by Yevhenii Natalenko on 5/4/17. // #ifndef INC_3_BELLMAN_FORD_H #define INC_3_BELLMAN_FORD_H #include "Kosaraju.h" void demo_Bellman_Ford(); void connect_graph(std::vector<std::vector <int> >& graph, std::vector<std::vector <int> >& components); std::vector<std::vector <int> > gene...
#include "SocketException.hpp" Elysium::Core::Net::Sockets::SocketException::SocketException() : Elysium::Core::Exception() { } Elysium::Core::Net::Sockets::SocketException::SocketException(std::string Message) : Elysium::Core::Exception(Message) { } Elysium::Core::Net::Sockets::SocketException::~SocketExc...
#include <cstdlib> #include <iostream> #include "ruutu.hh" Ruutu::Ruutu( int x, int y, int tippoja, Lauta* lauta ): x_(x), y_(y), tippoja_(tippoja), lauta_(lauta) { // Ruutuun alustettiin liikaa vettä, se poksahtaa jo ennen kuin peli alkaa :) if( tippoja_ > MAKSIMI_TILAVUUS ) { poksahda(); } } Ruut...
#pragma once #include "ISystem.h" #include "Component\TriggerEventGroup.h" #include "Component\TimeTrigger.h" namespace Hourglass { class EventSystem : public ISystem { public: void Init(); void Update(); private: DECLARE_COMPONENT_POOL(TriggerEventGroup, 1024); DECLARE_COMPONENT_POOL(TimeTrigger, 1024...
#include <iostream> using namespace std; int main() { int sudya = 500; for (int i = 0; i < sudya; i++) { cout << "Wish You Happy Birthday Sudya.............." << endl; } }
// ADD_DLG.cpp : 实现文件 // #include "stdafx.h" #include "MFC综合实验.h" #include "ADD_DLG.h" #include "afxdialogex.h" // ADD_DLG 对话框 IMPLEMENT_DYNAMIC(ADD_DLG, CDialogEx) ADD_DLG::ADD_DLG(CWnd* pParent /*=NULL*/) : CDialogEx(IDD_DIALOG2, pParent) , name1(_T("")) , number1(_T("")) , major1(_T("")) , sex1(_T("")) , ...
#include <stdio.h> #include<stdlib.h> #include<string.h> /*Progama que pide una cadena de caracteres al usuario y muestra cuantas veces aparece cada una de las vocales. Elaborado por: Viviana Rojas Ruiz*/ int main() { char vec[100]; char *frase=vec; printf("Ingrese una frase:\n"); gets(frase); int a=0,...
// Name : Niloy Talukder Date: 07/28/2015 // Course: 16:332:503, PM for Financial Applications and Numerical Computing. // HW July 20: HW_Polynomial Class main_NiloyTalukder.h #include <iostream> using std::cout; using std::cin; using std::endl; #include <iomanip> using std::setw; #include "Polynomia...
/*********************************************************\ * 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 <utility> #include <type_traits> #include <tuple> namespace test { namespace detail { template<std::size_t...> struct index_pack {}; template<std::size_t N, std::size_t...S> struct increasing_index_pack : increasing_index_pack<N-1, N-1, S...> {}; template<std::size_t...S> struct increas...
/* * 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/portability/GMock.h> #include <quic/client/QuicClientTransport.h> #include <quic/client/connector/Q...
/** ***************************************************************************** * @author This file is part of libsnark, developed by SCIPR Lab * and contributors (see AUTHORS). * @copyright MIT license (see LICENSE file) **************************************************************************...
#ifndef __LIGHT_H__ #define __LIGHT_H__ class Light { D3DXCOLOR m_GrobalAmbient; // 전역 반사광 D3DXCOLOR m_LightDiffuse; // 라이팅 색상 D3DXVECTOR3 m_vLightDirection; // 라이팅 방향 D3DLIGHT9 m_Light; // 라이트 D3DLIGHT9 m_PLight; D3DXCOLOR m_PLightDiffuse; D3DXCOLOR m_PLightAmbient; D3DXVECTOR3 m_PLightP...
// chunk.h #pragma once #include "block.h" #include "world.h" #include "math/vec3.h" #include "math/mat4.h" #include "math/transform.h" #include "rendering/chunk_rendering.h" #include "rendering/renderer.h" #include <memory> namespace leap { namespace world { using math::vec3; using namespace leap::rendering; cla...
#include <GL/glew.h> #include <GL/glut.h> #include "GestioneModelli3d.h" GestioneModelli3d::GestioneModelli3d(int modello) { if (modello == 1) { modelpath = "birilloMesh/Bowling_Pin.obj"; } else { modelpath = "birilloMesh0.5-0.5/Bowling_Pin.obj"; } Import3DFromFile(modelpath); LoadGLTextures(...
#include "SemiTruck.h" SemiTruck::SemiTruck(const std::string& n) : Vehicle(n) {} SemiTruck::~SemiTruck() = default; SemiTruck::SemiTruck(const SemiTruck&) = default; SemiTruck& SemiTruck::operator=(const SemiTruck&) = default; void SemiTruck::pullOver() { setSpeed(0); std::cout << "Hi, officer." << std::endl...
// Created on: 1992-08-18 // Created by: Arnaud BOUZY // 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 GNU L...
#include <Tanker/ResourceKeyStore.hpp> #include <Tanker/Crypto/Format/Format.hpp> #include <Tanker/DataStore/ADatabase.hpp> #include <Tanker/Errors/Errc.hpp> #include <Tanker/Errors/Exception.hpp> #include <Tanker/Log/Log.hpp> #include <Tanker/Trustchain/ResourceId.hpp> #include <fmt/format.h> TLOG_CATEGORY(Resource...
#include <iostream> using namespace std; int main() { char ch[10][81]={0}; int n,ec(0),num(0),els(0),j; cin>>n; for(int i=0;i<n+1;i++) { j=0; while((ch[i][j]=cin.get())!='\n'){ if(('A'<=ch[i][j]&&ch[i][j]<='Z')||('a'<=ch[i][j]&&ch[i][j]<='z')) ec++; ...
#include <string> #include <iostream> #include "library.h" #include "publication.h" int menu(); void list_publications(); void execute_cmd(int); void add_publication(); void list_publications(); void check_out(); void check_in(); void get_help(); void fill_library(); Genre get_genre(); Media get_media(); Age get_age...
#include <apr_pools.h> #include <ap_release.h> #include <httpd.h> #include <http_config.h> #include <apr_hooks.h> #include <apr_errno.h> #include <apr_thread_proc.h> #include <pv/Exception.hh> #include <pv/Errors.hh> #include <stdexcept> #include <http_protocol.h> #include <curl/curl.h> #include "ApacheLogger.hh" #incl...
/* -*- Mode: c++; tab-width: 4; c-basic-offset: 4 -*- * * 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. * * @author Patryk Obara (pobara) */ #ifndef TOOLKIT_COLOR_CHOOSER_H #define TOOLKIT_CO...
#pragma once #include <iostream> #include <atomic> #include <vector> #include <string> #include <thread> #include <pthread.h> #include <cassert> #include <algorithm> #include <functional> #include <numeric> #include <utility> #include <unordered_set> #include <set> #include <cstdlib> #include <stdexcept> #include "ic...
/* ** EPITECH PROJECT, 2018 ** cpp_indie_studio ** File description: ** Egg.cpp */ #include "Egg.hpp" Egg::Egg(Point pos,int idxPlayerFrom) : _pos(pos) , _idxPlayerFrom(idxPlayerFrom) {} Point Egg::getPos(void) const { return _pos; } int Egg::getIdxPlayerFrom(void) const { return _idxPlayerFrom; } void Egg::s...
/**************************************************************************** ** 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...
#include<cstdio> #include<iostream> #include<map> #include<vector> #include<string> #include<algorithm> using namespace std; map<string,int> dic; vector<string> v; int main() {int n,t=0; while (cin >> n && n) {printf("Case #%d:\n",++t); dic.clear(); v.clear(); string st; for (int i = 1;i <= n...
#include "localtoolbar.h" #include <QHBoxLayout> #include <QLabel> #include <QPushButton> //#include <QLineEdit> #include <QFileDialog> #include <QTreeView> #include <QMessageBox> #include "mainwindow.h" #include "netconfigdialog.h" LocalToolBar::LocalToolBar(QWidget *parent) : QToolBar(parent) { QLayout* layo...
// // Copyright (C) 2001 David Gould // #ifndef GROUNDSHADOWCMD_H #define GROUNDSHADOWMD_H #include <maya/MPxCommand.h> #include <maya/MDagModifier.h> class GroundShadowCmd : public MPxCommand { public: virtual MStatus doIt(const MArgList&); virtual MStatus undoIt(); virtual MStatus redoIt(); virtual bool isUnd...
#include "stdafx.h" #include "TestScene.h" TestScene::TestScene() { } TestScene::~TestScene() { } HRESULT TestScene::Init() { isDebug = false; for (int i = 0; i < POKEMON_MAX; i++) { pokemon[i].img = IMAGE->FindImage("pokemon"); pokemon[i].row = RND->GetFromInto(0, 12); if (pokemon[i].row != 12) pokemo...
#ifndef AOC_15_H #define AOC_15_H #include <map> #include <numeric> #include "Classes/IntCodeCPU/IntCodeCPU.h" namespace AoC_15 { std::pair<long long, long long> FindUnsearched(std::map<std::pair<long long, long long>, long long>& mazeMap) { for (auto& pos : mazeMap) { if (pos.second != 0) { ...
#pragma once struct LayerBuilder { virtual ~LayerBuilder() = default; };
#include "core/app.hpp" #include "core/utils.hpp" DISABLE_WARNING_PUSH_ALL #include <Mahi/Gui.hpp> DISABLE_WARNING_POP namespace OptimExplorer { void App::update() { ImGuiViewport* main_viewport = ImGui::GetMainViewport(); ImGui::SetNextWindowPos(main_viewport->GetWorkPos(), ImGuiCond_Always); ImGui::SetNex...
// Sharna Hossain // CSC 111 // Lab 14 | bool_return.cpp // Ask the user to enter an integer number and then by // calling a boolean function(you can choose any name), // determine if the number is divisible by 5 or not. #include <iostream> using namespace std; // bool div_by_five(int num) // { // return num % 5...
#include <iostream> #include <sstream> #include <vector> #include <list> #include <queue> #include <algorithm> #include <iomanip> #include <map> #include <unordered_map> #include <string> #include <set> #include <stack> #include <cstdio> #include <cstring> #include <climits> using namespace std; string weeks[] = { "MO...
#pragma once #include "Area.h" #include <iostream> using namespace std; class Square : public Area { double a; double S; public: Square(); ~Square(); double Calc(); };
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4; coding: iso-8859-1 -*- ** ** Copyright (C) 1995-2006 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 UTIL_PATH_FUNCT...
#include "GroupRecord.h" #include <fstream> #include "StreamUtilities.h" using namespace std; using namespace OpenFlight; //------------------------------------------------------------------------------ GroupRecord::GroupRecord(PrimaryRecord* ipParent) : PrimaryRecord(ipParent), mAsciiId("n/a"), mRelativePriority(0)...
/* * 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 <gmock/gmock.h> #include <gtest/gtest.h> #include <folly/io/async/test/MockAsyncUDPSocket.h> #include <qu...
/* Copyright (c) 2013, Morten S. Laursen <email> 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, t...
bool isTheButtonBeingPressed = false; int switchState =0; int delayMillis = 0; const int ledPin =6; const int buttonPin =2; void setup() { // put your setup code here, to run once: pinMode(ledPin,OUTPUT); pinMode(buttonPin,INPUT); } void loop() { // put your main code here, to run repeatedly: //leer el estado del...
#include "waittingpage.h" #include "ui_waittingpage.h" #include "hintpage.h" #include "global.h" #include <QMessageBox> WaittingPage::WaittingPage(QWidget *parent) : QWidget(parent), ui(new Ui::WaittingPage) { ui->setupUi(this); this->setFixedSize( this->width(),this->height()); //Global::lastPag...
/* Created By Harish Bhagtani on May 01, 2021 * A C++ Program to Convert an Infix Expression to Post Fix * Read README file for the algorithm () */ #include <iostream> #include <ctype.h> using namespace std; //Implementing a char stack using array because //we are going to use stack for conversion class Stack{ pub...