cxx::__concurrence_lock_error 是什么意思?
  • 板块学术版
  • 楼主冷月葬T魂
  • 当前回复6
  • 已保存回复6
  • 发布时间2021/9/11 11:16
  • 上次更新2023/11/4 07:06:45
查看原帖
cxx::__concurrence_lock_error 是什么意思?
340903
冷月葬T魂楼主2021/9/11 11:16

以下函数,写 cout<<getcard(1)<<endl; 输出 cxx::__concurrence_lock_error

string getcard(int x)
{
	if(x>=1&&x<=9) return /*string()+*/char(x+'0')+"T";
	if(x>=10&&x<=18) return /*string()+*/char(x-9+'0')+"S";
	if(x>=19&&x<=27) return /*string()+*/char(x-18+'0')+"W";
	
	if(x==28) return "DONG";
	if(x==29) return "NAN";
	if(x==30) return "XI";
	if(x==31) return "BEI";
	if(x==32) return "ZHONG";
	if(x==33) return "FA";
	if(x==34) return "BAI";
	
	return "?!?";
	
	throw 404;
}

去掉注释后可正常运行。

bdfs无果,求指点

2021/9/11 11:16
加载中...