<< and >> in C++

Posted by JacKeown on Programmers See other posts from Programmers or by JacKeown
Published on 2011-02-25T23:28:43Z Indexed on 2011/02/25 23:33 UTC
Read the original article Hit count: 153

Filed under:

I don't quite understand what this means...I'm just learning C++ from my very very very basic Python experience...and so this may be a very stupid question. My question is...say you have your classic "Hello World" program and you have the line:

cout<<"Hello World!"<<endl;

what does the << mean...because I was just looking at using input in C and saw that you'd do something like:

int i;
cin>>i;

and I noticed that it has >> instead of << and I've read that those are bitwise shifts...and I don't exactly understand what those are...but I think it might be different here...Help...Thanks in advance

© Programmers or respective owner

Related posts about c++