Click here to Skip to main content
15,929,811 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: child windows z-order Pin
mihan_12-Dec-02 4:52
mihan_12-Dec-02 4:52 
GeneralRe: child windows z-order Pin
Alois Kraus12-Dec-02 5:45
Alois Kraus12-Dec-02 5:45 
GeneralRe: child windows z-order Pin
mihan_12-Dec-02 6:11
mihan_12-Dec-02 6:11 
GeneralRe: child windows z-order Pin
User 665812-Dec-02 6:48
User 665812-Dec-02 6:48 
GeneralRe: child windows z-order Pin
mihan_12-Dec-02 7:16
mihan_12-Dec-02 7:16 
Questionhow to delete Win NT system start-up option Pin
woonkop12-Dec-02 2:37
woonkop12-Dec-02 2:37 
AnswerRe: how to delete Win NT system start-up option Pin
RobJones12-Dec-02 4:24
RobJones12-Dec-02 4:24 
GeneralLast question....atleast for a while!! Pin
Autunmsky12-Dec-02 1:23
Autunmsky12-Dec-02 1:23 
Sorry everyone this project is just really getting to me... I have to compute the check book and keep updating the charges....and then apply the charges at the end... What is the best way to do this? I'm just confused and where I'm supposed ot put it?

Thanks in advanced!!



GetSingleTransInfo (transCode, transAmount);
newBalance = 0.0;
while (transCode != 'E')
{
if (transCode == 'C')

{
ProcessCheck(transAmount, balance, currentBalance, charge);

GetSingleTransInfo (transCode, transAmount);

}

if (transCode == 'D')

{
ProcessDeposit(transAmount, balance, currentBalance);
newBalance = currentBalance + newBalance;

GetSingleTransInfo (transCode, transAmount);
}

}


PrintFinalTotals (month, newBalance);


return 0;
}


oid ProcessCheck(/*in*/ float amount, /*in*/ float balance,
/*out*/ float& currBalance, /*out*/ float& charge)

// Purpose: Deduct amount of check from balance....apply charges if balance falls below zero by
// cause of check. Apply charge if balance falls below $500.00.
// Pre:
// Post:

{
bool below500;


currBalance = balance - amount;

below500 = (currBalance < 500.00);



cout << " Check Transaction\n\n\n";



cout << fixed << setprecision (2) << endl;
cout << "Check Amount: " << amount << endl;
cout << "Current Balance: " << currBalance << endl;
cout << "Check Charge: " << CHECK_CHARGE << endl;

if (below500)
{

charge = ONE_TIME_CHARGE;
cout << "One Time Below $500.00 charge: " << charge << endl;

}


currBalance = balance - amount;

system ("pause");
system ("cls");
}
//***************************************************************************************************************
void ProcessDeposit (/*in*/ float amount, /*in*/ float balance,
/*out*/ float& currBalance)

{

currBalance = balance + amount;

cout << " Deposit Transaction\n\n\n";


cout << fixed << setprecision (2) << endl;
cout << "Deposit Amount: " << amount << endl;
cout << "Current Balance: " << currBalance << endl;
cout << "Deposit Charge: " << DEPOSIT_CHARGE << endl;

system ("pause");
system ("cls");

currBalance =
}




Autumn Smile | :)
GeneralTAPI Application Pin
vin12-Dec-02 0:47
vin12-Dec-02 0:47 
GeneralRe: TAPI Application Pin
Michael P Butler12-Dec-02 0:58
Michael P Butler12-Dec-02 0:58 
QuestionHow does IShellDispatch4.ToggleDesktop minimize an app. without closing its modal dialog box ? Pin
Andrew Webb12-Dec-02 0:30
Andrew Webb12-Dec-02 0:30 
GeneralSetRedarw().. Pin
Neha12-Dec-02 0:30
Neha12-Dec-02 0:30 
GeneralRe: SetRedarw().. Pin
PDStone12-Dec-02 0:58
PDStone12-Dec-02 0:58 
GeneralRe: SetRedarw().. Pin
Neha12-Dec-02 1:05
Neha12-Dec-02 1:05 
GeneralRe: SetRedarw().. Pin
PDStone12-Dec-02 1:25
PDStone12-Dec-02 1:25 
GeneralRe: SetRedarw().. Pin
Neha12-Dec-02 3:58
Neha12-Dec-02 3:58 
GeneralLaunching an exe from a service Pin
PDStone11-Dec-02 23:05
PDStone11-Dec-02 23:05 
GeneralRe: Launching an exe from a service Pin
dan o12-Dec-02 4:59
dan o12-Dec-02 4:59 
GeneralContext help button in titlebar Pin
rrrado11-Dec-02 22:01
rrrado11-Dec-02 22:01 
GeneralRe: Context help button in titlebar Pin
KaЯl12-Dec-02 4:45
KaЯl12-Dec-02 4:45 
GeneralMFC or .NET (or both?) Pin
Patje11-Dec-02 21:30
Patje11-Dec-02 21:30 
GeneralRe: MFC or .NET (or both?) Pin
Christian Graus11-Dec-02 21:37
protectorChristian Graus11-Dec-02 21:37 
GeneralRe: MFC or .NET (or both?) Pin
Kannan Kalyanaraman11-Dec-02 21:55
Kannan Kalyanaraman11-Dec-02 21:55 
GeneralRe: MFC or .NET (or both?) Pin
Patje11-Dec-02 22:55
Patje11-Dec-02 22:55 
GeneralRe: MFC or .NET (or both?) Pin
Michael P Butler11-Dec-02 22:02
Michael P Butler11-Dec-02 22:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.