码迷,mamicode.com
首页 >  
搜索关键字:std    ( 41627个结果
Ubuntu下wxWidgets学生信息管理sqlite3(C++)
main.cxx#include #include #include #include using namespace std; int main() { sqlite3* file; int flag; flag = sqlite3_open("./stu.db", &file); if(...
分类:数据库   时间:2014-06-29 14:36:03    阅读次数:254
OpenCL( 一)
#include #include #include #include #pragma comment(lib, "OpenCL.lib")const char * loadfile(const char * fileName){ std::ifstream fs(fileName, std...
分类:其他好文   时间:2014-05-29 00:21:15    阅读次数:246
【Cpp】考点·C++数据抽象
构造函数 自动初始化对象的特殊的成员函数 与所属的类名同名 可以在类中声明并定义构造函数,或在类中声明而在外部定义 可以同时有几个含有不同参数的构造函数,实例化时通过不同参数定义不同的对象 1 #include 2 3 using namespace std; 4 5 class da...
分类:编程语言   时间:2014-05-28 23:57:40    阅读次数:366
重点算法--快速排序
#includeusing namespace std;////写出快速排序,归并排序与堆排序int adjustarray(int a[],int left,int right){ int x = a[left]; while(left x && left < right) righ...
分类:其他好文   时间:2014-05-28 21:32:19    阅读次数:282
重点算法--合并排序
#includeusing namespace std; void merge(int left,int mid,int right,int a[],int b[]){ int i = 0; int cursor1 = left; int cursor2 = mid +1; while(cu...
分类:其他好文   时间:2014-05-28 20:09:44    阅读次数:300
QueryInterface
1 // 08win32console-ATL.cpp : 定义控制台应用程序的入口点。 2 // 3 4 5 #include "stdafx.h" 6 #include 7 #include 8 9 using std::cout; 10 using std::en...
分类:其他好文   时间:2014-05-28 12:48:07    阅读次数:369
hdu 3367 Pseudoforest
http://acm.hdu.edu.cn/showproblem.php?pid=3367 1 #include 2 #include 3 #include 4 #define maxn 20000 5 using namespace std; 6 7 int n,m; 8 int f[m...
分类:其他好文   时间:2014-05-28 00:03:30    阅读次数:451
T端根据玩家职业来显示不同颜色的角色名字的C++代码
这里是一个简单实用的函数,主要是根据职业的不同,当你需要调用角色名字的时候,根据你的角色名字的不同,来显示各种不同的颜色的名字std::string m_ClassColor[12] = { //首先定义一个组,根据不同的职业类别 "", // 0 No...
分类:编程语言   时间:2014-05-27 16:51:53    阅读次数:262
sscanf
#define LOCAL#include#include#includeusing namespace std;int main(){#ifdef LOCAL freopen("sscanf.in","r",stdin); freopen("sscanf.out","w",stdout...
分类:其他好文   时间:2014-05-26 18:50:27    阅读次数:222
gcc使用笔记
1.如何在gcc中传输宏定义?参考如下红色部分,可以传入宏定义gcc [-c|-S|-E] [-std=standard] [-g] [-pg] [-Olevel] [-Wwarn...] [-pedantic] [-Idir...] [-...
分类:其他好文   时间:2014-05-26 18:08:16    阅读次数:183
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!