From b44d4408239ce51cd588cab7e6e6243c104f32d1 Mon Sep 17 00:00:00 2001 From: dhruv saini Date: Tue, 1 Oct 2024 08:45:17 +0530 Subject: [PATCH] Added Swap String Code --- C++/swapTwoString.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 C++/swapTwoString.cpp diff --git a/C++/swapTwoString.cpp b/C++/swapTwoString.cpp new file mode 100644 index 00000000..fd814e00 --- /dev/null +++ b/C++/swapTwoString.cpp @@ -0,0 +1,19 @@ +#include +#include +#include +using namespace std; + + + + +int main() { + string a; + cout<<"Enter the String 1"<>a; + string b; + cout<<"Enter the String 2"<>b; + swap(a,b); + cout<