Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _CRT_SECURE_NO_WARNINGS
- #include "stdafx.h"
- #include <iostream>
- #include <cstdlib>
- #include <iomanip>
- #include <string.h>
- using namespace std;
- int main()
- {
- int s1, s2;
- cout << "Enter size of string 1: ";
- cin >> s1;
- char *A = new char[s1];
- cout << "Enter string 1: ";
- cin >> A;
- cout << "Enter size of string 2: ";
- cin >> s2;
- char *B = new char[s2];
- cout << "Enter string 2: ";
- cin >> B;
- A = _strrev(A);
- strcat(A, B);
- cout << A << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement