From 1d105b91b9678ffaa8eddea2218ed1789f5be27c Mon Sep 17 00:00:00 2001 From: Oskar Date: Sat, 3 Aug 2024 22:51:15 +0200 Subject: more assignments --- 3p5.cpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 3p5.cpp (limited to '3p5.cpp') diff --git a/3p5.cpp b/3p5.cpp new file mode 100644 index 0000000..7f1be44 --- /dev/null +++ b/3p5.cpp @@ -0,0 +1,32 @@ +#include +#include "sales_data.hpp" +#include "sales_item.hpp" + +/* + * + * Description + * + * + */ + +using std::string; +using std::cout; +using std::cin; +using std::cerr; +using std::clog; +using std::endl; +int main () { + + string full; + string full_sep; + //string whitespace(" "); + string DD; + while(cin >> DD) { + full += DD; + full_sep += DD + ' '; + } + cout << full << endl; + cout << full_sep << endl; + + return 0; +} -- cgit v1.2.3