hi,There are 2 structures availbale in C are time_t and struct tm use this variables and along with these there some avialble time functions.By using those u can solve ur problem.On Array [email protected] wrote Thanks for ur reply with solution. I have some more qs to solve in which i find difficulty. plz solve it for me. 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 wrote: > > > > size_t x, y; > > BString Name(\"Sudhansh Kumar Sharma\"); > > Block 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 \", *Name); > > > > > > (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]
Regards Prashanth Kumar Chanda [Non-text portions of this message have been removed]
