![]() |
|
#1
|
|||
|
|||
need some help formating a displayI have made a calender program and need some help formating the display. The DisplayCal function is where my program outputs the calender. I am having trouble figuring out how to format the calender correctly. I need the calender to line up the first day of the month with the day of the week and also to wrap the days when it gets to saturday. If anyone has any ideas I would appreciate the input.
Thanks Dillon Here is what I have... CPP / C++ / C Code:
|
|||
|
#2
|
||||
|
||||
|
Look into the printf() statement found in the header cstdio. You'll find it very easy to format text and numbers, whereas C++'s cout is quite difficult. See post #23 (second page) in this thread
__________________
During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence? |
|
#3
|
|||
|
|||
|
Quote:
actually I must use the cout, though I wish I could use the printf |
|
#4
|
||||
|
||||
|
Quote:
CPP / C++ / C Code:
__________________
During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence? |
|
#6
|
|||
|
|||
|
thanks for the suggestions everyone. I figured it out. Just had to do lots of playing around with for loops and the cout statement
|
|
#7
|
||||
|
||||
|
Quote:
__________________
During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence? |
Recent GIDBlog
Review: Gel laptop cooling pad by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Image display problem | Griff | Web Design Forum | 1 | 23-Aug-2004 18:47 |
| Problems with changing display resolution | vsseym | Computer Software Forum - Windows | 2 | 27-Jul-2004 11:01 |
| uisng php to display php | dopee | MySQL / PHP Forum | 6 | 14-May-2004 19:40 |
| algorithm for display complex graph | ctai010 | C++ Forum | 0 | 20-Mar-2004 06:24 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The