const和 #define的区别?

const int N=10;

#define N 10

 显然,const 可以为N定义类型!

其他的就没什么区别!用法都一样

posted on 2011-05-02 11:14  蘇銀城  阅读(115)  评论(0)    收藏  举报

导航