PHP Code:
#include <iostream.h> // need this for Input/Output
// global variables and constants
const int NUMBER = 6;
// function prototypes
void FUNPROT( char vals[NUMBER] ); // function prototype
int main()
{
// variable declaration
char code[NUMBER];
int i;
//code
for( i = 0; i < NUMBER; i++ )
{
cout << "Enter input #" << i + 1 << " here:" << flush;
cin >> code[i];
}
FUNPROT( code );
return 0;
}
// function implementation
void FUNPROT( char vals[NUMBER] )
{
// variable declaration
int i;
// code
for( i = 0 ; i < NUMBER ; i++ )
{
cout << "Input " << i + 1 << " was: " << vals[i] << endl;
}
}
You have mixed up your types and prototypes and had some things in there twice. Make sure you know what you need those parts for that said "//need this!".