c++ - Why fstream doesn't work with excel.csv -


i trying add data excel fstream csv doesnt work, don't know if doing wrong. here code

#include <iostream> #include <fstream>  using namespace std;  int main() {     ofstream file;     file.open("test.csv");     file << "one,two" << endl;     file << "three" << " , " << "four\n";     file.close();     return 0; } 

the results one,two in cell a1 , three,four int cell b1 edit: expected a1 = 1 a2 = 2 b1 = 3 , b2 = four


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -