User Profile
Collapse
-
do any one have any suggestion here? -
Modifying cout to display custom text at start
Hello,
I'm working on, to write the debug statements to logfile or console depends on working environment.
What I have did:
Code:streambuf *psbuf; ofstream logFile; logFile.open(LOGFILE); psbuf = logFile.rdbuf(); cout.rdbuf(psbuf);
The situation is, I like... -
Thanks for looking into, this sample code -
Code:class A { int l; const int m; public: A() : l(10), m(15){}; const A* function(void) const { cout<<"Const "<<endl; return this; } A* function(void) { cout<<"Non Const "<<endl; return this; } }; int main() {
Leave a comment:
-
Gurinderc started a topic How Complier Distinguish Between const_iterator begin() and iterator begin()in CHow Complier Distinguish Between const_iterator begin() and iterator begin()
Hello All,
I have a very basic question on STL Iterator implementation, I like to know :
How does complier distinguish between const_iterator begin() and iterator begin().
There are few answer's on the internet but nothing concrete. I can't find exact, might be using wrong keywords in search.
Can someone point out it, if possible with example.
Many Thanks
No activity results to display
Show More
Leave a comment: