.


:




:

































 

 

 

 





(ID) * (, , , , ..). , ; ID ; ID .

. , Borland C++ 6.0 , 32 . .

:

ID () index, max ();

ID , , Spis, Stack;

ID () INDEX, MAX _ INT;

, , , birth _ date , sum ;

ID , , , birth _ date, , birthDate.

. Name, NAME, name .

() .

, ANSI C:

auto do goto signed unsigned
break double if sizeof void
case else int static volatile
char enum long struct while
const extern register switch  
continue float return typedef  
default for short union  

 

. , .

/* */, ++ , // .

 

, , , main * (). ( ) ().

:

< >

< typedef >

< >

< >

<>

, :

< > <> < ID > (< >)

{

}

.

.

.

(. 3), .

#, , .

, (include) ( ) , .

# include < ID _ . h >

h .

(< >), , ( ), .

:

stdio.h -;

math.h ;

conio.h (, ).

. (define)

# defineID

: # define PI 3.1415927

PI 3.1415927.

, :

#include <stdio.h>

void main(void)

{ // main

printf( 10!);

} // main

() , . ID . , void .

main .

, ;. printf, , .

__________________________________________________________________

Visual C++ 6.0 . 5.

__________________________________________________________________

 

: (), , () .

:

;

(), ;

, .

: int (integer), float char (character).

, short, long unsigned, double.

, struct, union, enum.

, .. (. 2.1).

2.1

()
har 1 128 127
int 2 (4)* 32768 32767
short 1 (2)* 32768 32767(128 127)
long 4 2147483648 2147483647
unsigned int 4 0 65535
unsigned long 4 0 4294967295
float 4 3,14×1038 3,14×1038
double 8 1,7×10308 1,7×10308
long double 10 3,4×104932 3,4×104932

* , 16- , 32- .

, , , .. . :

, ;

, ; , .. .

, , :

< > < ID >;

ID , , : int i, j, k; float a, b;

:

(, ); ( auto), . 12;

( int).

( ) .

:

int i, j, k; char r; double gfd;

.

 





:


: 2018-10-14; !; : 771 |


:

:

, .
==> ...

782 - | 685 -


© 2015-2024 lektsii.org - -

: 0.021 .