what should to be the proper parameter for the function "Break" in the program below.
#include <iostream.h>
void Break( char **number );
void main()
{
int *iNumber[15];
for( int j = 0; j < 5; j++ )
{
for( int k = 0; k < 15; k++ )
{
cout<<"Enter a number: ";
cin>>iNumber[j][k];
}
}
Break( iNumber );// what should be the parameter here ?
}
void Break( char **number )
{
for( int i = 0; number != '\0'; i++ )
cout<<number<<",";
}
"iNumber" alone doesn't work.
i'am trying to call the function "Break",i can't seems to found the correct way to write the parameter for that function.
Any help will be very apreciated !
#include <iostream.h>
void Break( char **number );
void main()
{
int *iNumber[15];
for( int j = 0; j < 5; j++ )
{
for( int k = 0; k < 15; k++ )
{
cout<<"Enter a number: ";
cin>>iNumber[j][k];
}
}
Break( iNumber );// what should be the parameter here ?
}
void Break( char **number )
{
for( int i = 0; number != '\0'; i++ )
cout<<number<<",";
}
"iNumber" alone doesn't work.
i'am trying to call the function "Break",i can't seems to found the correct way to write the parameter for that function.
Any help will be very apreciated !