-
Notifications
You must be signed in to change notification settings - Fork 0
/
Interface
51 lines (44 loc) · 1.5 KB
/
Interface
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
41
42
43
44
45
46
47
48
49
50
51
#include<iostream>
#include<conio.h>
#include<stdlib.h>
#include<conio.h>
#include<ctime>
#include<dos.h>
using namespace std;
//functions for welcome screen:
void time(){
// current date/time based on current system
time_t now = time(0);
tm *ltm = localtime(&now);
if (ltm->tm_min>9)
cout<<"****\tTime: "<<ltm->tm_hour<<":"<<ltm->tm_min<<"\t\t\t\t\t\tDate: "<<ltm->tm_mday<<"/"<<1+ltm->tm_mon<<"/"<<1900+ltm->tm_year<< "\t ****"<< endl;
else
cout<<"****\tTime: "<<ltm->tm_hour<<":0"<<ltm->tm_min<<"\t\t\t\t\t\tDate: "<<ltm->tm_mday<<"/"<<1+ltm->tm_mon<<"/"<<1900+ltm->tm_year<< "\t ****"<< endl;
}
void interface(){
for(int i=0;i<3;i++)
cout<<"*************************************************************************************"<< endl;
for (int i = 0; i<20; i++){
if (i == 2){
time();
}
if (i == 6)
cout<< "****\t\t WELCOME TO FIA SUPERMARKET POS SYSTEM\t\t\t ****"<< endl;
else if(i == 15){
cout<<"**** By:\t\t\t\t\t\t\t\t\t ****"<< endl;
}
else if(i == 16){
cout<<"**** 1)Muhammad Ibad Saleem (19K-0220)\t\t\t\t\t\t ****"<< endl;
}
else if(i == 17){
cout<<"**** 2)Ali Muhammad (19K-0324)\t\t\t\t\t\t\t ****"<< endl;
}
else if(i == 18){
cout<<"**** 3)Faisal Malik (19K-0144)\t\t\t\t\t\t\t ****"<< endl;
}
else
cout<<"****\t\t\t\t\t\t\t\t\t\t ****"<< endl;
}
for(int i=0; i<3; i++)
cout<<"*************************************************************************************"<< endl;
}