Hi,
i am having some difficulty calling this function, can someone please point out what i have done wrong here. The code is as below
appreciate your help.
#include<iostream>
#include<stdlib.h>
using namespace std;
void speed_value(int input)
{
int speed;
char character;
if(speed > 60 && speed <65)
{
cout<<"Warning"<<endl;
}
else if(speed > 60 && speed <65 && character == 'y')
{
cout<<"Warning + take a shower"<<endl;
}
cout<<endl;
}
int main()
{
int speed;
char character;
cout<<"Enter the speed in KM/HR"<<endl<<"\n:";
cin>>speed;
cout<<"Enter y if drunk or n if not drunk"<<endl<<"\n:";
cin>>character;
cout<<speed_value<<endl;
system("PAUSE");
return 0;
}