(6) (class): (7) (event) (event procedure) 1) : 2) : (8) : (GUI ) 2. : (*.frm) -> (compile) -> (*.exe) (p. 535 ) 3. (IDE (Integrated Development Envir

Size: px
Start display at page:

Download "(6) (class): (7) (event) (event procedure) 1) : 2) : (8) : (GUI ) 2. : (*.frm) -> (compile) -> (*.exe) (p. 535 ) 3. (IDE (Integrated Development Envir"

Transcription

1 ( : pp. 32~49) 1. (1) (object): ( :, ) ( ) :,, ( ), ( ) (2) (form): (3) (control): (4) (property):, (5) (method):

2 (6) (class): (7) (event) (event procedure) 1) : 2) : (8) : (GUI ) 2. : (*.frm) -> (compile) -> (*.exe) (p. 535 ) 3. (IDE (Integrated Development Environment)):,, 2

3 (1) ( ): (2) ( ): (main) -> (sub) -> ( ) (3) (4) : 1),, (5) : (6) : (7) : 1) 2),, 3) 4) 3

4 (8) : 1) ( ) ( ) 2) (.) ( : (T)-> -> -> ) 3) - - : - : underscore(_), underscore - ( ), Rem (9) : 4

5 ( : pp. 60~62; pp. 92~109) 1. (variable):, ( ) a=5 b=6 c=a+b 2. (1) 1) 256 2),, underscore(_) 5

6 3) underscore 4) underscore 5) (reserved word), [ ] OK! ( ) - NumOfPeople, Crow1234, Do_Draw, _BeginEnd, [public] (O.K!) - Variable*, 4Crow, private, _ (Not Allowed!) (2) 1) 3., (1) : 1) (2) Option Explicit 6

7 1) : Option Explicit On/Off (3), (4) = ( ) Dim imyvar As Integer = (1) (local variable): 1) Dim 2) Static Permanent, (2) (module variable) (global variable):,, ( ) 1) : Private Dim 7

8 ( ) Module mymodule Private strmymsg As String Sub Initialize() strmymsg= End Sub Sub Display() Debug.WriteLine(strMyMsg) End Sub End Module 2) : Public Friend ( ) Module mymodule1 Public strmymsg As String End Module 8

9 Module mymodule2 Sub Initialize() strmymsg= End Sub Sub Display() Debug.WriteLine(strMyMsg) End Sub End Module Module mymodule2 9

10 5. (data type) (1) (Byte) 1) : 1 byte 2) : 0~255( ) 3) ( ) Dim bycount As Byte (2) Short, (Integer), Long 1) : 2/4/8 bytes 2) : -32,678~32,677/-2,147,483,648~2,147,483,647/p. 67 3) ( ) Dim nmyvariable/imyvariable/lmyvariable As Short/Integer/Long (3) : 10

11 1)Single ( ) - : 4 bytes - : E-45 ~ E38 ( ) - ( ) Dim sheight As Single - 6 ( : => E08) 2)Double ( ) - : 8 bytes - : E-324 ~ E308( ) - ( ) Dim dblvolum As Double

12 (4) Decimal : 1) : 12 bytes 2) : p.71 3) ( ) Dim dmyvariable as Decimal (5) (Char): 1) : 2 bytes 2) : 0~ ) ( ) Dim cmyvariable as Char (6) (String) 1) : 10+2*( ), 1 byte 2), ASCII 12

13 3) ( ) Dim strmyname As String 4) - + ( ) Dim strtitle, strname, strnumber As String strtitle= Queen strname=elizabeth strnumber=ii Debug.write(strTitle + strname + strnumber) - & : ( ) Dim ia As Integer Dim strb As String 13

14 ia=5 strb= men Debug.write(iA & strb) 5) (pp. 74~76 ) (7) (boolean) 1) : 1 byte 2) : True, False 3) ( ) Dim bisfirst As Boolean (8) Date 1) : 8 bytes 2) ~ ( ) 14

15 - 0:00:00 ~23:59:59 ( ) 3) ( ) Dim dttoday As Date 4) # ( : D=#96/11/14/ 11:20:35 PM# ) 5) ( pp. 79~81 ) (9) Object : 1) : 4 bytes 2) ( ) Dim objmyvariable1, objmyvariable2 as Object objmyvariable1=10 objmyvariable2= Hello 6. :, (p. 85 ) 15

16 1) ( ) Dim iintegervalue As Integer Dim bybytevalue As Byte bybytevalue=123 iintegervalue=bybytevalue 2) CType : - : CType(, ) 7. : VarType - : VarType( ) ( ) ivar=123 ; strvar= Hello MyType=VarType(iVar) Integer MyType=VarType(strVar) String 16

17 8. (p. 86~87 ) 9. : 1) : Option Strict On/Off 2), 10. : 1) [Public Private] Const [As ] = ( ) Const conpi= ) ( ) Const conpi2=conpi*3 17

18 11. (1) : (+, -, *, /), ^( ), \( ), Mod( ), &( ) ( ) MyValue=10 Mod 3 1 MyValue=11\4 2 (2) : - <, <=, >, >=, =, <>( ), Like - - Like a) : 1 Like 2 b) 1 2, True False 18

19 c). *: ( : a*a).?: ( : a?a). #: ( : a#a). [ 1-2 ] : ( : [a-z]). [! 1-2]: ( : [!a-z]). [ ]: ( : a[*]a) d). ABCD Like AB* -> True. BA Like?A -> True. 1A Like #A -> True. A Like [A-Z] -> True. A Like [!A-Z] -> False 19

20 . a*a Like a[*]a -> True (3) : Not( ), And( ), Or( ), Xor( ), AndAlso( ), OrElse( ) ( p. 107 ) (4) : - : = - : +=, -=, *=, /=, \=, &= ( ) icount=icount+2 icount+=2 strmystring &= Hello 20

21 ( : pp. 248~268) 1.? ( => => ) 2. 1) (Debugging) 2) 3. 1)Sub : 2)Function :, 21

22 3) : 4. Sub (1) 1) [Public Protected Friend Protected Friend Private] Sub ([ ]) End Sub (2) Private : Sub (3) Public : Sub 22

23 (4) Protected : (5) : Sub Sub 1) [Optional][ByVal][ByRef][ParamArray] [()] [As ] [= ] - ByVal : (a) (b) Sub (c) (d)( ) (p. 261 ) Sub Main_Procedure() Dim n As Integer 23

24 n=3 Call A_Procedure(n) Debug.WriteLine(n) End Sub Sub A_Procedure(ByVal n As Integer) n=n+1 End Sub - ByRef : (Default) (a) (b) Sub (c) ( ) ByVal (d)( ) (p. 262 ) 24

25 Sub Main_Procedure() Dim A,B As Integer A=3 : B=5 Call Swap(A,B) Debug.WriteLine(A & & B) End Sub Sub Swap(A, B As Integer) Dim Temp As Integer Temp=A: A=B: B=Temp End Sub - Optional : 25

26 (a) (b) [= ] (c) ParamArray (d)( ) (p. 266 ) A_Procedure(, ) A_Procedure(,) Sub A_Procedure(X As String, Optional Y As String= ) Debug.WriteLine(X & Y) End Sub - ParamArray : (a) ( ) (b)byref, Optional 26

27 (c) For Each ~ Next object (d)( ) (p. 267 ) Debug.WriteLine(Max(1,2)) Debug.WriteLine(Max(1,2,3,4)) Function Max(ByVal ParamArray Nums()) As Object Dim i As Object Max=Nums(0) For Each i In Nums If i > Max Then Max=i Next i End Function 27

28 5. Sub (1) : Sub 1) Private Sub _ ( ) End Sub (2) : Sub 6. Sub 1) [Call] ([ ]) 7. Function (1) 28

29 1) [Public Protected Friend Protected Friend Private] Function ([ ]) [As ] - Sub (Default: Public) - [As ]: Function, (Default: object ) (2) \ (3) Function 1) [Call] ([ ]) (4) ( ) (p. 255 ) Debug.Writeline(Sum(5,3)) Debug.WriteLine(5+Sum(2,3)) 29

30 Function Sum(ByVal A As Integer, ByVal B As Integer) As Integer Sum=A+B End Function (5) : System.Math (p. 256 ) 8. / / (1) 1) [ ]. ([ ]) 2) (p. 260 ) Public Module MyModule1 Sub MyProcedure() MyModule2.MyProcedure() 30

31 End Sub End Module Public Module MyModule2 Sub MyProcedure() End Sub End Module (2) / 1) /. ([ ]) 2) (pp. 259~260 ) - Dim MyClassA As New ClassA 31

32 MyClassA.MyProcedure() - Dim MyStruc As StructA MyStruc.MyProcedure() 32

