✨ Add server
This commit is contained in:
parent
c384a6eec6
commit
0190c402cd
2 changed files with 19 additions and 10 deletions
10
src/main.cc
10
src/main.cc
|
@ -1,10 +0,0 @@
|
|||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
19
src/server/main.cc
Normal file
19
src/server/main.cc
Normal file
|
@ -0,0 +1,19 @@
|
|||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
using std::cout, std::cin, std::string;
|
||||
|
||||
int main() {
|
||||
|
||||
while (true) {
|
||||
string message;
|
||||
cout << "Enter message: ";
|
||||
cin >> message;
|
||||
|
||||
if (message == "exit") {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
Reference in a new issue