Okay, i've only just started learning programming yesterday.
After reading a few articles and tutorials on your site I have myself a compiler (Bloodshed DevC++) and an idea.
I want to make a simple wages calculator, where you enter your hours worked and then your hourly rate, the programme multiplys these together and gives you your wages.
I have got this far:
Code:
#include <iostream>
using namespace std;
int main()
{
cout<<"Wages Calculator Version 0.1.1 by Richard Longstaff";
cin.ignore();
int thisisthehours;
cout<<"Please enter your hours: ";
cin>> thisisthehours;
cin.ignore();
int thisistherate;
cout<<"Please enter your hourly rate: ";
cin>> thisistherate;
cin.ignore();
int thisisthewages;
;thisisthewages = thisisthehours * thisistherate;
cout<<"Your wages are: "<< thisisthewages <<"\n";
cin.get();
}
But I noticed when i run the programme I have to press enter at the beginning after the title to start the programme.
How can i make it so that it goes straight into asking your hours?
I realise this question probably sounds pretty elemental to most of you, and I'm sorry if its too obvious an answer.
Any help greatly appreciated.