33 - :, - ( ): ( : pp. 224~247) 1.IF (1) IF : 1) If Then End If 33

34 If Then 2) If Number >100 Then Number=100 Debug.WriteLine(Number) End If (2) If Then Else - 1) If 1 Then 1 ElseIf 2 Then 2 34

35 Else 3 End If 2) - ElseIf 1, 1 True 1 False 3 - Else 2, 1 True 1, 2 True 2, False If Jumsu >=95 Then Debug.WriteLine( A+ ) ElseIf Jumsu>=90 And Jumsu <95 Then Debug.WriteLine( A ) 35

36 ElseIf Jumsu>=85 And Jumsu <90 Then Debug.WriteLine( B+ ) ElseIf Jumsu>=80 And Jumsu <85 Then Debug.WriteLine( B ) ElseIf Jumsu>=75 And Jumsu <80 Then Debug.WriteLine( C+ ) ElseIf Jumsu>=70 And Jumsu <75 Then Debug.WriteLine( C ) Else Debug.WriteLine( D ) Endif 2.Select Case : 36

37 (1) Select Case Case 1 1 Case 2 2 Case Else End Select - Case 1) Case 1 To 4: To 2) Case 1,3,5: 37

38 3) Case Is > 10: Is (2) Dim Number As Integer Number=8 Select Case Number Case 1 To 5 Debug.Print Between 1 and 5 Case 6,7,8 Debug.Print Between 6 and 8 Case Is >8 And Number <11 Debug.Print Greater than 8 Case Else Debug.Print Not Between 1 and 10 38

39 End Select 3.Try Catch Finally : (1) Try Catch Finally Catch End Try ( ) Try a=b\c 39

40 Catch a=0 Finally Debug.WriteLine(a) End Try (2) Finally (3) Catch ( ) Catch When (Catch When Err.number=11) Catch As Exception (Catch er As Exception) Catch As Exception When (Catch er As Exception When Err.number=11) (4) Exit Try : Try ; Finally Try 40

41 (5) Throw : ( ) Throw( ) 4.For Next : (1) For = To [Step ] Next - <, :, <= >, Next - >, : 41

42 (2), >= <, Next - = ( - )/ + 1 ( ) For Count=1 To 10 Debug.WriteLine(Count) Next Count Debug.WriteLine(Count) (3) For : Exit For For Next For a=1 To 10 For b=1 To 10 42

43 If a=b Then Debug.WritelLine(a*b) Exit For End if Next b Debug.Writeline( ) Next a 5.For Each Next (1) - For Each In 43

44 Next (2) - object - collection Dim strdata(1 To 3) As String Dim vdata As Object Dim I As Integer For I=1 To 3 StrData(I)= = + CStr(I) Next I For Each vdata In strdata Debug.WriteLine(vData) Next vdata 44

45 6.Do - (1)Do While Loop (While End While ) - True False 1) Do While Loop 2) Count=1 Do While Count <= 10 45

46 Debug.WriteLine(Count) Count=Count+1 Loop (2)Do Until Loop - True True 1) Do Until Loop 2) Count=1 Do Until Count > 10 46

47 Debug.WriteLine(Count) Count=Count+1 Loop (3)Do Loop While - While, True 1) Do False Loop While 2) Count=1 Do 47

48 Print Count Count=Count+1 Loop While Count <= 10 (4)Do Loop Until - Until, True 1) Do True Loop Until 2) Count=1 Do 48

49 Debug.WriteLine(Count) Count=Count+1 Loop Until Count > 10 (5)Exit Do 1) - Do Dim Check, Count Check=True: Count=0 Do Do While Count < 20 Count=Count + 1 If Count = 10 Then Check=False 49

50 Exit Do End If Loop Loop Until Check=False 7.Goto 1) - Goto : -, 50

51 8.On Error GoTO - 1) (Resume Next ) On Error GoTo.. ( ).. : ( ) Resume Next 51

52 - - :, ( : pp. 269~281) 1. ( ) (1) : Dim ( ) As - : - : (2) - - ( ) 52

53 (a) Dim ave(3) As integer ave(0)=10 : ave(1)=20 : ave(2)=30 Dim ave( ) As Integer ={10,20,30} (b) Dim student(2, 2) As integer ave(0,0)=10 : ave(0,1)=20 : ave(1,0)=30 : ave(1,1)=40 Dim student(, ) As Integer={{10,20},{30,40}}

54 (1) - : Dim ( ) As (2) Redim ( )Dim mat() As Integer Sub A_Procedure() Redim mat(3,4) End Sub - Redim 54

55 - Preserve ( ) Redim Preserve mat(3,5) ( ) ( ) Ubound : Ubound( [, ]) : Ubound(mat,1), Ubound(mat,2) 3. -, (1) : Erase 55

56 ( : pp. 112~221) 1. (1) : Visual Basic, (2) : (3) X : Microsoft 2. (1) (Label) - - Text 56

57 1) - Text :, & - BorderStyle : - AutoSize : - UseMnemonic : & 2) - (2) (LinkLabel) - 1) - LinkArea : - LinkColor : 57

58 - VisitedLinkColor : - LinkVisited : VisitedLinkColor - ActiveLinkColor : - LinkBehavior :, AlwaysUnderline/HoverUnderline/NeverUnderline - Text : 2) - : System.Diagnostics Process Start ( ) Imports System.Diagnostics Process.Start( ) (3) (TextBox) -, 58

59 1) - Locked : - Text : - Multiline :, Ctrl+Return ( ) Sub Form_Load( ) Text1.Text=. & vbcrlf & _. End Sub - ScrollBars :, None/Horizontal/Vertical/Both - SelectionStart : - SelectionLength : - WordWrap : 59

60 3. (1) (Button) 1) - AcceptButton : Enter - CancelButton : Esc - BackgroundImage /Image : - ImageAlign :, / / / / 2) - - space bar enter 60

61 - (2) (CheckBox) - 1) - Checked : - CheckState : Checked/UnChecked/Indeterminate( ) - ThreeState : Indeterminate - AutoCheck : V (3) (RadioButton) - 1) - Checked : - Enabled : 61

62 (4) (GroupBox) - - (5) (Panel) - (6) (ListBox) (ComboBox) - 1) - ( ); ( ) - :, ( ), ( ) 62

63 2) - Items.Add(item) : - Items.Insert(index,item): - Items.Remove(item)/Items.RemoveAt(index): - Items.Clear(): 3) - Sorted : - SelectedItem : - SelectedIndex : index, - Items.Count : - MultiColumn :, True( )/False( ) 63

64 - SelectionMode :, None/One/MultiSimple/MultiExtended (7) (CheckedListBox) - 1) - Items() : 2) - GetItemChecked(index): - SetItemChecked(index, True/False): / (8) (DomainUpDown) - / (9) (NumericUpDown) - 64

65 (10) (Scroll Bar) 1) - Change : - Scroll : 2) - Value : - Min, Max : Value ( ) - SmallChange : - LargeChange : (11) (Timer) - (12) (PictureBox) -, bmp,ico,gif,jpg 65

66 - Image FromFile ( ) Image.FromFile( C:\MyCar.bmp ) 4. (1) (ProgressBar) - 1) - Value : - Min(Max) : ( ) (2) (ToolBar) - 1) 66

67 - ImageList :, Image - Appearance : (Flat/Normal) - Buttons :, ToolBarButton Style : (PushButton/ToggleButton/Seperator/ DropdownButton) ImageIndex : Text : - ButtonClick : e Button, (Text ), (ImageIndex ) (3) (StatusBar) 67

68 - 1) - ShowPanels :, - Text :, ShowPanels False - Panels :, StatusBarPanel Item : (4) (TabControl) - 1) - TabPages :, TabPage - Alignment : (Top/Bottom/Left/Right) 68

69 (5) (ListView) 1) : LargeIcon, Smallicon, List, Details 2) View : Items :, ListViewItem Columns :,, (Left/Center/Right), ColumnHeader SmallImageList : ImageList (SmallIcon/List/Details ) LargeImageList : ImageList (LargeIcon ) 3) AfterLabelEdit : 69

70 , e Item (Integer ) Label (String ) (6) (TreeView) : 1) Nodes :, TreeNode TopNode : SelectedNode : FirstNode( ), LastNode( ), NextNode( ), PrevNode( ) Parent( ) 2) AfterSelect :, e Node Index, Text (7) (NotifyIcon): 70

71 1) Icon : Icon Text : (8) (Tooltip) 1) Active : InitialDelay / Reshowdelay / AutoPopDelay 2) SetToolTip : (9) (TrackBar) : 1) TickFrequency : TickStyle : (None/TopLeft/BottomRight/Both) (10) (DateTimePicker) 71

72 1) Format : (Long/Short/Custom) CustomFormat : MyDateTimePicker.Format=Custom DateTimePicker.CustomFormat= yyyy MMM dd ddd DateTimePicker.CustomFormat= : yy MM d HH:mm:s ddd 5. X (1) (MaskedEdBox) : 1) Mask : #, 72

73 PromptInclude : PromptChar CtlText : (2) MS (MSChart) : 2 3,, 1) Title.Text : Plot.Axis(MSChart20Lib.VtChAxizId.VtChAxisIdX).AxisTitle.Text : X Plot.Axis(MSChart20Lib.VtChAxizId.VtChAxisIdY).AxisTitle.Text : Y Legend.Location.Visible : Legend.Location.LocationType : 73

74 ChartData : 74

75 ( : pp. 284~316) 1. (1) : Class / / /.. End Class ( ) Class CCar End Class (2) : ( (instance) ) 75

76 Dim As New ( ) Dim As =New ( ) ( ) Dim My_Car As New CCar() 2. :, (1) (2). (3) Class CCar Dim m_x, m_y As Integer End Class Dim My_Car As New CCar() My_Car.m_x=100 76

77 3. Dim icurx As Integer=My_Car.m_x (1) Property () As Set (ByVal value As ) End Set Get End Get End Property (2), (3) Class CCar 77

78 Private m_x As Integer Property CarX() As Integer Set (ByVal x As Integer) m_x=x End Set Get Return m_x End Get End Property End Class Dim My_Car As New CCar() My_Car.CarX=100 Set End Set, m_x 100 Dim icurx As Integer=My_Car.CarX Get End Get, icurx 78

79 (4) ReadOnly WriteOnly : (Get End Get ) (Set End Set ), ReadOnly( WriteOnly) (5) Default :,,, Default 1) Class CCar Private m_x(2) As Integer Default Property CarX(ByVal index As Integer) As Integer Set (ByVal value As Integer) m_x(index)=value End Set 79

80 Get Return m_x(index) End Get End Property End Class Dim My_Car As New CCar() My_Car(0)=100: My_Car(1)=150 icurx1=my_car(0): icurx2=my_car(1) 4. :, Sub Function (1) Class CCar Private m_x As Integer 80

81 Sub SetX(ByVal x As Integer) m_x=x End Sub Fuction GetX() As Integer Return m_x End Function End Class Dim My_Car As New CCar() Dim icurx As Integer My_Car.SetX(5) icurx=my_car.getx() 5. : 81

82 (1) : WithEvents 1) Private WithEvents My_Car As New CCar (2) 1) : Event ( ) : Public Event Event_Draw(ByVal ipos As Integer) 2) : RaiseEvent ( ) : Class CCar Public Event Event_Draw(ByVal ipos As Integer) Sub Draw(ByVal ipos As Integer) RaiseEvent Event_Draw(0) End Sub End Class 82

83 (3) : Sub Handles ; AddHandler 1) ( Handles ) Private Sub OnDraw(ByVal ipos As Integer) Handles My_Car.Event_Draw Debug.WriteLine(iPos) End Sub 2) ( AddHandler ) Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load AddHandler My_Car.Event_Draw, AddressOf OnDraw End Sub Private Sub OnDraw(ByVal ipos As Integer) 83

84 Debug.WriteLine(iPos) End Sub 6. ( ) ( ) (1) (constructor):, (overloading) 1) Class Sub New( ) End Sub End Class 2) Class CCar Sub New() 84

85 Debug.WriteLine(. ) End Sub Sub New(ByVal inum As Integer) Debug.WriteLine( & inum &. ) End Sub End Class Dim My_Car As New CCar() Dim My_Car As New CCar(1) (2) (destructor): 1) Class Protected Override Sub Finalize() End Sub 85

86 End Class 2) Nothing, ( ) Finalize, System.GC.Collect() 86

87 ( : pp. 317~354) 1. : 2. : (sub class) Inherits (base class) (1) Class MyParentClass Public imyparentvalue As Integer End Class Class MySubClass Inherits MyParentClass 87

88 Public imysubvalue As Integer End Class Dim obj As New MySubClass() obj.imyparentclass=5 obj.imysubclass=10 (2) : MustInherit 1) MustInherit Class MyParentClass End Class 3. (overriding): ; overridable, overrides 88

89 (1) Class MyParentClass Public Overridable Sub Hello() End Sub End Class Class MySubClass Inherits MyParentClass Public Overides Sub Hello() End Sub End Class Dim obj As New MySubClass() Dim obj2 As New MyParentClass() obj.hello() Sub Class 89

90 obj2.hello() Base Class (2) : p. 324 ; New (3) : ; Shadows 1) Class MyParentClass Public Sub Hello() End Sub End Class Class MySubClass Inherits MyParentClass 90

91 Public shadows Sub Hello() End Sub End Class Dim obj As MySubClass = New MySubClass() obj.hello() Sub Class 2) : p. 330 ; As (4) : MustOverride 4. (1) : ( ) (2) : 91

92 MyBase 1) Class MyParentClass Public Sub New() End Sub Public Sub New(ByVal strname As String) End Sub End Class Class MySubClass Inherits MyParentClass Public Sub New(ByVal strname As String) {MyBase.New(strName)} 92

93 End Sub End Class Dim obj As MySubClass = New MySubClass( Hi. ), {.. } 5. (1) :, (2) Class MyParentClass Public Event MyParentEvent() Protected Sub DoEvent() RaiseEvent MyParentEvent() 93

94 End Sub End Class Class MySubClass Inherits MyParentClass Public Sub Hello() DoEvent() End Sub End Class Public Class Form1 Private Sub OnMyEvent() End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 94

95 Dim obj As MySubClass=New MySubClass() AddHandler obj.myparentevent, AddressOf OnMyEvent obj.hello() End Sub End Class 6. Me/MyBase/MyClass (1) Me : 1) Class CCar Private strname As String Sub Hello() Dim strname As String 95

96 strname= A Me.strName= B End Sub End Class (2) MyBase : 1) Class MyParentClass Public Overridable Sub Hello() End Sub End Class Class MySubClass Inherits MyParentClass Public Overides Sub Hello() 96

97 MyBase.Hello() End Sub End Class Dim obj As MySubclass=New MySubClass() obj.hello() Hello (3) Myclass : 1) Class MyParentClass Public Sub DoSomething() Hello() {MyClass.Hello()} End Sub Public Overridable Sub Hello() End Sub 97

98 End Class Class MySubClass Inherits MyParentClass Public Overides Sub Hello() End Sub End Class Dim obj As MySubclass=New MySubClass() obj.dosomething() Hello, {.. } Hello 98

99 ( : pp. 355~398) 1.? is-a - 2.? is-a act-as A B (A act-as B) 3. (1) Interface End Interface (2),,, (3), (4) 99

100 Public Interface IObject Function GetMyValue() As Integer End Interface Class MyParentClass Implements IObject Private MyValue As Integer=5 Public Function GetMyValue() As Integer Implements IObject.GetMyValue Return MyValue End Fuction End Class MyParentClass act-as IObject 4.? (1) (early)/ (late) 100

101 1) : 2) : Public Class CEarlyBindClass Public Sub hello End Sub End Class Dim obj As New CEarlyBindClass obj.hello() hello() Option Strict Off Public Class CLateBindClass 101

102 Public Sub hello End Sub End Class Public Sub DoIt(ByVal obj As Object) obj.hello() End Sub (Option Strict On ) Public Sub DoIt(ByVal obj As Object) Dim localobj As CLateBindClass localobj=ctype(obj,clatebindclass) obj CLateBindClass localobj.hello() hello() 102

103 End Sub (2) 1) 2) 3) 5.? (1) Private: (2) Protected: (3) Friend: (4) Public: 6.?,, shared, (1),,, 103

104 7. :, Delegate (1) Public Class Form1 Public Delegate Sub MyDelegate(ByVal message As String) Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim NewHello As New MyDelegate(AddressOf CMyClass.Hello) NewHello( ) End Sub End Class Class CMyClass Public Shared Sub Hello(ByVal message As String) 104

105 End sub End Class 8. (1) :,,,, 1) 2) Structure End Structure Structure Person Public name As String Public score As Integer End Structure 105

106 (2) : 1) Enum [As ] 1 [= ] 2 [= ] End Enum 106

107 ( : pp.400~411) 1. : 2. : (1) (2) (3) Text (-) (4) ( ), Alt (5) ( ), Ctrl, 107

108 (6) 5 (7) Gray Enabled False (8) Checked True (9) RadioCheck True (10) ( ) 3. : (1) 108

109 (2) ContextMenu (3) 109

110 ( : pp. 412~442) 1. : 2. (1) 1), 2) MyForm.ShowDialog() ( : ShowDialog(Hide) Visual True(False) ( ) ) 110

111 (2) 1) 2) MyForm.Show() 3. (1)InputBox, MsgBox (2) (3) 4. InputBox, MsgBox : (1)InputBox 1) : InputBox ( [, ] [, ] ) - < >, < > 2) 111

112 FileName=InputBox(, ) FileName=InputBox(,, *.txt ) (2)MsgBox 1) : MsgBox ( [, ] [, ] ) (p. 414 ) 2) Msg =. Style = MsgBoxStyle.OKOnly Title = Response = MsgBox(Msg, Style, Title) 5. (1) 112

113 1) Windows 2) (2) 1)Text : 2)FromBorderStyle : (FixedSingle) 3)MaxButton : ( ) (False) 4)MinButton : ( ) (False) 5)ControlBox : (False) (3) 1) : Dim MyForm As frmmain = New frmmain() 2) : Close 113

114 (4) :, 6. (1) ( ) :,,,, OpenFileDialog(SaveFileDialog) ShowDialog 1) (p. 431 ) 2) cdgopen.filter = (*.*) *.* (*.txt) *.txt (2) :, ColorDialog ShowDialog (3) :,,,, FontDialog ShowDialog 114

115 (4) :, FolderBrowserDialog ShowDialog (5) :, PrintDialog ShowDialog, PrintPreviewDialog, PageSetupDialog, PrintDocument 115

116 ( : pp. 508~530) 1. : /, ANSI (American National Standards Institute) (1) : 1) : FileOpen (,, [, ] [, ]) :, FreeFile : OpenMode.Input/Output/Append :, OpenAccess.Read/Write/ReadWrite :, 116

117 2) OpenShare.LockRead/LockReadWrite/Shared Dim ifilenum As Integer ifilenum=freefile() FileOpen(iFileNum, MyFile.Fil,OpenMode.Output) (2) : 1) : FileClose( ) (3) : OpenMode.Input 1) : Input(, ) 2), 1, 117

118 Input(iFileNum,strName): Input(iFileNum,strNumber): Input(iFileNum,strDept) (4) : OpenMode.Output OpenMode.Append 1) : WriteLine(, 1, 2, ) (,) 2) Dim strstring As String, inumber As Integer strstring= Hello inum=12345 WriteLine(iFileNum,strString,iNum) 2. : ( ) (1) 118

119 1) : FileOpen(,, [, ][, ][, ]) : OpenMode.Random : 2) Public Structure SPerson <VBFixedString(10)> Public strname As String <VBFixedString(10)> Public strnum As String <VBFixedString(10)> Public strdept As String End Structure Private m_ifilenum As Integer Private Person As SPerson ifilenum=freefile() FileOpen(iFileNum, MyFile.Fil,OpenMode.Random,,,Len(Person)) 119

120 (2) 1) : FileGet(, [, ]) 2) FileGet(iFileNum,Employee,iPosition) (3) 1) : FilePut(, [, ]) 2) LastRecord=LastRecord+1 FilePut(iFileNum,Emplotee,LastRecord) 3. :,, 120

121 (1) 1) : FileOpen(,, [, ][, ]) : OpenMode.Binary \ (2), 121

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 @ Lesson 2... ( ). ( ). @ vs. logic data method variable behavior attribute method field Flow (Type), ( ) member @ () : C program Method A ( ) Method B ( ) Method C () program : Java, C++, C# data @ Program

More information

chap10.PDF

chap10.PDF 10 C++ Hello!! C C C++ C++ C++ 2 C++ 1980 Bell Bjarne Stroustrup C++ C C++ C, C++ C C 3 C C++ (prototype) (type checking) C C++ : C++ 4 C C++ (prototype) (type checking) [ 10-1] #include extern

More information

Microsoft PowerPoint - VB.NET_06.pptx

Microsoft PowerPoint - VB.NET_06.pptx 6 주차 객체프로그래밍 대림대학 2011 년도 1 학기홍명덕 (myungduk.hong@gmail.com) 객체실세계에존재하는물건을가상세계인컴퓨터안으로가져온개념 2 객체의장점 부품을만들듯이객체설계객체를조립해서완성된프로그램을개발 부품을교환하듯이객체를수정및교환유지보수쉬어짐객체의특징메서드 : 실세계의행위역할수행속성 : 어떤상태에있는지를값으로저장기타 : 멤버변수,

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 @ Lesson 3 if, if else, if else if, switch case for, while, do while break, continue : System.in, args, JOptionPane for (,, ) @ vs. logic data method variable Data Data Flow (Type), ( ) @ Member field

More information

02 C h a p t e r Java

