Ok, I am trying to do a licene plate program using functions and I am getting this one sytax error 'declartation sytax error' i am trying to use functions
please excuse the comments, I am tyring to get this thing to work.
#include<iostream.h>
#include<string.h>
void getInput(char &alpha , int &numeric);
//char processEverything(char &alph, int &num)
//void PrintOutput(final)
int main()
{
int alpha,numeric
//char final
getInput(alpha, numeric);
cout<< &alpha ;
//final = ProcessEverything(&alpha, &numberic)
//PrintOutput(final)
return 0 ;
}
void getInput(alpha, numeric)
{
cout<<"What are the letters of the licence plate?";
cin>>alpha;
cout<<'\n'<<"What are the numbers?";
cin>>numeric;
}
please excuse the comments, I am tyring to get this thing to work.
#include<iostream.h>
#include<string.h>
void getInput(char &alpha , int &numeric);
//char processEverything(char &alph, int &num)
//void PrintOutput(final)
int main()
{
int alpha,numeric
//char final
getInput(alpha, numeric);
cout<< &alpha ;
//final = ProcessEverything(&alpha, &numberic)
//PrintOutput(final)
return 0 ;
}
void getInput(alpha, numeric)
{
cout<<"What are the letters of the licence plate?";
cin>>alpha;
cout<<'\n'<<"What are the numbers?";
cin>>numeric;
}