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

Search:

Type: Posts; User: Rich2189

Page 1 of 33 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    5
    Views
    712

    Re: Please!!! Help me build this program

    What have you done so far?
    Break the problem down and tell us what part you are having trouble with.
  2. Replies
    4
    Views
    449

    Re: Unableto generate this output

    The second half of the sequence on a line is just the reverse. Try storing what you print into a vector, then print out the contents backwards.
  3. Thread: C++ Strings

    by Rich2189
    Replies
    7
    Views
    719

    Re: C++ Strings

    I'm going to guess "cycle".
  4. Replies
    5
    Views
    1,111

    Re: Need help with homework please ...

    I guess it is this section of code which is causing that particular error, you cannot store a string literal into an integer.

    Try declaring grade as type char and assigning it character literals....
  5. Replies
    5
    Views
    580

    Re: URGENT!!! I NEED your HELP!!

    "What is the output type" circ ("What values do you need to calculate the circumference?")
    {

    return "The result of the calculation";

    }

    //Example:
  6. Replies
    12
    Views
    838

    Re: Beginner Pointer Questions

    More for the large user defined types rather than any built in types.
  7. Replies
    12
    Views
    838

    Re: Beginner Pointer Questions

    It is faster to pass by reference when dealing with larger data types, in this case it doesn't really matter as the size of an int and an int pointer are comparable.



    You will come across uses...
  8. Replies
    5
    Views
    580

    Re: URGENT!!! I NEED your HELP!!

    Post the code you have so far then indicate any specific issues you are having.
  9. Replies
    12
    Views
    1,098

    Re: Unsortedlist Big O Performance

    Also you should not be multiplying your Big O functions, the steps you describe are consecutive.
  10. Replies
    12
    Views
    688

    Poll: Re: Do you use 'and' 'or' 'xor'?

    I started life as a VB programmer but prefer using the {|, &&, ^} operators. It is easier to distinguish between operators and operands at a glance.
  11. Re: Any nice way to get round the old "template typedefs are illegal" problem?

    Would declaring the template class as a friend of A and B work?



    template <typename T>
    class NCommon
    {
    //...
    protected:
    ~NCommon(){}
  12. Replies
    5
    Views
    1,670

    Re: BigInt class help

    You would be better off storing your digits in a vector of bytes rather than an array of bytes.

    The vector can be dynamically resized and limited to however big you require.

    Iteration through...
  13. Replies
    4
    Views
    816

    Re: Assignment in trouble :S :S :S

    Main must be written with a lower case m.



    #include<stdio.h>

    void main(void)
    {
    scanf("%*c");
    }
  14. Replies
    1
    Views
    499

    Re: need help with c++ program

    Since this is homework I will only provide hints.

    This line:



    root2 = (-b + sqrt(d))/(2*a);


    Contains a maths error, or the line above does depending on the way you look at it.
  15. Replies
    8
    Views
    796

    Re: startup problem

    It it much harder to hide things from task manager. This project of yours sounds slightly fishy, for what reason would you want to hide an application to that extent?

    If you have a good reason to...
  16. Replies
    8
    Views
    796

    Re: startup problem

    Navigate according to the following instructions:



    Tools -> Compiler Options

    "Settings" tab

    On the left hand side tree view select "Linker".
  17. Re: Which practice of iteration through containers is preferred

    I think C++0x also includes a for each implementation which will be even quicker to type.
  18. Replies
    8
    Views
    796

    Re: startup problem

    What IDE are you using? Often there is an option to run the program with no console window without having to hide it with code.
  19. Replies
    21
    Views
    1,974

    Re: void* and sizeof()

    POD (Plain Old Datatype) - The fundamental data types such as bool, int and double. So an Object which contains only these types as members.



    struct POD
    {
    bool b;
    int i;
    };
  20. Replies
    30
    Views
    4,882

    Re: Is STL important?

    I would recommend reading the introduction so you are familiar with what can be achieved with the STL. Then begin to learn specific parts as you come across problems that can be solved using...
  21. Replies
    6
    Views
    714

    Re: Exception in constructor

    Awesome article! *Devours*.



    This being the most important point I think; well following that advice will lead to the least amount of headaches.
  22. Replies
    6
    Views
    714

    Re: Exception in constructor

    Just remember to think carefully about memory management when you start throwing exceptions.
  23. Replies
    63
    Views
    4,548

    Poll: Re: Were you taught debugging

    Good point.



    Agreed, not the best.
  24. Replies
    63
    Views
    4,548

    Poll: Re: Were you taught debugging

    This was in my college text book if I remember correctly.

    The first actual case of a computer bug was caused by a moth which had died in a computer case.
    ...
  25. Replies
    63
    Views
    4,548

    Poll: Re: Were you taught debugging

    It is not wise to use message boxes for printing results; in the unfortunate event you do get stuck in an infinite loop you're stuffed.

    Most of us here will be good enough to avoid infinite loop...
Results 1 to 25 of 824
Page 1 of 33 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center