Skip to content

Commit

Permalink
vector string
Browse files Browse the repository at this point in the history
  • Loading branch information
imashiqe committed Jun 13, 2024
1 parent fbcd3ea commit 07df436
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
21 changes: 21 additions & 0 deletions datastucture/module02/vector_input.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#include<bits/stdc++.h>

using namespace std;

int main()
{
vector<int> v;
int n;
cin>>n;
for(int i=0; i<n; i++)
{
int x;
cin>>x;
v.push_back(x);
}
for(int val:v)
{
cout<<val<<" ";
}
return 0;
}
11 changes: 11 additions & 0 deletions datastucture/module02/vector_string.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include<bits/stdc++.h>

using namespace std;

int main()

{
int n;
cin>>n;
return 0;
}

0 comments on commit 07df436

Please sign in to comment.