-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
58 lines (44 loc) · 1.1 KB
/
main.cpp
File metadata and controls
58 lines (44 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//
// main.cpp
// testproj
//
// Created by Jared Craddock on 8/26/16.
// Copyright © 2016 Jared Craddock. All rights reserved.
//
#include <iostream>
#include <string>
#include "client.hpp"
// Execute trace is traced in file trace.txt
// To do test cases, comment out this main and uncomment testMain.
void welcomeMessage();
int main(int argc, const char * argv[]) {
client client;
std::string input;
welcomeMessage();
client.setMemory();
while (std::cin >> input)
{
client.osLoop(input);
}
return 0;
}
void welcomeMessage()
{
std::cout << R"(
ooo
/ : \
/ o0o \
_____"~~~~~~~"_____
\+###|U * * U|###+/
\...!(.>..<)!.../
^^^^o| |o^^^^
+=====}:^^^^^:{=====+#
.____ .|!!!|. ____.
|#####:/" " "\:#####|
|#####=| O |=#####|
|#####>\_____/<#####|
^^^^^ | | ^^^^^
)";
std::cout<<"Welcome to Solar OS (Project 4)"<<std::endl;
std::cout<<"Please enter a command"<<std::endl;
}