Renesas M16C PC4701 用户手册

下载
页码 294
 
10 C/C++ Expressions 
 
255 
 
10.1.6 Sign Inversion 
Sign inversion is indicated by the minus sign (-). You can only specify "-immediate_value" or 
"-variable_name". No sign inversion is performed if you specify 2 (or any even number of) minus signs. 
Notes 
• 
There is no support currently for sign inversion of floating point numbers. 
 
10.1.7 Member Reference Using Dot Operator 
You can only use "variable_name.member_name" for checking the members of structures and unions 
using the dot operator. 
Example: 
class T { 
public: 
int member1; 
char member2; 
}; 
class T t_cls; 
class T *pt_cls = &t_cls; 
 
In this case, t_cls.member1, (*pt_cls).member2 correctly checks the members. 
10.1.8 Member Reference Using Arrow 
You can only use "variable_name->member_name" for checking the members of structures and unions 
using the arrow. 
Example: 
class T { 
public: 
int member1; 
char member2; 
}; 
class T t_cls; 
class T *pt_cls = &t_cls; 
 
In this case, (&t_cls)->member1, pt_cls->member2 correctly checks the members.