When compiling codes in Visual C++, It gives an ERROR-Please HELP

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hello everybody
Im very new to C++, and Im using Visual C++ 2008 for Coding.
My operating system is Windows 7 and 64Bit.
In software simple codes have no problem to be compiled, such as Hello Text code,
but a bit more complex codes such as below code never gets compiled.
The Error:
Unable to start program C://User/..../Project/projectNAME/Debug/Filename.exe
The system cannot find the file specified
and this is the code:
//Calculation<br/>
#include <iostream><br/>
#include <iomanip><br/>
#include <math><br/>
using namespace std;<br/>
int main()<br/>
{<br/>
double amount,principal = 1000.0, rate = .05;<br/>
cout <<"Year" << setw( 21 )<br/>
<< "Amount on deposite" << endl;
for ( int year = 1; year <= 10; year++ ){<br/>
amount = principal * pow( 1.0 = rate,year );<br/>
cout << setw( 4 ) << year<br/>
<< setiosflags( ios::fixed | ios::showpoint )<br/>
<< setw( 21 ) << setprecision( 2 )<br/>
<< amount << endl;<br/>
}<br/>
return 0;<br/>
}


Thanks <hr class="sig The World Needs To be Deeply Cleaned.

View the full article
 
Back
Top