| | |
can anyboby help me?
![]() |
>>can anybody help me to write the following program
Yes someone here will help you but you first have to post your code and ask questions about what you don't understand. We will not write the program for you.
Yes someone here will help you but you first have to post your code and ask questions about what you don't understand. We will not write the program for you.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
>>print the day of it. That's what happens when you try to paraphrase the assignment.
I misunderstood that -- I did not realize it meant the day of the week.
I misunderstood that -- I did not realize it meant the day of the week.
Last edited by Ancient Dragon; Aug 25th, 2007 at 7:27 pm.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Can you use the standard library for this exercise. If so, look into
mktime and localtime. "One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
In general, you have to assign a specific date to be your ultimate beginning date. Then you calculate the exact number of days from that day to the day entered by the user. Then you can calculate the day-of-the-week from that value using the modulus (%) operator.
The 3 Laws of the Procrastination Society:
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
![]() |
Similar Threads
- Applying Scroll Bars to Form (Visual Basic 4 / 5 / 6)
- big o notation? (C)
- task manager query (Windows NT / 2000 / XP)
- Platinum Television Group (Relevant Link Exchanges)
- HELP! what is the problem??? (C++)
- vb (Visual Basic 4 / 5 / 6)
- Keyboard error or no keyboard present (USB Devices and other Peripherals)
Other Threads in the C Forum
- Previous Thread: Displaying Average
- Next Thread: c program to implement a stack using two queue
| Thread Tools | Search this Thread |
* ansi api array arrays bash binarysearch calculate centimeter changingto char character convert copyanyfile copypdffile createcopyoffile createprocess() directory dynamic execv fflush file floatingpointvalidation fork forloop frequency function getlasterror getlogicaldrivestrin givemetehcodez grade graphics gtkgcurlcompiling gtkwinlinux hardware highest histogram homework i/o ide inches include infiniteloop initialization input intmain() iso keyboard km license linked linkedlist linux list looping loopinsideloop. lowest matrix microsoft mysql oddnumber open opendocumentformat openwebfoundation pdf pointer pointers posix power program programming pyramidusingturboccodes read recursion recv recvblocked repetition reversing scanf scheduling segmentationfault send shape single socketprogramming stack standard strchr string suggestions test threads unix urboc user variable whythiscodecausesegmentationfault win32api windows.h windowsapi






