hello !
i have a probelm which i'm unable to understand.i'm programming in Dev-C++.when i'm compiling the programm i've written it's showing 'compiled successfully' without any error message,but when i want to run it is giving the message 'project not compiled' and hence not running the program.I can't understand what's wrong. Can anyone please help me?
e.g. this program:
#include <iostream>
#include <stdlib.h>
using namespace std;
int main()
{
char s;
#define PRODUKT(N,M,VARIABLE) \
{ \
VARIABLE = N; \
for (unsigned int i = N + 1; i <= M; ++i) \
VARIABLE *= i; \
}
unsigned int ergebnis;
PRODUKT(3,5,ergebnis);
cout << ergebnis << endl;
PRODUKT(3,9,ergebnis);
cout << ergebnis << endl;
system("PAUSE");
cin >> s;
return 0;
}
one more doubt: is it correct if i read the value ( cin >> s)
after system("pause")
?
thank you.