数据结构
Only*
这个作者很懒,什么都没留下…
展开
-
C++中读取带空格的字符串
C++中读取带空格的字符串原创 2024-07-03 18:28:34 · 196 阅读 · 0 评论 -
最长公共子序列
#include<iostream>using namespace std;void SSEQ(char *str1, char *str2, int n, int m, int f[][100], int len[][100]);void printf(char *str1, int f[][100], int n, int m);void main(){ char st...原创 2019-11-18 17:16:19 · 153 阅读 · 0 评论 -
动态申请二维数组空间(指针知识点有待深入学习)
#include <iostream>using namespace std;int main(){ int n,m; cin>>n>>m;//--------------------------------//动态申请二维数组空间 int **a = new int*[n]; for(int i = 0; i <...原创 2019-11-24 12:54:16 · 210 阅读 · 0 评论 -
矩阵连乘
#include<iostream>#include<iomanip>using namespace std;struct node{ int i,j;};void MatrixChain(node A[], int m, int **ms);void print1(int **ms, int m);///最优值及其最优断开位置数组输出函数void ...原创 2019-11-24 12:23:25 · 95 阅读 · 1 评论