
-----------------------------------
Colliflower
Wed Nov 02, 2011 8:57 pm

Help with conversion to lower case
-----------------------------------
I am trying to convert the letters of a string to lower case using a for loop and the tolower command, but i am getting an error...

#include 
#include 
#include 
using namespace std;
int main () {
    std::string sDecision, sWord;
    cout > sDecision;
    sWord= "";
    for (int num = 0; num < sDecision.size(); num++) {
        //Error occurs saying cannot convert from char to const char
        sWord.append(char(tolower(sDecision[num])));
    }
    cout 