Follow

刻在dna里的cout和endl,我已经有一两年没用过c++更没刷过题,一上手还是这么熟练,并熟练地写出index out of boundary的错,自豪。

不理解啊,下标明明没有越界。
result+=word1[i++]+word2[j++];就报错, 拆开写result+=word1[i++];result+=word2[j++];就正常了。cout一下,没拆开的写法result乱码了,我对ta做了什么?

问一下chat老师,说是+运算符把=后的值按ascii码相加了

Sign in to participate in the conversation
Retire Now!

这里是retirenow.top!我们的心声是——不想上班!我们的目标是——早日退休!