【笔记】
#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<string>
using namespace std;
int strcmp(char* p1, char* p2) {
char temp1[10], temp2[10];
strcpy(temp1, p1);
strcpy(temp2, p2);
int n = 0 , m = 0;
for (int i = 0; i < strlen(temp1); i++) {
n = (int)temp1[i];
m = (int)temp2[i];
if (n != m)break;
}
cout << n-m << endl;
return 0;
}
int main() {
char str1[10],str2[10];
cin >> str1;
cin >> str2;
strcmp(str1, str2);
return 0;
}