--- In [email protected], "johmgolden051500" <[EMAIL PROTECTED]>
wrote:
> --- In [email protected], "Nico Heinze" <grollnar@> wrote:
> >
> > --- In [email protected], "johmgolden051500" <johns_goldens@>
> > wrote:
> > >
> > > --- In [email protected], "John Monte" <johns_goldens@>
> wrote:
> > > Ok if you type in the following
> > > void main ()
> > > {
> > > bit
> > > }
> > > The word bit will turn blue which indicate it is some type
> > > of data type. I have one book that it shows is as bit 1 bit
> > > long and the comments reads it as boolean value but it does
> > > not shows any example of it. What I am looking to do is
> > > the following.
> > > unsigned char i;
> > > unsigned char flag; // using the varible each flag bit
> > > /* to indicate a flag */
<snip>
> The ; was a type error when I wrote this. I have to write in C
> because I am using a program from HI-TEC which is use for
> writing C to the mircochip. I have always wriiten in assembly
> code but the new software requires writing in C. I have book
> on C++ but some of the code will not work in the HI-TECH.
C++ is not C, and it is not even a superset of C. They are two
different languages, as e.g. Thomas has pointed out numerous times.
As you're stuck with C, I recommend The ANSI C Programming Language by
Brian Kernighan and Dennis Ritchie ("the K&R", the "bible" of C
programming); this will give you a thorough introduction into ANSI C
in general.
Then go forth with your compiler documentation and try to find out how
to do certain things in this compiler.
If I understand you correctly, the "bit" command is specific to the
HI-TEC microchip. If so, you would have saved us all a lot of time and
effort if you would have mentioned this right from the start. Don't
take this personal, I just hope that some newbie who reads this text
will keep this in mind and in the future will tell us right from the
start what environment they work with. Sort of a try to educate group
members.
Regards,
Nico