diff --git a/05-cpp/slides.html b/05-cpp/slides.html index b4aef4b..7ea6c3d 100644 --- a/05-cpp/slides.html +++ b/05-cpp/slides.html @@ -441,10 +441,10 @@ - + - + Intro to C++ @@ -1232,7 +1232,7 @@

Intro to C++

-

2024-01-01

+

2024-09-17

Introduction

@@ -1502,7 +1502,7 @@

Vectors in C++: Looping

// Using vector's iterators (begin and end) // and the auto keyword -for (auto i = i.begin(); i != i.end(); ++i) { +for (auto i = my_vector.begin(); i != my_vector.end(); ++i) { std::cout << *i << std::endl; } diff --git a/05-cpp/slides.qmd b/05-cpp/slides.qmd index 79c2e64..54f7304 100644 --- a/05-cpp/slides.qmd +++ b/05-cpp/slides.qmd @@ -3,7 +3,7 @@ title: "Intro to C++" subtitle: "PHS 7045: Advanced Programming" author: "George G. Vega Yon, Ph.D." date-modified: 2024-09-12 -date: "Fall 2024" +date: 2024-09-17 institute: "The University of Utah" format: revealjs: @@ -260,7 +260,7 @@ for (int i = 0; i < my_vector.size(); ++i) { // Using vector's iterators (begin and end) // and the auto keyword -for (auto i = i.begin(); i != i.end(); ++i) { +for (auto i = my_vector.begin(); i != my_vector.end(); ++i) { std::cout << *i << std::endl; }