My program scan multidimensional array and sends it to a function that will handle data entry in it. when I send the "array [] [nbAmis]" I get an error that tells me nbAmis not reported.
Code:# include <iostream> using namespace std; int main () ( [...] de(nbAmis, table); [...] return 0; ) void de (nbAmis int, char array [] [nbAmis]) ( for (int i = 0; i <nbAmis; i + +) ( court << "Name of friend" <<i +1 << ""; cin>> array [i] [0]; ) )
Bookmarks