-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
39 lines (29 loc) · 759 Bytes
/
main.cpp
File metadata and controls
39 lines (29 loc) · 759 Bytes
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
// Alfred Ledgin
// 12/4/2015
// CS 303
// Project 3
#include "MorseUI.h"
#include "MorseSystem.h"
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main()
{
// Note to Tester:
// If you do not wish to use the UI, remove the comment lines from
// around the following code segment, change the string arguments as
// desired, and then enter "4" to quit the UI.
/***
ifstream file;
file.open("morse.txt");
MorseSystem theSystem(file);
file.close();
cout << theSystem.decodeWord(".... ..") << endl;
cout << theSystem.encodeWord("hi") << endl;
system("pause"); // Do not change.
***/
MorseUI theInterface;
theInterface.execute();
return 0;
}