Write your question here.
Hi. I am new to C++ and could not find anything on here that worked with my coding. Can someone explain why I am getting this error and how I can correct it?
// listing2.6.cpp : converts stone to pounds
#include "stdafx.h"
#include <iostream>
usingnamespace std; //function protype
int main()
{
int stone;
cout<< "enter the weight of the stone:";
cin>>stone;
int pounds=stonetolb(stone);
cout<< stone <<"stone are";
cout<<pounds<< "pounds.\n";
return 0;
}
int stonetolb(int sts)
{
return 14*sts;
cin.get();
cin.get();
}