error C3861: 'stonetolb': identifier not found

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?

error C3861: 'stonetolb': identifier not found

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  // listing2.6.cpp : converts stone to pounds

#include "stdafx.h"
#include <iostream>

using namespace 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();
}


Thank you for your help.
~Dallas
Last edited on
google function prototypes, because im not sure you know what those are
Topic archived. No new replies allowed.