Answer:last day of school
Explanation:
sorry, im looking for it as well
Answer:
The missing part is
if ( !inFile )
Explanation:
The full codes are as follows:
- ifstream inFile;
- inFile.open("myfile.dat");
- if ( !inFile )
- {
- cout << "Cannot open input file." << endl;
- return 1;
- }
- return 0;
Given that inFile is an ifstream object. When inFile is used to open "myfile.data", there will be possibility where myfile.dat is not available. If so, !inFile will be interpolated as true in the if condition and generate the message "Cannot open input file". This is one very simple way to check if the file exist when we try to read it from our program.
<link> tag
The <link> tag is most often used to link to external style sheets. The <link> element is an empty element, it contains attributes only.