设无向树T有7片树叶,其余顶点度数均为3,则T中3度顶点有( )。
A.3
B.4
C.5
D.6
参考答案:C
下面程序的运行结果是 【9】 。 #include <iostream> using namespace std; void fun(int &a, int b=3) { static int i=2; a = a + b + i; i = i + a; } int main() { int x=5, y=2; fun(x, y); cout<<x<<","; fun(x); cout<<x<<end1; return 0; }
点A(2,m)与点B(-1,0)之间的距离是5,那么m的值为______.