求大神帮我看下这个是个什么情况 [问题点数:40分]

Bbs1
本版专家分:0
结帖率 50%
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:0
大神帮我看下这个奇怪的问题。。。。
我在webview中,实现 javascript 调用java类方法,代码如下rnrnwebView_msg.setVerticalScrollbarOverlay(true);rnWebSettings settings = webView_msg.getSettings();rnsettings.setSupportZoom(true);rnsettings.setJavaScriptEnabled(true);rnsettings.setJavaScriptCanOpenWindowsAutomatically(true);rnwebView_msg.addJavascriptInterface(new JSInvokeClass(_context), "js2java");rn rnwebView_msg.setWebChromeClient(new WebChromeClient());rn rnwebView_msg.loadDataWithBaseURL(null, model.txt, "text/html", "utf-8", null);rnrn我用手机连接电脑直接运行,可以实现,但是我将程序打包后,再安装,就不能实现了,请各位<em>大神</em><em>帮我</em>看一下,谢谢。。。
这个USB_CAN是个什么情况
[img=https://img-bbs.csdn.net/upload/201708/30/1504076188_668679.png][/img]
帮我看下 socket接收是空的什么情况
通过第三方软件连接单片机进行TCP/IP通信,不会出现这种情况。自己写的刚开始能接收到单片机发来的数据 后面就为空了 <em>什么情况</em>。。rn出错代码: iLen = m_socket.Receive(buf, 120);rnilen一直为0。。。。rn代码如下:rnrnDWORD WINAPI ThreadProc(LPVOID pParam)rnrnrn rn CTestDlg* dlg=(CTestDlg*)pParam; rn AfxSocketInit();rnrn CString ip, port, msg;rn aysocket m_socket;rnrn dlg->GetDlgItem(IDC_IPADDRESS1)->GetWindowText(ip);rn dlg->GetDlgItem(IDC_PROT)->GetWindowText(port);rnrnrnrn rn rn if(!m_socket.Create()) rn dlg->MessageBox("创建socket失败!");rn return 0;rn rn rn int nPort = atoi(port); rn int nRow;rn rn rn if(m_socket.Connect(ip, nPort))rn rn CString strData; rn SYSTEMTIME st;rn char tmp[20];rn rn rn rn while(true)rnrn char txtBox[120];rn unsigned char buf[120];rn txtBox[0] = 0;rnrnrn if(dlg->is_stop == true)rn dlg->MessageBox("停止tcp成功!");rn break;rn rn int iLen;rn rn iLen = m_socket.Receive(buf, 120);rn rn if(iLen ==0)rn int a = GetLastError();rn continue;rn rn if(iLen == SOCKET_ERROR) rn rn dlg->MessageBox("Could not Recieve"); rn rn else rn rnrn AppendTxt(buf, iLen, txtBox);rn rn GetLocalTime(&st);rn sprintf(tmp, "\n\r\n\r%2d-%2d-%2d %2d:%2d:%2d\n\r", st.wYear, st.wMonth, st.wDay, st.wHour,st.wMinute,st.wSecond);rn rn nRow = dlg->m_ser_list.InsertItem(0, tmp);//插入行rn dlg->m_ser_list.SetItemText(nRow, 1, txtBox);//设置数据rn rn memset(buf,0,sizeof(buf));rn memset(txtBox,0,sizeof(txtBox));rn rn rn m_socket.Close();rn shutdown (m_socket, 0x00);rn rn elsern dlg->MessageBox("连接刷卡机超时,请检查单片机是否开启或IP端口是否填错了!");rn dlg->GetDlgItem(BTN_CONTENT)->EnableWindow(TRUE);rn dlg->GetDlgItem(BTN_DISCOCNTENT)->EnableWindow(FALSE);rn return 0;rn rnrn rn return 0;rn rn
帮我看下这个是怎么做的/
http://www.7887.com/list.html?tid=5&a=&b=&c=&d=&rnrn<em>这个</em>地址下面歌曲的 1 2 3 4 5 6 类似与<em>这个</em>是用什么做的,给点指点,是用Literal吗,谢谢了
大神们,帮我看下这段windows程序到底是什么情况
[code=C/C++]#includernrnLRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);rnrnint WINAPI WinMain(rn HINSTANCE hInstance,rn HINSTANCE hPrevInstance,rn LPSTR lpCmdLine,rn int nCmdShowrn)rnrn static TCHAR szAppName[]=TEXT("Demo");rn //HWND hwnd;rn //MSG msg;rn WNDCLASS wcs;rnrn wcs.cbClsExtra=0;rn wcs.cbWndExtra=0;rn wcs.hbrBackground=(HBRUSH)GetStockObject(WHITE_BRUSH);rn wcs.hCursor=LoadCursor(NULL,IDC_ARROW);rn wcs.hIcon=LoadIcon(NULL,IDI_ASTERISK);rn wcs.hInstance=hInstance;rn wcs.lpfnWndProc=WndProc;rn wcs.lpszClassName=szAppName;rn wcs.lpszMenuName=NULL;rn wcs.style=CS_HREDRAW|CS_VREDRAW;rnrn RegisterClass(&wcs);rn HWND hwnd;rn hwnd=CreateWindow(szAppName,rn TEXT("Demo"),rn WS_OVERLAPPEDWINDOW,rn CW_USEDEFAULT,rn CW_USEDEFAULT,rn CW_USEDEFAULT,rn CW_USEDEFAULT,rn NULL,rn NULL,rn hInstance,rn NULLrn );rnrn ShowWindow(hwnd,SW_SHOWNORMAL);rn UpdateWindow(hwnd);rn MSG msg;rn while(GetMessage(&msg,NULL,0,0))rn rn TranslateMessage(&msg);rn DispatchMessage(&msg);rn rn return msg.wParam;rnrnrnLRESULT CALLBACK WndProc(rn HWND hwnd,rn UINT uMsg,rn WPARAM wParam,rn LPARAM lParamrn)rnrn HDC hdc;rn PAINTSTRUCT ps;rnrn switch(uMsg)rn rn case WM_PAINT:rn hdc=BeginPaint(hwnd,&ps);rn TextOut(hdc,0,0,TEXT("Demo"),lstrlen(TEXT("Demo")));rn EndPaint(hwnd,&ps);rn break;rn case WM_DESTROY:rn PostQuitMessage(0);rn break;rn rn return DefWindowProc(hwnd,uMsg,wParam,lParam);rn[/code]rn编译总是不成功:rn1>------ Build started: Project: Demo, Configuration: Debug Win32 ------rn1>Build started 2011/3/13 8:08:12.rn1>InitializeBuildStatus:rn1> Creating "Debug\Demo.unsuccessfulbuild" because "AlwaysCreate" was specified.rn1>ClCompile:rn1> WinMain.crn1>d:\allthefile\vs2010\demo\demo\winmain.c(29): error C2275: 'HWND' : illegal use of this type as an expressionrn1> c:\program files (x86)\microsoft sdks\windows\v7.0a\include\windef.h(208) : see declaration of 'HWND'rn1>d:\allthefile\vs2010\demo\demo\winmain.c(29): error C2146: syntax error : missing ';' before identifier 'hwnd'rn1>d:\allthefile\vs2010\demo\demo\winmain.c(29): error C2065: 'hwnd' : undeclared identifierrn1>d:\allthefile\vs2010\demo\demo\winmain.c(30): error C2065: 'hwnd' : undeclared identifierrn1>d:\allthefile\vs2010\demo\demo\winmain.c(41): warning C4047: '=' : 'int' differs in levels of indirection from 'HWND'rn1>d:\allthefile\vs2010\demo\demo\winmain.c(43): error C2065: 'hwnd' : undeclared identifierrn1>d:\allthefile\vs2010\demo\demo\winmain.c(43): warning C4047: 'function' : 'HWND' differs in levels of indirection from 'int'rn1>d:\allthefile\vs2010\demo\demo\winmain.c(43): warning C4024: 'ShowWindow' : different types for formal and actual parameter 1rn1>d:\allthefile\vs2010\demo\demo\winmain.c(44): error C2065: 'hwnd' : undeclared identifierrn1>d:\allthefile\vs2010\demo\demo\winmain.c(44): warning C4047: 'function' : 'HWND' differs in levels of indirection from 'int'rn1>d:\allthefile\vs2010\demo\demo\winmain.c(44): warning C4024: 'UpdateWindow' : different types for formal and actual parameter 1rn1>d:\allthefile\vs2010\demo\demo\winmain.c(45): error C2275: 'MSG' : illegal use of this type as an expressionrn1> c:\program files (x86)\microsoft sdks\windows\v7.0a\include\winuser.h(1634) : see declaration of 'MSG'rn1>d:\allthefile\vs2010\demo\demo\winmain.c(45): error C2146: syntax error : missing ';' before identifier 'msg'rn1>d:\allthefile\vs2010\demo\demo\winmain.c(45): error C2065: 'msg' : undeclared identifierrn1>d:\allthefile\vs2010\demo\demo\winmain.c(46): error C2065: 'msg' : undeclared identifierrn1>d:\allthefile\vs2010\demo\demo\winmain.c(46): warning C4133: 'function' : incompatible types - from 'int *' to 'LPMSG'rn1>d:\allthefile\vs2010\demo\demo\winmain.c(48): error C2065: 'msg' : undeclared identifierrn1>d:\allthefile\vs2010\demo\demo\winmain.c(48): warning C4133: 'function' : incompatible types - from 'int *' to 'const MSG *'rn1>d:\allthefile\vs2010\demo\demo\winmain.c(49): error C2065: 'msg' : undeclared identifierrn1>d:\allthefile\vs2010\demo\demo\winmain.c(49): warning C4133: 'function' : incompatible types - from 'int *' to 'const MSG *'rn1>d:\allthefile\vs2010\demo\demo\winmain.c(51): error C2065: 'msg' : undeclared identifierrn1>d:\allthefile\vs2010\demo\demo\winmain.c(51): error C2224: left of '.wParam' must have struct/union typern1>d:\allthefile\vs2010\demo\demo\winmain.c(51): warning C4033: 'WinMain' must return a valuern1>rn1>Build FAILED.rn1>rn1>Time Elapsed 00:00:11.90rn========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
大神们..SQLite查询问题..请帮我看下这是什么情况
代码如下:rnidn=id.getText().toString();rn psdn=psd.getText().toString();rnString sql="select * from usermsg where username='"+idn+"'and psw='"+psdn+"'";rn Cursor cursor=mydb.rawQuery(sql, null);rn if(cursor!=null)rn Log.i(tag, "登陆成功");rn Intent intent = new Intent();rn intent.setClass(MainActivity.this, Second.class);rn startActivity(intent);rn MainActivity.this.finish();rn rn求解为什么每次一执行到Cursor cursor=mydb.rawQuery(sql, null);就会报错rn<em>大神</em>们..十万火急呀..rnrn
【求助】大神帮我看下这个!!!
[code=java]rnpublic static String md5aessign(String content, String password)rn rn MessageDigest md;rn try rn rn KeyGenerator kgen = KeyGenerator.getInstance("AES");rn SecureRandom random=SecureRandom.getInstance("SHA1PRNG");rn random.setSeed(password.getBytes());rn kgen.init(128, random);rn rn SecretKey secretKey = kgen.generateKey(); rn byte[] enCodeFormat = secretKey.getEncoded(); rn SecretKeySpec key = new SecretKeySpec(enCodeFormat, "AES"); rn Cipher cipher = Cipher.getInstance("AES");// 创建密码器 rn cipher.init(Cipher.ENCRYPT_MODE, key);// 初始化 rn //准备MD5摘要算法rn byte[] byteContent = content.getBytes("GBK");rn rn md = MessageDigest.getInstance("MD5"); rn // 计算md5函数 rn md.update(byteContent); rn //对md5摘要进行AES加密rn byte[] result = cipher.doFinal(md.digest());rn rn return parseByte2HexStr(result); // 转换为16进制字符串rn rn catch (NoSuchAlgorithmException e) rn e.printStackTrace(); rn catch (NoSuchPaddingException e) rn e.printStackTrace(); rn catch (InvalidKeyException e) rn e.printStackTrace(); rn catch (UnsupportedEncodingException e) rn e.printStackTrace(); rn catch (IllegalBlockSizeException e) rn e.printStackTrace(); rn catch (BadPaddingException e) rn e.printStackTrace(); rn rn return null;rn rn rn public static String encrypt(String content, String password) rn rn try rn rn KeyGenerator kgen = KeyGenerator.getInstance("AES");rn// kgen.init(128, new SecureRandom(password.getBytes()));rn SecureRandom random=SecureRandom.getInstance("SHA1PRNG");rn random.setSeed(password.getBytes());rn kgen.init(128, random);rn System.out.println("new AES Util");rn rn SecretKey secretKey = kgen.generateKey(); rn byte[] enCodeFormat = secretKey.getEncoded(); rn SecretKeySpec key = new SecretKeySpec(enCodeFormat, "AES"); rn Cipher cipher = Cipher.getInstance("AES");// 创建密码器rn rn byte[] byteContent = content.getBytes("GBK"); rn cipher.init(Cipher.ENCRYPT_MODE, key);// 初始化 rn byte[] result = cipher.doFinal(byteContent); rn rn return parseByte2HexStr(result); // 加密rn rn catch (NoSuchAlgorithmException e) rn e.printStackTrace(); rn catch (NoSuchPaddingException e) rn e.printStackTrace(); rn catch (InvalidKeyException e) rn e.printStackTrace(); rn catch (UnsupportedEncodingException e) rn e.printStackTrace(); rn catch (IllegalBlockSizeException e) rn e.printStackTrace(); rn catch (BadPaddingException e) rn e.printStackTrace(); rn rn return null;rnrn rn rn public static String parseByte2HexStr(byte buf[]) rn rn StringBuffer sb = new StringBuffer(); rn for (int i = 0; i < buf.length; i++) rn rn String hex = Integer.toHexString(buf[i] & 0xFF); rn if (hex.length() == 1) rn rn hex = '0' + hex;rn rn sb.append(hex.toUpperCase());rn rn return sb.toString();rn rn[/code]rnrn把<em>这个</em>三个方法封在一个类里转成dll!!!,然后可以被C#调用!!!rn用ikvm可以封装,可是我不用java。。。救命啊!!!rn[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/8.gif][/img][img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/11.gif][/img]
大神帮我看下这个是什么问题
--查找出部门10和部门20中,工资最高第3名到第5名的员工的员工名字,部门名字,部门位置nselect * fromn(select ename,sal,dept.* from empnjoin dept on dept.deptno=emp.deptno nwhere emp.deptno != 30 order by sal desc )nwhere rownum between 3 and 5;nn本来应该是有的,结果显示未选定行n
来个大神帮我看下这个小小的问题
这是一个实现串的基本操作的程序,这里只写了创建输入与输出,我在穿件初始化的过程中遇到了下面的错误,其他还有没有错误尚未发现,有时间的<em>大神</em>最后可以<em>帮我</em>拷过去跑一遍。感激不尽rnrn#includern#includern#includern#includern#define Maxsize 100rnusing namespace std;rntypedef struct rnrn char ch[Maxsize];rn int len;rnHString;rn void StrAssign (HString *s,int l)rnrn int i;rn if(lMaxsize)rn rn printf("l的值不合法!");rn rn for(i=0;i>s->ch[i];rn rn s->len=l;rnrn void Display( HString *s)rn rn if(0==s->len)rn rn printf("the string is empty!");rn rn elsern rn coutch='\0'rn s2=(HString *)malloc(sizeof(HString));rn s2->len=0;rn s2->ch='\0';rnrn printf("请分别输入串s1,s2的长度:");rn scanf("%d%d",&l1,&l2);rn StrAssign(s1,l1);rn StrAssign(s2,l1);rn Display(s1);rn Display(s2);rnrnrnrnrnrnrnrnrnrnrnsdd.cpprnE:\PROJECT\StrOp\sdd.cpp(43) : error C2059: syntax error : ''rnE:\PROJECT\StrOp\sdd.cpp(43) : error C2143: syntax error : missing ';' before ''rnE:\PROJECT\StrOp\sdd.cpp(43) : error C2143: syntax error : missing ';' before ''rnE:\PROJECT\StrOp\sdd.cpp(46) : error C2059: syntax error : ''rnE:\PROJECT\StrOp\sdd.cpp(46) : error C2143: syntax error : missing ';' before ''rnE:\PROJECT\StrOp\sdd.cpp(46) : error C2143: syntax error : missing ';' before ''rn执行 cl.exe 时出错.
大神帮我看下这个上传图片的问题
网上找了上传图片的代码,测试了下是可以用的,但是拆分后就不能用了rn本来两个php和form是在一个文件内的,我拆成两个了rn第一个文件logo.php <em>这个</em>里面放php代码rn[code=php]rnalert('上传成功');"; rn rn //显示图片 rn echo ""; rn rn rn?>rn[/code]rn第二个文件up.php 这里放上传按钮的代码rn[code=php]rn rnupload img: rn rn rn[/code]rnrn如上,拆分成两个后 不能用了,放在一个文件就能用,求<em>大神</em>指点,谢谢
大神帮我看下这个插入排序的程序,,,,,
void InsertionSort(int data[],int num)rnrn for(int i=1;itemp)rn rn for(int k=i;k>j;k--)rn rn data[k]=data[k-1];rn rn data[j]=temp;rn rn rn break;rn rn rnrnvoid main()rnrn int a[10]=1,3,5,7,9,2,4,6,8,0;rn InsertionSort(a,10);rn for(int i=0;i,a[i]);rn rnrnrn输出是不对的,,请问什么地方错了啊?
大神帮我看下这个sql语句
[img=https://img-bbs.csdn.net/upload/201408/28/1409205054_381885.png][/img]rn[img=https://img-bbs.csdn.net/upload/201408/28/1409205063_969348.png][/img]rn我想要汇总一张单据的金额,但为什么汇总出来的金额不对,请教下<em>大神</em>sql语句哪里写得不对
各位大神帮我看下这个怎么弄,谢谢
现在的结果rn[img=https://img-bbs.csdn.net/upload/201403/05/1394008330_515902.png][/img]rnrn需要的结果rn[img=https://img-bbs.csdn.net/upload/201403/05/1394008470_880312.png][/img]
求网上大神帮我看下这个shiro中的BUG!help!!
也是第一次向网上的<em>大神</em>求助,<em>这个</em>bug实在无能为力啊!! <em>这个</em>核心BUG也就是主要问题是: 我点击注册账号,注册完之后,可以正常登入。 但如果通过忘记密码按钮,修改了自己的密码,再重新登入,他就一直报密码错误。问题是我修改完的密码,是和数据库一致,而shiro通过认证里的doGetAuthenticationInfo方法,返回的info里的密码也是跟我数据库里的密码一致,但就是报密码错误提示。很多...
大神 帮我看下这个存储过程哪里错了
DROP PROCEDURE IF EXISTS `Query_Role_PhoneRecord`;nDELIMITER ;;nCREATE DEFINER=`root`@`%` PROCEDURE `Query_Role_PhoneRecord`(n n in userId binary(16),n in pagNo int,n in pagSize intn)nBEGINndeclare bSize int;nnset bSize=(pagNo-1)*pagSize;nif(bSize at line 26
大神帮我看下代码 关于定时器的
[code=html]rnrnrn rn 窗口右下角消息弹出框rn rn rn rn rn rn rn Xrn rn rnrn[/code]rnrn[code=javascript]rnvar DISTANCE=0,//总距离rn DURATION=1000,//总时间rn STEPS=100,//总步数rn timer=null,//定时器序号rn moved=0,//保存本次动画移动的步数rn interval=0,//保存每步的步频rn step=0,//保存每步的步长rn WAIT=5000;//保存下落后,等待上升的时间rn DISTANCE=parseFloat(getComputedStyle(msg).height);rn step=DISTANCE/STEPS;rn interval=DURATION/STEPS;rnfunction move(n)//n=1往上移,n=-1向下移rn if(moved
大神帮我看下spring的问题
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenernorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'service' defined in class path resource [beans.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'service' of bean class [com.bjlz.action.LCsiveAction]: Bean property 'service' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?nat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1361)n省略号,nCaused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'service' of bean class [com.bjlz.action.LCsiveAction]: Bean property 'service' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?n配置文件,n![![![图片说明](https://img-ask.csdn.net/upload/201505/25/1432523221_850763.png)图片说明](https://img-ask.csdn.net/upload/201505/25/1432523215_711138.png)图片说明](https://img-ask.csdn.net/upload/201505/25/1432523207_894772.png)
大神帮我看下这段大数阶乘的代码
#include "stdafx.h"rn#define N 1000 //要计算的Nrnlong s[N]=1,1,n=N,t=2,a=1,b=0;rnrnint _tmain(int argc, _TCHAR* argv[])rnrn for(;a0;)rn printf("%04d",s[*s]);rn return 0;rnrn return 0;rnrnrn原来这串代码只有4行,太难看懂,我就把它拆成一句一句的了,但是看着还是毫无头绪,算1000的阶乘几乎就是秒算,还请哪位算法<em>大神</em>指导
求各位大神帮我看下这条SQL?
[code=sql]select sys_guid() AS LCID,rn (select yhmc from NX_UserInfo where yhbm = a.add_user and rownum < 2) as CJRMC,--这条select语句yhmc字段可能查出来是null,如果为null的话就取a.add_user,请问这里怎么修改?rn (select jgbm from pmsadm.yzx_jgdyxx@sc_link where gisjgbm = (select jgmc from NX_UserInfo where yhbm = a.add_user and rownum < 2)) AS CJDW,rn to_number(to_char(a.ADD_DATE,'yyyymmdd')) AS CJRQ,rn '0' AS YXYWBH,rn '0' AS SCYWBH,rn to_char(a.TASK_ID) AS DDYWBH,rn case a.task_source when 1 then '配网工程电子化移交流程' rn when 2 then '基建及大修技改电子化移交流程' rn when 5 then '基建及大修技改电子化移交流程' end as LCMC,rn case a.TASK_STATUS when '-2' then 1 rn when '1' then 2 rn else 0 end as LCZT,rn a.MAINTAIN_CONTENT AS YJDSM,rn (select yjbdzsl from ext_scdy_yjsl where task_id = a.task_id) as YJBDZSL,rn (select yjxlsl from ext_scdy_yjsl where task_id = a.task_id) as YJXLSL,rn (select yjbyqsl from ext_scdy_yjsl where task_id = a.task_id) as YJBYQSL,rn 0 AS YJYHSL,rn 0 AS YJBJSL,rn to_char(a.ADD_DATE,'yyyymmdd') AS FQZJ,rn a.add_user as CJRBH,rn (select bmmc from NX_UserInfo where yhbm = a.add_user and rownum < 2) as CJBM,rn to_number(to_char(a.ADD_DATE,'hhmmss')) AS CJSJ,rn a.task_type AS TASK_TYPE rnfrom txwh_feature_mt_app a [/code] rn查询出来的结果CJRMC会有空值如下图:rn[img=https://img-bbs.csdn.net/upload/201411/26/1417009788_487785.png][/img]
这是什么情况大神啊!!!
[img=https://img-bbs.csdn.net/upload/201411/14/1415947760_512525.jpg][/img]
大神帮忙看下这个makefile
[code=c]obj-m:=k.orn KERNELBUILD:=/lib/modules/$(shell uname -r)/buildrndefault:rn make -C $(KERNELBUILD) M=$(shell pwd) modulesrnclean:rn make clean all[/code]rnrnrn
大神帮忙看下这个错误是什么
[code=text]八月 07, 2013 9:50:29 上午 org.apache.catalina.loader.WebappClassLoader loadClassrnINFO: Illegal access: this web application instance has been stopped already. Could not load org.apache.mina.core.session.SessionState. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.rnjava.lang.IllegalStateExceptionrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1600)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)rn at org.apache.mina.transport.socket.nio.NioProcessor.getState(NioProcessor.java:194)rn at org.apache.mina.transport.socket.nio.NioProcessor.getState(NioProcessor.java:44)rn at org.apache.mina.core.polling.AbstractPollingIoProcessor.removeSessions(AbstractPollingIoProcessor.java:554)rn at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$800(AbstractPollingIoProcessor.java:67)rn at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1132)rn at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnrnException in thread "pool-1-thread-1" java.lang.NoClassDefFoundError: org/apache/mina/core/session/SessionStatern at org.apache.mina.transport.socket.nio.NioProcessor.getState(NioProcessor.java:194)rn at org.apache.mina.transport.socket.nio.NioProcessor.getState(NioProcessor.java:44)rn at org.apache.mina.core.polling.AbstractPollingIoProcessor.removeSessions(AbstractPollingIoProcessor.java:554)rn at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$800(AbstractPollingIoProcessor.java:67)rn at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1132)rn at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: java.lang.ClassNotFoundException: org.apache.mina.core.session.SessionStatern at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)rn ... 9 morern[/code]rn
这个为啥用不了啊,求大神看下
rnrn rn rn rn rn rn rn rn rn 11rn 点击这里rn rn rn
大神看下这个html和CSS
[code=css].navigation .nav li:hoverrn background-color:#106EC0;rn height: 75px ; rn width: 111px;rn float: left;rn[/code]rnrn[code=css] rn rn rn rn 网站首页rn rn rn [/code]rnrn这是一个hover,然后我设置了一个进入页面的默认背景色,hover选择其他的时候,<em>这个</em>背景色没办法去掉,求<em>大神</em><em>帮我</em>看一下
大神帮忙看下这个控件
http://www.cnblogs.com/nosnowwolf/archive/2008/07/22/1248796.htmlrnrnrn在winform中做了一个分页控件。 根据作者的源码,完成了数据的绑定分页。rnrnrn[code=csharp]rnpageDate.QueryCondition = strsql;rnthis.pager1.bindingSource.DataSource = pageDate.QueryDataTable().Tables[0];rnthis.pager1.bindingNavigator.BindingSource = pager1.bindingSource;rnthis.dgvAlarmFloor.DataSource = this.pager1.bindingSource;rnreturn pageDate.TotalCount;rn[/code]rnrn但是在显示界面,显示的时间只能精确到分, 不能精确到秒。 打断点到从数据库返回的DS表里,时间都是精确到秒的。在数据库运行存储过程,时间是2014-11-12 15:14:53.380精确到这种的。rnrnrnrn求<em>大神</em>帮忙<em>看下</em>。
大神看下这个查询语句是不是语法错误
这句语法有没有问题,为什么执行出来是空的,数据库里肯定有数据rn[code=sql]select * from a where name like '%褐%';[/code]
大神帮忙看下这个题目
小明总共有n天假期,他可以一次休息1天,也可以一次休息2天,问有多少种休假方式rnrnint Holiday_Solution(unsigned int n)rnrn int result[2] = 0,1;rn if(n<=n; i++)rn rn ____?______;rn ____?______;rn ____?______;rn rn return fibN;rnrnrn求<em>大神</em>帮忙填下问号的地方,顺便解释下这段程序。。。
大神看下这个sql怎么写
rnrna1 a2 a3 a4rnu992 李三 1 2rnu992 李三 2 1rnu993 李四 2 1rnu993 李四 4 1rnrnrn求<em>大神</em>写个sql语句,将数据变为rna1 a2 1 2 3 4 (列1234 a3的列值)rnu992 李三 2 1rnu993 李四 1 1rnrnrnrn
大神看下这个哪里有问题
编译不通过 [img=https://img-bbs.csdn.net/upload/201501/14/1421226131_706144.png][/img]
大神看下这个是JAVA的什么写法
需求是这样的,领导给了我套代码让我跑起来,没有其他提示。rn在解决问题的过程中,有个问题实在没招了,如下图 :rn[img=https://img-bbs.csdn.net/upload/201812/17/1545025821_139844.png][/img]rnrn首先在 WEBROOT下放java文件就一头雾水,其次,$!domainName 类似这样的写法实在不知道是什么 ,rn但能看出来是用来动态获取资源的。可能我需要什么插件或者jar来解读这样的格式?rn另外感觉很有可能是安卓语法的感觉。rnrn
大神看下sql
现有两张表hz_qyhznr bf_qyhznrrn关联条件hz_qyhznr.nbxh=bf_qyhznr.nbxhrnhz_qyhznr 主键:nbxhrnbf_qyhznr 主键: nbxh bfxhrnrn现在需要从bf_qyhznr取出一条数据,将其中的字段clrq,jyqsrq 赋值到hz_qyhznr中对应字段rnrn取的bf_qyhznr数据要求:bf_qyhznr.bfxh最大
是gdb的bug还是?求大神看下
class Testrnrn public:rn Test(string str)---------------------1处rnrncout<
大神看下~
以下为部分代码[code=c] #region 加载数据rn private void DataLoad()rn rn bool bOpen=(this.connMain.State==System.Data.ConnectionState.Open);rn tryrn rn if(!bOpen)rn rn this.connMain.Open();rn rn if(this.dataset11.Tables["PropertyZZJG"]!=null)rn rn this.dataset11.Tables["PropertyZZJG"].Clear();rn rn this.daMaster.SelectCommand.CommandText=@"select * from PropertyZZJG order by CurrentId";rn this.daMaster.Fill(this.dataset11,"PropertyZZJG");rnrn rn if(this.dataset11.Tables["PropertyUser"]!=null)rn rn this.dataset11.Tables["PropertyUser"].Clear();rn rn this.daUser.SelectCommand.CommandText=@"select * from PropertyUser";rn this.daUser.Fill(this.dataset11,"PropertyUser");rn rn catch(System.Exception ee)rn rn MessageBox.Show(ee.Message,"系统提示",MessageBoxButtons.OK,MessageBoxIcon.Warning);rn rn finallyrn rn if(!bOpen)rn rn this.connMain.Close();rn rn rn rn#endregionrnrn private void ReadTreeNodes1()rn rn if(this.TV_ZZJG.Nodes!=null)rn rn this.TV_ZZJG.Nodes.Clear();rn rn System.Data.DataRow[] dr=this.dtUser.Select("DepartmentID = "+this.TV_Department.SelectedNode.Tag.ToString());rn for(int i=0;i
帮我看下这个选择题
[img=http://digu.com/kqlyjht][/img]rnrn最好给解释下哦!谢谢rnrn地址是http://digu.com/kqlyjht的第一张图片
帮我看下这个小错误
有时候报错 有时候没错(大多数吧 大约10有1次报错) 很头疼...用的是mssql2005 数据量比较庞大..rnrnrnrnrn[code=Java]rn2010-2-4 20:30:34 org.apache.catalina.core.ApplicationDispatcher invokern严重: Servlet.service() for servlet Question threw exceptionrnjava.lang.NullPointerExceptionrn at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.buildParamTypeDefinitions(Unknown Source)rn at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.buildPreparedStrings(Unknown Source)rn at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doPrepExec(Unknown Source)rn at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(Unknown Source)rn at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PrepStmtExecCmd.doExecute(Unknown Source)rn at com.microsoft.sqlserver.jdbc.TDSCommand.execute(Unknown Source)rn at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(Unknown Source)rn at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(Unknown Source)rn at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(Unknown Source)rn at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.executeQuery(Unknown Source)rn at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:93)rn at nanfeng.wb.dao.BaseDao.getResultSetBySqlPara(BaseDao.java:73)rn at nanfeng.wb.dao.impl.ReplyInfoImpl.readByQidReplyInfo(ReplyInfoImpl.java:59)rn at nanfeng.wb.biz.ReplyInfoBiz.readByQidReplyInfo(ReplyInfoBiz.java:24)rn at nanfeng.wb.servelt.Question.doPost(Question.java:30)rn at nanfeng.wb.servelt.Question.doGet(Question.java:21)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)rn at org.tuckey.web.filters.urlrewrite.RewrittenUrl.doRewrite(RewrittenUrl.java:176)rn at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:728)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Unknown Source)rn[/code]rnrnrnat nanfeng.wb.dao.BaseDao.getResultSetBySqlPara(BaseDao.java:73) 方法:rn[code=Java]rnpublic ResultSet getResultSetBySqlPara(String sql,String[] paras) throws NamingExceptionrn try rn con=Conn();rn rn ps=con.prepareStatement(sql);rn if(null!=paras && paras.length>0)rn for (int i = 0; i < paras.length; i++) rn ps.setString(i+1, paras[i]);rn rn rn return ps.executeQuery();rn catch (SQLException e) rn // TODO 自动生成 catch 块rn e.printStackTrace();rn closeDataBase();rn System.out.println("getRes错误");rn rn return null;rn rn rn[/code]rnat nanfeng.wb.dao.impl.ReplyInfoImpl.readByQidReplyInfo(ReplyInfoImpl.java:59)方法:rn[code=Java]rnpublic List readByQidReplyInfo(int questionId) rn List lst=new ArrayList();rn String sql="select top 20 * from T_ReplyInfo where questionId="+questionId;rn try rn rs=super.getResultSetBySqlPara(sql, null);rn if(null!=rs)rn while (rs.next()) rn ReplyInfo replyInfo=new ReplyInfo();rn replyInfo.setId(Integer.parseInt(rs.getString("id")));rn replyInfo.setContent(rs.getString("content"));rn replyInfo.setToName(rs.getString("toName"));rn replyInfo.setQuestionId(Integer.parseInt(rs.getString("questionId")));rn replyInfo.setTime(rs.getString("time"));rn lst.add(replyInfo);rn rn elsern lst=null;rn rn rn rn catch (NumberFormatException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn catch (SQLException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn catch (NamingException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn finallyrn super.closeDataBase();rn rn return lst;rn rn[/code]rnat nanfeng.wb.biz.ReplyInfoBiz.readByQidReplyInfo(ReplyInfoBiz.java:24)方法:rn[code=Java]rnpublic List readByQidReplyInfo(int questionId)rn return rbz.readByQidReplyInfo(questionId);rn rn[/code]rnat nanfeng.wb.servelt.Question.doPost(Question.java:30) 类(servelt):rn[code=Java]rnpublic void doPost(HttpServletRequest request, HttpServletResponse response)rn throws ServletException, IOException rn String id=request.getParameter("id");rn if(null!=rbz.readByQidReplyInfo(Integer.parseInt(id)))rn request.setAttribute("replyList",rbz.readByQidReplyInfo(Integer.parseInt(id)) );rn elsern request.setAttribute("replyList",null);rn rn rn if(null!=qbz.readQuestionInfo(Integer.parseInt(id)))rn request.setAttribute("question", qbz.readQuestionInfo(Integer.parseInt(id)));rn elsern request.setAttribute("question",null);rn rn request.setAttribute("qutop10",qbz.readTop10QuestionInfo());rn request.setAttribute("id10",qbz.readId10QuestionInfo(Integer.parseInt(id)));rn request.getRequestDispatcher("nanfeng/question.jsp").forward(request, response);rn rn[/code]
帮我看下这个程序
有个*.txt文件,里面内容是ABC DEF GHJKK HF HYI JJJJ KKKK LLLrn我现在想把空格换成换行符,我写了个程序,结果不对,请大虾指点rnrn[code=C/C++]#include rn#includernrnint main()rnrn unsigned char ch;rn FILE *fp,*fp1;rn fp = fopen("F:\\logo","rt+");rn if(fp==NULL)rn rn printf("\nerror on open c:\\hzk16 file!"); rn //exit(1); rn rnrnch = '-';rnrnrndornrn ch = fgetc(fp);rn rn if(ch == ' ')rn rn ch = '\n';rn fputc(ch,fp);rn rn rnwhile(!feof(fp));rnrnfclose(fp);rnrnfp1 = fopen("F:\\logo","r"); rnrndornrn ch = fgetc(fp1);rn printf("%c",ch);rnwhile(!feof(fp1));rnfclose(fp1);rnrnreturn 0;rn[/code]rn
帮我看下这个乱码问题.
[url=http://www.nakahara-naikai-sh.com/][/url] 本机上是好的.
帮我看下这个问题
有一个A页面,有几个下拉列表框,有个搜索按钮,点搜索按钮查询出数据,在A页面显示.当我选择其中的一行数据,点击另一个按钮跳到B页面,在B页面对此信息进行修改,修改完以后,点保存,页面重新回到A页面,但是要求是回A页以后,不点搜索按钮还要把第一次搜索的数据显示出来,<em>这个</em>动作如何做呢?
谁能帮我看下这个
utility.h 文件里我这么写的,抄书的rn#include // standard iostream operationsrn#include // numeric limitsrn#include // mathematical functionsrn#include // C-string functionsrn#include // C library language supportrn#include // file input and outputrn#include // character classificationrn#include // date and time functionsrnusing namespace std;rnbool user_says_yes( );rnenum Error_code success, fail, range_error, underflow, overflow, fatal,not_present, duplicate_error, entry_inserted, entry_found,internal_error ;rnrnlife.h 里是这些rn#includernusing std::ofstream;rnconst int maxrow = 20, maxcol = 60; // grid dimensionsrnclass Lifernpublic:rn void initialize();rn void instructions();rn void print();//ostream &f)rn void update();rn void edit();rnprivate:rn int grid[maxrow + 2][maxcol + 2]; // Allow two extra rows and columns.rn int neighbor_count(int row, int col);rn bool step_mode;rn;rnrnrnmain.cpp是这样的rnrn#include"utility.h"rn#include"life.h"rn#include"life.cpp"rnusing std::ofstream;rnusing namespace std;rnint main()rnrn Life configuration;rn instructions();rn configuration.initialize();rn configuration.print(cout);rn bool command;rn do rn configuration.update();rn configuration.print(cout);rn cout << "Continue viewing without changes? " << endl;rn if (!(command = user_says_yes())) rn cout << "Do you want to quit? " << flush;rn if (user_says_yes()) command = false;rn else rn cout << "Do you want help? " << flush;rn if (user_says_yes()) instructions();rn cout << "Do you want to make any changes? " << flush;rn if (user_says_yes()) configuration.edit();rn command = true;rn rn rn while (command);rn cout << "Do you want to save the final position to file? " << flush;rn if (user_says_yes()) rn char name[1000];rn cout << "Give the save file name: " << flush;rn cin >> name;rn ofstream f(name);rn configuration.print(f);rn rnrnrn最后是life.cpprn#include"utility.h"rn#include "life.h"rnusing std::ofstream;rnusing namespace std;rnvoid Life::edit()rn/* Post: User has edited configuration, and/or step mode */rnrn cout << "Do you want to switch the step mode? " << flush;rn if (user_says_yes()) step_mode = !step_mode;rn cout << "Do you want to change the configuration? " << flush;rn if (!user_says_yes()) return;rn int row, col;rn cout << "List the coordinates for cells to change." << endl;rn cout << "Terminate the list with the the special pair -1 -1" << endl;rn cin >> row >> col;rn while (row != -1 || col != -1) rn if (row >= 1 && row = 1 && col << "Column " << col << " is out of range." << endl;rn elsern cout << "Row " << row << " is out of range." << endl;rn cin >> row >> col;rn rnrnvoid Life::print();//ostream &frn/*rnPre: The Life object contains a configuration.rnPost: The configuration is written to stream f for the user.rn*/rnrn int row, col;rn cout<< "The current Life configuration is:" << endl;rn for (row = 1; row << '*';rn else rn cout << ' ';rn cout << endl;rn rn cout << endl;rnrnint Life::neighbor_count(int row, int col)rn/*rnPre: The Life object contains a configuration, and the coordinatesrnrow and col define a cell inside its hedge.rnPost: The number of living neighbors of the specified cell is returned.rn*/rnrn int i, j;rn int count = 0;rn for (i = row - 1; i << "Vivify cell " << row << " " << col << endl;rn new_grid[row][col] = 1; // Cell is now alive.rn break;rn default:rn if (step_mode && grid[row][col] == 1)rn cout << "Kill cell " << row << " " << col << endl;rn new_grid[row][col] = 0; // Cell is now dead.rn rn for (row = 1; row << "Do you want to read input from a prepared file? " << flush;rn if (user_says_yes()) rn cout << "Enter input file name: " << flush;rn char name[1000];rn cin >> name;rn f.open(name);rn from_file = true;rn while (cin.get() != '\n');rn rn else rn while (cin.get() != '\n');rn cout << "Enter a picture of the initial configuration." << endl;rn cout << "Please enter nonblanks to signify living cells,\n";rn cout << "and blanks to signify empty cells.\n";rn cout << "Enter a character $ if all input is complete before the "<< "last row." << endl;rn rn for (row = 1; row << row << " : " << flush;rn for (col = 1; col << "Welcome to Conway's game of Life." << endl;rn cout << "This game uses a grid of size "<< maxrow << " by " << maxcol << " in which" << endl;rn cout << "each cell can either be occupied by an organism or not." << endl;rn cout << "The occupied cells change from generation to generation" << endl;rn cout << "according to the number of neighboring cells which are alive."<< endl;rnrnbool user_says_yes()rnrn char act;rn while(cin>>act)rn rn if(tolower(act)=='q')rn rn break;rn rn else if(tolower(act)=='y')rn rn return true;rn continue;rn rn elsern rn cout<;rn continue;rn rn rn rn rn return false;rnrnrn出了好多莫名其妙的错误,谁能<em>帮我</em><em>看下</em>啊!!!rnrnrn
帮我看下这个程序错误?
自己写了一个二进制转十进制的,能运行,但是有的二进制转换出来的不正确,<em>帮我</em><em>看下</em>哪里逻辑错误了,谢谢啊,新手rnrnString number;rn int num;rn int n = 0,count = 0,m;rn number = JOptionPane.showInputDialog("Enter numbers");rn num = Integer.parseInt(number);rn rn while(n,JOptionPane.INFORMATION_MESSAGE);
帮我看下这个错误
大家好!问题是这样的:我们公司网站在本地测试正常,网站的数据库是sql2000的,然后网站包括sql数据库上传到了网上的虚拟主机,访问的时候却报错,我已初步排除了不是web.config的配置问题和sql数据库上传不成功的错误,不知道还是有其他什么原因,请帮忙<em>看下</em>。下面是访问时候报错的具体信息:rnrnAccess to the path 'D:\Webs\aceabi\\Configuration\Config\' is denied. rnDescription: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. rnrnException Details: System.UnauthorizedAccessException: Access to the path 'D:\Webs\aceabi\\Configuration\Config\' is denied. rnrnASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically MACHINE\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via , the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user. rnrnTo grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.rnrnSource Error: rnrnAn unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. rn
谁能帮我看下这个
做的是Oracle对XMLType字段的操作rnrn1、先创建一个名未test.xml的配置文件。rnrnrn rn -----nam0-22-----^^^450-rn rn 抗震救灾rn 奥运会rn rn rn 经济学rn 计算机rn 10001rn 2005-07-09rn rn rn 计算机rn 笔记本rn rn rnrnrnrn2、在Oracle中创建一个存放该XML文件的表:rncreate or replace table xmlexample(rnID varchar2(10),rnname varchar2(20),rndata xmltypern)rninsert into xmlexample(id,name,data)rnvalues(sys_guid(),'my document',rn xmltypern (rn bfilename(filepath,filename),rn nls_charset_id('AL32UTF8')rn )rn)rn其中bfilename(filepath,filename),filename为文件名。这里的filepath filename该改成什么?不改总报错
帮我看下这个正则~
[code=PHP]rn$reg = "/(\d2)\/\\1\/(\d4)/";rn$text = '03/02/2009';rn[/code]rnrn为什么匹配不到呢?把正则改成"/(\d2)\/(\d2)\/(\d4)/"就能匹配到了
帮我看下这个循环是怎么回事。
for (i = ptOrg.y - (ptOrg.y > 0); nLineCount >= 0; i++, nLineCount--),其中的ptOrg.y - (ptOrg.y > 0到底是怎么回事啊。
adb拒绝访问,是个什么情况
[img=https://img-bbs.csdn.net/upload/201802/23/1519393109_390463.png][/img]rn[img=https://img-bbs.csdn.net/upload/201802/23/1519393121_827774.png][/img]
帮我看下这个JS代码
是用来做导航菜单的,JS+CSS,效果像flash做出来的一样,rn但现在有个问题就是点了之后,链接不能打开,而且还有个虚线框停在那里,请人<em>帮我</em>看看,谢谢,rnrn把代码打包放在我服务器上了,请下载测试rnhttp://kute.net.cn/flash效果js_css导航.rarrnrn应该是里面的两个JS的问题
帮我看下这个查询语句?
select * from tablename where cl like '%FW-034%' or name like '%FW-034%' order by id desc rnrn<em>这个</em>句子现在怎么试都查不出结果来.但以前好像可以.rn请支招.谢谢.rn rn
帮我看下这个function 是干什么的
rn返回的字符串 是什么?rnfunction hi(imgOrig1,imgTarget1:TImage):string; rnvarrn x, y : integer;rn mask, ch : byte;rnbeginrn Result:='';rn mask := $80;rn ch := 0;rn for y := 0 to imgOrig1.Picture.Bitmap.Height - 1 dorn beginrn for x := 0 to imgOrig1.Picture.Bitmap.Width - 1 dorn beginrn if (imgOrig1.Picture.Bitmap.Canvas.Pixels[x, y] <>rn imgTarget1.Picture.Bitmap.Canvas.Pixels[x, y]) thenrn ch := ch or mask;rn mask := mask shr 1;rn if mask = 0 thenrn beginrn Result := Result + char(ch);rn mask := $80;rn ch := 0;rn end;rn end;rn end;rnend;rn
帮我看下这个JSON。
[code=JScript] rn[/code]rnrnrn这样我可以弹出数据如下。。rn"itemcats_get_response":"item_cats":"item_cat":["cid":50017905,"is_parent":false,"name":"游戏掌机\/PSP\/NDSL","parent_cid":20,"cid":50017906,"is_parent":false,"name":"家用游戏机\/PS3\/Wii\/XBOX","parent_cid":20,"cid":50012068,"is_parent":false,"name":"游戏手柄","parent_cid":20,"cid":50012834,"is_parent":true,"name":"游戏软件","parent_cid":20,"cid":50012079,"is_parent":false,"name":"方向盘","parent_cid":20,"cid":50012080,"is_parent":false,"name":"摇杆","parent_cid":20,"cid":50012160,"is_parent":true,"name":"PSP专用配件","parent_cid":20,"cid":50012161,"is_parent":true,"name":"WII专用配件\/周边","parent_cid":20,"cid":50012162,"is_parent":true,"name":"PS2\/PS3专用配件(包含PS1)","parent_cid":20,"cid":50012163,"is_parent":true,"name":"NDSI\/NDSL专用配件","parent_cid":20,"cid":50018082,"is_parent":true,"name":"XBOX专用配件","parent_cid":20,"cid":50018224,"is_parent":true,"name":"世嘉 DC\/MD\/SS\/SEGA 专用配件","parent_cid":20,"cid":50018225,"is_parent":true,"name":"任天堂NGC\/FC\/N64\/SFC 专用配件","parent_cid":20,"cid":50018230,"is_parent":true,"name":"任天堂掌机配件","parent_cid":20]rnrnrnrn我现在是要读取这些个数据,循环出业NAME和CIDrnrn
帮我看下这个分页
SELECT top 60 t.rid,t.ProductID,t.ReCompanyIDrnFROMrn(rn SELECT rid=ROW_NUMBER() OVER(PARTITION BY P.ReCompanyID ORDER BY P.ProductDateTime DESC),c.CompanyName,rn P.ProductID,P.ReCompanyID,P.ProductDateTimern FROM Product P, Company crn Where P.ProductType=3 and P.ReCompanyID=c.CompanyIDrn) AS TrnWHERE T.rid<=2 rn order by a.ReCompanyID Desc ,a.ProductDateTime Descrn)rnrnorder by T.ReCompanyID Desc ,T.ProductDateTime Descrn不过速度很慢(45万条数据,查询时间为1秒),哪位肯指点下。谢谢!
帮我看下这个问题。
#include"stdio.h"rn#include"stdlib.h"rn#define max 100rnstruct nodernrnint a[max];rnint n;;rntypedef struct node *plink;rnplink create(void )rnrnplink head=(plink)malloc(sizeof(struct node));rnhead->n=0;rnreturn head;rnrnvoid main()rn int i=0,x;rnplink h;rnh=create();rnscanf("%d",&x);rnwhile(x!=0)rnrn h->a[i]=x;rn i++;rnrnh->n=i;rn for(i=0;in;i++)rn printf("%d",h->a[i]);rn
请高手帮我看下这个是怎么回事
今天无意间做了个窗口控件的Powerbuilder 窗口rn就是在点击Freeform时使窗口显示的内容为rn自由风格的rn但是在运行时突然提示我说(开始几次都是好的)rnDatabase transaction information not availablernCall SetTrans or SetTransObject functionrn这是个什么错误啊rn我的那个应用事件里的open 控件里写的代码也是对的 如下:rn// Profile bookdatabasernSQLCA.DBMS = "ODBC"rnSQLCA.AutoCommit = FalsernSQLCA.DBParm = "ConnectString='DSN=bookdatabase;UID=dba;PWD=sql'"rnrnconnect;rnrnif sqlca.sqlcode = 0 thenrn open(w_main)rnelsern messagebox("","")rn haltrnend ifrnrn而且其它的我都做了几次可还是出现<em>这个</em>错误 rn真的很郁闷啊rn
求大大帮我看下这个sql
[code=SQL]rn SELECT rn INDCLSCD rn ,ODRDATE rn ,case isnull(OBTAINAMT,0) when 0 then 0 else 1 end as flg1rn ,case exists (SELECT OBT.INDCLSCD,ODRDATE FROM OBTAINTRN OBT LEFT JOIN PORDERTRN PODR ON OBT.HODRNO=PODR.PODRNO WHERE ISNULL(PAYDEALFLG,'0') = '0' AND FLG.SEQNO>=10) rn when 1 then 1 else 0 end as flg2rnrn FROM OBTAINTRN rn WHERE ISNULL(PAYDEALFLG,'0') = '0' rnrn[/code]rnrn主要是想让第二个case实现存在数据就flg2=1 不存在就flg=2 要怎么写。。。如果用if语句可以吗?要怎么写!谢谢!
求高人帮我看下
刚才删个控件不小心删了什么东西 出现<em>这个</em>错误 帮帮忙rnE:\VC98\MFC\SRC\DLGDATA.CPP(171) : error C2065: '_countof' : undeclared identifierrnE:\VC98\MFC\SRC\DLGDATA.CPP(182) : error C2065: 'AfxSetWindowText' : undeclared identifierrn[code=C/C++]rnAFX_STATIC void AFX_CDECL _Afx_DDX_TextWithFormat(CDataExchange* pDX, int nIDC,rn LPCTSTR lpszFormat, UINT nIDPrompt, ...)rn // only supports windows output formats - no floating pointrnrn va_list pData;rn va_start(pData, nIDPrompt);rnrn HWND hWndCtrl = pDX->PrepareEditCtrl(nIDC);rn TCHAR szT[32];rn if (pDX->m_bSaveAndValidate)rn rn // the following works for %d, %u, %ld, %lurn ::GetWindowText(hWndCtrl, szT, _countof(szT));rn if (!_AfxSimpleScanf(szT, lpszFormat, pData))rn rn AfxMessageBox(nIDPrompt);rn pDX->Fail(); // throws exceptionrn rn rn elsern rn wvsprintf(szT, lpszFormat, pData);rn // does not support floating point numbers - see dlgfloat.cpprn AfxSetWindowText(hWndCtrl, szT);rn rnrn va_end(pData);rn[/code]
大神帮我看看这个小项目
<em>这个</em>项目是细说php上的一个图书管理系统,看着书上代码敲,但不知道为什么,图片上传哪里老是出现类型错误,纠结了好久都不值如何解决,望各位<em>大神</em>指点一下,可以的话截图以及给个注释,谢谢!!rnhttp://pan.baidu.com/s/1o79yVGm
大神帮忙看下这个明文
1D000000000000009D96B63C685DD5DB8A08B93BAF3890DCD6DCC82F74A41B9DEC49108AD14DECA7rnrn有<em>大神</em>知道这段明文是用什么加密来的吗?
大神帮我这个程序改对
#includernusing namespace std;rnrnclass Rectangle rnrnpublic :rn Rectangle (float aa,float bb);rn float cc ();//长方形周长rn float ss ();//面积rnprivate :rn float a,b;rnrnRectangle::Rectangle(float aa=0,float bb=0)rnrn a=aa;rn b=bb;rnrnfloat Rectangle::cc()rnrn return (a+b)*2;rnrnfloat Rectangle::ss()rnrn return a*b;rnrnint main()rnrn float a,b;rn cin>>a>>b;rn Rectangle rec(a,b);rn cout<
求各位大神帮我看看这个代码
为什么判断后还是输出同一个结果 在次谢谢各位了rnpackage TestObject;rnabstract class Personrn public final boolean liveforever=true;rn public final String id;rn public Person(String id)rn this.id=id;rn rn public final Boolean fly() rn return false;rn rn abstract void speak();rn abstract void move();rn public boolean equals(Object o)rn if(this==o)rn return true;rn rn if(o instanceof Person)rn return false;rn rn Person p=(Person) o;rn if(p.id.equals(this.id))rn return true;rn elsern return false;rn rn rn public String toString()rn return this.id;rn rnrnclass Employee extends Personrnrn public Employee(String id) rn super(id);rn // TODO Auto-generated constructor stubrn rn void speak() rn System.out.println("speak().........");rn rn rn void move() rn System.out.println("move().........");rn rn rn void work()rn System.out.println("work().........");rn rn interface Managerrn public void Mange(Employee ee);rn rn class Employer extends Person implements Managerrnrn public Employer(String id) rn super(id);rn // TODO Auto-generated constructor stubrn rn void speak() rn System.out.println("speak().........");rn rn rn void move() rn System.out.println("move().........");rn rn rn public void Mange(Employee ee) rn if(ee.fly())rn System.out.println("fly().........");rn elsern System.out.println("就这样");rn rn rn rn rn rnrnpublic class Object03 rn public static void main(String[] args) rn Person per1=new Employee("123");rn Person per2=new Employee("245");rn Person per3=new Employee("123");rn System.out.println(per1.equals(per2)?"是同一个人":"不是同一个人");rn System.out.println(per1.equals(per3)?"是同一个人":"不是同一个人");rn System.out.println(per2.equals(per3)?"是同一个人":"不是同一个人");rn rnrn
大神帮我解释一下这个正则表达式
如题,这是一个日期代码n ```jsn var mts = date.match(/(\/Date\((\d+)\)\/)/);n ```
大神帮我看看这个工程
MFC实现任意两个文件的相似度比较rnhttp://download.csdn.net/detail/wyl20032005/2811486rnrn最后程序的相似度c[1][n]*100.0/((m>n)?m:n) c[1][n]是怎么得出来的?rnrn[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/5.gif][/img]急求<em>大神</em>协助啊
大神帮我解决这个问题
楼主是学生,这是今天做作业的时候出现的问题,课本上的例题是VC6.0,因为跟楼主用的Win7系统不兼容,所以楼主用的是VS2010rn[img=https://img-bbs.csdn.net/upload/201403/29/1396090464_116441.png][/img]rn这是楼主的代码rn[img=https://img-bbs.csdn.net/upload/201403/29/1396090623_185027.png][/img]rn[img=https://img-bbs.csdn.net/upload/201403/29/1396090710_368831.png][/img]rn划线的地方是楼主更改和添加的代码rn[img=https://img-bbs.csdn.net/upload/201403/29/1396090988_72395.png][/img]rn调试后就出现<em>这个</em>问题rn顺便说一下<em>这个</em>程序的目标是在状态栏显示鼠标的坐标
大神帮我优化这个sql语句
select distinct userid from userlog where userid not in(select distinct userid from #user) rnand accesstime >='2013-04-27' and accesstime;rnrnrn怎么修改? 现在效率太低
大神帮我理解这个程序
[code=c]#include rn#include rn typedef struct BiTNodernrn long data;rn struct BiTNode *lchild,*rchild;rnBiTNode,*BiTree;rn//实现搜索rnint Search(BiTree &T,BiTree &f,BiTree &p,long d)rnrn if(!T)rn rn p=f;return 0;rn rn else if(d==T->data)rn rn p=T;return 1;rn rn else if(ddata)rn rn return Search(T->lchild,T,p,d);rn rn elsern rn return Search(T->rchild,T,p,d);rn rnrn//实现插入rnint Insert(BiTree &T,long e)rnrn BiTNode *f,*p,*s;rn s=new BiTNode;rn if(!s)return 0;rn s->data=e;rn s->lchild=s->rchild=NULL;rn if(!(Search(T,f,p,e)))rn rn if(edata)rn rn p->lchild=s;rn return 1;rn rn else rn p->rchild=s;rn return 1;rn rn rn elsern return 0;rnrnvoid Inorder(BiTree T)rnrn if(!T) return;rn Inorder(T->lchild);rn printf("%d ",T->data);rn Inorder(T->rchild);rnrnvoid CreatT(BiTree &T,BiTree &w)rnrn long e;rn T=new BiTNode;rn w=T;rn scanf("%d",&e);rn T->data=e;rn T->lchild=T->rchild=NULL;rn scanf("%d",&e);rn while(e!=-1)rn Insert(T,e);rn scanf("%d",&e);rn rnrnrnvoid main()rnrn BiTree T=0;rn BiTNode *w;rn printf("请输入数据,以-1结束:\n");rn CreatT(T,w);rn printf("输出中序遍历结果为:\n");rn Inorder(w);rn printf("\n");rn rnrn[/code]
大神帮忙看下这个加密
[code=csharp]string pwd = Md5Pwd(Pwd0).ToLower();rn public string Md5Pwd(string strText)rn rn string charset = "utf-8";rn bool Is32Bit = true;rnrn string PwdKey = System.Configuration.ConfigurationManager.AppSettings["NewPayPwdKey"].Trim().ToString();rn tryrn rn strText += PwdKey;rn MD5CryptoServiceProvider MD5 = new MD5CryptoServiceProvider();rn string Md5Val = BitConverter.ToString(MD5.ComputeHash(Encoding.GetEncoding(charset).GetBytes(strText))).Replace("-", "").ToUpper();rn if (!Is32Bit)rn rn Md5Val = Md5Val.Substring(8, 16);rn rnrn if (Is32Bit)rn rn string before = Md5Val.Substring(0, 8);rnrn string middle = Md5Val.Substring(8, 16);rnrn string last = Md5Val.Substring(Md5Val.Length - 8);rnrn Md5Val = last + before + middle;rn rnrn return Md5Val;rn rn catch (Exception ex)rn rn string Errinfo = ex.Message;rn return string.Empty;rn rn rn[/code]rn我想问的是,<em>这个</em>md5加密看起来和常规的md5不一样啊,如果我想把<em>这个</em>程序加密出来的密文,还原成常规md5的密文,不知道行不行,如果可以该怎么做,如果不行,请说明原因。
大神帮忙看下这个程序,运行为什么是这个样子
#include rn#include rn#include rnrnint main()rnrnint num = 0, num1 = 0, row = 0, col = 0, mox = 0, moy = 0, in = 0, in1 = 0, min = 0, max = 0;rnsrand(time(0));rnprintf("请输入次数: ");rnscanf("%d", &num);rnprintf("***\n***\n***\n");//地图rndornrnprintf("请输入锤子坐标: ");rnscanf("%d%d", &in, &in1);rnwhile(in < 1 || in > 3 || in1 < 1 || in1 > 3);rnmox = rand() % 3 + 1;rnmoy = rand() % 3 + 1;rnfor (num1 = 1; num1 );rnreturn 0;rnrnrnrn打印出来的结果是:rn请输入次数: 2 rn***rn***rn***rn请输入锤子坐标: 2 2rn*打中了*打中了*打中了没打中*打中了*打中了*打中了没打中*打中了X打中了O打中了没打中打中9次,没打中3次*打中了*打中了*打中了没打中*打中了*打中了*打中了没打中*打中了X打中了O打中了没打中打中18次,没打中6次
大家帮我看看这是个什么情况
我的电脑,开机时要两次启动才能进入windows系统。rn还有进入之后会频繁的出现花屏!不知道是出了什么问题!rn是不是显卡出了问题?请各位指点一下!高分回报!
这是什么情况?求歌大神解释下。。。
Build target 'Target 1'rnassembling STARTUP.A51...rnassembling dscr.a51...rnassembling USBJmpTb.a51...rncompiling fw.c...rncompiling USBchuanshu.c...rncompiling gpif.c...rnlinking...rnBL51 BANKED LINKER/LOCATER V6.22 - SN: Eval VersionrnCOPYRIGHT KEIL ELEKTRONIK GmbH 1987 - 2009rn"STARTUP.obj",rn".\dscr.obj",rn"USBJmpTb.obj",rn"fw.obj",rn"USBchuanshu.obj",rn"gpif.obj",rn".\EZUSB.LIB" rnTO "创新实验" rnRAMSIZE(256) rn******************************************************************************rn* RESTRICTED VERSION WITH 0800H BYTE CODE SIZE LIMIT; USED: 0AD4H BYTE (135%) *rn******************************************************************************rnProgram Size: data=43.7 xdata=4644 code=3159rnLINK/LOCATE RUN COMPLETE. 0 WARNING(S), 0 ERROR(S)rn*** FATAL ERROR L250: CODE SIZE LIMIT IN RESTRICTED VERSION EXCEEDEDrn MODULE: C:\KEIL\C51\LIB\C51S.LIB (-----)rn LIMIT: 0800H BYTESrnTarget not createdrnrn用keil C51编写的,最后出现<em>这个</em>
看下这个是为什么
这种语法不能用于结构体的赋值,例如这样是错误的:rnrnstruct complex_struct z1;rnz1 = 3.0, 4.0 ;rnrnrn这是linux C一站式编程上的一段。谁能解释一下啊
什么情况大神来吧
未将对象引用设置到对象的实例。 rn说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。rnrn源错误: rnrnrn行 18: if (!IsPostBack)rn行 19: rn行 20: Data_SystemClass.SystemClass_select_ddl(DataShare.Data_info_Shop.Master_info_Shop_ID(), "a.parent_type=1003", ddlCurrent_type_System);//系统分类rn行 21: if (Request["ID"] != null)rn行 22: rn rnrn源文件: E:\CM365\MySq\MySq\manage\info\com_SystemTemplate_add.aspx.cs 行: 20 rn
请问大神这是什么情况
错误代码:rn01-18 17:51:17.310 11520-11520/com.example.administrator.database_test E/Trace﹕ error opening trace file: No such file or directory (2)rn01-18 17:51:17.440 11520-11520/com.example.administrator.database_test E/AndroidRuntime﹕ FATAL EXCEPTION: mainrn java.lang.RuntimeException: Unable to instantiate activity ComponentInfocom.example.administrator.database_test/com.example.administrator.database_test.MainActivity: java.lang.NullPointerExceptionrn at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2106)rn at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)rn at android.app.ActivityThread.access$600(ActivityThread.java:141)rn at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)rn at android.os.Handler.dispatchMessage(Handler.java:99)rn at android.os.Looper.loop(Looper.java:137)rn at android.app.ActivityThread.main(ActivityThread.java:5041)rn at java.lang.reflect.Method.invokeNative(Native Method)rn at java.lang.reflect.Method.invoke(Method.java:511)rn at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)rn at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)rn at dalvik.system.NativeStart.main(Native Method)rn Caused by: java.lang.NullPointerExceptionrn at android.app.Activity.findViewById(Activity.java:1839)rn at com.example.administrator.database_test.MainActivity.(MainActivity.java:15)rn at java.lang.Class.newInstanceImpl(Native Method)rn at java.lang.Class.newInstance(Class.java:1319)rn at android.app.Instrumentation.newActivity(Instrumentation.java:1054)rn at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)rn            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)rn            at android.app.ActivityThread.access$600(ActivityThread.java:141)rn            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)rn            at android.os.Handler.dispatchMessage(Handler.java:99)rn            at android.os.Looper.loop(Looper.java:137)rn            at android.app.ActivityThread.main(ActivityThread.java:5041)rn            at java.lang.reflect.Method.invokeNative(Native Method)rn            at java.lang.reflect.Method.invoke(Method.java:511)rn            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)rn            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)rn            at dalvik.system.NativeStart.main(Native Method)rnrnrnrnrnandroidmanifest代码:rnrnrnrn rn rn rn rnrn rn rn rn rnrnrnrnrnMainActivity代码:rnpackage com.example.administrator.database_test;rnrnimport android.app.Activity;rnimport android.os.Bundle;rnimport android.view.Menu;rnimport android.view.MenuItem;rnimport android.view.View;rnimport android.widget.Button;rnimport android.widget.EditText;rnrnrnpublic class MainActivity extends Activity rnrnrn Button bt1 = (Button)findViewById(R.id.bt1);rn Button bt2 = (Button)findViewById(R.id.bt2);rn Button bt3 = (Button)findViewById(R.id.bt3);rn EditText et1 = (EditText)findViewById(R.id.ed1);rn EditText et2 = (EditText)findViewById(R.id.ed2);rn EditText et3 = (EditText)findViewById(R.id.ed3);rn EditText et4 = (EditText)findViewById(R.id.ed4);rn EditText et5 = (EditText)findViewById(R.id.ed5);rn EditText et6 = (EditText)findViewById(R.id.ed6);rn DataBaseHelper dataBaseHelper = new DataBaseHelper(this);rnrn @Overridern protected void onCreate(Bundle savedInstanceState) rn super.onCreate(savedInstanceState);rn setContentView(R.layout.activity_main);rn bt1.setOnClickListener(new Button.OnClickListener() rn @Overridern public void onClick(View v) rn dataBaseHelper.DB_Insert(et1.getText().toString(), et2.getText().toString());rn rn );rnrnrn bt2.setOnClickListener(new Button.OnClickListener()rn @Overridern public void onClick(View v) rn dataBaseHelper.DB_Update(et3.getText().toString(), et4.getText().toString());rn rn );rnrnrn bt3.setOnClickListener(new Button.OnClickListener()rn @Overridern public void onClick(View v) rn et6.setText(dataBaseHelper.Information(et5.getText().toString()));rn rn );rnrn rnrn @Overridern public boolean onCreateOptionsMenu(Menu menu) rn // Inflate the menu; this adds items to the action bar if it is present.rn getMenuInflater().inflate(R.menu.menu_main, menu);rn return true;rn rnrn @Overridern public boolean onOptionsItemSelected(MenuItem item) rn // Handle action bar item clicks here. The action bar willrn // automatically handle clicks on the Home/Up button, so longrn // as you specify a parent activity in AndroidManifest.xml.rn int id = item.getItemId();rnrn //noinspection SimplifiableIfStatementrn if (id == R.id.action_settings) rn return true;rn rnrn return super.onOptionsItemSelected(item);rn rnrnrnrn类DataBaseHelper代码:rnpackage com.example.administrator.database_test;rnrnimport android.content.ContentValues;rnimport android.content.Context;rnimport android.database.Cursor;rnimport android.database.sqlite.SQLiteDatabase;rnimport android.database.sqlite.SQLiteException;rnimport android.database.sqlite.SQLiteOpenHelper;rnrnrnclass DataBaseHelper rnrn public final static String TABLE_NAME = "CheckOut_List";rn public final static int TABLE_VERSION = 1;rn public final static String ID = "id";rn public final static String TIME = "time";rn private SQLiteDatabase read;rn private SQLiteDatabase write;rn private DataBaseCreate dataBaseCreate;rn private Context context;rnrnrnrn public DataBaseHelper(Context context)rn this.context = context;rn dataBaseCreate = new DataBaseCreate(context);rn read = dataBaseCreate.getReadableDatabase();rn write = dataBaseCreate.getWritableDatabase();rn rnrnrnrn private class DataBaseCreate extends SQLiteOpenHelperrnrnrn public DataBaseCreate(Context context) rn super(context, TABLE_NAME, null, TABLE_VERSION);rn rnrn public void onCreate(SQLiteDatabase db) rn try rn db.execSQL("CREATE TABLE" + TABLE_NAME + "(id INTEGER PRIMARY KEY AUTOINCREMENT,time);");rn catch (SQLiteException e) rn e.printStackTrace();rn rnrn rnrn @Overridern public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) rnrn rn rnrnrnrn public void DB_Insert(String newid,String newtime) rn ContentValues cv = new ContentValues();rn cv.put("id",newid);rn cv.put("time",newtime);rn write.insert("CheckOut_List",null,cv);rnrn //getWritableDatabase();rn //db.execSQL("insert into" + TABLE_NAME + "(" + ID + "," + TIME + ") values(?,?)",new Object[]newid,newtime);rn rnrnrn public void DB_Update(String newid,String newtime)rn ContentValues cv = new ContentValues();rn cv.put("time",newtime);rn write.update("CheckOut_List", cv, "id = ?", new String[]newid);rn rn public void DB_Delete()rn rnrn public void DB_Close() rnrn rnrnrn public String Information(String id)rn Cursor cursor;rn String newid ="" ,time="";rn cursor = dataBaseCreate.getReadableDatabase().rawQuery("select * from CheckOut_List where id=?", new String[]id);rn if (cursor.moveToNext())rn newid = cursor.getString(cursor.getColumnIndex("id"));rn time = cursor.getString(cursor.getColumnIndex("time"));rn rnrn //stu_inf.getInf(newid,time);rn return time;rnrn rnrnrn
求各位大神帮我看下这个图片浏览器怎么打代码?谢谢各位大神
[img=https://img-bbs.csdn.net/upload/201604/21/1461212259_178149.png][/img][img=https://img-bbs.csdn.net/upload/201604/21/1461212124_650346.png][/img]
帮我看下这是个什么东西?
protected AccountsIdentity IDErn rn getrn rn return (AccountsIdentity)HttpContext.Current.User.Identity;rn rn rnrn怎么解释?
大家帮我看下这个网站的这个功能是怎么实现的
http://www.prnasia.com/pr/10/03/100255321-2.htmlrn<em>这个</em>网站右边有个订阅到哪里,有好多个订阅,这些订阅是怎么实现的啊。
→→→→字符指针释放报这个错是个什么情况?←←←←
[b]MyString.h[/b]rn[code=c]rn#pragma oncern#ifndef MYSTRING_Hrn#define MYSTRING_Hrn#include "iostream"rnclass MyStringrnrnprivate:rn char * str;rn int length;rnpublic:rn MyString();rn MyString(const char *);rn MyString(const MyString &);rn ~MyString();rn MyString GetSring(int,int);rn;rn#endifrn[/code]rnrn[b]MyString.cpp[/b]rn[code=c]rn#include "stdafx.h"rn#include "MyString.h"rn#include "iostream"rnrn#define DELETE_POINTER(p) if(p)delete (p);(p)=NULL;rnrnMyString::MyString()rnrn length = 0;rn str = new char[1];rn str[0] = '\0';rnrnMyString::MyString(const char * c)rnrn DELETE_POINTER(str);rn length = std::strlen(c);rn str = new char[length+1];rn strcpy_s(str,length+1,c);rnrnrnMyString::MyString(const MyString & mStr)rnrn DELETE_POINTER(str);rn length = std::strlen(mStr.str);rn str = new char[length + 1];rn strcpy_s(str, length+1, mStr.str);rnrnrnMyString::~MyString()rnrn DELETE_POINTER(str);rnrnrnMyString MyString::GetSring(int start_index, int end_index)rnrn int dis = end_index - start_index;rn if (dis > 0)rn rn char * c = new char[dis +1];rn for (int i = start_index,j = 0; i << "\n";rn system("PAUSE");rn return 0;rnrn[/code]rn环境是win8.1+VS 2013.rn请问这是为什么?最好可以详细解释一下,谢谢!
新人,求大神看下
public static void insert(ArrayList am) throws SQLExceptionrn rn Connection conn=null;rn try rn conn=DBopertate.connection();rn PreparedStatement ppst=conn.prepareStatement("insert into testtable (search_name1,search_name2,search_name3,search_sort,del_flag) values (?,?,?,?,'1')");rn for (int i=0;i
大神 看下这是什么问题
ERROR TemplateEngine:1173 - [THYMELEAF][http-bio-8880-exec-8] Exception processing template "403": Error resolving template "403", template might not exist or might not be accessible by any of the configured Template Resolversrn三月 22, 2016 3:27:36 下午 org.apache.catalina.core.ApplicationDispatcher invokern严重: Servlet.service() for servlet School threw exceptionrnorg.thymeleaf.exceptions.TemplateInputException: Error resolving template "403", template might not exist or might not be accessible by any of the configured Template Resolversrn at org.thymeleaf.TemplateRepository.getTemplate(TemplateRepository.java:247)rn at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1192)rn at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1148)rn at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1095)rn at org.thymeleaf.spring3.view.ThymeleafView.renderFragment(ThymeleafView.java:259)rn at org.thymeleaf.spring3.view.ThymeleafView.render(ThymeleafView.java:179)rn at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1228)rn at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1011)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:955)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)rn at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:868)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)rn at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)rn at org.springframework.security.web.firewall.RequestWrapper$FirewalledRequestAwareRequestDispatcher.forward(RequestWrapper.java:132)rn at org.springframework.security.web.access.AccessDeniedHandlerImpl.handle(AccessDeniedHandlerImpl.java:66)rn at com.stc.base.security.CustomAccessDeniedHandlerImpl.handle(CustomAccessDeniedHandlerImpl.java:41)rn at org.springframework.security.web.access.ExceptionTranslationFilter.handleSpringSecurityException(ExceptionTranslationFilter.java:167)rn at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:124)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at com.stc.base.security.AjaxSessionTimeoutFilter.doFilter(AjaxSessionTimeoutFilter.java:78)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:107)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at com.stc.base.security.AddUserToSessionFilter.doFilter(AddUserToSessionFilter.java:39)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:141)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilterInternal(BasicAuthenticationFilter.java:146)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:184)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:110)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at com.stc.base.security.LogLogoutFilter.doFilter(LogLogoutFilter.java:53)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:57)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)rn at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)rn at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)rn at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:176)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Thread.java:744)rnrn
哪错了求大神看下
#include rn#include rnstruct xxxrnrn char aa[30];rn int bb[2];rn double cc;rn ;rn struct yyyrn rn char dd[50];rn struct xxx mm;rn char *ee;rn char *ff[3];rn ;rn main (void)rn rn struct xxx qq="sample",0,1,5.4;rn struct yyy nn="string constant","text",7,8,12.3,"address","a","b","c";rn struct yyy pp,rr;rn strcpy(pp.mm.aa,"in structure");rn strcpy(pp.dd,"structure"); rn pp.mm.bb[0]=10;rn pp.mm.bb[1]=12;rn pp.mm.cc=57.8;rn pp.ee="pointer and";rn pp.ff[0]="array";rn pp.ff[1]="of";rn pp.ff[2]="ponter.";rn rr=pp;rn printf("%s%s %d %d %1f\n%s%s%s%s\n",rr.dd,rr.mm.aa,rr.mm.bb[0],rr.mm.bb[1],rr.mm,rr.ee,rr.ff[0],rr.ff[2]);rnrn
大神帮忙看下存储过程
[code=sql]CREATE PROCEDURE [dbo].[G1_GetRecruitListByAllItems]rn -- Add the parameters for the stored procedure herern (rn@Dept varchar(50),rn@Statues int,rn@StartTime datetime,rn@EndTime datetimern)rn rnASrnBEGINrn rn SET NOCOUNT ON;rn declare @sql varchar(1000)rn set @sql = 'rn SELECT re.Id,rn de.DepartmentName,rn re.CreateTime,rn us.UserName,rn re.Satern FROM rn G1_Recruit as re JOIN G1_Department as de ON re.DeptId=de.DepartmentIdrn LEFT JOIN G1_User as us ON re.CreateUserId=us.UserId where 1=1 rnrn 'rn rn if(@Dept !='==请选择==')rn BEGINrn --print '到达Dept判断 'rn SET @sql = @sql + ' and de.DepartmentName = ''' + @Dept + ''''rn ENDrnrn if(@Statues !=4)rn BEGINrn --print '到达Statues判断'rn SET @sql = @sql + ' and re.Sate =' + cast(@Statues as varchar(2))rn --print '状态判断完成'rn ENDrn rn if(@StartTime!=null)rn BEGINrn --print '到达时间判断'rn SET @sql = @sql + ' and re.CreateTime >= ''' +@StartTime+''''rn --print '时间判断完成'rn ENDrnrn if(@EndTime!=null)rn BEGINrn --print '到达时间判断'rn SET @sql = @sql +' and re.CreateTime rnrn PRINT @sqlrn EXEC (@sql)rn rnEND[/code]rn[img=https://img-bbs.csdn.net/upload/201611/29/1480410563_632951.png][/img]rn为什么输了时间还是没进行比较
有没有大神帮我看下这个数据库怎么打开啊~~~
[img=https://img-bbs.csdn.net/upload/201701/02/1483365170_111977.png][/img][img=https://img-bbs.csdn.net/upload/201701/02/1483365178_47249.png][/img]rnrnasp白痴,怎么打开啊(趴)
麻烦大神帮我看下这个js的判断如何写好
rnrn rn rn rn rn rn rn rn rn rn rnrnrnrn我想让它自动移动到顶部就停止,怎么写都不对,麻烦<em>大神</em>帮忙修改下
帮我看下这个javaEE5 下的 web.xml
[code=BatchFile]rnrn rn index.jsprn rnrn rn rn *.jsprn falsern rn rnrn[/code]rnrn这样配置为什么在jsp中还不能使用el表达式?请注意 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee rn http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd
亲,帮我看下这个程序
#include rnint main(void)rnrn const float MIN = 0.0f;rn const float MAX = 100.0f;rn float score;rn float total=0.0f;rn int n=0;rn float min=MAX;rn float max=MIN;rn printf("enter the first score(q to quit ):");rn while (scanf("%f",&score)==1)rn if(scoreMAX)rn printf("%0.1f is an invaild .try again:",score);rn continue;rn printf("accepting %0.1f:\n",score);rn min=(scoremax) ? score : max;rn total+=score;rn n++;rn printf("enter next score(q to quit ):");rn if(n>0)rn printf("average of %d score is %0.1f.\n",n,total/n);rn printf("low =%0.1f,high=%0.1f\n",min,max);rn else rn printf("no vaild scores were entered.\n");rn getchar();rn getchar();rn getchar();rn rn请<em>帮我</em><em>看下</em><em>这个</em>程序continue的作用是什么啊,书上说continue可以根据循环体内进行的判断结果来忽略部分循环甚至终止他rn具体是怎么根据,怎么判断,怎么终止,平时你们是怎么理解continue的,因为我总是觉得continue是个鸡肋一样rn
帮我看下这个错误提示
Unable to get the window handle for the 'AxWebBrowser' control. Windowless ActiveX controls are not supported.rnrn大家能根据<em>这个</em>提示,推测一些可能原因和解决的办法吗?(我本机为vista)
麻烦帮我看下这个编译错误
我练习建立一个窗口,用dev-C++做的rn#include rnrnLRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);rnrnint WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevinst, LPSTR lpszCmdline, int nCmdShow) rnrn HWND hwnd; // 窗口句柄rn MSG Msg; // 消息结构体变量 rn WNDCLASS wndclass; // 窗口类实例rn char lpszClassName[] = "window"; // 窗口类名rn char lpszTitle[] = "My-Windows"; // 窗口标题名rn rn wndclass.style = 0; // 窗口类型为默认类型rn wndclass.lpfnWndProc = WndProc; // 窗口处理函数为WndProcrn wndclass.cbClsExtra = 0; // 窗口类无扩展rn wndclass.cbWndExtra = 0; // 窗口实例无扩展rn wndclass.hInstance = hInstance; // 当前实例句柄rn wndclass.hIcon = LoadIcon(NULL, IDI_APPLICATION);rn // 窗口最小化的图标为默认图标rn wndclass.hCursor = LoadCursor(NULL, IDC_ARROW);rn // 窗口采用箭头光标rn wndclass.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH);rn // 窗口背景为白色rn wndclass.lpszMenuName = NULL; // 窗口中无菜单rn wndclass.lpszClassName = lpszClassName;rn // 窗口类名rn rn if(!RegisterClass(&wndclass)) //窗口类注册函数,注册成功返回真 rn rn MessageBeep(0); //该函数返回一个布尔值 rn return FALSE;rn rn rn hwnd = CreateWindow(lpszClassName, //LPCTSTR lpszClassName窗口类名rn lpszTitle, //LPCTSTR lpszTitle窗口实例的标题名rn WS_OVERLAPPEDWINDOW, //DWORD dwStyle 窗口风格(标识) rn CW_USEDEFAULT, //int x 窗口左上角横坐标(默认值) rn CW_USEDEFAULT, //int y 窗口左上角纵坐标(默认值) rn CW_USEDEFAULT, //int nWidth窗口宽度(默认值) rn CW_USEDEFAULT, //int nHeight窗口高度(默认值)rn NULL, //HWND hwndParent父窗口句柄(无)rn NULL, //HMENU hMenu窗口主菜单句柄(无主菜单) rn hInstance, //HINSTANCE hInstancern //创建窗口的应用程序当前句柄(无)rn NULL //LPVOID lpParamrn //指向一个传递给窗口的参数值的指针(无) rn );rn ShowWindow(hwnd, nCmdShow); rn UpdateWindow(hwnd); rn while(GetMessage(&Msg, NULL, 0, 0)) rn rn TranslateMessage(&Msg); rn DispatchMessage(&Msg); rn rn return Msg.wParam; rn rn rn rn编译显示的错误就两个连接错误:rn [Linker error] undefined reference to `_Z7WndProcP6HWND__jjl@16' rn [Linker error] undefined reference to `GetStockObject@4' rnrn不知道是什么意思啊,请各位高手看看拉
帮我看下这个存储过程啊
create or replace procedure update_tablern(columnName in varchar2,rn vendorId in varchar2,rn vendorId2 in varchar2rn )rn isrn query_str varchar2(4000);rn vendor_Id varchar2(64);rn vendor_Id2 varchar2(64);rn cursor cl is select table_name from user_tab_columns m where m.COLUMN_NAME=columnName;rn tableName c1%rowtype; rn beginrn vendor_Id:=vendorId;rn vendor_Id2:=vendorId2;rn open cl;rn fetch c1 into tableName;rn if tableName%notfound rn query_str :='update table '||tableName||' set vendor_id ='||vendor_Id||' where vendor_id = '||vendor_Id2;rn execute immediate query_str;rn dbms_output.put_line('update success!');rn end if;rn close c1;rn end;rnrnquery_str := 这一行报错! ????
大神帮我
org.apache.jasper.JasperException: An exception occurred processing JSP page /article.jsp at line 10rnrn7: ResultSet rs = DB.executeQuery(stmt, sql); rn8: try rn9: while(rs.next()) rn10: Article a = new Article();rn11: a.setId(rs.getInt("id"));rn12: a.setPid(rs.getInt("pid"));rn13: a.setRootId(rs.getInt("rootId"));rnrnrnStacktrace:rn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:521)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rnrnrnroot cause rnrnjavax.servlet.ServletException: java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class com.wangyingjun.bbs.Article)rn org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:865)rn org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:794)rn org.apache.jsp.article_jsp._jspService(article_jsp.java:228)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rnrnrnroot cause rnrnjava.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class com.wangyingjun.bbs.Article)rn org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2822)rn org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)rn org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)rn org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)rn org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:128)rn org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)rn java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)rn org.apache.jsp.article_jsp.tree(article_jsp.java:20)rn org.apache.jsp.article_jsp._jspService(article_jsp.java:91)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rnrn问题是我导入<em>这个</em>包了 实在是不会啊
大神帮我看看!
请问一个问题 我在主窗体的panel容器里添加了一个Form子窗体 也实现了点击后子窗体最大化的效果 但是在主窗体不是最大化的时候点击弹出子窗体后 我去把主窗体最大化之后 Form子窗体不会跟随panel的尺寸改变 rnrn private void Form1_Load(object sender, EventArgs e)rn rn this.WindowState = System.Windows.Forms.FormWindowState.Maximized;rn this.panelFrom.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;rn this.label1.ForeColor = Color.LightPink;rn rnrnrn private void OpenForm(Form objForm)rn rn objForm.TopLevel = false;//将子窗体设置成费顶级控件rn objForm.WindowState = FormWindowState.Maximized;//设置窗体最大化rn objForm.FormBorderStyle = FormBorderStyle.None;//去掉窗体边框rn objForm.Dock = System.Windows.Forms.DockStyle.Fill;//设置子窗体属性为Fillrn //objForm.Anchor = System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top |System.Windows.Forms.AnchorStyles.Bottom;rn objForm.Parent = this.panelFrom;//指定当前子窗体显示的容器rn this.panelFrom.Controls.Add(objForm);rn objForm.Show();rnrn rnrn private void 合同履行情况ToolStripMenuItem_Click(object sender, EventArgs e)rn rn FrmContract objForm = new FrmContract();rn this.OpenForm(objForm);rn rnrn private void panelFrom_SizeChanged(object sender, EventArgs e)rn rn foreach(Control ctrl in this.panelFrom.Controls)rn rn if (ctrl is Form)rn rn ctrl.Height = this.panelFrom.Height;rn ctrl.Width = this.panelFrom.Width;rn rn rn rn
[求助]帮我看下这个程序!!!!~~~~~~~~~~
RT 我写了个考试系统。。。我用了动态数组,但是当读取多个题目的时候。。会出现乱码。。。。可能是我的动态数组用错了,希望哪位达人<em>帮我</em><em>看下</em>。。应该怎么改!!!谢谢!!!!rnrnrnrn#include rn#include rn#define LEN sizeof(struct question) rn#define NULL 0rnvoid creat();rnvoid read();rnvoid print();rnvoid save();rnvoid menu1();rnvoid choose();rnvoid print1();rnstruct questionrnrn char sub[100];rn char op1[20];rn char op2[20];rn char op3[20];rn char op4[20];rn char ans[20];rn char sec[20];rn float diff;rn struct question *next;rn;rnstruct question *head;rnstruct question *a;rnint n;rnint i=0;rnvoid menu() rn rn int j; rn while(1) rn rn system("cls"); rn printf("\t\t※------------------试卷制作系统----------------------※\n\n"); rn printf("\t\t\t1: 添加题目库\n"); rn printf("\t\t\t2: 保存题目库\n "); rn printf("\t\t\t3: 读取题目库\n"); rn printf("\t\t\t4: 显示所有题目\n");rn printf("\t\t\t5: 试卷选题\n"); rn printf("\t\t\t6: 退出程序\n");rn printf("\n\t\t※------------------ZOUYI制作----------------------------※\n\n"); rn scanf("%d",&j); rn switch(j) rn rn case 1:creat();break;rn case 2:save();break;rn case 3:read();break;rn case 4:print();break;rn case 5:menu1();break;rn case 6:exit(0);break;rn rn rn rnvoid creat() rn rn struct question *p1,*p2;rn system("cls"); rn n=0; rn p1=(struct question*)malloc(LEN);rn printf("请输入第%d个题目的章节==>\n",++n); rn scanf("%s",p1->sec);rn fflush(stdin);rn if(strcmp(p1->sec,"0")==0) rn rn n=n-1;rn menu();rn rn printf("请输入第%d个题目的难度==>\n",n); rn scanf("%f",&p1->diff);rn fflush(stdin);rn printf("请输入第%d个题目的题干==>\n",n); rn scanf("%s",p1->sub);rn fflush(stdin);rn printf("请输入第%d个题目的选项1==>\n",n); rn scanf("%s",p1->op1);rn fflush(stdin);rn printf("请输入第%d个题目的选项2==>\n",n); rn scanf("%s",p1->op2);rn fflush(stdin);rn printf("请输入第%d个题目的选项3==>\n",n); rn scanf("%s",p1->op3);rn fflush(stdin);rn printf("请输入第%d个题目的选项4==>\n",n); rn scanf("%s",p1->op4);rn fflush(stdin);rn printf("请输入第%d个题目的答案==>\n",n); rn scanf("%s",p1->ans);rn fflush(stdin);rn printf("\n"); rn while(1) rn rn if(n==1) head=p1; rn else p2->next=p1; rn p2=p1; rn p1=(struct question*)malloc(LEN);rn printf("请输入第%d个题目的章节==>\n",++n); rn scanf("%s",p1->sec);rn fflush(stdin);rn if(strcmp(p1->sec,"0")==0) rn rn n=n-1;rn break;rn rn printf("请输入第%d个题目的难度==>\n",n); rn scanf("%f",&p1->diff);rn fflush(stdin);rn printf("请输入第%d个题目的题干==>\n",n); rn scanf("%s",p1->sub);rn fflush(stdin);rn printf("请输入第%d个题目的选项1==>\n",n); rn scanf("%s",p1->op1);rn fflush(stdin);rn printf("请输入第%d个题目的选项2==>\n",n); rn scanf("%s",p1->op2);rn fflush(stdin);rn printf("请输入第%d个题目的选项3==>\n",n); rn scanf("%s",p1->op3);rn fflush(stdin);rn printf("请输入第%d个题目的选项4==>\n",n); rn scanf("%s",p1->op4);rn fflush(stdin);rn printf("请输入第%d个题目的答案==>\n",n); rn scanf("%s",p1->ans);rn fflush(stdin);rn printf("\n"); rnrn rn p2->next=NULL;rn menu();rn rnvoid print() rn rn struct question *p;rn char j;rn system("cls");rn if(head==NULL)rn rn while(1)rn rn system("cls");rn printf("没有题目!!!!\n");rn printf("是否要创建? y/n\n");rn scanf("%c",&j);rn switch(j)rn rn case 'n':menu();break;rn case 'y':creat();break;rn case 'Y':creat();break;rn case 'N':menu();break;rn rn rnrn rn system("cls"); rn printf("\t\t 总共有==> %d ");rn scanf("%s",sec);rn printf("请输入要考试的难度==>");rn scanf("%f",&diff);rn printf("请输入题目的数量(0~~~%d)==>",n);rn scanf("%d",&j);rn p=head;rn while(p!=NULL)rn rn if(strcmp(sec,p->sec)==0)rn rn if(diff==p->diff)rn rn a=(struct question*)malloc(LEN);rn strcpy(a[i].sub,p->sub);rn strcpy(a[i].op1,p->op1);rn strcpy(a[i].op2,p->op2);rn strcpy(a[i].op3,p->op3);rn strcpy(a[i].op4,p->op4);rn strcpy(a[i].ans,p->ans);rn strcpy(a[i].sec,p->sec);rn a[i].diff= p->diff;rn i++;rn rn rn p=p->next;rn rn printf("\n\n");rn printf("1.继续选题 2.返回 [ ]\b\b");rn scanf("%d",&c);rn switch(c)rn rn case 1:;break;rn case 2:menu1();break;rn rnrn rn rnvoid print1() rn rn int k=0;rn system("cls");rn rn printf("%s [] \n%s %s %s %s \n\n\n",a[k].sub,a[k].op1,a[k].op2,a[k].op3,a[k].op4);rn printf("%d",i);rn getch();rn menu1();rnrnmain() rn rn menu(); rn
帮我看下这个问题!
import java.io.*;rnrnpublic class TestDatarn public static void main(String[] agrs)rn tryrn ByteArrayOutputStream out = new rn ByteArrayOutputStream();rn DataOutputStream output = rn new DataOutputStream(out);rn output.writeInt(98);rn output.writeUTF("YANGYONGJIE");rn ByteArrayInputStream in = new rn ByteArrayInputStream(out.toByteArray());rn DataInputStream input = rn new DataInputStream(in);rn System.out.println("读出了" + in.available() + "字节");rn int a = input.readInt();rn String tem = input.readUTF();rn rn System.out.print(a + " " + tem);rn rn catch(IOException e)rn rn rnrn代码是对的 你们运行下看看 ! 我的问题是 它为什么显示的是17 个字节 ! "yangyongjie" + int 怎么算也是15个啊 就算char 占2个字节 那也是26啊; 怎么会是17呢 ! 原来以为字符串后面跟有\n 但是把"yangyongjie" 打印出来又没有 ! 谁能我分析下 ?
BBS论坛的设计和实现下载
基于jsp+mysql+javabeans的BBS论坛 。包括用户注册模块,问题分类模块,系统设置模块,发表模块,退出模块 相关下载链接:[url=//download.csdn.net/download/cjsjm/2238328?utm_source=bbsseo]//download.csdn.net/download/cjsjm/2238328?utm_source=bbsseo[/url]
sql各种常用语句下载
各种常用的sql语句,非常全,基本涵盖了常用的sql语句,对于初学者学习非常有帮助! 相关下载链接:[url=//download.csdn.net/download/axhiao/4459436?utm_source=bbsseo]//download.csdn.net/download/axhiao/4459436?utm_source=bbsseo[/url]
cocoa programming下载
苹果机器编程,mac 机器上的应用程序开发技术,介绍得很完整,并且深入浅出 相关下载链接:[url=//download.csdn.net/download/sportswolf/8043581?utm_source=bbsseo]//download.csdn.net/download/sportswolf/8043581?utm_source=bbsseo[/url]
相关热词 c# 去空格去转义符 c#用户登录窗体代码 c# 流 c# linux 可视化 c# mvc 返回图片 c# 像素空间 c# 日期 最后一天 c#字典序排序 c# 截屏取色 c#中的哪些属于托管机制
我们是很有底线的