1913: The User class
内存限制:128 MB
时间限制:1.000 S
评测方式:文本比较
命题人:
提交:49
解决:37
题目描述
Design a User class that represents the user. The variables in the class include user name, password, and variables that record the number of users. Define the three construction methods of the class (no parameters, assign value to the user name and password), get and set the password Methods and methods that return class information
输入
There are several cases input, each case one line, each line contains some information, the beginning of U is the user name, the beginning of O is the user name and password
输出
Output each user’s information in a format.
样例输入 复制
U jimmy
O bob 123456
样例输出 复制
user:jimmy
user:bob,password:123456