.


:




:

































 

 

 

 


2. .

: .

: , , .

: , , , . .

.

.

:

 

0 0 0 0 1
0 0 0 1 0
0 0 1 0 1
0 0 1 1 0
0 1 0 0 1
0 1 0 1 0
0 1 1 0 1
0 1 1 1 0
1 0 0 0 1
1 0 0 1 0
1 0 1 0 1
1 0 1 1 0
1 1 0 0 0
1 1 0 1 1
1 1 1 0 0
1 1 1 1 1

 

() , , .

( ) , (). .

, , . , . 0, , 1 .

, , :

 

( , , &) , . ( ) |. , .

, . . .

 

.

 

. . .

 

 

 
1     1
1     1
  1 1  
1     1

 

, .

:

- 1, 0, ;

- 1 2n, n ;

- 1;

- 1 - ;

- , 1 ;

- ;

- .

 

 

. , . :

.

.

:

. , . * .

 

.

, . :

 

x x        
x   x      
    x x    
      x x  
        x x

 

, . : 1 , .
, , , .

.

 

--.

.

, :

. (. 1):

 

1.

 
1 0001
2 0011, 0101
3 0111, 1110
4 1111

 

1, 1 . '*'. . . 2.

 

2.

 
1 00*1, 0*01
2 0*11, 01*1
3 *111, 111*

2. , * . 3.

 

3.

 
1 0**1

 

:

*111, 111*, 0**1.

:

 

x x x x    
      x   x
        x x

 

: 0**1 111*, :

,

.

1. . , .

1

 

0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 0

 

2

 

0 0 0 1
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 0
1 1 1 1

 

 

3

 

0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 0

4
0 0 0 1
0 0 1 0
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 0

5

 

0 0 0 1
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 0
1 1 1 0

6

 

0 0 0 1
0 0 1 0
0 1 0 0
0 1 1 0
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 1

7

 

0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 0

8

 

0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 0

9

 

0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 1

10

 

0 0 0 1
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 1
1 1 1 1

 

2. . , .

0 0 0 1
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 1
1 1 0 0
1 1 1 1

 

3. , - -.


3. . . .

 

: . .

: , , .

: , , , , , . . 3-5 .

.

1972 Bell Laboratories UNIX. . , - .

1 , Hello world!

DevCpp-4.9.9.2 IDE. DevCpp devcpp.exe:

:

.

1. File:

New -. :

. Source File ; Project .

Open Project or File .

Save .

Save As .

Save Project as .

2. Edit .

3. Search .

4. View , / .

Project/ Class Browser / .

Statusbar /

ompiler Output .

5. Project .

New file .

Add to Project

Remove from Project

Project Options

6. Execute .

Compile

Compile current file

Run

Parameters

Compile & Run

Syntax Check

Clean -

Program Reset

7. Debug .

8. Tools .

9. CVS (Concurrent Versions System) . , , .

10. Window - .

11. Help .

, . . File New Project. :

Basic :

Windows Application Windows .

Console Application .

Static Library .

DLL .

Empty Project .

:

C C++.

:

. !

(Console Application, project, HelloWorldProject):

Ok . : upr , .

 

: , . main. c. main. c .

 

. , . , . Execute F 9. :

. :

main.c. , :

(F9) Hello world! . , , . , , , , . . - main. , "main" - : main ( ). : #include <stdio.h> , -. -. , , . .

#include <stdio.h>

#include <stdlib.h> //

 

int main(int argc, char *argv[]) //

{

printf("Hello world!"); // printf //

printf("\n"); // printf // . \n //

system("PAUSE"); //

return 0;

}

{ }. main .

 



<== | ==>
1. . | .
:


: 2018-10-15; !; : 242 |


:

:

: , .
==> ...

1360 - | 1313 -


© 2015-2024 lektsii.org - -

: 0.089 .