Thursday, February 13, 2020

CPP: Simple data type conversion

Convert string to int:


To build:
$: clang++ dataconv.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...