>DansTonCode();

Tous les codes sourcespage 13

C++
 10 June, 2016 à 01:30
#275
	static const int Num = 5;
	class Recursive
	{
	public:
		long long result;
		Recursive(int WhatIveGot, int Count)
		{
			if ( !Count ) result = 1;
			if ( 0 >= WhatIveGot ) return;
			result *= WhatIveGot;
			new (this)Recursive(WhatIveGot-1, Count+1);
		}
	} a(Num, 0);

	std::wcout << L"Factorial(" << Num << L"): " << a.result << std::endl;
PHP
  8 June, 2016 à 01:30
#273
$menu2 = array();
foreach ($menu as $i=>$m) {
    $menu2[] = $m;
 }
$menu = $menu2;