Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #7770
| From | Ian Collins <ian-news@hotmail.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: input/output trouble cause segmentation fault |
| Date | 2011-07-13 18:02 +1200 |
| Message-ID | <984qq7FglrU3@mid.individual.net> (permalink) |
| References | <ebfce12c-127a-42f1-bd4b-ec42f2172ff7@v11g2000prn.googlegroups.com> |
On 07/13/11 05:27 PM, eric wrote:
> Dear advanced c/g++ programers:
>
> A program request me to enter twice input
> that program probably is tested good on visual c++ 7.1 on window xp,
> but my system is g++ on linux(Ubuntu10.04)
> It assume
> Enter some strings: a b c d
> ^Z
> Enter some more strings: d e f g
> ^Z
> Union: a b c d e f g
> Difference: a b c
> Intersection: d
> all these you can get from page 273 and 274 of book(c++ cookbook)
>
> but my test result is
> -------------------------------
> eric@eric-laptop:~/cppcookbook/ch7$ ./a.out
> Enter a series of strings: a b c d
> ^Z
> [7]+ Stopped ./a.out
> eric@eric-laptop:~/cppcookbook/ch7$ ./a.out
> Enter a series of strings: a b c d
> {a, b, c, d}
> Segmentation fault
What does your debugger tell you?
--
Ian Collins
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
input/output trouble cause segmentation fault eric <cneric12lin0@gmail.com> - 2011-07-12 22:27 -0700
Re: input/output trouble cause segmentation fault Ian Collins <ian-news@hotmail.com> - 2011-07-13 18:02 +1200
Re: input/output trouble cause segmentation fault eric <cneric12lin0@gmail.com> - 2011-07-12 23:23 -0700
Re: input/output trouble cause segmentation fault eric <cneric12lin0@gmail.com> - 2011-07-13 00:56 -0700
csiph-web