0
Whats the difference between using << and >> in C++?
I don't get why cout uses << while cin uses >>
3 Respostas
+ 1
It's just how they are defined, outputstream uses<< input stream uses>>
0
so anything that has something like c"OUT" uses << and anything that has c"IN" uses >>?
0
Yes, for example ofstream and ifstream (used for files)