![]() |
|
#1
|
|||
|
|||
Help with String ProgramHi, I have a code that I've been working on, and got stuck, I need help in reaching the solution to this program
Program: This is the program 1)read in one string which consists of two words Ex. "Computer Science" 2)call a function makewords() which receives three parameters: a string which holds the original phrase and two strings to hold the two words. 3)Your function, makewords(), should then check if the 2 new strings are equal to each other, and print the appropriate message saying whether or not they are equal. 4)print out the two words and their sizes. 5)call the function matchexact() passing the two strings. matchexact() will determine how many times the corresponding positions in the two strings hold exactly the same characters. For example, if the two strings are "marriage" and "gerbil", then the function matchexact will return 2, since the two strings have the same characters in positions 2 and 5. If the two strings are "starts" and "tarts", then the function will return 0, since the two strings never have the same characters in the same positions. The main program will then call a function jointhem() which receives the two strings. The function will join the two strings together and print the new string. Ex. if string1 is “bath” and string2 is “water” than the new string is “bathwater” CPP / C++ / C Code:
|
|||
|
#2
|
|||||
|
|||||
Re: Help with String ProgramQuote:
Quote:
Quote:
Quote:
Quote:
If you would tell us what part you would like some help with, I'll bet that someone can come up with some suggestions. Regards, Dave |
|
#3
|
||||
|
||||
Re: Help with String ProgramThank you for your reply Dave but limergal wrote in to request that we delete her account. She made the request BEFORE you replied.
|
|
#4
|
|||
|
|||
Re: Help with String ProgramQuote:
My response was only a couple of hours after the Original Post. Thanks for telling me that the Original Poster cancelled before I replied. I might have thought there was a problem with something that I said or the way that I said it. I'm sorry that I couldn't help. Since there is nothing useful about programming or problem solving, maybe you should delete the entire thread??? Regards, Dave |
|
#5
|
||||
|
||||
Re: Help with String ProgramI was going to delete the thread but I was certain someone was going to reply and I didn't want them to have wasted their time.
If you think what you wrote is of no value to any one else, then I will delete the thread. I will do this tomorrow. |
|
#6
|
||||
|
||||
Re: Help with String ProgramBy the way, I have no problems leaving this thread as is. I will simply move our off-topic discussions out of the way.
When senior members post in a thread, I hate to delete these threads. You guys are genuinely trying to help out other people and I can imagine that you at least put some thought (and effort) into your replies. For that reason alone, I think we should keep it. |
|
#7
|
|||
|
|||
Re: Help with String ProgramQuote:
I don't care (much) either way. If you think it adds value to the board, it's OK by me (edit/crop as you like). If future potential posters see the futility of posting a request for help that doesn't give us anything on which we can base a helpful response, it's worth keeping. But the potential future posters who could possibly gain some insight from this probably don't go through the board and look at old threads anyhow. At least that's my impression --- but I could be wrong (again). Regards, Dave |
Recent GIDBlog
Install Adobe Flash - Without Administrator Rights by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help with survey program | shaffer | C++ Forum | 5 | 01-Dec-2006 08:51 |
| Message Class | TransformedBG | C++ Forum | 5 | 29-Nov-2006 21:28 |
| i need help with a string program!!! | betazee | C Programming Language | 3 | 05-Jun-2006 22:44 |
| Type casts ? | kai85 | C++ Forum | 12 | 23-Jun-2005 12:04 |
| Help wit my source code compiler errors | Krandygrl00 | C++ Forum | 1 | 06-Jun-2005 08:14 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The