-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
40 lines (34 loc) · 785 Bytes
/
Copy pathmain.cpp
File metadata and controls
40 lines (34 loc) · 785 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
#include "mem_check.h"
#pragma warning (disable: 4786)
#pragma warning (disable: 4788)
// disable warning (compare bool with int)
#pragma warning (disable: 4805)
#pragma warning (disable: 4503)
#include "keyboard.h"
#include "game.h"
#include "global.h"
#include <stdlib.h>
#include <curses.h>
#include <time.h>
#include <string>
using namespace std;
GAME game;
int main(int argc, char* argv[])
{
if (argc>1)
{
game.name_of_player = argv[1];
string letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
for (int a=0;a<game.name_of_player.size();a++)
{
if (letters.find(game.name_of_player[a])==-1)
{
game.name_of_player = "";
break;
}
}
}
game.Begin();
game.Main();
return 0;
}