input.open("a.dat");
if (input.fail())
{
cout<<"Unable to open a file \n";
exit(1);
}//end if
while(input>>alp>>index)
{//write to Usecase usecase
Alpha[a].setkeyword(keyword);
Alpha[a].setindex2(index);
a++;
}//end while
input.close();
cout<<"Please Insert The keyword:";
int position,py;
char keyPrompt[100];
int i=0;
char c;
cin>>keyPrompt;
for(py=0; py<a; py++)
{
if(strcmp(keyPrompt[0],Alpha[py].getalphabet())==0)
{
position=py;
break;
} //end if
if(py==(a-1))
{
position=0;
}//end if
}//end for
i want to compare the input string array number 0 (the first letter) with the array data that got from that .dat file, but it got error.....
cannot convert "int" to 'const *char';
how can i solve it?