CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2012
    Posts
    9

    Unhappy Skipping the 2nd time run!

    well the problem im facing with my program is that when i run it and enter the values for 1st booke and then i want to enter values for 2nd booke but it skips the title and go to author. its not allowing me to enter the title of booke for the 2nd book.


    I'm attaching a .cpp project. please run it and hint me the problem that i'm facing with it !! Thanks
    Attached Files
    Last edited by joannesablad; January 4th, 2012 at 06:05 AM.

  2. #2
    Join Date
    Jan 2003
    Location
    Wallisellen (Zürich), Switzerland
    Posts
    16,179

    Re: Skipping the 2nd time run!

    Quote Originally Posted by joannesablad View Post
    ...
    I'm attaching a .cpp project. please run it and hint me the problem that i'm facing with it !! Thanks
    Sorry, but there is no any attachment in your post.

    Edit> well, now you have attached it... but why did you include Debug folders in the archive? Just to make the complete size 20 times bigger than needed?
    Last edited by VictorN; January 4th, 2012 at 06:09 AM.
    Victor Nijegorodov

  3. #3
    Join Date
    Jan 2012
    Posts
    9

    Re: Skipping the 2nd time run!

    Quote Originally Posted by VictorN View Post
    Sorry, but there is no any attachment in your post.

    Edit> well, now you have attached it... but why did you include Debug folders in the archive? Just to make the complete size 20 times bigger than needed?

    Oopps.. okay i will remove the debugger file.. Except this kindly run the whole program and tell me the problem please?

  4. #4
    Join Date
    Aug 2000
    Location
    West Virginia
    Posts
    7,507

    Re: Skipping the 2nd time run!

    The problem occurs when mixing getline() with operator >>

    see : http://www.codeguru.com/forum/showthread.php?t=519630

  5. #5
    GCDEF is offline Elite Member Power Poster GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+)
    Join Date
    Nov 2003
    Posts
    11,563

    Re: Skipping the 2nd time run!

    So rather than learning to use the debugger as suggested, you're just going to keep asking people to debug your programs for you? That's going to get old.

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts



HTML5 Development Center

Click Here to Expand Forum to Full Width