• 2022-05-27 问题

    <b>PartA</b><br/><b>Directions:</b><br/>Supposeyouhavefoundsomethingwrongwiththeelectronicdictionarythatyouboughtfromanonlinestoretheotherday.Writeanemailtothecustomerservicecenterto<br/>1)makeacomplaint,and<br/>2)demandapromptsolution.<br/>Youshouldwriteabout100wordsonANSWERSHEET2.<br/><b>Donot</b>signyourownnameattheendoftheletter.Use“ZhangWei”instead.<br/><b>Donnot</b>writetheaddress.(10points)

    <b>PartA</b><br/><b>Directions:</b><br/>Supposeyouhavefoundsomethingwrongwiththeelectronicdictionarythatyouboughtfromanonlinestoretheotherday.Writeanemailtothecustomerservicecenterto<br/>1)makeacomplaint,and<br/>2)demandapromptsolution.<br/>Youshouldwriteabout100wordsonANSWERSHEET2.<br/><b>Donot</b>signyourownnameattheendoftheletter.Use“ZhangWei”instead.<br/><b>Donnot</b>writetheaddress.(10points)

  • 2022-06-17 问题

    下列程序的输出结果第一行是_____,第二行是_______。 #include &#91;iostream&#93; #include &#91;cstring&#93; #include &#91;iomanip&#93; using namespace std; struct student { int num; char name&#91;20&#93;; double score; }; void fun(struct student *s); int main() { struct student stu={12345, "Zhangwei", 98.0}; cout&#91;<stu.num<<","<<stu.name<<","<<stu.score<<endl; fun(&stu); cout<<stu.num<<","<<stu.name<<","<<stu.score<<endl; return 0; } void fun(struct student *s) { s-&#93;num=23456; strcpy(s->name, "Liming"); s->score=88; }

    下列程序的输出结果第一行是_____,第二行是_______。 #include &#91;iostream&#93; #include &#91;cstring&#93; #include &#91;iomanip&#93; using namespace std; struct student { int num; char name&#91;20&#93;; double score; }; void fun(struct student *s); int main() { struct student stu={12345, "Zhangwei", 98.0}; cout&#91;<stu.num<<","<<stu.name<<","<<stu.score<<endl; fun(&stu); cout<<stu.num<<","<<stu.name<<","<<stu.score<<endl; return 0; } void fun(struct student *s) { s-&#93;num=23456; strcpy(s->name, "Liming"); s->score=88; }

  • 1