Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Lab_16/Source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ class Master : public Account, public Admin
{
for (int i = 0; i < 1000; i++)
{
system("cls");
// FIX: Avoid using system("cls") and use a safer alternative
cout << "\033[2J\033[1;1H"; // ANSI escape codes to clear the console
cout << "\t U P D A T E D E T A I L S\n";
cout << "=========================================\n";
cout << " Choose detail you want to update\n";
Expand Down Expand Up @@ -325,8 +326,8 @@ class Master : public Account, public Admin
Sleep(0700);
Sleep(0700);
} // switch
}
} // for loop
} // for loop
} // update
};

int main()
Expand Down