-
Notifications
You must be signed in to change notification settings - Fork 26
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
base: Rau_Maria
Are you sure you want to change the base?
Rau maria #87
Conversation
float dx = 0.25; | ||
|
||
for (; x < xk; x += dx) { | ||
cout << ((a+(tg(bx)*tg(bx)))/(b+(ctg(ax)*ctg(ax))))) << endl; |
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.
откуда bx и ax появились?)
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.
a и b это коэффициенты при х знака умножения не хватает
SetConsoleOutput(CP_UTF8) | ||
int a, b, num; | ||
cout » "enter first number" | ||
cin » a « endl; |
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.
Запись совсем не смущает? Нет ; в 15 строке, в 16 вообще ужас творится))
|
||
int main() | ||
{ | ||
{ |
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 divis(int a, int b) | ||
{ | ||
return 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.
сразу возвращаем 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.
сразу возвращаем 0, без каких-либо операций?)
нужно было вызвать деструктор,сейчас исправлю
int min = 888; | ||
|
||
cin >> n; | ||
int *a = new int[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.
Если выделяете динамически память, то в конце ее нужно освобождать
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.
нужно вызвать деструктор,сейчас исправлю
if (a[i] < min) { | ||
min = a[i]; | ||
} | ||
} |
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 *masivaa = new int[row]; | ||
|
||
FindMin(masiv, row, col, masivaa); | ||
|
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.
Тут тоже память не освобождается
|
||
while ((x != 0) && (y != 0)); | ||
cout << (x + y); | ||
} |
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.
а это запускали?
Тут явно пропущено ключевое слово do
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.
на строке после while не должно быть точки с запятой,а еще не хватает do перед условиями
int main() | ||
{ | ||
int x, y; | ||
cin >> x >> y; //то же самое что и в предыдущем |
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.
вот именно, те же ошибки
|
||
draw(hight, sym, index1, index2, space); | ||
|
||
} |
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.