So im trying to learn c++, and this book gives me a conversion code.
What does sts mean in the bottom of the code?
//
// main.cpp
// CODE
//
// Created by Larry Navarro on 4/5/14.
// Copyright (c) 2014 Flawless. All rights reserved.
//
#include <iostream>
int stonetolb (int);
int main()
{
using namespace std;
int stone;
cout << "enter the weight in stone: ";
cin >> stone;
int pounds = stonetolb(stone);
cout << stone << "stone = ";
cout << pounds << "pounds." <<endl;
return 0;
}
int stonetolb(int sts)
{
return 14 * sts;
}
//Stone to lb.
sts is function parameter (formal parameter). It receives the external values into the function.