Renesas M16C Instrukcja Użytkownika Strona 267

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 294
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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.
Przeglądanie stron 266
1 2 ... 262 263 264 265 266 267 268 269 270 271 272 ... 293 294

Komentarze do niniejszej Instrukcji

Brak uwag