//Hello! Welcome to my Bitbin Tutorials!
//This is something new I'm trying, so if I get enough traffic, I'll do more.
//This one is also a beginner's tutorial, so only the basics will be here.
//Assuming you have Visual Studio for Windows Desktop installed, which the link to 2013 is here:
// http://www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx
//PLEASE, ensure you have the windows DESKTOP version. It'll also work on Surface Tablets.
//Create a Console Application and name it to your liking. I'd suggest CsharpTutorial.
//You can see in the Program.cs file (that's our program, and where we will be writing
//our code most of the time)
//We don't need to go into detail about it right now, so put your cursor inside of the Main() void
//and type this:
Console.WriteLine("Hello World!");
//TADA! Beleive it or not, thats our very first program!
//Let's analize it for a bit. The "Console" part tells which class to look for the function
//"WriteLine" in. It doesn't have to be WriteLine though. There are many
//functins the console class has. the string, a type of varible, is in the quotes.
//The "." between console and writeline is just there. don't worry about it, becuase idk how to explain it.
//PRO TIP: All lines in C# end in ; because you can have multiple lines on one line! like this:
Console.WriteLine("Hello World!"); Console.WriteLine("Cheeseburger."); Console.WriteLine("The End!");
//Now let's test it.
//Press the F5 key, or the Play button in the middle-top of the screen to run it.
//It's green or blue, depending on which version you have.
//Notice how the cosole window just flashes on and off the screen. This is what we are
//going to fix
//We are going to create a new subroutine like this:
void Pause() {
}
//"void" is what defines the subroutine.
//"Pause" is its name.
//Put this in the Squiggly brackets:
Console.Readkey(true);
//It should look like this
void Pause() {
Console.WriteLine("Press any key to continue...");
Console.Readkey(true);
}
//Back to our Main void:
Console.WriteLine("Hello World!");
Pause();
//Run it, and see what it looks like.
//See? A lot better right?
//Now I'm gonna give you this:
Console.WriteLine("Enter What You Want:");
Console.WriteLine(Console.ReadLine());
Pause();
//Feel free to run it.
//The Console.ReadLine() reads inputed text. Makes sense right?
//My Hands are tired so im gonna stop typing.
//Give me feedback at myfrigginspam1@yahoo.com