格式化字符串spintf("%s-%d", "12345", 55); 如果是按格式取出呢 ? int a, b, c; sscanf ("2006:03:18", "%d:%d:%d", &a, &b, &c);