text
stringlengths
7
961k
// 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 you under the Apache License, Version 2.0 (the // "License"); you may...
#include "XMStormHelpers.h" namespace { __forceinline DirectX::XMMATRIX makeTransformImpl(const DirectX::XMVECTOR &trans, const DirectX::XMVECTOR &rot, const DirectX::XMVECTOR &scaling) { return DirectX::XMMatrixTranspose(DirectX::XMMatrixAffineTransformation( scaling, DirectX::FXMVECTOR{ 0.f, 0.f, 0.f, 1.f...
#include "common.h" #include <assert.h> #include <stdio.h> vector<int> datas; void read_data() { int num; while (cin >> num) { datas.push_back(num); } } void print_data() { cout << "length: " << datas.size() << endl; //for (auto d : datas) //{ // //cout << d << endl; //...
/** * @file deserialize.cpp * @brief Provide methods for deserialize instructions to xml and deserialization * * @author Tyler Marr * @date August 21, 2020 * @version TODO * @bug No known bugs * * @copyright Copyright (c) 2020, Southwest Research Institute * * @par License * Software License Agreement (Apac...
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: ListNode* deleteDuplicates(ListNode* head) { auto before = head; auto travel = head; while (travel){ ...
/* * SuitorMatcher.hpp * * Created on: 27.08.2019 * Authors: Michal Boron <michal.s.boron@gmail.com> * Eugenio Angriman <angrimae@hu-berlin.de> */ // networkit-format #ifndef NETWORKIT_MATCHING_SUITOR_MATCHER_HPP_ #define NETWORKIT_MATCHING_SUITOR_MATCHER_HPP_ #include <vector> #include <netw...
#include "Room.h" CRoom::CRoom() : _roomNumber(0) { memset(_sides, 0x00, sizeof(_sides)); } CRoom::CRoom(int roomNo) : _roomNumber(roomNo) { memset(_sides, 0x00, sizeof(_sides)); } CRoom::~CRoom() { } CMapSite* CRoom::GetSite(E_DIRECTION e_direction) const { return nullptr; } void CRoom::SetSide(E_DIRECTION e...
/*========================================================================= * * Copyright NumFOCUS * * 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.or...
/* * Copyright 2021 Lars Pastewka * * ### MIT license * * 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, me...
/*BEGIN_LEGAL Intel Open Source License Copyright (c) 2002-2016 Intel Corporation. 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 noti...
/* DeviceBaseClass.hpp * Implementation file for base class with boiler plate for OpenCL functions * Author: Andrew Larkin * December 5, 2017 */ #include "DeviceBaseClass.hpp" DeviceBaseClass::DeviceBaseClass(cl_context * contextPtr, cl_device_id * deviceIDs, cl_uint numDevices, cl_uint preferredDevice) { this->con...
#include "port_posix.h" #include <netdb.h> #include <pthread.h> #include <string.h> #include <sys/syscall.h> #include <unistd.h> namespace handy { namespace port { #ifdef OS_LINUX struct in_addr getHostByName(const std::string &host) { struct in_addr addr; char buf[1024]; struct hostent hent; struct ho...
#include "UnicodeHelper.h" #include "Interface/UnicodeSystemInterface.h" #include "Config/StdString.h" namespace Mengine { namespace Helper { ////////////////////////////////////////////////////////////////////////// bool unicodeToUtf8Size( const WChar * _unicode, size_t _unicodeSize, String ...
// Authors: Nathan Carlson // Copyright 2015, DigiPen Institute of Technology #pragma once namespace Zero { void SetPixelData(byte* data, uint index, Vec4 value, TextureFormat::Enum format); void ReadPixelData(byte* data, uint index, Vec4& value, TextureFormat::Enum format); void SetPixelDataByte(byte* data, uint i...
/* * H.265 video codec. * Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de> * * This file is part of libde265. * * libde265 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 vers...
// ReactivePlusPlus library // // Copyright Aleksey Loginov 2022 - present. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // https://www.boost.org/LICENSE_1_0.txt) // // Project home: https://github.com/vi...
#include <iostream> #include <fstream> #include <string> #include <memory> #include <climits> #include <algorithm> #include <gtest/gtest.h> #include <sep/models.hpp> #include <xml/adapter.hpp> #include <xml/xml_validator.hpp> #include "global.hpp" class TestFlowReservationRequestXML : public ::testing::Test { protect...
#include "System.Private.CoreLib.h" #include <cstring> using namespace natsu; using namespace System_Private_CoreLib; using namespace System_Private_CoreLib::System; using namespace System_Private_CoreLib::System::Runtime::CompilerServices; void Buffer::_s_BlockCopy(gc_obj_ref<Array> src, int32_t srcOffset, gc_obj_re...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" #include "extern/beatsaber-hook/shared/utils/byref.hpp" // Including type: PS4LevelProductsModel...
// Copyright Epic Games, Inc. All Rights Reserved. #include "GameplayEffectAggregatorLibrary.h" #include "UObject/UObjectHash.h" #include "UObject/UObjectIterator.h" #include "AbilitySystemComponent.h" /** Custom functions. The idea here is that we may want to mix and match these (if FAggregatorEvaluateMetaData start...
// 2009-04-19 #include <iostream> #include <stdio.h> #include <algorithm> #include <cassert> #include <string.h> using namespace std; int fox(int a,int b) { int tot=0,n1=a,n2=b; while ((n1>2) && (n1>n2+1)) tot+=3,n1-=3; while ((n2>2) && (n2>n1+1)) tot+=3,n2-=3; return(tot+min(n1,n2)*2); } int main() { //...
#include <vector> #include <algorithm> #include <cmath> class Solution { public: std::vector<int> sortedSquares(std::vector<int> &nums) { std::vector<int> res(nums.size(), 0); int l = 0, r = nums.size() - 1; int k = nums.size() - 1; while (l <= r) { if (std:...
// Copyright (c) 2012-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "wallet/wallet.h" #include <set> #include <stdint.h> #include <utility> #include <vector> #include "consensus/vali...
#include<iostream> #include<cstring> #include<string> using namespace std; int dp[501][19]; bool sudah[501][19]; int i,panjang,banyak,jawab; string cari,s; int pencarian(int liat,int sampai) { if (sampai == 19) return 1; if (liat == panjang) return 0; if (sudah[liat][sampai]) return dp[liat][sampai]; sudah[liat...
#ifndef FSMPP2_STATES_HPP #define FSMPP2_STATES_HPP #include "fsmpp2/meta.hpp" #include "fsmpp2/handle_result.hpp" namespace fsmpp2 { /** * Base class for an event. **/ struct event {}; /** * Defines a set of events. This is used as a parameter to a state_machine. **/ template<class... E> using events = meta::t...
#include "math/CotColor32.h" #include "math/CotColor.h" namespace Cot { Color32::Color32() :r(0), g(0), b(0), a(255) { } Color32::Color32(const uchar red, const uchar green, const uchar blue, const uchar alpha) : r(red), g(green), b(blue), a(alpha) { } Color32::Color32(const uchar* arr) : r(arr[0]), g(ar...
// Copyright (c) 2006 Xiaogang Zhang // Copyright (c) 2006 John Maddock // Use, modification and distribution are subject to 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) // // History: // XZ wrote the original of this file ...
/* * MIT License * * Copyright (c) 2018 Denis Rozhkov <denis@rozhkoff.com> * * 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 right...
/* Copyright 2021 Enjin Pte. Ltd. * * 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...
/* * Copyright (C) 2019-2020 Intel Corporation * * 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 * notice, this list of conditions and...
// Copyright (c) 2014 BitPay Inc. // Copyright (c) 2014-2016 The bitmonkey Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <stdint.h> #include <vector> #include <string> #include <map> #include <cassert>...
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include <Atom/Feature/Utils/FrameCaptureBus.h> #include <Atom/RPI.Public/RenderPipeline.h> #inclu...
// Copyright (C) 2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "functional_test_utils/ov_tensor_utils.hpp" #include "ngraph_functions/builders.hpp" #include "shared_test_classes/base/ov_subgraph.hpp" #include "test_utils/cpu_test_utils.hpp" using namespace InferenceEngine; using namespace ...
#include "DOSSimulation.h" namespace SAPHRON { void DOSSimulation::Iterate() { _flatness = _hist->CalculateFlatness(); while(_flatness < GetTargetFlatness()) { _mmanager->ResetMoveAcceptances(); for(int i = 0; i < GetMovesPerIteration(); ++i) { // Get world 0. Multiple worlds not supported. a...
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
//Person.cpp #include <iostream> #include <string> #include "Person.h" using namespace std; Person::Person(const string& aName, int anAge){ name = aName; age = anAge; }
#include <boost/function_equal.hpp>
// Copyright (c) 2011-2013 The Bitcoin developers // Copyright (c) 2017 The PIVX developers // Copyright (c) 2018 The WORM developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "qvalidatedlineedit.h" #include ...
/*------------------------------------------------------------------------- This source file is a part of Whisperwind.(GameEngine + GamePlay + GameTools) For the latest info, see http://lisuyong.com Copyright (c) 2012 Suyong Li (79481268@qq.com) Permission is hereby granted, free of charge, to any person obtaining a ...
// Copyright 2019 The Chromium 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 "components/download/public/common/auto_resumption_handler.h" #include <memory> #include "base/bind.h" #include "base/callback.h" #include "bas...
/* * mechanism_reduction_lumping.cpp * * Created on: 28 Nov 2014 * Author: DetlevCM */ #include "../headers/Headers.hpp" void mechanism_picking( string filename, vector< string >& Species, vector< ThermodynamicData >& Thermodynamics, vector< SingleReactionData >& Reactions ) { // Input File via ...
/* * Copyright (C) 2003 Tommi Maekitalo * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * As a sp...
// // Copyright (c) 2016, Scientific Toolworks, Inc. // // This software is licensed under the MIT License. The LICENSE.md file // describes the conditions under which this software may be distributed. // // Author: Jason Haslam // #include "RemoteCallbacks.h" #include "cred/CredentialHelper.h" #include "git/...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/location/model/SearchForPositionResult.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aw...
#include <bits/stdc++.h> using namespace std; typedef struct { char name[20]; char password[20]; }Account; int replace_password(char *password, int len) { int flag = 0; for (int i = 0;i < len;++i) { if (password[i] == '1') { password[i] = '@'; flag = 1; ...
#pragma once #include "device_detector.hpp" namespace ccool { class CCoolDaemon { public: CCoolDaemon(const std::string& socket_path, bool daemonize); void run(const std::string& interface); private: std::string _socket_path; bool _daemonize; }; } // namespace ccool
#ifndef JPL_BITS_THREAD_POOL_IO_HPP #define JPL_BITS_THREAD_POOL_IO_HPP #include <chrono> namespace jpl::tp { using clock = ::std::chrono::steady_clock; void init_io(); void process_io(clock::duration timeout); void free_io(); } // namespace jpl::tp #ifdef JPL_HEADER_ONLY #ifndef JPL_THREAD_POOL_IO_IMPL #define J...
#include "FrameLib_Unary_Objects.h" #include "FrameLib_MaxClass.h" extern "C" int C74_EXPORT main(void) { FrameLib_MaxClass_Expand<FrameLib_Atan>::makeClass("fl.atan~"); }
/** * This file is part of ORB-SLAM2. * * Copyright (C) 2014-2016 Raúl Mur-Artal <raulmur at unizar dot es> (University of Zaragoza) * For more information see <https://github.com/raulmur/ORB_SLAM2> * * ORB-SLAM2 is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public Lice...
#include "askpassphrasedialog.h" #include "ui_askpassphrasedialog.h" #include "guiconstants.h" #include "walletmodel.h" #include <QMessageBox> #include <QPushButton> #include <QKeyEvent> extern bool fWalletUnlockStakingOnly; AskPassphraseDialog::AskPassphraseDialog(Mode mode, QWidget *parent) : QDialog(parent),...
#include<iostream> using namespace std; // recursion function... int factorial(int n){ if(n==0){ return 1; } return n*factorial(n-1); } // main function... int main(){ int n; cin>>n; cout<<factorial(n)<<endl; return 0; }
#ifndef CORELIB___NCBIDIAG__HPP #define CORELIB___NCBIDIAG__HPP /* $Id: ncbidiag.hpp 384668 2012-12-29 03:51:23Z rafanovi $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Informatio...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * astyle_main.cpp * * Copyright (C) 2006-2013 by Jim Pattee <jimp03@email.com> * Copyright (C) 1998-2002 by Tal Davidson * <http://www.gnu.org/licenses/lgpl-3.0.html> * * This file is a part of Artistic Style - an indentation ...
/**************************************************************************** Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, wo...
#include <pangolin/display/display.h> #include <pangolin/gl/glvbo.h> void sample() { pangolin::CreateWindowAndBind("Pango GL Triangle with VBO", 500, 500); // Create an OpenGL Buffer containing the vertices of a triangle pangolin::GlBuffer vbo(pangolin::GlArrayBuffer, std::vector<Eigen::Vector3f>{...
/********************* */ /*! \file simplification_mode.cpp ** \verbatim ** Original author: Morgan Deters ** Major contributors: none ** Minor contributors (to current version): none ** This file is part of the CVC4 project. ** Copyright (c) 2009-2014 New Y...
// Distributed under the MIT License. // See LICENSE.txt for details. #define CATCH_CONFIG_RUNNER #include "RunTests.hpp" #include "Framework/TestingFramework.hpp" #include <charm++.h> #include <cstddef> #include <exception> #include <limits> #include <memory> #include <string> #include "Framework/SetupLocalPython...
/* * CrossGoldSignal.cpp * * Created on: 2017年6月13日 * Author: fasiondog */ #include "../../../indicator/crt/KDATA.h" #include "CrossGoldSignal.h" namespace hku { CrossGoldSignal::CrossGoldSignal() : SignalBase("SG_CrossGold") { setParam<string>("kpart", "CLOSE"); } CrossGoldSignal::CrossGoldSignal(co...
#include <ros/ros.h> #include "PolarControlROS.h" int main(int _argc, char** _argv) { ros::init(_argc, _argv, "polar_control_ros"); PolarControlROS pc; ros::spin(); return 0; }
// Copyright (c) 2012 The Chromium 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 "chromeos/chromeos_test_utils.h" #include "base/file_util.h" #include "base/files/file_path.h" #include "base/path_service.h" namespace chr...
// Wild Magic Source Code // David Eberly // http://www.geometrictools.com // Copyright (c) 1998-2009 // // This library is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation; either version 2.1 of the Licen...
#include "traintask.h" TrainTask::TrainTask(const QString &name, TaskType type, int baseCount, double factor, int increment, double penalty) : QObject(nullptr), trainName(name), type(type), baseCount(baseCount), factor(factor), increment(increment), penalty(penalty), done(false) {} QString TrainTask::name() c...
//#include "AbstractCellBasedTestSuite.hpp" #include "ChemChasteFeAssemblerCommon.hpp" #include "ChemChasteVolumeAssembler.hpp" #include "ChemChasteSurfaceAssembler.hpp" #include <cxxtest/TestSuite.h> //#include <cxxtest/GlobalFixture.h> #include "CheckpointArchiveTypes.hpp" #include "SmartPointers.hpp" #include <...
/** * Copyright (c) 2017-present, Facebook, Inc. * All rights reserved. * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ //File: benchmark-ale.cpp //Author: Yuxin Wu <ppwwyyxxc@gmail.com> //g++ -O3 benchmark-ale.cc -std=c++11 `pkg-con...
/*************************************************************************/ /* bullet_physics_server.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
// Copyright (c) 2009-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "base58.h" #include "chain.h" #include "rpc/server.h" #include "init.h" #include "main.h" #include "script/script.h"...
/* By: facug91 From: https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2211 Name: Almost Shortest Path Number: 4210 Date: 14/10/2014 */ #include <bits/stdc++.h> #define MAX_INT 2147483647 #define MAX_LONG 9223372036854775807ll...
#include "zoom_node_setting_general_ctrl.h" ZoomNodeSettingGeneralCtrlWrap::ZoomNodeSettingGeneralCtrlWrap() { } ZoomNodeSettingGeneralCtrlWrap::~ZoomNodeSettingGeneralCtrlWrap() { } void ZoomNodeSettingGeneralCtrlWrap::EnableDualScreenMode(const v8::FunctionCallbackInfo<v8::Value>& args) { v8::Isolate* isolate =...
// Copyright 2017 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "xfa/fxfa/parser/cxfa_items.h" #include "fxjs/xfa/cjx_items.h" #incl...
//===-- CommandLine.cpp - Command line parser implementation --------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include "WinGameState.h" /** Constructs a game state for winning the game. @param game Pointer to game class. */ WinGameState::WinGameState(Game*const& game) :_winCountdown(WIN_COUNTDOWN_TIME), GameState(game) { } /** Initializes the game state. */ void WinGameState::init() { _gameObjects.insert(new TextObject(sf:...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2020 The Bitcoin Core developers // Copyright (c) 2021 The AFCO Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <primitives/transaction.h...
// Copyright (c) 2012 The Chromium 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 "ui/compositor/dip_util.h" #include "base/command_line.h" #include "cc/layers/layer.h" #include "ui/compositor/compositor.h" #include "ui/co...
// Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC // (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. // Government retains certain rights in this software. #ifndef OPBOX_OPBOXCOREUNCONFIGURED_HH #define OPBOX_OPBOXCOREUNCONFIGURED_HH #include "faodel-common/Common.hh"...
//------------------------------------------------------------------------------ /* This file is part of rippled: https://github.com/ripple/rippled Copyright (c) 2012, 2013 Ripple Labs Inc. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby ...
#include <fs/ConfigReader.hpp> #include <fs/JsonHelper.hpp> extern "C" { #include "esp_log.h" } namespace fs { template<typename ConsumerFc> void read(const rapidjson::Value::ConstObject parent, const char* name, ConsumerFc consumer) { using T = json::ArgType<ConsumerFc>; json::PropertyFin...
// Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar #pragma once #include <fwd-POI.hpp> #include <java/lang/fwd-POI.hpp> #include <java/util/fwd-POI.hpp> #include <java/util/function/fwd-POI.hpp> #include <java/util/stream/fwd-POI.hpp> #include <java/util/Collections_Unmo...
/* * Copyright (C) 2010 Apple Inc. 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 code must retain the above copyright * notice, this list of conditions a...
// Distributed under the MIT License. // See LICENSE.txt for details. #include "Framework/TestingFramework.hpp" #include <array> #include <cstddef> #include <optional> #include <unordered_map> #include <unordered_set> #include <vector> #include "DataStructures/DataBox/DataBox.hpp" // IWYU pragma: keep #include "Dat...
// Copyright 2018 Chia Network 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 in wr...
#include "SolidDataFacePickingObserver.h" #include "SolidData.h" #include <mitkInteractionPositionEvent.h> #include <mitkBaseRenderer.h> #include <mitkRenderingManager.h> #include <mitkVtkPropRenderer.h> #include <mitkVtkScalarModeProperty.h> #include <vtkAbstractMapper.h> #include <vtkCellPicker.h> #include <vtkCel...
#include "components/animation_controller.hpp" #include "log.h" using namespace engine; bool AnimationControllerComponent::init() { INFO("Init AnimationControllerComponent"); for(auto id_animation: m_animations_map) { if (current_animation != id_animation.first) id_animation.second->disab...
#include <iostream> using namespace std; void main() { cout << "Hola Mundo!!"; cout << "C++"; cout << "Happy HackOctoberFest!!"; return 0; }
/* Copyright (c) 2014 Jarryd Beck 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, merge, publish, distribute, su...
#include "HOI4World/Ideologies/IdeologyItems.h" #include "gtest/gtest.h" #include <sstream> TEST(HoI4World_Ideologies_IdeologyItemsTests, ItemsDefaultsToEmpty) { std::stringstream input; HoI4::IdeologyItems ideologyItems(input); ASSERT_TRUE(ideologyItems.takeItems().empty()); } TEST(HoI4World_Ideologies_Ideolo...
#include "ConnectedServer.hh" #include "DisconnectedServer.hh" #include "RA_Defs.h" #include "RA_md5factory.h" #include "data\context\UserContext.hh" #include "services\Http.hh" #include "services\IFileSystem.hh" #include "services\IHttpRequester.hh" #include "services\ILocalStorage.hh" #include "services\ServiceLo...
#include <fstream> #include <stdio.h> #include <stdlib.h> #include <vector> #include <string> #include <sstream> #include <cstring> #include "Input.h" #include "common_c.h" #include <FCMangle.h> #define BC_setVars FortranCInterface_MODULE_(blowercontrol, bc_setvars, BLOWERCONTROL, BC_SETVARS) using namespace std; /...
/*++ Copyright (c) Microsoft Corporation. All rights reserved. Module Name: Main.cpp Abstract: Implements the startup code and message pump for the main application. Notes: ANSI only - must run on Win9x. History: 01/30/01 rparsons Created 01/10/02 rparsons Revised ...
/* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 ...
/* * Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include <AzToolsFramework/ComponentModes/BoxViewportEdit.h> #include <AzToolsFramework/Manipulators...
/* Copyright (c) 2017 Michael Ammann * * 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...
#pragma once #include <dpay/protocol/types.hpp> #include <dpay/plugins/block_data_export/exportable_block_data.hpp> #include <dpay/plugins/rc/resource_count.hpp> #include <fc/int_array.hpp> #include <vector> namespace dpay { namespace plugins { namespace rc { using dpay::plugins::block_data_export::exportable_blo...
#include "error_libuv.h" #include <string> #include <uv.h> namespace nodeoze { namespace libuv { class category : public std::error_category { public: virtual const char* name() const noexcept override { return "libuv"; } virtual std::string message( int value ) const override { return uv_s...
#pragma once #include "hardware/i2c.h" #include "hardware/gpio.h" #include "common/pimoroni_common.hpp" #include "common/pimoroni_i2c.hpp" namespace pimoroni { class IOExpander { //-------------------------------------------------- // Constants //-------------------------------------------------- pri...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2015-2017 The ALQO developers // Copyright (C) 2019 The ICC developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING...
/* * If not stated otherwise in this file or this component's LICENSE file the * following copyright and licenses apply: * * Copyright 2020 Metrological * * 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 ...
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
#include "all.h" //#include "printutils.h" //#include <stdio.h> void PrintHexDump(DWORD length, PBYTE buffer) { DWORD i,count,index; CHAR rgbDigits[]="0123456789abcdef"; CHAR rgbLine[100]; char cbLine; for(index = 0; length; length -= count, buffer += count, index += count) { ...
#include<iostream> #include<bits/stdc++.h> using namespace std; #define si(a) scanf("%d",&a) #define sl(a) scanf("%lld",&a) #define Max 2010 #define ll long long int char str[Max]; int arr[Max]; int test,n,m; stack<int> stk; int histoSolve() { int maxArea=0, curInd=0; int i=0; for(;i<m;i++...
#include <AggregateGUIElement.h> #include <ScrollBar.h> #include <mathUtils.h> #include <AggregateSkinExtension.h> #include <timing.h> #include <IVideoDriver.h> #include <IGUIEnvironment.h> #include <IGUISkin.h> #include <cstdint> #include <iostream> #define ACTIVATE_CLICK_THRESHOLD 0.01 using namespace irr; using...