Potenzieren

#include <math.h>

...

void __fastcall TMain::Button1Click(TObject *Sender)
{
     double dbl;
     dbl = pow (2,4); // 2^4 ausrechnen
     Application->MessageBox(AnsiString(dbl).c_str(),"",MB_OK);
}