我在Windows10上使用的是g++ 8.1.0版,但在尝试编译时仍在使用 auto start=high_resolution_clock::now();auto stop=high_resolution_clockduration_cast<microseconds>(stop-start);
cout<<duration.count()<<endl; 我得到的错误是 error: 'high_resolution_clock' has not been decl
首先,我知道这个问题已经被here处理过了,但我还没能解决它。 我有几个类,它们是LitteralPart,Monome,Polynome和PolynomialFraction。它们都必须能够相互使用(即Monome必须能够拥有返回PolynomialFraction的方法),但当我尝试编译程序时,我得到了大约400个类似 "Polynome" does not name a type"LitteralPart" is not declared in this scope 诸若此类。 每个头文