Background:
Formal study in c and other languages 30 years ago, but due to a local downturn in the industry in the early 90s I stopped coding. Re-educated to physics where I've been using python for the last few years.
Recently a mate has convinced me I need to upgrade my skills, and head into c++, however stuff is quite different from 30 years ago.
As it says, I'm a mac user. It works for me, suits my situation. I have multiple linux boxes if necessary but I'd prefer to stick with the mac until I'm more proficient.
I tried using xcode but its quite complex - I know I will have to use it eventually but I'm finding a combination of terminal/vscode to be my kind of thing.
Anyway....I'm having trouble finding/installing libraries. Is there some information someone can point me to, to show me how to do this? Python was much simpler (pip install in most cases)
Also, years ago we were told never to use the system() command unless absolutely necessary. For example, I've been trying to learn c++ by porting some of my python code over to c++, simple stuff. One script has a section where it plays a short mp3 (or wav). I've seen some pretty complex examples on here and stack, which seem overly complex for the task I'm doing. One example said to use the system() command with afplay. Is this considered acceptable now, if not, is there a simple way to play an mp3/wav?
Yes, I sound like a bit of a newb, but I'm attempting to do the right thing here.
A lot of people use system() for banalities. The most common examples being system('cls") and system("pause"). Sometimes you really do need to invoke a command, and you may as well use system(). In my opinion, though, it's often (though not always) a sign that you're either a) approaching the problem the wrong way, or b) using the wrong language.