Something like print END << END; in C++?

后端 未结 8 1731

Is there anyway to do something like PHP\'s

print << END
yadayadayada
END;

in C++? (multi-line, unescaped, easy-to-cut-and-paste stre

8条回答
  •  轮回少年
    2021-01-02 00:22

    If I understand you correctly, I believe you want this:

    #include 
    ...
    std::cout << std::endl << "yadayadayada" << std::endl;
    

提交回复
热议问题