.


:




:

































 

 

 

 





:

,

,

, .

1965 , " goto", .

( ) , , .

, , .

:

; (), .

--; , .

;

o : - while, , .

o : - do while, , .

o : for.

.

.

, .


( ):

: -"" "-", "-"

//C++

if (A>B)
{
D=E; //-
//...
}
else
{
C = F; //-
//...
}

: , "-",

//C++
if (A>B)
{
D=E; //-
//...
}

1) . SUMMA = (( i=1 20) I)

//C++

int S, I;
I = 1; S = 0;
while (I <= 20)
{
S =+= I;
I += 1;
}

2)
...

.

, , C/C++ .

"7 - 2".

, ( ), .

, 25-81 , 5-9.
, 25-81 5-9 , 5-9 .

, ( ) , , .

, , .

C/C++

( ) ().

:

,

, .

.

.

( ), () ().

- (), .
, , .

, .

>> , -

.


:

- , . , -60

, . , .

.

, :

"::=" -

"< >" - " "

"|" - ""

"()" - ""

"{ }" - "

"[ ]" - , () .

.

, .
++ . .

. , , , . , ( ) . - .
, .

, .
.

(), , .

/++.


/++

, .

...
, Q V.

_ ( 31.01.16)
: ->V->V>2->
V->2->->

.

, , , , (), .

, .

, .

- ( ), , , , .

( ). . .

, .

V, Q V , .

V 12.
.

.

Q () V ( ) -.


 

- .

.

.
, .

delta = (|Q-Q|)/(Qmax-Qmin).

.

- - .

. - . . . ( 2-, 3- - ).

. , , . .

- .

, .

.

.

, -, , .

.

 


--[ ]--

\n -
\r -
\t -
\v -
\b -
\f -
\\ -
\>> -
\' -

(0 ), .

1 .

, .
, .

.

\n \0 , ". \n"

" \t". " , : \07". " , , 1 - ."

-

- - .

, .

.

- .

-

( ),

o , ;

o...

o , ;

...

>> , .

"" \++ , , , .

\++ ( main) .

.

>> - () "\n". , .

# include <stdio.h> // , - stdio.h

// : .
void convert (int);
// .
int main (void) .
int ch; // , ,
printf ( );
printf ( enter);
ch = getchar ();
{
while (ch!= '\n'); // , .
,
convert (ch);
ch = getchar();
}
printf (" ");
return 0;

void convert (int ch) //
printf (", 10-, 8-, 16-") // 0 31 ' ' 32
if (ch<' ') printf ( ) // %c, %d, %o, %x .
printf(" " )
return;

. .

 

#include <> ,

- .

- .

- , .

main - .

() main .

.

, .

main , convert - ch.

.

.

, .

, .

, .
, .

.
. , .

( , .


, .

.
.

.

(, ) (, )

.

- , :

char

int

float and dooble

void - .

bood

wjchar_t

, , ( ) .

: , , , , , .
.





:


: 2016-07-29; !; : 1394 |


:

:

,
==> ...

1831 - | 1815 -


© 2015-2024 lektsii.org - -

: 0.04 .