newbie help.

From: lightning_b0lt (lightning1974(removeme)_at_hotmail.com)
Date: 11/25/03


Date: Tue, 25 Nov 2003 12:58:02 +0000 (UTC)

ive only just started learning C++ ..
and was trying to sort out a little problem.
basically i need help in making this program loop 5 times each time
calculating the added increase.
i dont want it written for me ,,,just some guidance on what im doing or not
doing right !!!
thank you for you pateince.

#include <iostream.h>
#include <iomanip.h>
#include <math.h>

int main()

{ float salary,annual,increase;
  cout <<"\n\nEnter your annual salary:\n\n";
  cin >>salary;
  cout <<"\n\nEnter your annual increase:\n\n";
  cin >>annual;
    if(salary,annual<0)
        cout <<"\n\nNegative values are not allowed\n\n";
     else
   increase = salary + annual;
  cout <<"\n You salary is "<<increase<<endl;
     return 0;
}



Relevant Pages

  • Re: newbie help.
    ... many thanks for your replies ... ... also could you point me in the way of some good C++ websites for learning ... > and was trying to sort out a little problem. ... > basically i need help in making this program loop 5 times each time ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Nth request of book recommendations
    ... > sort of topic/request countless times, but I haven't found past threads as ... not some sort of C encyclopedia. ... Also I'm not sure about its value as a complete reference. ... still learning the language type of book...But if you have the money, ...
    (comp.lang.c)
  • Re: Bill Oddie on 2Play It again" BBC1 tonight.
    ... There were some learning points for us all in there. ... For me it was a bit more about the punk ethos vs. clinical playing by ... he sort of moved the goalposts halfway through. ... making some sort of vaguely musical noise. ...
    (uk.music.guitar)
  • Re: More Kaavya Viswanathan
    ... Copying the style of a revered writer used to be a favored ... method for learning to write. ... This sort of outcome wasn't the ...
    (misc.writing)
  • Re: Libertarian cartoons
    ... misread things, and sneer at any sort of learning you haven't ... That it's an opinion piece with an obvious axe to grind, the sort ... generally sneering at learning you haven't attained, ...
    (rec.arts.sf.written)