摘要: 代码: #include <iostream>#include <stack>using namespace std; int g_a_r_l_e(stack<int>&stackdata)//取栈顶元素并在栈中将其删除; //注意这里转引用,如果不传引用每次递归会传入不同的stack,这样会出现错 阅读全文
posted @ 2020-07-25 19:53 诗和远方* 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 代码: #include <iostream>#include <stack># include <string>#include <stdexcept> using namespace std; class My_Queue{public: My_Queue(){}; ~My_Queue(){}; 阅读全文
posted @ 2020-07-25 12:43 诗和远方* 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 参考博文:https://www.cnblogs.com/bpf-1024/p/11597000.html 这里贴出笔者根据自己的环境下配置好的tasks.json,launch.json,c_cpp_properties.json文件可以对比着设置各项参数,如果只设置好tasks.json和lau 阅读全文
posted @ 2020-07-25 00:58 诗和远方* 阅读(523) 评论(0) 推荐(0) 编辑
摘要: 代码: #include <iostream> #include <stack> # include <string> #include <stdexcept> using namespace std; class my_stack { public: my_stack(){}; ~my_stack 阅读全文
posted @ 2020-07-25 00:12 诗和远方* 阅读(188) 评论(0) 推荐(0) 编辑