#include <iostream>
using namespace std;
void main()
{
int a, b, c;
char ch;
cin >> a >> ch >> b >> c;//从键盘上输入1.5×c×10×20,×表示一个空格
cout << a << endl << ch << endl << b << endl << c << endl;
}
答案:1
.
5
0
[解析]使用cin进行输入字符的输入的问题。1-->a,.-->ch,5-->b,空格转换为零给了c。
.是1.5中的点给出来的