
c/c++
冇得闲
这个作者很懒,什么都没留下…
展开
-
某公司c/c++ 笔试题
int main(){ for(int i = 0; i < 2; i ++) { fork(); printf("-"); } return 0;}int main(){ for(int i = 0; i < 2; i ++) { fork(); printf("-\n");原创 2012-10-06 10:51:36 · 874 阅读 · 0 评论 -
ping 代码
/*author: zhangzhijiantime: 2012-11-14creater sock must root ping localhost [-n count]*/#include #include #include #include #include #include #include #include #include #include #inc原创 2012-11-14 21:06:08 · 687 阅读 · 0 评论 -
c++ 的类型转换
http://www.cplusplus.com/doc/tutorial/typecasting/1 static_cast用法:static_cast ( expression ) 该运算符把expression转换为type-id类型,但没有运行时类型检查来保证转换的安全性。它主要有如下几种用法:①用于类层次结构中基类和子类之间指针或引用的转换。 进原创 2013-02-19 09:24:48 · 421 阅读 · 0 评论