sscanf()

sscanf()方法,类似于scanf,参数多了一个字符串,指示其从该字符串中获取输入
sscanf(s, "%d %s %d %lf", &a, str, &b, &c)