1.  >>  河南成教 / 面向对象程序设计
 河南成教 / 面向对象程序设计


2[分析题]
#include <iostream.h>int a[ 10 ] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };int fun( int i );void main(){ int i ,s = 0;     for( i = 0; i <= 10; i )     { try       { s = s fun( i ) ; }        catch( int )           { cout << "数组下标越界!" << endl; }       }        cout << "s = " << s << endl;}int fun( int i ){  if ( i >= 10 )        throw i ;         return a[i] ;}
 参考答案:
 佳题速递:
  • 维生素C的化学结构式中含有2个手性中心,有4个异构体,临床上用其() 药物化学
  • 下列关于地方政府非税收入的特点的说法,正确的有________。征收标准一般能保证政府提供该产品或劳务的成本具有强制性征收主体是各级政府目的是为了保证各部门的办公经费地方政府学
  • [名词解释题] 定额建筑工程概预算
  • 1[简答题] 试以单链表为存储结构,实现简单选择排序算法数据结构
  • Automobiles were once so expensive that only rich people could ____________ them. A、 apply B、 afford C、 assemble D、 astonish大学英语2
  • 6、 下面程序段的运行结果是 char a[ ]="language",*p ; p=a ; while (*p!='u') { cout A.LANGUAGE B.language C.lang D.langUAGE面向对象程序设计