-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.cpp
More file actions
43 lines (36 loc) · 743 Bytes
/
test.cpp
File metadata and controls
43 lines (36 loc) · 743 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
40
41
42
43
/*
* @Author: your name
* @Date: 2020-12-07 19:20:33
* @LastEditTime: 2020-12-08 22:44:08
* @LastEditors: Please set LastEditors
* @Description: do some dev test
* @FilePath: /code/test.cpp
*/
#include "./header/VFS.hpp"
int main()
{
VFS vfs;
char flag = 0;
while(flag != 'Y' && flag != 'N')
{
std::cout << "是否执行格式化 Y/N" << std::endl;
std::cin >> flag;
}
if(flag == 'Y')
{
vfs.format();
}
vfs.load_from_file();
flag = '0';
while(flag != 'Y' && flag != 'N')
{
std::cout << "是否执行测试样例 Y/N" << std::endl;
std::cin >> flag;
}
if(flag == 'Y')
{
vfs.test();
}
vfs.wait_op();
return 0;
}