would save 3 different strings in an array, and I would be able to access them..Code:char buffer[3][char_length]={"hello", "why am I here", "the beyond consumes me"};
However, if I try to alter a string by doing:
it would wipe over the remaining strings. In other words, it would inkrement the first of the two index's (if you can call 'em that).Code:cin.get(buffer[1], 23);
Now I've been poking around with this the past few days and it's starting to get at me. Does anyone please know how I could go about doing this correctly ?
And please explain why if you can too Would like to learn why I should do as I should.
thanks in advance