c++ income program

Write your question here.
I wrote this C++ program and everything runs well but when I save it and reopen it I get these two link errors when I run it again. one of them was Error 1 error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup and this one Error 2 error LNK1120: 1 unresolved externals


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
  #include<iostream>
#include<string>


double hoursworked1;
double hoursworked2;
double hoursworked3;
double hoursworked4;
double hoursworked5;
double totalhoursworked;
double taxespaid;

const double Salarly = 15.50;
double amountearned;
double expenses;
double schoolsupplies;
double colthes;

double amountleft;

using namespace std;

int main()
{
	
	cout << "enter the hours worked each week for total of 5 weeks";
	cin >> hoursworked1 >> hoursworked2 >> hoursworked3 >> hoursworked4 >> hoursworked5;
	totalhoursworked = hoursworked1 + hoursworked2 + hoursworked3 + hoursworked4 + hoursworked5;
	amountearned = totalhoursworked*Salarly;
	
	taxespaid = amountearned*.14;
	amountearned = amountearned - taxespaid;

	schoolsupplies = amountearned*.20;
	
	colthes = amountearned*.5;

	expenses = schoolsupplies + colthes;
	amountearned = amountearned - schoolsupplies - colthes;

	amountleft = amountearned*.25;
	cout << "your amount left " << amountleft << " taxes paid  " << taxespaid << "expenses" << expenses;
	return 0;

}
visual studio ?

project ->properties ->linker ->system ->subsystem ->console
thank you , I really appreciate it
Topic archived. No new replies allowed.