text stringlengths 8 6.88M |
|---|
#include "NewProjectWizardBase.h"
NewProjectWizardBase::NewProjectWizardBase(wxWindow* parent, wxWindowID id, const wxString& title, const wxBitmap& bmp,
const wxPoint& pos, long style)
{
Create(parent, id, title, wxNullBitmap, pos, style);
m_wizardPageTemplate = new... |
/*Common macros.*/
#ifndef __CC_SHARED_COMMON__
#define __CC_SHARED_COMMON__
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
// For nothrow.
#include <new>
#include <sstream>
// Compile time assert.
#define CT_ASSERT(_x) \
extern int _dummy_array_for_compile_time_assert[(_x) ? 1 : -... |
#pragma once
#include <NDT/Internal/EigenHelpers.h>
#include <NDT/Internal/IndexList.h>
#include <NDT/Internal/ToType.h>
namespace NDT {
namespace internal {
// In the general case, the dimension along with the gradient is taken is indexed with a real value,
// and the gradient is determined by the local linear slo... |
/* -*- 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
*/
#include "core/pch.h"
#include "modules/prefs/... |
#include "town.h"
town::town() {
_lvl = village;
}
#if defined(SETTLER_PLAYER_H)
town::town(player* p, logger *l) {
//town::town(player* p) {//, logger *l) {
_p = p;
_lvl = village;
// _log = l;
/*
if (l) {
_log = l;
}
else {
_log = new logger();
}
*/
}
#endif //defined(SETTLER_PLAYER_H)
... |
#ifndef BUFFER_H
#define BUFFER_H
#include "cpvs.h"
/**
* A shader storage buffer represents memory on the GPU which can be accessed from a shader.
*/
class SSBO {
public:
template<typename T>
SSBO(const vector<T>& data, GLenum usage) {
const size_t size = data.size() * sizeof(data[0]);
glGenBuffers(1, &m_bo)... |
#pragma once
class CHappyDay
{
public:
CHappyDay(void);
~CHappyDay(void);
int Hello(void);
};
|
#ifndef INLCUDE_ENGINE_PLATFORM_H
#define INLCUDE_ENGINE_PLATFORM_H
//------------------------------------------------------------------------
#define WINDOW_WIDTH 640
#define WINDOW_HEIGHT 480
#define WINDOW_WIDTH_MIN 255
#define WINDOW_HEIGHT_MIN 255
#define MAX_MESHES 10
#define MAX_OBJECT_TRANSFORMS 1000
#define... |
/*
Serial Communication Modul for Wördclock v0.2 by Marcel Müller
based on parser for serial communication on Arduino by (c) 140801 Thomas Peetz
Jobs:
check if serial communication is available
- via usb, then use usb
- via bluetooth, then use bluetooth
- via WiFi, then use WiFi
if no communication is available, do so... |
#include "LeagueItemDatabase.h"
#pragma warning(push)
#pragma warning(disable: 4244) // possible loss of data
#include "rapidxml/rapidxml.hpp"
#include "rapidxml/rapidxml_utils.hpp"
#pragma warning(pop)
#include "math.h"
#include "opencv2/highgui.hpp"
#include "opencv2/imgcodecs.hpp"
#include "opencv2/imgproc.hpp"
#d... |
//
// MyFileReader.cpp
//
// A minimal I/O package to read data from a text file.
// The text file needs to be a set of (any number of) columns separated by whitespace, eg:
//
// 1.0 0.1
// 2.0 0.2
// 3.0 0.3
//
// It is presented to the user in the form of a nxm matrix where
// n = number of rows = nu... |
/**
NAMA : Muhammad Fadhlan Supriadi
NIM : 1301154202
KELAS : IF-39-06
**/
#include <iostream>
using namespace std;
/**
- daftarkan seluruh variable global yang dibutuhkan di sini
**/
//=================================================
// YOUR CODE STARTS HERE
int idx_A, idx_B, idx_C, idx_D;
int ... |
#include <vector>
#include <functional>
#include <cstdlib>
#include <algorithm>
#include <iostream>
#include "is_associative.hpp"
float rand01()
{
return static_cast<float>(std::rand()) / RAND_MAX;
}
bool fuzzy_equals(float x, float y)
{
return fabs(x - y) <= 1e-5f;
}
int main()
{
const size_t n = 1000;
std... |
//
// C++ Interface: DialogPeer
//
// Description:
// 与单个好友对话
//
// Author: cwll <cwll2009@126.com> ,(C) 2012.02
// Jally <jallyx@163.com>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef DIALOGPEER_H
#define DIALOGPEER_H
#include "mess.h"
#include "DialogBase.h"
clas... |
#pragma once
#pragma unmanaged
#include <BWAPI\Position.h>
//#pragma make_public(BWAPI::Point)
#pragma managed
namespace BroodWar
{
// Can't use templates, because they're hard to consume in C#
// Can't use generics, because BWAPI::Point needs to be hidden away
// Probably should codegen somehow, to keep... |
/** Underscore
@file /.../Source/Kabuki_SDK-Impl/_Id/UID.h
@author Cale McCollough <http://calemccollough.github.io>
@copyright Copyright © 2016 Cale McCollough
@license http://www.apache.org/licenses/LICENSE-2.0
*/
#include <vector>
namespace _Id
{
class Tag
{
int GetUID ();
int... |
#pragma once
namespace aeEngineSDK
{
template <typename T>
using BasicString = std::basic_string<T, std::char_traits<T>, StdAlloc<T>>;
template <typename T>
using BasicStringStream = std::basic_stringstream<T, std::char_traits<T>, StdAlloc<T>>;
typedef BasicString<UNICHAR> wString;
typedef BasicString<ANSICHA... |
// SDDLViewerDlg.h : header file
//
#pragma once
// CvDlg dialog
class CvDlg : public CDialog
{
// Construction
public:
CvDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
enum { IDD = IDD_SDDLVIEWER_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
// I... |
#pragma once
#ifndef _PRODUC_CLASS_
#define _PRODUC_CLASS_
#include <iostream>
#include <vector>
#include <algorithm>
#include "KyleBase.h"
#include "Symbol.h"
using namespace std;
//产生式类
class Produc
{
private:
//产生式字符串
string str;
//产生式左侧
Symbol left;
//产生式推导符
string arrow;
//产生式右侧符号集
vector<Symbol> right;... |
// BEGIN CUT HERE
// PROBLEM STATEMENT
// You are playing a strategy game and you wish to train the
// strongest army for the final fight. There are creatures of
// N levels in the game, numbered from 0 to N-1, inclusive.
// You already have some creatures in your army and D days to
// train them. The number of cre... |
/*
* @lc app=leetcode.cn id=88 lang=cpp
*
* [88] 合并两个有序数组
*/
// @lc code=start
#include<iostream>
#include<vector>
using namespace std;
class Solution {
public:
void merge(vector<int>& nums1, int m, vector<int>& nums2, int n) {
int i = m - 1, j = n - 1, r = m + n - 1;
// if(n == 0)return;
... |
#include "stdafx.h"
#include "Win.h"
#include "../ResultCamera.h"
#include "../../NetPVP/NetAISelect.h"
#include "../../Game.h"
#include "../../Title/pvpModeSelect.h"
#include "../../Monster/Monster.h"
#include "../../GameData.h"
#include "../../Fade/Fade.h"
#include "../../Fade/MusicFade.h"
Win::Win(int team)
{
m_c... |
/* -*- 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.
*/
#include "core/pch.h"
#include "modules/layout/content/scrollabl... |
#pragma once
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <string>
enum class InputKey { QUIT, K_ESC, K_SPACE, K_P, K_MOUSE, K_LEFT, K_RIGHT, K_UP, K_DOWN, COUNT };
enum GameStates { SPLASH_SCREEN, MENU, PLAY, RANKING, EXIT, CURRENT };
enum SceneStates { WAITING_SPLASH, MENU_SPLASH, WAITING_MENU... |
//
// Created by fab on 25/02/2020.
//
#ifndef DUMBERENGINE_TRANSFORM_HPP
#define DUMBERENGINE_TRANSFORM_HPP
#include <glm/glm.hpp>
#include<glm/gtc/quaternion.hpp>
#include "GuiComponent.hpp"
class Transform : public GuiComponent
{
private:
glm::mat4 modelMatrix;
glm::quat quat;
glm::vec3 position;
... |
//
// Created by denis on 06.05.19.
//
#pragma once
#include <iostream>
#include <vector>
#include <cmath>
#include <cstdlib>
#define SIZE 97
#define BEGIN_EXTRA_REG 7
#define ERROR_N "Zero can not be divided"
#define NOT_CORRECT_ADR -219
using std::cout;
using std::cin;
using std::vector;
using std::endl;
|
#include <iostream>
#include <iomanip>
const int tam = 10;
void imprimir(const int *);
void imprimir(int[][tam]);
void imprimir(const char * );
void ordenar( int * const );
int main(){
int arreglo[tam] = {34, 56, 4, 10, 77, 51, 93, 30, 5, 52};
const char c[tam] = {'h', 'o', 'l', 'a', 'M', 'u', 'n', 'd'... |
#include "elog/log.hpp"
#include "elog/appenders/console_appender.hpp"
#include "elog/formatters/pattern_formatter.hpp"
#include "elog/formatters/colored_formatter.hpp"
#include "elog/formatters/simple_formatter.hpp"
using namespace std;
int main(int argc, char** argv)
{
elog::PatternFormatter formatter0("%+", true... |
#include <iostream>
using namespace std;
int main()
{
int a[] = {1,2,2,1,1};
int size = 5;
int count = 0;
int i=0;
int j=0;
while(i<size){
i = j;
j = i+1;
while(a[i]==a[j]){
count = count+1;
cout<<"("<<a[i]<<","<<a[j]<<")"<<endl;
a[i]... |
#include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define rep1(i, n) for(int i = 1; i <= (int)(n); i++)
#define show(x) {for(auto i: x){cout << i << " ";} cout<<endl;}
#define showm(m) {for(auto i: m){cout << m.x << " ";} cout<<endl;}
typedef long l... |
#ifndef TREEDELEGATE_H
#define TREEDELEGATE_H
#include <QObject>
#include <QStyledItemDelegate>
#include "treeitem.h"
class TreeDelegate : public QStyledItemDelegate
{
Q_OBJECT
public:
explicit TreeDelegate(QObject *parent = 0);
~TreeDelegate();
QWidget *createEditor(QWidget *parent, const QStyleOpti... |
#include <iostream>
#include <string>
#include "record_calib_data.h"
#include "DEdvs/config.h"
#include "DEdvs/dedvs_auxiliary.h"
int main(int argc, char *argv[])
{
char time_string[200];
dedvs::getTimeString(time_string);
std::string file_path("calib_data" +
std::string(time_... |
#include "binaryTree.hpp"
#include <iostream>
BinaryTree::BinaryTree()
: root(nullptr)
{ }
BinaryTree::BinaryTree(const BinaryTree& orig)
:root(nullptr)
{
root = copyTree(orig.root);
}
BinaryTree::node* BinaryTree::copyTree(node* other) {
if (nullptr == other) {
return nullptr;
}
no... |
#ifndef __ERR_MESSAGE__
#define __ERR_MESSAGE__
#include <string>
class Expression;
class Type;
void error (const Expression&, const std::string&);
void error (const Type&, const std::string&);
void warning(const Expression&, const std::string&);
void warning(const Type&, const std::string&);
#endif//__ERR_MESSAG... |
#include "LogicAssets.hpp"
namespace rlrpg
{
LogicAssets::LogicAssets(
std::vector<EquipmentDesc> equipment_descs,
std::vector<EnchantmentDesc> enchantment_descs,
id_t item_counter):
m_noise_coord(0),
m_item_counter(item_counter),
m_equipment_descs(std::move(equipment_descs)),
m_enchantment_descs(std::m... |
/**
* Copyright (C) Omar Thor, Aurora Hernandez - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
*
* Written by
* Omar Thor <omar@thorigin.com>, 2018
* Aurora Hernandez <aurora@aurorahernandez.com>, 2018
*/
#ifndef DMTK_DATA_V... |
#include <luapp/luapp.hpp>
#include <luapp/luapp_luainc.h>
#include "fixtures.h"
#include <fstream>
#include <cstdio>
using std::ofstream;
int fxSignal::signal = 0;
size_t fxFiles::entryCount = 0;
fxGlobalVal::fxGlobalVal():
vs(context)
{
lua_pushnumber(context, 3.14);
lua_setglobal(context, "val");
vs.push_b... |
/***************************************************************************
* Copyright (C) 2009 by Dario Freddi *
* drf@kde.org *
* *
* This pr... |
#ifndef KWIK_EXCEPTION_H
#define KWIK_EXCEPTION_H
#include "libop/op.h"
#include "io.h"
namespace kwik {
struct CompilationError : public virtual op::BaseException {
SourceRef ref;
CompilationError(SourceRef ref) : ref(ref), formatted_what() { }
virtual const char* error_type() const noe... |
/*******************************************************************************
Copyright (c) 2010, Steve Lesser
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1) Redistributions of source code must retain the above c... |
#pragma once
class RandomObject
{
public:
RandomObject(int value): value(value){};
int value;
}; |
/* -*- 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 CSS_CONDITION_H
#define CSS_CONDITION_H
/** Conditions a... |
#include <iostream>
#include <string>
using namespace std;
// 姓名、出生日期、性别、固定电话号码、移动电话号码
struct Record {
string name, birthday, gender, phone, moblie;
};
ostream& operator << (ostream& out, Record& r) {
out << r.name << " "
<< r.phone << " "
<< r.moblie << " "
<< r.gender << " "
... |
#include <iostream>
#include <vector>
#include <set>
using namespace std;
void solve () {
int n;
cin >> n;
int ans = n / 2;
cout << (n % 2 == 0 ? ans - 1 : ans) << endl;
}
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
int n;
cin >> n;
while (n--) {
solve();
}
return 0;
}
|
#ifndef HTMLCONTENTGENERATOR_H
#define HTMLCONTENTGENERATOR_H
#include "configurable.h"
#include "generator.h"
class HTMLContentGenerator : public Generator, public Configurable
{
public:
~HTMLContentGenerator() override;
std::string generate(const std::string &path) override;
// Configurable interface
public:... |
//---------------------------------------------------------------------------
#include <math.h>
#include <algorith.h>
#pragma hdrstop
#include "CalcParams.h"
#include "TimeCourses.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
//---------------... |
#ifndef DSONE_H
#define DSONE_H
#include"dstwo.h"
#include <QDialog>
namespace Ui {
class dsone;
}
class dsone : public QDialog
{
Q_OBJECT
public:
explicit dsone(QWidget *parent = 0);
~dsone();
private slots:
void on_comboBox_Array_activated(const QString &arg1);
void on_com... |
#include "CavePoligonizer.h"
Ogre::ManualObject* CavePoligonizer::PoligonizeJoint(CaveRegion mainRegion, CubeFace unionFace, CaveRegion neighbourRegion)
{
char mainRegionName[50];
mainRegion.GetID(mainRegionName);
char neighbourRegionName[50];
mainRegion.GetID(mainRegionName);
char glueRegionName[100]... |
#include "stdafx.h"
#include "Employee.h"
// Function declaration
void Employee::print() const {
cout << employeeID << ": " << firstname << " " << lastname << endl;
}
Employee::~Employee()
{
}
|
// function example
// 함수를 만들어 보자
//입출력 스트림 파일을 인쿠르드 하고
#include <iostream>
// 네임 스페이스를 스탠다드로 ㅋㅋ
using namespace std;
//두개의 숫자를 더하는 함수
int addition(int a, int b)
{
int r;
r = a + b;
return r;
}
//두개의 숫자 중에서 큰 숫자에서 작은 숫자를 빼는 함수를 정의 한다.
int subtraction(int x, int y)
{
int z;
if (x > y) {
z = x - y;
}
else i... |
#include <bits/stdc++.h>
using namespace std;
#define For(x) for(int i = 0; i < x; i++)
#define For2(x) for(int j = 0; j < x; j++)
#define For3(x) for(int k = 0; k < x; k++)
#define Forv(vector) for(auto& i : vector)
#define Forv2(vector) for(auto& j : vector)
#define show(vector) for(auto& abcd : vector){cout<<abcd<<"... |
#pragma once
#ifndef CTPQUOTE_H_
#define CTPQUOTE_H_
#ifdef __cplusplus
extern "C" {
#endif
#define DllExport __declspec(dllexport)
#define WINAPI _cdecl
#define WIN32_LEAN_AND_MEAN
//#include <Windows.h>
struct MarketData
{
char InstrumentID[32];
///交易日
//int TradingDay;
///合约代码
//TThostFtdcInstrumentIDT... |
#include <iostream>
#include <stdlib.h>
// add's x can only be seen/used within function add()
int add(int x, int y) // add's x and y are created here and can only be seen/used within add() after this point
{
return x + y;
} // add's x and y are destroyed here
// main's x and y can only be seen/used wit... |
#include "mix_sign.h"
namespace mix {
Sign flip_sign(Sign sign) {
return sign == Sign::Positive ? Sign::Negative : Sign::Positive;
}
char to_char(Sign sign) {
return sign == Sign::Positive ? '+' : '-';
}
} // namespace mix
|
#ifndef WNICKRESPONSE_H
#define WNICKRESPONSE_H
#include "wevent.h"
#include <QString>
#include <QDataStream>
class WNickResponse : public WEvent
{
public:
WNickResponse();
WNickResponse(bool accepted_p, quint64 senderId_p, const QString& fallback_p = "");
bool isAccepted() const;
void setAccepted(bo... |
#include "ChatProcess.h"
#include "Logger.h"
#include "HallManager.h"
#include "Room.h"
#include "ErrorMsg.h"
#include <string>
#include "GameCmd.h"
#include "ProcessManager.h"
REGISTER_PROCESS(CLIENT_MSG_CHAT, ChatProcess)
struct Param
{
int uid;
int tid;
int touid;
short msgtype;
};
ChatProcess::ChatProcess(... |
//===========================================================================
//! @file HitPoint.h
//===========================================================================
#pragma once
#if 0
//===========================================================================
//! HitPoint
//==============================... |
// Copyright (c) 2015, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
//
// This file is part of Caliper.
// Written by David Boehme, boehme3@llnl.gov.
// LLNL-CODE-678900
// All rights reserved.
//
// For details, see https://github.com/scalability-llnl/Caliper.... |
/*******************************************************************************
* filename: C_RobustEvolution.hpp
* description: Derived class for running evolution of a robust network
* author: Moritz Beber
* created: 2010-06-11
* copyright: Jacobs University Bremen. All rights reserved.
*********... |
#include <stdio.h>
#include <SFML/Graphics.hpp>
#include <iostream>
#include "tile.cpp"
#include "puzzleGenerator.cpp"
#include "game.h"
using namespace std;
/**
* Clears and resets background, then continues in loop of:
* 1: Display current puzzle
* 2: Get user input
* 3: Update current puzzle
*/
/**
* This functi... |
#include <iostream>
using namespace std;
int main()
{
int n, k, i;
int tmp=0;
cin >> n;
cin >> k;
for (i=2;i <= n; i++) tmp = (tmp + k) % i;
cout << tmp+1;
return 0;
} |
#include <iostream>
#include <cstring>
#include "Explicit.h"
#include "Vector.h"
#include "Stock.h"
#include "Time.h"
#include "MyString.h"
#include "MyLogger.h"
using namespace std;
// Function to test explicit functionality
int explicit_test() {
// Explicit acts as a safe guard between converting types
// We s... |
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/opencv.hpp>
#include "utils.h"
#include <cuda.h>
#include <cuda_runtime.h>
#include <string>
using namespace cv;
using namespace std;
Mat imageRGBA;
Mat imageGray;
Mat imageEdge;
uchar4 *d_rgbaImage__;
unsigned char *d_grayImag... |
#include <vector>
using namespace std;
class SkiResortsEasy
{
public:
int minCost(vector<int> altitude)
{
int cost=0;
int previos = altitude.at(0);
for (vector<int>::iterator it = altitude.begin(); it != altitude.end(); ++it) {
if (*it > previos) {
cost += *it - previos;
*it = previos;
}
prev... |
#ifndef CHUNKSHADER_H
#define CHUNKSHADER_H
#include "abstractshader.h"
class ChunkShader : public AbstractShader
{
public:
ChunkShader(const std::string &vertexFile = "chunk.vert",
const std::string &fragmentFile = "chunk.frag");
void loadProjectionViewMatrix(const Matrix4 &matrix);
protect... |
#ifndef Core_GFallBoomAttack_h
#define Core_GFallBoomAttack_h
#include "GFarAttack.h"
class GFallBoomAttack : public GFarAttack
{
GnDeclareCreateAttack;
public:
static GFarAttack* CreateAttack(guint32 uIndex);
public:
void Update(float fTime);
void SetPosition(GnVector2 cPos);
inline eBasicStartP... |
#include <algorithm>
#include <xlnt/xlnt.hpp>
#include <iostream>
#include <vector>
using namespace std;
//data types
class lottoData_t
{
private:
vector<vector<int>> rawData;//rawData[n][6] : 보너스번호, rawData[n][0] ~ rawData[n][5] : 당첨번호
public:
auto normal_predict(int startRange, int endRange)//범위에 따... |
#ifdef SELFTEST
#ifdef MACGOGI
#include "platforms/macgogi/selftests/selftests10.h"
#else
#include "platforms/mac/selftests/selftests10.h"
#endif
#endif // SELFTEST
|
#include "firewarning.h"
#include <Mmsystem.h>
#pragma comment(lib,"winmm.lib")//导入声音头文件库
//单独线程用于连续报警
UINT MyThreadProc(LPVOID pParam ) //报警线程
{
char quit=0;
while(!quit)
{
if(WaitForSingleObject(hMutex,300) != WAIT_FAILED)
{
quit = tdquit;
ReleaseMutex(hMutex);
}
PlaySound(... |
// -*- LSST-C++ -*-
/*
* LSST Data Management System
* Copyright 2009-2015 LSST Corporation.
*
* 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 ... |
// Copyright 2015 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "sender/video_encoder.h"
#include "base/logger.h"
#include "net/sharer_transport_config.h"
#include "sharer_defines.h"
#include "ppapi/cpp/instanc... |
/********************************
Name: Saiteja Yagni
Class: CSCI 689/1
TA Name: Anthony Schroeder
Assignment: 05
Due Date: 02/26/2016
*********************************/
/***************************************************************************************************************... |
#include <windows.h>
#include <sql.h>
#include <sqlext.h>
#include <iostream>
#include <string>
using namespace std;
void listAccess(string query, int input) {
const int MAX_DATA = 100;
RETCODE rc;
HENV henv;
HDBC hdbc;
HSTMT hstmt;
char szData[MAX_DATA];
string stSQL;
SQLLEN cbData;
char szPrice[10];
SQL... |
// Created by: Eugeny MALTCHIKOV
// Copyright (c) 2017 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 S... |
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
// CameraRunnerScript
struct CameraRunnerScript_t3282811904;
// DistroyerScript
struct DistroyerScript_t... |
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4; c-file-style:"stroustrup" -*-
**
** Copyright (C) 1995-2005 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 SUPPORT_... |
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*-
**
** Copyright (C) 1995-2007 Opera Software ASA. All rights reserved.
**
** This file is part of the Opera web browser. It may not be distributed
** under any circumstances.
**
** Peter Karlsson
*/
/** @file optablemanager.h
*
* This modul... |
// Copyright (c) 2018-2019 The NavCoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "consensus/dao.h"
#include "base58.h"
#include "main.h"
#include "rpc/server.h"
#include "utilmoneystr.h"
void GetV... |
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include "heapfileLib.h"
void convertStringToRecordID(RecordID *recordId, std::string recordStr) {
recordId->page_id = atoi(recordStr.substr(0, recordStr.length() - 5).c_str());
recordId->slot = atoi(recordStr.substr(recordStr.length() - 5, 5).c_str());
}
int... |
#include "SpriteBatch.h"
#include <GL\glew.h>
#include <assert.h>
using namespace std;
SpriteBatch::SpriteBatch()
{
m_vertexBufferID = 0;
m_indexBufferID = 0;
m_vertexArrayID = 0;
m_texBufferID = 0;
}
SpriteBatch::~SpriteBatch()
{
if(m_vertexBufferID)
{
glDeleteBuffers(1, &m_vertexBufferID);
}
if(m_texBuffe... |
#pragma once
#include"common.h"
class PageCache
{
public:
static PageCache* GetInstance()
{
return &Inst;
}
Span* NewSpan(size_t npage);
Span* _NewSpan(size_t npage);
//获得从对象到span的映射
Span* MapObjectToSpan(void* obj);
//释放空间span回Pagecache,并合并相邻的span
void ReleaseSpanToPageCache(Span* span);
... |
#include <LiquidCrystal.h> // includes the library to control the LCD display
#define BUTTONUP 14 //Button up in on Pin14 of the Arduino Nano
#define BUTTONDOWN 16 //Button down in on Pin16 of the Arduino Nano
#define BUTTONOK 15 //Button OK in on Pin15 of the Arduino Nano
#define BUTTONCE 17 //Button CE in... |
/* -*- 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.
*
* @author Manuela Hutter (manuelah)
*/
#include "core/pch.h"
#... |
#ifndef EPSILONNFA_H
#define EPSILONNFA_H
#include <iostream>
#include <stdlib.h>
#include "Tree.h"
#include "CharClass.h"
#include "StatusEdge.h"
using namespace std;
typedef StatusBase<NfaStatusNumber, EdgeMatchContent> NfaStatusBase;
typedef NfaStatusBase::EdgeBase NfaEdgeBase;
typedef Status<NfaStat... |
#include "RNG.hpp"
#include "Dice.hpp"
#include <iostream>
namespace rlrpg
{
RNG::RNG(noise_coord_t coord) : m_coord(coord) { }
noise_coord_t RNG::nextCoord() { return ++ m_coord; }
size_t RNG::roll_dice(size_t sides)
{
return rlrpg::roll_dice(sides, nextCoord());
}
size_t RNG::roll_dices(size_t count, siz... |
#ifndef __POINT_H__
#define __POINT_H__
#include <iostream>
using namespace std;
class Point {
private:
int xpos, ypos;
public:
Point(int x = 0, int y = 0);
void showPosition()const;
void setPos(int, int);
friend ostream& operator<<(ostream&, const Point&);
};
#endif |
#pragma once
#pragma once
#ifndef PuzzleArea_h
#define PuzzleArea_h
#include <vector>
#include "Ekwipunek.h"
class PuzzleArea {
public:
int X_exit=300;
int Y_exit=450;
int x_pos;
int y_pos;
int width;
int height;
int area_id;
bool Backward(int,int,char);//Cofnij widok
virtual bool Activate(Ekwipunek*,char)=... |
//By SCJ
//#include<iostream>
#include<bits/stdc++.h>
using namespace std;
#define endl '\n'
#define maxm 60004
#define maxn 20004
#define maxq 2000005
#define int long long
int n,m;
stack<int> sta[maxn];
struct Edge{
int x,y;
}es[maxm];
bool dont[maxm];
struct Qry{
char type;
int x,y;
}QY[maxq];
struct treap;
tre... |
//###############################################################################
// INTRODUCCION: InputManager.h
//------------------------------------------------------------------------------
// Esta clase nos permite trabajar con los recursos de entrada de una forma
// centralizada. Este codigo implementa las funci... |
typedef int OP_STATUS;
typedef unsigned short uni_char;
#include "adjunct/spellcheck/spellcheckAPI.h"
#include "platforms/mac/spellcheck/spellcheck_lib.h"
#include "platforms/mac/util/systemcapabilities.h"
#include <Carbon/Carbon.h>
extern "C" {
int get_spellcheck_glue(SpellcheckExternalAPI*& outSpellCheck);
int dele... |
/****************************************************************************
* *
* Author : lukasz.iwaszkiewicz@gmail.com *
* ~~~~~~~~ *
* Lice... |
/*************************************************************************/
/* Copyright (C) Network Accessing Control -USTC, 2013 */
/* */
/* File Name : common/KProtocol.h */
/* Pricipal Aut... |
#include "light.h"
light::light(const ::color color, const double intensity) :
_color(color),
_intensity(intensity)
{}
auto light::get_color() const -> ::color
{
return _color;
}
|
//
// Created by OLD MAN on 2020/1/6.
//
//为了能够更清晰整齐地看到输出结果,我们可以去控制输出的格式。
//
//读入三个整数,按每个整数占 8 个字符的宽度,右对齐输出它们。
//
//输入格式
// 只有一行,包含三个int范围内的整数,整数之间以一个空格分开。
//
//输出格式
// 只有一行,按照格式要求依次输出三个整数,之间以一个空格分开。
//#include <bits/stdc++.h>
#include <iostream>
#include <iomanip>
using namespace std;
int main(){
i... |
// Copyright (c) 2007-2014 Hartmut Kaiser
// Copyright (c) 2011 Bryce Lelbach
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
/// \file get_thread_name.hpp
#pragma ... |
#pragma once
#include "Player.h"
#include <string>
using namespace std;
class Ssudda
{
private:
int card[20];
int playerNumber;
int tableMoney; // 해당 판에 배팅된 총 금액
Player player[4];
enum combo {
GwangTtaeng38, GwangTtaeng,
ZangTtaeng, Ttaeng9, Ttaeng8, Ttaeng7, Ttaeng6,
Ttaeng5, Ttaeng4, Ttaeng3, Ttaeng... |
// ShowSearchResult.cpp : 实现文件
//
#include "stdafx.h"
#include "generate-line.h"
#include "ShowSearchResult.h"
#include <string-trans.h>
// ShowSearchResult 对话框
IMPLEMENT_DYNAMIC(ShowSearchResult, CDialog)
ShowSearchResult::ShowSearchResult(CWnd* pParent /*=NULL*/)
: CDialog(ShowSearchResult::IDD, pPa... |
int exgcd(int a,int b,int &x,int &y)
{
if(b==0)
{
x=1;
y=0;
return a;
}
int ans=exgcd(b,a%b,y,x);
y-=a/b*x;
return ans;
}
/*中国剩余定理(互质) 一元线性同余方程组 x=a(modm)*/
/*设ai,Mi为除该数外的摸数乘积,ti为Mi模mi数论倒数*/
/*ans(ai*ti*Mi)*/
/*a[],p[]模,n,长度*/
int crt(int a[],int p[],int n)
{
int muls=1;
int ret=0;
for(int i=0;i<n;i++) ... |
#include <iostream>
#include <vector>
#include <cmath>
using namespace std;
int main()
{
std::ios::sync_with_stdio(false);
int T,n,m,D,H;
cin>>T;
while(T>0)
{
cin>>n>>m>>D;
for(int i=0;i<n;i++)
{
cin>>H;
if(m>0)
m=m-(H-1)/D;
}
if(m>0)
cout<<"NO"<<endl;
else
cout<<"YES"<<endl;
T--;
}... |
#include <iberbar/RHI/ShaderVariables.h>
#include <iberbar/RHI/Texture.h>
//
//
//
//
//iberbar::RHI::CShaderVariables::CShaderVariables()
// : m_Bools()
// , m_Samplers()
//{
//}
//
//
//iberbar::RHI::CShaderVariables::~CShaderVariables()
//{
// Clean();
//}
//
//
//iberbar::RHI::CShaderVariables::CShaderVariabl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.