// 字符串压缩.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#includeusing namespace std;void stringZip(const char *pi, long l, char *po){ int count=1; int j=0; for(int i=0;i 0) { t=count%10; sum=sum*10+t; count/=10; w++; } while(w) { po[j++]=sum%10+'0'; sum/=10; w--; } po[j++]=pi[i]; count=1; } } } po[j]='\0';}int main(){ char pInputStr[100]; cin.getline(pInputStr,100); char pOutputStr[100]; long lInputLen=strlen(pInputStr); stringZip(pInputStr, lInputLen, pOutputStr); cout<