Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Example program
- #include <iostream>
- #include <string>
- #include <vector>
- using namespace std;
- class Towers{
- public:
- int towerHeight;
- int towerPosition;
- }
- int main()
- {
- string name;
- vector<int> buildings;
- vector<int> towers;
- int N, K;
- cin >> N;
- cin >> K;
- for(int i = 0; i < N; i++){
- int buildingHeight;
- cin >> buildingHeight;
- buildings.push_back(buildingHeight);
- }
- for(int i = 0; i < K; i++){
- int towerHeight;
- cin >> towerHeight;
- towers.push_back(towerHeight);
- }
- cout << "What is your name? ";
- getline (cin, name);
- cout << "Hello, " << name << "!\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement