.


:




:

































 

 

 

 


.




2

 

  • .
  • <stdio.h>.
  • , .

 

 

, , , . . . . . .

 

:

* // ( )

/ //

% //

+ // , , ( )

- // , ,

 

( ):

! // (not)

&& // (and)

|| // (or)

 

( ):

== //

!= //

<= //

>= //

< //

> //

 

(statement), () . . . :

 

bool B; // , true false

char C; // , f, D, 9

int I; // : 1, 42, 1961, -6

float F; // : 3.14 2.991e-3

double D; // .

 

. , ( ) , ( , ), I int , ( 4 ).

 

.

( < math.h >):

atan (x), asin (x), acos (x) , , x;

fabs (x), abs (x) ;

pow (x,y) (x y);

exp (x) ;

sqrt (x) ;

tan (x), sin (x), cos (x) , , x ;

log (x), log10 (x) .

 

(< string.h >):

strlen (x) x;

strcpy (x,y) - y x;

strncpy (x,y,n) - y x, n- ;

strcat (x,y) ;

 

/ < stdio.h >:

scanf (x,y) y x;

printf (x,y) y x. , :

%f (, 12.3); , (, %10.5f 12.3 12.30000);

%e (, 1.23e-6);

%d ; , (, %12d);

%s .

 

(assignment operator)

variable = value;

 

value variable.

 

return [ ];

, ( , ) ( ). . . void , .

 





:


: 2015-09-20; !; : 280 |


:

:

, .
==> ...

1331 - | 1233 -


© 2015-2024 lektsii.org - -

: 0.009 .