Guess the Error!

Sharky Forums


Results 1 to 4 of 4

Thread: Guess the Error!

  1. #1
    Texan Dragon Moderator Galen of Edgewood's Avatar
    Join Date
    Sep 2000
    Location
    Ft Irwin, CA
    Posts
    5,602

    Cool Guess the Error!

    Okay, the language is C++.

    int mSize[2,6];

    What's the error?

    ------------------
    Baby of Edgewood @ birth (03/09/01, 12:34am)
    6 lbs 7 ounces
    18 inches long
    perfectly healthy
    Dragon of the OC Crusaders

    Break the rules and you're snack food for this dragon...

  2. #2
    Stormtrooper Mod Pinky's Avatar
    Join Date
    Oct 2000
    Posts
    2,971

    Post

    Originally posted by Galen of Edgewood:
    Okay, the language is C++.

    int mSize[2,6];

    What's the error?

    You can't initialize an array like that. If you want it to be two dimensional 2x6, you would do this:

    int mSize[2][6];

    Do I win a prize? hehe j/k

    ------------------
    Proofread carefully to see if you any words out.

    [the man] [the specs] [the fake SBC ID]

    Proofread carefully to see if you any words out.

    [the rules]

  3. #3
    Katana Wielding Moderator Klashe's Avatar
    Join Date
    Sep 2000
    Location
    IL, USA
    Posts
    3,306

    Post

    Originally posted by Galen of Edgewood:
    Okay, the language is C++.

    int mSize[2,6];

    What's the error?


    Having bugs with your code, Galen?


    ------------------
    Sharky Quote of the Moment:

    Lucifer696 - "(I)Drink only coffee coke or beer... water is bad because fish abuse emselves in it "

  4. #4
    Ultra Great White Shark!! richardginn's Avatar
    Join Date
    Feb 2001
    Posts
    16,118

    Post

    any more problems galen.

    ------------------
    www.geocities.com/richardginn/templatehtml -Come visit the Template HTML homepage
    www.myeducational plan.com-come see my plan to fix the USA educational system. I hope this is sig legal. Major Site Design Update on July 18, 2006. On June 18, 2009 passed the 10,000 post mark. December 24, 2009: Major Theme change and more....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •