display less than and greater than correctly

This commit is contained in:
Jidong Xiao
2023-10-02 10:51:05 -04:00
parent 869cc4908d
commit d85937fa94

View File

@@ -54,8 +54,7 @@ v_itr = w.begin() + 2;
*v_itr = 2.78; // changes 3rd entry in w
```
works fine because v_itr is a std::vector<double>::iterator, but if a is a
std::vector<std::string> then
works fine because v_itr is a std::vector&lt;double&gt;::iterator, but if *a* is a std::vector&lt;std::string&gt; then
```cpp
v_itr = a.begin();