#include "stdafx.h"
#include "iostream"
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
float gross_pay, payrate;
int hours_worked;
//Input hours_worked
cin>>hours_worked;
//Input pay rate
cin>>payrate;
//Regular pay calculation module
if hours_worked<= 40;
else gross_pay = payrate * hours_worked;
Why won't this work. I am getting
error C2181: illegal else without matching if
Edited by ZekeDragon, 02 March 2011 - 03:18 PM.
Please use [CODE] tags (the # button) when posting code.


Sign In
Create Account

Back to top









