I'm trying to make the conditions based on the inputs of age and vaccine status, but it doesnt seem to work. and also if the age input is two digits its skip the country input and goes to vaccine. I hope I can get some assistance with this.
There's a couple of points re input of which you need to be aware:
1) stream extraction >> ignores any initial white space chars (space, tabs, newline) and only gets input up to the first white space char and doesn't extract the white space
2) To input a string which might contain a space (or tab) then std::getline() is used. However this doesn't ignore any initial white-space chars and does extract (and ignore) the terminating delimiter.
3) uint8_t isn't really an integer - but is unsigned char. Hence for age of say 34 it tries to read 3 as a char then the 4 - so the problem!