题目内容

给定程序中,函数fun的功能是根据形参i的值返回某个函数的值。当调用正确时, 程序输出: x1=5.000000, x2=3.000000, x1*x1+x1*x2=40.000000 请在程序的下划线处填入正确的内容并把下划线删除, 使程序得出正确的结果。 注意:源程序存放在考生文件夹下的BLANK1.C中。不得增行或删行,也不得更改程序的结构! 给定源程序: #include double f1(double x) { return x*x; } double f2(double x, double y) { return x*y; } __1__ fun(int i, double x, double y) { if (i==1) return __2__(x); else return __3__(x, y); } main() { double x1=5, x2=3, r; r = fun(1, x1, x2); r += fun(2, x1, x2); printf("\nx1=%f, x2=%f, x1*x1+x1*x2=%f\n\n",x1, x2, r); }

查看答案
更多问题

写出这首诗中表示诗人心情压抑悲愤的两个典型细节。

“与人居则画地为军陈,射阔狭以饮”属于什么描写

Karen and Ken Mullin, a young professional couple in Cleveland, own fifty cookbooks and two fully equipped kitchens in their house. Yet they rarely cook their own meals; instead, on their way home from work they usually stop at a supermarket and choose two portions of meat loaf and a container of ready-to-serve potatoes. "My job," says Karen, "is to pour the salad from the bag. "A half-century after the first TV dinner was born, the food industry is approaching its long-sought dream of relieving people like the Mullins of unpaid labor in the final, and arguably most profitable, step by which a cow gets turned into meat loaf. Increasingly, tables in America’s kitchens are used not for cutting or peeling but for putting takeout food onto plates. For those who even bother with plates. According to Harry Balzar, an influential food-industry researcher, American dinners that came from a takeout counter increased by 24 percent in the past decade. "We thought the micro-wave would be a cooking device," says Harry Balzer, "but we find it reheating takeout pizza. "Across the United States, entire business models are being transformed. Supermarket takeout counters, formerly a place where unsold chickens were coated with sauce, increasingly resemble high-end corporate cafeterias, with sushi bars and stir-fry stations.One psychologist thinks the trend toward healthier eating is responsible: Americans have finally gotten the message that it’s bad to eat fried chicken, so they’re doing it at home where no one can see them.Of course, there are people you wouldn’t expect to cook at home, like Steve Traxler, an unmarried Chicago theater producer, whose refrigerator contains little more than orange juice, wine and leftovers. I think they’re reading them in bed," says Rozanne Gold, author of a cookbook.It’s not entirely a question of time. The takeout fashion is fueled, in part, by the popularity of foods like sushi, which even adventuresome American cooks are unlikely to try to make at home. And takeout fills another need as well, for the atmosphere of the home-cooked dinner. Takeout food is not only convenient but also enables Americans to()

A. avoid taking unhealthy food
B. follow the trend of eating out
C. enjoy eating together at home
D. have time to improve their cooking

It is wise to remember that you do not have to buy anything from any salesperson. You ought to buy only those things you really need or want and can(1). Try not to let your personal feelings about the salesperson(2) you to make a purchase. Remember that you are entitled to ask a salesperson any question you wish (3) the product or service, and you are entitled to get a clear, complete(4). You call tell the salesperson you want to think about the matter, for a few days, (5) that you want to talk to other people who have purchased the product or service. You can walk(6) from a salesperson without a polite end to the conversation. If a salesperson telephones you, you do not have to listen to the person’s entire "lecture" or respond to it in a friendly way. You can simply interrupt the person and state that you are not interested in the product or service. You can simply(7) the telephone without saying anything.There are, of course, many salespeople who are genuinely interested in assisting you and in (8) you reasonable products and prices. If you are in (9) about the wisdom of a particular purchase, you might want to(10)another person who has had experience with the product or the service that interests you. If you receive unwanted goods in the mail, you are not obligated to pay for it. You can walk() from a salesperson without a polite end to the conversation.

A. away
B. round
C. out
D. down

答案查题题库