How can it has a output

Assignment Help C/C++ Programming
Reference no: EM131103294

Here is a struct clarification:

struct Target {

std::ostream &out;

std:: string name;

Target(const std::string &name, std ::ostream &out = std::cout;

bool isLeaf() const;
....
};

I wonder what is the field "out" use for? Instructors comment it "// stream where Target will prints its output". Target is not a function, how can it has a output? I also confused about "std::ostream &out = std::cout", don't understand what is it doing.

Reference no: EM131103294

Questions Cloud

Computer network security for a home : Assignment No. 1: Computer Network Security for a Home/Small scale Network.Learning outcomes:1. Identify the various threats and risks in a small scale network2. Describe and compare a number of different techniques to secure a network3. Analyse, eva..
Exceeded market demand : If you were an operations manager, what would you do if market demand exceeded the production capacity of your manufacturing facility? What action would you take if the production capacity of your manufacturing facility exceeded market demand?
How did what you learned from the interview : How might you be able to use what you learned from the interview in your future work with children and families? (These might be specific tips and strategies for helping a child who is learning English, or a heightened awareness of the problems an..
Strategic controls and financial controls : What are the differences between strategic controls and financial controls, and how do they relate to organizational structure? What is the importance of these differences?
How can it has a output : I wonder what is the field "out" use for? Instructors comment it "// stream where Target will prints its output". Target is not a function, how can it has a output? I also confused about "std::ostream &out = std::cout", don't understand what is it..
Different types of coverages to an insured : Please remember that you must do your own work. Any plagiarism will result in a grade of zero for all students involved. Please use your own words even if you are using the textbook for answers. Always provide a citation when a reference is used.
Summarize sympatric speciation and polyploidy methods : Summarize the following three methods that could produce a new species from an existing species and provide examples, in 700 to 1050 words. Include a summary and specific examples:
Potential misuse of reporting discretion : From the perspective of a minority investor in the company's shares, which methods provide better information about the economic performance of Fiat? Summarize the red flags for potential misuse of reporting discretion.
Internet research on the topic of electronic brochures : Student will conduct Internet research on the topic of electronic brochures and brochure development. Student will share various websites found on these topics in the weekly discussion board area.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd