0
permutation code C++ has some problem when storing result in output file.
https://code.sololearn.com/ckJflEl2euoS/#cpp Can I get some help with my code? I run this code in my visual and it works, but when I make input file and run it to make output file, the outputfile is empty. I think the line23 has some problem, because the algorithm works fine. 'copy(Array.begin(), Array.end(), ostream_iterator<char>(outputfile,", "));' Any help will be appreciated.
1 Réponse
0
I don't think line 23 is having issue... Check for line 24... Is line 24 is really required? I think no...
Additionally , you are calling this code if index >=n and the way you are calling function would never satisfy the if condition to call the code of copy function for which you are suspicious about