C# Programming: Lesson 2. Input, Variables and Data Types

Veröffentlicht am: 21 Mai 2023
auf dem Kanal: Computer Science (Kevin Drumm)
1,974
64

This is the second in a series of computer science lessons about programming with C# for beginners. In this lesson you will learn how to use a textbox control on a form to collect input from the user of your application. You will also learn how to declare and initialise variables to store different types of data while your program is running, and how to output the contents of these variables. You will learn how to build an output string by concatenating literal strings and the contents of variables together. In doing so, you will begin to understand the concept of casting, that is, how to convert the contents of a variable from one data type to another. You will also see the difference between explicit and implicit casting.

Chapters:
00:00 Introduction
00:32 TextBox and Label controls
02:36 String concatenation
05:15 Declare variables
09:58 Explicit casting
11:05 Implicit casting
12:08 Output string with line breaks
14:18 Collect input data from a form
17:24 Exercise
18:14 Solution
19:50 A runtime exception error


Auf dieser Seite können Sie das Online-Video C# Programming: Lesson 2. Input, Variables and Data Types mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Computer Science (Kevin Drumm) 21 Mai 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,974 Mal angesehen und es wurde von 64 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!