From d376ddb1ada7de6a2faa3e1e53b38fe5aa5c03dc Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 29 Oct 2021 10:07:02 +0300 Subject: Fixed output formatting of solution to exercise 12 --- Sem. 03/Solutions/12. Frame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sem. 03/Solutions/12. Frame.cpp b/Sem. 03/Solutions/12. Frame.cpp index a91c907..6eca5a2 100644 --- a/Sem. 03/Solutions/12. Frame.cpp +++ b/Sem. 03/Solutions/12. Frame.cpp @@ -11,10 +11,10 @@ int main() { bool onFirstOrLastLine = (row == 0 || row == n-1); - cout << ((onFirstOrLastLine) ? "+" : "|"); + cout << ((onFirstOrLastLine) ? "+ " : "| "); for (int col = 0; col < n - 2; col++) - cout << "-"; + cout << "- "; cout << ((onFirstOrLastLine) ? "+" : "|") << endl; } -- cgit v1.3.1-23-gd82d