It is currently Wed Apr 25, 2018 8:09 pm Advanced search

Adding to main()

Random stuff about the contest, posts that don't fit in the other forums.

Adding to main()

Postby javagamer » Sat Feb 06, 2010 9:56 pm

Hi,
I'm a little confused about whether or not I can add to the main() method in the C++ starter kit. I see it says "Ignore this function...", but I'm not sure if that means "You probably don't care about it" or "Do not touch it". I'd like to change some code in there so I can keep information over the course of several moves. If I'm not allowed to change stuff in there is there another way I can store information over the course of several moves?
Thanks in advance,
-Javagamer
javagamer
Lieutenant
 
Posts: 11
Joined: Sat Feb 06, 2010 9:51 pm

Re: Adding to main()

Postby mspang » Sat Feb 06, 2010 10:20 pm

You may change any of the provided code. The comments are just hints that it is not necessary.
mspang
Colonel
 
Posts: 74
Joined: Fri Feb 05, 2010 1:53 am

Re: Adding to main()

Postby javagamer » Sat Feb 06, 2010 10:32 pm

Thanks, so does that mean I can change Map.h and Map.cc too?
javagamer
Lieutenant
 
Posts: 11
Joined: Sat Feb 06, 2010 9:51 pm

Re: Adding to main()

Postby mspang » Sat Feb 06, 2010 10:37 pm

Yes.
mspang
Colonel
 
Posts: 74
Joined: Fri Feb 05, 2010 1:53 am

Re: Adding to main()

Postby javagamer » Sat Feb 06, 2010 10:41 pm

Alright, that clears everything up, thanks again :)
javagamer
Lieutenant
 
Posts: 11
Joined: Sat Feb 06, 2010 9:51 pm


Return to Misc

Who is online

Users browsing this forum: No registered users and 1 guest

cron