编辑器中的字符串连接

来源:互联网 发布:淘宝支付宝限额怎么改 编辑:程序博客网 时间:2024/05/16 05:56
void printStrcatByQuotes(){     std::cout << "abc" "def" << std::endl;    std::cout << "abc"                  "def" << std::endl;    // std::cout << "abc" + "def" << std::endl; // Qt surport    std::cout << "abc\def" << std::endl; // 注意顶格    printf("opq" "rst\n");    printf("opq"           "rst\n");}

 

直接看demo即可明白!