帮我qq空间破解一下,急急急!求大神 [问题点数:20分]

Bbs1
本版专家分:0
结帖率 0%
我一下
c++ builder生成mdi程序,结果保存和另存为都不可用,我加了一个savddialog进来,并且添加了代码,可还是不可用,请问这是怎么回事?
大神
在jquery中怎么样隐藏标签内容
大神
rnrncom.ibm.ws.webservices.engine.description.TypeDescrnrncom.ibm.ws.webservices.engine.encoding.SerializationContextrnrncom.ibm.ws.webservices.engine.utils.QNameTablernrnrn这些 类都是哪个jar里的类啊rnrncom.ibm.ws.webservices.engine 这个包名的。rnrn以前没弄过这个,也不好怎么解释。<em><em>急</em><em>急</em></em><em>急</em>rnrn百度,无果 <em>求</em>jar 包
大神回复一下,
刚刚学了struts的国际化,想通过页面的一个按钮来修改浏览器的默认设置语言,<em>求</em>js代码。<em>求</em><em>大神</em>教一下
大神
[img=https://img-bbs.csdn.net/upload/201404/05/1396699228_695028.jpg][/img]rnrn图片上的两个文本框和登录按钮是图片,不是真正的文本框,我想用真正的文本框去代替它,但是文本框的样子最好还是这样,有什么办法没有啊
大神我解决一下,
有关调用实时(JIT)调试而不是此对话框的详细信息,rn请参见此消息的结尾。rnrn************** 异常文本 **************rnSystem.DllNotFoundException: 无法加载 DLL“dhnetsdk.dll”: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)。rn 在 NetSDK.NETClient.CLIENT_Init(fDisConnect cbDisConnect, IntPtr dwUser)rn 在 NetSDK.NETClient.NETInit(fDisConnect cbDisConnect, IntPtr dwUser) 位置 e:\项目\NetSDK\NetSDKCS\NetSDK.cs:行号 400rn 在 Camera.frm_Main.frm_Main_Load(Object sender, EventArgs e) 位置 e:\项目\NetSDK\Camera\frm_Main.cs:行号 219rn 在 System.Windows.Forms.Form.OnLoad(EventArgs e)rn 在 System.Windows.Forms.Form.OnCreateControl()rn 在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)rn 在 System.Windows.Forms.Control.CreateControl()rn 在 System.Windows.Forms.Control.WmShowWindow(Message& m)rn 在 System.Windows.Forms.Control.WndProc(Message& m)rn 在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)rn 在 System.Windows.Forms.ContainerControl.WndProc(Message& m)rn 在 System.Windows.Forms.Form.WmShowWindow(Message& m)rn 在 System.Windows.Forms.Form.WndProc(Message& m)rn 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)rn 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)rn 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)rnrnrn************** 已加载的程序集 **************rnmscorlibrn 程序集版本:4.0.0.0rn Win32 版本:4.0.30319.18408 built by: FX451RTMGRELrn 基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dllrn----------------------------------------rnCamerarn 程序集版本:1.0.0.0rn Win32 版本:1.0.0.0rn 基本代码:file:///E:/%E9%A1%B9%E7%9B%AE/NetSDK/Camera/bin/Debug/Camera.exern----------------------------------------rnSystem.Windows.Formsrn 程序集版本:4.0.0.0rn Win32 版本:4.0.30319.18408 built by: FX451RTMGRELrn 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dllrn----------------------------------------rnSystem.Drawingrn 程序集版本:4.0.0.0rn Win32 版本:4.0.30319.18408 built by: FX451RTMGRELrn 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dllrn----------------------------------------rnSystemrn 程序集版本:4.0.0.0rn Win32 版本:4.0.30319.18408 built by: FX451RTMGRELrn 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dllrn----------------------------------------rnNetSDKCSrn 程序集版本:1.0.0.0rn Win32 版本:1.0.0.0rn 基本代码:file:///E:/%E9%A1%B9%E7%9B%AE/NetSDK/Camera/bin/Debug/NetSDKCS.DLLrn----------------------------------------rnSystem.Configurationrn 程序集版本:4.0.0.0rn Win32 版本:4.0.30319.18408 built by: FX451RTMGRELrn 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dllrn----------------------------------------rnSystem.Xmlrn 程序集版本:4.0.0.0rn Win32 版本:4.0.30319.18408 built by: FX451RTMGRELrn 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dllrn----------------------------------------rnmscorlib.resourcesrn 程序集版本:4.0.0.0rn Win32 版本:4.0.30319.18408 built by: FX451RTMGRELrn 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dllrn----------------------------------------rnSystem.Windows.Forms.resourcesrn 程序集版本:4.0.0.0rn Win32 版本:4.0.30319.18408 built by: FX451RTMGRELrn 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/System.Windows.Forms.resources.dllrn----------------------------------------rnrn************** JIT 调试 **************rn要启用实时(JIT)调试,rn该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置rnjitDebugging 值。rn编译应用程序时还必须启用rn调试。rnrn例如:rnrnrn rnrnrn启用 JIT 调试后,任何未经处理的异常rn都将被发送到在此计算机上注册的 JIT 调试器,rn而不是由此对话框处理。rnrnrn我不知道怎么就出现了这种问题,之前我都没有碰到过,<em>求</em><em>大神</em>教我怎么处理,谢谢!
大神!!!!!!
[img=https://img-bbs.csdn.net/upload/201404/05/1396698990_183125.jpg][/img]rnrn我想把这副图片里的两个文本框换成自己的文本框,还有登录按钮,但是样式最好还是现在这样式,有没有什么办法啊
,谁能我一下?!?!?!?!
用100元买100只鸡,母鸡5元1只,公鸡3元1只,小鸡1元3只,用java循环该怎么样写????
大神
我做的是一个猜数字小游戏 但是在输出前五名记录的时候运行是错的 <em>求</em><em>大神</em><em>帮</em>我看看啊 很<em>急</em>很<em>急</em> 明天就要交了 小女子感激不尽 [img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/49.gif][/img]rnrn#includern#includern#includern#includern#includern#includern#include rnrnusing namespace std;rnrnrnconst int max=100;rnvoid instruction();rnvoid start();rnvoid playrecord(char *filename);rnvoid CreateFile2(char *filename); rnvoid Topfive(); rnvoid Topfiverefer(char *filename);rnrnrnclass player //定义一个玩家类,记录玩家的排名、姓名以及成绩rn rnpublic:rn char name[20];rn float score;rn int rank;rnrn rn player(char *a=" ",float b=0, int c=0) rn rn strcpy(name,a); rn score=b;rn rank=c;rnrn rn rn void Setname(char *a=" ") rn rn strcpy(name,a); rn rn void Setscore(float b)rn rn score=b;rn rn void Setrank(int c)rn rn rank=c;rn rn rnrnpl[1000];rnrnstatic int x; //定义一个静态的全局变量rnrnrnvoid CreateFile1(char *filename)//新建一个文本文件存放所有猜出单词的玩家记录?rnrn x++;rn ofstream outf(filename,ios::app);rn cout<>pl[x].name;rn outfn;rn switch (n)rn rn case 1: instruction();rn break;rn case 2: start();rn break;rn case 3: playrecord("playrecord.txt");rn break;rn case 4: Topfive();rn break;rn case 5: exit(0);rn break;rn rn rnrnrnrnrnrnvoid instruction()rnrn system("cls");rn cout<<>number;rn rn while(number!=i)rn rn times++;rn if(number>i)rn cout<<<>c;rn if (c=='y')rn rn rn system("cls");rn goto mark1;rn rn CreateFile1("playrecord.txt");rn cout<<
大神解决
var da:XML=new XML(rn 总排名rn 质量rn 成本rn 消耗顿酒成本rn 吨酒净水收入rn 效率rn 安全rn 组织rn );rnrn怎么得到 节点的个数?rnrnrn
聊天程序 大神 !!!
向Textarea中写入字符串后,保留原来的字符再向里面写怎么做???
大神忙!!!!!
连接服务器上的Oracle数据,BS不能连CS可以连rn一样的代码rn[code=csharp]rnstring oradb = "Data Source=CYWL;User ID=CY_HSP_YF;Password=yfht;";rn OracleConnection conn = new OracleConnection(oradb);rn conn.Open();rn conn.Dispose();rn[/code]rn客户端rnOracle\ora90\network\ADMIN\tnsnames.orarn如下:rnrnCYWL =rn (DESCRIPTION =rn (ADDRESS_LIST =rn (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.9)(PORT = 1521))rn )rn (CONNECT_DATA =rn (SERVER = DEDICATED)rn (SERVICE_NAME = logistics)rn )rn )rn<em><em>急</em><em>急</em></em><em>急</em>![img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/1.gif][/img]弄了一天了!rnrnrn
大神解答。。!!
[img=https://img-bbs.csdn.net/upload/201404/08/1396949936_660665.jpg][/img]rnrn这大概是什么情况??
大神支招 . . . .
在线阅读PDF 文件. PDF文件大的话,加载太慢. 有什么办法能减少时间吗 .
大神来啊!。。。。。。。。。
用jQuery.Ajax实现签到功能,我是用java,mysql。rn重点在与,我要签到的源码,,,,不管什么方法、rn而且 我的签到是,点击按钮数据库插入一条记录,比如插入一个status,数字1代表签到, 主要的是,当我点击签到的时候,把按钮设为只读。就OK签退功能我用定时器在到达那个时间自动签退。
大神指点!!!!!
[code=javascript] //同步检验真实姓名(realName)rn function checkrealName()rn var flag = false;rn var realName = $("#realName").val().strip();rn alert(realName);rn if("" == realName || realName == null)rn $("#realNameMsg").text("姓名不能为空!");rn return;rn elsern var b = checkRealName();rn if(b == true)rn //var realName = $("#realName").val();rn $.ajax(rn url:"../account/accountValid.action",rn data:"realName="+realName,rn type:"post",rn async:"false",rn dateType:"json",rn success:function(data)rn if(data.okAccount)rn alert("+++++++");rn flag = false;rn $("#realNameMsg").text("姓名已重复,请重新录入!").show();rn //return flag;rn elsern alert("~~~~~~");rn flag = true;rn alert("flag:"+flag)rn $("#realNameMsg").text("此姓名可以使用!").show();rn //return flag;rn rn rn );rn rn rn return flag;rn rn[/code]rnrn最后return怎么返回的是false!!
大神啊。
[img=https://img-bbs.csdn.net/upload/201506/25/1435216867_203404.png][/img]<em>求</em>解,这是什么情况?
菜鸟大神
请问 现有一个栏目的页面 能显示一个信息能用下拉列表选择其他的信息 rn如何在他的下面显示一个所有信息的列表 并且是把最新信息置前的[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/3.gif][/img]rn
大神
[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/1.gif][/img]我遇到问题 关于文件读写rn附上源文件rn提出问题:我用的是一个结构体向磁盘写入文件,但是读取的时候不是多读一行 就是读不出来。rn#include rn#include rnrnstruct studentrnrn int num;rn char name[20];rn char fale[5];rn char nextschool;rn int water;rn int elct;rnstu[10];rnrnrnrnclass student1rnrnpublic:rn void inputdata();rn void inputtxt();rn rn void readtxt();rn;rnrnvoid student1::inputdata()rnrn //ofstream h;rn //h.open("D:\\student.txt",ios::app);rn for(int i=0;i>stu[i].num>>stu[i].name>>stu[i].fale>>stu[i].nextschool>>stu[i].elct>>stu[i].water;rn rn rnrn rnrnrnvoid student1::inputtxt()rnrn fstream h;rn h.open("D:\\student.txt",ios::app);rn for(int i=0;i<>stu[i++].num>>stu[i++].name>>stu[i++].fale>>stu[i++].nextschool>>stu[i++].elct>>stu[i++].water;rn cout<<
!!!大神指教
我数据库有一个表(user)是这样的[img=https://img-bbs.csdn.net/upload/201704/18/1492514540_312947.png][/img]rnrn我现在列表需要这样展示:[img=https://img-bbs.csdn.net/upload/201704/18/1492514779_539761.png][/img]rn我sql应该怎么去写啊
大神回复
[img=https://img-bbs.csdn.net/upload/201611/06/1478433801_567794.png][/img]rn[img=https://img-bbs.csdn.net/upload/201611/06/1478433810_86378.png][/img]rn问题一:为什么显示的不是“地址”,而是"undefined"?rn问题二:如果要this来显示"地址",代码该怎么改?
新手,大神忙,~~!
c:(.text+0x87a): undefined reference to `DebugHex'rnc:(.text+0x8b4): undefined reference to `Debug'rnrnlinux环境下编译报错, 是这个函数没有包含头文件吗? rnrnDebugHex和Debug我在C语言里从来没见到过,麻烦<em>大神</em>告诉我这个是要包含哪个头文件? 或者是被的错误,<em><em>急</em><em>急</em></em><em>急</em>~~!
QQ空间破解
QQ<em>空间</em><em>破解</em> 2009年07月12日   评论一下嘛!光看不评论不厚道啊   这个办法的首要条件是你所在的机器开过你想要的QQ号,这又分两种情况,一是你所在的机器真的曾经开过这个号码,二是通过共享入侵得到你想要的号码的整个目录,把它拷贝到你的OICQ的目录下,启动OICQ你就能在号码选择下拉列表中看到这个号码了。共享入侵请参看本站黑客教程之 对共享主机的简单入侵 ,网上硬盘共享最...
qq空间破解
<em>破解</em>QQ<em>空间</em>个人加密相册,加密说说,加密访客。解答你所有
QQ空间代码 破解
QQ<em>空间</em>5.0已经封代码了,只能按照<em>空间</em>里预先设定的步骤一步步的装扮<em>空间</em>。按照这个步骤是不可能放上自己做的flash并且让flash全屏显示的。可是有的人的<em>空间</em>的flash就是全屏显示的(而且并不是用的腾讯的flash)。我百度了一下,发现确实有少数人有方法做到。请问这种方法的原理是什么,如果方便的话请告诉我实现方法。
破解QQ空间访问权限
不<em>求</em>具体方法,只问现在能<em>破解</em>吗?需要学什么?希望通过自己掌握的能力做到。<em>求</em><em>大神</em>们指导。
qq空间背景音乐破解
<em>qq</em> <em>空间</em>背景音乐<em>破解</em> 添加有说明的,自己试试吧
QQ空间相册破解
绕过加密相册验证码, ,让你看<em>空间</em>加密相册不再是梦
哪位大神我解答一下我的问题?!!
现在又一个工程要用工控机的485接口,在windows下用的都正常,在Ubuntu下用不了这个口,open函数打开该口后返回输入输出错误,不能修改该串口信息,也不能收发,但是剩下的232口是正常的,是不是Linux下需要专门的485驱动,??我是小白,不会写,有没有现成的?或者<em>大神</em>们能不能提供个解决方案啊?
高手破解QQ空间密码!!
感激不尽!!!
大神给答案..
电子秒表设计:用四位LED数码管作显示器的电子秒表,计时精度为0.1秒,显示格式为:分一位,秒两位,十分之一秒一位,分和秒、秒和十分之一秒之间加小数点分隔。比如:5分27.3秒显示为:5.27.3。按一下按钮启动计时器每十分之一秒加一,再按一下该按钮停止计时,再按一下按钮,数字回到”0.00.0”,如此周而复始。(晶振频率为12MHz)rn#include rn#define U8 unsigned charrnU8 tab[]=0xa0,0xbb,0x62,0x2a,0x39,0x2c,0x24,0xba,0x20,0x28;rnU8 scn[]=0x7f,0xbf,0xdf,0xef;//先点亮左边一个数码管rnU8 buf[4]=0,0,0,0;// 显示缓冲区,开机先显示"0000" rnU8 cnt = 0; // 扫描计数rnvoid main(void) rn EA = 1; // 允许中断rn TMOD = 0x01; // 设定时器0为模式1(16位) rn ET0 = 1; // 定时器0中断允许 rn TH0 = 0xee; // 晶振11.0592MHz,5mS rn TL0 = 0; rn TR0 = 1; // 开始计数 rn while(1); // 死循环,等待中断rn rnvoid timeint(void) interrupt 1 // 定时器0中断服务程序rn char i;rn TH0 = 0xee; // 设置定时器时间常数 rn TL0 = 0; rn i = cnt & 0x03; // <em>求</em>应点亮的LED号(从左到右依次为 0,1,2,3)rn P0 = tab[buf[i]]; // 笔划代码送P0口 rn P2 = scn[i]; // 控制扫描码送P2口rn if(cnt==200)rn cnt=0; // 到1秒钟,显示的数字加一rn for(i=3;i>=0;i--)rn buf[i]++;rn if(buf[i]==10) buf[i]=0;// 加到10向前进位rn else break;rn rn rn cnt++;rn
大神光临一下
本人最近学习java里面的GUI的编程,想实现java数据结构里面的堆栈功能,进栈,出栈,取栈顶....最好有代码提示一下,谢谢各位<em>大神</em>啊!
大神优化一下sql
SELECT a.BSID,b.KIND_NAME,a.BSNAME,a.regionid,c.ADDRESS_DETAIL,d.object_namernFROM RSS_REGIONBUILDINGPORT01 a , rt_address_info01 c , SCHNRESREALTIONKIND b,TCGAV_OBJECT drnWHERE a.regionid IN (select regionidrn from rss_regionbuildingport01rn group by regionidrn having count(regionid) > 1)rn and c.ADDRESS_ID = a.regionid rn and a.BSTYPE = b.KIND_CODErn and a.REGIONID = c.ADDRESS_ID rn and c.BELONG_GROUP = d.OBJECT_IDrn速度太慢了<em>求</em>优化
大神, C++ , 动态分配空间, 释放
1、为什么释放后,指针a还是有内存<em>空间</em>,且操作范围更大了???rn2、应该如何正确的释放???rn[code=c]# include rnusing namespace std;rnrnint *creat(int n);rnvoid del(int *p);rnrnint main()rnrn int *a;rnrn a = creat(4);rnrn del(a); //释放动态分配的<em>空间</em>rnrn for (int i = 0; i < 5; i++) //问题:释放后为什么还可以向a[i]赋值,且访问的范围可以更大??rn a[i] = 1;rn rn return 0;rnrnrnint *creat(int n)rnrn int *p = new int[n]; //动态分配大小为n * sizeof(int)的<em>空间</em>rnrn for (int i = 0; i < n; i++)rn cin >> p[i];rnrn return p; //返回动态分配<em>空间</em>的首地址rnrnrnvoid del(int *p)rn rn delete []p;rn p = NULL;rn[/code]
在线!!大神
[img=https://img-bbs.csdn.net/upload/201701/11/1484097723_964628.png][/img]
~~~ 大神忙!
基于phonegap的手机APK,其他手机暂无发现其他问题,只有三星的note2,安装apk运行就报错,报错如下:rnrn就大家<em>帮</em><em>帮</em>忙,在线等~~!rnrnrnrn11-18 13:44:35.703: E/(9517): Device driver API matchrn11-18 13:44:35.703: E/(9517): Device driver API version: 23rn11-18 13:44:35.703: E/(9517): User space API version: 23 rn11-18 13:44:35.703: E/(9517): mali: REVISION=Linux-r3p2-01rel3 BUILD_DATE=Wed Oct 30 09:36:10 KST 2013 rn11-18 13:44:39.443: E/dalvikvm-heap(9517): Out of memory on a 6554896-byte allocation.rn11-18 13:44:39.448: E/AndroidRuntime(9517): FATAL EXCEPTION: mainrn11-18 13:44:39.448: E/AndroidRuntime(9517): java.lang.RuntimeException: Unable to start activity ComponentInfocom.dianvo.app.html5/com.ericssonlabs.ScrollLayoutActivity: android.view.InflateException: Binary XML file line #53: Error inflating class rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2308)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2362)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.app.ActivityThread.access$700(ActivityThread.java:168)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1329)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.os.Handler.dispatchMessage(Handler.java:99)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.os.Looper.loop(Looper.java:137)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.app.ActivityThread.main(ActivityThread.java:5493)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at java.lang.reflect.Method.invokeNative(Native Method)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at java.lang.reflect.Method.invoke(Method.java:525)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1209)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1025)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at dalvik.system.NativeStart.main(Native Method)rn11-18 13:44:39.448: E/AndroidRuntime(9517): Caused by: android.view.InflateException: Binary XML file line #53: Error inflating class rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.view.LayoutInflater.createView(LayoutInflater.java:626)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:675)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:700)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.view.LayoutInflater.rInflate(LayoutInflater.java:761)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.view.LayoutInflater.rInflate(LayoutInflater.java:769)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.view.LayoutInflater.inflate(LayoutInflater.java:498)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.view.LayoutInflater.inflate(LayoutInflater.java:398)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.view.LayoutInflater.inflate(LayoutInflater.java:354)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:361)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.app.Activity.setContentView(Activity.java:1956)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at com.ericssonlabs.ScrollLayoutActivity.onCreate(ScrollLayoutActivity.java:45)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.app.Activity.performCreate(Activity.java:5372)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1104)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2270)rn11-18 13:44:39.448: E/AndroidRuntime(9517): ... 11 morern11-18 13:44:39.448: E/AndroidRuntime(9517): Caused by: java.lang.reflect.InvocationTargetExceptionrn11-18 13:44:39.448: E/AndroidRuntime(9517): at java.lang.reflect.Constructor.constructNative(Native Method)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at java.lang.reflect.Constructor.newInstance(Constructor.java:417)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.view.LayoutInflater.createView(LayoutInflater.java:600)rn11-18 13:44:39.448: E/AndroidRuntime(9517): ... 25 morern11-18 13:44:39.448: E/AndroidRuntime(9517): Caused by: java.lang.OutOfMemoryErrorrn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:596)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:444)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:832)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.content.res.Resources.loadDrawable(Resources.java:2988)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.content.res.TypedArray.getDrawable(TypedArray.java:602)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.view.View.(View.java:3563)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.view.View.(View.java:3492)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.view.ViewGroup.(ViewGroup.java:469)rn11-18 13:44:39.448: E/AndroidRuntime(9517): at android.widget.RelativeLayout.(RelativeLayout.java:242)rn11-18 13:44:39.448: E/AndroidRuntime(9517): ... 28 morern
初学hibernate,大神指导,
本人的教师表属性有id,name,pass,auther(权限)...我在jsp页面上想通过传用户名、密码和权限来判断教师登录,跳到不同的界面...但是HibernateUtil.getSession.get()需要传入主键,我该怎么写action已经dao中的代码???
大神忙!!!!!!!!!
java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for com.baidu.menu.dao.TabDaoI.selectTabtablern at org.apache.ibatis.session.Configuration$StrictMap.get(Configuration.java:672)rn at org.apache.ibatis.session.Configuration.getMappedStatement(Configuration.java:507)rn at org.apache.ibatis.session.Configuration.getMappedStatement(Configuration.java:500)rn at org.apache.ibatis.binding.MapperMethod.setupCommandType(MapperMethod.java:240)rn at org.apache.ibatis.binding.MapperMethod.(MapperMethod.java:71)rn at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:39)rn at com.sun.proxy.$Proxy22.selectTabtable(Unknown Source)rn at com.baidu.menu.service.TabServiceImpl.selectTabtable(TabServiceImpl.java:19)rn at com.baidu.menu.controller.TabController.menu(TabController.java:25)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:606)rn at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)rn at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)rn at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:777)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:706)rn at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)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.doGet(FrameworkServlet.java:857)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)rn at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:399)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:317)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:204)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:182)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:311)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:744)
大神解决!!!!!!!
[img=http://img.my.csdn.net/uploads/201212/01/1354365140_2163.jpg][/img]我的代码及运行结果如下,可是结果中的广度优先遍历错了,应该是1364725,怎样改正??题目要<em>求</em>对下面的图进行深度优先遍历和广度优先遍历[img=http://img.my.csdn.net/uploads/201212/01/1354365129_7045.jpg][/img]rnrnrnrnrnrnrn#include rn#include rn#define max 30rnint x=0,edge=0;rntypedef struct node //定义队列结构体rn int data;rn node *front,*rear;rn struct node * next;rnlinkqueue;rnint visited[max];rntypedef struct //定义邻接矩阵结构体rnrn int vexs[max];rn int adj[max][max];rn int n,e;rngraph;rnvoid init_queue(linkqueue *Q)rnrn Q->front=(node *)malloc(sizeof(node));rn Q->rear=Q->front;rn Q->front->next=NULL;rnrnint queue_empty(linkqueue *Q)rnrn if(Q->front==Q->rear)rn return 1;rn else return 0;rnrnvoid En_queue(linkqueue *Q,int x)rnrn node *p=(node *)malloc(sizeof(node));rn p->data=x;rn p->next=NULL;rn Q->rear->next=p;rn Q->rear=p;rnrnvoid Out_queue(linkqueue *Q,int &x)rnrn node *u;rn if(queue_empty(Q)==1)rn printf("error");rn elsern x=Q->front->next->data;rn u=Q->front->next;rn Q->front->next=u->next;rn free(u);rn if(Q->front->next==NULL)rn Q->front=Q->rear;rn rnrnvoid creategraph(graph *g) //以邻接矩阵为存储结构创建一个无向图rnrn rn int i,j,k;rn int m=0;rn printf("请输入图的顶点数和边数(以,隔开):");rn scanf("%d,%d",&(g->n),&(g->e));rn printf("请输入图的各顶点(以空格间隔):");rn for(i=1;in);i++)rn scanf("%d",&g->vexs[i]);rn for(i=1;in);i++)rn for(j=1;jn);j++)rn g->adj[i][j]=0;rn printf("输入%d条边,建立邻接矩阵如下:",g->e);rn for(k=1;ke;k++)rn scanf("%d,%d",&i,&j);rn g->adj[i][j]=1;rn g->adj[j][i]=1;rn for(i=1;in;i++)rn for(j=1;jn;j++)rn printf("%d ",g->adj[i][j]);rn m++;rn if(m%(g->n)==0)rn printf("\n");rn rn rnrnrnint firstadj(graph *g,int v) //遍历顶点的第一个邻接点rnrn int k,p,i;rn for(i=1;in);i++)rn if(g->vexs[i]==v)rn k=i; //确定顶点V的编号为krn for(i=1;in);i++) //从邻接矩阵的第k行开始,找值为1的,即irn if(g->adj[k][i]==1)rn p=g->vexs[i];rn return p;rn rn return 0;rnrnint nextadj(graph *g,int v,int w) //返回顶点的邻接点中处于其第一个邻接点后的结点rnrn int k,p,q,i;rn for(i=1;in);i++)rn if(g->vexs[i]==v)rn k=i; //确定顶点V的编号为krn for(i=1;in);i++)rn if(g->vexs[i]==w)rn q=i; //确定顶点w的编号为qrn for(i=q+1;in);i++)//在邻接矩阵第k行,第q+1个数据开始,找值为1的,并且未访问过的顶点号,即irn if(g->adj[k][i]==1)rn p=g->vexs[i];rn return p;rn rn return 0;rnrnvoid bfs(graph *g,int v) //由顶点发出的广度优先搜索rnrn int w,k;rn node *q;rn q=(node *)malloc(sizeof(node));rn init_queue(q);rn for(int i=1;in);i++) //找图G中顶点V的编号,相应visited[]置1rn if(g->vexs[i]==v)rn k=i;rn visited[k]=1;rn printf("%d\n",v);rn rn rn En_queue(q,v); //只要访问就入队列rnrn while (!queue_empty(q)) rn Out_queue(q,v); rn w=firstadj(g,v); rn while (w!=0) rn if ( !visited[w] )rn rn printf("%d\n",w);rn visited[w]=1;rn En_queue(q,w); rn rn w=nextadj(g,v,w);rn rn rnrnrnrnrnrnrnrnrn/* h=firstadj(g,v);rn if(h!=0 && visited[h]==0)rn visited[h]=1; rn En_queue(q,h);rn rn if(h!=0)rn m=nextadj(g,v,h);rn if(m!=0&&visited[m]==0)rn En_queue(q,m);rn while(m!=0)rn rn m=nextadj(g,v,m);rn if(m!=0&&visited[m]==0)rn En_queue(q,m);rn rn rn while(queue_empty(q)!=1)rn Out_queue(q,v);rn w=firstadj(g,v);rn while(w!=0)rn rn if(visited[w]==0)rn printf("%d\n",w);rn visited[w]=1;rn En_queue(q,w);rn rn w=nextadj(g,v,w);rn rn rn*/rnrnvoid bfs_travel(graph *g) //广度遍历整个图rnrn int i;rn for(i=1;in);i++)rn visited[i]=0;rn for(i=1;in);i++)rn if(! visited[i])rn bfs(g,i);rn rnvoid dfs(graph *g,int v) //由顶点发出的深度优先搜索rnrn int w,i,k;rn printf("%d\n",v);rn for(i=1;ivexs[i]==v)rn k=i;rn visited[k]=1;rn rn w=firstadj(g,v);rn while(w!=0)rn edge++;rn if(visited[w]==0)rn dfs(g,w);rn w=nextadj(g,v,w);rn rnrnvoid dfs_travel(graph *g) //深度遍历整个图rnrn int i;rn for(i=1;in);i++)rn visited[i]=0;rn for(i=1;in);i++)rn if(visited[i]==0)rn x++;rn dfs(g,i);rn rn rn edge=edge/2;rnrnvoid main() //主函数rnrn int i;rn graph *g;rn g=(graph *)malloc(sizeof(graph));rn for(i=1;in;i++)rn visited[i]=0;rn creategraph(g);rn printf("图的广度遍历得:\n");rn bfs_travel(g);rn printf("图的深度遍历得:\n");rn dfs_travel(g);rn printf("共%d个连通分量\n",x);rn printf("边数为%d\n",edge);rnrnrnrnrnrnrnrnrnrnrn
哪位大神我一下
我用的是VS2008,C#,现在我将数据都放在datagrid中,但有的太长,我不想全部显示,当鼠标移过来的时候我用一个div全部显示。rnrnJS代码: rnrn rnCSS: .movedivrn border-top:#B5CAE2 1px solid;rn border-right:#7A93AC 1px solid;rn border-bottom:#698197 1px solid; rn border-left:#A7BFD5 1px solid; rn font-size:12px; rn background:#DBE5F3; rn width:250px; rn color:#272F3B; rnrn line-height:150%; rn PADDING:4px 6px; rn position:absolute; z-index:1;rn rnrnC#后台代码lbl_Principal.Attributes.Add("onmouseover", "javascript:this.style.cursor='hand';");rn lbl_Principal.Attributes.Add("onmousemove", "javascript:mousemove('" + ls_Principal + "');");rn lbl_Principal.Attributes.Add("onmouseout", "javascript:mouseout();");rnrn但是我但不调试的时候总显示document.documentElement.scrollTop,document.documentElement.scrollLeft为0 rndiv到不了合适的地方,谁能告诉我一下啊,<em>急</em>!!!!!!!!!!!!!!!!!!!rnrn
c++程序题,ps后面为什么有中括号,数组吗?
警察局有多名警察,每个警察抓获一名贼,警察局的声望就增加1点,该警察的奖金就增加100元。初始时,警察局声望为100;各警察的奖金为0。设计及实现要<em>求</em>:警察局组合多名警察,每个警察知道其所属的警察局。请给出PoliceStation和Police的类定义和实现,使得下面的main函数有相应的预期输出(不得改动main函数)。#include&amp;lt;iostream&amp;gt;using namespa...
大神我解决一下,谢谢啊!!
[b][color=#FF00FF]我的代码为什么获得不了每一列的数据呢?根据字段获得数据的代码我写了啊,怎么回事啊[/color][/b]rnrnrnpackage cn.org.ier.dao;rnrnimport java.lang.reflect.Method;rnimport java.sql.Connection;rnimport java.sql.PreparedStatement;rnimport java.sql.ResultSet;rnimport java.util.ArrayList;rnimport java.util.List;rnrnimport com.mysql.jdbc.ResultSetMetaData;rnrnimport cn.org.ier.db.DB;rnimport cn.org.ier.pojo.User;rnrnpublic class FindUtil rnprivate static Connection conn;rnstaticrn conn=DB.getConn();rnrnpublic static List findAll(Class pojo)rn List list=new ArrayList();rn //获得pojo名称rn String tableName=pojo.getSimpleName();rn String sql="select * from "+tableName;rn PreparedStatement ps=null;rn try rn ps=conn.prepareStatement(sql);rn ResultSet res=ps.executeQuery();rn ResultSetMetaData rsmd=(ResultSetMetaData) res.getMetaData();rn while(res.next())rn Object obj = Class.forName(pojo.getName()).newInstance();rn for (int i = 1; i +clsType);rn // 获得方法rn Class typeClass = Class.forName(clsType);rn Method m = pojo.getDeclaredMethod(name, typeClass);rn // 根据字段获得数据rn Object value = res.getObject(i);rn m.invoke(obj, value);rn rn rn list.add(obj);rn rn catch (Exception e) rn e.printStackTrace();rn finallyrn try rn ps.close();rn catch (Exception e) rn e.printStackTrace();rn rn rnrn rn rn rn rn return list;rnrn public static void main(String[] args) rn FindUtil .findAll(User.class);rn rnrn
大神我代码大概注释一下
public class MainActivity extends Activity n private int i = 0;n private Handler handler;n private ImageView mouse;n private TextView textView ;n private ImageView integral; //整体图片n private Chronometer ch ; //计时器n private SoundPool pool; //播放音效n private static MediaPlayer mp = null; n private HashMap soundmap = new HashMap();n public int[][] position = new int[][] 150, 100 , 250, 100 , //地鼠出现的位置n 350, 100 , 450, 100 , 550, 100 , 650, 100 ,n 50, 100 , 150, 220 , 250, 220 , 350, 510 ,n 450, 220 , 550, 220 , 650, 220 , 50, 220 ;nn @Overriden protected void onCreate(Bundle savedInstanceState) n super.onCreate(savedInstanceState);n setContentView(R.layout.activity_main);n n //音乐n //如果音乐不为空,释放n if(mp != null)n mp.release();n n mp = MediaPlayer.create(MainActivity.this, R.raw.dalaoshu);n mp.start();n n //计时器n ch = (Chronometer) findViewById(R.id.chronometer1);n ch.setBase(SystemClock.elapsedRealtime());//复位计时器,停止计时n ch.setFormat("已用时间:%s");n ch.start();n //设置监听n ch.setOnChronometerTickListener(new OnChronometerTickListener() n n @Overriden public void onChronometerTick(Chronometer chronometer) n //如果从开始到现在超过了30sn if(SystemClock.elapsedRealtime() - ch.getBase() >= 30000)n Intent intent = new Intent(MainActivity.this,Finish.class);n Bundle bundle = new Bundle();n bundle.putInt("num", i);n intent.putExtras(bundle);n startActivity(intent);n finish();n n n );n n textView = (TextView) findViewById(R.id.textView1);n mouse = (ImageView) findViewById(R.id.imageView1);n integral=(ImageView) findViewById(R.id.imageView2);n integral.setVisibility(View.INVISIBLE);n pool = new SoundPool(2, AudioManager.STREAM_SYSTEM, 0);n soundmap.put(1, pool.load(MainActivity.this, R.raw.dalaoshu,1));n soundmap.put(2, pool.load(MainActivity.this, R.raw.enter,1));n pool.play(soundmap.get(1), 1, 1, 0, -1, 1);n final Animation translate = AnimationUtils.loadAnimation(MainActivity.this, R.anim.anim_translate);n mouse.setOnTouchListener(new OnTouchListener() nn @Overriden public boolean onTouch(View v, MotionEvent event) n v.setVisibility(View.INVISIBLE);// 设置地老鼠不显示n i++;n pool.play(soundmap.get(2), 1, 1, 0, 0, 1);n integral.startAnimation(translate);n integral.setVisibility(View.INVISIBLE);n textView.setText("积分:"+i+"0");n return false;n n );n handler = new Handler()n n @Overriden public void handleMessage(Message msg) n int index = 0;n if(msg.what == 0x111)n index = msg.arg1;n mouse.setX(position[index][0]);n mouse.setY(position[index][1]);n mouse.setVisibility(View.VISIBLE);n n n super.handleMessage(msg);n n ;n Thread t = new Thread(new Runnable() n n @Overriden public void run() n int index = 0;n while(!Thread.currentThread().isInterrupted())n index = new Random().nextInt(position.length);n Message m = handler.obtainMessage();n m.what = 0x111;n m.arg1 = index;n handler.sendMessage(m); n try n Thread.sleep(new Random().nextInt(240)+200);n n catch (InterruptedException e) n e.printStackTrace();n n n n n );n t.start();n n @Overriden protected void onDestroy() n if(mp != null)n mp.stop();n mp.release();n mp=null;n n super.onDestroy();n n
大神看看,我解决一下。
using 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.Data.SqlClient;rnrnnamespace _201412104043_韩瑞.ScoreFolderrnrn public partial class frmCourseInfo : Formrn rn public frmCourseInfo()rn rn InitializeComponent();rn rn SqlConnection con = DBhelper.Getcon();rn SqlCommand cmd = new SqlCommand();rn SqlDataAdapter dap = new SqlDataAdapter();rn DataTable dtCourse = new DataTable();rnrn private void frmScoreInfo_Load(object sender, EventArgs e)rn rn cmd.Connection = con;rn cmd.CommandText = "select * from Course;";rn dap.SelectCommand = cmd;rn dap.Fill(dtCourse);rn DGVcourse.DataSource = dtCourse;rn DGVcourse.Columns[0].HeaderText = "课号";rn DGVcourse.Columns[1].HeaderText = "课程名";rn DGVcourse.Columns[2].HeaderText = "学分";rn DGVcourse.Columns[3].HeaderText = "学时";rn DGVcourse.Columns[4].HeaderText = "课程类型";rn rnrn private void btnSava_Click(object sender, EventArgs e)rn rn SqlCommandBuilder cbr = new SqlCommandBuilder();rn cbr.DataAdapter = dap;rn dap.InsertCommand = cbr.GetInsertCommand();rn dap.UpdateCommand = cbr.GetUpdateCommand();rn dap.DeleteCommand = cbr.GetDeleteCommand();rn dap.Update(dtCourse);rn rn string curNo;rn string curName;rn int curCredit;rn int Hour;rn string Typ;rn private void btnAddCourse_Click(object sender, EventArgs e)rn rn curNo=txtCourseNum.Text;rn curName=txtCourseName.Text;rn curCredit=Convert.ToInt32( NudCredit.Value);rn Hour=Convert.ToInt32(NudHour.Value);rn Typ=cobCourseType.SelectedText;rn string str = "INSERT INTO Course " +rn "([curNo] " +rn ",[curName]" +rn ",[curCredit]" +rn ",[curPeriod]" +rn ",[curType]) " +rn " VALUES " +rn "('"+ curNo +"'" +rn " ,'" + curName + "'" +rn " ,'" + curCredit + "'" +rn " ,'" + Hour + "'" +rn " ,'" + Typ + "')";rn cmd.CommandText = str;rn dap.InsertCommand = cmd;rn cmd.CommandText = "select * from Course;";rn dap.SelectCommand = cmd;rn dap.Fill(dtCourse);rn DGVcourse.DataSource = dtCourse;rn rn rnrnrn[img=https://img-bbs.csdn.net/upload/201606/25/1466838675_587668.png][/img]rn
~~~~我注释一下java 贪吃蛇
[color=#FF0000]麻烦能不能<em>帮</em>我把这段代码详细的注释一下 谢谢 包括一些申明 定义什么的[/color]import java.util.*;rnimport java.awt.*;rnimport java.awt.event.*;rnimport javax.swing.*;rnimport javax.swing.event.*;rnpublic class SnakeGamern public static void main(String[] args)rn SnakeFrame frame = new SnakeFrame();rn frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);rn frame.setVisible(true);rn rnrn//----------记录状态的线程rnclass StatusRunnable implements Runnablern public StatusRunnable(Snake snake,JLabel statusLabel,JLabel scoreLabel)rn this.statusLabel = statusLabel;rn this.scoreLabel = scoreLabel;rn this.snake = snake;rn rn public void run()rn String sta = "";rn String spe = "";rn while(true)rn rn switch(snake.status)rn case Snake.RUNNING:rn sta = "Running";break;rn case Snake.PAUSED:rn sta = "Paused";break;rn case Snake.GAMEOVER:rn sta = "GameOver";break;rn rn statusLabel.setText(sta);rn scoreLabel.setText(""+snake.score);rn tryrn Thread.sleep(100);rn rn catch(Exception e)rn rn rn rn private JLabel scoreLabel;rn private JLabel statusLabel;rn private Snake snake; rnrn//----------蛇运动以及记录分数的线程rnclass SnakeRunnable implements Runnablern public SnakeRunnable(Snake snake,Component component)rn this.snake = snake;rn this.component = component;rn rn public void run()rn while(true)rn tryrn snake.move();rn component.repaint();rn Thread.sleep(snake.speed);rn rn catch(Exception e)rn rn rn rn private Snake snake;rn private Component component;rnrnclass Snakern boolean isRun;//---------是否运动中rn ArrayList body;//-----蛇体rn Node food;//--------食物rn int derection;//--------方向rn int score ;rn int status;rn int speed;rn public static final int SLOW = 500;rn public static final int MID = 300;rn public static final int FAST = 100;rn public static final int RUNNING = 1;rn public static final int PAUSED = 2;rn public static final int GAMEOVER = 3;rn public static final int LEFT = 1;rn public static final int UP = 2;rn public static final int RIGHT = 3;rn public static final int DOWN = 4;rn public Snake()rn speed = Snake.LOW;rn score = 0;rn isRun = false;rn status = Snake.RUNNING;rn derection = Snake.RIGHT;rn body = new ArrayList();rn body.add(new Node(60,20));rn body.add(new Node(40,20));rn body.add(new Node(20,20)); rn makeFood();rn rn//------------判断食物是否被蛇吃掉rn//-------如果食物在蛇运行方向的正前方,并且与蛇头接触,则被吃掉rn private boolean isEaten()rn Node head = body.get(0);rn if(derection == Snake.RIGHT && (head.x+Node.W) == food.x&&head.y == food.y )rn return true;rn if(derection == Snake.LEFT && (head.x-Node.W) == food.x&&head.y == food.y )rn return true;rn if(derection == Snake.UP && head.x == food.x&&(head.y-Node.H) == food.y )rn return true;rn if(derection == Snake.DOWN && head.x == food.x&&(head.y+Node.H) == food.y )rn return true;rn else return false;rn rn //----------是否碰撞rn private boolean isCollsion()rn Node node = body.get(0);rn//------------碰壁rn if(derection == Snake.RIGHT && node.x == 280)rn return true;rn if(derection == Snake.UP && node.y == 0)rn return true;rn if(derection == Snake.LEFT && node.x == 0)rn return true;rn if(derection == Snake.DOWN && node.y == 380)rn return true;rn//--------------蛇头碰到蛇身rn Node temp = null;rn int i = 0;rn for(i = 3;i
哪位大侠我解决一下,!
#includern#includern#includernlong ss(long n)rn rn long i,k;rn k=sqrt(n);rn for(i=2;i<6;j++)rn s[j]=m%10;m=m/10;rn n=strlen(s);rn j=0;rn for(;j
大神我修改一下代码
[code=java]package com.tianlesoftware.tank;rnimport com.tianlesoftware.tank.Explode.Direction;rnimport java.awt.Color;rnimport java.awt.Frame;rnimport java.awt.Graphics;rnimport java.awt.Image;rnimport java.awt.event.KeyAdapter;rnimport java.awt.event.KeyEvent;rnimport java.awt.event.WindowAdapter;rnimport java.awt.event.WindowEvent;rnimport java.io.IOException;rnimport java.util.ArrayList;rnimport java.util.List;rnimport java.util.Properties;rnrn/**rn * 坦克大战的主类rn * @author tianlesoftwarern *rn */rnpublic class TankWar extends Framernrn /*rn * 定义游戏窗口的大小rn */rn public static final int GAME_WIDTH = 800;rn public static final int GAME_HEIGHT = 600;rn rn// Tank enemyTank = new Tank(100, 100, false, this);rnrn //生成一个自己的坦克rn Tank myTank = new Tank(500,500,true,Direction.STOP,this);rn rn// Explode e = new Explode(70,70,this);rn// Missile m = null;rn rn /*rn * 3个容器,分别保存爆炸效果的数量rn * 炮弹的数量rn * 敌人坦克的数量rn */rn List explode = new ArrayList();rn List missiles = new ArrayList();rn List tanks = new ArrayList();rn rn Image offScreamImage = null;rn rn /*rn * 定义了2堵墙和一个学块rn */rn Wall w1 = new Wall(100, 300, 30, 150,this);rn Wall w2 = new Wall(300,200,300,20,this);rn rn Blood b = new Blood();rn rn /**rn * 画出相应的对象rn */rn public void paint(Graphics g) rn Color c = g.getColor();rn g.setColor(Color.WHITE);rn g.drawString("Missiles count : " + missiles.size(), 10, 50);rn g.drawString("----使用说明:方向键控制坦克方向; 空格发射炮弹; a:发射超级炮弹; F2:坦克重生; 粉红色物体吃了加满血-----",150,50);rnrn g.drawString("explode count : " + explode.size(), 10, 70);rn g.drawString("tanks count : " + tanks.size(), 10, 90);rn g.drawString("tanks lift : " + myTank.getLife(), 10, 110);rn g.setColor(c);rn rn //当坦克被打完后有自动的生成reProduceCount个坦克。reProduceCount可在tank.properties中进行设置。rn if(tanks.size()<= 0) rn for(int i=0; i
ORACLE大神我解决一下sql
[code=sql]SELECT SUBSTR(CRTDATE, 1, 10), NOTPERFECT_USER, AVG(EVERYDAY) EVERYDAYrn FROM (SELECT AP.CRTDATE,rn CASErn WHEN AP.NOTPERFECT_USER IS NOT NULL THENrn AP.NOTPERFECT_USERrn ELSErn AP.OVERBOOKINGUSERrn END NOTPERFECT_USER,rn CASErn WHEN NOTPERFECT_TIME IS NOT NULL THENrn (SELECT (TO_DATE(AP.NOTPERFECT_TIME, 'yyyy-mm-dd hh24:mi:ss') -rn TO_DATE(AP.CRTDATE, 'yyyy-mm-dd hh24:mi:ss')) * 24 * 60rn FROM DUAL)rn ELSErn (SELECT (TO_DATE(AP.OVERBOOKINGDATE, 'yyyy-mm-dd hh24:mi:ss') -rn TO_DATE(AP.CRTDATE, 'yyyy-mm-dd hh24:mi:ss')) * 24 * 60rn FROM DUAL)rn END EVERYDAYrn FROM EXP_BOOKAPD APrn WHERE AP.RECSTS = '1')rn GROUP BY NOTPERFECT_USER, SUBSTR(CRTDATE, 1, 10)rn ORDER BY NOTPERFECT_USER, SUBSTR(CRTDATE, 1, 10);rn[/code]rnrn这个是我获取2个时间相减后的分组的平均值显示出来,现在想做的是AP.NOTPERFECT_TIME和AP.OVERBOOKINGDATE满足以下逻辑,只算工作时间。。排除节假日。如果是工作日的。从上午9点到11点半。从下午1点到下午5点半算工作日。比如上传的时间是11点30.打单员下午1点1分打的单子。那么这票的打单用时就是1分钟。rn
破解QQ空间相册密码
http://photo.<em>qq</em>.com/cgi-bin/common/cgi_list_album?uin=*********&refer=portalrnrn把*号改成QQ号然后在IE里输入,只能看到没加密的图片 标签里的URL,有哪位高手可以<em>破解</em>!rn以前的老办法都不行了,现在加密都有验证码,很难的,大家可以讨论一下!
破解设有权限的QQ空间
好友的QQ<em>空间</em>设有权限咋办?看这个吧,保证你能进入。
QQ空间相册破解工具
如果<em>空间</em>相册加密,可以通过这个工具查看里面的图片,很好用的。
破解有密码的QQ空间
只要在程序里输入对方有密码的QQ<em>空间</em>就可以进去<em>空间</em>了。非常方便。
我一下吧
“三人行,必有我师”,请教各位通过那种方法可以获得免费的资料。谢谢。
QQ加密空间相册破解
可以<em>破解</em>加了密码QQ<em>空间</em>的相册、<em>空间</em>,无病毒,可放心使用
我翻译一下,....
闭路电视录象机说明书,<em>帮</em>我翻译一下,谢谢rnrnrn1.power/timer buttonrn2.stop/eject buttonrn3.record buttonrn4.cassette compartmentrn5.play buttonrn6.puse/still buttonrn7.REW buttonrn8.FF BUTTONrn9. AUDIO ON buttonrn10.MENU buttonrn11.shift/tracking(-) buttonrn12.shift/tracking(+) buttonrn13.clear buttonrn14.REC/PLAY SPEED button (set - button)rn15.REC/PLAY SPEED button (set + button)rn16.counter/clock/alarm buttonrn17.Record check buttonrn18.display buttonrn19.Reset buttonrn20.Remote control lock switchrn21 set lock switchrn22.display windowrn23 remote control lock indicatorrn24.panic in indicatorrnrnrn25.ac power cordrn26.warning out terminalrn27.series in termoinalrn28.COM termoinalrn29.series out termoinalrn30.SW OUT termoinalrn31.Video out jack (BNC TYPE)rn32.VIDEO IN JACK (BNC TYPE)rn33.AUDIO IN JACK (BNC TYPE)rn34.TAPE END termoinalrn35.PANIC IN termoinalrn36.COM termoinalrn37.alarm out termoinalrn38.alarm in termoinalrn39.MIC jackrn40.audio out jackrnrnrn
qq空间密码破解+qq相册破解
能准确的<em>破解</em>,是一款超强的软件!保证你不后悔!快下载吧!
!!!!各位大神
要实现的效果如:[url=http://wenku.baidu.com/view/9febadf4d15abe23482f4d92]http://wenku.baidu.com/view/9febadf4d15abe23482f4d92[/url]rn望各位<em>大神</em>给个例子!新公司第一天上班。[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/1.gif][/img]
nginx负载均衡问题!!!!大神指教!!!
我的拓扑rn[img=https://img-bbs.csdn.net/upload/201404/09/1397032723_113071.png][/img]rn我的配置rnnginx(192.168.6.1)rnrnvim /usr/local/nginx/conf/nginx.confrnrnrnhttp rnrn #add configrn upstream myserver rn server 192.168.6.11:8880;rn server 192.168.6.111:8888;rn rnrn添加rn include /usr/local/nginx/conf/proxy.conf;rnrnrnvim /usr/local/nginx/conf/proxy.conf rnserver rn listen 80;rn server_name dz.zhangmeng.com;rn root /var/www/dz;rn index index.html index.htm index.php;rn location ~ \.(php)?$ rn proxy_redirect off;rn proxy_hide_header Vary;rn proxy_set_header Accept-Encoding '';rn proxy_set_header Host $host;rn proxy_set_header X-Real-IP $remote_addr;rn proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;rn client_max_body_size 10m;rn client_body_buffer_size 128k;rn proxy_connect_timeout 90;rn proxy_send_timeout 90;rn proxy_read_timeout 90;rn proxy_buffer_size 4k;rn proxy_buffers 32 4k;rn proxy_busy_buffers_size 64k;rn proxy_pass http://myserver;rn rnrnrnserver rn listen 80;rn server_name www.zhangmeng.com;rn location ~ \.(php)?$ rn proxy_pass http://myserver;rn proxy_redirect off;rn proxy_hide_header Vary;rn proxy_set_header Accept-Encoding '';rn proxy_set_header Host $host;rn proxy_set_header X-Real-IP $remote_addr;rn proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;rn client_max_body_size 10m;rn client_body_buffer_size 128k;rn proxy_connect_timeout 90;rn proxy_send_timeout 90;rn proxy_read_timeout 90;rn proxy_buffer_size 4k;rn proxy_buffers 32 4k;rn proxy_busy_buffers_size 64k; //这台虚拟主机做测试用的rn rnrnrn根目录rn[root@redhat5-4-1 conf]# cd /varrn[root@redhat5-4-1 var]# cd www/rn[root@redhat5-4-1 www]# lsrndz zhangmengrn[root@redhat5-4-1 www]# cd zhangmeng/rn[root@redhat5-4-1 zhangmeng]# lsrnindex.htmlrn[root@redhat5-4-1 zhangmeng]# cat index.html rnthis is nginxrn[root@redhat5-4-1 www]# cd dzrn[root@redhat5-4-1 dz]# lsrnindex.htmlrn[root@redhat5-4-1 dz]# cat index.html rnthis is dzrnrnrnrnrnapache+php(192.168.6.11)rnrnvim /etc/httpd/conf/httpd.confrnrn这个是修改的rnListen 8880rnNameVirtualHost *:8880rn添加rninclude /etc/httpd/conf/extra/httpd-vhosts.confrnrnvim /etc/httpd/conf/extra/httpd-vhosts.conf rnrnrn DocumentRoot /var/www/dzrn ServerName dz.zhangmeng.comrn rn Options +Indexes Includes ExecCGI FollowSymLinksrn AllowOverride Allrn Order allow,denyrn Allow from allrn rn ErrorLog logs/dz.zhangmeng.com-error_logrn CustomLog logs/dz.zhangmeng.com-access_log commonrnrnrnrn DocumentRoot /var/www/zhangmengrn ServerName www.zhangmeng.comrn rn Options +Indexes Includes ExecCGI FollowSymLinksrn AllowOverride Allrn Order allow,denyrn Allow from allrn rn ErrorLog logs/www.zhangmeng.com-error_logrn CustomLog logs/www.zhangmeng.com-access_log commonrn //测试用rnrn根目录rn[root@redhat5-4-2 www]# cd dzrn[root@redhat5-4-2 dz]# lsrnadmin.php connect.php forum.php member.php search.php uc_serverrnapi cp.php group.php misc.php source userapp.phprnapi.php crossdomain.xml home.php plugin.php staticrnarchiver data index.php portal.php templaternconfig favicon.ico install robots.txt uc_client //这些是安装php论坛的目录和文件rn[root@redhat5-4-2 dz]# cd ../zhangmeng/rn[root@redhat5-4-2 zhangmeng]# lsrnindex.phprn[root@redhat5-4-2 zhangmeng]# cat index.php rnrn[root@redhat5-4-2 zhangmeng]# rnrnrnrnapache+php(192.168.6.111)rnrnrnvim /etc/httpd/conf/httpd.confrnrn这个是修改的rnListen 8888rnNameVirtualHost *:8888rn添加rninclude /etc/httpd/conf/extra/httpd-vhosts.confrnrnvim /etc/httpd/conf/extra/httpd-vhosts.conf rnrnrn DocumentRoot /var/www/dzrn ServerName dz.zhangmeng.comrn rn Options +Indexes Includes ExecCGI FollowSymLinksrn AllowOverride Allrn Order allow,denyrn Allow from allrn rn ErrorLog logs/dz.zhangmeng.com-error_logrn CustomLog logs/dz.zhangmeng.com-access_log commonrnrnrnrn DocumentRoot /var/www/zhangmengrn ServerName www.zhangmeng.comrn rn Options +Indexes Includes ExecCGI FollowSymLinksrn AllowOverride Allrn Order allow,denyrn Allow from allrn rn ErrorLog logs/www.zhangmeng.com-error_logrn CustomLog logs/www.zhangmeng.com-access_log commonrn //测试用rnrnrn根目录rn[root@redhat5-4-3 www]# cd dzrn[root@redhat5-4-3 dz]# lsrnadmin.php connect.php forum.php member.php search.php uc_serverrnapi cp.php group.php misc.php source userapp.phprnapi.php crossdomain.xml home.php plugin.php staticrnarchiver data index.php portal.php templaternconfig favicon.ico install robots.txt uc_client //这些是安装php论坛的目录和文件rn[root@redhat5-4-3 dz]# cd ../zhangmeng/rn[root@redhat5-4-3 zhangmeng]# lsrnindex.phprn[root@redhat5-4-3 zhangmeng]# cat index.php rnrn[root@redhat5-4-3 zhangmeng]# rnrnrnrn测试rn[root@redhat5-4-4 ~]# curl -I http://www.zhangmeng.comrnHTTP/1.1 200 OKrnServer: nginx/1.5.0rnDate: Wed, 09 Apr 2014 08:53:29 GMTrnContent-Type: text/htmlrnContent-Length: 612rnLast-Modified: Tue, 08 Apr 2014 07:34:32 GMTrnConnection: keep-alivernETag: "5343a688-264"rnAccept-Ranges: bytesrnrn[root@redhat5-4-4 ~]# curl -I http://www.zhangmeng.com/index.phprnHTTP/1.1 200 OKrnServer: nginx/1.5.0rnDate: Wed, 09 Apr 2014 08:53:39 GMTrnContent-Type: text/html; charset=UTF-8rnConnection: keep-alivernX-Powered-By: PHP/5.1.6rnrn进行测试的时候可以成功,但是要安装论坛的时候报错了rn测试rn[img=https://img-bbs.csdn.net/upload/201404/09/1397034196_434070.png][/img]rn[img=https://img-bbs.csdn.net/upload/201404/09/1397034269_243012.png][/img]rn安装论坛的时候报错了,不知道是什么原因,<em>求</em><em>大神</em>指教rn报错页面rn[img=https://img-bbs.csdn.net/upload/201404/09/1397034390_764962.png][/img]rnrn我在想既然我测试的时候可以成功,为什么安装论坛的时候不可以,<em>求</em>指教!!!!rnrnrn
sql大神忙解决
各位<em>大神</em>们,现在有两张表realtime(send_time,range,oil)和gps(send_time,speed),我要把这两张表的数据汇总到sum表中,sum表的字段有year,month,day,hour,max(range)-min(range),avg(oil),max(speed),avg(speed),sum表记录的是每小时的数据,年月日小时就是send_time里面的,前两张表是每10秒的数据,他们每条数据都是一一对应的,sum表用的是是组合主键,有年月日小时这4个主键,我用的mysql,达到这一操作的sql语句要怎么写啊,我之前想写成一条,总写不好,后来分2条写,第二个update语句又不知道怎么写了,谢谢<em>帮</em>助我的各位<em>大神</em>
~~~一个正则,谢谢大神
(a+b)*c 或者a+b/(b+c) 和(a+0.9)*(b+0.05)rnrnrn规则是 rnrn开头 可以是 1个或多个正括号 ( 或者英文a-z 或者0-9包括2位数小数 或者中文 ,出现的括号必须成对出现,每个参数或者反括号)后面必须要有个运算符 末尾参数后面不能有运算符或小数点 但可以是小数
,大神解决一个问题.
我从前台获得一个string类型的数据,2014-05,我想通过这个字符串获得2013-05.rn就是通过我获得的年月获得同样去年的年月.麻烦<em>大神</em>给解决一下.
大神指点QT问题!!
公司要在linux下做GPS定位,要<em>求</em>是用QT做界面,用C程序读取GPS中的数据,然后在QT界面中的电子地图中显示出来。rn 请教:1 怎么用QT做电子地图rn 2 C程序读取的数据如何显示到QT中的电子地图上。rn在线<em>求</em>答案!rn谢谢了!
android ScrollView 点击事件 ,大神 。。
rnrn rnrn rnrn rn rnrn rnrn [/color]rnrn rn rn rnrn [color=#3366FF] 请问<em>大神</em>,红色部分怎么做一个点击事件啊,通过id看,应该是一个button,做button的点击事件就可以了,但是,事实上不行,用 Button searchButton = (Button) findViewById(R.Id.search_btn.) 会出现空指异常,rn 麻烦问下,<em>大神</em>,红色部分怎么做点击事件呢? 这个是别人的代码,没太懂[/color]rn
springmvc+shiro出错大神助,!!!!
严重: Exception starting filter shiroFilterrnorg.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'shiroFilter' is definedrn at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:687)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1168)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:281)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)rn at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:962)rn at org.springframework.web.filter.DelegatingFilterProxy.initDelegate(DelegatingFilterProxy.java:324)rn at org.springframework.web.filter.DelegatingFilterProxy.initFilterBean(DelegatingFilterProxy.java:235)rn at org.springframework.web.filter.GenericFilterBean.init(GenericFilterBean.java:199)rn at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4854)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5542)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rnrnrnrn但是我在xml文件中配置了rn rn rn rn rn rn rn rn rn /app/** = anon rn /assets/** = anon rn rn /rest/user/login = anon rn rn /** = authc rn rn rn rn有谁知道为什么不????
。。camtasia studio 大神
[b]camtasia studio 8主程序打不开rn其他工具都能运行 主程序exe打不开rn双击图标鼠标跳一下就没反应了,[/b]
大神上门指点!!!!
public interface BookDao rnrn /**rn * 通过ID查询单本图书rn * rn * @param idrn * @returnrn */rn Book queryById(long id);rnrn /**rn * 查询所有图书rn * rn * @param offset 查询起始位置rn * @param limit 查询条数rn * @returnrn */rn List queryAll(@Param("offset") int offset, @Param("limit") int limit);rnrn /**rn * 减少馆藏数量rn * rn * @param bookIdrn * @return 如果影响行数等于>1,表示更新的记录行数rn */rn int reduceNumber(long bookId);rnrnrnrnBook queryById(long id);rn这是什么意思啊,还有下面的rnList queryAll();,我java自学的,学的东西不太全,这个是不是某种形式的变体啊,就像for(user temp:pm)是历遍,还请解释下,谢谢!
onActivityResult 大神
10-01 12:37:51.070: E/AndroidRuntime(4385): java.lang.RuntimeException: Failure delivering result ResultInfowho=null, request=10001, result=-1, data=Intent (has extras) to activity com.kamagames.legacyoftheempire/com.wonder.fengmo.GameActivity: java.lang.IllegalArgumentException: java.security.spec.InvalidKeySpecException: java.lang.RuntimeException: error:0D07207B:asn1 encoding routines:ASN1_get_object:header too longrn10-01 12:37:51.070: E/AndroidRuntime(4385): at android.app.ActivityThread.deliverResults(ActivityThread.java:3319)rn10-01 12:37:51.070: E/AndroidRuntime(4385): at android.app.ActivityThread.handleSendResult(ActivityThread.java:3362)rn10-01 12:37:51.070: E/AndroidRuntime(4385): at android.app.ActivityThread.access$1100(ActivityThread.java:141)rn10-01 12:37:51.070: E/AndroidRuntime(4385): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1282)rn10-01 12:37:51.070: E/AndroidRuntime(4385): at android.os.Handler.dispatchMessage(Handler.java:99)rn10-01 12:37:51.070: E/AndroidRuntime(4385): at android.os.Looper.loop(Looper.java:137)rn10-01 12:37:51.070: E/AndroidRuntime(4385): at android.app.ActivityThread.main(ActivityThread.java:5039)rn10-01 12:37:51.070: E/AndroidRuntime(4385): at java.lang.reflect.Method.invokeNative(Native Method)rn10-01 12:37:51.070: E/AndroidRuntime(4385): at java.lang.reflect.Method.invoke(Method.java:511)rn10-01 12:37:51.070: E/AndroidRuntime(4385): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)rn10-01 12:37:51.070: E/AndroidRuntime(4385): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)rn10-01 12:37:51.070: E/AndroidRuntime(4385): at dalvik.system.NativeStart.main(Native Method)rn10-01 12:37:51.070: E/AndroidRuntime(4385): Caused by: java.lang.IllegalArgumentException: java.security.spec.InvalidKeySpecException: java.lang.RuntimeException: error:0D07207B:asn1 encoding routines:ASN1_get_object:header too longrn10-01 12:37:51.070: E/AndroidRuntime(4385): at com.wonder.fengmo.Security.generatePublicKey(Security.java:89)rn10-01 12:37:51.070: E/AndroidRuntime(4385): at com.wonder.fengmo.Security.verifyPurchase(Security.java:63)rn10-01 12:37:51.070: E/AndroidRuntime(4385): at com.wonder.fengmo.IabHelper.handleActivityResult(IabHelper.java:493)rn10-01 12:37:51.070: E/AndroidRuntime(4385): at com.wonder.fengmo.GameActivity.onActivityResult(GameActivity.java:215)rn10-01 12:37:51.070: E/AndroidRuntime(4385): at android.app.Activity.dispatchActivityResult(Activity.java:5293)rn10-01 12:37:51.070: E/AndroidRuntime(4385): at android.app.ActivityThread.deliverResults(ActivityThread.java:3315)rn10-01 12:37:51.070: E/AndroidRuntime(4385): ... 11 morern块来<em>帮</em>我看看BUG呀 什么情况这是?????
数据库+vb 大神
vb用控件ado连接sql server数据库后怎么设计一个登录界面,<em>求</em>源代码。。在线等,<em>急</em>。。。拜托<em>大神</em>赐教
登陆助,大神!!!!!!
nn```n protected void btnLogin_Click(object sender, EventArgs e)n n if (lbYzmMsg.Text == "验证码错误,请重试")n n Response.Write(" ");n return;n n DataTable table = SqlHelper.ExecuteDataTable("select * from T_User where UserName=@UserName",n new SqlParameter("@UserName", txtUserName.Text));nn if (table.Rows.Count >= 1)n n DataRow row = table.Rows[0];n if (txtPassword.Text == (string)row["Password"])n n Response.Redirect("Customers.aspx");n n else if (txtPassword.Text != (string)row["Password"])n n Response.Write(" ");n return;n n n elsen n Response.Write(" ");n return;n n n```n为啥这段代码跳不到Customers.aspx这个页面呢,我把那些数据都单独查,都是查的到的,但就是整合起来的时候就直接不运行这段代码了,<em><em>急</em><em>急</em></em><em>急</em>,<em>求</em><em>大神</em>!n
大神指点,感激不尽
[code=java]public View getView(int paramInt, View v, ViewGroup paramViewGroup) rn ViewHolder vh;rn if(v == null) rn v = LayoutInflater.from(mActivity).inflate(R.layout.view_list_configures, null);rn vh = new ViewHolder();rn vh.textView = (TextView)v.findViewById(R.id.configures_text);rn vh.ivImage = (ImageView)v.findViewById(R.id.configures_check_img);rn v.setTag(vh);rn label62: if(paramInt != 0)rn break label124;--冒号报错rn v.setBackgroundResource(R.drawable.no_rect_bg_selector);rn label72: vh.textView.setText((CharSequence)itemsText.get(paramInt));rn if(this.selectIndex != paramInt)rn break label158;--冒号报错rn vh.ivImage.setVisibility(View.VISIBLE);rn rn while(true) rn return v;rn vh = (ViewHolder)v.getTag();rn break label62:rn if(paramInt == -1 + this.itemsText.size())rn label124: v.setBackgroundResource(R.drawable.bottom_rect_bg_selector);rn break label72:rn label158: vh.ivImage.setVisibility(View.VISIBLE); rn rn rnrn public class ViewHolder rn public TextView textView;rn public ImageView ivImage;rnrn public ViewHolder()rn rn [/code]rnrn这两个冒号总是报错,我用是eclipse,错误代码:[color=#FF0000]Syntax error on token ":", ; expected[/color]rn我改为分号也不对,报错的更多,<em>求</em><em>大神</em>指导,这块break label的代码是什么意思?
C语言编程大神解,
[img=https://img-bbs.csdn.net/upload/201306/08/1370652523_90669.jpg][/img]
asp.net数据库连接大神指导,
login failed for user ...这是咋回事[img=https://img-bbs.csdn.net/upload/201905/20/1558359099_199877.jpg][/img][img=https://img-bbs.csdn.net/upload/201905/20/1558359101_972847.jpg][/img]
sql问题大神解题
表A有一个字段是refobjid 里面 存的是objid 以逗号隔开,比如1,2,4n表B存的是对象 其中有objid 跟表A的refobjid关联,nnn现在想通过表A的objid查到 refobjid 然后查出 表B中的 几个对象,<em>求</em>解,n用in函数不行 因为 refobjid查出来的是字符串 不是数组。
~~~~~~各位大神大虾。。。
各位<em>大神</em><em>帮</em>忙用C语言解答一下这道题吧。。。万分感谢啊~~~~rnrn一直解都没解出来。rnrnrn在一个二维平面上给定N 个点(4 <= 1000),接下来有N 行每行输入两个整数xi,yi rn代表点的坐标。 rnrn★数据输出 rnrn输出一行:的正方形的个数 rnrn 输入示例 输出示例 rn 4 1 rn 1 0 rn 0 1 rn 1 1 rn 0 0 rnrn 输入示例 输出示例 rn 9 6 rn 0 0 rn 1 0 rn 2 0 rn 0 2 rn 1 2 rn 2 2 rn 0 1 rn 1 1 rn 2 1
各位大神忙解决!!!
根据ID查找出当前用户所拥有的权限 然后显示出菜单 只显示该用户所拥有的权限 菜单也是从数据库动态获取的 所以想问怎样动态创建菜单按钮 而只显示当前登录用户的权限菜单
大神助一波
[img=https://img-bbs.csdn.net/upload/201612/19/1482076914_511317.png][/img]rnrn怎么才能获取datagrid 中的内容rnrn[code=csharp]rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn[/code]rnrn
大神忙下,。在线等
sql 2008:rn在一张表中(类似菜单),根据一个或多个父节点查询出所有自节点(包括子节点下的子节点)。rnrnfid fnumber fname fparentrn1 N001 name1 rn2 N00101 name2 1rn3 N002 name3 rn4 N00201 name4 2rn.rn .rn .rnn-1 N0020201 name5 4 rnn N00202 namen 2rnrn如我需要查出rnN001,N002下的所有数据,用一条sql语句???
大神们解决啊。。。。。。。。。。。。。
<em><em>急</em><em>急</em></em><em>急</em>,<em>求</em><em>大神</em>们解决啊。。。。。。。。。。。。。
,js代码运行问题,大神解答
[code=javascript]rnvar data1="";//全局变量rn//删除rnfunction del()rnrn var rows = $('#dg').datagrid('getSelections');rn if (rows.length >= 1) rn if (confirm("确认要删除?")) rn for (var i = 0; i < rows.length; i++) rn $.post("Handler.ashx", testid: rows[i].testid, caozuo: "del" ,rn function (data) data1=data rn )rn rn alert(data1);rn $('#dg').datagrid( loadFilter: pagerFilter ).datagrid('loadData', getData());rn rn rn rn rn else alert("请选择一行数据!!!") rn rn[/code]rn上诉代码执行的时候为什么先是执行的alert(data1),然后才执行data1=data,实在搞不懂,<em>求</em><em>大神</em>解答
大神忙看看
java.lang.ClassNotFoundException: net.sourceforge.jtds.jdbc.Driverrn at java.net.URLClassLoader$1.run(URLClassLoader.java:202)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:190)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:306)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:247)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:171)rn at com.dao.ConnectionFactory.getConnection(ConnectionFactory.java:17)rn at com.dao.EquipmentDao.getAllEquipment(EquipmentDao.java:13)rn at Equipment.(Equipment.java:111)rn at Equipment$1.run(Equipment.java:43)rn at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)rn at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:672)rn at java.awt.EventQueue.access$400(EventQueue.java:81)rn at java.awt.EventQueue$2.run(EventQueue.java:633)rn at java.awt.EventQueue$2.run(EventQueue.java:631)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)rn at java.awt.EventQueue.dispatchEvent(EventQueue.java:642)rn at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)rn at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)rn at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)rn at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)rn at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)rn at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)rnjava.lang.NullPointerExceptionrn at com.dao.EquipmentDao.getAllEquipment(EquipmentDao.java:36)rn at Equipment.(Equipment.java:111)rn at Equipment$1.run(Equipment.java:43)rn at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)rn at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:672)rn at java.awt.EventQueue.access$400(EventQueue.java:81)rn at java.awt.EventQueue$2.run(EventQueue.java:633)rn at java.awt.EventQueue$2.run(EventQueue.java:631)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)rn at java.awt.EventQueue.dispatchEvent(EventQueue.java:642)rn at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)rn at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)rn at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)rn at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)rn at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)rn at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)rn
大神做个小程序、
这个题明天要用<em>求</em><em>大神</em>写一个最好简单一点附带说明、数据结构的程序、![图片说明](https://img-ask.csdn.net/upload/201705/11/1494501228_540184.png)
PHP大神解答疑惑!!
我用的是phpstudy 这个软件,然后var_dump 输出不显示文件路径。nphp-in 下的XDebug 属性也改了,还是不行。烦的很,希望<em>大神</em>能够指点迷津,万分感谢[face]monkey:15.gif[/face][face]monkey:15.gif[/face][face]monkey:15.gif[/face][img=https://img-bbs.csdn.net/upload/201906/11/1560251304_269313.png][/img][img=https://img-bbs.csdn.net/upload/201906/11/1560251302_167870.png][/img]
大家新年快乐!.大神.
我的电脑安装了一个11g企业版 安装了一个10g客户端 现在的问题是 我去bin里直接运行sqlplus 10g的可以运行 当运行11g的sqlplus的时候 直接弹框sqlplus已停止工作.运行不起来 rnrn服务器是Linux的11g版本 我要在本地做备份exp 结果报错 . rn正在导出触发器rnEXP-00056: 遇到 ORACLE 错误 1455rnORA-01455: 转换列溢出整数数据类型rnEXP-00000: 导出终止失败rn我查了一下应该是 我cmd的时候 由于环境变量 10g在前面 导致我用10g导出11g 版本不行 所以我想手动打开11g的sqlplus 结果就出现我现在的问题了 打不开rn<em>求</em><em>大神</em>解决.新年第一天....
ios开发大神助,
有过一年的C/C++客户端网游经验,想转做ios开发,我不想一来就买mac真机,主要是价格不便宜,我的是戴尔i5cpu+win7旗舰版3G内存的本本,不知道能不能直接安mac os或者虚拟机装OS,另外如今我到底该从何入手,该看哪些资料或书籍,希望有经验的朋友给些建议,万分感谢。
!!!C语言大神一枚!!!
[size=24px]本人用C语言写了一个猜拳游戏,运行结果如图:<em>求</em><em>大神</em>解释如何修改才能使字符型的do....while判断语句符合要<em>求</em>(第二个主函数).....rnrn第一个主函数的运行结果[/size]rn[img=https://img-bbs.csdn.net/upload/201404/25/1398402786_937448.png][/img]rnrn[size=24px]第二个函数的运行结果:[/size]rn[img=https://img-bbs.csdn.net/upload/201404/25/1398402847_967506.png][/img]rnrnrn[size=24px]程序代码如下:[/size]rnrn[code=c]rn#includern#includernrnint User_Choice()rnrn int u;rn dorn rn printf("请出拳(1-石头,2-剪刀,3-布):");rn scanf("%d",&u);rn switch(u)rn rn case 1:printf("你出的是石头!\n");break;rn case 2:printf("你出的是剪刀!\n");break;rn case 3:printf("你出的是布!\n");break;rn default:printf("你的输入有误,请重新输入!\n");continue;rn rn while(u3);rn return u;rnrnrnint Computer_Choice()rnrn int c;rn srand(time(0));rn c=rand()%3+1;rn switch(c)rn rn case 1:printf("电脑出的是石头!\n");break;rn case 2:printf("电脑出的是剪刀!\n");break;rn case 3:printf("电脑出的是布!\n");break;rn rn return c;rnrnrnvoid Compare(int c, int u)rnrn if((u==1 && c==2)||(u==2 && c==3)||(u==3 && c==1))rn printf("你赢了!\n");rn if((c==1 && u==2)||(c==2 && u==3)||(c==3 && u==1))rn printf("电脑赢了!\n");rn if(u==c)rn printf("你和电脑打平了!\n");rnrnrnrnvoid main()rnrn int c,u;rn int flag=1;rn dorn rn u=User_Choice();rn c=Computer_Choice();rn Compare(c,u);rn printf("还要继续玩吗?(1/0):");rn scanf("%d",&flag);rn if(flag==0) break;rn while(flag==1);rn printf("谢谢使用!欢迎下次再玩!\n");rnrnrnrnrn/*rnvoid main()rnrn int c,u;rn char ans;rn dorn rn u=User_Choice();rn c=Computer_Choice();rn Compare(c,u);rn printf("还要继续玩吗?(y/n):");rn scanf("%c",&ans);rn if((ans=='n')||(ans=='N')) break;rn while((ans=='y')||(ans=='Y'));rn printf("谢谢使用!欢迎下次再玩!\n");rnrnrn*/rnrn[/code]
大神忙啊
关于socket出现乱码问题rn服务端代码:package test;rnrnimport java.io.BufferedReader;rnimport java.io.IOException;rnimport java.io.InputStream;rnimport java.io.InputStreamReader;rnimport java.io.PrintWriter;rnimport java.net.ServerSocket;rnimport java.net.Socket;rnimport java.util.Vector;rnimport java.util.concurrent.BlockingQueue;rnimport java.util.concurrent.ExecutorService;rnimport java.util.concurrent.Executors;rnimport java.util.concurrent.LinkedBlockingQueue;rnrnpublic class Server rn private ServerSocket serverSocket;rn rn //线程池rn private ExecutorService threadPool;rn rn /**rn * 双缓冲队列,用于保存所有客户端发送到服务器的信息rn */rn private BlockingQueue msgQueue;rn rn /**rn * 创建一个集合,用于保存所有客户端的输出流rn * 因为多线程要访问这个集合,它应该是个安全的rn */rn private Vector allOut = rn new Vector();rn rn public Server()rn try rn /**rn * 打开服务端Socket时要捕获异常rn * 最常见的这里出现的问题就是申请的端口号已经被rn * 其他程序占用了。rn * 错误信息中会出现 JVM_BIND 的信息。rn * rn * 这里的端口号不是真正意义上的端口,是一个抽象的rn * 概念rn * 我们可以理解为是我们的程序在操作系统上想使用网络rn * 通信,而相操作系统注册的一个编号。rn * 将来外界发送信息过来时,操作系统就根据信息要请<em>求</em>rn * 的端口号,将这段信息交给我们的程序去处理。rn */rn serverSocket = new ServerSocket(8087);rn //创建线程池rn threadPool = Executors.newCachedThreadPool();rn// threadPool = Executors.newFixedThreadPool(20);rn //初始化双缓冲队列rn msgQueue = new LinkedBlockingQueue();rn rn //启动用于转发信息的线程rn SendInfoToCliendHandler handler = rn new SendInfoToCliendHandler();rn Thread thread = new Thread(handler);rn thread.start();rn rn System.out.println("服务器启动了");rn catch (IOException e) rn e.printStackTrace();rn rn rn rn //开始服务rn public void start()rn try rn /**rn * Socket accept()rn * 该方法用于在8088端口进行等待,等待客户端的连接rn * 当一个客户端通过ip与端口号连接上时,会返回这个rn * 客户端的Socket与其开始通信。rn * 这个方法是一个阻塞方法,若客户端一直不连接,该rn * 方法就一直不能执行完毕。rn */rn while(true)rn System.out.println("等待客户端的连接...");rn Socket socket = serverSocket.accept();rn System.out.println("一个客户端连接了。");rn rn /**rn * 一个客户端连接了,就将这个客户端的输出流rn * 放入共享集合rn */rn allOut.add(rn new PrintWriter(rn socket.getOutputStream()rn )rn );rn rn /**rn * 启动一个线程,用于和刚连上的这个客户端交流rn */rn Handler handler = new Handler(socket);rn// Thread t = new Thread(handler);rn// t.start();rn /**rn * 将并发执行的任务交给线程池,让线程池分配rn * 空线程来运行。线程池在运行完任务后会自动rn * 回收线程等待再次分配任务去执行。rn */rn threadPool.execute(handler);rn rn rn catch (Exception e) rn e.printStackTrace();rn rn rn rn public static void main(String[] args) rn /**rn * 因为构造方法中创建了ServerSocketrn * 所以这里相当于就启动了服务端rn */rn Server server = new Server();rn /**rn * 调用start方法后,会监听ServerSocket注册的端口号rn * 8088,等待客户端的连接。rn */rn server.start();rn rn rn /**rn * 定义一个线程体rn * 该线程体用来并发操作rn * 每一个线程用来与一个客户端交流,获取客户端发送过来的rn * 信息rn * @author adminrn *rn */rn private class Handler implements Runnablern /**rn * 当前线程要处理的客户端Socketrn */rn private Socket client;rn rn /**rn * 通过构造方法,将客户端Socket传进来rn * @param clientrn */rn public Handler(Socket client)rn this.client = client;rn rn @Overridern public void run() rn try rn /**rn * 通过刚刚连接的客户端的Socket获取输入流rn * 用于读取客户端发送过来的信息rn */rn InputStream in = client.getInputStream();rn /**rn * 将字节输入流转换为缓冲字符输入流,以便于我们rn * 以行为单位读取字符串rn */rn InputStreamReader ir rn = new InputStreamReader(in);rn rn BufferedReader reader rn = new BufferedReader(ir);rn String info = null;rn //循环读取客户端发送过来的信息rn while((info = reader.readLine())!= null)rn// System.out.println("客户端说:"+info);rn// //将这个客户端发送的信息转发给所有客户端rn// for(int i =0;i
!新人大神助啊~~~
#include rn#include rn#include rn#include rn#include rn#define NULL 0 rntypedef struct Node rn rnint m;//密码 rnint n;//序号 rnstruct Node *next; rnNode,*Linklist; rnLinklist create(int z) //生成循环单链表并返回,z为总人数 rn rnint i,mm; rnLinklist H,r,s; rnH=NULL; rnprintf("请按顺序依次为每个人添加密码:"); rnfor(i=1;in=i; rns->m=mm; rnprintf("%d号的密码%d",i,s->m); rnif(H==NULL)//从链表的第一个节点插入 rn rnH=s; rnr=H; rn rnelse//链表的其余节点插入 rn rnr->next=s; rnr=s;//r后移 rn//for结束 rnr->next=H;/*生成循环单链表*/ rn rnreturn H; rnrn rnvoid search(Linklist H,int m0,int z)//用循环链表实现报数问题 rn rnint count=1;//count为累计报数人数计数器 rnint num=0;//num为标记出列人数计数器 rnLinklist pre,p; rnp=H; rnprintf("出列的顺序为:");rn while(numnext; rn rnwhile(countnext=p->next;rnprintf("%d ",p->n); rnm0=p->m; rnfree(p); rnp=pre->next; rncount=1; rnnum++; rn//while结束 rn rnvoid clean() rn rnint system(const char *string); rnint inquiry; rnprintf("请问需要清除上一次操作记录吗(1.清屏/2.不清屏)...?\n"); rnscanf("%d",&inquiry); rnif(inquiry ==1) rnsystem("cls");rn rn void text() rn int m0,z,i, choose,k=1; //k用来阻止第一次进入程序清屏操作 rnLinklist H; rnbool chooseFlag=false; rnwhile(1) rn rnif(k!=1)rn clean();rn k++; rnwhile(!chooseFlag)rn rnprintf(" ……………………欢迎进入约瑟夫环问题系统…………………… \n"); rnprintf( "* 1.输入约瑟夫环数据 * \n"); rnprintf(" * 2.什么是约瑟夫环 * \n"); rnprintf(" * 3.退出系统 * \n"); rnprintf("........................................................ \n"); rnprintf("请输入相应的数字进行选择: "); scanf("%d",&choose); rnfor(i=1;i,asctime( ptrtime ) ) /*用asctime()将结构体转化为字符串输出*/ rntext(); rnrn 大学狗做课程设计,这个程序运行不出来麻烦<em>大神</em>给看看,老是提示错误...是不是哪里大括号用的不对[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/1.gif][/img][img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/1.gif][/img][img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/1.gif][/img]
大神!!!!!
正在做一个考勤查询,如何实现数据库中没有考勤记录的员工,查询时能显示出来每一天都有这些没签到的人,<em>求</em>助。
大神忙!
如何用2个C语言文件写一个完整的hello,要<em>求</em>弄够相互调用,在此谢谢各位了!把代码给我就行
大神
Action代码:rn[code=java]package cn.com.jdbc.action;rnrnimport cn.com.jdbc.model.User;rnrnimport com.opensymphony.xwork2.ActionSupport;rnrnpublic class JsonAction extends ActionSupportrnrn/**rn * rn */rnprivate static final long serialVersionUID = 1L;rnprivate User user;rn public User getUser() rnreturn user;rnrnrnrnpublic void setUser(User user) rnthis.user = user;rnrn/**rn * ajax返回结果,也可是其他类型的,这里以String类型为例rn */rn private String result;rnrn public String login() throws Exception rn return SUCCESS;rn rnsrn public String getResult() rn return result;rn rnrnrn[/code]rn实体类Userrn[code=java]package cn.com.jdbc.model;rnrnpublic class User rn/**rn * 姓名rn */rn private String name;rn public String getName() rnreturn name;rnrnpublic void setName(String name) rnthis.name = name;rnrnpublic String getInch() rnreturn inch;rnrnpublic void setInch(String inch) rnthis.inch = inch;rnrn/**rn * 身高rn */rn private String inch;rn[/code]rnStruts.xmlrn[code=html]rnrnrnrnrn rn rn rn rn rn user.*rn resultrn rn rn rnrn[/code]rnrnJSPrn[code=html]rnrnrnrnrnrn rn rn rn My JSP 'index.jsp' starting pagern rn rn rn rn rn rn rn rn rn rn rn rn rnrn[/code]rnrn[img=https://img-bbs.csdn.net/upload/201403/17/1394988606_523757.jpg][/img]
!!大神
[img=https://img-bbs.csdn.net/upload/201712/12/1513068504_319054.jpg][/img]rn[img=https://img-bbs.csdn.net/upload/201712/12/1513068516_318301.jpg][/img]rn
C++各位大神破解
#includernusing namespace std;rn#includern#includernrnint main()rnrn int m,d,i,j,k;rn char a[4],b[4]="0/0";rncin>>a;rn while(strcmp(a,b)!=0)rn rn m=atoi(a.substr (0));rn d=atoi(a.substr (3,4));rn if(m==8)rn d+=31;rn int p=0;rn for(j=1;ja;rn rn return 0;rnrnrn rn错误如下:rnrn rn.cpp(13) : error C2228: left of '.substr' must have class/struct/union typern<em>急</em><em>求</em><em>破解</em>
大神修改,
[img=http://bbs.elecfans.com/data/attachment/forum/201303/17/183330sf9ukpffkpufkfub.png][/img][img=http://bbs.elecfans.com/data/attachment/forum/201303/17/183330sf9ukpffkpufkfub.pnghttp://][/img]#include rn#include //头文件rn#define uint unsigned int //宏定义rn#define uchar unsigned charrn/*******定义端口******************/rnsbit DQ = P3^7; //温度传送单总线rnsbit led=P0^7; //小数点显示的控制数据线rnsbit wx1=P2^0;rnsbit wx2=P2^1;rnsbit wx3=P2^2;rnsbit wx4=P2^3;rn/************共阳LED段码表*****************/ rnuchar code tab[ ]=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x83,0xc6; rn/****************定义全局变量*******************/ rnfloat temperature;rnuchar tempL=0; //临时变量低位 rnuchar tempH=0; //临时变量高位 rnrn/************DS18B20子程序************/rn//DS18B20延迟子函数rnvoid delay1us(uint k) rn rn while(k--) rn ;rn rn//数码管扫描延时函数rnvoid delay1ms(uint m)rn rn uint j;rn while(m--)rn rn for(j=125;j>0;j--);rn ;rn rn rnrn//DS18B20初始化函数rnvoid Init_DS18B20(void) rnrn uchar j=0;rn DQ = 1; //DQ置1rn delay1us(10); //稍作延时rn DQ = 0; //单片机将DQ拉低rn delay1us(90); //精确延时大于480μsrn DQ = 1; //拉高总线rn delay1us(20);rnrn//读一位数据rnbit Readonebit()rnrn rn bit bt;rn DQ = 0;rn delay1us(2);rn DQ = 1;rn delay1us(20);rn bt = DQ;rn delay1us(20);rn return(bt);rnrn//DS18B20读一个字节rnuchar Read_DS18B20(void)rn uchar i=0;rnuint time; rn uchar dat; //储存读出的一个字节数据rn for (i=0;i>=1;rn if(DQ==1)rn dat|=0x80; //如果读到的数据是1,则将1存入datrn elsern dat|=0x00;//如果读到的数据是0,则将0存入dat rn for(time=0;time0;i--) //DS18B20读取一个字节rn rn DQ = 1; //将单总线DQ拉高rn delay1us(2);rn DQ = 0; // 给脉冲信号rn delay1us(6);rn DQ = 1;rn delay1us(4);rn j = Readonebit();rn bt = (j<>1); //循环右移1位rn delay1us(30);rn return(bt); //返回读取的数据rn rn*/rn//DS18B20写一个字节rnWrite_DS18B20(uchar dat)rn uchar i=0;rnuint time;rn for (i=0; i>=1; //将dat中的各二进制位数据右移1位rn rn for(time=0;time0; i--)rn rn DQ = 0; //拉低单总线DQrn DQ = bt&0x01; //将要写入的数据的1位传送到单总线上rn delay1us(15); //延时一段时间rn bt>>=1; //右移1位,传下1位数据rnrn if(testb!=0)rn rn DQ=0; rn delay1us(4);rn delay1us(4);rn DQ=1;rn delay1us(50); rn rn elsern rn DQ=0;rn delay1us(50); rn DQ=1; rn delay1us(4);rn delay1us(4);rn rn rn DQ = 1; //释放单总线rnrn delay1us(4);rn*/rn//读取DS18B20当前温度rnfloat ReadTemp(void)rnrn rn Init_DS18B20(); //DS18B20芯片初始化rn Write_DS18B20(0xCC); // 跳过读序列号的操作rn Write_DS18B20(0x44); // 启动温度转换rn delay1us(125); //延时等待温度转化完毕rn Init_DS18B20(); //重新对DS18B20芯片进行初始化rn Write_DS18B20(0xCC); //跳过读序列号的操作rn Write_DS18B20(0xBE); //读取温度寄存器中的数据,前两个数据就是所要的温度rn delay1us(100); //延时等待rn tempL=Read_DS18B20(); //读取温度值低位rn tempH=Read_DS18B20(); //读取温度值高位 rn temperature=((tempH*256)+tempL)*0.0625; //温度转换rn delay1us(200); rn return(temperature); rnrnrnrn/************显示子程序************/rnrnvoid display(int k) rn rn wx1=1; rn P0=tab[k/100]; rn delay1ms(1); rn P2=0x00;rnrn wx2=1; rn P0=tab[k%100/10]; rn led = 0;rn delay1ms(1); rn P2=0x00;rnrn wx3=1; rn P0=tab[k%10];rn delay1ms(1); rn P2=0x00;rnrn wx4=1; rn P0=tab[12]; rn delay1ms(1); rn P2=0x00;rn rnrn/************主函数************/rnvoid main()rn float i;rn// Init_DS18B20( ); //DS18B20初始化rn rn while(1) rn rn i=ReadTemp(); rn display(i); rn rnrn
请问一下:!!!!
我设置了系统DSNrn连接数据库时却出现如下错误:rnMicrosoft OLE DB Provider for ODBC Drivers (0x80040E4D)rn我的代码如下:rnset conn=server.CreateObject("ADODB.Connection")rnconn.open "dsn=user;UID=sa;PWD="rnsqlstr="insert into usermess (username,password) values ('sunny','78952')"rnconn.execute sqlstrrnrn说我conn.open的行错误,请问我错在那里,应该如何更正???rn
菜鸟!!!大神我写下
JS操作表格(使用JAVASCRIPT控制HTML表格的增加、修改、删除)rn1、使用用HTML编写一个TABLE,利用JS对表格进行增加、修改、删除的操作。[img=https://img-bbs.csdn.net/upload/201701/06/1483666495_409845.png][/img]rn2、当选择某一行时,颜色变化,利用CSS进行控制。[img=https://img-bbs.csdn.net/upload/201701/06/1483666543_18468.png][/img]rn3、点“增加”时,表格会增加一行记录,并是可编辑状态,性别和职位是通过下拉框控制,其它都是文本框。[img=https://img-bbs.csdn.net/upload/201701/06/1483666607_732673.png][/img]rn4、点击修改时,如果未选中一行,需要提示未选择记录,如果已经选中,将已经选中的一行变成可编辑状态,并将修改按钮置灰,将保存按钮变成可有效状态。[img=https://img-bbs.csdn.net/upload/201701/06/1483666641_700931.png][/img]rn5、最后[img=https://img-bbs.csdn.net/upload/201701/06/1483666713_226536.png][/img]
VC++大神我解释一下
hour=-1;rn minute=-1;rn second=0;rn watch=0;rn这四条意味着什么?rnCView::PreCreateWindow(cs)什么意思?
!!!hive半吊子一个,大神我把这道题做一下?
对dw.result1测试数据按厂家(mc)和单板维度(BOM_NUMBER)进行1000批次量100偏移量的批次通过率计算rnrn同时需要优化;rn可以优化的地方有哪些?rn[img=https://img-bbs.csdn.net/upload/201606/26/1466908699_558541.jpg][/img]rn这是表结构;rn[img=https://img-bbs.csdn.net/upload/201606/26/1466908792_79247.jpg][/img]rn这是一部分数据;0表示通过rnrn<em>大神</em>快出现来救命!!!
!! 大虾们我讲讲
get访问函数 set访问函数 是怎么回事
,大家我(关于BIOS)
因为软件操作问题,我把系统启动盘改了~~:(rn电脑过了主板的图面看不到蓝天白云,谁会改BIOS把C设置为启动盘?
精通struts.基于MVC的.java.web设计与开发(教材)下载
精通struts.基于MVC的.java.web设计与开发(教材),内容由浅入深,相信对初学者有很大帮助。 相关下载链接:[url=//download.csdn.net/download/zdy32032319861105/2049774?utm_source=bbsseo]//download.csdn.net/download/zdy32032319861105/2049774?utm_source=bbsseo[/url]
调幅小电台实验报告下载
调幅小电台课程设计老师布置的作业,实验报告 相关下载链接:[url=//download.csdn.net/download/ybjjsy/3878667?utm_source=bbsseo]//download.csdn.net/download/ybjjsy/3878667?utm_source=bbsseo[/url]
批量远程弱口令测试下载
批量远程弱口令测试 相关下载链接:[url=//download.csdn.net/download/aa1102zz/4832684?utm_source=bbsseo]//download.csdn.net/download/aa1102zz/4832684?utm_source=bbsseo[/url]
相关热词 c#部署端口监听项目、 c#接口中的属性使用方法 c# 昨天 c#func链接匿名方法 c#怎么创建文件夹 c#从键盘接收空格 c#da/ad c#部门请假管理系统 c#服务器socket c# 默认的访问修饰符
我们是很有底线的