- 博客(4)
- 资源 (9)
- 收藏
- 关注
原创 深入理解计算机系统 Number1
(1) The source program is a sequence of bits, each with a value of 0 or 1, organized in 8-bit chunks called bytes. Each byte represents some text character in the program. (2) Most modern systems re
2011-11-18 23:49:18 881
原创 Effective C++(Item3) Prefer new and delete to malloc and free
string* stringArray1 = static_cast(malloc(10*sizeof(string))); string* stringArray2 = new string[10]; stringArray1 points to enough memory for 10 string objects,but no objects have been constructed
2011-11-05 00:35:45 880 1
原创 effective C++ (Item2) Prefer <iostream> to <stdio.h>
type safety and extensibility are cornerstones of the C++ way of life. int i; Rational r; cin >> i >> r; cout if this code is to compile, there must be functions operator >> and operator ther
2011-11-03 23:52:00 789
原创 Effective C++(Item1) Prefer const and inline to #define
1 compare const and #define This can be called perfer the compiler(编译器) to the preprocessor(预处理器) #difine ASPECT_RATIO 1.098 the symbolic name ASPECT_RATIO may never be seen by compilers;it may
2011-11-03 01:27:03 2937 4
按钮类的使用
2011-09-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人