Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #7770
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Ian Collins <ian-news@hotmail.com> |
| Newsgroups | comp.lang.c++ |
| Subject | Re: input/output trouble cause segmentation fault |
| Date | Wed, 13 Jul 2011 18:02:54 +1200 |
| Lines | 31 |
| Message-ID | <984qq7FglrU3@mid.individual.net> (permalink) |
| References | <ebfce12c-127a-42f1-bd4b-ec42f2172ff7@v11g2000prn.googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net HQ5IWUyWVnkmp3nLMF3g0Avp77JfaPXQopQ/zu5Wj81SrvipPl |
| Cancel-Lock | sha1:yRTBvufIpCsHIzspuTAZV2MQvPg= |
| User-Agent | Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.2.9) Gecko/20101021 Lightning/1.0b2 Thunderbird/3.1.4 |
| In-Reply-To | <ebfce12c-127a-42f1-bd4b-ec42f2172ff7@v11g2000prn.googlegroups.com> |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.c++:7770 |
Show key headers only | View raw
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