answersLogoWhite

0


Best Answer

The most basic input/output operations can be performed with std::cin for input and std::cout for output. For example:

#include<iostream>

int main (void) {

int n;

std::cout << "Enter a number: ";

std::cin >> n;

std::cout << "The value " << n << " was entered!\n";

}

User Avatar

Wiki User

8y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

std::cout << "Hello"; prints Hello cout stands for console output. << is the output operator. Everything in quotes is the text being printed out.

std::cin >> x; stores whatever the user inputs in the variable x. cin stands for console input, >> is the input operator.

You have to write std:: because cin and cout are members of the standard namespace libary. If you write using namespace std; right under your include files you dont have to write std::.

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

Functions, not statements: open/creat/close/read/write.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you make a input and output basic statement in C plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is meant by non inverting amplifier?

There is no such thing as an inverting or a non-inverting op amp.All op amps have both an inverting input and a non-inverting input. Their operation is such that the output will go to whatever value is required to make both inputs be the same. This implies feedback from output to inverting input.


Why terminals of opamp are called as inverting and noninverting?

In an op-amp, an input on the inverting terminal drives the output in the opposite direction, while an input on the non inverting terminal drives the output in the same direction. In a normal closed loop negative feedback configuration, there is feedback from output to inverting input, so that the output becomes a known function of input. So long as you stay within limits, the output will go to whatever value is required to make the inputs be the same.


What is this percentd in C programming what does input and output mean How do I make the solution include decimal?

The %d designation is a printf format specification that says to interpret the next argument as a signed integer and display the results in base 10 decimal. Input and output is the processing of input data and output data by your program. Usually, input is the stdin file, which is processed by scanf, and output is the stdout file, which is processed by printf. To include a decimal point in the output, you need to use a floating point variable and a floating point specification, such as %f.


How do you calculate the mechanical advantage of any machine?

distance over which the force is applied ________________________________ Distance over which the load was moved or MA= Effort Force _________ Load force OR MA= Length of Load arm ____________________X Weight/mass Length of Effort arm


How do you make common base transistor or circuit?

it is one of the configuration of BJT ,which is achieved by making the BASE grounded(i.e common base).Here the emmiter serves as the input and collector as the output.

Related questions

How do you build a model of factory for a school project?

A good start is the input a factory must have (raw materials), a process (what the factory makes/how they make it), and the profitable output the factory sells. One can illustrate this easily given the basic input/output.


Can you make work output of a machine greater then the work input?

No. And you cannot make it greater THAN the input, either.


How do you make an input output table?

You draw a rectangle and then you divide it into to 2 equal parts (split it down the middle). After you do that you label the input side x and the output side y. And now you got an input output chart.


How do you make a sentence of output?

I enjoyed your input into our discussion; now I've my own output to contribute.


What does BIOS stand for in it?

Stands for &quot;Basic Input/Output System.&quot;


What is the different between the input and the output in science?

do you mean science? input is what you start with, output is what you get. for instance to make scrambled eggs, we input milk and eggs (minus the shells!) to a pan, add heat, stir and we get out tasty scrambled eggs. there are many types of input and output.


Can you make the input shaft turn by turning the output shaft?

yes


What changes can a machine make a force?

It can either increase or decrease the output force, as compared to the input force. The output force may also be equal to the input force.


Is touch screen input or output?

Both. There's a touch panel that is used to feed information in to the device (input) and a screen underneath the touch panel to display stuff (output). This makes it to be both input and output.


Full-adder using 4 X 1 multiplexer?

its simple......just you have to make truth table of input and output ......then u will notice that output column can be obtaining by just replacing it by third input or negation of it... in some cases output just hav to connect to one or zero input........for the corresponding output


What two things make up a complete computer system?

input and output?


Is touch screen an output or input?

A touch-screen is an input device - the computer reacts to the choice you make by touching the screen.