diff options
author | Mario <duhanic@gmail.com> | 2017-09-12 10:21:23 +0200 |
---|---|---|
committer | ven <vendethiel@hotmail.fr> | 2017-09-12 08:21:23 +0000 |
commit | cd379d9e9eff734ae02708ba986b0fde1fa52d33 (patch) | |
tree | b89b09f7641580f56d0eb7342e5f838e7581d2f0 /tests | |
parent | a148661c74b8bd5e9189d8fcb43dbb42c4ab10ec (diff) |
[c++/en] container -> vector (#2838)
* container -> vector
fixed errors:
- "vector_name" and "Vector_name" (different case) would have resulted in a compile time error, now: "my_vector"
enhancements:
- typedef for consistency
- two push_backs to show its purpose
- both iteration types now have a working execution block (both output the vector's content)
- the first "classic loop" now also shows the operator [], which therefor is removed from below
- include and for with a white spaces for readability
* removed the typedef
the `typedef` was used to show that we will be using `string` as our base for all operations, but we are free to use any other type; of course it is technically not needed and might look like a redundancy. the two `cin` also look redundant, so I changed this into one `cin` and two `push_back`s
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions