Having a couple fairly simple problems (but I'm lost nonetheless):
I have a class consisting of something like this:
class myclass
char a[60];
char b[60];
int c;
int d;
float e;
float f;
.....
The input to fill the variables are entered via keyboard.
I use cin.getline(obj.a, 60); for the arrays, but user can over run boundaries. How can I control this?
Also, when error checking the int's and float's (cin >> obj.c;) how do I stop a char input?
Any help much appreciated.
::Jazz