C/C++
# ##

C++ : # ##. #define.

# , , , . , , .

#include <iostream>
using namespace std;

#define mkstr(s) # s

int main()
{
	cout < mkstr(  C++);

	return 0;
}

cout << mkstr(  C++);

cout << "  C++";.

## . ,

#include <iostream>
using namespace std;

#define concat(a, b) a ## b

int main()
{
	int xy = 10;
	
	cout < concat(x, y);
	
	return 0;
}

cout << concat(x, );

cout << xy;

, , . , , , .






Нет комментариев.



Оставить комментарий:
Ваше Имя:
Email:
Антибот: *  
Ваш комментарий: