コード例 #1
0
int main(void) {
	
	initializeAccount();
	getBalance();
	//Perform first transaction
	
	askCustomer();
	updateAccount(amount);
	getBalance();
	//Perform second transaction
	
	askCustomer();
	updateAccount(amount);
	addGift(5.0);
	getBalance();
	//Perform third transaction
	
	askCustomer();
	updateAccount(amount);
	addGift(2.0);
	getBalance();
	thankYou();
	
	return 0;
}
コード例 #2
0
ファイル: main.c プロジェクト: Howlinmoon/Hacking_With_C
int main(int argc, const char * argv[]) {
    // insert code here...

    int transactionCounter = 0;
    initializeAccount();
    getBalance();
    
    // Perform first transaction
    askCustomer();
    updateAccount(amount);
    getBalance();
    
    // Perform second transaction
    askCustomer();
    updateAccount(amount);
    addGift(5.0);
    getBalance();
    
    // Perform third transaction
    askCustomer();
    updateAccount(amount);
    addGift(2.0);
    getBalance();
    thankYou();
    
    return 0;
}