anonymous
  • anonymous
how would you change all the character of a string to uppercase in c++
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
jamiebookeater
  • jamiebookeater
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
Create a lookup table with 26 positions indexed by the ASCII value of the character to be changed. The value in the lookup table at a particular location is the upper case ASCII value.
rsmith6559
  • rsmith6559
int i = 0; while( string[i] ) { if( string[i] >= 'a' ) && ( string[i] <= 'z' ) string[i] &= 0xDF; // or string[i] = tolower( string[i] ); // you'll need: #include }
anonymous
  • anonymous
//This program convert the string to upper case #include #include #include using namespace std; int main() { string str ="my real name is secret munyai from university of limpopo south africa"; int leng=str.length(); cout <<"your string :"; for (int i=0 ;i<=leng-1 ;i++) { cout<

Looking for something else?

Not the answer you are looking for? Search for more explanations.