Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <vector>
- #include <algorithm>
- #include <cstdlib>
- using namespace std;
- /**
- 01 Test 1
- Entrée
- Sortie attendue
- APP
- TITLE
- APPLE
- 02 Test 2
- Entrée
- Sortie attendue
- DUR
- CORTLEX
- DURTLEX
- 03 Test 3
- Entrée
- Sortie attendue
- TEST
- CASE
- TEST
- 04 Test 4
- Entrée
- Sortie attendue
- GOO
- FOOD
- GOOD
- */
- int main(void)
- {
- string first;
- getline(cin, first);
- string second;
- getline(cin, second);
- cout << first + second.substr(first.length(), second.length()-1) << endl;
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement