Skip to content
Permalink
02fd03aa2b
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
58 lines (44 sloc) 909 Bytes
#include "librarymenu.h"
using namespace std;
void LB::librarymenu(bool exists)
{
Sql sql;
Playermenu playermenu;
int selection;
cout << "\n Welcome to the Library";
cout << "\n===================";
cout << "\n 1 - Read Books and Journals";
cout << "\n Enter selection: ";
cin >> selection;
if (selection == 1)
{
cout << "\n you are reading ....... " << endl;
{
cout << "Press Spacebar 6 Times to Read" << endl;
char key = _getch();
int value = key;
int counter = 0;
while (1)
{
key = _getch();
if (key == KEY_SPACE)
{
counter++;
}
if (counter == 4)
{
sql.updateIntelligenceTable();
break;
}
}
key = _getch();
value = key;
system("cls");
room MI;
MI.DrawFrontBorder();
playermenu.ppmenu(exists);
}
}
int exit;
cin >> exit;
}