由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - What problem can occur when dynamically allocated classes
相关主题
why do we still use dynamic allocation?C++里面 class的数据成员的顺序是什么样的?
Dynamic buffer management questionWhat does the default constructor do?
内存分配问题Marshal C++ struct to C# struct
a small question about c++ memory allocation给几个teacherwei代码的评审意见吧
Question in C++ complex number implementationPlease Help, dynamic memory after fork()
写惯了C++ code,再写C code真不习惯static variable存在heap还是stack?
请问可以这样定义struct吗?vector< vector > > 怎么初始化?
[合集] more interview questions一个c++小问题
相关话题的讨论汇总
话题: what话题: allocated话题: occur话题: classes
进入Programming版参与讨论
1 (共1页)
c**********e
发帖数: 2007
1
What problem can occur when dynamically allocated classes
or structs have pointers to string literals?
Thanks a lot!
r*******y
发帖数: 290
2
The pointer doesn't point to a valid memory
you need to allocate it in ctor

【在 c**********e 的大作中提到】
: What problem can occur when dynamically allocated classes
: or structs have pointers to string literals?
: Thanks a lot!

1 (共1页)
进入Programming版参与讨论
相关主题
一个c++小问题Question in C++ complex number implementation
请问一个入门级 dynamic memory 的问题写惯了C++ code,再写C code真不习惯
【请教】在家里用2个router上网(一前一后)的问题 (转载)请问可以这样定义struct吗?
3 c++ challenge-and-grill questions[合集] more interview questions
why do we still use dynamic allocation?C++里面 class的数据成员的顺序是什么样的?
Dynamic buffer management questionWhat does the default constructor do?
内存分配问题Marshal C++ struct to C# struct
a small question about c++ memory allocation给几个teacherwei代码的评审意见吧
相关话题的讨论汇总
话题: what话题: allocated话题: occur话题: classes