1232: 浮点工作室入门题
Memory Limit:128 MB
Time Limit:0.600 S
Judge Style:Text Compare
Creator:
Submit:17
Solved:9
Description
浮点工作室入门考核题:
本工作室使用c++的面向对象特性制作游戏,
本题要求使用面向对象制作一个类ValueControl,
在内部储存int,string,float和char类型的数据。
Input
有多行,每行输入数据的类型和值。
Output
所有数据的个数和每个值包括每个数据的typeid,如果在输入中没有上述的类型,输出"Error:Cannot find the type!"
Sample Input Copy
char Z
int 114
string FloatStudio
float 1.14
Vector2 {320,240}
Sample Output Copy
4
Z char
114 int
FloatStudio const char*
1.14 float
Error:Cannot find the type!
HINT
写一个类吧!