Microsoft Visual Studio 2005 Beta 2

April 22, 2005 by  
Filed under .NET

Get Visual Studio 2005 Beta 2 for free.

Recursive Functions in C#

April 13, 2005 by  
Filed under .NET, Daily Ramblings, Scripts and Coding

My first recursive function in C#. Woohoo. I remember writing this when I first learned C++. :)

What does it do? It’s the does the Power function. For example, 12^2 would return 144 because it’s 12×12.

public static int Power(int baseNum, int exponent)
{
	int product = 0;

	if(exponent == 0)
		product = 1;
	else if(exponent == 1)
		product = baseNum;
	else
	{
		product = baseNum;
		product *= Power(baseNum, exponent-1);
		Console.WriteLine("Product: " + product);
	}

	return product;
}

[Note] I’m not sure why the slashes are showing up in the last WriteLine statement.. Maybe it’s a safety feature in WordPress..

C# Program – Computes Properties of a Circle

April 12, 2005 by  
Filed under .NET, Scripts and Coding

Here’s the code to my first C# program. It computes the Diameter, Area, and Circumferance of a given radius.

To execute the program, you can run this. Don’t worry, I didn’t attach a virus to it. ;)

My First C# Class

April 11, 2005 by  
Filed under .NET, Scripts and Coding

I went to my first C# class last Thursday. The class is from 6:00pm – 10:00pm, so I was pretty tired, but very happy at the same time. The teacher was talking a bit too fast though, and he did assume that everyone programmed in Visual Studio before. It’s been a very long time since I touched C++, so this was a review for me.

My favorite part of the class was when he showed us how to make a Windows Application! I didn’t know programming could involve so much drag and drop. lol I guess I’m not use to it. But I think that part was borrowed from Visual Basic. In that whole application, I onput typed out one line of code… very nifty!

At the end of class, we had to write two programs which were very simple if you knew some programming. I’ll have to upload them later here. :) Wish me luck on the class! He’s cramming 12 chapters in just 7 weeks (7 sessions)!

If you’re interested in C# also, here are some useful links:
MSDN Visual C#
C# Corner
C# Help
Dot Net Fun

Taking Intro to .Net Using C#

March 28, 2005 by  
Filed under .NET, Daily Ramblings

So it’s final, I’ll be taking the Intro to C# class this quarter. I turned in my paper work last week, and paid for the class. The class doesn’t start until April 7th. And from then, I’ll be sitting in class for another long 4 hours right after work. Sigh. But I know what I gain from the class will be worth it! So be aware of C# “stuff” being posted here in a few weeks. ;)

C# Programming with Microsoft .NET

March 15, 2005 by  
Filed under .NET, Scripts and Coding

I’m trying to decide whether or not I should take this class. I get a 40% discount because I’m a staff, so it would cost about $360. Should I take it? Would it be useful? It’s the most interesting class I see offered this quarter.

C# Programming With Microsoft .NET
Course: Computer Science X443.4 (3 units)

This course provides students with the fundamental skills required to design and develop object-oriented applications for the Web and Microsoft Windows by using C# and Microsoft Visual Studio .NET. After completing this course, students will be able to: configure and use Visual Studio .NET; program with C#; implement methods, classes, objects, inheritance and polymorphism; understand operator overloading, struts and interfaces, arrays, and exception handling in C#; debug C# applications within the .NET framework; create feature-rich Windows-based C# applications; and experiment with more advanced features of C#. This course helps prepare students for Microsoft Certification Exam 70-316.

Instructor: Khaled M. Hassen, Ph.D., Software Engineer, ESRI, Redlands
When: Thur. 6:00-10:00 pm, Apr. 7-May 19. (7 meetings)
Where: UC RIVERSIDE EXTENSION CENTER
Room will be assigned 2-3 days prior to class start
Fee: $595 special refund policy applies