PDA

View Full Version : is unicode my problem?



chris200x9
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]);

i++;
}
cout << newstring;
return "";
}

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

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