text
stringlengths
3.08k
12.5k
#include <iostream> #include <stdio.h> #include <stdint.h> #include <string.h> #ifdef _MSC_VER #include <intrin.h> /* for rdtscp and clflush */ #pragma optimize("gt", on) #else #include <x86intrin.h> /* for rdtscp and clflush */ #endif /* sscanf_s only works in MSVC. sscanf should work with other compilers*/ #ifndef ...
#include "level_layer.h" #include <iostream> void LevelLayer::Load(){ std::cout << "Level Loaded" << std::endl; Atlas = { "Water", "Water", "Water", "Water", "Water" , "Water", "Water", "Water", "Water", "Water" , "Water", "Water", "Map", "Water", "Water" , "Water", "Water"...
/* Lightweight Automated Planning Toolkit Copyright (C) 2012 <NAME> <<EMAIL>> <NAME> <<EMAIL>> 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 3 of the License, or (at your option) any...
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab: * * Gearmand client and server library. * * Copyright (C) 2011 Data Differential, http://datadifferential.com/ * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the fo...
/************************************************************ MPU9250_Basic Basic example sketch for MPU-9250 DMP Arduino Library <NAME> @ SparkFun Electronics original creation date: November 23, 2016 https://github.com/sparkfun/SparkFun_MPU9250_DMP_Arduino_Library This example sketch demonstrates how to initialize...
/* * Copyright (c) 2020, NVIDIA CORPORATION. * * 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 ...
#include <Players/Players.h> #include "MyUnit.h" #include "UnitUtil.h" #include "Units.h" #include "Geo.h" #include "DebugFlag_UnitOrders.h" MyUnitImpl::MyUnitImpl(BWAPI::Unit unit) : UnitImpl(unit) , producer(nullptr) , energy(unit->getEnergy()) , lastCastFrame(-1) , issuedOr...
/* Hugo ESP8266 Plus by <NAME> 2020 https://github.com/haydendonald/Hugo-ESP8266-Plus This project is forked from Hugo ESP8266 by NiceThings (<NAME>) https://github.com/mcer12/Hugo-ESP8266 It uses the Hugo 4 button wifi remote which can be purchased from https://www.tindie.com/products/nicethings/hugo-esp8266-4-button...
/*MineNotif v0.1 * * Developed by Wistaro * * This sofware will listen the chat of Minecraft and send desktop notifications in case of mentions or PM. * * Help and feedback on my Discord: Wistaro#9308 */ #include <iostream> #include <algorithm> #include <fstream> #include <string.h> #include <windows.h> #i...
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // // File: typehash.cpp // #include "common.h" #include "excep.h" #include "typehash.h" #include "wsperf.h" // ============================================================================ // Constructed type ha...
#include "Statistical_Model_Segmentation/model_nucleus_seg.h" template <typename T> typename T::Pointer readImage(const char *filename) { printf("Reading %s ... ",filename); typedef typename itk::ImageFileReader<T> ReaderType; typename ReaderType::Pointer reader = ReaderType::New(); ReaderType::GlobalWarningD...
#include "platforms/window_events.h" std::string ToString(Key value) { switch (value) { case Key::F1: return "F1"; case Key::F2: return "F2"; case Key::F3: return "F3"; case Key::F4: return "F4"; case Key::F5: return "F5"; case Key::F6: return "F6"; case Key...
#include "Situation.h" #include "PredicateVehicle.h" #include <string> #include "Transition.h" #include <iostream> #include <algorithm> #include <sstream> using std::unique_ptr; using std::make_unique; using std::shared_ptr; using std::make_shared; using std::move; Situation::Situation(std::shared_ptr<PredicateVehicl...
/* * Copyright (c) 2016, <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 copyright * notice, this list of conditions ...
// SPDX-FileCopyrightText: (c) 2021 <NAME> <<EMAIL>> // SPDX-License-Identifier: MIT // main.cpp is a testing playground for this library. // This file is part of the QNEthernet library. // NOTE: The server and client code in this program should not be used as an // example of how to structure your own code. It...
/** * Project: Asteroids * * Purpose: Simulate Asteroids, an arcade space shooter realeased in 1979 by Atar * * @author <NAME> * @version 1.0 19/09/18 */ #include "includes.hpp" #include "asteroid.hpp" #include "ship.hpp" #include "shot.hpp" /* Functions Declarations */ void drawScene( void ); void idl...
/* * * pin_cpump (pin2) * | * ------- * ------- Ccharge * | * |- pin_cmoist (pin0) * | * ----- * Cmoist */ #include <util/delay.h> #include "humidity_sensor.h" #include "pins.h" #include "uart.h" #define _NOP() do { __asm__ __volatile__ ("nop"); } while (0) HUMI...
#include "odrive/odrive.hpp" #include "../../../constants_odrive.hpp" #include <iostream> #define AXIS_STATE_IDLE 1 #define AXIS_STATE_STARTUP_SEQUENCE 2 #define AXIS_STATE_FULL_CALIBRATION_SEQUENCE 3 #define AXIS_STATE_MOTOR_CALIBRATION 4 #define AXIS_STATE_ENCODER_OFFSET_CALIBRATION 7 #define AXIS_STATE_CLOSED_LOOP_...
/////////////////////////////////////////////////////////////////////////// // // // AliFemtoCorrFctn3DSpherical: a class to calculate 3D correlation // // for pairs of identical particles, binned in spherical coordinates. // // In analysis t...
#include <algorithm> #include <cstdint> #include <iostream> #include <iterator> #include <set> #include <vector> struct Point { int64_t x_; int64_t y_; }; bool operator<(const Point& lhs, const Point& rhs) { return lhs.x_ < rhs.x_; } std::ostream& operator<<(std::ostream& out, const Point& poin...
/* * Copyright (C) 2013 <NAME> <<EMAIL>> * * 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 ...
// #include <bits/stdc++.h> using namespace std; const int MAXN = 100; long long gcd(const long long& a, const long long& b){ if (!a) { return 1; } long long x = abs(a), y = abs(b); while (y) { x %= y; swap(x, y); } if (b / abs(b) > 0) { return x; } return -x; } long long lcm(const long long& a, cons...
#include "Player.h" #include "defines.h" #include "SFML/Graphics.hpp" #include "Entity.h" #include "Camera.h" #include "World/World.h" #include "Application.h" #include "Utils/ToggleKey.h" #include "Utils/UtilityFunctions.h" #include "Renderer/MasterRenderer.h" #include <sstream> Player::Player(W...
/* Copyright 2020 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
#include "std.h" #include "nodes.h" ////////////////////////////////// // Common get/set for variables // ////////////////////////////////// TNode* VarNode::load(Codegen* g) { TNode* t = translate(g); if(sem_type == Type::string_type) return call("__bbStrLoad", t); return mem(t); } TNode* VarNode::store(Codegen* ...
/*********************************************************************/ /* Copyright (c) 2011-2012, The University of Texas at Austin. */ /* Copyright (c) 2013-2018, EPFL/Blue Brain Project */ /* <EMAIL> */ /* <EMAIL> ...
// // BRBIP39Mnemonic.c // // Created by <NAME> on 9/7/15. // Copyright (c) 2015 breadwallet LLC // // 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...
/* * Wiegand.cpp * * Created on: Jul 7, 2013 * Author: <NAME> <<EMAIL>> */ //#include <avr/interrupt.h> #include "Wiegand.h" volatile unsigned int Wiegand::_bitCount; // number of bits captured so far volatile bool Wiegand::_flagDone; // false indicates data is being read volatile unsigned long Wiega...
#include "aom-av1.h" #include "rtp-payload.h" #include "rtp-profile.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> enum { OBU_SEQUENCE_HEADER = 1, OBU_TEMPORAL_DELIMITER = 2, OBU_FRAME = 6, }; struct av1_rtp_test_t { struct aom_av1_t av1; void* encoder; void* decoder; uint32...
/** * The MIT License (MIT) * * Copyright (c) 2014 UVC Ingenieure http://uvc.de/ * Author: <NAME> <<EMAIL>> * * 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, incl...
#include <bits/stdc++.h> #define each(i, c) for (auto& i : c) #define unless(cond) if (!(cond)) using namespace std; typedef long long int lli; typedef unsigned long long ull; typedef complex<double> point; class TaroCards { public: long long getNumber(vector <int> first, vector <int> second, int K) { const...
#include <iostream> #include <opencv2/core/core.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/calib3d/calib3d.hpp> #include <chiasm.h> int ch_load_calibration(struct ch_device *device, const char *filename) { struct ch_calibration *calib = (struct ch_calibration *) ch_calloc(1, sizeof(str...
#include <iostream> #include <sstream> #include <derecho/conf/conf.hpp> #include <derecho/core/derecho.hpp> #include <derecho/mutils-serialization/SerializationSupport.hpp> #include <derecho/persistent/Persistent.hpp> using derecho::ExternalClientCaller; using std::cout; using std::endl; class TestObject: public de...
#include"Ingrediente.h" #include"Plato.h" #include"Cliente.h" #include<iostream> #include<string> #include<vector> using namespace std; void bodega(); void ventas(); void addi(); void addp(); void remp(); vector<Ingrediente> inv;//inventario vector<Cliente> clientes; vector<Plato> platos; int main(){ int resp; cout <...
#pragma once #include <thread> #include <future> #include <chrono> #include <string> #include <type_traits> #include <sys/wait.h> #include <sys/types.h> #include <glog/logging.h> #define SERVICE_INSTANCE_NAME "_SRV"s #define SERVICE(s) (!(strcmp(s, SERVICE_INSTANCE_NAME))) #define MONITOR(s) (!SERVICE(s)) #define ...
#include <iostream> #include <string> #include <vector> #include <map> #include <set> #include <cassert> #include "../shared/Point.h" #include "../shared/Split.h" using namespace std; typedef pair<int, int> IntPair; typedef vector<Point3> Scanner; // Transform a point by a tensor. Probably more a matrix than // a t...
// Copyright 2020 <NAME> #include "../../../modules/task_2/bakaeva_m_horizontal_scheme/gauss_horizontal_scheme.h" #include <mpi.h> #include <stddef.h> #include <math.h> #include <ctime> #include <random> void getSequentialGauss(const double* matrixGlobal, double* result, int size) { double* matrix = new double[si...
/* * Copyright 2019 Xilinx Inc. * * 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 i...
/* Copyright (C) 1996-1997 Id Software, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in th...
#include "SceneTestParallax.h" #include "../Mathlib.h" #include "../Camera.h" #include "../Mesh.h" #include "../Timer.h" #include "../Sky.h" #include "../Shader.h" #include "../TextureCubemap.h" #include "../Texture2D.h" #include "../FrameBufferObject.h" #include "../Inputs.h" #include "../ResourceManager.h" #includ...
#include "SavesManager.h" #include <QDebug> #include <QMessageBox> #include <QJsonObject> #include <QJsonDocument> #include <QFileInfo> #include <QFileDialog> #include <QDateTime> SavesManager::SavesManager(QObject *parent) : QObject(parent), savesFile_("./saves.json"), backuoDir_("./backup") {...
/////////////////////////////////////////////////////////////// // DMcToolsTest.cpp - Testing framework for parts of DMcTools that need testing // // Copyright 2008 by <NAME> #include "Util/Assert.h" #include <iostream> #include <string> extern bool BVHTest(int argc, char** argv); extern bool DiskReadTest(int argc, ...
#include "../include/stereoFrame.hpp" #include <iostream> #include <fstream> #include <string> #include <unistd.h> #include <functional> #include <opencv2/imgproc.hpp> #include <opencv2/calib3d.hpp> #include <opencv2/core.hpp> #include <opencv2/imgcodecs.hpp> #include <opencv2/highgui.hpp> #include "../include/camera...
/* // Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a // component of the Texas A&M University System. // All rights reserved. // The information and source code contained herein is the exclusive // property of TEES and may not be disclosed, examined or reproduced // in whole or in part withou...
//============================================================================== // Copyright 2019-2020 Kitware, Inc., Kitware SAS // Author: <NAME> (Kitware SAS) // Creation date: 2019-11-19 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the...
/* Copyright 2006 yopyop Copyright 2007 shash Copyright 2007-2012 DeSmuME team This file is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later versi...
/* ZynAddSubFX - a software synthesizer LFO.cpp - LFO implementation Copyright (C) 2002-2005 <NAME> Author: <NAME> This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. This ...
#pragma once #include "stdio.h" #include "data_types/candidates.hpp" #include <vector> #include <cmath> #include <algorithm> #define SPEED_OF_LIGHT 299792458.0 struct snr_less_than { bool operator()(const Candidate& x, const Candidate& y){ return (x.snr>y.snr); } }; class BaseDistiller { protected: std::ve...
#include <upcxx/diagnostic.hpp> #include <upcxx/segment_allocator.hpp> #include <algorithm> using upcxx::detail::segment_allocator; using std::size_t; using std::uintptr_t; using std::pair; namespace { pair<uintptr_t, uintptr_t> make_pair_uu(uintptr_t a, uintptr_t b) { return {a, b}; } template<typenam...
#include "stdafx.h" #include "TrafficManager.h" #include "DebugRenderer.h" #include "CarnageGame.h" #include "RenderView.h" #include "TimeManager.h" TrafficManager gTrafficManager; TrafficManager::TrafficManager() { } void TrafficManager::StartupTraffic() { std::chrono::milliseconds ms = std::c...
#include <kxmx_bluemchen.h> #include <q/fx/signal_conditioner.hpp> #include <q/pitch/pitch_detector.hpp> #include <string.h> #include <util/CpuLoadMeter.h> using namespace kxmx; using namespace daisy; namespace q = cycfi::q; using namespace q::literals; constexpr auto sps = 48000; Bluemchen bluemchen; CpuLoadMeter ...
#pragma once /** * Notice: donot use this file in a .hpp or .h */ #include "common/error_handling.hpp" #include "common/array_adapter.hpp" #include "common/ndb_util.hpp" #include "common/util.hpp" #include <chrono> static inline uint64_t localTS() { #if 0 std::chrono::time_point<std::chrono::system_clock> t = ...
#include <halberd/keyword.h> // halberd::util #include <halberd/util/string.h> // halberd::util::length #include <cstdint> // uint8_t #include <cstring> // std::strcmp, std::strlen namespace { namespace ns = halberd::lexer; // Values taken from RFC 3074 constexpr uint8_t table[] = { ...
#include "objects/Scene.h" #include "xQsite3D.h" Scene::Scene() : scene(nullptr) { } void Scene::loadFromFile(const string &filename, int importMode) { this->mode = importMode; blenderCorrectionMatrix = glm::rotate(blenderCorrectionMatrix, glm::pi<float>(), glm::vec3(0.0f, 0.0f, 1.0f)); blenderCorrection...
/*------------------------------------------------------------------------- * * orc_wrapper.cpp * An encapsulator for ORC file reader/write functions * * 2020, <NAME>. * * Contains functions that wrap Apache ORC library functions to be used * by ORC FDW. * * Copyright (c) 2020, Highgo Software Inc. * * I...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <limits.h> // for PATH_MAX #include <string.h> #define MIN(X,Y) ((X<Y)?X:Y) #define MAX(X,Y) ((X>Y)?X:Y) class Client { friend class ClientList; public: Client(unsigned long theId); unsigned long Id() {return id...
/************************************************************** * * 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 y...
//***************************************************************** // Copyright 2015 MIT Lincoln Laboratory // Project: SPAR // Authors: ni24039 // Description: Implementation of PublishScript // // Modifications: // Date Name Modification // ---- ---- ...
#include "stdafx.h" #include "WinSockFlume.h" WinSockFlume::WinSockFlume(bool safemode_option, std::string hostAddress_, std::string hostPort_) : safemode(safemode_option) , hostAddress(hostAddress_) , hostPort(hostPort_) , Winsocket(INVALID_SOCKET) { //open(); //Sleep(1); //close(); } WinSockFlume::~WinSockF...
#include "../../CK3toEU4/Source/CK3World/Religions/Faiths.h" #include "../../CK3toEU4/Source/Mappers/LocalizationMapper/LocalizationMapper.h" #include "../../CK3toEU4/Source/Mappers/ReligionDefinitionMapper/ReligionDefinitionMapper.h" #include "../../CK3toEU4/Source/Mappers/ReligionGroupScraper/ReligionGroupScraper.h" ...
/* * Vulkan Model loader using ASSIMP * * Copyright(C) 2016-2017 by <NAME> - www.saschawillems.de * * This code is licensed under the MIT license(MIT) (http://opensource.org/licenses/MIT) */ #pragma once #include <vector> #include <glm/glm.hpp> #include <vulkan/vulkan.hpp> #include "buffer.hpp" #include "context.hpp...
// // Created by research133 on 4/2/18. // #include "kdtree.h" KDTREE::KDTREE(double eps) { neighborhood = eps; } bool KDTREE::dimX(std::vector<double> val1, std::vector<double> val2){ return val1[0] < val2[0]; } bool KDTREE::dimY(std::vector<double> val1, std::vector<double> val2){ return val1[1] < va...
// MainFrm.cpp : implmentation of the CMainFrame class // ///////////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "resource.h" #include "aboutdlg.h" #include "mqc_clientView.h" #include "MainFrm.h" #include "ServerURLDlg.h" BOOL CMainFrame::PreTranslateMessage(MSG* ...
/** * @author <NAME> <<EMAIL>> * @date 2018-05 * @file main.cpp * * Under a copyleft. */ // @todo Change so that NUMBER of THREADS doesn't affect number of primes checked // instead make them distinct and divide the numbers by threads // it's hella confusing atm // @todo using std::cout for might not be that g...
/* * Copyright (c) 2019 <NAME> * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /** * @brief SMPL model * @details skinning */ #include <random> #if defined(_WIN32) // windows # define NOMINMAX // to remove min,max macro # include ...
// DSN6 map output // // FIXME I am not sure about the scaling here, need to re-examine #include <iotbx/error.h> #include <cctbx/uctbx.h> #include <scitbx/array_family/versa.h> #include <scitbx/array_family/accessors/c_grid.h> #include <scitbx/array_family/accessors/c_grid_padded_periodic.h> #include <iostream> #inc...
#include "Watchy_7_SEG.h" #include "config.h" const uint8_t BATTERY_BAR_HEIGHT = 4; const uint8_t DATE_TIME_X_0 = 15; const uint8_t DARK_TIME_Y_0 = 120; const uint8_t LIGHT_TIME_Y_0 = 110; const uint8_t DATE_X_0 = 137; const uint8_t DARK_DATE_Y_0 = 154; const uint8_t LIGHT_DATE_Y_0 = 144; const uint8_t SPLITTER_LE...
/* * OpenAL example * * Copyright(C) <NAME> <<EMAIL>> */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <stdint.h> #include <inttypes.h> #include <unistd.h> #include <stdbool.h> #include <AL/al.h> #include <AL/alc.h> //#ifdef LIBAUDIO //#include <audio/wave.h> //#define BAC...
#include <avatar_locomanipulation/models/robot_model.hpp> pinocchio::fcl::Quaternion3f makeQuat(double w, double x, double y, double z){ pinocchio::fcl::Quaternion3f q; q.w() = w; q.x() = x; q.y() = y; q.z() = z; return q; } int main(int argc, char ** argv){ //------------------------ Define the Valky...
#include "Graph.h" #include <algorithm> CGraph::CGraph() : m_iRows{ 0 }, m_iCols{ 0 }, m_pBegin{ nullptr }, m_pEnd{ nullptr }, m_pConnections{ nullptr } { } CGraph::CGraph( const CGraph & graph ) { *this = graph; } CGraph& CGraph::operator=( const CGraph & graph ) { m_iRows = graph.m_iRows; m_iCols = graph.m...
#include "daisysp.h" #include "daisy_pod.h" #define UINT32_MSB 0x80000000U #define MAX_LENGTH 32U using namespace daisy; using namespace daisysp; DaisyPod hardware; Oscillator osc; WhiteNoise noise; AdEnv kickVolEnv, kickPitchEnv, snareEnv; Metro tick; Parameter lengthParam; bool kickSeq[MAX_LENGTH]; b...
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the documentation of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** Commercial License Usage ** Licensees holding valid commerci...
//***************************************************************************** // Copyright 2017-2020 Intel Corporation // // 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://w...
/* Copyright (c) 2020 PaddlePaddle Authors. 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 applicable law or...
#include <stdlib.h> #include <stdio.h> #include "cudakernel/common/common.h" #include "common/init_lut.h" void InitializeInputLut( int& in_lut_size, int* in_lut, int flt_height, int flt_width, int in_height, int in_width, int pad_height, int pad_wi...
//===- ProvenanceAnalysis.cpp - ObjC ARC Optimization ---------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
// Copyright (c) 2019-2020 The Navcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "daoproposeanswer.h" DaoProposeAnswer::DaoProposeAnswer(QWidget *parent, CConsultation consultation, ValidatorFunc ...
#include "TopicReader.h" #include "XMLRPCServer.h" #include <string.h> #include "XMLRequest.h" #include "device_config.h" extern "C" { #include "ros.h" } TopicReader::TopicReader(const char* callerID, const char* topic, const char* md5sum, const char* msgType) { strcpy(this->topic, topic); strcpy(this->callerID,...
/* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with c...
//<NAME> //A program to simulate fights between nobles with an army of warriors #include <vector> #include <iostream> #include <string> using namespace std; class Warrior { public: Warrior(const string& warriorName, int warriorStrength) : name(warriorName), strength(warriorStrength) {} string getName() const { retu...
#include <CGnuPlotStyleXYErrorBars.h> #include <CGnuPlotPlot.h> #include <CGnuPlotGroup.h> #include <CGnuPlotErrorBarObject.h> #include <CGnuPlotErrorBarData.h> #include <CGnuPlotRenderer.h> CGnuPlotStyleXYErrorBars:: CGnuPlotStyleXYErrorBars() : CGnuPlotStyleBase(CGnuPlot::PlotStyle::XYERRORBARS) { } void CGnuPlotS...
/*----------------------------------------------------------------------------*/ /* Copyright (c) FIRST 2008-2017. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #include "base/task_annotations.h" #include "base/test/task_test_util.h" #include "bgp/bgp_factory.h" #include "bgp/bgp_log.h" #include "bgp/bgp_peer.h" #include "bgp/bgp_server.h" #include "bgp/l3vpn/inetvpn_route.h" #include "bgp/bgp_message_b...
#include <atcoder/maxflow> #include <atcoder/mincostflow> #include <numeric> #include <tuple> #include <vector> #include "../utils/random.hpp" #include <gtest/gtest.h> using namespace atcoder; using ll = long long; using ull = unsigned long long; TEST(MincostflowTest, Zero) { mcf_graph<int, int> g1; mcf_gra...
#include "client_program.h" #include "../shared.h" ClientProgram::ClientProgram(QWidget *parent) : QWidget(parent), ui(new Ui::ClientProgram), with_client(new QUdpSocket(this)), with_server(new QTcpSocket(this)), timeout_guard(new QTimer(this)), //TIMER 所有需要回复的UDP包,和TCP连接的建立 ...
#include "BoundingBox.h" #include "GraphicsUtil.h" //#include <src/util/util_base.h> //#include "../../util/util_base.h" using namespace utility; BoundingBox::BoundingBox(glm::vec3 s, glm::vec3 e, bool bMinMax) { //If not already separated by mins and maxs if (!bMinMax) { start = end = glm::vec3(0.0); for (in...
/* * Generic Options Support Header File * * Copyright (c) 2001 <NAME> <<EMAIL>> * * 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 copyright * notic...
/**************************************************************************** * Copyright (C) 2014 by <NAME> <EMAIL> * ****************************************************************************/ #include "guess.h" #include "../database/board.h" #include "../database/ecopositions.h" #incl...
/***************************************************************************** * CACTI 7.0 * SOFTWARE LICENSE AGREEMENT * Copyright 2015 Hewlett-Packard Development Company, L.P. * All Rights Reserved * * Redistribution and us...
//============================================================================ // Name : HomeWork.cpp // Author : <NAME> // Version : // Copyright : // Description : Hello World in C++, Ansi-style //============================================================================ #include <iostream> #inclu...
// Copyright (c) 2020 PaddlePaddle Authors. 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...
#include "TypeInference.h" extern ErrorHandler error_log; extern TypeManager type_manager; TypeInference::TypeInference(Project* ast): ast_(ast) { PROFILE(); } void TypeInference::start() { PROFILE(); analyze_project(ast_); } void TypeInference::analyze_project(Project* project) { PROFILE(); ...
/* Chapter 27, exercise 6: change the intrusive List example from 27.9 without changing function user interfaces; allocate Links in an array of links and have the members first, last, pre and suc be ints (indices into the array) */ /* By now I'm pretty sure that this wasn't supposed to be solved like this,...
#if defined(HAVE_CONFIG_H) #include "config.h" #endif #include "resip/stack/RequestLine.hxx" #include "resip/stack/UnknownParameter.hxx" #include "rutil/Data.hxx" #include "rutil/DnsUtil.hxx" #include "rutil/Logger.hxx" #include "rutil/ParseBuffer.hxx" //#include "rutil/WinLeakCheck.hxx" // not compatible with placem...
// Copyright 2019 The Fuchsia 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 "bad-handle.h" #include <lib/fdio/spawn.h> #include <lib/zx/event.h> #include <lib/zx/job.h> #include <lib/zx/process.h> #include <zircon/process...
/**************************************************************************** * MIT License * Copyright (c) 2018 <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 restric...
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /* Copyright 2018 Null Terminator // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and as...
/* * Copyright (C) 2016 Jolla Ltd. * Contact: <NAME> <<EMAIL>> * * You may use this file under the terms of BSD license as follows: * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of...
#include "glad/glad.h" #include "Shader.h" #include <GLFW/glfw3.h> #include <iostream> #include <glm.hpp> #include <gtc/matrix_transform.hpp> #include <gtc/type_ptr.hpp> const unsigned int SCR_WIDTH = 800; const unsigned int SCR_HEIGHT = 800; float trans[] = {0.f, 0.f, 0.f}; //SCREEN RESIZING void framebuffer_size_...
#include "fhiclcpp/types/detail/PrintAllowedConfiguration.h" #include "cetlib/container_algorithms.h" #include "cetlib/split_by_regex.h" #include "cetlib/trim.h" #include "fhiclcpp/detail/printing_helpers.h" #include "fhiclcpp/types/detail/AtomBase.h" #include "fhiclcpp/types/detail/ParameterBase.h" #include "fhiclcpp/...