複数の文字列を入力し、最大文字を検索し、その文字列の後ろに文字列「(max)」を挿入します.
614 ワード
/*
* Copyright (c) 2014,
* All rights reserved.
* :
* :2014 2 16
* :v1.0
* :
* :3 , ,
* “(max)”。
* , 100 ,
* 。
* :
* :
* :
*/
#include
#include
#include
using namespace std;
int main()
{
char a[101],max;
int length,i;
while(gets(a)) //
{
length=strlen(a);
max=a[0];
for(i=0; i