added new method(global)

This commit is contained in:
ada-dmitry
2023-11-22 09:20:14 +03:00
parent 7d0d3ea7c5
commit 74e6b09e63
9 changed files with 150 additions and 5 deletions
+4 -4
View File
@@ -5,16 +5,16 @@
double f(double x);
void find_zero(double *pa, double *pb, double eps, double *px);
void ctrlc_handler(int signum, char *ch);
void choose_path();
void new_row(double *pa, double *pb);
void ctrlc_handler(int signum);
// void choose_path();
// void new_row(double *pa, double *pb);
int main()
{
double a, b, eps, x, *pa = &a, *pb = &b, *px = &x;
char choice, *ch = &choice;
struct sigaction sa;
sa.sa_handler = ctrlc_handler(, ch);
sa.sa_handler = ctrlc_handler;
sa.sa_flags = 0;
sigemptyset(&sa.sa_mask);