![]() |
Cout Problem
Is
cout.operator<<("Factorial of :");same as cout << "Factorial of:" ;I have searched google and checked books and all of them say it is but when i run the same code the former code gives me the address of the string. |
Re: Cout Problem
>I have searched google and checked books and all of them say it is
They're wrong. cout<<"blah" is a non-member function that's defined to work with C-style strings: :
:
|
| All times are GMT -5. The time now is 3:37 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC