/* 要求如下: 1 找出在一串连续的01字符串中 ,01字符中 0和1 连续出现 的最大次数。 例如 : 000111100101011001010101010101110 */ #include <stdio.h> #include <stdlib.h> void calculate (const char* str ,int* max0,int *max1){//通过传入 两个指针变量 可以带回两个值,相当于 返回两个值 int temp0 = 0;//用来记录连续0 的次数 int temp1 = 0;//用来记录连续1 的次数 while (*...