Go Down

Topic: variable error (Read 724 times) previous topic - next topic

i_luv_arduino

I got an error about classifing a variable I wrote it like this:
Code: [Select]

x = 0;

pushButton = 0;;

What is wrong?

Arrch

You really can't see the double semicolon?

AWOL

#2
Jan 22, 2013, 09:19 pm Last Edit: Jan 22, 2013, 09:22 pm by AWOL Reason: 1
Two semicolons is not a problem.
No data type is a problem.

OP, it is best to post all your code.

Quote
I got an error about classifing a variable

But you couldn't be bothered to show it to us?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

i_luv_arduino

The double semi colons was a typo

Arrch


Two semicolons is not a problem.

Good point, although it still bugs me.

i_luv_arduino

It was a typo, but is there any other problems?

Arrch


It was a typo, but is there any other problems?

Yes, we can't see all of the code.

Nick Gammon


I got an error about classifing a variable I wrote it like this:
...
What is wrong?


What is classifing a variable? What is the error? Where is your code?

Read this before posting a programming question
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

i_luv_arduino

my code is too long to post here. By classifing a variable I mean how do I write the variable part properly.
And the error is "expected constructor, destructor or type conversion before '=' token" and it highlights the "x = 0;" part

LarryD

The way you have it in your schematic isn't the same as how you have it wired up!

i_luv_arduino

Thanks that worked!

AWOL

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Go Up