From: "bowman" Newsgroups: comp.os.msdos.djgpp References: Subject: Re: c++ program Lines: 14 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Message-ID: Date: Mon, 29 Jan 2001 22:09:41 -0700 NNTP-Posting-Host: 208.26.212.197 X-Trace: newsfeed.slurp.net 980831319 208.26.212.197 (Mon, 29 Jan 2001 23:08:39 CDT) NNTP-Posting-Date: Mon, 29 Jan 2001 23:08:39 CDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Drake matthews wrote in message news:zZmd6.276$dG3 DOT 57703 AT sapphire DOT mtt DOT net... > Write a C++ program that asks the user to input a year, a month, and a day; > and gives the day of the week for that date, i.e Monday , Tuesday, etc. > Basically, the input data is put in the equation (year + year/4 + date of > month + factor for month) / 7 impress your instructor and use library functions. hint: struct tm has a tm_wday member.