How to convert an input of 3 octal numbers into CHMOD permissions into Binary?
问题 I am trying to create a program that takes input from the user using the command line of 3 octal number, for example 5, 2, 6 or 5,2,6 and convert them into 3 sets of 3 digit binary numbers, like 101 010 110, and also print out those corresponding CHMOD permissions like r-x -w- rw-. I am having a lot of trouble splicing these numbers apart with substring into 3 separate numbers of 5 2 and 6. I also need the program to convert from the set of binary digits into 3 numerical digits and