Because there is no General Section [C#] Programs Get Pratical!
#1

This is a simple and funny application that i just thought up and decided to write its in C# it took like 10 seconds but its a nice fun approch for people who want to learn C#.

 

How it Works:

 

Start Application loads its data from rsp.u which is a basic UTF8 Encoding Text Document can be made with notepad....

Lines are sperated with the " comma character.

 

After application loads it sleeps the main thread so that the application does not hog CPU power (Central Processing Unit)

 

Sleep is exactly like it sounds tells the application that area is no longer needed put it on hold for x amount of milli seconds example

 

System.Threading.Thread.Sleep(1000);

 

System is the Assembly or .NET Package that contains Threading which in return contains many other functions.

 

System is part of mscorelib.dll the core of the .NET framework

 

The input from this application is taken by assiging variables type of string which is an array of Characters like a,b,c,d,e ect..

 

string input = Console.In.ReadLine();

 

This tells the program to assign input the value the user enters

 

The application is on hold until input is detected.

 

yes means you want the application to tell you a crappy pickup line to make you feel better.

 

no will single a emotional response from the application.

 

Source will be attached so you can explore with your own hands although to compile you will need visual C# 2008 or 2010 google should be able to tell you about these.

 

Other than that just have fun code does not need to be scary think of it as theaching a computer how to do something it could not do before.



Messages In This Thread
[No subject] - by illusionist - 02-13-2012, 04:18 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)