【发布时间】:2013-02-27 12:45:45
【问题描述】:
我正在编译我的工作,无论我如何编辑我的代码,这个错误都会不断出现:
expected expression before ‘char’
和
format ‘%s’ expects type ‘char *’, but argument 2 has type ‘int’
从第二个错误开始,我尝试使用类型转换,但问题仍然存在。有谁知道怎么做? 这是我的代码的一部分:
while ( char my_wget (char web_address[BUFLEN]) != EOF ) {
printf ("%s", (char) web_address[BUFLEN]);
【问题讨论】:
-
买一本关于 C 的书并从中学习语言。不要只是希望它会编译,更别说工作了。
标签: c compiler-construction casting char format