换行符问题

    技术2026-10-02  3

    char msg[] = "0xFF,0xFF,/

    0xFF,0xFF,0xFF,0xFF,0xFF,/

    0xFF,0xFF,0xFF";

     

    char msg[] = "0xFF,0xFF,"/

    "0xFF,0xFF,0xFF,0xFF,0xFF,"/

    "0xFF,0xFF,0xFF";

     

    前面的方法,把开头的TAB,空格都续进去了,会出现意想不到的结果;

    所以正确用法是后者。

     

     

    出自:http://topic.csdn.net/u/20110219/15/b2508d51-42f1-4689-ad7a-514122124ed5.html

    最新回复(0)