Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to compare lower case character to uppercase cpp

for(int i=0;i<str.size();i++){
int c = str[i]; 
        if (islower(c))  
            str[i] = toupper(c);
}
 
PREVIOUS NEXT
Tagged: #compare #case #character #uppercase #cpp
ADD COMMENT
Topic
Name
9+5 =