摘要: include include using namespace std; class DoubleStack { private: int* arr; // 共享的数组 int top1; // 栈1的栈顶指针 int top2; // 栈2的栈顶指针 int size; // 数组的总大小 pub 阅读全文
posted @ 2025-10-24 11:56 Cx330。 阅读(6) 评论(0) 推荐(0)
摘要: include include using namespace std; struct People{ int id; string name; char sex; int year; }; int main(){ People people[10]; for(int i=0;i<10;i++){ 阅读全文
posted @ 2025-10-24 11:54 Cx330。 阅读(5) 评论(0) 推荐(0)
摘要: include include using namespace std; struct Student{ int id; string name; int score; }; int main(){ Student student[100]; int n=0; while(cin>>student[ 阅读全文
posted @ 2025-10-24 11:54 Cx330。 阅读(4) 评论(0) 推荐(0)