Hi,
I've been reading "C++ In 21 Days", I read functions a while back and decided to write some, i wrote the code and it gave me a error, so i copied and pasted code from the book and still got a error, you must see from my point of view if I'm learning a language i don't want to be tought the wrong things, thats like learning French and saying "Hallo" is hello, though the real hello is "Bonjour".
Heres the code non the less..
#include <iostream>
using namespace std;
unsigned short FindArea();
int main()
{
unsigned short width, lenght, area;
cout << "How Wide Is Your Yard? : ";
cin >> width;
cout << endl << "How Long Is Your Yard? : ";
cin >> lenght;
area = FindArea(width, lenght);
cout << endl << endl << "Your Yard Is " << area << " Square Feet!";
}
unsigned short FindArea()
{
unsigned short l, w;
return l * w;
}
"too many arguments to function `short unsigned int FindArea()'