I'm trying to write this code and having trouble compiling the code I've tried everthing but doesn't seem to want to work right, can you find any thing wrong in my code?
{// Overtime Pay Structures.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using std::cout;
using std::endl;
using std::cin;
//Definition of a struct to represent overtime pay calculator
struct overtime
{
char Name[80];
int Hours;
int Wage;
};
class OTpay
{
public:
double m_hours;
double m_wage;
double m_name;
};
OTpay::OTpay();
int _tmain(int argc, _TCHAR* argv[])
{
OTpay person1;
double otXpay = 0.00;
double otHours = 0.0;
person1.m_hours = 42.0;
person1.m_name = ("John");
person1.m_wage = 21.55;
//Calcualte overtime pay and hours for person1
otXpay = m_wage-1.5;
otHours = m_hours+40;
cout<<endl
<<"Person 1 Name is: " <<person1.m_name;
cout<<endl
<<"Person 1 Overtime Hours are: " <<otHours;
cout<<endl
<<"Person 1 OVertime Pay is: " <<otPay;
cout<<endl;
return 0;
}