2119 - P452 1-4

通过次数

0

提交次数

0

时间限制 : 1 秒 内存限制 : 128 MB

P452 1-4

题目输入

该程序主要看大家的程序风格,只需按照题意完成代码创建变量即可,无输入

题目输出

为了方便判断,输出整数1方便判断

输入/输出样例

输入格式

no input needed

输出格式

1

C++解答

#include <iostream>
#include <string>
enum Category{rock,pop,blue,jazz,metal};
using namespace std;
struct Time
{
	int minutes;
	int seconds;
};
struct Song
{
	string title;
	string album;
	string artist;
	Time playingTime;
	Category category;
};
Song mySong;
int main()
{

	mySong.playingTime.minutes=6;
	mySong.playingTime.seconds=54;
	mySong.title="Halo";
	mySong.album="Underground X";
	mySong.artist="Linkin Park";
	mySong.category=metal;
	cout<<1<<endl;
	return 0;
}