upload
This commit is contained in:
parent
e64f1a0f1e
commit
68e45dd3b5
2 changed files with 4 additions and 4 deletions
6
Makefile
6
Makefile
|
@ -1,5 +1,5 @@
|
|||
TARGET = CHANGEME
|
||||
SRC_FILES = main.cpp
|
||||
TARGET = A2
|
||||
SRC_FILES = main.cpp atmFunctions.cpp
|
||||
|
||||
# Tyler's custom makefile extensions for CSCI200 (anyone can use these if they want)
|
||||
.DEFAULT_GOAL := all # Necessary so `make` doesn't run the "pack" target, as it is declared before "all"
|
||||
|
@ -80,4 +80,4 @@ depend:
|
|||
.PHONY: all clean depend
|
||||
|
||||
# DEPENDENCIES
|
||||
main.o: main.cpp
|
||||
main.o: main.cpp atmFunctions.h
|
||||
|
|
|
@ -130,7 +130,7 @@ void withdraw_money(int* pDollars, int* pCents) {
|
|||
normalize_dollars(&dollarsToWithdraw, ¢sToWithdraw);
|
||||
|
||||
// Convert dollar amounts to cents for easier subtraction
|
||||
int totalCentWithdrawal = dollarsToWithdraw + (dollarsToWithdraw * 100);
|
||||
int totalCentWithdrawal = centsToWithdraw + (dollarsToWithdraw * 100);
|
||||
|
||||
*pCents += *pDollars * 100;
|
||||
*pDollars = 0;
|
||||
|
|
Loading…
Reference in a new issue