This int is an index into a table of system error messages, called sys_errlist (an array of strings), whose highest element has index sys_nerr - 1.
该整数是对系统错误消息表的索引,这个表名为sys_errlist(字符串数组),其最高元素的索引为sys_nerr - 1。
Changing the return type to float, for example, isn't flagged as an error because an int in the test method's return statement is automatically promoted to float.
如果将返回值改为float,这不会被标记成错误,因为test方法返回语句中的int会自动转换成float。
Note that int y(2.3) is allowed in C++0x; no type narrowing is assumed, and y equals 2 while int y{2.3} is plain error.
注意,在 C++0x 中允许 int y(2.3);由于不允许类型窄化,y 等于 2,而 int y{2.3} 是错的。
应用推荐