PDF version - Computing Help - University of Cambridge
PDF version - Computing Help - University of Cambridge
PDF version - Computing Help - University of Cambridge
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
1A C++ courseworkhttp://www-h.eng.cam.ac.uk/help/tpl/languages/C++/...warning: suggest parentheses around assignment used as truth valuebut many compilers won't say anything. Train yourself to use == when making comparisons (some languages use 3 equals signs socount your blessings). Be careful to avoid mixed-type comparisons - if you compare a floating point number with an integer the equalitytests may not work as expected.You can use else in combination with if - e.g.if(num