TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: ..Anybody..
from: Gautam Lad
date: 1996-07-15 11:10:08
subject: Calendar

Hi,
I am looking for a simple C code that will create a calendar.  The program
can use the DosGetDateTime(); API to query the date (day,month & year),
and display it like this:


                              July 1996

                         S  M  T  W  T  F  S
                                  1  2  3  4
                         5  6  7  8  9 10 11
                        12 13 14 15 16 18 18
                        19 20 21 22 23 24 25
                        26 27 28 29 30 31


The program doesn't have to be graphical, only text-mode.  I asked my friend
and he told me there's some special formula (he probablly ment a series of
'for' loops) to create a calendar.  I know how to get the date using the
DosGetDateTime(); API, but I am really confused on how to display things.
So if someone can give me a clue on how to create one, please write to me 
(or e-mail: gautam{at}interlog.com).


Thanks!
Bye!



--- Maximus/2 3.00
* Origin: One Less Car * TorontOS/2 * (416) 480-0147 * (1:250/238)
SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 517 624 628 713/888 800/1
@PATH: 250/238 2424/11 24 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.