电影票上要印一行:片名和座位号。用 cout 显示 Toy Story, seat 12,片名来自 movie,座位号来自 seat(不要直接写出来)。
Toy Story, seat 12
#include <iostream>
#include <string>
using namespace std;
int main() {
string movie = "Toy Story";
int seat = 12;
// 在这里写:用 cout 显示片名、", seat " 和座位号,最后 endl
return 0;
}
写好了先点「运行」试试示例,没问题再点「提交」。