最佳答案:#include  #include  int main() {     int i;     char s[]="1234"; //两种方法,一是直接调用函数strlen,一是直接计