コード例 #1
0
int main()
{
    char input;
    
    cout << "========= R E S T A U R A N T S   I N   C U P E R T I N O =========";
    
    listHead *restaurants = new listHead(hashSize);

    readFile(restaurants);
    
    restaurants->getHashPtr()->printHashTableSequence();
    

    // Display menu
    displayMenu();
    
    // Get user's input
    input = getUserInput();
    
    // While the user does not want to quit...
    while (input != 'q')
    {
        // Call appropriate operation
        operationManager(restaurants, input);
        
        // Get user's input
        input = getUserInput();
    }

    saveToFile(restaurants);
    
    cout << "\n======================== T H A N K  Y O U =========================";
}
コード例 #2
0
ファイル: cadmdichild.cpp プロジェクト: jasvir99/LibreCAD_3
void CadMdiChild::cancelCurrentOperations() {
    operationManager()->cancel();
}