- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
Latest commit
25 lines (22 loc) · 452 Bytes
/
Copy pathmain.cpp
File metadata and controls
25 lines (22 loc) · 452 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
#include<iostream>
#include<fstream>
#include<ctime>
#include<cstdlib>
#include"WindowGen.h"
intmain() {
srand(time(NULL));
Play play;
std::fstream file;
file.open("save", std::ios::in);
WindowGen window;
if (file.is_open()) {
file >> play;
window.setPlay(play);
}
file.close();
window.startWindow();
file.open("save", std::ios::out);
file<<window;
file.close();
return0;
}