In the code below, I was testing to see if putting the function body with the prototype would work. I'm assuming this makes it inline like it would in a class?
Code:#include <iostream> using namespace std; int mult(int num) { return num*num; }; int main() { int number; cout<<"Input a number. "; cin >>number; cout<<"That number squared is: "<<mult(number)<<endl; system("PAUSE"); return 0; }