Hello everyone... I am having a problem with a couple of variables.
I declare the variable as char jar[100]=" ", tmp[6]=" ", cup[6]=" ";
In the watch window the value for tmp & cup looks like this: " \000\000\000", but not jar.
As a consequence the program is not running properly. Any thoughts about this problem? Let me know them...
I am learning how to program in c++ win32 application on Code::Blocks 10.05 running on win xp... Thanx



LinkBack URL
About LinkBacks




I think I may have found a solution... declaring cup and tmp as pointers and using malloc(). I no longer see the garbage
But I am still at a loss as to what was going on in the codes to cause this terrible side effect. Will keep an eye on google