Reading double matrix from cin
问题 I need to read squad matrix from cin, but I don't know the size of this matrix. So I need to read first row(double numbers separated by space or tab till end of line). After parse this line to get count of double numbers. If in row will be n double numbers then matrix size will nxn. How can I do that? Code: unsigned int tempSize = 0; double tempPoint; double * tempArray = new double [0]; string ts; getline(std::cin, ts); std::istringstream s(ts); while (s >> tempPoint){ if (!s.good()){ return