Kleines Matrix Programm ;-)
-
kann mir denn jetzt jemand das mal genauer erklären ?
Zufallszahlen erzeugen mit srand(...) und rand(...)
http://www.cplusplus.com/reference/clibrary/cstdlib/srand.html
http://www.cplusplus.com/reference/clibrary/cstdlib/rand.htmlModulo-Operator:
http://www.cplusplus.com/doc/tutorial/operators.htmlspace4(...) und space6(...) sind Funktionen:
http://www.cplusplus.com/doc/tutorial/functions.html
http://www.cplusplus.com/doc/tutorial/functions2.htmlif (++c==5) { Sleep(5); c=0; }++c erhöht erst die Variable c um eins. Anschließend wird c mit 5 auf Gleichheit verglichen. Sleep(...) ist eine Funktion aus windows.h, die das programm für ... Millisekunden "auf Eis" legt.