Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions CPP/CPP_ vectors
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#include<iostream>
#include<vetor>
using namespace std;

int main(){

vector<int> v;
v.push_back(1);
v.push_back(2);
v.push_back(3);
v.push_back(4);
v.push_back(5);
cout<<"size : "<<v.size()<<endl;
cout<<v.max_size()<<endl;
cout<<"capacity"<<v.capacity<<endl;
for(int i=0;i<v.size;i++){
cout<<v[i]<<' ';
}
cout<<endl;
for(int i=0;)




return 0;
}
12 changes: 6 additions & 6 deletions CPP/hello world
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include<iostream>
using namespace std;
int main()
{
cout<<"Hello World!";
return 0;
(short)
#include <iostream>

int main() {
std::cout << "Hello World!";
return 0;
}