Gamingforce Interactive Forums
85239 35211

Go Back   Exploding Garrmondo Weiner Interactive Swiss Army Penis > Garrmondo Network > Help Desk
Register FAQ GFWiki Community Donate Arcade ChocoJournal Calendar

Notices

Welcome to the Exploding Garrmondo Weiner Interactive Swiss Army Penis.
GFF is a community of gaming and music enthusiasts. We have a team of dedicated moderators, constant member-organized activities, and plenty of custom features, including our unique journal system. If this is your first visit, be sure to check out the FAQ or our GFWiki. You will have to register before you can post. Membership is completely free (and gets rid of the pesky advertisement unit underneath this message).


Why won't this piece of C++ code compile?
Closed Thread
 
Thread Tools
KrazyTaco
urrrrrr


Member 753

Level 13.94

Mar 2006


Old Oct 19, 2008, 01:48 PM #1 of 4
Why won't this piece of C++ code compile?

Code:
#include <iostream>
#include <iomanip>
using namespace std;

int main()
{         
    int c_game[3]    = {8, 2, 9};
    int w_game[3]   = {7, 4, 2);
    int m_game[3]   = {3, 1, 7);

return (0);
}
This seems really stupid because I just finished a program involving arrays not too long ago, and had no problems with it. When I try compiling this though, the compiler returns
Quote:
8 expected `}' before ')' token
and
Quote:
8 expected `,' or `;' before ')' token
The compiler repeats the same problems for the next line as well.

Jam it back in, in the dark.
Jurassic Park Chocolate Raptor
Reactor online.
Sensors online.
Weapons online.
All systems nominal.



Member 80

Level 56.91

Mar 2006


Old Oct 19, 2008, 01:52 PM Local time: Oct 19, 2008, 12:52 PM #2 of 4
Wrong closing brackets there, Charlie. The error you're getting explains that.

There's nowhere I can't reach.
OmagnusPrime
Flipping cups since 2014


Member 423

Level 39.65

Mar 2006


Old Oct 19, 2008, 02:04 PM Local time: Oct 19, 2008, 07:04 PM #3 of 4
^ What the man above said. Whilst C++ compiler errors are rarely the most helpful things in the world, actually reading them in this case would have pointed you straight to the issue.

How ya doing, buddy?
KrazyTaco
urrrrrr


Member 753

Level 13.94

Mar 2006


Old Oct 19, 2008, 02:35 PM #4 of 4
Doh, like I said, really stupid >_>

Thanks.

I am a dolphin, do you want me on your body?
Closed Thread


Exploding Garrmondo Weiner Interactive Swiss Army Penis > Garrmondo Network > Help Desk > Why won't this piece of C++ code compile?

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[News] One Piece get One More Chance: Now Licensed by Funimation Soldier Media Centre 27 Dec 3, 2007 11:14 AM
Passion from Eminence hsimons General Game Music Discussion 14 Jun 6, 2007 08:18 PM


All times are GMT -5. The time now is 07:42 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.