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.
Hi All, I have following struct: struct timedate{ unsigned char sec; // 00 to 59 unsigned char min; // 00 to 59 unsigned char hrs; // 00 to 23 unsigned char date; // 01 to 31 unsigned char month;// 01 to 12 unsigned char year; // 00 to 99 }mystruct={00,00,12,01,01,02}; char mystring[12]; how can i use sprintf() or any other function to put 'timedate' into mystring ?? ---------------------------------------- Why is the following assignment illegai ?? unsigned char mych=1; sbit pin1 = P3^1; pin1 = mych; What i am trying to do is to assign the MSB or LSB of mych to pin1. How can that be done ?? Thankzz && Bye -Rocknmoon
"What you really need is to read a book on C" K&R is, indeed, the definitive reference for the 'C' language; however, as the authors point out, it is not intended to teach you how to program in 'C'. I think what Rock really needs is a book on how to program in 'C'. If his (or his employer's) resources stretch to it, a course on 'C' programming would be even better. Then get K&R!