什么叫hard-coded string?C++Builder中对异常类的描述中有一段:“Msg is the string containing the runtime error message to display in the exception dialog box.Msg can be a hard-coded string,or can be a function call that returns a strin

来源:学生作业学帮网 编辑:学帮网 时间:2024/05/24 06:26:58

什么叫hard-coded string?
C++Builder中对异常类的描述中有一段:
“Msg is the string containing the runtime error message to display in the exception dialog box.Msg can be a hard-coded string,or can be a function call that returns a string.”其中的hard-coded是什么意思?

一般译为“硬编码”,就是指直接做为固定内容写入了程序,而不是做为变量什么的.