Hello everybody !
I want to write a program that reads from the user a number then prints it such in the Elevator
if the input is 1, the output will be like that :

*
*
*
*
*
It seams to use an array 2D, how can I use pointers in this problem? or can I solve it without pointers? I can't get the idea!
Thanks in advance

I tried to load a picture to be more clear but I don't know how:icon_question:

This is called "ascii art". You should use a 2D array if the number of rows and columns is fixed. "Pointers" aren't a solution to a problem, but rather one of many tools c++ offers. If you have specific questions let us know.

Dave

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.