[Linker error] undefined reference to `WinMain@16'
I tried writing following code but it says ''
[Linker error] undefined reference to `WinMain@16'
What should I do??
Code:
#include<iostream>
#include<fstream>
using namespace std;
int main()
{
int count;
char word[30];
char story[20];
}
void countword();
ifstream fin;
fin.open("STORY.TXT");
char word[30];
int count=0;
while(!fin.eof())
{
fin>>word;
if(strcmpi(word,"the")==0)
count++;
}
cout<<"Number of the word in file are "<<count;
fin.close();
system("pause");
}