{"id":116,"date":"2012-04-24T14:08:21","date_gmt":"2012-04-24T13:08:21","guid":{"rendered":"http:\/\/www.djhiro.at\/?p=116"},"modified":"2012-05-04T09:26:29","modified_gmt":"2012-05-04T08:26:29","slug":"simple-hello-kitty-with-c","status":"publish","type":"post","link":"https:\/\/www.djhiro.at\/?p=116","title":{"rendered":"Simple Hello Kitty with C#"},"content":{"rendered":"<p>How to create a Simple &#8220;Hello Kitty&#8221; with C# (Console Application)<\/p>\n<p>First we create a &#8220;Console-Application-Project&#8221; within the Visual C# Express Studio<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wpgallery\" title=\"New C# Console Project\" src=\"https:\/\/www.djhiro.at\/wp-content\/uploads\/2012\/04\/consoleproject.png\" alt=\"Create a new console Project within Visual Studio Express C#\" width=\"611\" height=\"575\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>The Console Project Name can be anything you like (ex. HelloKitty)<\/p>\n<p>After pressing &#8220;ok&#8221; the File Program.cs will be opened.<\/p>\n<p>It will look something like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Program.cs after creating the Hello Kitty Project\" src=\"https:\/\/www.djhiro.at\/wp-content\/uploads\/2012\/04\/programcs.png\" alt=\"Program.cs\" width=\"451\" height=\"429\" \/><\/p>\n<p>With the codeline: System.Console. you can work with the console &#8220;window&#8221;, display data, read data, etc.<\/p>\n<p>To Display a normal text you use the function &#8220;WriteLine&#8221;, which writes a line of text. If you want to write just one character, you can use &#8220;Write&#8221; instead.<\/p>\n<pre class=\"lang:c# decode:true\">System.Console.WriteLine(\"Hello Kitty\");<\/pre>\n<p>If you compile the program, the console window will be closed\u00a0instantaneous, to prevent this behavior, we wait till the user enters at least one character.<\/p>\n<p>This can be achvieved with the functions &#8220;ReadKey&#8221;, &#8220;Read&#8221; or &#8220;ReadLine&#8221;. The difference between those functions is that &#8220;ReadKey&#8221;, reads exactly one character and displays this character on the console, &#8220;Read&#8221; reads just the next character and &#8220;ReadLine&#8221; reads the whole line on the console application.<\/p>\n<pre class=\"lang:c# decode:true\">System.Console.ReadKey();<\/pre>\n<p>It should look like this now:<\/p>\n<pre class=\"lang:c# decode:true\">using System;\r\nusing System.Text;\r\n\r\nnamespace HelloKitty\r\n{\r\n    class Program\r\n    {\r\n        static void Main(string[] args)\r\n        {\r\n            System.Console.WriteLine(\"Hello Kitty\");\r\n            System.Console.ReadKey();\r\n        }\r\n    }\r\n}<\/pre>\n<p>After compiling the program, it should open a console window and display the text which has been entered after the \u00a0&#8220;WriteLine&#8221; command:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Hello Kitty\" src=\"https:\/\/www.djhiro.at\/wp-content\/uploads\/2012\/04\/hellokitty.png\" alt=\"Hello Kitty\" width=\"117\" height=\"100\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to create a Simple &#8220;Hello Kitty&#8221; with C# (Console Application) First we create a &#8220;Console-Application-Project&#8221; within the Visual C# Express Studio &nbsp; The Console Project Name can be anything you like (ex. HelloKitty) After pressing &#8220;ok&#8221; the File Program.cs &hellip; <a href=\"https:\/\/www.djhiro.at\/?p=116\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":45,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[88,89,76],"tags":[91,98,90,94,93,92,95,137,97,96],"class_list":["post-116","post","type-post","status-publish","format-standard","hentry","category-english","category-languages","category-programming","tag-net","tag-98","tag-c","tag-hello","tag-hello-kitty","tag-hello-world","tag-kitty","tag-programming","tag-visual-studio","tag-world"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"Different Hello World Program\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Hirogen\"\/>\n\t<meta name=\"keywords\" content=\"hello world,programming,visual studio,.net,c#,\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.djhiro.at\/?p=116\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Hiro&#039;s Web-Blog | Dj Hiro&#039;s Web-Blog\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Hello Kitty | Hiro&#039;s Web-Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Different Hello World Program\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.djhiro.at\/?p=116\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2012-04-24T13:08:21+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2012-05-04T08:26:29+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Hello Kitty | Hiro&#039;s Web-Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Different Hello World Program\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.djhiro.at\\\/?p=116#article\",\"name\":\"Hello Kitty | Hiro's Web-Blog\",\"headline\":\"Simple Hello Kitty with C#\",\"author\":{\"@id\":\"https:\\\/\\\/www.djhiro.at\\\/?author=45#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.djhiro.at\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.djhiro.at\\\/wp-content\\\/uploads\\\/2012\\\/04\\\/consoleproject.png\",\"@id\":\"https:\\\/\\\/www.djhiro.at\\\/?p=116\\\/#articleImage\",\"width\":1019,\"height\":958,\"caption\":\"vsexpress\"},\"datePublished\":\"2012-04-24T14:08:21+01:00\",\"dateModified\":\"2012-05-04T09:26:29+01:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.djhiro.at\\\/?p=116#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.djhiro.at\\\/?p=116#webpage\"},\"articleSection\":\"English, Languages, programming, .net, 2010, C#, hello, hello kitty, hello world, kitty, programming, Visual Studio, world\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.djhiro.at\\\/?p=116#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.djhiro.at#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.djhiro.at\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.djhiro.at\\\/?cat=66#listItem\",\"name\":\"PC\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.djhiro.at\\\/?cat=66#listItem\",\"position\":2,\"name\":\"PC\",\"item\":\"https:\\\/\\\/www.djhiro.at\\\/?cat=66\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.djhiro.at\\\/?cat=76#listItem\",\"name\":\"programming\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.djhiro.at#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.djhiro.at\\\/?cat=76#listItem\",\"position\":3,\"name\":\"programming\",\"item\":\"https:\\\/\\\/www.djhiro.at\\\/?cat=76\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.djhiro.at\\\/?p=116#listItem\",\"name\":\"Simple Hello Kitty with C#\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.djhiro.at\\\/?cat=66#listItem\",\"name\":\"PC\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.djhiro.at\\\/?p=116#listItem\",\"position\":4,\"name\":\"Simple Hello Kitty with C#\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.djhiro.at\\\/?cat=76#listItem\",\"name\":\"programming\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.djhiro.at\\\/#organization\",\"name\":\"Hiro's Web-Blog\",\"description\":\"Dj Hiro's Web-Blog\",\"url\":\"https:\\\/\\\/www.djhiro.at\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.djhiro.at\\\/?author=45#author\",\"url\":\"https:\\\/\\\/www.djhiro.at\\\/?author=45\",\"name\":\"Hirogen\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.djhiro.at\\\/?p=116#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f7709cad2632edd18a6b3c880315578d42e328d748ff9916941f0edbdb8ce150?s=96&d=wavatar&r=pg\",\"width\":96,\"height\":96,\"caption\":\"Hirogen\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.djhiro.at\\\/?p=116#webpage\",\"url\":\"https:\\\/\\\/www.djhiro.at\\\/?p=116\",\"name\":\"Hello Kitty | Hiro's Web-Blog\",\"description\":\"Different Hello World Program\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.djhiro.at\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.djhiro.at\\\/?p=116#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.djhiro.at\\\/?author=45#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.djhiro.at\\\/?author=45#author\"},\"datePublished\":\"2012-04-24T14:08:21+01:00\",\"dateModified\":\"2012-05-04T09:26:29+01:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.djhiro.at\\\/#website\",\"url\":\"https:\\\/\\\/www.djhiro.at\\\/\",\"name\":\"Hiro's Web-Blog\",\"description\":\"Dj Hiro's Web-Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.djhiro.at\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Hello Kitty | Hiro's Web-Blog","description":"Different Hello World Program","canonical_url":"https:\/\/www.djhiro.at\/?p=116","robots":"max-image-preview:large","keywords":"hello world,programming,visual studio,.net,c#,","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.djhiro.at\/?p=116#article","name":"Hello Kitty | Hiro's Web-Blog","headline":"Simple Hello Kitty with C#","author":{"@id":"https:\/\/www.djhiro.at\/?author=45#author"},"publisher":{"@id":"https:\/\/www.djhiro.at\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.djhiro.at\/wp-content\/uploads\/2012\/04\/consoleproject.png","@id":"https:\/\/www.djhiro.at\/?p=116\/#articleImage","width":1019,"height":958,"caption":"vsexpress"},"datePublished":"2012-04-24T14:08:21+01:00","dateModified":"2012-05-04T09:26:29+01:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.djhiro.at\/?p=116#webpage"},"isPartOf":{"@id":"https:\/\/www.djhiro.at\/?p=116#webpage"},"articleSection":"English, Languages, programming, .net, 2010, C#, hello, hello kitty, hello world, kitty, programming, Visual Studio, world"},{"@type":"BreadcrumbList","@id":"https:\/\/www.djhiro.at\/?p=116#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.djhiro.at#listItem","position":1,"name":"Home","item":"https:\/\/www.djhiro.at","nextItem":{"@type":"ListItem","@id":"https:\/\/www.djhiro.at\/?cat=66#listItem","name":"PC"}},{"@type":"ListItem","@id":"https:\/\/www.djhiro.at\/?cat=66#listItem","position":2,"name":"PC","item":"https:\/\/www.djhiro.at\/?cat=66","nextItem":{"@type":"ListItem","@id":"https:\/\/www.djhiro.at\/?cat=76#listItem","name":"programming"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.djhiro.at#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.djhiro.at\/?cat=76#listItem","position":3,"name":"programming","item":"https:\/\/www.djhiro.at\/?cat=76","nextItem":{"@type":"ListItem","@id":"https:\/\/www.djhiro.at\/?p=116#listItem","name":"Simple Hello Kitty with C#"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.djhiro.at\/?cat=66#listItem","name":"PC"}},{"@type":"ListItem","@id":"https:\/\/www.djhiro.at\/?p=116#listItem","position":4,"name":"Simple Hello Kitty with C#","previousItem":{"@type":"ListItem","@id":"https:\/\/www.djhiro.at\/?cat=76#listItem","name":"programming"}}]},{"@type":"Organization","@id":"https:\/\/www.djhiro.at\/#organization","name":"Hiro's Web-Blog","description":"Dj Hiro's Web-Blog","url":"https:\/\/www.djhiro.at\/"},{"@type":"Person","@id":"https:\/\/www.djhiro.at\/?author=45#author","url":"https:\/\/www.djhiro.at\/?author=45","name":"Hirogen","image":{"@type":"ImageObject","@id":"https:\/\/www.djhiro.at\/?p=116#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/f7709cad2632edd18a6b3c880315578d42e328d748ff9916941f0edbdb8ce150?s=96&d=wavatar&r=pg","width":96,"height":96,"caption":"Hirogen"}},{"@type":"WebPage","@id":"https:\/\/www.djhiro.at\/?p=116#webpage","url":"https:\/\/www.djhiro.at\/?p=116","name":"Hello Kitty | Hiro's Web-Blog","description":"Different Hello World Program","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.djhiro.at\/#website"},"breadcrumb":{"@id":"https:\/\/www.djhiro.at\/?p=116#breadcrumblist"},"author":{"@id":"https:\/\/www.djhiro.at\/?author=45#author"},"creator":{"@id":"https:\/\/www.djhiro.at\/?author=45#author"},"datePublished":"2012-04-24T14:08:21+01:00","dateModified":"2012-05-04T09:26:29+01:00"},{"@type":"WebSite","@id":"https:\/\/www.djhiro.at\/#website","url":"https:\/\/www.djhiro.at\/","name":"Hiro's Web-Blog","description":"Dj Hiro's Web-Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.djhiro.at\/#organization"}}]},"og:locale":"en_US","og:site_name":"Hiro's Web-Blog | Dj Hiro's Web-Blog","og:type":"article","og:title":"Hello Kitty | Hiro's Web-Blog","og:description":"Different Hello World Program","og:url":"https:\/\/www.djhiro.at\/?p=116","article:published_time":"2012-04-24T13:08:21+00:00","article:modified_time":"2012-05-04T08:26:29+00:00","twitter:card":"summary","twitter:title":"Hello Kitty | Hiro's Web-Blog","twitter:description":"Different Hello World Program"},"aioseo_meta_data":{"post_id":"116","title":"Hello Kitty | #site_title","description":"Different Hello World Program","keywords":[{"label":"hello world","value":"hello world"},{"label":"programming","value":"programming"},{"label":"visual studio","value":"visual studio"},{"label":".net","value":".net"},{"label":"c#,","value":"c#,"}],"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"","defaultPostTypeGraph":""},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-20 22:06:15","updated":"2025-06-03 22:47:05","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.djhiro.at\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.djhiro.at\/?cat=66\" title=\"PC\">PC<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.djhiro.at\/?cat=76\" title=\"programming\">programming<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tSimple Hello Kitty with C#\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.djhiro.at"},{"label":"PC","link":"https:\/\/www.djhiro.at\/?cat=66"},{"label":"programming","link":"https:\/\/www.djhiro.at\/?cat=76"},{"label":"Simple Hello Kitty with C#","link":"https:\/\/www.djhiro.at\/?p=116"}],"_links":{"self":[{"href":"https:\/\/www.djhiro.at\/index.php?rest_route=\/wp\/v2\/posts\/116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.djhiro.at\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.djhiro.at\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.djhiro.at\/index.php?rest_route=\/wp\/v2\/users\/45"}],"replies":[{"embeddable":true,"href":"https:\/\/www.djhiro.at\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=116"}],"version-history":[{"count":18,"href":"https:\/\/www.djhiro.at\/index.php?rest_route=\/wp\/v2\/posts\/116\/revisions"}],"predecessor-version":[{"id":136,"href":"https:\/\/www.djhiro.at\/index.php?rest_route=\/wp\/v2\/posts\/116\/revisions\/136"}],"wp:attachment":[{"href":"https:\/\/www.djhiro.at\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.djhiro.at\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.djhiro.at\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}