This is such a primative question for most of you programmers....but as much as I have read about C++ and attempting to imply in my programs, I keep coming across a dilemma.
I know there is a number of different data types, with a number of different categories. what i mean is similar types such as int, short int, long it / float, double, long double...ect.
Well I seems when I am trying to figure out what to make a variable in my program, I am narrow focused on just a few types (strings, ints and floats). But when I read books and other literature, even for their most basic programs, and most basic variables, they will be very specific with making them uint and long int....ect.
Is there any advice that can be given to me, to help me figure out how specific I need to go with a variable (Besides the obvious of if it is a number vs. a string). I mean, when I should narrow it to a short int, rather than just an int - just because and int will carry it.
Any advice?