Link to home
Start Free TrialLog in
Avatar of kellyjj
kellyjj

asked on

what does ' cout << << ' do??

I need to know what does  ' cout <<  << ' do?  
I am using it to print a linked list.  
Avatar of byoung
byoung

cout << "Variable foobar = " << foobar << endl;
say foobar = 5, then on the screen it would print out:
Variable foobar = 5
if you're using it to print a linked list to the screen, put a loop(for or while or the like) around the cout command and increment which part of the linked list you print each time thorugh the outer loop.  Therefore producing a printout of your linked list.  Good Luck!
ASKER CERTIFIED SOLUTION
Avatar of bradz
bradz

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kellyjj

ASKER

bradz,  e mail me.  kellyj@r2d2.bpginc.com.  I don't what you mean, "cout returns itself".  do you mean it is recursive.?

and thanks for the linked list answer.  A head node, after all that I have done and I did not think of that,   boy I am a homer.
I'm new to this forum, but I was jsut wondering what was wrong with the first answer?  If it's wrong, I shouldn't be expert status because it seems totally correct to me.  I'm I wrong?
are you still having a problem with this one??
all of these answers seem correct??

bradz