How can I learn C++ with UE4?

I have to be honest though, I wanted to ask the same question weeks ago.

It’s just boring as all get out learning C++ with console I/O or reading files over and over. It would be a lot funner if, “the basics” could be recreated in UE, and even help learn the engine as well. I mean, even a simple for loop iterating over a boundary would be funner if you could actually watch “pretty” graphics throw it on the screen, you know?