View Single Post
Old Feb 16th, 2006, 11:42 PM   #1
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 928
Rep Power: 4 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
char to string in C++

How do you initialize a string as a character in C++?

In Java you would use:

char c = 'c';
String str = Character.toString(c);

Also, how do you convert a character to a string in general?
titaniumdecoy is offline   Reply With Quote