• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

How to get string from a user in pointer array???

Status
Not open for further replies.

Ricardo1118

Junior Member
Assalam-u-Alaikum:
I am learning C++ and stuck in pointers. Plz anyone write a simple program using pointer array(ragged Edge Array). Taking string input from user and prints it. All using pointer notations.

As Leros said, this sounds like homework. Whether it is or isn't, you need to post some code or otherwise explain which parts you're stuck on. Just asking people to write you a program using pointers is a little silly.

Markbnj
Programming mod
 
Last edited by a moderator:
While I do understand the desire to learn the use of pointers, user input handling is not the best place. Besides, learning the use of standard library -- std::string, std::vector, streams, iterators, algorithms, etc -- is at least as important as pointers.
 
Status
Not open for further replies.
Back
Top