Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sigachev week7.2 without task 2 and task 3 #92

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SigachevSergey
Copy link
Collaborator

No description provided.

cin >> firstNumber;
cout << "Enter second number: ";
cin >> secondNumber;
(firstNumber < secondNumber ? max = secondNumber : max = firstNumber);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

почему тут макс определяется? а не внутри функции

int starLine(int number)
{
if (number < 1)
return 1;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

что означает возвращаемое значение? и почему его нет ниже

cin >> firstNumber;
cout << "Enter second number: ";
cin >> secondNumber;
if (firstNumber > secondNumber) { // Если пользоваатель ввел числа как попало, здесь определяем какое больше.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ну тернарный оператор короче. а вообще всё, как я сегодня сказал - начинаем использовать готовые библиотечные функциии

@@ -0,0 +1,20 @@
// Используя два указателя на массив целых чисел, скопировать один массив в другой.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

гит тоже смотри. зачем мне в ветке 7.2. задачи из ветки 7.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants