摘要:
只读的变量,其值在编译时不能被使用,因为编译器在编译时不知道其存储的内容。 const修饰的只读变量 const int Max = 100; int Array[Max] ; c文件中,编译器会提示出错,而在.cpp文件中则顺利运行。 这也从侧面证实在C语言中,const修饰的Max仍然是变量,只 阅读全文
posted @ 2016-08-21 21:12 WhatTD 阅读(140) 评论(0) 推荐(0)
posted @ 2016-08-21 21:12 WhatTD 阅读(140) 评论(0) 推荐(0)
posted @ 2016-08-21 20:21 WhatTD 阅读(112) 评论(0) 推荐(0)
posted @ 2016-08-21 20:08 WhatTD 阅读(109) 评论(0) 推荐(0)
posted @ 2016-08-21 19:44 WhatTD 阅读(144) 评论(0) 推荐(0)
posted @ 2016-08-21 19:36 WhatTD 阅读(681) 评论(0) 推荐(0)
posted @ 2016-08-21 18:14 WhatTD 阅读(177) 评论(0) 推荐(0)