03.03.2014, 17:06. Просмотров 1879. Ответов 22
Помогите разобрать в ошибке.
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/link.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
C++ |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| #include <iostream.h>
int Add (int x, int y)
{
cout << "In Add(), received " << x << " and " << y << "\ n ";
return (x+y);
}
int main ()
{
cout << " I'm in main()!\ n";
int a, b, c;
cout << " Enter two numbers: ";
cin >> a;
cin >> b;
cout << "\ nCalling Add()\n";
c=Add(a,b);
cout << "\ nBack in main().\ n";
cout << "c was ste to " << c;
cout << "\ nExiting... \ n\ n";
return 0;
} |
|