text
stringlengths
8
6.88M
// Created on: 2022-05-11 // Copyright (c) 2022 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software...
// // Created by Omer on 18/01/2018. // #include "Group.h" #include "exceptions.h" #include <cmath> namespace mtm{ Group::Group(const std::string &name, const std::string &clan, int children, int adults, int tools, int food, int morale) { if (name.empty()) throw GroupInvalidArgs(); if (adults ==...
// // Created by 钟奇龙 on 2019-05-06. // #include <iostream> #include <vector> #include <string> using namespace std; int minEditCost(string s1,string s2,int insertCost,int deleteCost,int replaceCost){ if(s1.size() == 0 || s2.size() == 0) return 0; vector<vector<int> > dp(s1.size()+1,vector<int> (s2.size()+1,0)...
#ifndef __SEVERTEXBUFFER_H__ #define __SEVERTEXBUFFER_H__ #include "SEVertex.h" #include <vector> template <class T> class SEVertexBuffer { public: const uint32_t &refCount; SEVertexBuffer() : v_(), r_(1), refCount(r_) {} ~SEVertexBuffer() {} SEVertex<T> &operator[](std::size_t i) { return ...
#pragma once #include <string> #include <sstream> namespace fusion { template <class CharType, class Traits = std::char_traits<CharType>, class Allocator = std::allocator<CharType>> class basic_stringbuilder { public: typedef std::basic_string<CharType, Traits, Allocator> string_type; template <typename T> basic...
#include "vocab.h" vcb::vocab::vocab() { this->operator[](csys) = "Control System"; this->operator[](mnemoSchema) = "MnemoSchema"; this->operator[](log) = "Log"; this->operator[](plot) = "Plot"; this->operator[](main) = "Main"; this->operator[](lockers) = "Lockers"; this->operator[](recipe) = "Recipe"...
#pragma GCC optimize("Ofast") #include <algorithm> #include <bitset> #include <deque> #include <iostream> #include <iterator> #include <string> #include <map> #include <queue> #include <set> #include <stack> #include <vector> #include <unordered_map> #include <unordered_set> using namespace std; void abhisheknaiidu()...
#include"interact.h" vector <BREAKPOINTINFO> BreakList;//容器,存放CC断点的动态数组 vector <MEMORYPOINTINFO> MemoryList;//容器,存放内存断点的动态数组 BOOL First = TRUE; /*用来设置软件断点*/ BOOL SetSoftBreakPoint(DWORD PID, LPVOID Address, BOOL once) { BOOL ret = TRUE; HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, PID); BREA...
#include <iostream> using namespace std; int main(){ int arr[10] = {3,1,4,2,4,9,2,6,5,3}; for (int &n : arr){ // 예를 들어서 6번째 n 이라면, int &n = arr[6] cout << n << ' '; n++; } cout << endl; for (int n : arr){ cout << n << ' '; } cout << endl; }
#pragma once #include "../../SDK/SDK.h" namespace Hooks { namespace WndProc { inline HWND hwWindow; inline WNDPROC Original; LONG __stdcall Func(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam); void Init(); } }
#include "window.h" #include <iostream> // Static member delcarations Window* Window::self_ = nullptr; // Constructor Window::Window() : win_(nullptr), gl_context_(nullptr), width_(1920), height_(1080) { } // Destructor Window::~Window() { // Destory objects SDL_DestroyWindow( win_ ); // Cleanup pointers ...
#include "StaticModelCollider.h" #include "MeshRenderer.h" #include "Object.h" #include "Mesh.h" #include <cmath> int triBoxOverlap(float boxcenter[3], float boxhalfsize[3], float triverts[3][3]); bool ColliderColumn::IsColliding(glm::vec3 _position, glm::vec3 _size) { for (std::vector<rend::CollitionFace>::iterat...
/*============================================================================== Program: 3D Slicer Copyright (c) Kitware Inc. See COPYRIGHT.txt or http://www.slicer.org/copyright/copyright.txt for details. Unless required by applicable law or agreed to in writing, software distributed under the License is distribu...
#include <iostream> #include <tuple> #include <sstream> #include <map> #include <functional> #include <cstdio> #include <string> #include <vector> #include <fstream> #include <boost/lexical_cast.hpp> #include <boost/algorithm/string.hpp> #include <boost/bimap.hpp> #include <boost/flyweight.hpp> #include <boost/signals2...
#include "Camera.h" Camera::Camera() { posX = 0; posY = 0; } Camera::Camera(float posx, float posy) { posX = posx; posY = posy; } void Camera::adjust(float width, float height) { glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrtho(-width/2, width/2, height/2, -height/2, -2, 2); glGetFloatv(GL_PROJECTION_...
// This file was generated based on /Users/r0xstation/18app/src/.uno/ux13/ListMyCoupon.g.uno. // WARNING: Changes might be lost if you edit this file directly. #include <_root.app18_accessor_ListMyCoupon_Items.h> #include <_root.app18_accessor_ListMyCoupon_Selected.h> #include <_root.app18_accessor_ListMyCoupon_Title....
//#include <string> #include <iostream> #include <fstream> #include <direct.h> #include <math.h> #include "VirtualMachine.h" using namespace std; struct mssv{ string test_dir; string lang_def; int population; int iterations; int generations; double threshold; double mutation; double combinati...
class Solution { public: vector<int> inorderTraversal(TreeNode* root) { stack<TreeNode*> st; vector<int> tr; while(root != NULL || !st.empty()){ if(root != NULL){ st.push(root); root = root -> left; }else{ root = st.top(...
#pragma once #include "light.h" class directional_light final : public light { public: directional_light(vector3 direction, ::color color, double intensity); auto direction_from(const vector3& hit_point) -> vector3 override; auto distance(const vector3& hit_point) -> double override; auto intensity(const vector3...
#pragma once #include <string> #include "Node.h" #include "fontcpp/IconsFontAwesome5Pro.h" #include "fontcpp/IconsMaterialDesign.h" namespace studio { //icon check: http://www.wapadd.cn/icons/awesome/index.htm static std::string makeIconText(const char *icon, const char *join, const char *text) { char buf[80] = { 0 ...
#include "TestFramework.h" #include "treecore/RefCountObject.h" #include "treecore/RefCountHolder.h" using namespace treecore; class TestType: public RefCountObject { public: TestType(bool* marker): live_marker(marker) { *live_marker = true; } virtual ~TestType() { *live_marker = ...
#include <cstdio> int gcd(int numa, int numb); int lcm(int numa, int numb); int main() { int numa(0), numb(0), gcdNum =(1), lcmNum(1); printf("input two positive numbers: "); scanf("%d %d", &numa, &numb); if(numa <= 0 || numb <= 0){ printf("The numbers input is negative"); } gcdNum ...
#include <stdio.h> #include <iostream> #include <random> using namespace std; bool TrialDivision(uint64_t n) { if (n<2) return false; if (n<4) return true; if ((n & 1) == 0) return false; for (uint64_t i = 3; i <= (uint64_t) sqrt(n); i+=2) if (n % i == 0) retu...
// Created on: 1992-09-28 // Created by: Remi GILET // 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 Les...
#pragma once #include "Geometry.h" class CollisionDetector { public: CollisionDetector(); ~CollisionDetector(); const static bool IsCollided(const Rect& rcA, const Rect& rcB); };
#include <iostream> #include <stack> #include <cstdio> #include<string> using namespace std; string choice; int turn; int main() { ios_base::sync_with_stdio(false); int t; string url; stack <string> f; stack <string> b; cin >> t; for (int cs = 1; cs <= t; cs++) { cin >> choice; whi...
#include <iostream> using namespace std; void drawV(char * * & ary, char & symbol, int n, int m) { // fill ary = new char * [n]; for (int i = 0; i < n; ++i) { ary[i] = new char[n]; } for (int i = 0; i < n; ++i) { for (int j = 0; j < m; ++j) { if ((i == j) || (j == m - i - 1)) { a...
#pragma once #include "renderer.h" #include "..\\renderer\color.h" #include "..\\resource\resource.h" #include "..\\core\name.h" class Font : public Resource { public: Font(Renderer* renderer) : renderer_(renderer) {} ~Font(); bool Create(const Name& font_name); void Destroy(); friend class Texture; protected...
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- * * Copyright 2005-2012 Opera Software ASA. All rights reserved. * * This file is part of the Opera web browser. * It may not be distributed under any circumstances. */ #ifndef MODULES_UTIL_OPFILE_OPSLOTFILE_H #define MODULES_UTIL_OPFILE_...
/** @file ***************************************************************************** Declaration of arithmetic in the finite field F[((p^2)^3)^2]. ***************************************************************************** * @author This file is part of libsnark, developed by SCIPR Lab * and c...
/* -*- 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. */ #ifndef SKINANIMHANDLER_H #define SKINANIMHANDLER_H #ifdef ANIM...
#include <iostream> using namespace std; int main() { int x; int y; int summa; int starpiba; int reizinajums; int mod; double dalijums; int z; x = 1; y = 2; z = 3; summa = 2x + 3y + z; starpiba = x - y; reizinajums = x * y; mod = x % y; da...
#include <iostream> using namespace std; void sorting(){ cout<<"helo"; } int main(int argc, char const *argv[]) { char arr[]={'a','s'}; std::cout << int(arr[1]-97) << '\n'; for (int i= 0; i < sizeof(arr); i++) { cout<<arr[i]; } return 0; }
#pragma once #include "rna/primitives.h" namespace rna { // inline Scalar distance(Vec3 a, Vec3 b) { return glm::distance(a, b); } } // namespace rna
#include "detailedrecordtable.h" #include "ui_detailedrecordtable.h" using namespace cv; using namespace std; DetailedRecordTable::DetailedRecordTable(QWidget *parent) : QDialog(parent), ui(new Ui::DetailedRecordTable) { ui->setupUi(this); camera_ = NULL; // por ahroa deshabilito los dibujos de a...
#include "QE.h" class UnitTest { public: int id; Data data; UnitTest(double a, double b, double c, int i) { data = Data(a, b, c); id = i; } void twoRoots(double check1, double check2) { calculateX(&data); ...
#include "NpcInfoSystem.h" static NpcInfoSystem* _npcInfoSystem = NULL; NpcInfo::NpcInfo(const rapidjson::Value &json) :m_nID(json["ID"].GetUint()) ,m_nSID(json["SID"].GetUint()) ,m_nQID(json["QID"].GetUint()) ,m_nRID(json["RID"].GetUint()) ,m_sSentence(json["Sentence"].GetString()) ,m_sName(json["Name"].GetString())...
#include "Sensor.h" #ifndef __Sensor_H #error [E030] Не определен заголовочный файл Sensor.h #endif void Sensor::handle() { } uint16_t Sensor::getValue() { return value; } Boolean Sensor::getTurnOn() { return turnOn; }
#include <iostream> #include <algorithm> #include <cstdlib> struct Range_error :std::out_of_range { int index; Range_error(int i) :std::out_of_range("Range error"), index{ i }{} }; /* template<typename T> class allocator { T* allocate(int n); void deallocate(T* p, int n); void construct(T* p, const T& v); void...
/* ........eWorld ReSearch 2004 ........Alessandro Polo ........http://www.ewgate.net ........===================== ........This software is freeware. Project is Open Source. ........Keep Author's Credits if you use any part of this software. ........===================== ........Project State: Completed ........Projec...
#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...
#include <iostream> #include "./exercise-01/main.cpp" #include "./exercise-02/main.cpp" #include "./exercise-03/main.cpp" #include "./exercise-04/main.cpp" #include "./exercise-05/main.cpp" #include "./exercise-07/main.cpp" #include "./exercise-09/main.cpp" int main() { int b; do { std::cout << "==============...
/* ** EPITECH PROJECT, 2018 ** cpp_indie_studio ** File description: ** Egg.hpp */ #ifndef Egg_HPP #define Egg_HPP #include "Point.hpp" class Egg { public: Egg(Point pos, int idxPlayerFrom); virtual ~Egg() = default; Egg(Egg const & rhs) = default; Egg(Egg && rhs) = default; Egg & operator=(Egg const & rhs) = ...
/**************************************************************************** * * * Author : lukasz.iwaszkiewicz@gmail.com * * ~~~~~~~~ * * Lice...
#ifndef _SMART_BAG_H_ #define _SMART_BAG_H_ #include <iostream> #include <initializer_list> #include <stdexcept> #include <memory> template <typename Item> class SmartBag { private: int sz; int capacity; std::unique_ptr<Item[]> items; public: SmartBag() : sz(0), capacity(4), items(std::make_unique<Item[]>(4)...
#include "my_light_entity.h" MyLightEntity::MyLightEntity(CVector3 pos, int cId, double maxY, Real lightDist, CColor color) : Light(pos, cId), color(color) { this->lightDist = lightDist; calculateAxis(maxY); lightArea = ColoredArea(); lightArea.color = CColor::GRAY80; lightArea.xRange = { pos.GetX(...
#include "livingFigure.h" LivingFigure::LivingFigure(std::string name, Point offset) : Figure( name, offset, true, true,0){ /* for(int i = 0; i < triangles.size(); i++){ triangles[i].points[0].x-=this->offset.x;triangles[i].points[0].y-=this->offset.y; triangles[i].points[1].x-=this->offset.x;triangles[i].point...
#include"pch.h" #include "MazeTraversal.h" #include<iostream> #include<string> #include<fstream> using namespace std; MazeTraversal::MazeTraversal(int size ):size(size){ maze = new char* [size]; for (int i = 0; i < size; i++) { maze[i] = new char[size]; } for (int i = 0; i < size; i++) { for (in...
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- * * Copyright (C) 2007 Opera Software AS. All rights reserved. * * This file is part of the Opera web browser. It may not be distributed * under any circumstances. */ #ifndef MEMORY_OPALLOCINFO_H #define MEMORY_OPALLOCINFO_H /** \file ...
/******************************************************************************* Copyright (c) 2010, Steve Lesser Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1) Redistributions of source code must retain the above c...
/* Copyright 2021 University of Manchester 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 writing, s...
#include "StdAfx.h" #include <GameLib.h> // エントリ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { // ゲームを実行 GameLib *game = new GameLib(); game->DoMainLoop(); delete game; return 0; }
#include "VertexDescription.h" #include "GraphicsInterface.h" using namespace Graphics; const VertexInputDescription& PosVertexDescription::GetDescription() { static VertexInputDescription::VertexInputElement k_Elements[] = { {"POSITION", 0, Format::RGB_32_Float, 0} }; static const VertexInputDescription k_Desc ...
#ifndef LOCK_HEADER #define LOCK_HEADER #include <stdint.h> #include <unistd.h> class LockService { private: uint16_t WriteID; uint16_t ReadID; uint64_t MetaDataBaseAddress; public: LockService(uint64_t MetaDataBaseAddress); ~LockService(); uint64_t WriteLock(uint16_t NodeID, uint64_t Address); bool WriteUnloc...
#include "runtime_file_paths.h" namespace Constants { boost::filesystem::path RuntimeFilePaths::ui(boost::filesystem::current_path() / "ui"); boost::filesystem::path RuntimeFilePaths::ui_cache(ui / "cache"); boost::filesystem::path RuntimeFilePaths::ui_index(ui / "index.html"); std::string RuntimeFilePaths::ui_loc...
#include <stdio.h> #include <fstream> using namespace std; int checkExist(char* array,int size, char c){ /* * Zero is doesnt exist, returns location + 1 if exist. */ for (int i = 0; i< size; i++){ if(array[i] == c){ return i + 1; } } return 0; } int main(int argc...
/* ============================================================================ Author : Zhirong Yang Copyright : Copyright by Zhirong Yang. All rights are reserved. Description : Stochastic Optimization for t-SNE ============================================================================ */ // Modified ...
// Copyright (c) 2007-2017 Hartmut Kaiser // // 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.hpp> #if defined(PIKA_HAVE_CXX20_COROUTINES)...
// Created on: 1991-02-20 // Created by: Jacques GOUSSARD // 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 G...
#include "common.h" #include <iostream> void read_imgList(const std::string& filename, std::vector<cv::Mat>* images) { std::ifstream file(filename.c_str(), std::ifstream::in); std::string line; while (std::getline(file, line)) { images->push_back(cv::imread(line, 0)); } } void read_imgList2(c...
#include "ApplicationManager.h" #include "Actions\AddANDgate2.h" #include "Actions\AddANDgate3.h" #include "Actions\AddORgate2.h" #include "Actions\ADD_XOR_GATE_3.h" #include "Actions\AddBuff.h" #include "Actions\AddNORgate3.h" #include "Actions\AddConnection.h" #include "Actions\DSGMode.h" #include "Actions\AddGate.h"...
// kumaran_14 // #include <boost/multiprecision/cpp_int.hpp> // using boost::multiprecision::cpp_int; #include <bits/stdc++.h> using namespace std; // ¯\_(ツ)_/¯ #define f first #define s second #define p push #define mp make_pair #define pb push_back #define eb emplace_back #define rep(i, begin, end) for (__typeof...
#include "fir.h" #include "fir_base.h" extern void delay8(CReg addin, CReg addout); extern void delay1(CReg addin, CReg addout); extern void delay9(CReg addin, CReg addout); ////////////////////////////////////////////////////////// //// 名称: //// FIR_PATH3_HPInit_HP1 //// 功能: //// 设置fir滤波器系数 //// 参数: /...
// // Created by dwb on 2019-07-22. // #ifndef SAMPLE_ANIMAL_H #define SAMPLE_ANIMAL_H #include <iostream> #include "AnimalFactory.h" using namespace std; class AnimalFactory; class Animal { public: Animal():m_name("Tiger"),m_weight(70),m_height(180){ cout << "Animal()" << endl; } Animal(const...
#ifndef GENERIC_BUS_H #define GENERIC_BUS_H // RsaToolbox // // Qt #include <QObject> #include <QMetaType> #include <QString> #include <QByteArray> #include <QScopedArrayPointer> namespace RsaToolbox { enum /*class*/ ConnectionType { VisaTcpConnection, VisaTcpSocketConnection, VisaHiSlipConnection, ...
/* * <one line to give the library's name and an idea of what it does.> * Copyright 2014 Milian Wolff <mail@milianw.de> * * 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 ...
// kumaran_14 #include <bits/stdc++.h> using namespace std; #define f first #define s second #define p push #define mp make_pair #define pb push_back #define foi(i, a, n) for (i = (a); i < (n); ++i) #define foii(i, a, n) for (i = (a); i <= (n); ++i) #define fod(i, a, n) for (i = (a); i > (n); --i) #define fodd(i, a, n...
#include <iterator> #include <vector> #pragma once // Patching functions all rely on the Asar DLL #ifndef WORLDLIB_IGNORE_DLL_FUNCTIONS namespace worldlib { ////////////////////////////////////////////////////////////////////////////// /// \file Patch.hpp /// \brief Contains various functions for patching and as...
#include <QCoreApplication> #include <QDebug> class Person { public: Person(const QString &name, int age) : mName(name), mAge(age) { } friend inline QDebug operator<<(QDebug qd, const Person &p); private: QString mName; int mAge; }; inline QDebug operator<<(QDebug qd, const Person &p) { ...
#include <fstream> #include "blur_xy_16_unrolled_16_opt.h" int main() { ofstream in_pix("input_pixels_regression_result_blur_xy_16_unrolled_16_opt.txt"); ofstream fout("regression_result_blur_xy_16_unrolled_16_opt.txt"); HWStream<hw_uint<256> > input_update_0_read; HWStream<hw_uint<256> > blur_xy_16_unrolled_1...
// ShortForcast.cpp : 实现文件 // #include "stdafx.h" #include "MessAtoB.h" #include "ShortForcast.h" #include "string-trans.h" #include <fstream> #include <iostream> // ShortForcast 对话框 IMPLEMENT_DYNAMIC(ShortForcast, CDialog) ShortForcast::ShortForcast(CWnd* pParent /*=NULL*/) : CDialog(ShortForcast::...
#include<bits/stdc++.h> using namespace std; int ma[10000], mi[10000]; main() { int d, sumtime; while(cin>>d>>sumtime) { int i, maxi=0, mini =0, sum=0, ta=1, ti=1, a; for(i=1; i<=d; i++) { cin>>mi[i]>>ma[i]; mini = mini + mi[i]; maxi = maxi + ma[i]...
// // debug.hpp // utilities // // Created by Six on 2/23/2018. // Copyright 2/23/2018 Six. All rights reserved. // #ifndef _DEBUG_HPP #define _DEBUG_HPP #include <stddef.h> /// /// @brief Debug log with time, file, line, and function helper /// @param[in] file The file name, will have directory delimiters remove...
#define GLEW_STATIC #include <GL/glew.h> #include <windows.h> #include <math.h> #include "EventHandler.h" using namespace std; void init (); void display (void); void centerOnScreen (); void drawObject (); int window_x; int window_y; char *window_title = "Projeto Final"; GLuint main_window; int ...
#include<iostream> using namespace std; int a[20]; int main() {int n=9,ans=0; for (int i = 1;i <= 9;i++ ) cin >> a[i]; for (int i = 1;i < n;i++ ) for (int j = (i+1);j <= n; j++) if (a[i]>a[j]) ans++; cout << ans << endl; return 0; }
#include "StdAfx.h" #include "GcTextureAnimationPropEntity.h" #include "GcPropertyGridFloatSpinProperty.h" #include "GcPropertyGridProperty.h" #include "Gc2DTexturePropEntity.h" GcTextureAnimationPropEntity::GcTextureAnimationPropEntity(void) { Init(); } GcTextureAnimationPropEntity::~GcTextureAnimationPropEntity(v...
#include "Complex.h" #include <iostream> using namespace std; Complex::Complex(double xx, double yy) :x(xx), y(yy) {} void Complex::dis() { cout << '(' << x << ',' << y << ')' << endl; } Complex& Complex::operator+=(const Complex& another) { this->x += another.x; this->y += another.y; return *this; } Complex& ...
//-------------------------------------------------------- // musket/include/musket/caret.hpp // // Copyright (C) 2018 LNSEAB // // released under the MIT License. // https://opensource.org/licenses/MIT //-------------------------------------------------------- #ifndef MUSKET_CARET_HPP_ #define MUSKET_CARET_HPP_ #inc...
#include<iostream> #include <stdlib.h> using namespace std; struct queue { int size; int f; int r; int* arr; }; int isFull(struct queue *q){ if(q->r==q->size-1){ return 1; } return 0; } void enqueue(struct queue *q, int val){ if(isFull(q)){ printf("This Queue is full\...
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; 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. */ #include "core/pch.h" #include "adjunct/quick/application/Browse...
#pragma once #include "MyDocument.h" class CTestDoc : public CMyDocument { MY_DECLARE_DYNCREATE(CTestDoc) public: CTestDoc(); virtual ~CTestDoc(); };
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- ** ** Copyright (C) 2000-2008 Opera Software AS. All rights reserved. ** ** This file is part of the Opera web browser. It may not be distributed ** under any circumstances. ** ** Yngve Pettersen ** */ #ifndef SSL_CERTINST_BASE_H #define SSL_...
#pragma once #ifndef H_TEASER_UTILITY_H #define H_TEASER_UTILITY_H #include <chrono> #include <iostream> #include <random> #include <Eigen/Core> // #include <teaser/ply_io.h> #include <teaser/teaser_registration.h> #include <teaser/teaser_matcher.h> #include <string> #include <io.h> #include <pcl/...
#include <iostream> #include <cstdio> #include <algorithm> #include <vector> #include <functional> #include <queue> #include <string> #include <cstring> #include <numeric> #include <cstdlib> #include <cmath> using namespace std; typedef long long ll; #define INF 1000000000 #define rep(i,n) for(int i=0; i<n; i++) #def...
#include<bits/stdc++.h> using namespace std; #define NO 3 int main(){ int point[][2]={80,80, 100,98, 60,80}; int sum=0,p_sum[NO]={0}; double ave; for (int i=0;i<NO;++i) { sum+=point[i][0]; } ave=(double)sum/NO; printf("english_ave is %5.1lf!\n",ave); sum=0; for (int i=0;i...
//============================================================================ // Name : SpewFilterTesting.cpp // Author : // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ ...
#include "CHttpReqDispatch.h" #include <stdlib.h> #include <string.h> #include "json/json.h" #include "Logger.h" #include "CalUsingTime.h" #include "url_code.h" #include "base64.h" //#if __DDCRYPTO__ //#include "DDCrypt.h" #include "XyRsa.h" #include "XyCryptoEx.h" //#endif #include "RedisLogic.h" #include "Helper.h"...
#include "GOSIM.h" void GOSIM::GridUpdate(Grid *ti, Grid *real, Grid *errmap) { //test int bin_num = 20; //calculate histogram each time Grid *hist_ti = HistCalc(ti, bin_num, minvalue_ti, maxvalue_ti); Grid *hist_real = HistCalc(real, bin_num, minvalue_real, maxvalue_real); Grid out(real->le...
/* * Copyright (C) 1999-2001 Brian Paul All Rights Reserved. * * 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, ...
/* Copyright 2021 University of Manchester 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 writing, s...
#include "brickstest.hpp" #include <bricks/io/filestream.h> #include <bricks/io/memorystream.h> #include <bricks/io/cachestream.h> #include <bricks/io/substream.h> using namespace Bricks; using namespace Bricks::IO; TEST(BricksIoStreamTest, NonExistentFile) { EXPECT_THROW(FileStream("lolnonexistent", FileOpenMode::...
/*** * @file FalconCLIBase.cpp * @brief Utility class for common operations (device opening, firmware loading, etc...) needed in command line interface examples * @author Kyle Machulis (kyle@nonpolynomial.com) * @version $Id$ * @copyright (c) 2007-2008 Nonpolynomial Labs/Kyle Machulis * @license BSD License * *...
/**************************************************************************** * * * Author : lukasz.iwaszkiewicz@gmail.com * * ~~~~~~~~ * * Lice...
#include "parser_main.h" #ifndef __PARSER_TEMPLATE__ #define __PARSER_TEMPLATE__ /** * A class of functions for manipulating templates within * wikimarkup. Extends the base parser class. */ class template_parser : public parser{ private: /** * A string representing the identifying characters * f...
#include "Magellan.h" Magellan magel; char auth[]="2abd44e0-694f-11e8-9f32-77202ac2dc97"; String payload; void setup() { Serial.begin(9600); magel.begin(auth); } void loop() { String Temperature=String(random(0,100)); String Humidity=String(random(0,100)); payload="{\"Temperature\":"+Temperature+",\"Humid...
#ifndef _GetPlayInfo_H_ #define _GetPlayInfo_H_ #include "BaseProcess.h" class BaseClientHandler; class GetPlayInfo : public BaseProcess { public: GetPlayInfo(); ~GetPlayInfo(); virtual int doRequest(CDLSocketHandler* clientHandler, InputPacket* inputPacket, Context* pt); virtual int doResponse(CDLSocketHandler*...
#ifndef MAINWINDOW_H #include "bigint.h" #define MAINWINDOW_H #include <QMainWindow> #include <QString> namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); private slots: void on_actionAbout_triggered()...
#ifndef __RESOURCE_LOADER_H__ #define __RESOURCE_LOADER_H__ #include <cocos2d.h> #define SIZE_NUM 1024 using namespace cocos2d; using namespace std; typedef struct resourceStruct { char name[255]; int width; int height; Point start; Point end; }Resource; class ResourceLoader { public: //单...
/** * @file serialretriever.h * * @brief The serial message retriever. This will accept messages over serial. * @version 0.1 * @date 2021-07-22 * * @copyright Copyright (c) 2021 * */ #include "messageretriever.h" #ifndef SERIALRETRIEVER_H #define SERIALRETRIEVER_H /** * @brief The class ...
#include "Application.h" #include<string> Application::Application(const std::string &title, uint32_t width, uint32_t height, CameraType cameraType) { WindowEventsListener windowEventsListener = [this](WindowEvents event) { onWindowEvent(event); }; ScrollEventsListener scrollEventsListener = [thi...