应该是参数传递错误,指针参数处传递了非指针参数。是指针转换错误吧,你传递的是汉字,要看lcd的驱动write_lcd()是否支持处理汉字,一般lcd厂家提供的处理汉字和字符的驱动函数不一样write_lcd(0,1,"液");传递给函数的是字符串的指针,但是函数原型write_lcd(unsignedintx,unsignedinty,unsignedintword...
因为“”内部,编译器是作为字符串处理的,所以是个指针,而你的函数参数是个uint型,所以会报错。另外,你的word是个int型,但在write_lcd_order函数中,是P2=datt,而P2是8位的,所以P2传出去的其实是datt的低字节,高字节根本未使用。你的函数有问题吧,指针的问题。把你的Write_lcd函数弄上来看看
a我要喝酒去喽 I must drink[translate] a欺骗某人某物 Deceives somebody something[translate] aConversion from 'void*' to pointer to non-'void' requires an explicit cast 转换从‘void*’向非‘无效的’尖要求一个显式转换[translate]
[translate] apresent the document 提出本文 [translate] a莴笋汤 [translate] a和别人说话 With others speech [translate] aConversion from 'void*' to pointer to non-'void' requires an explicit cast 转换从‘void*’向非‘无效的’尖要求一个显式转换 [translate] ...
non-explicit-one-argument constructor like classes pointer-like classes 智能指针 function-like classes 仿函数 template模板 class模板 5.explicit关键字 它实际上就是一个non-explicit, one argument constructor(无exp关键字,仅需一个实参的构造函数),此时在执行如下的c1+5时,首先调用+的操作符重载函数,然后在...
include <math.h> main(){ void bubblesort(int x[],int n);int search(int x[],int k,int n);int i,a[101],c;for(i=0;i<=100;i++)/*i重0开始,不是重1*/ a[i]=(rand())%1000;/*abs什么意思?*/ bubblesort(a,101);c=search(a,250,101);if(c!=-1)/*加一个...
遇到 Non-portable pointer conversion 怎么解决?c报错遇到 Non-portable pointer conversion 怎么解决?c...
定义int function2(int date[1],int k)时,改成int function2(int date,int k)
A conversion shall not be performed between a pointer to object type and a pointer to a different object type.
pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -W...