• 2022-06-19
    假设ClassX是类类型标识符,Type为类型标识符,可以是基本类型或类类型,Type_Value为Type类型的表达式,那么,类型转换函数的形式为()
    A: AClassX::operator Type(Type t){… return Type_Value;}
    B: BfriendClassX::operator Type(){… return Type_Value;}
    C: CType ClassX::operator Type(){…return Type_Value;}
    D: DClassX::operator Type(){… return Type_Value;}
  • D

    内容

    • 0

      表单:阅读以下代码段,则可知( )。 <INPUT type="text" name="textfield"><INPUT type="radio" name="radio" value="女"><INPUT type="checkbox" name="checkbox" value="checkbox"><INPUT type="file" name="file">

    • 1

      在HTML页面中,定义了如下的Javascript函数,则正确调用该函数的HTML代码是()  A: <input name=”a” type=”button” onclick=”compute(this.value)” value=”+”>  B: <input name=”b” type=”button” onclick=”compute(‘-‘)” value=”-”>  C: <input name=”c” type=”button” onclick=”compute(“*”)” value=”*”>  D: <input name=”d” type=”button” onclick=”compute(/ )” value=”/”>

    • 2

      在HTML页面中包含一个按钮控件mybutton,如果要实现点击该按钮时调用已定义的Javascript函数compute,要编写的HTML代码是( )。 未知类型:{'options': ['&#91;input name=”mybutton” type=”button” onClick=”compute” value=”计算”&#93;', '&#91;input name=”mybutton” type=”button” onFocus=”compute()” value=”计算”&#93;', '&#91;input name=”mybutton” type=”button” onClick=”function compute()” value=”计算”&#93;', '&#91;input name=”mybutton” type=”button” onClick=”compute()” value=”计算”&#93;'], 'type': 102}

    • 3

      指向类X中类型为type的数据成员的指针的说明形式为( ) A: type X::*pointer B: B) X::type*pointer C: type *X::pointer D: X::*type pointer

    • 4

      下图是HTML文件submit.html在IE中的部分显示效果。请完成下面submit.html中部分html代码。<form action=/cgi-bin/post-query method=POST>您的姓名:<input type=text name=姓名><br>您的主页的网址:<input type= text name=网址value=http://><br>密码:<input type=()name=密码><br><input type=submit value=“发送”><input type=()value=“重设”></form> <input type=submit value=“发送”><input type=()value=“重设”> A: send B: reset C: restart D: replace