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


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

1 Expert Approved Answer
Step: 1 Unlock

There are no images attache... View full answer

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 Accounting Questions!