Logo

Programming-Idioms

History of Idiom 120 > diff from v7 to v8

Edit summary for version 8 by :
[Cpp] Proper imports

Version 7

2016-02-12, 22:54:42

Version 8

2016-02-15, 12:13:53

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
Imports
#include <iostream>
Code
std::cin >> n;
Code
std::cin >> n;