Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commitd376ddb1ada7de6a2faa3e1e53b38fe5aa5c03dc (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-10-29 10:07:02 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-10-29 10:17:09 +0300
Files1ca588da1320f44a253754ee1c10491989d88e1f
Introduction_to_programming_FMI-d376ddb1ada7de6a2faa3e1e53b38fe5aa5c03dc.tar
Introduction_to_programming_FMI-d376ddb1ada7de6a2faa3e1e53b38fe5aa5c03dc.tar.gz
Introduction_to_programming_FMI-d376ddb1ada7de6a2faa3e1e53b38fe5aa5c03dc.zip
Parent76e44a531f104795e207978c4a150720b617bae8 (diff)
Fixed output formatting of solution to exercise 12
1 files changed, 2 insertions, 2 deletions
-rw-r--r--Sem. 03/Solutions/12. Frame.cpp4
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;
}