discom February 14, 2006 Share discom Member February 14, 2006 #include<iostream> using namespace std; int main() { for(int i = 1; i <= 1000000000000; i++ ) { cout << "SPAM #" << i << endl; } return 0; } it would be soooooo cool if the forum could compile and run this Link to comment Share on other sites More sharing options...
Unclean February 14, 2006 Share Unclean Member February 14, 2006 It wouldn't compile. Function "cout" not defined. SELECT MEMBER_NAME from MSGBOARD WHERE STATUS = 'Uber nerd'; discombobulated 1 record found. Link to comment Share on other sites More sharing options...
discom February 14, 2006 Author Share discom Member February 14, 2006 of cource it's defind. did you not see the "#include<iostream>"?? thats the input-output stream and cout is included in that. you nerd Link to comment Share on other sites More sharing options...
Unclean February 14, 2006 Share Unclean Member February 14, 2006 Dang it! I thought you mistyped "count". UPDATE MSGBOARD SET PROGRAMMING_NOOB = "Yes" WHERE NAME = "Unclean"; commit; Link to comment Share on other sites More sharing options...
discom February 14, 2006 Author Share discom Member February 14, 2006 LOL Link to comment Share on other sites More sharing options...
NOFX April 5, 2006 Share NOFX Member April 5, 2006 (edited) c and sql programmers #include<iostream>#include<members.h> using namespace std; int main() { numOfMembers = getMemberCount(); string memberName; void getMemberName(int memNum) { while (memNum >=0 && memNum <= numOfMembers) { strcpy(memberName, members.getMemberName(memNum); } return memberName; } string tempName; for(int i = 1; i <= numOfMembers; i++ ) { tempName = getMemberName(i); if (tempName == NOFX) cout << tempName << " is a l33t H4x0rz" << endl; else cout << tempName << " is a NOOB" << endl; } } Now you have been hosed wish I knew how to format it. Edited April 5, 2006 by NOFX Link to comment Share on other sites More sharing options...
Unclean April 5, 2006 Share Unclean Member April 5, 2006 concatenOWNED. Link to comment Share on other sites More sharing options...
Xterminator April 6, 2006 Share Xterminator Member April 6, 2006 NOFX that's some bad programming there. You're supposed to tab and make things look pretty Link to comment Share on other sites More sharing options...
NOFX April 6, 2006 Share NOFX Member April 6, 2006 (edited) NOFX that's some bad programming there. You're supposed to tab and make things look pretty wish I knew how to format it. another attempt with no success Edited April 6, 2006 by NOFX Link to comment Share on other sites More sharing options...
Unclean April 6, 2006 Share Unclean Member April 6, 2006 No, he's doing great if he's adhering to the Guide to Unmaintainable Code: http://thc.org/root/phun/unmaintain.html Link to comment Share on other sites More sharing options...
NOFX April 7, 2006 Share NOFX Member April 7, 2006 thats how I roll Link to comment Share on other sites More sharing options...
dwEEziL May 1, 2006 Share dwEEziL Member May 1, 2006 Tabbing and making it all neat is only if 1) you plan on reading it later and trying to figure out what you were doing or 2) You don't want to be called back to an old company for 3x the money to do consulting work after your program breaks and they can't read the source code. Link to comment Share on other sites More sharing options...
NOFX May 1, 2006 Share NOFX Member May 1, 2006 (edited) still can't do it Edited May 1, 2006 by NOFX Link to comment Share on other sites More sharing options...
Recommended Posts