From 3a0c3acfa61d0cb228f81b4798e2b32f9a954653 Mon Sep 17 00:00:00 2001 From: "George G. Vega Yon" Date: Tue, 17 Sep 2024 12:20:27 -0600 Subject: [PATCH] Fixing typo --- 05-cpp/slides.html | 8 ++++---- 05-cpp/slides.qmd | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) 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; }