文章目录

    • 总体思想
    • Student.h
    • Book.h
    • main.cpp

总体思想

用C++开发图书馆管理系统需要对学生和图书分别建立class,调用class中的方法实现学生登陆账号借书,还书,图书馆管理员查看信息等操作。

Student.h

#pragma once
#include<string>
#include<vector>
#include<iostream>
#include<fstream>
#include<sstream>
#include<string>
using namespace std;class Student
{
private:int id;                          //student's ID numberint year;                        //student's gradestring name;string password;string gender;string telephone;string address;                  //student's name, password, gender, telephone number and addressvector<int> book;vector<int> grade;               //student's books and their marks
public:Student();~Student();Student(int a, int b, string c, string d, string e, string f, string g);//constructorsint get_id();int get_year();string get_name();string get_pass();string get_gend();string get_tele();string get_addr();vector<int> get_book();          //get the variables of classvoid change(int a, int b, string c, string d, string e, string f, string g);//change the informationvoid display();                  //display the information on the screenint length();                    //get the number of all studentsbool canopen();                  //check whether the file 'student.txt' can be openedvoid write();                    //write the information current into file 'student.txt'void read(int n);                //read the information of the number n student from file 'student.txt'void write_book();               //write the books information of the student into file 'mybook.txt' void read_book();                //read the infomation of the student from file 'mybook.txt'void change_book(int a, int b);  //change the information of vector book and gradevoid add_book(int a);            //add a new bookvoid display_book();             //display the information of books on the screenvoid add_student();              //add a student into the file 'mybook.txt'void sub_student();              //subtract a student in the file 'mybook.txt'bool is_same_book(int a);        //check whether there exist a same book in the file 'mybook.txt'
};Student::Student()
{id = 0;year = 0;name = "not given";password = "not given";gender = "not given";telephone = "not given";address = "not given";             //define the default constructor
}Student::~Student() {}Student::Student(int a, int b, string c, string d, string e, string f, string g)
{id = a;year = b;name = c;password = d;gender = e;telephone = f;address = g;                       //define the normal constructor
}int Student::get_id()
{return id;
}int Student::get_year()
{return year;
}string Student::get_name()
{return name;
}string Student::get_pass()
{return password;
}string Student::get_gend()
{return gender;
}string Student::get_tele()
{return telephone;
}string Student::get_addr()
{return address;
}vector<int> Student::get_book()
{return book;
}void Student::change(int a, int b, string c, string d, string e, string f, string g)
{id = a;year = b;name = c;password = d;gender = e;telephone = f;address = g;
}void Student::display()
{cout << "Name:   " << name << endl;cout << "ID number:   " << id << endl;cout << "Grade:   " << year << endl;cout << "Gender:   " << gender << endl;cout << "Telephone:   " << telephone << endl;cout << "Address:   " << address << endl << endl;
}int Student::length()
{int i = 0;string temp;ifstream fin("student.txt");while (getline(fin, temp))i += 1;fin.close();return i;
}bool Student::canopen()
{ifstream fin1("student.txt");ifstream fin2("mybook.txt");if (fin1&&fin2)return 1;elsereturn 0;fin1.close();fin2.close();
}void Student::write()
{ofstream fout("student.txt", ios::app);fout << id << "\t" << year << "\t" << name << "\t" << password << "\t" << gender << "\t" << telephone << "\t" << address << endl;fout.close();
}void Student::read(int n)
{int i = 0;string temp, data[999], a[6];ifstream fin("student.txt");while (getline(fin, temp)){data[i] = temp;i += 1;}fin.close();istringstream stream(data[n]);for (i = 0; i < 6; i++){data[n].erase(0, data[n].find("\t") + 1);a[i] = data[n].substr(0, data[n].find("\t"));}name = a[1];password = a[2];gender = a[3];telephone = a[4];address = a[5];stream >> id >> year;
}void Student::write_book()
{int i, n, l = 0;string data[999], temp;ifstream fin("mybook.txt");while (getline(fin, temp)){data[l] = temp;l += 1;}fin.close();ofstream fout("mybook.txt");for (i = 0; i < l; i++){istringstream stream(data[i]);stream >> n;if (n == id){fout << id;for (int i = 0; i < book.size(); i++)fout << "\t" << book[i] << "\t" << grade[i];fout << endl;}elsefout << data[i] << endl;}fout.close();
}void Student::read_book()
{int i = 0, x, y, n;string data[999], temp;ifstream fin("mybook.txt");while (getline(fin, temp)){data[i] = temp;i += 1;}fin.close();for (i = 0; i < 999; i++){istringstream stream(data[i]);stream >> n;if (id == n)while (stream >> x >> y){book.push_back(x);grade.push_back(y);}}
}void Student::change_book(int a, int b)
{int i;for (i = 0; i < book.size(); i++)if (book[i] == a)grade[i] = b;
}void Student::add_book(int a)
{book.push_back(a);grade.push_back(-1);
}void Student::display_book()
{int i;for (i = 0; i < book.size(); i++){cout << book[i] << "\t\t";if (grade[i] == -1)cout << "None." << endl;elsecout << grade[i] << endl;}
}void Student::add_student()
{ofstream fout("mybook.txt", ios::app);fout << id << endl;fout.close();
}void Student::sub_student()
{int i = 0, n, m, l;string data[999], temp;ifstream fin("mybook.txt");while (getline(fin, temp)){data[i] = temp;i += 1;}fin.close();l = i;for (i = 0; i < l; i++){istringstream stream(data[i]);stream >> n;if (id == n)m = i;}ofstream fout("mybook.txt");for (i = 0; i < l; i++)if (i != m)fout << data[i] << endl;fout.close();
}bool Student::is_same_book(int a)
{int i;bool success = 0;for (i = 0; i < book.size(); i++)if (book[i] == a)success = 1;return success;
}

Book.h

