CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
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 Attached Files
    Last edited by joannesablad; January 4th, 2012 at 07:05 AM.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    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 07: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,721

    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
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    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.

Tags for this Thread

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured