text stringlengths 54 60.6k |
|---|
<commit_before>#include "stdafx.h"
#include "MainScene.h"
#include "TWScene.h"
Scene* TWScene::createScene()
{
auto scene = Scene::create();
auto layer = TWScene::create();
scene->addChild(layer);
return scene;
}
bool TWScene::init()
{
if (!CCLayerColor::initWithColor(Color4B::BLUE))
{
return false;
}
... |
<commit_before>// @(#)root/hist:$Id$
// Author: David Gonzalez Maline 12/11/09
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>#include <opencv2\opencv.hpp>
#include <opencv2\imgproc.hpp>
#include <opencv2\highgui.hpp>
#include <opencv2\ml.hpp>
#include <vector>
#include <iostream>
#include <random>
#include "AdaBoost.h"
#include "VectorData.h"
#include "MatData.h"
#include "WeakVectorClassifierFactory.h"
#include "WeakHaarClass... |
<commit_before>// FROM: http://playground.arduino.cc/Code/EEPROMLoadAndSaveSettings
/* LoadAndSaveSettings
* footswitch 2012-03-05, original code by Joghurt (2010)
* Demonstrates how to load and save settings to the EEPROM
* Tested on Arduino Uno R2 with Arduino 0023
*/
// Contains EEPROM.read() and EEPROM.write()... |
<commit_before><commit_msg>Replace fedpeg template init check for pak one<commit_after><|endoftext|> |
<commit_before>#pragma once
#include <string>
#include <stdexcept>
#include <clang-c/Index.h>
namespace color_coded
{
namespace clang
{
namespace token
{
inline std::string map_type_kind(CXTypeKind const kind)
{
switch(kind)
{
case CXType_Unexposed:
retur... |
<commit_before>// This file is a part of the OpenSurgSim project.
// Copyright 2013, SimQuest Solutions 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.or... |
<commit_before>// Halide tutorial lesson 16: RGB images and memory layouts part 1
// This lesson demonstrates how to feed Halide RGB images in
// interleaved or planar format, and how to write code optimized for
// each case.
// On linux or os x, you can compile and run it like so:
// g++ lesson_16_rgb_generate.cpp ... |
<commit_before>// @(#)root/net:$Name: $:$Id: TGrid.cxx,v 1.8 2005/05/13 08:49:54 rdm Exp $
// Author: Fons Rademakers 3/1/2002
/*************************************************************************
* Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<commit_before><commit_msg>improved VCOM Toggle<commit_after><|endoftext|> |
<commit_before><commit_msg>WaE: possible loss of data<commit_after><|endoftext|> |
<commit_before>#ifndef __RANK_FILTER__
#define __RANK_FILTER__
#include <deque>
#include <cassert>
#include <functional>
#include <iostream>
#include <iterator>
#include <boost/array.hpp>
#include <boost/container/set.hpp>
#include <boost/container/node_allocator.hpp>
#include <boost/math/special_functions/round.hpp... |
<commit_before>/*
* Copyright 2016 C. Brett Witherspoon
*
* This file is part of the signum library
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all cop... |
<commit_before>/*
* Copyright 2016 C. Brett Witherspoon
*
* This file is part of the signum library
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all cop... |
<commit_before>//
// linked_list.hpp
// DS
//
// Created by Rahul Goel on 7/26/17.
// Copyright © 2017 Rahul Goel. All rights reserved.
//
#ifndef linked_list_hpp
#define linked_list_hpp
#include <stdio.h>
#include <stdlib.h>
//To create a test Single Linked List with four nodes in it
struct list_node* linkedlis... |
<commit_before>/* Copyright 2016 Hewlett Packard Enterprise Development LP
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 applicab... |
<commit_before>/*******************************************************************************
Program: Wake Forest University - Virginia Tech CTC Software
Id: $Id$
Language: C++
*******************************************************************************/
// command line app to subtract tagged stool fro... |
<commit_before>/*
* File: Sfuck.cpp
* Author: Michael Hrcek <[email protected]>
*
* Created on September 14, 2015, 6:25 PM
*/
#include <iostream>
#include <stdlib.h>
#include <fstream>
#include <time.h>
using namespace std;
struct store {
int intBank[128][128];
int index, vindex;
bool printAsC... |
<commit_before>// vimshell.cpp : Defines the entry point for the application.
//
#include "vimshell.h"
#include <iostream>
#include <fstream>
#include <string>
#include <windows.h>
#include <shellapi.h>
bool cvtLPW2stdstring(std::string& s, const LPWSTR pw,
UINT codepage = CP_ACP)
{
... |
<commit_before>// ========================================================================== //
// This file is part of Sara, a basic set of libraries in C++ for computer
// vision.
//
// Copyright (C) 2018 David Ok <[email protected]>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// Licen... |
<commit_before>/********************************************************************************
$Header$
purpose:
notes:
to do:
author(s):
- Dirk Farin, [email protected]
University Mannheim, Dept. Circuitry and Simulation
L 15,16 room 410 / D-68131 Mannheim / Germany
modifications... |
<commit_before>// Copyright (c) 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 la... |
<commit_before>#include <Halide.h>
#include <stdio.h>
#include "clock.h"
#include <memory>
using namespace Halide;
enum {
scalar_trans,
vec_y_trans,
vec_x_trans
};
void test_transpose(int mode) {
Func input, block, block_transpose, output;
Var x, y;
input(x, y) = cast<uint16_t>(x + y);
i... |
<commit_before>#include <memory.h>
#include <string.h>
#include "wrapper.h"
extern "C"
{
/* bitmap/image helpers */
EWXWEXPORT(wxBitmap*,wxBitmap_CreateFromImage)(wxImage* image,int depth)
{
return new wxBitmap(*image,depth);
}
EWXWEXPORT(wxImage*,wxImage_CreateFromDataEx)(int width,int height,wxUint8* data,bool... |
<commit_before>#ifndef __ENVIRE_MAPS_LOCAL_MAP_HPP__
#define __ENVIRE_MAPS_LOCAL_MAP_HPP__
#include <base/Eigen.hpp>
#include <boost/shared_ptr.hpp>
#include <string>
namespace envire { namespace maps
{
/**@brief LocalMapType
* The type of the LocalMap
*/
// TODO: do we need unknown type?
enu... |
<commit_before>#include "LuaTable.h"
#include "LuaObjectImpl.h"
LuaTable::LuaTable(LuaState* L)
:LuaObject(L)
{
}
LuaTable::LuaTable(LuaObjectImpl* impl)
:LuaObject(impl)
{
}
LuaTable::LuaTable(const LuaObject& rfs)
:LuaObject(rfs)
{
}
LuaTable::LuaTable(const LuaTable& rfs)
:LuaObject(rfs)
{
}
bool LuaT... |
<commit_before>// 'operator delete' redeclared without throw()
// originally found in package drscheme_1:208-1
// %%% progress: 0ms: done type checking (1 ms)
// a.ii:3:6: error: prior declaration of `operator delete' at <init>:1:1 had type `void ()(void *p) throw()', but this one uses `void ()(void */*anon*/)'
// ty... |
<commit_before>/*! \file MatTools.cpp
\brief Implements the MatTools class used by the Generic Repository
\author Kathryn D. Huff
*/
#include <iostream>
#include <fstream>
#include <deque>
#include <time.h>
#include <assert.h>
#include "CycException.h"
#include "CycLimits.h"
#include "MatTools.h"
#include "... |
<commit_before><commit_msg>Spiral1 Soltuion from interviewbit<commit_after><|endoftext|> |
<commit_before>/** @file main.cpp
* @brief
*
* @author Viacheslav Kroilov (metopa) <[email protected]>
*/
#include <iostream>
#include "murmurhash2functor.h"
int main() {
mmh2::MurmurHash2<int> h;
std::cout << h(700) << std::endl;
return 0;
}
<commit_msg>Update example<commit_after>/** @file main.cpp
*... |
<commit_before>/* COPYRIGHT (c) 2015 Sam Westrick, Laxman Dhulipala, Umut Acar,
* Arthur Chargueraud, and Michael Rainey.
* All rights reserved.
*
* \file pwsa.cpp
*
*/
#include "benchmark.hpp"
#include "treap-frontier.hpp"
#include "weighted-graph.hpp"
#include "native.hpp"
#include "defaults.hpp"
#include <cst... |
<commit_before>/*
* Priority.cpp
*
* Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
* Copyright 2000, Bastiaan Bakker. All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#include "PortabilityImpl.hh"
#include <log4cpp/Priority.hh>
#include <cs... |
<commit_before>/*
Copyright (c) 2015, Project OSRM contributors
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 condi... |
<commit_before>/******************************************************************************
* Copyright (c) 2015 Jamis Hoo
* Distributed under the MIT license
* (See accompanying file LICENSE or copy at http://opensource.org/licenses/MIT)
*
* Project:
* Filename: k_means_iteration.cc
* Version: 1.0... |
<commit_before>/* GG is a GUI for SDL and OpenGL.
Copyright (C) 2003 T. Zachary Laine
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 y... |
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Lice... |
<commit_before>/*************************************************************************
> Author: Wayne Ho
> Purpose: TODO
> Created Time: Wed 03 Jun 2015 11:01:35 AM CST
> Mail: [email protected]
************************************************************************/
#include "storage/graph_builder.h"
#incl... |
<commit_before>// illarionserver - server for the game Illarion
// Copyright 2011 Illarion e.V.
//
// This file is part of illarionserver.
//
// illarionserver is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Softwar... |
<commit_before><commit_msg>Grabber class now receives objects names when collision<commit_after><|endoftext|> |
<commit_before>//
//#include <unistd.h>
#include <cstdio>
#include <cstdlib>
#include <string>
#include <ctime>
#include <algorithm>
#include <cmath>
#include "GPIOClass.h"
using namespace std;
void Pulse(GPIOClass* pin, double cycles);
void Wait(double seconds);
clock_t timer;
double time_to_complete;... |
<commit_before><commit_msg>Fix voxel grid<commit_after><|endoftext|> |
<commit_before>
#include "pin.H"
#include "Triton.h"
static std::string replaceEq(std::string str, const std::string from, const std::string to)
{
size_t start_pos = str.find(from);
if(start_pos == std::string::npos)
return NULL;
str.replace(start_pos, from.length(), to);
return str;
}
static std::str... |
<commit_before>#ifndef STAN_IO_ARRAY_VAR_CONTEXT_HPP
#define STAN_IO_ARRAY_VAR_CONTEXT_HPP
#include <stan/io/var_context.hpp>
#include <boost/throw_exception.hpp>
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <algorithm>
#include <functional>
#include <numeric>
#include <sstream>
#include <string>
#include <typ... |
<commit_before>/*
Copyright (c) 2012 Carsten Burstedde, Donna Calhoun
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 ... |
<commit_before>#include "Text.h"
namespace hm
{
Text::Text()
{
// Initialize.
font = NULL;
sdltext = NULL;
text = "Hume Library";
}
Text::Text(Font *font)
{
// Initialize and set default text.
this->font = font;
sdltext = NULL;
text = "Hume Library";
std::cout << "constructor invoked and callin... |
<commit_before>/*
* File: Zone.cpp
* Author: Aztyu
*
* Created on 22 décembre 2014, 15:50
*/
#include "Zone.h"
using namespace std;
Zone::Zone(char* name){
zone_name = name;
tableau.reserve(10);
for(int i=0; i < 8; i++){
type_number[i] = 0;
}
cout << "Creation de la zon... |
<commit_before>/*
Copyright 2014-2015 Adam Grandquist
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 ... |
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015-2016 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the... |
<commit_before>#include <cassert>
#include "html-escape.hh"
namespace mimosa
{
namespace stream
{
HtmlEscape::HtmlEscape(Stream::Ptr stream)
: Filter(stream)
{
}
int64_t
HtmlEscape::write(const char * data, uint64_t nbytes, runtime::Time timeout)
{
const char * const start = d... |
<commit_before>#ifndef MIMOSA_TPL_ABSTRACT_VALUE_HH
# define MIMOSA_TPL_ABSTRACT_VALUE_HH
# include "../ref-countable.hh"
# include "../stream/stream.hh"
# include "../string/string-ref.hh"
namespace mimosa
{
namespace tpl
{
class AbstractValue
{
public:
virtual const AbstractValue * lookup(cons... |
<commit_before>/*************************************************************************
* *
* OU library interface file for Open Dynamics Engine, *
* Copyright (C) 2008 Oleh Derevenko. All rights reserved. *
* Em... |
<commit_before>/* Sirikata Transfer
* DiskManager.hpp
*
* Copyright (c) 2010, Jeff Terrace
* 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 mus... |
<commit_before>// --*- Mode: C++; c-basic-offset: 8 -*--
#include <complex>
#include "EigenLab.h"
int main(int argc, const char * argv[])
{
EigenLab::ParserXd parserXd;
auto failXd = parserXd.test();
EigenLab::ParserXf parserXf;
auto failXf = parserXf.test();
EigenLab::ParserXi parserXi;
auto failXi... |
<commit_before>#include <../recurse.hpp>
#include <QHash>
int main(int argc, char *argv[])
{
Recurse app(argc, argv);
// http options
QHash<QString, QVariant> http_options;
http_options["port"] = 3000;
// https options
QHash<QString, QVariant> https_options;
https_options["port"] = 3020;
... |
<commit_before>#include <iostream>
#include <vlf/Types.h>
#include <FaceEngine.h>
#include <IEstimator.h>
int main(int argn, char** argv)
{
if(argn != 2)
{
std::cout << "USAGE: " << argv[0] << " <imagePath>\n";
return -1;
}
const std::string dataPath = "/opt/visionlabs/data/";
vlf... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public... |
<commit_before>#include <iostream>
#include <string>
#include <liboauthcpp/liboauthcpp.h>
/* These are input settings that make this demo actually work -- you need to get
* these, e.g. by referring to the Twitter documentation and by registering an
* application with them. Here we have examples from Twitter. If you
... |
<commit_before>// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2009 Gael Guennebaud <[email protected]>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You c... |
<commit_before>#ifndef ALEPH_CONTAINERS_FRACTAL_DIMENSION_HH__
#define ALEPH_CONTAINERS_FRACTAL_DIMENSION_HH__
#include <aleph/geometry/distances/Traits.hh>
#include <aleph/math/Statistics.hh>
#include <algorithm>
#include <map>
#include <stdexcept>
#include <vector>
#include <cmath>
namespace aleph
{
namespace c... |
<commit_before>#ifndef CLOTHO_BIT_BLOCK_FITNESS_HPP_
#define CLOTHO_BIT_BLOCK_FITNESS_HPP_
#include <iostream>
#include "clotho/fitness/bit_block_genotyper.hpp"
#include "clotho/utility/bit_block_iterator.hpp"
namespace clotho {
namespace fitness {
struct no_fit {};
template < class HetFit, class AltHomFit, class R... |
<commit_before>#include <ros/ros.h>
#include <geometry_msgs/Pose.h>
#include <sensor_msgs/PointCloud.h>
#include <move_base_msgs/MoveBaseAction.h>
#include <actionlib_msgs/GoalStatusArray.h>
#include <tf/transform_listener.h>
#include <stdlib.h>
double goal_tolerance, frontier_tolerance;
bool random_frontier;
std::str... |
<commit_before>#pragma once
#include <string>
#include <unordered_map>
#include <vector>
#include "depthai-shared/common/CameraBoardSocket.hpp"
#include "depthai-shared/common/CameraInfo.hpp"
#include "depthai-shared/common/Extrinsics.hpp"
#include "depthai-shared/common/Point3f.hpp"
#include "depthai-shared/common/St... |
<commit_before>// Copyright (c) 2014, Salesforce.com, 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:
//
// - Redistributions of source code must retain the above copyright
// notice, ... |
<commit_before>#include <gtest/gtest.h>
#include "../../include/SQLiteDatabase.h"
#include <iostream>
#include <fstream>
#include <vector>
bool fexists(const std::string& filename) {
std::ifstream ifile(filename.c_str());
return ifile;
};
class SQLiteDatabaseTestFixture : public ::testing::Test {
public:
SQL... |
<commit_before>// Copyright 2015 Open Source Robotics Foundation, 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 re... |
<commit_before>#include "mocca/base/ByteArray.h"
#include <limits>
#include <algorithm>
static_assert(std::numeric_limits<float>::is_iec559 == true, "Unsupported floating point type");
static_assert(std::numeric_limits<double>::is_iec559 == true, "Unsupported floating point type");
namespace mocca {
const unsigned ... |
<commit_before>#include "stdafx.hpp"
#include <functional>
#include "CppUnitTest.h"
#include "..\TestUtilities\TestUtilities.hpp"
#include "..\TestUtilities\QuantityComparisons.hpp"
#include "..\TestUtilities\GeometryComparisons.hpp"
#include "..\TestUtilities\Algebra.hpp"
#include "..\Quantities\Dimensionless.hpp"... |
<commit_before>/**
* \file dcs/testbed/application.hpp
*
* \brief Generic application.
*
* \author Marco Guazzone ([email protected])
*
* <hr/>
*
* Copyright 2012 Marco Guazzone ([email protected])
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file ... |
<commit_before>#include "stdafx.h"
#include <windows.h>
typedef LONG KPRIORITY;
typedef struct _CLIENT_ID {
DWORD UniqueProcess;
DWORD UniqueThread;
} CLIENT_ID;
typedef struct _UNICODE_STRING {
USHORT Length;
USHORT MaximumLength;
PWSTR Buffer;
} UNICODE_STRING;
... |
<commit_before>/**************************************************************************
** This file is part of LiteIDE
**
** Copyright (c) 2011-2017 LiteIDE Team. All rights reserved.
**
** This library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Lesser General Pub... |
<commit_before>/*
* Copyright (c) 2014-2016 Kartik Kumar, Dinamica Srl ([email protected])
* Distributed under the MIT License.
* See accompanying file LICENSE.md or copy at http://opensource.org/licenses/MIT
*/
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include <gsl/gsl_multiro... |
<commit_before>#pragma once
#ifndef RAZ_MATERIAL_HPP
#define RAZ_MATERIAL_HPP
#include <unordered_map>
#include "RaZ/Math/Vector.hpp"
#include "RaZ/Render/Shader.hpp"
#include "RaZ/Render/ShaderProgram.hpp"
#include "RaZ/Render/Texture.hpp"
namespace Raz {
enum class MaterialType {
MATERIAL_TYPE_STANDARD = 0,
... |
<commit_before>//
// embed.hpp
// *********
//
// Copyright (c) 2018 Sharon W (sharon at aegis dot gg)
//
// Distributed under the MIT License. (See accompanying file LICENSE)
//
#pragma once
#include "aegis/config.hpp"
#include "aegis/snowflake.hpp"
#include "field.hpp"
#include "footer.hpp"
#include "image.hpp"
#in... |
<commit_before>#pragma once
#include <array>
#include <baka/variadic.hpp>
#include <cstddef>
#include <ffi.h>
#include <functional>
#include <type_traits>
#include <utility>
#include <vector>
namespace baka {
namespace detail {
template<typename T>
ffi_type* type();
template<>
ffi_... |
<commit_before><commit_msg>the variable is only available on linux<commit_after><|endoftext|> |
<commit_before>// 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 "content/browser/accessibility/browser_accessibility_manager.h"
#include "base/logging.h"
#include "content/browser/accessibi... |
<commit_before>//=======================================================================
// Copyright (c) 2015 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//========================================================... |
<commit_before>/*************************************************************************
*
* $RCSfile: gtkdata.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: hr $ $Date: 2004-05-10 15:54:49 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>/**
* \file
* \brief FifoQueue class header
*
* \author Copyright (C) 2014 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
* distributed with... |
<commit_before>/**
* Jsonpack - Reals traits for json operations
*
* Copyright (c) 2015 Yadiel Martinez Gonzalez <[email protected]>
*
* 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 Licens... |
<commit_before>/*
Copyright (c) 2013, Arvid Norberg
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 condi... |
<commit_before>// Flaschenautomazt.v.6.0.cpp : Definiert den Einstiegspunkt fr die Konsolenanwendung.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
int auswahlGetraenkeSorte();
int eingabeMenge();
float ermittlePreis(int sorte);
void bezahlen (float zuZahlen);
void ausgabeGetraenke(int sorte, int men... |
<commit_before>#ifndef __MIPSSIMULATOR_PROCESSOR_MIPSPROCESSOR_HPP_
#define __MIPSSIMULATOR_PROCESSOR_MIPSPROCESSOR_HPP_
#include <function>
#include <map>
#include <string>
#include <os/os.hpp>
#include <processor/memory.hpp>
#include <processor/register/register_file.hpp>
#include <processor/register/register.hpp>
... |
<commit_before>#ifndef PROTOZERO_DATA_VIEW_HPP
#define PROTOZERO_DATA_VIEW_HPP
/*****************************************************************************
protozero - Minimalistic protocol buffer decoder and encoder in C++.
This file is from https://github.com/mapbox/protozero where you can find more
documentatio... |
<commit_before>//----------------------------------------------------------------------------
/// \file Performance histogram printer of usec latencies.
//----------------------------------------------------------------------------
/// \brief Performance histogram printer.
//
// When building include -lrt
//----------... |
<commit_before>#pragma once
#include <type_traits>
namespace gcl::mp::type_traits
{
template <class T>
struct is_template : std::false_type {};
template <class... T_args, template <class...> class T>
struct is_template<T<T_args...>> : std::true_type {};
template <auto... values, template <auto...> ... |
<commit_before>/**
* Copyright (c) 2020, Timothy Stack
*
* 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
... |
<commit_before>
#include "rtkTestConfiguration.h"
#include "rtkThreeDCircularProjectionGeometryXMLFile.h"
#include "rtkRayBoxIntersectionImageFilter.h"
#include "rtkSheppLoganPhantomFilter.h"
#include "rtkDrawSheppLoganFilter.h"
#include "rtkConstantImageSource.h"
#ifdef USE_CUDA
# include "rtkCudaForwardProjectionIm... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: XMLPageExport.cxx,v $
*
* $Revision: 1.19 $
*
* last change: $Author: rt $ $Date: 2008-03-12 10:47:53 $
*
* The Contents of this file are... |
<commit_before><commit_msg>Moved the definition of the UserViewMap to the IPTVTopologyOracle, as it belonged here, and added a comment to explain its functionality<commit_after><|endoftext|> |
<commit_before>#include <ros/ros.h>
#include <humanoid_catching/CalculateTorques.h>
#include <Moby/qpOASES.h>
#include <Ravelin/VectorNd.h>
#include <Ravelin/MatrixNd.h>
#include <Ravelin/Quatd.h>
#include <Ravelin/Opsd.h>
#include <Moby/qpOASES.h>
#include <Ravelin/LinAlgd.h>
namespace {
using namespace std;
using na... |
<commit_before>/** @file
*
* @ingroup foundationLibrary
*
* @brief #TTDictionaryTest is an class used for unit tests of the #TTDictionary class.
*
* @details
*
* @authors Théo de la Hogue, Tim Place
*
* @copyright Copyright © 2013, Théo de la Hogue, Tim Place @n
* This code is licensed under the terms of the... |
<commit_before>/**
* @file llcolorswatch.cpp
* @brief LLColorSwatch class implementation
*
* $LicenseInfo:firstyear=2001&license=viewergpl$
*
* Copyright (c) 2001-2009, Linden Research, Inc.
*
* Second Life Viewer Source Code
* The source code in this file ("Source Code") is provided by Linden Lab
* to you... |
<commit_before>#include "model/PhysicsCar.h"
#include "model/PhysicsWorld.h"
#include <btBulletDynamicsCommon.h>
#include <sstream>
#include <iostream>
namespace Rally { namespace Model {
namespace {
const btVector3 CAR_DIMENSIONS(2.0f, 1.0f, 4.0f);
const float CAR_MASS = 1.0f;
// The ... |
<commit_before>//
// TexturesHandler.hpp
// G3MiOSSDK
//
// Created by Diego Gomez Deck on 19/06/12.
// Copyright (c) 2012 IGO Software SL. All rights reserved.
//
#ifndef G3MiOSSDK_TexturesHandler_hpp
#define G3MiOSSDK_TexturesHandler_hpp
#include <string>
#include <vector>
#include "TextureBuilder.hpp"
#includ... |
<commit_before>#include "Sketch.h"
#include "chr/gl/draw/Torus.h"
#include "chr/gl/draw/Sphere.h"
using namespace std;
using namespace chr;
using namespace gl;
using namespace draw;
Sketch::Sketch()
:
shader(InputSource::resource("Shader.vert"), InputSource::resource("Shader.frag"))
{}
void Sketch::setup()
{
Toru... |
<commit_before>/*!
* \file x11/RandR/iRandR_reload.cpp
* \brief \b Classes: \a iRandR
*/
/*
* Copyright (C) 2015 EEnginE 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
*
* ... |
<commit_before>// dui-demo.cpp : main source file
//
#include "stdafx.h"
#include "DuiSystem.h"
#ifdef _DEBUG
#include <vld.h>//ʹVitural Leaker Detectorڴй©Դhttp://vld.codeplex.com/
#endif
#include "MainDlg.h"
#ifndef DLL_SOUI
#include "../render-skia/render-skia.h"
#include "../imgdecoder-wic/imgdec... |
<commit_before>#include "mainview.h"
#include "ui_mainview.h"
#include "mibittip.h"
#include "mibitdialog.h"
#include <QDebug>
#include <QTimer>
mainView::mainView(QWidget *parent)
: QWidget(parent), ui(new Ui::mainView)
{
ui->setupUi(this);
tip1 = new MibitTip(this, ui->dtedit, "tip.svg",QPixmap("impor... |
<commit_before>#ifndef GLOBAL_H_INCLUDED
#define GLOBAL_H_INCLUDED
// C++11 Standard.
#include <string>
#include <sstream>
#include <utility>
#include <type_traits> /// for is_class, ...
using namespace std;
///
/// GLOBAL_DEBUG
///
namespace wiz{
#define COL_BASED
#define ROW_BASED
#def... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.