Horje
cpp concatenate methods Code Example
cpp concatenate methods
    string first_name { "Time" };
    string second_name { "Machine" };
    char first_n[100] = { "Hello" };
    char second_n[100] = { "World" };

    // METHOD 1: uses <string> header
    cout << first_name + second_name << endl;
    // METHOD 2: uses <cstring> header
    cout << strcat(first_n, second_n) << endl;
    // METHOD 3: uses <string> header
    cout << first_name.append(second_name) << endl;




Cpp

Related
what do you mean by smallest anagram of a string Code Example what do you mean by smallest anagram of a string Code Example
add for input output file in c/c++ Code Example add for input output file in c/c++ Code Example
stack c++ Code Example stack c++ Code Example
list in c++ Code Example list in c++ Code Example
c++ get char of string Code Example c++ get char of string Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11