I have question about putting data below in a string array , I mean that is it possible to do as bellow:
for(int i{};i<num;i++)
string[i]={"The degree of",i,"'th vertice is",degree[i]}
I have tried that and I know its not practical in c++ but is there any other way to do so, my goal is to return a string that number of each degree is saved in by a function called degree,as what I have mentioned (for example "The degree of 4'th vertice is 2") . so is there possible to do so? I want to call the function as below:
std::cout<<degree();
thanks for your attention.