嗯,最后用的
stringstream inputa(a);
while(getline(input, temp1, ';')){}