[C++] Simple Solution
\nclass Solution {\npublic:\n    vector<string> divideString(string s, int k, char fill) {\n        int n = s.size();\n        int j=0,i=0;\n        vector<stri
```\nclass Solution {\npublic:\n    vector<string> divideString(string s, int k, char fill) {\n        int n = s.size();\n        int j=0,i=0;\n        vector<string> result;\n        string res = "";\n        while(j<n){\n            res += s[j];\n            if(res.size() == k){\n                result.push_back(res);\n                res = "";\n            }\n            j++;\n        }\n        \n        if(res != ""){\n            while(res.size() < k){\n                res += fill;\n            }\n            result.push_back(res);\n        }\n        return result;\n    }\n};\n```
['C', 'C++']