Which code does not contain errors?
Explanation
In this case:
typedef int Type;
template <class Type>
class Class {
    ...
    public:
    Type val;
}
the declared template parameter names hide the names in the global space.

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Продовжуйте вивчати
тести з C++
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести