View previous topic :: View next topic |
Author |
Message |
hubble
Joined: 11 Dec 2006 Posts: 10
|
make table |
Posted: Sat May 31, 2008 3:07 am |
|
|
Can i write the code like as BASCOM AVR:
.....
.....
Dim B1 As Byte , I As Integer
B1 = Lookup(2 , Dta)
Print B1 ' Prints 3 (zero based)
I = Lookup(0 , Dta2) ' print 1000
Print I
End
Dta:
Data 1 , 2 , 3 , 4 , 5
Dta2:
Data 1000% , 2000%
.....
.....
Help me please!!! |
|
|
Ttelmah Guest
|
|
Posted: Sat May 31, 2008 4:34 am |
|
|
Go and get a simple C primer.
Code: |
const int8 dta={1 , 2 , 3 , 4 , 5 };
const int16 dta2={1000, 2000};
int8 B1;
int16 I;
B1 = Dta[2];
Printf("%d\n", B1);
I = Dta2[0];
printf("%Ld\n",I);
|
Except for the use of the 'const' keyword, this is all standard C. To have a 'hope' of using the language, you need some basic reading, before asking questions... |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|