Monday, May 31, 2010

This is my first programming code which was made in 1999.

When I was a 17 years old in 1999, I made a kind of Diary Program, based on MS-DOS. It was my first programming code and written by Ansi C language. I think 90% done.  At that time, I remember I used the compiler of Turbo C 3.0 (now it became Borland C++ ), and the licensed library GUI in order to display as Color Graphic on DOS flatform. There is the pulldown menu in the program , and most code are used to make color pulldown menu.
I still have the compiler and my source file. This happening is 11 years ago.
p.s. I don't know why I decided the name of Screen.cpp instead of Main.cpp and why not .c even no OOP.
and another thing is that there is no header file. OMG !
( at that time, I was a beginner...haha)

< small test code >

< Diary Program >

I think..If I didn't finish to make this program by myself, I also didn't decide to become a computer programmer that means this source file is a kind of my significant memorial.

Friday, May 28, 2010

about the pointer array.

Here is the example that how to use New and Delete operator when you use the pointer array.
The pointer array is often used to logic.


int *array[3]; // pointer array int type
*array=new int[3]; // get the address of 1st.
printf("*array address is %d\n",*array);

*(array+1) = new int[3]; //get the address of 2nd.
printf("*(array+1) address is %d\n",*(array+1));

*(array+2) = new int[3]; //get the address of 3th
printf("*(array+2) address is %d\n",*(array+2));

delete [] *(array);
delete [] *(array+1);
delete [] *(array+2);