Stringizing Operator:
#define Strings(X) cout<<#x
calling:
Strings( hai );
Replaces as:
"Hai"
output:
Hai
Charizing Operator:
#define Chars(X) #@X
calling:
a = Chars( b );
Replaces as:
'b'
Token-Pasting Operator:
#define tokens(X) cout< a##x
calling:
int ab=10;
tokens( b );
Replaces as:
ab
No comments:
Post a Comment