[转帖]OR / AND statement
hello,当我使用普通的or / and statements编程,得到一个很古怪的错误。用这行"uint8_t foo = (R_REGISTER | (Register & REGISTER_MASK));",我得到这个错误:parse error before ';' but when i run this lines : uint8_t foo = Register & REGISTER_MASK; uint8_t foo2 = R_REGISTER; foo = foo2 | foo; 然后就没有错误了,我哪里做错了?
回答:
"register" 是关键词——不用把它当作标识符用。
发表时间:2014年8月2日18:56:24