Every so often I want to do something that should be straightforward but find that it isn't. Once I've found a solution I put it here partly so that I can find it easily next time but also in the vague hope that they might be helpful to others. Sometimes people even send me better solutions which is very nice of them. If you have any useful bits of C/C++ code (open source) that you would like to release into the wild, let me know.
- How do I get the date a file was last modified?
- How do I use itoa with GCC?
- How do I change the precision of a number in std::cout?
- How do I make sure that my random numbers are different every time?
#include <std disclaimer>
The University of Manchester is in no way responsible for the content of this or any other page that has existed, or will exist in my home area. Your home may be at risk if you do not keep up repayments on your telescope. Year 2000 compliant. Any resemblance to any real Astronomer, living, dead or fictional is purely coincidental. No correspondence shall be entered into. Batteries not included. All research is overseen by the International Astronomical Union (IAU/UAI). Observations may be recorded by Patrick Moore for public training purposes. Probably correct at time of going to press. Judges decision is final. No Astronomers were intentionally harmed in the creation of this website. May contain nuts. Suitable for vegetarians.