#pragma once
#include<iostream>
#include<fstream>
#include<string>
#include<sstream>
using namespace std;class Book
{
private:int id;string name;string professor;                //the information of a bookint place;                       //left seatsint year;                        //available to which grades
public:Book();~Book();Book(int a, string b, string c, int d, int e);int get_id();string get_name();string get_prof();int get_place();int get_year();                  //get the variables of classvoid change(int a, string b, string c, int d, int e);//change the informationvoid display();                  //display the information on the screenint length();                    //get the number of all the Booksbool canopen();                  //check whether the file 'book.txt' can be openedvoid write();                    //write the information into the file 'book.txt'void read(int n);                //read the information of number n book form the file 'book.txt'
};Book::Book()
{name = "not given";id = 0;professor = "not given";place = 0;year = 0;                         //difine the default constructor
}Book::~Book() {}Book::Book(int a, string b, string c, int d, int e)
{id = a;name = b;professor = c;place = d;year = e;                         //define the normal constructor
}int Book::get_id()
{return id;
}
string Book::get_name()
{return name;
}
string Book::get_prof()
{return professor;
}
int Book::get_place()
{return place;
}
int Book::get_year()
{return year;
}void Book::change(int a, string b, string c, int d, int e)
{id = a;name = b;professor = c;place = d;year = e;
}void Book::display()
{cout << "Name:   " << name << endl;cout << "ID number:   " << id << endl;cout << "Professor:   " << professor << endl;cout << "Left seats:   " << place << endl;cout << "Available grade:   ";if (year > 0 && year < 5)cout << "year " << year;else if (year == 5)cout << "All of students.";elsecout << "error in data.";cout << endl << endl;
}int Book::length()
{int i = 0;string temp;ifstream fin("book.txt");while (getline(fin, temp))i += 1;fin.close();return i;
}bool Book::canopen()
{ifstream fin1("book.txt");if (fin1)return 1;elsereturn 0;fin1.close();
}void Book::write()
{ofstream fout("book.txt", ios::app);fout << id << "\t" << place << "\t" << year << "\t" << name << "\t" << professor << "\t" << endl;fout.close();
}void Book::read(int n)
{int i = 0;string temp, data[999], a[4];ifstream fin("book.txt");while (getline(fin, temp)){data[i] = temp;i += 1;}fin.close();istringstream stream(data[n]);for (i = 0; i < 4; i++){data[n].erase(0, data[n].find("\t") + 1);a[i] = data[n].substr(0, data[n].find("\t"));}name = a[2];professor = a[3];stream >> id >> place >> year;
}

main.cpp

#include<iostream>
#include<string>
#include<vector>
#include"Book.h"
#include"Student.h"
using namespace std;void initialize();
bool is_administrator();
bool is_student(int *n);
void menu1();
void menu2();
void menu3();
void wrong_input();
void mag_book();
void mag_student();
void show_book_list();
void show_student_list();
void give_mark();
void change_password();
void choose_book(int n);
void my_book(int n);
void check_info(int n);
void can_open(Book a);
void can_open(Student a);
bool is_same_student_name(string n);
bool is_same_student_tele(string n);
bool is_same_student_addr(string n);
bool is_same_book_name(string n);int main()
{int user;char choice;bool success = 0;initialize();do {menu1();cin >> choice;switch (choice){case'1':{if (is_administrator()) {do {menu2();cin >> choice;getchar();switch (choice){case'1':mag_book(); success = 0; break;case'2':mag_student(); success = 0; break;case'3':show_book_list(); success = 0; break;case'4':show_student_list(); success = 0; break;case'5':give_mark(); success = 0; break;case'6':change_password(); success = 0; break;case'9':success = 1; break;case'0':success = 1; break;default:wrong_input(); break;}} while (!success);}else{cout << "The password is incorrect." << endl;system("pause");}}break;case'2':{if (is_student(&user)){do {menu3();cin >> choice;switch (choice){case'1':choose_book(user); success = 0; break;case'2':my_book(user); success = 0; break;case'3':check_info(user); success = 0; break;case'9':success = 1; break;case'0':success = 1; break;default:wrong_input(); break;}} while (!success);}else{cout << "Your name or password is incorrect." << endl;system("pause");}}break;case'0':success = 1; break;default:wrong_input(); break;}} while (choice != '0');return 0;
}void initialize()
{ifstream infile1("book.txt");if (!infile1){ofstream outfile1("book.txt");outfile1.close();}infile1.close();ifstream infile2("student.txt");if (!infile2){ofstream outfile2("student.txt");outfile2.close();}infile2.close();ifstream infile3("password.txt");if (!infile3){ofstream outfile3("password.txt");outfile3 << "123";outfile3.close();}infile3.close();ifstream infile4("mybook.txt");if (!infile4){ofstream outfile4("mybook.txt");outfile4.close();}infile4.close();
}
bool is_administrator()
{string p1, p2;getchar();cout << "Please input the password:";getline(cin, p1);ifstream infile("password.txt");if (!infile){cout << endl << "Out of service" << endl;cout << "Please press enter to exit." << endl;system("pause");exit(0);}getline(infile, p2);infile.close();if (p1 == p2)return 1;elsereturn 0;
}
bool is_student(int *n)
{Student a[100];Student s;string p1, p2;int i;bool success = 0;getchar();cout << "Please input your name:";getline(cin, p1);cout << "Please input your password:";getline(cin, p2);can_open(s);for (i = 0; i < s.length(); i++){a[i].read(i);if (a[i].get_name() == p1 && a[i].get_pass() == p2){*n = i;success = 1;}}return success;
}
void menu1()
{system("cls");cout << endl << endl << endl;cout << "-------------------------------------------------------------------" << endl;cout << "                University Student Management System               " << endl << endl;cout << "      1.Administrator System." << endl << endl;cout << "      2.Student System." << endl << endl;cout << "      0.Exit." << endl;cout << "-------------------------------------------------------------------" << endl;cout << "Please input your choice:";
}
void menu2()
{system("cls");cout << endl << endl << endl;cout << "-------------------------------------------------------------------" << endl;cout << "                          Administrator System   " << endl << endl;cout << "      1.Book Management." << endl << endl;cout << "      2.Student Management." << endl << endl;cout << "      3.Show the Book List." << endl << endl;cout << "      4.Show the Student List." << endl << endl;cout << "      5.Give Marks to Students." << endl << endl;cout << "      6.Change Administrator Password." << endl << endl;cout << "      9.Return to the main menu." << endl << endl;cout << "      0.Exit." << endl;cout << "-------------------------------------------------------------------" << endl;cout << "Please input your choice:";
}
void menu3()
{system("cls");cout << endl << endl << endl;cout << "-------------------------------------------------------------------" << endl;cout << "                          Student System" << endl << endl;cout << "      1.Choose My Books" << endl << endl;cout << "      2.Check My Books and Grades" << endl << endl;cout << "      3.Check and Change My Infomation" << endl << endl;cout << "      9.Return to the main menu." << endl << endl;cout << "      0.Exit." << endl;cout << "-------------------------------------------------------------------" << endl;cout << "Please input your choice:";
}
void wrong_input()
{system("cls");cout << endl << endl << endl << endl << endl << endl;cout << "                        Wrong input! Please input again." << endl;system("pause");
}
void mag_book()
{int i, id, plac, year;char choice;bool success = 0, success2 = 0;string name, prof;Book a[50];Book c;do {fflush(stdin);system("cls");cout << endl << "                     Book Management" << endl << endl;cout << "Which operation do you want about the list of book?" << endl;cout << "1.Browse a book\n\n2.Add a book\n\n3.Modify a book\n\n4.Delete a book\n\n";cin >> choice;cout << "Please input the ID number of book:";cin >> id;getchar();can_open(c);if (choice == '1'){success2 = 1;fflush(stdin);for (i = 0; i < c.length(); i++)a[i].read(i);for (i = 0; i < c.length(); i++)if (id == a[i].get_id()){system("cls");a[i].display();success = 1;}if (!success)cout << "The book cannot be found.";}else if (choice == '2'){success2 = 1;fflush(stdin);for (i = 0; i < c.length(); i++){a[i].read(i);if (id == a[i].get_id())success = 1;}if (success)cout << "The book is exist";else{do {cout << "Please input the name of book:";getline(cin, name);} while (is_same_book_name(name));cout << "Please input the professor's name:";getline(cin, prof);cout << "Please input the maximum quota of people(connot change later):";cin >> plac;cout << "Which grades are available?" << endl << "1. year 1\n2. year 2\n3. year 3\n4. year 4\n5. all of students\n";cin >> year;c.change(id, name, prof, plac, year);c.write();system("cls");cout << "The book has been saved." << endl << endl;c.display();}}else if (choice == '3'){success2 = 1;fflush(stdin);int l, n;l = c.length();for (i = 0; i < l; i++){a[i].read(i);if (id == a[i].get_id()){n = i;success = 1;}}if (success){do {cout << "Please input the new name of book " << id << ":";getline(cin, name);} while (is_same_book_name(name));cout << "Please input the new professor's name of book " << id << ":";getline(cin, prof);cout << "Which grades are available?" << endl << "1. year 1\n2. year 2\n3. year 3\n4. year 4\n5. all of students\n";cin >> year;a[n].change(id, name, prof, a[n].get_place(), year);ofstream fout("book.txt");fout.close();for (i = 0; i < l; i++)a[i].write();system("cls");cout << "The book has been changed." << endl << endl;a[n].display();}elsecout << "The book " << id << " cannot be found.";}else if (choice == '4'){success2 = 1;fflush(stdin);int n, l = c.length();for (i = 0; i < l; i++){a[i].read(i);if (id == a[i].get_id()){n = i;success = 1;}}if (success){ofstream fout("book.txt");fout.close();for (i = 0; i < l - 1; i++)if (i != n)a[i].write();system("cls");cout << "The book has been deleted." << endl << endl;a[n].display();}elsecout << "The book " << id << " cannot be found.";}else{cout << "wrong input, please input again." << endl;system("pause");}} while (!success2);cout << endl;system("pause");
}
void mag_student()
{int i, id, year;char choice;bool success = 0, success2 = 0;string name, pass, gend, tele, addr;Student a[50];Student s;do {system("cls");cout << endl << "                     Student Management" << endl << endl;cout << "Which operation do you want about the list of student?" << endl;cout << "1.Browse a student\n2.Add a student\n3.Modify a student\n4.Delete a student\n";cin >> choice;cout << "Please input the ID number of student:";cin >> id;getchar();can_open(s);if (choice == '1'){success2 = 1;fflush(stdin);for (i = 0; i < s.length(); i++)a[i].read(i);for (i = 0; i < s.length(); i++)if (id == a[i].get_id()){system("cls");a[i].display();success = 1;}if (!success)cout << "The student cannot be found.";}else if (choice == '2'){success2 = 1;fflush(stdin);for (i = 0; i < s.length(); i++){a[i].read(i);if (id == a[i].get_id())success = 1;}if (success)cout << "The student is exist";else{do {cout << "Please input the name of student:";getline(cin, name);} while (is_same_student_name(name));cout << "Please input the password:";getline(cin, pass);do {cout << "What grade is the student in? (1-4)";cin >> year;} while (year < 1 || year>4);fflush(stdin);do {cout << "Please input the student's gender:" << endl << "Please enter 'male' or 'female'  :";getline(cin, gend);} while (!(gend == "male" || gend == "female"));do {cout << "Please input the telephone number:";getline(cin, tele);} while (is_same_student_tele(tele));do {cout << "Please input the address:";getline(cin, addr);} while (is_same_student_addr(addr));s.change(id, year, name, pass, gend, tele, addr);s.add_student();s.write();			system("cls");cout << "The information of student has been saved." << endl << endl;s.display();		}}else if (choice == '3'){success2 = 1;fflush(stdin);int l, n;l = s.length();for (i = 0; i < l; i++){a[i].read(i);if (id == a[i].get_id()){n = i;success = 1;}}if (success){do {cout << "Please input the new name of student " << id << ":";getline(cin, name);} while (is_same_student_name(name));pass = a[n].get_pass();do {cout << "What grade is the student in? (1-4)";cin >> year;} while (year < 1 || year>4);fflush(stdin);do {cout << "Please input the student's gender:" << endl << "Please enter 'male' or 'female'  :";getline(cin, gend);} while (!(gend == "male" || gend == "female"));do {cout << "Please input the new telephone number:";getline(cin, tele);} while (is_same_student_tele(tele));do {cout << "Please input the new address:";getline(cin, addr);} while (is_same_student_addr(addr));a[n].change(id, year, name, pass, gend, tele, addr);ofstream fout("student.txt");fout.close();for (i = 0; i < l; i++)a[i].write();system("cls");cout << "The student has been changed." << endl << endl;a[n].display();}elsecout << "The student " << id << " cannot be found.";}else if (choice == '4'){success2 = 1;fflush(stdin);int n, l = s.length();for (i = 0; i < l; i++){a[i].read(i);if (id == a[i].get_id()){n = i;success = 1;}}if (success){a[n].sub_student();ofstream fout("student.txt");fout.close();for (i = 0; i < l; i++)if (i != n)a[i].write();system("cls");cout << "The student has been deleted." << endl << endl;a[n].display();}elsecout << "The student " << id << " cannot be found.";}else{cout << "Wrong input, please input again." << endl;system("pause");}} while (!success2);cout << endl;system("pause");
}
void show_book_list()
{Book a[100];Book c;int i;system("cls");cout << endl << "                     Books List" << endl << endl;can_open(c);for (i = 0; i < c.length(); i++){a[i].read(i);a[i].display();}cout << endl;system("pause");
}
void show_student_list()
{Student a[100];Student s;int i;system("cls");cout << endl << "                     Students List" << endl << endl;can_open(s);for (i = 0; i < s.length(); i++){a[i].read(i);a[i].display();}cout << endl;system("pause");
}
void give_mark()
{int i, j, k = 0, id, temp;bool success = 0;vector<int> student, mark;Student a[999];Student s;Book b[999];Book c;system("cls");cout << endl << "                     Give Marks" << endl << endl;cout << "Please input the ID number of book:";cin >> id;for (i = 0; i < c.length(); i++){b[i].read(i);if (b[i].get_id() == id)success = 1;}if (!success)cout << "The book " << id << " is not exist." << endl;else{cout << "These student(s) are your student(s):";for (i = 0; i < s.length(); i++){a[i].read(i);a[i].read_book();for (j = 0; j < a[i].get_book().size(); j++)if (id == a[i].get_book()[j]){k += 1;cout << endl << k << ". " << a[i].get_name();student.push_back(i);break;}}cout << endl << "Please give marks;" << endl;for (i = 0; i < k; i++){cout << a[student[i]].get_name() << ":   ";cin >> temp;a[student[i]].change_book(id, temp);}for (i = 0; i < s.length(); i++)a[i].write_book();cout << endl << "Giving marks successfully!";}cout << endl;system("pause");
}
void change_password()
{string p1, p2, p3;system("cls");cout << endl << "                 Change Administrator Password." << endl << endl;cout << "Please input the password:";getline(cin, p1);ifstream infile("password.txt");if (!infile){cout << endl << "Out of service" << endl;cout << "Please press enter to exit." << endl;system("pause");exit(0);}getline(infile, p2);infile.close();if (p1 == p2){cout << "Please input the new password:";getline(cin, p3);ofstream outfile("password.txt");outfile << p3;outfile.close();cout << "The administrator password has been changed.";}elsecout << "Wrong password.";cout << endl;system("pause");
}
void choose_book(int n)
{int i, l, m, id;bool success = 0;bool can_choose[999];Student a[999];Student s;Book b[999];Book c;system("cls");cout << endl << "                     Choose My Books" << endl << endl;can_open(s);can_open(c);l = c.length();for (i = 0; i < s.length(); i++){a[i].read(i);a[i].read_book();}cout << "                                                   Welcome," << a[n].get_name() << endl << endl;for (i = 0; i < l; i++){b[i].read(i);if (((b[i].get_year() == a[n].get_year()) || b[i].get_year() == 5) && (b[i].get_place() > 0)){can_choose[i] = 1;cout << "Status:   Available" << endl;b[i].display();}else{can_choose[i] = 0;cout << "Status:   Unavailable" << endl;b[i].display();}}do {cout << "Please input the ID number of the book you want to choose:";cin >> id;success = 0;for (i = 0; i < l; i++)if (b[i].get_id() == id){m = i;success = 1;}} while (!success);system("cls");cout << endl << endl << endl;if (can_choose[m]){if (a[n].is_same_book(id))cout << "                  You have selected the book " << id << endl;else{b[m].change(b[m].get_id(), b[m].get_name(), b[m].get_prof(), b[m].get_place() - 1, b[m].get_year());ofstream outfile("book.txt");outfile.close();for (i = 0; i < l; i++)b[i].write();a[n].add_book(id);a[n].write_book();cout << "Here is the list of your books now:" << endl << endl << "ID\t\tGrade" << endl;a[n].display_book();}}elsecout << "               The book '" << b[m].get_name() << "' cannot be selected." << endl;system("pause");
}
void my_book(int n)
{int i, l;Student a[999];Student s;system("cls");cout << endl << "                     Check My Books ang Grades" << endl << endl;can_open(s);l = s.length();for (i = 0; i < l; i++)a[i].read(i);cout << "                                                        Welcome," << a[n].get_name() << endl << endl;a[n].read_book();cout << "Book ID\tGrade" << endl << endl;a[n].display_book();system("pause");
}
void check_info(int n)
{int i, l;char choice;bool success = 0;string tele, addr, pass;Student a[999];Student s;system("cls");cout << endl << "                     Check and Change My Information" << endl << endl;can_open(s);l = s.length();for (i = 0; i < l; i++)a[i].read(i);cout << "                                                              Welcome," << a[n].get_name() << endl << endl;a[n].display();cout << endl << "Enter 1: Change my information." << endl;cout << "Enter 2: Change my password." << endl;cout << "Enter else: Return to the student menu:";cin >> choice;getchar();if (choice == '1'){do {cout << "Please input the new telephone number:";getline(cin, tele);} while (is_same_student_tele(tele));do {cout << "Please input the new address:";getline(cin, addr);} while (is_same_student_addr(addr));a[n].change(a[n].get_id(), a[n].get_year(), a[n].get_name(), a[n].get_pass(), a[n].get_gend(), tele, addr);ofstream outfile("student.txt");outfile.close();for (i = 0; i < l; i++)a[i].write();cout << "The information has been changed:" << endl;a[n].display();system("pause");}else if (choice == '2'){cout << "Please input the new password.";getline(cin, pass);a[n].change(a[n].get_id(), a[n].get_year(), a[n].get_name(), pass, a[n].get_gend(), a[n].get_tele(), a[n].get_addr());ofstream outfile("student.txt");outfile.close();for (i = 0; i < l; i++)a[i].write();cout << "The password has been changed." << endl;system("pause");}
}
void can_open(Book a)
{if (!a.canopen()){cout << endl << "The file cannot open.";cout << endl << "You have to restart the program to repair the error.";cout << endl << "Press enter to exit." << endl;system("pause");exit(0);}
}
void can_open(Student a)
{if (!a.canopen()){cout << endl << "The file cannot open.";cout << endl << "You have to restart the program to repair the error.";cout << endl << "Press enter to exit." << endl;system("pause");exit(0);}
}
bool is_same_student_name(string n)
{int i;bool success = 0;Student a[999];Student s;for (i = 0; i < s.length(); i++){a[i].read(i);if (a[i].get_name() == n){cout << "There exist the same name." << endl;success = 1;}}return success;
}
bool is_same_student_tele(string n)
{int i;bool success = 0;Student a[999];Student s;for (i = 0; i < s.length(); i++){a[i].read(i);if (a[i].get_tele() == n){cout << "There exist the same telephone number." << endl;success = 1;}}return success;
}
bool is_same_student_addr(string n)
{int i;bool success = 0;Student a[999];Student s;for (i = 0; i < s.length(); i++){a[i].read(i);if (a[i].get_addr() == n){cout << "There exist the same address." << endl;success = 1;}}return success;
}
bool is_same_book_name(string n)
{int i;bool success = 0;Book a[999];Book c;for (i = 0; i < c.length(); i++){a[i].read(i);if (a[i].get_name() == n){cout << "There exist the same name." << endl;success = 1;}}return success;
}
查看全文
如若内容造成侵权/违法违规/事实不符,请联系编程学习网邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!

