Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

Online C Compiler Code Compile Run and Debug C program online Write you... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Statistics For Business & Economics

Authors: David R. Anderson, Dennis J. Sweeney, Thomas A. Williams, Jeffrey D. Camm, James J. Cochran

13th Edition

1305585313, 978-1305585317

More Books

Students also viewed these Accounting questions

Question

Explain, in your own words, what is meant by source inspection.

Answered: 1 week ago

Question

What is Accounting?

Answered: 1 week ago

Question

Define organisation chart

Answered: 1 week ago

Question

What are the advantages of planning ?

Answered: 1 week ago

Question

Explain the factors that determine the degree of decentralisation

Answered: 1 week ago

Question

What Is acidity?

Answered: 1 week ago

Question

What would your life be like without perceptual constancy?

Answered: 1 week ago