[cpp] main.cpp
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
- #include <iostream>
- #include <sstream>
- #include "Person.h"
- using namespace std;
- int main()
- {
- Person p1;
- Person p2;
- stringstream ss1;
- p1.setName("Kevin Kokoscha");
- p1.setAge(22);
- p2.setName("Faizan Khalid");
- p2.setAge(26);
- ss1 << p1.toString() << " and " << p2.toString();
- cout << ss1.str() << endl;
- return 0;
- }
Editor
You can edit this paste and save as new: