Can anyone please give me a little piece of code which I could use to get a substring of a char[256]. The substring I want to get is everything from the second character.
Printable View
Can anyone please give me a little piece of code which I could use to get a substring of a char[256]. The substring I want to get is everything from the second character.
Code:char *sub = &string[1];
or maybe with the string library...
Code:char s[256] = "some really long string...";
std::string sub(s, 1, 255);