1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Vesna [10]
3 years ago
13

Use an ifstream object named indata to read the first three integers from a file called lottowins and write each number to stand

ard output, on a line by itself. Assume that an ifstream object named indata has already been declared. Write code that uses the indata object to open a file named "lottowins". Then, read the first three integers from the file and write each number to standard output, on a line by itself. Last, close the file.
Computers and Technology
1 answer:
Gemiola [76]3 years ago
4 0

Answer:

int x;

indata.open("lottowins");

indata >> x;

cout << x << endl;

indata >> x;

cout << x << endl;

indata >> x;

cout << x << endl;

indata.close();

You might be interested in
Which of these is a way of making applications less vulnerable to hacking?
Alecsey [184]
(First one )
---------------------
7 0
3 years ago
Read 2 more answers
Your friend is applying for a job at your company. She asks you to recommend her. She wants you to tell your boss that you have
Gekata [30.6K]
I think you should tell her you cannot lie about working with her
7 0
3 years ago
five pros and cons of online learning (this is actually for a paper for my computer class please don't report me)
Travka [436]

Answer:

pros:

tons of curriculum

more academic resources

work at your own pace

endless ideas for projects

delve deeper into topics you enjoy, instead of reading a boring textbook.

- you can do cons yourself, you can do it!

     

\

7 0
3 years ago
What should an administrator use to more easily assign database access permissions to multiple users?
Kruka [31]

Answer:

to allow administrators to assign rights and permissions to multiple users

Explanation:

8 0
3 years ago
4.Regular maintenance of equipment is an important and necessary activity. 5.Uncheck with your equipment manufacturer for their
Morgarella [4.7K]

Answer:

What's the output of a system modeled by the function ƒ(x) = x5 – x4 + 9 at x = 2?

Please Help

A)

24

What's the output of a system modeled by the function ƒ(x) = x5 – x4 + 9 at x = 2?

Please Help

A)

24

6 0
3 years ago
Other questions:
  • Cissy looks up a number in the phone book, pushes the book away, and then dials the number. why does she discourage any interrup
    8·2 answers
  • What is an administrator?
    8·1 answer
  • Count characters Write a program whose input is a string which contains a character and a phrase, and whose output indicates the
    6·1 answer
  • A programmer writing code in class Point attempts to override the following inherited method:public boolean equals( Object o ) {
    12·1 answer
  • The tags are always enclosed within a pair of<br>(a) curly<br>(b) square<br>(©) angular​
    6·1 answer
  • Topic: Graphs.1.) Bob loves foreign languages and wants to plan his courseschedule for the following years. He is interested in
    8·1 answer
  • Who is the monst important person and why
    11·1 answer
  • Which web source citations are formatted correctly? check all that apply.
    14·1 answer
  • Can yall help me pls
    12·1 answer
  • A _____ model is one that is automatically adjusted based on changing relationships among variables.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!