Search for tag: "stream"

Vector, Part 2) Iterate over contents of vector in C++

#include <iostream>#include <vector> using std::cout; using std::vector; int main() { auto my_data = vector<int>{17, 25, -300, 14}; for (auto item : my_data) { …

+19 More
From  Lane Schwartz 8 plays 0  

Basic I/O, Part 8) Sum ints from file

+12 More
From  Lane Schwartz 16 plays 0  

Basic I/O, Part 7) Read ints from file

+16 More
From  Lane Schwartz 17 plays 0  

Basic I/O, Part 6) Read int from file.mov

+11 More
From  Lane Schwartz 15 plays 0  

Basic I/O, Part 5) Prompt user within loop

+19 More
From  Lane Schwartz 11 plays 0  

Basic I/O, Part 3) Prompt user before cin

+17 More
From  Lane Schwartz 11 plays 0  

Basic I/O, Part 2) Read int from user

+19 More
From  Lane Schwartz 14 plays 0  

Basic I/O, Part 9) Write ints to file

+16 More
From  Lane Schwartz 16 plays 0  

Basic for loop in C++

#include <iostream> int main() { for (int n{10}; n > 0; n = n - 1) { std::cout << n << "\n"; } }

+19 More
From  Lane Schwartz 1 plays 0  

Hello world in C++

+19 More
From  Lane Schwartz 13 plays 0  

10 Days of Google: Google Classroom - Discussion (2020-11-04 at 12_30 GMT-8)

+20 More
From  Christen Bouffard 3 plays 0