Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<locale>
- #include<iostream>
- #include"Strings.h"
- int main()
- {
- MyString A("ABC");
- MyString B;
- MyString C(A);
- for (int i = 0; i < A.GetCount(); i++) {
- cout << A[i];
- }
- cout << endl;
- for (int i = 0; i < B.GetCount(); i++) {
- cout << B[i];
- }
- cout << endl;
- B = A;
- for (int i = 0; i < B.GetCount(); i++) {
- cout << B[i];
- }
- cout << endl;
- for (int i = 0; i < C.GetCount(); i++) {
- cout << C[i];
- }
- cout << endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment