如何处理从“int”到“const char *”错误的无效转换? [英] how can i handle the invalid conversion from `int' to `const char*' error?

查看:422
本文介绍了如何处理从“int”到“const char *”错误的无效转换?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我必须制作一个根据用户提供的密码加密/解密文件的节目。现在我对编程很新,我对c语法没有太多的了解。我将发布我的程序的整个源代码,如果有人有任何想法如何摆脱错误消息,请随时回复:

展开 | 选择 | Wrap | 行号

解决方案

不知道这是否能满足您的要求(因为代码缺少注释),但您可以在

展开 | 选择 | 换行 | 行号


< blockquote>感谢horace1 :),错误消息神奇地消失了......



感谢horace1 :),错误消息已经神奇地消失了...



这个程序能做你想做的吗?例如

展开 | 选择 | Wrap | 行号


hello, i have to make a pogram that encrypts/decrypts files according to a keycode supplied by the user. now i am kind of new to programming and i do not have too much knowledge of c syntax . i will post the entire source of my programm, if anyone has any ideea how to get rid of the error message, feel free to reply:

Expand|Select|Wrap|Line Numbers

解决方案

no idea if this will do what you require (as the code lacks comments) but you can cast the address of aux1 in

Expand|Select|Wrap|Line Numbers


thanks horace1 :) , the error message has magically dissapeared ...


thanks horace1 :) , the error message has magically dissapeared ...

does the program do what you want though? e.g.

Expand|Select|Wrap|Line Numbers


这篇关于如何处理从“int”到“const char *”错误的无效转换?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