实验六完成
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ int seqSearch(vector<T> l,T value) {
|
||||
bool found = false;
|
||||
int index = 0;
|
||||
for (int i=0; i<l.size(); i++) {
|
||||
cout<<"正在顺序查找第"<<i<<"位元素"<<"其值为"<<l.at(i)<<endl;
|
||||
cout<<"正在顺序查找第"<<i+1<<"位元素"<<"其值为"<<l.at(i)<<endl;
|
||||
|
||||
if (l.at(i) == value) {
|
||||
found = true;
|
||||
|
||||
Reference in New Issue
Block a user