Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<string>
- #include<vector>
- using namespace std;
- int main()
- {
- int poljebrojeva[9];
- int index;
- int brojevi;
- int novopoljebrojeva[8];
- vector <int> novivectorbrojeva;
- vector <int> vectorpoljabrojeva;
- cout << "upisi index" << endl;
- cin >> index;
- cout << "ae" << endl;
- for ( int i = 0;i < 10; i++)
- {
- cin >> brojevi;
- vectorpoljabrojeva.push_back(brojevi);
- }
- for ( int i = 0;i < 9; i++)
- {
- if ( i != index)
- {
- novivectorbrojeva.push_back(vectorpoljabrojeva[i]);
- }
- }
- for ( int i = 0;i < 9; i++)
- {
- cout << novivectorbrojeva[i]<< endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment