For example, if the template is set as Head_???_Body_?_Tail, incrementing from 1 to 1001, the following names should be generated:
Head_001_Body_1_Tail
Head_002_Body_2_Tail
Head_003_Body_3_Tail
...
Head_010_Body_10_Tail
Head_011_Body_11_Tail
...
Head_1000_Body_1000_Tail
Head_1001_Body_1001_Tail
The purpose is not for practical use, mainly to exercise. The template is customized by the user, and there may be up to 255 wildcards "?" in the template, such as???????????Head?????????????Body??Tail?
After thinking for 1 day, there is no breakthrough in efficiency. Please help, thank you!
Thanks to bat-zw and 523066680 for their enthusiastic help here
[ Last edited by obsolete on 2008-7-31 at 10:30 PM ]
Head_001_Body_1_Tail
Head_002_Body_2_Tail
Head_003_Body_3_Tail
...
Head_010_Body_10_Tail
Head_011_Body_11_Tail
...
Head_1000_Body_1000_Tail
Head_1001_Body_1001_Tail
The purpose is not for practical use, mainly to exercise. The template is customized by the user, and there may be up to 255 wildcards "?" in the template, such as???????????Head?????????????Body??Tail?
After thinking for 1 day, there is no breakthrough in efficiency. Please help, thank you!
Thanks to bat-zw and 523066680 for their enthusiastic help here
[ Last edited by obsolete on 2008-7-31 at 10:30 PM ]
