text stringlengths 8 6.88M |
|---|
#pragma once
#include <iomanip>
#include "RGBDSensor.h"
#include "DepthSensing.h"
#include "NetworkServer.h"
enum class ClientType
{
CLIENT_UNKNOWN = 0,
// Kinect
CLIENT_KINECT = 1,
CLIENT_PRIME_SENSE = 2,
CLIENT_KINECT_ONE = 3,
// Virtual Scan
CLIENT_VIRTUAL_SCAN = 4,
// Intel
CLIENT_INTEL = 1024+1,
... |
//----------------------------------------------------------------
// ClientMoveable.cpp
//
// Copyright 2002-2004 Raven Software
//----------------------------------------------------------------
#include "../../idlib/precompiled.h"
#pragma hdrstop
#include "../Game_local.h"
/*
=====================================... |
// RUN: %clang_cc1 -std=c++11 -analyze -analyzer-checker=core,debug.DumpBugHash -analyzer-output=plist %s -o %t.plist
// RUN: FileCheck --input-file=%t.plist %s
int function(int p) {
return 5;
}
namespace {
int variadicParam(int p, ...) {
return 5;
}
}
constexpr int f() { return 5; }
namespace AA {
class X {
... |
#pragma once
#include "Object.h"
#include <hgesprite.h>
class CMapElement : public CObject
{
public:
CMapElement(hgeResourceManager* rs, Pos pos, char* name);
virtual bool Init();
virtual void Render();
virtual void Update(float);
virtual void Cleanup();
protected:
hgeSprite* m_pSpr;
}; |
//Derving a subclass from super class.
#include<iostream>
using namespace std;
class shape
{
int width,height;
public:
void read(int a,int b)
{
width=a;
height=b;
}
}
class rectangle :public shape
{
public:
int area()
{
return(width * height );
}
}
int main()
... |
//
// Created by 周华 on 2021/5/1.
//
#include "Actor.h"
|
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4; c-file-style:"stroustrup" -*-
*
* Copyright (C) 1995-2010 Opera Software AS. All rights reserved.
*
* This file is part of the Opera web browser. It may not be distributed
* under any circumstances.
*
* @author Anders Karlsson (pugo)
*/
... |
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*-
*
* Copyright (C) 2009 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 APPLICATION_CACHE_SUPPORT
#include "m... |
#include "define_both.h" /* luteijn: won't really be included again, but helps with auto-completion of variable names. */
if (NEThost){ //host
//U6O_ERRORTAG
btime2+=et/150.0f; //non-rolled over btime!
x=btime2/24;
btime=btime2-(float)x*24.0f;
x%=7; bday=x+1;
if (lastsecond==-1) lastsecond=ett; x=ett; //... |
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <vector>
#include <functional>
#include <queue>
#include <string>
#include <cstring>
#include <numeric>
#include <cstdlib>
#include <cmath>
using namespace std;
typedef long long ll;
#define INF 10e18 // 4倍しても(4回足しても)long longを溢れない
#define rep(i,n) f... |
#pragma once
#include"Room.h"
class TemplateRoom : public Room
{
private:
void createBoundingBoxes();
void createSceneObjects();
void onCompleted();
Lever* m_objectTest;
public:
TemplateRoom();
~TemplateRoom();
void update(float dt, Camera* camera, Room*& activeRoom, bool& activeRoomChanged);
void onEntrance(... |
/*** Hash table class for index in file system. ***/
/** Version 2 + Crypto++ support. **/
/* FIXME: Ignore malloc failure. Do not examine the length of path. */
/** Included files. **/
#include "hashtable.hpp"
/** Global variable. **/
// SHA256 sha256; /* FIXME: Is SHA256 class thread-safe?... |
/*********************************************************************
** Author: Christopher Matian
** Date: July 5th, 2017
** Description: A small program that outputs remaining change from a value (0-99)
*********************************************************************/
#include <iostream>
using namespace std... |
// Created on: 2000-06-07
// Created by: Galina KULIKOVA
// Copyright (c) 2000-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 ... |
//
// GameSecne.h
// GetFish
//
// Created by zhusu on 14/12/12.
//
//
#ifndef __GetFish__GameScene__
#define __GetFish__GameScene__
#include "cocos2d.h"
#include "FishManage.h"
#include "ShipManage.h"
#include "BackGround.h"
#include "EffectManage.h"
#include "RockManage.h"
#include "LeafManage.h"
#include "Shell... |
// Robert Fus
// CSCI 6626 - Object-Orientated Principles & Practices
// Program 3: Game
// File: Square.cpp
// 9/12/2019
#ifndef P1_STATE_STATE_HPP
#define P1_STATE_STATE_HPP
#include "tools.hpp"
class Cluster;
class State {
public:
State() = default;
~State() = default;
State(char c);... |
//https://acm.timus.ru/submit.aspx?space=1&num=1607
#include <bits/stdc++.h>
#define PI 3.1415926535897932384626433832795
#define loop(i,n) for(i = 0; i < n; i++)
#define revloop(i,n) for(i = n; i >= 0; i--)
#define sz (int) 1e5 + 5
#define ll long long
using namespace std;
int main() {
int a,b,c,d; //petr inita... |
#include<iostream>
#include<queue>
#include<stack>
#include<vector>
#include<stdio.h>
#include<algorithm>
#include<string>
#include<string.h>
#include<sstream>
#include<math.h>
#include<iomanip>
#include<map>
#define N 105
using namespace std;
int root[N];
struct edge{
int from, to, len;
edge(){}
... |
#include <iostream>
#include <iomanip>
#include <cmath>
#include <ctime>
#include "external.h"
TestClass::TestClass(){
std::cout << "This is a test class." << std::endl;
}
|
/*
* ****************************************************************************
* * *
* * Copyright 2008, xWorkshop Inc. *
* * All rights reserved. *
*... |
#if !defined(AFX_FASTHTMLRICHEDITCTRL_H__46148F2F_5109_11D6_A00C_0004768C7143__INCLUDED_)
#define AFX_FASTHTMLRICHEDITCTRL_H__46148F2F_5109_11D6_A00C_0004768C7143__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <afxcmn.h>
enum FastHtmlColorState
{
epsUnknown = 0x00,
epsInT... |
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*-
**
** Copyright (C) 1995-2012 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"
#include "modules/style/src/css_buffer.h"
... |
template<typename T>
void copy(T *p, T const *q, int n) {
if (std::is_pod<T>::value) { // similar to type functions with ::type
memcpy(p, q, n);
} else
for (int i=0; i!=n; ++i)
p[i] = q[i];
if (is_pod<T>()) // function returning bool
}
template<typename T>
void do_something() ... |
//
// Created by laureano on 08/11/19.
//
#include "SalaEspetaculo.h"
SalaEspetaculo::SalaEspetaculo() {};
SalaEspetaculo::SalaEspetaculo(string nome, int capacidadeMaxima, int lotacao, Address endereco, int id, bool aderente)
:
nome(nome), capacidadeMaxima(capacidadeMaxima), lotacao(lotacao), endere... |
#include<iostream>
#include<stdio.h>
#include<bits/stdc++.h>
#include<algorithm>
#include<cmath>
#include<string>
#include<cstring>
#include<vector>
#include<map>
#include<queue>
#include<set>
#include<list>
#include<unordered_map>
#include<unordered_set>
#define ll long long
#define MAX 100000003
#define MAX_RLEN 50
#... |
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "GameFramework/ProjectileMovementComponent.h"
#include "Components/CapsuleComponent.h"
#include "SLTowerProjectile.generated.h"
class UProjectileMovementCompo... |
#ifndef FIGURES_H
#define FIGURES_H
#include "interp.hpp"
#include "models.hpp"
#include "data.hpp"
#include <vector>
#include <cmath>
#include <sstream>
#include <string>
#include <iostream>
#include <fstream>
#include "rd.hpp"
using namespace std;
template <class Model>
class Figures_RD
{
private:
Relic_density... |
//
// Player.h
// Polygons
//
// Created by Italo Ricardo Geske on 2021/05/16.
// Copyright © 2021 Italo Ricardo Geske. All rights reserved.
//
#ifndef Player_h
#define Player_h
#include <string>
#include "Card.h"
#include "Game.h"
class Player
{
private:
std::string name;
bool isPlayer = false;
public:... |
class M1911_DZ : Colt1911
{
begin1[] = {"\RH_de\sound\m1911old.wss",0.794328,1,700};
soundBegin[] = {"begin1",1};
magazines[] = {"7Rnd_45ACP_1911"};
};
class M1911_2_DZ : M1911_DZ
{
model = "\RH_de\RH_m1911old.p3d";
picture = "\RH_de\inv\coltold.paa";
};
class Kimber_M1911_DZ: M1911_DZ
{
displayName = $STR_DZ_W... |
#include "PhpReChargeProc.h"
#include "Logger.h"
#include "HallManager.h"
PhpReChargeProc::PhpReChargeProc()
{
this->name = "PhpReChargeProc";
}
PhpReChargeProc::~PhpReChargeProc()
{
}
int PhpReChargeProc::doRequest(CDLSocketHandler* client, InputPacket* pPacket, Context* pt )
{
_NOTUSED(client);
_NOTUSED(pPack... |
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*-
*
* Copyright (C) 2006-2012 Opera Software ASA. All rights reserved.
*
* This file is part of the Opera web browser.
* It may not be distributed under any circumstances.
*
* Anders Oredsson
*/
#if !defined MODULES_SELFTEST_OPERASELFTEST... |
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-file-style: "stroustrup" -*-
*
* 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.
*/
#ifndef XMLSERIALIZERIMPL_H
#define XMLSERIALIZERIMPL_... |
/* -*- 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.
*/
#include "core/pch.h"
#ifdef HAS_ATVEF_SUPPORT
#include "modules... |
/*
* EfficientPortfolioWithRisklessAssetTest.h
*
* Created on: 19.10.2013
* Author: christoph
*/
#ifndef EFFICIENTPORTFOLIOWITHRISKLESSASSETTEST_H_
#define EFFICIENTPORTFOLIOWITHRISKLESSASSETTEST_H_
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/TestFixture.h>
#include <cppunit/TestSuite.h>... |
#include<bits/stdc++.h>
using namespace std;
main()
{
long long int n, mail=0, total=1, c=0, i, con=1;
while(scanf("%lld",&n)==1)
{
if(n<0)break;
else
{
if(n==0)printf("%lld %lld\n",mail,total);
else
{
for(i=1; i<=n; i++)
... |
#include<bits/stdc++.h>
using namespace std;
int main(){
printf("商品名\t定価\t個数\t小計\n");
printf("------------------------\n");
printf("テレビ\t20,000\t1\t20,000\n");
printf("ラジオ\t5,000\t2\t10,000\n");
printf("本\t1,000\t12\t12,000\n");
printf("------------------------\n");
printf("合計\t\t\t42,000\n... |
//+++++++++++++++++++++++++++++++++++++++++++++++++
// Title: Project2.cpp
// Course: Computational Problem Solving CPET-121
// Developer: Eloy Ramirez
// Date: Feb 25, 2019
// Description: Tic-Tac-Toe Basic Implementation
//+++++++++++++++++++++++++++++++++++++++++++++++++
#include <iostream>
#include <cstdlib>
#inc... |
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* Copyright (C) Opera Software ASA 1999-2005
*
* Standalone shell for ECMAScript engine
*/
#include "core/pch.h"
#ifdef UNIX
# include <sys/time.h>
# include <sys/resource.h>
# include <sys/errno.h>
#endif // UNIX
#include <signal.h... |
#include "SimpleVT100Client.h"
#include <cstdio>
void SimpleVT100Client::appendCharacter(char character)
{
printf("%c", character);
}
void SimpleVT100Client::changeColor(int, int)
{
}
void SimpleVT100Client::eraseFromCursorToEndOfLine(Direction direction)
{
}
|
/**
* Examples of automatic tests for the exercise on physical numbers.
*
* @author Erel Segal-Halevi
* @since 2019-02
*/
#include <iostream>
#include <sstream>
using std::cout, std::endl, std::istringstream;
#include "PhysicalNumber.h"
using ariel::PhysicalNumber, ariel::Unit;
#include "badkan.hpp"
#include <cst... |
// Created on: 2016-12-13
// Copyright (c) 2016 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... |
/*
* lista.cpp
*/
#include <iostream>
#include "lista.hpp"
Lista::Lista(){
head = NULL;
tail = NULL;
}
Lista::~Lista(){
while(Usun()){;};
}
void Lista::Dodaj(int wartosc){
ELEMENT *el = new ELEMENT;//wskaznik do elementu
el->wartosc = wartosc;
el->nast = NULL;
i... |
#ifndef __SIMPLEENGINE_H__
#define __SIMPLEENGINE_H__
#include <stdlib.h>
#include <time.h>
#include <list>
#include "SEMath.h"
#include "SEConfigurationLoader.h"
#include "SEServiceLocator.h"
#include "SEFlowController.h"
#include "SEApplicationInterface.h"
#include "SEObject.h"
#include "SEEntity.h"
#include "SE... |
namespace elog
{
template <unsigned int instance>
void Logger::init(Severity maxSeverity, std::initializer_list<BaseAppender*> appenders)
{
if (instances.count(instance) == 0)
instances.emplace(instance, new Logger(maxSeverity, appenders));
}
template <unsigned int instance>
Logger& Logger::get... |
#include <iostream>
#include <algorithm>
using namespace std;
using ll = long long;
int main() {
int N;
cin >> N;
int b[N];
for (int i = 0; i < N; ++i) {
ll a;
cin >> a;
b[i] = __builtin_popcountll(a);
}
ll sum[N + 1], psum[N + 1];
// sum[i] = 前からi個の累積和
// ps... |
#ifndef PROGRAM_CPP
#define PROGRAM_CPP
#include "Program.h"
Program::Program()
{//default contructor, everything is initially empty.
newProg = 0;
vs = 0;
fs = 0;
prog = 0;
}
Program::~Program()
{//ask GL to delete the respective objects.
glDeleteShader(vs);
glDeleteShader(fs);
glDeleteProgram(prog);
}
Program... |
// To sort a particular row of 2D vector in Ascending and descending order.
#include<iostream>
#include<vector> // for 2D vector
#include<algorithm>
using namespace std;
int main()
{
// Initializing 2D vector "vect" with
// // values
vector< vector<int> > vect{{6,4,2},
{2,4,3},
{8,9,7}};
// Disp... |
#pragma once
#include "vfs.h"
namespace vfs
{
class DiskFile : public IFile
{
public:
HANDLE hfile;
bool m_readonly;
public:
DiskFile(const char* filename, bool write = false);
~DiskFile();
U32 read(void* buffer, U32 size);
U32 write(const void* buffer, U32 size, bool flush);
U32 seek(S32 offset, ... |
#include "myscheduler.hh"
#include <scheduler/est_internal.hh>
#include <boost/foreach.hpp>
#include <iostream>
#include "common.hh"
#include <map>
#include <list>
struct is_busy {
bool operator() (const corba_server_estimation_t& e) { return diet_est_get_internal(&(e.estim), EST_CURRENTJOBS, 0.0) > 0; }
};
struct ... |
//hung.nguyen@student.tut.fi - student id: 272585
//sanghun.2.lee@student.tut.fi - student id: 272571
#include <iostream>
#include "market.hh"
#include "mainrun.hh"
#include "splitter.hh"
void mainRun(market m){
while(1){
string line;
cout<<"product search> ";
getline(cin,line);
i... |
//****************************************************************************************
// File......... : NetEventService.h
// Project...... : VR
// Author....... : Liu Zhi
// Date......... : 2018-09
// Description.. : Head file of t... |
#include "Dictionary.h"
namespace model
{
Dictionary::Dictionary(vector<string> words)
{
for (size_t i = 0; i < words.size(); i++)
{
this->wordTree.insert(words.at(i));
}
}
void Dictionary::setCollection(vector<string> newCollection)
{
this->wordTree.clear();
for (size_t i = 0; i < newCol... |
#pragma once
#include <windows.h>
#include "DataController.h"
#include <algorithm>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL\freeglut.h>
using namespace System::Windows::Forms;
namespace ElectricalPowerByCurrentOpenGLForm
{
public ref class COpenGL : public System::Windows::Forms::NativeWin... |
#ifndef KEYBOARD_H
#define KEYBOARD_H
#include <SDL2/SDL.h>
#include <map>
#include <vector>
/**
* @brief Simple static manager that sits on top of the SDL used
* to obtain the keyboard state
*/
class Keyboard {
private:
static const std::vector<SDL_Keycode> VALID_KEYS_;
/**
* @brief Holds the infor... |
#include <ButtonDebounce.h>
ButtonDebounce button1(2, 500);
ButtonDebounce button2(3, 500);
int button1State = LOW;
int button2State = LOW;
ButtonDebounce buttonArr[] = { button1, button2};
int buttonStates[] = { button1State, button2State };
void setup() {
Serial.begin(115200);
}
void loop() {
for(int i = 0; i... |
/****************************************************************************
* *
* Author : lukasz.iwaszkiewicz@gmail.com *
* ~~~~~~~~ *
* Lice... |
#pragma once
#include "plbase/PluginBase.h"
#include "CBox.h"
#include "CColSphere.h"
#include "CColData.h"
#pragma pack(push, 4)
class PLUGIN_API CColModel
{
public:
CBox m_boundBox;
CColSphere m_colSphere;
CColData *m_pColData;
};
#pragma pack(pop)
VALIDATE_SIZE(CColModel, 0x30); |
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*-
**
** Copyright 2002-2012 Opera Software ASA. All rights reserved.
**
** This file is part of the Opera web browser. It may not be distributed
** under any circumstances.
**
** Peter Krefting
*/
#if !defined PC_UNIX_H && defined PREFS_HAVE_UN... |
#pragma once
namespace F
{
extern HFont Meme;
extern HFont ESP;
extern HFont Watermark;
extern HFont Build;
extern HFont Revue;
extern HFont MenuTitle;
extern HFont MenuTab;
extern HFont MenuPrimary;
extern HFont Icon;
}
namespace D
{
extern void SetupFonts( );
extern void DrawString( HFont font, int x, in... |
class Calcium
{
public:
Calcium();
void sayTheName();
};
|
#include "ship.h"
#include "EventManager.h"
#include "glm/gtx/string_cast.hpp"
#include "PlayScene.h"
#include "TextureManager.h"
#include "Util.h"
#include "Sprite.h"
Ship::Ship() : m_currentAnimationState(PLAYER_IDLE) {
// Load the player and health bar sprites
TextureManager::Instance()->loadSpriteSheet(
"../A... |
#include "Circle.h"
Circle::Circle() {
ifstream in("Circle.txt");
int c;
cout << "\nРежим ввода данных: " << endl;
cout << "[1] С клавиатуры." << endl;
cout << "[2] Из файла." << endl;
cout << ">> ";
cin >> c;
cout << "\n";
if (c == 2) {
if (!in || FileCheck(in)) {
cout << "Файл пуст или не ... |
#include <vector>
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>
#include <list>
#include <algorithm>
#include <sstream>
#include <set>
#include <cmath>
#include <map>
#include <stack>
#include <queue>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <numeric>
#include <bits... |
#ifndef __ENCODEDSEQUENCE_H__
#define __ENCODEDSEQUENCE_H__
#include <cstdint>
#include <iostream>
#include <string>
#include <vector>
class EncodedSequence {
private:
uint8_t *tab;
size_t n;
size_t N;
public:
EncodedSequence(const char *seq = NULL, std::vector <std::string> *errors = NULL);
Enc... |
/*
201021
LG codepro - [20년도_2차] chef
1h30m
Pass Rate : 3/10 (7개 Timeout)
*/
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <iterator>
using namespace std;
int N;//손님 수
int P[10000 + 10];//음식 값
int T[10000 + 10];//예약 희망 시간
vector<pair<int,int>> sortedTime;
in... |
// Created on: 1992-02-18
// Created by: Stephan GARNAUD (ARM)
// Copyright (c) 1992-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 ... |
/*
* TBoardView.h
*
* Created on: Apr 12, 2017
* Author: Alex
*/
#ifndef TBOARDVIEW_H_
#define TBOARDVIEW_H_
#include <string>
#include "TDrawingView.h"
#include "TLinesGame.h"
class TPopupBox;
class TLinesGame;
class TBoardView: public TDrawingView {
public:
TBoardView();
virtual ~TBoardView();
virt... |
#include "../include/AnimationAsset.h"
#include "EventHistory.h"
std::array<CAE::Memento_data, CAE::History_data::size> CAE::History_data::curr{};
bool CAE::History_data::makeSnapshot = false;
int CAE::History_data::current = -1;
int CAE::History_data::iter = -1;
int CAE::History_data::undo_cap = -1;
int CAE::History_... |
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*-
*
* Copyright (C) 2012 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"
#include "platforms/mac/util/MacTLS.h"
MacTLS... |
#include "TestGTE.h"
#include <iostream>
#include <iomanip>
int main(int argc, char **argv)
{
using namespace test;
gte device;
GTEtestbench tester(&device);
tester.constructInstruction(1, 0, 0, 0, 0, SQR);
tester.storeData(gte::IR1, 0x000019FB); // ir1 = 1.623779296875
tester.... |
int Solution::searchMatrix(vector<vector<int> > &A, int B) {
int n = A.size();
int m = A[0].size();
int l=0, h=m*n-1, mid;
while(l<=h) {
mid = l +(h-l)/2;
if ((A[mid/m][mid%m] == B)) {
return 1;
}
else if(A[mid/m][mid%m] < B) {
l = mid+1;
... |
// Copyright (c) 2012-2017 The Cryptonote developers
// Copyright (c) 2018-2023 Conceal Network & Conceal Devs
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "gtest/gtest.h"
#include <CryptoNoteCore/DepositIndex.h... |
//====================================================================================
// @Title: AFFINITIES
//------------------------------------------------------------------------------------
// @Location: /game/rpg/cAffinitiesDef.h
// @Author: Kevin Chen
// @Rights: Copyright(c) 2011 Visionary ... |
#ifndef MODIFIERFINANCE_H
#define MODIFIERFINANCE_H
#include <QDialog>
#include"connection.h"
#include"personneclient.h"
namespace Ui {
class modifierfinance;
}
class modifierfinance : public QDialog
{
Q_OBJECT
public:
explicit modifierfinance(QWidget *parent = 0);
~modifierfinance();
private sl... |
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
**
** Copyright (C) 2000-2008 Opera Software AS. 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(_SS... |
class Anzio_20;
class Anzio_20_DZ : Anzio_20 {
displayName = $STR_DZ_WPN_ANZIO_NAME;
descriptionShort = $STR_DZ_WPN_ANZIO_DESC;
type = 1;
begin1[] = {"\dayz_epoch_c\sounds\weapons\anzio_shot",2.5118864,1,1600};
soundBegin[] = {"begin1",1};
}; |
int a=7,b=6,c=5,d=11,e=10,f=8,g=9,dp=4;
int n[10][8]={{1,0,0,0,0,1,0,0},{1,0,0,1,1,1,1,1},{1,1,0,0,1,0,0,0},{1,0,0,0,1,0,1,0},{1,0,0,1,0,0,1,1},{1,0,1,0,0,0,1,0},{1,0,1,0,0,0,0,0},{1,0,0,0,1,1,1,1},{1,0,0,0,0,0,0,0},{1,0,0,0,0,0,1,0}};
int alg[6][8]={{1,0,0,0,0,0,0,1},{0,0,0,0,0,0,0,0},{1,1,1,0,0,1,0,0},{0,0,0,0,0,1,0,... |
#include <arpa/inet.h>
#include <ctime>
#include <dirent.h>
#include <fstream>
#include <iostream>
#include <pthread.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include <unordered_set>
#include <vector>
using namespace ... |
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "ResizeModule.hpp"
using namespace std;
using namespace uipf;
// runs the module
/*
data DataManager handles the input and ouput of this module
*/
void ResizeModule::run( DataManager& data) const
{
using namespace cv;
// print ... |
//
// Created by Yujing Shen on 29/05/2017.
//
#include "../../include/optimizers/MomentumOpt.h"
namespace sjtu{
MomentumOpt::MomentumOpt(Session *sess, Dtype lr, Dtype momentum):
SessionOptimizer(sess), _lr(lr), _momentum(momentum)
{
}
MomentumOpt::~MomentumOpt()
{
}
Optimizer M... |
// MainFrm.cpp: CMainFrame 클래스의 구현
//
#include "pch.h"
#include "framework.h"
#include "BookEditor.h"
#include "MainFrm.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CMainFrame
IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd)
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
ON_COMMAND(IDM_DIALOG, &CMainFrame::OnDialog)
... |
#ifdef DEBUG
#define _GLIBCXX_DEBUG
#endif
#include <iostream>
#include <algorithm>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <memory.h>
#include <math.h>
#include <string>
#include <string.h>
#include <queue>
#include <vector>
#include <set>
#include <deque>
#include <map>
#include <functional>... |
//
// Created by OLD MAN on 2020/2/22.
//
//蒜术师想让你编写程序,输入 n 的值,求 1/1 - 1/2 + 1/3 - 1/4 + 1/5 - 1/6 ⋯⋯ ((-1)^(n-1))/n 的值。
//
//输入格式\
//输入一个正整数 n。1≤n≤1000。
//
//输出格式\
//输出一个实数,为表达式的值,保留到小数点后四位。
#include <iostream>
using namespace std;
int main(){
int n;
cin>>n;
float result = 0;
for (float i = 1; i <= ... |
#ifndef ETW_CONFIG_BASIC_PREDICATES_H_
#define ETW_CONFIG_BASIC_PREDICATES_H_
#include "ConfigurationInterface.h"
#include "OptionInterface.h"
#include "ExpressionInterface.h"
#include "PredicateInterface.h"
#include <initializer_list>
#include <list>
namespace etw {
class Not : public PredicateInterface
{
public:
... |
/*
* 题目:区域和检索 - 数组不可变
* 链接:https://leetcode-cn.com/problems/range-sum-query-immutable/
* 知识点:一维前缀和
*/
class NumArray {
public:
NumArray(vector<int>& nums) {
int n = nums.size();
if (n > 0) {
sums.resize(n, 0);
sums[0] = nums[0];
for (int i = 1; i < n; i++) {
... |
#include "GamePch.h"
#include "PlayerComp.h"
#include "ThirdPersonCameraComponent.h"
#include "ComponentSet.h"
#include "Common.h"
#include "HealthModule.h"
#include "Renderer\DevTextRenderer.h"
#include "../Engine/System/EntityManager.h"
#include "Renderer\Texture.h"
uint32_t PlayerComp::s_TypeID = hg::ComponentFact... |
/* MP5 <-> PDW*/
class 30Rnd_9x19_UZI : CA_Magazine
{
model = "\z\addons\dayz_epoch_w\magazine\dze_pdw_mag.p3d";
displayName = $STR_DZ_MAG_30RND_9X19_UZI_NAME;
descriptionShort = $STR_DZ_MAG_30RND_9X19_UZI_DESC;
cartridgeName = "9x19";
class ItemActions
{
COMBINE_MAG
};
};
class 30Rnd_9x19_MP5 : CA_Magaz... |
#include "mainwidget.h"
#include "outputwindow.h"
#include <QApplication>
#include <QTextCodec>
void messageOuputHandler(QtMsgType type, const QMessageLogContext &context,
const QString &msg)
{
Q_UNUSED(context);
QByteArray localMsg = msg.toLocal8Bit();
switch (type) {... |
/* -*- Mode: c++; tab-width: 4; c-basic-offset: 4 -*-
*
* Copyright (C) 1995-2007 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 AUTO_UPDATE_SUPPORT
#ifdef AUTOUPDATE_PACKAGE_INSTALLATI... |
#include<iostream>
#include"windows.h"
#include<ctime>
#include "Header.h"
using namespace std;
int main() {
int value;
int action = 0;
float ser=0;
int max = 0;
int min = 0;
int poz = 0;
int newElement = 0;
srand(time(0));
int* arr;
int* blokElem=0;
int poz1, poz2;
int size, size2;
cout << "Vvedit'... |
#ifndef GMP_TEST_UTILS_H
#define GMP_TEST_UTILS_H
#include <vector>
#include <memory>
#include <armadillo>
#include <gmp_lib/gmp_lib.h>
#include <gmp_lib/math/quaternions.h>
#include <io_lib/io_utils.h>
using namespace as64_;
void simulateGMP(std::vector<std::shared_ptr<gmp_::GMP>> &gmp, const arma::vec &y0,
... |
#ifndef __DRAWMAP_H_
#define __DRAWMAP_H_
class DrawMap
{
private:
DrawMap() {}
virtual ~DrawMap() {}
public:
static DrawMap* Instance()
{
static DrawMap instance;
return &instance;
}
public:
void drawMap();
};
#endif
|
#include "LevelInterface.h"
LevelInterface::LevelInterface() : SceneInterface(false)
{
}
LevelInterface::~LevelInterface()
{
}
void LevelInterface::update()
{
}
|
class ItemFertilizer: CA_Magazine
{
scope = 2;
count = 1;
displayName = $STR_CRAFT_NAME_FERTILIZER;
descriptionShort = $STR_CRAFT_DESC_FERTILIZER;
picture = "\z\addons\dayz_epoch_w\magazine\ui\m_fertilizer_ca.paa";
model = "\z\addons\dayz_epoch_w\magazine\dze_fertilizer.p3d";
type = 256;
};
class ItemPumpki... |
#include "ProjectECS.h"
#include "EverydayTools/Array/ArrayViewVector.h"
#include "EverydayTools/Exception/CheckedCast.h"
#include "EverydayTools/Geom/Vector.h"
#include "Keng/Core/IApplication.h"
#include "Keng/Core/SystemEvent.h"
#include "Keng/GPU/PipelineInput/ISampler.h"
#include "Keng/GPU/DeviceBufferMapper.h"
#i... |
/* -*- 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.
*/
#include "core/pch.h"
#ifdef M2_SUPPORT
#ifdef _DEBUG
#include <... |
/**
* Copyright (c) 2015, 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... |
#include "spriteaistate.h"
#include "spritestate.h"
#include "spritestatenothing.h"
SpriteAIState::SpriteAIState()
{
_state = SpriteStateNothing::Instance();
}
SpriteAIState::~SpriteAIState()
{}
void SpriteAIState::changeState(SpriteState *s)
{
_state = s;
}
void SpriteAIState::moving(SpriteAIState*s)
{}
void Sp... |
template<typename T>
class initializer_list {
public:
using value_type = T;
using reference = T const&;
using const_reference = T const&;
using size_type = std::size_t;
using iterator = T const*;
using const_iterator = T const*;
initializer_list() noexcept;
std::size_t size() const noe... |
#pragma once
namespace Jaraffe
{
namespace Component
{
class Transform : public BaseComponent
{
// ****************************************************************************
// Constructor/Destructor)
// ----------------------------------------------------------------------------
public:
Transform();
virtual ~Tra... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.