You did some basic vCard format validation in Assignment 1. In Assignment 2, you will need to expand the validation. We do not want to re-write createCard(), so we will define a new function, which will validate an already created Card object.
This, like the rest of Assignment 2 functionality, will be necessary in Assignment 3. Assignment 3 will
have to create/modify existing vCard files by creating and manipulating Card objects through a Web
interface. The validation functionality we define here will help us apply defensive programming
principles and validate Card objects before we pass them to writeCard() and save the to the file.
You have been provided with a updated temporary header file (VCParser_A2temp.h), which contains
the prototype for the new function.
Get Free Quote!
335 Experts Online