開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
小弟剛剛用瘋狂程設看不出錯誤在哪(跟他正確的一模一樣)
程式碼
#include<iostream>
#include<string>
using namespace std;
int maxx(int a,int b)
{return a>b?a:b;}
int mix=0;
char x[100][100];
int y[100];
int col=0;
string a;
int main(){
while(gets(x[col]))
{ y[col]=strlen(x[col])-1;
mix=maxx(mix,y[col]);
col++;
}
//cout<<mix;
for(int i=0;i<=mix;i++)
{
for(int ii=col-1;ii>=0;ii