Osnovy_programirovanniya_na_S_
.pdf.
.NET, , Ada, COBOL, Delphi, Eiffel, Fortran, Lisp, Oberon, Perl Python.
. -
: ,
, . Visual Studio.NET -
, :
WindowsWin- dows, , , .;
« »,
;
, -
;
,
.
, -
, -
.
Microsoft Visual Studio 2010 ( #).
Microsoft Visual Studio 2010 :
Express – ,
;
Professional – , -
, -
11
, -
;
Premium – , -
-
;
Ultimate – Visual Studio, -
, ,
, -
-
.
. 0.2.
12
Microsoft Visual Studio 2010 , -
. ,
, #, -
# -
.
. . 2.
( -
, , . .) .
, ,
.
C# .
. 0.3.
13
. ( , -
• -
). , :
,
(Classl.cs). -
-
, .
, ,
. Windows
. -
,
.
( csproj), (
sln) (Classl.cs).
, -
, -
. ,
. ( -
) , (2 -
) , -
.
:
,
. , -
, .
.
14
( 1).
, .
, -
.
1.
using System;
using System.Collections.Generic; using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
///<summary>
///Summary description for Classl.
///</summary>
class Classl
{
///<summary>
///The main entry point for the application.
///</summary>
static void Main(string[] args)
{
//
//TODO: Add code to start application
//here
//
}
15
}
}
using System -
System
).
using System.Collections.Generic;
using System.Linq;
using System.Text;
-
. -
.
namespace
, ConsoleApplicationl. , -
, ,
.
, ,
.
# ,
-
.
,
Class. -
class, -
( ,
).
16
!!!
.
,
.
, -
, , .
, .
Main. Main
.
.
:
[ ] ( [ ] )
{
: ,
}
« » -
. -
, .
Main :
//TODO: Add code to start application here
: « , -
». (
!)
Console.WriteLine(" !!!");
Console –
System. WriteLine -
17
. , -
.
,
Console
,
Console. ,
,
.
Enter .
. -
, -
.
, 2.
,
* , , , ,
, .
•
Save ( -
). ,
.
F5 ( • ). -
, !!!
18
, -
. , -
, -
Ctrl+F5.
.
, .
19
.
1.( ) .
: |
|
|
|
- - |
|
||
« » |
|||
, - |
: « |
||
( |
|||
|
|||
|
|
» |
|
|
|
||
); |
? |
||
- , |
|
|
|
; |
) |
||
( ) |
|||
- |
|
|
|
. |
|
|
|
|
|
|
|
|
|
||
. |
|
2011 |
|
|
|
||
|
|
|
|
-
4, :
- , (
» ), ( : « -
»), , -
, , , -
; - ( , -
);
-( );
-. , , -
, , ; - , ;
20
