I tried making a function to get used to them, but this code does not work. What's wrong with it?
thanks alot for any helpCode:
#include <iostream.h>
int mult(int x);
int main()
{
int x;
cout << "Please give a number for 'X'";
cin >> x;
cout << "X + 1 is " << mult(X);
return 0;
}
int mult(int x)
{
return x;
}