note: expected ‘char’ but argument is of type ‘ch怎么回事呢 [问题点数:40分,结帖人lgmsyy]

Bbs1
本版专家分:0
结帖率 100%
Bbs12
本版专家分:381322
Blank
状元 2017年 总版技术专家分年内排行榜第一
Blank
榜眼 2014年 总版技术专家分年内排行榜第二
Blank
探花 2013年 总版技术专家分年内排行榜第三
Blank
进士 2018年总版新获得的技术专家分排名前十
2012年 总版技术专家分年内排行榜第七
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs12
本版专家分:381322
Blank
状元 2017年 总版技术专家分年内排行榜第一
Blank
榜眼 2014年 总版技术专家分年内排行榜第二
Blank
探花 2013年 总版技术专家分年内排行榜第三
Blank
进士 2018年总版新获得的技术专家分排名前十
2012年 总版技术专家分年内排行榜第七
Bbs1
本版专家分:0
Bbs12
本版专家分:381322
Blank
状元 2017年 总版技术专家分年内排行榜第一
Blank
榜眼 2014年 总版技术专家分年内排行榜第二
Blank
探花 2013年 总版技术专家分年内排行榜第三
Blank
进士 2018年总版新获得的技术专家分排名前十
2012年 总版技术专家分年内排行榜第七
Cannot convert value of type 'Double' to expected argument type 'NSNumber'
本人新手,输入如下代码:rnextension Double rn var dollars : String rn let formatter: NumberFormatter = NumberFormatter()rn var result: String?rn formatter.numberStyle = NumberFormatter.Style.currencyrn result = formatter.stringFromNumber(self)rn if result == nil rn return "FORMAT FAILURE!"rn rn return result!rn rnrn在第六行出现如题错误,求教各位大神,这是怎么原因?rn谢谢了
请问char*ch ;和char(*ch);有什么区别?
请问<em><em>ch</em>ar</em>*<em>ch</em> ;和<em><em>ch</em>ar</em>(*<em>ch</em>);有什么区别?
char ch = (char)System.in.read();
import java.lang.*;rnimport java.io.*;rnclass testrnrn public static void main(String args[])rn rn rn <em><em>ch</em>ar</em> <em>ch</em> = (<em><em>ch</em>ar</em>)System.in.read();rn System.out.println(<em>ch</em>);rn rnrnrnrnrn
关于 char ch[]和char *ch[] 求教
<em><em>ch</em>ar</em> word1[]="life is so cool";(这一句是不是每个字符都存在wodr1[i]中了?rncout<
python TypeError: bad operand type for unary -: 'unicode'
sorted 字符串排序引起的
Python问题:如何在shell中执行一个模块,这个模块需要传入参数?
我有一个模块叫testargv.py: #!/usr/bin/env python # -*- coding: cp936 -*- if __name__ == '__main__': if len(
为什么不能向接受const char **的函数出入char ** ?
问:为什么不能向接受const <em><em>ch</em>ar</em> **的函数传入<em><em>ch</em>ar</em> **?   答:定理:允许向接受const T的指针的地方传入T型指针,任何类型T都适用。但是,这种允许,也即在被限定的指针类型上轻微不匹配的规则却不能递归应用,只能应用在最上层。由此就可以回答上面的问题了,因为const <em><em>ch</em>ar</em> **是const <em><em>ch</em>ar</em>的指针的指针,所以这个规则在这时就不适用了。          co
python关于TypeError: Required argument 'mat' (pos 2) not found错误解决方法
这个错误提示意思是:没有找到要求的参数,即代码里的函数缺少必要的参数。下面举个显示图片的例子import cv2 img = cv2.imread('./data/wiki.png') cv2.imshow(img) cv2.waitKey(0)运行时会出现如下错误:Traceback (most recent call last):  File &quot;D:/python_opencv/ss.py&quot;,...
Umat Mat 相互转换(apexcv学习心得一)
今天初次接触关于恩智浦的芯片,发现里面涉及opexcv部分知识,头疼不已,现将学习的记录下吧 1、读入图片 我们通过opencv读入图片,然后转换成opexcv数据类型Vsdk Umat vsdk::UMat image = cv::imread(&amp;amp;quot;in_color_256x256.png&amp;amp;quot;, CV_LOAD_IMAGE_COLOR).getUMat(cv::ACCESS_RW); // ...
如何将char ch[] 转换成格式 char *ch
如何将<em><em>ch</em>ar</em> <em>ch</em>[] 转换成格式 <em><em>ch</em>ar</em> *<em>ch</em>格式,菜鸟问题,最好请加上简单代码,谢谢!!!
求教! char ch; cin>>ch
<em><em>ch</em>ar</em> <em>ch</em>;rnwhile (cin>><em>ch</em>)rn是什么意思呀?rn<em>ch</em>是什么?rn谢谢!
char*" is incompatible with parameter of type "LPCTS”">argument of type "const char*" is incompatible with parameter of type "LPCTS”
下列代码。红色部分会报错:rn<em>argument</em> of <em>type</em> "const <em><em>ch</em>ar</em>*" is incompatible with parameter of <em>type</em> "LPCTS”rn还请大侠们帮忙看下怎么改,感谢了。rnrn#include rn#include rn#include rn#include rn#include rnrnusing namespace std;rnHANDLE hfile;rnrnBOOL FindNextFilern(rn HANDLE hFindFile, //sear<em>ch</em>handlern LPWIN32_FIND_DATA lpFindFileData //databufferrn);rnrnHANDLE FindFirstFilern(rnLPCTSTR lpFileName,//filenamernLPWIN32_FIND_DATA lpFindFileData//databufferrn);rnrnBOOL CopyFile(LPCTSTR lpExistingFileName, LPCTSTR lpNewFileName, BOOL bFailIfExists);rnBOOL DeleteFile(LPCSTR lpFileName);rn<em>type</em>def const TCHAR FAR * LPCTSTR;rnrnint main()rnrn const string fileform = ".log";//读取文件格式rn string perfileReadPath = "E:\KR1\ka3\ka3";//指定读取的目录rn const int perclass_sample = 20;//读取的最大个数rnrn string fileReadPath = perfileReadPath + fileform;rn string fileTemp = perfileReadPath + "temp.csv";//临时文件rn string fileWritePath = perfileReadPath +"data_file.csv";//最终结果文件rn WIN32_FIND_DATA pNextInfo;rn HANDLE hFile = FindFirstFile[color=#FF0000](fileReadPath.c_str()[/color], &pNextInfo);rn rn if(hFile == INVALID_HANDLE_VALUE)rn rn cout<<
char*"is incompatible with parameter of type" LPCWSTR"">argument of type "const char*"is incompatible with parameter of type" LPCWSTR"
MessageBox(hwnd,"mouse clicked","weixin",0);rnTextOut(hdc,0,0,"维新培训",strlen("维新培训"));rnrnrn上面双引号里的中文和英文都报下面这种错误,为啥呀?rn用是VS2013rn<em>argument</em> of <em>type</em> "const <em><em>ch</em>ar</em>*"is incompatible with parameter of <em>type</em>" LPCWSTR"
python3使用imshow函数出现错误TypeError: Expected cv::UMat for argument 'mat'怎么改?
-
关于OpenCV版本问题带来的两个小错误
写写代码,跑跑程序,出现两个小错误,解决之。 (1)cv2.morphologyEx mask=cv2.morphologyEx(mask,cv2.MORPH_CLOSE,kernalC1) TypeError: Expected cv::UMat for <em>argument</em> 'kernel' (2)cv2.findContours _,countours0,hierar<em>ch</em>y=cv2....
opencv 错误:Bad argument(unkown array type)in cv::cvarrToMat
// 2个容器来存放图像数据和对应的标签 vector images; vector labels; 将mat转成iplimage*格式 try { read_csv(fn_csv
opencv-python 中文显示在图像上
opencv-python 中文显示在图像上 opencv只能在图像上输出英文字符,不支持汉字。可以和PIL一起使用实现在图像上输出中文。结合使用时注意一下几点: 1)opencv读取图像后图像颜色通道是BGR排列的,而PIL读取的图像是RGB排列的。要注意图像颜色通道排列的转化cv2.cvtColor(img, cv2.COLOR_BGR2RGB)。 2)opencv读取完图像存储格式是n...
opencv3 UMat、OpenCL
UMat对象起源 OpenCV3中引入了一个新的图像容器对象UMat,它跟Mat有着多数相似的功能和相同的API函数,但是代表的意义却太不一样。要说到UMat对象的来龙去脉,必须首先从OpenCL来开始说,OpenCL是一个面向异构系统通用的并行编程标准,这个标准最早是苹果公司提出,后来变成了一个国际标准,目的是通过它开发通用的GPU计算软件,中国的华为是该标准的成员之一。说的直白点就是如果
char ch='A';bits=(ch<
#include rnvoid main()rnrn<em><em>ch</em>ar</em> <em>ch</em>='A';rnint bits;rnfor (int i=0;i<
char[] ch=null;ch的输出
public static void main(String[] args) rn rn <em><em>ch</em>ar</em>[] <em>ch</em>=null;rn System.out.println(<em>ch</em>);rn System.out .println("<em>ch</em>: "+<em>ch</em>);rn rn为什么System.out .println("<em>ch</em>: "+<em>ch</em>);会输出<em>ch</em>: nullrn而System.out.println(<em>ch</em>);会报出空指针异常,rnrn其它类型的数组都不会发生这种情况,只有<em><em>ch</em>ar</em>[]会这样。
pb中retrieve argument 2 does not match expected type错误提示
实现功能:输入开始日期和结束日期,选择类别后,查询出日期区间的数据rn定义了两个数据窗口,一个dw_1和一个下拉数据窗口dw_2,两个EditMask控件:em_start_date和em_stop_date,设置mask为yyyy-mm-d ,两个检索参数设为datetime型:sd,ed,数据库中日期字段datetime为型。还有一个检索参数设为string型:class,rn查询代码为:rnint ll_deptrnstring ll_classrndatetime st_date,end_daternst_date=datetime(date(em_start_date.text),time('00:00:00'))rnend_date=datetime(date(em_stop_date.text),time('00:00:00'))rnrnif st_date > end_date thenrn messagebox("错误!","日期区间错误!",stopsign!)rn returnrn em_start_date.setfocus()rnend ifrnrnrnif isnull(dw_2.getitemstring(1,'xh_class'))thenrn messagebox("提示","请选择项目类别")rn returnrnend ifrnrnclass= dw_2.getitemstring(1,'xh_class')rnrnll_dept=dw_1.retrieve(deem_start_date.text, em_stop_date.text, class)rn执行时,总提示retrieve <em>argument</em> 2 does not mat<em>ch</em> <em>expected</em> <em>type</em>错误
java.lang.IllegalArgumentException: argument type mismatch
两个类:rnuserrnDate birthday;rnrnrnFormBeanrnString birthday;rnrnrn方法中:rnFormBean fb = new FormBean();rnfb.setBirthday("2012-11-12");rnrnUser user = new User();rnConvertUtils.register(new DateLocaleConverter(), Date.class);rnBeanUtils.copyProperties(user, ufb);rnrn最后一行执行出错,异常如题目。
shell程序中报错--test: argument expected怎么回事???
一般是if语句的问题么? 下面是我程序的开始部分: #!/usr/bin/sh e<em>ch</em>o 12334556777888 shell_common=$NETWATCHER_HOME/pm4h2/app/
简单opencv 外轮廓检测以加矩形框
#include #include #include using namespace std; using namespace cv; int main() { Mat threshold_output; vector > contours; vector hierar<em>ch</em>y; Mat src_gray; Mat frame; //自定义形态学元素
对于导入python-opencv库后出现 from .cv2 import * ImportError: DLL load failed: 找不到指定的模块。
需要下载一个python3.dll放在Anaconda3目录中。原文如下:https://blog.csdn.net/u012318074/article/details/78840747
opencv-python TypeError: mat data type = 18 is not supported
如题,在cv2.videocapture中从摄像头获取一个frame,然后str(frame), 再次使用np.array(frame)返回一个ndarray时候,imgshow返回TypeError
在MFC图像控件上显示opencv Mat格式图片
/* 显示opencv图片格式Mat到图像控件vIDC上 vMat:图像Mat vIDC:图像控件ID */ void CDLFaceDlg::showMat(Mat vMat, int vIDC){ if (vMat.empty()){ return; } //获取图片的宽 高度 int tImgWidth = vMat.cols; int tImgHeight = v
argument type mismatch
exceptionrnrnjavax.servlet.ServletException: BeanUtils.populatern org.apa<em>ch</em>e.struts.util.RequestUtils.populate(RequestUtils.java:495)rn org.apa<em>ch</em>e.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816)rn org.apa<em>ch</em>e.struts.action.RequestProcessor.process(RequestProcessor.java:203)rn org.apa<em>ch</em>e.struts.action.ActionServlet.process(ActionServlet.java:1196)rn org.apa<em>ch</em>e.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:637)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn com.oa.filter.EncodingFilter.doFilter(EncodingFilter.java:23)rnrnroot causernrnjava.lang.IllegalArgumentException: <em>argument</em> <em>type</em> mismat<em>ch</em>rn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn java.lang.reflect.Method.invoke(Unknown Source)rn org.apa<em>ch</em>e.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1789)rn org.apa<em>ch</em>e.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.java:1684)rn org.apa<em>ch</em>e.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1713)rn org.apa<em>ch</em>e.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:1019)rn org.apa<em>ch</em>e.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)rn org.apa<em>ch</em>e.struts.util.RequestUtils.populate(RequestUtils.java:493)rn org.apa<em>ch</em>e.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816)rn org.apa<em>ch</em>e.struts.action.RequestProcessor.process(RequestProcessor.java:203)rn org.apa<em>ch</em>e.struts.action.ActionServlet.process(ActionServlet.java:1196)rn org.apa<em>ch</em>e.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:637)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn com.oa.filter.EncodingFilter.doFilter(EncodingFilter.java:23)rnrnrnrn 加了:encType=multipart/form-datarnrn 页面数据绑定到form时数据类型也匹配rnrnrn 不是上面的两个问题,高手帮忙,请问是什么问题?rnrnrn
matlab数字转字符
matlab数字转字符
树莓派 ubuntu 安装Python+OpenCV
树莓派安装Python+OpenCV2017年03月10日 00:23:16阅读数:5664我使用的是树莓派1B,其实有更高型号的树莓派,但是本着废物利用的原则我使用的版本是是2016-09-23-raspbian-jessie.zip这个版本的好处是能首次上电就连接SSH,后继的版本就不行了。首次上电,要ping通以后多等一会才能SSH,然后是扩展文件系统,设置键盘布局等常规任务开始安装Open...
error: (-215) data0.dims 0
error: (-215) data0.dims 0
matlab 输入一个字符串,写入到图像中, 并可读出
matlab 输入一个字符串,写入到图像中, 并可读出 clc; clear all; close all; % input a <em><em>ch</em>ar</em>acter, and save to bitmap set(gca, 'xtick', [], 'ytick', []); axis off; %in this example, the <em><em>ch</em>ar</em>acter is w text(0, 0, '\fon
cv2.imread 中文路径返回null
经过测试,发现cv2.imread读取图片,路径中有中文,则返回null cv2.imread 中文路径返回null 这个方法还没试: file = askopenfilename() im2 = cv2.imread(file.encode('gbk') ...
argument type mismatch异常
javax.servlet.ServletException: BeanUtils.populatern org.apa<em>ch</em>e.struts.util.RequestUtils.populate(RequestUtils.java:1254)rn org.apa<em>ch</em>e.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)rn org.apa<em>ch</em>e.struts.action.RequestProcessor.process(RequestProcessor.java:254)rn org.apa<em>ch</em>e.struts.action.ActionServlet.process(ActionServlet.java:1482)rn org.apa<em>ch</em>e.struts.action.ActionServlet.doPost(ActionServlet.java:525)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:709)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnroot cause rnrnjava.lang.IllegalArgumentException: <em>argument</em> <em>type</em> mismat<em>ch</em>rnrn信息添加时异常 ,和文件上传没有关系 rnrn急~!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!rn谢谢!!rnrn
E2303 Type name expected
我安装了一个ExpressQuantumGrid 4控件新建了一个新的项目,就添加了一个devexpress表格控件,编译时就出现“[C++ Error] cxDBEdit.hpp(1537): E2303 Type name <em>expected</em>”,请指教!!
char * chchar mch[]的区别
在论坛里看到这个问题[code=C/C++]void main()rnrn int i;rn <em><em>ch</em>ar</em> * <em>ch</em> = "c<em><em>ch</em>ar</em>s"; //这是C风格字符串,结尾有'\0'rn <em><em>ch</em>ar</em> m<em>ch</em>[] = "m<em><em>ch</em>ar</em>s"; rn <em>ch</em>[0] = 'd'; //error,<em><em>ch</em>ar</em> *<em>ch</em>获取的内存是const,相当于const <em><em>ch</em>ar</em> *<em>ch</em>= "c<em><em>ch</em>ar</em>s";无法修改.rn m<em>ch</em>[0] = 'f'; //ok rn[/code]rn请问为什么<em><em>ch</em>ar</em> *<em>ch</em>获取的内存是const,而<em><em>ch</em>ar</em> m<em>ch</em>[]却不是呢?<em><em>ch</em>ar</em> * <em>ch</em>和<em><em>ch</em>ar</em> m<em>ch</em>[]经过编译器大概转换成了怎么样的代码?
c++图像缩放
c++图像缩放
求教char*与char ch[]的区别
定义了这三个字符串rn<em><em>ch</em>ar</em> *<em>ch</em>1="string";rn<em><em>ch</em>ar</em> <em>ch</em>2[]="string";rn<em><em>ch</em>ar</em> <em>ch</em>3[7]="string";rnrn请问 <em>ch</em>1,<em>ch</em>2和<em>ch</em>3有什么区别.rnrnrn当把<em>ch</em>1转化为unsigned <em><em>ch</em>ar</em>类型的时候为什么编译器提示出错,应当怎么解决。rn
error:Type name expected
hello,rn初学bcb,step-by-step地运行了帮助文档的一个服务程序rn=========================================================================rn1 To create the example, <em>ch</em>oose File|New|Other and select Service Application from the New Items dialog box. The Service1 window appears. rn2 From the Internet page of the Component palette, add a ServerSocket component to the service window (Service1).rn3 Add a private data member of <em>type</em> TMemoryStream to the TService1 class. The header for your unit should now look like this:rnrn//---------------------------------------------------------------------------rnrn#ifndef Unit1Hrn#define Unit1Hrn//---------------------------------------------------------------------------rn#include rn#include rn#include rn#include rn//---------------------------------------------------------------------------rnclass TService1 : public TServicernrn__published: // IDE-managed Componentsrn TServerSocket *ServerSocket1;rnrnprivate: // User declarationsrn TMemoryStream *Stream; // add this line herernpublic: // User declarationsrn __fastcall TService1(TComponent* Owner);rn PServiceController __fastcall GetServiceController(void);rn friend void __stdcall ServiceController(unsigned CtrlCode);rn;rn//---------------------------------------------------------------------------rnextern PACKAGE TService1 *Service1;rn//---------------------------------------------------------------------------rnrn#endifrnrn4 Select ServerSocket1, the component you added in step 1. In the Object Inspector, double-click the OnClientRead event and add the following event handler:rnrnvoid __fastcallTService1::ServerSocket1ClientRead(TObject *Sender,rn//错误码指向下面一行rn TCustomWinSocket *Socket)rnrn <em><em>ch</em>ar</em> *Buffer = NULL;rn int len = Socket->ReceiveLength();rn while (len > 0)rn rn tryrn rn Buffer = (<em><em>ch</em>ar</em> *)malloc(len);rn Socket->ReceiveBuf((void *)Buffer, len);rn Stream->Write(Buffer, len);rn rn __finallyrn rn free(Buffer);rn rn Stream->Seek(0, soFromBeginning);rn AnsiString LogFile = "C:\\Temp\\WebLog";rn LogFile = LogFile + IntToStr(ServiceThread->ThreadID) + ".log";rnrn Stream->SaveToFile(LogFile);rn rnrnrn5 Finally, select Service1 by clicking in the window抯 client area (but not on the ServiceSocket). In the Object Inspector, double click the OnExecute event and add the following event handler:rnrnvoid __fastcall TService1::Service1Execute(TService *Sender)rnrnrn Stream = new TMemoryStream();rn tryrn rn ServerSocket1->Port = 80; // WWW portrn ServerSocket1->Active = true;rn while (!Terminated)rn ServiceThread->ProcessRequests(true);rn ServerSocket1->Active = false;rn rn __finallyrn rn delete Stream;rn rn rn=========================================================================rn编译提示[C++ Error] Unit1.cpp(26): E2303 Type name <em>expected</em>rn貌似是说TCustomWinSocket *Socket 类型名有问题rn请达人帮助!rnthx in advance
指针问题char ch,char *ch,char ch[],char *ch[]如何理解,我越看越懵望高手帮忙。
-
关于char * ch指针和char ch [10]数组的区别
<em><em>ch</em>ar</em> <em>ch</em>1[10];n<em><em>ch</em>ar</em> * <em>ch</em>2;n如果现在要将一个c风格字符串赋给这两个对象,nvoid copy1(<em><em>ch</em>ar</em> <em>ch</em>1[10],<em><em>ch</em>ar</em> * temp)nvoid copy2(<em><em>ch</em>ar</em> * <em>ch</em>2,<em><em>ch</em>ar</em> * temp)n为什么后者可以直接<em>ch</em>2=temp而前者只能用strcpy?
C++将char ch[] 转换成格式 char *ch问题
我定义<em><em>ch</em>ar</em> <em>ch</em>[],并且赋值以后,将<em>ch</em>的地址<em>ch</em>Addr传给另外一个函数fun,在fun里面,需要将<em>ch</em>Addr转换成<em><em>ch</em>ar</em> *<em>ch</em>格式,不能用strng,请问该怎么转,非常感谢!!!
请问,问题在哪:char *ch;ch = "good";
<em><em>ch</em>ar</em> *<em>ch</em>;rn<em>ch</em> = "good";rncout<
char ch,char* ch的区别?和CStdioFile也有关。
我写这样的程序。在某一台计算机上可以运行这个程序。其它的计算机都不行。rn CStdioFile mFile;rn mFile.Open("c:\\aaa.o2",CFile::modeRead | CFile::modeNoTruncate); rnrn <em><em>ch</em>ar</em>* <em>ch</em>; //************************rnrn while(mFile.Read(<em>ch</em>,1))rn do sometingrn不能运行的情况是这样的:rn程序会在编译的时候有一个warning,运行的时候提示一个assert错误在filetxt.cpp。rn我找到了filetxt.cpp,我看大概是因为<em>ch</em>没有分配地址。rnrn我把程序该成这样:rn CStdioFile mFile;rn mFile.Open("c:\\aaa.o2",CFile::modeRead | CFile::modeNoTruncate); rnrn <em><em>ch</em>ar</em> <em>ch</em>; //************************rnrn while(mFile.Read(&<em>ch</em>,1))rn do sometingrnrn就可以了。rnrn但我不是很理解为什么这样改可以。我对指针一向比较头痛,谁能给我解释一下?谢谢了!
char" is incompatible with parameter of">Error[Pe167]: argument of type "unsigned char" is incompatible with parameter of
做一个RS232的通信,PC机发送数据给MSP430F149并由12864液晶显示出来,rn用IAR for 430 编译程序出现这个错误::Error[Pe167]: <em>argument</em> of <em>type</em> "unsigned <em><em>ch</em>ar</em>" is incompatible with parameter of <em>type</em> "unsigned <em><em>ch</em>ar</em> const *" ,rn求大神帮忙啊!万分感谢!rn程序如下:rn/****************POWSOS__430******************************rn程序功能:PC通过串口调试精灵向MCU发送数据,MCU将其在1602rn 液晶上显示rn-------------------------------------------------------rn通信格式:N.8.1, 9600rn------------------------------------------------------rn测试说明:打开串口调试助手,正确设置通信格式,向从PC机上rn 向学习板发送数据,观察液晶上显示的字符。rn******************************************************/rn#include rn#include "cry12864.h"rnrn<em>type</em>def unsigned <em><em>ch</em>ar</em> u<em><em>ch</em>ar</em>;rn<em>type</em>def unsigned int uint;rnrnvoid InitUART(void);rnvoid PutString(u<em><em>ch</em>ar</em> *ptr);rn/***************主函数************/rnvoid main( void )rnrn rn rn u<em><em>ch</em>ar</em> pX=0,pY=0;rn u<em><em>ch</em>ar</em> *tishi = "Send data to MCU, and they will be displayed on Cry12864!";rn rn WDTCTL = WDTPW + WDTHOLD; //关狗rn rn rn InitUART(); //初始化UARTrn Ini_Lcd(); //初始化LCDrn rn PutString(tishi);rn while(1)rn rn if(IFG1 & URXIFG0) //如果收到字符rn rn Draw_TX(pX++,pY,U0RXBUF);rn if(pX == 16)rn rn pX = 0;rn pY ^= 1;rn rn rn rn rnrn/*******************************************rn函数名称:PutStingrn功 能:向PC机发送字符串rn参 数:ptr--指向发送字符串的指针rn返回值 :无rn********************************************/rnvoid PutString(u<em><em>ch</em>ar</em> *ptr)rnrn while(*ptr != '\0')rn rn while (!(IFG1 & UTXIFG0)); // TX缓存空闲?rn TXBUF0 = *ptr++; // 发送数据rn rn while (!(IFG1 & UTXIFG0));rn TXBUF0 = '\n';rnrn/*******************************************rn函数名称:InitUARTrn功 能:初始化UART端口rn参 数:无rn返回值 :无rn********************************************/rnvoid InitUART(void)rnrn P3SEL |= 0x30; // P3.4,5 = USART0 TXD/RXDrn ME1 |= URXE0 + UTXE0; // Enable USART0 T/RXDrn UCTL0 |= CHAR; // 8-bit <em><em>ch</em>ar</em>acterrn UTCTL0 |= SSEL0; // UCLK = ACLKrn UBR00 = 0x03; // 32k/9600 - 3.41rn UBR10 = 0x00; //rn UMCTL0 = 0x4A; // Modulation 01001010rn UCTL0 &= ~SWRST; // Initialize USART state ma<em>ch</em>inernrn
为什么ch[i]改为ch之后就提示>=不能用于比较charchar[] 类型呢?
[img=http://img.my.csdn.net/uploads/201211/21/1353483192_8001.jpg][/img]
struts+hibernate出现argument type mismatch
错误信息如下:rnrnERROR - Servlet.service() for servlet action threw exceptionrnjava.lang.IllegalArgumentException: <em>argument</em> <em>type</em> mismat<em>ch</em>rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apa<em>ch</em>e.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1789)rn at org.apa<em>ch</em>e.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.java:1684)rn at org.apa<em>ch</em>e.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1713)rn at org.apa<em>ch</em>e.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:1019)rn at org.apa<em>ch</em>e.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)rn at org.apa<em>ch</em>e.struts.util.RequestUtils.populate(RequestUtils.java:1252)rn at org.apa<em>ch</em>e.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)rn at org.apa<em>ch</em>e.struts.action.RequestProcessor.process(RequestProcessor.java:254)rn at org.apa<em>ch</em>e.struts.action.ActionServlet.process(ActionServlet.java:1482)rn at org.apa<em>ch</em>e.struts.action.ActionServlet.doPost(ActionServlet.java:525)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn at org.apa<em>ch</em>e.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)rn at org.apa<em>ch</em>e.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at com.tf.util.CharSet.doFilter(CharSet.java:61)rn at org.apa<em>ch</em>e.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)rn at org.apa<em>ch</em>e.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at org.apa<em>ch</em>e.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)rn at org.apa<em>ch</em>e.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)rn at org.apa<em>ch</em>e.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)rn at org.apa<em>ch</em>e.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)rn at org.apa<em>ch</em>e.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)rn at org.apa<em>ch</em>e.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)rn at org.apa<em>ch</em>e.coyote.http11.Http11Processor.process(Http11Processor.java:869)rn at org.apa<em>ch</em>e.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)rn at org.apa<em>ch</em>e.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)rn at org.apa<em>ch</em>e.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)rn at org.apa<em>ch</em>e.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)rn at java.lang.Thread.run(Thread.java:595)rnERROR - Servlet.service() for servlet action threw exceptionrnjava.lang.IllegalArgumentException: <em>argument</em> <em>type</em> mismat<em>ch</em>rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apa<em>ch</em>e.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1789)rn at org.apa<em>ch</em>e.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.java:1684)rn at org.apa<em>ch</em>e.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1713)rn at org.apa<em>ch</em>e.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:1019)rn at org.apa<em>ch</em>e.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)rn at org.apa<em>ch</em>e.struts.util.RequestUtils.populate(RequestUtils.java:1252)rn at org.apa<em>ch</em>e.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)rn at org.apa<em>ch</em>e.struts.action.RequestProcessor.process(RequestProcessor.java:254)rn at org.apa<em>ch</em>e.struts.action.ActionServlet.process(ActionServlet.java:1482)rn at org.apa<em>ch</em>e.struts.action.ActionServlet.doPost(ActionServlet.java:525)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn at org.apa<em>ch</em>e.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)rn at org.apa<em>ch</em>e.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at com.tf.util.CharSet.doFilter(CharSet.java:61)rn at org.apa<em>ch</em>e.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)rn at org.apa<em>ch</em>e.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at org.apa<em>ch</em>e.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)rn at org.apa<em>ch</em>e.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)rn at org.apa<em>ch</em>e.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)rn at org.apa<em>ch</em>e.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)rn at org.apa<em>ch</em>e.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)rn at org.apa<em>ch</em>e.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)rn at org.apa<em>ch</em>e.coyote.http11.Http11Processor.process(Http11Processor.java:869)rn at org.apa<em>ch</em>e.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)rn at org.apa<em>ch</em>e.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)rn at org.apa<em>ch</em>e.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)rn at org.apa<em>ch</em>e.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)rn at java.lang.Thread.run(Thread.java:595)rnrn(debug执行到formBean 里的reset后就出错,validate没有执行)rnrn请问这个错误有可能出现在哪儿?
Caused by: java.lang.IllegalArgumentException: argument type mismatch
工程目录:rn[img=https://img-bbs.csdn.net/upload/201408/15/1408091851_836047.jpg][/img]rnrn[img=https://img-bbs.csdn.net/upload/201408/15/1408091913_366641.jpg][/img]rnrn[img=https://img-bbs.csdn.net/upload/201408/15/1408091937_272951.jpg][/img]rnrnJUnit test case测试类里面的:rn[img=https://img-bbs.csdn.net/upload/201408/15/1408091946_891022.jpg][/img]rn然后把的错误是这样的rn[img=https://img-bbs.csdn.net/upload/201408/15/1408091967_444481.jpg][/img]
hibernate 报错:argument type mismatch
请教下我的配置错在哪儿?该如何改正:rnrnException in thread "main" org.hibernate.PropertyAccessException: IllegalArgumentException occurred while calling setter of org.wang<em>ch</em>ao.association.Class.studentsrn at org.hibernate.property.BasicPropertyAccessor$BasicSetter.set(BasicPropertyAccessor.java:104)rn at org.hibernate.tuple.AbstractEntityTuplizer.setPropertyValues(AbstractEntityTuplizer.java:330)rn at org.hibernate.tuple.PojoEntityTuplizer.setPropertyValues(PojoEntityTuplizer.java:188)rn at org.hibernate.persister.entity.AbstractEntityPersister.setPropertyValues(AbstractEntityPersister.java:3232)rn at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:253)rn at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:167)rn at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:101)rn at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:186)rn at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:175)rn at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:98)rn at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)rn at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:502)rn at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:494)rn at org.hibernate.engine.CascadingAction$1.cascade(CascadingAction.java:134)rn at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:213)rn at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:157)rn at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:108)rn at org.hibernate.engine.Cascade.cascade(Cascade.java:248)rn at org.hibernate.event.def.AbstractSaveEventListener.cascadeBeforeSave(AbstractSaveEventListener.java:385)rn at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:242)rn at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:167)rn at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:101)rn at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:186)rn at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33)rn at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:175)rn at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)rn at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)rn at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:530)rn at org.hibernate.impl.SessionImpl.save(SessionImpl.java:518)rn at org.hibernate.impl.SessionImpl.save(SessionImpl.java:514)rn at org.wang<em>ch</em>ao.association.Test.main(Test.java:78)rnCaused by: java.lang.IllegalArgumentException: <em>argument</em> <em>type</em> mismat<em>ch</em>rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.hibernate.property.BasicPropertyAccessor$BasicSetter.set(BasicPropertyAccessor.java:42)rn ... 30 morernrnrnrnrnrnrnrnrnrnrnrnrn
Type error in argument 1 to `SetDIBitsToDevice';
错误提示:rnType error in <em>argument</em> 1 to `SetDIBitsToDevice'; found 'HWND' <em>expected</em> 'HDC'.rnrn前面声明为:rnBITMAPINFO info;rnunsigned <em><em>ch</em>ar</em> *pData;rnrn出错部分函数代码:rn memset(&info,0,sizeof(info));rn info.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);rn info.bmiHeader.biWidth = W;rn info.bmiHeader.biHeight = -H;rn info.bmiHeader.biPlanes = 1;rn info.bmiHeader.biBitCount = 32;rn info.bmiHeader.biCompression = BI_RGB;rnrn rn *pData = NULL ;rn if(mIndex >=0 && mIndex =0 && mIndex < 0)rn return -1;rn DisplayPanel (mypanel);rn //////////////////////////////////////////////////////////////rn //Onplay();rn ///*set the image window to be one part of the CVI windowrn imaqSetupWindow(WINDOW_TO_USE,0);rn imaqSetWindowPalette(WINDOW_TO_USE,2,NULL,0);rn windHandle = (int) FindWindow (NULL, "TARGET LOCATION"); rn //h264image= imaqCreateImage (IMAQ_IMAGE_RGB, 0); rn ImaqHandle = (int) imaqGetSystemWindowHandle(0); rn SetParent( (HWND) ImaqHandle, (HWND)windHandle);rn imaqSetWindowTitle( WINDOW_TO_USE, "Show Image" );rn imaqMoveWindow( WINDOW_TO_USE, imaqMakePoint(10,10));rn imaqSetCurrentTool (IMAQ_POINT_TOOL);rnrn RunUserInterface ();rn FreeLibrary(objDll); //卸载动态链接库.DLL,放在程序退出的函数里面rn DiscardPanel (mypanel);rn return 0;rnrnrnint CVICALLBACK quit (int panel, int control, int event,rn void *callbackData, int eventData1, int eventData2)rnrn swit<em>ch</em> (event)rn rn case EVENT_COMMIT:rn QuitUserInterface (0);rn break;rn rn return 0;rnrnrnint CVICALLBACK onplay (int panel, int control, int event,rn void *callbackData, int eventData1, int eventData2)rnrn int i;rn int fileLen;rn FILE *fp;rn unsigned <em><em>ch</em>ar</em> data[512] ;rn int times;rn int j;rn swit<em>ch</em> (event)rn rn case EVENT_COMMIT:rn ///////////////////////////////////////////////////////// rn SetCtrlAttribute(mypanel,MYPANEL_TIMER,ATTR_ENABLED,1);rnrn fp = fopen("VP0_cdv.264","rb");rn fseek(fp,0,SEEK_END);rn fileLen = ftell(fp);rn rewind(fp);rn //GetCtrlAttribute(mypanel,MYPANEL_TIMER,ATTR_ENABLED,&linshi);rn //printf("%d",linshi);rn rnrn times = fileLen/512 ;rnrn for(i=0; i=0 && mIndex = 4)rn mIndex = 0 ;rnrn rn rn rnrn
奇怪,为什么char ch='\u10100'编译错误,而char ch='\ujava'编译成功呢?
-
argument type mismatch错误,求助。。
自学了Java能有3个多月了吧,今天做web版本的crud操作,实现是没问题的。rn但是在处理ResultSet方面还想更方便一些,于是写了一个处理DQL操作的方法,通过传进去的ResultSet和需要封装对象的class字节码,来自动识别所有被封装的对象。但是在获取参数写入对象的时候报错了,搞了一上午没搞懂,在此求助![img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/3.gif][/img]rn[img=https://img-bbs.csdn.net/upload/201702/04/1486202092_953034.png][/img]rn[img=https://img-bbs.csdn.net/upload/201702/04/1486202108_849538.png][/img]
奇怪的错误argument type mismatch??
[code=XML]rn严重: Servlet.service() for servlet action threw exceptionrnjava.lang.IllegalArgumentException: <em>argument</em> <em>type</em> mismat<em>ch</em>rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apa<em>ch</em>e.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1789)rn at org.apa<em>ch</em>e.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.java:1684)rn at org.apa<em>ch</em>e.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1713)rn at org.apa<em>ch</em>e.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:1019)rn at org.apa<em>ch</em>e.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)rn at org.apa<em>ch</em>e.struts.util.RequestUtils.populate(RequestUtils.java:493)rn at org.apa<em>ch</em>e.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816)rn at org.apa<em>ch</em>e.struts.action.RequestProcessor.process(RequestProcessor.java:203)rn at org.apa<em>ch</em>e.struts.action.ActionServlet.process(ActionServlet.java:1196)rn at org.apa<em>ch</em>e.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apa<em>ch</em>e.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apa<em>ch</em>e.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.bjsxt.oa.web.PagerFilter.doFilter(PagerFilter.java:25)rn at org.apa<em>ch</em>e.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apa<em>ch</em>e.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)rn at org.apa<em>ch</em>e.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apa<em>ch</em>e.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:78)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)rn at org.apa<em>ch</em>e.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apa<em>ch</em>e.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apa<em>ch</em>e.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apa<em>ch</em>e.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apa<em>ch</em>e.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apa<em>ch</em>e.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apa<em>ch</em>e.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apa<em>ch</em>e.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)rn at org.apa<em>ch</em>e.coyote.http11.Http11Processor.process(Http11Processor.java:845)rn at org.apa<em>ch</em>e.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at org.apa<em>ch</em>e.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:619)rnrn[/code]rnrnjsp:rn[code=HTML]rn 失效时间 rn rn
请问 char ch = (char)26; 代表什么意思?
<em><em>ch</em>ar</em> <em>ch</em> = (<em><em>ch</em>ar</em>)26;
Constant expected究竟是怎么回事
assume cs:code, ds:datarndata segmentrnrn str db '(1)clear print ',0ah,0dh,$rn str1 db '(2)set frontclolor ',0ah,0dh,$rn str2 db '(3)set backclolor ',0ah,0dh,$rn str3 db '(4)scroll up with one line ',0ah,0dh,$rndata endsrncode segmentrnrnstart:rn mov ax,data rn mov ds,axrn mov dx,offset strrn mov ah,09hrn int 21hrn mov dx,offset str1rn mov ah,09hrn int 21hrn mov dx,offset str2rn mov ah,09hrn int 21hrn mov dx,offset str3rn mov ah,09hrn int 21hrn rninputs: mov ah,1rn………………………………rn…………………………rn编译是会出现Constant <em>expected</em>的错误提示,其<em>怎么回事</em>,怎么会缺少常量?
unsigned char ch[3]--->char * str
怎样实现 unsigned <em><em>ch</em>ar</em> <em>ch</em>[3]-<em><em>ch</em>ar</em> * str 转换
Type name expected 这样的错误
//---------------------------------------------------------------------------rnrn#ifndef TcButtonHrn#define TcButtonHrn//---------------------------------------------------------------------------rn#include rn#include rn#include rnrn//---------------------------------------------------------------------------rnclass PACKAGE TTcButton : public TCustomControlrnrnprivate:rnrnrnprotected:rnrn DYNAMIC void __fastcall MouseDown(TMouseButton Button, TShiftState Shift,int X, Y);rn DYNAMIC void __fastcall MouseMove(TShiftState Shift, int X, Y); rn DYNAMIC void __fastcall MouseUp(TMouseButton Button, TShiftState Shift, int X, Y);rnrnrnpublic:rn __fastcall TTcButton(TComponent* Owner);rn rn__published:rn---------------------------------------------------------------------------rn#endifrnrn//以DYNAMIC开头的都报 Type name <em>expected</em> 这样的错误,不知道是什么问题
EDBEngineError* dbError (type name expected?)
ADOQuery1->Prepared=true;rn ADOQuery1->Parameters->ParamByName("username")->Value="admin";rn ADOQuery1->Parameters->ParamByName("password")->Value="admin";rntryrn rn // Execute the statement, and open the dataset.rn Query1->Open();rn rn cat<em>ch</em>(EDBEngineError* dbError)rn rn for (int i = 0; i < dbError->ErrorCount; i++)rn rn MessageBox(0, dbError[i].Message.c_str(), rn "SQL Error", MB_OK);rn rn rnbuilding...rnrn cat<em>ch</em>(EDBEngineError* dbError)rn出现: Type name <em>expected</em>rncat<em>ch</em> statement missing)rnrn请问这是<em>怎么回事</em> EDBEngineError不是这样用的不?rn
expected as argument"是什么意思?">"valid object expected as argument"是什么意思?
我安装ActiveX控件,编译时通过,但使用时出现"valid object <em>expected</em> as <em>argument</em>",谁能告诉我这句是什么意思.
unsigned char ch[3]的问题
请问各位,我有下面这个函数,rnvoid read(unsigned <em><em>ch</em>ar</em> a[3]);rn赋值后,read("我");VC编译系统说我错误,而我在函数体内定义 unsigned <em><em>ch</em>ar</em> a[3]="我",这样是没有错误的;rn另外在tc的编译系统里这样的定义void read(unsigned <em><em>ch</em>ar</em> *<em>ch</em>);这样赋值read("我");是没有问题,而在VC里提示can't convert <em><em>ch</em>ar</em> * to unsigned <em><em>ch</em>ar</em> *;rn不知道是什么原因,有什么办法解决吗?谢!
char ch='\ucafe'怎么理解
这种写法我在147上看到的....
char ch[] 参数传入的问题
rn我定义了一个 <em><em>ch</em>ar</em> sz[8] = "01234567";rnrn 对方提供一个参数 比如 a(<em><em>ch</em>ar</em>* sz);rnrn我把 sz传进去 a(sz), 调试运行 发现。。。 只有 0被传入了,其他的数据都不在了 。。。这何解?
char ch[]="技师";char *cc=ch;有什么不同">char *cc="技师"与char ch[]="技师";char *cc=ch;有什么不同
<em><em>ch</em>ar</em> *cc;rncc="技师"rn///////////rn<em><em>ch</em>ar</em> <em>ch</em>[]="技师";rn<em><em>ch</em>ar</em> * cc=<em>ch</em>;rn/////////以上两处有什么不同吗??rn我用AfxMessageBox(cc)结果是一样的..rn而当我把它们分别写到数据库后就不一样了..rn
错误提示:'array type requied'怎么回事呢?
for i:=0 to col dorn beginrn for j:=0 to row dorn J[i]:=J[i]+C[j]*St[j,i];rnrn J[i]:=J[i]-C[i];rn end; rnrn书组定义,没有错误,但是一涉及到数组计算赋值就有错误,小弟是新手,请帮帮忙啊
an invalid argument was encountered 是怎么回事
an invalid <em>argument</em> was encountered 是<em>怎么回事</em>
给我讲讲 将(float *)ch 转化成 (char *)ch 的意思吧
如题
B/S下打开文档,出现错误:Incorrect data type for operator or Function:Text expected怎么回事呢?
B/S下打开文档,出现错误:Incorrect data <em>type</em> for operator or Function:Text <em>expected</em><em>怎么回事</em>呢?
about char type and int ;
there is: rnstr<em>ch</em>r (const <em><em>ch</em>ar</em> * , int) rnin my code : <em><em>ch</em>ar</em>* name="shi lin";rn <em><em>ch</em>ar</em> *p;rn p=str<em>ch</em>r(name,' ');rn //or p=str<em>ch</em>r(name, 'l');rn ask: here ' ' and 'l ' is int <em>type</em>??rn
CHAR type problem.
I encounter a problem in CHAR <em>type</em>. I declared a CHAR(1) <em>type</em> column in a table. Then I use this column <em>type</em> to declare a IN parameter in a procedure. But when I run the procedure using TOAD, the <em>type</em> in the procedure is interpreted as CHAR(3). What's the problem?
怎样理解(((unsigned char *)&argument)[0]); argument为 long型
在操作sd卡时总会看到rn[code=C/C++]void SdCommand(unsigned <em><em>ch</em>ar</em> command, unsigned long <em>argument</em>, unsigned <em><em>ch</em>ar</em> CRC)rnrnrn SdWrite(command|0x40);rn SdWrite(((unsigned <em><em>ch</em>ar</em> *)&<em>argument</em>)[0]);rn SdWrite(((unsigned <em><em>ch</em>ar</em> *)&<em>argument</em>)[1]);rn SdWrite(((unsigned <em><em>ch</em>ar</em> *)&<em>argument</em>)[2]);rn SdWrite(((unsigned <em><em>ch</em>ar</em> *)&<em>argument</em>)[3]);[/code]rnrn执行了 (((unsigned <em><em>ch</em>ar</em> *)&<em>argument</em>)[0]); 是否就自动转成字节了?为什么? <em>argument</em>是long型,即4字节。
type "SOCKET">error: argument of type "int" is incompatible with parameter of type "SOCKET
void AddWebFiles(void)rnrn efs_createfile("index.html", DEFAULT_SIZE, DEFAULT);rn efs_createfile("tibug.jpg", TIBUG_SIZE, TIBUG);rn efs_createfile("easyCam.class", JAVA1_SIZE, JAVA1);rn efs_createfile("easyCam$1.class", JAVA2_SIZE, JAVA2);rn efs_createfile("cfgquality.cgi", 0, (UINT8*)cgiConfig);rnrnrnvoid RemoveWebFiles(void)rnrn efs_destroyfile("index.html");rn efs_destroyfile("tibug.jpg");rnrn efs_destroyfile("cfgquality.cgi");rn efs_destroyfile("easyCam.class");rn efs_destroyfile("easyCam$1.class");rnrnrnrn#define html(str) httpSendClientStr(htmlSock, (<em><em>ch</em>ar</em> *)str)rnrn// cgiConfig()rnrnstatic int cgiConfig(int htmlSock, int ContentLength, <em><em>ch</em>ar</em> *pArgs )rnrn <em><em>ch</em>ar</em> *qualstr = 0;rn <em><em>ch</em>ar</em> *buffer, *key, *value;rn int len,quality;rn int parseIndex;rnrn // CGI Functions can now support URI <em>argument</em>s as well if thern // pArgs pointer is not NULL, and the ContentLength were zero,rn // we could parse the <em>argument</em>s off of pArgs instead.rnrn // First, allocate a buffer for the requestrn buffer = (<em><em>ch</em>ar</em>*) mmBulkAlloc( ContentLength + 1 );rn if ( !buffer )rn goto ERROR;rnrn // Now read the data from the clientrn len = recv( htmlSock, buffer, ContentLength, MSG_WAITALL );rn if ( len < 1 )rn goto ERROR;rnrn // Setup to parse the post datarn parseIndex = 0rn buffer[ContentLength] = '\0';rnrn // Process request variables until there are none leftrn dorn rn key = cgiParseVars( buffer, &parseIndex );rn value = cgiParseVars( buffer, &parseIndex );rnrn if( !strcmp("quality", key) )rn qualstr = value;rn其中已知 socket rn while ( parseIndex != -1 );rnrn //rn // Output the data we read in...rn //rnrn httpSendStatusLine(htmlSock, HTTP_OK, CONTENT_TYPE_HTML);rn // CRLF before entityrn html( CRLF );rnrn //rn // Generate responsern //rnrn // If the password is incorrect or missing, generate an errorrn if( qualstr )rn rn quality = 0;rn while( *qualstr )rn quality = quality * 10 + (*qualstr++ - '0');rn if( quality > 0 && quality <= 100 )rn thrControlSet( 1, quality );rn rnrn // Send back the same default pagern send( htmlSock, DEFAULT, DEFAULT_SIZE, 0 );rnrnERROR:rn if( buffer )rn mmBulkFree( buffer );rnrn return( 1 );rnrnhtmlSock为一个套接字
PB 报表提示“retrieve argument 1 does not match expected type” 类型不 一样
rn[code=sql]SELECT *rnFROM (rn SELECT *rn FROM (rn SELECT wo_receipt.trans_date 入库日期rn ,sum(wo_receipt_line.quantity) AS 生产入库数量rn ,parent_idn 大类rn ,主类rn FROM wo_receiptrn ,wo_receipt_linern ,partrn ,psrn WHERE wo_receipt.trans_no = wo_receipt_line.trans_norn AND part.part_id = wo_receipt_line.part_idrn AND ps.product_code = part.product_codern AND wo_receipt.receipt_<em>type</em> = 'F'rn GROUP BY 入库日期rn ,大类rn ,主类rn ) arn LEFT JOIN product_code ON product_code.product_code = a.大类rn ) brn LEFT JOIN product_code ON product_code.product_code = b.主类rn WHERE b.入库日期 >= : 开始日期 and b.入库日期 = : 开始日期 and b.发货日期 <= : 结束日期rn GROUP BY 大类rn ,大类名称rn ,主类rn ,主类名称rn ) xs ON rk.大类 = xs.大类[/code]rnrnrn这里面 变量参数为: :开始日期 :结束日期rnrnPB 报表提示“retrieve <em>argument</em> 1 does not mat<em>ch</em> <em>expected</em> <em>type</em>“rn但是在 pb 数据库里面工具里面是可以运行的
The operator * is undefined for the argument type(s) java.lang.String, java.lang
以下是我的代码,jsp文件中的java代码,是要向数据库进行插入操作rnrnString driverName = "com.microsoft.sqlserver.jdbc.SQLServerDriver"; // 加载JDBC驱动rn String dbURL = "jdbc:sqlserver://localhost:1433; DatabaseName=memberdb"; // 连接服务器和数据库rn Connection conn ;rn try rn Class.forName(driverNamern conn = DriverManager.getConnection(dbURL,"sa","123456");rn Statement stmt;rn ResultSet res;rn stmt=conn.createStatement();rn res = stmt.executeQuery("select * from card"); rn //处理结果集rn request.setCharacterEncoding("gb2312");rn String me_id = request.getParameter("userid");rn String me_name = request.getParameter("me_name");rn String me_gender = request.getParameter("me_gender");rn String me_birth =request.getParameter("me_birth");rn String me_phone = request.getParameter("me_phone");rn String me_address = request.getParameter("me_address");rn String me_mail = request.getParameter("me_mail");rn String me_job = request.getParameter("me_job");rn rn String sql="INSERT INTO member VALUES ('"+me_id+"','"+me_name+"','"+me_gender+"','"+me_gender+"','"+me_birth+"','"+me_phone+"','"+me_address+"','"+me_mail+"','"+me_job+"')";rn stmt.executeUpdate(sql);rn rn String ca_passwd = request.getParameter("password");rn String br_name = request.getParameter("br_name");rn int ca_pledge = Integer.parseInt(request.getParameter("ca_pledge"));rn String ca_status = new String("正常");rn int ca_balance = Integer.parseInt(request.getParameter("ca_balance"));rn String ca_effective_date = request.getParameter("date_year")+"-"+ request.getParameter("date_month")+"-"+ request.getParameter("date_day");rn String ca_expiry_date = request.getParameter("date_year2")+"-"+ request.getParameter("date_month2")+"-"+ request.getParameter("date_day2");rn String ca_detail = request.getParameter("ca_detail");rn rn String sql2="INSERT INTO card VALUES ('"+me_id+"','"+ca_passwd+"','"+ca_status+"','"br_name"','"+ca_balance+"','"+ca_effective_date+"','"+ca_expiry_date+"','"+ca_detail+"')";rn stmt.executeUpdate(sql2);rn out.println(" ");rn rn res.close();rn stmt.close();rn conn.close();rn cat<em>ch</em> (Exception ex) rn System.out.println("Error : " + ex.toString());rn
argument type mismatch 参数类型不匹配的问题
rn public void doGet(HttpServletRequest request, HttpServletResponse response)rn throws ServletException, IOException rn request.setCharacterEncoding("UTF-8");rn rn try rn User u = new User();rn System.out.println("封装数据前:"+u);rn //获取表单数据rn Map map = request.getParameterMap();rn rn for (Map.Entry m : map.entrySet()) rn String name = m.getKey();rn String[] value = m.getValue();rn rn //创建一属性描述器rn PropertyDescriptor pd = new PropertyDescriptor(name,User.class);rn //得到setter属性rn Method setter = pd.getWriteMethod();rn rn if(value.length==1)rn setter.invoke(u, value[0]);//给一个值的变量赋值rn elsern setter.invoke(u, (Object)value);//相当于给复选框赋值rn rn rn System.out.println("封装数据后:"+u);rn cat<em>ch</em> (Exception e) rn e.printStackTrace();rn rn rnrn```rn rn```rn报错:rn 封装数据前:User [userName=null, pwd=null, sex=null, hobby=null, city=null]rn java.lang.IllegalArgumentException: <em>argument</em> <em>type</em> mismat<em>ch</em>rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at Demon.servlet.servletDemo3.doGet(servletDemo3.java:39)rn at Demon.servlet.servletDemo3.doPost(servletDemo3.java:80)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)rnrn at org.apa<em>ch</em>e.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)rn at org.apa<em>ch</em>e.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apa<em>ch</em>e.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)rn at org.apa<em>ch</em>e.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)rn at org.apa<em>ch</em>e.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)rn at org.apa<em>ch</em>e.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)rnrn at org.apa<em>ch</em>e.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)rn at org.apa<em>ch</em>e.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)rn at org.apa<em>ch</em>e.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)rn at org.apa<em>ch</em>e.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)rn at org.apa<em>ch</em>e.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)rn at org.apa<em>ch</em>e.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)rnrn at org.apa<em>ch</em>e.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)rn at java.lang.Thread.run(Thread.java:619)rn这个是哪里错了
IllegalArgumentException: Cannot invoke argument type mismatch
首先说明一下:我做的是物流管理软件的运单添加。货物名称 付费方式 提货方式 包装形式这些字段都是int,外键于另外4个表。这四个都应该是单向多对一得关系。不知道是我映射文件配置有问题还是哪的问题,添加不成功,出现异常。刚接触spring hibernate,大虾们帮帮忙啊,不胜感激啊rnrn[color=#FF0000]出错信息:[/color]rnexception rnrnjavax.servlet.ServletException: BeanUtils.populatern org.apa<em>ch</em>e.struts.util.RequestUtils.populate(RequestUtils.java:495)rn org.apa<em>ch</em>e.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816)rn org.apa<em>ch</em>e.struts.action.RequestProcessor.process(RequestProcessor.java:203)rn org.apa<em>ch</em>e.struts.action.ActionServlet.process(ActionServlet.java:1196)rn org.apa<em>ch</em>e.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn com.wuliu.common.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:32)rnrnrnroot cause rnrnjava.lang.IllegalArgumentException: Cannot invoke com.wuliu.entity.Indenture.setPayMethod - <em>argument</em> <em>type</em> mismat<em>ch</em>rn org.apa<em>ch</em>e.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:1778)rn org.apa<em>ch</em>e.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:1759)rn org.apa<em>ch</em>e.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java:1648)rn org.apa<em>ch</em>e.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java:1677)rn org.apa<em>ch</em>e.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1022)rn org.apa<em>ch</em>e.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:811)rn org.apa<em>ch</em>e.commons.beanutils.BeanUtils.populate(BeanUtils.java:298)rn org.apa<em>ch</em>e.struts.util.RequestUtils.populate(RequestUtils.java:493)rn org.apa<em>ch</em>e.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816)rn org.apa<em>ch</em>e.struts.action.RequestProcessor.process(RequestProcessor.java:203)rn org.apa<em>ch</em>e.struts.action.ActionServlet.process(ActionServlet.java:1196)rn org.apa<em>ch</em>e.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn com.wuliu.common.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:32)rnrnrnrnrn看出错信息,应该是payMethod的输入类型与form类型不匹配。可是payMethod与goodsType pickMethod goodsPack这三个一样都是外键啊,为什么其他的没错呢?rnrnrn前台jsp页面rn 运单添加 rn rn rn 货物类型 rn 提货方式 rn 货物包装 rn 付费方式 rn 货号 rn 发货人 rn 发货人电话 rn 收货人 rn 收货人电话 rn 发货日期 rn 货物名称 rn rnrnrn实体类:rnpublic class Indenture implements java.io.Serializable rnrn private Integer indentureId;rn private GoodsType goodsType;rn private PickMethod pickMethod;rn private GoodsPack goodsPack;rn private PayMethod payMethod;rn private String goodsId;rn private String shipper;rn private String shipperTel;rn private String consignee;rn private String consigneeTel;rn private Date deliverDate;rn private String goodsName;rn运单form:IndentureFormrnpublic IndentureForm()rn item = new Indenture();rn rn public Indenture getItem() rn return item;rn rn public void setItem(Indenture item) rn this.item = item;rn rnrn映射文件:Indenture.hbm.xmlrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnGoodsType.hbm.xmlrnrn rn rn rn rn rn rn rn rn rnrn
Function argument value,type,or count is invalid
现在做了个登陆界面:rnrnPUBLIC lnHandlernLOCAL a,brna=ALLTRIM(thisform.text1.Value)rnb=ALLTRIM(thisform.text2.Value)rnrnIF SQLEXEC(lnHandle,"select * from Login where lname=?a and lpwd=?b",'temp')>0rn IF USED('temp') AND RECCOUNT('temp')>0rn MESSAGEBOX('用户登录成功!')rn DO FORM ('form1.scx')rn thisform.Releasern ELSE rn MESSAGEBOX("用户名错误!",16,"ERROR")rn thisform.text1.SetFocusrn ENDIFrnENDIFrnrn数据库中有一张表,两个字段都为CHAR类型.rnrn现在运行程序出现Function <em>argument</em> value,<em>type</em>,or count is invalid,请教如何解决!
Datawindow的retrieval argument的array type如何使用?
我在datawindow设了一个string array的retrieval <em>argument</em>rn主要是用来判断 IN用的,例如设定一个<em>argument</em> as_aaa为string arrayrn使用如下rnSelect * from where …IN (:as_aaa)rn然后在datawindow中retrieve,输入as_aaa = a,b,crn上述执行是正常的,但是如果带入程序中的rndw.retrieve(“a,b,c”)就不正常了rn就算使用变量如下rnls_as_aaa = “a,b,c”rndw.retrieve(ls_as_aaa)rn一样无法显示正确的资料rnrn是哪里写作了?rn
转载“argument type mismatch”错误解决方法
现象: 当输入页面中含有日期如2008-01-01时,如果Form中对于的字段为Date类型,则会出现“<em>argument</em> <em>type</em> mismat<em>ch</em>”错误。 原因: Struts的ActionServlet在接受到页面的请求后,会调用RequestUtils.populate方法对Form进行填值,而此方法又调用到BeanUtils.populate方法,而该方法进行填值...
在做hibernate 多对一 java.lang.IllegalArgumentException: argument type mismatch
在做hibernate 多对一程序时,出现以下异常 java.lang.IllegalArgumentException: <em>argument</em> <em>type</em> mismat<em>ch</em>;rn代码: 一个酒店里面有多个房间rn/** rn * 酒店实体rn * rn * @author:xylrn * @E-mail: yunlong167167@163.comrn * @since:2010-6-11 下午05:22:52rn * rn */rnpublic class Hotelrnrn private int id;rn /**rn * 酒店名称rn */rn private String hotelName;rn//get set 省略rnrn**rn * 酒店房间实体rn * rn * @author:xylrn * @E-mail: yunlong167167@163.comrn * @since:2010-6-12 上午10:21:10rn * rn */rnpublic class HotelRoomrnrn /**rn * idrn */rn private String id;rn /**rn * 户型rn */rn private String houseType;rn/**rn * 酒店IDrn */rn private Hotel hotel;rn//get set 省略rnrnHotelRoom.hbm.xmlrnrn rn rn rn rn rn rn rn配置大概是上面那样,rn然后在action中添加数据rn public String add()rn rn if (StringUtils.isNotBlank(hId))rn rn hotel= hotelService.getHotelById(Integer.parseInt(hId));//获得酒店实体rn this.hotelRoomService.save(hotel, houseType, area, floor,rn directions, bedType, counterPrice, frontPrice, breakfast,rn broadband, amount, paymentType, priceMark, isRecommend,rn imgUrl);rn rn return "add";rn rnserevice 层的代码如下:rnpublic void save(Hotel hotelId, String houseType, String area,rn String floor, String directions, String bedType,rn String counterPrice, String frontPrice, String breakfast,rn String broadband, String amount, String paymentType,rn String priceMark, String isRecommend, String imgUrl)rn rnHotelRoom hotelRoom = new HotelRoom();rn hotelRoom.setHotel(hotelId);rn hotelRoom.setHouseType(houseType);rn //......rnrn代码哪里写的有问题,哪位朋友帮忙说下
请教invalid type argument of `unary *'问题
int main (int argc, const <em><em>ch</em>ar</em> * argv[]) rn int a[4][4]=;rn for(int i=0;i,*(*p+1));rn
BeanUtils.populate造成:argument type mismatch问题。急
BeanUtils.populate造成:<em>argument</em> <em>type</em> mismat<em>ch</em>问题。急 rnO(∩_∩)O谢谢rn
错误提示:incompatible type for argument 1 of 'print'
[code=C/C++]rn#include rn rnstruct studentint num;<em><em>ch</em>ar</em> name[5];int score[3];;rnmain ()rn rnrn void print(struct student stu[5]);rn int i;rn struct student stu[5];rn for(i=0;i);rn rn rnrnrn//声明和定义中的参数一致,都是结构体数组(传实参是是指针),调用的也是结构体数组,有什么错误呢?rn[/code]
反射出错java.lang.IllegalArgumentException: argument type mismatch
for (int i = 0; i < colName.length; i++) rn String colNames = colName[i];rn String MethodName = "set" + colNames;rn Method[] ms = user.getClass().getMethods();rn// System.out.println(ms[i]);rn for (Method m : ms) rn if (MethodName.equals(m.getName())) rn m.invoke(user, rs.getObject(colNames));rn rn rn rn运行后出错Exception in thread "main" java.lang.IllegalArgumentException: <em>argument</em> <em>type</em> mismat<em>ch</em>rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at com.gdcc.other.ORMTest.getUser(ORMTest.java:58)rn at com.gdcc.other.ORMTest.main(ORMTest.java:19)rnrn请高手帮忙看看,我在线等待!
error: invalid type argument of '->' (have 'Course')
<em>type</em>def struct SCrn int Cno;rn int Grade;rn struct SC *next;rnSC;rnrn<em>type</em>def struct Studentrn <em><em>ch</em>ar</em> Sno[8];rn <em><em>ch</em>ar</em> Sname[20];rn <em><em>ch</em>ar</em> Ssex[2];rn int Sage;rn <em><em>ch</em>ar</em> Sdept[2];rn struct Student *next;rn struct SC *scnext;rnStudent,*LinkList;rnrnrn<em>type</em>def struct //课程的结构体rn int Cno; //课程编号rn <em><em>ch</em>ar</em> Cname[10]; //课程名rn double Ccredit; //课程的学分rnCourse;rnrn<em>type</em>def struct SqList //课程的存储数据结构rnrn Course *elem; // 存储空间基址rn int length; // 当前长度rn int listsize; // 当前分配的存储容量(以sizeof(ElemType)为单位)rnSqList;rnrnrnrnStatus Sear<em>ch</em>_TotallCredit(LinkList L,SqList sql) //根据学号查询学生的总学分rn <em><em>ch</em>ar</em> sno[8]; //所查询的学号rn SC *sc;rn double totall=0; //总学分rn Student *s=L->next;rn printf("请输入你所要查询学生的学号:\n");rn scanf("%s",sno);rn while( strcmp(s->Sno,sno) )rn s=s->next;rn if(s==NULL)rn printf("您所输入的学号有误,不存在此学号的学生。\n");rn return ERROR;rn rn rn sc=s->scnext;rn while(sc!=NULL)rn totall+=sql.elem[sc->Cno]->Ccredit; // error: invalid <em>type</em> <em>argument</em> of '->' (have 'Course')rn sc=sc->next;rn rn printf("%s同学的总学分为%lf\n",s->Sname,totall);rn return OK;rnrnrnrn为什么总是报错 error: invalid <em>type</em> <em>argument</em> of '->' (have 'Course')
UnityVS1.2 破解下载
很多人都不喜欢Unity3d自带的代码编辑器MONO,用着很不爽,那么有兴趣的可以考虑换个unityvs试试,此资源来自于网络,如有需求,请购买正版软件。unityvs1.2 破解 相关下载链接:[url=//download.csdn.net/download/itpontiff/5295170?utm_source=bbsseo]//download.csdn.net/download/itpontiff/5295170?utm_source=bbsseo[/url]
Intel 汇编语言程序设计(第5版 高清中文版).part1下载
本书全面细致地讲述了汇编语言程序设计的各个方面。从微处理器体系结构、工作机制到指令集;从最基本的编译器链器的使用到高级过程、结构和宏的使用;从用纯汇编编写程序到用C/C++等最新编译器与汇编的混合接口编程;从16位实模式下BIOS、DOS实模式文本及图形程序设计到32位保护模式的Windows程序设计;从磁盘基础知识到Intel指令编码、浮点运算等相关知识都做了深入而细致的讲解。 本书对计算机体系结构及基本原理做了相当篇幅的介绍,因此本书不仅可作为高等院校计算机专业汇编语言的教材,也可以作为计算机体系结构和原理的参考资料。 相关下载链接:[url=//download.csdn.net/download/SkyEyesliyu/3422101?utm_source=bbsseo]//download.csdn.net/download/SkyEyesliyu/3422101?utm_source=bbsseo[/url]
Android高仿TX微信界面的源码下载
纯属转发,程序基本实现微信的所有UI效果.对于新手学习界面很有帮助. 相关下载链接:[url=//download.csdn.net/download/netsoft520/6401103?utm_source=bbsseo]//download.csdn.net/download/netsoft520/6401103?utm_source=bbsseo[/url]
相关热词 c# 标准差 计算 c#siki第五季 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池
我们是很有底线的