有如下类定义及类应用 试问 该程序输出为____ class CStudent { int sno; public: static int st

大学网课 已帮助 人

有如下类定义及类应用,试问,该程序输出为____ class CStudent { int sno; public: static int stuCount; CStudent(int sno):sno(sno) { stuCount++;} CStudent():sno(0) { stuCount++;} ~CStudent(){} }; int CStudent::stuCount=0; int main() { CStudent stu1(1); CStudent *pstu=new CStudent[2]; cout<<stu1.stuCount; }

有如下类定义及类应用 试问 该程序输出为____ class CStudent { int sno; public: static int st

热搜:下列是切换已打开的应用程序窗口