This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
dmspine64backup/DBApp.cpp
William Bracho Blok 85b00fc497 Update DBApp.cpp
2015-09-29 22:04:27 -05:00

87 lines
1.7 KiB
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;
}
}
void yourAccount()
{
cout<<"name: yourName"<<endl;
}
void mainMenu()
{
cout<<"***************"<<endl;
cout<<"** Main Menu **"<<endl;
cout<<"***************\n\n"<<endl;
cout<<"1. Your account"<<endl;
cout<<"2. Boards"<<endl;
cout<<"3. Messages"<<endl;
cout<<"4. Groups\n"<<endl;
cout<<"Enter choice: ";
int choice;
cin>>choice;
if (choice == 1)
{
yourAccount();
}
}
int main()
{
cout<<"***************************************"<<endl;
cout<<"Welcome to our BBS "<<endl;
cout<<"***************************************"<<endl;
cout<<"** Enter BBS **"<<endl;
cout<<"1. Login";
cout<<"2. Request new account\n\n";
cout<<"Enter choice";
int choice;
cin>>choice;
if (choice == 1)
{
mainMenu();
}
}
*/