12.07.2015 Views

PDF version - Computing Help - University of Cambridge

PDF version - Computing Help - University of Cambridge

PDF version - Computing Help - University of Cambridge

SHOW MORE
SHOW LESS

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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!