OpenJudge

P:编程填空:输出相应结果

总时间限制:
1000ms
内存限制:
65536kB
描述

输出与样例输出相同的结果

#include <iostream>
#include <string>
using namespace std;

class Student {
	private:
		int id;
		static int count;
	public:
// 在此处补充你的代码
};
int Student::count;
void PrintCount() {
	cout << "Total " << Student::count << " students" << endl;
}
void Print(Student s)
{
	cout << "the id is " << s.id << endl;
}

int main()
{
	Student::InitCount();
	Student s;
	PrintCount();
	Student s1(10);
	Student s2(s1);
	PrintCount();
	Print(s2);
	PrintCount();
	return 0;
}
输入
输出
Total 1 students
Total 3 students
the id is 10
Total 3 students
样例输入
样例输出
Total 1 students
Total 3 students
the id is 10
Total 3 students
全局题号
7001
提交次数
108
尝试人数
33
通过人数
33