I,m having a problem with my program.
float num,num1,score;
cin>>num;
score=num/num1;
cout<<score;
//if num and num1 is a digit, continue program; else, end program
I already tried using (isalpha and isdigit), but it seems to be working only in int and char data type, also tried using stringstream approach, but score don't give the result I need. suggestion please.
thanks in advance..