1022 Digital Library(30 分)

#include
using namespace std;
const int maxn=1e4+10;
struct node{
    string title,author,publisher,id,year;
    vectorkey;
}book[maxn];
int n;
void show(vectorvalid)
{
    sort(valid.begin(),valid.end());
    for(int i=0;i>s;
            book[i].key.push_back(s);
            char c=getchar();
            if(c=='\n')break;
        }
        getline(cin,book[i].publisher);
        getline(cin,book[i].year);
    }
    int m;
    scanf("%d",&m);
    while(m--)
    {
        vectorvalid;
        int index;
        scanf("%d: ",&index);
        string s;
        getline(cin,s);
        printf("%d: ",index);
        cout<

你可能感兴趣的:(1022 Digital Library(30 分))