Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I'm looking for a way to convert an 1

Status
Not open for further replies.

classic773

Programmer
Jun 14, 2001
57
US
I'm looking for a way to convert an int to a string. I found "Convert.ToString Method (Int32, Int32)" on the MSDN page, but its for .NET I'm not sure exactly what that is. can I use this method in visual c++ or is .NET a seperate language?

 
#include<stdio.h>
.....
sscanf(yourstring,&quot;%d&quot;,&yourint); John Fill
1c.bmp


ivfmd@mail.md
 
You can do it with CString::Format or sprintf as well

CString s;
s.Format(&quot;%d&quot;,your_int);


or

char s[16];
sprintf(s,&quot;%d&quot;,your_int);


matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top