diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-11-09 12:35:58 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-11-09 12:35:58 +0100 |
| commit | 0458a2f2fb93abcbf5f400e5eb1121a24e752ae1 (patch) | |
| tree | ffe76794a258176d59738b841c19be3ea84bdcbb /cpp00/ex01/PhoneBook.cpp | |
| parent | b799c007a1b6911fcbe5141429ea541e1277ebdd (diff) | |
| download | piscine_cpp-0458a2f2fb93abcbf5f400e5eb1121a24e752ae1.tar.gz piscine_cpp-0458a2f2fb93abcbf5f400e5eb1121a24e752ae1.tar.bz2 piscine_cpp-0458a2f2fb93abcbf5f400e5eb1121a24e752ae1.zip | |
Fixing cpp00/ex01
Diffstat (limited to 'cpp00/ex01/PhoneBook.cpp')
| -rw-r--r-- | cpp00/ex01/PhoneBook.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp00/ex01/PhoneBook.cpp b/cpp00/ex01/PhoneBook.cpp index a28ce36..7ce3df0 100644 --- a/cpp00/ex01/PhoneBook.cpp +++ b/cpp00/ex01/PhoneBook.cpp @@ -6,7 +6,7 @@ /* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/13 07:23:13 by charles #+# #+# */ -/* Updated: 2020/11/09 09:29:37 by cacharle ### ########.fr */ +/* Updated: 2020/11/09 12:33:21 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -36,7 +36,7 @@ std::ostream& operator<<(std::ostream& out, PhoneBook const& p) { for (size_t i = 0; i < p.getSize(); i++) { - out << i << "|"; + out << std::setw(10) << i << "|"; p.get(i).preview(); std::cout << std::endl; } |
