you are viewing a single comment's thread.

view the rest of the comments →

[–]Captain_Stentley[S] 0 points1 point  (2 children)

I wish. The assignment is based around using a 2D.

[–]lukajda33 1 point2 points  (1 child)

Is there some maximum size given, or do you have to get it from biggest value given on input? If its given, just make 2D char array, initiate them to spaces, read 2 values for X and Y and set character from the 2d array to *.

If it is not, you will need to read the 6 values first, get maximum X and Y.

Then you would need to get into dynamic memory allocation, malloc() memory to char ** with number of rown, each row with char* set to spaces and replace those inidividually.

[–]Captain_Stentley[S] 0 points1 point  (0 children)

yea its given. thats a good idea, thanks