CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2011
    Posts
    1

    Thumbs up Assignment question

    I need to compare your answers to my answers.
    Attached Images Attached Images

  2. #2
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: Assignment question

    Wow

  3. #3
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: Assignment question


  4. #4
    Join Date
    Mar 2010
    Location
    Melbourne Australia
    Posts
    454

    Re: Assignment question

    "I need to compare your answers to my answers. "
    certainly the most novel way I have seen to get assignment done.

  5. #5
    Join Date
    May 2009
    Posts
    2,413

    Re: Assignment question

    Quote Originally Posted by aamir121a View Post
    "I need to compare your answers to my answers. "
    certainly the most novel way I have seen to get assignment done.
    It almost beats the worst I've ever heard: "Please do my homework because my girlfriend died and I have to attend the funeral"

  6. #6
    Join Date
    Jun 2011
    Posts
    35

    Re: Assignment question

    Quote Originally Posted by nuzzle View Post
    It almost beats the worst I've ever heard: "Please do my homework because my girlfriend died and I have to attend the funeral"
    WOW that's sad!!!

  7. #7
    Join Date
    Jun 2009
    Location
    France
    Posts
    2,513

    Re: Assignment question

    That said, that assignment looks like hell.

    All the instructions are
    *Write a for loop
    *Then a while loop
    *Then a for loop.
    *Then do some if elses.
    *...
    *Then fill in the blanks of this ridiculously hard to understand code because of all the holes.

    Oh, just to make it more challenging, we copy pasted the code and lost all indentation structure.

    IMO, these kind of assignments require more skill in concentration and following instructions then actual programming skills...



    At least it uses proper c++ I guess: no <iostream.h> here...
    Is your question related to IO?
    Read this C++ FAQ article at parashift by Marshall Cline. In particular points 1-6.
    It will explain how to correctly deal with IO, how to validate input, and why you shouldn't count on "while(!in.eof())". And it always makes for excellent reading.

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