如何讀取CSV文件并賦值到二維數組里?
# include <iostream>using namespace std;int main(){ decltype(CSV[0][0]) a, b, c, d; a = csv[0][0]; b = csv[0][1]; c = csv[1][0]; d = csv[1][1]; cout<<a<<'\t'<<b<<'\t'<<c<<'\t'<<d<<'\t'<<endl; return 0;}
如何讀取CSV文件并賦值到二維數組里?
# include <iostream>using namespace std;int main(){ decltype(CSV[0][0]) a, b, c, d; a = csv[0][0]; b = csv[0][1]; c = csv[1][0]; d = csv[1][1]; cout<<a<<'\t'<<b<<'\t'<<c<<'\t'<<d<<'\t'<<endl; return 0;}