I want to do a standard prompt to ask a user to input an integer value and then read this value and assign it to a unsigned char which I have already initialised so that the unsigned char variable has this value.
I imagine I use a standard printf for the prompt and if it was a char use scanf and then the get function but how do i do what i need to do stated above??
as someone who prefer streams over printf()/scanf() you could try this:
cout << "enter a single numeric digit 0-9" << endl;
cin >> ch;
with printf()/scanf() it would be something like this, I think:
printf("enter a single numeric digit 0-9");