Exploding Garrmondo Weiner Interactive Swiss Army Penis

Exploding Garrmondo Weiner Interactive Swiss Army Penis (http://www.gamingforce.org/forums/index.php)
-   Help Desk (http://www.gamingforce.org/forums/forumdisplay.php?f=36)
-   -   Why won't this piece of C++ code compile? (http://www.gamingforce.org/forums/showthread.php?t=34944)

KrazyTaco Oct 19, 2008 01:48 PM

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.

Jurassic Park Chocolate Raptor Oct 19, 2008 01:52 PM

Wrong closing brackets there, Charlie. The error you're getting explains that.

OmagnusPrime Oct 19, 2008 02:04 PM

^ 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.

KrazyTaco Oct 19, 2008 02:35 PM

Doh, like I said, really stupid >_>

Thanks.


All times are GMT -5. The time now is 02:30 AM.

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