Пример #1
0
static void do_something(void)
{
	fs_something();

	sort_something();

	syscall_something();
}
Пример #2
0
void ConsoleUI::start()
{
    string inp;
    clear_screen();
    cout << readFileToString("../templates/welcome.txt") << endl;
    menu(inp);
    while(inp != "quit")
    {
        if (inp == "add")
        {
            add_something();
        }
        if (inp == "print")
        {
            print_all();
        }
        if (inp == "sort")
        {
            sort_something();
        }
        if (inp == "find")
        {
            find_something();
        }
        if (inp == "connect")
        {
            connect_something();
        }
        pause_screen();
        clear_screen();
        menu(inp);
    }
    if(inp == "quit")
    {
        clear_screen();
        cout << readFileToString("../templates/goodbye.txt") << endl;
        cout << endl;
        cout << "\t\t\t     " << "Program has ended. \n\n\n\n\n\n\n\n";
    }
}