#include <iostream>
#include <cstring>
using namespace std;
struct Student {
char name[20];
int score;
};
int main() {
Student s[5] = {
{"김ㅇㅇ", 100},
{"이ㅇㅇ", 90},
{"박ㅇㅇ", 80},
{"최ㅇㅇ", 70},
{"정ㅇㅇ", 60},
};
char found[20];
cin >> found;
bool Founded = false;
for (int i = 0; i < 5; i++) {
if (strcmp(found, s[i].name) == 0) {
cout <<s[i].score <<"점"<<endl;
Founded = true;
break;
}
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: