From 0190c402cd2647bc689ed6aa9dd6ddef686ac8e6 Mon Sep 17 00:00:00 2001 From: "Simon V. Lejel" Date: Thu, 8 Feb 2024 15:26:45 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20server?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.cc | 10 ---------- src/server/main.cc | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 10 deletions(-) delete mode 100644 src/main.cc create mode 100644 src/server/main.cc diff --git a/src/main.cc b/src/main.cc deleted file mode 100644 index 0bcfa04..0000000 --- a/src/main.cc +++ /dev/null @@ -1,10 +0,0 @@ -#include - -using namespace std; - -int main() { - - - - return 0; -} diff --git a/src/server/main.cc b/src/server/main.cc new file mode 100644 index 0000000..3ccde6b --- /dev/null +++ b/src/server/main.cc @@ -0,0 +1,19 @@ +#include +#include + +using std::cout, std::cin, std::string; + +int main() { + + while (true) { + string message; + cout << "Enter message: "; + cin >> message; + + if (message == "exit") { + break; + } + } + + return 0; +}