text stringlengths 8 6.88M |
|---|
/****************************************************************************
* *
* Author : lukasz.iwaszkiewicz@gmail.com *
* ~~~~~~~~ *
* Lice... |
// Created on: 1994-11-16
// Created by: Christian CAILLET
// Copyright (c) 1994-1999 Matra Datavision
// Copyright (c) 1999-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 ... |
//
// Created by yshhuang on 2020-02-12.
//
#include "jni.h"
#include <stdio.h>
#include <iostream>
#include <string>
#include <torch/script.h> // One-stop header.
#include <memory>
#include "com_quickcan_image_watermarkdetection_component_WatermarkDetector.h"
JNIEXPORT jboolean JNICALL Java_com_quickcan_image_wate... |
#ifndef MP4_PARSER_H
#define MP4_PARSER_H
#include "mp4v2/mp4v2.h"
class CMP4Parser
{
public:
CMP4Parser();
virtual ~CMP4Parser();
int GetTrackCount();
int GetTrackFormat(int idx);
int SelectTrack(int type);
bool SetDataSource(char* file);
bool UnselectTrack(int idx);
bool ReadSampleData(unsigned char* data, ... |
#include <Poco/Exception.h>
#include <Poco/Logger.h>
#include <Poco/File.h>
#include <Poco/Util/Application.h>
#include "util/ApplicationConfigurationLoader.h"
using namespace Poco;
using namespace Poco::Util;
using namespace BeeeOn;
ApplicationConfigurationLoader::ApplicationConfigurationLoader(
Application &app)... |
/*
==============================================================================
blueprint_ReactApplicationRoot.h
Created: 9 Dec 2018 10:20:37am
==============================================================================
*/
#pragma once
#include <map>
#include "blueprint_EcmascriptEngine.h"
#includ... |
//
// AudioController.h
// Zengine
//
// Created by zs on 15-2-19.
//
//
#ifndef __Zengine__AudioController__
#define __Zengine__AudioController__
#include "cocos2d.h"
#include "SimpleAudioEngine.h"
#include <string>
USING_NS_CC;
using namespace std;
#define AUDIO AudioController::Instance()
class AudioControlle... |
/* -*- 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... |
/*
kamalsam
*/
#include<iostream>
#include<algorithm>
#include<functional>
#include<stdio.h>
using namespace std;
int main()
{
int t,i;
scanf("%d",&t);
for(i=0;i<t;i++)
{
int n,k,j,r=0;
scanf("%d%d",&n,&k);
long a[n],ans[n],min;
for(j=0;j<n;j++)
scanf("%ld",&a[j]... |
#pragma once
#include <ionshared/misc/helpers.h>
namespace ionir {
class Identifier;
struct Identifiable {
ionshared::Ptr<Identifier> identifier;
explicit Identifiable(ionshared::Ptr<Identifier> identifier);
};
}
|
#include "stdio.h"
#include "conio.h"
float Avrg(float a, float b, float c)
{
float d;
d=(a+b+c)/3;
return d;
}
void main(void)
{
float a,b,c;
float d;
clrscr();
printf("Enter 1st Value = ");
scanf("%f",&a);
printf("Enter 2nd Value = ");
scanf("%f",&b);
printf("Enter 3rd Value = ");
scanf("%f"... |
// Example 3_3 : namespaces
// Created by Oleksiy Grechnyev 2017
#include <iostream>
#include <string>
#include <vector>
using namespace std;
/// The tag() function prints the namespace it's in
void tag() { cout << "::" << endl; }
//---------
namespace B {
void tag() { cout << "::B" << endl; }
const string ... |
#include <iostream>
#include <algorithm>
#include <cstring>
using namespace std;
const int MOD = 1000000007;
int cache[101];
// 2*width ํฌ๊ธฐ์ ์ฌ๊ฐํ์ ์ฑ์ฐ๋ ๋ฐฉ๋ฒ์ ์๋ฅผ MOD๋ก ๋๋ ๋๋จธ์ง๋ฅผ ๋ฐํํ๋ค.
int tiling(int width){
// ๊ธฐ์ ์ฌ๋ก: width๊ฐ 1์ดํ์ผ ๋
if(width <= 1) return 1;
// ๋ฉ๋ชจ์ด์ ์ด์
int &ret = cache[width];
if(ret != -1) r... |
#include<iostream>
#include<fstream>
#include<map>
using namespace std;
int main()
{
ifstream f("in.txt");
map<int, bool> m;
int sum = 0;
int k;
bool open = true;
m[sum] = true;
while (open)
{
while (!f.eof())
{
f >> k;
sum += k;
if (m[sum])
{
cout << sum;
open = false;
break;
... |
#ifndef TASKQUEUE_H
#define TASKQUEUE_H
#include <atomic>
#include <iostream>
#include <mutex>
#include <condition_variable>
template <typename T>
class TaskQueue {
public:
TaskQueue() : head(nullptr), tail(nullptr), finished(false),
n_sleepers(0), mutex(), cond() {}
~TaskQueue() {
node* cur ... |
#ifndef REACTOR_BASE_OS_H
#define REACTOR_BASE_OS_H
#include <vector>
#include <string>
namespace reactor {
namespace base {
namespace os {
typedef std::vector<std::string> PathList;
PathList listdir(const std::string &path);
void listdir(const std::string &path, PathList *result);
} // namespace os
} // namespace... |
#include <vector>
#include <array>
#include <cmath>
/**@brief The class Neuron to emulate one active neuron
*
*
*/
#ifndef NEURON_H
#define NEURON_H
class Neuron
{
private :
//------------Attributes------------------------------------------------
double potential_ ; ///< The membrane potentia... |
/**
* AKA
* Fast Inverse Square Root
* Quake III Algorithm
* 0x5F3759DF Algorithm
*/
#include <iostream>
#include <math.h>
float FastInvSqrt(float num)
{
long i;
float x, y;
const float threehalfs = 1.5F;
const float half = 0.5F;
x = num * half;
y = num;
i = *(long *)&y;
i = 0x5F... |
#include "Application.h"
#include "CHARIOT.h"
#include "BALL.h"
#include "ModuleParticles.h"
#include "ModuleCollision.h"
#include "ModuleEnemies.h"
#include "ModuleRender.h"
#include "ModuleInterface.h"
#include "ModuleSceneTemple.h"
#include "SDL\include\SDL_timer.h"
CHARIOT::CHARIOT(int x, int y, int type) : Enem... |
#include "constants.h"
extern const double eps = 1e-10;
extern const int nMax = 101;
|
// Created on: 1998-04-09
// Created by: Andre LIEUTIER
// Copyright (c) 1998-1999 Matra Datavision
// Copyright (c) 1999-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... |
#pragma once
#include "../ConstantBufferGPU.h"
class PostEffect;
/// <summary>
/// ใฌใฆใทใขใณใใฉใผ
/// </summary>
class GaussianBlur
{
public:
/// <summary>
/// ๅๆๅใ
/// </summary>
/// <param name="srcTexture">ใใฉใผใใใใใใฏในใใฃใฎSRV</param>
/// <param name="blurIntensity">ใใฉใผใฎๅผทใใๅคใๅคงใใใปใฉๅผทใใใฉใผใใใใใ</param>
void Init(ID3D11Sha... |
#pragma once
#include "model.h"
#include "vector.h"
#include "map.h"
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>
using namespace std;
class word_model : public markov_model {
public:
// give the model the example text and the model order; the model should do any preprocessing in thi... |
#include "Module/Application.h"
#include "Utils/Timer.h"
using namespace Rocket;
Application* Application::s_Instance = nullptr;
void Application::LoadConfig(const Ref<ConfigLoader>& config)
{
m_Config = config;
m_AssetPath = config->GetAssetPath();
RK_CORE_INFO("Asset Path {0}", m_AssetPath);
}
int App... |
#include <opencv2/opencv.hpp>
int main(int argc, char** argv)
{
cv::Mat test1(3,1, CV_32FC3, cv::Scalar(1.0f, 0.0f, 1.0f));
cv::Mat test2(3,3, CV_32FC3, cv::Scalar(1.0f, 0.0f, 1.0f));
std::cout << test1 << std::endl;
std::cout << test2 << std::endl;
return 0;
}
|
#include <functional>
#include <queue>
#include <vector>
#include <iostream>
#include <string>
using namespace std;
int trap(vector<int>& height)
{
int ans = 0;
int size = height.size();
for (int i = 1; i < size - 1; i++) {
int max_left = 0, max_right = 0;
cout << "move to left------------... |
#include<string>
#ifndef CONSOLETEXTSTYLE_H
#define CONSOLETEXTSTYLE_H
using namespace std;
struct OutputTable
{
string **content;
int columnsCount;
int rowsCount;
string *highLights;
int highLightsCount;
int primaryColor;
int headerColor;
int highLightsColor;
};
OutputTable *CreateOutputTable();
bool KillOutp... |
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*-
**
** Copyright (C) 1995-2012 Opera Software AS. All rights reserved.
**
** This file is part of the Opera web browser. It may not be distributed
** under any circumstances.
*/
#ifndef OPDRAGOBJECT_H
#define OPDRAGOBJECT_H
#if defined DRAG_S... |
//===-- OR1KInstrInfo.cpp - OR1K Instruction Information --------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
// Created on: 2015-08-06
// Created by: Ilya Novikov
// Copyright (c) 2004-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 ... |
/* WiFi Example
* Copyright (c) 2016 ARM 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 at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "MovingPlatform.h"
AMovingPlatform::AMovingPlatform() {
PrimaryActorTick.bCanEverTick = true;
// Allow movement
SetMobility(EComponentMobility::Movable);
Speed = 5.f;
}
void AMovingPlatform::BeginPlay() {
Super::BeginPlay(... |
#include "ChangeCardResultProc.h"
#include "HallHandler.h"
#include "Logger.h"
#include "ProcessManager.h"
#include "GameCmd.h"
#include "GameServerConnect.h"
#include "PlayerManager.h"
#include <string>
REGISTER_PROCESS(GMSERVER_MSG_CHANGE_RESULT, ChangeCardResultProc)
ChangeCardResultProc::ChangeCardResultProc()
{
... |
int f = 100000;
int geygrValue = 0;
int i = 0;
unsigned long previousMillis = 0; // last time update
long interval = 2000; // interval at which to do something (milliseconds)
void setup()
{
Serial.begin(9600);
pinMode(13, OUTPUT);
pinMode(2, INPUT_PULLUP);
attachInterrupt(digitalPinToInterrupt(2), ding... |
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long n,r,ary[100000],right,left,prev;
int t;
bool flag; //direction
scanf("%d",&t);
for(int i =0;i < t;i++)
{
flag = 0;
scanf("%lld %lld",&n,&r);
for(int temp = 0;temp < n;temp++)
scanf("%l... |
๏ปฟ// Task1.ะะพะผะฟะปะตะบัะฝัะตะงะธัะปะฐ.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include "CComplex.h"
int main()
{
CComplex c1(2, -1);
CComplex c2(1, 1);
CComplex c3 = c1 / c2;
cout << c3;
}
|
#pragma once
#include "llvm/Support/DebugLoc.h"
namespace LLVM
{
ref class MDNode;
ref class LLVMContext;
public ref class DebugLoc
{
private:
bool constructed;
internal:
llvm::DebugLoc *base;
protected:
DebugLoc(llvm::DebugLoc *base);
internal:
static inline DebugLoc ^_wrap(llvm::DebugLoc *base);
public:
!... |
#ifndef _HallHeartBeatProc_H_
#define _HallHeartBeatProc_H_
#include "IProcess.h"
#include "ProcessFactory.h"
class HallHeartBeatProc :public IProcess
{
public:
HallHeartBeatProc();
virtual ~HallHeartBeatProc();
virtual int doRequest(CDLSocketHandler* clientHandler, InputPacket* inputPacket,Context* pt) ;
v... |
// Created on: 1993-09-28
// Created by: Bruno DUMORTIER
// Copyright (c) 1993-1999 Matra Datavision
// Copyright (c) 1999-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 GN... |
#pragma once
#include "Core/BehaviorRegister.h"
namespace Hourglass
{
class Entity;
class IBehavior
{
public:
enum Result
{
kSUCCESS,
kFAILURE,
kRUNNING
};
virtual ~IBehavior() { }
virtual void LoadFromXML( tinyxml2::XMLElement* data ) { };
virtual void AddBehavior( IBehavior* behavior ... |
// Created on: 2004-05-20
// Created by: Sergey ZARITCHNY <szy@opencascade.com>
// Copyright (c) 2004-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 Publ... |
#include "ModelViewOptimization.h"
#include <ComputerVisionLib/Common/EigenHelpers.h>
#include <ComputerVisionLib/Reconstruction/ReconstructionError.h>
#include <unsupported/Eigen/LevenbergMarquardt>
#include <iostream>
std::tuple<bool, double, Eigen::Affine3d> Cvl::ModelViewOptimization::optimize(
CameraModel const ... |
//scriptinterface.hpp
//Scripting interface for game logic.
//Created by Lewis Hosie
//25-08-11
#ifndef E_SCRIPTINTERFACE
#define E_SCRIPTINTERFACE
#include <python.h> //MUST BE FIRST
#include <string>
class world;
class worldrenderer;
class renderworld;
class inputpasser;
class scriptinterface{
PyObject *themodul... |
#include "EnemyData.h"
FEnemyData::FEnemyData()
{
CapsuleHalfHeight = 88.0f;
CapsuleRadius = 34.0f;
MaxMoveSpeed = 400.0f;
UseBehaviorTreeAssetPath = FSoftObjectPath(TEXT("/Game/Blueprints/AI/Default/BT_EnemyDefault.BT_EnemyDefault"));
}
|
#pragma once
#include "di/DIXmlLoader.h"
#include "util/ApplicationConfigurationLoader.h"
namespace BeeeOn {
class DIApplicationConfigurationLoader : public ApplicationConfigurationLoader {
public:
DIApplicationConfigurationLoader(Poco::Util::Application &app);
virtual ~DIApplicationConfigurationLoader();
void l... |
/**
* @file Campsite.h
*
* Implementation for the Campsite class
*
* @remarks
* Provided as a resource for the "Random Access Files"
* laboratory (CS2124).
*/
#ifndef CAMPSITE_H
#define CAMPSITE_H
#include <iostream>
#include <string>
#include "CampsiteRecord.h"
class Campsite {
public:
Campsite(... |
๏ปฟ//===========Include section============
#include <iostream>
#include <cstdlib> // for std::system()
#include "io.h"
#include "Board.h"
#include "Game_handler.h"
//=============Main section=============
int main()
{
Board board;
Game_Handler game(board);
// the main function
game.Run_game();
... |
//
// Created by roy on 12/22/18.
//
#ifndef PROJECTPART1_IFCOMMAND_H
#define PROJECTPART1_IFCOMMAND_H
#include "ConditionParser.h"
/**
* If command is a conditional command, which executes a block of commands if
* a certain condition is met.
* Extends ConditionParser.
*/
class IfCommand : public ConditionParse... |
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
long long i, led;
string number;
cin>>n;
while(n--)
{
led = 0;
cin>>number;
for(i=0; i<number.length(); i++)
{
if(number[i]=='1')led = led + 2;
if(number[i]=='2')led = led + 5... |
#include <cassert>
#include <memory>
#include <sstream>
#include <string>
#include <vector>
#include "arch_graph_cluster.h"
#include "arch_graph_system.h"
#include "bsgs.h"
#include "dbg.h"
#include "task_orbits.h"
namespace cgtl
{
std::string
ArchGraphCluster::to_gap() const
{
if (_subsystems.empty())
return ... |
/**
\file Editor.h
Editor class's declaration
\author Antoine Colmard (2014)
\author Nicolas Prugne (2014)
\copyright 2014 Institut Pascal
*/
#ifndef EDITOR_H
#define EDITOR_H
#include <vector>
#include <string>
#include <fstream>
#include "Loader.h"
#include "ModifierGroup.h"
#include "Selection.h"
#include "Traje... |
#include <fstream>
#include "../imtjson/json.h"
#include "../imtjson/validator.h"
using namespace json;
static void printRej(std::ostream &out, Value path, Value rule) {
for (Value x : path) {
out << "/";
if (x.type() == number) out << "[" << x.getUInt() << "]";
else out << x.getString();
}
out << ":\t";
o... |
// HugMe.cpp: implementation of the HugMe class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Chat.h"
#include "HugMe.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
// chai library //
#ifndef M... |
#include "myTV.h"
int myTV::voltage = 220;
myTV::myTV(int c, int v, const char* const ln): m_nChannel(c),m_nVolume(v),bPower(false), CmpLogo("samsung") { Locate_name = new string(ln); }
myTV::myTV(int c, int v, string ln) :m_nChannel(c), m_nVolume(v), bPower(false), CmpLogo("samsung") { Locate_name = new string(ln); }... |
#include "example.hpp"
#include <gtest/gtest.h>
TEST(Example, getTrue)
{
EXPECT_TRUE(Example().getTrue());
}
|
// Created by: Peter Kurnev
// Copyright (c) 2010-2014 OPEN CASCADE SAS
// Copyright (c) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
// Copyright (c) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT,
// EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// This file is part of Open CASCADE Techn... |
//----------------------------------------------------------------------------
//
// All game tables should go in this file.
//----------------------------------------------------------------------------
#include "game.h"
//----------------------------------------------------------------------------
struct... |
//
// CHttpResponse.h
// client
//
// Created by Sergey Proforov on 09.05.16.
// Copyright (c) 2016 Proforov Inc. All rights reserved.
//
#ifndef __client__CHttpResponse__
#define __client__CHttpResponse__
class CHttpResponse{
};
#endif /* defined(__client__CHttpResponse__) */
|
#include <bits/stdc++.h>
using namespace std;
#define REP(i,n) for(int i=0;i<(n);i++)
#define for1(i,n) for(int i=1;i<=n;i++)
#define FOR(i,a,b) for(int i=(a);i<=(b);i++)
#define FORD(i,a,b) for(int i=(a);i>=(b);i--)
const int INF = 1<<29;
const int MOD=1e9 + 7;
#define pp pair<ll,ll>
typedef long long int ll;
bool is... |
#include<vector>
using std::vector;
#include<iostream>
#include<algorithm>
#include<memory>
using std::shared_ptr;
#include<string>
using std::string;
#include<stack>
using std::stack;
#include<queue>
using std::priority_queue;
/*
Given n non-negative integers representing an elevation map where the width of each bar i... |
// Example 6.7 : Random numbers
// Created by Oleksiy Grechnyev 2017
#include <iostream>
#include <string>
#include <random>
#include <ctime>
//==============================
int main(){
using namespace std;
{
cout << "\nRandom numbers: :\n\n";
// Create a random engine and seed it
// ... |
#include "utils.hpp"
void* ft_memcpy(void* dst, void const* src, size_t len)
{
u_int64_t* plDst = (u_int64_t*) dst;
u_int64_t* plSrc = (u_int64_t*) src;
// Check if the memory is 8 byte aligned, meaning the address is a multiple of 8 <==> the three first bits should be 0s
// You need to cast the pointer int... |
/*
* driver.cc
*
* Created on: Jan 7, 2010
* Author: parthy
*/
#include <l4/sys/irq>
#include <l4/sys/capability>
#include <l4/re/env>
#include <l4/re/namespace>
#include <l4/re/util/cap_alloc>
#include <l4/re/util/object_registry>
#include <l4/io/io.h>
#include <x86/l4/util/port_io.h>
#include <stdio.h>
#... |
// searches.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "pch.h"
#include <iostream>
#include <vector>
#include <algorithm>
#include <sstream>
#include <tuple>
#include <queue>
#include <set>
#include <optional>
#include <deque>
#include "json.hpp"
struct StateSpa... |
//---------------------------------------------------------------------------
#ifndef utilH
#define utilH
//---------------------------------------------------------------------------
char* __fastcall ticks_string( void );
char* __fastcall TimeStamp( SYSTEMTIME time );
char *GetPeerSocketIp( SOCKET s );
int __fastcal... |
#include <iostream>
#include "solution.h"
template <typename T>
T read()
{
T value;
std::cin >> value;
return value;
}
int main()
{
const auto H = read<size_t>();
std::vector<std::string> maze(H);
for (auto& row : maze) {
row = read<std::string>();
}
const auto F = read<size_t>();
MazeFixing so... |
/* -*- 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 LOGDOCENUM_H
#define LOGDOCENUM_H
class SpecialNs
{
publ... |
#include "Token.h"
//#include "Utils.h"
#include <string>
#include <sstream>
using namespace std;
Token::Token() {
type = NUL;
line = 0;
value = "";
}
Token::Token(sting type, string value, int line) {
tokenType = newType;
lineNumber = newTokensLineNumber;
value = newValue;
}
/*Token::Toke... |
/*------------------------------------------------------------------------------*/
/* Developed By: Sri Sagar Abhishek Yeluri */
/* Version : 1.0 */
/* Super Simple File Indexer ... |
class ItemSilverBar: CA_Magazine
{
scope = 2;
count = 1;
worth = 1;
type = 256;
displayName = $STR_EPOCH_SILVER;
model = "\z\addons\dayz_epoch\models\ItemSilverBar1oz.p3d";
picture = "\z\addons\dayz_epoch\pictures\equip_silver_bar_CA.paa";
descriptionShort = $STR_EPOCH_SILVER_DESC;
class ItemActions
{
c... |
#include "../include/Action.h"
#include "../include/Restaurant.h"
//Base Action
BaseAction::BaseAction():errorMsg(),status(PENDING){}
ActionStatus BaseAction::getStatus() const {
return status;
}
void BaseAction::complete() {
status = COMPLETED;
}
void BaseAction::error(std::string errorMsg) {
status = ... |
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*-
*
* Copyright (C) 1995-2011 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"
#include "adjunct/quick/managers/DesktopEx... |
#pragma once
namespace config {
struct pid_param_t {
double p = 0, i = 0, d = 0;
double lower = 0, upper = 0;
double sampleT = 1;
};
constexpr double startX = 1000;
constexpr double startY = 1000;
constexpr pid_param_t transCont{ 2, 0, 0.5, -500, 500, 1.0/50.0 };
constexpr pid_param_t angleCont{ 0.08, ... |
/* -*- 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.
*/
#ifndef DEVICEAPI_OPSTRINGHASHMULTIMAP_H
#define DEVICEAPI_OPST... |
#include "operators.hpp"
#include "datastructures/multi_tree_view.hpp"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "space/initial_triangulation.hpp"
#include "tools/linalg.hpp"
using namespace space;
using namespace datastructures;
constexpr int max_level = 6;
Eigen::VectorXd RandomVector(const Trian... |
#define GLEW_STATIC
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
#include "CL/cl.h"
#include "CL/cl_gl.h"
#pragma OPENCL EXTENSION cl_khr_local_int32_extended_atomics : enable
#pragma OPENCL EXTENSION cl_khr_global_int32_extended_atomics : enable
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#inclu... |
#include "systemlib.h"
int consumer()
{
return systemlib();
}
|
#pragma once
#include <set>
#include <string>
// An internal representation of a singular equation within
// a system for use by the EquationSolver class
// Representation:
// name (string) - The alpha name of the variable
// solved (bool) - True flag when numerical answer is found
// constant (int) - Intemediate (a... |
// Author: Andrew Edwards
// Email: ancedwar@ucsc.edu
// ID: 1253060
// Date: 2015 Jan 23
//
// bigint.cpp
#include <cstdlib>
#include <exception>
#include <limits>
#include <stack>
#include <stdexcept>
#include <algorithm>
using namespace std;
#include "bigint.h"
#include "debug.h"
#include "util.h"
#define ... |
#include "MainView.hpp"
MainController * MainView::makeController(Model *m)
{
return new MainController(m, this);
}
MainView::MainView(QWidget *parent) : View(parent), hl(new QHBoxLayout(this))
{
resize(500, 500);
// Layout orizzontale
hl->setContentsMargins(0, 0, 0, 0);
// Barra degli strumenti
QToolBa... |
#ifndef _ABSTRACT_SCREEN_H_
#define _ABSTRACT_SCREEN_H_
#include "../Graphics.h"
#include "../Input.h"
#include "../../StepTimer.h"
#pragma once
class AbstractScreen
{
public:
void Initialize(std::shared_ptr<Graphics> graphics, std::shared_ptr<Input> input) { m_Graphics = graphics; m_Input = input; };
virtual vo... |
๏ปฟ#include "AbstractMainController.h"
#include "HttpAgent.h"
#include "Wpp.h"
#include <QNetworkReply>
#include <QNetworkAccessManager>
#include <iostream>
#include <QDebug>
#include <QJsonObject>
#include <QJsonDocument>
#include <QJsonArray>
#include <QDesktopServices>
#include <QFile>
#include <QCryptographicHash>
... |
// PQElmt.cpp
#include "PQElmt.hpp"
PQElmt::PQElmt() {
this->value = 0;
this->prio = 0;
}
PQElmt::PQElmt(int value, int prio) {
this->value = value;
this->prio = prio;
}
PQElmt::PQElmt(const PQElmt& other) {
this->value = other.value;
this->prio = other.prio;
}
PQElmt::~PQElmt() {
//
}
int PQElmt::ge... |
/* ***** BEGIN LICENSE BLOCK *****
* FW4SPL - Copyright (C) IRCAD, 2012-2013.
* Distributed under the terms of the GNU Lesser General Public License (LGPL) as
* published by the Free Software Foundation.
* ****** END LICENSE BLOCK ****** */
#ifndef _GDCMIO_DICOMSTUDYWRITER_HPP_
#define _GDCMIO_DICOMSTUDYWRITER_HPP... |
#include "stdafx.h"
#include <iostream>
#include <list>
#include <map>
#include <deque>
#include <string>
#include <iterator>
#include <initializer_list>
using namespace std;
void main() {
setlocale(LC_CTYPE, "rus");
multimap<string, long, less<string>> lst;
lst.insert(pair<string, float>("a", 1.2)... |
/* -*- Mode: c++; indent-tabs-mode: nil; c-file-style: "gnu" -*-
*
* Copyright (C) 1995-2002 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 XSLT_SUPPORT
#include "modules/xslt/src/xs... |
#include <iostream>
#include <cmath>
#include <climits>
using namespace std;
using ull = unsigned long long;
ull arr[1000];
ull integ[1001];
bool sumOfTwo(int i){
ull cur = arr[i];
for(int o = 1; o < 25; o++){
for(int o2 = o+1; o2 <= 25; o2++){
if(i == 593){
// cout << ar... |
#pragma once
#include <string>
using std::string;
class MessageBoard
{
public:
string message, fromLabel, toLabel;
MessageBoard();
~MessageBoard();
void SetMessage(string _message);
void SetFromLabel(string label);
void SetToLabel(string label);
string GetMsg();
string GetFromLabel();
string GetToLabel();
v... |
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
int n;
cout<<"Enter the key";//if key is 13 then cipher is ROT13
cin>>n;//if key is 3 then cipher is Caesar
char ch;
FILE *fp1,*fp2;
fp1=fopen("file2.txt","r+");
fp2=fopen("file3.txt","w+");
cout<<"Your fil... |
#include<bits/stdc++.h>
using namespace std;
int main()
{
// only gravity will pull me down
// Maximum sum of increasing order elements from n arrays
int t, n, m;
cin >> t;
while (t--) {
cin >> n >> m;
int ar[n][m];
for(int i=0; i<n; i++) {
for(int j=0; j<m;... |
#pragma once
#include <string>
#include <cassert>
#include <sstream>
#include <vector>
#include <memory>
#include <stdlib.h>
#include <tinyxml2.h>
namespace txml = tinyxml2;
namespace breakout
{
class XPath
{
public:
static constexpr char PATH_DELIMITER = ':';
XPath(const tx... |
/*
* mainIncs.h
*
* Created on: Aug 12, 2014
* Author: ushnish
*
Copyright (c) 2014 Ushnish Ray
All rights reserved.
*/
#ifndef MAININCS_H_
#define MAININCS_H_
//Basic headers
#include <iostream>
#include <fstream>
#include <cstdio>
#include <iomanip>
//Libraries
#include <cmath>
#include <ctime>
#inc... |
#pragma once
#include "DBStructs.hh"
#include "Template.hh"
#include "Typedefs.hh"
#include <memory>
#include <vector>
namespace HotaSim {
using CCC::SPtrVec;
class Encounter : public TemplateObject<Encounter> {
public:
Encounter(const EncounterTemplate& _tmpl);
SPtrVec<Unit> getUnits() const noexcept;
... |
// -*- LSST-C++ -*-
/*
* LSST Data Management System
* Copyright 2011-2015 AURA/LSST.
*
* This product includes software developed by the
* LSST Project (http://www.lsst.org/).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publ... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "TankTurret.h"
void UTankTurret::Rotate(float RotationDirection)
{
RotationDirection = FMath::Clamp<float>(RotationDirection, -1.f, 1.f);
float AddedYaw = Speed * RotationDirection * FApp::GetDeltaTime();
float NewYaw = Added... |
#pragma once
class Test06
{
public:
Test06();
~Test06();
private:
int TestCnt;
char *TestStr;
public:
bool setTestCounter(int cnt);
virtual int setTestString(char *pStr);
};
class Test06_sub : public Test06
{
public:
Test06_sub();
~Test06_sub();
virtual int setTestString(char *pStr);
private:
int TestCnt;
c... |
/*********************************************************\
* Copyright (c) 2012-2018 The Unrimp Team
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
* and associated documentation files (the "Software"), to deal in the Software without
* restriction, including wit... |
#include <Windows.h>
#include <TlHelp32.h>
#include <stdio.h>
#include <shlwapi.h>
BOOL EnableDebugPrivilege();
DWORD GetTargetProcessID(const char *processExeName)
{
if(!EnableDebugPrivilege()){
printf("EnableDebugPrivilege faild\n");
}
if (processExeName == NULL) {
return 0;
}
... |
#ifndef DATAPROCESSOR_H
#define DATAPROCESSOR_H
#include <QObject>
#include <datapoint.h>
#include <database.h>
#include <regulator.h>
#include <ammeter.h>
#include <QTimer>
#include <QList>
#include <QTime>
class DataProcessor : public QObject
{
Q_OBJECT
public:
explicit DataProcessor(QObject *parent = 0);
... |
#include "../../gl_framework.h"
using namespace glmock;
extern "C" {
#undef glCreateProgram
GLuint CALL_CONV glCreateProgram(void) {
return 0;
}
PFNGLCREATEPROGRAMPROC __glewCreateProgram = &glCreateProgram;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.