Renesas M16C Manual de usuario Pagina 267

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 294
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 266
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.
Vista de pagina 266
1 2 ... 262 263 264 265 266 267 268 269 270 271 272 ... 293 294

Comentarios a estos manuales

Sin comentarios