Untitled

 avatar
unknown
plain_text
2 months ago
485 B
2
Indexable
#include <iostream>
#include <string>
using namespace std;

class StringOperations{
    public:
    // Overload function to concatenate two strings
    string concatenate(const string &str1,const string &str2){
        return str +to_string(num){
            return str + to_string(num);
        }
        
        // overload function to concatenate a string with a character 
        string concatenate(const string&str,char ch){
            return str + ch;
        }
Editor is loading...
Leave a Comment