I keep getting a strange syntax error that i've never seen before, and I'm not sure what's the problem with it. Can I get some extra eyes to help me figure out what the problem is?
the error reads: error: expected declaration or statement at end of input the bold line is what it highlights as the error.
void draw(int deck[SIZE])
{
int i;
for(i = 0; i < 5; i++)
{
cards;
putchar('\n');
}
void cards()
{
char suits[4][9] =
{
"Hearts",
"Diamonds",
"Clubs",
"Spades"};
for(i=0; i<SIZE; i++)
{
if(i%13 == 0 || i%13 == 10 || i%13 == 11 || i%13 == 12)
printf("%s ", facecheck(i%13) );
else printf("%d ", i%13+1);
printf("of %s \n", suits[i/13]);
};
**}**