Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.
Computer Hope forum e-mail issues and down time
0 Members and 1 Guest are viewing this topic.
And I wonder why you have only two modes: CAPS and nocaps. But I guess we never will know, will we?
even in Georgia.
for(int i = 0; i < string.length(); i++) //Loops until variable "i" reaches the end of the string{string[i] = toupper(string[i]); //Replaces the letter at position "WhateverIis" with the uppercase version.} for(int i = 0; i < string.length(); i++) //Loops until variable "i" reaches the end of the string{string[i] = tolower(string[i]); //Replaces the letter at position "WhateverIis" with the lowercase version.}
Quoteeven in Georgia.LOL I don't know what else to call it. I could call it several things depending on the level of smartass I want to be:Smartass Level 1UPPERCASE and lowercaseSmartass Level 2All-capitalized and all-non-capitalized.Smartass Level 3(thousand)Code: [Select]for(int i = 0; i < string.length(); i++) //Loops until variable "i" reaches the end of the string{string[i] = toupper(string[i]); //Replaces the letter at position "WhateverIis" with the uppercase version.} for(int i = 0; i < string.length(); i++) //Loops until variable "i" reaches the end of the string{string[i] = tolower(string[i]); //Replaces the letter at position "WhateverIis" with the lowercase version.}