Witam, mam problem. Otóż chcę przekonertować tablicę tupu int na tablicę typu string, co mi się niestety nie udaje. Dodam, że w ten sam sposób konwertowałem wcześniej zmienne z powodzeniem. Proszę o pomoc.
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int ile;
int main()
{
cin >> ile;
int *a = new int[ile];
int *b = new int[ile];
int *potegi = new int[ile];
for (int i = 0; i < ile; i++) {
cin >> a[i] >> b[i];
potegi[i] = pow (a[i], b[i]);
}
string potegiS = to_string (potegi);
return 0;
}