We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hello,
i have a simple little structure like this
unsigned char index;
struct tag { unsigned char a[20]; unsigned char b[20]; unsigned char c };
then i declare a pointer like this
struct tag TAG_PTR;
it seems that TAG_PTR->c; is valid and generates no errors
however TAG_PTR->a[index]; generated BAD OPPERAND TYPE error
and TAG_PTR->a[10];(or any other constant value) and TAG_PTR->a; generate no errors.
obviously using the index variable is the problem, but im not sure how to work around it. Any help would be greatly appreciated.
And also, I got a lot of helps from Tamir, so I believe that Tamir's posts are very helpful.
Sorry for posting something stupid.
"Sorry for posting something stupid."
I would not call it "stupid", but merely unfortunate consideration to the writings of "<whatever> Zeusti", recognized by most as a troll here. A search for it (Zeusti) should give you enough pause in the future to avoid entertaining it.
Hi Dan,
I seldom read C51 threads, so maybe I missed something. (I read this thread because it looks like an opportunity to enhance my C programming skill.)
If you say so, "<whatever> Zeusti", recognized by most as a troll here. then I will re-consider my thoughts.
But it would still be nice that Zeusti can change his way treating Tamir.
it is not important where you started
it is important where you decide to go
Yo're freind forever.
Zeusti.
end program. { good buy }