shell script variables not working

C++
#shell does not accept spaces so:
MYVAR = 12 #is NOT correct
MYVAR=12 #is correct
Source

Also in C++: