如何读取和写入Excel文件

如何读取和写入Excel文件

本文介绍了如何读取和写入Excel文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在c ++中输入和输出到Excel文件?
如何从Excel文件获取数据以及如何从Excel文件获取数据.
输出文件如何逐行显示??
请举例说明.
我想在这个例子中,得到输入文件,并给出输出文件.
我将归档此程序,但无法获取输入和输出.
您只需输入和输出,即可完成我的程序.
感谢您早日答复.

Input and output to Excel file in c + +?
How to get data from Excel files and how to get out of the Excel file.
How is the output file line by line???
Please answer with examples..
I would like in this example, I get the input file, and to give the output file.
I''ll file this program, but can not get the input and output.
You, with an input and output, complete my program.
Thanks for the answer you early.

#include <iostream>
#include <fstream>
#include <string>
using namespace std;
#define FILE_IN "exel.xlsx"
#define FILE_OUT "report.xlsx"
int main( ){
    string a;
    ifstream input;
    ofstream output;
    input.open(FILE_IN);
    output.open(FILE_OUT);
    input.close();
    output.close();
    return 0;
    }


字符串输入.
字符串输出.


string a input.
string a output.

推荐答案




这篇关于如何读取和写入Excel文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 03:17