Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Returns the number (array index +1) of structure element that has specified title.
- unsigned int number (vector<item> & task, string & title) {
- for (unsigned int j(0); j < task.size(); j++) {
- if(task[j].title == title)
- return task[j].number + 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment