救护队下井预防性检查工作时应了解矿井()等系统的基本情况。
A.通风
B.供电
C.监测
D.电话
参考答案:A, B, C
请编写一个函数int pattern_index(char substr[],char str[]),该函数执行含通配符“”的字符串的查找时,该通配符可以与任一个字符匹配成功。当子串substr在str中匹配查找成功时,返回子串substr在str中的位置,否则返回值为0。要求使用 for循环实现。输出结果如下: 子串起始位置:5 注意:部分源程序已存在文件test20_2.cpp中。 请勿修改主函数main和其他函数中的任何内容,仅在函数pattern_index的花括号中填写若干语句。 文件test20_2.cpp的内容如下: #include<iostream.h> int pattern_index(char substr[],char str[]) { } void main ( ) { char *substring,*string; int same; substring="gram"; string="this program return index of substring"; same=pattern_index(substring, string); if(same) cout<<"子串起始位置: "<<same<<end1; else cout<<"匹配不成功" <<end1; }
以生命风险作为保险事故的人寿保险,其主要风险因素是()。
A、伤残率
B、死亡率
C、意外事故
D、自杀