![]() |
|
#1
|
||||
|
||||
Wierd errors (again)I'm getting errors on this one also, but these ones don't make sense.
"Syntax error before 'double'" received on the definition of gregToJul() but there's nothing before it except for comments. "'D' undeclared" in the body of the gregToJul() definition. I've never had this problem w/ a function definition before; if I take an argument and rename it for the body of the function, it usually counts as declaring it, right? Also, I don't get an error when I change the argument "month" to "M" but I do here ("day" to "D"). However, within the actual julian date conversion formula, I do get an 'M' undeclared error but not the others. Finally, I get two warnings regarding getting an 'int' from 'double' when I return the julian date, but I never refer to int values. Any ideas or suggestions? Thanks. CPP / C++ / C Code:
__________________
Start Programming with Python-A beginner's guide to programming and the Python language. ------------- Common Sense v2.0-Striving to make the world a little bit smarter. |
|
#2
|
|||
|
|||
|
For starters, you are missing the } in your
CPP / C++ / C Code:
Put it there, then you can get on with it. Good luck! Dave |
|
#3
|
||||
|
||||
|
I don't get any of the errros you do. Only the one Dave caught and one other.
__________________
Got a cough? Go home tonight and eat a whole box of Ex-Lax. Tomorrow, you'll be afraid to cough. -- Pearl Williams |
|
#4
|
||||
|
||||
|
That, plus a few other things I found, fixed it. Thanks!
__________________
Start Programming with Python-A beginner's guide to programming and the Python language. ------------- Common Sense v2.0-Striving to make the world a little bit smarter. |
Recent GIDBlog
Toyota - 2008 November Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can't figure out errors | crystalattice | C++ Forum | 3 | 17-Jul-2004 08:58 |
| there are some errors but where?? | small_ticket | C Programming Language | 6 | 18-May-2004 14:10 |
| Error C2143: syntax error : missing ';' before 'type' | small_ticket | C Programming Language | 6 | 15-May-2004 12:59 |
| Can somebody look at this and point out any errors to me | soulfly | C Programming Language | 7 | 31-Mar-2004 10:45 |
| Rambus 128mb Pc800 memory errors | momo | Computer Hardware Forum | 1 | 11-Mar-2004 05:22 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The