code注意点(杂文)
Sunny_yang06
这个作者很懒,什么都没留下…
展开
-
C++中new和delete的实质--代码解释
#includeusing namespace std;class A{ int i;public: A(int k = 0):i(k){ cout void print() { cout ~A() { cout};int main(){ //下面实现A *p = new A; A *p; try{ void *m = ::operator new (sizeof(A)); p =原创 2007-07-07 22:01:00 · 962 阅读 · 0 评论 -
The differences between System.out and System.err
As we know, System.out is used as the standard output in Java and System.err is often used to output the error messages you do not expect coming. However, the essential difference between them is that原创 2007-10-30 21:33:00 · 509 阅读 · 0 评论 -
C语言中unsigned int 与 int 的自动转换
int main(){ unsinged int a = 6; int b = -20; (a+b>0)?puts(">6"):puts("}打印结果为>6原因:int b = -20会自动转化为int,为一很大的数总结:正常情况转化char/enmu->int->long->double. 有符号转化为无符号的原创 2007-12-12 17:41:00 · 1903 阅读 · 0 评论