Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 How to Loop?
Index -> Programming, C++ -> C++ Help
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
wtd




PostPosted: Wed Jun 22, 2005 10:59 pm   Post subject: (No subject)

Cinjection:

code:
for (int c(0); c <= 100; ++c)
{
   cout << "cat" << endl;
}


Aside from the added spacing, I use initilization, rather than assignment, and the prefix form of incrementing. Good habits to get into.
Sponsor
Sponsor
Sponsor
sponsor
1of42




PostPosted: Thu Jun 23, 2005 2:07 am   Post subject: (No subject)

see, i was gonna point all that out, but it just ruins all the fun of c++ (pun intended). Very Happy
Cinjection




PostPosted: Thu Jun 23, 2005 9:04 am   Post subject: (No subject)

I know that code is bad. I never pull those single-liners, but you really got to stop correcting mock code! Very Happy
Display posts from previous:   
   Index -> Programming, C++ -> C++ Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 18 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: