Problem Solving/Algorithms/CamelCase.cpp
// Complete the camelcase function below.
Complete the camelcase function below.
Complete the camelcase function below .
int camelcase(string s) {
    int i = 0;
    int total = 1;
    char c;
    while(s[i]){
        c = s[i];
        if (isupper(c))
            total++;
        i++;
    }
    return total;
}
int camelcase ( string s ) { int i = 0 ; int total = 1 ; char c ; while ( s [ i ] ) { c = s [ i ] ; if ( isupper ( c ) ) total ++ ; i ++ ; } return total ; }
Complete the camelcase function below.
Complete the camelcase function below .