.


:




:

































 

 

 

 


: ,




1. , A(N).

2. A(N, M). , .

3. X(N) Y(N) : xi yi xi, yi.

4. A(N, M) , .

5. b(n) a(n) .

6. A(N, N). Y(N) .

7. A(N, M) P Q.

8. A(N) B(2N), , , , C(N).

9. A(N, N), B(N, N), C(N, N) , xij=max{ aij, bij, cij}.

10. A(N) a1 , aN .

11. A(N) , .

12. X(N,M) . , . , .

13. A(N, N) , .

14. A(N) , .

15. A(N, M), B(N, M). (aij, bij) aij< bij.

16. , R . X(N), Y(N).

17. A(N, M). .

18. A(N, M). .

19. A(N, M) Q. .

20. A(N, M) , .

4

:

(4 )

. , , .

:

, ( , void).

.

() , .

. ( ). , .

, , (), {}. , , .

, . , char, int, long, float, double long double. signed unsigned. , int. , . void.

( main) . .

:

_ _ (__) {

;

; }

__ , . . , . :

double f(int a, float b, double d)

{ /* */}

:

return ; return;

. return main(). , , return; return ; main() . , , , .

:

float fun1(int a, float b){

return a*b-a/b; }

int fun2 (int a, int b, float c){

int i,s;

s=0;

for(i=a; i<b; i+=c)

s+=i;

return s; }

void fun3 (int a, int b, int c){

clrscr();

printf(\n fun3 a=%d, b=%d, c=%d,a,b,c);

printf(\nPress any key); getch(); }

() , :

_ ( )

. , . . () , . . , .

. , , .

, , , ( ). ,

float ft(double x, int n){

if (x<n)return x;

return n;}

float.

. . , , .. .

:

Z=fun1(5,22.5)+fun1(5,10.01);

Z=fun2(3,5,.1);

fun3(1,2,5);

, . Z float, int, .

:

_ _ (__);

__ , , .

:

- -, ( ;);

- -, .

, , , . :

float fun1 (int, float);

fun2 (int a, int b, float c);

void fun3 (int, int, int);

:

1. .

2. .

3. .

4. .

5. . .

6. .

7. .

:

3 , , , . .

5





:


: 2016-03-28; !; : 927 |


:

:

- , .
==> ...

1014 - | 833 -


© 2015-2024 lektsii.org - -

: 0.014 .