递归为什么报 stackOverflow [问题点数:20分,结帖人FromXAStart]

Bbs1
本版专家分:0
结帖率 37.5%
Bbs5
本版专家分:2251
Bbs8
本版专家分:33864
Blank
红花 2012年5月 C/C++大版内专家分月排行榜第一
Blank
黄花 2012年7月 C/C++大版内专家分月排行榜第二
2012年6月 C/C++大版内专家分月排行榜第二
Bbs6
本版专家分:6498
Bbs1
本版专家分:0
Bbs2
本版专家分:399
Bbs2
本版专家分:231
Bbs5
本版专家分:2292
Blank
红花 2011年12月 硬件/嵌入开发大版内专家分月排行榜第一
2011年8月 硬件/嵌入开发大版内专家分月排行榜第一
Blank
黄花 2012年1月 硬件/嵌入开发大版内专家分月排行榜第二
2011年11月 硬件/嵌入开发大版内专家分月排行榜第二
2011年10月 硬件/嵌入开发大版内专家分月排行榜第二
2011年9月 硬件/嵌入开发大版内专家分月排行榜第二
Blank
蓝花 2012年3月 硬件/嵌入开发大版内专家分月排行榜第三
2012年2月 硬件/嵌入开发大版内专家分月排行榜第三
求助 stackoverflow
我用atl写了一个activex,返回一个BSTR给javascript调用,但如果返回的BSTR大小超过1M,就会出现<em>stackoverflow</em>异常,请问高手该怎么办 BSTR能动态分配内存吗
搜索二叉树 stackoverflow
struct.hrn[code=c]rn#ifndef _struct_Hrn#define _struct_Hrntypedef struct Road_info rn unsigned short data_size; //数据大小 2bytern unsigned int LinkID; //道路编号 4bytern unsigned short road_size; //道路名称的尺寸 2byte rn //以下是NODE中的数据 4bytern unsigned int linkid; //番号 3-0rn unsigned int brunch; //分岔路 6-4rn unsigned int roadnameflag; //路标 7rn char *roadname; //道路名称 rnRoad_info;rnrn typedef struct Roadrn struct Road_info stRoadRec; //节点数据rn struct Road* next; //下一节点rnRoad;rnrn#endifrn[/code]rnrnrnMap_Tree.hrnrn[code=c]rn#includern#include "struct.h"rnrnrnrnrntypedef struct Map_Treern struct Map_Tree *left;rn struct Map_Tree *right;rn unsigned int data;rn*Map_tree;rnrnMap_tree CreatTree_byLinkId( Road *head, int position); //使用<em>递归</em>建立二叉树 Linkid部分rnMap_tree HalfSearch_byLinkId(Map_tree point, int findnode); //二叉树二分查找方式rnrnvoid show_byLinkd(Road *head);rn[/code]rnrnMap_Tree.crn[code=c]rn#include"Map_Tree.h"rnrnvoid show_byLinkd(Road *head)rnrn Map_tree root=NULL;rn Map_tree point=NULL;rn time_t a,b;rn char Run_time[80];rn unsigned int findnode;rn Road *temp;rnrnrn root=CreatTree_byLinkId(head,1);rn printf("请输入您所想要查询的LinkId:\n");rn scanf("%d",&findnode);rnrn a=time(NULL);rn strftime(Run_time,79,"%H:%M:%S",localtime(&a));rnrnrn point=HalfSearch_byLinkId(root,findnode);//用二分法查找二叉树rn if(point!=NULL)rn printf("#linkid=%d\n",head->stRoadRec.LinkID);rn printf("roadnameflag=%d\n",head->stRoadRec.roadnameflag);rn printf("brunch=%d\n",head->stRoadRec.brunch);rn printf("dispclass=%d\n",head->stRoadRec.linkid);rn printf("roadname=%s#\n",head->stRoadRec.roadname);rn temp->stRoadRec.LinkID=head->stRoadRec.LinkID;rn temp->stRoadRec.roadnameflag=head->stRoadRec.roadnameflag;rn temp->stRoadRec.brunch=head->stRoadRec.brunch;rn temp->stRoadRec.linkid=head->stRoadRec.linkid;rn temp->stRoadRec.roadname = head->stRoadRec.roadname;rn rn elsern printf("error:未找到结果!!\n");rnrn b=time(NULL);rn strftime(Run_time,79,"%H:%M:%S",localtime(&b));rnrn printf("本次查找用时%d 秒.\n",b-a); rnrnrnrnMap_tree CreatTree_byLinkId(Road *head, int position)rnrn Map_tree newnode; //声明新节点指针rnrn if(head->next==NULL) //<em>递归</em>的终止条件rn return NULL;rn elsern //建立新节点的内存空间rn newnode = (Map_tree) malloc(sizeof(Road));rnrn //建立节点内容rn newnode->data =head->stRoadRec.LinkID;rn //<em>递归</em>建立左子树rn newnode->left = CreatTree_byLinkId(head, 2*position);rn //<em>递归</em>建立右子树rn newnode->right = CreatTree_byLinkId(head, 2*position+1);rn return newnode; //返回树的位置rn rnrnrnMap_tree HalfSearch_byLinkId(Map_tree point, int findnode)rnrn while(point!=NULL)rn rn if(point->data==findnode)rn return point;//找到了该结点rn elsern if(point->data>findnode)rn point=point->left;rn elsern point=point->right;rn rn return NULL;rnrn[/code]rnrn在建立树的时候 <em>stackoverflow</em>了 一共有6万多条数据,链表rn现在不知道怎么解决,对 stack 不是很理解rn应该怎么办??
stackoverflow问题
procedure TForm1.dotest;rnbeginrn sleep(250);application.ProcessMessages;rnend;rnrn//timer1.interval:=100;rnprocedure TForm1.Timer1Timer(Sender: TObject);rnbegin rn dotest;rnend;rnrn问题简化后大概就是以上的代码,ontime事件运行时间长了,就会出现堆栈溢出的问题!rn请高手指正 :(
※★stackoverflow的解决方法★※
因为项目需要对一个大文件里面的内容进行排序rn这个文件的内容如下所示:rn姓名,年龄,收入,职业rnmark,30,10000,docotorrntom,29,11000,engineerrnsteven,32,13000,teacherrn...rn...rn..rnrn用系统命令的sort -k 1,2 -t "," 按照文件的内容里面的姓名和年龄进行排序。rnrn由于文件太大了(200m),导致这个sort命令运行的时候出现了<em>stackoverflow</em>的错误(通过core文件发现的)rnrn我现在想了两个解决办法。rn方法1:rn把大文件进行分割,然后进行sort,这样可以避免大量的数据处理。rnrn方法2:rn用utlimit -s把系统的stack容量临时变大,处理结束之后,再恢复到默认值rnrn不知道大家还有什么别的好方法吗?rnrnrn
类方法 stackoverflow
请问:rn我声明了一个类,其中有对数据库的添加,删除,修改等方法。rnrn在程序中,调用删除运行正常,调用添加和删除后,程序就死了,delphi的cpu占用率变高了。rnrn把这两个方法的实现部分注释掉,提示stack overflowrnrn类声明如下 //添加部分有2个子过程,rntypern //员工rn TEmployee = class (TObject)rn privatern Fid : Integer; //idrn FCode : string; // 编码rn FName : string; // 姓名rn FDepID : Integer; //部门idrn FMob : string; //移动电话rn FTel : string; //电话rn FEMail : string; //电子邮件rn FOicq : string; //Oicqrn FMSN : string; //MSNrn FBal : Real; //余额rn FRemark : string; //备注rn FDepName : string; //部门名称rn FQuery : TADOQuery;rn publicrn procedure Setid(const Val : Integer);rn procedure SetCode(const Val : string);rn procedure SetName(const Val : string);rn procedure SetDepID(const Val : Integer);rn procedure SetMob(const Val : string);rn procedure SetTel(const Val : string);rn procedure SetEmail(const Val : string);rn procedure SetOicq(const Val : string);rn procedure SetMSN(const Val : string);rn procedure SetBal(const Val : Real);rn procedure SetRemark(const Val : string);rn procedure SetDepName(const Val : string);rnrn property id : Integer read Fid write Setid;rn property Code : string read FCode write SetCode;rn property Name : string read FName write SetName;rn property DepID : Integer read FDepID write SetDepID;rn property Mob : string read FMob write SetMob;rn property Tel : string read FTel write SetTel;rn property EMail : string read FEMail write SetEMail;rn property Oicq : string read FOicq write SetOicq;rn property MSN : string read FMSN write SetMSN;rn property Bal : Real read FBal write SetBal;rn property Remark : string read FRemark write SetRemark;rn property DepName : string read FDepName write SetDepName;rnrn function Insert : Boolean;rn function Amend (id : Integer): Boolean;rn function Delete (id : Integer) : Boolean;rn procedure GetAllField(const xQuery : TADOQuery);rnrn constructor create; rn destructor destroy; override;rn end;rnrn//初始化rnconstructor TEmployee.create;rnbeginrn inherited create;rn FQuery := TADOQuery.Create(nil);rn FQuery.Connection := dm.con1;rnend;rnrn//修改rnfunction TEmployee.Amend(id : Integer): Boolean;rnbeginrn Result := False;rn if id >0 thenrn beginrn tryrn with FQuery dorn beginrn Close;rn SQL.Clear;rn SQL.Add('insert into dm_yg set ygxm=:ygxm,depid=:depid,stdh=:stdh,');rn SQL.Add('ggdh=:ggdh,dzyx=:dzyx,qq=:qq,msn=:msn,bz=:bz,zhje=:zhje where [id]=:id');rn Parameters.ParamByName('ygxm').Value := FName;rn Parameters.ParamByName('depid').Value := FDepID;rn Parameters.ParamByName('stdh').Value := FMob;rn Parameters.ParamByName('ggdh').Value := FTel;rn Parameters.ParamByName('dzyx').Value := FEMail;rn Parameters.ParamByName('qq').Value := FOicq;rn Parameters.ParamByName('msn').Value := FMSN;rn Parameters.ParamByName('bz').Value := FRemark;rn Parameters.ParamByName('zhje').Value := FBal;rn Parameters.ParamByName('id').Value := id;rn ExecSQL;rn end;rn Result := True;rn exceptrn Application.MessageBox('修改失败,请重新运行程序!', MB_Title, MB_OK +rn MB_ICONSTOP + MB_TOPMOST);rn Result:= False;rn end;rn end; rnend;rnrnrn//从数据库删除rnfunction TEmployee.Delete(id : Integer): Boolean;rnbeginrn Result := False;rn if ID > 0 thenrn beginrn tryrn with FQuery dorn beginrn if Application.MessageBox('是否删除该项数据?', MB_Title, MB_YESNO + MB_ICONQUESTION + MB_TOPMOST) = IDNO then Exit;rn with FQuery dorn beginrn Close;rn SQL.Clear;rn SQL.Add('select * from dm_yg where [id]=:id');rn Parameters.ParamByName('id').Value := ID;rn Open;rnrn if RecordCount > 0 thenrn beginrn if Application.MessageBox('该数据项正被其他数据使用,是否删除?', MB_Title, MB_YESNO + MB_ICONWARNING + MB_TOPMOST) = IDNO then Exit;rn Close;rn SQL.Clear;rn SQL.Add('delete from dm_yg where [id]=:id');rn Parameters.ParamByName('id').Value := ID;rn ExecSQL;rn end;rn end;rn end;rn Result := True;rn exceptrn Application.MessageBox('无法删除,请重新运行程序!', MB_Title, MB_OK +rn MB_ICONSTOP + MB_TOPMOST);rn Result:=False;rn end;rn end;rnend;rnrn//析构rndestructor TEmployee.destroy;rnbeginrn rn FQuery.Close;rn FreeAndNil(FQuery);rn inherited;rnend; rnrn
Joke: 让Java报StackOverFlow、OutOfMemory错误的简单代码实现
package pri.liyang.joke; /** * 让Java报StackOverFlow、OutOfMemory错误的简单代码实现 * Author:李小白 */ public class ErrorGenerate { /** * 执行后会报StackOverflowError错误的方法 */ public void SOF(){ ...
一个关于StackOverflow的问题!
题目如下:rn 编写程序j1f.java,实现报数游戏。A、B、C、D、E、F、G、H共8人站成一排,按图所示的方法从1开始报数,找出谁先报到19431005。rn图:rnA B C D E F G Hrn1 2 3 4 5 6 7rn 14 13 12 11 10 9 8rn15 16 17 18 19 20rnrn我的程序是这样表示的:rnclass Countrnrn int count=1; rn int i,j;rn void countnum1()rn rn for(i=1;i=2;j--)rn rn count++; rn if(count==19431005)rn rn charlene(j);rn rn rn countnum1();rn rnrn void charlene(int n)rn rn char t='a';rn t=(char)((int)t+n);rn System.out.println(t);rn rn rnrnrnpublic class j1frnrn public static void main(String args[])rn rn Count gill1=new Count(); rn gill1.countnum1();rn rnrnrn请问<em>为什么</em>会发生rnException in thread "main" java.lang.StackOverflowErrorrn这样的错误,具体如何解决!rn
StackOverflow 开发者调查结果出炉
StackOverflow新出炉的开发者调查结果,里面涉及的内容很多,包含了语言,平台,职业,甚至还包含了使用tab还是space的讨论。 点击阅读原文继续,内容为英文,不过读起来很简单。
stackoverflow问题汇编_android
<em>stackoverflow</em>问题汇编_android Kindle阅读器格式,阅读时需下载相应阅读器
python stackoverflow经典问题集合
<em>stackoverflow</em>论坛关于python开发语言技术问题的经典解答
stackoverflow页面不正常
近期突然发现<em>stackoverflow</em>页面的页面加载之后显示不正常,于是就上网查了一下原因,最后得知是因为CDN被墙了的原因,结合网上提供的信息,自己试了一下,结果就成功了,方法如下: 首先通过vim打开hosts文件,命令如下: sudo vim /etc/hosts 然后输入密码,下面就是修改hosts文件了,在问件中添加如下的两行: 190.93.247.58 cdn.sst
技术交流网站stackoverflow
技术交流网站 www.<em>stackoverflow</em>.com
stackoverflow异常怎么解决?
我用<em>递归</em>方法制造树形,当记录5000条以上时,提示<em>stackoverflow</em>异常,怎么解决?
stackoverflow回答被认可
自己在<em>stackoverflow</em>的回答被Accept
StackOverFlow访问插件
下载后解压,直接将对应的chrome文件夹整个拖到chrome://extension即可。还有火狐的
转自stackoverflow的问题
Please consider the three functions.rnrnstd::string get_a_string()rn rn return "hello";rnrnrnstd::string get_a_string1()rn rn return std::string("hello");rnrnrnstd::string get_a_string2()rn std::string str("hello"); rn return str;rnrnrn1.Will Return Value Optimization be applied in all the three cases? rn2.Is it OK to return a temporary like in the above code? I believe it is OK since I am returning it by value rather than returning any reference to it.rnAny thoughts?rn
stackoverflow 搜索问题技巧
                                             StackOverFlow问题搜索方式 初次使用<em>stackoverflow</em>,听别人说在上面可以搜到绝大部分编程过程中遇到的问题,但是,亲自搜索后,一个问题却只能搜到很少的结果,而且很多时候都不能对应。经过一番探索,总结了以下几条。 同时我也了解了一些用<em>stackoverflow</em>搜索的语法,在这里和大家分享一...
StackOverflow 创始人推荐图书
StackOverflow 创始人推荐图书
Stackoverflow架构设计和开发内幕
Stackoverflow核心工程师Marco Cecconi分享其架构设计和开发内幕,<em>为什么</em>他们不用单元测试!每天发布5次!最繁忙的实时消息服务用了25台服务器,每台负载不超过10%。
stackoverflow网站剖析
我从几篇博客中截到的关于<em>stackoverflow</em>搭建技术资料,里面图文并茂,相信对想了解<em>stackoverflow</em>基本架构的IT伙伴们会有启发
快速打开stackoverflow网站
快速打开<em>stackoverflow</em>网站在知乎上发现了解决<em>stackoverflow</em>打开慢不能注册登录我一般用chrome多一些,所以在翻墙在chrome商店搜了一下发现Local CDN这个插件。这个和FireFox的Decentraleyes插件效果是一样的。这个chrome插件作者也说过他是fork火狐Decentraleyes插件项目的。亲测很好用,我关掉翻墙软件,登录stackoverflo
运行时出现“stackoverflow"怎么办?
在代码中增加了几个二维数组的定义,在程序运行时就显示如上信息。请问怎么解决?
奇奇怪怪的StackOverFlow
昨天程序还好好的 今天就冒出来一个错误:rnrn---------------------------rnDebugger Exception Notificationrn---------------------------rnProject sdiapp.exe raised exception class EStackOverflow with message 'Stack overflow'. Process stopped. Use Step or Run to continue.rn---------------------------rnOK Help rn---------------------------rn选择 OK 绿色小箭头指向 forms.hpp下这一句:rnrn/* TCustomForm.Create */ inline __fastcall virtual TForm(Classes::TComponent* AOwner) : TCustomForm(AOwner) rnrn有谁知道问题的原因?rn
程序崩溃出现stackoverflow
app运行时候,突然断网,报<em>stackoverflow</em>怎么解决[img=https://img-bbs.csdn.net/upload/201410/20/1413802143_342490.jpg][/img]
The Best iText Questions on StackOverflow
The Best iText Questions on StackOverflow。StackOverflow上对itext常见文件解答
请教stackoverflow问题
在编写一个简单聊天室的客户端时,没有使用<em>递归</em>,但在运行时出现java.lang.stackOverFlow.exception,不明白<em>为什么</em>,请高手指教!
stackoverflow java问答电子书
<em>stackoverflow</em> java mobi 电子书 ebook java学习好资料
stackoverflow第一篇帖子
之前一直都是在<em>stackoverflow</em>上查找答案,很少参与,最近确实不顺,很多编程问题,一个人确实难解决,加之现在上班的工作环境正好是全英文的,经常要写邮件,于是乎在 <em>stackoverflow</em>上发了第一个帖子,希望以后能多多参与.共同成长与进步. http://<em>stackoverflow</em>.com/questions/38448957/ajax-response-is-ok-but-not-
访问 stackoverflow速度慢解决方法
每次访问<em>stackoverflow</em>.com,都满的要死chrome F12查看罪魁祸首是 gfwhttps://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js 这个请求一直pending。解决方法,既然googleapis.com无法访问,就换成个能访问的。百度发现(https://zhidao.baidu.com/questio...
StackOverFlow的错误[与JSlider有关]
import javax.swing.*;rnimport javax.swing.event.*;rnimport java.awt.*;rnimport java.awt.*;rnrnpublic class DrawLine extends JPanel rn rn private int x = 1;rn private int y = 1;rn rn int maxWidth = 300;rn int maxHight = 200;rn rn JSlider horizontalSlider = new JSlider(x, maxWidth);rn JSlider verticalSlider = new JSlider(y, maxHight);rn rn DrawLine () rn this.setSize(300, 200);rn rn horizontalSlider.addChangeListener(rn new ChangeListener() rn public void stateChanged(ChangeEvent e) rn setX(rn ((JSlider)e.getSource()).getValue()); rn rn );rn rn verticalSlider.addChangeListener(rn new ChangeListener() rn public void stateChanged(ChangeEvent e) rn setY(rn ((JSlider)e.getSource()).getValue()); rn rn );rn rn JFrame frame = new JFrame();rn JPanel drawLine = new DrawLine();rn Container cp = frame.getContentPane();rn cp.add(drawLine);rn cp.add(BorderLayout.SOUTH, horizontalSlider);rn cp.add(BorderLayout.EAST, verticalSlider);rn frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);rn frame.pack();rn frame.setVisible(true);rn rn rn public void setX (int x) rn this.x = x;rn repaint();rn rn rn public void setY (int y) rn this.y = y;rn repaint();rn rn rn public void paintComponent (Graphics g) rn super.paintComponent(g);rn rn g.setColor(Color.red);rn g.drawLine(x, y, rn horizontalSlider.getValue(), verticalSlider.getValue());rn rnrn public static void main (String[] args) rn new DrawLine();rn rnrn我编译通过了,但运行时出现:rnException in thread "main" java.lang.StackOverflowErrorrnPress any key to continue...
为什么报参数无效?
一个asp文件里有如下代码,会报参数无效的错误:rn rnrn但是如果删掉document.domain="yxx.net";,则没有问题,请问是什么原因?谢谢!
报错了 这是为什么
org.springframework.orm.hibernate3.HibernateSystemException: ids for this class must be manually assigned before calling save(): com.wsc.po.User; nested exception is org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): com.wsc.po.Userrn at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:676)rn at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)rn at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)rn at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)rn at org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:694)rn at com.wsc.DAO.impl.UserDAOImpl.createUser(UserDAOImpl.java:22)rn at com.wsc.service.impl.Regeditimpl.saveUser(Regeditimpl.java:16)rn at com.wsc.action.RegeditController.onSubmit(RegeditController.java:34)rn at org.springframework.web.servlet.mvc.SimpleFormController.processFormSubmission(SimpleFormController.java:267)rn at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:265)rn at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)rn at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)rn at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)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.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)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:263)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:619)rnrn
为什么报奇怪的错!
我报的错是库函数里的错,库函数不会错的啊,但是我的程序好象也没错啊,会不会是头文件起了冲突?希望大家讨论讨论
为什么报stdafx.h找不到?
http://www.codeguru.com/doc_view/doc_view_in_dll.ziprn我怎么不能运行啊
为什么项目部署报404
我经历此问题的原因是:因为tomcat6.0和jre1.8不兼容!换成tomcat7.0就好了
不解为什么报错了
============================================PLATFORM_VERSION_CODENAME=RELPLATFORM_VERSION=4.3.1CM_VERSION=10.2-20131107-UNOFFICIAL-i9300TARGET_PRODUCT=cm_i9300TARGET_BUILD_VARIANT=userdebugTARGET_BU...
为什么报java.lang.ArrayIndexOutOfBoundsException: 8192
错误信息:rnjava.lang.ArrayIndexOutOfBoundsException: 8192rnat com.caucho.vfs.i18n.UTF8Writer.write(UTF8Writer.java:133)rnat com.caucho.vfs.WriteStream.print(WriteStream.java:541)rnat com.caucho.xml.XmlPrinter.print(XmlPrinter.java:1540)rnat com.caucho.xml.XmlPrinter.print(XmlPrinter.java:1530)rnat com.caucho.xml.XmlPrinter.startElement(XmlPrinter.java:703)rnat com.caucho.xsl.XslWriter.startElement(XslWriter.java:1147)rnat com.caucho.xsl.XslWriter.pushElement(XslWriter.java:536)rnat _xsl._f_23a_25cproject_25cbid_25cwar_25cfiles._template._new__xsl._xsl_template_StaffsStaff(_new__xsl.java:1835)rnat _xsl._f_23a_25cproject_25cbid_25cwar_25cfiles._template._new__xsl.applyNode(_new__xsl.java:2118)rnat _xsl._f_23a_25cproject_25cbid_25cwar_25cfiles._template._new__xsl._xsl_template_(_new__xsl.java:576)rnat _xsl._f_23a_25cproject_25cbid_25cwar_25cfiles._template._new__xsl.applyNode(_new__xsl.java:2115)rnat com.caucho.xsl.StylesheetImpl.transform(StylesheetImpl.java:213)rnat com.caucho.xsl.TransformerImpl.transform(TransformerImpl.java:430)rnat com.caucho.xsl.TransformerImpl.transform(TransformerImpl.java:311)rnat cn.com.gylq.bid.WordOpr.getXMLData(WordOpr.java:441)rnat _jsp._tender._employeexml__jsp._jspService(/tender/employeeXml.jsp:10)rnat com.caucho.jsp.JavaPage.service(JavaPage.java:75)rnat com.caucho.jsp.Page.pageservice(Page.java:571)rnat com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:155)rnat cn.com.gylq.bid.Sys.doFilter(Sys.java:375)rnat com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:84)rnat com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:211)rnat com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:177)rnat com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:221)rnat com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:263)rnat com.caucho.server.port.TcpConnection.run(TcpConnection.java:323)rnat com.caucho.util.ThreadPool.runTasks(ThreadPool.java:430)rnat com.caucho.util.ThreadPool.run(ThreadPool.java:377)rnat java.lang.Thread.run(Thread.java:534)rn
为什么报java.lang.NullPointerException
import java.io.File;rnimport java.io.FileWriter;rnimport java.io.IOException;rnrnpublic class StorageJavaDemo rnrn /**rn * @param argsrn * @throws IOException rn */rn public static void main(String[] args) throws IOException rnrn /*rn * 需求:对指定目录中的所有(包含子目录)的Java文件的绝对路径写入到一个文本文件中。rn * 这样查找某个java文件会比较便捷。rn * 思路:rn * 1、首先要遍历到所有的目录及其目录的子文件夹及其子文件,由于不知道目录层级,所以要用到<em>递归</em>rn * 2、由于只需要java文件所以要用到文件过滤器rn * 3、由于java文件不止一个,所以要定义一个容器将其存进去rn * 4、然后将其写入到一个文件中,这需要用到写入流rn */rn rn rn //将一一个文件封装成对象rn File f=new File("E:\\");rn rn //定义一个容器用于存储遍历到的java文件rn StringBuilder sb=new StringBuilder();rn rn //定义一个写出流对象rn FileWriter fw=new FileWriter("E:\\java.txt");rn rn storageJava(f,sb);rn rn //定义一个功能写出输出文件rn outPutJava(fw,sb);rn rnrn public static void outPutJava(FileWriter fw, StringBuilder sb) throws IOException rn rn String str=sb.toString();rn char[] ch=new char[str.length()];rn rn fw.write(ch);rn fw.flush();rn fw.close();rn rnrn public static void storageJava(File f,StringBuilder sb) rn rn rn //遍历文件rn File[] f2=f.listFiles();rn rn if(f2!=null);rn //使用<em>递归</em>方法找出文件夹中的java文件rn for (File f1:f2) rn if(f1.isDirectory())rn storageJava(f1,sb);rn elsern rn //如果不是目录就把java文件存到哪容器中rn if(f.getName().endsWith(".java"));rn sb.append(f1.getAbsolutePath());rn rn rn rn rn rnrnrn
为什么总是报FileNotFoundException
今天写一个例子程序,就是把android文件夹res下面的图片拷贝到sd卡里面,但是到:rn FileOutputStream fos = new FileOutputStream(photoFile);的时候就报FileNotFoundException异常。rnrnpackage com.test.aiai;rnrnimport java.io.File;rnimport java.io.FileNotFoundException;rnimport java.io.FileOutputStream;rnimport java.io.IOException;rnimport java.io.InputStream;rnrnimport android.app.Activity;rnimport android.graphics.Bitmap;rnimport android.graphics.BitmapFactory;rnimport android.os.Bundle;rnimport android.view.View.OnClickListener;rnimport android.widget.Button;rnimport android.widget.ImageView;rnimport android.widget.Toast;rnrnpublic class UpActivity extends Activity rn private String TAG="fileuploaddownload" ;rn public static String cloudUrl ;rn public static String cloudUrl_path="";rn public static final String PATH="/sdcard/fileio/";rn public final String SD_PATH=android.os.Environment.getExternalStorageDirectory().getAbsolutePath();rn //通过测试SD_PATH为:/mnt/sdcardrn public static final String FILE_PATH ="/fileio";rn private final String NATIVE_FILENAME ="sa_native.png";rn private final String NETWORD_FILENAME="sa_network.jpg";rn private ImageView img1 ,img2 ;rn private Button mbt1 ;rn private OnClickListener up_listener = null ;rn rn @Overridern public void onCreate(Bundle savedInstanceState) rn super.onCreate(savedInstanceState);rn setContentView(R.layout.main);;rn this.img1=(ImageView)findViewById(R.id.img1) ;rn this.mbt1=(Button)findViewById(R.id.but);rn tryrn //把文件夹下面的图片转换成流的形式rn InputStream in =getResources().openRawResource(R.drawable.ic_launcher);rn //从流中读取图片成为Bitmap格式rn Bitmap bm = BitmapFactory.decodeStream(in);rn in.close();rn //设置图片显示,从Bitmap中读取rn img1.setImageBitmap(bm);rn rn catch(IOException e)rn rn e.printStackTrace();rn rn String photoFilename = SD_PATH+FILE_PATH+"/"+NATIVE_FILENAME ; rn File photoFile =new File(photoFilename); //指明需要的文件夹的全路径 rn tryrn rnToast.makeText(this, "3", Toast.LENGTH_LONG).show();rn InputStream in = getResources().openRawResource(R.drawable.ic_launcher);rn Toast.makeText(this, "4", Toast.LENGTH_LONG).show();rn FileOutputStream fos = new FileOutputStream(photoFile);rn rn byte[] buffer = new byte[8192];rn int count = 0 ;rn while((count=in.read(buffer))>0)rn rn fos.write(buffer,0,count);rn rn fos.close();rn in.close();rn Toast.makeText(this, "chenggon", Toast.LENGTH_LONG).show();rn rn catch(FileNotFoundException e)rn rn Toast.makeText(this, "文件没有找到异常", Toast.LENGTH_LONG).show();rn e.printStackTrace();rn catch(IOException e)rn rn e.printStackTrace();rn Toast.makeText(this, "io", Toast.LENGTH_LONG).show();rn catch(Exception e)rn rn Toast.makeText(this, "cuowu", Toast.LENGTH_LONG).show(); rn rn rn rn rnrnrn运行结果:可以输出3数字,但是之后直接输出“文件没有找到异常”,<em>为什么</em>?????
为什么报错误404
rnrnrnrnrnrn rn 对图片发表评论rn rnrnrnrn rn rnrn rn rn 标题:rn rn rn rn rnrn rn rnrnrn 评论内容:rn rn 发表人: 发表时间:rn rnrnrn rn 发表评论:rn rn rn rn rn rn rn rnrn rn rn rnrn rn rn rnrn rn rn rn rnrnrn 返回rnrnrnrnrnrn rn This is the description of my J2EE componentrn This is the display name of my J2EE componentrn slt_picture< rvlet-name>rn servlet.slt_picture< rvlet-class>rn < rvlet>rnrnrnrn slt_picture< rvlet-name>rn /slt_picturern < rvlet-mapping>rn
为什么delete报错了?
<em>为什么</em>delete报错了?rnrn今天delete的时候报错了,很奇怪,怎么前面new的指针后面delete就报错了呢?后来看了半天,代码是这么写的:rnchar* p = new char[100];rnCBigInt* D = (CBigInt*)P;rndelete [] p;rn...rn之后有对D进行操作,是因为将P转换为CBigInt*类型,delete后,系统会对p所指的内存回收,然后后面又操作D的原因吗?rnrn编译没有问题,就是运行的时候,程序关闭了。。。不设断点,直接调试运行又没事,这是<em>为什么</em>呢?
为什么总是报OutOfMemoryError?
一个网站运行一段时间以后,大概一个星期左右,就会出现以下这个异常,继续运行1到2天,报该异常的频率会越来越高,最后整个tomcat 就挂住了,动态页面 都不能访问了,请高手指点是什么原因?rnCaught exception (java.lang.OutOfMemoryError) executing org.apache.jk.common.SocketConnection@1dd680a, terminating threadrn
为什么报函数声明错误???
相关代码如下:rn#define ElemType intrnrntypedef struct SqStackrnrn ElemType *base;rn ElemType *top;rn int stacksize;rnSqStack;rnrnint InitStack (SqStack &S); /*这里报函数声明错误?*/rnrnvoid main(void)rnrn SqStack *S = NULL;rnrnrnint InitStack (SqStack &S)rnrn S.base = (SqStack *)malloc(INIT_SIZE * sizeof(SqStack));rn if (!S.base) exit (OVERFLOW);rn S.top = S.base;rn S.stacksize=MAX;rn return OK;rn
这句为什么报有错?????
假如有access 表两个文本字段 name、passwordrnrnrn两个SQL哪个插入对?rnname = "yuyu123"rnpassword = "xyz"rnrnrnsql = "insert into message (name,password) values ("&name&","&password&")"rnsql = "insert into message (name,password) values ('"&name&"','"&password&"')"
为什么报无效的标识符
Private Sub Command_click() rnrnDim cn As New ADODB.Connection rnDim rs As New ADODB.Recordset rnDim strdb,cardno As String rnrncardno=text.textrncn.Open "Provider=MSDAORA.1;Password=ic6279admin;User ID=ICADMIN;Data Source=ORAISSUE;Persist Security Info=True" rnstrdb = "select * from mytable where substr(cardcd,5,12)=cardno" rnrnrs.Open strdb, cn, adOpenForwardOnly, adLockReadOnly, adCmdText rnSet datagrid.DataSource = rs rnrs.Close rncn.Close rnEnd Sub rn程序执行到rs.open这句时,报无效的标识符cardno
为什么报classcast异常
String b="wode";rn String c="wodedss";rn set.add(b);set.add(c);rn String [] aa = (String[])set.toArray();rn System.out.println(aa.length+" "+aa[1]);rn我想去的 set 里所有 元素 这样写 <em>为什么</em>报那个错误,请教中
为什么报scanner错误??
package com.javabook.cho2;rnimport java.util.*;rnrnpublic class Equation rn public static void main(String []args)rn rn Scanner s=new Scanner(System.in);rn System.out.println("请输入a:");rn float a=s.nextFloat();rn System.out.println("请输入b:");rn float b=s.nextFloat();rn System.out.println("请输入c:");rn float c=s.nextFloat();rn double delta=b*b-4*a*c;rn if(delta>0)rn rn double x1=(-b+Math.sqrt(delta))/(a*2);rn double x2=(-b-Math.sqrt(delta))/(a*2);rn System.out.println("方程的两个不同实根:");rn System.out.println("x1="+x1);rn System.out.println("x2="+x2);rn rn else if(delta==0)rn rn double x1=(-b)/(2*a);rn double x2=x1;rn System.out.println("x1="+x1);rn System.out.println("x2="+x2);rn rn elsern rn System.out.println("无解!!");rn rn rn rn rnrn错误提示:rnjava.lang.Error: Unresolved compilation problems: rn Scanner cannot be resolved to a typern Scanner cannot be resolved to a typernrn at com.javabook.cho2.Equation.main(Equation.java:7)rnException in thread "main" rn
为什么第一次启动报“空指针”?
做了一个J2EE项目,但是每次启动Tomcat时,第一次访问页面都会报“空指针”,再访问就正常了面(除了登陆页)。rn断点测试发现,在执行init方法之前就报空指针了。rn请问这是怎么回事?
为什么报这个错
代码:rn[code=c]#include rnrnusing namespace std;rnclass Singletonrnrnprotected:rn Singleton() cout<<
为什么递归的地方不递归?!!!
import java.io.*;rnrnclass A implements Externalizablernrn .................;rn rn public void writeExternal(ObjectOutput out) throws IOExceptionrn rn out.writeObject("abc");rn rnrnrn侯捷说了,在调用writeObject()时,会自动调用writeExternal()的。rn如果是的话,那么在此writeExternal()中又调用了writeObject(),会不会是一个永无止境的调用呢?rn 望高手解答!!!
为什么这么递归没用
[code=javascript] rn[/code]rn rn rn rn
为什么递归要 return?
function abc()rnrn static $n;rn $n++;rn ...rn return abc(); //<em>为什么</em>这里要加一个 return 呢?rn if(..)rn rn return $n;rn rn
为什么递归出现异常?
public class Test rn public static void main(String[] args) rn System.out.println(method(10));rn rnrn public static int method(int n) rn if(n == 1 || n == 2) rn return 1;rn else if(n > 2) rn return method(n - 1) + method(n - 2);rn rn rnrnrnrnC:\Documents and Settings\Administrator.MICROSOF-2DF703\桌面>javac Test.javarnTest.java:12: 缺少返回语句rn rn ^rn1 错误
为什么递归不起作用? 郁闷了
[code=php]rnArrayrn(rn [0] => Arrayrn (rn [0] => 1rn [catid] => 1rn [1] => 0rn [parentid] => 0rn [2] => 关于我们rn [catname] => 关于我们rn [3] => 4rn [listorder] => 4rn [4] => 0rn [items] => 0rn [5] => 1rn [type] => 1rn [child] => Arrayrn (rn [0] => Arrayrn (rn [0] => 2rn [catid] => 2rn [1] => 1rn [parentid] => 1rn [2] => 关于我们rn [catname] => 关于我们rn [3] => 1rn [listorder] => 1rn [4] => 0rn [items] => 0rn [5] => 1rn [type] => 1rn )rnrn [1] => Arrayrn (rn [0] => 3rn [catid] => 3rn [1] => 1rn [parentid] => 1rn [2] => 公司荣誉rn [catname] => 公司荣誉rn [3] => 2rn [listorder] => 2rn [4] => 0rn [items] => 0rn [5] => 1rn [type] => 1rn )rnrn [2] => Arrayrn (rn [0] => 4rn [catid] => 4rn [1] => 1rn [parentid] => 1rn [2] => 联系我们rn [catname] => 联系我们rn [3] => 3rn [listorder] => 3rn [4] => 0rn [items] => 0rn [5] => 1rn [type] => 1rn )rnrn [3] => Arrayrn (rn [0] => 5rn [catid] => 5rn [1] => 1rn [parentid] => 1rn [2] => 加入我们rn [catname] => 加入我们rn [3] => 4rn [listorder] => 4rn [4] => 0rn [items] => 0rn [5] => 1rn [type] => 1rn )rnrn [4] => Arrayrn (rn [0] => 6rn [catid] => 6rn [1] => 1rn [parentid] => 1rn [2] => 友情链接rn [catname] => 友情链接rn [3] => 5rn [listorder] => 5rn [4] => 0rn [items] => 0rn [5] => 2rn [type] => 2rn )rnrn )rnrn )rn)rn[/code]rn[code=php]rnfunction getTree($arr)rnrn// $row = $arr;rn foreach($arr as $k=>$v)rn rn $tree .= ' '.$v['catname']."";rnrn if(is_array($v['child']))rnrn $tree .= ' ';rn //遍历child子数组rn foreach($v['child'] as $sv)rn $tree .= ' '.$sv['catname']."";rn // getTree($v['child']);rnrn if(is_array($sv['child'])) rn $tree .= ' ';rn foreach($sv['child'] as $ssv)rn $tree .= ' '.$ssv['catname']."";rn rn $tree .= "";rn rn $tree .= "";rn rn// print_r($v['child']);rn// getTree($v['child']);rn $tree .= "";rn rnrn $tree .= '';rn rn return $tree;rnrn[/code]
为什么最后一个是递归?
http://www.never-online.net/reference/Javascript/js-call-apply-caller-callee/rn有人能帮忙解释一下吗?
【分享】StackOverflow监控系统Opserver开源
刚才看来一个牛逼的帖子,分享给大家[url=http://geek.csdn.net/news/detail/3062][/url]rnrnStack Exchange(StackOverflow背后的公司)在GitHub上开源了他们所用的监控系统Opserver。代码是用C#开发的。rnrn目前已经能够监控的对象包括:rnrn服务器rnSQL Server集群和实例rnRedisrnElasticSearchrn异常日志rnHAProxyrn看Hacker News上的讨论,似乎有不少人才意识到,他们成天泡的StackOverflow居然是基于现在经常被人鄙视的Windows和.NET……rnrn
访问页面报了stackoverflow的异常
早上盯着半天短短的几行代码,找的我心碎,最后还是旁观者清,是自己眼拙!!!不够心细!不说了上图。 @RequestMapping(value="/index",method=RequestMethod.GET) public String find(){return "index";} 写出这样的代码也只能说自己够蠢,url拦截index,然后接着访问index,不停自己访问自己,然后就溢出了
StackOverflow 的页面样式错乱问题
原因: StackOverFlow 使用的css 是在 cdn.sstatic.net上的,which 已经被国内屏蔽掉了。 解决方法: 把 cdn.sstatic.net 链接指向 www.sstatic.net。 先 ping 一下 www.sstatic.net 的 ip 到C:\Windows\System32\drivers\etc\hosts,加入 198.252.206...
解决stackOverflow打开慢的问题.
stackOverflow打开慢并不是<em>stackoverflow</em>被墙,而是因为<em>stackoverflow</em>用了google的api,而Google在天朝是用不了的,所以才导致像<em>stackoverflow</em>这类网站,出现样式错乱,不能注册,不能登录,打开特别慢,甚至打不开。所以,某神将Google 的 CDN 替换成国内中科大的。具体地址:https://github.com/justjavac/Repl
第一次使用stackoverflow的寻求帮助
最近在研究一项资料很少的技术——Drools,遇到一个很棘手的问题,搜遍所有网站,百度、谷歌都找不到解决方案。无奈之下,想起了<em>stackoverflow</em>这个技术问答网站。于是鼓足勇气,用蹩脚的英文在上面写出了自己的疑问,并附上代码。本来并不抱希望,刚开始也没看到希望,一个小时过去了仅仅几个人的浏览量。当时还是有些小失望,于是继续通过搜索引擎来查找问题。没想到,后面竟然收到了网站的通知,有人回答了问题
stackoverflow网站进入缓慢问题
修改hosts文件解决<em>stackoverflow</em>加载缓慢
stackoverflow问题汇编_C语言
<em>stackoverflow</em>问题汇编_C语言 Kindle阅读器格式
OOM,StackOverFlow以及死锁的测试
这篇文章主要是记录自己做的一些小的测试.主要包括内存溢出,栈溢出,以及死锁问题. PS:文章中使用了Arthas工具,用来动态监控JVM的一些资源,非常好用,强烈安利一下. OOM OutOfMemory ,内存不够用了,一般是什么原因呢? 给应用程序分配的内存太小,只能通过增大内存来解决. 内存泄漏.有一部分内存&quot;无用&quot;了,但是因为编码问题导致的没有被垃圾回收掉,产生了泄漏,最终导致了内...
PHP的类Stackoverflow系统Qwench.zip
PHP StackOverflow Clone 演示网址:http://anantgarg.com/qwench/ 主要功能: 1. 用户用户提问和回答 2. 类似 Stackoverflow 的积分系统 3. 可提交文章用于知识库建设 4. 可设定只允许注册用户才能提问和回答 5. 简洁的 CSS 布局 6. 支持主流浏览器 安装方法: ----------------------------------------------- 1. Modify config.php as per your site 2. Run install.php (using your browser) 3. Done! (Delete install.php) 4. Register on your new site :) 标签:Qwench  <em>stackoverflow</em>
【浏览器】解决stackoverflow打开慢
步骤: 1. 使用火狐浏览器 2. 浏览器工具栏最右边三条杠open menu中找到Add-ons 3. 左列表打开Extensions 4. 右上角Search Decentraleyes并进行install最后Add进组件   其原理就是这个扩展自动替换了国内不能访问的API,使得网站可以更快更好的访问,这比VPN要简单方便的多!   但是 如果像Facebook、Go
stackoverflow打开速度慢的一种解决方法
首先思路还是与大家提到的一样:这个网站本身并没有被墙,但是由于<em>stackoverflow</em>使用了某些Google的api,由于你懂得原因,基本上不去。     网上基本都是介绍翻墙、火狐浏览器等,但是其实国产浏览器有他自己的人性化体验,如翻译、快捷操作等插件,所以我们拿360浏览器来作例子。     1、在工具栏中点击扩展-更多扩展,搜索adblock,点击安装。     2、打开
Go-在你的终端访问StackOverflow
在你的终端访问StackOverflow
StackOverflow是不是在大陆地区被墙了
一是浏览速度变慢了rn二是不能登录rn三是Stack Overflow requires external JavaScript from another domain, which is blocked or failed to load.rnrnrn顺便问一下google商店是不是也不能登了,chrome也不行了。
记录:Android中StackOverflow的问题
      最近新作的项目上线,出现了一个让人抓狂的问题。在此记录一下!         现在的项目中,制作了一个界面非常复杂。整个结构是最外层一个Layout,封装了Menu键吊起的菜单,整个内容使用一个FrameLayout装载,这个layout中会有三个V4 Fragment。一个主Fragment和两个弹出的Fragment。主Fragment中分上中下结构,上部分展示图片,中部展示...
你不可不知的网站:stackoverflow
你不可不知道的网站:<em>stackoverflow</em>   序言:        这是个什么东西?” <em>stackoverflow</em>” 是个国外的论坛网站,计算机技术交流社区,基本上我们现在遇到的问题,在那里都可以找到相关的答案,我们中文遇到的问题,在那里,全世界的人民早就遇到过了。      我自己到目前为止,很多遇到的报错、bug 或许在中文资料中没有找到解决方案的,在<em>stackoverflow</em>
解决StackOverFlow不能登录的问题
今天想着使用谷歌浏览器登录<em>stackoverflow</em>,结果发现网页刷出来的速度很慢,而且登录不上去,出现了浏览器上方出现了这个:Stack Overflow requires external JavaScript from another domain, which is blocked or failed to load.发现使用火狐浏览器安装DeDecentraleyes扩展程序即可。
stackoverflow关于tensorflow非常好的问题解答
做法:将saver = tf.train.Saver()放在了with graph.as_default()之前, 错误: No variable to save error in Tensorflow 解决方法:https://<em>stackoverflow</em>.com/questions/36281129/no-variable-to-save-error-in-tensorflow
Stackoverflow 上关于 Python 的问题
Stackoverflow 上关于 Python 的问题
为什么报索引类型找不到!
各位大侠,我想使用全文索引功能,<em>为什么</em>在建立索引时总报索引类型找不到?rncreate index test_inx on table(column) indextype is ctxsys.context;
为什么jsp老是报java.lang.NoClassDefFoundError ?
eclipse + myeclipse + tomcat + sql server2000 rn我把JDBC的3个JAR文件都拷贝到工程下来的lib文件夹里面了,也从eclipse中导入了3个JAR文件。。连接数据库都没得问题,就是要报错?rnrnjava.lang.NoClassDefFoundError: org/apache/jsp/vikStore_jsp (wrong name: org/apache/jsp/vikstore_jsp)rn java.lang.ClassLoader.defineClass1(Native Method)rn java.lang.ClassLoader.defineClass(ClassLoader.java:620)rn java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)rn java.net.URLClassLoader.defineClass(URLClassLoader.java:260)rn java.net.URLClassLoader.access$000(URLClassLoader.java:56)rn java.net.URLClassLoader$1.run(URLClassLoader.java:195)rn java.security.AccessController.doPrivileged(Native Method)rn java.net.URLClassLoader.findClass(URLClassLoader.java:188)rn org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:156)rn org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:69)rn org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:548)rn org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:136)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:307)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn servlet.filter.LoginFilter.doFilter(LoginFilter.java:42)rn
程序报如下错,为什么
sqlselect="select * from c"rn result1.Open sqlselect,connection,3,3rn sqlselect="select * from c1" rn result.Open sqlselect,Connection,3,3rn p=result.Fields(result1.Fields("name"))rn response.write prn报错:ADO could not find the object in the collection corresponding to the name or ordinal reference requested by the applicationrn但是c中的name指向的记录确实是c1中的字段名
为什么还是报 GROUP BY 错误?
rnCREATE CURSOR tt1 ( plu_amt Y, plu_disc Y, sell_dt T, clerkid I, clerk_no C(4) )rnCREATE CURSOR tt2 ( id I, rcvno C(8), name C(10) )rnrnSELECT A.clerkid AS id, ;rn CAST( NVL( B.rcvno, A.clerk_no ) AS I ) AS rcvno, ;rn CAST( NVL( B.name, '' ) AS C(10)) AS cname, ;rn SUM( A.plu_amt ) AS amt, ;rn SUM( A.plu_disc ) AS disc, ;rn TTOD( A.sell_dt ) AS clr_date ;rn FROM tt1 A LEFT JOIN tt2 B ON A.clerkid == B.id ;rn GROUP BY id, rcvno, cname, clr_date ;rn ORDER BY clr_date, rcvno, id, cname ;rn INTO CURSOR _resultrnrn执行下面 SQL 语句报 "GROUP BY clause is missing or invalid"rnrn我知道 SET ENGINEBEHAVIOR 70 可以跳过,但我想我的 SQL 语句更规范点,所以设置了 SET ENGINEBEHAVIOR 90,可是我的 GROUP BY 中已经包含了所有非聚合列,<em>为什么</em>还是报错?请高手指点,谢谢!rnrnrn
为什么报ORA-01036的错误阿?
sqlStr.Append("SELECT B.STATION_NAME AS STATION_NAME,' ' AS NO_STATION_NAME, A.BUS_NO || 'W' AS BUS_NO ")rn sqlStr.Append("FROM TRA_BUS_STATION A, TRA_STATION B ")rn sqlStr.Append("WHERE B.STATION_NAME LIKE '% :stationName%' ")rn sqlStr.Append("AND A.STATION_NO = B.STATION_NO ")rn sqlStr.Append("GROUP BY STATION_NAME, BUS_NO ")rn sqlStr.Append("ORDER BY STATION_NAME ")rn rn Tryrn oraConn = DbUtil.getConnrn oraCmd = New OracleCommand(sqlStr.ToString, oraConn)rn ' DBを開くrn oraConn.Open()rn oraCmd.Parameters.AddWithValue(":stationName", stationName)rn rn oraAda = New OracleDataAdapter(oraCmd)rn oraAda.Fill(ds, "QUERYRESULT")rnrn这是我程序的片断,<em>为什么</em>一走到最后一行就会报ORA-01036错误阿?rn望赐教
OWA问题,为什么报404错误?
配置了OWA,在IIS上也做了设置,但是<em>为什么</em>通过浏览器访问报404错误呢?rn请高手指教!!!谢谢!!!
语句为什么报这样的错误!
RESPONSE.WRITE"检索结果 rn或者RESPONSE.WRITE""rn RESPONSE.WRITE"检索结果"rn RESPONSE.WRITE""rn这两个语句均报语句为结束错误!<em>为什么</em>?
SpringDm为什么老报java.lang.ClassNotFoundException
请各位大侠熟悉osgi的帮忙解决rn异常rn[code ="java"]rnException in thread "SpringOsgiExtenderThread-2" org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.springframework.orm.ibatis.SqlMapClientFactoryBean] for bean with name 'sqlMapClient' defined in URL [bundleentry://266.fwk2279771/META-INF/spring/data-source.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org.springframework.orm.ibatis.SqlMapClientFactoryBean not found from bundle [Contact (Contact)]rn at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1144)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524)rn at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1177)rn at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:758)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:422)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)rn at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)rn at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)rn at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)rn at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)rn at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)rn at java.lang.Thread.run(Thread.java:662)rnCaused by: java.lang.NoClassDefFoundError: org.springframework.orm.ibatis.SqlMapClientFactoryBean not found from bundle [Contact (Contact)]rn at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:112)rn at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:247)rn at org.springframework.util.ClassUtils.forName(ClassUtils.java:211)rn at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:385)rn at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1138)rn ... 11 morernCaused by: java.lang.NoClassDefFoundError: org/springframework/beans/factory/FactoryBeanrn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:615)rn at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:188)rn at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClassHoldingLock(ClasspathManager.java:626)rn at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:608)rn at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:562)rn at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:486)rn at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:459)rn at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)rn at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)rn at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:35)rn at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)rn at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)rn at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)rn at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:247)rn at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:345)rn at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)rn at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1207)rn at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)rn ... 16 morernCaused by: java.lang.ClassNotFoundException: org.springframework.beans.factory.FactoryBeanrn at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)rn at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)rn at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)rn at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:247)rn[/code]rnrn项目结构rn[img]http://dl.iteye.com/upload/attachment/0071/5377/c79ecbc1-53d9-3e64-af47-c9a6e0331319.jpg[/img]rnrnMANIFEST.MFrnManifest-Version: 1.0rnBundle-ManifestVersion: 2rnBundle-Name: ContactrnBundle-SymbolicName: ContactrnBundle-Version: 1.0.0.qualifierrnExport-Package: com.javaworld.sample.osgi.spring.contactrnBundle-ClassPath: .,rn lib/commons-dbcp-1.2.2.jar,rn lib/commons-pool-1.4.jar,rn lib/mysql-connector-java-5.0.8-bin-g.jar,rn lib/commons-io-1.0.jar,rn lib/commons-lang-20030203.000129.jar,rn lib/aspectjtools-1.6.12.jarrnImport-Package: javax.servlet;version="2.4.0",rn javax.servlet.http;version="2.4.0",rn org.apache.jasper,rn org.osgi.framework;version="1.4.0",rn org.springframework.orm.ibatis;version="2.5.6.SEC03",rn org.springframework.orm.ibatis.support;version="2.5.6.SEC03",rn org.springframework.osgi.web.context.support;version="1.2.0.rc1",rn org.springframework.web.context;version="2.5.6",rn org.springframework.web.context.support;version="2.5.6"rnRequire-Bundle: org.springframework.osgi.core;bundle-version="1.2.0",rn org.springframework.osgi.io;bundle-version="1.2.0",rn org.springframework.beans;bundle-version="2.5.6",rn org.springframework.context;bundle-version="2.5.6",rn org.springframework.core;bundle-version="2.5.6"rnDynamicImport-Package: org.springframework.osgi.web.context.support.*,rn org.springframework.web.context.*rnrnrn
数据库为什么报这个错误
rn// rn rnh: 730px; height: 350px;">rn WARN,catalina-exec-385,2010-11-19 11:23:46,453,resourcepool.BasicResourcePool -- com.mchange.v2.resourcepool.BasicResourcePool@13a503ce -- an attempt to checkout a resource was interrupted, and the pool is still live: some other thread must have either interrupted the Thread attempting checkout! java.lang.InterruptedException at java.lang.Object.wait(Native Method) at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1315) at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557) at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525) at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128) at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:113) at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79) at org.springframework.jdbc.support.JdbcUtils.extractDatabaseMetaData(JdbcUtils.java:280) at org.springframework.jdbc.support.JdbcUtils.extractDatabaseMetaData(JdbcUtils.java:320) at org.springframework.jdbc.support.SQLErrorCodesFactory.getErrorCodes(SQLErrorCodesFactory.java:212) at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.setDataSource(SQLErrorCodeSQLExceptionTranslator.java:141) at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.(SQLErrorCodeSQLExceptionTranslator.java:104) at org.springframework.orm.hibernate3.SessionFactoryUtils.newJdbcExceptionTranslator(SessionFactoryUtils.java:143) at org.springframework.orm.hibernate3.HibernateAccessor.getDefaultJdbcExceptionTranslator(HibernateAccessor.java:453) at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:410) at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:411) at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374) at org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:683) at asian.game.util.logger.LoggerAdvice.saveLog(LoggerAdvice.java:133) at asian.game.util.logger.LoggerAdvice.before(LoggerAdvice.java:54) at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:49) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy25.updateLoginOutTime(Unknown Source) at asian.game.web.frame.action.LoginValidateAction.loginOut(LoginValidateAction.java:58) at sun.reflect.GeneratedMethodAccessor3564.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:441) at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:280) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:243) at asian.game.util.interceptor.LoggerInterceptor.intercept(LoggerInterceptor.java:50) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:165) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:252) at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:179) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:130) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:165) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:179) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at newcom.com.cn.os.LoginValidateFilter.doFilter(LoginValidateFilter.java:87) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:861) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2087) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)rn  rn 我用数据库连接池是C3P0的,连接池配置如下:rn rnn rn          rn          rn          rn          rn rn rn rn rn rn rn rn rn rn rn rn rn        rn rn
为什么报空指针错误呢
rnclass Studentrn int number;rn double score;rn double state;rn public int getNumber() rn return number;rn rn public void setNumber(int number) rn this.number = number;rn rn public double getScore() rn return score;rn rn public void setScore(int score) rn this.score = score;rn rn public double getState() rn return state;rn rn public void setState(int state) rn this.state = state;rn rn rnrnrnpublic class ShuZu2 rn public static void main(String[] args)rn rn Student[] students = new Student[20];rn rn rn for(int number=0;number
AxWebBrowser为什么报这个错?
Dim AxWebBrowser1 As AxSHDocVw.AxWebBrowserrn Tryrn AxWebBrowser1 = New AxSHDocVw.AxWebBrowserrn AxWebBrowser1.Parent = m_frmMain.tabIErn AxWebBrowser1.Left = 1rn AxWebBrowser1.Top = 1rn AxWebBrowser1.Width = 200rn AxWebBrowser1.Height = 100rn AxWebBrowser1.Navigate(strUrl)rnrncatchrnrnend tryrnrn------------------rnCannot invoke method 'Navigate' at this time.
这段代码为什么报空指针
nn```n public class Test3 nn public static void main(String[] args) n n Integer[] c = new Integer[]null,1,null;n n for(int k=0;k
为什么没有报重定义错误?
半年没碰代码,发现自己比以前还要菜了.rnrn代码:rn#include rn#include rnusing namespace std;rnrndouble __cdecl sin(__in double _X) //这里不会与库中的sin冲突.rnrn return 1.0;rnrnint main()rnrn int cout; //这里也不会与ostream cout冲突.rn sin(1.0);rn return 0; rn rnrn上面的sin函数原形是从中直接拷贝过来的, 定义之后, 没有任何错误.rnrn大侠来说说<em>为什么</em>上面的sin, cout不会有名字冲突, 谢谢.
为什么总是报这样的错误?!!
fatal error C1083: Cannot open precompiled header file: 'Debug/Demo.pch': No such file or directory,rn但我的stdafx.h肯定是存在的。而且也是打得开的。rn请指点迷津!
为什么总是报这个错
<em>为什么</em>总是报这个错:rntype Status reportrnrnmessage /index.jsprnrndescription The requested resource (/index.jsp) is not available.rnrn--------------------------------------------------------------------------------rnrn
sss为什么总是报语法错误?
sss<em>为什么</em>总是报语法错误?rnrnrnrnsssrn rn
为什么报 "ActiveX 不能创建" ?
rn 源码:rnrn dim WS As rdoEnvironmentrn dim DB As New rdoConnection rn rn Set WS = rdoEngine.rdoEnvironments(0)rn Set DBEvents = DBrn rn Connect_Str = "DSN=meter;UID=meter;PWD=meter;Database=meter;" 'ODBC接口rn ' MsgBox Connect_Strrn With DBrn .Connect = Connect_Strrn .LoginTimeout = 20rn .QueryTimeout = 15rn .EstablishConnection rdDriverNoPrompt, Falsern End Withrnrnrnrn问题:rn 在开发机上没有问题,但是在有的机器上报"ActiveX 不能创建",数据库连接不上,装上 office 或 VB又行了.rn 我打包已经把 Rdo20chs.dll打进去了?
老是报同一个错误为什么
我现在是在sco unix5.05下,想运行java程序,但是总提示我“Cannot allocate colormap entry for "ScoBackground",<em>为什么</em>?谢谢各位大侠!!!
WinRAR注册码下载
WinRAR注册码!!!!!!!!!!!!!!!!!!! 相关下载链接:[url=//download.csdn.net/download/panning1990/2980762?utm_source=bbsseo]//download.csdn.net/download/panning1990/2980762?utm_source=bbsseo[/url]
andriod1.1.4下载
本资源来自达内IT培训学校java软件开发工程师的培训,安卓第4课 相关下载链接:[url=//download.csdn.net/download/junxing1025/5186972?utm_source=bbsseo]//download.csdn.net/download/junxing1025/5186972?utm_source=bbsseo[/url]
IP加密算法下载
能加密 IP和端口 的工具 比如127.0.0.1 3306端口 加密后为 2130709739 相关下载链接:[url=//download.csdn.net/download/zhyq520/5979025?utm_source=bbsseo]//download.csdn.net/download/zhyq520/5979025?utm_source=bbsseo[/url]
相关热词 c#检测非法字符 c#双屏截图 c#中怎么关闭线程 c# 显示服务器上的图片 api嵌入窗口 c# c# 控制网页 c# encrypt c#微信网页版登录 c# login 居中 c# 考试软件
我们是很有底线的