Click here to Skip to main content
15,913,145 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralChange Color of Bitmap Pin
Anonymous17-Sep-03 11:11
Anonymous17-Sep-03 11:11 
GeneralRe: Change Color of Bitmap Pin
John R. Shaw17-Sep-03 11:35
John R. Shaw17-Sep-03 11:35 
GeneralgetFTPConnection prob Pin
ns17-Sep-03 10:19
ns17-Sep-03 10:19 
GeneralRe: getFTPConnection prob Pin
Jagadeesh VN17-Sep-03 10:40
Jagadeesh VN17-Sep-03 10:40 
GeneralRe: getFTPConnection prob Pin
ns18-Sep-03 2:02
ns18-Sep-03 2:02 
Generalalmost got it little help please Pin
colin2117-Sep-03 9:48
colin2117-Sep-03 9:48 
GeneralRe: almost got it little help please Pin
Michael P Butler17-Sep-03 10:23
Michael P Butler17-Sep-03 10:23 
GeneralRe: almost got it little help please Pin
David Crow17-Sep-03 10:25
David Crow17-Sep-03 10:25 
colin21 wrote:
I almost got this program to work...

I don't see how. answer is being computed with two uninitialized variables, number and number2. I suspect you'll not get the correct answer simply dividing by 100. In order for the math library to work correctly, it needs to know that floating-point numbers are being used. Therefore, divide by 100.0. scanf() only has only field, yet two variables are provided. Luckily, the second one is ignored. Had it been scanf("%f %f", &number); instead, you'd indeed have problems. There does, however, need to be another call to scanf() for number2.


Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?

GeneralRe: almost got it little help please Pin
colin2117-Sep-03 11:37
colin2117-Sep-03 11:37 
GeneralRe: almost got it little help please Pin
David Crow18-Sep-03 3:49
David Crow18-Sep-03 3:49 
GeneralRe: almost got it little help please Pin
DougW4817-Sep-03 13:54
DougW4817-Sep-03 13:54 
Generalbeginner winsock question Pin
mweiss17-Sep-03 9:08
mweiss17-Sep-03 9:08 
GeneralRe: beginner winsock question Pin
David Crow17-Sep-03 9:38
David Crow17-Sep-03 9:38 
GeneralRe: beginner winsock question Pin
valikac17-Sep-03 12:43
valikac17-Sep-03 12:43 
Generalgethostbyaddr problem Pin
ns17-Sep-03 8:58
ns17-Sep-03 8:58 
GeneralRe: gethostbyaddr problem Pin
David Crow17-Sep-03 9:33
David Crow17-Sep-03 9:33 
GeneralRe: gethostbyaddr problem Pin
ns17-Sep-03 9:54
ns17-Sep-03 9:54 
GeneralRe: gethostbyaddr problem Pin
David Crow17-Sep-03 10:08
David Crow17-Sep-03 10:08 
GeneralPrint help easy question Pin
Binayak17-Sep-03 8:50
Binayak17-Sep-03 8:50 
GeneralRe: Print help easy question Pin
vcplusplus17-Sep-03 9:32
vcplusplus17-Sep-03 9:32 
GeneralCharacter Set of a String Pin
hckygirloh17-Sep-03 8:50
hckygirloh17-Sep-03 8:50 
GeneralRe: Character Set of a String Pin
Daniel Turini17-Sep-03 9:42
Daniel Turini17-Sep-03 9:42 
GeneralGlobal Hook with a Callback Pin
tsprang17-Sep-03 8:49
tsprang17-Sep-03 8:49 
GeneralGUI Compiling Trouble Pin
doncab17-Sep-03 8:35
doncab17-Sep-03 8:35 
GeneralRe: GUI Compiling Trouble Pin
ZoogieZork17-Sep-03 9:47
ZoogieZork17-Sep-03 9:47 

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.