谁有艾默生PLC的编程软件EC10系列

2025-04-06 03:42:27
推荐回答(1个)
回答1:

#include
#include
using namespace std;
class Vector {
private:
int size, length;
int * data;
public:
Vector(int input_size) {
size = input_size;
length = 0;
data = new int[size];
}

};
int main() {
int n;
cin >> n;
Vector arr(n);
for (int i = 0; i < n; ++i) {
int x;
cin >> x;
arr.insert(i, x);
}
arr.sort();
arr.print();
return 0;
}