Click here to Skip to main content
15,893,401 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionchange code inside function body of dll file, dangerous? Pin
includeh1014-Oct-09 5:58
includeh1014-Oct-09 5:58 
AnswerRe: change code inside function body of dll file, dangerous? Pin
Randor 14-Oct-09 6:54
professional Randor 14-Oct-09 6:54 
AnswerRe: change code inside function body of dll file, dangerous? Pin
Rajesh R Subramanian14-Oct-09 7:49
professionalRajesh R Subramanian14-Oct-09 7:49 
AnswerRe: change code inside function body of dll file, dangerous? Pin
Moak14-Oct-09 9:49
Moak14-Oct-09 9:49 
Questioncalculation error Pin
kbury14-Oct-09 5:13
kbury14-Oct-09 5:13 
AnswerRe: calculation error Pin
CPallini14-Oct-09 5:37
mveCPallini14-Oct-09 5:37 
GeneralRe: calculation error Pin
kbury14-Oct-09 5:43
kbury14-Oct-09 5:43 
GeneralRe: calculation error Pin
CPallini14-Oct-09 7:04
mveCPallini14-Oct-09 7:04 
Well, I didn't notice you made a bad mix of floats and ints.
Try
#define SENTINEL 0

int endbal,
    finbal,
    date,
    outdep,
    withdraw;

#include <stdio.h>
int main (void)


{

	printf("BANK RECONCILIATION FOR: 10/21/98");

	printf("\n\nEnding balance on statement:");
	scanf ("%d", & finbal);


	printf("Enter Outstanding dep (or %d to quit)>", SENTINEL);
	scanf ("%d", & outdep);

	while (outdep!= SENTINEL)
	{
		finbal = finbal + outdep;
		printf("Enter outstanding dep (%d to quit)>", SENTINEL);
		scanf("%d", & outdep);

	}

	printf("Outstanding check/withdrawal (or %d to quit)>", SENTINEL);
	scanf ("%d", & withdraw);

	while (withdraw!=SENTINEL)
	{
		finbal = finbal - withdraw;
		printf("Enter withdrawal (%d to quit)>", SENTINEL);
		scanf("%d", & withdraw);

	}

	

	printf("Your final balance in your checkbook should be $ %d" , finbal);

	return 0;

}

Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

AnswerRe: calculation error Pin
David Crow14-Oct-09 7:39
David Crow14-Oct-09 7:39 
AnswerRe: calculation error [modified] Pin
Patcher3214-Oct-09 12:52
Patcher3214-Oct-09 12:52 
AnswerRe: calculation error Pin
Luc Pattyn14-Oct-09 13:41
sitebuilderLuc Pattyn14-Oct-09 13:41 
GeneralRe: calculation error Pin
kbury15-Oct-09 5:07
kbury15-Oct-09 5:07 
GeneralRe: calculation error Pin
Luc Pattyn15-Oct-09 5:38
sitebuilderLuc Pattyn15-Oct-09 5:38 
QuestionHow to convert the vbscript to c++ using adsi Pin
raja 414-Oct-09 4:59
raja 414-Oct-09 4:59 
AnswerRe: How to convert the vbscript to c++ using adsi Pin
David Crow15-Oct-09 3:15
David Crow15-Oct-09 3:15 
QuestionEnabling and Disadbling Toolbar Buttons. Pin
hariakuthota14-Oct-09 4:43
hariakuthota14-Oct-09 4:43 
AnswerRe: Enabling and Disadbling Toolbar Buttons. Pin
CPallini14-Oct-09 5:27
mveCPallini14-Oct-09 5:27 
QuestionProblem in C++ Template definition Pin
gourishsio14-Oct-09 4:32
gourishsio14-Oct-09 4:32 
AnswerRe: Problem in C++ Template definition Pin
CPallini14-Oct-09 5:24
mveCPallini14-Oct-09 5:24 
AnswerRe: Problem in C++ Template definition [modified] Pin
Stuart Dootson14-Oct-09 6:19
professionalStuart Dootson14-Oct-09 6:19 
QuestionCreating a Status Bar in DialogBased Application Pin
Hari_1614-Oct-09 3:49
Hari_1614-Oct-09 3:49 
AnswerRe: Creating a Status Bar in DialogBased Application Pin
Roger Stoltz14-Oct-09 4:47
Roger Stoltz14-Oct-09 4:47 
AnswerRe: Creating a Status Bar in DialogBased Application Pin
David Crow14-Oct-09 7:52
David Crow14-Oct-09 7:52 
GeneralRe: Creating a Status Bar in DialogBased Application Pin
Hari_1614-Oct-09 18:01
Hari_1614-Oct-09 18:01 
GeneralRe: Creating a Status Bar in DialogBased Application Pin
David Crow15-Oct-09 3:09
David Crow15-Oct-09 3:09 

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.