最爱的音乐

对于音乐,在每个人人生的不同的阶段都会有不同的最爱。我这25年的听歌史中,这些音乐却让我一直感动。

1.Roxette: <It must have been love> <sleeping in my car> <Perfect day>

2.Tears for fears: <Shout> <Showing the seeds of love> <Woman in chain>

3.Duran Duran:<Ordinary World>

4. Savage Garden :<I want to>

5.The Beatles:<Yesterday> <I want hold your hand> <Let it be>

6.Micheal Jackson:<Black and White> <Man in the mirror> <Heal the world>

7. Deep Forest :<Sweet Lullady>

8.Joan Osborne:<One of us>

9.Cranberries:<Dream>

10.Bon Jovo:<It’s my life> <everyday> <always>

11 Forrest Gump Sound Track

…..

有时音乐更能让你了解一个人。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是基于顺序存储结构的图书信息表的最爱图书查找的代码: ```c++ #include <iostream> #include <string> using namespace std; #define MAX_SIZE 100 // 定义最大存储容量 struct Book { string name; // 书名 string author; // 作者 string publisher; // 出版社 double price; // 价格 int favorite; // 是否为最爱,0表示不是,1表示是 }; struct BookList { Book books[MAX_SIZE]; // 书籍数组 int length; // 当前存储的书籍数量 }; // 查找最爱图书 int find_favorite_book(BookList bookList) { for (int i = 0; i < bookList.length; i++) { if (bookList.books[i].favorite == 1) { return i; // 返回最爱图书的下标 } } return -1; // 没有最爱图书 } int main() { BookList bookList; bookList.books[0] = {"C++ Primer", "Lippman", "电子工业出版社", 98.0, 0}; bookList.books[1] = {"Effective C++", "Scott Meyers", "人民邮电出版社", 68.0, 1}; bookList.books[2] = {"The C Programming Language", "Kernighan&Ritchie", "机械工业出版社", 48.0, 0}; bookList.length = 3; int index = find_favorite_book(bookList); if (index != -1) { cout << "最爱图书是:" << bookList.books[index].name << endl; } else { cout << "没有最爱图书。" << endl; } return 0; } ``` 在上述代码中,我们首先定义了一个 `Book` 结构体,表示一本书的信息,包括书名、作者、出版社、价格和是否为最爱。接着,我们定义了一个 `BookList` 结构体,表示图书信息表,包括一个 `Book` 数组和当前存储的书籍数量。在 `find_favorite_book` 函数中,我们遍历整个数组,找到第一个最爱图书,如果找到了就返回该图书的下标,否则返回 -1。在 `main` 函数中,我们初始化了一个 `BookList` 对象,并调用 `find_favorite_book` 函数来查找最爱图书,如果找到了就输出其名称,否则输出“没有最爱图书”。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值