simple macro not working???
Can anybody tell me why this won't compile. I am trying to understand who macro's work and this seems about as simple as it gets.
Code:
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
#define MINIMUM2 (x,y) if (x < y) \
lowestNumber = x; \
else \
lowestNumber = y;
#define NUM1 = 5
#define NUM2 = 10
//***************************************************
//MAIN FUNCTION
int main()
{
double lowestNumber = 0;
MINIMUM2(NUM1, NUM2);
cout << "Lowest number = " << lowestNumber;
return 0;
}