mam menší problem nevím jak napsat zdrojak na faktorial s využitím alokace paměti. scitani odcitani nasobeni a deleni ale jak napsat faktorial fakt nevim. třeba takhle sem udělal to nasobeni
void nasobeni()
{
long double * pa= new long double;
*pa=0;
long double * pb = new long double;
*pb=0;
long double * pc= new long double;
*pc=0;
cout <<"-------------------------------------------n";
cout << "Vybrali jste operaci - A * B\n\n";
cout << "Zadejte prvni cislo :\t";
cin >> *pa;
cout << " *\n";
cout << "Zadejte druhe cislo :\t";
cin >> *pb;
cout << " =\n";
*pc=*pa * *pb;
cout << "Vysledek je :\t";
cout << *pc;
cout <<endl;
cout <<endl;
cout <<endl;
cout <<"-------------------------------------------\n";
cout <<endl;
delete pa;
delete pb;
delete pc;
}