Question: C++ 21. Find all the errors in the following code. State a brief reason for each error #include using namespace std: int main() string filename

C++
 C++ 21. Find all the errors in the following code. State

21. Find all the errors in the following code. State a brief reason for each error #include using namespace std: int main() string filename "input.txt ifstream inputFile inputFile.open(filename) : int sum, num 0 while (inputFile num) sum+num cout using namespace std; int main) string stri"data" int x y: cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!