Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • yes,I can take all led numbers from python on this format,but I wasnt know how to assign them.Thank you! Commented Nov 12, 2018 at 14:20
  • btw does it should be like struct floor_str { int room[MAX_ROOMS]; floor[MAX_FLOORS]; } ? Commented Nov 12, 2018 at 14:24
  • No. You make a struct of rooms as an array and make an array of them as floors. Commented Nov 12, 2018 at 14:36
  • I already figure out with another way but I would like to learn your method also.Could you check your code again? its giving error. Commented Nov 12, 2018 at 20:04
  • The syntax was correct but 'floor' appears to be already defined as something else. An easy solution is to use 'Floor' instead. (edited the solution above) Commented Nov 12, 2018 at 20:38