Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Home » Tip Bank » C++
Language: C++
Expertise: Beginner
Mar 25, 1999

Strings

Question:
How can I convert integers to strings? I'm using a gcc compiler under Solaris 2.6. itoa, which I used in VC++, doesn't work. By the way, how can I write strings on a graphic canvas using the GLUT library?

Answer:
I haven't worked with gcc, but if itoa does not work, then I'm afraid you are working with a substandard compiler. itoa is part of the ANSI C standard run-time library and is used for the exact task you described.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date