View Single Post
  #13   Spotlight this post!  
Unread 11-10-2003, 12:57
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
Eric,

I did compile and run Matt's code under Turbo C and Quick C with no problems. His program is the simplest code which is guaranteed to run under ANSI compliant C.

see http://www.lysator.liu.se/c/simple-c

Now to correct an error I made...

Your example is valid under DOS, etc... In your code argc is a integer which is the number of command line parameters and argv is a pointer to an array of pointers to arrays of characters. These strings are the command line parameters entered by you when you run the executable.

see: http://www.lysator.liu.se/c/multiple-level

Without adding this, Matt is unable to access command line parameters which is OK because we will not be running under DOS anyway...

As I said... Your code also works... I did not mean to start a fight here.

Peace.
Sorry

I'm still stuck on PC-coding, and forgot about the point, which was to discuss the new language's syntax.

You didn't start a fight, it was me that forgot for about 3 hrs. what this was actually about
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

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