remove1.cpp
remove1.cpp
#include ‹stl.h›
#include ‹iostream.h›
int numbers[6] = {1, 2, 3, 1, 2, 3};
int main() {
remove(numbers, numbers + 6, 1);
for (int i = 0; i ‹ 6; i++) cout ‹‹ numbers[i] ‹‹ ;
cout ‹‹ endl;
return 0;
}
remove1.cpp
#include ‹stl.h›
#include ‹iostream.h›
int numbers[6] = {1, 2, 3, 1, 2, 3};
int main() {
remove(numbers, numbers + 6, 1);
for (int i = 0; i ‹ 6; i++) cout ‹‹ numbers[i] ‹‹ ;
cout ‹‹ endl;
return 0;
}