int row = startRow;
int col = startCol;
do
{
word = word + puzzle[row][col];
if (find(dictionary.begin(), dictionary.end(), word) != dictionary.end())
}
int main()
{
string diction[] = {“this”, “two”, “fat”, “fats”, “at”, “wad”, “ad”, “hat”, “that”,
“his”,“is”,“it”,“ah”} ;
}
1.3
void printDouble(double x)
{
if (x < 0)
{
cout<<“-“;
x = –x;
}
int intPart = floor(x);
}
}
1.4
The general way to do this is to write a procedure with heading
void processFile( String fileName );
which opens fileName, does whatever processing is needed, and then closes it. If a line of the form