C/C++
#define

#define , . #define .

#define _ _

, _, _. , . , _ .

, 1 TRUE 0 FALSE, tdef ine.

#define TRUE 1
#define FALSE 0

1 0 , TRUE FALSE .


, , . , . , , , . ,

ABS(1O-20)

10-20<0 ? -10-20 : 10-20.

, , . , " ", , , .


#define ( ) : . , , . , , . , , , , , , .

#include <iostream>
using namespace std;

#define ABS(a) ((a)<0 ? -(a) : (a))

int main()
{
	cout << "abs of -1 and 1: " << ABS(-l) << ' ' << ABS(1);
	
	return 0;
}

-1 1.






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



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