求大神解答,昨天晚上调试了一夜没弄出来

貌似是连接池出了什么问题,连接池用的Druid,我在eclipse的tomcat下就能运行,打成war包放在tomcat下单独发布就出错图片说明

0

2个回答

这是tomcat抛的异常图片

0

那肯定是你打war包出错了,你项目中是不是引用了第三方的jar包,你打包的时候的一块打进去

0
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
求解答,一下午没弄出来
[img=https://img-bbs.csdn.net/upload/201409/16/1410873230_169884.jpg][/img] 看图打开ASp服务器时出现的,以前还好好的,我是初学者
请教:gridview的一个问题,昨天晚上弄了一晚没弄出来!!!急急!
我在gridview里添加了一列templatefilde作为删除列,当我点删除的时候,怎么样才能获取当前所在行的某一列的值呢???
用脚本实现弹出窗口的尺寸,想了一夜,还是没弄出来
登陆页面(login.asp)尺寸比较小,居中显示,正确输入用户名和密码就可以打开首页(index.asp)rnrnrn现在问题是首页打开后尺寸跟登陆页面一样大,如何让首页正常显示,而不受登陆页面的影响rn其中脚本代码如下rn rn
面试题,求大神解答
请用C#实现以下功能rn1.一个winform程序,内嵌浏览器访问一个html页面,显示html内容rn2.在html页面中创建一个按钮A,点击按钮可以显示又winform弹出的对话框rn3.在winform程序界面上,创建一个按钮B,点击后,显示又html javascript弹出的消息提示框rn4.由winform程序界面上,创建一个按钮C,点击后将一个js函数注入到浏览器的html中,改变按钮A的点击效果,
求大神帮忙解答!!
大神,您好:rn 小弟遇到了下面的代码:rn [code=java]<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>rn<%rnString path = request.getContextPath();rnString basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";rnString errorMessage=(String)request.getAttribute("errorMessage");rn%>rn//七rnrnrnrn rn 远程医患交流平台-登陆rn rnrnrnrnrn rn rn rn rn rn rn 账 户:rn 密 码: rn 用户类型:医生用户患者用户管理员 rn <%rn if(errorMessage!=null) %>rn <%=errorMessage %>rn <% rn %>rnrnrn rn rn rn rn rn rn rn rn rnrnrnrn[/code]rn 下图为代码运行效果:rn [img=https://img-bbs.csdn.net/upload/201601/20/1453219648_447217.jpg][/img]rn 求高手点拨:rn 这个类型的 “表单提交 ”的机制,在哪行代码体现?rn 并且,这个类型的用户,单击图片中的“登陆”按钮后,应该触发了服务器验证用户是否合法的流程中。rn 上面:“单击图片中的登陆按钮后,登入系统。这一行 ”伪代码“, 要是换成对应的Java代码或者Jsp代码的话,应该分别走哪几行代码?rn 希望高手,能够指教!!rn 小弟,100分奉上!!rn [img=https://img-bbs.csdn.net/upload/201601/20/1453220877_494394.png][/img]
thinkphp求大神解答
我有一个form表单 rn rn1:rn2:rn3:rn4:rnrn我想把 1存到一个数据表 2存到另一个数据表 3存到另外一个数据表里, 这个东西应该怎么写,或者大神忘记我这个表单 直接给个方法 求帮助!!!
求大神解答
2、 设计程序的功能是找出1000以内这样的正整数N:它的不同值的因子(包括1和N在内)之和是一个素数,例如16,1+2+4+8+16=31rn要求:rn(1)单击“开始”按钮,找出符合要求的正整数N,将N 和不同值因子和等式,显示在列表框当中。例如“16,1+2+4+8+16=31”rn(2)单击“清除”按钮,则将列表框清空,单击“结束”按钮,结束程序运行;rn(3)程序中必须包含一个判断某数是否为素数的通用过程。rn(4)将窗体文件和工程文件分别命名为F2和P2,并保存到名为T2的文件夹内rn
求大神解答,谢谢
grant selectrnon table 职工,部门rnto 王明rnrnrnrn消息102,级别15,状态1,第2行rn','附近有语法错误。
tomcat报错 求大神解答!
rn错误信息如下。。 我百度了一下都是说连接不了数据库,但是解决方法都不管用rnrnERROR JDBCExceptionReporter:78 - Cannot create PoolableConnectionFactory (到主机 的 TCP/IP 连接失败。 java.net.ConnectException: Connection timed out: connect)rnrn我做了很多尝试,但是都没用,不知道问题出在哪? 我是做前端的,这个后台java程序不是我写的 所以具体该怎么处理这个东西??
新手求大神解答!!
最近学习javaweb的servlet,做了一个查询 跳转完了总是空白页rnconsole里是这样的rn严重: Servlet.service() for servlet jsp threw exceptionrnjava.lang.ArrayIndexOutOfBoundsException: -1rn at org.eclipse.jdt.internal.compiler.codegen.StackMapFrame.addStackItem(StackMapFrame.java:92)rn at org.eclipse.jdt.internal.compiler.ClassFile.traverse(ClassFile.java:5586)rn at org.eclipse.jdt.internal.compiler.ClassFile.generateStackMapTableAttribute(ClassFile.java:4303)rn at org.eclipse.jdt.internal.compiler.ClassFile.completeCodeAttribute(ClassFile.java:1378)rn at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:338)rn at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:270)rn at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:566)rn at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:635)rn at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.generateCode(CompilationUnitDeclaration.java:368)rn at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:781)rn at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:470)rn at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:436)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:361)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:336)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)rn at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:405)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:349)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:721)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)rn at servlets.Update1.doGet(Update1.java:32)rn at servlets.Update1.doPost(Update1.java:40)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)rn at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:526)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:655)rn at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Unknown Source)rnrnorg.apache.jasper.JasperException: Unable to compile class for JSPrn at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:579)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:405)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:349)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:721)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)rn at servlets.Update1.doGet(Update1.java:32)rn at servlets.Update1.doPost(Update1.java:40)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)rn at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:526)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:655)rn at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Unknown Source)rnCaused by: java.lang.ArrayIndexOutOfBoundsException: -1rn at org.eclipse.jdt.internal.compiler.codegen.StackMapFrame.addStackItem(StackMapFrame.java:92)rn at org.eclipse.jdt.internal.compiler.ClassFile.traverse(ClassFile.java:5586)rn at org.eclipse.jdt.internal.compiler.ClassFile.generateStackMapTableAttribute(ClassFile.java:4303)rn at org.eclipse.jdt.internal.compiler.ClassFile.completeCodeAttribute(ClassFile.java:1378)rn at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:338)rn at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:270)rn at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:566)rn at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:635)rn at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.generateCode(CompilationUnitDeclaration.java:368)rn at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:781)rn at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:470)rn at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:436)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:361)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:336)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)rn at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)rn ... 39 morern
求大神解答!
[img=https://img-bbs.csdn.net/upload/201310/13/1381655115_7818.jpg][/img]rn我是打算添加textbox里面的内容进去Access里再从datagridview里显示出更新之后的内容,可是却出现这样的错误了,求解决
软件开发求大神解答!!
如何编写一个java程序,让qq邮箱里面的邮件自动下载到一个指定的文件夹,求各位朋友帮帮忙,需要用到哪些技术
程序崩溃了,求大神解答
#pragma warning(disable:4996)nn#includen#includen#includennusing namespace std;nnint strcompare(char *ch1, char *ch2)nn for (int i = 0; i < 25; i++)n if (ch1[i] != ch2[i])n return 0;n return 1;nnnint main()nn char *no = "" ;n while (1)n n #ifndef Fn for (int i = 0; i < 25; i++)n n cin >> no[i];n n #define Fn #endifnn time_t now = time(0);n char *dt = ctime(&now);n //cout << "本地日期和时间:" << dt <
菜鸟求大神解答
//3. 判断邮箱格式是否正确 rn A:合法的邮箱名中至少要包含“@”和“.”, rn B:并检查“@”是否在“.”之前rn C: “@” 后不能直接是 ‘ . ’rn D:“ . ”不能结尾 rn这题要怎么做 有点蒙了
java 求大神解答
public class Usefinrnrn final int a=1;rn int b;rn public void print()rn rn System.out.println("a+b="+a+b);rn rn rn rnrnclass Usefin1rnrn public static void main(String args[] )rn rn Usefin a1=new Usefin();rn a1.b=2;rn a1.print();rn rnrn书上结果为12,自己运行错误为:在类Usefin中找不到住方法
求大神帮忙解答~~~
大神们 帮我看下,为什么int类型超出最大值范围,输出最后会变成0, 而不是负数?[img=https://img-bbs.csdn.net/upload/201312/07/1386418079_613433.jpg][/img]
各位大神求解答
本人刚学软件的菜鸟,利用不安全代码unsafe使用指针对图像进行雾化,但是有的图像可以运行,rn有的老是出现下面的警告:rnrn“System.AccessViolationException”类型的未经处理的异常出现在 雾化效果.exe 中。rnrn其他信息: 尝试读取或写入受保护的内存。这通常指示其他内存已损坏。rnrnrn本人的源程序如下:rnusing System;rnusing System.Collections.Generic;rnusing System.ComponentModel;rnusing System.Data;rnusing System.Drawing;rnusing System.Linq;rnusing System.Text;rnusing System.Windows.Forms;rnusing System.Drawing.Imaging;rnrnnamespace 雾化效果rnrn public partial class Form1 : Formrn rn public Form1()rn rn InitializeComponent();rn rn Bitmap bmp;rn private void button1_Click(object sender, EventArgs e)rn rn OpenFileDialog ofd = new OpenFileDialog();rn ofd.Filter = "JEPG文件(*.jpg)|*.jpg";rn ofd.ShowDialog();rn if (ofd.FileName != "")rn rn pictureBox1.Visible = true;rn bmp = new Bitmap(ofd.FileName);rn pictureBox1.Image = bmp;rn pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;rn rn elsern return;rn rnrn private void button2_Click(object sender, EventArgs e)rn rn Bitmap b = (Bitmap)bmp.Clone();rn BitmapData bmData = b.LockBits(new Rectangle(0,0,b.Width,b.Height)rn ,ImageLockMode.ReadWrite,PixelFormat.Format24bppRgb);rn int stride = bmData.Stride;rn System.IntPtr Scan0=bmData.Scan0;rn unsafern rn byte* p=(byte*)(void*)Scan0;rn int Offset=stride-3*b.Width;rn int red, green, blue;rn for (int j = 0; j < b.Height; ++j)rn rn for (int i = 0; i < b.Width; ++i)rn rn Random R = new Random();rn int r = R.Next(200000);rn int x = j + r % 8;rn int y = i + r % 8;rn if (x >= b.Width) x = b.Width - 1;rn if (y >= b.Height) y = b.Height - 1;rn red = (p +( 3 * (y-i) + (x-j) * (3 * (b.Width-1) + Offset)))[0];rn green = (p + (3 * (y-i) + (x-j) * (3 * (b.Width-1) + Offset)))[1];rn blue = (p + (3 * (y-i) + (x-j) * (3 * (b.Width-1) + Offset)))[2];rn p[0] = (byte)red;rn p[1] = (byte)green;rn p[2] = (byte)blue;rn p += 3;rn rn p += Offset;rn rn b.UnlockBits(bmData);rn pictureBox1.Image = b;rn rnrn rn rnrn求大神指导啊,灰常感谢。[/size]
不明白,求大神解答
int CreateBiTree(BiTree *T, char* S, int *idx);这是函数原型;rnCreateBiTree(&((*T)->lchild),S,&(++(*idx)));递归调用;rnerror #2088: Lvalue required.rnType error in argument 3 to 'CreateBiTree'; expected 'int *' but found 'int'.rn这都是指向第二行的错误,求解答rnvc++可以通过,但是pelles c报错,上面就是pelles c编译时候的问题
求大神解答啊!!!
[img=https://img-bbs.csdn.net/upload/201506/05/1433475964_487764.png][/img][img=https://img-bbs.csdn.net/upload/201506/05/1433475980_860074.png][/img]
求安卓大神解答!!~~~??
someView.setOnLongClickListener(new View.OnLongClickListener() rn // Called when the user long-clicks on someViewrn public boolean onLongClick(View view) rn if (mActionMode != null) rn return false;rn rnrn // Start the CAB using the ActionMode.Callback defined abovern mActionMode = getActivity().startActionMode(mActionModeCallback);rn view.setSelected(true);rn return true;rn rn);rnrnrnrn为什么要判断mActionMode != null) 谢谢!rn本人是菜鸟~
离散数学,,,求大神解答
求 (¬p∨¬q)→(p↔¬q)的主析取范式和主合取范式n求解答求解答求解答求解答求解答求解答
求大神解答!!!!!
这段代码为什么可以弹出来1不能弹出来2???????![图片](https://img-ask.csdn.net/upload/201703/23/1490226986_352921.png)
异常错误,求大神解答
![![图片说明](https://img-ask.csdn.net/upload/201606/04/1465022376_985865.png)图片说明](https://img-ask.csdn.net/upload/201606/04/1465022369_81740.png)
求大神解答啊
连上数据库之后 打不开collection了 mongoVEU是1.6.3 32位的 系统是64位的 但是笔记本也是64位系统 可以正常使用啊 为什么换上公司的台机就不行了呢???rnrn[img=https://img-bbs.csdn.net/upload/201606/21/1466501111_394183.png][/img]
新手 求大神解答
[img=https://img-bbs.csdn.net/upload/201612/22/1482372220_679957.png][/img] 这个问题怎么解决 就一个c#登陆界面密码验证的问题 用mysql 这里就是不行为什么啊 求大神详细解答下 万分感谢rn
求大神解答技术问题?
[img=https://img-bbs.csdn.net/upload/201702/11/1486790047_79897.png][/img]rn这是我在百度搜索中看到的 点击上一页下一页 整个页面不会刷新,只刷新这一块内容,而且还是带条件的进行查询的,这个用到的什么技术???
初学者求大神解答
protected void Button1_Click(object sender, EventArgs e)rn rn string name = Session["Vipname"].ToString();rn string userid = Session["Vipcard"].ToString();rn string zhuti = txt_zhutiadd.Text.ToString();rn string neirong = txt_neirongadd.Text.ToString();rn //string time = DateTime.Now.ToString();rn string sConn = ConfigurationManager.ConnectionStrings["ConnStr"].ToString();rn using (SqlConnection Conn = new SqlConnection(sConn))rn rn Conn.Open();rn using (SqlCommand cmd = new SqlCommand("Insert INTO [Liuyan] ([lytitle], [lycontent] ,[username] , [userid]) VALUES (@zhuti,@neirong,@name,@userid)", Conn))rn rn cmd.Parameters.AddWithValue("@zhuti", zhuti);rn cmd.Parameters.AddWithValue("@neirong", neirong);rn //cmd.Parameters.AddWithValue("@time", time);rn cmd.Parameters.AddWithValue("@name", name);rn cmd.Parameters.AddWithValue("@userid", userid);rn cmd.ExecuteNonQuery();rn rn rn rn rn总是报错,看了半天实在是看不出哪里错了,求大神解答rnrn编译不报错 运行出错rnrn行 40: cmd.Parameters.AddWithValue("@name", name);rn行 41: cmd.Parameters.AddWithValue("@userid", userid);rn行 42: cmd.ExecuteNonQuery();rn行 43: rn行 44: rn rnrn
求大神解答!!!
例题:打印1到5的阶乘值。rnint fac(int n)rnrn static int f=1;rn f=f*n;rn return(f);rnrnmain()rnrn int i;rn for(i=1;i<=5;i++)rn printf("i=%d,fac(i)=%ld\n",i,fac(i));rnrnrnrn按照书上打的,但是电脑编译不出来,有错误。请问,哪里错了?
flash求大神解答
小弟,做了一个简单的,flash与vb结合的程[img=https://img-bbs.csdn.net/upload/201504/01/1427849436_788729.png][/img]序,就是flash 与vb交互,在排版方面遇到问题,想要让中间的FLVPlayback全屏展示该如何操作
求mfc大神解答
创建了Cdialog类怎么找不到相关类的Dlg.cpp
求大神帮忙解答
写程序帮李老师把2 组学生配对。有两组学生,A 组跟 B组。每个学生有自己的分数,分rn数为1 到100 的整数。一个 A 组的学生能跟一个 B组的学生配成一对,条件是两个学生分rn数差别不能超过某非负整数 k 。每一对包含一个 A 组的学生跟一个 B组的学生。每个学生rn只能参与一对不能参与多对。rn程序需要从标准输入(stdin)读问题数据,包括 3 行。第一行有 3 个整数,第一是 k ,第rn二是A 组的人数,第三是 B组的人数。第二第三行分别是 A 组 B组学生的分数,空各字符rn为定界符。答案为最多能配对的数量。程序需要把答案写到标准输出(stdout)。rn输入例子1:rn3 4 5rn1 1 0 2 0 2 6rn2 7 1 4 2 3 1 0 0rn输出例子1:rn3rn输入例子2:rn0 5 5rn1 7 4 5 0 2 3 1 0rn1 0 5 0 2 3 7 4 1 0 0rn输出例子2:rn4rn
相关热词 c# gdi 占用内存 c#中遍历字典 c#控制台模拟dos c# 斜率 最小二乘法 c#进程延迟 c# mysql完整项目 c# grid 总行数 c# web浏览器插件 c# xml 生成xsd c# 操作sql视图