converting a variable name to a string in C++

前端 未结 8 1004
广开言路
广开言路 2020-12-01 01:15

I\'d like to output some data to a file. For example assume I have two vectors of doubles:

vector data1(10);
vector data2(10); 
         


        
8条回答
  •  旧巷少年郎
    2020-12-01 01:57

    I'd have thought the obvious answer is to make the function that performs the output take the heading text as a string parameter.

提交回复
热议问题