text stringlengths 8 6.88M |
|---|
#include <cstdio>
using namespace std;
long long a,b;
double c;
int main()
{
scanf("%lld %lld",&a,&b);
scanf("%lf",&c);
printf("%lld %.2lf %lld\n",a,c,b);
}
|
# include <iostream>
struct persona {
char nombre [ 20 ];
int edad;
} persona1, persona2;
int main ( int argc, char ** argv) {
cout<<" dame el nombre de la persona:" <<endl;
cin.getline(persona2.nombre , 20 , ' / n ' );
cout<<" dame la edad de la persona: "<<endl;
cin>>persona2. Edad ;
cout<<" el ... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "SPowerUpActor.h"
// Sets default values
ASPowerUpActor::ASPowerUpActor()
{
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = fals... |
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/GameModeBase.h"
#include "OnlineSessionSettings.h"
#include "COOP_GameMode.generated.h"
//enum class EWaveState:uint8;
//
//DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams(F... |
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* Copyright (C) 2000-2011 Opera Software ASA. All rights reserved.
*
* This file is part of the Opera web browser.
* It may not be distributed under any circumstances.
*
* Yngve Pettersen
*/
#include "core/pch.h"
#if defined(_NATIV... |
#include "GetRoomInfoProcess.h"
#include "ProtocolServerId.h"
#include "Room.h"
#include "Logger.h"
#include "ProcessManager.h"
int GetRoomInfoProcess::doRequest(CDLSocketHandler *clientHandler, InputPacket *inputPacket, Context *pt) {
short cmd = inputPacket->GetCmdType();
short subcmd = inputPacket->GetSubCm... |
#pragma once
#include "Map.h"
namespace Game
{
extern std::vector<Object*> objects;
extern BioMap::map_t map;
void main();
typedef enum
{
OBJT_DUDE,
OBJT_CITY,
OBJT_STRUCTURE,
} ObjectType;
struct Object
{
uint8_t x;
uint8_t y;
virtual bool autoUpdate();
virtual boo... |
#include <iostream>
#include <iomanip>
using namespace std;
const int dir_i[4] = {0, 0, 1, -1};
const int dir_j[4] = {1, -1, 0, 0};
double dir_rate[4];
int n;
bool visited[31][31];
double ans = 0;
void dfs(int index, int i, int j, double rate){
if(index == n){
ans += rate;
return;
}
for ... |
/* -*- Mode: c++; indent-tabs-mode: nil; c-file-style: "gnu" -*-
*
* Copyright (C) 1995-2005 Opera Software ASA. All rights reserved.
*
* This file is part of the Opera web browser. It may not be distributed
* under any circumstances.
*/
#include "core/pch.h"
#ifdef XPATH_SUPPORT
#include "modules/xpath/src/... |
#include<iostream>
#include<cstdio>
#include<map>
#include<set>
#include<vector>
#include<stack>
#include<queue>
#include<string>
#include<cstring>
#include<sstream>
#include<algorithm>
#include<cmath>
using namespace std;
const int N = 10;
char ch[] = {'p','q','r','u','v','w','x','y','z'};
int main()
{... |
#include<fstream>
#include<string.h>
#include<ctype.h>
#include<algorithm>
#include<map>
#include<unordered_map>
#include<array>
#include<deque>
#include<queue>
#include<math.h>
#include<functional>
#include<unordered_set>
#include<set>
#include<iostream>
#include<iomanip>
#include<bitset>
using namespa... |
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*-
*
* Copyright (C) 1995-2006 Opera Software AS. All rights reserved.
*
* This file is part of the Opera web browser.
* It may not be distributed under any circumstances.
*
*
*/
#ifndef _BOOKMARK_ADR_STORAGE_H_
#define _BOOKMARK_ADR_STO... |
/**
* Copyright (c) 2021, 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
* list of condi... |
/* BEGIN LICENSE */
/*****************************************************************************
* SKCore : the SK core library
* Copyright (C) 1995-2005 IDM <skcontact @at@ idm .dot. fr>
* $Id: factory.cpp,v 1.24.2.9 2005/02/17 15:29:21 krys Exp $
*
* Authors: Mathieu Poumeyrol <poumeyrol @at@ idm .dot. f... |
#include "../LogSystem.h"
//
int main()
{
std::string str("This ");
Log(str.c_str(), "is a Log");
LogWarn("This is a Log");
LogError("This is a Log, Error local ", __CODELOCAL__);
//
SetLogFilePath("../Log/");
FLog(str.c_str(), "is ", 1, " File Log");
float fvalue = 1.0F;
FLogWarn... |
const int stepPin = 3;
const int dirPin = 4;
const int toggleA = 12;
const int toggleB = 13;
int buttonStateA = 0;
int buttonStateB = 0;
void setup() {
// Sets int / outputs
pinMode(stepPin,OUTPUT);
pinMode(dirPin,OUTPUT);
pinMode(toggleA,INPUT);
pinMode(toggleB,INPUT);
}
void loop() {
buttonStateA =... |
/*****************************************************************************************
* *
* owl *
* ... |
/*====================================================================
Copyright(c) 2018 Adam Rankin
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 limitati... |
#include<iostream>
using namespace std;
int CenturyFromYear(int year) {
int cent;
cent = ((year - 1) / 100) + 1;
return cent;
}
int main() {
for (int i = 0; i < 3000; i++) {
std::cout << "The year " << i << " is " << CenturyFromYear(i) << "c." << std::endl;
}
return 0;
} |
#pragma once
#include <bits/stdc++.h>
#include <variant>
#include "dispatcher_semantic_check.h"
#include "visitor.h"
#include "context.h"
#include "llvm/IR/Value.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Function.h"
#... |
/****************************************************************
* TianGong RenderLab *
* Copyright (c) Gaiyitp9. All rights reserved. *
* This code is licensed under the MIT License (MIT). *
*****************************************************************/
#include "Math/Color.hpp"
namespace TG::Ma... |
#include "std_lib_facilities.h"
#include <iostream>
#include "Token_stream.h"
#include "factorial.h"
Token_stream ts; // provides get() and putback()
double expression(); // ad for use in primary()
/// deal with numbers and parentheses
double primary()
{
Token t = ts.get();
switch (t.kind)
{
... |
#pragma once
#include <SFML/Graphics.hpp>
#include <Box2D/Box2D.h>
class Ray : public sf::Drawable
{
private:
b2World * m_pWorld; //!< Pointer to the Box2D world
sf::VertexArray m_line; //!< Line to render the ray
float m_direction; //!< Direction of the ray
float m_maxLength; //!< Maximum length of th... |
#include <bits/stdc++.h>
using namespace std;
#define USE_CPPIO() ios_base::sync_with_stdio(0); cin.tie(0)
#define MAXN 1000
#define INF 0x3f3f3f3f
#define DEVIATION 0.00000005
typedef long long LL;
int bag[MAXN+10][MAXN+10];
int conV[MAXN+10],infV[MAXN+10];
int main(int argc, char const *argv[])
{
int kase;
sc... |
/*****************************************************************************************************************
* File Name : checkForPairForSum.h
* File Location : C:\Users\AVINASH\Desktop\CC++\Programming\src\sites\geeksforgeeks\arrays\page08\checkForPairForSum.h
* Created on : Jan 2, 2014 :: 5:51:10... |
/*
NAME:
Green LEDs functionality test for a display module with TM1638 controller
DESCRIPTION:
The sketch tests all red LEDs of a display module.
- Connect controller's pins to Arduino's pins as follows:
- TM1638 pin CLK to Arduino pin D2
- TM1638 pin DIO to Arduino pin D3
- TM1638 pin STB to Ar... |
#pragma once
#include "Token.h"
class Variable :
public Token
{
public:
Variable() : Token(3) {}
void print(ostream& outs = cout) const {
outs << var;
}
~Variable() {}
private:
char var = 'x';
};
|
#ifndef AD_AMERICANBINOMIALMETHOD_H
#define AD_AMERICANBINOMIALMETHOD_H
#include "../../BinomialMethod.hpp"
template<typename X>
class AmericanBinomialMethod : public BinomialMethod<X> {
protected:
X **asset_price;
X **option_price;
public:
explicit AmericanBinomialMethod(Case<X> *_case);
~America... |
/********************************************************************************
** Form generated from reading UI file 'dimmanuel.ui'
**
** Created: Fri 3. May 09:49:03 2013
** by: Qt User Interface Compiler version 4.8.1
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
*******... |
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*-
*
* Copyright (C) 1995-2009 Opera Software ASA. All rights reserved.
*
* This file is part of the Opera web browser.
* It may not be distributed under any circumstances.
*/
#include "core/pch.h"
#ifdef WIDGET_RUNTIME_SUPPORT
# ifdef WID... |
#include "InputManager.h"
#include "InputActionButton.h"
#include "Game.h"
#include "GameFramework.h"
#include "Logfile.h"
namespace WGF
{
InputManager::InputManager()
{
//ctor
GameFramework::GetSingleton().GetLogfile().Log("The InputManager greets the World: \"Hello World!\"");
}
voi... |
#include <iostream>
#include <fstream>
#include <unordered_set>;
#include <vector>
#include <algorithm>
using namespace std;
int main() {
unordered_set<int> nrSet;
vector<int> numbers;
unordered_set<int> pairs;
const int year = 2020;
ifstream input;
input.open("input1");
ofstream output;... |
/**
* @file Policy_Allocator.hpp
*
* @brief This header contains the definition of Policy Allocator.
*
* The Policy Allocator is built using preprocesor templates to provide
* compile-time functionality through aggregate ("Policy") classes.
*
* This is made possible due to template's form of aspect-oriented pro... |
//
// C++ Interface: ProgramData
//
// Description: 与iptux相关的程序数据
//
//
// Author: Jally <jallyx@163.com>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef PROGRAMDATA_H
#define PROGRAMDATA_H
#include "sys.h"
#include "net.h"
#include "deplib.h"
/* flags
// 消息(:7);当有消息时自动打开聊天... |
#include <AFMotor.h>
const int DOORSENSOR_OPEN=A1;
const int DOORSENSOR_CLOSED=A0;
AF_DCMotor motor(3, MOTOR12_64KHZ);
void setup() {
Serial.begin(9600);
Serial.println("Motor test!");
motor.setSpeed(200);
pinMode(A0, INPUT);
pinMode(A1, INPUT);
digitalWrite(A0,HIGH);
digitalWrite(A1,HIGH);
... |
#ifndef __CP_WORLD_H__
#define __CP_WORLD_H__
#include "cocos2d.h"
#include "CPContactListener.h"
#include <unordered_set>
#define CONTACTS_SET std::unordered_set<CPContact, CPContact::CPContactHasher>
// Forward declarations
class CPBody;
// Physics world that stores all the bodies and evaluates their contacts in ... |
/****************************************************************************
* *
* Author : lukasz.iwaszkiewicz@gmail.com *
* ~~~~~~~~ *
* Lice... |
#include <cmath>
#include <thread>
#include <ros/ros.h>
#include <ros/console.h>
#include <image_transport/image_transport.h>
#include <image_geometry/pinhole_camera_model.h>
#include <tf2_ros/transform_listener.h>
#include <tf2_sensor_msgs/tf2_sensor_msgs.h>
#include <sensor_msgs/image_encodings.h>
#include <sensor... |
#line 71 "NextNumber.cc"
#include <string>
#include <vector>
#include <iostream>
#include <sstream>
#include <algorithm>
#include <numeric>
#include <functional>
#include <map>
#include <set>
#include <cassert>
#include <list>
#include <deque>
#include <iomanip>
#include <... |
#include "SceneManager.h"
#include "Scene.h"
SceneManager::SceneManager() : activeScene(nullptr) {
}
SceneManager::~SceneManager() {
}
void SceneManager::addScene(Scene* scene) {
this->scenes.emplace_back(scene);
this->activeScene = scene;
}
void SceneManager::setScenes(const ScenesList& scenes) {
thi... |
#include <iostream>
#include <string>
#include <cstring>
#include <sstream>
#include <vector>
#include <algorithm>
#include <iterator>
#include <fstream> //files
#include <errno.h> //errors
#include <stdio.h> //printf
#include <unistd.h> // sys calls
#include <sys/types.h> // O_ constants
#include <sys/ipc.h> // IPC... |
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*-
**
** Copyright (C) 1995-2006 Opera Software ASA. All rights reserved.
**
** This file is part of the Opera web browser. It may not be distributed
** under any circumstances.
**
*/
#include "core/pch.h"
#if defined(SVG_SUPPORT) && defined(SVG... |
// Copyright (c) 2020 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special ... |
#include "ICloudManager.h"
namespace android
{
BpCloudManager::BpCloudManager(const sp<IBinder>& impl) :
BpInterface<ICloudManager>(impl) {
}
void
BpCloudManager::test() {
printf("Client call server test method\n");
Parcel data, reply;
data.writeInterfaceTok... |
#ifndef __POINTLOCATOR_H__
#define __POINTLOCATOR_H__
#include <dax/Types.h>
#include <dax/cont/UniformGrid.h>
#include <dax/math/Precision.h>
#include <dax/cont/Scheduler.h>
#include <dax/cont/DeviceAdapter.h>
#include <dax/cont/internal/DeviceAdapterAlgorithm.h>
#include <dax/exec/WorkletMapField.h>
#include "Point... |
#pragma once
#include "Vector.h"
class Light
{
public:
Light();
Light(float, float, float);
Light(float);
float GetRedIntensity();
void SetRedIntensity(const float);
float GetGreenIntensity();
void SetGreenIntensity(const float);
float GetBlueIntensity();
void SetBlueIntensity(const float);
protected:
// colo... |
#include <sstream>
#include <dirent.h>
#include <iostream>
#include <string>
//#include <ctime.h>
#include "cloud.h"
//This is the constructor method
Cloud::Cloud(std::string backgroundPath, float x_pos, float y_pos, int cloudId)
{
m_CloudId = cloudId;
m_Texture.loadFromFile(backgroundPath);
m_Sprite.set... |
/* -*- Mode: c++; tab-width: 4; c-basic-offset: 4 -*-
*
* Copyright (C) 1995-2009 Opera Software AS. All rights reserved.
*
* This file is part of the Opera web browser.
* It may not be distributed under any circumstances.
*
* spoon / Arjan van Leeuwen (arjanl)
*/
#ifndef WIDGET_THUMBNAIL_GENERATOR_H
#define ... |
#include <bits/stdc++.h>
using namespace std;
#define TESTC ""
#define PROBLEM "11000"
#define USE_CPPIO() ios_base::sync_with_stdio(0); cin.tie(0)
int main(int argc, char const *argv[])
{
#ifdef DBG
freopen("uva" PROBLEM TESTC ".in", "r", stdin);
freopen("uva" PROBLEM ".out", "w", stdout);
#endif
long long m... |
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <quic/logging/QLoggerConstants.h>
namespace quic {
folly::StringPiece vantagePointString(VantagePoint vantagePoint) noe... |
int mode = 2;
double distance;
double calibration;
void setup()
{
Serial.begin(9600);
pinMode(12, INPUT);
}
void loop()
{
if(mode == 1)
{
//Read duration in microSeconds
long duration = pulseIn(12, HIGH);
//Operation Range: 20 cm min (50 cm for accurate)
distance = duration / 58.0;
calibratio... |
#ifndef MAINOPERATIONWIDGET_H
#define MAINOPERATIONWIDGET_H
#include <QWidget>
#include <QCameraImageCapture>
#include <QCameraInfo>
#include <QMediaRecorder>
namespace Ui {
class MainOperationWidget;
}
class MainOperationWidget : public QWidget
{
Q_OBJECT
public:
explicit MainOperationWidget(QWidget *par... |
#ifndef _ELEPHANT_H_
#define _ELEPHANT_H_
#include"Animal.hpp"
#include<iostream>
using namespace std;
class Elephant : public Animal
{
public:
Elephant();
Elephant(string name, char mark, int* pattern, int size, int position);
~Elephant();
virtual void showExcitement() const;
};
#endif
|
//
// AIDo.h
// holdem
//
// Created by apple on 15/5/9.
//
//
#include <string>
#include <assert.h>
#include <stdint.h>
#ifndef __holdem__AIDo__
#define __holdem__AIDo__
#include "Typedef.h"
#include "GameLogic.h"
#define AI_FOLD 1
#define AI_CALL 2
#define AI_RAISE 3
class AIDo
{
public:
//publicCard[5] 没有填0... |
#pragma once
#include <cinttypes>
#include <memory>
#include <Rendering/Texture.h>
#include <Rendering/Tileset.h>
#include <Rendering/TextureAtlas.h>
#include <Rendering/Renderer.h>
#include <Parsers/Parser.h>
#include <boost/filesystem.hpp>
namespace Sourcehold {
namespace Parsers {
us... |
//
// EPITECH PROJECT, 2018
// zappy
// File description:
// StaticText.hpp
//
#ifndef STATICTEXT_HPP
#define STATICTEXT_HPP
#include "include.hpp"
#include "utils.hpp"
class StaticText
{
public:
StaticText(irr::gui::IGUIStaticText *txt, int id);
~StaticText();
int getId() const;
void setText(const char *str);
... |
#pragma once
#include "GameObject.h"
#define TEMPSIZE 1
class Rect : public GameObject
{
private:
struct Vertex {
Vector2 position;
DWORD color;
Vector2 uv;
};
Vertex vertice[4];
LPDIRECT3DTEXTURE9 pTex;
LPD3DXEFFECT pEffect;
float deltaTime;
class Camera* camera;
class AnimationClip* clips;
Transfo... |
#pragma once
#include "Vector4.h"
#include "BasicLogicDefinitions.h"
class DynamicObjectModel
{
public:
typedef struct {
float left,top,
right,bottom;
} Rect;
enum DynamicObjectState {
DYNAMIC_OBJECT_STATE_MOVE_UP,
DYNAMIC_OBJECT_STATE_MOVE_DOWN,
DYNAMIC_OBJECT_STATE_MOVE_RIGHT,
DYNAMIC_OBJECT_STATE_M... |
#ifndef SYNTHVIEW_H
#define SYNTHVIEW_H
#include "viewwidget.h"
#include <vector>
#include "motiontrack.h"
#include "motioncombined.h"
#include "BVH.h"
class SynthView : public ViewWidget
{
Q_OBJECT
public:
typedef std::vector<MotionTrack*> MotionTrackVector;
/// Ctor
explicit SynthView(Manager*m, QW... |
// Heap
//https://cacm.acm.org/magazines/2010/7/95061-youre-doing-it-wrong/fulltext#F1
//http://theoryofprogramming.com/2015/02/01/binary-heaps-and-heapsort-algorithm/
// emplace - O(log2(n))
// pop - O(log2(n))
// remove - O(n)
// TAOCP - page 334
// 2.3.2. Binary Tree Representation of Trees
template <typename T, t... |
/*
A class responsible for the Drawing about Geometry
*/
#ifndef H_DRAWGRAPHICS_H
#define H_DRAWGRAPHICS_H
#include <gl\freeglut.h>
#include "Mesh.h"
#include "Points.h"
#include "math_3d.h"
#include "Math_basics.h"
namespace P_RVD
{
class GraphicsDrawer
{
public:
/*
Initialize the environmnet of the Gra... |
#include "clone_ptr.inl.hpp"
#include "reconstructable.hpp"
struct NonCopyable
{
explicit NonCopyable(int a)
: x(a)
, y(a)
{}
NonCopyable(int a, int b)
: x(a)
, y(b)
{}
NonCopyable(const NonCopyable&) = delete;
NonCopyable& operator=(const NonCopyable&) = delete;
int x, y;
};
#include <iostream>
i... |
// Copyright (c) 2020 The Orbit 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 "TracepointInfoManager.h"
#include "gtest/gtest.h"
TEST(TracepointInfoManager, Contains) {
TracepointInfoManager tracepoint_info_manager;
... |
/*
* Copyright 2012 Google 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... |
#include <systemc.h>
#include <fstream>
#include "tester.h"
#include "adder1.h"
using namespace std;
int sc_main(int argc, char *argv[]) {
sc_signal <bool> mod_in1, mod_in2, mod_cin;
sc_signal <bool> mod_out, mod_cout;
sc_clock clk("clock", 10, SC_NS);
Adder module_adder("adder");
module_adder.in1... |
#include "tpltn.h"
int main() {
string Name;
getline(cin, Name); // cin >> Name;
string Surname;
getline(cin, Surname);
string FullName = Name + ' ' + Surname; // конкатенация строк
cout << FullName << endl;
cout << FullName.size() << endl; // длина строки
//C-style strings:
char SayHello[] = {'H', '... |
#include "test_shader.h"
namespace sloth {
TestShader * TestShader::m_Inst(nullptr);
TestShader * TestShader::inst()
{
if (m_Inst == nullptr)
m_Inst = new TestShader();
return m_Inst;
}
void TestShader::loadModel(const glm::mat4 & model)
{
glProgramUniformMatrix4fv(m_ID, m_LocModel, 1, GL_FALSE, glm:... |
#include <iostream>
#include <fstream>
#include <string>
#include "myClasses.cpp"
using namespace std;
const int REGISTRATION = 1;
const int AUTHENTICATION = 2;
const int EXIT = 3;
int main()
{
BusinessManager businessManager;
businessManager.setMenuSelection();
while (businessManager.getMenuSelection()... |
/******************************************************************************
* $Id$
*
* Project: libLAS - http://liblas.org - A BSD library for LAS format data.
* Purpose: LAS header class
* Author: Mateusz Loskot, mateusz@loskot.net
*
**********************************************************************... |
#include <iostream>
#include <vector>
using namespace std;
int main() {
int n;
cin>>n;
int a[n];
int leftout = 0,rightout = n - 1,temp = 0,sum = -1,templeft = 0;
for(int i = 0;i < n;i++){
cin>>a[i];
temp = temp + a[i];
if(temp > sum){
sum = temp;
rightout = i;
... |
#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
int x, n, q, a[100000];
cin >> n >> q;
for(int i=0;i<n; ++i) cin>>a[i];
sort(a, a+n);
for(int i=0; i<q; ++i)
{
cin >> x;
int lo, hi, mid;
lo = 0;
hi = n-1;
bool isPresent = false;
while(lo <= hi)
{
mid = (lo + hi)/2;
... |
//
// Created by charris on 6/29/20.
//
#include "ros/ros.h"
#include "std_msgs/String.h"
#include "ros_tutorials/Score.h"
class RosNodeExample{
public:
explicit RosNodeExample(ros::NodeHandle &nh): _nh(nh){
initialize_stuff();
}
void initialize_stuff() {
ROS_INFO("Initializing subs and ... |
/*
Copyright (c) 2007-2022 Xavier Leclercq
Released under the MIT License
See https://github.com/ishiko-cpp/test-framework/blob/main/LICENSE.txt
*/
#include "TestHarnessTests.hpp"
#include "Ishiko/TestFramework/Core/TestHarness.hpp"
#include <boost/filesystem.hpp>
#include <Ishiko/Configuration.hpp>
using... |
/*
* Stopping Times
* Copyright (C) Leonardo Marchetti 2011 <leonardomarchetti@gmail.com>
*/
#ifndef _TESTER_H_
#define _TESTER_H_
#include "test.h"
#include <memory>
#include <vector>
#include <utility>
#include <vector>
#include "logger.h"
namespace StoppingTimes{ namespace Testing{
class Tester {
public:
... |
#include <conio.h>
#include <iostream.h>
void main () {
int op,op1,op2,op3,op4;
float feet, meter;
do { // Start of Main dowhile
clrscr();
cout <<"\n\t\tOPTIONAL SOFTWARE\n";
cout <<"\n\n\t1. Calculator";
cout <<"\n\n\t2. Weight";
cout <<"\n\n\t3. Temperature";
cout <<"\n\n\t4. Leng... |
#include <iostream>
#include <string>
using namespace std;
inline int min(int a, int b) {
return (a>b)? b : a;
}
int edit_dist(string &str1, string &str2) {
int n1 = str1.size();
int n2 = str2.size();
int d[str1.size()][str2.size()];
for(int i = 0; i <= n2; i++) d[0][i] = i;
for(int i = 0; i <= n1; i++... |
//
// Created by Данил Козловский on 2019-03-28.
//
#ifndef INC_2_FACTORY_H
#define INC_2_FACTORY_H
#include "triangle.h"
#include "rectangle.h"
class Factory {
public:
triangle* addObjectTr();
rectangle* addObjectRe();
void deleteObjects(rectangle *re, triangle *tr);
};
#endif //INC_2_FACTORY_H
|
// Created on: 2001-09-10
// Created by: Sergey KUUL
// Copyright (c) 2001-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as p... |
//: C16:TStack2.h
// Kod zrodlowy pochodzacy z ksiazki
// "Thinking in C++. Edycja polska"
// (c) Bruce Eckel 2000
// Informacje o prawie autorskim znajduja sie w pliku Copyright.txt
// Szablon klasy Stack, zawierajacy zagniezdzony iterator
#ifndef TSTACK2_H
#define TSTACK2_H
template<class T> class Stack {
... |
#ifndef FOOTSIES_H
#define FOOTSIES_H
#include "Character/Character.h"
#include "Character/Move.h"
#include "Character/Frame.h"
#include "Stage/Stage.h"
class Character;
class Footsies
{
public:
int initial_separation;
int stage_boundaries;
Character *character1;
Character *character2;
Stage *sta... |
#ifndef BAZOOKABULLET_H
#define BAZOOKABULLET_H
#include "bullet.h"
class BazookaBullet : public Bullet
{
void setRadiusDamage();
bool isInRadius(Element *e);
int _radius;
public:
BazookaBullet(XY pos, XY velo, int bullet_power, int radius, Team *aggressor_team, GameManager *game);
void hurtElemen... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is distributed in the hope that it will be us... |
#ifndef CUDA_GKNP_KERNELS_H_
#define CUDA_GKNP_KERNELS_H_
/* -------------------------------------------------------------------------- *
* OpenMM-GKNP *
* -------------------------------------------------------------------------- */
#include "GKNPKernels... |
#pragma once
#include <iberbar/RHI/D3D9/Headers.h>
#include <iberbar/RHI/RenderState.h>
namespace iberbar
{
namespace RHI
{
namespace D3D9
{
class CBlendState
: public IBlendState
{
public:
CBlendState( const UBlendDesc& Desc )
: IBlendState( Desc )
{
}
};
class CDepthSten... |
/********************************************************************************
** Form generated from reading UI file 'menuprincipale.ui'
**
** Created: Wed 18. Dec 01:59:44 2013
** by: Qt User Interface Compiler version 4.8.1
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
*... |
#ifndef GNTEGIDKEY_H
#define GNTEGIDKEY_H
#include "GnAnimationKey.h"
class GnTegIDKey : public GnAnimationKey
{
GnDeclareAnimationStream;
protected:
guint32 mTegID;
public:
GnTegIDKey(){};
virtual ~GnTegIDKey(){};
inline guint32 GetTegID() {
return mTegID;
}
inline void SetTegID(guint32 val) {
mTegID = v... |
#include <stdio.h>
#include <iostream>
#include <sstream>
#include <vector>
#include <fstream>
using namespace std;
fstream fin;
ofstream fout;
const int MAX = 1000;
const int INF = 0x3F3F3F3F;
int g[MAX][MAX];
int n;
void input(void) {
vector<int> digits(3, 0);
int i1;
int digit;
fin.open("input.txt");
string... |
/* -*- Mode: c++; tab-width: 4; c-basic-offset: 4 -*-
*
* Copyright (C) 1995-2008 Opera Software AS. All rights reserved.
*
* This file is part of the Opera web browser.
* It may not be distributed under any circumstances.
*/
#include "core/pch.h"
#ifdef INTERNAL_SPELLCHECK_SUPPORT
#ifndef SPC_USE_HUNSPELL_ENG... |
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*-
**
** Copyright (C) 1995-2008 Opera Software AS. All rights reserved.
**
** This file is part of the Opera web browser. It may not be distributed
** under any circumstances.
** psmaas - Patricia Aas
*/
#include "core/pch.h"
#ifdef HISTORY_SU... |
/**
* Peripheral Definition File
*
* I2C - Inter-integrated circuit interface
*
* MCUs containing this peripheral:
* - STM32F0xx
* - STM32F3xx
* - STM32F7xx
* - STM32H7xx
* - STM32L0xx
* - STM32L4xx
*/
#pragma once
#include <cstdint>
#include <cstddef>
namespace io {
struct I2c {
/** Control register 1
... |
#include "DynamicArray.h"
// 先序遍历
void preOrderRecursion(cNode* root){
if (root == nullptr)
return;
printf("%c", root->name);
preOrderRecursion(root->lChild);
preOrderRecursion(root->rChild);
}
// 中序遍历
void midOrderRecursion(cNode* root){
if(root == nullptr)
return;
m... |
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*-
**
** Copyright (C) 1995-2011 Opera Software ASA. All rights reserved.
**
** This file is part of the Opera web browser. It may not be distributed
** under any circumstances.
*/
#ifndef _PLUGIN_H_INC_
#define _PLUGIN_H_INC_
#ifdef _PLUGIN_SU... |
/*
Copyright (c) 2014 Mircea Daniel Ispas
This file is part of "Push Game Engine" released under zlib license
For conditions of distribution and use, see copyright notice in Push.hpp
*/
#pragma once
#include "Core/Path.hpp"
#include "Core/Variant.hpp"
#include "Core/ResourceManager.hpp"
#include "Render/Uniform.hpp"
... |
#pragma once
#include <iostream>
#include <string>
#include <fstream>
#include <stdio.h>
#include <cstring>
#include <cstdio>
#include "prototyps.h"
using namespace std; |
#pragma once
#include"pch.h"
#include"WICTextureLoader.h"
static const WCHAR* TEXTURE_PATH = L"Textures/";
static const WCHAR* ERROR_TEXTURE = L"error_tex.png";
class ResourceHandler
{
private:
ResourceHandler() {};
std::map<const std::wstring, ID3D11ShaderResourceView*> map;
std::map<const std::wstring, DirectX::... |
//
// stuctsProj1.cpp
// dataone
//
// Created by John Goza on 6/16/16.
// Copyright © 2016 JohnGoza. All rights reserved.
//
#include <stdio.h>
#include "assignment.h"
#include <fstream>
#include <list>
using namespace std;
int main(){
} |
/* XMRig
* Copyright (c) 2018-2021 SChernykh <https://github.com/SChernykh>
* Copyright (c) 2016-2021 XMRig <https://github.com/xmrig>, <support@xmrig.com>
*
* 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
* ... |
#include <string>
#include <cstdio>
#include <chrono>
#include <iostream>
#include <vector>
#include <utility>
#include <algorithm>
using namespace std;
typedef vector<int> TrabajosFinales;
typedef int Indice;
typedef vector<vector<int> > Costos;
int cantTrabajos;
Costos cs;
vector<vector<int> > matriz;
int minimiz... |
#include <iostream>
#include <algorithm>
int main(void)
{
int n;
scanf("%d", &n);
int** originArr = new int*[n];
int** solArr = new int*[n];
for (int i = 0; i < n; i++)
{
originArr[i] = new int[3];
solArr[i] = new int[3];
}
for (int i = 0; i < n; i++)
{
for (int j = 0; j < 3; j++)
{
scanf("%d",... |
/*
* levelset.h
* deflektor-ds
*
* Created by Hugh Cole-Baker on 4/1/09.
* A levelset manages a series of levels, and plays through them in sequence.
* There are also some functions for fading out the screen in between levels
* and if the player gets "game over"
*/
#ifndef deflektor_levelset_h
#define de... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.