анализ

Help me fix the C++code

The Drunkard Game In the drunkard game, a deck of cards is distributed equally to two players. Next, they reveal one top card ... if(d.empty()){ cout<<"second "<<n; } else cout<<"first "<<n; return 0; }

Cyclomatic complexity

I need to estimate the complexity of the program by calculating the cyclomatic McCabe number z (G): z (G) = e-v + 2p, where ... little necessary information on the Internet and basically all the information about the mathematical part of this question.

Mathematica integrals

How to choose a replacement that leads the integral of a given function to the integral of a rational function and decompose it into simple fractions by the method of indefinite coefficients using wolfram mathematica?

Why is it necessary to encapsulate what changes?

A question about design. Why is it necessary to separate what will not change from what can change by encapsulation?