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