代码
文章平均质量分 50
叙蓝13
这个作者很懒,什么都没留下…
展开
-
迷宫问题 栈解决
#include<iostream>using namespace std;struct zhan { int size; int* top; int* base;};int main(){ zhan mg; mg.base = new int[50]; mg.size = 50; mg.top = mg.base; int k = 0;int f = 0; int i = 1, j = 1; int ...原创 2022-03-30 19:46:03 · 60 阅读 · 0 评论 -
任意俩矩阵相乘
#include<iostream>using namespace std;int main(){ int shu1, shu2; cout << "输入矩阵一的横数" << endl; cin >> shu1; cout << "输入矩阵一的列数" << endl; cin >> shu2; int a[10][10]; for (int i =...原创 2022-02-27 01:01:44 · 286 阅读 · 0 评论 -
c++信息管理系统(仅存放姓名和电话)
#include <iostream>#include<string>using namespace std;struct lxr { string name; string tel;};struct book{ int num; lxr arr[100];};void jia(book* ren){ cout << "请输入姓名" << endl; string name; c...原创 2022-01-28 13:30:21 · 717 阅读 · 0 评论