快捷导航

几个小疑问

#include//#include   //为什么这里注释了程序还能正常运行?程序里有strcpy、strlenusing namespace std;const int SLEN = 30;struct student{ char fullname[SLEN]; char hobby[SLEN]; int ooplevel;};int getinfo(student pa[], int n);void display1(student st);void display2(const student *ps);void display3(const student pa[], int n);int main(){ cout > class_size; while (cin.get() != '\n')  continue; student *ptr_stu = new student[class_size]; int entered = getinfo(ptr_stu, class_size); for (int i = 0; i < entered; i++) {  display1(ptr_stu);  display2(&ptr_stu); } display3(ptr_stu, entered); delete[] ptr_stu; cout

免责声明:本内容仅代表回答者见解不代表本站观点,请谨慎对待。

版权声明:作者保留权利,不代表本站立场。

回复

使用道具 举报

参与会员1

在我的IDE里无法通过编译,你运行前重新编译覆盖之前的。
回复

使用道具 举报

可能感兴趣的问答

发新帖
  • 微信访问
  • 手机APP