我有可能的输入 1M 2M .. 11M 和 1Y (M 和 Y 代表月份),我想输出“somestring1 somestring2 .... and somestring12”注释 M 和 Y 被删除,最后一个字符串更改为 12
Example: input "11M" "hello" output: hello11
input "1Y" "hello" output: hello1
char * (const char * date, const char * somestr)
{
// just need to output final string no need to change the original string
cout<< finalStr<<endl;
}