what does:

"expected init-declarator before "int"
"expected ','or';' before "int"
"expected constructor, destructor or type conversion before'=' token"
"expected unqualified-id before '=' token"

mean? what do all these compile errors mean?
this is my code with most errors.

int x;
,x = 153;

Should be either

int x = 153;

or

int x;
x = 153;

if you wanted to declare two different variables on one line you could put:

int x,y;

Should be either

int x = 153;

or

int x;
x = 153;

if you wanted to declare two different variables on one line you could put:

int x,y;

The 1st option worked thanks!

you're very welcome. mark the thread as solved if you're all set.

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.