we occasionally run into something what a c-string is just easier to deal with. this is one, borrowing salem's idea. Nothing you can't do with string, but its a lot more trouble. Destructive, though .. it breaks the c array as a side effect.
experts... can you do it with string without having excess operations?
you can do it with cout &string[index] and moving the zero as I did, but it will print the extra 0 chars (harmless on a console) and I think its not considered friendly to do that?
lastchance has a less 'works for this one question' approach. I can't think of a way to avoid the extra work if you want it generic (as is so often the case).