j*****k 发帖数: 1198 | 1 【 以下文字转载自 JobHunting 讨论区 】
发信人: wish21 (wish), 信区: JobHunting
标 题: An empty C structure Question
发信站: BBS 未名空间站 (Mon Nov 12 20:44:24 2007)
When creating an empty C structure, which one function is automatically
generated? | j*****k 发帖数: 1198 | 2 谁知道这个?我还真不知道
【在 j*****k 的大作中提到】 : 【 以下文字转载自 JobHunting 讨论区 】 : 发信人: wish21 (wish), 信区: JobHunting : 标 题: An empty C structure Question : 发信站: BBS 未名空间站 (Mon Nov 12 20:44:24 2007) : When creating an empty C structure, which one function is automatically : generated?
| c****e 发帖数: 1453 | | c********x 发帖数: 84 | 4 constructor, you need the know the defference between a struct and a class. | j*****k 发帖数: 1198 | 5 this is a C structure, not a C++ structure
【在 c********x 的大作中提到】 : constructor, you need the know the defference between a struct and a class.
| c********x 发帖数: 84 | 6
if compile under C++, then it is a contructor, if under C, I don't think
there is function generated with a struct.
【在 j*****k 的大作中提到】 : this is a C structure, not a C++ structure
| s****i 发帖数: 150 | 7 如果是C++的empty structure,应该是default constructor吧
【在 j*****k 的大作中提到】 : this is a C structure, not a C++ structure
|
|