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:
The warning I am getting is the following:Code:char *starthour, *startmin; ifstream starttime; starttime.open ("starttime.txt", ios::in); if (starttime.is_open()) { starttime >> starthour; starttime >> startmin; starttime.close(); }
The same for the majority of the variables in the code.Code:warning C4700: uninitialized local variable 'starthour' used
Any help is greatly appreciated.