sigh I had to create an account to point out that this is just plain old C, not C++. Surprised that nobody else had done so already.
If you want to do this more succinctly, try a language like Python:
for i in range(500): print “I will not throw paper airplanes in class.”
There are easily findable online compilers where you can test this code quickly and easily!