Can someone help me with how I should go about how the inputted date is stored? Also, what I need to do to compute the century and year in part (c) of this problem? I would greatly appreciate any additional help on this.
Can someone help me with how I should go about how the inputted date is stored? Also, what I need to do to compute the century and year in part (c) of this problem? I would greatly appreciate any additional help on this.
You're still missing a semicolon and stuff. Let's see your latest code.
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
Start with
Code:scanf ("%d","%d","%d",&day,&month,&year); printf( "%d %d %d\n", day, month, year );
Then go on to
Add the rest of the rules for your calculation one variable at a time until your program is complete.Code:scanf ("%d","%d","%d",&day,&month,&year); M = (26 * 10)-2) /10; printf( "%d %d %d %d\n", day, month, year, M );
Ahem. You're passing scanf() too many arguments. Perhaps you meanCode:scanf ("%d","%d","%d",&day,&month,&year);
This codeCode:scanf("%d/%d/%d", &day, &month, &year);
is still completely wrong.Code:M = (26 * 10)-2) /10;
That's why I want to see the latest code.
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.