User Profile

Collapse

Profile Sidebar

Collapse
cbrrr
cbrrr
Last Activity: Sep 25 '08, 02:56 AM
Joined: Sep 12 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • cbrrr
    replied to initialization help on variables
    in C
    yea I figured it out last night thanks
    See more | Go to post

    Leave a comment:


  • cbrrr
    started a topic loop and declaring variable question
    in C

    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...
    See more | Go to post

  • cbrrr
    replied to initialization help on variables
    in C
    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 >>...
    See more | Go to post
    Last edited by cbrrr; Sep 24 '08, 12:25 AM. Reason: reordered/ input restictions, input values,

    Leave a comment:


  • cbrrr
    started a topic initialization help on variables
    in C

    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...
    See more | Go to post
    Last edited by cbrrr; Sep 23 '08, 09:36 PM. Reason: tried a change to answer my own question

  • cbrrr
    replied to powers and syntax question
    in C
    Thanks for the help I really appreciate it.
    See more | Go to post

    Leave a comment:


  • cbrrr
    started a topic powers and syntax question
    in C

    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;

    ...
    See more | Go to post
No activity results to display
Show More
Working...