Search:

Type: Posts; User: boxsterh

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    893

    I'm trying to write a program that will add in an...

    I'm trying to write a program that will add in an unknown series of numbers then divide it by the number of numbers to get an average. Can I use an array for that?
  2. Replies
    5
    Views
    893

    Input question

    How can I input an unknown number of numbers and have eachone declared as some sore of int ? Is this even possible?
  3. Thread: Function Help

    by boxsterh
    Replies
    5
    Views
    884

    I'm sorry, I didn't see the re-written code....

    I'm sorry, I didn't see the re-written code. Thanks!
  4. Thread: Function Help

    by boxsterh
    Replies
    5
    Views
    884

    My compilier says there's a linker error...

    My compilier says there's a linker error...
  5. Thread: Function Help

    by boxsterh
    Replies
    5
    Views
    884

    Function Help

    I'm trying to use the following in a program, but seem to be getting an error. Any ideas why?



    bool greater (int a, int b)
    {
    if (a > b)
    return true;
    }
  6. Replies
    6
    Views
    1,313

    OK, so in order for me to get the info I want I...

    OK, so in order for me to get the info I want I would need to:
    1) use getline() to put my file into string
    2) use find() to get the position of "@"
    3) run some kind of test to pick up the...
  7. Replies
    6
    Views
    1,313

    Some help with find and get

    Hi all. I'm curious if there's a way to use the find function to find a certain character, then the get function to get that complete string? For example, if I were to find the "@" in a file and then...
  8. Replies
    7
    Views
    1,027

    I obviously don't get what is to be done, but I...

    I obviously don't get what is to be done, but I thank you all for your help anyway.
  9. Replies
    7
    Views
    1,027

    OK, if I read this right, var1 should become...

    OK, if I read this right, var1 should become MIDDLE, yes? but the program I'm using gives me an error of: "no match for 'operator=' in '(&std::cin)->std::basic_istream<_CharT, _Traits>::get [with...
  10. Replies
    7
    Views
    1,027

    I'm not asking for someone to do the program for...

    I'm not asking for someone to do the program for me, I had asked you to please give me a little more clarification on how to use the commands you had shown.
  11. Replies
    7
    Views
    1,027

    In Need of Help!

    //******************************************************************
    // PrintName program
    // This program prints a name in two different formats...
  12. Replies
    7
    Views
    1,784

    I'm sorry, I'm still confused.

    I'm sorry, I'm still confused.
  13. Replies
    7
    Views
    1,784

    Would you mind showing me an example?

    Would you mind showing me an example?
  14. Replies
    7
    Views
    1,784

    EOF (End Of File) Loop help

    My assignment is to use an input file of names, and have a program break the names down in first-last, and last-first-initial format. And to use an End Of File loop to terminate. My proglem is that...
  15. Replies
    28
    Views
    2,286

    No loops can't be used. Loops is in our next...

    No loops can't be used. Loops is in our next chapter though. Do you have any ideas? Keep in mind this is a beginning programming class.
  16. Replies
    4
    Views
    1,409

    Thank you so much!

    Thank you so much!
  17. Replies
    4
    Views
    1,409

    // display output cout

    // display output
    cout << "Patient's name " << name ;endl

    ;cout << "Cleaning Charge is " << cbill

    ;cout << "Cavity filling charge is " << cavbill

    ;cout <<...
  18. Replies
    4
    Views
    1,409

    Output spacing problem

    cout << "Patient's name " << name

    ;cout << "Cleaning Charge is " << cbill

    ;cout << "Cavity filling charge is " << cavbill

    ;cout << "X-ray charge is " << xbill ...
  19. Replies
    28
    Views
    2,286

    I do have one more question. My output screen has...

    I do have one more question. My output screen has all the information running together, when i'd rather have it list line by line. how do i get that?
  20. Replies
    28
    Views
    2,286

    Aiya!!! Thank you so much!!

    Aiya!!! Thank you so much!!
  21. Replies
    28
    Views
    2,286

    #include using namespace std; ...

    #include <iostream>

    using namespace std;

    int main ()
    {
    string name; //input variaable for patient's name
    string::size_type namlen; // used for determining string size
    char...
  22. Replies
    28
    Views
    2,286

    OK, how would I check my dataOk variable?

    OK, how would I check my dataOk variable?
  23. Replies
    28
    Views
    2,286

    char xray; char cavity; char cleaning;...

    char xray;
    char cavity;
    char cleaning;
    float xbill;
    float cavbill;
    float cbill;
    float totalbill;
    bool dataOk;

    cout << " Was cleaning performed? (Y or y = yes, N...
  24. Replies
    28
    Views
    2,286

    When i put the above code in, i get this...

    When i put the above code in, i get this response: "ISO C++ forbids comparison between pointer and integer"
  25. Replies
    28
    Views
    2,286

    Newbie question (Please be kind)

    Hi, I'm taking a C++ class, and my teacher isn't really clear. Our assignment deals with answering Yes or No questions to figure out a bill for work done. Also involved we have to test the input to...
Results 1 to 25 of 27
Page 1 of 2 1 2