View Full Version : is unicode my problem?

April 4th, 2010, 04:08 AM
I have started to write an ebarassingly easy function but it won't work. I have checked numorus tutorials and it should work, then I found some mention of it being for ASCII. So my question is, is there something wrong with this code or is it because geany uses unicode?

string FixSentence( string sentance)
int i = 0;
string newstring;
while (sentance[i])
newstring[i] = tolower(sentance[i]);

cout << newstring;
return "";

April 4th, 2010, 04:56 AM
can somebody close this. Sorry

April 4th, 2010, 06:33 AM
Closed by request.