
C++/MFC
lzyint
这个作者很懒,什么都没留下…
展开
-
C和C++中的static
一. C语言 static在c里面可以用来修饰变量,也可以用来修饰函数。 先看用来修饰变量的时候。变量在c里面可分为存在全局数据区、栈和堆里。其实我们平时所说的堆栈是栈而不包含对,不要弄混。 int a ; main() { int b ; int c* = (int转载 2007-10-09 09:23:00 · 525 阅读 · 0 评论 -
深入理解sizeof
一、好首先看看sizeof和strlen在MSDN上的定义:首先看一MSDN上如何对sizeof进行定义的:sizeof Operatorsizeof expressionThe sizeof keyword gives the amount of storage, in bytes, associated with a variable or a type (includ转载 2007-10-09 16:30:00 · 381 阅读 · 0 评论