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.
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.
+ 2
how far is your prog?
Which points are open?
+ 1
I do not understand what is required of me
+ 1
Ok
Sometimes understanding comes with doing.
just begin with constructor that takes a string.
+ 1
and after a method that compares two octal numbers....
step by step
+ 1
almost
the constructor takes a string "12365" for example.
0
Yes
0
but what to write in the classroom? and just wrote the code to check (octal number entered, or not)
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?
- 1
ты знаешь восьмеричные числа?
Они знают только цифры от 0 до 7.
Ваша задача написать класс для него.