【问题描述】输入字符串1与子串2,在字符串1中查找子串,找不到,输出“No substring 子串",找到了,输出子串在字符串1中出现的下标。
【输入形式】字符串1与子串2
【输出形式】子串出现的位置(下标),或无子串的信息
【样例输入】
Input string:It took 13 horses, 123 hours, 123 kilometers,1234person
Input substring:123
【样例输出】
Substring 123 position:19 30 45
【样例输入】
Input string:substing is abc
Input substring:Ab
【样例输出】
No substring Ab
【样例说明】下划线上是运行时输入的文字,其他是提示信息