读取Excel工作表中的特定列

时间:2017-03-30 11:45:18

标签: excel delphi delphi-xe3

我有一个Excel电子表格,但现在我的问题是我希望能够只读取特定的列,电子表格中的列数超过20,我只需要读取3列。

class A{

 public:

    printA(void){

        cout << "\nA is the first letter of the alphabet";
    }

 private:

    double x;
};



class B : public  A{

 public:

    printB(void){

        cout << "\nB is the second letter of the alphabet";
        cout << "\nSize of y = " << sizeof(y);
    }

 private:

    float y;
};


int main(void){


   A firstObj;

   B secondObj;

   cout << "\nSize of firstObj = " << sizeof(firstObj);

   secondObj.printB();

   cout << "\nSize of secondObj = " << sizeof(secondObj);


   return 0;
}

1 个答案:

答案 0 :(得分:3)

以下是从Excel电子表格动态检索三个完整列(H,I和J)的内容的示例。虽然它不是根据您的具体示例量身定制的,但它应该为您提供这样做的基本概念(以及之后正确清理),以便您能够适应您的特定需求。我已经对代码进行了评论,以明确它正在做什么。

docker inspect -f "{{ .NetworkSettings.Networks.nat.IPAddress }}" containername
相关问题