May 28, 2013 at 8:35pm
You're attempting to print out a
void function, which is only going to give you an error.
Cout will print values, but will not call your functions for you. Par needs to be called on a separate line by itself:
1 2 3 4 5 6
|
int main()
{
int n[]={1,2,3,4};
cout<<"haha atlast it happened";
par(n,4); //call function
}
|
another note, C++11 make the '=' arbitrary for array brace initialization so you are able to leave that out.
Last edited on May 28, 2013 at 8:37pm