Код: Выделить всё
#include
#include
using namespace std;
struct Account {
string username;
string password;
};
struct Schedule{
char place[100];
char time[100];
};
bool validatePassword(const string& password) {
const regex pattern("^(?=.*[A-Za-z])(?=.*\\d)(?=.*[@$!%*?&])[A-Za-z\\d@$!%*?&]{8,}$");
return regex_match(password, pattern);
}
void createAccount() {
Account newAccount;
string password;
// Get user input for username
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78164428/does-anyone-know-how-to-fix-error-expected-primary-expression-before-toke[/url]