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

Rau maria #87

Open
wants to merge 19 commits into
base: Rau_Maria
Choose a base branch
from
Open

Rau maria #87

wants to merge 19 commits into from

Conversation

Maryrau2201
Copy link

No description provided.

float dx = 0.25;

for (; x < xk; x += dx) {
cout << ((a+(tg(bx)*tg(bx)))/(b+(ctg(ax)*ctg(ax))))) << endl;
Copy link
Owner

Choose a reason for hiding this comment

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

откуда bx и ax появились?)

Copy link
Author

Choose a reason for hiding this comment

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

a и b это коэффициенты при х знака умножения не хватает

SetConsoleOutput(CP_UTF8)
int a, b, num;
cout » "enter first number"
cin » a « endl;
Copy link
Owner

Choose a reason for hiding this comment

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

Запись совсем не смущает? Нет ; в 15 строке, в 16 вообще ужас творится))


int main()
{
{
Copy link
Owner

Choose a reason for hiding this comment

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

зачем эта скобка?

}
float divis(int a, int b)
{
return 0;
Copy link
Owner

Choose a reason for hiding this comment

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

сразу возвращаем 0, без каких-либо операций?)

Copy link
Author

Choose a reason for hiding this comment

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

сразу возвращаем 0, без каких-либо операций?)

нужно было вызвать деструктор,сейчас исправлю

int min = 888;

cin >> n;
int *a = new int[n];
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.

нужно вызвать деструктор,сейчас исправлю

if (a[i] < min) {
min = a[i];
}
}
Copy link
Owner

Choose a reason for hiding this comment

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

Вы вообще код запускали? У Вас каждая функция без фигурных скобок

int *masivaa = new int[row];

FindMin(masiv, row, col, masivaa);

Copy link
Owner

Choose a reason for hiding this comment

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

Тут тоже память не освобождается


while ((x != 0) && (y != 0));
cout << (x + y);
}
Copy link
Owner

Choose a reason for hiding this comment

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

а это запускали?
Тут явно пропущено ключевое слово do

Copy link
Author

Choose a reason for hiding this comment

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

на строке после while не должно быть точки с запятой,а еще не хватает do перед условиями

int main()
{
int x, y;
cin >> x >> y; //то же самое что и в предыдущем
Copy link
Owner

Choose a reason for hiding this comment

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

вот именно, те же ошибки


draw(hight, sym, index1, index2, space);

}
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