🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #496

#include <iostream.h> cout "Hello World\n" hassle (kindergarten prob, I guess)

#496
From: imsks126
Date: Fri, 24 Jul 1992 18:07
24 lines
1083 bytes
What am I doing wrong? If I #include <iostream.h> I can

void main(void){
  int a = 123;
  cout << a;
  }                

and 123 gets printed to the screen.

but if I try:                      or:  

void main(void){                   void main(void){
  char str[6];
                                     cout << "Uga Buga";
  str = "Uga Buga";                  }
  cout << str;
  }

in both cases I get linker error "undef symbol in ostream:: etc."
This must be something very stupid and elementary, but I can't 
get it working. Thanks.

Sandy
Technical Details
Message-ID: <0095E0C9.C1EA64E0@Msu.oscs.montana.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!usenet.coe.montana.edu!Msu.oscs.montana.edu!imsks126

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!usenet.coe.montana.edu!Msu.oscs.montana.edu!imsks126
From: imsks126@Msu.oscs.montana.edu
Newsgroups: comp.os.msdos.programmer
Subject: #include <iostream.h> cout "Hello World\n" hassle (kindergarten prob, I guess)
Message-ID: <0095E0C9.C1EA64E0@Msu.oscs.montana.edu>
Date: 24 Jul 92 18:07:47 GMT
Article-I.D.: Msu.0095E0C9.C1EA64E0
Sender: usenet@coe.montana.edu (USENET News System)
Reply-To: imsks126@Msu.oscs.montana.edu
Organization: Montana State University
Lines: 24