I want to distinguish between:
std:string str = "";
and
std:string str;
In both cases str.empty() returns true.
Any suggestions?
http://www.experts-exchange.com/Programming/Languages/CPP/Q_20231042.html
how do I use set?
http://www.experts-exchange.com/Programming/Languages/CPP/Q_22966252.html
Zones:
C++Date Answered: 11/17/2007 Grade: A Views: 11
Is there a way to turn off using a namespace or setting it back to the global namespace in VC++6.0
ie.
using namespace std;
class A
{
set<int> intset;
};
// Turn off using namespace...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_11459098.html
Zones:
C++Date Answered: 10/04/2000 Grade: B Views: 0
have following piece of code:
string s = "aaa";
std::transform(s.begin(), s.end(), s.begin(), toupper);
When I compile, I get the following error:
Error: Could not find a match for std...
http://www.experts-exchange.com/Programming/System/Unix_-_Posix/Q_20241851.html
hi,
i am using vector STL to store employee's information. I used "transform" algorithm to modify some fields of emp struture. When i print my vector after transform, it is showing the correct r...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_20521723.html
I need help in storing information that is output from another machine on the network. Is <map> the best way to store and retriev data, instead of using arrays? Anyway I would like to learn how to ...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_20523186.html
Zones:
C++Date Answered: 02/25/2003 Grade: A Views: 0
Hi,
I am using map in one of my application in the VC++ IDE, but it gives a lot of warnings during compilation as given below, microsoft has stated the size limitation of the class heirarch is 255...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_20631294.html
Zones:
C++Date Answered: 05/31/2003 Grade: B Views: 0
Is there anyway of converting a CString to a std::string and visa versa?
http://www.experts-exchange.com/Programming/Languages/CPP/Q_20668465.html
Zones:
C++Date Answered: 01/25/2004 Grade: A Views: 8
This might be an easy question for most of you I guess.
I want to use "using std::iostream" or similar first in my cpp-files. This is because I have a lot of "cout" and "endl" in my code and it ...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_20820663.html
Hi
I am working on some code that will use a vector of function pointers. The problem I am having is with the assigment statement assigning function addresses to the pointers.
I will call the...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_21282945.html