I seem to be able to write as many characters as I want into "buffer" even though I declare it as length 1 - why is this?
string teststring = "teststring";
cout << teststring << endl;
char buffer[1];
itoa(34567,buffer,10);
teststring.append(buffer);
cout << teststring << endl;
Thanks!
Dave