delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/12/31/05:51:11

From: cheung_chi_man AT hotmail DOT com (Cheung Chi Man)
Subject: B20.1 Automatic carriage return
31 Dec 1998 05:51:11 -0800 :
Message-ID: <199812310955.BAA12659.cygnus.gnu-win32@law-f73.hotmail.com>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

   I use Cygwin B20.1, under WIndows 95, to compile my C++ program.
However, I found that a carriage return occur even if I have no
intention to do.
   For example, my program (test.cpp):
      #include <iostream>
      void main()
      { int number;
        cout<<" Please input a number ";
        cin>>number;
        cout<<number<<" is your input number";
      }
   When I compile it and run the prgram, it occur as follow :
   ------- screen shot -------
   BASH.EXE-2.02$g++ -o test test.cpp
   BASH.EXE-2.02$./test.exe
   Please input a number
   13
   13 is your input number BASH.EXE-2.02$
   ------- screen shot end ------
   It automatically make a carriage return !! Is there something 
worng ?
   

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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