Skip to content

Commit

Permalink
Giving a choice to end user of which computer he would like to emulate
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalm committed Dec 26, 2010
1 parent 9ef0302 commit 6206360
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion COMputer/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ipch
Debug
Debug
*.opensdf
Binary file modified COMputer/COMputer.sdf
Binary file not shown.
Binary file modified COMputer/COMputer.suo
Binary file not shown.
3 changes: 3 additions & 0 deletions COMputer/COMputer/COMputer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ int _tmain(int argc, _TCHAR* argv[])
printf("Which computer would you like to emulate ?\n");
printf(" 1. Suunto Vyper\n");
printf(" 2. Mares Nemo Excel\n");
scanf("%d", &choice);
}
else {
choice = _wtoi(argv[1]);
Expand All @@ -31,13 +32,15 @@ int _tmain(int argc, _TCHAR* argv[])
break;
default:
printf("Choice unrecognised");
Sleep(10000);
return(-1);
}

com->open();
com->run();

free(com);
Sleep(10000);
return 0;
}

Expand Down

0 comments on commit 6206360

Please sign in to comment.