-

   rss_rss_hh_new

 - e-mail

 

 -

 LiveInternet.ru:
: 17.03.2011
:
:
: 51

:


, 13 2017 . 00:59 +
. , , , . , . , . . , . 70 . 10 . , , . , ( ). , . . . . , , : - ? - ?. , , : , !.

, , . . !



. . , , , . . , : , . . , . , . : , , . (, , ). ( , , ). ( ) . , , C, Java, C++. --, . , , . , . Code::Blocks .

, , , . . .

image

, , . include, using, main, return. , .. , . , . . iostream. i input (), o output (), stream . .. ( - ). , , . using namespace std , (namespace) std standard (). int , , (.. ; ) main . - , - . cout c console ( ), out , endl end of line, . , , . return 0 .

F9, ( ). ! !, , , . : , . . Hello world! - F9. !. - , . . - , . . , , :

image

, . , . - ? . (set) (locale). ( Enter). setlocale(LC_ALL, "rus"); #include . - LC_ALL ( , ), - L.C.A.L.L. (, ), - russ . . , , . .

. . 0 99, . , .

rand, random . , cstdlib. 0 99 , , 100. . , . 5%2, , . (.. 0 99) - . . , - , , 2.584 35.763. . ( , ), . , , . u ( unknown). int. 4 . ? , . ( , ):

image

, , , 41. 42, . . , . , , 41? 41 , . 0 99. ? , , . srand(time(0)); ctime
(, , ) . :

image

, .

, 0 99 . - , , , , .

image

i ( input), u. . 16- . do. , , (while) i u. , . -, . -, != . u. , , . :

image

, , , .

. . if- . , ( 17). ( 18). .

image

, 10- . . , ! !. . , -.

( ), , , .

image

.

1. . . . , . , .

2. . , . - , ( ) , , , 23 . , - .

3. , , . , . Logo, BASIC, Pascal. , , , ( !), . , . ( ) .

4. C++ . , , . , C++. C, , Java. C++ (C ). .

, ! .

P.S. . , , ( ), .
Original source: habrahabr.ru (comments, light).

https://habrahabr.ru/post/330744/

:  

: [1] []
 

:
: 

: ( )

:

  URL