I get the following error on the first line of my array...

" syntax error before `}' token "

My eyes are about to fall out of my skull. Can someone take a look for me, everything seems to be fine, but maybe I'm blind.


Here is the code in question...

int bin[26][5]={
                  {0,0,0,0,0},(0,0,0,0,1},{0,0,0,1,0},{0,0,0,1,1},{0,0,1,0,0},{0,0,1,0,1},
                  {0,0,1,1,0},{0,0,1,1,1},{0,1,0,0,0},{0,1,0,0,1},{0,1,0,1,0},{0,1,0,1,1},
                  {0,1,1,0,0},{0,1,1,0,1},{0,1,1,1,0},{0,1,1,1,1},{1,0,0,0,0},{1,0,0,0,1},
                  {1,0,0,1,0},{1,0,0,1,1},{1,0,1,0,0},{1,0,1,0,1},{1,0,1,1,0},{1,0,1,1,1},
                  {1,1,0,0,0},{1,1,0,0,1}
                  };

I get the following error on the first line of my array...

" syntax error before `}' token "

My eyes are about to fall out of my skull. Can someone take a look for me, everything seems to be fine, but maybe I'm blind.


Here is the code in question...

int bin[26][5]={
                  {0,0,0,0,0},(0,0,0,0,1},{0,0,0,1,0},{0,0,0,1,1},{0,0,1,0,0},{0,0,1,0,1},
                  {0,0,1,1,0},{0,0,1,1,1},{0,1,0,0,0},{0,1,0,0,1},{0,1,0,1,0},{0,1,0,1,1},
                  {0,1,1,0,0},{0,1,1,0,1},{0,1,1,1,0},{0,1,1,1,1},{1,0,0,0,0},{1,0,0,0,1},
                  {1,0,0,1,0},{1,0,0,1,1},{1,0,1,0,0},{1,0,1,0,1},{1,0,1,1,0},{1,0,1,1,1},
                  {1,1,0,0,0},{1,1,0,0,1}
                  };

The thing marked in red in a round brace which should be replced by curly braces.

Hope it helped, bye.

Thank you so much! It worked!:mrgreen:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.