相关文章

  1. 视频教程-2019 react入门至高阶实战,含react hooks-ReactJS

    2019 react入门至高阶实战,含react hooks从事前端开发近5年时间,曾任职于丽珠集团等大型企业担任高级前端开发工程师职位,积累了很多大厂的前端开发经验。目前处于创业期,正在筹备自己的创业项目。技能方面主要擅长react技术栈,nodejs技术栈,graphql技术栈,以及docker,…...

    2024/4/17 2:44:18
  2. Android开发:设置圆形Button

    在drawable中创建layer-list,可命名文件如:button_circle_shape.xml(在操作中后缀.xml不用填)。以下案例中还添加了selector,当按钮被点击时,按钮边框由黑色变为红色,未处于点击状态时为黑色。在布局中可以这样引用:android:background="@drawable/button_circle_…...

    2024/4/28 20:27:27
  3. Embedding一下看清楚

    原因就是你没找到合适的教程。如果这篇你看不明白,关了,下一篇。 embedding层有什么用 首先,embedding是为了处理文字的理解。让机器能够理解一句话的意思: 灰白灰会挥发。一句话,6个字。 但是只有五种 白,灰,会,挥,发。 编码 我们需要将汉字表达成网络认识的数字,比…...

    2024/4/17 2:43:06
  4. LDAP系列五ldap参数解读

    1:slapd.conf配置文件重要参数说明(需要自己修改的,其他未提到的可以不修改):database bdb:定义使用的后端数据存储格式,数据库默认采用了berkeley db,其后可以跟的值有bdb、ldbm、passwd、shell。bdb指使用Berkley DB 4数据库suffix "dc=163,dc=com":suffi…...

    2024/3/31 21:33:09
  5. ReactJS全讲-王光荣-专题视频课程

    ReactJS全讲—2718人已学习 课程介绍 本课程力求全面讲解所有的ReactJS内容,讲解过程中每个知识点都会有1到多个示例. 课程内容组织形式是在我个人教学经验上精心设计的,希望大家享受学过的过程.课程收益 全面掌握ReacJS技术并用于WEB前端开发中, 掌握与服务器端的交…...

    2024/3/31 21:33:06
  6. ldap服务器是什么

    LDAP服务器简单来说它是一种得到某些数据的快捷方式,同时LDAP服务器也是一个协议,它经常被用作集体的地址本使用,甚至可以做到更加庞大。它是一种特殊的数据库,与一般的数据库相比有很大的差距,LDAP服务器的读性与一般服务器相比更加优秀。同时LDAP服务器在查询上总了很多…...

    2024/5/1 5:25:56
  7. 使用Android Studio 开发地图案例之二(展示普通图、卫星图、交通流量图和百度城市热力图)

    1.效果如下代码下载(https://download.csdn.net/download/qq_38382267/10442801)2.百度地图申请开发密钥请看上一篇基础运行案例https://blog.csdn.net/qq_38382267/article/details/804831823.案例布局如下所示<LinearLayout xmlns:android="http://schemas.android…...

    2024/5/3 7:17:57
  8. embedding

    嵌入(embedding)层的理解...

    2024/4/20 21:27:47
  9. 关于结构体的图书管理系统

    声明这一部分有一些也是参考了一些网上的代码,但思路和主要都是自己写的。#include<stdio.h>#include<string.h>#include<stdlib.h>#include<conio.h>#define N 80int j=0;struct tushu{ char name[80],author[80],haoma[80],chuban[80],day[80],hao[…...

    2024/4/17 2:44:12
  10. 视频教程-react电影院在线选座功能-ReactJS

    react电影院在线选座功能北京八维研修学院技术工程师,5年大型项目实战开发经验,3年授课经验。孟宪杰29.00立即订阅订阅后:请点击此处观看视频课程 视频教程-react电影院在线选座功能-ReactJS学习有效期:永久观看学习时长:82分钟学习计划:2天难度:中 「口碑讲师带队学习,…...

    2024/4/17 2:44:18
  11. Spring Boot中使用LDAP来统一管理用户信息

    很多时候,我们在构建系统的时候都会自己创建用户管理体系,这对于开发人员来说并不是什么难事,但是当我们需要维护多个不同系统并且相同用户跨系统使用的情况下,如果每个系统维护自己的用户信息,那么此时用户信息的同步就会变的比较麻烦,对于用户自身来说也会非常困扰,很…...

    2024/4/11 14:05:12
  12. 共推LAMP商业计划

    10月23日,LAMP开源实务应用高峰论坛在北京举行,宣布了一项共推LAMP的商业软件计划。 LAMP原本是一个开源平台,但可用于商业目的。按照“维基(Wiki)百科全书”的定义,商业软件的目的在于提高生产效率。当今,电子商务主要是Web应用,在这方面,LAMP的最大优势就是“简单性…...

    2024/4/17 2:43:54
  13. Embedding 意义

    https://www.faxiang.site/ 转近年来,从计算机视觉到自然语言处理再到时间序列预测,神经网络、深度学习的应用越来越广泛。在深度学习的应用过程中,Embedding 这样一种将离散变量转变为连续向量的方式为神经网络在各方面的应用带来了极大的扩展。该技术目前主要有两种应用…...

    2024/4/25 0:21:20
  14. 图书管理系统截图

    ...

    2024/4/17 2:44:12
  15. ReactJS 快速入门 3 高级特性

    ReactJS 快速入门 3 高级特性一. 容器组件React元素也可以包含其他的子元素,这意味着响应的React组件是一个 容器组件。比如: //JSX<EzPanel title="title"> this is demo content </EzPanel>上例中的EzPanel声明了一个面板组件,而面板的内容在定义…...

    2024/4/17 2:44:06
  16. 深度学习中embedding层的理解

    最近在看深度学习中embedding的内容,把自己看过比较好的相关博客总结收录如下:(1)深度学习中Embedding层有什么用?地址:https://blog.csdn.net/u010412858/article/details/77848878(2)英文版介绍Embedding层作用:https://medium.com/towards-data-science/deep-learn…...

    2024/4/17 2:44:24
  17. 图书馆管理系统(连接数据库)

    问题描述 编写一个简单的图书管理子系统。图书馆中需要存储书名,编号,作者、出版社,图书类型、存放位置、同名图书的存放位置等信息。需要存储对应的学生或教师的基本信息,可以用学号和工号来借阅图书。 基本要求 程序应提供的基本管理功能有: 1)添加:即增加同名书的记录…...

    2024/5/3 5:25:38
  18. Android开发项目经验

    1.是不是应该把数据刷新操作放在onResume()中? @Override public void onResume() { super.onResume(); refresh(); } public void refresh(){ initData(); } 这样不合适,在什么时候刷新是根据需要来的,并不是每次onResume()的时候都需要…...

    2024/3/31 21:33:01
  19. Ubuntu12.04+OpenERP7.0安装笔记

    不经意的一次看到OpenERP这个开源ERP,就被其丰富的功能,简洁的画面,熟悉的语言所吸引。迫不及待的多方查询资料,自己架设一个测试环境来进行了解。以下为测试安装时候的步骤说明,以备查询,并供有需要的人参考。 1.我是在虚拟机中安装测试环境,虚拟机用的是VirtualBox。 …...

    2024/4/17 2:44:48
  20. 深度学习:词嵌入Embedding

    http://blog.csdn.net/pipisorry/article/details/76095118词嵌入词嵌入其实就是将数据的原始表示表示成模型可处理的或者是更dense的低维表示(lz)。One-hot Embedding假设一共有个物体,每个物体有自己唯一的id,那么从物体的集合到有一个trivial的嵌入,就是把它映射到中的…...

    2024/4/17 2:44:54

