Please, I need help with the C++ libraries

Halp!

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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#include <iostream> //Basic input output for interaction with user
#include <Windows.h> //Might need for Sleep function
#include <conio.h>
#include <string> //Operator
#include <cstdlib>

using namespace std; //No need to explain...

int Main()
{
	int num1 = 0, num2 = 0, Continue = 1;
	string Operator;

	while(Continue == 1)
	{
		cout << "Hello, and thank you for choosing Awesome Calculator v1.0" << endl;
		cout << "Please enter an operation such as +, -, /, or *" << endl << endl;
		getline(cin, Operator);
		while (Operator != "+" && Operator != "-" && Operator != "/" && Operator != "*")
		{
		cout << "That is not a mathematical operator, please enter a proper mathematical operator: " << endl;
		getline (cin, Operator);
		}
		if(Operator == "+")
		{
			cout << "Please enter the first number to add: " << endl;
			cin >> num1;
			cout << "Please enter the second number to add: " << endl << endl << endl;
			cin >> num2;

			cout << "Calculating";
				cout << "25%";
				Sleep(500);
				cout << "50%";
				Sleep(500);
				cout << "75%";
				Sleep(500);
				cout << "100%";
				
				cout << "The result for " << num1 << " + " << num2 << " = " << num1 + num2;


		}
		else if(Operator == "-")
		{
			cout << "Please enter the first number to subtract: " << endl;
			cin >> num1;
			cout << "Please enter the second number to subtract: " << endl << endl << endl;
			cin >> num2;

			cout << "Calculating";
				cout << "25%";
				Sleep(500);
				cout << "50%";
				Sleep(500);
				cout << "75%";
				Sleep(500);
				cout << "100%";
				
				cout << "The result for " << num1 << " - " << num2 << " = " << num1 - num2;
		}
		else if(Operator == "/")
		{
			cout << "Please enter the first number to divide: " << endl;
			cin >> num1;
			cout << "Please enter the second number to divide: " << endl << endl << endl;
			cin >> num2;

			cout << "Calculating";
				cout << "25%";
				Sleep(500);
				cout << "50%";
				Sleep(500);
				cout << "75%";
				Sleep(500);
				cout << "100%";
				
				cout << "The result for " << num1 << " / " << num2 << " = " << num1 / num2;
		}
		else if(Operator == "*")
		{
			cout << "Please enter the first number to multiply: " << endl;
			cin >> num1;
			cout << "Please enter the second number to multiply: " << endl << endl << endl;
			cin >> num2;

			cout << "Calculating";
				cout << "25%";
				Sleep(500);
				cout << "50%";
				Sleep(500);
				cout << "75%";
				Sleep(500);
				cout << "100%";
				
				cout << "The result for " << num1 << " * " << num2 << " = " << num1 * num2;
		}

	}
	return 0;
}


Error	1	error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup	C:\Users\Raka Gunarto\Documents\Visual Studio 2012\Calculator\Calculator\MSVCRTD.lib(crtexe.obj)	Calculator


Using MVSC compiler v100
int main()
Case sensitive.
using namespace std; //No need to explain...

http://www.parashift.com/c++-faq/using-namespace-std.html
changed int Main, same error
the namespace had nothing to do with the error as I rewrote it using std::
Changed int main worked after I compiled it a second time. Thanks
Topic archived. No new replies allowed.