Name: Anonymous 2009-03-19 13:00
I'm having a bit of trouble. My professor printed out a page of c++ examples and the main bit of information explaining what it does isn't there.
Can you please help? The only lines I need help with are the ones indicated by a comment.
Thanks in advance.
Can you please help? The only lines I need help with are the ones indicated by a comment.
#include <iostream>
//line below
int stonetolb(int);
int main()
{
using namespace std;
int stone;
cout << "enter the weight in stone: ";
cin >> stone;
cin.get();
//line below
int pounds = stonetolb(stone);
cout << stone << " stone = ";
cout << pounds << " pounds" << endl;
cin.get();
return 0;
}
//this block
int stonetolb(int sts)
{
return 14 * sts;
}Thanks in advance.