АВТ
Language:

Remote Training on Programming

Problems On-line status Contests FAQ
For authors:
Register  ||  Login
 
Hello, Guest! Login or register.

242. BitArray - 2

Time Limit: 1 seconds
Memory Limit:1500KB
Points:5
View Problem Statistics Submit Problem added Undefined

Дополнительное задание для тех, кому интересен C++.

Условие задачи такое же, как и в задаче 228-"Битовый массив", только вместо функции setbit используется операция индексирования слева от знака присваивания.

В конце программы нужно писать строчку: #include "bit-array-test2.h"

Пример некоторых проверок, которые будут выполняться над вашим классом:

BitArray a(10);
a[2]=1;
cout << a << endl;

Результат, который должен получиться:

0010000000

View Problem Statistics Submit Author/source:
Educational Courses / C/C++for EPO-21 / Lab 4 /
228. BitArray 242.
We can all benefit by doing occasional "toy" programs, when artificial restrictions are set up, so that we are forced to push our abilities to the limit. The art of tackling miniproblems with all our energy will sharpen our talents for the real problems. Donald E. Knuth.
time generating 0.234 sec.
© Copyright VSTU, AVT, Nosov D.A.