answersLogoWhite

0


Best Answer

The standard console input stream, std::cin.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the standard stream that you read input from?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is meant by input stream?

An input stream is a character sequence device or buffer from which input can be gathered. The standard input stream is usually a keyboard, data file or the output stream from another program. The user of the program can normally decide where standard input may be redirected from when launching the program, typically defaulting to the keyboard.


Why do you use scanf in c?

To read input from standard input.


What is the use of printf and scanf function?

Printf prints something to the standard output stream, and scanf inputs something from the standard input stream.


C plus plus reading and writing a file?

Use an input file stream (ifstream) to read from a file and an output file stream (ofstream) to write to a file. Both can be found in the <fstream> standard library header.


Why operator can only read one word at a time from an input stream?

tang inah nyoh


How can you read string in C language?

You mean read from file/standard input? With function fgets.


Write a program that prompts the user to input a positive integer It should then output a message indicating whether the number is aprime or not?

Output a prompt.Either:Read from standard input (std::cin) to an integer.Or:Read a line from standard input (std::getline()) to a string.Create a string stream (std::stringstream) to read the string.Read from the string stream to an integer.For each integer from 2 to half the entered integer:If the entered integer is divisible by the current integer:The number is not prime.Exit the program.The number is prime.Exit the program.


What Linux command stores standard input into memory?

read (shell builtin command)


What are the limitations of getchar and scanf functions for strings?

cause getchar only read a character and scanf read only word before first space but not other words and letters.


How do you use get line function in c plus plus?

string s; istream::getline(std::cin, s ); In the above example, s will contain whatever data is extracted from the standard input stream, as a null-terminated string. int x; istream::getline( std::cin, x ); In the above example, x will be non-zero if the standard input stream has a non-zero value. If the input stream is non-numeric, x will be zero.


How do you write a program that takes a list of all positive integers from input and counts as the integers are input?

// create an BufferedReader from the standard input stream BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String currentLine = ""; int total = 0; // read integers System.out.print("Input an integer: "); while (!(currentLine = in.readLine()).equals("")) { int input = 0; try { input = Integer.valueOf(currentLine); total += input; } catch (final NumberFormatException ex) { System.out.println("That was not an integer."); } System.out.print("Input an integer: "); }


What stream perform conversion on another stream?

input