求大佬帮我改代码进入网站 [问题点数:40分]

Bbs1
本版专家分:0
结帖率 0%
Bbs1
本版专家分:0
Bbs1
本版专家分:0
帮我改一下代码
<em>网站</em>LOGO位置不正确,上面有空的地方,图片变大就显示传位了,www.huolinhe.com 哪位高手帮忙修改一下rnrn rn rn rn rn rn rn rn 用户名:rn 密码:rn rn 忘记密码?rn 注册rn rn rn rn rn rn rn rn 站内搜索 | <em>网站</em>地图 | 设为首页 | 加入收藏rn rn rnrn rn rn rnrn rn rn 首页 rn dir:category parentid="$catid" row="8" mod="1" type="top"rn code $childrenid=get_childrencatid(mydc:id);rn mydc:catnamern /dir:categoryrn rnrn rn rnrn rn rn rn 大家都在搜:hotkeywords('weight',6)rn rn
帮我代码
dim Ausername,Axingmcolor,Abiaoqing,Atowho,Acontent,AsaycolorrnAusername=session("username")rn Axingmcolor=request("xmcolor")rn Abiaoqing=request("bqing")rn Atowho=request("twho")rn Acontent=Server.HTMLEncode(request("text"))rn Acontent=replace(Acontent,"'","''")rn Asaycolor=request("scolor")rnSet conn = Server.CreateObject("ADODB.Connection")rnDBPath = Server.MapPath("../db/ktjlu.mdb")rnconn.Open "driver=Microsoft Access Driver (*.mdb);dbq=" & DBPathrnSet rs = Server.CreateObject("ADODB.Recordset")rnrs.Open "Select * from newchat Order By chattime desc",conn,3,3rnrnrs.AddNewrnrs.fields("username")=Ausernamernrs.fields("xingmcolor")=Axingmcolorrnrs.fields("biaoqing")=Abiaoqingrnrs.fields("towho")=Atowhornrs.fields("content")=Acontentrnrs.fields("saycolor")=Asaycolorrnrs.fields("chattime")=now()rnrs.Updaternrnrs.Closernset rs=Nothingrnconn.Closernset conn=Nothingrn怎么在update处出错,chattime是主键rn
帮我改一下代码!!
< ds.Tables[0].Rows.Count ; i++)rn%>rn rn rn这是C#的留言板,请问怎样把它改成VB的,这是在aspx页面里的<em>代码</em>怎样改.
求那个大佬帮我改下代码能进去的代码
001rnrn002rnrn003rnrn004rn rn005rn rn006rn rn007rn rn008rn Login — LION CMSrn009rn rn010rn rn011rn rn012rn rn013rn rn014rn rn015rn rn016rn rn017rn rn018rnrn019rnrn020rn rn032rn rn033rn rn034rn rn035rn rn036rn rn037rn rn038rn rn039rn rn040rn rn041rn rn042rn rn043rn rn044rn rn045rn rn046rn 手机号:rn047rn rn048rn rn049rn rn050rn rn051rn rn052rn rn053rn rn054rn rn055rn 验证码:rn056rn rn057rn rn058rn rn059rn rn060rn rn061rn rn062rn rn063rn rn064rn rn065rn rn066rn 登录 rn067rn rn068rn rn069rn rn070rn rn071rnrn072rn rn125rnrn126rnrn
大佬们,求一串代码
我现在有 此处省略5000字符标签,高度不固定。rn求<em>代码</em>rn当 高度低于100px的时候,不做修改,当高度超过100px的时候,给pre赋值style="max-height:100px;overflow:hidden;",并在pre的底部显示“显示全部内容”,点击文字钮就把style="max-height:100px;overflow:hidden;"移除,这样就能显示 全部的内容。rn总结来说,就是我pre内容如果太多,超过了100px高度,就把per设置最大高度max-height:100px;并禁止滚动条,此时点击“阅读全部”文字,则移除style,并隐藏“阅读全部”这几个字rnrn有没有哪个老铁有现成的案例或者<em>代码</em>,先行谢过。
求高手改代码
原来的<em>代码</em>是利用FSO功能生成树状目录,我现在想把它分出来直接形成ASP文件的方式调用生成树状目录,细节上老改不好,高手帮改一下rn+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++rnrnrnrn rn rn rn rn rn rn rn 树文件己经被生成,请点击文档管理进行查看!rn rn rn
求改代码,谢谢!
做一个数据搜索的<em>网站</em>,往四个文本框或者只往其中任意文本框中输入,按提交,相应的结果就会以网页的形式出来。 rnrn以下是四个文本框的<em>代码</em>:rnform.phprn[code=PHP]rn rn rn rn rn rn rn rn rn[/code]rnrndata.phprn[code=PHP]rn'township','Range'=>'range', 'dirid'=>'dir', 'Section'=>'section'); $where=''; $and=''; foreach ($map as $k => $v) if (!empty($_GET[$v])) $where.=$and.$k.'='.$_GET[$v]; $and=' and '; $query =" SELECT Business_Owner,Business_Name,Mailing_Address,Phone_Number,Crop_Type,Crop_Location,Section,Township,Range,Quarter,Acreage,County FROM pesticide_sensitive_crop ORDER BY Township"; if (!empty($where)) $query.=' WHERE '.$where; rnrn?>rn[/code]rnrn因为其他三个文本框(name="township",name="range",name="section")输入的都是整数,只有这个'name' 为'dir'文本框中是输入"E"或"W", 我在数据库中增加了一列('dirid'),用'1'代表"E", 用'2' 代表"W", 这样做的话往文本框输入 1 或 2 可以搜索出数据,可是怎么做,能直接往'dir'文这个本框直接输入 E 或者 W , 也可以得到相同的结果呢?rnrn谢谢大家帮忙!rn
求改代码
下面是为了实现删除会员以及会员的连带关系的<em>代码</em>,rn每次点击删除时,都有显示删除成功,但实际没有删除。rnrnrnrnrnalert('删除成功!');history.back();";rnelsern echo " ";rnrn?>
帮我改一段代码
刚才看写了一段<em>代码</em>但是错了:(rn<em>帮我</em>改一下吧。谢谢rn------------------------------rnpublic class MyTestrn public static void main (String[] t)rn outTest;rn rn rn public outTestrn System.out.println("My Test");rn rn
>>请帮我改一下代码?<<
我想根据条件,在GRID显示合条件的记录??rnrnthisform.GRid1.RecordSource =''rnIF !USED('proinfo')rn USE proinforn ENDIFrn rnselect proinfornrninarea=ALLTRIM(thisform.text1.Value)rnrnif proinfo.pro_agent != inarearn go toprn messagebox('没有记录存在,请重请查找',48,'信息窗口')rn thisform.GRid1.RecordSource='proinfo'rn Thisform.text1.Value=''rn Thisform.text1.SetFocus rnelsernrn thisform.GRid1.RecordSource='proinfo'rn thisform.GRid1.refreshrnrnendifrnrn谢谢!rn
帮我改写下代码
[code=C/C++]#include rn#include rnrn#define ENTER 10rn#define ESCAPE 27rnvoid init_curses()rnrn initscr();rn start_color();rn init_pair(1,COLOR_WHITE,COLOR_BLUE);rn init_pair(2,COLOR_BLUE,COLOR_WHITE);rn init_pair(3,COLOR_RED,COLOR_WHITE);rn curs_set(0);rn noecho();rn keypad(stdscr,TRUE);rnrnvoid draw_menubar(WINDOW *menubar)rnrn wbkgd(menubar,COLOR_PAIR(2));rn waddstr(menubar,"Menu1");rn wattron(menubar,COLOR_PAIR(3));rn waddstr(menubar,"(F1)");rn wattroff(menubar,COLOR_PAIR(3));rn wmove(menubar,0,20);rn waddstr(menubar,"Menu2");rn wattron(menubar,COLOR_PAIR(3));rn waddstr(menubar,"(F2)");rn wattroff(menubar,COLOR_PAIR(3));rnrnWINDOW **draw_menu(int start_col)rnrn int i;rn WINDOW **items;rn items=(WINDOW **)malloc(9*sizeof(WINDOW *));rnrn items[0]=newwin(10,19,1,start_col);rn wbkgd(items[0],COLOR_PAIR(2));rn box(items[0],ACS_VLINE,ACS_HLINE);rn items[1]=subwin(items[0],1,17,2,start_col+1);rn items[2]=subwin(items[0],1,17,3,start_col+1);rn items[3]=subwin(items[0],1,17,4,start_col+1);rn items[4]=subwin(items[0],1,17,5,start_col+1);rn items[5]=subwin(items[0],1,17,6,start_col+1);rn items[6]=subwin(items[0],1,17,7,start_col+1);rn items[7]=subwin(items[0],1,17,8,start_col+1);rn items[8]=subwin(items[0],1,17,9,start_col+1);rn for (i=1;i,i);rn wbkgd(items[1],COLOR_PAIR(1));rn wrefresh(items[0]);rn return items;rnrnvoid delete_menu(WINDOW **items,int count)rnrn int i;rn for (i=0;i
求大神改代码!!!!
nnnnn n 话题信息n n n nnn n 已有话题信息列表:n n 搜索: 标题:n nnn list = PageManager.getPages(url,15,sql, request); n int i=0;n for(HashMap map:list) n i++;n n nnn %>n n n 序号n 标题n n 添加人n n 评论管理n 添加时间n n 操作n n n n n n n &biao=huatixinxi">评论管理n n " onClick="return confirm('真的要删除?')">删除 ">详细 n n nn n n$page.info nnn nnn删除那加一个判断语句,如果是‘’超级管理员‘’执行删除,否则提示“您没有此权限”n这是我自己 弄得不行,可以参考一下:n" onClick="return confirm('真的要删除?')">删除 n我不懂写<em>代码</em>,最好能给我对的能实现的<em>代码</em>,谢谢。
求改c#代码
如题 为什么我调试后表不显示表头也不现实 就空白的。。。[img=https://img-bbs.csdn.net/upload/201605/18/1463577532_587927.png][/img]
帮我改一下连接池代码
<em>帮我</em>把下面的连接池<em>代码</em>改一下,rn我想在连接数达到maxConn时,再从连接池获取连接时,就把正在使用的第一个连接(使用最长的那个)拿去用。rnrnpackage com.aaa.db;rnrnrnimport java.io.*;rnimport java.sql.*;rnimport java.util.*;rnimport java.util.Date;rnrn/**rn* 管理类DBConnectionManager支持对一个或多个由属性文件定义的数据库连接rn* 池的访问.客户程序可以调用getInstance()方法访问本类的唯一实例.rn*/rnpublic class DBConnectionManager rn static private DBConnectionManager instance; // 唯一实例rn static private int clients;rnrn private Vector drivers = new Vector();rn private PrintWriter log;rn private Hashtable pools = new Hashtable();rn /**rn * 返回唯一实例.如果是第一次调用此方法,则创建实例rn *rn * @return DBConnectionManager 唯一实例rn */rn static synchronized public DBConnectionManager getInstance() rn if (instance == null) rn instance = new DBConnectionManager();rn rn clients++;rn return instance;rn rnrn /**rn * 建构函数私有以防止其它对象创建本类实例rn */rn private DBConnectionManager() rn init();rn rnrn /**rn * 将连接对象返回给由名字指定的连接池rn *rn * @param name 在属性文件中定义的连接池名字rn * @param con 连接对象rn */rn public void freeConnection(String name, Connection con) rn DBConnectionPool pool = (DBConnectionPool) pools.get(name);rn if (pool != null) rn if (con!=null)rn tryrn rn pool.freeConnection(con);rn System.out.println("Free Conn:" + con.toString());rn System.out.println("Current Free Connection in pool " + name + ":" +rn getFrees(name));rn System.out.println("Current Inuse Connection in pool " + name + ":" +rn getInuses(name));rn catch(NullPointerException ex)rn rn System.out.println("UCBBS System Free Conn ERROR!");rn rn rn rn rnrn /**rn * 获得一个可用的(空闲的)连接.如果没有可用连接,且已有连接数小于最大连接数rn * 限制,则创建并返回新连接rn *rn * @param name 在属性文件中定义的连接池名字rn * @return Connection 可用连接或nullrn */rn public Connection getConnection(String name) rn DBConnectionPool pool = (DBConnectionPool) pools.get(name);rn if (pool != null) rn return pool.getConnection();rn rn return null;rn rnrn /**rn * 获得一个可用连接.若没有可用连接,且已有连接数小于最大连接数限制,rn * 则创建并返回新连接.否则,在指定的时间内等待其它线程释放连接.rn *rn * @param name 连接池名字rn * @param time 以毫秒计的等待时间rn * @return Connection 可用连接或nullrn */rn public Connection getConnection(String name, long time) rn DBConnectionPool pool = (DBConnectionPool) pools.get(name);rn if (pool != null) rn return pool.getConnection(time);rn rn return null;rn rn /**rn * 将文本信息写入日志文件rn */rn private void log(String msg) rn log.println(new Date() + ": " + msg);rn rn /**rn * 将文本信息与异常写入日志文件rn */rn private void log(Throwable e, String msg) rn log.println(new Date() + ": " + msg);rn e.printStackTrace(log);rn rnrn /**rn *重至某个连接池rn */rn public void resetPool(String name) rn DBConnectionPool pool = (DBConnectionPool) pools.get(name);rn if (pool != null) rn pool.release() ;rn rn rnrn /**rn *得到现有的空连接数rn */rn public int getFrees(String name)rn DBConnectionPool pool = (DBConnectionPool) pools.get(name);rn if (pool != null) rn return pool.getFrees() ;rn rn return -1 ;rn rnrn /**rn *得到当前正在使用的连接数rn */rn public int getInuses(String name)rn DBConnectionPool pool = (DBConnectionPool) pools.get(name);rn if (pool != null) rn return pool.getInuses() ;rn rn return -1 ;rn rnrn /**rn * 关闭所有连接,撤销驱动程序的注册rn */rn public synchronized void release() rn // 等待直到最后一个客户程序调用rn if (--clients != 0) rn return;rn rn Enumeration allPools = pools.elements();rn while (allPools.hasMoreElements()) rn DBConnectionPool pool = (DBConnectionPool) allPools.nextElement();rn pool.release();rn rn Enumeration allDrivers = drivers.elements();rn while (allDrivers.hasMoreElements()) rn Driver driver = (Driver) allDrivers.nextElement();rn try rn DriverManager.deregisterDriver(driver);rn log("撤销JDBC驱动程序 " + driver.getClass().getName()+"的注册");rn rn catch (SQLException e) rn log(e, "无法撤销下列JDBC驱动程序的注册: " + driver.getClass().getName());rn rn rn rnrn
帮我改一下这个代码。。
[code=text]rnresponse.Write("[")rnIF Not rstur.Bof And Not rstur.Eof Thenrni=1rnDo Until rstur.EOF OR i=harbatta+1rnresponse.Write("""id"":"""&rstur("id")&""",""title"":"""&rstur("name")&""",""updatetime"":"""&FormatDate(rstur("add"),3)&""",")rnrstur.movenextrni=i+1rnlooprnresponse.Write("]")rn[/code]rnrn显示这样。。 但是ajax 错误。。。。rn[code=text]rn["id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25","id":"245","title":"标题","updatetime":"09-25",]rn[/code]rnrn[size=18px]怎么去掉最后的 ] 前面的 , <em>帮我</em>。。[/size] rnrn
帮我改一段代码,谢谢
我在设计时拖了一个GridView,然后配置好数据源,请问我怎样才能根据GridViewRow取某个字段的值?(System.Web.UI.WebControls.GridViewRow)rnrn我的<em>代码</em>如下:<em>帮我</em>修理修理,谢谢!rn--------------------------------------------------------------------rn Protected Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.Clickrn Dim Msg As Stringrn Tryrn '刷新数据rn SqlDataSource1.SelectCommand = " SELECT [FUserID], [FUserName], [FPassword], [FIndex], [FRemark] FROM [T_User] "rn '取数rn Msg = GridView1.SelectedRow.DataItem("FUserName").ToStringrn MsgBox(Msg)rn Catch ex As Exceptionrn MsgBox("取数错误: " & ex.Message)rn End Tryrn End Subrn--------------------------------------------------------------------rn运行结果:rn取数错误: 未将对象引用设置到对象的实例。rn
大家帮我改一下代码
功能是做一个排行榜,如果标题长度大于10就取子串,后面加…rn我写的这个怎么去不准阿,而且都加…rnrn10 thenrnresponse.Write left(rs("softName"),10)&"…"rnelse response.Write rs("softName")rnend ifrn%>rnrn谢谢各位啦
大佬指导一下,web项目静态网站
我们JAVA老师教我们做静态<em>网站</em>,全程复制粘贴,什么都不解释,然后我靠自己自学,大慨懂了根据DAO这种方法实现在<em>网站</em>上对数据库的操作,可是有些核心<em>代码</em>根本不会,求<em>大佬</em>指导。基本的DAO,连接数据库都做好了。就是不知道要怎么实现,增查的<em>代码</em>该怎么做。删除已做好rn[img=https://img-bbs.csdn.net/upload/201812/03/1543814132_94081.png][/img][img=https://img-bbs.csdn.net/upload/201812/03/1543814143_937314.png][/img]rnrn1.delete.jsprnrnrnrnrnrn rn rn rn My JSP 'index.jsp' starting pagern 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 rn rn rn rn rn rn rn rn rn rn 管理员:xxx,欢迎您!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 学号: 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 rn rn rn rn rn 关于我们 | <em>网站</em>声明 版权所有©2014-2015 贵州财经大学 Eastmount rn 京ICP备10009636号 rn rn rn rn rn rn rnrnrnrn2. DAO StudentDAO.javarnpackage DAO;rnrnimport java.sql.Connection;rnimport java.sql.PreparedStatement;rnimport java.sql.ResultSet;rnimport java.util.ArrayList;rnimport java.util.List;rnrnimport bean.Student;rnimport util.JDBCConnect;rnrnpublic class StudentDAO rn rn //插入学生rn public static int insert(Student stu) throws Exception rnrn String sql = "INSERT INTO student (id,name,password) VALUES (?,?,?) ";rn return JDBCConnect.executeUpdate(sql, stu.getId(),stu.getName(),stu.getPassword());rn rn rn //更新学生姓名rn public static int update(Student stu) throws Exception rnrn String sql = "UPDATE student SET stuid = ? WHERE username = ? ";rn return JDBCConnect.executeUpdate(sql,stu.getId(),stu.getName());rn rnrnrn //删除操作rn public static int delete(String id) throws Exception rnrn String sql = "DELETE FROM student WHERE id = ? ";rn return JDBCConnect.executeUpdate(sql, id);rn rn rn //查找记录 某学号rn public static Student find(Integer id) throws Exception rn rn String sql = "SELECT * FROM student WHERE stuid = ? ";rn Connection conn = null;rn PreparedStatement preStmt = null;rn ResultSet rs = null;rnrn try rn //链接数据库执行SQL语句rn conn = JDBCConnect.getConnection(); //连接默认数据库rn preStmt = conn.prepareStatement(sql);rn preStmt.setInt(1, id);rn rs = preStmt.executeQuery();rn //获取查询结果rn if (rs.next()) rn Student student = new Student();rn student.setId(rs.getString("id"));rn student.setName(rs.getString("name"));rn return student;rn else rn return null;rn rnrn finally //依次关闭 记录集 声明 连接对象rn if (rs != null)rn rs.close();rn if (preStmt != null)rn preStmt.close();rn if (conn != null)rn conn.close();rn rn rn rn //查询所有学生信息rn public static List listStudents() throws Exception rnrn List list = new ArrayList();rn String sql = "SELECT * FROM student";rn Connection conn = null;rn PreparedStatement preStmt = null;rn ResultSet rs = null;rnrn try rn conn = JDBCConnect.getConnection();rn preStmt = conn.prepareStatement(sql);rn rs = preStmt.executeQuery();rn while (rs.next()) rn //设置数据库中表参数 否则报错java.sql.SQLException: Column 'id' not found.rn Student student = new Student();rn student.setId(rs.getString("id")); rn student.setName(rs.getString("name"));rn student.setPassword(rs.getString("password"));rn list.add(student);rn rn rn finally rn if (rs != null)rn rs.close();rn if (preStmt != null)rn preStmt.close();rn if (conn != null)rn conn.close();rn rn return list;rn rn rnrn[img=https://img-bbs.csdn.net/upload/201812/03/1543814368_738614.png][/img][img=https://img-bbs.csdn.net/upload/201812/03/1543814377_109228.png][/img]rn
有没有大佬帮我看看,
总是出栈后gettop就成空白了=.=求大神指点,万分感谢程序本身没有语法错误,qu'x#include &quot;stdafx.h&quot;using namespace std;void ShowStackMenu(){    cout &amp;lt;&amp;lt; &quot;\n&quot;;    cout &amp;lt;&amp;lt; &quot;  ************《线性表》*************\n&quot;;    cout &amp;lt;&amp;lt; ..
大佬帮我看看
[code=java]rnpackage cn.dome;rnrnimport java.io.File;rnrnpublic class Copy rn public static void main(String[] args) rn File fi = new File("D:\\");rn File[] fileArray = fi.listFiles();rn try rn CopyFile.Copy(fileArray, "D:\\filename", "txt");rn catch (Exception e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn rnrnrn[/code]rnrnrnrnrn[code=java]rnpackage cn.dome;rnrnimport java.io.BufferedReader;rnimport java.io.BufferedWriter;rnimport java.io.File;rnimport java.io.FileReader;rnimport java.io.FileWriter;rnrnpublic class CopyFile rn public static void Copy(File[] file,String s,String st) throws Exceptionrn File desFile = new File(s);rn rn if(!desFile.exists())rn desFile.mkdirs();rn rn for (File file2 : file) rn if(file2.isFile())rn if(file2.getName().endsWith(st))rn BufferedReader br = new BufferedReader(new FileReader(file2));rn BufferedWriter bw = new BufferedWriter(new FileWriter(desFile));rn String len = null;rn while((len=br.readLine()) != null)rn bw.write(len);rn bw.newLine();rn bw.flush();rn rn bw.close();rn br.close();rn rn elsern File[] filess = file2.listFiles();rn Copy(filess, s, st);rn rn rn rnrnrnrn[/code]rnrnrnrn无法访问D盘什么鬼
【求助】大佬大佬帮我看看鸭,感谢!!!!!!
【求助】我想要完成两个任务 将两个txt文件内容拼接到一起,存入第三个txt文件 读取txt文件中特定的列 我将整合的任务写在函数ad里,但是我发现它只能用一次 我重复调用ad时它并不会进行两次拼接 然后就是 我觉得我第二个读取特定的列的函数也没错,但调用时没反应。。。。。 <em>代码</em> #include&amp;lt;fstream&amp;gt; #include&amp;lt;sstream&amp;gt; #includ...
大佬 学习---网站 登录
用户登录  生成token  和令牌令牌上传数据库 (唯一)每次用户调用 api  上传token 验证token  是否符合格式调用数据库 验证tokentoken 过期  调用令牌验证令牌是否过期没过期从返回新token...
进入共享的密码
谁知道怎么改密码 描述:在第一次<em>进入</em>局域网共享是需要输入这台电脑的管理用户名和密码 以后就记录了 就不用在输入 . 但是如果这台电脑改了管理密码 ,<em>进入</em>共享时 还是用着以前记录的密码 ,如何改这个密码.还有如何在使<em>进入</em>共享时出现输入 管理帐号和密码的对话框
求懂汇编的人帮我改一行代码
0E1A75EA - f2 0f 10 40 04 - movsd xmm0,[eax+04]rn0E1A75EF - 8b 05 d8 90 12 08 - mov eax,[081290d8] : 00000000rn0E1A75F5 - 85 c0 - test eax,eaxrn0E1A75F7 - 0f 85 28 00 00 00 - jne 0e1a7625rn0E1A75FD - 8b 45 08 - mov eax,[ebp+08]rn0E1A7600 - 8b 10 - mov edx,[eax]rn0E1A7602 - 8b 52 14 - mov edx,[edx+14]rn0E1A7605 - 8b 52 10 - mov edx,[edx+10]rn0E1A7608 - 83 e2 f8 - and edx,f8rn0E1A760B - 8b 52 24 - mov edx,[edx+24]rn0E1A760E - f2 0f 2a ca - cvtsi2sd xmm1,xmm2rn0E1A7612 - f2 0f 59 c1 - mulsd xmm0,xmm1rn0E1A7616 - f2 0f 11 41 18 - movsd [ecx+18],xmm0rnrnrn以上是反汇编出来的<em>代码</em>。关键就在最后这句movsd [ecx+18],xmm0,给ecx+18这个地址写一个数据。我想要的结果是把这个ecx+18地址里的数据每次都写为100000000(10进制1亿),可是我改为movsd [ecx+18],05f5e100就报错。05f5e100就是1亿的16进制形式。
求高手帮我改一下代码能兼容IE6
求高手<em>帮我</em>改一下rn现在这段<em>代码</em>在ie7 ie8中执行没问题,但是到ie6下就错位rn希望有高手给指点下rn让这<em>代码</em>在ie6下浏览跟ie7 8一样了rnrn[code=HTML]rnrnrnrn rn rn 无标题文档rn rnrnrnrn rn rn rn EXCEL导出Excel表格 名称rn rn rn rnrnrnrn rnrnrnrnrnrnrnrn[/code]
求改一小段代码
采用CPU的I/O指令操作硬盘控制器,读取硬盘的序列号: rn static int WaitIde() rn rn int al; rn while ((al=inp(0x1F7)) >=0x80) ; rn return al; rn rn static void ReadIDE() rn rn int al; rn int i; rn WORD pw[256]; rn WaitIde(); rn outp(0x1F6,0xA0); rn al = WaitIde(); rn if ((al&0x50)!=0x50) return; rn outp(0x1F6,0xA0); rn outp(0x1F7,0xEC); rn al = WaitIde(); rn if ((al&0x58)!=0x58) return; rn for (i=0;i< 256;i++) rn pw[i] = inpw(0x1F0); rn rn<em>代码</em>中的16进制数什么意思?rnrn能把上面的<em>代码</em>改成读取U盘的序列号的么?
求改代码及注释,谢谢!
#include rn#include rnusing namespace std;rnrntemplate rnstruct TreeNodernrn T val; rn TreeNode* left;rn TreeNode* right;rn TreeNode(T value):val(value),left(NULL),right(NULL)rn;rnrntemplaternclass BinTreernrn public:rn TreeNode* _root;rn BinTree(TreeNode* root):_root(root)rn void preOrder(TreeNode* root);rn void inOrder(TreeNode* root);rn void postOrder(TreeNode* root);rnrn;rntemplaternvoid postGoAlongLeft(TreeNode* root,stack*,bool> >& pairStack)//pair是一种模板类型,可存储两个值 rnrn TreeNode* t = root;rn while(t)rn rn if(t)rn pairStack.push(make_pair(t,false));rn t = t->left;rn rnrntemplaternvoid BinTree::postOrder(TreeNode* root)rnrn stack*,bool> > pairStack;rn postGoAlongLeft(root,pairStack);rn while(pairStack.size())rn rn pair*,bool>&t = pairStack.top();rn if(!t.first->right||t.second)rn rn visit(t.first);rn pairStack.pop();rn elsern rn t.second = true;rn postGoAlongLeft(t.first->right,pairStack);rn rn rnrntemplaternvoid visit(TreeNode* node)rnrn cout< nodeStack;rn goAlongLeft(root,nodeStack);rn while(nodeStack.size())rn rn TreeNode* t = nodeStack.top();rn nodeStack.pop();rn visit(t);rn if(t->right)rn goAlongLeft(t->right,nodeStack);rn rnrntemplaternvoid goAlongLeft(TreeNode* root,stack*>& nodeStack)rnrn TreeNode* t = root;rn while(t)rn rn nodeStack.push(t);rn t=t->left;rn rnrntemplaternvoid goAlongWithLeft(TreeNode* root,stack*>& nodeStack)rnrn TreeNode* t = root;rn while(t)rn rn nodeStack.push(t);rn visit(t);rn t=t->left;rn rnrntemplaternvoid BinTree::preOrder(TreeNode* root)rnrn if(!root)rn return;rn TreeNode* t;rn stack*> nodeStack;rn goAlongWithLeft(root,nodeStack);rn while(nodeStack.size())rn rn TreeNode* t = nodeStack.top();rn nodeStack.pop();rn if(t->right)rn goAlongWithLeft(t->right,nodeStack);rn rnrnint main()rn TreeNode* root = new TreeNode(1);rn root->left = new TreeNode(2);rn root->right = new TreeNode(3);rn root->right->left = new TreeNode(5);rn root->left->left = new TreeNode(4);rn BinTree binTree(root);rn cout << "Preorder sequence is ";rn binTree.preOrder(root);rn coutcol=level*SPAN;rn printResult[root->row][root->col]=root->data;rn rn preorderTraverse(root->lchild,level+1);rn preorderTraverse(root->rchild,level+1); rn rnrnrn//第二轮遍历填充父节点到子节点的连线rnvoid preorderForLine(BiTNode*root)rnrn if(root==NULL)return;rn rn int sCol=root->col;rn int sRow=root->row;rn rn if(root->lchild!=NULL)rn rn //当前子树根节点到左子节点的连线rn rn int eCol=root->lchild->col;rn int eRow=root->lchild->row;rn rn for(int i=sRow+1;irchild->col;rn int eRow=root->rchild->row;rn rn for(int i=sRow+1;ilchild);rnpreorderForLine(root->rchild);rnrnrn//扫描结果数组将其中右侧有横线的竖线替换为竖横线rnvoid processAfterOne(unsigned char array[][SPAN*4],int length0,int length1)rnrn for(int i=0;inul.");rn rn string PreArray,InArray;rn rn cout << "Please input preorder ";rn getline(cin,PreArray);rn rn cout << "Please input inorder ";rn getline(cin,InArray);rn rn BiTNode *T;rn rn PreInCreateTree(T,0,PreArray.size()-1,0,InArray.size()-1,PreArray,InArray); rnrn cout << "The postorder is ";rnrn PostOrder(T);rn rn cout << endl;rn rn cout<<
求改一句SHELL 代码
原句 /bin/awk 'for(i=3;i
求改代码!~~关于闰年的~~
void main()rnrnint year;rnprintf("Please input the year:");rnscanf("%d",year);rnif((year%4==0)&&(year%100!=0))rn printf("%d is leap year!",&year);rn return 0;rn rnif((year%100==0)&&(year%400==0))rn printf("%d is leap year!",&year);rn return 0;rn rnprintf("%d is not leap year!",&year);rnreturn 0;rn
求帮改c#代码
如题rnDateTime birthday;rnpublic string Birthdayrn rn get return birthday.ToString(); rn set birthday =[color=#FF0000] value[/color]; rn rn报错无法将类型string隐式转换为system.Datatime
求改一句SHELL代码
这个一个文件 叫TMPLOG ,内容如下 table_schema sum(data_length)/1024/1024 information_schema 0.00000000 rnmysql 0.45855141 test 0.01562500rnrn现在从第三个开始 一对一对输出 。就是一个名称 对一个一个数据量。下面已经实现了。rn:custommon:ind_information_schemarn MysqlUsed = 0.00000000 rn:custommon:mysql rn MysqlUsed = 0.45855141rn:custommon:testrn MysqlUsed = 0.01562500rnif [ -f $TMPLOG ]; thenrn /bin/awk 'for(i=3;i
java 循环代码求改
一张表格:rn编号:A 数量:10rn编号:A 数量:20rn编号:B 数量:30rn编号:C 数量:40rn编号:C 数量:50rn编号:C 数量:60rn编号:D 数量:70rn编号:获取的值 数量:手动录入的值rn编号:获取的值 数量:手动录入的值rn编号:获取的值 数量:手动录入的值rn编号是从数据库中取出来的 数量是自己填写的rnrn现在我想循环A 的数量有多少个,然后显示出来rn比如: 编号A,数量:30rn 编号B,数量:30rn 编号C,数量:150rn 编号D,数量:70rnrn请问java循环怎么写rnrnrn求一下<em>代码</em>怎么修改rn private void submit() rn int count = 0;rn String demoNo = "";rn for (int i = 0; i < subVos.size(); i++) rn demoNo = subVos.get(i).getSerialNub().toString(); //编号 数据库获取的值rn String number = subVos.get(i).getEditView().getText().toString();//数量 手动录入的值rn int k = 0;rn if("".equals(number))rn k = 0;rn elsern k = Integer.parseInt(number);rn rn count = count+k;rn System.out.print("编号:"+ demoNo +"总数量"+count);rn rn rn
求简单改一下代码
[code=JScript]rn(function()var a=document.getElementsByTagName("script");rnvar scriptfile=a[a.length-1];rnif(scriptfile.parentNode!=document.body)rn if(scriptfile.parentNode.style.display=="none")rn scriptfile.parentNode.style.display="";rn rnrn)();rnif(typeof iCast_Rotator!='function')iCast_Rotator=function(o,l,w)var f;this.o=o;this.j=l;this.v=this.o==1?l:w;this.id=iCast_Rotator.id++;this.m='iCast_Rotator_'+this.id;this.n=[];this.L=new Date();this.e=0;var D=false;for(var i=0;iM&&this.L>K)I=F%this.o+1;J=this.m+'_'+I;iCast_Rotator.P(J,this.L.getTime(),1440);this.e=I;return I;elsethis.e=0;return 0;;iCast_Rotator.id=1;iCast_Rotator.B=function(N)var c=document.cookie.split("; ");for(var i=0;i
求改JS分页代码
我用ajax做的一段查询后的<em>代码</em>rn前面action :用StringBuffer 拼出来的rn回调以后:rn。。。。。。省略rn http_request.onreadystatechange = function() rn if (http_request.readyState == 4 && http_request.status == 200) rn var xmldoc = http_request.responseXML;rn var cgs = xmldoc.documentElement.childNodes;rn var strhtml = "";rn rn rn strhtml += "共搜索到 " + cgs.lengthrn + " 项结果";rn strhtml += " ";rnrn for ( var i = 0; i < cgs.length; i++) rnrn var id = cgs[i].getAttribute("id");rn rnrn strhtml += " "rn + "id + "";rn rn rn rn strhtml += "";rnrn leftSlip.slipOut();rn leftSlip.msg.innerHTML = strhtml;rn rn rn实现的对id分页,(leftSlip左边的滑动)rn
简单作业代码。。求改
/*rnProject:假定按列主次序把一个稀疏矩阵映射到一个一维数组中rn 1)给出4-10a中稀疏矩阵的描述rn ---------------------------------rnrn a[] | 0 1 2 3 4 5 6 7 8rn -----+----------------------------rn row | 2 4 4 1 3 2 3 1 2 rn col | 2 2 3 4 4 5 6 7 8rn value| 6 4 5 2 9 7 8 1 3rn ----------------------------------rn [color=#800080]2)对按照这种方式存储的稀疏矩阵,编写相应的Store和Retrieve函数,store函数可以往稀疏矩阵中某位置存入一个数,retrieve函数可以在稀疏矩阵中搜索某位置并返回该位置的值[/color][b][/b]rnrn[color=#0000FF]我的思路:定义一个稀疏矩阵的类模板,然后稀疏矩阵中每一个元素定义为一个结构体(包括该位置的行列号和值)[/color]rn[color=#FF0000]我的问题:编译报错,实现不了[/color]rn 3)时间复杂性各是多少?rn*/rn#include rnusing namespace std;rnrntemplate rn struct elern rn int row,col;//非零元素所在的行和列rn T value;//非零元素的值rn;rnrntemplate rnclass SparseMatrixrnrn friend ostream& operator<< (ostream&, const SparseMatrix&);rn friend istream& operator>> (istream&, SparseMatrix&);rnpublic:rn SparseMatrix(int maxTerms = 10);rn ~SparseMatrix() delete [] a;rn SparseMatrix & Store(const T &x, int i,int j);//新添加的Store函数!!!!rn T Retrieve (int i,int j)const;//新添加的Retrieve函数!!!!!!rn rnrnprivate:rn // void Append(const Term& t);rn int rows, cols; // 矩阵维数rnrn int terms; // 非零元素个数rn ele *a; // 存储非零元素的数组rn int MaxTerms; //数组a的大小rn;rnrntemplate//***构造函数rnSparseMatrix::SparseMatrix(int maxTerms)rn// Sparse matrix constructor.rn if (maxTerms < 1) exit(1);rn MaxTerms = maxTerms;rn a = new ele [MaxTerms];rn terms = rows = cols = 0;rnrnrntemplate rnostream& operator<<< " columns = "<< x.cols << "rows = " << x.rows << endl;rn out << "nonzero terms = " << x.terms << endl;rnrn for (int i = 0; i < x.terms; i++)rn out << "a(" << x.a[i].col << ',' << x.a[i].rowrn << ") = " << x.a[i].value << endl;rn return out;rnrnrntemplaternistream& operator>>(istream& in, SparseMatrix& x)rn// Input a sparse matrix.rn cout << "Enter number of columns, rows, and terms"rn << endl;rn in >> x.cols >> x.rows >> x.terms;rn if (x.terms > x.MaxTerms) exit(1);rnrn for (int i = 0; i < x.terms; i++) rn cout << "Enter column,row, and value of term " rn << (i + 1) << endl;rn in >> x.a[i].col >> x.a[i].row>> x.a[i].value;rn rn return in;rnrnrntemplate//*********************storernSparseMatrix&SparseMatrix::Store(const T &x, int i,int j)rnrn for ( int b=0;b=p;m--)rn rn a[m+1]=a[m];rn rn a[p]=x;rn a[p].col=j;rn a[p].row=i;rn return *this;rn rn rnrnrntemplate//********************retrievernT SparseMatrix::Retrieve(int i,int j)constrnrn if (i>s;rn cout<
一段C++代码求改……
最近看模板元编程,就很想比较一下各种形式<em>代码</em>的效率,所以写了三段生成斐波那契数列的<em>代码</em>,分别是用while循环、函数嵌套、模板元。rn结果还是出错了- -||rnrn第一个方法是能够得到结果的(虽然int不够放后面的数的……rn第二个方法看着命令行狂跳一段时间之后,居然自动关闭了,纳闷,我明明写了getchar()为什么还会自动关闭呢?可能出现了错误,但不知道在哪,求解……rn第三个方法编译能够通过,但是输出只有1和0,背离了预期,也不知道是为什么。以前没用过模板,求解……rn[code]rn//方法一rn#include rnusing namespace std;rnrn/*rnint main()rnrnint a=0,b=1,i=0;rnwhile(i<>rnclass Feblarrnrnpublic:rnstatic void Feb(int a,int b)rnrnrn;rnrnint main()rnrnFeblar::Feb();rngetchar();rn rnrnrn[/code]
封装dll求改代码
rnSub FZ()rnOn Error Resume Nextrn Application.ScreenUpdating = Falsern With GetObject(ThisWorkbook.Path & "\学习.xlsx")rn .Sheets("Sheet1").Range("A1:C12000").Copy ThisWorkbook.Sheets("Sheet1").[A518401]rn .Close Falsern End Withrn Application.ScreenUpdating = TruernEnd Sub
大佬指点网卡代码56
在安装vmware中出现了网络驱动问题。是这样的,我按了网路重置,然后就不能联网。。没有wlan和有线网标识,网络驱动出现了感叹号,错误<em>代码</em>56,删除不了,新的网卡驱动也安装不了。。。。。有<em>大佬</em>指点指点吗?
大佬给位运算的代码,刚学
从键盘输入一个无符号短整数x,请编程实现:将x中的低8位不变,高8位清零。要求用十六进制形式输入、输出数据,输出数据后换行。
大佬指点!!我的代码错在哪里
rn问题:求一个数的最大公约数。程序中从大向小进行循环,直到能整除。rnrnrn<em>代码</em>:rn[img=https://img-bbs.csdn.net/upload/201905/18/1558159050_29242.png][/img]rnrn[face]qq:15.gif[/face]为什么输出的最大公约数会是97= =! ,刚开始学Java,好多不懂,求各位<em>大佬</em>指点指点,小弟感激不尽。rn谢谢![face]monkey:3.gif[/face]rn
求一个网站代码
jsp语言+数据库(随便哪种)rn由javabean+servlet+jsp构成rn一个新闻发布的<em>网站</em>rn包rn1.新闻发布rn2.用户注册评论rn3.管理员管理rn4.视频新闻rnrn有的话发<em>代码</em>到我的邮箱 527142797@qq.comrnrnrn在此谢过................................
网站简繁转换代码:
在网上找了好久,几乎全部都是:rnrn rnrn    rnrn繁体中文 简体中文rnrntransform.js文件:rnrnrnrn但是我用了,转换出来是乱码. 有没有好一点的<em>代码</em>..或者教教我上面的<em>代码</em>怎么用rnrn
网站流量统计代码
急求要能够对每个用户的访问和各个页面的访问的信息都能进行统计的<em>代码</em>rn功能越全越好
网站验证码识别的代码
娘的 从没搞过这个东西 验证码识别。据说要用到蛮多东西的。搞<em>网站</em>自动登录有个<em>网站</em>需要输入验证码 所以 需要一个这样的<em>代码</em>。各位谁有。 请别私藏啊。
网站搜索代码
求<em>网站</em>搜索<em>代码</em>,新闻发布在后台,我想在首页上加搜索功能,对各栏目的新闻进行搜索,发布的新闻标题未写入数据库,在后台有一个新闻发布栏目,能不能探索时新闻搜索栏目的标题进行搜索显示?
大家帮我改一下这个删除代码
rnrn rnrn<>"yes" thenrnsql="delete from [user] where id="&request("id")rnset rs=conn.Execute(sql)rnrs.closernset rs=nothingrnconn.closernset conn=nothingrnresponse.write" "rnend ifrnrnresponse.write(" 确定要注销账号吗? | 不删除")rn%>rn这是源码,但运行时总是提示set rs=conn.Execute(sql)这句出错,我把它改成了conn.Execute(sql),也一样,到底怎样写才对呢?大家<em>帮我</em>一下好吗?
帮我代码么?非常感谢
这段<em>代码</em>是用于实现树形菜单的,哪位大虾能<em>帮我</em>把<em>代码</em>中的每个节点改成checkbox么?rnrn rn rn rn DSTree 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 rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn by sTar 2003-4-8 rn rn rn rn
谁能帮我改一下这段代码
[code=VB]rn'----------------------------------------------------- rn1、引用Microsft activex data objects 2.0 library rn2、添加数据时没有对表内相同的商品名进行判断 rn3、如果数据存在相同的商品名时只显示第一条记录 rn4、txtq代表您的表名 rn5、ID的数据类型为numeric rn6、数据库为SQL2000 rn'----------------------------------------------------- rnPrivate Sub Combo1_Click() rnSet conn = New ADODB.Connection rnSet rs = New ADODB.Recordset rnconn.ConnectionString = "Driver=sql server;server=AA;uid=sa;pwd=;database=BB" 'AA代表连接服务器名称或IP,BB代表连接数据库名 rnconn.ConnectionTimeout = 20 rnconn.Open rnrs.Open "select * from [txtq] where (商品名='" & Trim(Combo1.Text) & "')", conn, adOpenStatic, adLockReadOnly, adCmdText rnIf rs.EOF = True And rs.BOF Then rnElse rnrs.MoveFirst rnText1.Text = rs.Fields(2) rnText2.Text = rs.Fields(3) rnText3.Text = rs.Fields(4) rnText4.Text = rs.Fields(5) rnText5.Text = rs.Fields(6) rnrs.Close rnconn.Close rn Set rs = Nothing rn Set conn = Nothing rnEnd If rnEnd Sub rnPrivate Sub Command1_Click() '添加 rnSet conn = New ADODB.Connection rnSet rs = New ADODB.Recordset rnconn.ConnectionString = "Driver=sql server;server=AA;uid=sa;pwd=;database=BB" 'AA代表连接服务器名称或IP,BB代表连接数据库名 rnconn.ConnectionTimeout = 20 rnconn.Open rnrs.Open "select * from [txtq]", conn, adOpenKeyset, adLockOptimistic, adCmdText rnrs.AddNew rnrs.Fields(1) = Trim(Combo1.Text) rnrs.Fields(2) = Trim(Text1.Text) rnrs.Fields(3) = Trim(Text2.Text) rnrs.Fields(4) = Trim(Text3.Text) rnrs.Fields(5) = Trim(Text4.Text) rnrs.Fields(6) = Trim(Text5.Text) rnrs.Update rnrs.Close rn Set rs = Nothing rn Set conn = Nothing rnUnload Me rnMsgBox "增加成功", vbInformation, "提示" rnMe.Show rnEnd Sub rnPrivate Sub Command2_Click() '删除 rnSet conn = New ADODB.Connection rnSet rs = New ADODB.Recordset rnIf Trim(Combo1.Text) = "" Then rnExit Sub rnEnd If rnDim SureQ As Integer rnSureQ = MsgBox("您真的要删除商品名为" & Trim(Combo1.Text) & " 的记录吗?", vbYesNo + 32, "提示") rnIf SureQ = 6 Then rnCancel = 0 rnconn.ConnectionString = "Driver=sql server;server=AA;uid=sa;pwd=;database=BB" 'AA代表连接服务器名称或IP,BB代表连接数据库名 rnconn.ConnectionTimeout = 20 rnconn.Open rnrs.Open "delete from [txtq] where (商品名='" & Trim(Combo1.Text) & "')", conn, adOpenKeyset, adLockOptimistic, adCmdText rnconn.Close rnSet rs = Nothing rnSet conn = Nothing rnUnload Me rnMsgBox "删除成功", vbInformation, "提示" rnMe.Show rnElse rn Cancel = -1 rn End If rnEnd Sub rnPrivate Sub Form_Load() rnSet conn = New ADODB.Connection rnSet rs = New ADODB.Recordset rnSet mrc = New ADODB.Recordset rnconn.ConnectionString = "Driver=sql server;server=AA;uid=sa;pwd=;database=BB" 'AA代表连接服务器名称或IP,BB代表连接数据库名 rnconn.ConnectionTimeout = 20 rnconn.Open rnmrc.Open "select Count(商品名) AS lCount,商品名 from [txtq] group by 商品名 order by 商品名", conn, adOpenStatic, adLockReadOnly, adCmdText rnIf mrc.EOF = True And mrc.BOF Then rnElse rnDo Until mrc.EOF rn strUserName = mrc("商品名") rn Combo1.AddItem strUserName rn mrc.MoveNext rn Loop rn mrc.Close rnEnd If rnrs.Open "select ID from [txtq] order by ID", conn, adOpenStatic, adLockReadOnly, adCmdText rnIf rs.EOF = True And rs.BOF Then rnLabel2.Caption = 1 rnElse rnLabel2.Caption = rs.Fields(0) + 1 rnEnd If rnrs.Close rnSet rs = Nothing rnSet mrc = Nothing rnSet conn = Nothing rnEnd Sub rnrn[/code]rnrn改成本地数据库的!而且为什么我现在这样运行会出错的啊?rn运行了它说我用户定义类型未定义?rnNew ADODB.Connection
请大侠帮我改一句代码
我的程序rn[code=VB]rnPrivate Sub m_ListInterface_MenuBarInitialize(ByVal oMenuBar As K3ClassEvents.MenuBar)rn Dim rs As New ADODB.Recordsetrn Dim i As Integerrn Dim FItemID() As Longrn Set rs = m_ListInterface.K3Lib.GetData("Select FUserID From t_User Where FName IN (Select FName From t_Emp Where FDepartmentID In (Select FDepartmentID From t_Emp Where FItemID = ( " & _rn " Select t1.FItemID From t_Emp t1 Join t_user t2 On t1.FName=t2.FName Where t2.FUserID = 16409)))")rn ReDim FItemID(rs.RecordCount) As Longrn For i = 1 To rs.RecordCountrn FItemID(i - 1) = rs.Fields("FUserID")rn FItemID = rs.Fields("FUserID")rn' m_ListInterface.ListFilterString = (" t_BOS220000001.FBiller In ( '" & FItemID(i - 1) & "' )")rn rs.MoveNextrn NextrnEnd Subrn[/code]rnSQL语句的结果为rnFUserID rn------- rn16396rn16422rn16395rn16428rn16409rnrn(所影响的行数为 5 行)rn请<em>帮我</em>把以上程序中注释语句改成这样的形式rn t_BOS220000001.FBiller In (16396,16422,16395,16428,16409)rn<em>代码</em>应该怎么写?
谁来帮我改下下面的代码
各位大虾,<em>帮我</em>改下下面的<em>代码</em>,下面<em>代码</em>连接SQL2005用的,我需要改成连接Mysql的,要求使用MySQL Connector/NET连接MYSQL数据库和ASP.NET,也<em>帮我</em>写个web.config的配置文件,急用99999999999rnrnpublic partial class OverTimeDAOrn rn /// rn /// 查询OverTime记录rn /// rn public DataTable GetOverTime_table(string strWhere)rn rn string sql = @" select OverTimeId,EmployeeId,Employee,Branch,Position,CreatOn,StartTime,EndTime,TimeCount,Reason from OverTime where 1=1 ";rnrn if (strWhere != "")rn rn sql += strWhere;rn rnrn Database db = DatabaseFactory.CreateDatabase();rn DbCommand command = db.GetSqlStringCommand(sql);rnrn DataSet ds = db.ExecuteDataSet(command);rn if (ds != null && ds.Tables.Count > 0)rn return ds.Tables[0];rn elsern return null;rn rn /// rn /*rn 根据主键值查找OverTime记录rn */rn /// rn /// OverTimeId rn /// OverTimern public OverTime FindOverTime(int OverTimeId)rn rn string sql = @" select OverTimeId,EmployeeId,Employee,Branch,Position,CreatOn,StartTime,EndTime,TimeCount,Reason from OverTime where OverTimeId=@OverTimeId ";rnrn Database db = DatabaseFactory.CreateDatabase();rn DbCommand command = db.GetSqlStringCommand(sql);rnrn db.AddInParameter(command, "OverTimeId", DbType.Int32, OverTimeId);rnrn OverTime overTime = null;rnrn using (IDataReader dr = db.ExecuteReader(command))rn rn if (dr.Read())rn rn overTime = new OverTime();rnrn overTime.OverTimeId = (int?)dr["OverTimeId"];rn overTime.EmployeeId = dr["EmployeeId"].ToString();rn overTime.Employee = dr["Employee"] == DBNull.Value ? null : dr["Employee"].ToString();rn overTime.Branch = dr["Branch"] == DBNull.Value ? null : dr["Branch"].ToString();rn overTime.Employee = dr["Position"] == DBNull.Value ? null : dr["Position"].ToString();rn overTime.CreatOn = (DateTime)dr["CreatOn"];rn overTime.StartTime = (DateTime?)dr["StartTime"];rn overTime.EndTime = (DateTime?)dr["EndTime"];rn overTime.TimeCount = dr["TimeCount"] == DBNull.Value ? null : dr["TimeCount"].ToString();rn overTime.Reason = dr["Reason"] == DBNull.Value ? null : dr["Reason"].ToString();rnrn rn rn return overTime;rn rn /// rn /// 删除OverTime记录rn /// rn public int DeleteOverTime(int OverTimeId)rn rn string sql = @"DELETE FROM OverTime WHERE OverTimeId = @OverTimeId";rnrn Database db = DatabaseFactory.CreateDatabase();rn DbCommand command = db.GetSqlStringCommand(sql);rnrn db.AddInParameter(command, "OverTimeId", DbType.Int32, OverTimeId);rnrn return db.ExecuteNonQuery(command);rn rn /// rn /// 更新OverTime记录rn /// rn public int UpdateOverTime(OverTime overTime)rn rn string sql = @" UPDATE OverTime SET EmployeeId=@EmployeeId,Employee=@Employee,Branch=@Branch,Position=@Position,StartTime=@StartTime,EndTime=@EndTime,TimeCount=@TimeCount,Reason=@Reason WHERE OverTimeId = @OverTimeId";rnrn Database db = DatabaseFactory.CreateDatabase();rn DbCommand command = db.GetSqlStringCommand(sql);rnrn db.AddInParameter(command, "OverTimeId", DbType.Int32, overTime.OverTimeId);rn db.AddInParameter(command, "EmployeeId", DbType.String, string.IsNullOrEmpty(overTime.EmployeeId) ? DBNull.Value : (object)overTime.EmployeeId);rn db.AddInParameter(command, "Employee", DbType.String, string.IsNullOrEmpty(overTime.Employee) ? DBNull.Value : (object)overTime.Employee);rn db.AddInParameter(command, "Branch", DbType.String, string.IsNullOrEmpty(overTime.Branch) ? DBNull.Value : (object)overTime.Branch);rn db.AddInParameter(command, "Position", DbType.String, string.IsNullOrEmpty(overTime.Position) ? DBNull.Value : (object)overTime.Position);rn db.AddInParameter(command, "StartTime", DbType.DateTime, overTime.StartTime.HasValue ? (object)overTime.StartTime : DBNull.Value);rn db.AddInParameter(command, "EndTime", DbType.DateTime, overTime.EndTime.HasValue ? (object)overTime.EndTime : DBNull.Value);rn db.AddInParameter(command, "TimeCount", DbType.String, string.IsNullOrEmpty(overTime.TimeCount) ? DBNull.Value : (object)overTime.TimeCount);rn db.AddInParameter(command, "ModifiedOn", DbType.DateTime, overTime.ModifiedOn);rn db.AddInParameter(command, "Reason", DbType.String, string.IsNullOrEmpty(overTime.Reason) ? DBNull.Value : (object)overTime.Reason);rnrn return db.ExecuteNonQuery(command);rn rn /// rn /// 新增OverTime记录rn /// rn public int InsertOverTime(OverTime overTime)rn rn string sql = @" INSERT INTO OverTime(EmployeeId,Employee,Branch,Position,CreatOn,StartTime,EndTime,TimeCount,Reason) VALUES(@EmployeeId,@Employee,@Branch,@Position,@CreatOn,@StartTime,@EndTime,@TimeCount,@Reason); SELECT @OverTimeId = SCOPE_IDENTITY() ";rnrn Database db = DatabaseFactory.CreateDatabase();rn DbCommand command = db.GetSqlStringCommand(sql);rnrn db.AddInParameter(command, "OverTimeId", DbType.Int32, sizeof(int));rn db.AddInParameter(command, "EmployeeId", DbType.String, string.IsNullOrEmpty(overTime.EmployeeId) ? DBNull.Value : (object)overTime.EmployeeId);rn db.AddInParameter(command, "Employee", DbType.String, string.IsNullOrEmpty(overTime.Employee) ? DBNull.Value : (object)overTime.Employee);rn db.AddInParameter(command, "Branch", DbType.String, string.IsNullOrEmpty(overTime.Branch) ? DBNull.Value : (object)overTime.Branch);rn db.AddInParameter(command, "Position", DbType.String, string.IsNullOrEmpty(overTime.Position) ? DBNull.Value : (object)overTime.Position);rn db.AddInParameter(command, "CreatOn", DbType.DateTime, overTime.CreatOn);rn db.AddInParameter(command, "StartTime", DbType.DateTime, overTime.StartTime.HasValue ? (object)overTime.StartTime : DBNull.Value);rn db.AddInParameter(command, "EndTime", DbType.DateTime, overTime.EndTime.HasValue ? (object)overTime.EndTime : DBNull.Value);rn db.AddInParameter(command, "TimeCount", DbType.String, string.IsNullOrEmpty(overTime.TimeCount) ? DBNull.Value : (object)overTime.TimeCount);rn db.AddInParameter(command, "Reason", DbType.String, string.IsNullOrEmpty(overTime.Reason) ? DBNull.Value : (object)overTime.Reason);rnrn int affectedRecords = db.ExecuteNonQuery(command);rn if (affectedRecords < 1)rn rn throw new ApplicationException("插入数据失败, 没有记录被插入");rn rnrn return (int)db.GetParameterValue(command, "OverTimeId"); rn rn rnrn
帮我改一下这个代码!谢谢
var stmp_a = "";rnfunction strTrans_a(strT)rnrn if(strT.value==stmp_a) return;rn var ms = strT.value.replace(/[^\d\.]/g,"").replace(/(\.\d3).+$/,"$1");//验证用户的输入rn var txt = ms.split("."); //分割成数组rn while(/\d4(,|$)/.test(txt[0]))rn txt[0] = txt[0].replace(/(\d)(\d3(,|$))/,"$1,$2"); //科学计数法表示形式rn strT.value = stmp_a = txt[0]+(txt.length>1?"."+txt[1]:"");rnrnrnrn这个<em>代码</em>是显示 数字的<em>代码</em>rn但他有个功能就是整数以前的数,每隔三个数就会出现一个 逗号,我想不让他显示逗号rn应该改哪里啊!谢谢
求:帮我改写下这句SQL语句。。。。
select top 2 *,number=rn(select COUNT(*) from et_ztea_images as i where i.tea_albumid=a.id),rnimagepath=(select top 1 imagepath from et_ztea_images as z wherern z.tea_albumid=a.id),picid=(select top 1 id from et_ztea_images as z rn where z.tea_albumid=a.id) from et_ztea_Album as a where teaid=326rn order by AlbumTime descrnrn我想要让 number为0 数据不要(聚合函数方面)。结果就是把第一条数据去掉。。。。。。。。求救各位大哥~rnid userId userName teaid tealevel teaAlbum AlbumTime number imagepath picidrn139 NULL NULL 326 1 xx 2012-08-14 0 NULL NULLrn47 NULL NULL 326 2 xx 2012-07-27 3 201272778567.jpg 60
帮我改一下这段代码
if DataModule1.ADOTable1.Locate('LIBNO',edit1.text,[lopartialkey]) thenrn beginrn showmessage('这个编号已经存');rn Edit1.SetFocus;rn Exit;rn end;rn if DataModule1.ADOTable1.locate('DESC',edit2.text,[lopartialkey]) thenrn beginrn showmessage('这个名称已经存');rn Edit2.SetFocus;rn Exit;rn end;rnrn当一执行到第二个IF 语句时出错,请问应该怎样写
专家能帮我改一下代码
想做一个按键命令Command1rnp = Len(Text1.Text)rnfor i =1 to prn for j=i +1 to p rn for k=j +1 to prn print i*100+j*10+k rn next k rn next j rnnext irn我在文本框输入大于3为数的数字,然后他进行排列,可是他是按照1-p的方式排列的,不是按照所输入数字排列的,比如说在文本框输入了3456,他还是从1排列,并不是按照每位的数字排列的,这个我明白因为p是代表这个数有几位数字当然要从1的排序开始到4结束,而不是从数字的第一位数字开始,请高手帮忙给更改一下,要取3456每位数而不是取1234,p要求最多10位,而且所输入数字不能有重复,也就是最多为0-9,并且要把计算结果显示在listbox中,这个<em>代码</em>该如何改,谢谢 rn
帮我改一下修改密码的代码,在线等候
[code=C#] private void button1_Click(object sender, EventArgs e)rn rn string User_ID = textBox1.Text;rn string User_PWD = textBox2.Text;rn string a = textBox3.Text;rn int count = 0;rn tryrn rn string ConnectionString = "Data Source=fly;user=fly;password=fly";//写连接串 rn OracleConnection conn = new OracleConnection(ConnectionString);//创建一个新连接 rnrn conn.Open();rn OracleCommand cmd = conn.CreateCommand();rn cmd.CommandText = "select * from alarm_user where user_ID='" + User_ID + "'";//在这儿写sql语句 rn OracleDataReader odr = cmd.ExecuteReader();//创建一个OracleDateReader对象rn string pwd = "";rn while (odr.Read())//读取数据,如果odr.Read()返回为false的话,就说明到记录集的尾部了 rn rn count++;rn pwd = odr.GetOracleString(1).ToString();rn //MessageBox.Show(odr.GetOracleString(1).ToString());//输出字段1,这个数是字段索引,具体怎么使用字段名还有待研究 rn rn odr.Close();rn cmd.Clone();rn conn.Close();rn rn if (count == 0)rn rn MessageBox.Show("没有此用户");rn textBox2.Text = "";rn textBox1.Text = "";rn this.textBox1.Focus();rnrn rn elsern rn if (User_PWD.Equals(pwd))rn rn string ConnectionString = "Data Source=fly;user=fly;password=fly";//写连接串 rn OracleConnection conn1 = new OracleConnection(ConnectionString);//创建一个新连接 rnrn conn1.Open();rn OracleCommand cmd1 = conn.CreateCommand();rn cmd1.CommandText = "update alarm_user set user_pwd='" + a + "'";//在这儿写sql语句 rn OracleDataReader odr1 = cmd.ExecuteReader();//创建一个OracleDateReader对象rn cmd1.Clone();rn odr1.Close();rn conn1.Close();rn MessageBox.Show("修改成功!!");rn textBox1.Text = "";rn textBox2.Text = "";rn textBox3.Text = "";rn rnrn rn elsern rn MessageBox.Show("密码错误,请重新输入!");rn textBox2.Text = "";rn textBox3.Text = "";rn this.textBox1.Focus();rn rnrn rnrn rn rn rn catch (Exception ee)rn rn MessageBox.Show(ee.Message.ToString());rn rn rn[/code]rnrnrnrn就是一个用户修改密码的<em>代码</em>,输入账号,旧密码和新密码后实现把oracle里的数据库里的密码给改掉,这个<em>代码</em>是有问题的,我不知道应该怎么改了,请大家帮下忙了rn
帮我改一下图片显示不对称代码
<em>网站</em>LOGO图片上面有空闲地方,图片一大的时候显示不正常,www.huolinhe.com <em>帮我</em>看一下怎么修改下面的<em>代码</em>rnrnrnrn rn rn rn rn rn rn rn 用户名:rn 密码:rn rn 忘记密码?rn 注册rn rn rn rn rn rn rn rn 站内搜索 | <em>网站</em>地图 | 设为首页 | 加入收藏rn rn rnrn rn rn rnrn rn rn 首页 rn dir:category parentid="$catid" row="8" mod="1" type="top"rn code $childrenid=get_childrencatid(mydc:id);rn mydc:catnamern /dir:categoryrn rnrn rn rnrn rn rn rn 大家都在搜:hotkeywords('weight',6)rn rn
帮我改一下代码谢谢!
该段<em>代码</em>实现从系统管理中找到提交申请者的上级单位领导,并给他发送文档连接,这是C/S模式下的一个操作,我想把他该为B/S模式下的 代理,我是一个新手特别是对WEB下的代理不熟,请教各位大侠帮帮忙其中以dept开头的是视图,以sq开头的是域rnrnDim session As New notessessionrn Dim dbs As notesdatabasern Dim ser_name As Stringrn Dim user As Stringrn Dim dept As Stringrn rn Set dbs=session.currentdatabasern ser_name=dbs.serverrn user=session.CommonUserNamern rn Dim db As New notesdatabase(ser_name,"oa\sysadmin")rn Dim view As notesviewrn Dim doc As notesdocumentrn Dim item As notesitemrn rn Dim workspace As New notesUIWorkspacern Dim uidoc As notesUIDocumentrn Set uidoc=workspace.CurrentDocumentrn rn If uidoc.fieldgettext("sp_pro")="缺省程序" Then rn rn Set view=db.getview("按姓名查询") rn Set doc=view.getdocumentbykey(user+"/"+Strright(ser_name,"/O="))rn rn Set item=doc.getfirstitem("ifleader")rn leader=item.text '单位领导rn Set item=doc.getfirstitem("dept_f")rn f_d=item.textrn Set item=doc.getfirstitem("dept_second")rn f_s=item.textrn Set item=doc.getfirstitem("dept_third")rn f_t=item.textrn Set item=doc.getfirstitem("dept_fourth")rn f_ft=item.textrn Set item=doc.getfirstitem("上级单位")rn up_dept=item.textrn rn If f_s="--" Then rn dept=f_drn Elsern If f_t="--" Thenrn dept=f_d & f_srn Elsern If f_ft="--" Thenrn dept=f_d & f_s & f_trn Elsern dept=f_d & f_s & f_t & f_ftrn End Ifrn End Ifrn End Ifrn rn If leader="是" Then '如果当前操作人是本部门领导rn Set view=db.getview("(depart_class)") rn Set doc=view.getdocumentbykey(dept)rn If Not(doc Is Nothing) Thenrn Set item=doc.getfirstitem("up_class")rn up_c=item.text '当前部门的上级部门rn Elsern Messagebox "没找到相应的文档"rn End Ifrn If up_c="无" Then rn Messagebox "到达系统组织机构的顶级,不再在上报了!"rn Elsern Set view=db.getview("(dept_person)")rn Set doc=view.getfirstdocumentrn found=Falsern While Not(doc Is Nothing) And Not found '查找部门领导rn Set item=doc.getfirstitem("ifleader")rn if_l=item.textrn Set item=doc.getfirstitem("单位全称")rn full_name=item.textrn If (full_name=up_c And if_l="是") Then rn Set item=doc.getfirstitem("person_name")rn sent_person=item.textrn found=Truern Elsern Set doc=view.getnextdocument(doc)rn End Ifrn Wendrn If Not found Then '该部门不存在部门领导 rn Messagebox("上级部门: "+up_ct+" 没有设定部门领导,请与系统管理员联系")rn Elsern allowedit=Truern uidoc.editmode=Truern rn Call uidoc.fieldsettext("sq_status","上传")rn Call uidoc.fieldsettext("sq_temp2",uidoc.fieldgettext("sq_temp1"))rn Call uidoc.fieldsettext("sq_temp1",uidoc.fieldgettext("sq_from"))rn Call uidoc.fieldsettext("sq_from",user)rn Call uidoc.fieldsettext("sq_handle",sent_person)rn Call uidoc.save()rn allowedit=Falsern uidoc.editmode=Falsern rn '发送邮件rn Set doc = uidoc.documentrn Dim newdoc As notesdocumentrn Dim rtitem As notesrichtextitemrn Set newdoc = New notesdocument(dbs)rn Set rtitem = New notesrichtextitem(newdoc,"body") rn Call rtitem.appenddoclink(doc,"申请")rn newdoc.subject =user +"于 "+Cstr(Today())+" 报给你一份申请,请你抓紧时间处理"rn Call rtitem.appendtext(" 请办理!") rn newdoc.sendto = sent_personrn newdoc.send(False)rn Call uidoc.close()rn End Ifrn rn End Ifrn Else '当前操作人员不是部门领导rn Set view=db.getview("(dept_person)")rn Set doc=view.getfirstdocumentrn found=Falsern While Not(doc Is Nothing) And Not found '查找本部门领导rn Set item=doc.getfirstitem("ifleader")rn if_l=item.textrn Set item=doc.getfirstitem("单位全称")rn full_name=item.textrn If (full_name=dept And if_l="是") Then rn Set item=doc.getfirstitem("person_name")rn sent_person=item.textrn found=Truern Elsern Set doc=view.getnextdocument(doc)rn End Ifrn Wendrn If Not found Then '该部门不存在部门领导 rn Messagebox("本部门: "+dept+" 没有设定部门领导,请与系统管理员联系")rn Else '发送信件通知相关人员处理来文rn allowedit=Truern uidoc.editmode=Truern rn Call uidoc.fieldsettext("sq_status","上传")rn Call uidoc.fieldsettext("sq_temp2",uidoc.fieldgettext("sq_temp1"))rn Call uidoc.fieldsettext("sq_temp1",uidoc.fieldgettext("sq_from"))rn Call uidoc.fieldsettext("sq_from",user)rn Call uidoc.fieldsettext("sq_handle",sent_person)rn Call uidoc.save()rn allowedit=Falsern uidoc.editmode=Falsern '发送邮件rn Set doc1 = uidoc.documentrn Dim newdoc1 As notesdocumentrn Dim rtitem1 As notesrichtextitemrn Set newdoc1 = New notesdocument(dbs)rn Set rtitem1 = New notesrichtextitem(newdoc1,"body") rn Call rtitem1.appenddoclink(doc1,"申请")rn newdoc.subject =user +"于 "+Cstr(Today())+" 报给你一份申请,请你抓紧时间处理"rn Call rtitem.appendtext(" 请办理!") rn newdoc.sendto = sent_personrn newdoc.send(False)rn Call uidoc.close()rn End Ifrn End If rn Elsern sent_person=uidoc.fieldgettext("manual_person")rn If sent_person="" Thenrn Messagebox "你使用了自定义审批程序,但是没有指定审批人!"rn Elsern rn allowedit=Truern uidoc.editmode=Truern rn Call uidoc.fieldsettext("sq_status","上传")rn Call uidoc.fieldsettext("sq_temp2",uidoc.fieldgettext("sq_temp1"))rn Call uidoc.fieldsettext("sq_temp1",uidoc.fieldgettext("sq_from"))rn Call uidoc.fieldsettext("sq_from",user)rn Call uidoc.fieldsettext("sq_handle",sent_person)rn Call uidoc.save()rn allowedit=Falsern uidoc.editmode=Falsern Dim dbmail3 As NotesDatabasern Dim docmail3 As NotesDocumentrn Set dbmail3 = session.CurrentDatabasern Set docmail3 = New NotesDocument( dbmail3)rn docmail3.SendTo = sent_personrn docmail3.Subject =user +"于 "+Cstr(Today())+" 报给你一份申请,请你抓紧时间处理"rn docmail3.body=" 请在本系统的申请审批-待办审批中打开该文件"rn Call docmail3.Send( False )rn Call uidoc.close()rn rn End Ifrn End Ifrn rn
帮我改一下下面这段代码?
谁<em>帮我</em>改一下下面这段<em>代码</em>rn//test.htmlrnrnrn Untitled Documentrn rnrnrn rnrnrnrn//js.htmrndocument.write('rn rn rn 30兆CGI空间rn rnrn')rnrn运行是时提示行document.write('未结束的字符串常量
帮我改一下下面的代码,很难的!
这是一个线型图源<em>代码</em>,但是现在我想在相应的各个点上能够写上y的值rn rnrnrnrnrnrn
这是一段代码 麻烦帮我改一下
A:cout<<>w;rn if(w<<
复制树的代码,请帮我改一下.
昨天在这问的一个clone树的问题,自己写了个递归<em>代码</em>,不行,子节点还是没有。rn初学者,<em>代码</em>写的比较糟糕,还请朋友们多指点。rnvoid copyTree(DefaultMutableTreeNode oldNode,DefaultMutableTreeNode newNode)rnrn if(oldNode!=null)rn rn newNode=new DefaultMutableTreeNode();rn newNode.setAllowsChildren(true);rn for(int i=0;i
各位高手帮我改一点点代码吧!
rnrnrnrn<> "") Then rn rsproduct__MMColParam = Request.QueryString("id")rnEnd Ifrn%>rnrnrnrnrnrn<> "") Thenrn MM_removeList = MM_removeList & "&" & MM_paramName & "="rnEnd IfrnrnMM_keepURL=""rnMM_keepForm=""rnMM_keepBoth=""rnMM_keepNone=""rnrn' add the URL parameters to the MM_keepURL stringrnFor Each MM_item In Request.QueryStringrn MM_nextItem = "&" & MM_item & "="rn If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Thenrn MM_keepURL = MM_keepURL & MM_nextItem & Server.URLencode(Request.QueryString(MM_item))rn End IfrnNextrnrn' add the Form variables to the MM_keepForm stringrnFor Each MM_item In Request.Formrn MM_nextItem = "&" & MM_item & "="rn If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Thenrn MM_keepForm = MM_keepForm & MM_nextItem & Server.URLencode(Request.Form(MM_item))rn End IfrnNextrnrn' create the Form + URL string and remove the intial '&' from each of the stringsrnMM_keepBoth = MM_keepURL & MM_keepFormrnIf (MM_keepBoth <> "") Then rn MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)rnEnd IfrnIf (MM_keepURL <> "") Thenrn MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1)rnEnd IfrnIf (MM_keepForm <> "") Thenrn MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)rnEnd Ifrnrn' a utility function used for adding additional parameters to these stringsrnFunction MM_joinChar(firstItem)rn If (firstItem <> "") Thenrn MM_joinChar = "&"rn Elsern MM_joinChar = ""rn End IfrnEnd Functionrn%>rnrn<> "") Then rn rs_typeName__MMColParam = Request.QueryString("id")rnEnd Ifrn%>rnrnrnrn rn ">rn ">rn rnrn rnrn rnrnrnrn rn rn rn rn rn rn rn rnrnrn rn rn rn rnrn rn rn rn rn CALSS APPLIANCESrn rnrn rn rn rn rn rn rn rnrnrn rn rn rn BABY APPLIANCESrn rn <> 0) AND (NOT rshl.EOF)) rn%>rn rn &tt=BABY APPLIANCES">rn rn rn rn rnrn rn rn rn rn rn rn rn rn rn rn rn PRODUCTSrn rn rn rn rn rn rn rn rn rn rn rn <> 0) AND (NOT rsproduct.EOF)) rn%>rn " target="_parent">" width="142" height="72" border="0">rn rn rn rn rn rn rn rn Sorry, no such series of products temporarilyrn rn rn rn rn rn rn rn rnrn rn rn rn rnrn rn rn rn rnrnrnrnrnrnrnrnrnrn
帮我改一下这段代码
rn 0rniii=iii+1rn%>rn rn 5)) thenrn response.write " "%>rn rn rn rn rn rn rnrn rn
高手来帮我改改下面的代码
rn
谁能帮我改一下代码(一个存储过程)
在已有<em>代码</em>的基础上加一个输入参数 字符型的。rn在select语句中加个判断rnrnCREATE OR REPLACE PACKAGE guanli_d1rnASrnrnTYPE twbid IS TABLE of managerinfo.wbid %TYPE INDEX BY BINARY_INTEGER;rnTYPE twbname IS TABLE of managerinfo.wbname %TYPE INDEX BY BINARY_INTEGER;rnTYPE tcount_1 IS TABLE of int INDEX BY BINARY_INTEGER;rnTYPE tcount_2 IS TABLE of int INDEX BY BINARY_INTEGER;rnrnPROCEDURE get_userinforn(rnthewbid OUT twbid,rnthewbname OUT twbname,rntheCount_1 OUT tcount_1,rntheCount_2 OUT tcount_2rn);rnend guanli_d1;rnrnCREATE OR REPLACE PACKAGE BODY guanli_d1rnASrnPROCEDURE get_userinforn(rntheflag in varchar2,rnthewbid OUT twbid,rnthewbname OUT twbname,rntheCount_1 OUT tcount_1,rntheCount_2 OUT tcount_2rn)rnASrnCURSOR c1 ISrnrnif ... then --在此判断 输入参数是否等于“wx”rnrnSELECT wbid,wbnamernFROM managerinfornORDER by wbid; rnrnelsernrnSELECT wbid,wbname --在此判断 wbname 的前两个字符等于输入的参数rnFROM managerinfornORDER by wbid; rnrnend ifrnrncounter NUMBER DEFAULT 1;rnBEGIN rnFOR c IN c1 LOOPrnthewbid(counter):=c.wbid;rnthewbname(counter):=c.wbname;rnSELECT COUNT(*) rninto thecount_1(counter) rnFROM userinfo rnWHERE wb_id=thewbid(counter) rnand to_date(startdate,'yyyy-mm-dd')=trunc(SYSDATE) rnand biaozhi='T';rncounter :=counter+1;rnEND LOOP; rnrnEND get_userinfo;rnEND guanli_d1;rnrn本初学oracle存储过程,还请大家多帮忙。rn源程序已经测试过,没错。rn我也自己试着改过,编译时没错,可在asp中没法调用。
各位高手,请帮我改一段代码
本人初次接触OLE编程,希望能够在OleContainer上显示Word文档,能够浏览全部,但不出现Word 的编辑按钮等冬冬。以下这段<em>代码</em>实现不了。rn请各位高手帮忙,不胜感激。rnrnvoid __fastcall TForm1::Button1Click(TObject *Sender)rnrn Variant V,VC,VI;rn AnsiString name;rnrn V = CreateOleObject("Word.Application");rn VC = V.OlePropertyGet("CommandBars");rn for(int i=1;iOleContainer1->CreateObjectFromFile("E:\\temp.doc",false);rn Form2->OleContainer1->DoVerb(ovShow);rn Form2->ShowModal();rn
找人帮我改一下PHP的代码
我自己感觉很简单的,我是一点PHP都没学过,感觉挺简单的。就是把这个<em>网站</em>的下面的安全论坛模块稍微改好看一点,排一下版。哪位懂PHP的哥们帮帮忙。 rn网址是:www.twohk.com QQ:270459714rn
大家帮我改xml代码,提高执行效率!
这是程序<em>代码</em>,绝对可以运行,就是循环太多了,主要是for和while,我感觉太乱了,这样子肯定不行的!谁<em>帮我</em>简化一下?rnusing System;rnusing System.Xml;rnnamespace XmlDemornrn /// rn /// Class1 的摘要说明。rn /// rn class Class1rn rn /// rn /// 应用程序的主入口点。rn /// rn [STAThread]rn static void Main(string[] args)rn rn XmlDocument doc = new XmlDocument();rn rn doc.Load("d:\\a.xml");rn XmlNodeList child = doc.SelectNodes("/rss/channel/item"); rn for (int i=0; i < child.Count; i++) rn XmlNodeReader nr0 = new XmlNodeReader(child[i].ChildNodes[0]);rn XmlNodeReader nr1 = new XmlNodeReader(child[i].ChildNodes[1]);rn XmlNodeReader nr2 = new XmlNodeReader(child[i].ChildNodes[2]);rn XmlNodeReader nr3 = new XmlNodeReader(child[i].ChildNodes[3]);rn XmlNodeReader nr4 = new XmlNodeReader(child[i].ChildNodes[4]); rn while (nr0.Read())rn rn rn Console.WriteLine( nr0.Value);rn rn while (nr1.Read())rn rn rn Console.WriteLine( nr1.Value);rn rn while (nr2.Read())rn rn rn Console.WriteLine( nr2.Value);rn rn rnrn rn rn rnrn在里边用到的d:\\a.xmlrnrn rn rn Kam VedBrat rn http://blogs.msdn.com/kamvedbrat/ rn watch this space rn en-US rn .Text Version 0.95.2004.920 rn rn KamVedBrat rn Don't Panic! rn http://blogs.msdn.com/kamvedbrat/archive/2004/11/21/267693.aspx rn Sun, 21 Nov 2004 16:23:00 GMT rn http://blogs.msdn.com/kamvedbrat/archive/2004/11/21/267693.aspx rn http://blogs.msdn.com/kamvedbrat/comments/267693.aspx rn rn 0 rn http://blogs.msdn.com/kamvedbrat/comments/commentRss/267693.aspx rn http://blogs.msdn.com/kamvedbrat/services/trackbacks/267693.aspx rn I saw "National Treasure" this weekend, and before it started, there was a trailer for The Hitchhiker's Guide to the Galaxy. If you don't know what this is, it's definitely worth looking up on the New MSN;Search. Very exciting. Also very exciting is the fact that you can now create Avalon Applications for Windows XP using the Community Technology Preview that was just shipped to MSDN subscribers. If you're a subscriber - definitely check it out. Chris Anderson has posted a great little application that is useful if you just want to get your feet wet with XAML. On an different note - I stopped talking about Purdue Football for a while - partially because I was on vacation but more because it's not as much fun to talk about when we don't win. The Boilers closed out the season with a record win against Indiana, 63-24. Finally - I'm starting 20/20 Lifestyles next week - right after Turkey day. Took a while to get everything lined up with doctor, insurance, etc. but I'm excited to start eating better. We'll see how it goes. rn rn rn KamVedBrat rn Don't Panic! rn http://blogs.msdn.com/kamvedbrat/archive/2004/11/21/267693.aspx rn Sun, 21 Nov 2004 16:23:00 GMT rn http://blogs.msdn.com/kamvedbrat/archive/2004/11/21/267693.aspx rn http://blogs.msdn.com/kamvedbrat/comments/267693.aspx rn rn 0 rn http://blogs.msdn.com/kamvedbrat/comments/commentRss/267693.aspx rn http://blogs.msdn.com/kamvedbrat/services/trackbacks/267693.aspx rn I saw "National Treasure" this weekend, and before it started, there was a trailer for The Hitchhiker's Guide to the Galaxy. If you don't know what this is, it's definitely worth looking up on the New MSN;Search. Very exciting. Also very exciting is the fact that you can now create Avalon Applications for Windows XP using the Community Technology Preview that was just shipped to MSDN subscribers. If you're a subscriber - definitely check it out. Chris Anderson has posted a great little application that is useful if you just want to get your feet wet with XAML. On an different note - I stopped talking about Purdue Football for a while - partially because I was on vacation but more because it's not as much fun to talk about when we don't win. The Boilers closed out the season with a record win against Indiana, 63-24. Finally - I'm starting 20/20 Lifestyles next week - right after Turkey day. Took a while to get everything lined up with doctor, insurance, etc. but I'm excited to start eating better. We'll see how it goes. rn rnrn rn rn
帮我改一下access的数据库连接代码
我在web.config文件里面定义的rnrn我在程序里面是这样引用的:rnconn = new OleDbConnection(ConfigurationSettings.AppSettings["cnFriends.ConnectionString"]);rnrn但是出现错误,谁能<em>帮我</em>改一下啊,困扰我一个星期的问题了
求ps大神帮我改一张图
[img=https://img-bbs.csdn.net/upload/201612/22/1482395272_663188.png][/img]如图 想改成“国税局实名制证像认证系统”
求大神,帮我改写成函数的形式。
n/*输入一个年份和月份,判断是否为闰年,输出年的天数和月的天数*/n#include nvoid main()nn int year,month;n cout<<>year>>month;n if(year%4==0&&year%100!=0||year%400==0)n  cout<
大佬帮忙改一下C语言的错
不知道怎么改这些错误rn#include rn#include rn#include rn#define LEN sizeof(struct student)rnstruct studentrnrn char NO[20];rn char name[20];rn int age;rn char sex[3];rn char birthday[10];rn char address[30];rn char phone[20];rn char e_mail[20];rn struct student *next;rn;rntypedef struct student STU;rnSTU*head=NULL;rnint n,i=0;rnrnvoid show_menu(); //显示菜单rnvoid menu(); //执行菜单rnvoid creat_stu(); //建立链表rnvoid insert_stu(); //学生信息录入rnvoid print_stu(); //学生信息浏览rnvoid search_NO(); //以学号方式查询信息rnvoid search_name(); //以姓名方式查询信息rnvoid arrage_stu(); //排序rnvoid del_stu(); //删除学生信息rnvoid revise_stu(); //修改学生信息rnvoid save(); //保存信息rnrnvoid main()rnrn creat_stu();rn menu();rnrnrnvoid creat_stu()rnrn FILE *fp;rn long size;rn STU *p1,*p2;rn head=(STU*)malloc(sizeof(STU));rn head->next=NULL;rn if((fp=fopen("fname.txt","r"))==NULL)rn rn printf("这是新表\n");rn return;rn rn fseek(fp,0L,2);rn size=ftell(fp);rn rn printf("这是空表\n");rn return;rn rn rewind(fp);rn p2=head->next;rn while (!feof(fp))rn rn p1=(STU*)malloc(sizeof(STU));rn fscanf(fp,"%s %s %d %s %s %s %s %s\n",p1->NO,p1->name,&p1->age,p1->sex,p1->birthday,p1->address,p1->phone,p1->e_mail);rn p1->next=NULL;rnrn if (head->next==NULL)rn head->next=p1;rn elsern p2->next=p1;rn p2=p1;rn n++;rn rn p2->next=NULL;rn fclose(fp);rnrnrnvoid menu()rnrn int c;rn show_menu();rn while(1)rn rn scanf ("%d",&c);rn switch(c)rn rn getchar();rn case 1:insert_stu();break;rn case 2:print_stu();break;rn case 3:search_NO();break;rn case 4:search_name();break;rn case 5:del_stu();break;rn case 6:revise_stu();break;rn case 7:arrage_stu();break;rn case 0:exit(0);rn rn show_menu();rn rnrnrnvoid show_menu()rnrn printf("\n");rn printf("\n******************菜单***********\n");rn printf("\t\t 1.输 入 学 生 信 息 \n");rn printf("\t\t 2.浏 览 学 生 信 息 \n");rn printf("\t\t 3.以学号方式查询信息 \n");rn printf("\t\t 4.以姓名方式查询信息 \n");rn printf("\t\t 5.删 除 学 生 信 息 \n");rn printf("\t\t 6.修 改 学 生 信 息 \n");rn printf("\t\t 7.排 序 \n");rn printf("\t\t 0.退 出 \n");rn printf("\n*********************************\n");rn printf("\n请选择功能\n");rnrnrnvoid insert_stu() //输入学生信息rnrn n=0;rn STU*p1=NULL,*p2=NULL;rn p1=(STU*)malloc(sizeof(STU));rn printf("\n**************录入学生信息*********\n");rn printf("\t\t输入学生学号:\t");rn scanf("%s",p1->NO);rn printf("\t\t输入学生姓名:\t");rn scanf("%s",p1->name);rn printf("\t\t输入学生学年龄:\t");rn scanf("%d",p1->age);rn printf("\t\t输入学生性别:\t");rn scanf("%s",p1->sex);rn printf("\t\t输入学生出生年月:\t");rn scanf("%s",p1->birthday);rn printf("\t\t输入学生地址:\t");rn scanf("%s",p1->address);rn printf("\t\t输入学生电话:\t");rn scanf("%s",p1->phone);rn printf("\t\t输入学生E_mail:\t");rn scanf("%s",p1->e_mail);rn n++;rn if (head->next==NULL);rn rn head=(STU*)malloc(LEN);rn head->next=p1;rn rn elsern rn for (p2=head;p2->next!=NULL;p2=p2->next);rn p2->next=p1;rn rn p1->next=NULL;rn svae();rnrnrnvoid print_stu() //输出学生信息rnrn STU*p=NULL;rn if (head==NULL)rn rn printf("文档中无记录!\n");rn return;rn rn for (p=head->next;p!=NULL;p=p->next)rn rn printf("**************学生信息浏览***********\n");rn printf("\t\t学生学号:\t%s\n",p->NO);rn printf("\t\t学生年龄:\t%d\n",p->age);rn printf("\t\t学生性别:\t%s\n",p->sex);rn printf("\t\t学生出生年月:\t%s\n",p->birthday);rn printf("\t\t学生地址:\t%s\n",p->address);rn printf("\t\t学生学电话:\t%s\n",p->phone);rn printf("\t\t学生E_mail:\t%s\n",p->e_mail);rn printf("\n");rn rnrnrnvoid search_name() //查询名字rnrn STU*p=NULL;rn char name[20];rn if (head==NULL)rn rn printf("文档中无记录!\n");rn return;rn rn printf("输入学生姓名:");rn scanf("%s",name);rn for (p=head->next;p!=NULL;p=p->next)rn rn if (!strcmp(p->name,name))rn rn printf("************你要查找的学生是***********");rn printf("\t\t学生学号:\t%s\n",p->NO);rn printf("\t\t学生姓名:\t%s\n",p->name);rn printf("\t\t学生年龄:\t%d\n",p->age);rn printf("\t\t学生性别:\t%s\n",p->sex);rn printf("\t\t学生出生年月:\t%s\n",p->birthday);rn printf("\t\t学生地址:\t%s\n",p->address);rn printf("\t\t学生电话:\t%s\n",p->phone);rn printf("\t\t学生E_mail:\t%s\n",p->e_mail);rn printf("\n");rn i=1;rn rn rnrn if(!i)rn rn printf("无该学生信息!");rn rnrnrnvoid search_NO() //查询学号rnrn STU*=NULL;rn char NO[20];rn if (head==NULL)rn rn printf("文档中无记录!\n");rn return;rn rn printf("请输入学生学号:");rn scanf("%s",NO);rn for(p=head->next;p!=NULL;p=->next)rn rn if(!strcmp(p->NO,NO)rn rn printf("*********你要找的学生是********\n");rn printf("\t\t学生学号:\t%s\n",p->NO);rn printf("\t\t学生姓名:\t%s\n",p->name);rn printf("\t\t学生年龄:\t%d\n",p->age);rn printf("\t\t学生性别:\t%s\n",p->sex);rn printf("\t\t学生出生年月:\t%s\n",p->birthday);rn printf("\t\t学生地址:\t%s\n",p->address);rn printf("\t\t学生电话:\t%s\n",p->phone);rn printf("\t\t学生E_mail:\t%s\n",p->e_mail);rn printf("\n");rn i=1;rn rn rn if(!i)rn rn printf("无该学生信息!");rn rnrnrnvoid revise_stu() //修改信息rnrn STU*p==NULL;rn if(head==NULL)rn rn printf("文档中无记录!\n");rn return;rn rn char NO[20];rn printf("请输入学生学号:\t");rn scanf("%s",NO);rn for(p=head->next;p!=NULL;p=->next)rn rn if(!strcmp(p->NO,NO)rn rn printf("*********你要修改%s学生是********\n");rn printf("\t\t学生学号:\t%s\n",p->NO);rn printf("\t\t学生姓名:\t%s\n",p->name);rn printf("\t\t学生年龄:\t%d\n",p->age);rn printf("\t\t学生性别:\t%s\n",p->sex);rn printf("\t\t学生出生年月:\t%s\n",p->birthday);rn printf("\t\t学生地址:\t%s\n",p->address);rn printf("\t\t学生电话:\t%s\n",p->phone);rn printf("\t\t学生E_mail:\t%s\n",p->e_mail);rn printf("\n");rn i=1;rn printf("**********修改学号为%s的学生***\n",NO);rn strcpy(p->NO,NO);rn printf("\t\t输入修改学生姓名:\t");rn scanf("%s",p1->name);rn printf("\t\t输入修改学生学年龄:\t");rn scanf("%d",p1->age);rn printf("\t\t输入修改学生性别:\t");rn scanf("%s",p1->sex);rn printf("\t\t输入修改学生出生年月:\t");rn scanf("%s",p1->birthday);rn printf("\t\t输入修改学生地址:\t");rn scanf("%s",p1->address);rn printf("\t\t输入修改学生电话:\t");rn scanf("%s",p1->phone);rn printf("\t\t输入修改学生E_mail:\t");rn scanf("%s",p1->e_mail);rn printf("\n");rn save();rn rn rn if(!i)rn rn printf("无该学生信息!");rn rnrnrnvoid del_stu() //删除信息rnrn STU*p==NULL;rn if(head==NULL)rn rn printf("文档中无记录!\n");rn return;rn rn elsern rn char NO[20];rn printf("请输入学生学号:\t");rn scanf("%s",NO);rn for(p=head->next;p!=NULL;p=->next)rn rn if(!strcmp(p->NO,NO)rn rn printf("*********你要删除的学生是********\n");rn printf("\t\t学生学号:\t%s\n",p->NO);rn printf("\t\t学生姓名:\t%s\n",p->name);rn printf("\t\t学生年龄:\t%d\n",p->age);rn printf("\t\t学生性别:\t%s\n",p->sex);rn printf("\t\t学生出生年月:\t%s\n",p->birthday);rn printf("\t\t学生地址:\t%s\n",p->address);rn printf("\t\t学生电话:\t%s\n",p->phone);rn printf("\t\t学生E_mail:\t%s\n",p->e_mail);rn printf("\n");rn i=1;rn if (p->next->next)rn rn printf("第一个\n");rn p->next-=p->next->next;rn rn elsern p->next=NULL;rn n--;rn save();rn return;rn rn if(!i)rn rn printf("无该生信息!");rn return;rn rn rn rnrnrnvoid arrage_stu() //排序rnrn STU*p1,p2;rn int in=0,j;rn if (head->next==NULL)rn rn printf("你还没有记录,无法排序\n");rn return;rn rn printf("n=%d",n);rn p1=head->next;rn for (in=0;innext;jnext,j++)rn rn if (j=0)rn rn if (strcmp(p1->NO,P1-next->NO))rn rn p2=p1->next;rn p1->next=p1->next->next;rn p2->next=p1;rn head->next=p2;rn p1=head->next;rn rn rn if (strcmp(p1->next->NO,p1->next->next->NO))rn p2=p1->next;rn p1->next=p1->next->next;rn p2->next=p1->next->next;rn p1->next->next=p2;rn rn rn if (strcmp(head->next->NO,head->next->next->NO))rn rn p1=head->next;rn head->next=p1->next;rn p1->next=p1->next->next;rn head->next->next=p1;rn if(n==2)rn head->next->next->next=NULL;rn rn rnrnrnrnvoid save() //保存数据rnrn printf("*******************保存信息并结束***********");rn STU*p=NULL;rn FILE*fp;rn char *filename="fname.txt";rn if((fp=fopen("fname,txt","w"))==NULL)rn rn printf("\n无法打开文件!\n");rn return;rn rn if (head->next==NULL)rn rn printf("\n信息为空!\n");rn return;rn rn elsern p=head->next;rn while(p!=NULL)rn rn fprintf(fp,%s %s %d %s %s %s %s %s\n",p->NO,p->name,p->age,p->sex,p->birthday,p->address,p->phone,p->e_mail);rn p=p->nect;rn rn printf("保存完毕!\n");rn fclose(fp);rnrn
各位大佬 网站改密码验证码只收到四次后就收不到了 (是发到QQ邮箱里的) 求各位大佬帮忙
 各位<em>大佬</em> <em>网站</em>改密码验证码只收到四次后就收不到了 (是发到QQ邮箱里的)求各位<em>大佬</em>帮忙
【求助】发布后的网站代码问题!!!
各位大侠有一<em>网站</em> 以web应用程序的形式发布的,每次更改,都需要重新编译工程上传覆盖;只有以web站点形式发布的,可以随时修改源程序。 但本地留的源<em>代码</em>里面很多关键<em>代码</em>都没了rnrn现在我在原来的基础上改动不了只有新加页面。 现在遇到的问题 本地没有发布的<em>网站</em>类文件都装载App_code文件夹下 发布的<em>网站</em>都编译成DLL放在 Bin文件夹下。 rnrn比如我现在新建了一个页面 Page.aspx 放在 IIS<em>网站</em>目录下 在 Page.aspx.cs里面有 一句<em>代码</em> rnrnSystemTools.exe_sql(sql)rnrn调用的是 SystemTools类里面的的 exe_sql的方法。 这<em>代码</em>在本地调用没问题 因为本地没发布 App_code文件夹下还有SystemTools.cs这个类文件。 但是放到服务器上发布的<em>网站</em>目录下就不行了。原因是因为 类文件被编译成DLL了rnrn我在服务器上发布的<em>网站</em>目录下又建了一个 App_code文件夹 把本地的 SystemTools类放到这个文件夹里面 结果报错 webconfig什么错误。 rnrn请教各位大侠我怎么能在服务器发布的<em>网站</em>上 调用到SystemTools类里面的方法呢?
求助,各位大佬帮我看一下。。。。。
这是一个小程序,我想让字和喇叭对齐,我用flex布局的 display: flex; flex-direction: row; align-items: center; justify-content: center; justify-content的各个值也都用过了,都对不齐, 不知道这个东西哪来的高?? ...
大佬帮我看看怎么回事!!!!
//kese1.h 文件,实现类的声明rn#include rn#include rn#include rn#include rn#include rn#include rn#include rnusing namespace std;rn//student.h学生类rnclass Student;rnclass StuList;rnostream& operator<<< 0)rn cout << setw(3) << "序号";rn cout << setw(10) << "姓名" << setw(20) << "学号"\rn << setw(6) << "大外" << setw(6) << "高数"\rn << setw(6) << "模电" << setw(10) << "面向对象"\rn << setw(10) << "总分" << endl;rn stuHead = true;rn rn if (n > 0)rn cout << setw(3) << n;rn cout << setw(10) << stuname << setw(20) << stunum\rn << setw(6) << stuscore[0] << setw(6) << stuscore[1]\rn << setw(6) << stuscore[2] << setw(10) << stuscore[3]\rn << setw(10) << total << endl;rnrnostream& operator<< "找到的结果为" << endl;rn stu.print(sign + 1);rn rn elsern cout << "没有找到!" << endl;rnrnrnrnvoid StuList::Show() //遍历列表显示rnrn list::iterator it = thestu.begin(); //定义迭代器指针rn int i = 0;rnrn while (it != thestu.end())rn rn it->print(++i);rn it++;rn rnrnvoid StuList::SorttoFile(char* filename) //按学生总成绩进行排序rnrn thestu.sort();rn Show();rn //排序后的内容保存到文件中rn ofstream out(filename);rn copy(thestu.begin(), thestu.end(), ostream_iterator(out));rnrnvoid StuList::Max() //各科的最高分rnrnrn float max[4] = 0, 0, 0, 0 ;rnrn for (int i = 0; i < 4; i++)rn rn list::iterator it = thestu.begin(); //定义迭代器指针rn Student stu;rn while (it != thestu.end())rn rn stu = *it;rn if (max[i] < stu.stuscore[i])rn max[i] = stu.stuscore[i];rn it++;rn rn rn cout << "各科的最高分 :" << "大外" << max[0] << "高数" << max[1] << "模电" << max[2] << "面向对象" << max[3] << endl;rnrnvoid StuList::Min() //各科的最低分rnrnrn float min[4] = 100, 100, 100, 100 ;rnrn for (int i = 0; i < 4; i++)rn rn list::iterator it = thestu.begin(); //定义迭代器指针rn Student stu;rn while (it != thestu.end())rn rn stu = *it;rn if (min[i] > stu.stuscore[i])rn min[i] = stu.stuscore[i];rn it++;rn rn rn cout << "各科的最低分 :" << "大外" << min[0] << "高数" << min[1] << "模电" << min[2] << "面向对象" << min[3] << endl;rnrnrn//Class.cpprnrnvoid Class::CPrint() //输出班级信息rnrn cout << setw(3) << "年级" << setw(10) << "班级" << endl;rn cout << setw(3) << clgrade << setw(10) << clclass << endl;rn cout << setw(3) << "序号";rn cout << setw(10) << "姓名" << setw(20) << "学号"\rn << setw(6) << "大外" << setw(6) << "高数"\rn << setw(6) << "模电" << setw(10) << "面向对象"\rn << setw(10) << "总分" << endl;rn list::iterator it = cl.begin();//定义迭代器指针rn int i = 0;rnrn while (it != cl.end())rn rn it->print(++i);rn it++;rn rnrnrn//ClList.cpprnrnvoid ClList::CAdd(Class cl) //增加班级信息rnrn thecl.push_back(cl);rnrnvoid ClList::CSeek(char* cclass) //查询班级信息rnrn int sign = -1;rn list::iterator it = thecl.begin(); //定义迭代器指针rn Class cl;rn while (it != thecl.end())rn rn cl = *it;rn if (strcmp(cl.Getclclass(), cclass) == 0)rn rn sign = 1;rn break;rn rn it++;rn rn if (sign > 0)rn rn cout << "查找的结果为" << endl;rn cl.CPrint();rn rn elsern cout << "没有查找到!" << endl;rnrnvoid ClList::CModify(char* cclass, Class& cl) //修改班级信息rnrn list::iterator it = thecl.begin(); //定义迭代器指针rnrn while (it != thecl.end())rn rnrn if (strcmp((*it).Getclclass(), cclass) == 0)rn rn *it = cl;rn // sign = 1;rn break;rn rn it++;rn rn cout << "修改的结果为" << endl;rn cl.CPrint();rnrnvoid ClList::CDelete(char* cclass) //班级的删除rnrn list::iterator it = thecl.begin();//定义迭代器指针rn while (it != thecl.end())rn rnrn if (strcmp((*it).Getclclass(), cclass) == 0)rn rn thecl.erase(it);rn break;rn rn it++;rn rn cout << "删除成功" << endl;rnrnvoid ClList::CShow() //年级中所有班级的显示rnrn list::iterator it = thecl.begin(); //定义迭代器指针rn Class cl;rn while (it != thecl.end())rn rn cl = *it;rn cl.CPrint();rn it++;rn rnint main() //主函数rnrn StuList thestu; //存放所有学生rn Student stu1("ma", "0803070201", 88, 90, 69, 52.6f);rn Student stu2("li", "0803070202", 52, 96, 74, 56);rn Student stu3("wang", "0803070101", 85, 25, 95, 79);rn Student stu4("yang", "0803070102", 82, 78, 84, 95);rn Student stu5("ding", "0803070301", 76, 85.6f, 94, 83);rn thestu.Add(stu1);rn thestu.Add(stu2);rn thestu.Add(stu3);rn thestu.Add(stu4);rn thestu.Add(stu5);rn thestu.Show();rnrn thestu.Seek("0803070201"); //查找学号为0803070201的同学rnrn cout << "排序的结果" << endl;rn thestu.SorttoFile("student.dat"); //按总分排序rn thestu.Max();rn thestu.Min();rnrn StuList s1;rn StuList s2;rn StuList s3;rn s1.Add(stu3);rn s1.Add(stu4);rn s3.Add(stu5);rn s2.Add(stu1);rn s2.Add(stu2);rnrn ClList thecl;rnrn Class cl1("二年级", "08030701", s1.Getthestu());rn Class cl2("二年级", "08030702", s2.Getthestu());rn Class cl3("二年级", "08030703", s3.Getthestu());rn thecl.CAdd(cl1);rn thecl.CAdd(cl2);rn thecl.CShow();rn thecl.CSeek("08030702"); //查找班级为08030702的班级rn thecl.CAdd(cl3);rn cout << "将08030702修改为08030703" << endl;rn thecl.CModify("08030702", cl3); //修改班级rn cout << "删除08030701班" << endl;rn thecl.CDelete("08030701"); //删除08030701班rn return 0;rn
大佬帮忙
匿名上位机写了校验码程序,但为什么每次写入飞控时显示校验码超时
大佬求帮忙
求帮忙 ![在这里插入图片描述](https://img-blog.csdnimg.cn/2018112615060233.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80MzgwNDcyMQ==,size_16,col...
大佬下CSDN资源
有没有好心人帮忙下载一下CSDN资源 https://download.csdn.net/download/qq_36688952/10616284?utm_source=blogxgwz8 https://download.csdn.net/download/qq_36688952/10616284?utm_source=blogxgwz8 感恩 ...
大佬帮忙看一下
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: Error updating database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionExcep...
大佬解答
电脑启动时选择ubuntu然后便一直卡在这里,启动不起来,求<em>大佬</em>解答
大佬给求解
四个数字 37,4,17,21,运算符号+ - * / (),任意组合得出计算结果为40,所有数字和符号都用到且只能用1次
大佬帮忙!!!
void modify(char* stuid,char*name,int num)rn rn rn if( !checkAdd(stuid))rn printf("请选择修改项目:1—学号;2—姓名;3—成绩");rn scanf("%d",&p);rn switch(p)rn rn case 2:rn printf("请输入新名字");rn scanf("%s",Newname);rn strcpy(name,Newname);rn printf("成功");rn break;rn rn rnrnrn elseprintf("无信息");rnrnrnrnrnrn这是程序的一部分 rn编译没问题rnstrcpy(name,Newname);rn但是这个改变名字的话不对 不能修改名字 求指教rn
新人求大佬解答
题目是计算n的阶乘rnrn#include rnint main ( void )rnrn int n,i,p;rn scanf("%d",&n);rn p=1;rn for (i=n;i>=1;i=i-1)rn p=p*i;rn rn printf("product = %d",p);rn return 0;rnrnrn当n输入100时,为什么会出现product=0的情况啊???或者说不用自定义函数仅用for循环语句可以实现求n的阶乘么???rnrn详见下图rn[img=https://img-bbs.csdn.net/upload/201903/09/1552112738_96198.png][/img]
大佬指点
怎判断一个数是不是素数?新人求指教。break和continue应该怎么用啊?老是用错rn
大佬解释下 急
随机产生0~100之间的随机整数,如果是3的倍数,就把该数显示在页面,如果产生的是0,就结束产生随机数,并在页面利用警告框提示“共产生???个随机数,其中3的倍数有?个!”。rn这个问题用javascript+jquery怎么写
大佬们解答!!!
刚做了一道华为的测试题,不知道为啥,提交上去说我通过率只有20%,求解!!!rnrn[size=18px][b]题目:[/b][/size]rn给定一个整数,给出消除重复数字以后最大的整数rnrn输入描述:rnrn正整数,注意考虑长整数rnrn输出描述rnrn消除重复数字后的最大整数rnrn示例1rnrn输入rnrn423234rnrn输出rnrn432rnrn[size=18px][b]疑问:[/b][/size]rn1、题目中说到:注意考虑长整数是什么意思?rn2、请<em>大佬</em>们指出我的<em>代码</em>问题出来哪里,为什么只有20%通过率,哪些范围的数字通不过?rnrn附上我自己的<em>代码</em>,不明白为什么通过率只有20%:rn#include rn#include rnrnint num[100];rnrnvoid sort(int a[], int n) rnrn int i,j,k,t;rn for(i = 0; i < n - 1; ++i) rn rn k = i;rn for(j = i + 1; j < n; ++j) rn rn if(a[k] < a[j])rn k = j;rn rn if(i != k) rn rn t = a[i];rn a[i] = a[k];rn a[k] = t;rn rn rnrnrnint xiaochu(int a[], int n) rnrn int i,j,k;rn for(i = 0; i < n - 1; ++i) rn rn for(j = i + 1; j < n; ++j) rn rn if(a[i] == a[j])rn rn for(k = j; k < n - 1; ++k)rn rn a[k] = a[k + 1];rn rn --n;rn --j;rn rn rn rn return n;rnrnrnint main(void)rnrn long a = 423234;rn int i = 0;rnrn while(a)rn rn num[i] = a % 10;rn a = a / 10;rn i++;rn rnrn sort(num, i);rn int count = xiaochu(num, i);rnrn int temp = 0;rnrn for(int j = 0; j < count; j++)rn temp = temp * 10 + num[j];rnrn printf("%d\n", temp);rn //system("pause");rnrn return 0;rnrnrn这段<em>代码</em>我在考试的网页上点击自测,但是网上给出的答案是:rn[img=https://img-bbs.csdn.net/upload/201808/31/1535696754_819035.png][/img]rn但是自己在VS2010中编译计算后的结果是:rn[img=https://img-bbs.csdn.net/upload/201808/31/1535696864_511655.jpg][/img]
各位大佬求帮助
我的win10系统进去以后,在桌面随便打开一个程序运行几分钟  退回桌面就会好像桌面没刷出来一样  点不了桌面上程序  但键盘可以用   可以通过打开一次任务管理器恢复正常   求教<em>大佬</em>们怎么解决呀[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/5.gif][/img][img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/5.gif][/img]
大佬写个Java程序
这个题看着挺简单的 但是做不对啊[face]monkey:11.gif[/face][face]monkey:11.gif[/face][face]monkey:11.gif[/face][img=https://img-bbs.csdn.net/upload/201904/18/1555572593_329586.png][/img]
大佬救命。。。。。。
最近刚下了 eclipse 64位的 然后安装后就出现在这个 , 求<em>大佬</em>帮忙解决下 ,万分感谢!!!![img=https://img-bbs.csdn.net/upload/201804/23/1524474193_632960.png][/img]
realtek8111系列无盘专用驱动通杀版下载
realtek8111系列无盘专用驱动通杀版 相关下载链接:[url=//download.csdn.net/download/gxp56505969/3814131?utm_source=bbsseo]//download.csdn.net/download/gxp56505969/3814131?utm_source=bbsseo[/url]
BDC技术教程下载
在SAP系统里,由于某种原因,可能需要重复输入数据,(数据不同,但是操作是相同的,典型的情形就是切换系统的时候,旧系统的数据需要导入SAP),大致过程不外乎是这样: 输入一个t-code, 进入一个某个屏幕,然后输入一个值(有时还要加上一些附加的checkbox选项等),点执行或者确定按钮, 进入另一个屏幕,在某些字段输入值(也可能是标注checkbox选中或者不选中)或者修改这些字段里的值。 然后按“Eneter”…… 最后按“SAVE”……, 一条记录完成了,继续下一条,如此循环。 相关下载链接:[url=//download.csdn.net/download/chngang/5008244?utm_source=bbsseo]//download.csdn.net/download/chngang/5008244?utm_source=bbsseo[/url]
OPT最佳页面置换算法下载
是OPT算法的C语言实现,希望对你们有帮助! 相关下载链接:[url=//download.csdn.net/download/daiyuxiong/6738503?utm_source=bbsseo]//download.csdn.net/download/daiyuxiong/6738503?utm_source=bbsseo[/url]
相关热词 c# 去空格去转义符 c#用户登录窗体代码 c# 流 c# linux 可视化 c# mvc 返回图片 c# 像素空间 c# 日期 最后一天 c#字典序排序 c# 截屏取色 c#中的哪些属于托管机制
我们是很有底线的