Helios needs trophy

............................................________
....................................,.-‘”...................``~.,
.............................,.-”...................................“-.,
.........................,/...............................................”:,
.....................,?......................................................\,
.................../...........................................................,}
................./......................................................,:`^`..}
.............../...................................................,:”........./
..............?.....__.........................................:`.........../
............./__.(.....“~-,_..............................,:`........../
.........../(_....”~,_........“~,_....................,:`........_/
..........{.._$;_......”=,_.......“-,_.......,.-~-,},.~”;/....}
...........((.....*~_.......”=-._......“;,,./`..../”............../
...,,,___.\`~,......“~.,....................`.....}............../
............(....`=-,,.......`........................(......;_,,-”
............/.`~,......`-...............................\....../\
.............\`~.*-,.....................................|,./.....\,__
,,_..........}.>-._\...................................|..............`=~-,
.....`=~-,_\_......`\,.................................\
...................`=~-,,.\,...............................\
................................`:,,...........................`\..............__
.....................................`=-,...................,%`>--==``
........................................_\..........._,-%.......`\
...................................,<`.._|_,-&``................`\

For introducing the above, in all it's awesomeness...I award helios with the
OMGWTFBBQ
trophy.
Hahaha!
I humbly accept the trophy and dedicate it to Cpt. Picard for giving The Internet a way to express its frustrations with the idiots of the world.
Such as those that would keep consoles open by using an infinite loop at the end of the program. Everyone knows this is a much better method:
1
2
3
4
5
6
7
8
9
void coolPause(){
    coolPause();
}

int main(){
    //....
    coolPause();
    return 0;
}
Well said. An excellent acceptance speech.
But wouldn't System("Pause"); be easier...<grin>

All you have to do is ask the user if he would like to run the program again:
1
2
3
4
5
6
7
8
9
10
11
#include <stdio.h>

int main()
  {
  char c;
  printf( "Hello world!\n" );
  printf( "Run again (Y/N)?" );
  c = getchar();
  if (c == 'Y' || c == 'y') main();
  return 0;
  }

Alas, I forgot that C++ forbade calling main()... So I changed it to C.
Last edited on
Alas, not allowed to call main() explicitly, but nothing a good goto wouldn't solve!
Fixed. (Everybody knows gotos are to be shot on sight.)

XD
I Agree with Duoas
Oh no!

XD
Topic archived. No new replies allowed.