954,549 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Pdcurses help

I am trying to update my roguelike game, 'Get Out!!'. I have one simple question. How do I print an int at an xy coordinate using pdcurses and c++. i only know how to print char and const char[].
Thank you

idontexist
Newbie Poster
8 posts since Oct 2008
Reputation Points: 10
Solved Threads: 0
 

Convert to a string using say sprintf(c) or stringstream(c++)
Then output the string as you know how to.

Salem
Posting Sage
Team Colleague
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You