Wednesday, June 27, 2007

Fibonacci Calculator in Visual C++

#include "stdafx.h"
#include

using namespace std;

int calculate_fibonacci(int n);

int main(int argc, char* argv[])
{
int n;
cout << "Enter n: "; cin >> n;
cout << "Fibonacci of " << int="" b="1," bb="0," return="" else="" if="" n="="> 1) {
for (i = 1; i < result =" 0;" bb =" b;" b =" result;">

Tuesday, June 19, 2007

C plug-in for Eclipse - CDT

Ever thought of using an IDE in Linux to type C? For pure C guys this is not a problem because they have the nice little VI or VIM. Yea it's very true that you can do a great lot of things with VI. The only problem for me was that I used to do a lot with Java using Eclipse. So suddenly when I wanted to use C for one of my assignments I found it very difficult to adapt with it.

Little bit of googling came up with this wonderful tool, CDT. It's a plug-in for Eclipse and you can do a great lot of things with C with rich IDE features. Try this tutorial to learn about the plug-in.

Tuesday, June 12, 2007

Dr. D. A. I. Munidradasa has Passed Away

He was one of the great lecturers in the University of Moratuwa and it's my great condolence to mention that he has passed away today. He taught us the principles of Electronics and he showed his expertise throughout his teaching, yet he was a very kind teacher.

He left us with a blank which would hardly get filled in the near future. May you attain nibbana dear sir!