Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hw0:部分接口实现要求不明确 #3

Open
Archer-du opened this issue Feb 18, 2024 · 0 comments
Open

hw0:部分接口实现要求不明确 #3

Archer-du opened this issue Feb 18, 2024 · 0 comments

Comments

@Archer-du
Copy link

Archer-du commented Feb 18, 2024

例如:

double PolynomialList::coff(int i) const {
// TODO
return 0.; // you should return a correct value
}
double& PolynomialList::coff(int i) {
// TODO
static double ERROR; // you should delete this line
return ERROR; // you should return a correct value
}

参数的含义是什么?

PolynomialList::Term& PolynomialList::AddOneTerm(const Term& term) {
// TODO
static Term ERROR; // you should delete this line
return ERROR; // you should return a correct value
}

返回值的含义是什么?

虽然大概猜出来,不过个人觉得应该再明确一点(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant