皮皮学,免费搜题
登录
搜题
【单选题】
给定,函数fun的功能是建立一个N×N的矩阵。矩阵元素的构成规律是:最外层元素的值全部为1;从外向内第2层元素的值全部为2;第3层元素的值全部为3,......依此类推。例如,若N=5,生成的矩阵为: 1 1 1 1 1 1 2 2 2 1 1 2 3 2 1 1 2 2 2 1 1 1 1 1 1 请选择在下画线处填入正确的语句,使程序得出正确的结果。 #include #define N 7 /**********found**********/ void fun(int (*a)____) { int i,j,k,m; if(N%2==0) m=N/2 ; else m=N/2+1; for(i=0; i for(j=i; j a[i][j]=a[N-i-1][j]=i+1; for(k=i+1; k a[k][i]=a[k][N-i-1]=i+1; } } main() { int x[N][N]={0},i,j; fun(x); printf("\nThe result is:\n"); for(i=0; i { for(j=0; j printf("\n"); } }
A.
[]
B.
[10]
C.
[N+1]
D.
[N]
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【判断题】我们通过try...except语句来捕获异常。
A.
正确
B.
错误
【简答题】A.肽键 B.氢键 C.二硫键 D.疏水作用 E.3′,5′-磷酸二酯键 蛋白质一级结构中的主要化学键 A. B. C. D. E.
【简答题】A.肽键 B.氢键 C.二硫键 D.疏水作用 E.3′,5′-磷酸二酯键 蛋白质一级结构中的主要化学键
【单选题】Questions 5 to 8 are based on the conversation you have just heard.
A.
7. A) They are a healthy choice for elderly people.
B.
B) They are especially popular among Italians.
C.
C) They symbolize good health and longevity.
D.
D) They go well with different kinds of food.
【简答题】聚酰胺66粉末
【单选题】蛋白质二级结构中的主要化学键是
A.
肽键
B.
氢键
C.
疏水键
【单选题】Questions 5 to 8 are based on the conversation you have just heard.
A.
Because he hates to ask the woman to lend him money.
B.
Because he needs money to pay the mortgage(按揭).
C.
Because he has used up all his savings for travel.
D.
Because such a travel is not worth it.
【单选题】条形磁铁中,磁性最强的部位是在( )
A.
中间
B.
两极
C.
整体
【单选题】蛋白质一级结构中的主要化学键是
A.
二硫键
B.
肽键
C.
氢键
D.
碳碳三键
【单选题】Questions 5 to 8 are based on the conversation you have just heard.
A.
Because he is often busy writing books.
B.
Because he usually has meetings.
C.
Because he always gets up very late.
D.
Because he often goes out to exercise.
相关题目: