delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/29/08:40:36

Message-ID: <37780446.E62CED3F@unb.ca>
From: Endlisnis <s257m AT unb DOT ca>
Organization: Nortel Networks
X-Mailer: Mozilla 4.51 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: A little help with the date & time
References: <19990628174301 DOT 22728 DOT 00000954 AT ng-ch1 DOT aol DOT com>
Lines: 21
Date: Mon, 28 Jun 1999 23:24:20 GMT
NNTP-Posting-Host: 209.226.124.235
X-Trace: news20.bellglobal.com 930612260 209.226.124.235 (Mon, 28 Jun 1999 19:24:20 EDT)
NNTP-Posting-Date: Mon, 28 Jun 1999 19:24:20 EDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

FixAllPCs wrote:

> cout<<"Date is: "<<date.da_mon<<"/"<<date.da_day<<"/"<<date.da_year<<endl;

"date" is a typename, not a variable name:


     struct date d;
     getdate(&d);

cout<<"Date is: "<<d.da_mon<<"/"<<d.da_day<<"/"<<d.da_year<<endl;



--
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT HotMail DOT com
          ICQ: 32959047


- Raw text -


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