This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: simple sorting a Range program can not run(work or printout)
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: eric <cneric12lin0 at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 13 Jul 2011 10:28:44 +0100
- Subject: Re: simple sorting a Range program can not run(work or printout)
- References: <eac844c6-ae36-47ce-a141-5b230ab1022e@h7g2000prf.googlegroups.com>
On 13 July 2011 02:30, eric wrote:
> it can compile but when I run it
> -----------
> eric@eric-laptop:~/cppcookbook/ch7$ ./a.out
> Enter a series of strings: a z b y c x d w^Z
> [1]+ ?Stopped ? ? ? ? ? ? ? ? ./a.out
> ----------------------------------
> it sould suppose to show
> -----
> a b c d w x y z
Only on Windows. ^Z on Linux is not the same as Windows.
If the book says it should show that then THE BOOK IS WRONG.
As I said, use a different book, or use a different compiler + operating system.
The book you're using only works on Windows.
Also, stop asking these questions here. Thanks.