Не знайшли мову програмування якою цікавитеся?
Надішліть нам повідомлення про свої переваги:
[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++