Here is my code:
#include <iostream.h>
using std::cout;
using std::cin;
using std::endl;
void triplecallbyreference( int & );
int main()
{
int num1;
cout << "Enter the number to cube: ";
cin >> num1;
cout << num1<< " cubed is ";
triplecallbyreference( num1);
cout << endl;
return 0;
}
void power( int &num2 )
{
num2 = num2 * num2 * num2;
}
Now here are my errors when I go to compile:
/usr/bin/ld:
Unresolved:
triplecallbyreference(int &)
collect2: ld returned 1 exit status
Can someone tell me 1) what does this error mean, and 2) what am I doing wrong in my code?
Thank you! The Ski