-
Notifications
You must be signed in to change notification settings - Fork 9
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
base: master
Are you sure you want to change the base?
Conversation
cin >> firstNumber; | ||
cout << "Enter second number: "; | ||
cin >> secondNumber; | ||
(firstNumber < secondNumber ? max = secondNumber : max = firstNumber); |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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) { // Если пользоваатель ввел числа как попало, здесь определяем какое больше. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ну тернарный оператор короче. а вообще всё, как я сегодня сказал - начинаем использовать готовые библиотечные функциии
@@ -0,0 +1,20 @@ | |||
// Используя два указателя на массив целых чисел, скопировать один массив в другой. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
гит тоже смотри. зачем мне в ветке 7.2. задачи из ветки 7.3
No description provided.