User Profile
Collapse
-
yea I figured it out last night thanks -
loop and declaring variable question
I have the variables declared twice where i think they should be. If I declare them global I get an uninitialized error, the other position gives me a declaration error. Im using visual C++ express 08 on MS.
using namespace std;
using std::cout;
using std::cin;
using std::endl;
char indicator = 'y';
while( indicator == 'y' || indicator == 'Y')
//declare global variables... -
thanks so far, i figured it out after I posted. I had the equation in the wrong place so nothing was happening(like you pointed out). Now I have it down to illegal continue errors.
int principal, term;
double rate;
int main()
{
{
//get user input principal
cout << endl
<< "Enter principal amount in 100000 format: ";
cin >>...Leave a comment:
-
initialization help on variables
I get an error that my variables are not initializing but I thought I set the program up to accept user input for the calculation. The warnings I get are on the principal, rate, and term. the only other thing I can think of is the program needs some starting point for the variables like principal = 200000, rate = .0575, and term = 30 But I was under the impression that would set the variables to those values. I tried to put those values in but... -
-
powers and syntax question
I am writing a mortgage calculator for class and am having some problems with the algebra expression and a syntax error at the end. I am posting just he equation so far and the error I get. I belie i am with in the rules please don't hammer if i'm not since this is my first class. there are some extra variables for later use.
#include<iostre am>
#include<cmath>
using std::cout;
using std::endl;
...
No activity results to display
Show More
Leave a comment: