Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string> //For string functions.
- #include <stdlib.h> //For system()
- using namespace std;
- int main()
- {
- string x;
- x.append("lol");
- cout << x << endl;
- string y;
- y.append("Hey");
- cout << y << endl;
- system("pause");
- system("cls");
- y.erase(1);
- cout << y << endl;
- string z;
- z.append("Hello");
- cout << z.at(3) << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement