0

HELP!

Описать класс для работы с восьмеричным числом, хранящимся в виде строки символов. Реализовать конструкторы, свойства, методы и следующие операции: - операции присваивания, реализующие значимую семантику; - операции сравнения; - преобразование в десятичное число; - форматный вывод; - доступ к заданной цифре числа по индексу. English: Describe a class for working with an octal number stored as a string of characters. Implement constructors, properties, methods, and the following operations: - assignment operations that implement meaningful semantics; - comparison operations; - conversion to decimal; - format output; - access to a given digit of a number by index.

21st Feb 2020, 2:38 PM
Марк
10 Réponses
+ 3
do you know octal numbers? They only know digits from 0 to 7. 1740 is one 9147 is not an octal number. Your task is to write a class for it.
21st Feb 2020, 3:21 PM
Oma Falk
Oma Falk - avatar
+ 2
how far is your prog? Which points are open?
21st Feb 2020, 3:07 PM
Oma Falk
Oma Falk - avatar
+ 1
I do not understand what is required of me
21st Feb 2020, 3:09 PM
Марк
+ 1
Ok Sometimes understanding comes with doing. just begin with constructor that takes a string.
21st Feb 2020, 3:29 PM
Oma Falk
Oma Falk - avatar
+ 1
and after a method that compares two octal numbers.... step by step
21st Feb 2020, 3:33 PM
Oma Falk
Oma Falk - avatar
+ 1
almost the constructor takes a string "12365" for example.
21st Feb 2020, 3:42 PM
Oma Falk
Oma Falk - avatar
0
Yes
21st Feb 2020, 3:26 PM
Марк
0
but what to write in the classroom? and just wrote the code to check (octal number entered, or not)
21st Feb 2020, 3:28 PM
Марк
0
so, I need to make a constructor that will take an octal number. then which will take (or output?) a decimal string, and then write a method for comparing numbers, right?
21st Feb 2020, 3:37 PM
Марк
- 1
ты знаешь восьмеричные числа? Они знают только цифры от 0 до 7. Ваша задача написать класс для него.
22nd Feb 2020, 10:25 PM
Никита Гуляев
Никита Гуляев - avatar