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

Search found 3 matches
CCS Forum Index
Author Message
  Topic: Array element increment?
ahmedzamus

Replies: 5
Views: 7088

PostForum: General CCS C Discussion   Posted: Thu Mar 22, 2007 5:43 pm   Subject: still problem to increment one element
all items is incremented,not only
void main()
{
int8 mydata[6] ;
setup_adc_ports(AN0_VREF_VREF);
setup_adc(ADC_CLOCK_INTERNAL);
setup_psp(PSP_D ...
  Topic: Array element increment?
ahmedzamus

Replies: 5
Views: 7088

PostForum: General CCS C Discussion   Posted: Thu Mar 22, 2007 5:20 pm   Subject: still problem to increment one element
My processor is 18F458
Here is My code :

if(button(PIN_c7, 0, 50, 10, c7, 1))
{
x++;
output_toggle(PIN_b6);
output_toggle(PIN_d0);
...
  Topic: Array element increment?
ahmedzamus

Replies: 5
Views: 7088

PostForum: General CCS C Discussion   Posted: Thu Mar 22, 2007 6:05 am   Subject: Array element increment?
int8 mydata[4];
when I use command mydata[2]++; I got all mydata elemnts incremented not only mydata[2];
What is problem in My code?

My version is 3.236.
Thanks
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group