[Solved] Is there any way I can generate the following series? [closed]
[ad_1] Here is one possible solution for your sequence generator. #include <iostream> #include <string> // generate inverted term s -> !s std::string invert(const std::string& s) { const char a=”1″; const char b = ‘2’; std::string out; for (int i = 0; i < s.size(); i++) { // here one can check for invalid input as … Read more