02 C h a p t e r Java 02 C h a p t e r Java Bioinformatics in J a va,, 2 1,,,, C++, Python, (Java),,, (http://wwwbiojavaorg),, 13, 3D GUI,,, (Java programming language) (Sun Microsystems) 1995 1990 (green project) TV 22 CHAPTER

More information

초보자를 위한 C# 21일 완성

초보자를 위한 C# 21일 완성 C# 21., 21 C#., 2 ~ 3 21. 2 ~ 3 21.,. 1~ 2 (, ), C#.,,.,., 21..,.,,, 3. A..,,.,.. Q&A.. 24 C#,.NET.,.,.,. Visual C# Visual Studio.NET,..,. CD., www. TeachYour sel f CSharp. com., ( )., C#.. C# 1, 1. WEEK

More information

歯엑셀모델링

歯엑셀모델링 I II II III III I VBA Understanding Excel VBA - 'VB & VBA In a Nutshell' by Paul Lomax, October,1998 To enter code: Tools/Macro/visual basic editor At editor: Insert/Module Type code, then compile by:

More information

C# 입문 : 이론과 실습

C# 입문 : 이론과 실습 리스트뷰 트리뷰 업다운컨트롤 트랙바 프로그레스바 타이머컴포넌트 [2/42] 리스트상자와유사한형태를지니며목록을구조적으로장식할수있는컨트롤 리스트상자 + 추가적인정보 ( 아이콘, 설명 ) [3/42] ImageList 컴포넌트의작성 리스트뷰작성에앞서리스트뷰에서사용할아이콘을 ImageList 컴포넌트에등록 도구상자 ImageList 를선택하여 ImageList 컴포넌트를폼에추가

More information

untitled

untitled A Leader of Enterprise e-business Solution FORCS Co., LTD 1 OZ Application Designer Getting Started 2 FORCS Co., LTD A Leader of Enterprise e-business Solution FORCS Co., LTD 3 OZ Application Designer

More information

untitled

untitled A Leader of Enterprise e-business Solution FORCS Co., LTD 1 OZ Application Designer Getting Started 2 FORCS Co., LTD A Leader of Enterprise e-business Solution FORCS Co., LTD 3 OZ Application Designer

More information

학습목표 함수프로시저, 서브프로시저의의미를안다. 매개변수전달방식을학습한다. 함수를이용한프로그래밍한다. 2

학습목표 함수프로시저, 서브프로시저의의미를안다. 매개변수전달방식을학습한다. 함수를이용한프로그래밍한다. 2 학습목표 함수프로시저, 서브프로시저의의미를안다. 매개변수전달방식을학습한다. 함수를이용한프로그래밍한다. 2 6.1 함수프로시저 6.2 서브프로시저 6.3 매개변수의전달방식 6.4 함수를이용한프로그래밍 3 프로시저 (Procedure) 프로시저 (Procedure) 란무엇인가? 논리적으로묶여있는하나의처리단위 내장프로시저 이벤트프로시저, 속성프로시저, 메서드, 비주얼베이직내장함수등

More information

untitled

untitled A Leader of Enterprise e-business Solution FORCS Co., LTD 1 OZ Application Getting Started (ver 5.1) 2 FORCS Co., LTD A Leader of Enterprise e-business Solution FORCS Co., LTD 3 OZ Application Getting

More information

untitled

untitled A Leader of Enterprise e-business Solution FORCS Co., LTD 1 OZ Application Getting Started 2 FORCS Co., LTD A Leader of Enterprise e-business Solution FORCS Co., LTD 3 OZ Application Getting Started 'OZ

More information

C# 입문 : 이론과 실습

C# 입문 : 이론과 실습 시그네처 (signature) 메소드를구분하는정보 메소드이름매개변수의개수매개변수의자료형메소드반환형제외 메소드중복 (method overloading) 메소드의이름은같은데매개변수의개수와형이다른경우호출시컴파일러에의해메소드구별 메소드중복예 void SameNameMethod(int i) { /*... */ // 첫번째형태 void SameNameMethod(int

More information

1

1 1 1....6 1.1...6 2. Java Architecture...7 2.1 2SDK(Software Development Kit)...8 2.2 JRE(Java Runtime Environment)...9 2.3 (Java Virtual Machine, JVM)...10 2.4 JVM...11 2.5 (runtime)jvm...12 2.5.1 2.5.2

More information

K&R2 Reference Manual 번역본

K&R2 Reference Manual 번역본 typewriter structunion struct union if-else if if else if if else if if if if else else ; auto register static extern typedef void char short int long float double signed unsigned const volatile { } struct

More information

01-OOPConcepts(2).PDF

01-OOPConcepts(2).PDF Object-Oriented Programming Concepts Tel: 02-824-5768 E-mail: hhcho@selabsoongsilackr? OOP (Object) (Encapsulation) (Message) (Class) (Inheritance) (Polymorphism) (Abstract Class) (Interface) 2 1 + = (Dependency)

More information

Modern Javascript

Modern Javascript ES6 - Arrow Function Class Template String Destructuring Default, Rest, Spread let, const for..of Promises Module System Map, Set * Generator * Symbol * * https://babeljs.io/ Babel is a JavaScript compiler.

More information

MAX+plus II Getting Started - 무작정따라하기

MAX+plus II Getting Started - 무작정따라하기 무작정 따라하기 2001 10 4 / Version 20-2 0 MAX+plus II Digital, Schematic Capture MAX+plus II, IC, CPLD FPGA (Logic) ALTERA PLD FLEX10K Series EPF10K10QC208-4 MAX+plus II Project, Schematic, Design Compilation,

More information

Microsoft PowerPoint - Computer - chapter04.ppt [호환 모드]

Microsoft PowerPoint - Computer - chapter04.ppt [호환 모드] Computer I Chapter 04. 제어문과배열 Spring, 2015 박정근교수 04-01. 01. 조건문에따라처리하기 조건문 조건문 조건에따라두가지이상서로다르게처리하는구문 조건문의종류 IF 문 IF~Then 형식 IF~Then~Else 형식 Select Case 문 3 IF 문 (If~Then 형식 ) If~Then 형식 If 조건식 Then 조건식을만족할때의실행문

More information

API - Notification 메크로를통하여어느특정상황이되었을때 SolidWorks 및보낸경로를통하여알림메시지를보낼수있습니다. 이번기술자료에서는메크로에서이벤트처리기를통하여진행할예정이며, 메크로에서작업을수행하는데유용할것입니다. 알림이벤트핸들러는응용프로그램구현하는데있어

API - Notification 메크로를통하여어느특정상황이되었을때 SolidWorks 및보낸경로를통하여알림메시지를보낼수있습니다. 이번기술자료에서는메크로에서이벤트처리기를통하여진행할예정이며, 메크로에서작업을수행하는데유용할것입니다. 알림이벤트핸들러는응용프로그램구현하는데있어 메크로를통하여어느특정상황이되었을때 SolidWorks 및보낸경로를통하여알림메시지를보낼수있습니다. 이번기술자료에서는메크로에서이벤트처리기를통하여진행할예정이며, 메크로에서작업을수행하는데유용할것입니다. 알림이벤트핸들러는응용프로그램구현하는데있어서가장중요한부분이라고도할수있기때문입니다. 1. 새로운메크로생성 새메크로만들기버튺을클릭하여파일을생성합니다. 2. 메크로저장 -

More information

Visual Basic 반복문

Visual Basic 반복문 학습목표 반복문 For Next문, For Each Next문 Do Loop문, While End While문 구구단작성기로익히는반복문 2 5.1 반복문 5.2 구구단작성기로익히는반복문 3 반복문 주어진조건이만족하는동안또는주어진조건이만족할때까지일정구간의실행문을반복하기위해사용 For Next For Each Next Do Loop While Wend 4 For

More information

VS_chapter10

VS_chapter10 Part. Chapter 10 ActiveX Data Objects.NET(ADO.NET).NET, ADO.NET..NET ADO(ActiveX Data Objects). ADO. ADO,. ADO,.NET ADO.NET... ADO.NET ADO Connection DataReader Command DataAdapter DataSet DataView DataSet

More information

프로그램을 학교 등지에서 조금이라도 배운 사람들을 위한 프로그래밍 노트 입니다. 저 역시 그 사람들 중 하나 입니다. 중고등학교 시절 학교 도서관, 새로 생긴 시립 도서관 등을 다니며 책을 보 고 정리하며 어느정도 독학으르 공부하긴 했지만, 자주 안하다 보면 금방 잊어

프로그램을 학교 등지에서 조금이라도 배운 사람들을 위한 프로그래밍 노트 입니다. 저 역시 그 사람들 중 하나 입니다. 중고등학교 시절 학교 도서관, 새로 생긴 시립 도서관 등을 다니며 책을 보 고 정리하며 어느정도 독학으르 공부하긴 했지만, 자주 안하다 보면 금방 잊어 개나리 연구소 C 언어 노트 (tyback.egloos.com) 프로그램을 학교 등지에서 조금이라도 배운 사람들을 위한 프로그래밍 노트 입니다. 저 역시 그 사람들 중 하나 입니다. 중고등학교 시절 학교 도서관, 새로 생긴 시립 도서관 등을 다니며 책을 보 고 정리하며 어느정도 독학으르 공부하긴 했지만, 자주 안하다 보면 금방 잊어먹고 하더라구요. 그래서,

More information

HWP Document

HWP Document 만델브로트 집합은 이주 간단한 복소수 점화식 (정확히 표현하면 이나 프로그래밍 편의상 간단히 로 표현하는 것으로 한다)에서 출발한다. 에서 의 초기값을 로 하여 점화식을 계속 반복하여 계산한다. 그 결과 는 값에 따라 하나의 값으로 수렴하기도 하고, 여러 값 사이를 순환적으로 왔다 갔다 하기도 하고 카오스적인 값이 반복되기도 한다. 만델브로트 집합에서도 기본

More information

C# Programming Guide - Types

C# Programming Guide - Types C# Programming Guide - Types 최도경 lifeisforu@wemade.com 이문서는 MSDN 의 Types 를요약하고보충한것입니다. http://msdn.microsoft.com/enus/library/ms173104(v=vs.100).aspx Types, Variables, and Values C# 은 type 에민감한언어이다. 모든

More information

자바 프로그래밍

자바 프로그래밍 5 (kkman@mail.sangji.ac.kr) (Class), (template) (Object) public, final, abstract [modifier] class ClassName { // // (, ) Class Circle { int radius, color ; int x, y ; float getarea() { return 3.14159

More information

thesis

thesis ( Design and Implementation of a Generalized Management Information Repository Service for Network and System Management ) ssp@nile nile.postech.ac..ac.kr DPE Lab. 1997 12 16 GMIRS GMIRS GMIRS prototype

More information

12-file.key

12-file.key 11 (String).. java.lang.stringbuffer. s String s = "abcd"; s = s + "e"; a b c d e a b c d e ,., "910359,, " "910359" " " " " (token) (token),, (delimiter). java.util.stringtokenizer String s = "910359,,

More information

Javascript.pages

Javascript.pages JQuery jquery part1 JavaScript : e-mail:leseraphina@naver.com http://www.webhard.co.kr I.? 2 ......,,. : : html5 ; ; .

More information

PART 1 CHAPTER 1 Chapter 1 Note 4 Part 1 5 Chapter 1 AcctNum = Table ("Customer").Cells("AccountNumber") AcctNum = Customer.AccountNumber Note 6 RecordSet RecordSet Part 1 Note 7 Chapter 1 01:

More information

5장.key

5장.key JAVA Programming 1 (inheritance) 2!,!! 4 3 4!!!! 5 public class Person {... public class Student extends Person { // Person Student... public class StudentWorker extends Student { // Student StudentWorker...!

More information

歯처리.PDF

歯처리.PDF E06 (Exception) 1 (Report) : { $I- } { I/O } Assign(InFile, InputName); Reset(InFile); { $I+ } { I/O } if IOResult 0 then { }; (Exception) 2 2 (Settling State) Post OnValidate BeforePost Post Settling

More information

y 0.5 9, 644 e = 10, y = ln = 3.6(%) , May. 20, 2005

y 0.5 9, 644 e = 10, y = ln = 3.6(%) , May. 20, 2005 8 116, May. 20, 2005 y 0.5 9, 644 e = 10, 000 1 9644 y = ln = 3.6(%) 0.5 10000 9 116, May. 20, 2005 y 0.5 9, 644 e = 10, 000 1 9644 y = ln = 3.6(%) 0.5 10000 1 FV r T = ln T PV 10 116, May. 20, 2005 Public

More information

3ÆÄÆ®-11

3ÆÄÆ®-11 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Chapter 15 Chapter 16 Chapter 17 C # N e t w o r k P r o g r a m m i n g Part 3 _ chapter 11 ICMP >>> 430 Chapter 11 _ 1 431 Part 3 _ 432 Chapter 11 _ N o t

More information

3ÆÄÆ®-14

3ÆÄÆ®-14 chapter 14 HTTP >>> 535 Part 3 _ 1 L i Sting using System; using System.Net; using System.Text; class DownloadDataTest public static void Main (string[] argv) WebClient wc = new WebClient(); byte[] response

More information

Ext JS À¥¾ÖÇø®ÄÉÀ̼ǰ³¹ß-³¹Àå.PDF

Ext JS À¥¾ÖÇø®ÄÉÀ̼ǰ³¹ß-³¹Àå.PDF CHAPTER 2 (interaction) Ext JS., HTML, onready, MessageBox get.. Ext JS HTML CSS Ext JS.1. Ext JS. Ext.Msg: : Ext Ext.get: DOM 22 CHAPTER 2 (config). Ext JS.... var test = new TestFunction( 'three', 'fixed',

More information

T100MD+

T100MD+ User s Manual 100% ) ( x b a a + 1 RX+ TX+ DTR GND TX+ RX+ DTR GND RX+ TX+ DTR GND DSR RX+ TX+ DTR GND DSR [ DCE TYPE ] [ DCE TYPE ] RS232 Format Baud 1 T100MD+

More information

PRO1_09E [읽기 전용]

PRO1_09E [읽기 전용] Siemens AG 1999 All rights reserved File: PRO1_09E1 Information and - ( ) 2 3 4 5 Monitor/Modify Variables" 6 7 8 9 10 11 CPU 12 Stop 13 (Forcing) 14 (1) 15 (2) 16 : 17 : Stop 18 : 19 : (Forcing) 20 :

More information

untitled

untitled A Leader of Enterprise e-business Solution FORCS Co., LTD 1 OZ Application Designer User's Guide 2 FORCS Co., LTD A Leader of Enterprise e-business Solution FORCS Co., LTD 3 OZ Application Designer User's

More information

untitled

untitled 1 OZ Application Designer User's Guide 2 3 OZ Application Designer User's Guide 4 5 OZ Application Designer User's Guide Application 'OZ Application Designer', 'OZ Application Designer' 'OZ Application

More information

C 프로그래밍 언어 입문 C 프로그래밍 언어 입문 김명호저 숭실대학교 출판국 머리말..... C, C++, Java, Fortran, Python, Ruby,.. C. C 1972. 40 C.. C. 1999 C99. C99. C. C. C., kmh ssu.ac.kr.. ,. 2013 12 Contents 1장 프로그래밍 시작 1.1 C 10 1.2 12

More information

초보자를 위한 C++

초보자를 위한 C++ C++. 24,,,,, C++ C++.,..,., ( ). /. ( 4 ) ( ).. C++., C++ C++. C++., 24 C++. C? C++ C C, C++ (Stroustrup) C++, C C++. C. C 24.,. C. C+ +?. X C++.. COBOL COBOL COBOL., C++. Java C# C++, C++. C++. Java C#

More information

untitled

untitled A Leader of Enterprise e-business Solution FORCS Co., LTD 1 OZ Application Designer User's Guide 2 FORCS Co., LTD A Leader of Enterprise e-business Solution FORCS Co., LTD 3 OZ Application Designer User's

More information

학습목표 텍스트파일을다룰수있다. 스트림읽기, 쓰기를안다. 2

학습목표 텍스트파일을다룰수있다. 스트림읽기, 쓰기를안다. 2 학습목표 텍스트파일을다룰수있다. 스트림읽기, 쓰기를안다. 2 8.1 텍스트파일다루기 8.2 스트림읽기, 쓰기 3 텍스트파일 문자, 숫자, 단어들이하나이상의줄로구성 파일확장명 :.txt,.ini,.log, OpenFileDialog 컨트롤 : 파일의위치를사용자가쉽게선택가능 Filter 속성 : 파일의형식선택가능 ShowDialog 메서드 : 열기대화상자 FileName

More information

Something that can be seen, touched or otherwise sensed

Something that can be seen, touched or otherwise sensed Something that can be seen, touched or otherwise sensed Things about an object Weight Height Material Things an object does Pen writes Book stores words Water have Fresh water Rivers Oceans have

More information

untitled

untitled A Leader of Enterprise e-business Solution FORCS Co., LTD 1 OZ Application Designer User's Guide 2 FORCS Co., LTD A Leader of Enterprise e-business Solution FORCS Co., LTD 3 OZ Application Designer User's

More information

untitled

untitled 1 OZ Application Designer User's Guide 2 3 OZ Application Designer User's Guide 4 5 OZ Application Designer User's Guide Application 'OZ Application Designer', 'OZ Application Designer' 'OZ Application

More information

03-JAVA Syntax(2).PDF

03-JAVA Syntax(2).PDF JAVA Programming Language Syntax of JAVA (literal) (Variable and data types) (Comments) (Arithmetic) (Comparisons) (Operators) 2 HelloWorld application Helloworldjava // class HelloWorld { //attribute

More information

C# 입문 : 이론과 실습

C# 입문 : 이론과 실습 버튺기반컨트롤 레이블과링크레이블 텍스트상자 리스트 [2/43] 컨트롤 화면에표시되어사용자와상호작용을수행하는컴포넌트를의미. 종류 : 버튺, 레이블, 텍스트, 리스트 버튺기반컨트롤 : 버튺, 체크상자, 라디오버튺 컨트롤의종류 레이블컨트롤 : 레이블, 링크레이블 텍스트컨트롤 : 텍스트상자 리스트컨트롤 : 리스트상자, 콤보상자, 체크리스트상자 [3/43] 버튺기반컨트롤

More information

Visual Basic 기본컨트롤

Visual Basic 기본컨트롤 학습목표 폼 ( Form) 폼의속성, 컨트롤이름, 컨트롤메서드 기본컨트롤 레이블, 텍스트박스, 버튼, 리스트박스 이벤트 버튼 기본컨트롤실습 2 2.1 폼 (Form) 2.2 기본컨트롤 2.3 기본컨트롤실습 3 폼 - 속성 속성 (Name) AutoSize BackColor Font ForeColor Icon StartPosition Transparency WindowState

More information

Remote UI Guide

Remote UI Guide Remote UI KOR Remote UI Remote UI PDF Adobe Reader/Adobe Acrobat Reader. Adobe Reader/Adobe Acrobat Reader Adobe Systems Incorporated.. Canon. Remote UI GIF Adobe Systems Incorporated Photoshop. ..........................................................

More information

untitled

untitled 1 2 3 4 5 Application 'OZ Application Designer', 'OZ Application Designer' 'OZ Application Designer', OZC, OZS, OZF.. OZ Application Designer OZ Application Designer. OZ Application Designer,,, OZ Application

More information

07 자바의 다양한 클래스.key

07 자바의 다양한 클래스.key [ 07 ] . java.lang Object, Math, String, StringBuffer Byte, Short, Integer, Long, Float, Double, Boolean, Character. java.util Random, StringTokenizer Calendar, GregorianCalendar, Date. Collection, List,

More information

05-class.key

05-class.key 5 : 2 (method) (public) (private) (interface) 5.1 (Method), (public method) (private method) (constructor), 3 4 5.2 (client). (receiver)., System.out.println("Hello"); (client object) (receiver object)

More information

Microsoft PowerPoint - hci2-lecture9.ppt [호환 모드]

Microsoft PowerPoint - hci2-lecture9.ppt [호환 모드] Overview C# Controls 321190 2011 년가을학기 10/25/2011 박경신 Common Controls Label, LinkLabel TextBox Button GroupBox, Panel CheckBox, Radio Button ListBox, ComboBox Timer ImageList TabControl ListView TreeView

More information

강의10

강의10 Computer Programming gdb and awk 12 th Lecture 김현철컴퓨터공학부서울대학교 순서 C Compiler and Linker 보충 Static vs Shared Libraries ( 계속 ) gdb awk Q&A Shared vs Static Libraries ( 계속 ) Advantage of Using Libraries Reduced

More information

Chapter 4. LISTS

Chapter 4. LISTS 연결리스트의응용 류관희 충북대학교 1 체인연산 체인을역순으로만드는 (inverting) 연산 3 개의포인터를적절히이용하여제자리 (in place) 에서문제를해결 typedef struct listnode *listpointer; typedef struct listnode { char data; listpointer link; ; 2 체인연산 체인을역순으로만드는

More information

LCD Display

LCD Display LCD Display SyncMaster 460DRn, 460DR VCR DVD DTV HDMI DVI to HDMI LAN USB (MDC: Multiple Display Control) PC. PC RS-232C. PC (Serial port) (Serial port) RS-232C.. > > Multiple Display

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 @ Lesson 4 (Object) (Class) (Instance) (Method) (Constructor) Memory 1 UML 1 @ & 1 (Real World) (Software World) @ &.. () () @ & 2 (Real World) (Software World) OOA/ Modeling Abstraction Instantiation

More information

untitled

untitled - -, (insert) (delete) - - (insert) (delete) (top ) - - (insert) (rear) (delete) (front) A A B top A B C top push(a) push(b) push(c) A B top pop() top A B D push(d) top #define MAX_STACK_SIZE 100 int

More information

SRC PLUS 제어기 MANUAL

SRC PLUS 제어기 MANUAL ,,,, DE FIN E I N T R E A L L O C E N D SU B E N D S U B M O TIO

More information

untitled

untitled Step Motor Device Driver Embedded System Lab. II Step Motor Step Motor Step Motor source Embedded System Lab. II 2 open loop, : : Pulse, 1 Pulse,, -, 1 +5%, step Step Motor (2),, Embedded System Lab. II

More information

비긴쿡-자바 00앞부속

비긴쿡-자바 00앞부속 IT COOKBOOK 14 Java P r e f a c e Stay HungryStay Foolish 3D 15 C 3 16 Stay HungryStay Foolish CEO 2005 L e c t u r e S c h e d u l e 1 14 PPT API C A b o u t T h i s B o o k IT CookBook for Beginner Chapter

More information

Week5

Week5 Week 05 Iterators, More Methods and Classes Hash, Regex, File I/O Joonhwan Lee human-computer interaction + design lab. Iterators Writing Methods Classes & Objects Hash File I/O Quiz 4 1. Iterators Array

More information

MPLAB C18 C

MPLAB C18 C MPLAB C18 C MPLAB C18 MPLAB C18 C MPLAB C18 C #define START, c:\mcc18 errorlevel{0 1} char isascii(char ch); list[list_optioin,list_option] OK, Cancel , MPLAB IDE User s Guide MPLAB C18 C

More information

03장.스택.key

03장.스택.key ---------------- DATA STRUCTURES USING C ---------------- 03CHAPTER 1 ? (stack): (LIFO:Last-In First-Out) 2 : top : ( index -1 ),,, 3 : ( ) ( ) -> ->. ->.... 4 Stack ADT : (LIFO) : init():. is_empty():

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 @ Lesson 1,..... @ 1 Green Project 1991 Oak Java 1995. 5 December '90 by Patrick Naughton, Mike Sheridan and James Gosling Embedded in various consumer electronic device 1992. 9. 3 Star 7 1993 www portability

More information

untitled

untitled Push... 2 Push... 4 Push... 5 Push... 13 Push... 15 1 FORCS Co., LTD A Leader of Enterprise e-business Solution Push (Daemon ), Push Push Observer. Push., Observer. Session. Thread Thread. Observer ID.

More information

09-interface.key

09-interface.key 9 Database insert(record r): boolean find(key k): Record 1 Record getkey(): Key * Record Key Database.? Key equals(key y): boolean Database insert(record r): boolean find(key k): Record * Database OK 1

More information

untitled

untitled CAN BUS RS232 Line Ethernet CAN H/W FIFO RS232 FIFO IP ARP CAN S/W FIFO TERMINAL Emulator COMMAND Interpreter ICMP TCP UDP PROTOCOL Converter TELNET DHCP C2E SW1 CAN RS232 RJ45 Power

More information

EMBARCADERO TECHNOLOGIES (Humphery Kim) RAD Studio : h=p://tech.devgear.co.kr/ : h=p://blog.hjf.pe.kr/ Facebook : h=p://d.com/hjfactory :

EMBARCADERO TECHNOLOGIES (Humphery Kim) RAD Studio : h=p://tech.devgear.co.kr/ : h=p://blog.hjf.pe.kr/ Facebook : h=p://d.com/hjfactory : #3 (RAD STUDIO) In www.devgear.co.kr 2016.05.23 EMBARCADERO TECHNOLOGIES (Humphery Kim) RAD Studio : h=p://tech.devgear.co.kr/ : h=p://blog.hjf.pe.kr/ Facebook : h=p://d.com/hjfactory : hskim@embarcadero.kr

More information

Microsoft PowerPoint - 04-UDP Programming.ppt

Microsoft PowerPoint - 04-UDP Programming.ppt Chapter 4. UDP Dongwon Jeong djeong@kunsan.ac.kr http://ist.kunsan.ac.kr/ Dept. of Informatics & Statistics 목차 UDP 1 1 UDP 개념 자바 UDP 프로그램작성 클라이언트와서버모두 DatagramSocket 클래스로생성 상호간통신은 DatagramPacket 클래스를이용하여

More information

6주차.key

6주차.key 6, Process concept A program in execution Program code PCB (process control block) Program counter, registers, etc. Stack Heap Data section => global variable Process in memory Process state New Running

More information

MasoJava4_Dongbin.PDF

MasoJava4_Dongbin.PDF JSTORM http://wwwjstormpekr Issued by: < > Revision: Document Information Document title: Document file name: MasoJava4_Dongbindoc Revision number: Issued by: < > SI, dbin@handysoftcokr

More information

13주-14주proc.PDF

13주-14주proc.PDF 12 : Pro*C/C++ 1 2 Embeded SQL 3 PRO *C 31 C/C++ PRO *C NOT! NOT AND && AND OR OR EQUAL == = SQL,,, Embeded SQL SQL 32 Pro*C C SQL Pro*C C, C Pro*C, C C 321, C char : char[n] : n int, short, long : float

More information

신림프로그래머_클린코드.key

신림프로그래머_클린코드.key CLEAN CODE 6 11st Front Dev. Team 6 1. 2. 3. checked exception 4. 5. 6. 11 : 2 4 : java (50%), javascript (35%), SQL/PL-SQL (15%) : Spring, ibatis, Oracle, jquery ? , (, ) ( ) 클린코드를 무시한다면 . 6 1. ,,,!

More information

4. #include <stdio.h> #include <stdlib.h> int main() { functiona(); } void functiona() { printf("hihi\n"); } warning: conflicting types for functiona

4. #include <stdio.h> #include <stdlib.h> int main() { functiona(); } void functiona() { printf(hihi\n); } warning: conflicting types for functiona 이름 : 학번 : A. True or False: 각각항목마다 True 인지 False 인지적으세요. 1. (Python:) randint 함수를사용하려면, random 모듈을 import 해야한다. 2. (Python:) '' (single quote) 는한글자를표현할때, (double quote) 는문자열을표현할때사용한다. B. 다음에러를수정하는방법을적으세요.

More information

윈도우즈프로그래밍(1)

윈도우즈프로그래밍(1) 제어문 (2) For~Next 문 윈도우즈프로그래밍 (1) ( 신흥대학교컴퓨터정보계열 ) 2/17 Contents 학습목표 프로그램에서주어진특정문장을부분을일정횟수만큼반복해서실행하는문장으로 For~Next 문등의구조를이해하고활용할수있다. 내용 For~Next 문 다중 For 문 3/17 제어문 - FOR 문 반복문 : 프로그램에서주어진특정문장들을일정한횟수만큼반복해서실행하는문장

More information

ch09

ch09 9 Chapter CHAPTER GOALS B I G J A V A 436 CHAPTER CONTENTS 9.1 436 Syntax 9.1 441 Syntax 9.2 442 Common Error 9.1 442 9.2 443 Syntax 9.3 445 Advanced Topic 9.1 445 9.3 446 9.4 448 Syntax 9.4 454 Advanced

More information

C++-¿Ïº®Çؼ³10Àå

C++-¿Ïº®Çؼ³10Àå C C++. (preprocessor directives), C C++ C/C++... C++, C. C++ C. C C++. C,, C++, C++., C++.,.. #define #elif #else #error #if #itdef #ifndef #include #line #pragma #undef #.,.,. #include #include

More information

歯9장.PDF

歯9장.PDF 9 Hello!! C printf() scanf() getchar() putchar() gets() puts() fopen() fclose() fprintf() fscant() fgetc() fputs() fgets() gputs() fread() fwrite() fseek() ftell() I/O 2 (stream) C (text stream) : `/n'

More information

Secure Programming Lecture1 : Introduction

Secure Programming Lecture1 : Introduction Malware and Vulnerability Analysis Lecture3-2 Malware Analysis #3-2 Agenda 안드로이드악성코드분석 악성코드분석 안드로이드악성코드정적분석 APK 추출 #1 adb 명령 안드로이드에설치된패키지리스트추출 adb shell pm list packages v0nui-macbook-pro-2:lecture3 v0n$

More information

13ÀåÃß°¡ºÐ

13ÀåÃß°¡ºÐ 13 CHAPTER 13 CHAPTER 2 3 4 5 6 7 06 android:background="#ffffffff"> 07

More information

Orcad Capture 9.x

Orcad Capture 9.x OrCAD Capture Workbook (Ver 10.xx) 0 Capture 1 2 3 Capture for window 4.opj ( OrCAD Project file) Design file Programe link file..dsn (OrCAD Design file) Design file..olb (OrCAD Library file) file..upd

More information

학습목표 배열에대해서안다. 언어통합질의 (LINQ) 에대해서안다. 2

학습목표 배열에대해서안다. 언어통합질의 (LINQ) 에대해서안다. 2 학습목표 배열에대해서안다. 언어통합질의 (LINQ) 에대해서안다. 2 7.1 배열 7.2 언어통합질의 (LINQ) 3 배열 - 필요성 100 명의이름과국어, 영어, 수학과목에대한각각의합계와평균계산을위한프로그램? name_1 name_2 name_100 kuk_1 kuk_2 kuk_100? young_1 4 배열 -? name_1 name_2 name_100

More information

11 템플릿적용 - Java Program Performance Tuning (김명호기술이사)

11 템플릿적용 - Java Program Performance Tuning (김명호기술이사) Java Program Performance Tuning ( ) n (Primes0) static List primes(int n) { List primes = new ArrayList(n); outer: for (int candidate = 2; n > 0; candidate++) { Iterator iter = primes.iterator(); while

More information

106 107, ( ),, ( ), 3, int kor[5]; int eng[5]; int Microsoft Windows 4 (ANSI C2 ) int kor[5] 20 # define #define SIZE 20 int a[10]; char c[10]; float

106 107, ( ),, ( ), 3, int kor[5]; int eng[5]; int Microsoft Windows 4 (ANSI C2 ) int kor[5] 20 # define #define SIZE 20 int a[10]; char c[10]; float Part 2 31 32 33 106 107, ( ),, ( ), 3, int kor[5]; int eng[5]; int Microsoft Windows 4 (ANSI C2 ) int kor[5] 20 # define #define SIZE 20 int a[10]; char c[10]; float f[size]; /* 10 /* c 10 /* f 20 3 1

More information

ilist.add(new Integer(1))과 같이 사용하지 않고 ilist.add(1)과 같이 사용한 것은 자바 5.0에 추가된 기본 자료형과 해당 객체 자료 형과의 오토박싱/언박싱 기능을 사용한 것으로 오토박싱이란 자바 컴파일러가 객체를 요구하는 곳에 기본 자료형

ilist.add(new Integer(1))과 같이 사용하지 않고 ilist.add(1)과 같이 사용한 것은 자바 5.0에 추가된 기본 자료형과 해당 객체 자료 형과의 오토박싱/언박싱 기능을 사용한 것으로 오토박싱이란 자바 컴파일러가 객체를 요구하는 곳에 기본 자료형 바에 제네릭스(generics)를 도입하기 위한 연구는 이미 8년 전인 1996년부터라고 한다. 실제로 자바에 제네릭스를 도입하 는 몇 가지 방안들이 논문으로 나오기 시작한 것이 1998년 초임을 감 안하면 무려 8년이 지난 후에야 자바 5.0에 전격 채택되었다는 것은 이것이 얼마나 어려운 일이었나 하는 것을 보여준다. 자바의 스펙을 결정하는 표준화 절차인

More information

OCaml

OCaml OCaml 2009.. (khheo@ropas.snu.ac.kr) 1 ML 2 ML OCaml INRIA, France SML Bell lab. & Princeton, USA nml SNU/KAIST, KOREA 3 4 (let) (* ex1.ml *) let a = 10 let add x y = x + y (* ex2.ml *) let sumofsquare

More information

Microsoft PowerPoint - 기계공학실험1-1MATLAB_개요2D.pptx

Microsoft PowerPoint - 기계공학실험1-1MATLAB_개요2D.pptx 1. MATLAB 개요와 활용 기계공학실험 I 2013년 2학기 MATLAB 시작하기 이장의내용 MATLAB의여러창(window)들의 특성과 목적 기술 스칼라의 산술연산 및 기본 수학함수의 사용. 스칼라 변수들(할당 연산자)의 정의 및 변수들의 사용 방법 스크립트(script) 파일에 대한 소개와 간단한 MATLAB 프로그램의 작성, 저장 및 실행 MATLAB의특징

More information

10X56_NWG_KOR.indd

10X56_NWG_KOR.indd 디지털 프로젝터 X56 네트워크 가이드 이 제품을 구입해 주셔서 감사합니다. 본 설명서는 네트워크 기능 만을 설명하기 위한 것입니다. 본 제품을 올바르게 사 용하려면 이 취급절명저와 본 제품의 다른 취급절명저를 참조하시기 바랍니다. 중요한 주의사항 이 제품을 사용하기 전에 먼저 이 제품에 대한 모든 설명서를 잘 읽어 보십시오. 읽은 뒤에는 나중에 필요할 때

More information

61 62 63 64 234 235 p r i n t f ( % 5 d :, i+1); g e t s ( s t u d e n t _ n a m e [ i ] ) ; if (student_name[i][0] == \ 0 ) i = MAX; p r i n t f (\ n :\ n ); 6 1 for (i = 0; student_name[i][0]!= \ 0&&

More information

JMF3_심빈구.PDF

JMF3_심빈구.PDF JMF JSTORM http://wwwjstormpekr Issued by: < > Revision: Document Information Document title: Document file name: Revision number: Issued by: JMF3_ doc Issue Date:

More information

UI TASK & KEY EVENT

UI TASK & KEY EVENT KEY EVENT & STATE 구현 2007. 1. 25 PLATFORM TEAM 정용학 차례 Key Event HS TASK UI TASK LONG KEY STATE 구현 소스코드및실행화면 질의응답및토의 2 KEY EVENT - HS TASK hs_task keypad_scan_keypad hs_init keypad_pass_key_code keypad_init

More information

0. 표지에이름과학번을적으시오. (6) 1. 변수 x, y 가 integer type 이라가정하고다음빈칸에 x 와 y 의계산결과값을적으시오. (5) x = (3 + 7) * 6; x = 60 x = (12 + 6) / 2 * 3; x = 27 x = 3 * (8 / 4

0. 표지에이름과학번을적으시오. (6) 1. 변수 x, y 가 integer type 이라가정하고다음빈칸에 x 와 y 의계산결과값을적으시오. (5) x = (3 + 7) * 6; x = 60 x = (12 + 6) / 2 * 3; x = 27 x = 3 * (8 / 4 Introduction to software design 2012-1 Final 2012.06.13 16:00-18:00 Student ID: Name: - 1 - 0. 표지에이름과학번을적으시오. (6) 1. 변수 x, y 가 integer type 이라가정하고다음빈칸에 x 와 y 의계산결과값을적으시오. (5) x = (3 + 7) * 6; x = 60 x

More information

untitled

untitled 1... 2 System... 3... 3.1... 3.2... 3.3... 4... 4.1... 5... 5.1... 5.2... 5.2.1... 5.3... 5.3.1 Modbus-TCP... 5.3.2 Modbus-RTU... 5.3.3 LS485... 5.4... 5.5... 5.5.1... 5.5.2... 5.6... 5.6.1... 5.6.2...

More information

chap 5: Trees

chap 5: Trees 5. Threaded Binary Tree 기본개념 n 개의노드를갖는이진트리에는 2n 개의링크가존재 2n 개의링크중에 n + 1 개의링크값은 null Null 링크를다른노드에대한포인터로대체 Threads Thread 의이용 ptr left_child = NULL 일경우, ptr left_child 를 ptr 의 inorder predecessor 를가리키도록변경

More information

PRO1_04E [읽기 전용]

PRO1_04E [읽기 전용] Siemens AG 1999 All rights reserved File: PRO1_04E1 Information and S7-300 2 S7-400 3 EPROM / 4 5 6 HW Config 7 8 9 CPU 10 CPU : 11 CPU : 12 CPU : 13 CPU : / 14 CPU : 15 CPU : / 16 HW 17 HW PG 18 SIMATIC

More information

어댑터뷰

어댑터뷰 04 커스텀어댑터뷰 (Custom Adapter View) 커스텀어댑터뷰 (Custom Adapter View) 커스텀어댑터뷰 (Custom Adatper View) 란? u 어댑터뷰의항목하나는단순한문자열이나이미지뿐만아니라, 임의의뷰가될수 있음 이미지뷰 u 커스텀어댑터뷰설정절차 1 2 항목을위한 XML 레이아웃정의 어댑터정의 3 어댑터를생성하고어댑터뷰객체에연결

More information