do while loop

This is a discussion on do while loop within the C++ Programming forums, part of the General Programming Boards category; But you'll get him thinking about the wrong things. There are times when objects are a good approach. There are ...

  1. #16
    Registered Abuser
    Join Date
    Sep 2007
    Location
    USA/NJ/TRENTON
    Posts
    127
    But you'll get him thinking about the wrong things. There are times when objects are a good approach. There are times when they are a bad approach. This case belongs to the latter category.
    i'll say this one last time...

    The point was NOT what is the BEST way to write a C->F/F->C program, the point was NOT what's the best way to design a degree converting class...

    the POINT WAS what's a class? what is class member data? etc.

    Thank You all anyway.

  2. #17
    Registered Abuser
    Join Date
    Sep 2007
    Location
    USA/NJ/TRENTON
    Posts
    127
    Note my disclaimer as well...

    Quote Originally Posted by sh3rpa
    here's some overkill, but it might give you something to ponder...

  3. #18
    Registered User
    Join Date
    May 2006
    Posts
    903
    But still, you are clearly teaching him bad things.

  4. #19
    Registered Abuser
    Join Date
    Sep 2007
    Location
    USA/NJ/TRENTON
    Posts
    127
    Quote Originally Posted by Desolation
    But still, you are clearly teaching him bad things.
    1) What makes you sure *alyeska* is a *him*?

    2) How is it bad? Did you learn classes by learning how to write them ONLY when necessary? Did you learn to write classes taking into account every case where they won't work? (if yes, then I'm glad you learned test-driven development up front). The answer to those questions is NO. You learned like everyone else, through example and trial & error.

    3) As an aside, I'm glad to see that the point of this forum has digressed from *helping* others learn C++ to getting the upper-hand in every/any thread to give yourself an ego boost. If you know so much, go write the next MS Windows or the next installment of HALO, and stop trolling in the forums, it's a true waste of your time and ability, OBVIOUSLY!

  5. #20
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Quote Originally Posted by sh3rpa View Post
    1) What makes you sure *alyeska* is a *him*?
    Does it matter? Among programmers, it's sort of the default assumption.

    2) How is it bad? Did you learn classes by learning how to write them ONLY when necessary? Did you learn to write classes taking into account every case where they won't work? (if yes, then I'm glad you learned test-driven development up front). The answer to those questions is NO. You learned like everyone else, through example and trial & error.
    And how do you know how we learned classes?

    I'm glad to say that I didn't learn classes by having people on the internet make me "consider" brain-dead designs.

    3) As an aside, I'm glad to see that the point of this forum has digressed from *helping* others learn C++ to getting the upper-hand in every/any thread to give yourself an ego boost. If you know so much, go write the next MS Windows or the next installment of HALO, and stop trolling in the forums, it's a true waste of your time and ability, OBVIOUSLY!
    Oh, dear. Someone doesn't know how to accept being corrected.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  6. #21
    Registered User
    Join Date
    May 2006
    Posts
    903
    1) What makes you sure *alyeska* is a *him*?
    It's a pain to always write him/her, he/she .. Plus, in French (my native language) if you do not know the gender of a person or if there are many persons and at least one guy is included in the group, then we use the masculine form. I didn't think I'd have to justify myself on that =/

    2) How is it bad? Did you learn classes by learning how to write them ONLY when necessary? Did you learn to write classes taking into account every case where they won't work? (if yes, then I'm glad you learned test-driven development up front). The answer to those questions is NO. You learned like everyone else, through example and trial & error.
    No I didn't learn to use classes correctly but I so wish I did so. I wish someone with more experience would have taught me how to use them properly but I learned it on my own and it took me quite long. Why wouldn't we help him save time ? Isn't that the whole point of helping him ? Besides, one of the many things to learn in C++ is that it is a multi-paradigm language; thus, being able to choose between either procedural programming or object-oriented programming is something that every C++ programmer should learn. In this case, I would *never* have used an object...

    3) As an aside, I'm glad to see that the point of this forum has digressed from *helping* others learn C++ to getting the upper-hand in every/any thread to give yourself an ego boost. If you know so much, go write the next MS Windows or the next installment of HALO, and stop trolling in the forums, it's a true waste of your time and ability, OBVIOUSLY!
    There is a difference between getting an ego boost and getting facts right. Because there is a great number of solutions for every problem, arguments often occur on programming boards to determine which solution is better or more "correct" than the others. It's something that's actually quite interesting and everyone gets a bit more knowledge every time. This time, though, you are the one being corrected because obviously your solution is not a good one. The simple fact that if you input in celsius degrees, for example, and convert them to celsius degrees you will not get the correct answer should make it obvious to you.

    By the way, I don't like to be called a troll by an user with 38 posts who cannot stand to be corrected in a programming forum.

  7. #22
    Registered Abuser
    Join Date
    Sep 2007
    Location
    USA/NJ/TRENTON
    Posts
    127
    Quote Originally Posted by Desolation
    By the way, I don't like to be called a troll by an user with 38 posts who cannot stand to be corrected in a programming forum.
    I'll take it back then. I don't want to offend.

    I stand corrected. I can live with that, you'll see.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. nested loop, simple but i'm missing it
    By big_brother in forum C Programming
    Replies: 19
    Last Post: 10-23-2006, 10:21 PM
  2. While loop misbehaving (or misunderstanding)
    By mattAU in forum C Programming
    Replies: 2
    Last Post: 08-28-2006, 02:14 AM
  3. loop in a linked linked lists
    By kris.c in forum C Programming
    Replies: 6
    Last Post: 08-26-2006, 12:38 PM
  4. while loop help
    By bliznags in forum C Programming
    Replies: 5
    Last Post: 03-19-2005, 11:30 PM
  5. loop issues
    By kristy in forum C Programming
    Replies: 3
    Last Post: 03-05-2005, 08:14 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21