谁帮我看下 我的dede模板标签调用 为什么出不来? [问题点数:20分]

Bbs1
本版专家分:0
结帖率 0%
dedecms织梦模板中currentstyle标签失效不能使用
关于currentstyle的作用是单独给当前栏目添加样式  ,要使该样式生效,需要修改文件,路径:include/taglib/channelartlist.lib.php,在 $pv->Fields['typeurl'] = GetOneTypeUrlA($typeids[$i]);下面添加如下代码: if($typeids[$i]['id'] == $refObj->TypeLink->T
帮我看下以下代码,为什么表格出不来呢?
";rnecho" 学生成绩表";rn$i=0;rnwhile($i
为什么这样谁帮我看下
异常详细信息: System.Web.HttpException: 类型“Button”的控件“Button1”必须放在具有 runat=server 的窗体标记内。 rn出现这个异常是<em>为什么</em>? 我是把这个控件放在一个表格里,这个表格是在Dreamweaver里做的, 放进去就出先上面的错误, 但是我把那个控件放到表格外面就不会出现 上面的错误,可以正常运行rn这到底什么原因。请高手指教 先谢谢了 rn
dede模板标签参考手册
是DedeCMS V5.3版本的<em>标签</em>手册,手册方便用户制作<em>模板</em>、学习系统所编写,之前在织梦的帮助中心有相关的<em>标签</em>内容,这里我将其整理并且重新进行了一些编辑,为了方便大家使用,讲内容大包为CHM格式,手册含有基本的<em>标签</em>说明、相关二次开发函数,并且列举了<em>标签</em>常用使用的几个说明。
dede模板调用二级栏目标签
<em>dede</em>cms<em>模板</em>里<em>调用</em>二级栏目<em>标签</em> 织梦<em>模板</em>里<em>调用</em>二级栏目<em>标签</em>
结果出不来帮我看下程序
#include rn#include rnGLUnurbsObj *theNurb1;rnrnGLfloat ctrlpoints[7][5][3] = -3,0.5,0,-1,1.5,0.5,-2,2,1,1,-1,0.5,-5,0,0,rn-3,0.5,0,-1,1.5,0,-2,2,0,1,-1,0,-5,0,0,rn-3,0.5,-1,-1,1.5,-1,-2,2,-1,1,-1,-1,-5,0,-1,rn-3,0.5,-2,-1,1.5,-2,-2,2,-2,1,-1,-2,-5,0,-2,rn-3,0.5,-3,-1,1.5,-3,-2,2,-3,1,-1,-3,-5,0,-3,rn-3,0.5,-4,-1,1.5,-4,-2,2,-4,1,-1,-4,-5,0,-4,rn-3,0.5,-4,-1,1.5,-4.5,-2,2,-5,1,-1,-4.5,-5,0,-4;rnrnGLfloat mat_diffuse[] = 1.0,0.5,0.1,1.0;rnGLfloat mat_specular[] = 1.0,1.0,1.0,1.0;rnGLfloat mat_shininess[] = 100.0;rnGLfloat light_position[] = 0.0,-10.0,0.0,1.0;rnrnvoid myInit(void)rnrn glClearColor(1.0,1.0,1.0,0.0); //设置背景色rn/*为光照模型指定材质参数*/rn glMaterialfv(GL_FRONT,GL_DIFFUSE,mat_diffuse);rn glMaterialfv(GL_FRONT,GL_SPECULAR,mat_specular);rn glMaterialfv(GL_FRONT,GL_SHININESS,mat_shininess);rnrn glLightfv(GL_FRONT,GL_POSITION,light_position);//设置光源参数rn glLightModeli(GL_LIGHT_MODEL_TWO_SIDE,GL_TRUE);//设置光照模型参数rnrn /*激活光照*/rn glEnable(GL_LIGHTING);rn glEnable(GL_LIGHT0);rnrn glDepthFunc(GL_LEQUAL);rn glEnable(GL_DEPTH_TEST);rn glEnable(GL_LEQUAL);rn glEnable(GL_AUTO_NORMAL);rn glEnable(GL_NORMALIZE);rnrn/*设置特殊效果*/rn glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);rn glHint(GL_LINE_SMOOTH_HINT,GL_DONT_CARE);rn glEnable(GL_BLEND);rnrn glFrontFace(GL_CW);rn glShadeModel(GL_SMOOTH);rn glEnable(GL_LINE_SMOOTH);rn theNurb1 = gluNewNurbsRenderer();//创建NURBS对象theNurb1rn gluNurbsProperty(theNurb1,GLU_SAMPLING_TOLERANCE,25.0);rn gluNurbsProperty(theNurb1,GLU_DISPLAY_MODE,GLU_OUTLINE_POLYGON);rnrnrnint spin = 0;rnrn/*接收键盘指令*/rnstatic void myKey(unsigned char key,int x,int y)rnrn switch(key)rn rn case'd':rn spin = spin + 1;rn glRotatef(spin,1.0,1.0,0.0);rn glutPostRedisplay();rn break;rn case 27:rn exit(0);rn default:rn break;rn rnrn//绘制曲面rnvoid myDisplay(void)rnrn GLfloat lknots[12] = 0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,1.0,1.0,1.0; rn GLfloat knots[10] = 0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,1.0,1.0; rn glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);rnrn //第一个曲面rn glPushMatrix();rn glRotatef(50.0,1.0,1.0,0.0);rn glTranslatef(1.0,0.0,0.0);rn gluBeginSurface(theNurb1);rn //定义曲面形状rn gluNurbsSurface(theNurb1,12,lknots,10,knots,5*3,3,&ctrlpoints[0][0][0],5,5,GL_MAP2_VERTEX_3);rnrn gluEndSurface(theNurb1);rn glPopMatrix();rn glutSwapBuffers();rnrnrnvoid myReshape(GLsizei w,GLsizei h)rnrn glViewport(0,0,w,h);rn glMatrixMode(GL_PROJECTION);rn glLoadIdentity();rn gluPerspective(50.0,(GLfloat)w/(GLfloat)h,1.0,15.0);rn glMatrixMode(GL_MODELVIEW);rn glLoadIdentity();rn glTranslatef(0.0,0.0,-9.0);rnrnrnint main(int argc,char ** argv)rnrn /*初始化*/rn glutInit(&argc,argv);rn glutInitDisplayMode(GLUT_DOUBLE|GLUT_RGB|GLUT_DEPTH);rn glutInitWindowSize(600,400);rn glutInitWindowPosition(200,200);rn /*创建窗口*/rn glutCreateWindow("NURBS surface");rn /*绘制与显示*/rn myInit();rn glutKeyboardFunc(myKey);rn glutReshapeFunc(myReshape);rn glutDisplayFunc(myDisplay);rnrn /*进入GLUT事件处理循环*/rn glutMainLoop();rn return(0);rn
dede标签调用大全
<em>dede</em><em>标签</em>的使用,DEDE seo小技巧 加个百度搜索本篇文章
dedecms主页模板中,调用标签一般是采用dede:标签}{/dede标签吗?
在<em>dede</em>cms主页<em>模板</em>index.htm中,有很多的<em>dede</em>:<em>标签</em>/<em>dede</em><em>标签</em>n 这就是<em>dede</em>cms中<em>标签</em>的<em>调用</em>模式吗?
dede标签大全 模板开发标签大全
<em>dede</em><em>标签</em>大全 <em>模板</em>开发<em>标签</em>大全<em>dede</em><em>标签</em>大全 <em>模板</em>开发<em>标签</em>大全<em>dede</em><em>标签</em>大全 <em>模板</em>开发<em>标签</em>大全<em>dede</em><em>标签</em>大全 <em>模板</em>开发<em>标签</em>大全
帮我看下代码
[code=csharp]rn FileStream stream = new FileStream(filePath, FileMode.Open, FileAccess.Read);rn string fileName = filePath.Substring(filePath.LastIndexOf(@"\") + 1);rn //testrn Response.Write(fileName);rn rn rn // 输出头中不能间隔其他东西Response.Write("");rn MemoryStream ms = new MemoryStream();rn while (true)rn rnrn bytes = stream.Read(buffer, 0, buffer.Length);rn if (bytes == 1)rn rn //Response.BinaryWrite(buffer);rn ms.Write(buffer, 0, buffer.Length);rn rn else if (bytes == 0 || bytes == -1)rn rn break;rn rn bytes += bytes;rn rn stream.Close();rn byte[] bufferFull = new byte[ms.Length];rn Response.Write(ms.Length+"haha");rn Response.Clear();rn Response.ContentType = "application/octet-stream";rn Response.AddHeader("Content-Disposition", "inline;filename=" + HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));rn ms.Read(bufferFull, 0, bufferFull.Length);rn Response.BinaryWrite(bufferFull);rn Response.End();rn ms.Close();rn[/code]rn比如我传的是本地txt文件路径,如果我把文件下载夏利,会发现显示内容为空白,但是大小是正确的。跪求原因,解决方法rn
帮我看下 ~~
我有个网页,想要把数据写到Access的Task数据库里的表里,代码都没出现错误,但是数据写不进去,请高手<em>帮我</em>看看是什么问题rnTask数据库有两张表 分别是types 和 btaskrntypes:id typenamernbtask: ID title price typeid content into timern页面设计 task.aspxrnrnrnrnrn rnrnrn Untitled Pagern rn rnrnrn 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 rnrnrnrn
帮我看下
void append()rnint i;rn if((fp=fopen("worker.xls","a"))==NULL)rn rn printf("\nconnot open the file");rn exit();rn rn printf("\nenter the singer data\n");rn scanf("%s%s%s%s%s%s",one.name,one.num,one.sex,one.age,one.tel,one.addr);rn fprintf(fp,"%-10s%-8s%-5s%-5s%-10s%-15s\n",one.name,one.num,one.sex,one.age,one.tel,one.addr);rn printf("score");rn for(i=0;i);rn fclose(fp);rnrn<em>为什么</em>SCORE的数据存不进文件?rn
帮我看下程序!!
rn别人<em>帮我</em>做的检查要上传的图片大小程序,谁<em>帮我</em>找找错在那里,已经证实,在网上不好用,或者提出自己的看法rn程序:rnrn 图片上传尺寸验证rn rn rn rnrnrn
帮我看下为什么会不对?
数据库里的时间默认值为Now() 。我想按天数来查询数据。这样写<em>为什么</em>会不对应查询出来的日期呢?rnrn rnrn 显示1天数据rn 显示7天数据rn 显示30数据rn 显示90数据rn rn rnrn rnrnrn。。。。。。。。。。。。。。。。。。。。。。。。。。。rn rnrn
帮我看下这个为什么错了
//。。。。。。。。。。。。。省略rn //连接数据库rn string xname = namebox.Text;rn string xpassword = passwordbox.Text;rn SqlConnection tosql = new SqlConnection("Data Source=.;Initial Catalog=da1;Integrated Security=True");rn tosql.Open();rn string str = "select * from test where name =" + xname + "and password =" + xpassword;rn SqlCommand sql_cmd = new SqlCommand(str,tosql);rn SqlDataReader result = sql_cmd.ExecuteReader();rn if (result.Read())rn rn MessageBox.Show("登陆成功!");rn rn rn elsern rn MessageBox.Show("登陆失败!");rn rn rnrnrn tosql.Close();rn result.Close();rn//。。。。。。。。。。。。。省略rn rn rn
首页调用 为什么出不来
<em>调用</em>哪个页都什么也显示不出来:(
在js中调用dede标签
$(".scrollNav-li a").each(function(i,e){ if($(this).text()=="{<em>dede</em>:field name='typename'/}"){ $(this).parent().addClass("current") } }) <em>dede</em>cms的<em>标签</em>也可以用在 js 中,使用中注意加 引号 即可。
=====>为什么会说我操作字符丢失呢???谁帮我看下
错误类型:rnMicrosoft JET Database Engine (0x80040E14)rn语法错误 (操作符丢失) 在查询表达式 '12NC = '932221128682'' 中。rn/add.asp, 第 22 行rnrn代码在下面rnrnrnrnrn <> "" thenrn rs.AddNewrn rs("Factory") = farn rs("WorkOrder") = worn rs("FinishGood") = fdrn rs("FD_Description") = fddrn rs("Line") = lnrn rs("FD_Quantity") = Cint(fdq)rn rs("Depot") = dprn rs("Depot_Position") = dpprn rs("12NC") = ncrn rs("NC_Description") = ncdrn rs("Material_Quantity") = Cint(ncq)rn rs("Batch_Quantity") = Cint(bq)rn rs("Unit") = unrn rs("Date") = dtrn re.Update rn End Ifrn%>
为什么我的登录页面出不来
我的环境 linux as 4 domino7.02rn已创建了 domcfg.nsf (引用domcfg5.nsf)rn创建了logingmapping 文档?rnrnrn(<em>为什么</em>这里不能贴图?要不我贴图出来了)rn本人长期在线等待 msn gj_cong@hotmail.com
为什么我的背景图片出不来
[code=html]rnrn rn 背景图片rn rn rn rn rn rn rn rn rnrn[/code]
Dede标签:{dede:sql}标签用法
  sql<em>标签</em>可以称得上是个万能<em>标签</em>了,查询数据库将其输出,这里介绍一些关于这个<em>标签</em>的用法:   1.用来输出统计内容,这个是不错的,举个例子,我们来统计下总共发了多少的文章,思路就是输出<em>dede</em>_addonarticle这个文章附加表内容总数就可以了。   {<em>dede</em>:sql sql=&quot;SELECT COUNT(*) AS nums FROM <em>dede</em>_addonarticl...
dede标签
1.编码{<em>dede</em>:global.cfg_soft_lang/}2.首页title {<em>dede</em>:global.title/}3.首页关键字{<em>dede</em>:global.cfg_keywords/}4.内页关键字{<em>dede</em>:field name="keywords"}5.首页描述{<em>dede</em>:global.cfg_description/}6.内页描述{<em>dede</em>:field name='descriptio
dede超级标签dede超级标签
<em>dede</em>开发从此变得简单easy <em>dede</em>超级<em>标签</em>
我的图形为什么出不来
在按钮按下事件中响应:rnvoid CTestBrushDlg::OnTestBtn() rnrn // TODO: Add your control notification handler code herern CClientDC dcScreen(this);rn CBitmap bitmap;rn bitmap.CreateCompatibleBitmap(&dcScreen,100,100);rn rn CDC dcMem;rn dcMem.CreateCompatibleDC(&dcScreen);rn rn CBrush brush;rn brush.CreateSolidBrush(RGB(0,0,255));rn CBitmap *pOldBitmap;rn pOldBitmap=dcMem.SelectObject(&bitmap);rn dcMem.FillRect(CRect(0,0,100,100),&brush);rn dcMem.SelectObject(pOldBitmap);rn rn dcScreen.BitBlt(0,0,100,100,&dcScreen,0,0,SRCCOPY);rnrnrn但是图形<em>出不来</em>,是不是发生了重绘?我一定要在按钮按下后显示矩形,怎么办?
为什么我的界面出不来???
我用这两句rnCPara_Draft dlg;rndlg.DoModal();rn<em>调用</em>对话框,不知道<em>为什么</em>就是<em>出不来</em>?rn哪位高手帮<em>帮我</em>,谢谢!!!
dede标签大全_dede标签生成工具
<em>dede</em><em>标签</em>大全_<em>dede</em><em>标签</em>生成工具,DEDE仿站利器
C程序,谁帮我看看我的程序为什么出不来结果
#includern#includern#include@rnvoid main()rnrnfloat n;rnn=loadInfo();rnprintf("%f",n);rnrnfloat loadInfo(void)rnrn float a,b,c;rn int x,y,z;rn FILE *fp;rn fp=fopen("/proc/loadavg","r");rn fscanf(fp,"%f%f%f%d/%d%d",&a,&b,&c,&x,&y,&z); rnfclose(fp);rnreturn a;rnrn大家<em>帮我</em>看看这个程序哪边有问题,在linux里用的,读loadavg里第一个参数,我只是想试下写个函数可以返回这个参数,这个函数不用输入,但是我发现输出的值莫名其妙,人家看看错在什么地方?我试了很多情况,主要问题就是这个函数里的值,传不出来,函数内部得到的a,b,c,都是正确的
帮我看下">返回为""谁帮我看下
[code=C#]rnusing System;rnusing System.Collections;rnusing System.Configuration;rnusing System.Data;rnusing System.Linq;rnusing System.Web;rnusing System.Web.Security;rnusing System.Web.UI;rnusing System.Web.UI.HtmlControls;rnusing System.Web.UI.WebControls;rnusing System.Web.UI.WebControls.WebParts;rnusing System.Xml.Linq;rnusing System.IO;rnusing System.Net;rnusing System.Text;rnusing System.Text.RegularExpressions;rnrnrnpublic partial class Admin_BookType : System.Web.UI.Pagernrn protected void Page_Load(object sender, EventArgs e)rn rn Response.Write(GetBookType());rn rnrn public string GetBookType()rn rn string hl = null;rn tryrn rn string tempurl = "http://book.dangdang.com/catagory/book_second_category.aspx";//需要抓取的图书类型网址rnrn HttpWebRequest webr = (HttpWebRequest)WebRequest.Create(tempurl);//创建请求rn HttpWebResponse wb = (HttpWebResponse)webr.GetResponse();rn Stream sr = wb.GetResponseStream();//得到返回数据流rn StreamReader sr1 = new StreamReader(sr, Encoding.GetEncoding("gb2312"));//用于读取数据流的内容rn string zz = sr1.ReadToEnd();//读取完成rn sr1.Close();rn wb.Close();//关闭rnrn string temp = " [\\s\\S]*? ";rn hl = Regex.Match(zz, temp, RegexOptions.IgnoreCase).Value;rn return hl;rn rn catch return null; rn rnrnrn//以上代码zz是源码读取到了,但走到hl那里截取的时候截取不到,高手帮忙<em>看下</em>rn[/code]
帮我看下这个问题!
import java.io.*;rnrnpublic class TestDatarn public static void main(String[] agrs)rn tryrn ByteArrayOutputStream out = new rn ByteArrayOutputStream();rn DataOutputStream output = rn new DataOutputStream(out);rn output.writeInt(98);rn output.writeUTF("YANGYONGJIE");rn ByteArrayInputStream in = new rn ByteArrayInputStream(out.toByteArray());rn DataInputStream input = rn new DataInputStream(in);rn System.out.println("读出了" + in.available() + "字节");rn int a = input.readInt();rn String tem = input.readUTF();rn rn System.out.print(a + " " + tem);rn rn catch(IOException e)rn rn rnrn代码是对的 你们运行下看看 ! 我的问题是 它<em>为什么</em>显示的是17 个字节 ! "yangyongjie" + int 怎么算也是15个啊 就算char 占2个字节 那也是26啊; 怎么会是17呢 ! 原来以为字符串后面跟有\n 但是把"yangyongjie" 打印出来又没有 ! 谁能我分析下 ?
帮我看下,错在哪里?
全盘搜索的时候总是跳回到菜单,小弟比较菜,弄很久不知道问题出在哪里,谁<em>帮我</em>调试下,谢谢了!rn大概是findfiles()这个函数出问题。rnrnrnrnrn-------------------------------------------------------------------------------------rn#include rn#include rn#include rn#include rn#include rnrn//输入完整路径跟文件名进行查找.rnint search()rn struct _finddata_t c_file;rn long hFile;rn char fname[_MAX_FNAME],temp[1000];rnrn system("cls");rnrn printf("输入您想要查找的文件,如c:\\*.txt (直接回车返回主菜单):");rn gets(fname);rn if(fname[0]=='\0')rn system("cls");rn return 0;rn rnrnrn if( (hFile = _findfirst( fname, &c_file )) == -1L ) rn system("cls");rn printf( "\n提示:文件没有找到。\n\n" );rn return 0;rn rn else rn printf( "\n提示:正在列出文件.....\n\n" );rn printf( "\n只读 隐藏 系统 存档 文件名 创建日期 %20c 大小\n", ' ' );rn printf( "---- ---- ---- ---- ------ -------- %20c ----\n", ' ' );rn printf( ( c_file.attrib & _A_RDONLY ) ? " Y " : " N " );rn printf( ( c_file.attrib & _A_SYSTEM ) ? " Y " : " N " );rn printf( ( c_file.attrib & _A_HIDDEN ) ? " Y " : " N " );rn printf( ( c_file.attrib & _A_ARCH ) ? " Y " : " N " );rn printf( " %-14s %.23s %9ld\n",rn c_file.name, ctime( &( c_file.time_write ) ), c_file.size );rnrn while( _findnext( hFile, &c_file ) == 0 ) rn printf( ( c_file.attrib & _A_RDONLY ) ? " Y " : " N " );rn printf( ( c_file.attrib & _A_SYSTEM ) ? " Y " : " N " );rn printf( ( c_file.attrib & _A_HIDDEN ) ? " Y " : " N " );rn printf( ( c_file.attrib & _A_ARCH ) ? " Y " : " N " );rn printf( " %-14s %.23s %9ld\n",rn c_file.name, ctime( &( c_file.time_write ) ), c_file.size );rn rn _findclose( hFile );rn printf("\n提示:搜索完毕! (按回车返回主菜单)\n");rn rnrn gets(temp);rn if(temp[0]=='\0')rn system("cls");rn rnrn return 0;rnrnrnrn//查找函数.rnint findfiles(char *path, char *fname)rn// char path[_MAX_PATH],fp[_MAX_PATH],fname[_MAX_FNAME];rn char fp[_MAX_PATH],nextpath[_MAX_PATH];rn struct _finddata_t c_file;rn long hFile;rnrn sprintf(fp, "%s\\%s", path, fname);rn if ( (hFile = _findfirst( fp, &c_file )) != -1L ) rn// if ( ! (strcmp(c_file.name, "."==0 || strcmp(c_file.name, ".." == 0) )rn if (!(c_file.attrib & _A_SUBDIR)) rn if( strcmp(c_file.name, ".") && strcmp(c_file.name, "..") )rn printf( "\n提示:正在列出文件.....\n\n" );rn printf( "\n只读 隐藏 系统 存档 文件名 创建日期 %20c 大小\n", ' ' );rn printf( "---- ---- ---- ---- ------ -------- %20c ----\n", ' ' );rn printf( ( c_file.attrib & _A_RDONLY ) ? " Y " : " N " );rn printf( ( c_file.attrib & _A_SYSTEM ) ? " Y " : " N " );rn printf( ( c_file.attrib & _A_HIDDEN ) ? " Y " : " N " );rn printf( ( c_file.attrib & _A_ARCH ) ? " Y " : " N " );rn printf( " %-14s %.23s %9ld\n",rn c_file.name, ctime( &( c_file.time_write ) ), c_file.size );rn rn rn while (_findnext( hFile, &c_file)) rn if (!(c_file.attrib & _A_SUBDIR)) rn if( strcmp(c_file.name, ".") && strcmp(c_file.name, "..") )rn printf( "\n提示:正在列出文件.....\n\n" );rn printf( "\n只读 隐藏 系统 存档 文件名 创建日期 %20c 大小\n", ' ' );rn printf( "---- ---- ---- ---- ------ -------- %20c ----\n", ' ' );rn printf( ( c_file.attrib & _A_RDONLY ) ? " Y " : " N " );rn printf( ( c_file.attrib & _A_SYSTEM ) ? " Y " : " N " );rn printf( ( c_file.attrib & _A_HIDDEN ) ? " Y " : " N " );rn printf( ( c_file.attrib & _A_ARCH ) ? " Y " : " N " );rn printf( " %-14s %.23s %9ld\n",rn c_file.name, ctime( &( c_file.time_write ) ), c_file.size );rn rn rn rn _findclose( hFile );rn rn rn sprintf(fp, "%s\\*.*", path);rn if ( (hFile = _findfirst( fp, &c_file )) != -1L ) rn if ( (c_file.attrib & _A_SUBDIR) ) rn if ( strcmp(c_file.name, ".") && strcmp(c_file.name, "..") ) rn sprintf(nextpath, "%s\\%s", path, c_file.name);rn findfiles(nextpath, fname);rn rn rn while ( _findnext( hFile, &c_file) ) rn if ( strcmp(c_file.name, ".") && strcmp(c_file.name, "..") ) continue;rn if ( (c_file.attrib & _A_SUBDIR) ) rn sprintf(nextpath, "%s\\%s", path, c_file.name);rn findfiles(nextpath, fname);rn rn rn _findclose( hFile );rn rnrn return 0;rnrnrn//全盘查找指定文件.rnint SearchDisk()rn char path[_MAX_PATH]="A:", fname[1000];rnrn system("cls");rnrn printf("输入您想要查找的文件的文件名,如findfile.txt (直接回车返回主菜单):");rn gets(fname);rn if(fname[0]=='\0')rn system("cls");rn return 0;rn rnrn if( strlen(fname) > _MAX_FNAME )rn printf("\n提示:文件名过长,请重新输入!\n");rn rnrn for( ; path[0] >= 'A' && path[0] _MAX_PATH )rn printf("\n提示:路径过长,请重新输入!\n");rn rnrn printf("\n\n输入您想要查找的文件的文件名,如findfile.txt (直接回车返回主菜单):");rn gets(fname);rn if(fname[0]=='\0')rn system("cls");rn return 0;rn rn if( strlen(fname) > _MAX_FNAME )rn printf("\n提示:文件名过长,请重新输入!\n");rn rn rn findfiles( path, fname );rn return 0;rnrnrn//功能菜单。rnint choose(int &WhatToDo )rnrn char i,j,temp[100];rnrn printf("选择你想要进行的操作: \n");rn printf(" 1.搜索文件 \n");rn printf(" 2.全盘搜索 \n");rn printf(" 3.指定路径搜索 \n");rn// printf(" 4.修改学生资料 \n");rn// printf(" 5.显示学生列表 \n");rn// printf(" 6.写入文件 \n");rn// printf(" 7.读取文件 \n");rn printf(" 8.退出 \n");rn printf("请选择: ");rnrn rn i=getchar();rn if(i=='\n') rn WhatToDo=0;rn return 0;rn rnrn j=getchar();rn if((i>='1' && i);rn rn rn return 0;rnrn
帮我看下这个错?
2008-05-10 11:14:26,812 [org.springframework.web.struts.ContextLoaderPlugIn]-[ERROR] Context initialization failedrnorg.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [WEB-INF/beans.xml]; nested exception is java.io.FileNotFoundException: class path resource [WEB-INF/beans.xml] cannot be opened because it does not existrnCaused by: rnjava.io.FileNotFoundException: class path resource [WEB-INF/beans.xml] cannot be opened because it does not existrn at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:135)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:297)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:147)rn at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)rn at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)rn at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:101)rn at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:389)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:324)rn at org.springframework.web.struts.ContextLoaderPlugIn.createWebApplicationContext(ContextLoaderPlugIn.java:354)rn at org.springframework.web.struts.ContextLoaderPlugIn.initWebApplicationContext(ContextLoaderPlugIn.java:295)rn at org.springframework.web.struts.ContextLoaderPlugIn.init(ContextLoaderPlugIn.java:225)rn at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)rn at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4042)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4348)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2008-5-10 11:14:26 org.apache.catalina.core.ApplicationContext logrn严重: action: nullrnorg.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [WEB-INF/beans.xml]; nested exception is java.io.FileNotFoundException: class path resource [WEB-INF/beans.xml] cannot be opened because it does not existrnCaused by: java.io.FileNotFoundException: class path resource [WEB-INF/beans.xml] cannot be opened because it does not existrn at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:135)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:297)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
帮我看下这程序!
public class FileStreamDemo rnpublic static void main(String[] args) rntry rnbyte[] buffer = new byte[1024];rnrn// 来源文件rnFileInputStream fileInputStream =rnnew FileInputStream(new File(args[0]));rn// 目的文件rnFileOutputStream fileOutputStream =rnnew FileOutputStream(new File(args[1]));rnrn// available()可取得未读取的数据长度rnSystem.out.println("复制文件:" +rnfileInputStream.available() + "字节");rnrnrn/*这个循环不明白什么意思 ! 程序既然想用rnbuffer数组做缓冲区 <em>为什么</em>当源文件少于1024字节的时候rn程序选择一个一个的读到目的文件中rnif(fileInputStream.available() < 1024) rn// 剩余的数据比1024字节少rn// 一位一位读出再写入目的文件rnrnint remain = -1;rnwhile((remain = fileInputStream.read())rn!= -1) rnfileOutputStream.write(remain);rn 如果用buffer一次性读入rn不是好些么而当源文件大于1024字节的时候却又是用buffer来一rn次性读入!这不是不能完全把复制么! 这是书上的列子 我看了rn好久都不明白 请高手指点下,最好把这个循环没行语句的意思都做注解!rn我想的是不用*/rnrnrnwhile(true) rnif(fileInputStream.available() < 1024) rn// 剩余的数据比1024字节少rn// 一位一位读出再写入目的文件rnrnint remain = -1;rnwhile((remain = fileInputStream.read())rn!= -1) rnfileOutputStream.write(remain);rnrnbreak;rnrnelse rn// 从来源文件读取数据至缓冲区rnfileInputStream.read(buffer);rn// 将数组数据写入目的文件rnfileOutputStream.write(buffer);rnrnrnrn// 关闭流rnfileInputStream.close();rnfileOutputStream.close();rnrnSystem.out.println("复制完成");rnrncatch(ArrayIndexOutOfBoundsException e) rnSystem.out.println(rn"using: java FileStreamDemo src des");rne.printStackTrace();rnrncatch(IOException e) rne.printStackTrace();rnrnrn
帮我看下WCP的配置文件......
打开连接 http://192.168.1.27:8080/IssueService 以后显示400错误.......rnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rnrn
帮我看下这段代码
public Logininfo CheckLogin(Logininfo login) rn List list = getHibernateTemplate().findByExample(login);rn Logininfo info = null;rn if (list.size() != 0 & list != null) rn info = (Logininfo) list.get(0); ← [color=#FF0000]get(0)取出来的是什么东西?[/color] rnrn return info;rnrn rnrnrn
帮我写个DEDE问答的伪静态规则?
browser.php?tid2='.$asktype['id'].'rnquestion.php?id=rn这二个规则要怎写?rn效果是这样的:http://ask.bbpao.com/browser-4-0.htmlrn谁能<em>帮我</em>一下?
dede模板DedeCms织梦标签大全
<em>dede</em><em>模板</em>DedeCms织梦<em>标签</em>大全,<em>dede</em><em>标签</em>、织梦<em>标签</em>、<em>dede</em>cms、大全。
帮我看下为什么错了.
import java.awt.*;rnimport java.awt.event.*;rnrnpublic class TwoListenInner rn private Frame f;rn private TextField tf;rn public static void main(String[] args)rn TwoListenInner that=new TwoListenInner();rn that.go();rn rnrn public void go()rn f=new Frame("Two listeners example");rn f.add("North",new Label("Click and drag the mouse"));rn tf=new TextField(30);rn f.add("South",tf);rn f.addMouseMotionListener(new MouseMotionHandler());rn [color=#FF6600]f.addMouseListener(new MouseEventHandler());[/color]rn f.setSize(300,200);rn f.setVisible(true);rn rn rn public class MouseMotionHandler extends MouseMotionAdapter rn public void mouseDragged(MouseEvent e) rn String s="Mouse dragging:X=" +e.getX() +"Y=" +e.getY();rn tf.setText(s);rn rn rn public class MouseEventHandler extends MouseMotionAdapter rn public void mouseEntered(MouseEvent e) rn String s="The mouse entered";rn tf.setText(s);rn rn public void mouseExited (MouseEvent e) rn String s="The mouse has left the building";rn tf.setText(s);rn rn rnrn
高手们帮我看下,为什么我的MOVE子程序不能调用??
code segment rnassume cs:code,ds:codernorg 100hrn start: jmp installrn rn msg db 'Current time is: ' rn time0 db ?,?rn db ':'rn time1 db ?,? rn db ':'rn time2 db ?,?,0,0rn color db 24hrn location dw 54*2drnoldint1c dd ?rnnewint1c: push axrn push bxrn push cxrn push dxrn push sirn push dirn push esrn mov ax,0200h ;获取系统时间,ch→hours cl→minutes DH→seconds,均为BCD码格式rn int 1ahrn mov al,chrn lea si,time0rn call bcdrn mov al,clrn lea si,time1rn call bcdrn mov al,dhrn lea si,time2rn call bcdrn mov ax,0b800h ;显存地址 采用直接写显存的方法输出字符rn mov es,ax ;es:di 指向显存地址rn rn rn rn rn mov cx,4000 ;将整个屏幕背景色设为*色rn tcol: mov es:[di],0chrn add di,2rn loop tcolrn rn rn rn rn rn ;lea si,location rn ;mov di,[si]rn mov di,45*2rn lea si,msgrn rn disp: mov al,cs:[si]rn inc sirn or al,alrn jz disp0 ;cs=dsrn cldrn stosbrn mov cs:[di],0000hrn inc di ;将cs:si指向的一个字节传送到es:dirn jmp disprn rn rndisp0: pop esrn pop dirn pop sirn pop dxrn pop cxrn pop bxrn pop axrn jmp cs:oldint1c ;新1CH中断的事情做完后<em>调用</em>原来的1CH中断rn rn bcd: mov ah,alrn shr ah,1rn shr ah,1rn shr ah,1rn shr ah,1rn and al,0fhrn add ax,'00'rn xchg ah,alrn mov cs:[si],axrn retrnrninstall: push csrn pop dsrn mov ax,csrn mov es,axrn mov ax,351ch ;获取中断向量ES:BX指向中断向量rn int 21hrn mov word ptr oldint1c,bxrn mov word ptr oldint1c+2,esrn lea dx,newint1crn mov ax,251ch ;设置中断向量 DS:DX指向中断向量rn int 21hrn call movern rn mov dx,offset install+120h ;+10H即可,因为如果驻留程序的长为36,如果不rn mov cl,04h ;加10H则计算的节为2,而实际应该为3节rn shr dx,clrn mov ah,31h ;结束并驻留 DX:保留的长度(内存大小单位为节)rn int 21hrnrnrnrnrnmove procrn push axrn push dxrn rn lea si,location ;取出时间显示位置,以备修改rn mov dx,[si]rn rn mov ah,00hrn int 16hrn rngetkey: cmp ah,48hrn jz uprn rn rn cmp ah,50hrn jz downrn rn rn cmp ah,4bhrn jz leftrn rn rn cmp ah,4dhrn jz rightrn rn rn cmp ax,011bh ;实现ESC跳rn jz tailrn jmp getkeyrn rn rnup: cmp dx,0b80ah ;当移动到窗口最上方时,重新获得键盘rn jc getkeyrn sub dx,0ahrn jmp chgrnrndown: cmp dx,0b8f0h ;当移动到窗口最下方时,重新获得键盘rn jnc getkeyrn add dx,0ahrn jmp chgrnrnleft: cmp dx,0b800h ;当移动到左上角时,重新获得键盘rn jc getkeyrn sub dx,1rn jmp chgrn rnright: cmp dx,0b8f9h ;当移动到右下角时,重新获得键盘rn jnc getkeyrn add dx,1rn jmp chgrn rn rnchg: call reflash ;<em>调用</em>清屏子程序rn mov location,dxrn jmp getkeyrn rntail: pop dxrn pop axrn retrnmove endp rn rnrnrnrnrnreflash proc ;清屏子程序rn push cxrn push esrn push dirn rn mov cx,4000 ;将整个屏幕背景色设为*色rnccol: mov es:[di],0chrn add di,2rn loop ccol rn rn rn lea si,msgrndisp1: mov al,cs:[si]rn inc sirn or al,alrn jz disp01 ;cs=dsrn cldrn stosbrn mov cs:[di],0000hrn inc di ;将cs:si指向的一个字节传送到es:dirn jmp disp1 rn rndisp01: pop dirn pop esrn pop cx rn retrnreflash endp rncode endsrnend startrnrnrn rn rnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrn
做过dede的帮忙看下
我想要实现 类别 本身的图片 怎么实现?rnrn就是 产品类别 本身有一个代表图片,rnrn后台好像没有添加的地方?
yiqicms模板标签调用
yiqicms<em>模板</em><em>标签</em><em>调用</em>,变量名称 变量含义 <em>模板</em><em>调用</em>方式sitename 网站名称 {$sitename}siteurl 网站域名 {$siteurl}
Dreamweaver 调用dede织梦标签控件
Dreamweaver 可以<em>调用</em><em>dede</em>织梦的<em>标签</em>了
帮我我谢谁
那位大哥能帮<em>帮我</em>!我的一个同学毕业设计题目是做一个万年历!他请我帮他做,但我不是学C的,谁能给我源代码?谢啦!
请教:我的image为什么出不来?
各位大侠请指教:rnvoid CGDITESTMFCView::OnLoadBITMAP() rnrn // TODO: Add your command handler code herern //HBITMAP MyMAP;rn CDC *pDC;rn pDC=GetWindowDC();rn rn pDC->TextOut (0,0,"测试一下是否取道正确的DC"); rn rn//准备Bitmaprn CBitmap *MyBitmap;rn MyBitmap = new CBitmap;rn MyBitmap->LoadBitmap("f:\toolboc\runtime\splash.bmp");rn ASSERT(MyBitmap);rn//入选rn MyBitmap=pDC->SelectObject(MyBitmap); rnrn// ?我看不到图片??rn//??此时的MyBitmap=NULL <em>为什么</em>?rn//请问:SelectObject 对目的什么? 他影响什么? rn//被选进去的Bitmap作什么用? 会马上显示出来吗?rnrn MyBitmap=pDC->SelectObject(MyBitmap);rn rn pDC->TextOut(0,300,"This is Original TEXT");rn if (MyBitmap)rn MyBitmap->DeleteObject();rnrn
帮我我爱谁!!
我是个初学VB的菜鸟,我在学书上的例子时遇到“状态栏部件”,rn 但我怎么都找不到,大哥呀,怎么找到“状态栏部件”啊!!!!rn <em>帮我</em>!谢谢。。
为什么出不来
发的司法司法
谁用过DeDe反编译工具
请问怎么使用<em>dede</em> 3.10 反编译delphi的组件
jsp 调用javabean 老出错 谁帮我看下代码!!
我的UseName.java 放在工程下的 src 下 发现不管在那里建 都会自动放在那里! 运行下面的TestBean.jsp总是抱这样的错误:rnrn严重: Servlet.service() for servlet jsp threw exceptionrnorg.apache.jasper.JasperException: /TestBean.jsp(11,0) The value for the useBean class attribute UesName is invalid.rn信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_06\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.6.0_06\bin;D:\暴风播放器\Codec;D:\暴风播放器rnrn代码在下面:rn//TestBean.jsprnrnrnrnrnrnrnrn rn Insert title herernrnrn;rnrnrnrnrnrnrn//UseName.javarnrnrnpackage java.bean;rnrnpublic class UesName rn public int id;rnrn public String name = null;rnrn public UesName() rn super();rn rnrn public int getId() rn return id;rn rnrn public void setId(int id) rn this.id = id;rn rnrn public String getName() rn return name;rn rnrn public void setName(String name) rn this.name = name;rn rnrn
(最全)dede标签生成器
二次开发设计织梦<em>dede</em>程序<em>模板</em>的时候帮助我们快速<em>调用</em>织梦<em>标签</em>代码
dede自己写的标签
<em>dede</em>自己写的<em>标签</em><em>dede</em>自己写的<em>标签</em>可以<em>调用</em>文章 任意地方
dede标签大全
<em>dede</em><em>标签</em>大全_<em>dede</em><em>标签</em>生成工具,DEDE仿站利器,介绍非常详细
dede建站标签大全
<em>dede</em>建站<em>标签</em>大全,包括各种<em>标签</em><em>调用</em>方法。
dede标签下载
<em>dede</em><em>模板</em><em>标签</em>大全,开发者的参考文档,快捷开发出自己想要的栏目,<em>调用</em>想要的内容。
dede 超级标签 织梦
<em>dede</em> 织梦 站长 建站好帮手 让你轻松使用<em>dede</em>(织梦)中的<em>标签</em>搭建自己个性的网站
dede标签生成器
DEDE织梦仿站代码生成器,又名DEDE仿站超级助手,DEDE<em>标签</em>生成器下载,无需安装
dede织梦标签详解
织梦<em>模板</em><em>标签</em>解析! 织梦<em>dede</em>所有<em>标签</em><em>调用</em>方法大全!非常实用!
DEDE超级标签
因为头像是熊猫,所以经常会认为是病毒,不过真不是,不管你信不信,反正我信了。
dede标签不全
<em>dede</em><em>标签</em>不全,很全面,很方便,你懂得。
Dede标签:pagelist 介绍
<em>标签</em>名称:pagelist功能说明:表示分页页码列表适用范围:仅列表<em>模板</em> list_*.htm基本语法:{<em>dede</em>:pagelist listsize='5' listitem=''/} 参数说明:listsize 表示 [1][2][3] 这些项的长度 x 2listitem 表示页码样式,可以把下面的值叠加index 首页 pre 上一页 pageno 页码 next 下一页 end 末页 o...
dede的channel标签问题
[size=24px][color=#FF0000]<em>dede</em>:channel type='top' typeid='1,3,7' row='6' currentstyle=" ~typename~"rn [field:typename/]rn /<em>dede</em>:channel[/color][/size]rnrn<em>为什么</em>typeid没有作用? 求解决方法,只想要top顶级栏目的制定的typeid,我用的是5.6的。感激不尽!!!
dede文档标签1
不经意忘记<em>dede</em>cms后台管理员密码这样的情况常有发生。这时候为了简单起见最好是能够重置<em>dede</em>cms管理员密码或者是还原<em>dede</em>cms密码,<em>dede</em>cms管理员密码遗忘怎么找回?这里为大家提供常见的集中<em>dede</em>cms管理员密码遗忘..
DEDE标签生成器
DEDE<em>标签</em>生成器都是没有弹窗,没有广告的,相当不错 DedeCms+Quick+Tags+1.0.exe
DEDE超级标签详解
织梦<em>标签</em>的详解点击按钮就会出现你想要的代码
dede标签介绍
<em>dede</em><em>标签</em>介绍,用于<em>dede</em>建站中一些基础的<em>标签</em>。
谁帮忙看下我的问题
rnrn rnrnrn rn rn rn rn rn rnrnrnrn我这里那个被赋了innerHtml的地方没有 显示。谁知道什么原因啊?
调用JS函数问题,帮我看下
在.CS里:rnStudent_Name.Attributes.Add("onchange","onblur_NotNull(Student_Name, 'sfkjds')");(Student_Name为一 TextBox)rn在JS里函数为: rnfunction onblur_NotNull(text, columnname)rnrn var str=document.all[text].value;rn if (!check_NotNull(str))//这是检测是否为空的函数rn rn document.all[text].focus();rn document.all[text].select();rn alert(columnname + " 不可為空白 !!\n");rn return false;rn rn elsern rn return true;rn rnrnrn运行时老提示说:var str=document.all[text].value;对象不存在或者为空,这是什么原因啊?那个函数我没写错吧?
dede快速标签工具
<em>dede</em>快速<em>标签</em>工具<em>dede</em>快速<em>标签</em>工具<em>dede</em>快速<em>标签</em>工具
dede 织梦标签解析
<em>dede</em> 织梦 <em>标签</em>解析 <em>标签</em>说明 <em>标签</em>
dede标签实例
<em>dede</em><em>标签</em>实例
dede标签大全_详解
<em>dede</em><em>标签</em>大全_详解孩子都能看懂的<em>标签</em>
dede:php标签问题
<em>dede</em>:phprn$row = $dsql->GetOne("select id,typename from <em>dede</em>_arctype where id=22");rnprint_r($row);rn/<em>dede</em>:phprnrn我使用上面这句,怎么测试运行的时候,现在结果还是啥也没有呢,是哪里错了吗rnrn
帮我看下这段代码,为什么不能更新
代码:rn public static bool Order_Require(Int32 requireID, Int32 teacherID)rn rn string strConn, strSql;rn bool flag = false;rn strConn = ConfigurationManager.ConnectionStrings["HomeTeachingString"].ConnectionString;rn strSql = "select require.teacherID from require where requireID = "+requireID.ToString() ;rn SqlDataAdapter da = new SqlDataAdapter(strSql, strConn);rn // da.TableMappings.Add("Table", "RequireTable");rn DataTable tb1 = new DataTable("require");rn da.Fill(tb1);rn DataRow row = tb1.Rows[0];rn if (row.IsNull("teacherID"))rn rn row["teacherID"] = teacherID.ToString();rn da.Update(tb1);rn flag = true;rn rn return flag;rn rn 这是一个按钮单击事件,实现预约功能。每次运行都提示:rn传递具有已修改行的 DataRow 集合时,更新要求有效的 UpdateCommand。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn当传递具有已修改行的 DataRow 集合时,更新要求有效的 UpdateCommand。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.InvalidOperationException: 当传递具有已修改行的 DataRow 集合时,更新要求有效的 UpdateCommand。rnrn源错误: rnrnrn行 147: rn行 148: row["teacherID"] = teacherID.ToString();rn行 149: da.Update(tb1);rn行 150: flag = true;rn行 151: rn rnrn源文件: e:\VCJOB\HomeTeachingWork\HomeTeaching\App_Code\Teacher.cs 行: 149 rnrn其中 teacherID和requireId我是这样提供的:rnint requireID = 8;rn int teacherID = 5;
关于画图方面的代码,谁帮我看下为什么不行
[code=C/C++]rn#include "stdafx.h"rn#include rn#include rn#include rn#include rn#include rnrn#define PIXEL_COUNT 1000 rn#define DELAY_TIME 100 /* in milliseconds */ rnrnint main(void) rn rn /* request autodetection */ rn int gdriver = DETECT, gmode, errorcode; rn int i, x, y, color, maxx, maxy, maxcolor, seed; rnrn /* initialize graphics and local variables */ rn initgraph(&gdriver, &gmode, ""); rnrn /* read result of initialization */ rn errorcode = graphresult(); rn if (errorcode != grOk) /* an error occurred */ rn rn printf("Graphics error: %s\n", grapherrormsg(errorcode)); rn printf("Press any key to halt:"); rn getch(); rn exit(1); /* terminate with an error code */ rn rnrn maxx = getmaxx() + 1; rn maxy = getmaxy() + 1; rn maxcolor = getmaxcolor() + 1; rnrn while (!kbhit()) rn rn /* seed the random number generator */ rn seed = random(32767); rn srand(seed); rn for (i=0; i头文件中的啊,都包含进来了怎么报错,这个头文件在inlude文件夹中是有的,错在那里了
帮我看下这段代码为什么出现内存问题....谢谢了
//目的是修改选中项rn//更新数据库rn//0x753dd36f 处有未经处理的异常: Microsoft C++ 异常: 内存位置 0x002becac 处的 _com_error。rnvoid CAdoDlg::OnBnClickedModify()rn rn UpdateData(TRUE);rn int pos=m_list.GetSelectionMark();//获取当前选中的项目rn rn CString sql;rn //设置SQL语句rn sql.Format("update ShellInfo set Sum=%d where Merchandise=%s",m_Num,m_Name);rn m_pConnection->Execute((_bstr_t)sql,NULL,adCmdText);//执行sql语句rn CString str;rn str.Format("%d",m_Num);rn m_list.SetItemText(pos,1,str);rn
为什么我得VC提示老出不来?有谁能帮我?高分!!!!!
<em>为什么</em>我得VC提示老<em>出不来</em>?就是说你写了一个对象然后键入点号,可是没有提示。
谁能帮我看看为什么我的表格出不来
rnpublic class assetMessageDialog extends JDialog rn JPanel panel1 = new JPanel();rn Vector assetMessageSql=new Vector();rn Vector assetMessageHead=new Vector();rn DefaultTableModel model=new DefaultTableModel(assetMessageSql,assetMessageHead)rn public boolean isCellEditable(int row,int column)rn return false;rn rn ;rn JTable jTableAssetMessage = new JTable(model);rn JScrollPane jScrollPaneAssetMessage = new JScrollPane();rn public assetMessageDialog(Frame owner, String title, boolean modal) rn super(owner, title, modal);rn try rn setDefaultCloseOperation(DISPOSE_ON_CLOSE); rn jbInit();rn pack();rn showAssetMessage();rn catch (Exception exception) rn exception.printStackTrace();rn rn rnrn public assetMessageDialog() rn this(new Frame(), "assetMessageDialog", false);rn rnrn private void jbInit() throws Exception rn panel1.setLayout(null);rn jScrollPaneAssetMessage.setBounds(new Rectangle(0, 0,500, 400));rn getContentPane().add(panel1);rn panel1.add(jScrollPaneAssetMessage);rn jScrollPaneAssetMessage.getViewport().add(jTableAssetMessage);rn rn void showAssetMessage()rn tryrn Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");rn catch(ClassNotFoundException ce)rn System.out.println(ce);rn rn tryrn Connection con=DriverManager.getConnection("jdbc:odbc:assetManage");rn Statement s=con.createStatement();rn ResultSet rs=s.executeQuery("select * from assetMessage");rn assetMessageSql.removeAllElements();rn while(rs.next())rn Vector temp=new Vector();rn temp.add(rs.getString(1));rn temp.add(rs.getString(2));rn temp.add(rs.getString(3));rn temp.add(rs.getString(4));rn temp.add(rs.getString(5));rn temp.add(rs.getString(6));rn temp.add(rs.getString(7));rn temp.add(rs.getString(8));rn temp.add(rs.getString(9));rn temp.add(rs.getString(10));rn assetMessageSql.add(temp);rn rn model.setDataVector(assetMessageSql,assetMessageHead);rn rs.close();rn s.close();rn con.close();rn catch(SQLException se)rn System.out.println(se);rn rn rn
一个小问题,帮我看下为什么。。。
while(rs.next())rn rn out.print(" ");rn out.print("");rn out.print(""+rs.getString(1)+"");rn out.print(""+rs.getString(2)+"");rn out.print(""+rs.getString(3)+"");rn out.print(""+rs.getString(4)+"");rn out.print(""+rs.getString(5)+"");rn out.print(""+rs.getString(6)+"");rn out.print(""+rs.getString(7)+"");rn out.print(""+"删除它"+"");rn out.print("");rn out.print("");rn rnrnrnrnout.print(""+"删除它"+"");rnrnrn这句,给value赋值,不应该是滚动的么?循环到哪一条,就是哪个。rn比如 rn1 2 rnrn2 2rnrn这样第一次赋值value=1,第二次不就是该value=2了么? 怎么一直是1?
帮我看下为什么会乱码
我看很久了,没找到原因rnrnrntest.jsprn[code=Java]rnrnrnrn rn rn[/code]rnrnGetRoots.tagrn[code=Java]rnrnrnrn rnrn[/code]rnrn
新手提问。。帮我看下为什么
rnrn rn名称rnrnrnrnrn这个是.html文件rnrnrn HelloWorld!rnrnHello!rnrnrn这个是.jsp文件,,可是执行后并没有产生jsp的动态传送数据的效果rn而是问我要不要下载.jsp的文件呢。rnrn刚学哈,谢谢。rnrnrn
帮我看下为什么是这样
class ReferencesTest rn public static void main(String[] arguments) rn Point pt1, pt2;rn pt1 = new Point(100, 100);rn pt2 = pt1;rnrn pt1.x = 200;rn pt1.y = 200;rn System.out.println("Point1: " + pt1.x + ", " + pt1.y);rn System.out.println("Point2: " + pt2.x + ", " + pt2.y);rn rnrn答案:Point1: 200, 200rnPoint2: 200, 200rn<em>为什么</em>不是Point1: 200, 200rnPoint2: 100,100呢,rnPoint pt1, pt2;rn pt1 = new Point(100, 100);rn pt2 = pt1;rnrn pt1.x = 200;rn pt1.y = 200;rn System.out.println("Point1: " + pt1.x + ", " + pt1.y);rn System.out.println("Point2: " + pt2.x + ", " + pt2.y);rn等于Point pt1, pt2;rn pt1 = new Point(100, 100);rn rnrn pt1.x = 200;rn pt1.y = 200;rn pt2 = pt1;rn System.out.println("Point1: " + pt1.x + ", " + pt1.y);rn System.out.println("Point2: " + pt2.x + ", " + pt2.y);么?????rn
帮我看下为什么编译不过去
rn这是C++ primer 上的例子,我想<em>看下</em>是不是list成功复制了words里面的元素,又或者只是初始化了list的范围,下面的程序编译不过去,提示:rn This conversion requires a reinterpret_cast, a C-style cast or function-style castrnrn我不知道怎么解决rnrn[code=c/c++]rnrn#include rn#include rnrnusing namespace std;rnrnint main()rnrn char *words[]="This","is","a","test";rn size_t words_size = sizeof(words)/sizeof(char *);rn list words2(words,words+words_size); //注释掉这句可以正常编译rnrn return 0;rnrnrn[/code]rnrn
为什么会这样帮我看下
rn这个是源码里的rnimgUrl[++n]='';rnimgText[n]='123';rnimgLink[n]='http://www.webjx.com';rn我用了 而在后台也声明了 public string imgUrl;rnrn<em>为什么</em>当我运行的时候还的提示未声明名称imgUrl呢 哪个大虾告诉我哈
帮我看下为什么出错啊!!
下面的程序是按照书上打的,没有打错,但不知道为何会提示424错误,找不到对象呢(红字部分),本人刚学VB请各位指导一下啊!!!rnrn标准模块的代码:rnType recordtypern emname As String * 10rn unit As String * 15rn age As Integerrn salary As SinglernEnd Typernrn'顺序写入rnSub file_write()rnDim aspect As StringrnDorn [color=#FF0000]recordvar.emname = InputBox$("姓名:")[/color]rn recordvar.unit = InputBox("所在单位:")rn recordvar.age = InputBox("年龄:")rn recordvar.salary = InputBox("工资:")rn recordnumber = recordnumber + 1rn Put #1, recordnumber, recordvarrn aspect = InputBox("more(Y/N)")rnLoop Until UCase(aspect) = "N"rnEnd Subrn'顺序读出rnSub file_read1()rnDim i As IntegerrnClsrnFontSize = 12rnFor i = 1 To recordnumberrn Get #1, i, recordvarrn Print recordvar.emname, recordvar.unitrn Print recordvar.age, recordvar.salary, Loc(1)rnNext irnEnd Subrn'随机读出rnSub file_read2()rnDim getmorerecords As BooleanrnDim recordnum As Integerrngetmorerecords = TruernClsrnFontSize = 12rnDorn recordnum = InputBox("enter record number for part you want to see(0 to end):")rn If recordnum > 0 And recornum deleterecrn End SelectrnGoTo beginrnEnd Sub
帮我看下为什么是空值
我点图片时自动打开一新窗体代码如下window.open("CreditsMgnt.go?method=selFromCardCode&mark=first&label=frmCredits.toCardCode","","top=100,left=100,toolbar=no,center=yes,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=540,height=400");rnrn当我在那个打开的页面去alert($param.["label"]);却是个null值rn这是<em>为什么</em>啊 ?rn但是如果我在那个页面条状的action中用reqeust.setAtrribute("lable",lable);又有值rn当我点图片到我到页面alert()这过程是一个request。但<em>为什么</em>取不到了?高手赐教
select 动态加载option标签出不来,麻烦大神看下是什么原因?
[code=java] $.ajax(rn async: false,rn type: "post",rn dataType: "json",rn url: "$ctx/oa/mettingreco/meeting/toSelect3",rn data:str:"$str",rn success: function (result) rn for(var i=0;i"+result[i]+"");rn rn ,rn error: function () rn return null;rn rn );[/code]rn[img=https://img-bbs.csdn.net/upload/201709/26/1506419656_626565.png][/img]
帮我看下这段代码的意思
$(function()rn rn $.extend($.fn.validatebox.defaults.rules, rn maxLength: rn validator: function(value, param) rn return value.length rn rn ); rn);
帮我看下怎样写这个MakeFile,谢谢
我写了一个程序,里面用到MySQL的C API,如果是在VC或在Linux下的NetBean之类的IDE我是知道怎样做的,反正就是将mysql头文件的文件夹加入到工程的环境变量中(好像是additional directories),然后再将动态或静态库文件(LIB)加入到工程中。rnrnrnrnrn我写得很简单的,就是在main函数里面<em>调用</em>就可以了,我写的makefile是这样的:rnrnmain : main.orn(tab)g++ -g -o main main.ornrnmain.o : main.cpprn(tab)g++ -g -c main.cpprnrnclean :rn(tab)rm main main.ornrnrn请问有没有人怎样能够将mysql链接进去?rnmysql目录与main.cpp在同一个目录下, mysql/include 这个文件夹下是要包含的头文件, mysql/lib/libmysql.so 是要链接的库文件 rnrn谢谢!
昨天服务器被攻击 谁帮我看下
昨天网站别人攻击 别人反映打不开网站 rn 我登服务器查看 发现TCP连接有2000条 sys ACK 都10几连连接 rn 当时我毫不犹豫的把并发数限制了 5分钟后恢复了正常 重启SQL rn 当时太急 没有看网络利用率 不知道是不是吃了我100MB带宽 rn CPU 内存(4核4G) 都使用时正常的 rn 连接状态都是Clost wait rn 谁知道这是什么攻击方法
帮我看下这正则表达式啥意思?
[color=#0000FF]string[/color] pattern = @"(?) 这串应该是正则表达式吧? 啥意思?求详解?
代码有病毒,谁帮我看下
rnrnrnrnrn rn rn rnrn
写出病毒了,汗颜。。。谁帮我看下
[code=Assembly]rn;用Eratosthenes筛法 计算出2~65000之间的素数rnINCLUDE Irvine32.incrnrnSPACE=' 'rnrn.datarnArray BYTE 65000 DUP(?)rnrn.codernmain PROCrn mov edi,OFFSET Arrayrn mov ecx,65000rn mov al,0rn cldrn rep stosbrnrn call Eratosthenesrnrn exitrnmain ENDPrnrnEratosthenes PROCrn mov esi,2rn mov ecx,64998rnL1:rn cmp Array[esi],0rn jne L2rn mov edi,esirn inc edirn push ecxrn dec ecxrn L3:rn mov eax,edirn cdqrn div esirn cmp edx,0rn jne L4rn mov Array[edi],1rn L4:rn inc edirn Loop L3rn pop ecxrnL2:rn inc esirn Loop L1rnrn retrnrnEratosthenes ENDPrnrnEND main[/code]
OpenGL Demo下载
一个OpenGL的例子,是我的计算机图形学的作业 相关下载链接:[url=//download.csdn.net/download/dreamzhangzhong/2042861?utm_source=bbsseo]//download.csdn.net/download/dreamzhangzhong/2042861?utm_source=bbsseo[/url]
关于高铁轨道板精调 调板 高铁下载
此书内容是关于高铁调板的方法及要求。以及在调板过程中的速度,让你如何加快速度调板。 相关下载链接:[url=//download.csdn.net/download/xhsh1989/2883250?utm_source=bbsseo]//download.csdn.net/download/xhsh1989/2883250?utm_source=bbsseo[/url]
学生成绩管理系统下载
五个定义类 用文本.dat格式储存数据 必须先登录才能访问学生类中的私有信息 管理员拥有增删改查权限 普通用户只有查看权限 相关下载链接:[url=//download.csdn.net/download/nanty95/4974195?utm_source=bbsseo]//download.csdn.net/download/nanty95/4974195?utm_source=bbsseo[/url]
我们是很有底线的