填空题

将以下程序写成三日运算表达式是 【9】 。
if(a>b) max=a;
else max=b;

【参考答案】

max=(a>b)a: b;
<上一题 目录 下一题>
热门 试题

填空题
数据结构分为逻辑结构与存储结构,线性链表属于 【1】 。
填空题
有以下程序: #include <iostream> using namespace std; class Base private: int a,b; public: Base(int x, int y) a=x; b=y; void Show() cout<<a<< ’,’ <<b<<end1; ; class Derived : public Base private: int c; public: Derived(int x, int y, int z) : Base(x,y),c(z) void Show() cout<<c<<end1; ; int main() Base b(50,50),*pb; Derived d(10,20,30); pb=&d; pb->Show(); return 0; 运行后的打印结果为 【14】
相关试题
  • 索引从物理上分为聚簇索引和 【5】 。
  • 为解决在多重继承环境中因公共基类带来的 ...