好迷惑!不知道错在哪里? [问题点数:0分]

Bbs1
本版专家分:30
结帖率 99.38%
Bbs7
本版专家分:17420
Bbs7
本版专家分:20753
Bbs5
本版专家分:2459
Bbs5
本版专家分:2459
Bbs4
本版专家分:1599
Bbs2
本版专家分:173
Bbs1
本版专家分:30
Bbs8
本版专家分:34398
Blank
蓝花 2003年9月 .NET技术大版内专家分月排行榜第三
Bbs1
本版专家分:30
Bbs1
本版专家分:30
Bbs1
本版专家分:3
Bbs4
本版专家分:1144
不知道错在哪里???
Sub onSave(obj as object,e as eventargs) rn Try rn Dim Conn as New OleDbConnection(configurationSettings.AppSettings("dsn")) rn Dim Cmd as OleDbCommand= New OleDbCommand("sp_addArticles", Conn)rn Cmd.CommandType = CommandType.StoredProcedurern 'Dim Reader as OleDbDataReaderrn Dim Param as OleDbParameterrn Param=Cmd.Parameters.Add("@classname",OleDbType.Integer)rn Param.Direction=ParameterDirection.Inputrn Param.Value=Request("classID")rn Param=Cmd.Parameters.Add("@title",OleDbType.VarChar)rn Param.Direction=ParameterDirection.Inputrn Param.Value=txtTitle.textrn '这里我<em>不知道</em>用什么类型的OleDBTypern Param=Cmd.Parameters.Add("@content",OleDbType.Char)rn Param.Direction=ParameterDirection.Inputrn Param.Value=txtContent.textrn Param=Cmd.Parameters.Add("@usersname",OleDbType.Char)rn Param.Direction=ParameterDirection.Inputrn Param.Value=session("UserName")rn Param=Cmd.Parameters.Add("@source",OleDbType.Char)rn Param.Direction=ParameterDirection.Inputrn Param.Value=txtSource.textrn Param=Cmd.Parameters.Add("@photo",OleDbType.Char)rn Param.Direction=ParameterDirection.Inputrn Param.Value=""rn Param=Cmd.Parameters.Add("@attach",OleDbType.Char)rn Param.Direction=ParameterDirection.Inputrn Param.Value=""rn Param=Cmd.Parameters.Add("@interpret",OleDbType.Char)rn Param.Direction=ParameterDirection.Inputrn Param.Value=""rn Conn.Openrn Cmd.ExecuteNonQueryrn Conn.Closern Catch ex As Exceptionrn Response.Write(ex)rn Finallyrnrn End Tryrn End Sub rnrn存储过程是这样的:rnALTER PROCEDURE sp_addArticles @content ntext,@title nchar(100),@classname bigint,rn@username char(20),@source char(40),@hints bigint,rn@photo char(10),@attach char(100),@interpret char(100) as rninsert into db_Article rnvalues(@content,@title,@classname,@username,@source,0,@photo,@attach,@interpret,GETDATE(),0)
不知道错在哪里(ACCESS)
我想在窗体中显示d:\work\db1.mdb中的student表的内容。rn 我在BDE Administrator中新建了一个DAtabase Driver Name为Microsoft Access Driver(*.mdb)的以my_access1为别名的东西。rn 我在d:\work中有一个用Office Access建DB1.mdb,在这个数据库文件下有一个sutdent表格。rn 请教如何用TDBGrid显示student表的内容?需要哪些组件,如何设置?
不知道哪里
题目(1)编写一个程序实现如下功能:一个整型数组有10个元素,删除所有值为n的元素。要求:rn① 主函数完成n的输入,数组元素输入以及删除后数组元素的输出。rn② 删除功能用子函数完成。rn#include rn#include rnrnint main()rnvoid over(int a[10],int b[10],int c);rn int a[10],b[10],c,d,i;rn a[10]=1,2,3,4,5,6,7,8,9,10;rn scanf("%d",&c);rn over(a[10],b[10],c);rn d=strlen(b);rn for(i=0;i
不知道 错在哪里
我按书上写的 代码如下:rn page_load 事件 rn rn rn rn rn rnrnrnrn 处理page_load事件 rn rn用户名:rn 密码:rn rnrn rnrnrn但是却实现不了 rn不管密码 输正确与否 都没有提示rnrn
急!!不知道错在哪里???
写了一段代码,还有错,心急呀!rnrn主要ASP代码是:rn--------------------------------------------------rn rn rn rn rn rn rn rn rn-----------------------------rn出现错误为:rn========================================rnMicrosoft VBScript 编译器错误 错误 '800a03f6' rn缺少 'End' rnrn/iisHelp/common/500-100.asp,行242 rnrnMicrosoft OLE DB Provider for ODBC Drivers 错误 '80040e21' rnrnODBC driver does not support the requested properties. rnrn/cang/index.asp,行61 rn==============================rn不解?
郁闷,不知道错在哪里
#include#include#define max 20typedef struct tnode{ char data;  struct tnode *lchild,*rchild;}BTNode;void createbtnode(BTNode *&bt,char *&str){ int k,j=0,top=-1;  char ch;  BTNode *p=NULL,*st[max];  b
不要被表象所迷惑
有两个指针,char *a; double *b; 其实char的地址和double的地址的长度是相同的。因为都是地址嘛,一般来说,地址需要2个或者4个字节,取决于计算机系统(有些系统可能更大,但在同一系统中地址长度都是一样的)。我特地试了试: #include using namespace std; int main() { char *a; double *b; cout <<
wapgame_analyze-9255.rar
wapgame_analyze-9255.rar <em>不知道</em><em>哪里</em>的
代码坏味道之令人迷惑的暂时字段
为什么我们随意命名变量会是灾难性的决定? 随意命名变量是编写代码的灾难性决定,我这里说的比较严重,但是为了强调编程过程中不要随意命名我们的变量。因为从以下三方面的理由是不允许我们在程序中随意命名变量的。首先在编程过程中,随意命名的变量会导致我们编写代码中弄乱数据传输的关系,因为人们通过混乱的字段会把字段的本意理解错误的,理解错误字段的意思就会把该字段用在本不该她使用的地方。其次,当你费尽
95%的人不知道的被隐藏了的手机功能 能救命
1、隐形的备用电池     你的手机电量不足了,为了让它能够继续使用,按*3370#键,手机会重新启动,启动完毕后,你就会发现电量增加了50%。这部分隐藏的备用电量用完了你就必须得充电了,再次充电的时候,隐形的备用电池也同时充电,下次电量低的时候又可以用这个方法。知道这个在紧急情况下如果手机电量不足非常管用。         2、紧急情况         全世界的手机都可以拨打的共同紧急救援号码是
求助数据类型转换不知道哪里
public class VoConactor { private String conName; private int number; public String getconName(){  return conName; } public void setconName(String conName){  this.conName = conName; } public int getnu
不知道错在哪里了,请解答
题目:0,1,2,3,4,5排列4位数字,要求无重复,为什么会是630,应该为150的?rn求解答rnrn#include rnmain(void)rnrn int a,b,c,d,count=0;rn for (a=0;a,count);rn
真痛苦~不知道哪里
[img=http://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/0.gif][/img]rn为毛看不出错误!rn# includern# includern# includernusing namespace std;rnrnint main()rnrn string word;rn cin>>word;rn int i,j,k;rn i=j=k=0;rn while(word!="q")rn rn cin.get();rn i++;rn while(isalpha(word[0]))rn rn switch(word[0])rn rn case 'A':rn case 'a':rn case 'E':rn case 'e':rn case 'O':rn case 'o':rn case 'U':rn case 'u':rn case 'I':rn case 'i':j++;rn break;rn default: k++;rn ;rn cin>>word;rn ;rn ;rn cout<
这个SQL不知道错在哪里
我使用下面的SQL语句,用BDE中的query1中可以通过,一但换成ADO中的Adoquery1就出错了,<em>不知道</em>是什么原因,请指教!rn Adoquery1.close;rn Adoquery1.sql.clear;rn Adoquery1.sql.add(' where (datea>=:g1 and datea);rn Adoquery1.params[0].asdate:=DateTimePicker1.date;//就是这句出错rn Adoquery1.params[1].asdate:=DateTimePicker2.date;rn Adoquery1.openrn
我真的不知道错在哪里?
import java.sql.*;rnrnpublic class TestDB rnrn public static void main(String args[])throws Exceptionrn rn String strUrl=null;rn Connection conn=null;rn Statement stmt=null;rn ResultSet rst=null;rn Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();rn System.out.println("DriverGet");rn strUrl="jdbc:microsoft:SqlServer://localhost:1433;DatabaseName:wwjg";rn System.out.println(strUrl);rn tryrn rn conn=DriverManager.getConnection(strUrl,"sa","qeixtjge");rn// stmt=conn.createStatement("select * from authors");rn stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE); rn rst=stmt.executeQuery("select * from contentstd");rn while(rst.next())rn rn System.out.println(rst.getString(1)); rn rn rst.close();rn stmt.close();rn conn.close();rn rn catch(SQLException e)rn rn System.out.println("SQLException:"+e.getMessage()); rn rn rnrnrn错误提示如下:rnSQLException:[Microsoft][SQLServer JDBC Driver]Unable to connect. Invalid URL.
求错误,不知道错在哪里
#include&amp;lt;iostream&amp;gt;using namespace std;class CCourse{private: long no; float credit; static int total_course;public: CCourse(long n,float c) {no=n; credit=c; total_course++; } CCourse(const CCour...
不知道这个程序错在哪里????????
这个是构造一个空的线性表:rnrnrn#define LIST_INIT_SIZE 100rn#define LISTINCREMENT 10rn#includerntypedef structrnint *elem;rnint length;rnint listsize;rnSqlist;rnvoid initList_Sq(Sqlist &L) 编译器显示这句语法错误rnL.elem=(int *)malloc(LIST_INIT_SIZE*sizeof(int));rnif(!L.elem)rnprintf("The memory allocation defeat.");rn exit(OVERFLOW);rn L.length=0;rn L.listsize=LIST_INIT_SIZE;rn return OK;rn rnmain()rnSqlist L1;rninitList_Sq(L1);rnrn
游标出错,不知道哪里
程序如下:rn//3===============wx+创建文件夹=======begin rnsqlca.autocommit=true rnstring rf_folderrndeclare cursor_rf cursor for select distinct rf from temrkb where xmxh=:vxm for read only;rnopen cursor_rf;rnfetch cursor_rf into :rf_folder;rndo while sqlca.sqlcode=0rnfetch cursor_rf into :rf_folder;rn integer li_rtnrnli_rtn = CreateDirectory (zml+rf_folder)rnIf li_rtn = 1 Thenrn MessageBox('提示信息','目录'+zml+rf_folder+'创建成功!')rnElsern MessageBox('提示信息','目录'+zml+rf_folder+'创建失败!')rnEnd ifrnlooprnclose cursor_rf;rnsqlca.autocommit=falsern//3=======================wx+创建文件夹==========stoprnrn可是比如说有15个文件夹,创建前14个都能成功,第15个总是出错,也就是说用游标最后一次取出数据,然后创建文件夹总是出错的,为什么呢?我有怀疑过循环条件,我知道数据库中判断游标取数值状态有一个系统变量来判断是否成功,就是@@fetch_status=0,就表明取成功,可是在pb中<em>不知道</em>如何改写到我那个循环条件中,直接用do while @@fetch_status=0有语法错误。rnrn1请大家帮忙侃侃为什么会出错。rn2如果要改写到pb中,应该怎么写。
迪杰斯特拉算法,真心不知道错在哪里
近来课程设计老师让写一个最短路径,程序如下rn#includern#includernusing namespace std;rn#define N 100rnint i,j,temp[4];rn//unsigned long distance[4][4];rnunsigned long min;rnchar letter[N][N]="行政楼","食堂","澡堂","实验室";rnrn//数据处理函数rnvoid Min(int &ii,int &jj,int tem[],unsigned long &minn,unsigned long distances[4][4])rnrn int h,m=0;rn int k=0;rn if(ii==1) //判断是不是第一次进入循环rn rn minn=distances[tem[ii-1]][1];rn rn else //取第一个非0的值为初始最小值rn rn for(h=0;hdistances[tem[ii-1]][jj])rn rn minn=distances[tem[ii-1]][jj];rn k=jj;rn rn rn rn for(h=0;hdistance[i][j];rn distance[j][i]=distance[i][j];rn rn rn for(i=0;i<
查错误。(不知道错在哪里
INSERT INTO gongzhi_date( 帐套名,姓名,部门,工资查询日期,rn实发工资 ,扣除合计 ,扣除合计 ,代扣所得税,个人失业金,rn个人医保金,个人养老金,生养 ,工伤 ,公司失业金,rn公司医保金,公司养老金,其他奖金 ,夜餐津贴 ,岗位补贴 ,其它补贴 ,rn职称补贴 ,工龄补贴 ,加班津贴 ,加班天数 ,浮动考核 ,浮动工资 ,rn标准考核 ,标准工资 ,工资总额 )select 'aa' as 帐套名,rnt1.姓名,t1.部门,'05 1 2005 12:00AM ' as 工资查询日期,t1.FPA17 ,rnt1.FPA16 ,t1.FPA16 ,t1.FPA18 ,t1.FPA36 ,t1.FPA37 ,rnt1.FPA35 ,t1.FPA34 ,t1.FPA33 ,t1.FPA31 ,t1.FPA32 ,rnt1.FPA30 ,t1.FPA45 ,t1.FPA27 ,t1.FPA49 ,t1.FPA41 ,rnt1.FPA47 ,t1.FPA28 ,t1.FPA46 ,t1.FPA24 ,t1.FPA23 ,rnt1.FPA22 ,t1.FPA21 ,t1.FPA19 ,t1.FPA20 rnfrom(select y.fname as '姓名',z.fanme as '部门',k.FPA17 ,rnk.FPA16 ,k.FPA16 ,k.FPA18 ,k.FPA36 ,k.FPA37 ,rnk.FPA35 ,k.FPA34 ,k.FPA33 ,k.FPA31 ,k.FPA32 ,rnk.FPA30 ,k.FPA45 ,k.FPA27 ,k.FPA49 ,k.FPA41 ,rnk.FPA47 ,k.FPA28 ,k.FPA46 ,k.FPA24 ,k.FPA23 ,rnk.FPA22 ,k.FPA21 ,k.FPA19 ,k.FPA20 rnfrom aa..t_PA_Personal x ,aa..t_PA_Personal y ,rnaa..t_PA_Item z ,aa..t_PANewData k ,rnaa..t_pa_department u where z.fitemid =k.fitemdepid and rny.fitemid =k.fempid and x.fitemid=y.fitemid and x.fitemdepid=z.fitemid rnand u.fitemid=z.fitemid And t1.FYear= year('05 1 2005 12:00AM ') And rnt1.FPeriod=month('05 1 2005 12:00AM '))t1rnrnrn运行错误:rn服务器: 消息 107,级别 16,状态 2,行 1rn列前缀 't1' 与查询中所用的表名或别名不匹配。rn服务器: 消息 107,级别 16,状态 1,行 1rn列前缀 't1' 与查询中所用的表名或别名不匹配。rn
简单的链表不知道错在哪里
就是实现动态输入一些数,然后再输出来,每次只能输出链表最后一个数据!rn#includern#includerntypedef struct nodernrn int data;rn node* next;rnnode;rnnode*create()rnrn int i=0;rn node *p,*q,*head;rn int x=0;rn head=(node*)malloc(sizeof(node));rnrn while(1)rn rn printf("Please input a data!\n");rn scanf("%d",&x);rn if(x==0) break;rn rn p=(node*)malloc(sizeof(node));rn p->data=x;rn if(++i=1)rn rn head->next=p;rn rn elsern rn q->next=p;rn rn q=p;rn rn q->next=NULL;rn return head;rnrnvoid print(node *head)rnrn node *p;rn int index=0;rn if(head->next==NULL)rn rn printf("empty");rn return;rn rn p=head->next;rn while(p!=NULL)rn rn printf("the %dth node is %d\n",++index,p->data);rn p=p->next;rn rnrnvoid main()rnrn node *head=create();rn print(head);rnrnrn
很简单问题。不知道错在哪里。。。
rnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrn rnrnhtml...rnrn错误提示:rnServer Error in '/' Application.rn--------------------------------------------------------------------------------rnrnCompilation Error rnDescription: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. rnrnCompiler Error Message: CS0723: Cannot declare variable of static type 'System.IO.File'rnrnSource Error:rnrn rnrnLine 21: void Page_Load(object sender,EventArgs e) rnLine 22: rnLine 23: File ftpfile1=new File("D:\\Program Files\\Serv-U\\1.ini");rnLine 24: SteamReader strm=ftpfile.OpenText();rnLine 25: abc.Text=strm.ReadLine();rn rnrn
记录新建,不知道错在哪里!
原程序如下:是access数据库rnrnstrSql="select * from Employee where cName='"&cName&"' and eName='"&eName&"'"rn set rs = Server.CreateObject("ADODB.Recordset")rn rs.ActiveConnection = MM_NetOA_STRINGrn rs.Source = strSQLrn rs.CursorType = 3rn rs.CursorLocation = 3rn rs.LockType = 3rn rs.Open()rn if rs.eof thenrn rs.AddNewrn rn rs("cName")=cNamern rs("eName")=eNamern rs("Password")=Passwordrn rs("Sex")=Sexrn rs("BmID")=BmIDrn rs("Position")=ZWrn rs("BirthDay")=BirthDayrn rs("XL")=XLrn rs("JL")=JLrn rs("Photo")=Photorn rs("JJ")=JJrn rs("Email")=Emailrn rs("Tel")=Telrn rs("Mp")=Mprn rs("Times")=now()rn rs("Flag")=StrFlagrn rn rs.updatern Temp_Str="true"rn elsern Temp_Str="false"rn end ifrn rs.closernrnrnrn错误类型:rnMicrosoft JET Database Engine (0x80004005)rn操作必须使用一个可更新的查询。rn/nb/master/Function.asp, 第 70 行rn70行是rs.updaternrn不明白!!!!!!
链队列不对 不知道错在哪里
#includen#includentypedef struct Node n int number;n char name[20];n Node *next;nQnode;ntypedef struct n Qnode *front;n Qnode *rear;nLinkQueue;nvoid Enqueue(LinkQueue *q)n int n;n scanf_s("%d", &n);n for (int i = 1;i front== q->rear) n q->front = &p;n q->rear = q->front->next=NULL;n n n else n q->rear = &p;n q->rear = q->rear->next=NULL;n n nnvoid Dequeue(LinkQueue *q) n //if (q->front == q->rear) printf("empty");n printf("%d %s\n", q->front->number, q->front->name);n q->front = q->front->next;nnint main() n LinkQueue *q;n q = (LinkQueue*)malloc(sizeof(LinkQueue));n q->front = q->rear = NULL;n q->front=q->rear= (Qnode*)malloc(sizeof(Qnode));n q->front->next = q->rear->next = NULL;n Enqueue(q);n Dequeue(q);nnn初学写的有点乱
代码不知道错在哪里了,苦恼
题目是这样的n读入n名学生的姓名、学号、成绩,分别输出成绩最高和成绩最低学生的姓名和学号。nn输入格式:每个测试输入包含1个测试用例,格式为nn 第1行:正整数nn 第2行:第1个学生的姓名 学号 成绩n 第3行:第2个学生的姓名 学号 成绩n ... ... ...n 第n+1行:第n个学生的姓名 学号 成绩n其中姓名和学号均为不超过10个字符的字符串,成绩为0到100之间的一个整数,这里保证在一组测试用例中没有两个学生的成绩是相同的。n输出格式:对每个测试用例输出2行,第1行是成绩最高学生的姓名和学号,第2行是成绩最低学生的姓名和学号,字符串间有1空格。nn输入样例:n3nJoe Math990112 89nMike CS991301 100nMary EE990830 95n输出样例:nMike CS991301nJoe Math990112nn我的代码如下:nnn```n #includen#includen#include nusing namespace std;nntypedef struct studentn char name[10];n char ID[10];n int score;nstu;nnstruct sturulenn bool operator() (const student &a,const student &b)n n return a.score < b.score;n nn;nnint main(void)nn int n;n cin >> n;n stu a[n];n n for(int i=0;i> a[i].name >> a[i].ID >> a[i].score;n n sort(a,a+n,sturule()); n n cout << a[n-1].name << " " << a[n-1].ID << endl;n cout << a[0].name << " " << a[0].ID << endl;n n return 0;nn```n做OJ题,几乎每次都不能一次性正确,错了有时候找不到问题,烦恼。n
我真的不知道错在哪里
rn错误提示为:rnADODB.Recordset (0x800A0BB9)rn/web/sale/InOrderPrint.asp, 第 18 行rnrnrn浏览器类型:rnMozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) rnrn页:rnGET /web/sale/InOrderPrint.asp rn
不知道哪里又出了错
程序运行时当按某一个dxDBLookupEdit时,就会出现错误提示: field '' not foundrn其他的dxDBLookupEdit是都好使的啊,,我设置的时候是按同样的方法设的啊,我也查了相关的数据集了,没查出来啊,,,到底是怎么回事呢,,愁死我了,
0-1背包问题 不知道错在哪里
原题地址:http://cstfs.gdufs.edu.cn:8080/JudgeOnline/problem.jsp?id=1079rn我的代码(<em>不知道</em>为什么错)请高手指教rnC代码rnrn#includern#define N 100rnint min(int x,int y)rnrnint z;rnz=xy?x:y;rnreturn(z);rnrnrnint Knapsack(int c,int n)rn rnint i,j;rnint jMax;rnint w[N],p[N],m[N][N];rnjMax=min(w[n]-1,c);rnfor(j=0;j1;i--)rnrnjMax=min(w[i]-1,c);rnfor(j=0;j=w[1])rnm[1][c]=max(m[1][c],m[2][c-w[1]]+p[1]);rnreturn m[1][c];rnrnrnvoid main()rnrnint n,c,i,k;rnscanf("%d%d\n",&n,&c);rnint m[N][N];rnint w[N],s[N],x[N];rnfor(i=0;i d:\visual studio 2010\vc\include\stdio.h(304) : 参见“scanf”的声明rn1>c:\documents and settings\administrator\my documents\visual studio 2010\projects\ninth\ninth\ninth.c(45): error C2143: 语法错误 : 缺少“;”(在“类型”的前面)rn1>c:\documents and settings\administrator\my documents\visual studio 2010\projects\ninth\ninth\ninth.c(47): error C2065: “w”: 未声明的标识符rn1>c:\documents and settings\administrator\my documents\visual studio 2010\projects\ninth\ninth\ninth.c(47): error C2109: 下标要求数组或指针类型rn1>c:\documents and settings\administrator\my documents\visual studio 2010\projects\ninth\ninth\ninth.c(49): error C2065: “s”: 未声明的标识符rn1>c:\documents and settings\administrator\my documents\visual studio 2010\projects\ninth\ninth\ninth.c(49): error C2109: 下标要求数组或指针类型rn1>c:\documents and settings\administrator\my documents\visual studio 2010\projects\ninth\ninth\ninth.c(53): error C2065: “m”: 未声明的标识符rn1>c:\documents and settings\administrator\my documents\visual studio 2010\projects\ninth\ninth\ninth.c(53): error C2109: 下标要求数组或指针类型rn1>c:\documents and settings\administrator\my documents\visual studio 2010\projects\ninth\ninth\ninth.c(53): error C2065: “m”: 未声明的标识符rn1>c:\documents and settings\administrator\my documents\visual studio 2010\projects\ninth\ninth\ninth.c(53): error C2109: 下标要求数组或指针类型rn1>c:\documents and settings\administrator\my documents\visual studio 2010\projects\ninth\ninth\ninth.c(54): error C2065: “x”: 未声明的标识符rn1>c:\documents and settings\administrator\my documents\visual studio 2010\projects\ninth\ninth\ninth.c(54): error C2109: 下标要求数组或指针类型rn1>c:\documents and settings\administrator\my documents\visual studio 2010\projects\ninth\ninth\ninth.c(57): error C2065: “x”: 未声明的标识符rn1>c:\documents and settings\administrator\my documents\visual studio 2010\projects\ninth\ninth\ninth.c(57): error C2109: 下标要求数组或指针类型rn1>c:\documents and settings\administrator\my documents\visual studio 2010\projects\ninth\ninth\ninth.c(58): error C2065: “w”: 未声明的标识符rn1>c:\documents and settings\administrator\my documents\visual studio 2010\projects\ninth\ninth\ninth.c(58): error C2109: 下标要求数组或指针类型rn1>c:\documents and settings\administrator\my documents\visual studio 2010\projects\ninth\ninth\ninth.c(60): error C2065: “x”: 未声明的标识符rn1>c:\documents and settings\administrator\my documents\visual studio 2010\projects\ninth\ninth\ninth.c(60): error C2109: 下标要求数组或指针类型rn1>c:\documents and settings\administrator\my documents\visual studio 2010\projects\ninth\ninth\ninth.c(60): error C2065: “m”: 未声明的标识符rn1>c:\documents and settings\administrator\my documents\visual studio 2010\projects\ninth\ninth\ninth.c(60): error C2109: 下标要求数组或指针类型rn1>c:\documents and settings\administrator\my documents\visual studio 2010\projects\ninth\ninth\ninth.c(62): error C2065: “x”: 未声明的标识符rn1>c:\documents and settings\administrator\my documents\visual studio 2010\projects\ninth\ninth\ninth.c(62): error C2109: 下标要求数组或指针类型rn========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========rnrn
java se 不知道哪里
class ProductAttributern double width,length,height;rn ProductAttribute(double x)rn width = length = height = x;rn rn ProductAttribute (double x ,double y,double z)rn width = x;rn length = y;rn height = z;rn rn double volumeCaculate()rn return width*length*height;rn rnrnrnclass BoxAttribute extends ProductAttributern double weight;rn BoxAttribute(double x ,double y,double z,double t)rn super(x,y,z);rn weight = t;rn rn BoxAttribute(double x,double t)rn super(x);rn weight = t;rn rn void show()rn System.out.println("width,length,height and weight are "+width+","+length+","+height+"weight");rn rn rnrnclass SuperConstructSamplern public static void main(String args[])rn double volume;rn BoxAttribute box1 = new BoxAttribute(50,60,70,80);rn volume = box1.volumeCaculate();rn System.out.println("volume of box1 is"+volume);rn box1.show();rn BoxAttribute box2 = new BoxAttribute(50,80);rn volume = box2.volumeCaculate();rn System.out.println("volume of box2 is "+volume);rn box2.show();rn rnrnrnrnrnrnrnrnD:\java\digui>javac SuperConstructSample.javarnrnD:\java\digui>java SuperConstructSamplernException in thread "main" java.lang.NoSuchMethodError: BoxAttribute.rnate()Drn at SuperConstructSample.main(SuperConstructSample.java:35)rnrn
看了好几天,不知道错在哪里
[code=c]rn// huawei_test61.cpp : 定义控制台应用程序的入口点。rn//rn//将字符串中的数字从小到大排序rn#include "stdafx.h"rn#include "string"rnusing namespace std;rnint _tmain(int argc, _TCHAR* argv[])rnrn char *test="a3vues4sdf2kjk9df0v";//排序的结果应该是a2vues3sdf4kjk9df0vrnrnrn int len=strlen(test);rn struct temp rn rn char num;rn int index;rn ;rn temp*t=new temp[len];rn int i=0;rn int j=0;rn while (i='0'&&*(test+i)0;m--) //对结构体数组的num排序,即 对数字进行排序,下标不变 rn rn for(int n=0;nt[n+1].num)rn rn t1.num=t[n].num;rn t[n].num=t[n+1].num;rn t[n+1].num=t1.num;rn rnrn rn rnrn for (int m=0;m
不知道错在哪里?请指教!
程序片断:rnpublic class index : System.Web.UI.Pagern rn private const int pNUM=11;rn protected System.Web.UI.WebControls.Label delmessage;rn protected System.Web.UI.WebControls.HyperLink upLive;rn protected System.Web.UI.WebControls.DataList policyClass;rn protected System.Web.UI.WebControls.Button deletebtn;rn protected System.Web.UI.WebControls.Button appendbtn;rn protected System.Data.SqlClient.SqlDataReader dr;rn protected phg db;rn protected CheckUser check;rn protected string sqlstr;rn rn private void Page_Load(object sender, System.EventArgs e)rn Response.Expires = 0;rn Response.AddHeader("pragma","no-cache");rn Response.AddHeader("cache-control","private");rn Response.CacheControl = "no-cache";rn Response.Cache.SetCacheability(HttpCacheability.NoCache);rn Response.Cache.SetNoStore();rn tryrn if(Convert.ToBoolean(Session["valiUser"].ToString()))rn Response.Redirect("../../ValiUser/login.aspx");rn rn if(Regex.IsMatch(Session["purviewL"].ToString(),pNUM.ToString()+"A",RegexOptions.IgnoreCase) & Regex.IsMatch(Session["purview"].ToString(),pNUM.ToString()+"B",RegexOptions.IgnoreCase))rn Response.Redirect("../../opreaterror.aspx");rn rn catch(Exception eg) rn delmessage.Text+=eg.Message;rn //Response.Redirect("../../ValiUser/login.aspx");rn rn BindListToSource();rn rnrn在前面已经用using System.Text.RegularExpressions;把Regex类导入了rn但是总是出错,错误提示是“未将对象引用设置到对象的实例。”rn错在这句:rnif(Regex.IsMatch(Session["purviewL"].ToString(),pNUM.ToString()+"A",RegexOptions.IgnoreCase) & Regex.IsMatch(Session["purview"].ToString(),pNUM.ToString()+"B",RegexOptions.IgnoreCase))
新手上路,不知道哪里
name;rn rnrn$n=new user;rn$n->name='norandom';rn$my::get($n);rn?>
简单问题 不知道哪里
TStream * TemplateStream=new TStream();rnImage3->Picture->Bitmap->SaveToStream(TemplateStream);rnImage4->Picture->Bitmap->LoadFromStream(TemplateStreamrnrn看看上面有什么错误
真的晕了,不知道错在哪里
HTTP Status 404 - Servlet action is not availablernrn--------------------------------------------------------------------------------rnrntype Status reportrnrnmessage Servlet action is not availablernrndescription The requested resource (Servlet action is not available) is not available.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/5.0.19rnrn我通过JSP表单提交到 "/msgbook.do"rn在 struts-config.xml中rnrn rn rn rn我也配置了,小弟初学,还望指教?
HDOJ2011水题不知道错在哪里
rn多项式求和rnTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)rnTotal Submission(s): 47564 Accepted Submission(s): 27678rnrnrnProblem Descriptionrn多项式的描述如下:rn1 - 1/2 + 1/3 - 1/4 + 1/5 - 1/6 + ...rn现在请你求出该多项式的前n项的和。rn rnrnInputrn输入数据由2行组成,首先是一个正整数m(m,sum);//用奇数和减去偶数和rn rn rn return 0;rnrn[/code]
错了 确不知道哪里
rn DataTable dtTables=new DataTable("dtTables");rn dtTables.Columns.Add("saledate",typeof(Decimal));rn dtTables.Columns.Add("two",typeof(float));rn dtTables.Columns.Add("four",typeof(float));rn dtTables.Columns.Add("six",typeof(float));rn dtTables.Columns.Add("Txnsale",typeof(float));rn dtTables.Columns.Add("Cash",typeof(float));rn dtTables.Columns.Add("P_Var",typeof(float));rn dtTables.Columns.Add("P_J",typeof(float));rn dtTables.Columns.Add("Tot_Sale",typeof(float));rn dtTables.Columns.Add("SaleAmt",typeof(float));rn dtTables.Columns.Add("V_Car",typeof(float));rnrnrn num=ds1.Tables[0].Rows.Count;rn for(int i=0;i
一个函数,不知道错在哪里了?
create or replace function Get_DZString(fhpzbm in varchar2) return varchar2 isrn Result varchar2(200);rnbeginrndeclarern /* 根据传入的编码得到到站字符串,如:到站1;到站2; */rn --定义游标rn cursor cur_dz(vfhpzbm varchar2) isrn select dz from fh_fhpz where fhpzbm in (vfhpzbm) and scbr='N';rn --执行游标rn beginrn for obj in cur_dz(fhpzbm) looprn if obj.dz is not null thenrn Result:=Result||obj.dz||';';rn end if;rn end loop;rn end;rnrn return(Result);rnend Get_DZString;rnrn函数编译通过,执行rn-- Created on 2011-8-2 by ADMINISTRATOR rndeclare rn -- Local variables herern ss varchar2(200);rnbeginrn -- Test statements herern select get_dzstring('211000000131,221000000421') into ss from dual;rn dbms_output.put_line(ss);rnend;rn输出内容为空,正确的输出应该是:贵州;重庆;rnrnselect get_dzstring('21100000013') into ss from dual;rn传入的字符串为单个的,输出正常,结果为:贵州;rnrnhelp me
insert语句,不知道错在哪里
insert into class (id,name,path,click,addDate,parent,lastChildClass) values ('~F','fh','e:\fh',1,curdate(),'~','0')rn以上语句在MYSQL中执行通过,没有问题,但是在.NET中调用这个语句时抛出异常“You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '~','0')" at line 1”rn这是怎么回事?
不知道下面程序错在哪里
[code]rn#include rnrnclass win_app_window: public CFrameWndrnrnpublic:rn win_app_window()rn rn Create(NULL, "A Win32 Application Window");rn rn;rnrnclass win_app: public CWinApprnrnpublic:rn bool InitInstance()rn rn my_app_window = new win_app_window();rn m_pMainWnd = my_app_window;rn m_pMainWnd->ShowWindow(1);rn return 1;rn rnprivate:rn win_app_window * my_app_window;rn;rnrn[/code]rnrn报错:rnrn[quote]rnC:\Program Files\Microsoft Visual Studio\MyProjects\test_handler_2\handler_2.cpp(16) : error C2555: 'my_app::InitInstance' : overriding virtual function differs from 'CWinApp::InitInstance' only by return type or calling conventionrn[/quote]rn
二叉查找树问题,不知道错在哪里
随着互联网技术的飞速发展,如何从海量数据中查找所需内容,不仅是科研人员关注的热点问题,许多IT公司也先后推出了各自的搜索引擎,如:Google、百度、Bing等。搜索引擎的核心是如何对Web网页构建有效的索引,以便能够快速查找和匹配查询关键词,并及时地将搜索结果返回给用户。rn在这个实验中,请实现一个英文单词的二叉查找树,并可根据输入的英文单词进行搜索,同时可给出单词出现的次数。具体要求如下:rn(1)构造二叉查找树:rn①读入文本内容,过滤掉阿拉伯数字和标点符号,并将英文字母的大写形式全部转换成小写形式。rn②按照英文字母表的顺序构造英文单词的二叉查找树。当两个英文单词的首字母相同时,按第二个字母进行排序,依次类推。rn③当待插入的单词已在二叉查找树中,则将该单词的出现次数增1。rn(2)遍历二叉查找树:rn①搜索:输入一个待检索单词,在二叉查找树中进行查找,如果能找到该单词,则输出该单词及其出现次数;rn②实现二叉查找树的中序遍历,并将遍历结果输出到屏幕上。rn(3)删除结点:给定一个停用词列表(停用词是指对搜索没有作用的词,如:of, and, a, an, the等等),将二叉查找树中的属于停用词表中的单词依次删除(不仅删除结点,还需清空记录该单词位置信息的单链表)。rnInputrn输入有以下四种情况:rn当输入大写英文字母'T'时,表示下一行是文本内容,包含若干英文单词、标点符号以及阿拉伯数字,用于构建二叉查找树。文本内容以字符‘@’结束,文本中的每个英文单词的长度不超过30个字母。rn当输入大写英文字母'S'时,表示后面跟着的若干行都是停用词,每个停用词占一行,当某行是字符‘#’时,表示停用词输入完毕。对每个停用词,都需要删除二叉查找树中的相应结点,即:每输入一个停用词,执行一次删除结点的操作。rn当输入大写英文字母'V'时,表示中序遍历二叉查找树。遍历结果中的每个单词占一行,先输出该单词,然后输出一个空格,再输出该单词出现的次数。rn当输入大写英文字母'Q'时,表示后面跟着的若干行都是查询词,每个查询词占一行,当某行是字符‘#’时,表示查询词输入完毕。对每个查询词,都需要在二叉查找树中的搜索相应结点,如果找到,则输出该单词及其出现次数,如果未找到,则输出-1。每个查询词的查询结果占一行,先输出该单词,然后输出一个空格,再输出该单词出现的次数。rn当输入大写英文字母'X'时,表示输入结束。rnOutputrn按照输入的要求输出相应结果。提示:只有在'V'或者'Q'状态下,才有内容需要输出。rnSample InputrnT According to characteristics of Mongolian word formation, a method for removing inflectional suffixes from word images of the Mongolian Kanjur is proposed in this paper. @ V Q the # S after against all almost also although among an and # Q the # S the their then there therefore these they this those though three to two # Q the # V T This paper presents a new method to recognize machine printed traditional Mongolian characters by using back propagation (BP) neural networks. @ Q the # V Q mongolian ocr # XrnSample Outputrna 1 according 1 characteristics 1 for 1 formation 1 from 1 images 1 in 1 inflectional 1 is 1 kanjur 1 method 1 mongolian 2 of 2 paper 1 proposed 1 removing 1 suffixes 1 the 1 this 1 to 1 word 2 the 1 the 1 -1 a 1 according 1 characteristics 1 for 1 formation 1 from 1 images 1 in 1 inflectional 1 is 1 kanjur 1 method 1 mongolian 2 of 2 paper 1 proposed 1 removing 1 suffixes 1 word 2 -1 a 2 according 1 back 1 bp 1 by 1 characteristics 1 characters 1 for 1 formation 1 from 1 images 1 in 1 inflectional 1 is 1 kanjur 1 machine 1 method 2 mongolian 3 networks 1 neural 1 new 1 of 2 paper 2 presents 1 printed 1 propagation 1 proposed 1 recognize 1 removing 1 suffixes 1 this 1 to 1 traditional 1 using 1 word 2 mongolian 3 -1 rnrnrn以上是问题,下面是我的代码rn[code=c]#include rn#include rn#include rnusing namespace std;rnclass nodernrnpublic:rn node(string str = "") :word(str), left(NULL), right(NULL), count(1)rn rnrn rnprivate:rn string word;rn node *left;rn node *right;rn int count;rn friend class BSTree;rn;rnclass BSTreernrnpublic:rn BSTree() :root(NULL)rn rnrn rn node *find(const string&, node *&);rn void search(const string &str)rn rn node *pp, *p;rn p = find(str, pp);rn if (!p)rn rn cout << "-1" << endl;rn rn elsern rn cout << p->word << ' ' << p->count << endl;rn rn rn void insert(const string &);rn void del(const string &);rn void print(node *);rn void printTree()rn rn print(root);rn rnprivate:rn node *root;rn;rnnode *BSTree::find(const string &str, node *&parent)rnrn node *p = root;rn while (p)rn rn parent = p;rn if (str < p->word)rn rn p = p->left;rn rn else if (str>p->word)rn rn p = p->right;rn rn elsern rn return p;rn rn rn return NULL;rnrnvoid BSTree::insert(const string &str)rnrn node *pp = NULL, *p;rn if ((p = find(str, pp)) != NULL)rn rn p->count += 1;rn return;rn rn node *r = new node(str);rn if (!root)rn rn root = r;rn rn else if (str < pp->word)rn rn pp->left = r;rn rn elsern rn pp->right = r;rn rnrnvoid BSTree::del(const string &str)rnrn node *p, *pp;rn if ((p = find(str, pp)) == NULL)rn rn return;rn rn if (p->left && p->right)rn rn node *s = p->left, *ps = p;rn while (s->right)rn rn ps = s;rn s = s->right;rn rn p->word = s->word;rn p = s;rn pp = ps;rn rn node *pc;rn if (p->left)rn rn pc = p->left;rn rn elsern rn pc = p->right;rn rn if (p == root)rn rn root = pc;rn rn elsern rn if (p == pp->left)rn rn pp->left = pc;rn rn elsern rn pp->right = pc;rn rn rn delete p;rnrnvoid BSTree::print(node *h)rnrn if (!h)rn rn return;rn rn print(h->left);rn cout << h->word << ' ' << h->count << endl;rn print(h->right);rnrnstring convert(const string &str)rnrn string s;rn for (int i = 0; i < str.length(); ++i)rn rn if (isalpha(str[i]))rn rn if (isupper(str[i]))rn rn s.push_back(tolower(str[i]));rn rn elsern rn s.push_back(str[i]);rn rn rn rn return s;rnrnint main()rnrn BSTree tree;rn string s;rn char c;rn while ((c = getchar()) != 'X')rn rn getchar();rn switch (c)rn rn case 'T':rn getline(cin, s, ' ');rn while (s != "@")rn rn tree.insert(convert(s));rn getline(cin, s, ' ');rn rn break;rn case 'S':rn getline(cin, s, ' ');rn while (s != "#")rn rn tree.del(convert(s)); //发生错误的地方就是第二次S的时候,读取单词为theirrn getline(cin, s, ' ');rn rn break;rn case 'V':rn tree.printTree();rn break;rn case 'Q':rn getline(cin, s, ' ');rn while (s != "#")rn rn tree.search(convert(s));rn getline(cin, s, ' ');rn rn break;rn rn rn return 0;rn[/code]
动态生成按钮,不知道错在哪里
报错:rn………………raised exception class EAccessViolation with message………………rn百思不得其解。rn如果在CreateBtn的Begin下面,第一句写ShowMessage(IntToStr(i));的话,运行时往往到最后一个按钮时报上面的错误,而不是一开始就报错。如果不加ShowMessagep这句,是一开始就报错,运行不了。rnrnprocedure TFormStuMain.Button1Click(Sender: TObject);rnbeginrn CreateBtn;rnend;rnrnprocedure TFormStuMain.CreateBtn;rnvarrn varBtn:array of TButton;rn btnNum:Integer;rn i:Integer;rnbeginrn btnNum:=StrToInt(FormStuMain.Edit1.Text)-1;rn SetLength(varBtn,btnNum);rn for i:=0 to btnNum dorn beginrn varBtn[i]:=TButton.Create(varBtn[i]);rn varBtn[i].Parent:=FormStuMain.Panel1;rn varBtn[i].Caption:='按钮'+IntToStr(i);rn varBtn[i].Left:=75*i;rn end;rnend;
这段代码不知道错在哪里
我想拿panel当按钮用...写了段过程..执行通过但是没起作用,<em>不知道</em>错在<em>哪里</em>rnvoid Tmainform::b_state(AnsiString b_name,TPanel *p_panel)rnrn for (int i=0;iControlCount;i++)rn if (p_panel->Controls[i]->ClassName().operator AnsiString()=="TPanel")rn rn if (p_panel->Controls[i]->Name==b_name)rn TPanel(p_panel->Controls[i]).BevelOuter=bvLowered;//这里都执行了,但是没起作用rn elsern TPanel(p_panel->Controls[i]).BevelOuter=bvRaised;rn rnrn
不知道我错在哪里了!
Dim dt As New DataGridTableStyle()rn Dim d1 As New DataGridTextBoxColumn()rn dt.MappingName = "111"rn 'timern d1.MappingName = "time"rn d1.HeaderText = "*"rn d1.NullText = ""rn d1.Format = "yyyy-MM-dd HH24:mm:ss"rn d1.Width = 125rn dt.GridColumnStyles.Add(d1)rn 'time1rn d1 = New DataGridTextBoxColumn()rn d1.MappingName = "time1"rn d1.HeaderText = "**"rn d1.NullText = ""rn d1.Format = "yyyy-MM-dd HH24:mm:ss"rn d1.Width = 125rn dt.GridColumnStyles.Add(d1)rn 'xlnamern d1 = New DataGridTextBoxColumn()rn d1.MappingName = "xlname"rn d1.HeaderText = "***"rn d1.NullText = ""rn dt.GridColumnStyles.Add(d1)rn 'xlcodern d1 = New DataGridTextBoxColumn()rn d1.MappingName = "xlcode"rn d1.HeaderText = "****"rn d1.NullText = ""rn dt.GridColumnStyles.Add(d1)rn 'xlname2rn d1 = New DataGridTextBoxColumn()rn d1.MappingName = "xlname2"rn d1.HeaderText = "*****"rn d1.NullText = ""rn d1.Width = 95rn dt.GridColumnStyles.Add(d1)rn 'xlcode2rn d1 = New DataGridTextBoxColumn()rn d1.MappingName = "xlname"rn d1.HeaderText = "******"rn d1.NullText = ""rn d1.Width = 120rn dt.GridColumnStyles.Add(d1)rnrn DataGrid1.TableStyles.Add(dt)
不知道错在哪里呀急呀
我建一个数据表rnCREATE TABLE C(C_NAME VARCHAR2(20),I_NUM NUMBER(10));rn我这里有数据rnC_NAME I_NUMrn JK 10rn KJ 11rn JH 12rn我想实现这样的功能rnC_NAME I_NUMrn JK 10rn KJ 11rn JH 12rn 合计 33rn我用SQL却是这样的我<em>不知道</em>错在<em>哪里</em>呀rnSELECT C_NAME,I_NUM FROM C1 UNION SELECT '总计',SUM(I_NUM) FROM C1;rnC_NAME I_NUMrn JK 10rn 合计 33rn请指教呀如果我rn又在中间加上一条汇总字段不知又该怎样做呀rnrn
不知道错在哪里!急啊!
代码内容如下:rnPrivate Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Clickrn My.Computer.Audio.Play(Application.StartupPath & "\sounds\menu\flash.wav", AudioPlayMode.Background)rn If Trim(Me.TxtSearch.Text) = "查看菜单有更多搜索" Or Me.TxtSearch.Text = "" Thenrn MsgBox("请输入联系人姓名!", vbInformation + vbOKOnly, "提示")rn Elsern Dim serch As Stringrn Dim i As Integerrn search = Me.TxtSearch.Textrn MsgBox("正在搜索" & serch, vbInformation + vbOKOnly, "搜索中...")rn Me.TxtSearch.Text = "查看菜单有更多搜索"rn For i = 1 To Me.LbxShow.Items.Countrn If Me.LbxShow.SelectedItems(i) = search Thenrn Me.LbxShow.SelectedItem = Me.LbxShow.SelectedItems(i)rn Exit Forrn Elsern MsgBox("没有搜索到!", MsgBoxStyle.OkOnly + vbInformation, "提示")rn End Ifrn Nextrnrn End Ifrn End Sub
帮帮我啊,不知道错在哪里
html文件:temp.htmrn rn rnrn rn在pub.js里定义了rnvar fcpubdata=rnrnservletPath : "/crm/eformaspx",rnPath : "/crm"rn rn ;rn但是运行temp.htm怎么提示fcpubdata变量未定义呢?(如果把变量放在temp.htm里定义,则没有问题.)
不知道错在哪里:在线等!
原来程序编译都是好的,后来同事加入一些代码,build,出现N多诸如以下代码提示,还有很多,看了,lib,h的路径等等option,感觉上都是对的.上网查tlib,就很少有人问这个问题,请教各位!急于解决,谢谢 rn [TLib Warning] duplicate file 'vcl' in list, not added!rn[TLib Warning] duplicate file 'rtl' in list, not added!rn[TLib Warning] duplicate file 'dbrtl' in list, not added!rn[TLib Warning] duplicate file 'adortl' in list, not added!rn[TLib Warning] duplicate file 'vcldb' in list, not added!rn[TLib Warning] duplicate file 'vclx' in list, not added!rn[TLib Warning] duplicate file 'bdertl' in list, not added!rn[TLib Warning] duplicate file 'vcldbx' in list, not added!rn[TLib Warning] duplicate file 'ibxpress' in list, not added!rn[TLib Warning] duplicate file 'dsnap' in list, not added!rn[TLib Warning] duplicate file 'cds' in list, not added!rn[TLib Warning] duplicate file 'bdecds' in list, not added!rn[TLib Warning] duplicate file 'qrpt' in list, not added!rn[TLib Warning] duplicate file 'teeui' in list, not added!rn[TLib Warning] duplicate file 'teedb' in list, not added!rn[TLib Warning] duplicate file 'tee' in list, not added!
一道不知道错在哪里的题
用VC写的,编译完出错了,是书上的代码。rnrnrn#include rn#include rnrnint main()rnrn int score[5];rn int count,total_score=0,average=0;rnrn for(count=0;count);rn return 0;rnrnrnrn错在哪了呢?
文件读写例子不知道错在哪里
program Project2;rnrn$APPTYPE CONSOLErnrnusesrn SysUtils;rnconstrnFileName1='c:\test1.txt';rnFileName2='c:\test2.txt';rnvarrnF1,F2:TextFile;rnS:string;rnbeginrnAssignFile(F1,FileName1);rnAssignFile(F2,FileName2);rnRewrite(F2);rnWriteln(F2,'Hello');rnwhile not eof(F1)dorn beginrn Readln(F1,S);rn Writeln(F2,S);rn end;rnCloseFile(F1);rnCloseFile(F2);rnend.rnrnrn[color=#FF0000]while not eof(F1)do[/color]是不是死循环啊?
amt正演程序
amt正演,fortran,不懂<em>哪里</em>错,希望指点
Android 项目出现红色感叹号解决方法
做第三方应用时,需要导入提供的jar包。当从两个工程目录换到另一个工程目录时,导入的工程上出现了一个大红色感叹号。找来找去确实工程下的.classpath路径的jar包的路径还是原来工程目录下指定的路径。这个显然错了。将错误的路径删掉,从Build Path > Configure Build Paht...重新导入一次。点击eclipse下的工程按F5刷新,红色感叹号没了。一切OK!
C#写的一个教育局学籍管理系统........
<em>不知道</em><em>哪里</em>找到的  还挺强大的.......
错在哪里??错在哪里??错在哪里??
我做了个简单的register页面,可就是不能把数据填加到数据库里。rn数据库:在database/Deanbk.mdbrn设计如下:rnUserName 文本rnPassword 文本rnEmail 文本rnQuestion 文本rnAnswer 文本rnID 自动编号rnrn从Register.htm页面得到数据rnrn用add.asp页面处理rnadd.asp如下:rnrnrn rnrnrn rnrnrnrn Untitled Documentrn rnrnrnrnrnrnrn错在<em>哪里</em>??错在<em>哪里</em>??错在<em>哪里</em>??
平衡二叉排序树
在电脑里面<em>不知道</em><em>哪里</em>翻到的ppt,忘记在<em>哪里</em>下的了……不过看起来还是不错的样子O.O
心中的迷惑
转行半年,这一两个星期,突然没有什么项目,就是改改bug,也没有人去带领,自己学习吧,也是东看西看,家里事情还一大堆,这样的状态可不中啊,疲惫不堪加上晚上休息不好,就是不爽,不痛快,不顺畅啊!
c/c++常见迷惑问题
c/c++常见<em>迷惑</em>问题1. 何时调用构造函数只用在给对象分配内存空间时,才调用构造函数。例如,假设 A为一个类类型, 则A a(2), A b[2],这两个都进行A的构造函数的调用,而A *p[2] = {&a,&b} , 则不调用A构造函数。
一个计算机系学生的学习迷惑
我是一个底层二类本科院校的学生,
Leetcode中的错误列表
总结下自己遇到的leetcode错误(持续更新): 1. 忘记给返回返回值! 2.
用了这么久的支付宝,这几个隐藏功能你还不知道
支付宝应该是我们手机必备的一个APP了,也正是支付宝让让我们养成了出门从不带现金的习惯,相信很多人都离不开支付宝吧,可是用了这么久的支付宝,这几个实用功能你知道吗? 1、到位 如果你用过支付宝里面的&quot;到位&quot;功能就知道有多便捷了,不管是家里漏水堵塞、家电故障,还是搬家运输等各种生活问题&quot;到位&quot;都可以帮你解决。 2、备用金 备用金并不算是借贷,虽然额度只有500,主要是为了解决一些人购物或者消费时突...
vc串口精灵
改动,程序中有些有错误,<em>不知道</em><em>哪里</em>
ajax错误解图
这个市我的ajax错误解图。<em>不知道</em><em>哪里</em>错了
openssh-7.9p1
<em>不知道</em><em>哪里</em>下的openssh-7.9p1,大家随便看看吧,不懂openssh-7.9p1,
一步一步创建一个Servlet站点
本篇和大家一起从头开始创建一个Servlet站点。开始之前,请确保你的电脑上已经安装了JDK,Eclipse(或其它IDE),以及配置好了Tomcat。 1,新建项目。打开Eclipse,在Project Explorer的空白位置右击,弹出菜单后选择 New=>Dynamic Web Project,然后输入项目名称,其它所有保持默认即可,然后按下回车,项目就创建好了。本例的项目名称是Servl
是管理电脑的好软件,不要错过了哦
是管理电脑的好软件,不要错过了哦是管理电脑的好软件,不要错过了哦是管理电脑的好软件,不要错过了哦是管理电脑的好软件,不要错过了哦是管理电脑的好软件,不要错过了哦是管理电脑的好软件,不要错过了哦
非常好用的影院售票系统
好好用哦 不要错过了咯 好好用哦 不要错过了咯 好好用哦 不要错过了咯
java解惑(罗列了95个容易让你迷惑的java知识点)
罗列了95个容易让你<em>迷惑</em>的java知识点。
SPIN控件的使用问题
我的程序<em>哪里</em>错了为什么不能调节,,<em>不知道</em><em>哪里</em>出错了,请大家看看,要写20字真是烦人
打印表名的存储过程,不知道错在哪里
存储过程:rn[code=SQL]create or replace procedure query_tables asrncursor c_row_recrnisrnselect table_name from user_tables where table_name like 'LEE_CLIENT%';rnbeginrn for v_row_rec in c_row_rec loop rn dbms_output.put_line(v_row_rec.table_name);rn end loop;rnend;rn[/code]rnrn执行 exce query_tables后 提示:rn[color=#FF0000]cann't perform this operation on a close dataset[/color]rnrn请教达人!
动态存储过程问题,不知道错在哪里了。。
CREATE PROCEDURE [sp_UpdateFlow] rn(rn@II_TYPE varchar(4), rn@II_ID varchar(50), rn@FlowID varchar(50) rn)rnasrndeclare @times varchar(15)rndeclare @operatorid varchar(50)rndeclare @sql_Flow nvarchar(500)rndeclare @sql_Remind nvarchar(500)rndeclare @sql_ICM nvarchar(500)rnSET XACT_ABORT ONrnbegin tranrnrnselect @times = (case [step] when 2 then 'CHECK_DATE' when 3 then rn'CENSOR_DATE' else 'APPROVE_DATE' end),rn @operatorid = (case [step] when 2 then [checker_id] when 3 then rn[censor_id] else [approver_id] end)rn from Flowtable where uid= @FlowIDrn set @sql_Flow = N'update [FlowTable] set '+@times+' = getdate(),[step]=[step]+1 where [UID]= '+@FlowID+''rn set @sql_Remind = N'update FlowRemind set [OPERATOR_ID]= '+@operatorid+',[step]=[step]+1 WHERE [FLOW_ID]='+@FlowID+''rn set @sql_ICM = N'update @II_TYPE set '+@times+' = getdate() where [UID]= '+@II_ID+''rn exec sp_executesql @sql_Flowrn exec sp_executesql @sql_Remindrn exec sp_executesql @sql_ICMrnif @@error = 0rn beginrn commit tranrn returnrn endrnelsern beginrn rollback tranrn returnrn endrnGOrnrnexecute [sp_UpdateFlow] @II_TYPE='IITF',@II_ID='6134ACAB-D4E9-488F-AADD-44FB6F774493',@FlowID='DAB7A1BB-5C66-4D85-B66D-ED902B8E1CA0'rn动态SQL语句,然后放到存储过程里面对3个表进行同时操作,存储过程建立成功,但是执行的时候会报“c66附近有语法错误”,请各位大侠指点指点,不胜感激!
ADS1.2,新手上路,不知道错在哪里
[img=http://img.bbs.csdn.net/upload/201309/23/1379937690_687754.jpg][/img][img=http://img.bbs.csdn.net/upload/201309/23/1379937703_667115.jpg][/img][img=http://img.bbs.csdn.net/upload/201309/23/1379937712_439220.jpg][/img][img=http://img.bbs.csdn.net/upload/201309/23/1379937721_443282.jpg][/img]rnrn<em>不知道</em>为什么程序会有错误,而且<em>不知道</em>为什么那个调试的软件不会自动弹出。
存储过程报错,不知道错在哪里?求指教
[code=SQL]rnCREATE PROCEDURE `new_proc`(IN tableId1 INTEGER(11), IN tableId2 INTEGER(11))rn NOT DETERMINISTICrn SQL SECURITY DEFINERrn rnBEGINrn declare perNum,oId1,oId2 INTEGER;rn rn select personNum into perNum from tb_Order as ot wherern ot.tableId =tableId2rn and ot.isPay = 0;rn rn select id into oId1 from tb_Order as ot wherern ot.tableId = tableId1rn and ot.isPay = 0;rn rn select id into oId2 from tb_Order as ot wherern ot.tableId = tableId2rn and ot.isPay = 0;rnrn update tb_Orderrn set personNum = personNum + perNumrn where id = oId2;rn rn update tb_OrderDetail set orderId = oId2 where orderId = oId1;rn rn update tb_Table set flag = 0 where id = tableId1;rn rn delete from tb_Order where id = oId1;rnrnEND;rn[/code]rn创建了这样一个存储过程,可是在declare那句一直报错,<em>不知道</em>错在<em>哪里</em>,求指教!
C++ 编程 指针不知道错在哪里
[img=http://img.bbs.csdn.net/upload/201311/23/1385208674_55512.jpg][/img]
简单小程序不知道错在哪里
#includernvoid main()rnrnfloat r,h,cl,cs,cvz,pi;rnpi=3.14;rnprintf("请输入圆的半径r和圆的**\n");rnscanf("%f,%f",&r,&h);rncl=2*pi*r;rncs=pi*r*r;rncvz=pi*r*r*h;rnprintf("圆周长为%6.2f,圆面积为%6.2f,体积为%6.2f",cl,cs,cvz); rnrnrn我用VC6.0编译报错,<em>不知道</em>错在哪!
这个空函数,不知道错在哪里
template rnvoid my_transform(vector::iterator src_beg, rnvector::iterator src_end, vector::iterator dest_beg, OP op)rnrnrnrn为什么会编译出错?rn
关于动态内存,不知道错在哪里,请教
#include rn//put 2 stringrn//find the str1 for str2rn//return addrss of str2 in the str1rnchar *findstr(const char *str1,const char *str2)rnrnint len1,len2;rnlen1=strlen(str1);rnlen2=strlen(str2);rnif(len1
很简单的DataRow程序,不知道错在哪里
写了一个很简单的程序:rn private void Button1_Click(object sender, System.EventArgs e)rn rn string str="select * from login(login是在SQL Sever 2000中建立的表)";rn SqlDataAdapter MyDataAdapter= new SqlDataAdapter(str,sqlConnection1(sqlConnection是在前面建立的公用变量));rn DataSet MyDataSet=new DataSet();rn MyDataAdapter.Fill(MyDataSet,"login");rn foreach(DataRow row in MyDataSet.Tables["login"].Rows)rn rn String TextBoxStr1=TextBox1.Text.ToLower();rn String TextBoxStr2=TextBox2.Text;rn if ((TextBoxStr1==(string)row["UserName"])&&(TextBoxStr2==(string)row["Password"]))rn rn Label3.Text="Welcome to this Web site!";rn break;rn rn elsern rn Label3.Text="Incorrect input!";rn rn rn rn 本想在登陆界面中的用户名和密码输入正确时显示"Welcome to this Web site!",但无论输入何值页面总显示“Incorrect input!".rn 很奇怪,<em>不知道</em>错在<em>哪里</em>了?
初次写jsp 不知道错在哪里
程序源代码很短如下:rnrnrnrnrnrn rn rn rn Fule Efficiency Conversion Chart rn rn rn rn Fule Efficiency Conversion Chart rn rn rn rn rnrnrn请问为什么rn输入结果为:Fule Efficiency Conversion Chartrn而不是rnFule Efficiency Conversion Chartrnline 0rnline 1rnline 2rnline 3rnline 4rnrn我用的是tomcat 环境.rn如果是配置错误.找指出错误原因,非常感谢!rn刚开始学习JSP. 已经调了一上午了,很痛苦的! 上google 搜索也找不到合适的答案.rn
急!!!!脚本出错,不知道错在哪里
rn调用语句rn rnrn总是出现错误,各位大虾请帮忙看看!!!谢谢了。
存储过程不知道错在哪里大家帮忙看看~~
下面是我自己写的一段存储过程~~我想用@m_message把所有的库存不足的菜名都累加起来 但是现在我执行后得到的是NULL,<em>不知道</em>错在<em>哪里</em>,大家帮忙看看rnrndeclare @p_zh varchar(8)rndeclare @p_zkh smallintrndeclare @m_user varchar(10) rndeclare @m_message varchar(200) rndeclare @p_lx varchar(20)rndeclare @p_kcsl moneyrndeclare @p_xssl moneyrndeclare @p_bh smallintrndeclare @p_name varchar(5)rndeclare @m_message1 varchar(200) rnset @p_zh='2212'rnset @p_zkh=171rnset @m_user='sss' rnrndeclare @bs intrndeclare @bb intrnrn select @p_lx=类型 from deskinf where 名称=@p_zhrn DECLARE lsb1 CURSOR FOR rn select bh,sum(sl) as dd,菜名 from menu,menubase where bh=编号 and zkh=@p_zkh and kg=1 group by bh,菜名rn if @@rowcount>0rn beginrn OPEN lsb1rn fetch from lsb1 into @p_bh,@p_xssl,@p_namern select @p_kcsl=数量 from storelist where storelist.编号=@p_bh and 库房=(select 编号 from store where czy=@p_lx)rn if @@rowcount=0rn set @m_message1=@p_namern elsern if (@p_xssl>@p_kcsl)rn set @m_message=@p_namern fetch next from lsb1 into @p_bh,@p_xssl,@p_namern WHILE @@FETCH_STATUS = 0 rn beginrn select @p_kcsl=数量 from storelist where storelist.编号=@p_bh and 库房=(select 编号 from store where czy=@p_lx)rn if @@rowcount=0rn set @m_message1=@m_message1+'''+char(13)+'''+@p_namern elsern if (@p_xssl>@p_kcsl)rn set @m_message=@m_message+'''+char(13)+'''+@p_namern fetch next from lsb1 into @p_bh,@p_xssl,@p_namern endrn if @m_message1<>''rn set @m_message1=@m_message1+'无库存数量不能结帐!jz01'rn if @m_message<>''rn begin rn set @m_message=@m_message+' 库存数量不足不能结帐!jz01'rn if @m_message1<>''rn set @m_message=@m_message+'char(13)'+'==============='+'char(13)'+@m_message1 rn returnrn endrn close lsb1rn endrn DEALLOCATE lsb1rnselect @m_messagernrnrnrnrnrn
一道简单的大数相加题 不知道错在哪里……
[color=#FF0000]A + B Problem IIrnTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)rnTotal Submission(s): 13818 Accepted Submission(s): 2368rnrnrnProblem DescriptionrnI have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B.rnrn rnrnInputrnThe first line of the input contains an integer T(1>cnt;rn rn for(ct=0;ctstrlen(s2[ct])) len = strlen(s1[ct]);rn else len = strlen(s2[ct]);rn rn for(i=0;i=0;--i)rn printf("%d",s1[ct][i]);rn cout<
不知道错在哪里,在插入元素那,求救!!
#includern#includern#includernint list[25];int i,n,a,sum=0,k,l;rnint eleminsert;rn/*------------------创建函数--------------*/rnvoid initlist()rnrn printf("Please input the total of the elems:");rn scanf("%d",&n);rn if(n>25||nn)printf("ERROR!\n"); return ;rn for(j=n-1;j>=m-1;i--)rn list[j+1]=list[j];rn list[m-1]=elem;rn n=n+1;rn printf("The new list are:" );rn Print(list,n);rn return;rnrn/*---------------删除函数-----------*/rnvoid Delete(int list[],int n,int m)rnrnint q;int *j;rnif(mn) rn printf("ERROR!\n"); return ;rnj=list[m-1];rnfor(q=m-1;q);rn getchar();rn exit(0);rn rnrnrnrnvoid main()rnrn void menu();rn menu();rnrn
不知道这个到底错在哪里,在线等
protected void Page_Load(object sender, EventArgs e)rn rn string url = "http://www.baidu.com?1name=中文&2name=英文";rn Response.Clear();rn Response.ContentType = "APPLICATION/OCTET-STREAM"; rn Response.Buffer = true; rn Response.Charset = "gb2312";rn Response.ContentEncoding = System.Text.Encoding.GetEncoding("gb2312"); rn Response.AppendHeader("content-disposition", "attachment;filename=\"" + System.Web.HttpUtility.UrlEncode("百度", System.Text.Encoding.UTF8) + ".url\""); rn Response.Write("[InternetShortcut] \r\n");rn //Response.Write("URL= http://www.baidu.com \r\n");rn Response.Write("URL= "+url+" \r\n");rn //链接rn Response.Write("IDList= \r\n");rn Response.Write("IconFile= http://www.baidu.cn/images/baidu.ico \r\n");rn //图标文件 rn Response.Write("IconIndex=1 \r\n");rn Response.Write("[000214A0-0000-0000-C000-000000000046] \r\n"); rn Response.Write("Prop3=19,2 \r\n");rn Response.End();rnrn // url = Request.UrlReferrer.ToString();rn rnrn快捷方式打开后是这样的地址:http://www.baidu.com?1name=中文&2name= <em>不知道</em>为什么,在线等
自己编写的一个程序,不知道错在哪里
[code=C/C++][/code]#includernvoid input();rnvoid add();rnvoid subtract();rnvoid multiply();rnvoid divide();rnint main()rnrn char ch;rn printf("Enter the operation of your choice:");rn printf("a.add s.subtract\n");rn printf("b.multiply d.divide \nq.quit\n");rn ch=getchar();rn dorn rn switch(getchar())rn rn case 'a':add(); rn break;rn case 's':subtract();rn break;rn case 'b':multiply();rn break;rn case 'd':divide();rn default:rn printf("input error,please input 'a' 's' 'b' 'd' 'q '\n");rn rn rn while(ch=='q');rn printf("bye.\n");rn return 1;rnrnrnrnvoid input()rnrn float a[2];rn int m,n;rn printf("Enter first number:");rn dorn rn m=scanf("%f",&a[0]);rn if(m==0)rn rn printf("input errror!please enter an number such as 2.5,-2 or -1.788e2\n");rn continue;rn rn elsern rn printf("Enter second number:");rn n=scanf("%f",&a[1]);rn if(n==0)rn rn printf("input errror!please enter an number such as 2.5,-2 or -1.788e2\n");rn continue;rn rn rn while(m*n!=0);rnrnrnvoid add()rnrn printf("%f + %f =%f \n",a[0],a[1],a[0]+a[1]);rnrnrnrnvoid subtract()rnrn printf("%f - %f =%f \n",a[0],a[1],a[0]-a[1]);rnrnrnrnrnvoid multiply()rnrn printf("%f * %f =%f \n",a[0],a[1],a[1]*a[0]);rnrnrnrnvoid divide()rnrn while(a[1]==0)rn rn printf("enter a number other than 0:");rn scanf("%f",&a[1]);rn rn printf("%f / %f =%f \n",a[0],a[1],a[1]/a[0]);rnrn根据用户输入进行加,减,乘,除运算。
关于SpringBoot bean无法注入的问题(与文件包位置有关)
问题场景描述整个项目通过Maven构建,大致结构如下: 核心Spring框架一个module spring-boot-base service和dao一个module server-core 提供系统后台数据管理一个module server-platform-app 给移动端提供rest数据接口一个module server-mobile-api 其中server-platform-app 与
文章热词 编程语言学哪个好 机器学习 机器学习课程 机器学习教程 深度学习视频教程
相关热词 c++ 中文 编译 错 c#如何知道代码错 c# 网络流不知道长度 c++不知道抛出什么异常 哪里好的python培训班好 哪里学python好
我们是很有底线的