上一页 1 ··· 5 6 7 8 9 10 下一页
#includeusing namespace std;int get(int a=10){ return a;}double get_cycle_area(double r,double pi=3.1415){ return pi*r*r;}double get_cy... Read More
posted @ 2016-03-30 10:15 夜色下的港湾 Views(99) Comments(0) Diggs(0)
#includeusing namespace std;//函数重载:指的是有两个或以上的函数名字相同,但是函数参数的类型或个数不同;int MAX(int a,int b){ coutb?a:b;}char MAX(char a,char b){ coutb?a:b;... Read More
posted @ 2016-03-30 10:12 夜色下的港湾 Views(166) Comments(0) Diggs(0)
1.#include#includeusing namespace std;int main(){ vector v(5); cout#includeusing namespace std;int main(){ vector v(5); cout::ite... Read More
posted @ 2016-03-30 10:08 夜色下的港湾 Views(236) Comments(0) Diggs(0)
#includeusing namespace std;//函数重载:指的是有两个或以上的函数名字相同,但是函数参数的类型或个数不同;//重载的函数一定要精确匹配,即使能编译通过,但对于出现的warning还是要小心int MAX(int a,int b){ coutb?a:... Read More
posted @ 2016-03-28 22:33 夜色下的港湾 Views(160) Comments(0) Diggs(0)
#includeusing namespace std;//函数重载:指的是有两个或以上的函数名字相同,但是函数参数的类型或个数不同;int MAX(const int a,const int b){ coutb?a:b;}int MAX(int a,int b){ c... Read More
posted @ 2016-03-28 22:31 夜色下的港湾 Views(140) Comments(0) Diggs(0)
include using namespace std; //函数重载:指的是有两个或以上的函数名字相同,但是函数参数的类型或个数不同;int Max (int a , int b){ cout b? a:b;}char Max (char a, char b){ c... Read More
posted @ 2016-03-28 22:30 夜色下的港湾 Views(82) Comments(0) Diggs(0)
UI界面类项目: Panoramagl —— 720全景展示 Panorama viewer library for iPhone, iPad and iPod touchMBProgressHUD —— 进度指示 一种优雅的,半透明的进度显示效果。同时还提供了其他附加功能,比如显... Read More
posted @ 2016-03-28 22:24 夜色下的港湾 Views(139) Comments(0) Diggs(0)
1 内存共享 内存的获取 int fd = shmget(key_t key ,size_t size , int shmflg); 内存的关联 void* shmat(int shmid ,const void* shmaddr , in... Read More
posted @ 2016-03-28 00:48 夜色下的港湾 Views(224) Comments(0) Diggs(0)
IO五种模式 * 阻塞I|O 非阻塞模式 fcntl(fd , F_SETFL , flag |O_NONBLOCK) int select(int nfds,fd_set *readfds ,fd_set* writefds , fd_se... Read More
posted @ 2016-03-28 00:42 夜色下的港湾 Views(127) Comments(0) Diggs(0)
epollserver.cpp#include #include #include #include #include #include #include #include #include #include #include using namespace std;void w... Read More
posted @ 2016-03-28 00:37 夜色下的港湾 Views(113) Comments(0) Diggs(0)
上一页 1 ··· 5 6 7 8 9 10 下一页