Hello. I recently learned about the try, throw and catch methods so I decided to combine that recently retrieved knowledge with my knowldge of file streaming(ifstream, ofstream, fstream). I made two different versions of the application and they both work perfectly on Windows XP.
The first one is just a regular console. While the second one is a console along with a pop-up window dialogue(WinAPI: MessageBox( HWND, char*, char*, unsigned short int ) ).
Note: My prototype for the MessageBox function maybe off but who cares. It's been years since I programmed in Win32/WinAPI.