Want this question answered?
In TNSDL (Temporal Numerical Stream Description Language), the "input" statement is used to specify the input streams of data that the program will operate on. These input streams can be temporal or non-temporal data sources such as sensors, files, or user input. The input statement helps define the data sources that will be processed by the TNSDL program.
In a computer program, a legal input is something that can be put into a program and it will work. An illegal input may crash the program.
without understanding the program giving a input
create a program that can input 100 names
A robust program is a program that will accept junk input and not crash. Example: a program that accepts "pancakes" for a date input and pops up a error box or just uses a date input so that this does not happen is a robust program.
input output bound program is a program (or process in precise way), which spends most of time allocated to it for execution, on input/output devices and need very small CPU time for it.
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.
is called a priming input
#include<iostream> #include<sstream> int main() { unsigned num; while (true) { std::cout << "Enter a number: "; std::string input; std::cin >> input; std::stringstream ss; ss << input; if (ss>>num) break; std::cerr << "Invalid input.\n"; } for (int i=0; i<num; ++i) std::cout << "Well done!\n"; }
A 12 digit number.
The execution path of a program can only be affected by the program input. That is, if you change the input, you can alter the way the program behaves (just as changing the arguments to a function can alter the behaviour of the function). Typically you will alter the input via the command line, but you can also alter the input at any time during program execution. Redirecting input via the command line can be achieved by extracting the input from a file (via std::cin) or by implementing command line switches in your main function, or through a combination of the two.
Input