The << syntax was probably taken from the here document construct in Unix shells:

#!/bin/sh
cat << ZZ
hello
world
ZZ

will print

hello
world

The >> construct also exists, but its meaning has nothing to do with the C++ operator.