Skip to main content

One post tagged with "CS106L"

View All Tags

C++ Beginner's Guide: Get an Integer from a String Using string stream

· 6 min read

During the CS 106L course, I learned a lot of C++ streams. This document describes how to use basic_stringstream to get an integer from a string.

quote

The basic unit of communication between a program and its environment is a stream. A stream is a channel between a source and destination which allows the source to push formatted data to the destination.

—— CS 106L Course Reader