logo

Crowdly

Browser

Add to Chrome

Об'єктно-орієнтоване програмування (1 курс КН)

Looking for Об'єктно-орієнтоване програмування (1 курс КН) test answers and solutions? Browse our comprehensive collection of verified answers for Об'єктно-орієнтоване програмування (1 курс КН) at moodle.chnu.edu.ua.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Чи існує в С ++ готовий набір шаблонів:

(C++)

View this question
Які основні особливості контейнера STL вектор?

(C++)

View this question
template void replace (

ForwardIterator first,

ForwardIterator last,

const T & x, const T & y)

{

while (first! = last)

{

if (* first == x)

* First = y;

++ first;

}

return first;

}

]]> Які вимоги до Ітератор, які беруть участь в алгоритмі replace (), імплементація якого наведена вище, коректні?

(C++)

View this question
Які цілі переслідувалися і яким цінностям віддавалася перевага при створенні STL?

(C++)

0%
0%
View this question
Які контейнери STL є послідовними?

(C++)

View this question
Якого класу ітераторів еквівалентні вказівники C++?

(C++)

0%
0%
0%
0%
View this question
Які твердження про різні види узагальнених алгоритмів вірні?

(C++)

0%
0%
View this question
#include void my_open1 ()

{

throw int (8);

}

void my_open2 ()

try

{

throw std :: logic_error ( "");

}

catch (std :: runtime_error & err) {}

void my_open3 ()

try

{

throw std :: runtime_error (& guot; runtime ");

}

catch (const std :: runtime_error * err) {}

struct ERR_ {};

void my_open4 () {

try

{

throw ERR_ ();

}

catch (...) {}

}

int main () {

try {

}

catch (...) {

return 5;

}

return 0;

}

]]> Дзвінок яких з функцій зсередини блоку try в функції main () призведе до завершення програми з результатом 5?

(C++)

0%
View this question
struct A {};

struct B {};

struct C {};

struct D {};

struct E {};

struct F {};

int main ()

{

try

{

foo ();

}

catch (const A & a) {}

catch (static const B *) {}

catch (C c) {}

catch (volatile D * d) {}

catch (virtual E * e) {}

catch (F * &) {}

catch (...)

{

return 5;

}

return 0;

}

]]> Обробники винятків якого типу записані неправильно?

(C++)

0%
0%
0%
0%
View this question
Які твердження про роботу з винятками в мові С / C++ вірні?

(C++)

View this question

Want instant access to all verified answers on moodle.chnu.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome