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