到底哪里错了? [问题点数:50分,结帖人misslili]

Bbs1
本版专家分:0
结帖率 97.56%
Bbs7
本版专家分:14043
Blank
蓝花 2004年1月 C/C++大版内专家分月排行榜第三
Bbs7
本版专家分:21644
Blank
红花 2004年10月 C/C++大版内专家分月排行榜第一
2004年9月 C/C++大版内专家分月排行榜第一
2004年8月 C/C++大版内专家分月排行榜第一
2004年7月 C/C++大版内专家分月排行榜第一
2004年5月 C/C++大版内专家分月排行榜第一
2004年4月 C/C++大版内专家分月排行榜第一
Blank
蓝花 2004年11月 C/C++大版内专家分月排行榜第三
Bbs1
本版专家分:13
Bbs7
本版专家分:21644
Blank
红花 2004年10月 C/C++大版内专家分月排行榜第一
2004年9月 C/C++大版内专家分月排行榜第一
2004年8月 C/C++大版内专家分月排行榜第一
2004年7月 C/C++大版内专家分月排行榜第一
2004年5月 C/C++大版内专家分月排行榜第一
2004年4月 C/C++大版内专家分月排行榜第一
Blank
蓝花 2004年11月 C/C++大版内专家分月排行榜第三
o1n
Bbs5
本版专家分:3261
Bbs1
本版专家分:13
Bbs1
本版专家分:13
Bbs1
本版专家分:0
这双缓冲到底哪里错了
初始化双缓冲是这样的!rn[code=C/C++]rn// CDC MDc ;rn// CBitmap bmp;rn if(!MDc.CreateCompatibleDC(NULL)) rn rn ::PostQuitMessage(0);rn rn bmp.CreateCompatibleBitmap(&MDc, rt.Width(), rt.Height());rn ::SelectObject(MDc.GetSafeHdc(), bmp); rn[/code]rnrn下面是2个问题!rn[code=C/C++]rndouble colorR=255,colorG=255,colorB=255;rn CPen* oldPen;rn rn for(int i2=0;iSetTextColor(RGB(0,0,250));rn pdcView->BitBlt(0, 0, rt.Width(), rt.Height(), &m_dcMemory, 0, 0, SRCCOPY);rn rnrn[/code]
简单的登陆页面到底哪里错了
rn rn 请输入用户名和密码rn rn rn rn rn 身 份 验 证 rn rn  rn " name="MyForm" onsubmit ="return ChkFields()">rn 用户名: rn 密 码: rn rn rn  rn rn rn rnrnrn错误类型:rnMicrosoft VBScript 编译器错误 (0x800A0400)rn/案例二十五/LOGIN.ASP, 第 65 行rnEnd Ifrnrnrn浏览器类型:rnMozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322) rnrn页:rnPOST 50 bytes to /案例二十五/LOGIN.ASPrnrnPOST 数据:rnUserName=%B4%EF%B5%BD&UserPwd=dasf&B1=%CC%E1%BD%BB
懵了,到底哪里错了
运行到下面这段子程序时报错,编译器vc++rnrnrecord load_data() //record是自定义类型rnrn record p;rn record hl;rn hl=NULL;rn if((fp=fopen(accounts,"rb"))=NULL) //fp是全局变量rn rn printf("Failed.");rn getch();rn return NULL;rn rn fseek(fp,sizeof(int),0);rn fseek(fp,l*sizeof(char),1);rn while(!feof(fp))rn rn p=(record)malloc(sizeof(lnode));rn if(fread(p,sizeof(lnode),1,fp)==1)rn rn p->next=NULL;rn if(hl!=NULL)rn hl->next=p;rn elsern hl=p;rn rn rn fclose(fp);rn return hl;rnrn报错信息:rnDebug Assertion Failed!rnProgram:..........(就是生成的可执行文件)rnFile: fseek.crnLine: 146rnExpression: str != NULLrn......(后面就是让我debug程序,不会~~~)rn初学者求助
这段代码到底哪里错了????
#pragma oncernrn#include "stdafx.h"rn#include rnrnclass iStackrnrnpublic:rn iStack(void);rnrn iStack( int capacity ) : _stack( capacity ), _top( 0 ) rnrn bool pop( int &value );rn bool push( int value );rnrn bool full() return _top < _stack.size()-1 ? false : true; ;rn bool empty() return _top ? false : true ;;rn void display();rnrn int size() return _top; ;rnrn ~iStack(void);rnrnprivate:rn int _top;rn vector _stack;rn;rnrn编译老是提示缺少iStack::vector存储类或类型说明符,不可能呀,明明已经加了了,请大家帮忙看看<em>到底</em>是怎么回事?
郁闷:SQL 到底哪里错了???
我在SQL2005服务器上建立一个SP,其中有简单语句,但是确出错:rnrnrnselect CutLotNo,rn 0 as Mocutlotno, --实体表中没有此列rn Mono,rn Mocolor,rn Mosize,rn ItemNo,rn ItemCard,rn InitQty,rn CurrentQty,rn 0 as OpQty,rn 0 as BalanceQty,rn '' as InSewwing,rn '' as Remark rninto #CardItemrnfrom itemrnwhere cutlotno in (select cutlotno from #CutlotNo)rnrnrn--执行以下这条语句时却出错:rnupdate #CardItem set Mocutlotno=1rnrn错误信息如下:rnMsg 207, Level 16, State 1, Procedure SP_MOClose_GPRO, Line 0rnInvalid column name 'Mocutlotno'.
数据库添加,到底哪里错了
用前三个的时候可以,多加了一个from字段,添加就出现错误。rn请高手帮忙看看<em>到底</em><em>哪里</em><em>错了</em>?rnrn rnrn错误信息:rn分析失败: 没有较好格式化 (行号: 7, 字符: 33)rn Microsoft OLE DB Provider for ODBC Driversrn '80040e14'rn[Microsoft][ODBC Microsoft Access Driver] INSERT INTO �����?����
谁知道68行到底哪里错了?
谁知道68行<em>到底</em><em>哪里</em><em>错了</em>?用socket做超市管理系统java编程,输入产品编号会提示商品,但是却有报错,怎么回事?![图片说明](https://img-ask.csdn.net/upload/201512/10/1449681936_744570.png)
这个程序到底哪里错了
这个程序<em>到底</em><em>哪里</em><em>错了</em>,找了很久找不出来,大家帮忙找找,谢谢rnrnrnrnrn rn rn rn rn
这段语句到底哪里错了
void CRegist::OnOK() rn rn CString aa,bb,cc;rn m_Edit1.GetWindowText(aa);rn m_Edit2.GetWindowText(bb);rn m_Edit3.GetWindowText(cc);rn if (bb!=cc)rn MessageBox("您两次输入的密码不同,请重新输入!");rn else if(aa==""||bb=="")rn MessageBox("用户名或密码不能为空,请重新输入!");rn else if((aa!="")&&(bb==aa)&&(aa!=""))rn rn CString sql;rn sql="insert into passw(name,password) values('"+aa+"','"+bb+"')";rn if (pDS->IsOpen())rn pDS->Close(); rn pDS->Open(CRecordset::snapshot,CString(sql));rn rn CDialog::OnOK();rn rnrnrn这是一个密码注册的框框rn我在运行程序时都没错,但点击确定按纽的时候却提示rn 在关键字 insert 附近有语法错误,为能准备语句rnrnrn这<em>到底</em>是<em>哪里</em>出了问题,请大虾指点,找了一个多小时了,还没找出来。谢谢
到底哪里定义错了, 自定义异常, 哪里错了?
rnpublic class TestException rnrn public static void main(String[] args)rn rn tryrn rn int result = new Test().devide( 3, 0 );rn //int result = new Test().devide( 3, -1 );rn //int result = new Test().devide( 3, 1 );rn System.out.println("the result is " + result );rn rn catch(DevideByMinusException e)rn rn System.out.println("program is running into"+rn "DevideByMinusException");rn System.out.println(e.getMessage());rn System.out.println("the devisor is " +rn e. getDevisor());rn rn catch(ArithmeticException e)rn rn System.out.println("program is running into"+ rn "DevideByMinusException");rn System.out.println(e.getMessage());rn rn catch(Exception e)rn rn System.out.println("program is running into"+rn "other unknowned Exception");rn System.out.println(e.getMessage());rn rn System.out.println("program is running here ,that is normal !");rn rn
真的找不出到底哪里错了。。。囧。。有空的帮小弟看下到底哪里错了,谢了
#includern#includernusing namespace std;rnrntemplaternvoid split(const list& aList, list& list1, list& list2)rnrnrnrn list::iterator iter=aList.begin();rn while(iter!=aList.end())rn rn int i=1;rnrn if(i%2==1)rn list1.push_back(*iter);rn elsern list2.push_back(*iter);rn aList.erase(iter++);rn i++;rn rnrnrnrnvoid main()rnrn int arr[]=1,2,3,4,5,6;rn int arrsize=sizeof(arr)/sizeof(int);rn const listaList(arr,arr+arrsize);rn listlist1;rn listlist2;rn split(aList,list1,list2);rn list::iterator iter1=list1.begin();rn list::iterator iter2=list2.begin();rn while(iter1!=list1.end())rn rn cout<<
奇葩的copy问题,我到底哪里错了
我在机房做了一个简单的ADO.net连接到sql的窗体程序,整个文件夹copy到自己的虚拟机上突然连接不上了,什么外围配置,服务,端口该弄的都弄了,就是不行,一直“provider: SQL 网络接口, error: 26 - 定位指定的服务器/实例时出错。”rnrn最奇葩的是,窗体的text属性无法更改,Tabindex焦点属性混乱,设置了也无效。。。。rnrn但是别人同样在机房做的程序copy过来,或者我在虚拟机上建立的一模一样的程序却没有任何问题。rnrn这<em>到底</em>是<em>哪里</em>出了问题?我的开发环境有问题?还是当初在机房没有存储好吗?copy的过程中少了什么文件?真心求教。rn
c初学者。这个程序到底哪里错了
题目:rnDescriptionrn给出一个8*8的01矩阵,请判断出由数字1所填充的图形(三角形/梯形/椭圆形/矩形)。rnrnInputrn第一行输入N,表示有N组测试数据 接下来八行为矩阵内容,每两个数字中间用一个空格隔开 每两个矩阵中间有一个空行rnrnOutputrn输出判断出的形状,每个占一行(三角形输出"triangle",梯形输出"trapezia",椭圆输出"ellipse",矩形输出"rectangle") 你可以在纸上画个图形看看,每种图都是有不同的特点。如 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0是椭圆 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 是梯形 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 0 0 1 1 1 1 1 0 0 0 0 1 1 1 0 0 0rnrnrnSample Inputrnrn2rn0 0 0 0 0 0 0 0rn0 0 1 1 1 1 1 0rn0 0 1 1 1 1 1 0rn0 0 1 1 1 1 1 0rn0 0 1 1 1 1 1 0rn0 0 0 0 0 0 0 0rn0 0 0 0 0 0 0 0rn0 0 0 0 0 0 0 0rnrn0 0 0 0 0 0 0 0rn0 0 1 1 1 1 1 0rn0 0 1 1 1 1 0 0rn0 0 1 1 1 0 0 0rn0 0 1 1 0 0 0 0rn0 0 1 0 0 0 0 0rn0 0 0 0 0 0 0 0rn0 0 0 0 0 0 0 0rnrnSample OutputrnrnrectanglerntrianglernHint梯形的底一定处于水平线上,不会出现特殊情况rnrnrnrnrnrn我的代码:rn#includernint main()rnrn char a[8][15];rn int i,j,t;rn int r[8],c[15],s1=0,s2=0,flag=0,n,max,maxi;rn scanf("%d",&n);rn getchar();rn for(t=0;tmax)rn rn max=r[i];rn maxi=i;rn rn rn for(i=0;i);rn rn return 0;rnrnrnrn被wrong的受不了了。
到底哪里错了~~555!!!帮帮我!
CREATE TABLe workerrn(rn cNo char (4) not nullrn cName char (4) not nullrn cSex char (2) not nullrn cAge int not nullrn)rnrnrnrn服务器: 消息 170,级别 15,状态 1,行 4rn第 4 行: 'cName' 附近有语法错误。rn
帮忙看看到底哪里错了....
做了一个小练习,想要每次鼠标滑过菜单项时,菜单项的背景色改变一下。为什么没变化呢....代码如下:rnrnrnrn 练习rn rnrn rn rnrnrnrnrn rn rn Arn Brn Crn D rn Ernrnrnrn
语句未结束 到底哪里错了
rn第一次用vbrn运行时报错:语句未结束!rn<em>到底</em><em>哪里</em>未结束啊!高手指点
高手帮我看看到底哪里错了啊~~~~~~
http://www.gameres.com/bbs/showthread.asp?threadid=5516
求解决 到底哪里错了
“FamilyFinance.DBHelper”的类型初始值设定项引发异常。
php 总是查询数据失败,到底哪里错了??
function ax($que)rnrn if(!$connect)rn rn $connect = mysql_connect(‘localhost’,'axmanage','axmanpw');rn mysql_select_db('dex',$connect); //这里是连接成功的,但是查询总是失败。rn $query = mysql_query($que); //这一句失败。rn if(!$query)rn rn echo '查询失败';rn elsern echo '查询成功';rn rnrn rnrnax('select * from datak where fimx =1');
急,请帮我看下到底哪里错了
int main(void)rnrn struct tm t;rn time_t result;rn t.tm_sec=10;rn t.tm_min=50;rn t.tm_hour=10;rn t.tm_mday=2;rn t.tm_mon=4;rn t.tm_year=2008;rn t.tm_wday=40;rn t.tm_yday=190;rn t.tm_isdst=-1;rn [color=#FF0000] result=mktime(&t);[/color] printf("%s",ctime(&result));rn return(0);rnrn为什么程序运行时mktime总是出错返回-1呢,在使用时<em>到底</em>有什么需要注意的吗?怎么改呢?
ORACLE中函数到底哪里错了
create or replace function concat2(str1 in varchar2,str2 in varchar2)rn return String is Result String;rnbeginrn if (str1 is null) or (str2 is null) thenrn Result := '';rn elsern beginrn Result=concat(concat(str1,','),str2);rn end;rn rn end if;rn return(Result);rnend concat5;rn
ajax请求问题,到底哪里错了
$(function() rn alert("预加载...");rn $("#addTask").click(function()rn $.ajax(rn type: "POST",rn url: "yujiazaiSelectTask.action?taskType=NYGRADE",rn contentType: "application/json; charset=utf-8",rn dataType: "json",rn success: function(jsonStr)rn alert(jsonStr);rn rn rn );rn );rn );
python我的这个语句到底哪里错了
![图片说明](https://img-ask.csdn.net/upload/201904/07/1554645759_13707.png)rnnames=list(range(1,10))rnfor name in names:rn if name == 1:rn print("1st")rn elif name == 2:#这里的:是英文的rn print("2nd")rnrn elif name == 3:rn print("3rd")rnrn else:rn print(str(name) + "th")rn rn rn rn rn 我找的快疯l
这段简单的代码到底哪里错了??
rnrn rnrnrn rnEnter Some Text: rnrnrnrn
搜寻到底哪里错了! 帮忙看看!
我写了datamodule4.ClientDataSet1.Locate('Category',VarArrayOf([edit2.Text]),[loCaseInsensitive,loPartialKey]);rn 运行之后为什么还会出现[Error] Unit3.pas(56): Undeclared identifier: 'loCaseInsensitive'rn<em>到底</em>问题出现在那里啊!
各位帮忙看看析构函数到底哪里错了
#include "stdafx.h"rn#include rnusing namespace std;rnclass Studentrnrnpublic:rn Student(string a,int b,string c,int d)rn rn name=a;rn ID=b;rn sex=c;rn age=d;rn rn rn Student(float e,float f,float g,float h)rn rn math=e;rn english=f;rn system=g;rn jiegou=h;rn rn ~Student()rn rn cout<
请高人指教到底哪里错了呢???
[code=java]rnpackage cn.itcast.dao.impl;rnrnimport java.sql.Connection;rnimport java.sql.PreparedStatement;rnimport java.sql.ResultSet;rnimport java.sql.SQLException;rnrnimport cn.itcast.dao.UserDao;rnimport cn.itcast.domain.User;rnimport cn.itcast.exception.DaoException;rnimport cn.itcast.utils.JdbcUtils;rnrnpublic class UserDaoJdbcImpl implements UserDao rnrn public void add(User user) rn // TODO Auto-generated method stubrn Connection conn=null;rn PreparedStatement st=null;rn ResultSet rs=null;rn rn try rn conn=JdbcUtils.getConnection();rn String sql="insert into users(id,username,password,email,birthday) values(?,?,?,?,?)";rn st=conn.prepareStatement(sql);rn st.setString(1,user.getId());rn st.setString(2,user.getUsername());rn st.setString(3, user.getPassword());rn st.setString(4,user.getEmail());rn st.setDate(5,new java.sql.Date(user.getBirthday().getTime()));rn rn st.executeUpdate(sql);rn rn catch (Exception e) rn e.printStackTrace();rn finallyrn JdbcUtils.release(conn, st, rs);rn rn rnrn public User find(String username, String password) rn Connection conn=null;rn PreparedStatement st=null;rn ResultSet rs=null;rn rn try rn conn=JdbcUtils.getConnection();rn String sql="select * from users where username=? and password=?";rn st=conn.prepareStatement(sql);rn st.setString(1,username);rn st.setString(2,password);rn rn rs=st.executeQuery();rn if(rs.next())rn User user=new User();rn user.setId(rs.getString("id"));rn user.setUsername(rs.getString("username"));rn user.setPassword(rs.getString("password"));rn user.setEmail(rs.getString("email"));rn user.setBirthday(rs.getDate("birthday"));rn return user;rn rn return null;rn catch (SQLException e) rn // TODO Auto-generated catch blockrn throw new DaoException(e);rn finallyrn JdbcUtils.release(conn, st, rs);rn rn rnrn public User find(String username) rn // TODO Auto-generated method stubrn Connection conn=null;rn PreparedStatement st=null;rn ResultSet rs=null;rn rn try rn conn=JdbcUtils.getConnection();rn String sql="select * from users where username=?";rn st=conn.prepareStatement(sql);rn st.setString(1,username);rn rn rs=st.executeQuery();rn if(rs.next())rn User user=new User();rn user.setId(rs.getString("id"));rn user.setUsername(rs.getString("username"));rn user.setPassword(rs.getString("password"));rn user.setEmail(rs.getString("email"));rn user.setBirthday(rs.getDate("birthday"));rn return user;rn rn return null;rn catch (SQLException e) rn // TODO Auto-generated catch blockrn throw new DaoException(e);rn finallyrn JdbcUtils.release(conn, st, rs);rn rn rnrnrnrnrn[/code]rnrn错误信息:2013-10-12 22:12:55 org.apache.catalina.startup.HostConfig checkResourcesrn信息: Reloading context [/myday14_user]rncom.mysql.jdbc.exceptions.MySQLSyntaxErrorException: 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 '?,?,?,?,?)' at line 1rn at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)rn at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)rn at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)rn at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)rn at com.mysql.jdbc.Connection.execSQL(Connection.java:3277)rn at com.mysql.jdbc.Statement.executeUpdate(Statement.java:1402)rn at com.mysql.jdbc.Statement.executeUpdate(Statement.java:1317)rn at cn.itcast.dao.impl.UserDaoJdbcImpl.add(UserDaoJdbcImpl.java:32)rn at cn.itcast.service.impl.BusinessServiceImpl.registerUser(BusinessServiceImpl.java:25)rn at cn.itcast.web.controller.RegisterServlet.doGet(RegisterServlet.java:47)rn at cn.itcast.web.controller.RegisterServlet.doPost(RegisterServlet.java:67)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: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:293)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)rn at java.lang.Thread.run(Unknown Source)rn我实在没发现啊。。。我是对着写的呀
我这段代码到底哪里错了
为什么CHAR NAME 只有在录入一个字符的时候程序才能正常运行啊??rn#include rn#include rnint main()rnrnFILE *fp;rnFILE *op;rnint j=0;rnint leng;rnint leng2;rnint c;rnchar name[10]=0;rnchar tihuan[10]=0;rnchar wenben[1000]=0;rnfp=fopen("word.txt","r");rnop=fopen("newword.txt","w");rnprintf("请输入你要替换的字符串\n");rnscanf("%s",name);rnleng=strlen(name);rnprintf("请输入你要替换成的字符串\n");rnscanf("%s",tihuan);rnfscanf(fp,"%s",wenben);rnleng2=strlen(wenben);rnwhile((c=wenben[j])!=EOF&&((leng2-j)>=(leng-1)))rnrnif(c==name[0])rnrnif(strncmp(name,wenben+j,leng)==0)rnrnfprintf(op,"%s",tihuan);rnj=j+leng;rnrnrnelsernrnfputc(c,op);rnj++;rnrnrnfclose(fp);rnfclose(op);rnreturn 0;rnrnrnrnrnrnrn在录入一个字符的时候程序才能正常运行啊??
SQL 请问这代码到底哪里错了
题目是:表S_AlarmInfo_New存储的是所有已发生的报警信息rn Global_DatabaseSpace中DS_DataStore_Int字段表示保存几个月内的记录,我们取第一条rn 每发生一条报警会生成一张表S_AlarmInfo20141117,后八位表示报警发生日期rn 另外 有表Global_PerMonth201407存储7月份的报警其他信息。rn现在,我们只保留系统规定的时间段内的表和记录,程序如下:rnSET ANSI_NULLS ONrnSET QUOTED_IDENTIFIER ONrnrnDECLARE @TABLE1 TABLE(NAME VARCHAR(100))rnDECLARE @TABLE2 TABLE (NIANYUE VARCHAR(100))rnDECLARE @DISTANT INTrnDECLARE @SQL1 VARCHAR(100)rnDECLARE @SQL2 VARCHAR(100)rnrnSELECT @DISTANT=DS_DataStore_Int rnFROM Global_DatabaseSpacernWHERE DS_Id_Int=1rnrnINSERT INTO @TABLE1rnSELECT NAME FROM PTRSD..SysObjects rnWHERE XType='U' AND NAME LIKE 'S_AlarmInfo2%'rnORDER BY NAMErnrnINSERT INTO @TABLE2rnSELECT NAME FROM PTRSD..SysObjects rnWHERE XType='U' AND NAME LIKE 'Global_PerMonth2%'rnORDER BY NAMErnrnDELETE FROM S_AlarmInfo_New rnWHERE AI_AlarmDate_Date
jsp页面报错求教到底哪里错了
报错提示:HTTP Status 500 - java.lang.NullPointerExceptionrnrn[b]原先用if(irnrnrnrnrnrn rn Insert title herernrnrnrnrn rn ID: rnrnrnrn rnrnrn首页rn上一页rnrnrn下一页rn尾页rnrn 当前为第页,工页rnrnrn rn rn rnrnrn//servletrnpackage sservlet;rnrnimport java.awt.List;rnimport java.io.IOException;rnrnimport javax.servlet.RequestDispatcher;rnimport javax.servlet.ServletContext;rnimport javax.servlet.ServletException;rnimport javax.servlet.annotation.WebServlet;rnimport javax.servlet.http.HttpServlet;rnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpServletResponse;rnrnimport dao.MessageDAO;rnimport dao.MessageDAOFactory;rnimport daylist.Page;rnimport daylist.PageUtil;rnrn/**rn * Servlet implementation class GetMessageListrn */rn@WebServlet("/GetMessageList")rnpublic class GetMessageList extends HttpServlet rn private static final long serialVersionUID = 1L;rn rn /**rn * @see HttpServlet#HttpServlet()rn */rn public GetMessageList() rn super();rn // TODO Auto-generated constructor stubrn rnrn /**rn * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)rn */rn protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException rn // TODO Auto-generated method stubrn int currentPage=0;rn String currentPageStr=request.getParameter("currentPage");rn if(currentPageStr==null||"".equals(currentPageStr))rn currentPage=0;rn elsern currentPage=Integer.parseInt(currentPageStr);rn rn MessageDAO messageDAO=MessageDAOFactory.getMessageDAOInstance();rn Page pages=PageUtil.createPage(5, messageDAO.findAllCount(),currentPage);rn List messages=(List) messageDAO.findAllMessage(pages);rn request.setAttribute("messagelist",messages);rn request.setAttribute("pages", pages);rn rn rn ServletContext context=getServletContext();rn RequestDispatcher dispat=context.getRequestDispatcher("/msgList.jsp");rn dispat.forward(request, response);rn rnrn /**rn * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)rn */rn protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException rn // TODO Auto-generated method stubrn rn rn rnrnrnrnrn
到底哪里错了,为什么不能动?
import java.awt.Color;rnimport java.awt.Graphics;rnimport java.awt.event.KeyAdapter;rnimport java.awt.event.KeyEvent;rnrnimport javax.swing.JFrame;rnimport javax.swing.JPanel;rnrnpublic class move rnrn JFrame JF = new JFrame();rn huabi hb = new huabi(0,0);rn rn rn rn rnrnpublic void huamian()rnJF.setLocation(100, 100);rnJF.setSize(500, 500);rnJF.setVisible(true);rnJF.add(hb);rnJF.addKeyListener(new shijian()); rn rnrnrn@SuppressWarnings("serial")rnclass huabi extends JPanelrnint x;rnint y;rnrn rn public huabi(int x, int y) rn super();rn this.x = x;rn this.y = y;rnrnrnrn public int getX() rn return x;rnrnrnrnpublic void setX(int x) rn this.x = x;rnrnrnrnpublic int getY() rn return y;rnrnrnrnpublic void setY(int y) rn this.y = y;rnrnrnrn public void paint(Graphics g)rn super.paint(g);rn g.setColor(Color.black); rn g.drawOval(10,10,50,50);rn rn rn rn rn rnrnclass shijian extends KeyAdapter rn rn rn public void keyPressed(KeyEvent e)rn super.keyPressed(e);rn if(e.getKeyCode()==KeyEvent.VK_UP)rn rn System.out.println("上");rn hb.x--;rn rn else if(e.getKeyCode()==KeyEvent.VK_DOWN)rn rn hb.y+=5;rn rn hb.repaint(); rn rn rnrnrnpublic static void main(String args[])rn move m = new move();rn m.huamian();rn rnrnrn
这么写到底哪里错了?(关于解压缩)
run("c:\rar.exe "+" rar x "+"C:\Documents and Settings\tan\桌面\1\2.rar " +"c:\")rnrn<em>到底</em><em>哪里</em><em>错了</em>?C盘下并没有生成解压缩后的文件?(直接在DOS下输入该命令是对的!)
菜鸟求救,到底哪里错了呢????
include rnrndouble pi = 3.14;rnrnclass Troundrnrn private :rn int r1 ; //外跑道的半径rn int r2 ; //内操场的半径rnrn public:rn void round()rn rn r1 = 0; r2 = 0;rn rnrn double zhouchang(int);rnrn double mianji(int);rn;rnrn double Tround::zhouchang(int S)rn rn double S2;rn S = r1;rn S2 = 2 * pi * S * 40;rn return S2;rn rnrn double Tround::mianji(int M)rn rn double M2;rn M = r2;rn M2 = (pi * r1* r1 - pi * M * M) * 20;rn return M2;rn rnrnvoid main()rnrn Tround round1;rn int i; //外跑道的半径rn int j; //内操场的半径rnrn cout<<>i;rnrn cout<<>j;rnrn cout<<
这段sql语句到底哪里错了
//登录跳转rn public void login(HttpServletRequest request, HttpServletResponse response)rn throws ServletException,IOExceptionrn rn User user = new User();rn HttpSession session = request.getSession();rn System.out.println(request.getParameter("username"));rn user.setUsername(request.getParameter("username"));rn user.setPassword(request.getParameter("password"));rn session.setAttribute("id", UserService.select(user).getId());rn session.setAttribute("username", UserService.select(user).getUsername());rn session.setAttribute("password", UserService.select(user).getPassword());rn session.setAttribute("user", UserService.select(user));rn if (UserService.dologin(user)) rn request.getRequestDispatcher("admin/bg_login.jsp").forward(request, response);rn rn else rn request.getRequestDispatcher("admin/Login/login.jsp").forward(request, response);rn rn rnrn在session那个出现空指针错误 数据传不进去 查的部分代码在下面, 我就想知道为什么数据传不进去 应该怎样改正 谢谢各位大牛rnrnrn//查rn public static User select(User user)rn Connection conn = null;rn PreparedStatement ps = null;rn ResultSet rs = null;rn User u = null;rn try rn Class.forName(DRIVER);rn conn = DriverManager.getConnection(URL, USERNAME, PASSWORD);rn String sql = "select * from user where username = ?";rn ps = conn.prepareStatement(sql);rn ps.setString(1, user.getUsername());rn rs = ps.executeQuery();rn if (rs.next()) rn u = new User();rn u.setId(rs.getInt("id"));rn u.setPassword(rs.getString("password"));rn u.setUsername(rs.getString("username"));rn return u;rn rn rn catch (ClassNotFoundException ce) rn ce.printStackTrace();rn // TODO: handle exceptionrn catch (SQLException se) rn se.printStackTrace();rn // TODO: handle exceptionrn finally rn try rn if (conn!=null)conn.close();rn if (ps!=null)ps.close();rn catch (SQLException e) rn e.printStackTrace();rn // TODO: handle exceptionrn rn rn return u;rn
新人求解,这到底哪里错了
public class Circle1rn public static void main(String[] args)rn Circle1 circle1 = new Circle1();rn System.out.println("The area of the circle of radius" + circle1.radius + "is" + circle1.getArea());rn rn Circle1 circle2 = new Circle1(25);rn System.out.println("The area of the cirlce of radius " + circle2.radius + "is" + circle2.getArea());rn rn Circle1 circle3 = new Circle1(125);rn System.out.println("The area of the cirlce of radius " + circle3.radius + "is" + circle3.getArea());rn rn circle2.radius = 100;rn System.out.println("The area of the cirlce of radius " + circle2.radius + "is" + circle2.getArea());rn rnrnrn double radius;rn rn Circle1()rn radius = 1.0;rn rnrn Circle1(double newRadius)rn radius = newRadius;rn rnrn double getArea()rn return radius *radius * Math.PI;rn rn
(关于i/o)到底哪里错了阿??
//*****从console输入数据至指定的文件Inputt.out******rn BufferedReader input =rn new BufferedReader(rn new InputStreamReader(System.in));rn PrintWriter out2 =rn new PrintWriter(rn new BufferedWriter(rn new FileWriter("Inputt.out")));rn String ss=input.readLine();rn while((ss = input.readLine()) != null )//是不是这里有问题?rn out2.println(ss);rn out2.close();rn怎么Inputt.out是空的阿??
请有经验的帮忙看看到底哪里错了
我写了以下程序,下面是一部分代码rnclass point rnrnpublic:rn rn int x;rn int y;rnpoint operator=(point t)rn rn x=t.x;rn y=t.y;rn return * this;rn rn rn;rnrnpoint style[7][4] = rn 0,-1,0,0,0,1,0,2,rn -1,0,0,0,-1,1,0,1,rn 1,0,0,0,0,1,0,2,rn -1,0,0,0,0,1,0,2,rn -1,0,0,0,0,-1,1,-1,rn -1,0,0,0,0,1,1,1,rn -1,0,0,0,0,1,1,0,rn;rnrnpoint stSquare[4];rnrnCBlock::CBlock(int style,int IntX,int IntY)rnrn //成员变量初始化rn blockstyle=style;rn stCenter.x=IntX;rn stCenter.y=IntY;rn //记录四个方块的初始位置rn for(int i=0;i<<<
请大虾指教下,到底哪里错了 ~
#includernusing namespace std; rnclass containerrnrnpublic:rncontainer(int r)r=r;rnvirtual int face()=0;rnprotected:rn int r;rn;rnclass cube:public containerrn rnpublic:rn cube(int r):container(r)rn int face()rn rn return r*r;rn rn rn;rnvoid main()rnrncontainer *p;rncube a1(5);rnp=&a1;rncout<
请问这个ajax到底哪里错了,疯了。
rnrnrn rn rnrnrn rn Name: rn Comment: rn rnrnrnrnrnrn1.php的内容如下:rnrn为什么这个ajax不通?我点提交,唯一的反应就是输入框里的内容清空了,并没有alert弹出,这<em>到底</em><em>哪里</em><em>错了</em>?
makefile到底哪里错了??求大神
rnmakefile文件rn[code=text] target: main.o libBasicUsageEnvironment.arn g++ -o target main.o libBasicUsageEnvironment.arnrn rnrnmain.o : test.cpp rn g++ -I/home/qifei/桌面/live555_test/live -I/home/qifei/桌面/live555_test/live/groupsock/include \rn -I/home/qifei/桌面/live555_test/live/UsageEnvironment/include -I/home/qifei/桌面/live555_test/live/BasicUsageEnvironment/include \rn -I/home/qifei/桌面/live555_test/live/liveMedia/include test.cpp[/code]rnrn出现错误:rnrntest.cpp:(.text+0x12f): undefined reference to `BasicTaskScheduler::createNew(unsigned int)'rn底下还有很多这样的错误。求大神们不吝赐教。
急求答案..到底哪里错了
import java.awt.*;rnimport javax.swing.*;rnrnimport java.awt.Event;rnimport java.awt.event.ActionEvent;rnimport java.awt.event.ActionListener;rnpublic class CJ3 extends JFrame implements ActionListenerrnrn CJ3()rn rn rn rn public void actionPerformerd(ActionEvent e)rn rn rn rn public static void main (String args[])rn rn new CJ3();rn rn
我的sql server 到底哪里错了
我们在一台2000 上的机器装了sql server 2000 ,另一台装的是xp pro 只能装client 端,现在问题是client 端启动"sql 查询分析器“只能通过”windows 身份验证“来登录,而不能通过”sql server 身份验证“来登录,rn提示错误是:rn未建立信任连接,rnrn但是我用”windows 身份验证“就好好的,保证在server已开了用户。
两天没进展了。到底哪里错了啊!
[img=https://img-bbs.csdn.net/upload/201609/04/1472991466_71223.png][/img]rn程序运行时提示连接数据库失败。rn异常提示为rnTS.exe 中的 0x767d5b68 处最可能的异常: Microsoft C++ 异常: 内存位置 0x00afe6ac 处的 _com_error。rnTS.exe 中的 0x767d5b68 处有未经处理的异常: Microsoft C++ 异常: 内存位置 0x00afe6ac 处的 _com_error。rnrnrn然后我追踪到代码m_pRecordSet->Open(m_sqlCmd, m_pConnection.GetInterfacePtr(), adOpenDynamic, adLockOptimistic, adCmdText);这里。rnrnrnrn源代码rn#include "StdAfx.h"rn#include "DBManager.h"rnrnDBManager::DBManager(void)rnrn m_pConnection = NULL;rn m_pRecordSet = NULL;rn DBConnect();rnrnrnrnDBManager::~DBManager(void)rnrn rnrnrnvoid DBManager::DBConnect()rnrn //初始化COM组件rn ::CoInitialize(NULL);rn HRESULT hr = NULL;rnrn tryrn rn hr = m_pConnection.CreateInstance("ADODB.Connection"); //创建 Connection 对象rnrn if (SUCCEEDED(hr))rn rn /*m_pConnection->ConnectionString = "driver=SQL Server;server=DESKTOP-TE2N11V\\LOGO;uid=sa;pwd=123;";rn m_pConnection->Open("","","",adConnectUnspecified);rn m_pConnection->DefaultDatabase = "chatDatabase";*/rn hr = m_pConnection.CreateInstance("ADODB.Connection");rn m_bstrConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\\userDB.accdb";rn hr = m_pConnection->Open(m_bstrConn, "", "", adModeUnknown);rn rn elsern rn AfxMessageBox(_T("创建 Connection 对象失败"));rn rnrn rn catch (_com_error e)rn rn CString strErr;rn strErr.Format("连接数据库失败\n%s",e.ErrorMessage());rn AfxMessageBox(strErr);rn rnrnrnvoid DBManager::GetRecordSet(CString bstrSqlCmd)rnrn m_sqlCmd = _bstr_t(bstrSqlCmd);rnrn m_pRecordSet.CreateInstance(__uuidof(Recordset));rnrn m_pRecordSet->Open(m_sqlCmd, m_pConnection.GetInterfacePtr(), adOpenDynamic, adLockOptimistic, adCmdText);rnrnrnvoid DBManager::ExcuteCmd(CString bstrSqlCmd)rnrn m_sqlCmd = _bstr_t(bstrSqlCmd);rn _variant_t RecordsAffected;rn tryrn m_pRecordSet = m_pConnection->Execute(m_sqlCmd, &RecordsAffected, adCmdText);rn rn catch(_com_error e)rn rn AfxMessageBox(e.ErrorMessage());rn rnrnrnvoid DBManager::DBClose()rnrn if (m_pRecordSet != NULL)rn rn m_pRecordSet->Close();rn rn m_pConnection->Close();rn ::CoUninitialize();rnrnrnBOOL DBManager::LoginAuthentication(CString userName, CString password)rnrn return FALSE;rnrnrnBOOL DBManager::Registe(CString userName, CString password, CString sex)rnrn return FALSE;rnrnrnrnrnCString DBManager::getPasswordForUserName(CString userName)rnrn return NULL;rnrnrnrn求各位大神看看<em>哪里</em><em>错了</em>。求大家了。感谢!
我的insert into语句到底哪里错了
conn.execute "insert into UserInfo (LoginID, Name, Password, EmailAddress,Department,Position,Birthday,HomePhone,QQ,HomeAddress,InternalPhone,MobilePhone) values ('"& TheLoginID &"', '" & TheName &"','"& ThePassword &"','"& TheEmailAddress &"','"& TheDepartment &"','"& ThePosition &"','"& TheBirthday &"','"& TheHomePhone &"','" & TheQQ &"','" & TheHomeAddress &"','" & TheInternalPhone &"', '"& TheMobilePhone & "')"rnrn在线等
初学Java,帮忙看下到底哪里错了
[code=java]rnrnrnrnrnrnrnrnrnrn
到底哪里错了?">这段"select top ……"语法到底哪里错了
下面这段SQL中top 的 n 值可以不具体指定吗,为什么我这样写系统总说语法错误呢?rnrn……rndim n as stringrnn=2rndim sql as string rnsql="select top 15 * from abc where id not in (select top (15*(n-1)) id from abc order by id desc) order by id desc"rn……
这段代码到底哪里错了
我写了一个JS文件,而且在HTML文件里也正确应用了这个JS文件,可是IE老是提示有错误,详细错误是指我的JS文件里的第10行第一个字符有错误。可是我发现我的JS文件里第10行第一个字符并没有错啊,因为我每行都是document.write语句,而且我可以保证没有拼写错误或漏写分号,这是怎么回事啊?
小小一段代码,到底哪里错了
#includern#includern#includern#include rnrn#define D 5rn#define d 0.5 rn#define L 10rnrnvoid main()rnrn int i;rn FILE *out;rn double H=0.0;rn double p[8],angle[8];rnrnrn if((out=fopen("result.txt","w"))==NULL)rn rn printf(" can not open the p and solid angle file\n");rn rnrnrn for(i=3;i,angle[i-3]);rn rnrn fclose(out);rnrnrn我就把数组名从s【8】改成了p【8】,结果就运行出<em>错了</em>。rn请哪位高手指点一下。rnrn谢谢!rnrn
帮忙看看模板类到底哪里错了
#include rn#include rnrnusing namespace std;rntemplaternvoid rtrim(basic_string& s,T c)rnrn if(s.empty())rn return;rn rn typename basic_string::iterator p;rn for(p=s.end();p!=s.begin()&&*--p==c;);rn if(*p!=c)rn p++;rn s.erase(p,s.end());rnrnint main()rnrn string s="Great!!!!!";rn wstring ws=L"super!!!!";rn rn rtrim(s,'!');rn rtrim(ws,L"!");rn rn cout<
图片上传服务器到底哪里错了
public void SavePic()rn rn Boolean fileOk = false;rn string path = Server.MapPath("picture/pic_letter/");rn if (FileUpload1.HasFile)rn rn string fileE = Path.GetExtension(FileUpload1.FileName).ToLower();rn string[] a = ".gif", ".bmp", ".jpg", ".pdf", ".imf" ;rn for (int i = 0; i < a.Length; i++)rn rn if (fileE == a[i])rn rn fileOk = true;rn break;rn rn rn if (fileOk)rn rn rn tryrn rn FileUpload1.PostedFile.SaveAs(path + FileUpload1.FileName);rn Response.Write(" ");rn rn catchrn rn Response.Write(" ");rn rn rn elsern rn Response.Write(" ");rn return;rn rnrn rn elsern rn Response.Write(" ");rn return;rn rnrn之前用input《type=file》可以上传rn现在改成FileUpload方法 为什么就是没见到上传的文件,也没报错。rnrn还有rnFileUpload1.SaveAs(path + FileUpload1.FileName);rnFileUpload1.PostedFile.SaveAs(path + FileUpload1.FileName);rn这两句有什么区别rnrn
帮忙看看这个到底哪里错了啊?
这个是我写的第一个,,rnrnCREATE TRIGGER [user2user] ON [dbo].[oblog_user] rnAFTER INSERTrnASrnBEGINrninsert into [pass_user] ([username],[password],[truepassword],[sex],[adddate],[question],[answer],[useremail],[user_level],[user_isbest],[user_classid],[regip],[newbie],[isdigg]) values (inserted.username,inserted.password,inserted.truepassword,inserted.usersex,inserted.joindate,inserted.userquesion,inserted,inserted.useranswer,inserted.useremail,7,0,1,inserted.userlastip,1,1)rnENDrnGOrnrn错误128 The name 'username' is not permitted in this context. Only constants, expressions, or variables allowed here. Column names are not permitted. rnrn
哪位大侠能告诉我到底哪里错了
#includern#includern#includernvoid main()rnrn FILE*fp;rn int i=0;rn int j=0;rn int k=0;rn int n;rn char *buff[100];rn printf("Input delete rows:");rn scanf("%d",&n);rn fp=fopen("d:\\test.txt","w+");rn if(fp==NULL)rn rn printf("Open fail!\n");rn exit(1);rn rn elsern rn for(i=0;!feof(fp);i++)rn rn fgets(buff[i],1024,fp); rn rn for(i=0;k=n-1)rn strcpy(buff[k],buff[k+1]);rn rn for(j=0;j
到底哪里错了?--修改记录
现在做一个修改记录的文件,注:有“ ' ” 的不用理它rn-=-=-genggai.asp(点击更改命令后出现的文件)-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=rnrnrnrnrn rn rn rn 新建网页 1rnrnrn rn rn ">rn ">rn rnrnrnrnrnrnrnrn===artxgti.asp=========================================rnrnrnrnrn
以下交换字符串的程序到底哪里错了
帮我看看以下交换字符串的程序<em>到底</em><em>哪里</em><em>错了</em>,编译通过,运行时出现错误.rnrn#includern#includernrnint stringswp(char * i,char * j)rn char temp[100];rn strcpy(temp,i);rn strcpy(i,j);//好像这句出的错rn strcpy(j,temp);rn return 0;rnrnrnint main()rn char *p="how are you";rn char *q="how you";rn stringswp(p,q);rn while(*p!='\0')rn cout<<
到底哪里错了,抓狂哇~~~~~~
下面这段不知道<em>哪里</em><em>错了</em>,在家里可以用,拿到公司怎么测都不行:( rnif ($submit!='')这里似乎无效。rnrnrun())rn rn echo "上传失败,原因:".$upload->errmsg();rn rnrnecho "$submit";rn?>rnrnrn 文件上传rn rn rnrnrnrn rn rn rn rn rn rn rn rnrnrn
天那!!!我到底哪里错了???
rnrn我作如下操作:rn1.创建WIN32 CONSOLE APPLICATIONrn2.选"A Hello,World!" Applicationrn3.添加foot.h和foot.cpp文件rn4。foot.h内容如下rnrn#includernclass FOOTrnrnpublic:rn OnPrint();rn;rnrn5。foot.cpp内容如下rnrn#includernrnFOOT::OnPrint()rnrn printf("this is a foot\n");rnrnrn6.编译运行,出错如下:rnfatal error C1010: unexpected end of file while looking for precompiled header directive
调试了两节课到底哪里错了啊!!!
rnrn showXMLrn rnrnrn rnrnrnrn————————————————————————————————————rnrnrnrnBobrnMariyrnDo you like me ?rnI love you so much!rnrn
log4net生成日志失败?到底哪里错了
引用的是log4net .net3.5版本的,配置文件放在log4net.config里面rn这是我写的loghelper类rn[img=https://img-bbs.csdn.net/upload/201609/20/1474304948_562011.png][/img]rn打断点发现loginfo.IsInfoEnabled==falsern输出以下内容rnSystem.Configuration.ConfigurationErrorsException: 配置系统未能初始化 - System.Configuration.ConfigurationErrorsException: 无法识别的配置节 section。 (C:\A\VS project\AddSample\AddSample\bin\x86\Debug\AddSample.vshost.exe.config line 3)rn 在 System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)rn 在 System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)rn 在 System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()rn 在 System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)rn --- 内部异常堆栈跟踪的结尾 ---rn 在 System.Configuration.ConfigurationManager.PrepareConfigSystem()rn 在 System.Configuration.ConfigurationManager.GetSection(String sectionName)rn 在 System.Configuration.ConfigurationManager.get_AppSettings()rn 在 log4net.Util.SystemInfo.GetAppSetting(String key)rnlog4net:ERROR Exception while reading ConfigurationSettings. Check your .config file is well formed XML.rnrnrn然后AssemblyInfo.cs里面加了rn[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config", ConfigFileExtension = "config", Watch = true)]rnrn结果就是日志没打印出来,<em>到底</em>是路径<em>错了</em>?还是什么地方没写对?求大神解惑
sql语句到底哪里错了
CString sqlStr=CString(_T("select* where userName='") ) +m_strUserName+CString(_T("' and pass='"))+m_strPassword+CString(_T("' from userInfo"));rnrnrn rnrnrn调试后,发现 sqlStr的值为:rnsqlStr "select* where userName='admin' and pass='admin' from userInfo" ATL::CStringT > >rnrnrnrnuserInfo表为:rnrnuserName passrnrnIDispatch error#3092 估计是sql语法的问题,可是我的语法没有错啊rnrnQuery中的关键代码:rnrnm_pRes->Open((_bstr_t)sql,m_pConn.GetInterfacePtr(), adOpenDynamic, adLockOptimistic, adCmdText); //执行sqlrnrn
哪里错了...
[code=SQ]rnyear month amountrn2011 1 1.1rn2011 2 1.2rn2011 3 1.3rn2011 4 1.4rn2012 1 2.1rn2012 2 2.2rn2012 3 2.3rn2012 4 2.4rnrnrnyear m1 m2 m3 m4rn2011 1.1 1.2 1.3 1.4rn2012 2.1 2.2 2.3 2.4rnrnrnrnselect year,rn(select amount from tab ta where month=1 and ta.year=tab.year) m1,rn(select amount from tab ta where month=2 and ta.year=tab.year) m2,rn(select amount from tab ta where month=3 and ta.year=tab.year) m3,rn(select amount from tab ta where month=4 and ta.year=tab.year) m4rnfrom tabrngroup by year[/code]rn
哪里错了??
[code=C/C++]#include rn#include rn#include rn#include rnusing namespace std; rnint main() rn rn string str;rn mapword_count;rn for(int i=0;i>str;rn ++word_count[str];rn rn for(map::const_iterator map_it=word_count.begin();map_it!=word_count.end();map_it++)rn rn cout<<<
哪里错了
部分源吗:rnrnrn报错内容:rnGenerated servlet error:rn [javac] Since fork is true, ignoring compiler setting.rn [javac] Compiling 1 source filern [javac] Since fork is true, ignoring compiler setting.rn [javac] D:\Tomcat 4\work\Standalone\localhost\test\online\stuselect_jsp.java:16: cannot resolve symbolrn [javac] symbol : variable request rn [javac] location: class org.apache.jsp.stuselect_jsprn [javac] int id2=Integer.parseInt(request.getQueryString("id"));rn [javac] ^rn [javac] 1 errorrn
哪里错了
main()rnrn int i,a[5]=1,2,3,4,5,*p;rn *p=a;rn for(i=1;i,*p++);rn
哪里错了?
FILE *fp;rn rn if ((fp = fopen ("1.txt","rb")) == NULL )rn rn printf ("error!"); rn rn else rn rn fseek(fp,0l,SEEK_END);rn length = ftell(fp);rn txt_buff = (unsigned char *) unsigned char[length];rn fread( txt_buff, 1, length, fp ); rn rn rn strcpy (s,txt_buff); rn delete txt_buff;
哪里错了????
请大家看看,哪<em>错了</em>??rnrnrnrnrn…………rnrnend if rn%>
哪里错了.
我是JAVA初学者,编了一个程序不只错在哪.rnpublic class test2rn static int fib(int n) rn rn if (n==0) return 0; rn if (n==1) return 1; rn if (n>1) return fib(n-1)+fib(n-2); rn rnpublic static void main(String args[])rn System.out.println(fib(5));rnrn
哪里错了。。
输入一个5*5的二维数组,将各行最大值的坐标放置在一个新的一维数组中,最后按照下面的格式输出:rn第0行:12 34 23 45 7 最大值为45,坐标是(0,4)rn#includernvoid main()rnrn int a[5][5],b[10],i,j,n,max;rn for(i=0;i<=4;j++)rn rn if(max
哪里错了
大家好:rn 请问为什么以下代码运行时出现如下的语法错误提示的:rnrn[color=#FF0000]Microsoft VBScript 编译器错误 错误 '800a03ea' rnrn语法错误 rnrn/mzyzjb/recruit/book/MsgManager.asp,行 21 rnrnSub ShowMsg(rs,page)[/color]rnrnrn 0 thenrnpage=rs.pagecountrnelseif page = "" or page < 1 thenrnpage = 1rnend ifrnrs.absolutepage=pagernCall ShowMsg(rs,page)rn%>rnrnrn---------rn急切待复,衷心感谢!
哪里错了
rnimport javax.swing.*;rnimport java.util.StringTokenizer;rnpublic class WordReplacement rn String[]word;rn String orignalWords;rn String soWord;rn String deWord;rn String words;rn rn public WordReplacement() rn word=new String[100];rn orignalWords=JOptionPane.showInputDialog(null,"请输入要修改的文字");rn soWord=JOptionPane.showInputDialog(null,"请输入需要替换的单词");rn deWord=JOptionPane.showInputDialog(null,"请输入替换单词");rn word=splitWords(orignalWords);rn words=replaceWord(word,soWord,deWord);rn rn JOptionPane.showMessageDialog(null,"源文字: "+orignalWords+"\n换成: \n"+words,"替换结果是:",JOptionPane.INFORMATION_MESSAGE);rn rn public String[]splitWords(String words)rn String[] wordString=words.split(" "); rn return wordString;rn rn public String replaceWord(String[] word,String source,String dest)rn String result="";rn for(int i=0;i
哪里错了
我知道我写的程序不太好,刚学C++,现在请大家帮忙看看<em>哪里</em><em>错了</em>!rn#include rnrnusing std :: cout;rnusing std :: endl;rnrnclass complexrnrn public :rn complex ( double = 0.0 , double = 0.0 );rnrn private :rn double realpart,rn imaginarypart;rn;rnrncomplex :: complex ( double x, double y )rn: realpart ( x ) , imaginarypart ( y )rnrnint main()rn rn complex a(12,13);rn complex b(11,-5);rn complex c;rn c.realpart = a.realpart + b.realpart ;rn c.imaginarypart = a.imaginarypart + b.imaginarypart ;rn cout << c.realpart << endlrn << c.imaginarypart << endl ;rn return 0;rnrnrnrn编译器提示:rn1.Cpp13.cpp(19) : error C2612: trailing 'auto' illegal in base/member initializer listrn2.Cpp13.cpp(20) : error C2601: 'main' : local function definitions are illegalrn3.Cpp13.cpp(96) : fatal error C1004: unexpected end of file foundrnError executing cl.exe.rn
哪里错了???
rn
计算机操作系统进程调度算法模拟程序设计下载
用C语言(或其它语言,如Java)实现对N个进程采用某种进程调度算法(如动态优先权调度)的调度。 相关下载链接:[url=//download.csdn.net/download/haobingcream/2536422?utm_source=bbsseo]//download.csdn.net/download/haobingcream/2536422?utm_source=bbsseo[/url]
xslt经典教程—网页设计师必备下载
xslt经典教程—网页设计师必备 真正的全面技术文档 相关下载链接:[url=//download.csdn.net/download/youxia1010/2570364?utm_source=bbsseo]//download.csdn.net/download/youxia1010/2570364?utm_source=bbsseo[/url]
loadrunner资料下载
实践过程中,总结的性能测试与loadrunner技术,希望对大家学习性能测试提供帮助! 相关下载链接:[url=//download.csdn.net/download/renqinghu001/3629406?utm_source=bbsseo]//download.csdn.net/download/renqinghu001/3629406?utm_source=bbsseo[/url]
相关热词 c# 线程结束时执行 c# kb mb 图片 c# 替换第几位字符 c#项目决定成败 c# 与matlab c# xml缩进 c#传感器基础 c#操作wps c# md5使用方法 c# 引用父窗口的组件
我们是很有底线的