help can u fix thisfor me
// dang.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <string>
#include <fstream>
usingnamespace std;
int _tmain(int argc, _TCHAR* argv[])
{
string word;
char find[1000];
int count=0;
int i=1;
cout<<"search"
<<"enter word to count:";
cin>> word;
fstream file;
file.open("dang.txt");
if(file.fail()){cout<<"failed to initialize";}
elsewhile(!file.eof())
{
cin>>find[i];// i cannot get all the words one by on in sentence
if(find==word){count=count+1;}
i++;
}
cout << count;
return 0;
}