This is my program so far that i have started on
Code:
#include <iostream>
using namespace std;
int GetVal()
{
int Value;
Value=GetVal("Please enter a value in the range 1 to 5");
if (Value = 1>5)
{
}
else
{
cout<< "Enter a number within the range 1-5";
cin >> Value;
}
}
void main ()
{
GetVal();
system("pause");
}
the only problem at the moment is that i cant get
Code:
Value=GetVal("Please enter a value in the range 1 to 5");
to work also i dont think it is being passed through a string.
anyone know what the problem with it is?