Search:

Type: Posts; User: icegoblin

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    1,789

    This error crops up as the answer to missing...

    This error crops up as the answer to missing closing curly braces (}). Usually the function that is causing the error is not intended to be defined locally (i.e. inside another function) ... the...
  2. Replies
    2
    Views
    1,525

    Take out the '>> endl'.

    Take out the '>> endl'.
  3. If you're programming for the Windows platform...

    If you're programming for the Windows platform you can use the Win32 API function 'Sleep'. If your program is running exclusively on its own and you don't care how much CPU it takes up, you can...
  4. As the Troll mentioned, you can set constant...

    As the Troll mentioned, you can set constant members in the constructor like so:

    class MyClass
    {
    public:
    MyClass() : cvar(5)
    {
    }

    private:
  5. Replies
    9
    Views
    3,973

    If your 'high_limit' variable is indeed an 'int'...

    If your 'high_limit' variable is indeed an 'int' then it cannot store a string. If the user enters letters in instead of a number, the statement will work but zero (0) will be put in 'high_limit'. ...
  6. Replies
    1
    Views
    2,120

    No. What are your 2 parallel arrays, I see four.

    No. What are your 2 parallel arrays, I see four.
  7. Replies
    8
    Views
    2,430

    In answer to your second question, no. If the...

    In answer to your second question, no. If the second source file does not include "iostream.h" then it will not be effected by it (unless it includes a file which includes "iostream.h" of course).
    ...
Results 1 to 7 of 7