# include
# include "stdafx. H"
# include
using namespace std;
Int main ()
{
Double money, years, rate, sum;
Cout & lt; <"The fixed number of year, please enter the principal, deposit rate, separated by a space" & lt;
While (money & gt; 0)
{
Sum=money * pow ((1 + rate), years);
Cout & lt; <"Interest";
Cout & lt;
}
CodePudding user response:
# include# include "stdafx. H"//the bank moved to the front
CodePudding user response:
Error LNK2005 _main already in ConsoleApplication6. Obj ConsoleApplication6 defined in D: \ \ ConsoleApplication6 \ ConsoleApplication6 \ c + + source. Obj 1
After moving into the case
CodePudding user response:
Close the project, to try to build a project,CodePudding user response:
//ConsoleApplication7. CPP: defines the entry point of the console application,//
# include "stdafx. H"
# include
# include
using namespace std;
Int main ()
{
Double money, years, rate, sum;
Cout & lt; <"The fixed number of year, please enter the principal, deposit rate, separated by a space" & lt;
While (money & gt; 0)
{
Sum=money * pow ((1 + rate), years);
Cout & lt; & lt;" Principal and interest ";
Cout & lt;
}
return 0;
}
Error changed again
1... Change file contains not said in the current code page 936 characters
2... The constants are a newline..
3.. Syntax error lack;
CodePudding user response:
't look, in addition to the string, all punctuation should be English punctuation, a string of double quotation marks is also in English,CodePudding user response:
So how to solve ah