text
stringlengths
3.08k
12.5k
// jhcAliaDLL.cpp : add procedural grounding functions from a DLL to ALIA // // Written by <NAME>, <EMAIL> // /////////////////////////////////////////////////////////////////////////// // // Copyright 2018-2019 IBM Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use thi...
/* * RPLIDAR * Ultra Simple Data Grabber Demo App * * Copyright (c) 2009 - 2014 RoboPeak Team * http://www.robopeak.com * Copyright (c) 2014 - 2019 Shanghai Slamtec Co., Ltd. * http://www.slamtec.com * */ /* * This program is free software: you can redistribute it and/or modify * it under the terms of ...
#include "graph.h" // Add edge inline void Graph::add_edge(Graph::vertex_t vertex1, Graph::vertex_t vertex2, Graph::weight_t weight = 1) { if (!this->directed_) if (vertex1 > vertex2) std::swap(vertex1, vertex2); // Create an edge auto edge = std::make_shared<Graph::Edge>( ...
#define DAWN_GENERATED 1 #undef DAWN_BACKEND_T #define DAWN_BACKEND_T CXXNAIVE #ifndef BOOST_RESULT_OF_USE_TR1 #define BOOST_RESULT_OF_USE_TR1 1 #endif #ifndef BOOST_NO_CXX11_DECLTYPE #define BOOST_NO_CXX11_DECLTYPE 1 #endif #ifndef GRIDTOOLS_DAWN_HALO_EXTENT #define GRIDTOOLS_DAWN_HALO_EXTENT 0 #endif #ifndef BOOST...
#include <agentsBuilder.h> #include <cstdlib> #include <dlfcn.h> #include <pthread.h> #include <assert.h> #include <iagent.h> #include <unistd.h> AgentsBuilder_t::AgentsBuilder_t(struct AgentBuilderArg* _arg) { m_vec = new vector<IAgent_t*>; m_handles = new vector<void*>; m_publisher = _arg->m_pub; m_registrar =...
/*\ \file SiStripSpyUnpackerModule.cc * \brief Source code for the spy unpacking plugin module. */ // CMSSW includes #include "FWCore/Utilities/interface/EDGetToken.h" #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/EDProducer.h" #include "FWCore/Framework/interface/Event.h"...
// // 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 conditions and the following disclaimer. // * Redistributions in bin...
#include "Simulation.h" /* * This class abstracts a Paramics traffic simulation, providing helper methods for * interacting with the simulator itself. */ traci_api::Simulation* traci_api::Simulation::instance = nullptr; traci_api::Simulation::Simulation() : stepcnt(0) { } traci_api::Simulation::~Simulation() { ...
// UnitTests.cpp // Final (GROUP) Project // Last Updated: 11/28/2018 // Contributors: // <NAME> - Project Leader (Recursion/Code-Gluer) // <NAME> - Project Member (Class/Vector Work) // <NAME> - Project Member (I/O & UI Work) // Liscensed under Apache 2.0 Liscense // A set of unit tests for all aspects of the Tracki...
// Main.cxx // espresso lib #include <espresso.hxx> using namespace espresso; // crt #include <iostream> #include <ctime> #include <cassert> using namespace std; // format time into a timestamp understood by a database (uses a static buffer) char* GenerateTimestamp(time_t nTimeInSecs); /************************...
#include "ScoreGenerator.hpp" #include <sstream> NoteType operator | (const NoteType& left, const NoteType& right) { return static_cast<NoteType>(static_cast<int>(left) | static_cast<int>(right)); } NoteType operator |= (NoteType& left, const NoteType& right) { return left = left | right; } NoteType opera...
#include "credentials.h" #include "texts.h" #include <Arduino.h> #include <WiFi.h> #include <iostream> #include <stdio.h> #include <string.h> #include <map> using namespace std; WiFiClient cl; IPAddress server; int port; std::map<byte, String> names; void setup() { Serial.begin(115200); WiFi.begin(); delay(20...
#include <BLassert.H> #include <BLPgas.H> #include <ParallelDescriptor.H> #include <BaseFab.H> //#include <unordered_map> #include <map> namespace { // typedef std::unordered_multimap< upcxx::rank_t, BLPgas::SendInfo > pgas_send_info_map_t; typedef std::multimap< upcxx::rank_t, BLPgas::SendInfo > pgas_send_info_...
// $Header: /nfs/slac/g/glast/ground/cvs/CalXtalResponse/src/CalRecon/CalXtalRecAlg.cxx,v 1.5 2011/12/12 20:38:44 heather Exp $ /** @file @author Z.Fewtrell */ // LOCAL INCLUDES #include "CalXtalRecAlg.h" #include "XtalRecTool.h" #include "../Xtalk/INeighborXtalkTool.h" #include "CalXtalResponse/IXtalRecTool.h" ...
/* Copyright (c) <2003-2019> <Newton Game Dynamics> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * including...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include "FileAccessManifestParser.hpp" // ----------------------------------------------------------------------------- // Note: UNIX_ROOT_SENTINEL must match UnixPat...
/*****************************************************************************\ Name: simple_frontend.cxx Author: <NAME> Email: <EMAIL> About: A simple example frontend that generates a random point. \*****************************************************************************/ //--- std includes ----...
// (C) Copyright 2016-2021 Xilinx, Inc. // All Rights Reserved. // // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to yo...
/* * author: jokhan * date: 2016.10.1 * function: main.cc */ #include <iostream> #include <vector> #include <map> #include <algorithm> using namespace std; class MagicCube { private: public: int len; vector<int> nums; void setLen( int len ); void printCube(); void initSmallerCube(); void inputNums()...
#include <iostream> #include <cmath> #include <vector> #include <random> #include <fftw3.h> #include <algorithm> #include <fstream> #include "cmdline.h" int LX = 128; int LY = 128; int N = LX * LY; int Q = 3; int T_LOOP = 1000; int O_LOOP = 10000; std::vector<int> spin(N), cluster(N), newspin(N); std::vector<double> s...
/** * @file * * @ingroup example_module * * @brief TCP acceptor (server) that receives binary text messages, converts * to upper case, then echos back to TCP connector (client). * * @author <NAME> * * Copyright (c) <NAME> * 2019-10-21 * * Distributed under the Boost Software License, Version ...
/** \file decision_tree_test.cpp \author <EMAIL> \copyright ABY - A Framework for Efficient Mixed-protocol Secure Two-party Computation Copyright (C) 2019 Engineering Cryptographic Protocols Group, TU Darmstadt This program is free software: you can redistribute it and/or modify it under th...
// Copyright (c) 2014 The Chromium Embedded Framework Authors. All rights // reserved. Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. #include "display_handler.h" #include "jni_util.h" namespace { int GetCursorId(cef_cursor_type_t type) { ScopedJNIEnv env; i...
/**************************************************************************\ * Copyright (c) <NAME> & Gas Technologies AS * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Redistribu...
// CppChainConstruction.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "MerkelTree.h" typedef struct BitBlock { char transaction[256]; char parent_hash[256]; char myHash[256]; SYSTEMTIME TimeStamp; BitBlock* pLastBlock; BitBlock* pNextBlock; }...
// Fill out your copyright notice in the Description page of Project Settings. #include "machines.h" #include "RTSCamera.h" #include "Core.h" // Initializes camera and sets required values. ARTSCamera::ARTSCamera(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer) { //Intialize The Camera Camer...
#include "debug.h" #include "tensor.h" #include <cstdarg> #include <cstdio> #include <cuda_runtime_api.h> #include <stdexcept> #include <sstream> #include <cstdlib> void INFO(const char *format, ...) { if (!LOG_INFO) // Don't print if logging info is disabled return; va_list args; va_start(args, format); p...
//===- LoopInfoTest.cpp - LoopInfo unit tests -----------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include <stdio.h> #include <math.h> #define E 2.7182818284590452353602874713527 // 三维点/向量 class Vector { public: // 三个分量 double x; double y; double z; // 重载向量运算+(C++) Vector operator+(const Vector another) { Vector vector; vector.x = x + another.x; vector.y = y + another.y; vector.z = z + a...
/* * Mouse.cpp * * Created on: Dec 3, 2013 * Author: cfyz */ #include "Common.hpp" #include <sstream> struct { int x, y, width, height; } double_click_area = {1, 11, 17, 4}; // FIXME: common rectangle struct void TestMouse() { TerminalSet( "window.title='Omni: mouse input'" ); TerminalSet( "input...
#include "DemoWeapons.hpp" DemoWeapons::DemoWeapons () { } DemoWeapons::~DemoWeapons () { } void DemoWeapons::Initialize () { // ============================================== // Weapon generation rules // ============================================== weapons.Rule("WEAPON")->Sym("UNNAMED_WEAPON...
// // Created by <NAME> on 04/09/16. // #include <iostream> #include <random> #include <fstream> #include <fastalign/Corpus.h> #include <fastalign/FastAligner.h> #include <boost/program_options.hpp> #include <boost/filesystem.hpp> #include <thread> #include <cmath> #ifdef _OPENMP #include <thread> #include <omp.h> #e...
// // TODO: // - [ ] Setup the camera to be prepare for streaming // - [ ] Upload the code // #include "esp_camera.h" #include <WiFi.h> // // WARNING!!! Make sure that you have either selected ESP32 Wrover Module, // or another board which has PSRAM enabled // // Select camera model //#define CAMERA_MODE...
#include <cstdio> #include <algorithm> #include <cstring> #include <iostream> const size_t Size = 1e5 + 5; typedef int Array[Size]; template<class T> T min(const T &a, const T &b) { return a < b? a : b; } template<class T> T max(const T &a, const T &b) { return a > b? a : b; } template<class T> bool chkmin...
// // created by <NAME> on 25/9/20. // #include <tuple> #include <algorithm> #include <iostream> #include "ModularArithmetic.h" #include "chrono" #include "random" using namespace std; //convert decimal number to binary string ModularArithmetic::decimalToBinary(long long decimal) { string result; while (deci...
#include "render_world.h" #include "object.h" #include <iostream> #include <unistd.h> #ifndef NO_OPENGL #ifndef __APPLE__ #include <GL/gl.h> #include <GL/glu.h> #include <GL/glut.h> #else #include <GLUT/glut.h> #include <OpenGL/gl.h> #include <OpenGL/glu.h> #endif #endif // Indicates that we are debugging one pixel; c...
#include "plotwidget.h" #include <QPainter> #include "mytablemodel.h" #include <QtMath> #include <QTimer> PlotWidget::PlotWidget(MyTableModel *table, QWidget *parent) :QWidget(parent) ,m_table(table) ,m_shift(0) ,m_angle(0.5) ,m_timer(new QTimer()) { connect(m_timer, SIGNAL(timeout()), ...
// license:BSD-3-Clause // copyright-holders:<NAME> /*************************************************************************** -= Power Instinct =- (C) 1993 Atlus driver by <NAME> (<EMAIL>) Note: if MAME_DEBUG is defined, pressing Z with: ...
#include <SDL.h> #include <SDL/SDL_ttf.h> #include "GLST_Text.h" void init_window(); void quit_window(); void window_resize(); void draw_scene(); using namespace std; #define SCREEN_BPP 16 int width; int height; bool done; int main(int argc, char *argv[]) { if ( SDL_Init( SDL_INIT_EVERYTHING ) < 0 ) { ...
/* -------------------------------------------------------------------------- * * OpenSim Moco: MocoParameter.cpp * * -------------------------------------------------------------------------- * * Copyright (c) 2017 Stanford University and the Authors * ...
#include "SimG4CMS/Calo/interface/CaloMeanResponse.h" #include "FWCore/Utilities/interface/Exception.h" #include "CLHEP/Units/GlobalSystemOfUnits.h" #include <iostream> #include <fstream> #include <iomanip> //#define DebugLog CaloMeanResponse::CaloMeanResponse(edm::ParameterSet const & p) { edm::ParameterSet m_p...
#include "Invisibility.h" #include <cstring> Invisibility::Invisibility() {} Invisibility::Invisibility(CVector3f pos, HeightMapTerrain* heightmap) { hm = heightmap; position = pos; position.y = hm->ReturnGroundHeight(pos) + 2.0f; // 'y' is adjusted so the mesh is rendered on the ground active = true; texture.Lo...
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2019-2020, Intel Corporation */ /* * concurrent_hash_map.cpp -- C++ documentation snippets. */ //! [concurrent_hash_map_example] #include <iostream> #include <libpmemobj++/container/concurrent_hash_map.hpp> #include <libpmemobj++/p.hpp> #include <libpmemobj++/pe...
/** * @file * @author <NAME> * @brief Implementation of src/graphics/imgload.hxx */ #include <GL/gl.h> #include <SDL.h> #include <SDL_image.h> #include <iostream> #include <cstdlib> #include <cstring> #include "imgload.hxx" #include "src/globals.hxx" using namespace std; static char loadImage_error[4096]; cons...
// Copyright 2018 Google LLC // // 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 ...
#include "mgen.hh" static Send parseSendRecord(Tok &field_tok); static Recv parseRecvRecord(Tok &field_tok); static datetime64ns parseTimestamp(char *timestamp); static void parseIPAndPort(char *ip_port, in_addr_t &ip, uint16_t &port); static void parseIP(char *ipstr, in_addr_t &ip); template<class T> std::vector<T>...
#include <Nvim/DataHolder.hpp> #include <cassert> #include <iostream> #include <algorithm> //swap_ranges nvim::DataHolder::DataHolder(int rows, int cols) : mPrintStyle(sf::Text::Style::Regular) , mPrimaryBackgroundColor(sf::Color::White) , mPrimaryForegroundColor(sf::Color::Black) , mBackgroundPrintC...
#include <iostream> #include "operators/operator.h" #include "util/ogr_source_util.h" #include "util/ogr_source_datasets.h" /** * Operator for loading vector datasets by name. Additionally the name of the requested layer has to be provided and * arrays of requested attribute names for textual and numeric attributes...
#include <iostream> #include <stdio.h> #include <pcl/io/pcd_io.h> #include <pcl/point_types.h> #include <pcl/common/common_headers.h> #include <pcl/visualization/pcl_visualizer.h> #include <pcl/kdtree/kdtree_flann.h> #include <pcl/console/parse.h> #include <algorithm> #include <functional> #include <math.h> #include <c...
#include "RobotWidget.hpp" #include <Constants.hpp> #include <Geometry2d/Util.hpp> #include <VisionDotPattern.hpp> #include <cmath> #include <stdexcept> RobotWidget::RobotWidget(QWidget* /*parent*/, Qt::WindowFlags /*f*/) { for (int i = 0; i < 4; i++) { setWheelFault(i, false); } setBallSenseFault...
/* * Copyright 2022 <NAME> */ #include "a_star.hpp" void AStar::setOccupancyGrid(nav_msgs::OccupancyGrid const &occupancy_grid) { m_occupancy_grid = occupancy_grid; } void AStar::setBegin(geometry_msgs::Pose const &begin) { m_begin = begin; } void AStar::setEnd(geometry_msgs::Pose const &end) { m_end ...
/* * ofxWWSearchTerm.cpp * WailWall * * Created by <NAME> on 1/30/12. * Copyright 2012 __MyCompanyName__. All rights reserved. * */ #include "ofxWWSearchTerm.h" #include "ofxWWTweetParticleManager.h" #include "Colours.h" #include "mathutils.h" ofxWWSearchTerm::ofxWWSearchTerm(){ selectedTime = -1000; isH...
//bcw0x1bd2 {{{ #include<bits/stdc++.h> using namespace std; #define FZ(n) memset((n),0,sizeof(n)) #define FMO(n) memset((n),-1,sizeof(n)) #define F first #define S second #define MP make_pair #define PB push_back #define IOS ios_base::sync_with_stdio(0); cin.tie(0); #define SZ(x) ((int)((x).size())) #define ALL(x) beg...
#include "Misc.h" #include <cstdlib> #include <boost/algorithm/string.hpp> #include <boost/archive/iterators/base64_from_binary.hpp> #include <boost/archive/iterators/binary_from_base64.hpp> #include <boost/archive/iterators/insert_linebreaks.hpp> #include <boost/archive/iterators/transform_width.hpp> #include <...
#include <algorithm> #include <cerrno> #include <exception> #include <fstream> #include <iostream> #include <iterator> #include <memory> #include <queue> #include <random> #include <stdexcept> #include <string> #include <string_view> #include <system_error> #include <utility> #include <vector> #include "constmemoryma...
#include "RangeList.h" #include <stdlib.h> #include <climits> #include "FileIO.h" void RangeCollection::obtainRange(const int index, std::string* chrom, unsigned int* beg, unsigned int* end) const { unsigned int t = index; unsigned int s; for(unsigned int i = 0; i < this->chrVector.size(); i++ ) { const std...
/*----------------------------------------------------------------------------*/ /* */ /* Module: main.cpp */ /* Author: james ...
/* * MIT License * * Copyright (c) 2021 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, m...
// $Id: server.cpp 84563 2009-02-23 08:13:54Z johnnyw $ #include "testS.h" #include "ace/Get_Opt.h" #include "ace/OS_NS_stdio.h" #include "tao/RTCORBA/RTCORBA.h" #include "tao/RTPortableServer/RTPortableServer.h" #include "tao/RTCORBA/Network_Priority_Mapping_Manager.h" #include "tao/RTCORBA/Network_Priority_Mapping.h...
#include "HeapSort.h" // To heapify a subtree rooted with node i which is // an index in rods[]. n is size of heap void HeapSort::heapify(sf::RenderWindow &window, int n, int i, float delay) { checkEvents(window); if (backButtonPressed) return; int largest = i; // Initialize largest as root int l = 2 * i + 1; ...
/* Copyright (c) 2003-2007 <NAME> <<EMAIL>> Modified by <NAME> <<EMAIL>> Copyright (c) 2015-2018 All rights reserved. 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 cod...
#include <SDL2/SDL.h> #include "../sprite.h" #include <iostream> #include <sstream> #include <vector> #include <cstdlib> #include <ctime> SDL_Window* wind; const int windX = 880; const int windY = 620; const int SDL_WU = SDL_WINDOWPOS_UNDEFINED; using namespace std; int main(int argc, char ** argv) { srand(time(N...
#include "point.hpp" #include "limiters.hpp" inline void update_qtildes(double qtilde[4], double* q, double* dq1, double* dq2, double delta_x, double delta_y, int index); inline void update_qtildes(double qtilde[4], double* q, double* dq1, double* dq2, double delta_x, double delta_y, double phi[4], int index); templa...
/* The following file will cover 1)Console input output 2)functions 3)Datatypes of variables 4)if else 5)constional operator 6] Some information about linking and compiling */ // When ever a cpp file is compiled, a translational unit is generated, one can use the compiler settings // to generate a binary out...
#include "BaseGRpcClient.h" #include "BaseGrpcChannel.h" #include <iostream> #include <grpcpp/grpcpp.h> #include "MessageToClass.h" #include "ClassToMessage.h" #include "Utils.h" #include <thread> #include <memory> using grpc::Channel; using grpc::ClientContext; using grpc::Status; BaseGRpcClient::BaseGRpcClient(RpcU...
/*----------------------------------------------------------------------------- | Copyright (c) 2013-2019, Nucleic Development Team. | | Distributed under the terms of the Modified BSD License. | | The full license is in the file LICENSE, distributed with this software. |------------------------------------------------...
/*************************************************************************** * Name: gSatTEME.cpp * * Description: gSatTEME class implementation. * This class abstract all the SGP4 complexity. It uses the * David. A. Vallado code for SGP4 Calculation. * * Reference: * Revi...
#include "narf/font.h" #include "narf/console.h" #include "narf/embed.h" #include "narf/file.h" #include "narf/utf.h" #include "narf/util/paths.h" #include <cmath> // Need floor or something narf::font::Font::Font() : font_(nullptr) { atlas_ = new TextureAtlas(512, 512, 1); } narf::font::Font::~Font() { if (font_...
/* Copyright (c) 2002-2010 Tampere University. This file is part of TTA-Based Codesign Environment (TCE). 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, ...
#include <cmath> #include <stdexcept> #include <string> #include <vector> #ifdef DEBUG #include <sstream> #endif #include "GaussianSolver.hxx" #include "Matrix.hxx" #include "Utilities.hxx" using namespace std; GaussianSolver::GaussianSolver(){ Tracer _t_(__PRETTY_FUNCTION__); } GaussianSolver::GaussianSolv...
/* * Copyright (c) 2013 Politecnico di Milano * 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 conditi...
// Copyright 2016 Intermodalics All Rights Reserved. // // 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 applica...
// // LinearAxis.cpp // viewer // // Created by <NAME> on 1/7/13. // Copyright (c) 2013 UniTN. All rights reserved. // #include "LinearAxis.h" #include <stdio.h> #pragma mark - #pragma mark METHODS LinearAxis::LinearAxis(string s) { name = s; length = 500.0; width = 100.0; height = 50.0; cursor_height...
#include "stdafx.h" #include <iostream> #include <vector> #include <iomanip> #include <windows.h> #include "Classes/Robot.h" #include "Classes/Game.h" #include "Classes/FieldDraw.h" #include "Classes/TimeThread.h" #include "Classes/NeuralNetwork.h" #include "Classes/ExternalCommunication.h" extern "C" { #in...
/* constructor / assignment */ #include <hk_math/spatial_matrix.h> hk_Spatial_Vector::hk_Spatial_Vector() { } hk_Spatial_Vector::hk_Spatial_Vector(hk_real a, hk_real b, hk_real c, hk_real d, hk_real e, hk_real f) : top(a, b, c), bottom(d, e, f) { } hk_Spatial_Vector::hk_Spatial_Vector(hk_Vector3 &a, hk_Vec...
#include <stdio.h> #include <stdlib.h> #include <getopt.h> #include <algorithm> #include "sequence.hpp" #include "bioparser/bioparser.hpp" static const char* version = "v0.7.0"; static struct option options[] = { {"reference", required_argument, 0, 'r'}, {"reference-length", required_argument, 0, 'l'}, ...
// FtaTreeCache.cpp #include "FtaTreeCache.h" #include "FtaPerson.h" #include "FtaFrame.h" #include "FtaClient.h" #include "FtaApp.h" #include "FtaPedigreeRequest.h" #include "FtaPersonDetailsRequest.h" #include "FtaPersonPortraitRequest.h" #include "FtaPersonOrdinancesRequest.h" FtaTreeCache::FtaTreeCache( void ) { ...
#include "DIP/Relationships.h" #include "DIP/Car/Car.h" #include "DIP/Car/Engine.h" #include "DIP/Logger/ConsoleLogger.h" #include "DIP/Reporting/Reporting.h" #include "ISP/Fax.h" #include "ISP/Machine.h" #include "ISP/Printer.h" #include "ISP/Scanner.h" #include "LSP/Rectangle.h" #include "OCP/Filter.h" #include "OCP/...
#include "AvionView.h" #include <math.h> using namespace std; void AvionView::ametralladora(){ string filename = "ametralladora.bmp"; } void AvionView::desconectar(){ string filename = "AvionSprites_gris.bmp"; if (!cargarImagenDelAvion(filename)) { cout << "Vista del avion no ha sido cargada correctamente.." ...
// Store Report -- Template for such a report #include "stdafx.h" #include "StoreRpt.h" #include "CScrView.h" #include "Store.h" static const int PhoneTab = 11; static const int FCCtab = 8; void StoreRpt::print(CScrView& vw) { printing = true; maxLines = vw.noLinesPrPg(); vw.disableWrap(printing); d...
/* <NAME> Princeton University <NAME> Katholieke Universiteit Leuven mesh_info.cc Query various information about meshes */ #include "TriMesh.h" #include "TriMesh_algo.h" #include <cstdio> #include <cstdlib> #include <cstring> #include <vector> using namespace std; using namespace trimesh; void usage(const char *m...
#include <algorithm> #include <fstream> #include "logger/Logger.h" #include "TiledAnimatedSpriteSheetData.h" #include "TiledTileLoader.h" #include "rapidjson/document.h" #include "rapidjson/istreamwrapper.h" // The key we use in the properties object to set an animation name #define ANIM_NAME_KEY "name" // The key...
/* * main.cpp * * Created on: Mar 9, 2016 * Author: vens */ #include <iostream> #include <fstream> #include <string.h> #include <sstream> #include <argp.h> #include "Simulator.h" #include "libmodule/Module.h" #include "libjson/json.h" #include "Debug.h" using namespace std; const char *argp_program_...
/* Copyright 2007, <NAME>. All Rights Reserved. This file may be used under the terms of the Be Sample Code License. */ //#define DEBUG 1 #include <stdlib.h> #include <string.h> #include <ctype.h> #include <Debug.h> #include <List.h> #include <Message.h> #include <OS.h> #include <Application.h> #include <Menu.h...
//此源码被清华学神尹成大魔王专业翻译分析并修改 //尹成QQ77025077 //尹成微信18510341407 //尹成所在QQ群721929980 //尹成邮箱 <EMAIL> //尹成毕业于清华大学,微软区块链领域全球最有价值专家 //https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 #include <eosiolib/eosio.hpp> #include <eosiolib/memory.hpp> #include "../test_api/test_api.hpp" //使用名称空间eosio; void verify( const void* cons...
#include"function.h" #include"Evaluate.h" #include"dirent.h" #include"memoryfunction.h" #define _CRT_SECURE_NO_WARNINGS /* This file implements the link prediction evaluation algorithm /*@author: linhong (<EMAIL>) */ ///----------------------------------------------------------------------// void exit_with_help(char *...
/* * Copyright (C) 2018 Open Source Robotics Foundation * * 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 appl...
/******************************************************************************* * Copyright (c) 2000, 2019 IBM Corp. and others * * This program and the accompanying materials are made available under * the terms of the Eclipse Public License 2.0 which accompanies this * distribution and is available at http://ec...
// Copyright (c) 2009-2018 The Bitcoin Core developers // Copyright (c) 2017 The Zcash developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <pubkey.h> #include "ecwrapper.h" //namespace //{ ///* Global secp256k1_...
#include "../include/translation.hpp" #include "../include/utils.hpp" // Função que inicializa a tabela de instruções (dicionário), com correspondência entre instruções do //assembly inventado e o assembly IA32 void Translation::createBackboneInstructions(){ instructions = { {"ADD", "add eax,[#1]"},...
/* * The Biomechanical ToolKit * Copyright (c) 2009-2014, <NAME> * 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 * ...
/* $Id: VBoxUsbHook.cpp $ */ /** @file * Driver Dispatch Table Hooking API */ /* * Copyright (C) 2011-2015 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redistribute it and/or modify it under ...
/* ==================================================================== * The Vovida Software License, Version 1.0 * * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following...
/* parse.cpp Created by <NAME> */ #include <iostream> #include <fstream> #include <string> #include <vector> #include <stack> #include <boost/regex.hpp> #include <stdlib.h> #include "parse.h" #include "path.h" #include "hlsm.h" std::stack<int> in_if; std::stack<bool> is_else; using namespace std; #define TEN_WORD_REGE...
#include "RakHook/rakhook.hpp" #include "RakHook/hook_shared.hpp" #include "RakNet/StringCompressor.h" #include "RakNet/PacketEnumerations.h" #include <iostream> hook_shared_t<void(*)()> game_loop_hook; using wndproc_t = LRESULT(CALLBACK *)(HWND, UINT, WPARAM, LPARAM); hook_shared_t<wndproc_t> wndproc_hook; templa...
#include "sense.h" #include "../tensorOps.h" #include "../threads.h" SenseOp::SenseOp(Cx4 const &maps, Output::Dimensions const &bigSize, Log &log) : maps_{maps} , log_{log} { size_[0] = maps_.dimension(0); size_[1] = bigSize[1]; size_[2] = maps_.dimension(1); size_[3] = maps_.dimension(2); size_[4] = ma...
/* * * Quick algorithms used to test image * against known dataset * */ #include "alg_quick.hpp" vector<Mat> blahEyes; Algorithm_Quick::Algorithm_Quick(vector<Mat> users) { if( !face_cascade.load(FACE_DETECT_XML) ) { printf("--(!)Error loading\n"); exit(-1); } if( !eyes_ca...
#include "BeamSearch.h" BeamSearch::BeamSearch(GeneralizedAssignemnt* GAPinstance, int & zz) : zub(zz) { //ctor GAP = GAPinstance; m = GAP->m; n = GAP->n; sol = GAP->sol; solbest = GAP->solbest; req = GAP->req; isVerbose = false; } BeamSearch::~BeamSearch() { //dtor } int Be...
#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <algorithm> #include <set> using namespace std; const char* month = "janfebmaraprmayjunjulaugsepoctnovdec"; const char* weekday = "sunmontuewedthufrisat"; int days[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; struct Comma...
// // Original Author: <NAME> // Created: Wed May 20 12:47:20 CEST 2009 // $Id: RiovTest.cc,v 1.10 2009/05/26 18:43:34 dpagano Exp $ // // #include <memory> #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/EDAnalyzer.h" #include "FWCore/Framework/interface/Event.h" #...