Menu

[solved] – Question 70556

Fill in the following code to crash the program if the file fails to open

#include <iostream>
#include <fstream>
#include<__________>

using namespace std;

int main(){

ifstream.inf;

inf.open(“input.txt”);

if(!inf){

cout << “Failed to open file” << endl;
___________(_________) // type either true or false in the parenthesis which ever one would make the program crash
}

return 0;

}

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *