Logo

Programming-Idioms

History of Idiom 120 > diff from v5 to v6

Edit summary for version 6 by :
New Cpp implementation by user [Roboticus]

Version 5

2016-02-12, 11:48:57

Version 6

2016-02-12, 11:49:59

Idiom #120 Read integer from stdin

Read an integer value from the standard input into variable n.

Idiom #120 Read integer from stdin

Read an integer value from the standard input into variable n.

Imports
iostream
Code
std::cin >> n;