Check if the input is a number or string in C++
问题 I wrote the following code to check whether the input(answer3) is a number or string, if it is not a number it should return "Enter Numbers Only" but it returns the same even for numbers. Please suggest me a solution. #include <iostream> #include <string> #include <typeinfo> #include <stdio.h> #include <stdlib.h> #include <ctype.h> using namespace std; int main () { string ques1= "Client's Name :"; string ques2 = "Client's Address :"; string ques3 = "Mobile Number :"; char answer1 [80];