Нужно cout перевести в printf и cin в scanf. с++ // #include #pragma hdrstop #include #include #include // #pragma argsused void main(){ double **a; int i,j,n,m,ii,jj,k=0; cout < < "input string size: "; cin > > m; cout < < "input column size: "; cin > > n; a=new double *[n]; cout < < "enter elements" < < endl; for(i=0; i for(i=0; i cout < < "enter string no " < < i+1 < < endl; for (j=0; j> a[i][j]; } for(i=0; i for(j=0; j cout < < endl; } for(i=0; i for(j=0; j if(fabs(a[i][j])> k){ k=fabs(a[i][j]); ii=i; jj=j; } } } cout < < "the result is: " < < endl; for(i=0; i if (i==ii) continue; for(j=0; j if(j==jj) continue; cout < < setw(4) < < a[i][j]; } cout < < endl; } for(i=0; i delete []a; system("pause"); }
int main () {
double q, t;
int i, n;
printf ("Q, T, N? "); scanf ("%lf %lf %d", &q, &t, &n);
i = 1;
while (i <= n) {
q -= t;
printf ("N = %d, Q = %lf\n", i, q);
i++;
}
return 0;
}