Click here to Skip to main content
15,792,330 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: I need help figuring this out please Pin
LilKoopa17-Oct-08 8:51
LilKoopa17-Oct-08 8:51 
AnswerRe: I need help figuring this out please Pin
David Crow17-Oct-08 9:52
David Crow17-Oct-08 9:52 
QuestionInterface Design Question Pin
mombawomba16-Oct-08 17:08
mombawomba16-Oct-08 17:08 
AnswerRe: Interface Design Question Pin
Graham Shanks17-Oct-08 0:43
Graham Shanks17-Oct-08 0:43 
QuestionNew to MFC Pin
BobInNJ16-Oct-08 15:51
BobInNJ16-Oct-08 15:51 
AnswerRe: New to MFC Pin
mombawomba16-Oct-08 17:22
mombawomba16-Oct-08 17:22 
QuestionAssignment Code Pin
dtaylor0116-Oct-08 13:53
dtaylor0116-Oct-08 13:53 
AnswerRe: Assignment Code Pin
BobInNJ16-Oct-08 14:40
BobInNJ16-Oct-08 14:40 
I am going to assume that the person's rate is in the variable rate and that the number of hours
worked is in a varaiable called hours. In addition, I am assuming time and a half after 40.

pay = rate*hours + ( (hours>40) ? (rate*hours/2) : 0 );

Now, there is an issue about the type of the variables. Should they be an integer type or a floating point type. There is also the related issue of rounding. I hope this helps.

Bob
GeneralRe: Assignment Code Pin
dtaylor0116-Oct-08 15:21
dtaylor0116-Oct-08 15:21 
GeneralRe: Assignment Code Pin
BobInNJ16-Oct-08 15:29
BobInNJ16-Oct-08 15:29 
GeneralRe: Assignment Code Pin
dtaylor0116-Oct-08 15:36
dtaylor0116-Oct-08 15:36 
GeneralRe: Assignment Code Pin
BobInNJ16-Oct-08 15:40
BobInNJ16-Oct-08 15:40 
GeneralRe: Assignment Code [modified] Pin
dtaylor0116-Oct-08 15:46
dtaylor0116-Oct-08 15:46 
GeneralRe: Assignment Code Pin
BobInNJ16-Oct-08 15:57
BobInNJ16-Oct-08 15:57 
GeneralRe: Assignment Code Pin
dtaylor0116-Oct-08 16:05
dtaylor0116-Oct-08 16:05 
QuestionRegEnumValue() returns garbage value for DWORD and BINARY Datatype! Pin
Supriya Tonape16-Oct-08 12:38
Supriya Tonape16-Oct-08 12:38 
AnswerRe: RegEnumValue() returns garbage value for DWORD and BINARY Datatype! Pin
CPallini16-Oct-08 13:07
mveCPallini16-Oct-08 13:07 
GeneralRe: RegEnumValue() returns garbage value for DWORD and BINARY Datatype! Pin
Supriya Tonape17-Oct-08 11:18
Supriya Tonape17-Oct-08 11:18 
GeneralRe: RegEnumValue() returns garbage value for DWORD and BINARY Datatype! Pin
CPallini17-Oct-08 11:51
mveCPallini17-Oct-08 11:51 
GeneralRe: RegEnumValue() returns garbage value for DWORD and BINARY Datatype! Pin
Supriya Tonape19-Oct-08 0:21
Supriya Tonape19-Oct-08 0:21 
QuestionRe: RegEnumValue() returns garbage value for DWORD and BINARY Datatype! Pin
CPallini19-Oct-08 11:39
mveCPallini19-Oct-08 11:39 
AnswerRe: RegEnumValue() returns garbage value for DWORD and BINARY Datatype! Pin
Supriya Tonape21-Oct-08 2:26
Supriya Tonape21-Oct-08 2:26 
GeneralRe: RegEnumValue() returns garbage value for DWORD and BINARY Datatype! Pin
CPallini21-Oct-08 2:53
mveCPallini21-Oct-08 2:53 
QuestionUsing activex controls Pin
Rhett860616-Oct-08 11:45
Rhett860616-Oct-08 11:45 
Question_beginthread vs _beginthreadex -- FYI Pin
bulg16-Oct-08 11:34
bulg16-Oct-08 11:34 

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.