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 >
http://matrix.senecac.on.ca/~jpark68/SCREEN.CPP
http://matrix.senecac.on.ca/~jpark68/BOX1.CPP
http://matrix.senecac.on.ca/~jpark68/USERFUN2.CPP
< Diary Program >
http://matrix.senecac.on.ca/~jpark68/PULLDOWN.CPP
http://matrix.senecac.on.ca/~jpark68/MAIN.CPP
http://matrix.senecac.on.ca/~jpark68/RECT.CPP
http://matrix.senecac.on.ca/~jpark68/SPACE.CPP
http://matrix.senecac.on.ca/~jpark68/EXGRP.CPP
http://matrix.senecac.on.ca/~jpark68/TIME.CPP
http://matrix.senecac.on.ca/~jpark68/SUB.CPP
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.
Monday, May 31, 2010
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);
----------------------------------------------------------------
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);
----------------------------------------------------------------
Subscribe to:
Posts (Atom)