Specifically print out “SPAM” followed by a newline in an infinite loop.
while (true) std::cout << "SPAM" << std::endl;
or
for (;;) std::cout << "SPAM" << std::endl;
or
do std::cout << "SPAM" << std::endl; while (true);
Content is available under GNU Free Documentation License 1.2.