Filed under: dot net | Tags: dot net, dot net console, hello world, microsoft dot net
Yes this time dot net. microsoft visual studio 2008 DVD is only price of less then 70Tk. but according to it’s magical power its million times powerful then such price. so let’s give it a try. first install “visual studio 2008″. oh i forget to mention, to run this DVD you must need a DVD drive installed and fully functional with your computer
. Okay lets move forward. once installation is finished. click start menu and open Microsoft Visual Studio Dot Net 2008.
IDE (Integrated Development Environment) opened!! Cool!! Years back, so far i remember dot net have many complexities to run a simple progam for amateur programmers. Installing bla.. bla.. configure bla.. bla.. don’t think i am confident, i might be wrong
anyway, 2008 version is really easy and simple to start quick. so lets start before load shading starts.
well lets goto File->New-Project. Ah men a lot of things. which one shall i start with? hhmm to determine which one is your best choice you need to know what you like to do. about me: very simple i want to take two variable as input and calculate their summation and print them in output screen. after discuss with one of my friend i understand console mode is good choice for me. Yes console mode Black Screen. Black board is still used more then 90% school in our country because it’s less expensive then white board.
okay about me my requirement is very simple so i opened console mode project. now write the following lines of code.
static void Main(string[] args)
{
Console.WriteLine("Aminul");
int x,y,sum;
x = int.Parse(Console.ReadLine());
y = int.Parse(Console.ReadLine());
sum = Sum(x , y);
Console.WriteLine("Total:"+sum);
Console.ReadLine();
}
static int Sum(int a, int b)
{
return a + b;
}
run this program and i found my solution. now my program can calculate 400 and 20 makes 420
yes i am happy at this moment. do you know why? because i am an dot net expert among my villagers
(most of them never seen a computer
)