containership
?#include <iostream>
using namespace std;
#define MIN(a,b) (((a)<(b)) ? a : b)
int main()
{
float i, j;
i = 100.1;
j = 100.01;
cout <<"The minimum is"<< MIN(i, j)<< endl;
return 0;
}
This is for Tests
void main()
{
}
#include <iostream>
using namespace std;
int main()
{
cout<< "Value of __LINE__ : " << __LINE__ << endl;
cout<< "Value of __FILE__ : " << __FILE__ << endl;
cout<< "Value of __DATE__ : " << __DATE__ << endl;
cout<< "Value of __TIME__ : " << __TIME__ << endl;
return 0;
}
#include <iostream.h>
using namespace std;
#define SquareOf(x) x * x
int main()
{
int x;
cout<< SquareOf(x + 4);
return 0;
}
#include <iostream.h>
using namespace std;
#define PR(id) cout << id;
int main()
{
int i = 10;
PR(i);
return 0;
}
This is for Tests
#include <iostream.h>
using namespace std;
#define MAX 10
int main()
{
int num;
num = ++MAX;
cout << num;
return 0;
}
macro
?#include <iostream>
using namespace std;
int main()
{
int *p = new int;
delete p;
delete p;
cout<<"Done";
return 0;
}
#include <iostream>
using namespace std;
void f()
{
static int i = 3;
cout << (i);
if(--i) f();
}
int main()
{
f();
return 0;
}