delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/01/30/00:22:50

From: "bowman" <bowman AT montana DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <zZmd6.276$dG3 DOT 57703 AT sapphire DOT mtt DOT net>
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: <r%rd6.6541$Uo2.24499@newsfeed.slurp.net>
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 <cyberdrake AT icrazy DOT com> 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.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019