Pagini: [1]   În jos
  Imprimă  
Ajutor Subiect: uppercase stringuri  (Citit de 1383 ori)
0 Utilizatori şi 1 Vizitator pe acest subiect.
night1
Strain


Karma: 0
Deconectat Deconectat

Mesaje: 10



Vezi Profilul
« : Decembrie 16, 2012, 01:26:36 »

Write a program that does the following:
1. Ask the user to enter up to a line of text and store it in a string s.
2. Transform each alphabetical character in s into its uppercase form. If a character is not an
alphabetical character—do not modify it.
3. Output the uppercase string to the console window.
Your program output should look like this:
Enter a string: Hello, World!
Uppercase string = HELLO, WORLD!
Press any key to continue

Cam cum ar trebui sa fac?
Am incercat sa transform string-ul intr-un const char* si m-am cam pierdut in cast-uri.
Memorat
night1
Strain


Karma: 0
Deconectat Deconectat

Mesaje: 10



Vezi Profilul
« Răspunde #1 : Decembrie 16, 2012, 10:12:11 »

Rezolvat, nu mai conteaza.
Memorat
Pagini: [1]   În sus
  Imprimă  
 
Schimbă forumul:  

Powered by SMF 1.1.19 | SMF © 2006-2013, Simple Machines