A.-5
B.-6
C.-5.8
D.出错
下列程序运行结果是 。 class Student { int score ; static int count ; public : Student ( int n=0) { score =n ; count++ ; } Student (Student &p) { score =p. score ; count++ ;} ~Student ( ) { cout<<"the number of the students: endl; } void showscore( )> < <endl; } static int getcount( ){ return count="0" ; student fun(student p0) { p1="p0;" number of the students: endl p1; :: void main( ) john(80) cout "the score john: "; john.showscore( ); tom; tom="fun(John);" tom: tom.showscore(>
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!