Use sprintf() or a std::ostringstream to convert the date to a string, then use outtextxy() to print the string.
char buf[ 20 ];
sprintf( buf, "%d/", d.da_day );
outtextxy( 200, 100, buf );
// I'm pretty sure that Turbo C++ uses a different header name
// for the stringstream... it might be <stringstream>
#include <sstream>
...
ostringstream ss;
ss << d.da_day << "/";
outtextxy( 200, 100, ss.str().c_str() );
Hope this helps.
Duoas
Postaholic
2,043 posts since Oct 2007
Reputation Points: 1,140
Solved Threads: 229
> I'm a first-year student at the university. When i am using Tubo C++
What are you studying? Archaeology or history?
It's probably so old it doesn't understand the namespaces which Duoas posted.
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953