Quantcast

Maximum PC

It is currently Sat Oct 25, 2014 7:17 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Mon Dec 27, 2004 1:11 pm 
Team Member Top 100
Team Member Top 100

Joined: Fri Sep 17, 2004 5:35 pm
Posts: 1176
Or, he could have just used
Code:
int nums[100]={0};

like I posted and not have to worry about memset.

And yes, if he really wanted to have 1 - 100, he could just add one to the end of the assignment :)


Top
  Profile  
 
 Post subject:
PostPosted: Mon Dec 27, 2004 7:51 pm 
8086
8086

Joined: Wed Dec 22, 2004 1:56 pm
Posts: 4
Location: The Great Northwest
Oops, I totally missed that line of code at the top of that snippet. Sorry bout that.

Didn't know you could do that either in C++ ;)

That wins for the initialization :)


Top
  Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

© 2014 Future US, Inc. All rights reserved.