当前位置: 动力学知识库 > 问答 > 编程问答 >

c - using strcat more than 1 time - link2019

问题描述:

I'm trying to use strcat 2 time in a row.

when I compile first 2 lines it's works, but when I added the third line I get:

"Error LNK2019 unresolved external symbol _srtcat referenced in function _StartUpFunc "

strcpy(msg2sent, "Hello");

strcat(msg2sent, temp_username);

srtcat(msg2sent, ", welcome to the session.");

what can be the reason?

Im using VS15

网友答案:

The third time, you spelled it srtcat. Correct to strcat.

网友答案:

You have a typo on the third line: srtcat instead of strcat.

分享给朋友:
您可能感兴趣的文章:
随机阅读: