填空题

[问题1] 如果将上述应用的数据库设计成如下关系模式;
RS (A#,A1,A2,A3,B#,B1,B2,D1),请指出该关系模式的候选键。

【参考答案】

(A#,B#)
<上一题 目录 下一题>
热门 试题

填空题
[说明] 假设二叉树采用链式存储方式存储,编写一个后序遍历二叉树的非递归方式。 Void postorder (btree * B) btree * stack [m0] , *p; int tag [m0], top =0; p=b; do while (p! =NULL) top+ +; (1) tag [top] =0; p =p- >left; if (top >0) (2) if (tag[top3 = =1) (3) print ( %d , p- >data); if(top>0) (4) tag [top] = 1; while (p! = NULL && top ! =0)
填空题
[说明] 设计一个普通函数distance (Point &p1,Point &p2),用于计算p1和p2点之间的距离。本程序执行结果如下:(2,2)与(5,5)之间距离=4.24264 # include < iostream. h > # include < math. h > class Point int x, y; public: Point(int i, int j) (1) int getx( ) return x; int gety( ) return y; void disp( ) (2) ; float distance( Point &p1, Point &p2 ) float d; (3) return d; void main( ) (4) p1. disp ( ); cout < <“与”; p2. diap( ); cout< <“之间距离=” < <distance (p1,p2) < <end1;
相关试题
  • [说明] 已有一个工程文件,窗体上有两个...
  • [说明] 编写一个完整的JavaApplet 程序...
  • [说明] 设计一个普通函数distance (Po...
  • [问题2] 如果在游戏A中付5元,游戏B中...
  • [问题3] 使用ORDB的查询语言,分别写出...