Also ich habe mal die Schleifen bei while und for getestet und miteinander kombiniert (igendwie sinnlos
) .Durch das Endlos ensteht nen kleines Matrix logo
#include <windows.h>
#include <iostream.h>
#include <string>
#include <cstdlib>
#include <iostream>
#include <stdlib.h>
int zufall(int min, int max)
{
return min + rand()%(max-min+1);
}
int main()
{
int i=1;
int j=zufall(1337,9999);
int k=1;
int l=1;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 2);
cout<<"\n"
"Funktionen des Programmes\n"
"#for()\n"
"#while()\n"
"#if & else\n"
"#Color\n\n"
"Write 1 to start:";
cin>>k;
if (k==1)
{
while(i<=1337)
{
for(i=1; i < 10; i++)
{
cout <<zufall(1337,7331);
}
}
}
else
{
cout<<"unvalid command\n";
}
cin.get();
cin.get();
}