CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: GCDEF

Page 1 of 5 1 2 3 4

Search: Search took 0.38 seconds.

  1. Replies
    5
    Views
    135

    Re: Searching a vector of objects for pairs

    I agree, the question doesn't make much sense. Sounds to me like you may want a map.
  2. Replies
    8
    Views
    196

    Re: Design advice required

    Making the constructor private will prevent you from creating an instance of that object, which is what you said you wanted to do. Pure virtual functions are the normal way to go about it.

    "Is a"...
  3. Replies
    8
    Views
    196

    Re: Design advice required

    Making your base class constructor private should do it too.
  4. Replies
    4
    Views
    130

    Re: Ignore negative number

    You don't need an else. The if by itself is enough.
  5. Replies
    17
    Views
    344

    Re: A Predator-Prey Simulation

    Doesn't look like any kind of question.
  6. Replies
    17
    Views
    344

    Re: A Predator-Prey Simulation

    What's your C or C++ question? Seems like this belongs in the Algorithms forum.
  7. Replies
    22
    Views
    279

    Re: PLEASE with this code!!!!!

    Not really. I'm not trying to be a jerk, but you need to understand the process yourself in order to explain it to the computer. I'm sure you know how to do it, but you need to figure out all the...
  8. Replies
    22
    Views
    279

    Re: PLEASE with this code!!!!!

    No. Multiplying the whole number feet by a decimal number is why you're getting compiler warnings in the first place. Remember for this exercise you need to convert everything to inches first.
    ...
  9. Replies
    22
    Views
    279

    Re: PLEASE with this code!!!!!

    Okay, so what would be the steps involved in converting say 7'3" to meters and centimeters? Just in English, not code.
  10. Replies
    22
    Views
    279

    Re: PLEASE with this code!!!!!

    If you're going to be a programmer, you need to be able to figure these things out.

    How would you convert feet and inches to inches?

    How would you convert inches to millimeters?

    How would...
  11. Replies
    22
    Views
    279

    Re: PLEASE with this code!!!!!

    Then you need to work exclusively with the smaller units. For example, if you're using feet and inches, do all your calculations with inches. If you end up with a result of 27.5" for example, you...
  12. Replies
    58
    Views
    613

    Re: Unresolved external symbol

    Calm down. You've posted that three times in five minutes. You'll likely get help, but it's not usually going to be instant.
  13. Replies
    58
    Views
    613

    Re: Unresolved external symbol

    stdafx.h should be the first #include in your .cpp files.
  14. Thread: Prime Numbers

    by GCDEF
    Replies
    28
    Views
    448

    Re: Prime Numbers

    Why don't you watch them both run in the debugger and see what yours is doing compared to his.
  15. Replies
    58
    Views
    613

    Re: Unresolved external symbol

    Notepad? The VC editor?
  16. Replies
    8
    Views
    258

    Re: Linked List problem

    You'd be amazed at the number of problems posted here that become immediately obvious when the code is formatted properly.

    If you want help, insulting people with way more experience than you...
  17. Replies
    13
    Views
    277

    Re: C++ extern question

    What does your class do that CStdioFile doesn't?
  18. Replies
    17
    Views
    492

    Re: only works with cout?

    What does your code have to do with a for loop, and what does either your code or your advice have to do with the original problem, why are you checking the value of a char array by checking one char...
  19. Re: how do i convert xml attributes to c++ class using tinyxml

    Is that the only line in your stack? If not, find the last line of YOUR code referenced. If it doesn't show any of your code, you'll need to step through the debugger to find where it's going wrong.
  20. Replies
    13
    Views
    321

    Re: C++ assistance for my beginner class

    Not sure C++ compilers will see it that way.
  21. Replies
    13
    Views
    321

    Re: C++ assistance for my beginner class

    What is this?

    num = (rand()%8)+ 2;
  22. Replies
    5
    Views
    208

    Re: parsing of char array won't finish

    Running the program in the debugger is the best debugging exercise.
  23. Replies
    11
    Views
    256

    Re: outping HTML from within C++

    You sure?
  24. Re: why i am getting Run-time error in this Merge sort algorithm code plz help

    Do you still have a question?
  25. Replies
    11
    Views
    256

    Re: outping HTML from within C++

    How did you determine it was running correctly, when clearly it wasn't? Stepping through the code in the debugger is really the only way to know for sure what your program is doing, and it would...
Results 1 to 25 of 119
Page 1 of 5 1 2 3 4



HTML5 Development Center

Click Here to Expand Forum to Full Width