Created
March 7, 2021 01:28
-
-
Save taefreeze/14bef24f36b5b7856a579b708229259d to your computer and use it in GitHub Desktop.
Struct program
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Books | |
{ | |
public string title; | |
public string author; | |
public string subject; | |
public int book_id; | |
}; | |
Books test; | |
test.title = "Struct Sample"; | |
test.author = "Tae Chanwit"; | |
test.subject = "Structure in dotnet5 C#"; | |
test.book_id = 8211; | |
Console.WriteLine( "title :", test.title); | |
Console.WriteLine("author :", test.author); | |
Console.WriteLine("subject :", test.subject); | |
Console.WriteLine("book_id :", test.book_id); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment