Strings - get a char from the middle : LUSENET : the c forum : One Thread

I'm switching from QB to C++. Now in QB there is a nice function called Mid$(str, start, letters) which takes position start of the string str and return the following letters letters. E.g.: if str was "Hello, world" then mid$("Hello, world", 8, 5) would return "world". Is there a function like that in C(++). I tried to write it by myself, but then I get an error "can't convert char* to char*[6]" or sth. like that. Can anybody help me?

-- CompuChip (, May 22, 2001

Moderation questions? read the FAQ