#include
#includeusing namespace std;int main(){char str[10], temp[10] = { "" };int i;for (i = 0; i < 4; i++){cin >> str;if (?) strcpy_s(temp, str);}cout << temp;return 0;}麻烦填一下打问号的空
用strlen计算三个字符串的长度就行了啊if(strlen(str) > strlen(temp))