java中sheet表的导入,求助大神,帮帮忙谢谢啦~

需求是要将sheet表一个一个的导入到页面中显示,存到数据库,要求从某行到某行,某列到某列,具体需求如图,求助大神,怎么写出来?图片说明

2个回答

相比之下,POI还是比较复杂的,不过POI的功能强大,如果没有特别的对单元格操作的需求,用其它简单的读写API就可以了,网上一大堆。

qq_35082338
实力不会debug 好吧,不是一大堆,是一小堆,加油
接近 2 年之前 回复

可以使用java Poi 操作excel 只要你接到了 流文件操作它很简单。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
求助,各位大神,帮帮忙啊,谢谢啦!!!
想做一个类似于新发地官网首页的这个“每日价格行情”放到pageadmin站点的首页一个模块上,各位大神,帮帮忙啊,谢谢啦!!!rn[img=https://img-bbs.csdn.net/upload/201610/19/1476861877_384555.jpg][/img]rn这个是新发地的地址:http://www.xinfadi.com.cn/rn
各位大神,求助,,,谢谢啦
在mvc3中,我定义了一个People类, 有个性别,是bool型rnpublic class Peoplern rn public bool Gender get; set; rn rn //用来处理数据的存取与更新,rn public class PeopleDBContext : DbContextrn rn public DbSet People get; set; rn rn控制器中:rn //GET: /People/rn PeopleDBContext db = new PeopleDBContext();rn public ActionResult Index()rn rn var Peoples = from m in db.Peoplern select m;rn return View(Peoples.ToList());rn rnview中:rn rn 性别rn rn rn 男rn 女 rn rn那么问题来了,我想问的是:现在我想做增删查改功能,其他的都可以了,现在剩下的就是改和增这两个页面的性别还不能做好,就是我点击修改的时候,radio控件会从数据库中读取相应的值,然后显示是选中“男”或者“女”;同样,增加人物信息的时候,如果我选中的是"男",那么我该怎么把对应的值保存到数据库??还有,如果我把数据库中的bool型改为varcha就没问题了,只不过那样做不人性化。谢谢rn我生剩余的分数也不多了,所以分数有点少,但是真的很需要你们的帮助,,
大神再来,谢谢啦。。。。。。。。。。。。
定义学生类Student,从Person类派生n    包含的字段:学号StuID(字符串类型,长度固定,以实际学号的长度为准)、课程成绩CourseScore(集合类型,集合中的元素类型为结构体coursescore,访问修饰符采用private)、学生身份title(类型为枚举类型StuTitle)n    包含的属性:n    课程门数CourseNumber,定义为只读属性,表示学生所选的课程门数n    包含的方法:n    Public void CourseAdd(string coursename, float score);n   Public void CourseAdd(coursescore course);
请帮帮忙,谢谢啦
[code=C/C++]rnrnrnrn#includernusing namespace std;rnint main()rnrn const int i = 21;rn const int ii = 3;rn int a[i],b[ii];rn for(int i=0;i<5;i++)rn rn a[i] = b[ii];//什么效果阿.我快哭了rn std::cout<
帮帮忙~ 谢谢啦
有关intraweb的ArcIWDlgMessageBox1组件能否给个代码演示?? rnrn类似 if application.messagebox('test','test',mb_yesno)=idyes thenrn beginrnrn end;rn的选择语句????谢谢!!
帮帮忙啦,谢谢
我是一个Java初学者,请问一下用Java怎么样连接SQL Server,知道的请指教,谢谢了
大家帮帮忙!谢谢啦
我想用在pb的代码中创建表、加字段 ,得怎么写啊??rnrnCONNECT USING sqlca;rnsSql="CREATE TABLE [dbo].[zy_mxls] (&rn [lshh] [char] (11) COLLATE Chinese_PRC_CI_AS NOT NULL ,&rn [plh] [int] NOT NULL ,&rn [bm] [char] (10) COLLATE Chinese_PRC_CI_AS NULL ,&rn [huowname] [char] (20) COLLATE Chinese_PRC_CI_AS NULL ,&rn [xshy] [char] (20) COLLATE Chinese_PRC_CI_AS NULL ,&rn [spid] [char] (11) COLLATE Chinese_PRC_CI_AS NOT NULL ,&rn [spbh] [char] (11) COLLATE Chinese_PRC_CI_AS NULL ,&rn [spmch] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,&rn [sptm] [char] (15) COLLATE Chinese_PRC_CI_AS NULL ,&rn [shpgg] [varchar] (40) COLLATE Chinese_PRC_CI_AS NULL ,&rn [dw] [varchar] (6) COLLATE Chinese_PRC_CI_AS NULL ,&rn [dj] [decimal](14, 4) NULL "rn .rn .rn .rnrn我找不到方法,不知道要怎么写.......
帮帮忙,谢谢啦。
windows setting->user Rights Assignment->右边的Change the system time中点击Add User or Group...,怎么没有弹出select users of groups,以前是有的,被朋友玩了之后就变成这样,他把我系统哪里给禁用啦,怎么修复啊,帮忙下,谢谢啦。。我的时间现在也改不了,那里面没有我的帐户,希望帮忙下。,谢谢。问他他老说没有啊///
大家帮帮忙!谢谢啦!
tableA 计划号 需求数量 执行数rn 2003 1000 0rntableB 计划号 提供数量 合同号rn 2003 100 A3rn 2003 200 A4rn ... ... ... rnrn如何将这两次的"提供数量"相加并写入"执行数"里?
帮帮忙呀!谢谢啦!
我只读过谭浩强写的C语言一书,对基础有了一定的了解,想更深一步的学习,请问该看什么书呀,我想读读代码,哪里有呀?谢谢啦!
大神进来帮帮忙 谢谢!
http://blog.csdn.net/wangwenwen/article/details/7582745 rn不太明白SmtpSendEmail.cpp里面的内容 能帮忙大概讲一讲吗 想知道哪块函数是实现发送邮件的 因为我想调用这里边发送邮件的函数 实现发邮件的功能 不明白该调用哪些函数
求大神帮帮忙,谢谢。。
Public conn As New ADODB.Connection '公用数据库连接rnDim xlapp As New Excel.ApplicationrnPublic strName As String '登陆人员名称rnrnPublic Sub main()rn'打开数据连接字符串rn'打开窗体frmain和frmloginrnconn.Open "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=qichepeijian;Data Source=."rnfrmLogin.ShowrnEnd SubrnPublic Function SetSql(strSql As String) As Stringrn'定义不带返回的数据连接rnDim cmd As New ADODB.CommandrnOn Error Resume NextrnSet cmd.ActiveConnection = connrn cmd.CommandText = strSqlrn cmd.ExecuternIf Err Thenrn Exec_SqL = Err.Descriptionrn Exit FunctionrnEnd IfrnOn Error GoTo 0rnSetSql = "OK"rnEnd FunctionrnrnPublic Function GetSql(strSql As String) As ADODB.Recordsetrn'定义带返回记录级的数据连接rnDim rs As New ADODB.RecordsetrnWith rsrn .CursorLocation = adUseClientrn If .State = 1 Then .Closern .Open strSql, conn, adOpenDynamic, adLockOptimisticrnEnd WithrnSet GetSql = rsrnEnd FunctionrnrnPublic Sub UpdateDDD(ddd As MSHFlexGrid, rs As ADODB.Recordset)rn'以数据库记录集中地记录更新相应的显示列表rnWith rsrn If .RecordCount > 0 Thenrn Dim i As Longrn Dim ii As Longrn If .RecordCount > 30 Thenrn ddd.Rows = .RecordCount + 1rn End Ifrn i = 1rn Do Until .EOFrn For ii = 0 To ddd.Cols - 1rn ddd.TextMatrix(i, ii) = " " & Trim(.Fields(ii).Value)rn Nextrn .MoveNextrn i = i + 1rn Looprn End IfrnEnd WithrnEnd SubrnFunction MoveFont(ddd As MSHFlexGrid, intRow As Long)rn'当选中列表中的某行时,该列高亮度显示(如果改变行时,还原刚才的行为正常显示)rnDim i As LongrnDim ii As LongrnFor i = 1 To ddd.Rows - 1rn If i <> intRow Thenrn ddd.Col = 0rn ddd.Row = irn If ddd.CellForeColor <> &H0& Thenrn For ii = 0 To ddd.Cols - 1rn ddd.Col = iirn ddd.CellForeColor = &H0&rn Nextrn End Ifrn Elsern For ii = 0 To ddd.Cols - 1rn ddd.Row = irn ddd.Col = iirn ddd.CellForeColor = &HFF0000rn Nextrn End IfrnNextrnddd.Row = intRowrnddd.Col = ddd.MouseColrnEnd FunctionrnrnSub OutExcel(objDDD As MSHFlexGrid, strTitleCaption As String)rnxlapp.QuitrnSet xlapp = NothingrnSet xlapp = CreateObject("Excel.Application")rnxlapp.Workbooks.Closernxlapp.Workbooks.Addrn'-----------------------------------------------------变量区域rnDim arrTitlernarrTitle = Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z")rnDim strTitle As String '标题rnDim i As LongrnDim ii As Longrn'-----------------------------------------------------文字标头rnWith xlapprn .Range("A1", arrTitle(objDDD.Cols - 1) & "1").Selectrn With .Selectionrn .HorizontalAlignment = xlCenterrn .VerticalAlignment = xlCenterrn End Withrn .Selection.Mergern .Rows("1:1").RowHeight = 27.75rn strTitle = strTitleCaptionrn .ActiveCell.FormulaR1C1 = strTitlern With .ActiveCell.Characters(Start:=1, Length:=Len(strTitle)).Fontrn .Name = "Times New Roman"rn .FontStyle = "加粗"rn .Size = 16rn End Withrn With .Selection.Borders(xlEdgeBottom)rn .LineStyle = xlContinuousrn .Weight = xlThinrn .ColorIndex = xlAutomaticrn End Withrn '-------------------------------------------------循环给列表复长度rn For i = 0 To objDDD.Cols - 1rn .Columns(arrTitle(i)).ColumnWidth = objDDD.ColWidth(i) / 100rn Nextrn '-------------------------------------------------设置单元格的网格rn .Range(arrTitle(0) & "2", arrTitle(objDDD.Cols - 1) & objDDD.Rows + 1).Selectrn .Selection.NumberFormatLocal = "@"rn .Selection.Borders(xlDiagonalDown).LineStyle = xlNonern .Selection.Borders(xlDiagonalUp).LineStyle = xlNonern With .Selection.Borders(xlEdgeLeft)rn .LineStyle = xlContinuousrn .Weight = xlThinrn .ColorIndex = xlAutomaticrn End Withrn With .Selection.Borders(xlEdgeTop)rn .LineStyle = xlContinuousrn .Weight = xlThinrn .ColorIndex = xlAutomaticrn End Withrn With .Selection.Borders(xlEdgeBottom)rn .LineStyle = xlContinuousrn .Weight = xlThinrn .ColorIndex = xlAutomaticrn End Withrn With .Selection.Borders(xlEdgeRight)rn .LineStyle = xlContinuousrn .Weight = xlThinrn .ColorIndex = xlAutomaticrn End Withrn With .Selection.Borders(xlInsideVertical)rn .LineStyle = xlContinuousrn .Weight = xlThinrn .ColorIndex = xlAutomaticrn End Withrn With .Selection.Borders(xlInsideHorizontal)rn .LineStyle = xlContinuousrn .Weight = xlThinrn .ColorIndex = xlAutomaticrn End WithrnDim strContent As StringrnDim intStartRow As LongrnintStartRow = 2rnstrContent = ""rn For ii = 0 To objDDD.Cols - 1rn If objDDD.MergeCol(ii) = True Thenrn For i = 0 To objDDD.Rows - 1rn If Trim(strContent) = Trim(objDDD.TextMatrix(i, ii)) Thenrn .Range(arrTitle(ii) & intStartRow, arrTitle(ii) & i + 2).Selectrn With .Selectionrn .HorizontalAlignment = xlCenterrn .VerticalAlignment = xlCenterrn End Withrn .Selection.Mergern .Range(arrTitle(ii) & intStartRow).Value = Trim(objDDD.TextMatrix(i, ii))rn Elsern intStartRow = i + 2rn strContent = objDDD.TextMatrix(i, ii)rn .Range(arrTitle(ii) & intStartRow).Value = Trim(objDDD.TextMatrix(i, ii))rn End Ifrn Nextrn Elsern For i = 0 To objDDD.Rows - 1rn .Range(arrTitle(ii) & i + 2).Value = Trim(objDDD.TextMatrix(i, ii))rn Nextrn End Ifrn NextrnEnd Withrnxlapp.Visible = TruernEnd Subrnrnrnrnrn为什么老是用户定义类型未定义,求帮忙啊。。。谢谢大家
求助帖,大神帮帮忙。。
[img=https://img-bbs.csdn.net/upload/201501/12/1421046395_595543.png][/img]rn这个东西怎么实现啊
求助!~各位大神帮帮忙
有谁知道哪里可以找到孙鑫的 java web应用详解啊 ,rn知道的给个地址啊
求大神帮忙,谢谢啦!
[img=https://img-bbs.csdn.net/upload/201312/08/1386497826_79401.png][/img]rn我准备在用鼠标点击期刊登陆时弹出相应的对话框。下面是我的代码,点击期刊登陆时没反应,不知道为什么??[img=https://img-bbs.csdn.net/upload/201312/08/1386498117_21208.png][/img][img=https://img-bbs.csdn.net/upload/201312/08/1386498233_711433.png][/img]。[code=java][/code]rn下面是为了方便大家运行调试的文本代码rnrnimport javax.swing.*;rnimport java.awt.*;rnimport java.awt.event.*;rn///////////////////////////////rnclass Dialogs extends JDialogrn//制作对话框rn public Dialogs(JFrame parent)rn rn super(parent,"My dialog",true);rn Container cp=getContentPane();rn cp.setLayout(new FlowLayout());rn cp.add(new JLabel("Here is my dialog"));rn JButton ok=new JButton("OK");rn ok.addActionListener(new ActionListener()rn public void actionPerformed(ActionEvent e)rn dispose();rn rn );rn cp.add(ok);rn setSize(500,500);rn rnrn////////////////////////////////////////////////rnclass WindowText extends JFrame// implements ActionListenerrn//private Dialogs dlg=new Dialogs (null);rn private JFrame wd;rn JMenuBar menubar;//菜单条rn JMenu menu1,menu2,menu3;//菜单选项rn Dialogs dlg=new Dialogs (null);rn WindowText()rn rn init();rn rn rn public void init()rn rn wd=new JFrame("期刊管理系统");rn wd.setBounds(100,100,200,300);rn rn setDefaultCloseOperation(EXIT_ON_CLOSE);rn menubar=new JMenuBar();rn menu1=new JMenu("期刊登记");rn menu2=new JMenu("期刊查询");rn menu3=new JMenu("期刊借阅");rn rn menubar.add(menu1);rn menubar.add(menu2);rn menubar.add(menu3);rn wd.setJMenuBar(menubar);rn inirt();rn wd.setVisible(true);rn // myEvent(); rnrnpublic void inirt()rn menu1.addActionListener(new ActionListener()//这里增加事件rn public void actionPerformed(ActionEvent e)rn dlg.setVisible(true);rn rn );rn rn rn rnpublic static void main(String[] args)rn rnrn rn new WindowText();rn rn rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn //menu1rn //JButton button=new JButton("按钮");rn //menu1=new JMenu("期刊登记");rn //menu1.add(ON_UPDATE_COMMAND_UI);rn ///*menu1.addActionListener(new MouseListener()rn //public void actionPerformed(MouseEvent event)rn // rn // DialogPanel dialog=new DialogPanel();rn // rn // );rn //wd.add(button);rn // */rn // //jmt1.addActionListener(new MenuAction(this));rn rn rn rn rn rn rn /* class DialogPanel extends JPanelrn rn JDialog dialog=new JDialog();rn public DialogPanel()rn rn//加入其它你想加的东西rn dialog.add(this);rn dialog.setSize(300,300);rn dialog.setLocation(300,300);rn dialog.setVisible(true);rn rn */rnrn rn rn rn rn rn rnrnrn
请大神不吝赐教,谢谢啦!!
哪位前辈能帮我看看下面的程序,基于UDP协议的套接字C/S编程,只在同一台计算机上实现,服务器端和客户端均能正常run,但是相互发送数据时却报错,错误代码如下:send data failed!10047,而我在MSDN上查得原因为WSAEAFNOSUPPORT——Addresses in the specified family cannot be used with this socket. 也就是说发送的地址不对,我应该怎么设服务器端和客户区端地址啊,还有端口号,请大侠不吝赐教啊,很想搞懂这类编程,谢谢!(注意C/S只在同一台计算机上运行.另外本机的IP地址为:192.168.1.103)rnrn[code=C/C++]//服务器端程序rn#includern#includern#includernrnvoid main()rnrn WORD wVersionRequested;rn WSADATA wsaData;rn int err;rn SOCKET sockSrv;rn int sendBytes;rn rn wVersionRequested = MAKEWORD( 1, 1 );rn rn err = WSAStartup( wVersionRequested, &wsaData );rn if ( err != 0 )rn rn printf("start up the winsock failed!\n");rn return;rn rn if ( LOBYTE( wsaData.wVersion ) != 1 ||rn HIBYTE( wsaData.wVersion ) != 1 )rn rn WSACleanup( );rn return; rn rnrn printf("start up the winsock succeed!\n");rn //创建socketrn printf("create the scoket!\n");rn sockSrv=socket(AF_INET,SOCK_DGRAM,0);rn if(sockSrv==INVALID_SOCKET)rn rn printf("create socket succeed!\n");rn WSACleanup( );rn return;rn rn printf("create socket succeed!\n");rnrn //地址信息rn SOCKADDR_IN addrSrv;rn [color=#FF0000]addrSrv.sin_addr.S_un.S_addr=htonl(INADDR_ANY); rn addrSrv.sin_family=AF_INET;rn addrSrv.sin_port=htons(6000);[/color] rn //绑定rn printf("bind the addr with the socket!\n");rn if(bind(sockSrv,(SOCKADDR*)&addrSrv,sizeof(SOCKADDR)))rn rn printf("bind failed!\n");rn WSACleanup( );rn closesocket(sockSrv);rn return;rn rn printf("bind succeed!\n");rnrn char recvBuf[100];rn char sendBuf[100];rn char tempBuf[100];rnrn SOCKADDR_IN addrClt;rn int len=sizeof(SOCKADDR);rnrn memset(recvBuf,0,sizeof(recvBuf));rn memset(tempBuf,0,sizeof(tempBuf));rn memset(sendBuf,0,sizeof(sendBuf));rn do rn rn printf("Please input data:\n");rn gets(sendBuf);rn sendBytes=sendto(sockSrv,sendBuf,strlen(sendBuf)+1,0,(SOCKADDR*)&addrClt,len);rn if(sendBytes==SOCKET_ERROR)rn rn printf("send data failed!%d\n",WSAGetLastError());rn WSACleanup( );rn closesocket(sockSrv);rn exit(1);rn rn printf("send data succeed!\n");rnrn recvfrom(sockSrv,recvBuf,100,0,(SOCKADDR*)&addrClt,&len);rn if('q'==recvBuf[0])rn rn sendto(sockSrv,"q",strlen("q")+1,0,(SOCKADDR*)&addrClt,len);rn printf("Chat end!\n");rn break;rn rn sprintf(tempBuf,"%s says: %s",inet_ntoa(addrSrv.sin_addr),recvBuf);rn printf("%s\n",tempBuf);rn while(1);rn closesocket(sockSrv);rn WSACleanup();rnrnrn//客户端程序rn#includern#includern#includernrnvoid main()rnrn WORD wVersionRequested;rn WSADATA wsaData;rn int err;rn int sendBytes,recvBytes;rn SOCKET sockClt;rn //启动winsock库rn printf("start up the winsock!\n");rn wVersionRequested = MAKEWORD( 1, 1 );rn err = WSAStartup( wVersionRequested, &wsaData );rn if ( err != 0 )rn rn return;rn rn if ( LOBYTE( wsaData.wVersion ) != 1 ||rn HIBYTE( wsaData.wVersion ) != 1 )rn rn WSACleanup( );rn return; rn rnrn //创建客户端套接字rn sockClt=socket(AF_INET,SOCK_DGRAM,0);rn if(sockClt==INVALID_SOCKET)rn rn printf("create cltsocket succeed!\n");rn WSACleanup( );rn return;rn rn printf("create socket succeed!\n");rnrn //地址信息rn SOCKADDR_IN addrClt;rn [color=#FF0000]addrClt.sin_addr.S_un.S_addr=inet_addr("127.0.0.1");rn addrClt.sin_family=AF_INET;rn addrClt.sin_port=htons(4000);[/color] rn char recvBuf[100];rn char sendBuf[100];rnrn SOCKADDR_IN addrSrv;rn int len=sizeof(SOCKADDR);rnrn memset(recvBuf,0,sizeof(recvBuf));rn memset(sendBuf,0,sizeof(sendBuf));rn dorn rn gets(sendBuf); //输入数据rn sendBytes=sendto(sockClt,sendBuf,strlen(sendBuf)+1,0,(SOCKADDR*)&addrSrv,len);rn if(sendBytes==SOCKET_ERROR)rn rn printf("send data to server failed! %d\n",WSAGetLastError());rn closesocket(sockClt);rn WSACleanup();rn exit(1);rn rn printf("send data succeed!\n");rnrn recvBytes=recvfrom(sockClt,recvBuf,100,0,(SOCKADDR*)&addrSrv,&len);rn if(recvBytes==SOCKET_ERROR)rn rn printf("recv data from client failed!\n");rn closesocket(sockClt);rn WSACleanup();rn exit(1);rn rn if(recvBytes)rn rn printf(recvBuf);rn printf("\n");rn printf("chat end!\n");rn rn while(1);rn closesocket(sockClt);rn WSACleanup();rn[/code]
求助一下,谢谢啦
vector > dpm(X+1,vector(B+1,empty));rn这段语句的完整含义是什么啊
高手请进来帮帮忙谢谢啦
在 我的电脑->工具->文件夹选项->隐藏已知文件类型的扩展名 系统默认的情况下是打勾的rn现在我想用程序的方式自由来控制此选项rn我现在一点头绪都没有?????????rn有谁知道的还望指点一下谢谢!
帮帮忙!保存出错!谢谢啦
private void btn7_Click(object sender, System.EventArgs e)rn rn string connStr,InsertCmd;rn connStr="Server=(local);Database=tester;Trusted_Connection=SSPI"; rnrn InsertCmd="Insert Into PTtest(TestVoltage,TestCurrent,RatedCurrent,loss,VoltageChannel,CurrentChannel) Values('"+Checkfloat(textBox1.Text)+"','"+Checkfloat( textBox2.Text)+"','"+Checkfloat(textBox3.Text)+"','"+Checkfloat(textBox4.Text)+"','"+Checkint(textBox5.Text)+"','"+Checkint(textBox6.Text)+"')";rn rn SqlConnection conn;rn SqlCommand cmd;rn conn=new SqlConnection(connStr);rn conn.Open();rn cmd=new SqlCommand(InsertCmd,conn);rn cmd.ExecuteNonQuery();rn conn.Close();rn ShowTest();rn saved=true;rnrn rnrnrn点击保存按钮后,出现错误:未处理的“System.Data.SqlClient.SqlException”类型的异常出现在 system.data.dll 中。rnrn其他信息: 系统错误。rn rn中断后,光标停在:cmd.ExecuteNonQuery();处,大家给看看到底什么错误呀?rn曾经用这个代码操作国其他表格没错误!郁闷中 rn
???哪位帮帮忙?先谢谢啦
为什么我的内存卡在我的电脑上面不能呢个显示出来,不论是用数据线还是读卡器,都不行,但是在学校就可以了?哪位帮忙解答哈,谢谢啦!
高手们!帮帮忙!谢谢啦!
设数据段有两个变量,分别记为X与Y,附加段有一个变量,记为RESULT,rn试编写完整的程序段,将X与Y的和的绝对值放到RESULT中。rn
帮帮忙啦!! 小弟谢谢各位了!
各位大哥帮帮忙啦,Indy Servers中的idUDPServer控件的OnUDPRead事件来接受广播的编译的时候第三个参数怎么说rn[Error] Unit1.pas(13): Undeclared identifier: 'TIdSocketHandle'rn为什么啊??rnrndelphi 6 中的indy控件和7中的版本一样么??rn
救命啦~~~~!!!!谢谢各位帮帮忙!!!
语音聊中插好话筒,只能在自己的音响里听到声音,对方听不到,咋弄哦~~~谢谢!!
救急!大家帮帮忙!谢谢啦!
我用VS.NET2003从左边的“服务器资源管理器”里建立了一个连接SQLSERVER的连接,然后把一个表拖进了一个页面(表只有一个Name字段),自动生成了一大堆sqlConnection那些对象的代码。rn然后我建立一个.XSD的强类型的DATASETrnsqlConnection1.Open() ;rnrndsEmployee ds = new dsEmployee() ; //强DataSetrnDataRow newRow = ds.Tables[0].NewRow();rnnewRow["Name"] = "zhangjiang" ;rnds.Tables[0].Rows.Add(newRow) ;rn rnint i = sqlDataAdapter1.Fill((DataSet)ds) ;rnrn可是每次添加都不成功!rn我哪里写错了吗?rn还是有什么需要注意的呀?rn我在Win2003下用的VS.Net2003rn
各位大侠帮帮忙,谢谢啦!
我想用VB做一个OUTLOOK的控件,可以自动分拣收件箱里的邮件。对于VB我基本是一窍不通,烦问各位高手,我应该从哪里开始学习?或者哪位大侠有现成的例子可供参考,谢谢啦!
求助大哥大姐,帮帮忙啦
本人在做一套生产方面的软件,目前在做生产日报时遇到一点小麻烦,问题如下: rn rn车间(部门)生产有很多工序,某个部件要流经各工序生产,请问该如何设计界面和数据库,还要便于以后的统计维护 rn最好有事例代码,对本人来说巨难,分不够可以再添
java中导入Excel表
java中导入Excel表 需要的jar包: &lt;dependency&gt; &lt;groupId&gt;org.apache.poi&lt;/groupId&gt; &lt;artifactId&gt;poi-ooxml&lt;/artifactId&gt; &lt;version&gt;3.9&lt;/version&gt; &lt;/dependency&gt; 实体类: p...
各位大神,求助,,谢谢
我定义了一个类:rn public class Personrn rn //编号rn public int ID get; set; rn //姓名rn public string Name get; set; rn //年龄rn public int Age get; set; rn rnrn然后在控制器中:IEnumerable list = new Listrnrn那么问题就来了,麻烦你们解释一下IEnumerable list = new List这句代码什么意思?谢谢
求助, 能不能导入表中,算出时长?谢谢
rn求助, 能不能导入表中,算出时长?rnrn1日 00:12:48指的是 2005-10-1日 00:12:48rn31日 23:07:04指的是2005-10-31日 23:07:04rnrn例如:1日00:12:48 -3 1日23:07:04= 01:05:44(1小时5分44秒) rn rn时长 = 结束时间- 开始时间 rnrnrn时间范围 开始时间 结束时间rnrn2005-11-01 00:00 至 2005-11-07 23:59 31日 23:07:04 1日 00:12:48rn2005-11-01 00:00 至 2005-11-07 23:59 31日 23:07:04 1日 00:12:48rn2005-11-01 00:00 至 2005-11-07 23:59 31日 23:19:57 1日 00:13:33rnrn2005-11-01 00:00 至 2005-11-07 23:59 1日 00:03:46 1日 00:18:25rn2005-11-01 00:00 至 2005-11-07 23:59 1日 00:04:16 1日 01:16:48rnrn2005-11-01 00:00 至 2005-11-07 23:59 7日 23:50:41 7日 23:56:52rn2005-11-01 00:00 至 2005-11-07 23:59 7日 23:50:41 7日 23:56:52rn rn
请java大神帮帮忙。。
package simple;rnrnpublic class test1 rn static int x=100;rn static void m()rn System.out.println(x);rnrnrnrnclass test2 extends test1rnstatic int x=200;rn static void m()rn System.out.println("x="+x);rn System.out.println("super.x="+super.x);//出错了rn super.m();// 出错了rn rn public static void main(String args[])rn //test1 a=new test1()rn test1 a=new test2();rn a.m();rn System.out.println(a.x);rn rnrn为什么不能调用父类的方法跟属性了?
导入环信demo后报错,求大神帮帮忙,谢谢。
Error:Configuration with name 'default' not found.
求助 --帮帮忙,谢谢 -_-
我目前在学习java, 想用java做个小程序. 图书馆管理系统, 想用集合类模拟底层实现,不用jdbc(因为没学呢) rn现在想求助各位老大, 我的思路很乱,不知道究竟应该怎么去具体编写. 那位老大能指点一二. 小弟感激不尽!!! -_-
求助!谢谢各位!帮帮忙!
本人是新学vb的菜鸟,有谁可以提供一个与access数据库相连的vb例子,以便于我看着学习,非常感谢!谢谢!rn恳请你的帮忙!
求助!!!帮帮忙!!!谢谢
rn求助,帮帮忙?rn rn Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e21' rnrnODBC 驱动程序不支持所需的属性。 rnrn/bbs_bear/inc/boardskin1.asp,行8 rnrn第八九行如下rnrnsql="select bbs1.AnnounceID,bbs1.parentID,bbs1.boardID,bbs1.length,bbs1.isvote,bbs1.UserName,bbs1.child,bbs1.Topic,bbs1.body,bbs1.DateAndTime,bbs1.hits,bbs1.RootID,bbs1.Expression,bbs1.times,bbs1.locktopic,bbs1.istop,bbs1.isbest,board.lockboard from bbs1,board where bbs1.boardid=board.boardid and bbs1.boardID=" & cstr(boardID) & " and bbs1.parentID=0 "&tl&" ORDER BY bbs1.istop desc,bbs1.times desc,bbs1.announceid desc"rn rs.open sql,conn,1,1rnrnrn
求助!!decltype的区别用法,谢谢各位大神啦
主要是我看书看到有些函数里的循环直接就是 rnstring::size_type MyString(const int &s)rnrn string::size_type word = s.size();rn for (decltype(s.size()) index = 0; index != word; ++index)rn rn .。。。。。。。rn rn return;rnrn和!!!!!rnstring::size_type MyString(const int &s)rnrn for (decltype(s) index = 0; index != s.size(); ++index)rn rn .。。。。。。。rn rn return;rnrn我有点搞不清楚这两个循环里的decltype推导表达式的类型 性质是一样的么,然后我看的一般后面都是不等于 .size()为什么上面第一个例子却可以直接不等于那个。
C++栈问题求助各位大神,急用,谢谢啦!!!
DescriptionrnN couples are standing in a circle, numbered consecutively clockwise from 1 to 2N. Husband and wife do not always stand together. We remove the couples who stand together until the circle is empty or we can't remove a couple any more. Can we remove all the couples out of the circle? rnInputrn There are multiple test cases. The first line contains an integer T, indicating the number of test cases. In each case, the first line is an integer N(1 <= N <= 100000)----the number of couples. In the following N lines, each line contains two integers ---- the numbers of each couple.rnOutputrn Output "Yes" if we can remove all the couples out of the circle. Otherwise, output "No".rnrnSample Inputrn2rn4rn1 4rn2 3rn5 6rn7 8rn2rn1 3rn2 4 rnSample OutputrnYesrnNornrn我的代码:rnrn#includern#includernusing namespace std;rnint main()rn rnint n,i,c,k,j,a[100000][2],n2;rnstackcouple;rncin>>c;rnfor (i=0;i>n;rnfor (j=0;j>a[j][1]>>a[j][2];rncouple.push(1);rnn2=n*2;rnfor (j=2;j<=n2;j++)rnrnfor (k=0;k
紧急求助,各位大神帮帮忙
有一个Strurs2项目是在MyEclipse上运行的,现在需要把它转移到Eclipse上,求大神相助rn很急rnrnQQ:812792011
《求助》c++求大神 帮帮忙
const unsigned char* A rnrn如何通过c++把A=a[ab]2a 变成aababa?rn[]里的东西重复里数字的次数。rn如果嵌套的话怎么办呢?rn比如说[x[ab]2y]3=xababyxababyxababyrnrn注意的是A是const unsigned char*
求助,大神帮帮忙,oracle无法启动
[img=https://img-bbs.csdn.net/upload/201411/19/1416409464_62827.png][/img]rnoracle无法启动,求帮忙
小白来求助了,大神帮帮忙
想做一个网站小项目,没有服务器,所以我打算用自己的电脑做服务器,rn用eclipse的svn插件做版本控制,一切都挺顺利的,最后我同学那边用svn导入项目的时候一直无法连接主机rn真心求助各位大神,需要贴什么代码,需要怎么做求教!!!
相关热词 c#部署端口监听项目、 c#接口中的属性使用方法 c# 昨天 c#func链接匿名方法 c#怎么创建文件夹 c#从键盘接收空格 c#da/ad c#部门请假管理系统 c#服务器socket c# 默认的访问修饰符