问题 填空题

给定程序中,函数fun的功能是:将形参s所指字符串中的所有数字字符顺序前移,其他字符顺序后移,处理后新字符串的首地址作为函数值返回。
请在程序的下划线处填入正确的内容并把下划线删除,使程序得出正确的结果。
注意:部分源程序给出如下。
不得增行或删行,也不得更改程序的结构!
试题程序:
#include <stdio.h>
#include <string.h>
#include <stdlib.h<
#include <ctype.h<
char *fun(char *s)
inti, j, k, n; char *p, *t;
n=strlen(s)+1;
t=(c har*)malloc (n*sizeof(char));
p=(char*)malloc(n*sizeof(char));
j=0; k=0;
for(i=0; i<n; i++)
if(isdigit(s[i]))
/******************found*******************/
p[ (1) ]=s[i]; j++;
else
t[k]=s[i]; k++;

/******************found*******************/
for(i=0; i< (2) ; i++)p[j+i]=t[i];
p[j+k]=0;
/******************found*******************/
return (3) ;

main()

char s[80];
printf("Please input:");
scanf("%s", s);
printf("\nThe result is: %s\n", fun(s));

答案

参考答案:k

选择题
单项选择题

Questions from 31 to 35 are based on the following passage: Negotiations work wonders. This is particularly so in international business since it is mostly through negotiations that exporters and importers bridge their differences and reach a fair and mutually satisfactory deal. By presenting a more comprehensive negotiating package in a well planned and organized manner, exporters should be able to improve the effectiveness of their business discussions and in the long term the profitability of their export operations. To avoid being confronted by costly demands, an exporter should try to determine the buyer’s real interest in the products from the outset. This can be ascertained through appropriate questions but must also be based on research and other preparations before the negotiations. Only then can a suitable counter-proposal be presented. To achieve a favorable outcome from the negotiations, an exporter should draw up a plan of action beforehand, which addresses a few key issues. Experienced negotiators consider that as much as 80% of their overall time devoted to negotiations should go to such preparations. The preliminary work should be aimed at obtaining relevant information on the target market and the buyers of the products. It should also include developing counter-proposals if objections are raised on any of the exporter’s opening negotiating points. The preparations should thus involve formulating the negotiating strategy and tactics.In international marketing negotiations, it is advisable for small and medium-sized exporters not just to limit their discussions to pricing issues, although pricing is a key factor in any business transaction, exporters should give more attention to the full range of marketing factors. They should stress the strengths of their firms and products and match them with the perceived needs of the buyers. Once these issues have been covered, they can consider the question of price and are able to develop a profitable business.

In international marketing negotiations,()always come first.

A.prices

B.full range of marketing factors

C.manufacturing costs 

D.customers’ needs