怎么用sscanf和sprintf来写这个

img

scanf

printf

sscanf和sprintf是用来获取字符串中数据的和格式化输出字符串的,你从网上找各例子就明白了