From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: weber Newsgroups: gmane.emacs.help Subject: Re: new post/Emacs v21.2/C++ mode/cin, cout Date: Thu, 26 Jul 2007 23:07:44 -0000 Organization: http://groups.google.com Message-ID: <1185491264.155903.245560@o61g2000hsh.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1185493236 30540 80.91.229.12 (26 Jul 2007 23:40:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 Jul 2007 23:40:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 27 01:40:34 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IECwc-0001R9-JY for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Jul 2007 01:40:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IECwc-00086R-0p for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Jul 2007 19:40:34 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!o61g2000hsh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Original-NNTP-Posting-Host: 189.6.212.239 Original-X-Trace: posting.google.com 1185491264 22899 127.0.0.1 (26 Jul 2007 23:07:44 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 26 Jul 2007 23:07:44 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1) Gecko/20061023 SUSE/2.0-30 Firefox/2.0,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: o61g2000hsh.googlegroups.com; posting-host=189.6.212.239; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Original-Xref: shelby.stanford.edu gnu.emacs.help:150528 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:46107 Archived-At: On Jul 26, 5:24 pm, Frank Murray wrote: > Hello, > > A new post, and not sure if this is more a basic C++ question than > an Emacs question. > > I notice that in my Emacs editor, I cannot write just "cin >>" as > input or "cout <<" > as output. The g++ compiler used in Emacs requires "std::cin >>" and/ > or "std::cout <<" > for input and output. Note, this is a Terminal window running under > Mac OS X. > > So, again, if this is more a C++ question, I apologize in advance. > If so, I will ask that community > this question. If not, any information is appreciated. Thanks. > > fjm This has absolutely nothing to do with emacs. On the other this piece of code: // my first program in C++ #include using namespace std; int main () { cout << "Hello World!"; return 0; } compiles fine with g++ hello.cpp -o hello so I don't get you. -weber