Thread: Stupid errors!

  1. #1
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823

    Stupid errors!

    GAH! I should have my programmer's license taken away (or something)...

    Here's the error that's been stumping me for hours...

    char RAbuf[1024] = {0};
    int RASize = sizeof(RABuf);

    Anyone guess what error I got?

    I know I'm not the only stupid one here - what're some of your stupid errors....

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    *Cough*
    Capitalisation
    *Cough*

  3. #3
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    Where were you last night, Fordy? I got so caught up in trying to figure what I did algorithmically wrong that I missed my stupid little capitalization error. It compiles w/o complaint, now...

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    >>Where were you last night, Fordy?

    None of your damn business!!!!!


  5. #5
    Registered User
    Join Date
    Sep 2001
    Posts
    752

    Always an interesting one...

    Code:
    int main ()
    {
     // some code...
     if (choice != 0);
     {
      // Lots of code
     }
     return 0;
    }
    Callou collei we'll code the way
    Of prime numbers and pings!

  6. #6
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,138
    Code:
    class a
    {int abc;
      float bca;
    };
    
    /*I usually forget the semi colon after class declarations but I don't have to worry about it if I go into C# :) */

  7. #7
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793

    Re: Always an interesting one...

    Originally posted by QuestionC
    Code:
    int main ()
    {
     // some code...
     if (choice != 0);
     {
      // Lots of code
     }
     return 0;
    }
    Gah...semicolon after if().....I always do that!

  8. #8
    Ecologist
    Join Date
    Aug 2001
    Location
    Utah.
    Posts
    1,291
    Code:
    e/*****************************
    *Comment Box. Notice the 'e'. *
    *It took me forever to notice *
    *it. I don't even know how it *
    *got there. Screwed up every- *
    *thing...                     * 
    ******************************/
    #include <iostream.h>
    ...
    The compiler kept saying that there was an
    error in streambuf.h (whatever that is)...
    I was soooo annoyed.
    Staying away from General.

  9. #9
    Registered User
    Join Date
    Jan 2002
    Posts
    363
    Does not even knowing how to spell your own name count as a stupid error?
    I even manage to mispell if. . .

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. global namespace errors
    By stubaan in forum C++ Programming
    Replies: 9
    Last Post: 04-02-2008, 03:11 PM
  2. Ten Errors
    By AverageSoftware in forum Contests Board
    Replies: 0
    Last Post: 07-20-2007, 10:50 AM
  3. Header File Errors...
    By Junior89 in forum C++ Programming
    Replies: 5
    Last Post: 07-08-2007, 12:28 AM
  4. Errors when including winsock2.h
    By skiingwiz in forum Windows Programming
    Replies: 2
    Last Post: 12-27-2002, 07:32 PM
  5. stupid errors i got after compiling!! HELP ME!
    By Leeman_s in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2001, 04:13 PM