Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <array>
- #include <iostream>
- int main()
- {
- std::array<std::array < char, 3>, 3> table = { {
- { '-','-','-', },
- { '-','-','-', },
- { '-','-','-', },
- } };
- for(int firstCounter = 0; firstCounter < table.size(); firstCounter++) {
- for(int secondCounter = 0; secondCounter < table[firstCounter].size();
- secondCounter++) {
- std::cout << table[firstCounter][secondCounter];
- }
- std::cout << std::endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement