does anybody know what is wrong with this code i wrote? i'm working through a C++ book on my own and its difficult for me learning this stuff on my own. I tought myself visual basic and VB.NET no problem, but i've been having some trouble with this.
Code:
#include<iostream.h>
void main()
{
const int arraySize=4;
int integer[arraySize], a;
void quadruple(int integer[]);
for (a=0; a<arraySize; ++a)
{
cout<<"Enter an integer: ";
cin>>integer[a];
}
quadruple(int integer[])
}
void quadruple(int values[])
{
for (a=0; a<arraySize; ++a)
integer[a]=integer[a]*4;
for (a=0; a<arraySize;++a)
cout<<integer[a]<<endl;
}