Please help: Error: Expected Primary-Expression

Hello guys. I am having this strange error while making a game in SDl2/codeblocks.
Error is related to c++ programming and not to SDL library or anything.

Here is a picture of program and error:

http://prntscr.com/9kc8l3

Second similar but not exactly the same error occurs here like this:

http://prntscr.com/9kchvi

Neither me or my friends could find out why the error occured so I am desperate for help. Thank you in advance and have a nice day :)

> Here is a picture of program
a picture...

struct p1[6][8]
¿what do you think is `p1'?
Last edited on
So if I understood correctly, I should just make struct Polje [6][8] and use Polje[][] instead of p1[][];? I tried this and I get 2 extra errors of the same type.. Can you be more specific?
Thank you
1
2
3
type name;
name.method( args );
name.member = foo;


1
2
struct Polje p1[6][8];
if( p1[y][x].kame )



for your second... picture
spawnKamen( p1 );
Thank you.
Topic archived. No new replies allowed.