Search:

Type: Posts; User: Lucid003

Search: Search took 0.00 seconds.

  1. Unfortunetely we haven't learned about clear() in...

    Unfortunetely we haven't learned about clear() in class yet, and so it probably won't be allowed in our homework (as she has stated something to this effect before). I half expected most, if not all...
  2. Determining if input is int, double, or char

    Alright, I'm writing a program that calculates a grade average. I want to allow users to input integers (80, for instance), doubles (92.5), or letters (A, F, a, f, etc).

    Basically, I'll be adding...
  3. Replies
    7
    Views
    2,122

    Thank you very much. So, basically, unless I'm...

    Thank you very much. So, basically, unless I'm using a char array, I cannot use p++? If that's the case, then I'm happy with my result.

    As for not creating the loanPtr, this assignment...
  4. Replies
    7
    Views
    2,122

    pointers, arrays, for loop, class

    Alright, what I'm trying to do is use a for loop to calculate a monthly payment using a position in the array, and using a pointer to change the original value of the array to what I calculate. I...
  5. Replies
    10
    Views
    22,045

    Well, either I'm not understanding the cin.get()...

    Well, either I'm not understanding the cin.get() part in your last paragraph, or I'm just implementing it incorrectly. Either way it's a lot of trouble.

    Thanks for the help, everyone. I've got a...
  6. Replies
    10
    Views
    22,045

    Daved, thanks for the help... unfortunetely I...

    Daved, thanks for the help... unfortunetely I cannot use what you have provided me :(

    This is homework (if you couldn't guess :P ), and we aren't allowed to use anything that hasn't been covered...
  7. Replies
    10
    Views
    22,045

    Hmm.. notice at the end of my while loop, I have...

    Hmm.. notice at the end of my while loop, I have this:

    default: //catch all other characters
    cout << "Incorrect character entered." << endl;
    break;
    }

    cout << "Enter the product...
  8. Replies
    10
    Views
    22,045

    Well, the thing is that I don't want the while...

    Well, the thing is that I don't want the while statement to end on a default. I want it to cout that an incorrect character was entered and then prompt them to enter a character, and store it in...
  9. Replies
    10
    Views
    22,045

    Switch statement = infinite loop

    alright... I'm writing a program and my switch statement seems to be causing an infinite loop in certain circumstances.

    When putting in the case numbers, the program works just fine... but when...
Results 1 to 9 of 9