Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / C++ cstr

Author
Message
Epipfany Game Studios
16
Years of Service
User Offline
Joined: 5th Feb 2008
Location:
Posted: 5th Feb 2008 23:37
OK I have been programing in Basic since basica and qbasic and I am so use to having a easy way to get a string equivlent of a integer. But now that i have been working with c++ with Dark GTK. I need for debuging purposes an easy way to print to the screen x,y,z values for rotation and position of my main object in the game. but mostly I really was wondering if anyone coudl provide me a simple way to cstr as in basic a int to a char array. I know thsi is just oppion but C is supost to be a great language but this jsut seems to be over complicating what should be so easy to do. Please Help. I am stuck in my game untill i can see some values quickly with out steping through code every little key press event.
Thanks in advance Terry

Thanks,
Terry
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 8th Feb 2008 00:52
You can just use dbStr( ); and pass the number as the parameter, it returns a char*.

Projects Started: 20
Projects Completed: 0

Login to post a reply

Server time is: 2024-11-17 04:10:51
Your offset time is: 2024-11-17 04:10:51