请问显示这个是项目哪里出错了?萌新求教

五月 06, 2018 9:54:15 下午 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]
org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'adminDao' for bean class [com.ePortal.dao.adminDao] conflicts with existing, non-compatible bean definition of same name and class [com.ePortal.dao.AdminDaoImp]
at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.checkCandidate(ClassPathBeanDefinitionScanner.java:314)
at org.mybatis.spring.mapper.ClassPathMapperScanner.checkCandidate(ClassPathMapperScanner.java:223)
at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:253)
at org.mybatis.spring.mapper.ClassPathMapperScanner.doScan(ClassPathMapperScanner.java:155)
at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.scan(ClassPathBeanDefinitionScanner.java:220)
at org.mybatis.spring.mapper.MapperScannerConfigurer.postProcessBeanDefinitionRegistry(MapperScannerConfigurer.java:315)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:119)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:609)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4745)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5207)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

五月 06, 2018 9:54:15 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
五月 06, 2018 9:54:15 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/eportal] startup failed due to previous errors
五月 06, 2018 9:54:15 下午 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
[org.springframework.web.context.support.XmlWebApplicationContext] - Closing Root WebApplicationContext: startup date [Sun May 06 21:54:15 CST 2018]; root of context hierarchy
[org.springframework.web.context.support.XmlWebApplicationContext] - Exception thrown from ApplicationListener handling ContextClosedEvent
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: Root WebApplicationContext: startup date [Sun May 06 21:54:15 CST 2018]; root of context hierarchy
at org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:346)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:333)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:880)
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:841)
at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:579)
at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:115)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4792)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5429)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:226)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[org.springframework.web.context.support.XmlWebApplicationContext] - Exception thrown from LifecycleProcessor on context close
java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: Root WebApplicationContext: startup date [Sun May 06 21:54:15 CST 2018]; root of context hierarchy
at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:359)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:888)
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:841)
at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:579)
at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:115)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4792)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5429)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:226)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

1个回答

org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'adminDao' for bean class [com.ePortal.dao.adminDao] conflicts with existing, non-compatible bean definition of same name and class [com.ePortal.dao.AdminDaoImp]

adminDao这个bean的定义冲突了。

