forked from steve0312/Lost-and-Found-Management-System
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotice.cpp
More file actions
executable file
·33 lines (27 loc) · 766 Bytes
/
Copy pathnotice.cpp
File metadata and controls
executable file
·33 lines (27 loc) · 766 Bytes
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
#include "Functions.h"
#include <iostream>
using namespace std;
extern void interface_top(bool num, bool name, bool place, bool date);
extern void interface_bottom();
extern string clear, status;
void Management::notices() {
cout << "\n\n" << notice << "\n\n" << std::endl;
}
void Management::login() {
while(1) {
std::cout << std::endl << "비밀번호를 입력하시오. >> ";
std::cin >> password;
if (password == "1234") {
std::cout << endl << "변경할 공지사항을 입력하세요 : ";
std::cin.ignore(1,'\n');
std::getline(std::cin, notice);
break;
}
else if (password == "B" || password == "b") {
break;
}
else {
std::cout << "비밀번호가 틀렸습니다!" << std::endl;
}
}
}