Thursday, February 24, 2005

[Tech] บทเรียนการเขียนโปรแกรมเมื่อวาน

1. To define a static array in C++, we must not make it too large, ie int[512*512], because the simple memory allocation cannot do that.

2. To work with matlab compiler, make sure that we include libraries that corresponding to our compiler version. Matlab prepares libraries for every famouse compilers and we need to recompile the old .m file as well.

3. Suffering from using C++ is common if we do not sacrifice some performance for flexibility and convenience by using STL. Study it and use it in regular basis. The loss of performance will not hurt you as much as the loss of time.

No comments: