Kodewick
开始学 →
入门←→0 / 60

电影票

#004入门输出约 2 分钟

电影票上要印一行:片名和座位号。用 cout 显示 Toy Story, seat 12,片名来自 movie,座位号来自 seat(不要直接写出来)。

应该显示
Toy Story, seat 12
main.cpp
#include <iostream>
#include <string>
using namespace std;

int main() {
    string movie = "Toy Story";
    int seat = 12;
    // 在这里写:用 cout 显示片名、", seat " 和座位号,最后 endl
    return 0;
}
Ctrl + Enter 也能运行
结果

写好了先点「运行」试试示例,没问题再点「提交」。