I know this has been asked a thousand times but I can't fix this simple problem.
This is the code:
#include<iostream>
using namespace std;
int main()
(
bool response= 234;
char character= 68;
int integer= 123.456789;
float single_precision_number= 1234.56789;
double double_precision_number= 1234.56789
cout << "response = " << response << endl;
cout << "character = " << character << endl;
cout << "integer = " << integer << endl;
cout << "single_precision_number = " << single_precision_number << endl;
cout << "double_precision_number = " << double_precision_number << endl;
return 0;
}
the following error:
(8): warning C4305: 'initializing' : truncation from 'int' to 'bool'
(10): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
(11): warning C4305: 'initializing' : truncation from 'double' to 'float'.
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup