warning: format %s expects type char * but argument 2 has type int
尝试用crypt的时候遇到了这个问题源代码如下: #include #include #include int main(int argc, char **argv) { printf("%s\n", crypt(argv[1], argv[2])); return 0; } 用命令gcc -o test lizi.c -lcrypt编译连接时有如下警告:lizi.c:7:2: 警告: 格...
warning:deprecated conversion from string constant to 'char *' 解决方案
#include <iostream> using namespace std; int fuc(char *a) { cout << a << endl; } int main() { fuc("hello"); } Linux 环境下当GCC版本比较高时,编译代码可能出现的问题 问题是这样产生的,先看这个函数原型: 1 ...

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。