Question: Using online gdb do the following code, after its typed create a datafile and make sure the output is correct. tinclude ciostream> Binclude einclude dinclude
Using online gdb do the following code, after its typed create a datafile and make sure the output is correct.

tinclude ciostream> Binclude einclude dinclude Loading Libraries Allows data access from files using namespace std; ifstream datafile; Creates file object named datafile int main) datafile.open("Text.txt"); + Opens a datafile named Text.bxt for input string name; int num = 0, total = 0; cout < < endl < < endl; while (Idatafile.eof0) Checks to see if at the end of datafile Reads data from datafile >> name >> num; total += num; cout < < right
Step by Step Solution
3.31 Rating (154 Votes )
There are 3 Steps involved in it
There are no images attache... View full answer
Get step-by-step solutions from verified subject matter experts
