есть:#define Darth_Vader 1;#define Jedi(t) #tнадо:#define Who(tt) Jedi(tt) ## ttWho(Darth_Vader) ????такое, что бы выдавал Darth_Vader и 1 (без ковычек)результат: Darth_Vader1
#define Darth_Vader 1;
#define Jedi(t) #t
надо:
#define Who(tt) Jedi(tt) ## tt
Who(Darth_Vader) ????
такое, что бы выдавал Darth_Vader и 1 (без ковычек)
результат: Darth_Vader1
> есть: > #define Darth_Vader 1; > #define Jedi(t) #t > надо: > #define Who(tt) Jedi(tt) ## tt > Who(Darth_Vader) ????> такое, что бы выдавал Darth_Vader и 1 (без ковычек) > результат: Darth_Vader1 #define Darth_Vader() 1#define cat(x, y) x ## y#define xcat(x,y) cat(x, y)#define Who(tt) xcat(tt, tt())Who(Darth_Vader)
#define Darth_Vader() 1#define cat(x, y) x ## y#define xcat(x,y) cat(x, y)#define Who(tt) xcat(tt, tt())Who(Darth_Vader)