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

Merzlyakov vladislav #51

Open
wants to merge 12 commits into
base: Merzlyakov_Vladislav
Choose a base branch
from

Conversation

hvlll
Copy link

@hvlll hvlll commented Nov 7, 2020

No description provided.

#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 };
Copy link
Owner

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"


Copy link
Owner

Choose a reason for hiding this comment

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

Помощью Владислава не пользовались?

Copy link
Author

Choose a reason for hiding this comment

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

Было дело

@@ -0,0 +1,40 @@
#include <iostream>
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,40 @@
#include <iostream>
Copy link
Owner

Choose a reason for hiding this comment

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

1

Закиньте на свою ветку, пожалуйста, а не на master


void biba(int k, int boba) {
for (int n = 0; n <= k; n++) {
boba *= (n + pow(2, n) / ((4 * n) + (pow(5, 2 * n))));
Copy link
Owner

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];
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 @@
Извините, я немножко не вкатился в динамические массивы
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,24 @@
#include <iostream>
Copy link
Owner

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

@hvlll hvlll changed the base branch from master to Merzlyakov_Vladislav December 22, 2020 00:58

void Array::AverageValue()
{
int AV;
Copy link
Owner

Choose a reason for hiding this comment

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

наверно, тип float

22.12.2020/22.12.2020.cpp Show resolved Hide resolved
int rows;
int columns;
int* even_arr;
int* AV_arr;
Copy link
Owner

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];
Copy link
Owner

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++)
Copy link
Owner

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;
}
Copy link
Owner

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)
Copy link
Owner

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)

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,6 @@
from classes import Employee

Copy link
Owner

Choose a reason for hiding this comment

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

Ок

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