I tried to add a structure into t but there is error. I also try to declare <vector>int tidptr in sttucttid, but there is error too..Code:struct structtid { int tid; //transaction id list int *tidptr; // pointer to the transaction int transnum; //size of each transaction }; <vector>structtid t; structtid temp; temp.tid = 1; temp.transnum = 10; t.push_back(temp);
Can anyone help me? Thanks!