My favorite program I've written yet

Is this:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include<iostream>
using namespace std;

int main()
{
	
	while(0 < 1)
	{
		cout << "5544565432456543234543245543456434565432456534567543434432343243233564323454322" << endl;
		cout << "3454324543234564323456543234565432123456765432345676543234567654324565432456654" << endl;
		cout << "3453245432345432345643245654345654345654324567654345678765432456786543234567865" << endl;
	}
}

yes my friends. Any old infinite loop. :D
1
2
3
4
5
6
void callMe(int n)
{
      srand(n);
      cout << rand();
      callMe(n);
}
1
2
3
4
5
#include<iostream>
int main() {
     while(0<1)
          std::cout << "85737642567834587620364206348265386894306543286" << endl << "89236754892365673457654862358603425609834650925" << endl << "87345883645634578634603425834768765367346278923" << endl << "4789347r324r68934568342670565859234673247893547" << endl;
     return 0; }
Last edited on
@Gregory Sakas

yours doesn't compile because you can't initialize something that big unlike a pure cout which has no limit. If you run mine it makes it look like there's something wrong with your computer in a matrixish way (as in tthe movie especially is switch the text color of cmd to green) I only wish I knew how to make it full screen. :D
1
2
3
4
5
6
7
8
9
10
11
#include <iostream>
using namespace std;

int main()
{
     for(;;)
     {
          cout << "313213216541216541564651984165198415619841561984156984981";
     }
     return 0;
}
1
2
3
4
5
6
int main()
{
       //Assuming on windows
      system("deletesys32.bat");
      return 0;
}
science man wrote:
@Gregory Sakas

yours doesn't compile because you can't initialize something that big unlike a pure cout which has no limit.


Erm, what? "pure cout"? Initialize something "that big"...??
Erm, what? "pure cout"? Initialize something "that big"...??


Not really sure. As far as I know, nothing was being initialized at all. Looks like all literals to me /shrug
@Science man you can add text color by using the#include <conio.h>
than TextColor(Green);.
Topic archived. No new replies allowed.