Thread: Tutoials?
View Single Post
  #14  
Old 05-05-2002, 11:31 PM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
Quote:
Originally posted by Saga2001
-FooL-

Funny how they all share one thing... they almost always start with a certain line...

C++ = int main() -- from what I've seen that is
#include <>

Quote:
Originally posted by Falcor

#include <iostream.h>
int main() {
int number;
cout << "OMG LIKE ENTER A NUMBER :O\n"
cin >> number;
cout << "\nOMG THAT NUMBER IS LIKE" << number << "!!";
}
What a disgusting piece of code/output! Much better is...

NPC Code:

#include <iostream.h>
int main()
{
int number;
cout << "OMG LIKE ENTER A NUMBER :O" << endl;
cin >> number;
cout << endl << "OMG THAT NUMBER IS LIKE " << number << "!!";
return 0; // If you are going to use int main(), you need to return a value.
}



Quote:
Originally posted by Gohan43331

I have a spare copy of the NSB, if you would like it...i will post on my site in a few and edit to put the link in...

[edit]
http://brajah.tripod.com/guide.html

Note: HTML file because of stupid tripod which refuses to allow me to remote download.
[/edit]
It still isn't up.
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote