From 7775d692bc9242b9735999c9d7b14fa54ff70c06 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Fri, 1 Sep 2023 00:48:26 -0400 Subject: [PATCH] adding line breaker --- lectures/02_strings_vectors/README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lectures/02_strings_vectors/README.md b/lectures/02_strings_vectors/README.md index b60c38f..9a9e840 100644 --- a/lectures/02_strings_vectors/README.md +++ b/lectures/02_strings_vectors/README.md @@ -41,14 +41,15 @@ where h is as defined above. ## 2.3 STL Vectors: a.k.a. “C++-Style”, “Smart” Arrays - Standard library “container class” to hold sequences. -- A vector acts like a dynamically-sized, one-dimensional array. +- A vector acts like a dynamically-sized, one-dimensional array. Capabilities: -– Holds objects of any type. -– Starts empty unless otherwise specified. -– Any number of objects may be added to the end — there is no limit on size. -– It can be treated like an ordinary array using the subscripting operator. -– A vector knows how many elements it stores! (unlike C arrays) -– There is NO automatic checking of subscript bounds. + – Holds objects of any type. + – Starts empty unless otherwise specified. + – Any number of objects may be added to the end — there is no limit on size. + – It can be treated like an ordinary array using the subscripting operator. + – A vector knows how many elements it stores! (unlike C arrays) + – There is NO automatic checking of subscript bounds. + Here’s how we create an empty vector of integers: ```cpp std::vector scores;