Does the code contain errors that prevent the code from compiling?
class A {
  const int a;
  A() { a = 10; }
};
Explanation
constant class members must be initialized in the constructor initialization list.

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Продолжайте изучать
тесты по C++
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты