Thread: C++

  1. #1
    Unregistered
    Guest

    Unhappy C++

    I need help writing a program containing arrays. The problem is the program must also use <iomanip> to calculate salaries. I cannot get the two together without errors. I can write an array and get it to print out in tabular format. I cannot get it to count. Pleeze help.

    Thanks

  2. #2
    I'm Back
    Join Date
    Dec 2001
    Posts
    556
    dude, you have to give a little bit more details on your program.

    what exactly should be the inputs and what outputs do you want.

    though i think its strange that iomanip will be needed to calc salary.



    edit:
    your subject name "C++" For a moment i got confused, i thought i was on a COBOL site.
    Last edited by ihsir; 04-22-2002 at 12:49 AM.
    -

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    559
    iomanip is usually used for formatting output. You shouldn't need it to calculate. Salary calculation is done with basic math. Are you declaring an int or char array to store double values? That won't work correctly.

Popular pages Recent additions subscribe to a feed