#include <bits/stdc++.h>
using namespace std;
struct User {
string name;
string Incode;
string Nation;
long long Bornyear;
}UID;
struct Datebase {
string UID_name, UID_Incode, UID_Nation, UID_Bornyear;
}UD;
struct SI {
string name, Incode;
}SIU;
struct Addfriend {
string UID_name, UID_Nation, UID_Bornyear;
}AF;
struct Tabfriend {
string UID_name, UID_Nation, UID_Bornyear;
}TF;
long long Ucnt = 1, TFCnt = 1;
void signup() {
cin >> UID.name >> UID.Incode >> UID.Nation >> UID.Bornyear;
UD[Ucnt].UID_name = UID.name;
UD[Ucnt].UID_Incode = UID.Incode;
UD[Ucnt].UID_Nation = UID.Nation;
UD[Ucnt].UID_Bornyear = UID.Bornyear;
Ucnt++;
}
void signin() {
cin >> SIU.name >> SIU.Incode;
for (long long i = 1; i <= Ucnt; i++) {
if (SIU.name == UD[i].UID_name && SIU.Incode == UD[i].UID_Incode) {
cout << "WELCOME" << endl;
return;
}
}
cout << "PLEASE TRY AGAIN" << endl;
}
void add() {
cin >> AF.UID_Nation;
for (long long i = 1; i <= Ucnt; i++) {
if (UD[i].UID_Nation == AF.UID_Nation) {
cin >> AF.UID_name;
if (UD[i].UID_name == AF.UID_name) {
cin >> AF.UID_Bornyear;
if (UD[i].UID_Bornyear == AF.UID_Bornyear) {
cout << "FOUND:" << endl;
cout << UD[i].UID_name << " " << UD[i].UID_Bornyear << endl;
TF[TFCnt].UID_name = UD[i].UID_name;
TF[TFCnt].UID_Nation = UD[i].UID_Nation;
TF[TFCnt].UID_Bornyear = UD[i].UID_Nation;
TFCnt++;
return;
}
}
}
}
cout << "NO FOUND" << endl;
}
void PrintTabfriend() {
for (long long i = 1; i <= TFCnt; i++) {
cout << TF[i].UID_name << " " << TF[i].UID_Nation << " " << TF[i].UID_Bornyear << endl;
}
}
int main() {
return 0;
}
看一下这段代码有什么语法错误,谢谢!!!