centered menus again - OCD
This commit is contained in:
parent
563de6fe5d
commit
bbb08cbbf8
16
src/main.cpp
16
src/main.cpp
@ -35,20 +35,22 @@ int main() {
|
|||||||
while(tolower(quit) != 'q') {
|
while(tolower(quit) != 'q') {
|
||||||
std::cout << "\t\t----------=================================--------------\n";
|
std::cout << "\t\t----------=================================--------------\n";
|
||||||
std::cout << "\t\t\tWelcome to the Universal Hardware database!\n";
|
std::cout << "\t\t\tWelcome to the Universal Hardware database!\n";
|
||||||
std::cout << "\t(S)earch for a part by model name\n";
|
std::cout << "\t\t\t\t(S)earch for a part by model name\n";
|
||||||
std::cout << "\t(Q)uit hardware database\n->";
|
std::cout << "\t\t\t\t(Q)uit hardware database\n->";
|
||||||
std::cin >> quit;
|
std::cin >> quit;
|
||||||
switch(tolower(quit)) {
|
switch(tolower(quit)) {
|
||||||
case 's':
|
case 's':
|
||||||
|
std::cout << "-------------------------------\n";
|
||||||
std::cout << "\t\t\tWhat would you like to search by?\n";
|
std::cout << "\t\t\tWhat would you like to search by?\n";
|
||||||
std::cout << "\t(M)odel name\n";
|
std::cout << "\t\t\t\t(M)odel name\n";
|
||||||
std::cout << "\tManufacture(R)\n";
|
std::cout << "\t\t\t\tManufacture(R)\n";
|
||||||
std::cout << "\t(Y)ear Released\n";
|
std::cout << "\t\t\t\t(Y)ear Released\n";
|
||||||
std::cout << "\tMain (C)lock\n";
|
std::cout << "\t\t\t\tMain (C)lock\n";
|
||||||
std::cout << "\t(Q)uit\n->";
|
std::cout << "\t\t\t\t(Q)uit\n->";
|
||||||
std::cin >> searchby;
|
std::cin >> searchby;
|
||||||
switch(tolower(searchby)) {
|
switch(tolower(searchby)) {
|
||||||
case 'm':
|
case 'm':
|
||||||
|
std::cout << "-------------------------------\n";
|
||||||
std::cout << "\t\tEnter part of the model string.\n";
|
std::cout << "\t\tEnter part of the model string.\n";
|
||||||
std::cout << "\t\tExample: for Intel i75820k you would enter 5820\n->";
|
std::cout << "\t\tExample: for Intel i75820k you would enter 5820\n->";
|
||||||
std::cin >> msearch;
|
std::cin >> msearch;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user