#include <string>
#include <iostream>
using namespace std;
int main(){
string s1="123"; //Set up string 1
string s2="356"; //Set up string 2
string s3; //Setup string 3
this code should print the result 12356.
Your “loop through s3” code is empty. You should do some checking inside your loop. You should also set
is_c_in_s3tofalsebefore the loop, and check for it to befalseafter the loop.