求助,玄一关
  • 板块灌水区
  • 楼主absolute_value
  • 当前回复1
  • 已保存回复1
  • 发布时间2024/10/14 17:47
  • 上次更新2024/10/14 20:20:09
查看原帖
求助,玄一关
1067907
absolute_value楼主2024/10/14 17:47
#include<bits/stdc++.h>
#include<bits/stdc++.h>
using namespace std;
template<typename T> class Array {
	public:
		T a[10001];
		bool clear() {
			memset(a,1,sizeof(a));
			return true;
		}
};
typedef Array<int> arr;
arr s;
list<int> l;
list<int>::iterator fun() {
	l.push_back(0);
	return l.end();
}
list<int>::iterator a[3];
list<int>::iterator b=fun();
int main() {
	s.clear();
	cout<<*b;
	return 0;
}

RT,程序运行后迭代器b对应的值不为0,但是列表内容均为0

2024/10/14 17:47
加载中...