Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #include <string>
- #include <windows.h>
- #include <math.h>
- #include <vector>
- #include <algorithm>
- #include <conio.h>
- using namespace std;
- int main()
- {
- vector <string> names;
- vector <int> scores;
- bool isOver=0;
- while (!isOver){
- string sName;
- cin>>sName;
- if (sName=="No more")
- {
- isOver=1;
- for (int i; i < scores.size(); ++i)
- cout << names[i] << scores[i] << endl;
- }
- else {
- names.push_back(sName);
- int nScore;
- cin>>nScore;
- scores.push_back(nScore);
- }
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement