![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Oct 2005
Posts: 84
Rep Power: 3
![]() |
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.
__________________
"You're good... but me, I'm magic" |
|
|
|
|
|
#2 |
|
Professional Programmer
![]() Join Date: Sep 2005
Posts: 419
Rep Power: 3
![]() |
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: cpp Syntax (Toggle Plain Text)
cpp Syntax (Toggle Plain Text)
__________________
Even if the voices aren't real, they have some pretty good ideas. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| having problem with data not saving to a file | codylee270 | C++ | 5 | Apr 13th, 2006 7:39 PM |
| Vector problem - find max, min and positions | codylee270 | C++ | 12 | Mar 20th, 2006 12:57 AM |
| cgi/perl script + IE problem | joyceshee | Perl | 2 | Jan 24th, 2006 11:10 AM |
| problem with user defined class mixed with functions | willj729 | C++ | 4 | Oct 9th, 2005 3:26 PM |
| help with correcting a problem | hopeolicious | C++ | 1 | Mar 1st, 2005 2:49 PM |