void testDataStructures(){ printf("number of unique authors: %d \n", (int)author_id_name.size()); printf("number of unique articles: %d \n", (int)article_id_art.size()); printf("created authors: %d \n", (int) authors.size()); Article * lastarticle = articles.back(); vector<string> lastauthors = lastarticle->authorsList(); for (int s=0; s < lastauthors.size(); s++) { printf("author %d is: %s \n", s+1, lastauthors.at(s).c_str()); } Author * lastauthor = authors.back(); vector<string> lastauthpubs = lastauthor->pubsList(); for (int p=0; p < lastauthpubs.size(); p++) { printf("pubs %d is: %s \n", p+1, lastauthpubs.at(p).c_str()); } }