Skipping the 2nd time run!
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Skipping the 2nd time run!

  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 06:05 AM.

  2. #2
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,467

    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,612

    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
    Posts
    12,120

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center