<p>I need this converted into C++<br/><br/></p><p>// ass0.c<br/>#define _CRT_SECURE_NO_WARNINGS<br/>#define _CRTDBG_MAP_ALLOC // need this to get the lineidentification<br/>//_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF|_CRTDBG_LEAK_CHECK_DF); // inmain, after local declarations<br/>//NB must be in debug build</p><p>#include <crtdbg.h><br/>#include <stdio.h><br/>#include <string.h></p><p>typedef enum