delorie.com/archives/browse.cgi | search |
From: | Ramy Elmeligy <Ramiman12 AT MailAndNews DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | RE: Problem compiling c++ |
Date: | Sat, 18 Aug 2001 23:06:35 -0400 |
Organization: | Posted via Supernews, http://www.supernews.com |
Message-ID: | <3B8DEB85@MailAndNews.com> |
X-InterChange-Posted-By: | Ramiman12 AT MailAndNews DOT com |
Sender: | Ramy Elmeligy <Ramiman12 AT MailAndNews DOT com> |
X-EXP32-SerialNo: | 50000000 |
Mime-Version: | 1.0 |
X-Newsreader: | InterChange (Hydra) News v3.61.08 |
X-Complaints-To: | newsabuse AT supernews DOT com |
Lines: | 29 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
>===== Original Message From djgpp AT delorie DOT com ===== >[snip] >> >> #include <iostream> > >> using namespace std; >^^^^^^^^^^^^^^^^^^^^^^ This line allows you to skip putting the prefix std:: in front of all your statements. For instance, 'cout' in your program would have to be 'std::cout' And cin, if you had it, would have to be 'std::cin' Etc, etc. Does that make it clear? > >> >> int main (void) >> { >> cout << "My first C++ program\n\n"; >> return 0; >> } ------------------------------------------------------------ Get your FREE web-based e-mail and newsgroup access at: http://MailAndNews.com Create a new mailbox, or access your existing IMAP4 or POP3 mailbox from anywhere with just a web browser. ------------------------------------------------------------
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |