Thanks, man! That did the trick. I'm a little confused though on why C++ would allocate the memory correctly one time, and then be unreliable about it afterwards.
Type: Posts; User: jsrig88
Thanks, man! That did the trick. I'm a little confused though on why C++ would allocate the memory correctly one time, and then be unreliable about it afterwards.
Hello. I'm writing a ZORK clone, and I am trying to use cin.getline() to obtain the program's inputs from the console. The basic piece of code I'm using for it is as follows:
char *str;...