最新文章

  1. Apache Dubbo知识点表格总结

    Dubbo是一个高性能的Java RPC框架&#xff0c;它提供了一系列的功能来支持分布式系统的开发。通常用于微服务之间的服务调用&#xff0c;顺便提一下也是用于微服务之间调用的OpenFeign&#xff0c;OpenFeign是Spring Cloud体系中的一个声明式HTTP客户端&#xff0c;用于简化HTT…...

    2024/5/4 0:13:58
  2. 梯度消失和梯度爆炸的一些处理方法

    在这里是记录一下梯度消失或梯度爆炸的一些处理技巧。全当学习总结了如有错误还请留言&#xff0c;在此感激不尽。 权重和梯度的更新公式如下&#xff1a; w w − η ⋅ ∇ w w w - \eta \cdot \nabla w ww−η⋅∇w 个人通俗的理解梯度消失就是网络模型在反向求导的时候出…...

    2024/3/20 10:50:27
  3. pyside6的QSpinBox自定义特性初步研究(二)

    当前的需求是&#xff0c;蓝色背景的画面&#xff0c;需要一个相对应色系的QSpinBox部件。已有的部件风格是这样的&#xff0c;需要新的部件与之般配。 首先新建一个QDoubleSpinBox&#xff0c;并定义其背景色和边框&#xff1a; QDoubleSpinBox { color: white; border:1px…...

    2024/4/30 6:11:48
  4. STM32实现软件SPI对W25Q64内存芯片实现读写操作

    先看看本次实验的成果吧&#xff1a; 这么简单的一个程序&#xff0c;我学习了一个星期左右&#xff0c;终于把所有的关节都打通了。所有代码都能什么都不看背着敲出来了。为了使自己的记忆更为清晰&#xff0c;特意总结了一个思维导图&#xff0c;感觉自己即便是日后忘记了看一…...

    2024/5/1 12:08:49
  5. 微信小程序的页面交互2

    一、自定义属性 &#xff08;1&#xff09;定义&#xff1a; 微信小程序中的自定义属性实际上是由data-前缀加上一个自定义属性名组成。 &#xff08;2&#xff09;如何获取自定义属性的值&#xff1f; 用到target或currentTarget对象的dataset属性可以获取数据 &#xff…...

    2024/5/1 13:38:59
  6. 【外汇早评】美通胀数据走低,美元调整

    原标题:【外汇早评】美通胀数据走低,美元调整昨日美国方面公布了新一期的核心PCE物价指数数据,同比增长1.6%,低于前值和预期值的1.7%,距离美联储的通胀目标2%继续走低,通胀压力较低,且此前美国一季度GDP初值中的消费部分下滑明显,因此市场对美联储后续更可能降息的政策…...

    2024/5/1 17:30:59
  7. 【原油贵金属周评】原油多头拥挤,价格调整

    原标题:【原油贵金属周评】原油多头拥挤,价格调整本周国际劳动节,我们喜迎四天假期,但是整个金融市场确实流动性充沛,大事频发,各个商品波动剧烈。美国方面,在本周四凌晨公布5月份的利率决议和新闻发布会,维持联邦基金利率在2.25%-2.50%不变,符合市场预期。同时美联储…...

    2024/5/2 16:16:39
  8. 【外汇周评】靓丽非农不及疲软通胀影响

    原标题:【外汇周评】靓丽非农不及疲软通胀影响在刚结束的周五,美国方面公布了新一期的非农就业数据,大幅好于前值和预期,新增就业重新回到20万以上。具体数据: 美国4月非农就业人口变动 26.3万人,预期 19万人,前值 19.6万人。 美国4月失业率 3.6%,预期 3.8%,前值 3…...

    2024/4/29 2:29:43
  9. 【原油贵金属早评】库存继续增加,油价收跌

    原标题:【原油贵金属早评】库存继续增加,油价收跌周三清晨公布美国当周API原油库存数据,上周原油库存增加281万桶至4.692亿桶,增幅超过预期的74.4万桶。且有消息人士称,沙特阿美据悉将于6月向亚洲炼油厂额外出售更多原油,印度炼油商预计将每日获得至多20万桶的额外原油供…...

    2024/5/3 23:10:03
  10. 【外汇早评】日本央行会议纪要不改日元强势

    原标题:【外汇早评】日本央行会议纪要不改日元强势近两日日元大幅走强与近期市场风险情绪上升,避险资金回流日元有关,也与前一段时间的美日贸易谈判给日本缓冲期,日本方面对汇率问题也避免继续贬值有关。虽然今日早间日本央行公布的利率会议纪要仍然是支持宽松政策,但这符…...

    2024/4/27 17:58:04
  11. 【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响

    原标题:【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响近日伊朗局势升温,导致市场担忧影响原油供给,油价试图反弹。此时OPEC表态稳定市场。据消息人士透露,沙特6月石油出口料将低于700万桶/日,沙特已经收到石油消费国提出的6月份扩大出口的“适度要求”,沙特将满…...

    2024/4/27 14:22:49
  12. 【外汇早评】美欲与伊朗重谈协议

    原标题:【外汇早评】美欲与伊朗重谈协议美国对伊朗的制裁遭到伊朗的抗议,昨日伊朗方面提出将部分退出伊核协议。而此行为又遭到欧洲方面对伊朗的谴责和警告,伊朗外长昨日回应称,欧洲国家履行它们的义务,伊核协议就能保证存续。据传闻伊朗的导弹已经对准了以色列和美国的航…...

    2024/4/28 1:28:33
  13. 【原油贵金属早评】波动率飙升,市场情绪动荡

    原标题:【原油贵金属早评】波动率飙升,市场情绪动荡因中美贸易谈判不安情绪影响,金融市场各资产品种出现明显的波动。随着美国与中方开启第十一轮谈判之际,美国按照既定计划向中国2000亿商品征收25%的关税,市场情绪有所平复,已经开始接受这一事实。虽然波动率-恐慌指数VI…...

    2024/4/30 9:43:09
  14. 【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试

    原标题:【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试美国和伊朗的局势继续升温,市场风险情绪上升,避险黄金有向上突破阻力的迹象。原油方面稍显平稳,近期美国和OPEC加大供给及市场需求回落的影响,伊朗局势并未推升油价走强。近期中美贸易谈判摩擦再度升级,美国对中…...

    2024/4/27 17:59:30
  15. 【原油贵金属早评】市场情绪继续恶化,黄金上破

    原标题:【原油贵金属早评】市场情绪继续恶化,黄金上破周初中国针对于美国加征关税的进行的反制措施引发市场情绪的大幅波动,人民币汇率出现大幅的贬值动能,金融市场受到非常明显的冲击。尤其是波动率起来之后,对于股市的表现尤其不安。隔夜美国股市出现明显的下行走势,这…...

    2024/5/2 15:04:34
  16. 【外汇早评】美伊僵持,风险情绪继续升温

    原标题:【外汇早评】美伊僵持,风险情绪继续升温昨日沙特两艘油轮再次发生爆炸事件,导致波斯湾局势进一步恶化,市场担忧美伊可能会出现摩擦生火,避险品种获得支撑,黄金和日元大幅走强。美指受中美贸易问题影响而在低位震荡。继5月12日,四艘商船在阿联酋领海附近的阿曼湾、…...

    2024/4/28 1:34:08
  17. 【原油贵金属早评】贸易冲突导致需求低迷,油价弱势

    原标题:【原油贵金属早评】贸易冲突导致需求低迷,油价弱势近日虽然伊朗局势升温,中东地区几起油船被袭击事件影响,但油价并未走高,而是出于调整结构中。由于市场预期局势失控的可能性较低,而中美贸易问题导致的全球经济衰退风险更大,需求会持续低迷,因此油价调整压力较…...

    2024/4/26 19:03:37
  18. 氧生福地 玩美北湖(上)——为时光守候两千年

    原标题:氧生福地 玩美北湖(上)——为时光守候两千年一次说走就走的旅行,只有一张高铁票的距离~ 所以,湖南郴州,我来了~ 从广州南站出发,一个半小时就到达郴州西站了。在动车上,同时改票的南风兄和我居然被分到了一个车厢,所以一路非常愉快地聊了过来。 挺好,最起…...

    2024/4/29 20:46:55
  19. 氧生福地 玩美北湖(中)——永春梯田里的美与鲜

    原标题:氧生福地 玩美北湖(中)——永春梯田里的美与鲜一觉醒来,因为大家太爱“美”照,在柳毅山庄去寻找龙女而错过了早餐时间。近十点,向导坏坏还是带着饥肠辘辘的我们去吃郴州最富有盛名的“鱼头粉”。说这是“十二分推荐”,到郴州必吃的美食之一。 哇塞!那个味美香甜…...

    2024/4/30 22:21:04
  20. 氧生福地 玩美北湖(下)——奔跑吧骚年!

    原标题:氧生福地 玩美北湖(下)——奔跑吧骚年!让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 啊……啊……啊 两…...

    2024/5/1 4:32:01
  21. 扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!

    原标题:扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!扒开伪装医用面膜,翻六倍价格宰客!当行业里的某一品项火爆了,就会有很多商家蹭热度,装逼忽悠,最近火爆朋友圈的医用面膜,被沾上了污点,到底怎么回事呢? “比普通面膜安全、效果好!痘痘、痘印、敏感肌都能用…...

    2024/4/27 23:24:42
  22. 「发现」铁皮石斛仙草之神奇功效用于医用面膜

    原标题:「发现」铁皮石斛仙草之神奇功效用于医用面膜丽彦妆铁皮石斛医用面膜|石斛多糖无菌修护补水贴19大优势: 1、铁皮石斛:自唐宋以来,一直被列为皇室贡品,铁皮石斛生于海拔1600米的悬崖峭壁之上,繁殖力差,产量极低,所以古代仅供皇室、贵族享用 2、铁皮石斛自古民间…...

    2024/4/28 5:48:52
  23. 丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者

    原标题:丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者【公司简介】 广州华彬企业隶属香港华彬集团有限公司,专注美业21年,其旗下品牌: 「圣茵美」私密荷尔蒙抗衰,产后修复 「圣仪轩」私密荷尔蒙抗衰,产后修复 「花茵莳」私密荷尔蒙抗衰,产后修复 「丽彦妆」专注医学护…...

    2024/4/30 9:42:22
  24. 广州械字号面膜生产厂家OEM/ODM4项须知!

    原标题:广州械字号面膜生产厂家OEM/ODM4项须知!广州械字号面膜生产厂家OEM/ODM流程及注意事项解读: 械字号医用面膜,其实在我国并没有严格的定义,通常我们说的医美面膜指的应该是一种「医用敷料」,也就是说,医用面膜其实算作「医疗器械」的一种,又称「医用冷敷贴」。 …...

    2024/5/2 9:07:46
  25. 械字号医用眼膜缓解用眼过度到底有无作用?

    原标题:械字号医用眼膜缓解用眼过度到底有无作用?医用眼膜/械字号眼膜/医用冷敷眼贴 凝胶层为亲水高分子材料,含70%以上的水分。体表皮肤温度传导到本产品的凝胶层,热量被凝胶内水分子吸收,通过水分的蒸发带走大量的热量,可迅速地降低体表皮肤局部温度,减轻局部皮肤的灼…...

    2024/4/30 9:42:49
  26. 配置失败还原请勿关闭计算机,电脑开机屏幕上面显示,配置失败还原更改 请勿关闭计算机 开不了机 这个问题怎么办...

    解析如下&#xff1a;1、长按电脑电源键直至关机&#xff0c;然后再按一次电源健重启电脑&#xff0c;按F8健进入安全模式2、安全模式下进入Windows系统桌面后&#xff0c;按住“winR”打开运行窗口&#xff0c;输入“services.msc”打开服务设置3、在服务界面&#xff0c;选中…...

    2022/11/19 21:17:18
  27. 错误使用 reshape要执行 RESHAPE,请勿更改元素数目。

    %读入6幅图像&#xff08;每一幅图像的大小是564*564&#xff09; f1 imread(WashingtonDC_Band1_564.tif); subplot(3,2,1),imshow(f1); f2 imread(WashingtonDC_Band2_564.tif); subplot(3,2,2),imshow(f2); f3 imread(WashingtonDC_Band3_564.tif); subplot(3,2,3),imsho…...

    2022/11/19 21:17:16
  28. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机...

    win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”问题的解决方法在win7系统关机时如果有升级系统的或者其他需要会直接进入一个 等待界面&#xff0c;在等待界面中我们需要等待操作结束才能关机&#xff0c;虽然这比较麻烦&#xff0c;但是对系统进行配置和升级…...

    2022/11/19 21:17:15
  29. 台式电脑显示配置100%请勿关闭计算机,“准备配置windows 请勿关闭计算机”的解决方法...

    有不少用户在重装Win7系统或更新系统后会遇到“准备配置windows&#xff0c;请勿关闭计算机”的提示&#xff0c;要过很久才能进入系统&#xff0c;有的用户甚至几个小时也无法进入&#xff0c;下面就教大家这个问题的解决方法。第一种方法&#xff1a;我们首先在左下角的“开始…...

    2022/11/19 21:17:14
  30. win7 正在配置 请勿关闭计算机,怎么办Win7开机显示正在配置Windows Update请勿关机...

    置信有很多用户都跟小编一样遇到过这样的问题&#xff0c;电脑时发现开机屏幕显现“正在配置Windows Update&#xff0c;请勿关机”(如下图所示)&#xff0c;而且还需求等大约5分钟才干进入系统。这是怎样回事呢&#xff1f;一切都是正常操作的&#xff0c;为什么开时机呈现“正…...

    2022/11/19 21:17:13
  31. 准备配置windows 请勿关闭计算机 蓝屏,Win7开机总是出现提示“配置Windows请勿关机”...

    Win7系统开机启动时总是出现“配置Windows请勿关机”的提示&#xff0c;没过几秒后电脑自动重启&#xff0c;每次开机都这样无法进入系统&#xff0c;此时碰到这种现象的用户就可以使用以下5种方法解决问题。方法一&#xff1a;开机按下F8&#xff0c;在出现的Windows高级启动选…...

    2022/11/19 21:17:12
  32. 准备windows请勿关闭计算机要多久,windows10系统提示正在准备windows请勿关闭计算机怎么办...

    有不少windows10系统用户反映说碰到这样一个情况&#xff0c;就是电脑提示正在准备windows请勿关闭计算机&#xff0c;碰到这样的问题该怎么解决呢&#xff0c;现在小编就给大家分享一下windows10系统提示正在准备windows请勿关闭计算机的具体第一种方法&#xff1a;1、2、依次…...

    2022/11/19 21:17:11
  33. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”的解决方法...

    今天和大家分享一下win7系统重装了Win7旗舰版系统后&#xff0c;每次关机的时候桌面上都会显示一个“配置Windows Update的界面&#xff0c;提示请勿关闭计算机”&#xff0c;每次停留好几分钟才能正常关机&#xff0c;导致什么情况引起的呢&#xff1f;出现配置Windows Update…...

    2022/11/19 21:17:10
  34. 电脑桌面一直是清理请关闭计算机,windows7一直卡在清理 请勿关闭计算机-win7清理请勿关机,win7配置更新35%不动...

    只能是等着&#xff0c;别无他法。说是卡着如果你看硬盘灯应该在读写。如果从 Win 10 无法正常回滚&#xff0c;只能是考虑备份数据后重装系统了。解决来方案一&#xff1a;管理员运行cmd&#xff1a;net stop WuAuServcd %windir%ren SoftwareDistribution SDoldnet start WuA…...

    2022/11/19 21:17:09
  35. 计算机配置更新不起,电脑提示“配置Windows Update请勿关闭计算机”怎么办?

    原标题&#xff1a;电脑提示“配置Windows Update请勿关闭计算机”怎么办&#xff1f;win7系统中在开机与关闭的时候总是显示“配置windows update请勿关闭计算机”相信有不少朋友都曾遇到过一次两次还能忍但经常遇到就叫人感到心烦了遇到这种问题怎么办呢&#xff1f;一般的方…...

    2022/11/19 21:17:08
  36. 计算机正在配置无法关机,关机提示 windows7 正在配置windows 请勿关闭计算机 ,然后等了一晚上也没有关掉。现在电脑无法正常关机...

    关机提示 windows7 正在配置windows 请勿关闭计算机 &#xff0c;然后等了一晚上也没有关掉。现在电脑无法正常关机以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;关机提示 windows7 正在配…...

    2022/11/19 21:17:05
  37. 钉钉提示请勿通过开发者调试模式_钉钉请勿通过开发者调试模式是真的吗好不好用...

    钉钉请勿通过开发者调试模式是真的吗好不好用 更新时间:2020-04-20 22:24:19 浏览次数:729次 区域: 南阳 > 卧龙 列举网提醒您:为保障您的权益,请不要提前支付任何费用! 虚拟位置外设器!!轨迹模拟&虚拟位置外设神器 专业用于:钉钉,外勤365,红圈通,企业微信和…...

    2022/11/19 21:17:05
  38. 配置失败还原请勿关闭计算机怎么办,win7系统出现“配置windows update失败 还原更改 请勿关闭计算机”,长时间没反应,无法进入系统的解决方案...

    前几天班里有位学生电脑(windows 7系统)出问题了&#xff0c;具体表现是开机时一直停留在“配置windows update失败 还原更改 请勿关闭计算机”这个界面&#xff0c;长时间没反应&#xff0c;无法进入系统。这个问题原来帮其他同学也解决过&#xff0c;网上搜了不少资料&#x…...

    2022/11/19 21:17:04
  39. 一个电脑无法关闭计算机你应该怎么办,电脑显示“清理请勿关闭计算机”怎么办?...

    本文为你提供了3个有效解决电脑显示“清理请勿关闭计算机”问题的方法&#xff0c;并在最后教给你1种保护系统安全的好方法&#xff0c;一起来看看&#xff01;电脑出现“清理请勿关闭计算机”在Windows 7(SP1)和Windows Server 2008 R2 SP1中&#xff0c;添加了1个新功能在“磁…...

    2022/11/19 21:17:03
  40. 请勿关闭计算机还原更改要多久,电脑显示:配置windows更新失败,正在还原更改,请勿关闭计算机怎么办...

    许多用户在长期不使用电脑的时候&#xff0c;开启电脑发现电脑显示&#xff1a;配置windows更新失败&#xff0c;正在还原更改&#xff0c;请勿关闭计算机。。.这要怎么办呢&#xff1f;下面小编就带着大家一起看看吧&#xff01;如果能够正常进入系统&#xff0c;建议您暂时移…...

    2022/11/19 21:17:02
  41. 还原更改请勿关闭计算机 要多久,配置windows update失败 还原更改 请勿关闭计算机,电脑开机后一直显示以...

    配置windows update失败 还原更改 请勿关闭计算机&#xff0c;电脑开机后一直显示以以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;配置windows update失败 还原更改 请勿关闭计算机&#x…...

    2022/11/19 21:17:01
  42. 电脑配置中请勿关闭计算机怎么办,准备配置windows请勿关闭计算机一直显示怎么办【图解】...

    不知道大家有没有遇到过这样的一个问题&#xff0c;就是我们的win7系统在关机的时候&#xff0c;总是喜欢显示“准备配置windows&#xff0c;请勿关机”这样的一个页面&#xff0c;没有什么大碍&#xff0c;但是如果一直等着的话就要两个小时甚至更久都关不了机&#xff0c;非常…...

    2022/11/19 21:17:00
  43. 正在准备配置请勿关闭计算机,正在准备配置windows请勿关闭计算机时间长了解决教程...

    当电脑出现正在准备配置windows请勿关闭计算机时&#xff0c;一般是您正对windows进行升级&#xff0c;但是这个要是长时间没有反应&#xff0c;我们不能再傻等下去了。可能是电脑出了别的问题了&#xff0c;来看看教程的说法。正在准备配置windows请勿关闭计算机时间长了方法一…...

    2022/11/19 21:16:59
  44. 配置失败还原请勿关闭计算机,配置Windows Update失败,还原更改请勿关闭计算机...

    我们使用电脑的过程中有时会遇到这种情况&#xff0c;当我们打开电脑之后&#xff0c;发现一直停留在一个界面&#xff1a;“配置Windows Update失败&#xff0c;还原更改请勿关闭计算机”&#xff0c;等了许久还是无法进入系统。如果我们遇到此类问题应该如何解决呢&#xff0…...

    2022/11/19 21:16:58
  45. 如何在iPhone上关闭“请勿打扰”

    Apple’s “Do Not Disturb While Driving” is a potentially lifesaving iPhone feature, but it doesn’t always turn on automatically at the appropriate time. For example, you might be a passenger in a moving car, but your iPhone may think you’re the one dri…...

    2022/11/19 21:16:57