www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/01/27/10:15:41

Lines: 15
X-Admin: news AT aol DOT com
From: beigebeing AT aol DOT com (Beigebeing)
Newsgroups: comp.os.msdos.djgpp
Date: 27 Jan 2003 14:58:37 GMT
Organization: AOL, http://www.aol.co.uk
Subject: Newbie v2.03 missing error
Message-ID: <20030127095837.11619.00000249@mb-cp.aol.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I am very new to c++, my problem is, my code works!
djgpp v2.03 compiles this code,  when there should be an error

#include <iostream>
 int main(){
 std::cout << "Hello"<< endl;    
 return 0; }

Line 3 should be     std::cout << "Hello"<< std::endl 

When I use the compile option in RHIDE, it compiles reporting 'No errors'
It also builds from a DOS command    gpp -o hello.exe hello.cpp 
and runs fine.

Thanks BB

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019