Click here to Skip to main content
15,936,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Create file and set size Pin
Hamid_RT14-Oct-08 19:57
Hamid_RT14-Oct-08 19:57 
GeneralRe: Create file and set size Pin
NewVC++14-Oct-08 20:24
NewVC++14-Oct-08 20:24 
AnswerRe: Create file and set size Pin
Saurabh.Garg14-Oct-08 20:22
Saurabh.Garg14-Oct-08 20:22 
AnswerRe: Create file and set size Pin
David Crow15-Oct-08 3:40
David Crow15-Oct-08 3:40 
Questionmoving bitmap using Cbitmap and CDC Pin
Arif Liminto14-Oct-08 18:32
professionalArif Liminto14-Oct-08 18:32 
AnswerRe: moving bitmap using Cbitmap and CDC Pin
CPallini14-Oct-08 22:45
mveCPallini14-Oct-08 22:45 
QuestionMicrosoft Visual C++: 10 Is the New 6 Pin
Jack Puppy14-Oct-08 13:07
Jack Puppy14-Oct-08 13:07 
QuestionHelp with my code Pin
dtaylor0114-Oct-08 11:55
dtaylor0114-Oct-08 11:55 
Can someone take a look at my code. I'm having some errors and do not know how to correct. Not looking for someone to give me the answer, but walk me though to better understand.
This is a compiler to compute wages.

#include "stdafx.h"
#include <iostream>
using namespace std;

int _tmain(int argc, _TCHAR* argv[ ])
{

int a = 40; //No. of hrs worked during week
float b = 12.75; //Pay rate: dollars per hour
float c = 510;
cout << a * b;
cout << c;

//Weekly wages

// read in the hours worked

cout << endl;
cout << "Number of hours worked during the week (integer) = ";
cin >> hours_worked;

// read in the pay rate

cout << "Hourly pay rate (specify two digits after the decimal point) = ";
cin >> pay_rate;

// compute wages

sum = (number of hours * pay rate);

// display the result

cout << endl;
cout << "The weekly wages are: $" << wages << endl;

return (0); // terminate with success

}
AnswerRe: Help with my code Pin
jeron114-Oct-08 12:02
jeron114-Oct-08 12:02 
GeneralRe: Help with my code Pin
dtaylor0114-Oct-08 12:08
dtaylor0114-Oct-08 12:08 
GeneralRe: Help with my code Pin
jeron114-Oct-08 13:01
jeron114-Oct-08 13:01 
GeneralRe: Help with my code Pin
dtaylor0114-Oct-08 13:57
dtaylor0114-Oct-08 13:57 
GeneralRe: Help with my code Pin
jeron114-Oct-08 16:24
jeron114-Oct-08 16:24 
GeneralRe: Help with my code Pin
David Crow15-Oct-08 3:48
David Crow15-Oct-08 3:48 
GeneralRe: Help with my code Pin
dtaylor0114-Oct-08 12:55
dtaylor0114-Oct-08 12:55 
Questiontrouble using dll Pin
gargeug14-Oct-08 10:55
gargeug14-Oct-08 10:55 
AnswerRe: trouble using dll Pin
PJ Arends14-Oct-08 14:18
professionalPJ Arends14-Oct-08 14:18 
QuestionNew MFC Functionality by BCG Soft (VS2008 Feature Pack). Pin
oleg6314-Oct-08 9:56
professionaloleg6314-Oct-08 9:56 
QuestionCreating an interface like norton antivirus Pin
emmmatty114-Oct-08 8:42
emmmatty114-Oct-08 8:42 
AnswerRe: Creating an interface like norton antivirus Pin
David Crow14-Oct-08 10:07
David Crow14-Oct-08 10:07 
QuestionDragDropHandlers for catch the copy Pin
alpha_one_x8614-Oct-08 7:02
alpha_one_x8614-Oct-08 7:02 
QuestionRe: DragDropHandlers for catch the copy Pin
David Crow14-Oct-08 7:08
David Crow14-Oct-08 7:08 
AnswerRe: DragDropHandlers for catch the copy Pin
alpha_one_x8614-Oct-08 7:33
alpha_one_x8614-Oct-08 7:33 
QuestionHow to get 64 bit parent process arguments Pin
Jack Rong14-Oct-08 5:39
Jack Rong14-Oct-08 5:39 
AnswerRe: How to get 64 bit parent process arguments Pin
Mark Salsbery14-Oct-08 6:06
Mark Salsbery14-Oct-08 6:06 

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.