Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* поносная функция :( */
- void kostyaFunc(string input) {
- int counter = 0, abc;
- string counterS, text = input;
- for (int i = 0; i < input.length(); i++)
- {
- if (input.at(i) == '.') {
- abc = i + 1;
- counterS = to_string(counter);
- text.insert(abc, ")");
- text.insert(abc, counterS);
- text.insert(abc, "(");
- counter = 0;
- abc = i += 3;
- }else
- counter++;
- }
- cout << text << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement