Wednesday, March 04, 2020

CPP: Basic usage of std::cin for getting input from stdin

CPP: Basic usage of std::cin for getting input from stdin

Basic usage of getting data from standard input (keyboard normally) using std::cin.


To build:
$: clang++ getinput.cpp

Run it:
$: ./a.out

No comments:

CPP Quick Guide

Basics Hello world User input While loop If statement For loop Switch statement Read file using ifstream Write to a file using ofstr...