#include <iostream>
#include <vector>
using namespace std;
int main()
{
vector<int> vec;
for(int i=0; i<5; i++) {
vec.push_back(i);
}
cout << vec.size() << endl;
cout << vec.capacity() << endl;
return 0;
}
#include <iostream> using namespace std; struct Node { int data; Node* next; }; class Stack { Node* top; public: Stac...
No comments:
Post a Comment