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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple simple simple pathetic question

Status
Not open for further replies.

denisfinn

Programmer
Jun 7, 2003
49
US
what's the #include to get a string?

like say I wanted a user to input their name. That would be the string. What is the #include to get that?

Thanks,
Denis
 
Assuming a console app:

#include <string>
using std::string;

If it's MFC, you shouldn't have to #include anything to get CString.
 
You must thinking of C++ not VC++ if you are looking for a string. CString is just like a string, it has lots of functions associated with it incase you want a number to be changed into a string. CString.Format .....

:-D
 
um...you don't have to type &quot;using std::string;&quot;

it works with it and without it :).


Thanks,
Denis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top