40 lines
No EOL
899 B
C++
Executable file
40 lines
No EOL
899 B
C++
Executable file
#include <string> // std::string
|
|
#include <iostream> // std::cout
|
|
#include <sstream> // std::stringstream
|
|
#include <vector>
|
|
#include <string>
|
|
#include "Parser.h"
|
|
#include "DBEngine.h"
|
|
|
|
using namespace std;
|
|
/*
|
|
int main()
|
|
{
|
|
cout << "**********************" << endl;
|
|
cout << "* Generic Restaurant *" << endl;
|
|
cout << "**********************" << endl;
|
|
cout << "- Login -" << endl;
|
|
cout << "1. Login" << endl;
|
|
cout << "2. Request new account" << endl;
|
|
cout << "Enter coice: ";
|
|
int n;
|
|
cin >> n;
|
|
string u;
|
|
string p;
|
|
switch(n)
|
|
{
|
|
case 1: cout << "- Login -" << endl;
|
|
cout << "Enter username: ";
|
|
cin >> u;
|
|
cout << "Enter password: ";
|
|
cin >> p;
|
|
// implement user database.
|
|
break;
|
|
case 2: cout << "Not implemented." << endl;
|
|
break; // not implemented.
|
|
default: cout << "Not an option." << endl;
|
|
return 0;
|
|
}
|
|
|
|
}
|
|
*/ |