When i execute the program it mentioned about cannot convert char* to LectureInfo.Actually, it is something wrong with the compiler because i'm running this code in Borland c++ .My friends runs it properly in the Dev C++ compiler without any error.Anyone familiar with Borland C++ and know how to initialize the string value ?
In order to get the error cannot convert char* to LectureInfo, i think the original posters real code actually looks like this (notice the lack of braces):