#fix row position in the matrix

22 messages · Page 1 of 1 (latest)

wheat cobaltBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

honest crown
fast charm
#
  1. Don't do %c, do %6c
  2. Before printing the elements of row n (starting from 0) you want to print 'A' + n, no need for these row and column arrays.
fast charm
fiery mothBOT
#
Program Output
A     B     [C]     [D]     E     F     G     H
1   1   0   0   0   1   0   0   
1   1   1   0   0   0   0   0   
0   1   1   0   1   1   0   0   
0   0   0   1   1   0   0   0   
0   0   0   1   1   0   0   0   
1   0   1   0   0   1   0   0   
1   
fast charm
#

In pseudo-code this would look like so:

-- print 'A' to 'A' + n
for row=0 to SIZE
    -- print 'A' + row
    -- print the elements of that row
    -- print newline
wheat cobaltBOT
#
Monke
Please Do Not Send Screenshots!

They're hard to read and prevent copying and pasting.

fast charm
#

And you didn't implement any of the changes I mentioned

honest crown
fast charm
#

with my psuedo code I give you a rough structure which you can then translate into C code

honest crown
fast charm
#

I'll try to find some time later, currently playing LoL Clash

wheat cobaltBOT
#

@honest crown

Please Do Not Delete Posts!

Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.

main bobcat
#

@honest crown did you manage to run the code successfully?

honest crown
#

Hi, yes i figured it out

#

!solved

wheat cobaltBOT
#

Thank you and let us know if you have any more questions!

This thread is now set to auto-hide after an hour of inactivity

main bobcat
honest crown
#

Sure