text
stringlengths
5
1.04M
//========================================================================= // Copyright (C) 2012 The Elastos Open Source Project // // 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 // // ...
#ifndef SAGA_PACKAGES_CPR_CPRJOB_HPP #define SAGA_PACKAGES_CPR_CPRJOB_HPP #if defined(__WAVE__) && defined(SAGA_CREATE_PREPROCESSED_FILES) #pragma wave option(preserve: 2, line: 1, output: "preprocessed/cpr_job.hpp") #endif // Copyright (c) 2005-2009 Hartmut Kaiser // Copyright (c) 2007 Ole Weidner (oweidner@cct.lsu...
/* * * Copyright (c) 2021 Project CHIP Authors * * 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 requir...
// Copyright (c) 2015-2017 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 <vector> #include <prevector.h> #include <reverse_iterator.h> #include <serialize.h> #include <streams.h> #include...
/* * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
/// @ref core /// @file glm/ext/matrix_double4x2_precision.hpp #pragma once #include "../detail/type_mat4x2.hpp" namespace glm { /// @addtogroup core_matrix_precision /// @{ /// 4 columns of 2 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs. /// /// @s...
// Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com) // This file is part of the "Nazara Engine - Graphics module" // For conditions of distribution and use, see copyright notice in Config.hpp #pragma once #ifndef NAZARA_GRAPHICS_RENDERSPRITECHAIN_HPP #define NAZARA_GRAPHICS_RENDERSPRITECHAIN_HPP #incl...
// (C) Copyright David Abrahams 2004. // (C) Copyright Jonathan Turkanis 2005. // 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.) // See http://www.boost.org/libs/iostreams for documentation. #ifndef BOOST_IOSTREAMS...
// https://leetcode.com/problems/first-missing-positive/ #include <iostream> using namespace std; int firstMissingPositive(int arr[], int n) { int i = 0; while (i < n) { int correct = arr[i] - 1; if (arr[i] > 0 && arr[i] <= n && arr[i] != arr[correct]) { swap(arr[i], arr[...
/********************************************************************** Audacity: A Digital Audio Editor ImportFFmpeg.cpp Copyright 2008 LRN Based on ImportFLAC.cpp by Sami Liedes and transcode_sample.c by ANYwebcam Pty Ltd Licensed under the GNU General Public License v2 or later *//******************************...
// Copyright (c) 2011-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "optionsdialog.h" #include "ui_optionsdialog.h" #include "bitcoinunits.h" #include "monitoreddatamapper.h" #include ...
// Copyright (C) 2020 Jérôme Leclercq // This file is part of the "Burgwar" project // For conditions of distribution and use, see copyright notice in LICENSE #pragma once #ifndef BURGWAR_CORELIB_PLAYERCOMMANDSTORE_HPP #define BURGWAR_CORELIB_PLAYERCOMMANDSTORE_HPP #include <CoreLib/CommandStore.hpp> #include <CoreL...
/* * Copyright (c) 2013-2014 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) */ #ifndef INCLUDED_LIBRARY_BRIDGE_HPP #define INCLUDED_LIBRARY_BRIDGE_HPP #include <cstdint> #include <boost/assign.hp...
//================================================================================================= /*! // \file src/mathtest/dmatdmatmin/MDbMHb.cpp // \brief Source file for the MDbMHb dense matrix/dense matrix minimum math test // // Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved // // This file is...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | +---------...
// // Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2021 // // 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) // #include "td/net/HttpConnectionBase.h" #include "td/net/Http...
//===----------------------------------------------------------------------===// // DuckDB // // duckdb/function/cast_rules.hpp // // //===----------------------------------------------------------------------===// #pragma once #include "duckdb/common/types.hpp" namespace duckdb { //! Contain...
// Copyright (c) 2007-2015 Hartmut Kaiser // Copyright (c) 2014 Grant Mercer // // 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) #if !defined(HPX_PARALLEL_COUNT_JUN_28_2014_0827AM) #define HPX_PARALLEL_COUNT_JUN...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2017 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 <coins.h> #include <consensus/validati...
#pragma once #ifndef TABLESTORE_CORE_HTTP_RESPONSE_READER_HPP #define TABLESTORE_CORE_HTTP_RESPONSE_READER_HPP /* BSD 3-Clause License Copyright (c) 2017, Alibaba Cloud All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following condi...
// // Copyright (c) 2017 The Khronos Group 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 la...
/*****************************************************************************/ /* XDMF */ /* eXtensible Data Model and Format */ /* */ ...
#include <cstdlib> #include "Kmer.h" #include "KmerIntPair.h" KmerIntPair::KmerIntPair(const Kmer &km, uint32_t val) { SetKey(km); SetVal(val); } void KmerIntPair::SetVal(const uint32_t val) { //char val8 = (val > 0xFF) ? 0xFF : (char)val; //memcpy(&this->v + KmerIntPair::IntOffset, &val8, sizeof(uint8_t))...
//===----------------------------------------------------------------------===// // // 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 // //===---------------------------...
#include "HIMultiTrackSelector.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "DataFormats/Common/interface/ValueMap.h" #include "CondFormats/DataRecord/interface/GBRWrapperRcd.h" #include "FWCore/Framework/interface/EventSetup.h" #include "FWCore/Framework/interface/ESHandle.h" #include <Math...
#include "StatementParser.hpp" #include <utility> std::shared_ptr<statements::Statement> parsers::StatementParser::parse(std::string statement) { if (this->next_ != nullptr) { return this->next_->parse(std::move(statement)); } return nullptr; } void parsers::StatementParser::set_next(std::sh...
// // Copyright (c) YugaByte, 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 w...
#include "sdf_data.hpp" #include "sdf_escape.hpp" #include <iostream> #include <cmath> namespace /*anonymous*/ { std::string ident(int depth); std::string ident(int depth) { return std::string(2*depth, ' '); } } namespace sdfparse { void DelayFile::print(std::ostream& os, int depth) const { ...
//================================================================================================= /*! // \file src/boost/DMatTrans.cpp // \brief Source file for the Boost dense matrix transpose kernel // // Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved // // This file is part of the Blaze library....
// Copyright 2020 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/services/libassistant/service_controller.h" #include <memory> #include "base/base_paths.h" #include "base/json/json_reader.h" #includ...
#include "ControlMap.h" using namespace curtinfrc::controllers; void ControlMap::InitSmartControllerGroup(SmartControllerGroup &contGroup) { // Xbox (0) Rebinds const tAxis lowerElevator = { 1, XboxController::kLeftThrottle }, raiseElevator = { 1, XboxController::kRightThrottle }; tButton lowerElevatorButton = ...
// Copyright 2017 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 "third_party/blink/renderer/core/dom/trustedtypes/trusted_url.h" #include "third_party/blink/renderer/core/execution_context/execution_context.h...
/* * Copyright 2009-2017 Alibaba Cloud 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...
// Copyright (c) 2011-2017 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #include <fs.h> #include <qt/intro.h> #include <qt/form...
/* Copyright (C) 2016-2018 Draios Inc dba Sysdig. This file is part of falco. 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 app...
#ifndef SPROUT_FUNCTIONAL_TYPE_TRAITS_IS_STRICT_FUNCTION_HPP #define SPROUT_FUNCTIONAL_TYPE_TRAITS_IS_STRICT_FUNCTION_HPP #include <type_traits> #include <sprout/config.hpp> #include <sprout/functional/type_traits/has_type.hpp> namespace sprout { // // is_strict_unary_function // template<typename Fn> ...
/* **============================================================================== ** ** Copyright (c) 2003, 2004, 2005, 2006, Michael Brasher, Karl Schopmeyer ** ** Permission is hereby granted, free of charge, to any person obtaining a ** copy of this software and associated documentation files (the "Software"), ** ...
/** * Copyright (C) 2016 MongoDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITH...
#include "dropper.h" #include <QtWidgets/QApplication> int main(int argc, char* argv[]) { QApplication a(argc, argv); Dropper w; w.show(); return a.exec(); }
//@group GUI #include "Utils.h" #include "GUI.h" #include "GUI_Internal.h" #include "GUI_Slider.h" #include "Renderer.h" #define SLIDER_MIN_RUN_PIXELS 0.0f #define SLIDER_MIN_CARET_WIDTH 2.0f #define SLIDER_HEIGHT m_pContext-> namespace DgE { namespace GUI { class SliderContext { public: Slid...
// Copyright (c) 2009-2018 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. #include <hoomd/HOOMDMath.h> #include "../DEMEvaluator.h" #include "../NoFriction.h" #include "../WCAPotential.h" #include "../SWCAPotential.h" #include "../DEM...
// This file is distributed under the BSD 3-Clause License. See LICENSE for details. #include "lgedgeiter.hpp" #include "lgraph.hpp" #include "sub_node.hpp" void LGraph::each_sorted_graph_io(std::function<void(Node_pin &pin, Port_ID pos)> f1, bool hierarchical) { if (node_internal.size() < Node::Hardcoded_output_n...
#include "Conversion/Messages/actionlib_msgs/ActionlibMsgsGoalStatusConverter.h" UActionlibMsgsGoalStatusConverter::UActionlibMsgsGoalStatusConverter(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer) { _MessageType = "actionlib_msgs/GoalStatus"; } bool UActionlibMsgsGoalStatusConverter::Conve...
#include <allegro_flare/bitmap_object.h> namespace allegro_flare { BitmapObject *BitmapObject::dummy = NULL; }
// This file is part of RAVL, Recognition And Vision Library // Copyright (C) 2003, University of Surrey // This code may be redistributed under the terms of the GNU Lesser // General Public License (LGPL). See the lgpl.licence file for details or // see http://www.gnu.org/copyleft/lesser.html // file-header-ends-here...
/////////////////////////////////////////////////////////////////////////////////// /// OpenGL Mathematics (glm.g-truc.net) /// /// Copyright (c) 2005 - 2014 G-Truc Creation (www.g-truc.net) /// Permission is hereby granted, free of charge, to any person obtaining a copy /// of this software and associated documentatio...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE134_Uncontrolled_Format_String__wchar_t_connect_socket_vfprintf_83_goodB2G.cpp Label Definition File: CWE134_Uncontrolled_Format_String.vasinks.label.xml Template File: sources-vasinks-83_goodB2G.tmpl.cpp */ /* * @description * CWE: 134 Uncontrolled Format Strin...
// NOTE: this works on Linux Mint 19.3... You may need to modify it to work on a non-Linux OS #include <iostream> #include "Color.h" //gets user input void getInput(std::string username, std::string message = "", Color::Modifier userColor = (Color::FG_BLUE), Color::Modifier defColor = (Color::FG_DEFAULT)){ std::st...
#include "malloc-extensions.h" #include "../snmalloc.h" using namespace snmalloc; void get_malloc_info_v1(malloc_info_v1* stats) { auto next_memory_usage = default_memory_provider().memory_usage(); stats->current_memory_usage = next_memory_usage.first; stats->peak_memory_usage = next_memory_usage.second; }
/** * @file unit_test_fnd_numeric_ranges_iota.cpp * * @brief ranges::iota のテスト * * @author myoukaku */ #include <bksge/fnd/numeric/ranges/iota.hpp> #include <bksge/fnd/iterator/begin.hpp> #include <bksge/fnd/iterator/end.hpp> #include <gtest/gtest.h> #include "constexpr_test.hpp" #include "ranges_t...
// 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 <bits/stdc++.h> #include <unordered_map> #include <unordered_set> using namespace std; #define ii pair<int, int> #define ll long long #define vi vector<int> #define vc vector<char> #define pb push_back #define rz resize #define mp make_pair #define f first #define s second #define FOR(n) for (int i = 0; i <...
/* * Copyright 2022, Oak Ridge National Laboratory. * MGARD-X: MultiGrid Adaptive Reduction of Data Portable across GPUs and CPUs * Author: Jieyang Chen (chenj3@ornl.gov) * Date: March 17, 2022 */ #ifndef MGARD_X_ARRAY_HPP #define MGARD_X_ARRAY_HPP // #include "Common.h" // #include "CommonInternal.h" #include <...
// Copyright 2019-20 Genten Studios // // 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 the following disclai...
//===- test_cxx_gen.cc ----------------------------------------------------===// // // Copyright (C) 2019-2020 Alibaba Group Holding Limited. // // 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 ...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "assert.h" #include "chainparams.h" #include "main.h" #include "util.h" #incl...
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> #include <RED4ext/Common.hpp> #include <RED4ext/REDhash.hpp> #include <RED4ext/Types/generated/game/ui/MenuGameController.hpp> namespace RED4ext { namespace game::ui { struct BaseCharacterCreationController : game::ui::MenuGam...
#ifndef __IBUFFER_HPP__ #define __IBUFFER_HPP__ /*==========================================================================; * * Copyright (C) 1999-2000 Microsoft Corporation. All Rights Reserved. * * File: ibuffer.hpp * Content: Class header the Index buffer class * ********************...
#include <iostream> int main() { int i = -1, &r = 0; // illegal, r must refer to an object const int i1 = -1, &r1 = 0; // legal const int *p1 = &i; // legal const int i3 = i, &r2 = i; // legal int *const p2 = &i; // legal const int *const p3 = &i; // legal const int &const r3; // i...
#include "Refureku/TypeInfo/Entity/Entity.h" #include <utility> //std::forward #include <algorithm> //std::find #include "Refureku/TypeInfo/Archetypes/Struct.h" using namespace rfk; Entity::Entity(std::string&& name, uint64 id, EEntityKind kind) noexcept: name{std::forward<std::string>(name)}, id{id}, kind{kind...
#include<iostream> #include<algorithm> #include<vector> using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); int c, sorted = 0; cin >> c; vector<int> n; vector<int> temp; for(int i = 0; i < c; i++){ int input; cin >> input; n.push...
/*BREAKING - Number Breaking #number-theory #prime-numbers-1 #number-theory-13 #math-number-theory Every number is multiplication of some prime numbers. Prime number is a number which is only divided by 1 and itself. Here you are given a number n. You have to find the prime numbers whose multiplication makes this numb...
#include "Person.h" #include <iostream> using namespace std; Person::Person(string first,string last, int arbitrary) : firstname(first),lastname(last), arbitrarynumber(arbitrary) { cout << "constructing " << GetName() << endl; } Person::~Person() { cout << "destructing " << GetName() << endl; } ...
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
#include "stdafx.h" #include "StateManager.h" #include "APIWrappers/Device.h" namespace Boolka { bool StateManager::Initialize(Device& device) { if (!m_DescriptorHeapSRV.Initialize(device, 64, D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV, D3D12_DESCRIPTOR_HEAP_F...
/* * Copyright (c) 2017, The OpenThread Authors. * 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 * n...
/******************************************************************************* * Copyright 2020-2021 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://www.apache....
/* plantcalc -- Power plant modelling * (c) 2012 Michał Górny * Released under the terms of the 2-clause BSD license */ #ifdef HAVE_CONFIG_H # include "config.h" #endif #include "mediumsplittingjunction.hxx" #include "../common/splittingjunction.ixx" template class SplittingJunction<MediumPin>; MediumSplittingJu...
// 2006-10-12 Paolo Carlini <pcarlini@suse.de> // Copyright (C) 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library 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 Found...
/*********************************************************** * * Projekt: Strategicka hra * Cast: Server hry - skilly * Autor: Tomas Karban * * Popis: Bullet Attack skilla -- implementace typu skilly * ***********************************************************/ #include "StdAfx.h" #include "SBulletAttackSk...
// // Created by secondwtq 15-8-5. // Copyright (c) 2015 The Xoundation Project All rights reserved. // #ifndef MOZJS_SPDE_CASTER_STRING_HXX #define MOZJS_SPDE_CASTER_STRING_HXX #include "../../thirdpt/js_engine.hxx" #include <string> namespace xoundation { namespace spd { template <typename T> struct caster; tem...
#pragma once #include "Definitions.hpp" namespace SDK { class PlayerInfo { private: DWORD __pad0[2]; public: //Vector origin; int m_nXuidLow; int m_nXuidHigh; char m_szPlayerName[128]; int m_nUserID; char m_szSteamID[33]; UINT m_nSteam3ID; char m_szFriendsName[128]; bool m_bIsFakePlayer; bo...
#ifndef BOOST_MPL_OR_HPP_INCLUDED #define BOOST_MPL_OR_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2000-2004 // // 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) // // See http://www.boost.org/libs/mpl...
//===- Local.cpp - Functions to perform local transformations -------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/* * 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 ...
/* * Copyright 2015-2019 CNRS-UM LIRMM, CNRS-AIST JRL */ #include <mc_control/MCController.h> #include <mc_rbdyn/RobotLoader.h> #include <mc_rbdyn/RobotModule.h> #include <mc_rtc/constants.h> #include <mc_rtc/ConfigurationHelpers.h> #include <mc_rtc/config.h> #include <mc_rtc/gui/Schema.h> #include <mc_rtc/io_util...
/**************************************************************************** Copyright (c) 2012 cocos2d-x.org Copyright (c) 2013-2017 Chukong Technologies Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentatio...
#include "PoolMalloc.hh" //#include "CUtilities.h" #include <iostream> #include <cstring> #include <stdio.h> using namespace std; static const size_t POOLBLOCKSIZE = 10*1024*1024; /// Print current line and exit #define DIE() \ do { ...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 2018,2019,2020, by the GROMACS development team, led by * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl, * and including many others, as listed in the AUTHORS file in the * top-level source directory and at http...
//===- ASTImporter.cpp - Importing ASTs from other Contexts ---------------===// // // 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 // //===---------------------------...
#include <iostream> using namespace std; int T, a, b; int main() { ios_base::sync_with_stdio(0); cout.tie(0); cin.tie(0); cin >> T; while (T--) { cin >> a >> b; if (a < b) { if ((b-a) % 2) cout << "1\n"; else cout << "2\n"; } else if (a > b) { if ((a-b) % 2) cout << "2\n"; else ...
// Copyright (c) 2019-2019, Nejcraft // Copyright (c) 2014-2019, The Monero Project // // 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 t...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: UnityEngine.MonoBehaviour #...
#pragma once namespace Skye { enum class ShaderDataType : uint8_t { None = 0, Float, Float2, Float3, Float4, Mat3, Mat4, Int, Int2, Int3, Int4, Bool }; static uint32_t ShaderDataTypeSize(ShaderDataType type) { switch (type) { case ShaderDataType::Float: return 4; case ShaderDataType::...
/* * D3D12Device.cpp * * This file is part of the "LLGL" project (Copyright (c) 2015-2019 by Lukas Hermanns) * See "LICENSE.txt" for license information. */ #include "D3D12Device.h" #include "../DXCommon/DXCore.h" namespace LLGL { /* ----- Device creation ----- */ bool D3D12Device::CreateDXDevice(HRESULT& h...
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2012 EMC Corp. // // @filename: // CXformDynamicGet2DynamicTableScan.cpp // // @doc: // Implementation of transform //--------------------------------------------------------------------------- #inclu...
#include <GL/glut.h> // Header File For The GLUT Library #include <GL/gl.h> // Header File For The OpenGL32 Library #include <GL/glu.h> // Header File For The GLu32 Library #include <unistd.h> void display(){ glClearColor(1.0f, 0.5f, 0.5f, 1.0f); // Seta Background glClear(GL_COLOR_BUFFER_BIT); // Limpa...
/* Integration test kernel for whether pipe handles work (C) 2019 Niall Douglas <http://www.nedproductions.biz/> (2 commits) File Created: Nov 2019 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 in t...
#include "../../H3D/OpenGL/GLMultithreading.hpp" ///////////////////////////////////////////////////////////////// // Implementation of globalCallWorkerThread ///////////////////////////////////////////////////////////////// namespace h3d { namespace GL { globalCallWorkerThread::globalCallWorkerThread() {} globalC...
// license:BSD-3-Clause // copyright-holders:Nathan Woods, Raphael Nabet, Miodrag Milanovic /********************************************************************* Code to interface the image code with harddisk core. Raphael Nabet 2003 Update: 23-Feb-2004 - Unlike floppy disks, for which we support my...
// TProgressDialog.cpp : implementation file // #include "stdafx.h" #include "RNAstructure.h" #include "TProgressDialog.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // TProgressDial...
/* __ _____ _____ _____ __| | __| | | | JSON for Modern C++ (test suite) | | |__ | | | | | | version 3.10.4 |_____|_____|_____|_|___| https://github.com/nlohmann/json Licensed under the MIT License <http://opensource.org/licenses/MIT>. SPDX-License-Identifier: MIT Copyright (c) 2013-2019 Niels L...
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General...
#include "stdafx.h" // Include #include "UIMgr.h" // General #include "UIButton3t.h" UIButton3t::UIButton3t(IUIMgr* _uimgr) : UIButton(_uimgr) { for (uint32 i = 0; i < 4; i++) { buttonsImages[i] = nullptr; } } UIButton3t::~UIButton3t() { int x = 0; } void UIButton3t::Init(cvec2 _position, cstring _textureNa...
/* * balanced_diet_stat.cpp * * (C) Denis Anikin 2020 * * Statistics for the balanced diet * */ #include <vector> #include <algorithm> #include <iostream> #include <cmath> #include <iomanip> #include <map> #include <set> #include <unordered_map> #include <unordered_set> #include <fstream> #include <s...
#include <VulkanPlayground\Includes.h> class ModelLitTestMeshApp : public VulkanApplication3DLight { void ResetScene() override { CalcPositionMatrix({ 0, 20, 0 }, { -1.0f, -0.4f, 0 }, 0, 25, model.GetModelSize()); SetupLighting({ 0, -45, 8 }, 0.5f, 0.5f, 0.75f, 16.0f, model.GetModelSize()); SetLineMode(false);...
//deprecated #include "fft.h" #include "matrix.h" #include <cmath> #include <iostream> #include <iomanip> #include <complex> using namespace std; using namespace toefl; int main() { cout << "Test \n"; double dx; size_t rows = 1; size_t cols = 10; Matrix<double, TL_DFT> m2(rows,cols); Matrix<c...
#include "ofxTouchBoard.h" void ofxTouchBoard::setup(int deviceId){ serial.setup(deviceId); init(); } void ofxTouchBoard::setup(){ serial.setup(); init(); } void ofxTouchBoard::init(){ ofAddListener(ofEvents().exit, this, &ofxTouchBoard::exit); serial.startThread(false); electrodes.resize(ofxTB::ELECTRODES_NB...
#pragma once // ================================================================================================ // File: VkToolbox/Utils.hpp // Author: Guilherme R. Lampert // Created on: 07/01/17 // Brief: Miscellaneous helper code. // =================================================================================...
#include "SensorFusionEditorIntegrationPCH.h" #include "SSensorMappingViewportToolBar.h" #define LOCTEXT_NAMESPACE "SensorFusionToolkit" void SSensorMappingViewportToolBar::Construct(const FArguments& InArgs, TSharedPtr<class ICommonEditorViewportToolbarInfoProvider> InInfoProvider) { this->SensorFusionToolkit =...