I am getting the following error: Multiple definition of `main'
I have created a new project, there are two c++ files in it:
File 1
#include <iostream>
using namespace std;
int main()
{
cout<<"Hello World";
//fflush(stdin);
//getchar();
return 0;
}
File 2
#include <iostream>
using namespace std;
int main()
{
cout<<"Demo Program";
return 0;
}
When I press Build project and Run, I get error. How do I run these files?
See Question&Answers more detail:os