本文共 1309 字,大约阅读时间需要 4 分钟。
#includeusing namespace std;class animalword{public: int ID; int X; int Y; animalword(){}; animalword(int i,int j,int k){ ID=i; X=j; Y=k;} ~animalword(){} bool judge(int N){ if((X>N)||(Y>N)) return false; else return true; }};struct True_Word{ int X; int Y; int judge;};int main(){ int N,K; cout<<"input the number of animal and true words:"< >N>>K; cout< >id>>x>>y; word[i].ID=id; word[i].X=x; word[i].Y=y; } cout<<"the inputed data is:"<
如何存储食物链的信息 应该是把所有物种分类后才能识别这些信息,但是如何存储目前还没有想的好的办法
本文 由 创作,采用 进行许可。欢迎转载,请注明出处: 转载自: