Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
Ranked #107.70K
~367 People Reached
Favorite Forums
Favorite Tags
c++ x 1

1 Posted Topic

Member Avatar for hitmanner

char** chpp = (char**) malloc(sizeof(char)); char* chp = "aaa"; chpp[0] = chp; chp = "bbb"; chpp[1] = chp; chp = "ccc"; chpp[2] = chp; for(int i=0; i<3; i++) [INDENT]cout << chpp[i] << endl;[/INDENT] I've tried to write it simple. However you can expand it and use it in a loop.

Member Avatar for amin_a
0
367

The End.