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 | 06:31 PM
  #11  
CornerWorker's Avatar
Banned
 
Joined: Jul 2002
Posts: 42
Likes: 0
From: portland
Default

thats c, not c++.
dont perpetuate bad code.

<sounds like neil butterworth/victor bazarov from comp.lang.c++>
Old 11-14-2002 | 06:33 PM
  #12  
CornerWorker's Avatar
Banned
 
Joined: Jul 2002
Posts: 42
Likes: 0
From: portland
Default

for the hello world program in c++:

//begin

#include <iostream>

int main(int argc, char* argv[])
{
std::cout << "Hello World!" << std::endl;
return EXIT_SUCCESS;
}
Old 11-14-2002 | 06:40 PM
  #13  
Chazmo's Avatar
Gold Member (Premium)
20 Year Member
 
Joined: Jun 2002
Posts: 42,311
Likes: 36
From: Central Massachusetts
Default

Fair enough CornerWorker... So what was the confusion about main()??

Oh, wait a sec, the comment was already on that line... I thought you'd put it there.

Rock on... Gotta tell you though, make sure you know C damn well if you want to get into system programming.

C++ is neat though... Serves a very different purpose.
Old 11-14-2002 | 06:48 PM
  #14  
PeaceLove&S2K's Avatar
Registered User
 
Joined: Jul 2002
Posts: 19,255
Likes: 18
From: San Diego, CA
Default

That won't compile Charlie.
You forgot to:
#include <stdio.h>

Old 11-14-2002 | 06:49 PM
  #15  
PeaceLove&S2K's Avatar
Registered User
 
Joined: Jul 2002
Posts: 19,255
Likes: 18
From: San Diego, CA
Default

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

Bloody Hell Fire!!!
Jack, you tyre-biter!

Old 11-14-2002 | 07:07 PM
  #17  
PeaceLove&S2K's Avatar
Registered User
 
Joined: Jul 2002
Posts: 19,255
Likes: 18
From: San Diego, CA
Default

they don't call me the human compiler at work for nothing :cool420: (for Java though)
I'm doing mostly Java programming at work, and I like the language. It almost forces you to stick to good coding convention. Not ideal for performance critical applications though, where you'd wanna do C/Assembly. My former room mate used to work at a device driver house (before he got asked to take an indefinite vacation - so I guess he technically still works for them). A co-worker of his also hung out with us a lot. My room mate was a Windows device driver programmer (though his company does mainly UNIX drivers). His co-worker was a pretty good UNIX device driver programmer. I'm not sure if you've heard of UDI (Unified Driver Interface(?) - it's a cross platform source code standard for Unix drivers), but he wrote the UDI driver for USB keyboards.
Old 11-14-2002 | 07:47 PM
  #18  
CornerWorker's Avatar
Banned
 
Joined: Jul 2002
Posts: 42
Likes: 0
From: portland
Default

yeah, c is good for low level routines, etc. c++ is best for larger (100,000+ line style) projects requiring OOP design. and to brag to your friends. pretty fast too....java is nice for like, applets. heh.

what confusion with main?
Old 11-15-2002 | 12:05 AM
  #19  
Skuzzy's Avatar
Thread Starter
Registered User
 
Joined: Sep 2002
Posts: 11,644
Likes: 0
From: panhandle state
Default

Yup, i made my first program... its soo uber pimp... looks like this....

FATAL ERROR!
FATAL ERROR!
FATAL ERROR!
FATAL ERROR!
FATAL ERROR!
FATAL ERROR!
FATAL ERROR!
FATAL ERROR!
FATAL ERROR!
FATAL ERROR!
FATAL ERROR!
FATAL ERROR!

Old 11-15-2002 | 12:06 AM
  #20  
Skuzzy's Avatar
Thread Starter
Registered User
 
Joined: Sep 2002
Posts: 11,644
Likes: 0
From: panhandle state
Default

I think is cool



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