由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 大家谈谈看??
相关主题
一道 memset in C++的题what is the difference?
Is the order of initialization a, b, c or c, b, a?static initialization dependency c++
one question about initializaiton list关于数组动态分配的疑问???
How to initialize object in constructor?C++ 中 myobject * a =new myobject[n] 的问题
抠字眼:assignment and initialize in C++c++:constructor 一问
c++ initialize structTest your C++ knowledge...
pthread_create inside a constructoroperator() overloading 一问
问个copy constructor的问题几个问题
相关话题的讨论汇总
话题: does话题: answer话题: example话题: general话题: work
进入Programming版参与讨论
1 (共1页)
m*********y
发帖数: 127
1
Please answer the following c++ questions. Do not simply answer yes/no.
Always explain your assumptions and reasoning.
1. memset is sometimes used to initialize data in a constructor like the
example below. What is the benefit of initializing this way? Does it work
in this example? Does it work in general ? Is it a good idea in general?
class A {
public:
A();
private:
int a;
float f;
char str[35];
long *lp;
};
A::A()
1 (共1页)
进入Programming版参与讨论
相关主题
几个问题抠字眼:assignment and initialize in C++
c++问题,请高人指点迷津,c++ faq lite的一个例子c++ initialize struct
[合集] 一些C++问题pthread_create inside a constructor
Q on overloaded assignment vs copy constructor.问个copy constructor的问题
一道 memset in C++的题what is the difference?
Is the order of initialization a, b, c or c, b, a?static initialization dependency c++
one question about initializaiton list关于数组动态分配的疑问???
How to initialize object in constructor?C++ 中 myobject * a =new myobject[n] 的问题
相关话题的讨论汇总
话题: does话题: answer话题: example话题: general话题: work