CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

make table

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
hubble



Joined: 11 Dec 2006
Posts: 10

View user's profile Send private message Send e-mail

make table
PostPosted: Sat May 31, 2008 3:07 am     Reply with quote

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







PostPosted: Sat May 31, 2008 4:34 am     Reply with quote

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...
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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