Page 1 of 1

Syntax = C++?

PostPosted: Fri Jun 13, 2014 11:30 am
by HTel
I'm just getting into C++ and I would like to know about the arduino library. I could not find the page any where. My simple question is the syntax for if and for and all those other commands other than those commands like "cout" and "cin", are they the same in arduino?

Re: Syntax = C++?

PostPosted: Fri Jun 13, 2014 1:01 pm
by rodot
Gamebuino's code is compiled using avr-gcc, wich doesn't provide all the functions from C/C++.
Take a look at the Arduino Reference and the Gamebuino Reference to know which functions are available.

Re: Syntax = C++?

PostPosted: Fri Jun 13, 2014 1:28 pm
by adekto
also just to point out cout and cin are part of standard library wich are more a thing for comand line stuff we dont realy have that,
but u can use this to display text on the lcd
Code: Select all
 gb.display.print("text");

u can find this and more in the gamebuino reference

Re: Syntax = C++?

PostPosted: Fri Jun 13, 2014 3:19 pm
by HTel
Thanks, I already saw the gamebuino library, but my search engine could not find "arduino" at all. The link connected, at least. I kinda did not know where to go so if the syntax for Arduino is like C++, I am ready to start making programs.