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
1 Posted Topic
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.
The End.
amin_a