#include<iostream> #include"student.h" int main() { char *str; str=new char[100]; str="陈麟"; Student s1(1,100,str); s1.print(); delete []str; return 0; }
#include<iostream> #include<string.h> #include"student.h" int main() { char *str; str=new char[100]; strcpy(str,"陈麟"); Student s1(1,100,str); s1.print(); delete []str; return 0; }
str="陈麟";
64,649
社区成员
250,477
社区内容
加载中
试试用AI创作助手写篇文章吧