.


:




:

































 

 

 

 


1. . ! .




Http://youngcoder.blogspot.ru/p/blog-page_16.html -

. .

  1. 1. . .
  2. 2. . / .
  3. 3. .
  4. 4. . .. .
  5. 5. if-else. .
  6. 6. switch.
  7. 7. . for.
  8. 8. .
  9. 9. . while do-while.
  10. 10. .
  11. 11. .
  12. 12. .
  13. 13. . .
  14. 14. .
  15. 15. .
  16. 16. .
  17. 17. . .
  18. 18. . . "" .
  19. 19. .
  20. 20. for. . .


:
Visual Studio 2010/2012
. . .

 

Http://youngcoder.blogspot.ru/2011/01/uroki-programmirovanija-dlja.html -

1. . ! . .

!
! , . "Hello World". . . .
!
:


File->New . .
- . C! , Hello World!
, , , , ! , . .
1.1

//
#include <stdio.h>
int main(void) {
printf("Hello World \n");
return (0);
}

, , .. - .
" " , , .
Microsoft Visual C++ 2008 Express Edition.

F7 - .
Ctrl+F5 - .

Borland C++ 3.1
F9 - .
Ctrl+F9 - .
Alt+F5 - .

, .

- . Microsoft Visual C++ 2008 Express Edition , .
:

1>------ : : 1, : Debug Win32 ------
1>...
1>1.cpp
1>...
1> ...
1> "file://c:\Documents and Settings\1\ \Visual Studio 2008\Projects\ 1\ 1\Debug\BuildLog.htm"
1> 1 - 0, 0
======== : : 1, : 0, : 0, : 0 ========


:

1>------ : : 1, : Debug Win32 ------
1>...
1>1.cpp
1>c:\documents and settings\1\ \visual studio 2008\projects\ 1\ 1\1.cpp(5): error C2143: : ";" "return"
1> "file://c:\Documents and Settings\1\ \Visual Studio 2008\Projects\ 1\ 1\Debug\BuildLog.htm"
1> 1 - 1, 0
========= : : 0, : 1, : 0, : 0 =========


Borland C++ . , . , Syntax error .. . =)
++.
. /* */
. ++. . . - , .

#include <stdio.h>

: stdio.h, stdio.h.

. stdio.h ( . STanDart Input Output) , . : " , ?" , printf(). , - , . , . - . , . ( ) (.. ) ( ). printf() stdio.h printf(), .
int main(void)
main. main ( void, ), ( int ). /++ main. . , , . main {...} , " ". , .
printf("Hello World \n");
printf(). , , , Hello World \n. \n . , " ". MS Word Enter. , "\" - . .
, ; ( ). . .
return (0);
}
, main, . ? ! return () , - . main 0.
main.
.
. .exe . .exe . , 0, , .
, , /++.

:

  • . , .
  • . . , .
  • . .


. /++ .
:

  • .
  • , , .
  • /++
  • C/C++

, !
P.S 16 2011.

.

 

  1. , . .
  2. :
  • stdio.h, , . , . . ! .
  • ; . , .
  • , , . .
  • return(0); , .

********** ******* ******* ******* ******** ******* **********

http://youngcoder.blogspot.ru/2011/01/uroki-programmirovanija-dlja_28.html -





:


: 2015-01-25; !; : 774 |


:

:

.
==> ...

1708 - | 1656 -


© 2015-2024 lektsii.org - -

: 0.01 .