View Single Post
  #10   Spotlight this post!  
Unread 11-10-2003, 10:19
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
Quote:
Originally posted by Mike Betts
Both codes will work...

Raven_Writer's code requires two passed parameters at invocation... argc (an integer) and argv(a pointer to an array of characters (also known as a string)). However, neither is used by the function "main".

monsieurcoffee's code is more traditional and correct as a stand alone program. However, he needs to indent his code so that it is more readable... Without indenting, any non-trivial code is very hard to maintain....
Not to be nit-picky about this, but if you compiled monsieur's code, it wouldn't work because 1, main is not actually declared, and 2 main doesn't return a value (but that's only if you declare main to be an integer, and not void).
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"