Io ho una struct di puntatori (Tabella):
typedef struct {
vector<string> nome;
int* n_parametri;
vector<int*> tipo ;
int* occupazione;
}Tabella;
Se io nel main apro un file 2 volte
FILE* myf = fopen( "C:\\Documents and Settings\\User\\Desktop\\SimpleC.txt","r") ;
if( myf != NULL )
{
....
}
fclose(myf);
FILE* myf = fopen( "C:\\Documents and Settings\\User\\Desktop\\SimpleC.txt","r") ;
if( myf != NULL )
{
......
}
fclose(myf);
e nella prima apertura creo e modifico una variabile di tipo Tabella, questa struct è "visibile" SEMPRE, anche se nella funzione che lo crea passo una variabile Tabella normalmente, dal momento che i puntatori vengono passati per riferimento?
E' "visibile" anche alla seconda apertura del file?