Question: The following program has 4 errors in it. Examine the program and list the errors you find below. For each error, circle or list
The following program has 4 errors in it. Examine the program and list the errors you find below. For each error, circle or list the incorrect code and write down what you would do to fix it. #include #include #include using namespace std; void get nun_chars(ifstreams 1); int main() { ifstream infile; string filename; int count; cout < < "Please enter the input file name: ": cin >>filename; infile.open(filename); count get_num_chars(infile); cout < < "There were " < < count < < " characters in the file." < < endl; infile.close(); return 0; void get_num_chars(ifstreas 1) int a = 0; int b = 0; while(i >> a) { b++; } return a; Activ
Step by Step Solution
There are 3 Steps involved in it
Based on the provided program Ive identified the following errors 1 Error Missing closing angle brac... View full answer
Get step-by-step solutions from verified subject matter experts
