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!

Recent content by chrisdash

  1. chrisdash

    Convert int to C++ string

    Oh, you have to include another header to use stringstreams, thats the problem. I thought it was in <string>. By the way, I have more than one book on the STL, I was just too stupid and lazy to use them in this case.
  2. chrisdash

    Help: How to count the word(s) that you inputted?

    Regarding Federal102s post: I think you have a typo or bug in there, look at this line: pos - pos2;
  3. chrisdash

    Starting Windows Program in VC++

    Well, there are many different flavors of &quot;professional Windows Programming using VC++&quot;. Some of these use Visual C++ but don't use C++, mostly because Windows was written in plain C (and therefore the WinAPI too). Personally, I do things using the WinAPI and still use C++ in &quot;my...
  4. chrisdash

    Help: How to count the word(s) that you inputted?

    I guess there's no built in function for this (C++ doesn't have many high level string torturing functions in the standard library) so you'll probably have to code your own. The count-spaces-approach sounds good but won't work if there are multiple spaces between words. You could go through the...
  5. chrisdash

    Convert int to C++ string

    The topic says it all, how do I convert an integer to a std::string? I've read something about using a stringstream from chipperMDW, but that doesn't work. MS VC++ 6.0 doesn't like the stringstream: main.cpp(34) : error C2079: 'conv' uses undefined class 'basic_stringstream<char,struct...

Part and Inventory Search

Back
Top