Java这个代码错在哪 [问题点数:20分]

Bbs1
本版专家分:0
结帖率 0%
Bbs1
本版专家分:0
Blank
GitHub 绑定GitHub第三方账户获取
Bbs1
本版专家分:95
Blank
GitHub 绑定GitHub第三方账户获取
Bbs1
本版专家分:12
Bbs1
本版专家分:95
Blank
GitHub 绑定GitHub第三方账户获取
Bbs5
本版专家分:2408
Bbs1
本版专家分:25
Bbs1
本版专家分:0
Bbs1
本版专家分:50
Bbs5
本版专家分:2408
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:5
Blank
GitHub 绑定GitHub第三方账户获取
Bbs1
本版专家分:12
Bbs1
本版专家分:14
Bbs1
本版专家分:10
Bbs1
本版专家分:12
Bbs1
本版专家分:10
Bbs1
本版专家分:12
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs2
本版专家分:135
Bbs2
本版专家分:135
Bbs2
本版专家分:139
Blank
GitHub 绑定GitHub第三方账户获取
Bbs1
本版专家分:0
Bbs1
本版专家分:10
Bbs1
本版专家分:0
Bbs2
本版专家分:140
Bbs2
本版专家分:213
Bbs2
本版专家分:213
Bbs1
本版专家分:18
大佬们,这个代码在哪
rnrnrn[code=c]#includern#includern#includernint main()rnrn int i = 1;rn int j = (++i) + (++i) + (++i);rn rn printf("%d", j);rnrnrnrn[/code]rnrn
这段代码在哪?
rnrn rn rn rn rn rn rn 城区 rn 楼盘 rn 栋座位置 rn 房号 rn 状态 rn 录入人 rn rn rnrn rn rn rn rn rn rn rn rn rn rn rn
这段代码在哪了?
rn rn rn rn rn rn rn rn
代码在哪呢?
提示说 comporison is always true due to limited range of data typernrn#include rnrnchar * delString(char* str1,char* str2)rnrn char *pStr1=str1; rn char *pStr2=str2;rn char *dest=pStr1;rn int len1=0;rn int len2=0;rn while(*(pStr1)!='/0')rn rn len1++;rn pStr1++;rn rn printf("%d",len1);rn rn return dest;rnrnint main()rnrn char* str1="123456789121212";rn char* str2="12";rn char* p;rn p=delString(str1,str2);rn
这段代码在哪
大家好!这是书上的一道例题,运行结果是空的,什么都弹不出来,麻烦大家指点一下错<em>在哪</em>,谢谢!rnrnrnrnrn rn 无标题文档rnrnrnrn rnrnrnrn
代码在哪
rnrn这<em>代码</em>错<em>在哪</em>???为什么提示说少括号?
代码在哪?
String str;rninteger ch,i;rnDECLARE a1 CURSOR FORrnSELECT blrnFROM c_table;rnrnSELECT COUNT(b1)rnINTO :chrnFROM c_tablernrnOPEN a1;rnFOR i = 1 to chrn FETCH a1 INTO :str;rn ddlb_b1.AddItem(str);rn END FORrnCLOSE a1;rnc_table中只有一个字段b1.rn为什么str中总是空?
这段代码在哪?????
我做了一个函数用来得到系统路径rnstruct DEFINE_SYSTEM_PATHrn rn AnsiString ProgramFilesPath;rn AnsiString DeskTopPath;rn AnsiString StartMenuPath;rn AnsiString WindowsPath;rn AnsiString RunPath;rn ;rnrnrnbool __fastcall TDefine_Setup_Function::GetSystemPath(DEFINE_SYSTEM_PATH *SystemPath)rnrn LPMALLOC ShellMalloc;rn LPITEMIDLIST id;rn char Dir[50];rn //得到桌面路径rn if(FAILED(SHGetMalloc(&ShellMalloc)))rn return(false);rn if(FAILED(SHGetSpecialFolderLocation(NULL,CSIDL_DESKTOPDIRECTORY,&id)))rn return(false);rn if(!SHGetPathFromIDList(id,Dir))rn rn ShellMalloc->Free(id);rn ShellMalloc->Release();rn return(false);rn rn SystemPath->DeskTopPath = Dir;rn //得到程序组路径rn if (FAILED(SHGetMalloc(&ShellMalloc)))rn return(false);rn if (FAILED(SHGetSpecialFolderLocation(NULL,CSIDL_PROGRAMS,&id)))rn return(false);rn if (!SHGetPathFromIDList(id,Dir))rn rn ShellMalloc->Free(id);rn ShellMalloc->Release();rn return(false);rn rn SystemPath->StartMenuPath = Dir;rn //得到开始菜单的路径rn if (FAILED(SHGetMalloc(&ShellMalloc)))rn return(false);rn if (FAILED(SHGetSpecialFolderLocation(NULL,CSIDL_STARTUP,&id)))rn return(false);rn if (!SHGetPathFromIDList(id,Dir))rn rn ShellMalloc->Free(id);rn ShellMalloc->Release();rn return(false);rn rn SystemPath->RunPath = Dir;rn ShellMalloc->Free(id);rn ShellMalloc->Release();rn //得到WINDOWS安装路径rn GetWindowsDirectory(Dir,50);rn SystemPath->WindowsPath = Dir;rn //得到程序组路径rn TRegistry *Path = new TRegistry;rn Path->RootKey = HKEY_LOCAL_MACHINE;rn if (Path->OpenKey("Software\\Microsoft\\Windows\\CurrentVersion",false))rn rn SystemPath->ProgramFilesPath = Path->ReadString("ProgramFilesDir");rn Path->CloseKey();rn delete Path;rn rn elsern rn Path->CloseKey();rn delete Path;rn return(false);rn rn ShowMessage(SystemPath->DeskTopPath);rn ShowMessage(SystemPath->StartMenuPath);rn ShowMessage(SystemPath->RunPath);rn ShowMessage(SystemPath->ProgramFilesPath);rn ShowMessage(SystemPath->WindowsPath);rn return(true);rnrnrnrn在WIN98上运行一点问题都没有,可是不能在WIN2000上运行,出现内存错误!!怎么改才可以在WIN98和WIN2000上同时用呀!
这段代码在哪??
#include rnvoid main()rnrn char *a;rn cin.getline(a,10,'\n');rn cout<
以下代码在哪
代码在哪了?
题目是:输入一组数,求间隔两数之和,要求用函数的调用来实现。。(即a[1]+a[3],a[2]+a[4],a[3]+a[5]······rnrnrn#include rnvoid Add(int data[],int n);rnint main()rnrn int array[10],i;rn cout<>array[i];rn rn cout<;rn Add(array,i);rn return 0;rnrnvoid Add(int data[],int n)rnrn int i,sum;rn for(i=0;i
简单代码在哪????
rnrnrn取出来的值不是1,2,3,rnrn而是,????rnwhy????rn
下列代码在哪
#include "stdafx.h"rnrntemplate rnclass MyTemprnrnpublic:rn MyTemp();rn ~MyTemp();rn int getint();rn;rnrnclass MyClass1rnrnpublic:rn int getint()return 11;;rn;rnrnclass MyClass2rnrnpublic:rn int getint()return 12;;rn;rnrnint main(int argc, char* argv[])rnrn MyTemp c1;rn MyTemp c2;rnrn printf("%d,%d\r\n",c1.getint (),c2.getint ());rn return 0;rnrnrn编译时的错误信息是:rnTempTest.obj : error LNK2001: unresolved external symbol "public: int __thiscall MyTemp::getint(void)" (?getint@?$MyTemp@VMyClass1@@@@QAEHXZ)rnTempTest.obj : error LNK2001: unresolved external symbol "public: int __thiscall MyTemp::getint(void)" (?getint@?$MyTemp@VMyClass2@@@@QAEHXZ)rnDebug/TempTest.exe : fatal error LNK1120: 2 unresolved externalsrnError executing link.exe.rnrn
这段代码在哪
我想搞一个类封装几步操作错<em>在哪</em>?rnrn#include rnclass cWindrnrnpublic:rn cWind():m_hwnd(0)rn BOOL CreateWindow( LPCTSTR lpClassName,rn LPCTSTR lpWindowName,rn DWORD dwStyle,rn int x,rn int y,rn int nWidth,rn int nHeight,rn HWND hWndParent,rn HMENU hMenu,rn HINSTANCE hInstance,rn LPVOID lpParam);rn BOOL ShowWindow( int nCmdShow);rn BOOL UpdateWindow();rnpublic:rn HWND m_hwnd;rn;rnBOOL cWind::CreateWindow( LPCTSTR lpClassName,rn LPCTSTR lpWindowName,rn DWORD dwStyle,rn int x,rn int y,rn int nWidth,rn int nHeight,rn HWND hWndParent,rn HMENU hMenu,rn HINSTANCE hInstance,rn LPVOID lpParam)rn rn m_hwnd=::CreateWindow(lpClassName,lpwindowName,dwStyle,x,y,nWidth,nHeight,rn hWndParent,hMenu,hInstance,lpParam);rn if(m_hwnd)rn return FALSE;rn else return TRUE;rn rnBOOL cWind::ShowWindow( int nCmdShow)rn rn return ::ShowWindow(m_hwnd,nCmdShow);rn rnBOOL cWind::UpdateWindow()rn rn return ::UpdateWindow(m_hwnd);rn rnrnint WINAPI WinMain( HINSTANCE hInstance,rn HINSTANCE hPrevInstance,rn LPSTR lpCmdLine,rn int nCmdShow)rnrnrn
C代码在哪
[b]大侠们,这不是改错题,但是为什么这段连编译都过不去?错<em>在哪</em>了?顺便说一下这段<em>代码</em>主要靠的是什么知识点?[/b]rnrn[code=C/C++]rn 1 #include rn 2 #include rn 3 rn 4 int f(int &ival)rn 5 rn 6 static int icount = ival;rn 7 ival++;rn 8 rn 9 return (icount * ival);rn 10 rn 11 rn 12 int main(void)rn 13 rn 14 int total = 0;rn 15 int ival = 1;rn 16 int i;rn 17 rn 18 for(i=0;i, ival);rn 24 rn 25 return 0;rn 26 rn[/code]
我的JAVA错在哪?
各位网友,本人初学Java,我所写的程序怎样都不能通过编译,照着书上写的都不行,是我的Windows系统设置不对吗,我照着书上说的那样设都不行。请各位高人祥细的教教本人,我就感激万分。rn rn如程序import <em>java</em>.awt.Point;rnclass ReferencesTestrn public static void main(String[] arguments)rn Point pt1,pt2;rn pt1=new Point(100,100);rn pt2=pt1;rn pt1.x=200;rn pt1.y=200;rn System.out.println("Point1"+ pt1.x + "," + pt1.y);rn System.out.println("Point1"+ pt2.x + "," + pt2.y);rn rnrnrn它能通过:<em>java</em>c ReferencesTest.<em>java</em> 产生ReferencesTest.classrn但通过:<em>java</em> ReferencesTest时它提示rnException in thread "main" <em>java</em>.lang.NoClass DefFoundError;ReferencesTestrn,请问到底错<em>在哪</em>rn我已设了我的电脑属性高级环境变量新建pathC:\j2sdk1.4.0_01\bin;rnrnrn
这个Sql错在哪呢?
---我定义的存储过程---rnuse tzhyrnrnrndeclare @pageIndex int,@pageSize int,@pageCount intrnset @pageIndex=751rnset @pageSize=20rnexec usp_GetPagedData @pageIndex,@pageSize,@pageCount outputrnselect @pageCount rnrn--SDataTime, SClasses, SCollector, SCollectorNum, SCarNum, SCarOldType, SCarNewType, SComeStation, SOutStation, SFreeMuch, SMeterMuchrnrnrnrnuse tzhyrnrncreate proc usp_GetPageData2rn @pageIndex int, --页码rn @pageSize int, --每页多少条rn @pageCount int output, --总共多少页 输出rn @tableName nvarchar(50), ---表名rn @colFields nvarchar(200) ---字段名rnasrn --总记录数rn declare @count intrn select @count=COUNT(*) from Table_Meter rn set @pageCount = CEILING(@count*1.0/@pageSize)rnrn declare @sql nvarchar(500)rn set @sql='select * from rn (select *,ROW_NUMBER() over(order by [SID] desc) as num from '+@tableName+')rn as trn where t.num between ('+@pageIndex+'-1)*'+@pageSize+'+1 and '+@pageIndex+'*'+@pageSize+' order by [SID] desc'rnrn exec(@sql)rn-------------------------------------------------------------------------------------------------rn----下面我想对<em>这个</em>写好的存储过程测试,测试如下-----rndeclare @pageIndex int,@pageSize int,@pageCount int,@tableName nvarchar(50),@colFields nvarchar(200)rnset @pageIndex=751rnset @pageSize=20rnset @tableName='dbo.Table_Meter'rnset @colFields='SDataTime, SClasses, SCollector, SCollectorNum, SCarNum, SCarOldType'rnexec usp_GetPageData2 @pageIndex,@pageSize,@pageCount output,@tableName,@colFieldsrnrn----执行上面的测试<em>代码</em>,但报错了,错误如下----rn消息 245,级别 16,状态 1,过程 usp_GetPageData2,第 14 行rn在将 nvarchar 值 'select * from rn (select *,ROW_NUMBER() over(order by [SID] desc) as num from dbo.Table_Meter)rn as trn where t.num between (' 转换成数据类型 int 时失败。rnrnrnrn---------------请问这错<em>在哪</em>里,我怎么就看不出来呢????-----
这个Javascript错在哪
doclear 函数中设置 value 报错rn[img=https://img-bbs.csdn.net/upload/201611/12/1478939105_573338.png][/img]rn[code=<em>java</em>]rnrnrn 当前位置:货种管理->散货清单rnrnrn rnrn rn rn 用户IDrn rn 登录账户:rn rn 公司名称:rn rn rn ==请选择部门==rn 系统部rn 开发部rn 维护部rn rnrnrn rnrnrnrnrnrnrn rnrn rn rn rn 序号rn 编码rn 货名rn 包装rn rnrn rn rn 1rn 001rn 大米rn 袋装rn rnrn rn rn 2rn 002rn 玉米rn 散装rn rnrn rn rn 3rn 003rn 面粉rn 袋装rn rnrn[/code]
请问这个脚本错在哪?
我有表A,表A 里有个user_id 的索引名字叫user_index;rn表A里还有个字段是count,我现在想对user_id,和count做联合索引,脚本内容如下:rnrncreate index cal_rrule_userId_type_condentId on A(user_id,count);rnALTER TABLE `DBNAME`.`A` DROP INDEX `user_index`;rnrn执行错误是:rnQuery:rncreate index cal_rrule_userId_type_condentId on A(user_id,count)rnrnError occured at:2007-11-19 15:51:36rnLine no.:1rnError Code: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'create index cal_rrule_userId_type_condentId on A(user_id,count' at line 1rnrn
看看这个数组错在哪
以下程序的功能是把数组a和b归并到c中,按升序排列 rnrnrnmain()rn char a[]="acegikm";这几个回答都无关紧要。rn char b[]="bdfhjlnpq";rn char c[80],t;rn int i,j;rn strcpy(c,a);rn strcat(c,b);rn printf("Source array:\n");rn puts(c);rn for(i=0;ic[j])rn t=c[i];c[i]=c[j];c[j]=t;rn printf("finished array:\n");rn puts(c);rnrnZrn为什么得不出结果?
这个Makefile到底错在哪
[code=text]rnA=arnall:rn if [ $(A) = a ]; then\rn echo 1\rn firn[/code]rnrn报错:rn[www.cc.com@/home/cc/Box/mak]makernif [ a = a ]; then\rn echo 1\rn firn/bin/sh: -c: line 3: syntax error: unexpected end of filernmake: *** [all] 错误 1rn[www.cc.com@/home/cc/Box/mak]rnrn
这个程序究竟错在哪了?
输入一个不高于5位的正整数,要求输出共有几位,每位数字以及逆序数字(如果输入123,逆序数字为321)rn main() rn long int s;int p,n[6],t,b; rn printf("请输入1~99999之间的数字:"); rn scanf("%ld",&s); rn for(p=0,b=1;;b*=10,p++) rn if((t=s/b)!=0) n[p+1]=t%10; rn else break; rn printf("\n共有%d位数\n",p); rn printf("每位数字为:"); rn for(b=p;b>0;b--) rn printf("%5d",n[p]); rn printf("\n逆序数字为:"); rn for(b=1;b); rn rn rn结果如下: 请输入1~99999之间的数字: 12345rn 共有5位数rn 每位数字为 1 1 1 1 1rn 逆序数字为11111rn 到底错了哪了????请大家帮忙看看~~~~~`
请教这个触发器错在哪
我的触发器,在单独删除一条HZB记录时运行正常,而删除多条HZB记录时,出现错误:rnrn子查询返回的值多于一个。当子查询跟随在 =、!=、、>= 之后,或子查询用作表达式时,这种情况是不允许的 rnrn我的触发器是这样的,rnCREATE TRIGGER [删除对应明细] ON [dbo].[总表] rnFOR DELETE rnASrndeclare @del_id varchar(20)rnselect @del_id=id from deletedrndelete from 明细表 where id=@del_idrnrn请有经验的大哥指点为谢!
这个简单的存储过程错在哪
CREATE PROCEDURE getquanxianrn@tbname varchar(100),--表名rn@fldstr varchar(100), ----列名rn@wherestr varchar(200), ---条件rn@output varchar(10) --输出权限rnasrndeclare @strSQL varchar(1000)rnset @strSQL="select "+@output+"=["+fldstr+"] from ["+tbname+"] where "+@wherestrrnexec (@strSQL)rngornrn点击确定后,sqlserver提示 fldstr无效,tbname无效!
这个重复错在哪
for (j=0;j
不知道这个程序错在哪
[code=C/C++]rn#include rnrnvoid swap(int *p1, int *p2);rnrnvoid main () rn int a,b;rn int *pointer_1, *pointer_2;rn scanf("%d,%d",&a,&b);rn pointer_1 = &a;rn pointer_2 = &b;rn if(a
请问这个程序错在哪
程序的要求是POJ的1979RED AND BLACK,地址如下http://acm.pku.edu.cn/JudgeOnline/problem?id=1979rn#include"stdio.h"rnrn static bool visit[100][100];rn static int dir[4][2] = 0, -1,-1, 0,1, 0, 0, 1;//代表四个方向,向上,向左,向右,向下rn static int count,line,list;rn static char s[100][100];rnvoid dfs(int x,int y)rnrn int p,q;rn for(int i=0;i=line || q>=list)rn continue;rn if(!visit[p][q] && s[p][q]=='.')rn rn count++;rn visit[p][q]=true;rn dfs(p,q);rn rn rnrnint main()rnrn int p,q;rn while(scanf("%d%d",&line,&list))rn if(line!=0||list!=0)rn for(int i=0;i
请问:这个程序错在哪
我<em>这个</em>是在linux下运行的,rn我是把字符串压入堆栈,然后想显示字符串,可是没有显示,rn请看:rn.textrn.global _startrn_start:rn pushl %ebprn movl %esp,%ebprn pushl $0x48494a00rn movl $4,%eaxrn movl $1,%ebxrn movl %ebp,%ecxrn movl $4,%edxrn int $0x80rn popl %eaxrn popl %ebprn movl $1,%eaxrn movl $0,%ebxrn int $0x80
这个SQL语句错在哪了?
[code=SQL]rnUPDATE [Product] SET [Data_No] = access_product.[Data_No], R1 = access_product.R1, R2 = access_product.R2,rn R3 = access_product.R3, R4 = access_product.R4, R5 = access_product.R5, R6 = access_product.R6, rn B1 = access_product.B1 rn FROM Lottery sql_product RIGHT JOIN OPENROWSET('Microsoft.Jet.OLEDB.4.0',rn 'D:\Work\DataBase\Product.mdb';'admin';'',[Lottery]) access_productrn ON sql_product.[Data_No] = access_product.[Data_No]rn WHERE sql_product.[Data_No] IS NULLrn[/code]rnrn服务器: 消息 7202,级别 11,状态 2,行 1rn在 sysservers 中未能找到服务器 'Lottery'。请执行 sp_addlinkedserver 以将服务器添加到 sysservers。rnrn如果改成如下,就是对的,真不明白了rn[code=SQL]rnSELECT access_product.[Data_No], access_product.[R1], access_product.[R2], access_product.[R3], rn access_product.[R4], access_product.[R5], access_product.[R6], access_product.[B1],rn sql_product.[Data_No], sql_product.[R1], sql_product.[R2], sql_product.[R3], rn sql_product.[R4], sql_product.[R5], sql_product.[R6], sql_product.[B1] rn FROM product sql_product RIGHT JOIN OPENROWSET('Microsoft.Jet.OLEDB.4.0',rn 'D:\Work\DataBase\product.mdb';'admin';'',[product]) access_productrn ON sql_product.[Data_No] = access_product.[Data_No]rn WHERE sql_product.[Data_No] IS NULLrn[/code]rnrn
请问这个js验证错在哪
rnrnrnrnrn rn rnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnrnrn请问<em>这个</em>js验证错<em>在哪</em>?
请问这个程序错在哪
main()rnstatic char str[]="C-lauguage";rnchar ch;rnint i;rnprintf("请输入要查找的字符:");rnscanf("%c",&ch);rnfor(i=0;str[i]!='\0';i++)rnif(str[i]==ch)rnprintf("字符%c出现的位置是%d\n",ch,i+1);rnbreak;rnrnif(str[i]=='\0')rnprintf("未找到该字符。\n");
这个sql语句错在哪了?
ScoreId fen ScoreType ScoreUser rn 3 100 考核1 张三rn 4 99 考核1 张三rn 5 97 考核1 张三rn 6 96 考核1 张三rn 7 99 考核1 李四rn 8 95 考核1 张三rn 9 94 考核1 张三rn 10 99 考核2 张三rn 11 99 考核2 李四rnrnrnrnselect ScoreId from Score rnwhere ScoreId in(select top 2 ScoreId from Score where ScoreType='考核1' and ScoreUser='张三' order by ScoreInfo desc) rnand Scoreid in(select top 2 ScoreId from Score where ScoreType='考核1' and ScoreUser='张三' order by ScoreInfo) and ScoreType='考核1' and ScoreUser='张三'rnrnrn我要查询的结果是rn 姓名为[b]张三[/b]考核类型为[b]考核1[/b]的2个最高记录和2个最低记录,但用我的查询语句确查不出来!rnrn 即查询结果为rn 3 rn 4 rn 8 rn 9 rnrn最好能优话一下我的查询语句rn rn
这个des算法错在哪
写了一个des算法,请高手帮我看看rnrn#includernusing namespace std;rnvoid getSubKey( unsigned char (*subK)[48], unsigned char* k ); rnvoid des( unsigned char* m );rnvoid _des( unsigned char* m );rnunsigned char k[]="program";rnrnint main() rnrn unsigned char m[]="computer";rn unsigned char subK[16][48];rn getSubKey(subK,k);rn /*cout<<>7-j) & 1;rn rn cout<<
这个JSP程序错在哪
我用的是Tomcat5.0.19,rnROOT\test\TaxRate.<em>java</em>程序如下:rnpackage tax;rnpublic class TaxRaternrn String Product; rn double Rate; rn public TaxRate()rn rn this.Product = "A001"; rn this.Rate = 5; rn rn public void setProduct(String ProductName)rn rn this.Product = ProductName; rn rn public String getProduct()rn rn return(this.Product);rn rn public void setRate(double rateValue)rn rn this.Rate = rateValue; rn rn public double getRate()rn rn return(this.Rate); rn rnrn在命令行用:d:\Tomcat\webapps\ROOT\test\<em>java</em>c -d . TaxRate.<em>java</em>rn编译没有出错,在d:\Tomcat\webapps\ROOT\test\tax目录下能生成TaxRate.classrnrnROOT\test\taxrate.jsp程序如下:rnrnrnrnrnrn使用方法1: rn产品: rn税率:rn rnrn使用方法2: rn产品:rn rn税率:rnrnrnrn在浏览器上调试:http://localhost:8080/test/taxrate.jsp出现如下错误:rnrnHTTP Status 500 - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrn<em>java</em>x.servlet.ServletException: TaxRate (wrong name: tax/TaxRate)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.<em>java</em>:256)rn <em>java</em>x.servlet.http.HttpServlet.service(HttpServlet.<em>java</em>:856)rnrnrnroot cause rnrn<em>java</em>.lang.NoClassDefFoundError: TaxRate (wrong name: tax/TaxRate)rn <em>java</em>.lang.ClassLoader.defineClass0(Native Method)rn <em>java</em>.lang.ClassLoader.defineClass(ClassLoader.<em>java</em>:537)rn <em>java</em>.security.SecureClassLoader.defineClass(SecureClassLoader.<em>java</em>:123)rn org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.<em>java</em>:1677)rn org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.<em>java</em>:900)rn org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.<em>java</em>:1350)rn org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.<em>java</em>:1230)rn org.apache.jasper.compiler.BeanRepository.getBeanType(BeanRepository.<em>java</em>:120)rn org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.<em>java</em>:1053)rn org.apache.jasper.compiler.Node$GetProperty.accept(Node.<em>java</em>:1079)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.<em>java</em>:2180)rn org.apache.jasper.compiler.Node$Visitor.visitBody(Node.<em>java</em>:2230)rn org.apache.jasper.compiler.Node$Visitor.visit(Node.<em>java</em>:2236)rn org.apache.jasper.compiler.Node$Root.accept(Node.<em>java</em>:485)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.<em>java</em>:2180)rn org.apache.jasper.compiler.Generator.generate(Generator.<em>java</em>:3255)rn org.apache.jasper.compiler.Compiler.generateJava(Compiler.<em>java</em>:277)rn org.apache.jasper.compiler.Compiler.compile(Compiler.<em>java</em>:456)rn org.apache.jasper.compiler.Compiler.compile(Compiler.<em>java</em>:439)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.<em>java</em>:553)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.<em>java</em>:291)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.<em>java</em>:301)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.<em>java</em>:248)rn <em>java</em>x.servlet.http.HttpServlet.service(HttpServlet.<em>java</em>:856)rnrnrnnote The full stack trace of the root cause is available in the Tomcat logs.rnrn什么原因啊,郁闷中。
这个存储过程错在哪,谢谢
CREATE PROCEDURE AdgroupArtDeleteUidrn(@uid int,@tagid varchar(18))rn ASrnbeginrndeclare @con varchar(512)rndeclare @sql varchar(1024)rnrnif(@uid=0)rnbeginrnif(@tagid='')rnset @con = ''rnelsernset @con = 'where tagid like %,'+@tagid +',%'rnendrnrnelsernbeginrnif(@tagid='')rnset @con = 'where uid='+str(@uid)rnelsernset @con = 'where uid='+str(@uid)+' and tagid like %,'+@tagid+',%'rnendrnrnset @sql = 'delete t_adgroupart '+@conrnendrnexec (@sql)rnGOrn
这个VC绘图函数错在哪
我编写了一个小程序,其中有一段<em>代码</em>是模拟按钮,经简化后如下:rnrn//模拟按钮rnvoid uButton(CDC *pDC,CRect rect)rnrn CPen *pNewPen,*pOldPen;rnrn CBrush *pNewBrush=new CBrush;rn pNewBrush->CreateSolidBrush(RGB(192,192,192));rn pDC->FillRect(rect,pNewBrush);rn delete pNewBrush;rnrn pNewPen=new CPen;rn pNewPen->CreatePen(PS_SOLID,1,RGB(255,255,255));rn pOldPen=pDC->SelectObject(pNewPen);rn pDC->MoveTo(rect.left,rect.top );rn pDC->LineTo(rect.right-1,rect.top);rn pDC->MoveTo(rect.left,rect.top );rn pDC->LineTo(rect.left,rect.bottom-1);rn delete pNewPen;rnrn //以下<em>代码</em>与上面相同,只是颜色和坐标变了rn pNewPen=new CPen;rn pNewPen->CreatePen(PS_SOLID,1,RGB(0,0,0));rn pDC->SelectObject(pNewPen);rn pDC->MoveTo(rect.right,rect.top);rn pDC->LineTo(rect.right,rect.bottom);rn pDC->MoveTo(rect.left,rect.bottom);rn pDC->LineTo(rect.right,rect.bottom);rn delete pNewPen;rnrn pNewPen=new CPen;rn pNewPen->CreatePen(PS_SOLID,1,RGB(128,128,128));rn pDC->SelectObject(pNewPen);rn pDC->MoveTo(rect.right-1,rect.top+1);rn pDC->LineTo(rect.right-1,rect.bottom-1);rn pDC->MoveTo(rect.left+1,rect.bottom-1);rn pDC->LineTo(rect.right-1,rect.bottom-1);rn delete pNewPen;rn pDC->SelectObject(pOldPen);rnrnrn为了测试,我在OnKeyDown()事件中写了如下<em>代码</em>:rnrnrn CDC *pDC=GetDC();rn CRect rect;rn rn rect.left=0;rn rect.right=100;rn rect.top=0;rn rect.bottom=70;rn uButton(pDC,rect);rn //ReleaseDC(pDC);rnrnrn如果你大量调用uButton()函数,如按住回车键不动,过一会儿,图案就变了,再过一会儿就死机了,我实在不知程序错<em>在哪</em>儿,望各为大虾吝指教。
请问这个语句错在哪
select *,(case when a='1' then b=a) from (select 表1 as a,'1' as b from basic)c
请问这个程序错在哪
程序如下:rnrn#include rn#include rnfloat y(float x)rnreturn pow(2,-x);rnrnrnmain()rnfloat x0,w,N,m;rnint k;rnscanf("N=%f,x0=$f,w=%f",N,x0,w);rnx=x0;rnfor(k=1;k,x);rnx0=x;rnrnrn
看看这个SQL错在哪
[code=SQL]rnselect t.*, t.rowid from tb_onlinesetup t where sgkszy is nullrn[/code]rn可以查到数据rn[code=SQL]rnselect t.*, t.rowid from tb_onlinesetup t wherernsgkszy=(case when sgkszy is not null then '普通员工' else null end) rn[/code]rn查不到数据rn不知错<em>在哪</em>里,请高手指教,谢谢
这个到底错在哪呢?
import <em>java</em>.io.BufferedReader;rnimport <em>java</em>.io.InputStreamReader;rnpublic class e rn public static void main(String args[])rn tryrn InputStreamReader isr=new InputStreamReader(System.in);rn BufferedReader br=BufferedReader(isr);rn rn //给出提示rn System.out.println("请输入一个数");rn //从控制台读取一行数据rn int a=br.read();rn rn catch(Exception e)rn rn e.printStackTrace();rn rn rn for (int i=0;i
c语言这个在哪
我刚刚开始学的,很多地方都不懂,希望大家多多指教,这段求三角形面积的错<em>在哪</em>呢?rn或者怎么更好的去实现呢?rnrnrn#includern#includernvoid main()rnrn float a,b,c,s;rn float area;rn printf("input three numbers\n");rn scanf("%d%d%d",&a,&b,&c);rn if((a+b>c)&&(a+c>b)&&(b+c>a))rn rn s=(a+b+c)/2;rn area=sqrt(s*(s-a)*(s-b)*(s-c));rn printf("%d\n",area);rn rn elsern printf("the numbers is wrong\n");rn
新手求教这个在哪
#includern#define N 3rn#define M 30rn main()rnrnrnrnchar ch[N][M+1];rnint i,j;rnint upp,low,dig,spa,oth;rnupp=low=dig=spa=oth=0;rnfor(i=0;i='A'&&ch[i][j]>='Z')rnupp++;rnelse if (ch[N][M]>='a'&&ch[N][M]='0'&&ch[N][M],spa);rnrn rnrnrnrnrn
急寻:这个在哪了?
http://www.17flying.net/web/type_2.asprn<em>这个</em>页子老是出错,一直调不好,我怀疑是数据库里的记录只有四条,而我这一个页面显示六条信息 的原因,想加个条件限制一下,可就是加不好,如果哪个高手要整个站点的文件,可与联系,我在线ING,QQ:8041983rnrn下面是<em>这个</em>页面的原<em>代码</em>:rnrnhttp://www.17flying.net/web/type_2.txtrn(太大了,CSDN放不下)rn谢谢大家,在线等ing..
看看这个存储过程错在哪??
alter proc proc_in_out(@nian int,@yue int,@username varchar(10))rnas rnbeginrnrnrndeclare @last_nian int,@last_yue int,@maktx varchar(30),@matnr varchar(18)rnrnrnIf @YUE = 1rn beginrn select @last_yue = 12rn select @last_nian = @NIAN - 1rn endrnelsern beginrn select @last_nian = @NIANrn select @last_yue = @YUE - 1rn endrnset nocount onrn--当前月记录rnselect * into #tab1 from in_out where nian=@nian and yue=@yuern--当前月无记录,上月有记录rnselect * into #tab2 from in_out where matnr in(select distinct a.matnr from material a,bom b where a.matnr=b.matnr and a.nian=@nian and a.yue=@yue and b.get_typ='X')rn and nian=@last_nian and yue=@last_yue and matnr not in(select distinct matnr from #tab1)rnrndeclare cur_temp cursor forrnselect * from #tab2 for update rnrnopen cur_temprnfetch next from cur_temprnWHILE (@@FETCH_STATUS <> -1)rn beginrn update #tab2 set man=@username,in0=0,out0=0,in1=in2,out1=out2,in2=in3,out2=out3,in3=0,out3=0,nian=@nian,yue=@yue where current of cur_temprn fetch next from cur_temprn endrninsert into #tab1 select * from #tab2rnclose cur_temprndeallocate cur_temprnselect * from #tab1rnendrngornrnrn在查询分析器里执行可以正确返回记录集,在VB里调用时总是出现“未指定的错误”,请问是什么原因
请问这个存储过程错在哪
create or replace procedure longdev.selectREIDFromEmployeern(CardID in varchar, rn SerialID out number)rnisrnbeginrn Select REID into SerialID from longdev.RPEmployee where RECardID=CardID;rnend longdev.selectreidfromemployee;rn
WinSock教程 基础入门下载
WinSock教程 基础入门 适合新手 Windows Sockets 规范及应用 相关下载链接:[url=//download.csdn.net/download/yilin54/2903088?utm_source=bbsseo]//download.csdn.net/download/yilin54/2903088?utm_source=bbsseo[/url]
无线传输系统的设计下载
基于nRF905的无线传输系统的设计.本系统的无线发射接收电路主要利用nRF905与外围器件构成的电路组成,其主要部分是天线。简而言之,就是一个特定形状的导体,它可以将电流转化为射频能量并以电波形式发射出去.或将无线电波接收进来。 相关下载链接:[url=//download.csdn.net/download/fengzehui0928/4355022?utm_source=bbsseo]//download.csdn.net/download/fengzehui0928/4355022?utm_source=bbsseo[/url]
淘宝快递单号生成器2.0下载
淘宝快递单号生成器2.0 相关下载链接:[url=//download.csdn.net/download/cfanxgh/4621619?utm_source=bbsseo]//download.csdn.net/download/cfanxgh/4621619?utm_source=bbsseo[/url]
我们是很有底线的