码迷,mamicode.com
首页 >  
搜索关键字:include    ( 84546个结果
第十二周项目3-摩托车继承自行车和电动车
#include #include #include using namespace std; enum vehicleStaus {rest, running}; //车辆状态:泊车、行进 class vehicle //车辆类,虚基类 { protected: int maxSpeed; //最大车速 int currentSpeed;...
分类:其他好文   时间:2014-05-15 15:05:01    阅读次数:262
C++ 复制构造和赋值操作符调用
主要是为了记录说明 : class A; A a; A b = a; //这个是调用复制构造函数呢?还是先构造,再调用赋值操作符? 结果是前者。 测试代码:  #include #include class A { public: A() { printf("%s\n", "A constructor"); } A(cons...
分类:编程语言   时间:2014-05-15 11:17:40    阅读次数:365
九度 1339
#include #include #include #include using namespace std; #ifdef ONLINE_JUDGE #define FINPUT(file) 0 #define FOUTPUT(file) 0 #else ...
分类:其他好文   时间:2014-05-15 06:27:05    阅读次数:230
hdu AC me
/* * hdu AC Me * date 2014/5/13 * state AC */ #include #include #include #include using namespace std; const int MAXN=100001; char Arr[MAXN]; int cnt[26]; int main() { //cout << "Hello wor...
分类:其他好文   时间:2014-05-15 06:16:24    阅读次数:247
linux c 网络编程:用域名获取IP地址或者用IP获取域名 网络地址转换成整型 主机字符顺序与网络字节顺序的转换
用域名获取IP地址或者用IP获取域名 #include #include #include int main(int argc,char **aggv) { struct hostent *host; char hostname[]="www.163.com"; char hostname2[]="www.baidu.com"; s...
分类:系统相关   时间:2014-05-15 06:15:07    阅读次数:406
12周 项目2 老师兼干部类
#include #include using namespace std; class Teacher { public: Teacher(string nam,int ag,char s,string ad,int num,string t) { name=nam; age=ag; sex=s; ...
分类:其他好文   时间:2014-05-15 04:32:56    阅读次数:262
Call back function implement
Call back function easily implement     #include void HelloWorld(int nIndex) { printf("%d person say Hello World\n",nIndex); } void MyName(int len) { printf...
分类:其他好文   时间:2014-05-15 04:21:05    阅读次数:270
c++ primer 消息处理示例+课后习题完成
最近又重新浏览了c++ primer , 感觉以前看的太浅显了,所以抽空又翻了翻,感觉里面很多的知识还是不是熟悉,正好今天看到复制控制这章的例题--消息处理示例,同时也把课后习题要求了顺带完成了。        贴一下代码,供大家参考,相互学习哈! //Msg类 #ifndef MSG_H #define MSG_H #include "Folder.h" #include #include...
分类:编程语言   时间:2014-05-15 03:37:54    阅读次数:368
UVa 10308 Roads in the North 树的直径
题目来源:UVa 10308 Roads in the North 题意:求距离最远的2点之间的距离 思路:裸的树的直径 或者树形DP #include #include #include using namespace std; const int maxn = 100010; struct node { int to, w; node(){} node(int to, int...
分类:其他好文   时间:2014-05-15 03:37:18    阅读次数:295
hdu 最小公倍数
/* * hdu 最小公倍数 * date 2014/5/13 * state AC */ #include using namespace std; int gcd(int x,int y) { while(x!=y) { if(x>y)x=x-y; else y=y-x; } return x; } int main() ...
分类:其他好文   时间:2014-05-14 14:29:59    阅读次数:225
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!