C++: IFSTREAM causes problem

Discussion in 'C++' started by Gaby Glockner, Dec 5, 2006.

  1. Hello folks,

    I'm desperate! I've written a subroutine on my Windows
    XP laptop and it works separately. But once I've included
    this subroutine into a bigger program it executes but then
    I get some message popping up that a problem occurs although
    it compiles fine.

    There is a ifstream line in my main program which is absolutely
    independent of the subroutine. Once I've removed this line
    for the ifstream the subroutine works. But I need the ifstream
    to read in a file.

    Do you have another suggestions?!

    Many thanks,
    Gaby
    Gaby Glockner, Dec 5, 2006
    #1
    1. Advertising

  2. Re: IFSTREAM causes problem

    Gaby Glockner wrote:
    > I'm desperate! I've written a subroutine on my Windows
    > XP laptop and it works separately. But once I've included
    > this subroutine into a bigger program it executes but then
    > I get some message popping up that a problem occurs although
    > it compiles fine.
    >
    > There is a ifstream line in my main program which is absolutely
    > independent of the subroutine. Once I've removed this line
    > for the ifstream the subroutine works. But I need the ifstream
    > to read in a file.
    >
    > Do you have another suggestions?!


    Another suggestions would be to read the FAQ, section 5, the
    question (and the answer) 5.8. Then follow its recommendations.

    V
    --
    Please remove capital 'A's when replying by e-mail
    I do not respond to top-posted replies, please don't ask
    Victor Bazarov, Dec 5, 2006
    #2
    1. Advertising

  3. Gaby Glockner wrote:
    > Hello folks,
    >
    > I'm desperate! I've written a subroutine on my Windows
    > XP laptop and it works separately. But once I've included
    > this subroutine into a bigger program it executes but then
    > I get some message popping up that a problem occurs although
    > it compiles fine.
    >
    > There is a ifstream line in my main program which is absolutely
    > independent of the subroutine. Once I've removed this line
    > for the ifstream the subroutine works. But I need the ifstream
    > to read in a file.
    >
    > Do you have another suggestions?!


    Yes. Post the code.

    - J.
    Jacek Dziedzic, Dec 5, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Xavier Osa
    Replies:
    0
    Views:
    616
    Xavier Osa
    Jan 9, 2004
  2. John
    Replies:
    10
    Views:
    10,029
    Buster Copley
    Jul 14, 2003
  3. Nils Wogatzky

    ifstream - read - problem

    Nils Wogatzky, Sep 8, 2003, in forum: C++
    Replies:
    5
    Views:
    649
    Kevin Goodsell
    Sep 8, 2003
  4. Anton Ishmurzin
    Replies:
    7
    Views:
    7,654
    Anton Ishmurzin
    Nov 26, 2003
  5. Alexandros

    Problem with ifstream

    Alexandros, Dec 26, 2003, in forum: C++
    Replies:
    0
    Views:
    321
    Alexandros
    Dec 26, 2003
Loading...

Share This Page