题目正文
编写函数GetReal和GetString,在main函数中分别调用这两个函数。在读入一个实数和一个字符串后,将读入的结果依次用printf输出。
两次输入前要输出的提示信息分别是" please input a number:\n”和" please input a string:\n"
输入
输出
样例
9.56
hello
please input a number:
please input a string:
9.56
hello
代码如下(示例):
#include<stdio.h>
#include<iostream>
using namespace std;
char a[