[Solved] Is there any way to use string in c++ without the word “string” appear in the program? [closed]

[ad_1]

Of course you can:

#define S str##ing
#define S_INCLUDE <S>

#include <iostream>
#include S_INCLUDE

int main()
{
    std::S str = "Hello world!";
    std::cout << str << std::endl;
}

2

[ad_2]

solved Is there any way to use string in c++ without the word “string” appear in the program? [closed]