Re: [Dev-C++] Simplification for my code please
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2003-10-18 12:33:56
|
Since it is a - at the most - 10 minute exercise, I don't think you need to bother your examiner by complaining about lack of time. /Per W On Sat, 18 Oct 2003, Coosa wrote: > Hi all, > > > > I had today a lab test in C++ and one of the 10 questions was to write a > program which accepts a string input and reverse the words separately > between spaces and outputs it to the stream. I couldn't solve it in time and > I lost the marks for this section and went home and solved it. > > As a complain I want to know first, if this code could be simplified more as > compact as possible, then write my lecturer a complain that the time wasn't > enough to solve such questions, any way, the code is attached and working > fine and I tried to make it as compact as possible, so please if some one > can make it shorter, I'll be thankful. > > > > Best Regards > > > > Coosa > > > > Program output example: > > > > The words separated between spaces are isolated first and then reversed, not > the entire string! > > > > Original Name : This is a test! > > Reversed Name: sihT si a !tset > > > > |