Random commandyou could also use a color-space (like rgb or hsv or ...) and then the srand,rand functions with the...
Code for making fileshttp://www.cplusplus.com/doc/tutorial/files/ contains everything you need to know
Function to replace getch()thats not what he asked :P
question?http://www.cplusplus.com/doc/tutorial/structures/
QuickSort problem@ fransje: or just use std::swap http://www.cplusplus.com/reference/algorithm/swap/