Problem: Write a C Program that output the very next date after Input a date
suppose :
Input: (DD/MM/YYYY) 21/09/2012
OUTPUT: 22/09/2012
Thanks in Advance.
Problem: Write a C Program that output the very next date after Input a date
suppose :
Input: (DD/MM/YYYY) 21/09/2012
OUTPUT: 22/09/2012
Thanks in Advance.
Solution: Write it yourself, we don't do your homework for you
"No-one else has reported this problem, you're either crazy or a liar" - Dogbert Technical Support
"Have you tried turning it off and on again?" - The IT Crowd
SHOW SOME WORK!
http://cboard.cprogramming.com/c-pro...-homework.html
Tim S.
"...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson
You've already tried this in another thread. That thread was closed deliberately because you didn't care enough to DO ANY WORK AT ALL.
HELP Required C Program that output the very next date after Input a date
We are not your homework service. Some kind soul will not just pop up and help you if you open enough threads for long enough. All you'll do is get yourself banned.
(And, personally, if you can't even be bothered to do a single line of work, I'd give up on your course NOW before you waste any more time on it).
- Compiler warnings are like "Bridge Out Ahead" warnings. DON'T just ignore them.
- A compiler error is something SO stupid that the compiler genuinely can't carry on with its job. A compiler warning is the compiler saying "Well, that's bloody stupid but if you WANT to ignore me..." and carrying on.
- The best debugging tool in the world is a bunch of printf()'s for everything important around the bits you think might be wrong.
Bloody lazy gits submit half of the questions on this forum nowadays.
1. Get rid of gets(). Never ever ever use it again. Replace it with fgets() and use that instead.
2. Get rid of void main and replace it with int main(void) and return 0 at the end of the function.
3. Get rid of conio.h and other antiquated DOS crap headers.
4. Don't cast the return value of malloc, even if you always always always make sure that stdlib.h is included.
Hey riyaj123, my car's broken down. Come and fix it for me,
Thanks in Advance.
(Now ask yourself why nobody wants to answer your question)
- Compiler warnings are like "Bridge Out Ahead" warnings. DON'T just ignore them.
- A compiler error is something SO stupid that the compiler genuinely can't carry on with its job. A compiler warning is the compiler saying "Well, that's bloody stupid but if you WANT to ignore me..." and carrying on.
- The best debugging tool in the world is a bunch of printf()'s for everything important around the bits you think might be wrong.
Last edited by GReaper; 03-28-2012 at 07:17 AM.
Devoted my life to programming...
Besides there are plenty of websites out there, where you can hire a coder to write your homework for you. Why should we do it for free? :P
"No-one else has reported this problem, you're either crazy or a liar" - Dogbert Technical Support
"Have you tried turning it off and on again?" - The IT Crowd
Hey dumbass, did you read the announcements that are at the top of every forum? Did you read any of the replies in your last thread? What could have possibly convinced you that you needed to make another thread with the exact same content?
We've told you multiple times that we aren't giving you free homework, so quit begging like a loser and either put forth effort or get out.
OMG! He cast his "like" uppon me! Should I go see a professional?!
Devoted my life to programming...
Guess this thread is gonna meet the same fate as the last one.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.