void printer(int** addy) { for (int i = 0; i < 3; i++) { cout << **addy << " "; for (int j = 0; j < 5; j++) { cout << **addy << " "; // works //cout << addy[i][j] << " "; } cout << endl; addy++; }}
Standard input is empty
prog.cpp: In function ‘void printer(int**)’: prog.cpp:3:9: error: ‘cout’ was not declared in this scope cout << **addy << " "; ^ prog.cpp:11:17: error: ‘endl’ was not declared in this scope cout << endl; ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!