为什么即使使用for循环遍历我的向量,为什么它也不输出到控制台? (C ++)
这很混乱,因为我是C ++的新手。我做了一个函数,该函数返回向量的值,该向量从.txt文件中获取其元素。我制作了单独的向量对它进行排序,但这与这个问题无关。
vector<string> txtToArr(int c) {
string tempS;
double tempD;
int tempI;
// Adds data to their respective vectors
int count = 0;
while (!unList.eof()) {
...