uninitialized local variable 'XXXXXX' used
Hi Guys,
This is proabably some stupid error on my part, but I can't seem to see why the following piece of code isn't working:
Code:
char *starthour, *startmin;
ifstream starttime;
starttime.open ("starttime.txt", ios::in);
if (starttime.is_open())
{
starttime >> starthour;
starttime >> startmin;
starttime.close();
}
The warning I am getting is the following:
Code:
warning C4700: uninitialized local variable 'starthour' used
The same for the majority of the variables in the code.
Any help is greatly appreciated.