Re: [Dev-C++] (THIS WAS MY QUESTION) Re: help
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: Per W. <pw...@ia...> - 2008-10-23 13:06:09
|
You ask the question "Does this problem need the "C++ feature" to solve or could just be done with C or C/C++ hybrid?" and get angry that people on the list doesn't answers the question. Of course you can count symbols using C or using C++ objects or anything in between. The original problem is trivial and most batch script languages can even be used to solve it. But only the original poster can possibly know exactly what language choices his professor expects to receive the solution in. Or are you saying that you "Eric" is the same person as "Fernando Lichtschein"? /pwm On Fri, 24 Oct 2008, Eric wrote: > IT DOES NOT MATTER ANY MORE, I DONT NEED TO KNOW ANYTHING FROM THIS GROUP > > > INTERESTING HOW THERE IS A TEACHER IN THE GROUP, I TAKE IT HE DOES NOT NOT > TEACH C++ > > > ----- Original Message ----- > > Sent: Wednesday, October 22, 2008 6:12 AM > Subject: Re: [Dev-C++] help > > > Does this problem need the "C++ feature" to solve or could just be done with > C or C/C++ hybrid? > it seem to me you omly need C or C/C++ hybrid, and classes would only > confuse the issue. > > > > >From Eric > > > ----- Original Message ----- > From: Fernando Lichtschein <fer...@gm...> > To: Dev-C++ Mailing <Dev...@li...> > Sent: Sunday, October 19, 2008 11:40 AM > Subject: Re: [Dev-C++] help > > > On Sat, Oct 18, 2008 at 5:24 PM, Fernando Lichtschein > <fer...@gm...> wrote: > > > > Dear Whatever is your name (you did not sign), > > > > If you read carefully and look at the example, what the professor meant > with "symbol" is actually a "character". > > > > Try reading the characters one by one from the input string and comparing > them with a list of previously read characters (how you store them is up to > you, maybe another string). If it is not there, it is a new symbol, add it > to the string and increment the symbol ocunt. > > > > If it is, you already counted it, move on. > > > > Have fun (I am also a teacher, so I am not going to solve it for you, you > can do it). > > > > Best regards, > > > > Fernando > > > > 2008/10/18 7amood joker <sou...@ho...> > >> > >> hi....i really need help .....i have an assighnment > >> in c++ ; > >> > >> > >> the professor wants me to write a program which counts the symbols of a > >> string.... here is the question.... > >> > >> > >> > >> > >> A string is any combination of > >> blanks, letters, digits and/or special characters. > >> > >> Write a C++ program to calculate and print the number of different > >> symbols used in a given string. A blank space counts as one symbol. > >> > >> Input: Any string. The length is limited to 60 characters. For > >> example: > >> > >> Enter a string: Mississipi > >> > >> Test data: > >> #1. "Say good bye!" > >> #2. "The world is > >> round" > >> > >> Output: The number of different symbols. For example, the output for the > >> string "Mississipi" is > >> > >> Number of symbols for the string "Mississippi" is: 4 > > >> The contents of this Email and any files transmitted with it are not > >> confidential and intended for the use of the individual or entity to > >> whom this Email is addressed to. The views stated herein do not > necessarily > >> represent the view of myself been in sound mind and body it the time I > >> composed this Email. I knew what I was doing when I selected your Email > >> address, so you are the intended recipient of this Email, GET A GRIP!!! > >> don't procrastinate with endless excuses. You may copy, forward, > >> disclose, print, delete it or otherwise use it or any part of it, in any > >> form you can think of. After you have received this mail please feel > >> free to Email the sender (me) with a personnel Email anytime, but NOT > >> black text on white background HTML format. if you been the sender > >> intend to send me a Email in HTML format, please add some living color > >> to compensate the slightly wasted internet bandwidth, longer download > >> time and wasted space of my hard drive as if I decide to save that Email > >> (only for archive purposes), due to the fact that HTML Emails are two > >> and half times bigger than the same Email content posted in plain text > >> format. If you been the sender decide to send me been the receiver a > >> attachment file larger than 200Kb in file size please give me prior > >> courtesy to ask if I would like to receive it, as I been the receiver > >> have a slow dial up connection speed and often other members of the > >> household want to use the phone only when I go on Internet. > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > -- > No virus found in this incoming message. > Checked by AVG. > Version: 7.5.549 / Virus Database: 270.8.2/1735 - Release Date: 20-Oct-08 > 14:52 > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |