What's the difference between these two?

= and :=. I am unsure what the correct term is.

This has been discussed here before several times. You might search for “assignment” or otherwise check the documentation:

I checked the docs before posting, but I did not understand the difference. Or the first takes precedence over the latter when assigning variables?

Use := to initialize and use = to assign. See:

That sounds a bit more technical than I thought. But I think I understand something about it now. I google searched your comment and the C++ forum gave me more insights.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.