logo

Crowdly

Dado el siguiente programa, ¿qué afirmación es cierta? 1 #include <iostream...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Dado el siguiente programa, ¿qué afirmación es cierta?

1#include <iostream>

 

2class test {

3public:

4 test(bool b) noexcept : b_{b} {}

5 void func() noexcept

6 {

7 if (!b_) throw "Error en test::func";

8 }

9private:

10 bool b_;

11};

 

12int main() try

13{

14 test t(false);

15 t.func();

16 std::cout << "Fin del programa" << std::endl;

17} catch (const char* ex) {

18 std::cerr << ex << std::endl;

19}

100%
0%
0%
0%
More questions like this

Want instant access to all verified answers on av03-24-25.uca.es?

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