Не нашли язык программирования которой интересует?
Отправьте нам сообщение о своих предпочтениях:
[email protected]
Голосуй за новые CodeGalaxy тесты .
Принимайте активное участие и создавайте новые C++ задачи для тестов.
Ознакомьтесь с FAQ и узнайте, как внести свой вклад в CodeGalaxy сообщество и заработать Gravity.
Agree with prorokvspsix79. To call function f of class Base which is declared as pure virtual but has definition Base::f();
Nov 11, 10:57:36 PM C++
... Since destructor ~A() isn't declared as virtual and type of pointer "one" is A, when we delete pointer "one", only destructor of class A executes, s = 1 and output 1. Destructor of class B will not execute..
Nov 10, 1:54:28 PM C++
template<template<typename> typename T> class A{}; же допустимо
Oct 4, 4:42:13 PM C++
runtime error is right answer
Oct 3, 2:31:26 PM C++