Renesas Emulator Debugger M16C PC4701 Uživatelský manuál Strana 269

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 296
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 268
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.
Zobrazit stránku 268
1 2 ... 264 265 266 267 268 269 270 271 272 273 274 ... 295 296

Komentáře k této Příručce

Žádné komentáře