Ue4 C++ select and switch equivalent?

*quiet traumatized sobbing*

That aside… Klught, I’m going to second Jared’s recommendation here. It is absolutely worth it.

I have a fun story; I was helping to write and run an online multiplayer game at one point. Another person – who’d taken programming courses, though they were all in java – started to pitch in. The sandbox version of the game he was using kept crashing, though, and he was really puzzled as to why. We sat down to look over the code with him… and his use of pointers was… confusing. When we asked him about his logic, he admitted “I don’t really know why sometimes stuff has an & or an * with it, so I’ve mostly been guessing.”

Java, after all, does not distinguish pointers because everything is a pointer.

So, yeah; knowing programming in one environment is not always enough to really have a full handle on it in another. It is definitely worth some quality time with a C++ book; that’s a chunk of time spent now to avoid a much larger chunk of time spent tracking down weird crashes later.

1 Like