填空题
诊断和改正程序中错误的工作通常称为
【3】
。
【参考答案】
调试 或 程序调试 或 软件调试 或 Debug(英文字母大小写均可) 或 调试程序或调试软件
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
有如下程序:#include <iostream>using namespace std;class Baseprivate: char c;public: Base(char n):c(n) ~Base() cout<<c;;class Derived: public Baseprivate: char c;public: Derived(char n):Base(n+1),c(n) ~Derived() cout<<c;;int main() Derived obj(’x’); return 0;执行上面的程序将输出( )。
A.xy
B.yx
C.x
D.y
点击查看答案
单项选择题
有以下程序#include <iostream>using namespace std;class Complexpublic: Complex(double r=0,double i=0):re(r),im(i) double real() const return re; double imag() const return im; Complex operator+(Complex c) const return Complex(re+c.re,im+c.im);private: double re,im;;int main() Complex a =Complex(1,1)+ Complex(5); cout<<
A.real()<<’+’<<a.imag()<<’i’<<end1;
retura 0;
A. 6+6iB. 6+1iC. 1+6iD. 1+1i
点击查看答案
相关试题
请将下列类定义补充完整。class Base pub...
【14】 允许用户为类定义一种模式,使得...
以下程序的执行结果是 【11】 。#incl...
阅读下面程序:#include <iostream.h>...
在下面的程序的横线处填上适当的语句,使该...