I m converting old basic program in arduino linguage


after solving many  difference of language between basic , c++  you  can  see above like  example

for  a=0  to 10 step 2  >>>>  for (a=0;2<10;a++) {....

i have  something code you  see under must some  elevation power  and  convert in ...

a[j] =  (w+4*t)^ (d-1)   >>>>>   a[j] = pow (w+4*t,d-1);  (example of conversion)

r([j] =  pow(r[j] + y[k] * x[k], (j - 1));       <<<<<< (this converted code )

but  give  error  -----   expected '{' before '=' token

thank

code: [select]
for  a=0  10 step 2  >>>>  (a=0;2<10;a++) {....nope.

please post code , error messages.
please use code tags.


Arduino Forum > Using Arduino > Programming Questions > I m converting old basic program in arduino linguage


arduino

Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'