C++ doesn't do graphical elements. You'll need to use a GUI library of some sort, though upgrading to a compiler that wasn't designed for MS-DOS would greatly facilitate your search for a working library..
deceptikon
Challenge Accepted
3,499 posts since Jan 2012
Reputation Points: 822
Solved Threads: 481
Skill Endorsements: 58
I would suggest the Qt GUI tools, if you're working on Eclipse, with the Qt eclipse integration plugin.
Here, this might help you: Lecture 7: QT.
Lucaci Andrew
Practically a Master Poster
690 posts since Jan 2012
Reputation Points: 108
Solved Threads: 97
Skill Endorsements: 13
@adityawkhare: You can't generate a message box like you might see on other MS-Windows programs because Turbo C can't access any of the win32 api functions -- its too old of a compiler. Nor can you use any modern GUI library like QT Gui tools previously mentioned.
About the best you can do with your compiler is to just call printf() to display the message. You might also write your own function that would erase a rectangle on the screen, put a box around it, then print the message inside that rectangle.
Ancient Dragon
Achieved Level 70
32,269 posts since Aug 2005
Reputation Points: 5,852
Solved Threads: 2,590
Skill Endorsements: 70