![]() |
|
#1
|
|||
|
|||
strings?!!!! :Si have this question i've been trying to work out:
strings in C are really arrays containing many elements of tpye char. the following program shows how to declare and use C strings. CPP / C++ / C Code:
use this program as a starting point and convert the program to using strings. please i neeeeed help in this program im a new user here and a new programmer! Last edited by LuciWiz : 18-Nov-2006 at 13:59.
Reason: Please insert your C/C++ code between [cpp] & [/cpp] tags
|
|
#2
|
|||
|
|||
Re: strings?!!!! :SNot sure what you mean. You obviously know how to input a string, and print it out again, so what's the problem? (Actually, strings are really arrays in all languages; it's only made more explicit in C.)
|
|
#3
|
|||
|
|||
Re: strings?!!!! :Si dont know but i got a homework and this is what it says.. !!! the program is part of the question its not something i wrote
|
|
#4
|
||||
|
||||
Re: strings?!!!! :SQuote:
Also, please read the Guidelines. __________________
Got a cough? Go home tonight and eat a whole box of Ex-Lax. Tomorrow, you'll be afraid to cough. -- Pearl Williams |
|
#5
|
|||
|
|||
Re: strings?!!!! :SAre "this program", which is the example, and "the program", which you're supposed to convert, two different programs? It doesn't seem to make sense otherwise.
|
|
#6
|
|||
|
|||
Re: strings?!!!! :Syeahhhh the program is the progam i have to convert
|
|
#7
|
|||
|
|||
Re: strings?!!!! :Sthe question is ::
use this program as a starting point and convert the question to using strings! i dont know what the hell does it mean! |
|
#8
|
|||
|
|||
Re: strings?!!!! :SWell is it a reference back to an earlier question about using strings? If not, you can tell your professor that it was not only you, but two programmers on this web site who were baffled by what the question was supposed to mean.
|
|
#9
|
|||
|
|||
Re: strings?!!!! :Syeah there were these questions:
1)to develop a program that will input an arbitary series of uppercase english letters and convert them to lowercase letters..using a dot character "." to end the input. the conversion will be done each time a character is input. if lowercase characters are entered then then the program should print "illegal input character". 2) using the progam above as a starting point, define a new function to perform the conversion. the function is declared using the following prototype: void convertToLower(char inputCharacter); 3) using the above program as a starting point.. seperate the printing of the output character from the conversion. the function definition and prototype should be converted to the following: char ConvertToLower(char inputCharacter); the modification should simply perform the conversition and return the new character. if the conversion did not take place the function should return the minus character. 4) using the above program as a starting point. develop a program that will display this menu on the screen: 1 to convert key from uppercase to lowercase 2 to convert lowercase to uppercase conversion key: |
|
#10
|
|||
|
|||
Re: strings?!!!! :Sand question was this question:
strings in C are really arrays containing many elements of tpye char. the following program shows how to declare and use C strings.[/b] CPP / C++ / C Code:
use this program as a starting point and convert question 5 to using strings. Last edited by LuciWiz : 18-Nov-2006 at 14:00.
Reason: Please insert your C/C++ code between [cpp] & [/cpp] tags
|
Recent GIDBlog
Python ebook by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do you read strings from a file...? | jpxtreme | C Programming Language | 6 | 28-Sep-2006 10:55 |
| Strings tripping me up once more | Elsydeon | C++ Forum | 5 | 04-Dec-2005 18:41 |
| need help - questions about strings | Benayoun | C Programming Language | 6 | 24-Jan-2005 03:15 |
| C++ style strings and STL | dexter | C++ Forum | 14 | 04-Jan-2005 08:46 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The