The Corner House of Whores and Monkeys. Enter for Fun & Shenanigans! We're weird here. In the most awesome way possible.

Oh yea! C++ owns j00!

Thread Tools
 
Old 11-14-2002 | 11:18 AM
  #1  
Skuzzy's Avatar
Thread Starter
Registered User
 
Joined: Sep 2002
Posts: 11,644
Likes: 0
From: panhandle state
Default Oh yea! C++ owns j00!

......actually I am just starting to learn.

// Jacob is Da' Coolest

#include <iostream.h> // I have no fvck what this is, but something with directive for preporcessor?!?

int main() // no idea what this is either
{ // what the hell are these for?
cout << "I ownz j00!"; cout << "I am the t-1000 post whore";
return 0; // i have no idea that this is for
}

Eat that biznatch

Old 11-14-2002 | 11:19 AM
  #2  
Skuzzy's Avatar
Thread Starter
Registered User
 
Joined: Sep 2002
Posts: 11,644
Likes: 0
From: panhandle state
Default

http://www.cplusplus.com/doc/tutorial/tut1-2.html

I have no idea what i am reading on this page
Old 11-14-2002 | 11:20 AM
  #3  
Skuzzy's Avatar
Thread Starter
Registered User
 
Joined: Sep 2002
Posts: 11,644
Likes: 0
From: panhandle state
Default

Oh crap, return 0; ends that code or whatever.
COOL!
Old 11-14-2002 | 11:27 AM
  #4  
Skuzzy's Avatar
Thread Starter
Registered User
 
Joined: Sep 2002
Posts: 11,644
Likes: 0
From: panhandle state
Default

crap, i dont know how to d/l this friggin compiler.... it has all the files look like the are on my comp....but its like ftp or grr crap.

Old 11-14-2002 | 11:54 AM
  #5  
The Unabageler's Avatar
Former Moderator
 
Joined: Oct 2000
Posts: 20,448
Likes: 0
From: internet
Default

c++ is for wusses. too much structure!
Old 11-14-2002 | 11:55 AM
  #6  
Skuzzy's Avatar
Thread Starter
Registered User
 
Joined: Sep 2002
Posts: 11,644
Likes: 0
From: panhandle state
Default

Umm errm yea....well its ok cause im a newb.

Old 11-14-2002 | 11:56 AM
  #7  
Skuzzy's Avatar
Thread Starter
Registered User
 
Joined: Sep 2002
Posts: 11,644
Likes: 0
From: panhandle state
Default

I need a compiler

Trending Topics

Old 11-14-2002 | 12:26 PM
  #8  
The Unabageler's Avatar
Former Moderator
 
Joined: Oct 2000
Posts: 20,448
Likes: 0
From: internet
Default

get gcc. if you're on windoze then get cygwin and do it from there
Old 11-14-2002 | 03:17 PM
  #9  
CornerWorker's Avatar
Banned
 
Joined: Jul 2002
Posts: 42
Likes: 0
From: portland
Default

// Jacob is Da' Coolest

#include <iostream.h> // I have no fvck what this is, but something with directive for preporcessor?!?

....use <iostream>
it is standard compliant.

int main() // no idea what this is either

starts the function body of main.

{ // what the hell are these for?
cout << "I ownz j00!"; cout << "I am the t-1000 post whore";

std::cout would be better. they are io 'streams' to the console.

return 0; // i have no idea that this is for

you mean 'return EXIT_SUCCESS;'
return 0 is ambiguous on some systems. yeah it ends that block of code because it returns the value from the function.

}
Old 11-14-2002 | 06:23 PM
  #10  
Chazmo's Avatar
Gold Member (Premium)
20 Year Member
 
Joined: Jun 2002
Posts: 42,311
Likes: 36
From: Central Massachusetts
Default

C programs have a function called main(){body} which is what's called first after you link your program and run it. I suppose that's what's supposed to be shown here, guys.

For the famous "Hello World" program, you'd write:
main() {
printf("Hello worldn");
}

The return statement is used also to return a value to the caller. Here, for main, it gets returned to the "shell" which invoked the program.



All times are GMT -8. The time now is 07:49 PM.