hi
i want to change the static table to a dynamic table using pointer
what should i change in this case ?
#include <iostream>
#include <fstream>
#include <string>
#include <math.h>
using namespace std;
int i ,j , l , k ,x ;
float b;
const int maxElements = 10000;
float Bt[maxElements] ;
string **T;
int main()
{
ifstream file("file.txt");
T = new string*[maxElements];
string *word;
i=0;
while( file >> word)
{
word.size();
T[i]=word;
cout<<"aaaaaaaa"<<word.size()<<endl;
i=i+1;
}
cout<<"i= "<<i<<endl;
return 0;
}
because this code doesn't work