
c/c++
iteye_11901
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Little Or Big Endian
1、定义 Little Endian: 低位 字节 保存至 内存低位地址段, 将 高位 字节 保存至 内存高位地址段 Big Endian: 将 高位 字节 保存至 内存低位地址段, 将 低位 字节 保存至 内存高位地址段 2、举例 一般 Intel 处理器 是 Little Endian 网络字节序 是 Big Endian 3、程序判断 [co...原创 2009-11-30 17:29:54 · 114 阅读 · 0 评论 -
答复: 迅雷亲历面经:JAVA 笔试+上机+面试(完整面试题大讨论)
[quote]有三个线程ID分别是A、B、C,请有多线编程实现,在屏幕上循环打印10次ABCABC… [/quote] 引申了一下: 有n个线程,ID为0...n-1,在屏幕上循环打印m次012..n-1 用 c/pthread 实现 :) [code="c"] //@Author : idup2x@gmail.com #include #include ...2009-12-01 00:22:37 · 362 阅读 · 0 评论 -
C++ 虚函数表
C++中,通过虚函数表,可以访问基类的私有成员函数: [code="c++"] #include using namespace std; class Base{ private: virtual void f() {cout2009-05-20 10:09:33 · 97 阅读 · 0 评论 -
gcc 编译的四个阶段
gcc/g++ 编译的四个阶段: 预处理,不编译、不汇编、不链接 -E Preprocess only; do not compile, assemble or link 只编译,不汇编,不链接 -S Compile only; do not assemble or link 编译和汇编,不链接 -c Compile and assemble, but do not lin...2009-05-22 15:52:09 · 225 阅读 · 0 评论