C++, what is := used for?

Don Code picture Don Code · May 5, 2013 · Viewed 9.9k times · Source

I'm seeing this in a program. I can't find anything on ":=". What is it used for?

The program says:

val1 := val1 * (val2 + result);

Answer

Dolphiniac picture Dolphiniac · May 5, 2013

Absolutely nothing. The := operator is an assignment operator in other languages. C++, like C, uses just the = operator.