Compiler Design First Lecture C Button Control C

Compiler Design First Lecture

C# Button Control

C# Button Control

C# Label Control

Text. Box Control

Text. Box Control

Text. Box Control

Text. Box Control

C# string Compare int string. Compare(string str 1, string str 2) Parameters: string str 1 : Parameter String str 2 : Parameter String Returns: Integer : returns less than zero, zero or greater than zero. • Less than zero : str 1 is less than str 2 • zero : str 1 is equal to str 2 • Greater than zero : str 1 is greater than str 2

C# string Compare

C# string Compare

C# string Concat in CSharp String Class Concatenates the two specified string and create a new string concat(string str 1, string str 2) Returns: String : A new String return with str 1 Concat with str 2

C# string Concat

C# string Concat

C# string Concat

C# string Concat

C# string Length

C# string Insert The Insert() function in String Class will insert a String in a specified index in the String instance. string. Insert(int ind, string str) Parameters: ind - The index of the specified string to be inserted. str - The string to be inserted. Returns: String - The result string.

C# string Insert

HW 1. Write C# form application to perform the last Inset example using text. Box and button control? 2. Write C# form application to perform the four math. Operation (-, +, *, /) using text. Box and button control? 3. Write C# form application to perform the Concatenation of three deferent string? 4. Write C# form application to Compare between ST 1 and ST 3, ST 2 and ST 4 and display the result in Massage. Box ?
- Slides: 20