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

inputting a string...

Status
Not open for further replies.

SimSam

Programmer
Mar 19, 2005
1
CA
I am making a driver that takes in commands that manipulate an array of structures that are composed of string name and a set (eg. {1,2,3} )...
when the user inputs the name...instead of having the string being stored in the memory location for the string..I am getting the following..:

name
npos = 4294967295
_M_dataplus = {...}
_S_empty_rep_storage=[...]

any help?...
 
Switch on hex input. npos = FFFFFFFF i.e. -1.

What kind of string is it?
1) CString
2) STL string
3) char*, wchar_t* or TCHAR*- you need to malloc some space for it first

How are you reading in the data?
4) gets
5) STL getline
6) cin
7) from the command line
8) some other technique
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top