Guys! I'm very excited about this! I just wrote a simple program which generates random numbers and random spaces and keeps moving ( like one of those things you saw in the matrix and numerous other movies, but you always knew what a piece of crap!)
Anyway, I actually kept staring at the beautiful effect it created for at least a minute!
Guys, any idea how do I make this as wallpaper?! Like a live wallpaper with all the numbers running around in the background... I know I'd get fed up after a few hoursbut I think it'd be cool until such time
( Just in case you want to know the effect, try running the following piece of code after making your terminal font colour as green with a black background. But I hope you have a good processor.. or i think it may lag..)
Of course, hit CTRL + C to stop the programCode:/* This program will attempt to create a matrix type simulation */ #include <iostream> #include <cstdlib> using namespace std; int main() { int i,x=0, nbr, spc; while(1) { x = 0; { // generate the random space value spc = rand(); spc %= 50; for(i=0;i<spc;i++) cout << " "; // Now generate the random number nbr = rand(); nbr %= 100; cout << nbr; x++; } } }![]()



Adv Reply



Bookmarks