c - 使用 strcat 超过 1 次 - link2019

标签 c string visual-studio strcpy strcat

<分区>

我正在尝试连续使用 strcat 2 次。
当我编译前两行时它可以工作,但是当我添加第三行时我得到:
“错误 LNK2019 未解析的外部符号 _srtcat 在函数 _StartUpFunc 中引用”

strcpy(msg2sent, "Hello");
strcat(msg2sent, temp_username);
srtcat(msg2sent, ", welcome to the session.");

可能是什么原因? 我正在使用 VS15

最佳答案

第三次,你拼写了它srtcat。更正为 strcat

关于c - 使用 strcat 超过 1 次 - link2019,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34533128/

相关文章:

c - 为什么 FILE 结构实例的大小在 64 位操作系统中为 216 字节,在 32 位操作系统中为 148 字节?

sem_wait 时的核心转储

C++如何在复制时保留字符串容量

c++ - 正在制作多少 std::string 拷贝?

visual-studio - 如何在 Visual Studio 2010 中使选定的 html 标记突出显示像在 Visual Studio 2008 中一样工作

windows - 哪个 Visual Studio 组件包含 MSVC Hostx 文件?

visual-studio - 在Visual Studio 2008中以非管理员身份进行调试或生成

c - UDP 套接字 - 服务器卡在 recvfrom 上

c - __isoc99_scanf 和 scanf

c - 输入值未正确保存在 char 数组中