資源簡介
c++學習之動態內存運算符的使用方法和源代碼用例,供c++初學者使用
代碼片段和文件信息
#include?
#include?
using?namespace?std;
struct?Student{
char?name[10];
int?num;
char?sex;
};
int?main()
{
Student?*p;
p=new?Student;
strcpy(p->name“劉存林“);
p->num=2012
- 上一篇:c++變量引用的學習用例
- 下一篇:labview與單片機rs232串口通信
評論
共有 條評論