-
Notifications
You must be signed in to change notification settings - Fork 21
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
Merzlyakov vladislav #51
base: Merzlyakov_Vladislav
Are you sure you want to change the base?
Conversation
#include "objects.h" | ||
|
||
const float xn = 0.2f, xk = 0.95f, xp = 0.15f; | ||
const float arr[] = { 0.15f, 0.26f, 0.37f, 0.48f, 0.46f }; |
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,56
#include "objects.h" | ||
#include "function.h" | ||
|
||
|
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.
Помощью Владислава не пользовались?
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.
Было дело
13.10.2020 (Merzlyakov Vladislav)
Outdated
@@ -0,0 +1,40 @@ | |||
#include <iostream> |
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.
Ну, эту работу я видела.
Менять ничего не стали...
13.10.2020 (Merzlyakov Vladislav)
Outdated
@@ -0,0 +1,40 @@ | |||
#include <iostream> |
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.
|
||
void biba(int k, int boba) { | ||
for (int n = 0; n <= k; n++) { | ||
boba *= (n + pow(2, n) / ((4 * n) + (pow(5, 2 * n)))); |
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.
если что "boba" должен иметь тип float
|
||
int main() { | ||
int arr[3][6]; | ||
int new_arr[3]; |
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 @@ | |||
Извините, я немножко не вкатился в динамические массивы |
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,24 @@ | |||
#include <iostream> |
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.
На свою ветку работы скидывайте Nastasia8:Merzlyakov_Vladislav, а не на ветку Nastasia8:master
|
||
void Array::AverageValue() | ||
{ | ||
int AV; |
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.
наверно, тип float
int rows; | ||
int columns; | ||
int* even_arr; | ||
int* AV_arr; |
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.
среднее значение - тип float
this->columns = columns; | ||
this->rows = rows; | ||
even_arr = new int[rows]; | ||
AV_arr = new int[columns]; |
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.
float
{ | ||
for (int i = 0; i < this->rows; i++) | ||
{ | ||
for (int j = 0; j < this->columns; j++) |
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.
Не нужно указывать this->
delete[] arr[i]; | ||
} | ||
delete[] arr; | ||
} |
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.
У Вас arrMin тоже динамический массив, нужно освободить
{ | ||
for (int j = 0; j < columns; j++) | ||
{ | ||
if (arrMin[i] < arr[i][j] && arr[i][j] % 2 != 0) |
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.
У Вас ведь это условие никогда не выполнится, т.к. все arrMin[i] у Вас равны 100,
а значения arr[i][j] находятся в диапазоне чисел, которые меньше 100
|
||
firstPet = Animal("5", "Basilisk", "unknown", "light orange and white") | ||
print(firstPet.name + ",", "he's", firstPet.age, "age old,", firstPet.breed, "breed, also he's", firstPet.color) | ||
|
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,6 @@ | |||
from classes import Employee | |||
|
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.
Ок
No description provided.