Click here to Skip to main content
15,922,015 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Is there any way or function in C++ to create a box where i can put some string into it. Please note that , the question i with respect to C++ 11.

If there is a function please enlist with its header file.
Posted
Comments
Sergey Alexandrovich Kryukov 29-Nov-12 12:33pm    
Totally wrong question. The (good) part of C++ ideology to separate language and libraries and not to include library features in language.
So, this is a question on the library. You did not tell us what are you going to use, and it makes no sense. As the very minimum, you should specify your platform, and then some preferences on the libraries to use; if you don't have any preference, you should describe main features of your project, so we could advise you on the library or a set of libraries to use...
--SA
compuknow 29-Nov-12 13:03pm    
Sir , i have asked for a function which supports drawing functions. In my project i wanted to draw a box so that i can put some string (information) into it.

It is like an console based information box.

I know in turbo C++ there is graphics.h but my whole project is in C++11 and in C++ 11 i cant find something similar.

Is there any good functions which support drawing in consoles using C++11?
Sergey Alexandrovich Kryukov 29-Nov-12 16:06pm    
There is not "graphics.h" in C++. Turbo C++? Yes, such product included it, but, as I say, this is just a library you never mentioned before.
Are you using Windows? Just forget it. This is something obsolete. It was bad even when it was created, but at that time very little of code was available, so some used it. Not anymore. People say there was some work-around, but I don't want to discuss it. That time has gone. Honestly, use something more modern.
--SA

1 solution

This is really a Windows question rather than a C++ question. You could use a simple MessageBox() or look at some of the other Windows Controls[^].
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 29-Nov-12 16:08pm    
Please see the comment to the question OP added later. No way -- it was about graphics.h, which is majorly dead, I think... -- please see my comment. Too bad.
--SA
Richard MacCutchan 30-Nov-12 3:32am    
I had a feeling it was something like that.
Sergey Alexandrovich Kryukov 30-Nov-12 13:30pm    
:-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900