Why can't I input into the pointer array?
#include <iostream>
#include <cstdlib>
#include <cctype>
int main(){
char *g[5];
for (int i=0; i<5; i++)
cin>> g[i];
for (int i=0; i<5; i++)
cout<< g[i]<< endl;
system("PAUSE");
return 0;
}
|
Results 1 to 5 of 5
Thread: Pointer arraysThreaded View
|
Click Here to Expand Forum to Full Width |