参考:
https://blog.csdn.net/qq1142003960/article/details/46651901

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
请问是哪里出错了?
vote_test.htm:rnrn[code=HTML]rnrn 讨个老婆需要多少钱rn rn rn rn rn rnrnrn rn rn 你认为结婚成本比去年增加了多少?rn rn rn rn投票总人数:1344 rnrn没增加,结婚一点压力也没有rnrn         rn2票 (2%) rnrn增加了,已经超出自己的承担rnrnrn         rn2票 (2%) rnrn不清楚rnrnrn         rn2票 (2%) rnrn增加了,但自己还可以承担rnrn         rn2票 (2%) rnrn面对生活成本压力,不想结婚了rnrn         rn2票 (2%) rn rn rn[投票截止时间:2008-12-05 14:19:39]rn rn rnrnrn[/code]rnrnrnvote_test.jsp:rn[code=Java]<%@ page contentType="text/html; charset=gb2312" %>rn<%@ page import="java.sql.*"%>rn<%rnString str="";rnint voteid = Integer.parseInt(request.getParameter("voteid"));rn//int voteid = new Integer(request.getParameter("voteid")).intValue();rnfor(int j=0; j < 5; j++)rn if(j == voteid)rn str=str+j+",30%,";rn elsern str=str+j+",10%,";rnrnout.println(str);rn%>[/code]
哪里出错了?求教!
rnclass kothread extends Threadrnrn int n;rn String st;rn public kothread(String ko)rn rn st=ko;rn rn public void run()rn rn for(n=0;n<6;n++)rn rn tryrn rn System.out.print(st);rn Thread.sleep(250);rn rn catch(InterruptedException e)rn rn System.out.println("Exception:"+e.getMessage());rn rn rn rnrnrnrnpublic class ko3 rnrn public static void main(String args[])rn rn kothread ko1=new kothread("A");rn kothread ko2=new kothread("B");rn ko1.start();rn ko2.start();rn rnrnrn报错:rnException in thread "main" java.lang.NoSuchMethodError: kothread.start()Vrn at ko3.main(ko3.java:34)
这个哪里出错了?
[code=C/C++]#includern#includernusing namespace std;rnint main()rnrn vector snum;rn int count;rn cout<<"Please enter a number(Ctrl+Z to the end):";rn while (cin>>count)rn snum.push_back(count);rn int *pt= new int[snum.size()];rn int *pt2=pt;rn for(vector::iterator i=snum.begin();i!=snum.end();++i,++pt)rn *pt2=*i;rn delete [] pt;rn for(int a=0;a!=sizeof(pt2)/sizeof(int);a++)rn cout<
这个哪里出错了?
test.jsprnrn<%@ page contentType="text/html; charset=UTF-8" %>rnrnrn rntestrnrnrnrn rn夺rnrnrnrnrnrntest1.jsprn<%@ page contentType="text/html; charset=UTF-8" %>rnrnrn rntest1rnrnrnrn<%rnString username = "";rnusername = request.getParameter("username");rnout.println("before:" + username + " ");rnbyte[] aa = username.getBytes("ISO-8859-1") ;rnString bb = new String(aa,"UTF-8");rnout.println("after:" + bb);rn%>rnrnrnrnrn在jbuilder里面显示是:before:'ÎÒ°®Äã'after:'�Ұ���rn在ie显示是:before:'我爱ä½?rnafter:'我爱�? rnrn该怎么解决这个乱码问题?
这个哪里出错了
split函数rn格式: v=split(s,d])rn用法:把字符串s分割成字符串数组,分隔符为d.rn<% dim a,b,irna="a;sdfjasdkfj"&chr(13)&"a;dfjs"&chr(13)&"afas;ldfjasl"rnb=split(a,chr(13)) 'b会被变成数组rnfor i=0 to ubount(b)rnreponse.write b(i)rnnextrn%>
请问哪里出错了???
rn想编写独立模块,不知道下面哪里出错了,用的是python2.5rndef show():rn print 'i am a moudle'rn if _name_=='_main_':rn rn File "", line 3rn if _name_=='_main_':rn rn^rnIndentationError: unindent does not match any outer indentation levelrnrnrnrndef show():rn pirnt ' I am a module!'rnif _name_='_main_':rn show()rn print ' I am not a module!'rnrn rnrn
请问哪里出错了
在数据库的表中还有id这列,我把它设置为int,自增rnrnPrivate Sub GetConnected()rn Set cn = New ADODB.Connectionrn cn.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=hardware;Data Source=CHENDONG-2E7F71"rn cn.CommandTimeout = 30rn cn.OpenrnEnd SubrnrnPublic cn As ADODB.ConnectionrnDim str As StringrnDim rs As ADODB.RecordsetrnrnPrivate Sub Command1_Click()rn GetConnectedrn Set rs = New ADODB.Recordsetrn rs.Open str, cn, adOpenDynamic, adLockOptimisticrn rs.AddNewrn rs("type") = Text2.Textrn rs("brand") = Combo1.Textrn rs("info") = Text3.Textrn rs.UpdaternEnd Sub
请问哪里出错了?
[code=C/C++]#include rntemplate rnvoid ShowArray (T arr[], int n);rnrntemplate rnvoid ShowArray(T * arr[], int n);rnrnstruct debts rnrn char name[50];rn double amount;rn;rnrnint main(void)rnrn using namespace std;rn int things[6] = 13,31,103,301,310,130;rn struct debts mr_E[3] = rn rn "Ima Wolfe", 2400,rn "Ura Foxe ", 1300,rn "Iby Stout", 1800rn ;rn double * pd[3];rn for (int i = 0; i < 3; i++)rn pd[i] = &mr_E[i].amount;rn cout << "Listing Mr.E's counts of things: \n";rn ShowArray(things, 6);rn cout << "Listing Mr.E's debts:\n";rn ShowArray(pd, 3);rn return 0;rnrnrntemplate rnvoid ShowArray(T arr[], int n)rnrn using namespace std;rn cout << "template A\n";rn for (int i = 0; i < n; i++)rn cout << arr[i] << ' ';rn cout << endl;rnrnrntemplate rnvoid ShowArray(T * arr[], int n)rnrn using namespace std;rn cout << "template B\n";rn for (int i = 0; i < n; i++)rn cout << *arr[i] << ' ';rn cout endl;rn[/code]
请问哪里出错了?
代码:rn<%rnoption explicitrndim conn,connstr,db,sqlrnset conn=server.createobject("adodb.connect")rndb="db.mdb"rnconnstr="provider=microsoft.jet.oledb.4.0;data source="&server.mappath(db)rnconn.open connstrrnsql="select * from table"rnconn.execute(sql)rnconn.closern%>rn错误:rnMicrosoft VBScript 编译器错误 错误 '800a03f6' rnrn缺少 'End' rnrn/iisHelp/common/500-100.asp,行242 rnrn服务器对象 错误 'ASP 0177 : 800401f3' rnrnServer.CreateObject 失败 rnrn/conn.asp,行4 rnrn无效的 ProgID。 若要获取关于此消息的更多的信息,请访问 Microsoft 联机支持站点: http://www.microsoft.com/contentredirect.asp 。 rn
这个验证账号密码是哪里出错了?
我想提取出表单里的内容,检查账号密码是否正确,然后跳转页面。。但是不管输入什么,都能够跳转。。rnLoginAction.javarn[code=java]rnpublic class LoginServlet extends HttpServlet rnrn private static Logger logger = Logger.getLogger(LoginServlet.class);rn @Overridern protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException rn// super.doGet(req, resp);rn String account=req.getParameter("textfield");rn String password=req.getParameter("textfield2");rn System.out.println("account:"+account+" password:"+password);rn if("123".equals(account) && "123".equals("password")) rn resp.sendRedirect("index.html");rn rn rnrn @Overridern protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException rn doPost(req, resp);rn rnrnrn[/code]rnrnweb.xmlrn[code=text]rn rn loginrn com.servlet.LoginServletrn rnrn rn loginrn /rn rn[/code]rn下面是页面表单的一部分代码:rn[code=html]rn rn 用户rn rn rn rn 密码rn rn rnrn[/code]rnrn不知为何,不管账号密码输入什么,都会跳转,根本没有检验。。
这个是哪里出错了,一直报?
代码:rn<%@page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %>rn<%@page language="java" import="java.sql.*" %>rn<% rn Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");rn String sConn="jdbc:sqlserver://192.168.20.88:1433;DatabaseName=RVIS";rn Connection conn = DriverManager.getConnection( sConn,"sa","mssql" ); rn Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);rn request.setCharacterEncoding("UTF-8");rn response.setCharacterEncoding("UTF-8");rn strId = request.getParameter("TacticId");rn strId = new String(strId.getBytes("ISO-8859-1"), "UTF-8");rn String query = "select * from RVIS_Tactic where TacticNumber="+strId+" and TacticType=1 and TacticStatus=0";rn ResultSet rs = stmt.executeQuery( query );rn if(!rs.isBeforeFirst()&&!rs.isAfterLast()) rn out.write("没有数据");rn rn else rn while(!rs.isLast()) rn rn rs.next();rn strTacticText=rs.getString("TacticText");rn out.write("有数据");rn rn rn%>rnapache tomcat common\lib里有sqljdbc.jarrn报错:rntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Exception in JSP: /rvis/test.jsp:5rnrn2: <%@page language="java" import="java.sql.*" %>rn3: <% rn4: Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");rn5: String sConn="jdbc:sqlserver://192.168.20.88:1433;DatabaseName=RVIS";rn6: Connection conn = DriverManager.getConnection( sConn,"sa","mssql" ); rn7: Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);rn8: request.setCharacterEncoding("UTF-8");rnrnrnStacktrace:rn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnroot cause rnrnjava.lang.NullPointerExceptionrn org.apache.jsp.rvis.test_jsp._jspService(org.apache.jsp.rvis.test_jsp:111)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrn
求教 是哪里错了?
刚接触VB,在做这个登陆页面时 获取ID和PWD文本框的值 代码如下。怎么不正确。报错 实时错误‘91’ 对象变量或With块变量未设置rn Private Sub But_login_Click()rn If Text_Id.Text = "" Or Text_Pwd.Text = "" Thenrn MsgBox "账号或密码不能为空", "提示"rn Elsern Adodc1.Recordset.Find ("AdminID='" & Trim(Text_Id.Text) & "'")rn If Adodc1.Recordset.EOF Thenrn MsgBox "没有找到相关信息 请重新输入", , "提示"rn ElseIf Adodc1.Recordset.Fields("PassWord") = Trim(Text_Pwd.Text) Thenrn MsgBox "欢迎使用图画书借阅系统", , "提示"rn rn Elsern MsgBox "密码错误,请重试", , "提示"rn Text_Pwd.Text = ""rn End Ifrn End Ifrn rnEnd Sub
请问这个this的写法哪里出错了?
如下图所示:rn[img=https://img-bbs.csdn.net/upload/201409/27/1411803443_782651.gif][/img]
请问这个程序哪里出错了?
[code=C/C++]/* HELLO.C -- Hello, world */rnrn#include "stdio.h"rn#include "conio.h"rn#define N 3rnrnint getNum(int a[],int b[]);rnint main()rnrn int a[N],b[N];rn getNum(a,b);rn getch();rn return 0;rnrnrnint getNum(int a[],int b[])rnrn int i=0;rn printf("请输入坐标:\n");rn dorn rn scanf("%d %d",&a[i],&b[i]);rn i++;rn rn while(a[i]==0&&b[i]==0);rn for(i=0;i
请问这个程序哪里出错了???
要求输入字符串。。输出其中的元音字母。。nn#include n#include nint main()nvoid f(char a[]);n char a[80];n printf("enter some words:");n int i;n scanf("%s",a);n f(a);n return 0;nnvoid f(char a[])nn int i,j;char b[80];n for(i=0,j=0;i<=79;i++)n if(a[i]=='a'||a[i]=='e'||a[i]=='i'||a[i]=='o'||a[i]=='u'||a[i]=='A'||a[i]=='E'||a[i]=='I'||a[i]=='O'||a[i]=='U') n b[j]=a[i];j++;n b[j]='\0';nn b[i]='\0';n for(i=0;i<=80;i++)n printf("%c",b[i]);nn
关于这个代码,请问哪里出错了
[code=c]ifstream file;rn file.open(File_Address,ios::in);rn string line;rn char delimiter[] = " ";rn char *p;rn char *Cline;rn Cline = const_cast(line.c_str());rn p = strtok(Cline, delimiter);rn const char *q;rn char* endptr;rn q=p;rn A[0]=strtod(q,&endptr);[/code]rn运行后就出错,应该是这一段“const char *q;rn char* endptr;rn q=p;rn A[0]=strtod(q,&endptr);”有错误,请问哪里出问题了?rn
请问这个程序片段哪里出错了?
是用来把显示模式改成800*600 24位图形显示,并清屏的rn不知道哪里出了错,不能清屏~请大家指教rnrnrnrnrnclean_scan proc nearrnrn;-------------------------------- set the video card to 800*600rnrn mov ah,4fhrn mov al,02hrn mov bx,115hrn int 10hrn rn mov cx,30rnloophere: rn dec cxrn;----------------------------- change the current pagern mov ah,4fhrn mov al,05hrn mov bx,0rn mov dx,cxrn int 10hrnrn push cx rnrn;------------------------ transportrn mov ax,0a000hrn mov es,axrn mov di,00hrn mov al,0hrn mov cx,64000rn rep stosb rnrn pop cxrnrn cmp cx,0rn jnz loopherernrn retrnclean_scan endp
这个程序哪里出错了?
/* 输入y或n就出现循环出错 */rnrn#include "stdio.h"rn#include "conio.h"rnrnint return1();rnint main()rnrn /* 求解k=N/2 */rn return1();rn /* return 0; */rn getch();rnrnrnint caculate(int x)rn/* 计算函数 */rnrn int k;rn k=x/2;rn printf("k is %d\n",k);rn return 0;rnrnint return1()rn int a,b;rn printf("please input k;\n");rn scanf("%d",&a);rn caculate(a);rn printf("again?(Y/N)\n");rn scanf("%d",&b);rn switch(b)rn rn case 'y':return1();rn case 'n':break;rn default:printf("Unknow charactor!Please input again!\n");rn return return1();rn rn /* 循环函数 */rn return 0;rn
这个php代码哪里出错了?
[code=php](' ');[/code]rn我这个php 输出以后,那个"怎么样没有显示rnrnrn$s['title'] 显示了rnrn哪里错了吗?
看看这个哪里出错了
在左键单击时保存位置到pt[]数组中,rn然后在右键单击时,让窗口重绘,rn在wm_paint消息中绘制图形.rnrn窗口过程如下:rn[code=C/C++]LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)rnrn int wmId, wmEvent;rn PAINTSTRUCT ps;rn HDC hdc;rn TCHAR szHello[MAX_LOADSTRING];rn static POINT pt[MAXPOINT];rn static int nCount=0;rn int i,j;rnrnrn switch (message) rn rn case WM_COMMAND:rn wmId = LOWORD(wParam); rn wmEvent = HIWORD(wParam); rn // Parse the menu selections:rn switch (wmId)rn rn case IDM_ABOUT:rn DialogBox(hInst, (LPCTSTR)IDD_ABOUTBOX, hWnd, (DLGPROC)About);rn break;rn case IDM_EXIT:rn DestroyWindow(hWnd);rn break;rn default:rn return DefWindowProc(hWnd, message, wParam, lParam);rn rn break;rn case WM_LBUTTONDOWN:rn pt[nCount].x=LOWORD(lParam);rn pt[nCount].y=LOWORD(lParam);rn SetPixel(hdc,LOWORD(lParam),HIWORD(lParam),RGB(255,0,0));rn nCount++;rn break;rn case WM_RBUTTONDOWN:rn InvalidateRect(hWnd,NULL,TRUE);rn break;rnrnrn case WM_PAINT:rn hdc = BeginPaint(hWnd, &ps);rn // TODO: Add any drawing code here...rn SetCursor(LoadCursor(NULL,IDC_WAIT));rn ShowCursor(TRUE);rn for (i=0;i
这个语句哪里出错了?
sql = "select * from Device where DeviceName="+CString("'") + dlg.m_strDevice + CString("'") + "and ProgID =" + CString("'") + iProgID + CString("'");
这个存储过程哪里出错了?
set cmd10=server.CreateObject("ADODB.COMMAND")rn cmd10.activeconnection=connrn cmd10.commandtype=4rn cmd10.commandtext="dt_persum"rn set rs10=cmd10.executern aaa=rs10.recordcountrn response.write("共有人数")rn response.write(aaa)rn rs10.closern set rs10=nothingrndt_persum中的内容rnselect scardid, sum(creceived) as aaa from tlogs where year(dttime1)=2005 and month(dttime1)=5 group by scardidrn为什么rs10.recordcount返回为-1,不用存储过程时就可以正确返回人数值,不知道用存储过程就不行了,rn
这个程序哪里出错了
#include rn#include rnint minm(int *p, int n)rnrn int i;rn int min;rn if(p==NULL)rn return 0;rn min=*p;rn for(i=1;i
这个语句哪里出错了
我运行如下的语句后,怎么好像有问题啊rnselect stuff(安全,2,3,5) FROM ABCrnrn得到的是:rn0500000000rn05000rn0500000000000000rn05000000000rnrn不是应该得到的是 rn0555000000rn05550rn0555000000000000rn05550000000rnrn难道我哪里写错了??
请问这个哪里错了???
[code=C/C++]rn#include rn#include rnrn#define BASEPAYA 8.75;rn#define BASEPAYB 9.33;rn#define BASEPAYC 10.00;rn#define BASEPAYD 11.20;rn#define BASEHRS 40;rn#define OVERTIME 1.5;rn#define AMT1 300;rn#define AMT2 150;rn#define RATE1 0.15;rn#define RATE2 0.20;rn#define RATE3 0.25;rnrnvoid memu(void);rnchar get_first(void);rnint main(void)rnrn char choice;rn double hours;rn double pay;rn double taxes;rn double gross;rn double net;rnrn memu();rn while((choice = get_first()) != 'q')rn rn if(isspace(choice))rn continue;rn choice = tolower(choice);rn switch(choice)rn rn case 'a': pay = BASEPAYA;rn break;rn case 'b': pay = BASEPAYB;rn break;rn case 'c': pay = BASEPAYC;rn break;rn case 'd': pay = BASEPAYD;rn break;rn default : printf("Please resume enter:");rn memu();rn continue;rn rn printf("Please enter work time:\n");rn scanf("%lf", &hours);rn // 总额rn if(hours <= BASEHRS)rn gross = hours * pay;rn elsern gross = pay * BASEHRS + (hours - BASEHRS) * pay * OVERTIME;rn // 税金rn if(gross <= AMT1)rn taxes = gross * RATE1;rn else if(gross <= AMT1 + AMT2)rn taxes = AMT1 * RATE1 + (gross - AMT1) * RATE2;rn elsern taxes = AMT1 * RATE1 + AMT2 * RATE2 + (gross - AMT1 + AMT2) * RATE3;rn // 净工资rn net = gross - taxes;rn printf("Gross:%.2f\nTaxes:%.2f\nNet:%.2f\n", gross, taxes, net);rn memu();rn rn return 0;rnrnrnvoid memu(void)rnrn printf("**********************************************************\n");rn printf("Please choice wage scale:\n");rn printf("a. $8.75/hr b. $9.33/hr\n");rn printf("c. $10.00/hr d. $11.20/hr\n");rn printf("q. quit\n");rn printf("**********************************************************\n");rnrnrnchar get_first(void)rnrn char ch;rn ch = getchar();rn while(getchar() != '\n')rn continue;rn return ch;rnrnrn[/code]rnvc++6.0编译报错,貌似是if和else那段出错。。可我不知道错在哪里。。
不知是哪里出错了?
import java.io.*;rnrnpublic class TestDatarnrn public static void main(String[]args)throws IOExceptionrn rn double []priees=12.99,8.9;rn String []name="T-shout","XML-Boble";rn int []units=12,9;rn DataOutputStream out=new DataOutputStream(new FileOutputStream("H:\\acc.txt"));rn for(int i=0;i
请问哪里出错了,谢谢
/**rn * rn */rnpackage com.crawl.zongheng;rnrnimport java.util.HashMap;rnimport com.util.RegexUtil;rnimport com.crawl.CrawlBase;rn/**rn * @author Administratorrn *rn */rn//提取某网站某本书的信息rnpublic class IntroPage extends CrawlBasernprivate String url;rnprivate static HashMap params;rnprivate static final String AUTHOR =" ";rnprivate static final String NAME=" ";rnprivate static final String DESC = " ";rnprivate static final String TYPE =" ";rnprivate static final String LASTCHAPTER ="(.*?) ";rnprivate static final String WORDCOUNT ="";rnprivate static final String KEYWORDS =" (.*?)";rnprivate static final String KEYWORD ="(.*?)";rnprivate static final String CHAPTERLISTURL =" ";rnrnstaticrn params=new HashMap();rn params.put("Referer", "http://book.zongheng.com");rn params.put("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.104 Safari/537.36 Core/1.53.4033.400 QQBrowser/9.6.12624.400");rn params.put("Host","www.zongheng.com"); rnrnpublic IntroPage(String url)rn readPageByget(url,params,"utf-8");rn this.url=url;rnrn /**rn * @param argsrn */rnprivate String getName()rn return RegexUtil.getFirstString(getPageSourceCode(), NAME, 1);rnrnrnprivate String getAuthor() rn return RegexUtil.getFirstString(getPageSourceCode(), AUTHOR, 1);rnrnrnprivate String getDesc() rn return RegexUtil.getFirstString(getPageSourceCode(), DESC, 1);rnrnrnprivate String getType() rn return RegexUtil.getFirstString(getPageSourceCode(), TYPE, 1);rnrnrnprivate String getLastCharpter() rn return RegexUtil.getFirstString(getPageSourceCode(), LASTCHAPTER, 1);rnrnrnprivate int getWordCount() rn String wordCount = RegexUtil.getFirstString(getPageSourceCode(), WORDCOUNT, 1);rn return Integer.parseInt(wordCount.trim());rnrnrnprivate String getKeyWordStr() rn return RegexUtil.getFirstString(getPageSourceCode(), KEYWORDS, 1);rnrnrnprivate String getKeyWord() rn return RegexUtil.getString(getKeyWordStr(), KEYWORD, " ", 1);rnrnrnprivate String getChapterListUrl() rn return RegexUtil.getFirstString(getPageSourceCode(), CHAPTERLISTURL, 1);rnrn public static void main(String[] args) rn // TODO Auto-generated method stubrn IntroPage introPage = new IntroPage("http://book.zongheng.com/book/712549.html");rn System.out.println(introPage.getName());rn System.out.println(introPage.getAuthor());rn System.out.println(introPage.getDesc());rn System.out.println(introPage.getType());rn System.out.println(introPage.getLastCharpter());rn System.out.println(introPage.getWordCount());rn System.out.println(introPage.getKeyWord());rn System.out.println(introPage.getChapterListUrl());rn rnrn输出结果以及报错是:rn[img=https://img-bbs.csdn.net/upload/201711/13/1510562555_850249.png][/img]rn首先这些字符不知道为什么出现?还有应该有8个结果,可是我这里似乎只显示了5个。以及出现了其他异常。谢谢大神了。
请问哪里出错了?急
我在oracle 8i上面写了一个触发器rn创建的时候没有错误提示rn但是在使用的时候却有问题了rn请帮忙看看rnrn使用时候的代码如下:rnrnupdate shenpyj set spbj='1' where gwid='1' and spr='10001' and bzid='100';rnrn出错提示如下:rnrnupdate shenpyj set spbj='1' where gwid='1' and spr='10001' and bzid='100'rn *rnERROR 位于第 1 行:rnORA-04091: 表 HUAXIAN.SHENPYJ 发生了变化,触发器/函数不能读rnORA-06512: 在"HUAXIAN.SHENPI", line 26rnORA-04088: 触发器 'HUAXIAN.SHENPI' 执行过程中出错rnrn触发器代码如下:rnrncreate or replace trigger shenpi After rnupdate on shenpyj rnfor each rowrnrndeclarern--声明一个ref游标rntype refcur_t is ref cursor;rnrefcur refcur_t;rnrn--本步骤里面未完成审批的人数rnunfinished_person_count number;rnrn/*当前步骤的并或关系*/rnnow_buz_relation char(1);rnrn/*下一个步骤的ID,当这个步骤是最后一个步骤的时候rn该值与当前步骤的步骤ID一致*/rnnext_buz_id number;rnrn/*下一步骤的人员列表*/rnnext_buz_ids varchar2(1000);rnrn/*下一个步骤的人员数*/rnnext_buz_id_count number;rnrnspr varchar2(30);rnbeginrnrn/*初始化next_buz_id*/rnselect min(bzid) into next_buz_id from shenpyj where gwid=:new.gwid and bzid>=:new.bzid;rnrn--初始化now_buz_relationrnselect bh into now_buz_relation from liucxj where bzid=:new.bzid;rnrnrn--初始化unfinished_person_countrnselect count(*) into unfinished_person_count from shenpyj where gwid=:new.gwid and bzid=:new.bzid and spyj=0;rnrn--初始化next_buz_idsrnopen refcur forrn select spr from shenpyj where gwid=:new.gwid and bzid=next_buz_id order by 1;rnwhile refcur%found loop rn fetch refcur into spr;rn next_buz_ids:=next_buz_ids||','||spr;rnend loop;rnclose refcur;rnrn--当这个步骤只有一个人的时候rnif now_buz_relation='2' thenrn update gongw set yspr=yspr||','||:new.spr where gwid=:new.gwid;rn --如果是最后一个步骤的话rn if next_buz_id=:new.bzid thenrn update gongw set wjbj='2' where gwid=:new.gwid;rn elsern --如果不是最后一个步骤rn update gongw set dspr=next_buz_ids where gwid=:new.gwid;rn end if;rn--如果当前步骤是或关系的话rnelsif now_buz_relation='1' thenrn update gongw set yspr=yspr||','||:new.spr where gwid=:new.gwid;rn --如果是最后一个步骤的话rn if next_buz_id=:new.bzid thenrn update gongw set wjbj='2' where gwid=:new.gwid;rn elsern update gongw set dspr=next_buz_ids where gwid=:new.gwid;rn end if;rn--当前步骤的关系是顺序关系的话 rnelsif now_buz_relation='0' thenrn update gongw set yspr=yspr||','||:new.spr where gwid=:new.gwid;rn --如果本步骤中所有的人都已经处理完的话rn if unfinished_person_count=0 thenrn --如果是最后一个步骤的话rn if next_buz_id=:new.bzid thenrn update gongw set wjbj='2' where gwid=:new.gwid;rn elsern --如果不是最后一个步骤的话rn update gongw set dspr=next_buz_ids where gwid=:new.gwid; rn end if;rn elsern --在待审批人中删除本人rn update gongw set dspr=replace(dspr,:new.spr||',') where gwid=:new.gwid; rn end if; rnend if;rnend;
着急~~请问哪里出错了??
我的页面HTML代码:rnrnrn new document rnrnrn rn rnrnrnrn rnrnrn请问为什么不会弹出对话框??哪里得错误??rn谢谢
请问哪里出错了呢?
显示结果是这样,Warning: fread(): supplied argument is not a valid stream resource in C:\wamp\www\pic\put_pic.php on line 8rn下面是我的代码rn
请问究竟是哪里出错了..
[code=PHP]rnrn Movie Review Databasern rn rn $num_movies Moviesrn rn ENDHTML ;rn?>rn[/code]rnrn它就提示我rn[code=PHP]rnParse error: syntax error, unexpected $end in D:\Program Files\WEB\Apache\htdocs\Table\table2.php on line 43rn[/code]rn43行就是最后一行 : "?>"这个 rn rn Movie Titlern Year of Releasern Movie Lead Actorrn Movie Directorrn Movie Typern rn ENDHTML;rn while($row=mysql_fetch_assoc($result))rn extract($row) ;rn $table .= << $movie_namern $movie_yearrn $movie_directorrn $movie_leadactorrn $movie_typern rn ENDHTML ;rn rn $table .= <<
VS萌新求教
这个问题怎么解决,有没有大佬给小萌新解释一下
萌新求教!
想实现的功能是,在PC机上写BEEP_ON,来通过串口控制单片机上的蜂鸣器开启。这样写哪里有问题,单片机没有反应啊。。。[img=https://img-bbs.csdn.net/upload/201812/04/1543893820_152382.png][/img]rnrnrn
萌新求教
在树状控件中,用((TreeView)sender).SelectedNode.FullPath.Replace("\\\\", "\\")获取路径,为什么要加replace,直接((TreeView)sender).SelectedNode.FullPath也没出错?
萌新求教java
看视频学习java rn上面说当:rnbyte a=3rnbyte b=4rnbyte c=5rna=b+c 编译没过 老师说因为右边是变量,不确定,所以无法判断和赋值;rn那么为什么:rnbyte a=3rna=a+5 编译就过了呢 就没问题了呢 右边不还是不确定他的值 无法判断吗rn
萌新求教!!!!
在读取csv文件时 第一行字段数 小于 后几行的字段数怎么办 用的是(LumenWorks.Framework.IO.Csv)
出错了,求教,求教!
mysql已经启动了。我运行phpMyAdmin时出现这样的错误:rnErrorrnMySQL said: rn#2003 - Can't connect to MySQL server on 'localhost' (10061)rnFatal error: Call to undefined function: pma_showmysqldocu() in E:\php\www\phpMyAdmin\libraries\common.lib.php on line 468rnrn请高手帮帮我。
求教,我的makefile文件哪里出错了
一个IPsec加密程序,代码是从intel官网下载的,里面有个小的测试程序,在应用层跑通了,现在想打包成.ko文件加载到内核中,但是对makefile进行改写后,出现了好多问题。这是makefile的代码rnINCLUDE_DIRS := ../include ..rnINCLUDES := $(foreach i,$(INCLUDE_DIRS),-I $i)rnrnCC := gccrnCXXFLAGS := -g -D LINUX $(INCLUDES)rnLDFLAGS += -grnrnlib_objs := \rn aes128_cbc_dec_by4_sse.o \rn aes128_cbc_dec_by8_avx.o \rn aes128_cntr_by4_sse.o \rn aes128_cntr_by8_avx.o \rn aes128_ecbenc_x3.o \rn aes192_cbc_dec_by4_sse.o \rn aes192_cbc_dec_by8_avx.o \rn aes192_cntr_by4_sse.o \rn aes192_cntr_by8_avx.o \rn aes256_cbc_dec_by4_sse.o \rn aes256_cbc_dec_by8_avx.o \rn aes256_cntr_by4_sse.o \rn aes256_cntr_by8_avx.o \rn aes_cbc_enc_128_x4.o \rn aes_cbc_enc_128_x8.o \rn aes_cbc_enc_192_x4.o \rn aes_cbc_enc_192_x8.o \rn aes_cbc_enc_256_x4.o \rn aes_cbc_enc_256_x8.o \rn aes_keyexp_128.o \rn aes_keyexp_192.o \rn aes_keyexp_256.o \rn aes_xcbc_mac_128_x4.o \rn aes_xcbc_mac_128_x8.o \rn mb_mgr_aes192_flush_avx.o \rn mb_mgr_aes192_flush_sse.o \rn mb_mgr_aes192_submit_avx.o \rn mb_mgr_aes192_submit_sse.o \rn mb_mgr_aes256_flush_avx.o \rn mb_mgr_aes256_flush_sse.o \rn mb_mgr_aes256_submit_avx.o \rn mb_mgr_aes256_submit_sse.o \rn mb_mgr_aes_flush_avx.o \rn mb_mgr_aes_flush_sse.o \rn mb_mgr_aes_submit_avx.o \rn mb_mgr_aes_submit_sse.o \rn mb_mgr_aes_xcbc_flush_avx.o \rn mb_mgr_aes_xcbc_flush_sse.o \rn mb_mgr_aes_xcbc_submit_avx.o \rn mb_mgr_aes_xcbc_submit_sse.o \rn mb_mgr_hmac_flush_avx.o \rn mb_mgr_hmac_flush_avx2.o \rn mb_mgr_hmac_flush_sse.o \rn mb_mgr_hmac_md5_flush_avx.o \rn mb_mgr_hmac_md5_flush_avx2.o \rn mb_mgr_hmac_md5_flush_sse.o \rn mb_mgr_hmac_md5_submit_avx.o \rn mb_mgr_hmac_md5_submit_avx2.o \rn mb_mgr_hmac_md5_submit_sse.o \rn mb_mgr_hmac_sha_224_flush_avx.o \rn mb_mgr_hmac_sha_224_flush_avx2.o \rn mb_mgr_hmac_sha_224_flush_sse.o \rn mb_mgr_hmac_sha_224_submit_avx.o \rn mb_mgr_hmac_sha_224_submit_avx2.o \rn mb_mgr_hmac_sha_224_submit_sse.o \rn mb_mgr_hmac_sha_256_flush_avx.o \rn mb_mgr_hmac_sha_256_flush_avx2.o \rn mb_mgr_hmac_sha_256_flush_sse.o \rn mb_mgr_hmac_sha_256_submit_avx.o \rn mb_mgr_hmac_sha_256_submit_avx2.o \rn mb_mgr_hmac_sha_256_submit_sse.o \rn mb_mgr_hmac_sha_384_flush_avx.o \rn mb_mgr_hmac_sha_384_flush_avx2.o \rn mb_mgr_hmac_sha_384_flush_sse.o \rn mb_mgr_hmac_sha_384_submit_avx.o \rn mb_mgr_hmac_sha_384_submit_avx2.o \rn mb_mgr_hmac_sha_384_submit_sse.o \rn mb_mgr_hmac_sha_512_flush_avx.o \rn mb_mgr_hmac_sha_512_flush_avx2.o \rn mb_mgr_hmac_sha_512_flush_sse.o \rn mb_mgr_hmac_sha_512_submit_avx.o \rn mb_mgr_hmac_sha_512_submit_avx2.o \rn mb_mgr_hmac_sha_512_submit_sse.o \rn mb_mgr_hmac_submit_avx.o \rn mb_mgr_hmac_submit_avx2.o \rn mb_mgr_hmac_submit_sse.o \rn md5_x4x2_avx.o \rn md5_x4x2_sse.o \rn md5_x8x2_avx2.o \rn save_xmms.o \rn sha1_mult_avx.o \rn sha1_mult_sse.o \rn sha1_one_block_avx.o \rn sha1_one_block_sse.o \rn sha1_x8_avx2.o \rn sha224_one_block_avx.o \rn sha224_one_block_sse.o \rn sha256_oct_avx2.o \rn sha256_one_block_avx.o \rn sha256_one_block_sse.o \rn sha384_one_block_avx.o \rn sha384_one_block_sse.o \rn sha512_one_block_avx.o \rn sha512_one_block_sse.o \rn sha512_x2_avx.o \rn sha512_x2_sse.o \rn sha512_x4_avx2.o \rn sha_256_mult_avx.o \rn sha_256_mult_sse.o \rn gcm_defines.o\rn mb_mgr_datastruct.o\rn job_aes_hmac.o\rn constants.o\rn aes_xcbc_expand_key.o \rn mb_mgr_avx.o \rn mb_mgr_avx2.o \rn mb_mgr_sse.o \rn md5_one_block.o\rn gcm_sse.o \rn gcm_avx_gen2.o \rn gcm_avx_gen4.ornrnOBJ := $(foreach i,$(lib_objs),../obj/$(i))rnrnKERNELBUILD := /lib/modules/$(shell uname -r)/buildrndefault:rn make -C $(KERNELBUILD) M=$(shell pwd) modulesrnrnmain.o: main.c do_test.h $(OBJ)rn $(CC) $(CXXFLAGS) -c $< -o $@rnrnobj-m += gcm.orngcm-objs:= main.o $(OBJ)rnrnrninstall:rn insmod gcm.kornclean:rn rm -f *.o *.cmd *.ko *.mod.crnrnrnmake出现错误:rnmake -C /lib/modules/2.6.38-8-generic/build M=/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp modulesrnmake[1]: 正在进入目录 `/usr/src/linux-headers-2.6.38-8-generic'rn CC [M] /home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/main.ornIn file included from /home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/main.c:41:0:rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:147:6: warning: "TEST" is not definedrn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:147:14: warning: "TEST_SSE" is not definedrn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h: In function ‘TEST_GCM’:rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:281:5: error: ‘UINT64’ undeclared (first use in this function)rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:281:5: note: each undeclared identifier is reported only once for each function it appears inrn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:281:12: error: expected ‘;’ before ‘keys128’rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:282:5: error: ‘UINT8’ undeclared (first use in this function)rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:282:11: error: expected ‘;’ before ‘plaintext’rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:283:11: error: expected ‘;’ before ‘ciphertext’rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:287:5: error: implicit declaration of function ‘DECLARE_ALIGNED’rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:287:27: error: expected ‘)’ before ‘iv’rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:287:41: error: expected expression before ‘’ tokenrn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:288:11: error: expected ‘;’ before ‘aad’rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:289:27: error: expected ‘)’ before ‘hashSubKey’rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:289:49: error: expected expression before ‘’ tokenrn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:291:11: error: expected ‘;’ before ‘auth_tag’rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:293:5: error: ‘gcm_data’ undeclared (first use in this function)rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:293:14: error: expected ‘;’ before ‘gdata’rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:294:28: error: expected ‘)’ before ‘exp_keys’rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:295:11: error: expected ‘;’ before ‘text’rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:296:11: error: expected ‘;’ before ‘auth_test’rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:297:5: warning: ISO C90 forbids mixed declarations and codern/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:300:5: error: implicit declaration of function ‘aes_keyexp_128_enc’rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:300:24: error: ‘keys128’ undeclared (first use in this function)rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:300:33: error: ‘gdata’ undeclared (first use in this function)rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:301:5: error: implicit declaration of function ‘aesni_gcm_precomp’rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:301:31: error: ‘hashSubKey’ undeclared (first use in this function)rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:303:5: error: implicit declaration of function ‘aesni_gcm_enc’rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:303:33: error: ‘plaintext’ undeclared (first use in this function)rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:303:63: error: ‘iv’ undeclared (first use in this function)rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:304:19: error: ‘aad’ undeclared (first use in this function)rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:304:37: error: ‘auth_test’ undeclared (first use in this function)rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:307:24: error: ‘ciphertext’ undeclared (first use in this function)rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:312:24: error: ‘auth_tag’ undeclared (first use in this function)rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:319:5: error: implicit declaration of function ‘aesni_gcm_dec’rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h: At top level:rn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/do_test.h:341:16: error: expected ‘)’ before ‘*’ tokenrn/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/main.c:43:20: fatal error: mb_mgr.h: 没有那个文件或目录rncompilation terminated.rnmake[2]: *** [/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp/main.o] 错误 1rnmake[1]: *** [_module_/home/zjz/桌面/IPsec_006_code_EDC_v2-kernel/code/LibTestApp] 错误 2rnmake[1]:正在离开目录 `/usr/src/linux-headers-2.6.38-8-generic'rnmake: *** [default] 错误 2rnrnrn情况就是这样,代码在应用层是可以的,我只是修改了几个头文件还有printf变成了printk之类的,然后修改了下makefile,就出现了这么些错误,真心求教各位
不知哪里出错了?求教啊!
/*从10000到100000中选出每一位数字不相同的书数*/rn#include rn#include rnrnint main(int argc, char *argv[])rnrn int i,a,b,c,d,e;rn int av[5],j,k;rn for(i=10000;i<100000;i++)/*分离每一位数字*/rn rn a=i/10000;av[4]=a;rn b=i/1000%10;av[3]=b;rn c=i/100%10;av[2]=c;rn d=i%100/10;av[1]=d;rn e=i%10; av[0]=e;rn for(j=0;j<5;j++)/*数组里面的每一位数与后面的数字都不相同*/rn for(k=j+1;k<5;k++)rn if(a[j]!=a[k])rn printf("%d",i);break;rn rn rn getch(); rn return 0;rnrn等不到真确答案,我的逻辑有错吗?求各位帮忙看看吧!
求教,程序不知道哪里出错了
rnrn#include rnrn#include rnusing namespace std;rnrnclass Dogrnpublic:rn static int Dogs;rnrn static void GetDogs(int a);rnrn;rnint Dog::Dogs=100;rnvoid Dog::GetDogs(int a)rn int Dogs1=Dogs+a;rn cout<<"Dogs:"<>a1;rn cout<<"请输入存或取的数量?"<>a;rn cout<>a;rn cout<
相关热词 c#检测非法字符 c#双屏截图 c#中怎么关闭线程 c# 显示服务器上的图片 api嵌入窗口 c# c# 控制网页 c# encrypt c#微信网页版登录 c# login 居中 c# 考试软件