Madlibs are fun to build! Building a madlib is a great way to learn fundamental programming concepts. The application will ask a player to enter in words, it will store those words, and then replace words in a quote, story, or other short piece of text that will be written to the console window. The ...continue reading "Simple C# Madlib (Part One)"
Category: C#
Typewriter Effect
Print out a message letter by letter using a for loop to move through a string, and Thread.Sleep() to pause after each character is written to the console window. using System; namespace TypewriterEffect { class Program { static void Main() { Typewrite("Your text here..."); Console.ReadKey(); } static void Typewrite(string message) { for (int i = ...continue reading "Typewriter Effect"
Hello World 2.0
In this walk through we'll build an interactive Hello World application. Expanding on the simple , we'll make a more advanced version that asks the person using it for their name, and write out a personalized hello to them. We'll also review basic programming concepts along the way. Review of Basic Terms and Concepts Statement: ...continue reading "Hello World 2.0"
C# Namespaces
A namespace is a logical unit of organization. There are namespaces that are built in to the .NET Framework, and ones you can make yourself. The .NET Framework classes are organized in namespaces. For example, the common method of writing to the console window is with Console.WriteLine("");. Console.WriteLine("Message"); Using Console.WriteLine(""); requires a using directive at ...continue reading "C# Namespaces"
C# Hello World
A simple application in C#. Hello World is a traditional first application for a programmer learning a new language. It is a simple program that prints out a message to a display device and is a good way to learn the basic syntax of a language. A simple Hello World example: using System; namespace HelloWorld ...continue reading "C# Hello World"