c preprocessor - Defining Binary Macros in C++ -
Can someone explain why the following error occurs:
#define bla "\ XA" four A [2] = {0}; Memcopy (A, BLA, 1); // a [0] = 0x0a & lt; - right // a [1] = bla; // '=': 'const char [2]' to 'four' can not be converted
thanks,
rm
Try:
#define bla '\ xA'
However this memcpy
will stop working.
Comments
Post a Comment