ADSL资费问题

来源:百度知道 编辑:UC知道 时间:2024/05/30 19:25:26
宽带管理界面那里的 计费方式:NULL 什么意思啊?
我知道null在编程里是空的意思 我问在那里是什么意思!!我晕

null 是C语言中的表达式,在书中的简单定义是“与实现相关的空指针常量”

不必深究底层含义,你可以理解成ADSL后台计费程序没有开启,数值型字段为空,并以C语言中的null为符号表现出来

因为ADSL计费方式通常是由电信或网通这样的ISP提供的,因此管理后台的计费功能没有实际用途

晕,就是他们有计费方式这里没写,计费方式大家都知道的,所以这里都没写,可不是免费啊哥们^_^

NULL并不就是0,也不就是(void*)0。

无论C还是C++,NULL都是一个宏,而且都是一个空指针(null pointer),鉴于C90/C99和C++98三者对于这个宏的定义描述基本相同,我只列出C99和C++98的原文:

C99
The macros are NULL which expands to an implementation-defined null pointer constant.

C++98
The macro NULL is an implementation-defined C++ null pointer constant in this international standard.

想理解透什么是NULL,首先就得先了解什么是null pointer。C与C++的null pointer是不同的,在C中,一个具有integer type的0值或者由(void*)强制转换而来的0值都是null pointer;而C++则只能是integer type的0值。

C99
An integer constant expression with the value 0, or such an expression cast to type void *, is called a null pointer constant

C++98
A null pointer is an integral constant expression rvalue of integer type that eva