#include %26lt;iostream%26gt;
#include %26lt;string%26gt;
using namespace std;
bool Check (string PossibleWord,string Scrambled);//{}
int main()
{
string Scrambled ="elhlo" ;
int Found;
string PossibleWord[]={"will","check","it","aga...
// Search PossibleWord for the matching length of Scrambled;
for (int i=0;i%26lt;sizeof(PossibleWord);i++)
if (Scrambled.size()==PossibleWord[i].size(...
//then look for the first one which has all matching character to Scrambled
if(Check(PossibleWord[i],Scrambled) )
{cout%26lt;%26lt; "the word is " %26lt;%26lt; PossibleWord[i]%26lt;%26lt;endl;exit(111);}
cout%26lt;%26lt; "the word is not found"%26lt;%26lt;endl;
return 0;
}
can you help fix the errors which i have or can you give a explanation of what else i need to do because the program is not working as it is now. Please be specific because i am a beginer thank for your help and time
Need help in c++?
Are you asking for an implementation of the check method?
You need to give more info:
- you asked this same question yesterday, both times you have 4 lines of code that are being truncated, can you break them up so that they all display?
- this is a homework question, what have you tried if anything (you were given several issues to fix yesterday, but I see you did not make the changes)?
- does the existing code compile?
Reply:May be you can search in project assignment help website like http://askexpert.info/
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment