I'm a newbie at C++. I can't figure out why my program won't build. Could someone please help?
I get the error
1>LINK : error LNK2001: unresolved external symbol _mainCRTStartup
1>c:__namestuff__.exe : fatal error LNK1120: 1 unresolved externals
// File : name.cpp
// Description: Does stuff with stock
// Programmer: name
// Date: 5/23/11
#include <iostream>
using namespace std;
int main()
{
int stock;
cout << "Please the number of stocks sold: ";
cin >> numberofstocks;
cin.ignore();
cout.setf(ios::right) << "You entered: " << numberofstocks << "\n";
cin.get();
cout << "Please enter a single share price: ";
cin >> singleshareprice;
cin.ignore();
cout.setf(ios::right) << "You entered: " << singleshareprice << "\n";
cin.get();
GrossStockProceeds = numberofstocks * singleshareprice
cout.setf(ios::right) << "The gross stock proceeds is "
<< GrossStockProceeds << endl;
const float COMMISSION = .06f;
commission = GrossStockProceeds * COMMISSION
cout.setf(ios::right) << "Commission on the gross stock proceeds using a 6% commision rate is "
<< commission << endl;
NetProceeds = GrossStockProceeds - commission
cout.setf(ios::right) << "The net procceds are "
<< NetProceeds << endl;
return 0;
}