thanks for ur solution.
I have some some problems, if possible plz help me with solutions.

Write a program that calculate tomorrow's date i.e. if you input a date
28/02/2000 then it should return 29/02/2000 because year 2000 was a leap
year; similarly your program should take care of all the aspects such that
which month have 28, 29,30, 31 days. If input is 31/12/2006 then output
should be 01/01/2007.So change of date/month/year should be handled
properly.


On 05 Apr 2007 13:12:21 -0700, Nico Heinze <[EMAIL PROTECTED]> wrote:
>
>   <snip>
> > size_t x, y;
> > BString Name("Sudhansh Kumar Sharma");
> > Block<BString> SplitData;
> >
> > Name.Explode(SplitData, ' ');
> > y = SplitData.GetSize();
> > if (y)
> > {
> > y--;
> > for (x = 0; x < y; x++)
> > SplitData[x] = SplitData[x].Left(1) + ".";
> > }
> > Name = BString::Implode(SplitData, ' ');
> > printf("%s\n", *Name);
> >
> >
> > <grin> (Let's see him explain that to his professor.
> > Or even compile it in the first place. As long as no one
> > tells the OP how to compile it, this is an excellent way
> > to answer homework problems. It gives a working solution
> > in C++, just nothing they are familiar with. Does this
> > make me unreasonable...or just evil?)
>
> Hm, interesting question...
>
> 1) Unreasonable?
> Definitely not. This much is clear.
>
> 2) Evil?
> Not for me.
> Maybe slightly sarcastic, but that's o.k. in my opinion.
>
> ...I know, there's no need for you to share my opinion. ;-)
>
> Thanks for making me laugh, Thomas, I well need that today.
>
> Cheers,
> Nico
>
> 
>


[Non-text portions of this message have been removed]

Reply via email to