S
salvo
Hi,
I made a little program in C++, which initially displayed its data to the
standard output with the cout object. Now that I added a little graphic
interface with gtk+, I'd like to keep the class code as indipendent as
possible. This way, I could leave both version, graphic and not.
In the graphic version, every object would output its data to the
text_view object, while in the no-graphic version, it would output its
data to the standard output with cout. How can I do this ?
Any suggestions?
Thanks in advance
Salvo
I made a little program in C++, which initially displayed its data to the
standard output with the cout object. Now that I added a little graphic
interface with gtk+, I'd like to keep the class code as indipendent as
possible. This way, I could leave both version, graphic and not.
In the graphic version, every object would output its data to the
text_view object, while in the no-graphic version, it would output its
data to the standard output with cout. How can I do this ?
Any suggestions?
Thanks in advance
Salvo