Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ Variables day, month, year, number_of_pages,citation_count are ints... not char arrays all other variables are not string.. they c strings, char arrays. ex: char title[100];
C++
Variables day, month, year, number_of_pages,citation_count are ints... not char arrays
all other variables are not string.. they c strings, char arrays. ex: char title[100]; char venue[35];
so i'm guessing that the input string must be first converted to a char array and then parsed through using strtok? code this for me please
void parse(string) This function should extract all the information of a bibliographical reference given in the input string. The function will receive a comma-separated values (CSV) string, that is a delinited toxt thuat usisacomma to sepacate values. You may assume that the order of values will always be as follows: title, author's first name, author's last name, day, month, year, number of pages, citation count, type, venue, city, and country. void parse(string) This function should extract all the information of a bibliographical reference given in the input string. The function will receive a comma-separated values (CSV) string, that is a delinited toxt thuat usisacomma to sepacate values. You may assume that the order of values will always be as follows: title, author's first name, author's last name, day, month, year, number of pages, citation count, type, venue, city, and countryStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started