C++

Objectives :

  • File Name : compare_substring_assign1.cpp
    In this example we noticed that "string::assign(---)" function can also work like a substring


     
  • Code: compare_substring_assign1.txt
 

Step: 1 Create a source file.

Step: 2 Edit and save Source file

 

Step: 3 Runtime Views:

 

Step: