大佬来解释一下 [问题点数:20分]

Bbs1
本版专家分:0
结帖率 0%
Bbs2
本版专家分:400
Bbs1
本版专家分:0
Bbs2
本版专家分:174
Blank
GitHub 绑定GitHub第三方账户获取
Bbs1
本版专家分:0
Bbs2
本版专家分:255
请高手来解释一下
if(n & (n-1) == 0) return true;rnelse return false;rn这是在判断一个数是否为2的幂次,请高手来具体<em>解释一下</em>,具体的运算过程。
高手来帮我解释一下
unit UnitDM;rnrninterfacernrnusesrn SysUtils, Classes, DB, ADODB,IniFiles,Dialogs;rnrntypern Tdm = class(TDataModule)rn ADOConn: TADOConnection;rn procedure DataModuleCreate(Sender: TObject);rn procedure DataModuleDestroy(Sender: TObject);rn privatern Private declarations rn publicrn Public declarations rn end;rnrnvarrn dm: Tdm;rnrnimplementationrnrn$R *.dfmrnvar dbinifile:Tinifile;rn F:TEXT;rnrnprocedure Tdm.DataModuleCreate(Sender: TObject);rnvar Filename:String;rn strDataSource,strUserID,strPassword,strInitial:String;rnbeginrn Filename:=ExtractFilePath(Paramstr(0))+'SQLCon.ini';rn if not FileExists('SQLCon.ini') thenrn beginrn assignfile(f,filename);rn rewrite(f);rn writeln(f,'[SQLDB]');rn writeln(f,'DataSource=192.168.0.132');rn writeln(f,'UserID=sa');rn writeln(f,'Password=as');rn writeln(f,'Initial=RequsetConfirm');rn closefile(f);rn end;rn dbinifile:=Tinifile.Create(Filename);rn strDataSource:=dbinifile.ReadString('SQLDB','DataSource','192.168.0.132');rn strUserID:=dbinifile.ReadString('SQLDB','UserID','sa');rn strPassword:=dbinifile.ReadString('SQLDB','Password','as');rn strInitial:=dbinifile.ReadString('SQLDB','Initial','RequsetConfirm');rn ADOConn.ConnectionString:='Provider=SQLOLEDB.1;Password='+strpassword+';Persist Security Info=True;User ID='+struserid+';Initial Catalog='+strInitial+';Data Source='+strDataSource;rn tryrn ADOCONN.Connected:=true;rn exceptrn ShowMessage('数据库连接失败 !');rn end;rnend;rnprocedure Tdm.DataModuleDestroy(Sender: TObject);rnbeginrn dbinifile.Destroy;rnend;rnrnend.rnrn上面上我看到的一个程序的代码? Tdm = class(TDataModule) 是什么 ?rnvar dbinifile:Tinifile; F:TEXT; //前面这两个语句帮我<em>解释一下</em>。谢谢 rn (QQ: 151468739 )
大仙来解释一下!
在项目文件夹aa下有图片aa.jpgrn在WINFORM中 一个pictureBox rn我想在程序代码中用picturebox.Image=????这里该怎么转换????? @"aa\aa.jpg"; 这样实现不了rn 我知道可以在Picturebox控件的image属性下 直接填进去图片!rnrn因为在web下rnrnImage1.ImageUrl=@"aa\aa.jpg";是可以实现的rnrn那么在WINFORM中应该怎么做?
哪位来解释一下
da.fill(....)rnrndatagrid=dsrn之后rnrn数据会大约在两分钟自动刷一次,经查看,是调用了exec sp_reset_connection,然后将select 语句又重复执行了一次.请问这个是什么机制.
高手来解释一下
没分了,就10分了,不好意思。rnrn#includern#includernusing namespace std;rnclass testrnrnpublic:rntest():str("nostring"),num(0)rntest(string a,int b):str(a),num(b)rn~test() rncout<<
哪位大侠来解释一下
#includernint main()rnrn int i=1;rn printf("%*s%*s\n",3,"WERTY"+2,3,"12345"+3,2);rn rnrn输出结果是:RTY 45 rn注意中间有空格,为什么?我要是不要中间的空格该怎么办?rn请给我详细<em>解释一下</em>那个printf到底是怎么执行的,我实在是搞不明白.rn"WERTY"这个字符串前面有个3, 为什么我在,"12345"前面加个3,的时候却不行了?
学.NET的来解释一下
#includernvoid main()rn rn char a,b,c,d;rn a='\'';b='\xbc';rn c='\0xab';d='A';rn printf("%c %c %c %c\n",a,b,c,d);rn getchar();rnrn[img=https://img-bbs.csdn.net/upload/201403/07/1394197781_439236.png][/img]rn对于b、c的输出怎么理解
矩形碰撞检测,来解释一下
if( (rt1->top > rt2->top && rt1->top < rt2->bottom) || rn (rt1->bottom > rt2->top && rt1->bottom < rt2->bottom) )rn rn if( ( rt1->left > rt2->left && rt1->left < rt2->right) ||rn ( rt1->right > rt2->left && rt1->right < rt2->right ) )rn rn return TRUE;rn rn rn if( (rt2->top > rt1->top && rt2->top < rt1->bottom) ||rn (rt2->bottom > rt1->top && rt2->bottom < rt1->bottom) )rn rn if( ( rt2->left > rt1->left && rt2->left < rt1->right) ||rn ( rt2->right > rt1->left && rt2->right < rt1->right ) )rn rn return TRUE;rn rn rnrn return FALSE;
请各位来解释一下
#include rn#includernusing namespace std;rnvoid main()rnrn string str = "test";rn switch(str)rn rn case "test":rn cout labelsrnError executing cl.exe.rnrnbicen.exe - 2 error(s), 1 warning(s)rn
小问题,大家来解释一下
看看三个程序:rn1.为什么a=0?rn#include rn#include rnrnint main()rnrn int a = 10;rn char str[10];rn int b = 10;rn rn strcpy(str, "hello world!");rn printf ("str = %s, a = %d, b = %d\n", str, a, b);rnrn2.为什么b=0?rn#include rn#include rnrntypedef struct node rnrn int a;rn char str[10];rn int b;rnTnode;rnrnint main()rnrn Tnode test;rn test.a = 10;rn strcpy(test.str, "hello world!");rn test.b = 10;rnrn printf("str = %s, a = %d, b = %d\n", test.str, test.a, test.b);rnrn3.会怎么样?rn#include rn#include rn#include rnrnint main()rnrn int a = (int)malloc(sizeof(int));rn char *str = (char*)malloc(10 * sizeof(char));rn int b = (int)malloc(sizeof(int));rn rn a = 10;rn b = 10;rn strcpy(str, "hello world!");rn printf ("str = %s, a = %d, b = %d\n", str, a, b);rn
高手来解释一下
[code=C/C++]rn(*(void(*)())0)()rn[/code]
解释一下术语!!!
windows程序设计里,有下列名字,请<em>解释一下</em>:rnLRESULT CALLBACK WndProc(HWND hWnd,UINT message,WPARPAM wParam,LPARAM lParam)rnrnLRESULT CALLBBACK 是什么意思?rnUINT 是什么意思?rnrn有什么经典的WINDOWS程序设计的书籍,请介绍一下。最好能下载。谢谢!
大家来解释一下
import java.awt.*;rnimport java.awt.event.*;rnimport java.io.*;rnimport javax.swing.*;rnimport javax.swing.text.BoxView;rnpublic class CopyFileDemo extends JFramern rn JFileChooser fileChooser;rn JTextField txtSource;rn JTextField textDest;rn JButton btnSelectA;rn JButton btnSelectB;rn JButton btncopy;rn public CopyFileDemo()rn super("Java cpyfile");rn setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);rn fileChooser=new JFileChooser();rn txtSource=new JTextField(16);rn textDest=new JTextField(16);rn btnSelectA=new JButton("选择");rn btnSelectB=new JButton("选择");rn btncopy=new JButton("复制");rn Box box=Box.createVerticalBox();rn JPanel panel=new JPanel();rn panel.add(new JLabel("源文件"));rn panel.add(txtSource);panel.add(btnSelectA);rn box.add(panel);rn panel=new JPanel();rn panel.add(new JLabel("目标文件"));rn panel.add(textDest);panel.add(btnSelectB);rn box.add(panel);rn box.add(btncopy);rn getContentPane().add("Center",box);rn rn rn rn //rn class MyActionListener implements ActionListenerrn public void actionPerformed(ActionEvent event)rn rn if(event.getSource()==btncopy)rn rn String sourceFile=txtSource.getText();rn String targetFile=textDest.getText();rn if(copyFile(sourceFile, targetFile))rn rn JOptionPane.showMessageDialog(CopyFileDemo.this, "Succeed!");rn rn rn else rn JOptionPane.showMessageDialog(CopyFileDemo.this, "Failure!");rn rn rn else rn if(fileChooser.showOpenDialog(CopyFileDemo.this)==JFileChooser.APPROVE_OPTION)rn rn String fileName=fileChooser.getSelectedFile().getAbsolutePath();rn if(event.getSource().equals(btnSelectA))rn txtSource.setText(fileName);rn else rn textDest.setText(fileName);rn rn rn rn ////rn public boolean copyFile(String file1,String file2)rn rn try rn File fileIn=new File(file1);rn File fileOut=new File(file2);rn FileInputStream fInputStream=new FileInputStream(fileIn);rn FileOutputStream fOutputStream=new FileOutputStream(fileOut);rn byte[] bytes=new byte[1024];rn int c;rn while ((c=fInputStream.read(bytes))!=-1) rn fOutputStream.write(bytes,0,c);rn rn rn fInputStream.close();rn fOutputStream.close();rn return true;rn catch (Exception e) rn // TODO: handle exceptionrn return false;rn rn rn public static void main(String args[])rn rn CopyFileDemo obj=new CopyFileDemo();rn rn rnrnrn这个java 为什么 会出现 [img=C:\Users\Albertzmh\Desktop\捕获.png][/img]
大佬来帮我看看怎么回事!!!!
//kese1.h 文件,实现类的声明rn#include rn#include rn#include rn#include rn#include rn#include rn#include rnusing namespace std;rn//student.h学生类rnclass Student;rnclass StuList;rnostream& operator<<< 0)rn cout << setw(3) << "序号";rn cout << setw(10) << "姓名" << setw(20) << "学号"\rn << setw(6) << "大外" << setw(6) << "高数"\rn << setw(6) << "模电" << setw(10) << "面向对象"\rn << setw(10) << "总分" << endl;rn stuHead = true;rn rn if (n > 0)rn cout << setw(3) << n;rn cout << setw(10) << stuname << setw(20) << stunum\rn << setw(6) << stuscore[0] << setw(6) << stuscore[1]\rn << setw(6) << stuscore[2] << setw(10) << stuscore[3]\rn << setw(10) << total << endl;rnrnostream& operator<< "找到的结果为" << endl;rn stu.print(sign + 1);rn rn elsern cout << "没有找到!" << endl;rnrnrnrnvoid StuList::Show() //遍历列表显示rnrn list::iterator it = thestu.begin(); //定义迭代器指针rn int i = 0;rnrn while (it != thestu.end())rn rn it->print(++i);rn it++;rn rnrnvoid StuList::SorttoFile(char* filename) //按学生总成绩进行排序rnrn thestu.sort();rn Show();rn //排序后的内容保存到文件中rn ofstream out(filename);rn copy(thestu.begin(), thestu.end(), ostream_iterator(out));rnrnvoid StuList::Max() //各科的最高分rnrnrn float max[4] = 0, 0, 0, 0 ;rnrn for (int i = 0; i < 4; i++)rn rn list::iterator it = thestu.begin(); //定义迭代器指针rn Student stu;rn while (it != thestu.end())rn rn stu = *it;rn if (max[i] < stu.stuscore[i])rn max[i] = stu.stuscore[i];rn it++;rn rn rn cout << "各科的最高分 :" << "大外" << max[0] << "高数" << max[1] << "模电" << max[2] << "面向对象" << max[3] << endl;rnrnvoid StuList::Min() //各科的最低分rnrnrn float min[4] = 100, 100, 100, 100 ;rnrn for (int i = 0; i < 4; i++)rn rn list::iterator it = thestu.begin(); //定义迭代器指针rn Student stu;rn while (it != thestu.end())rn rn stu = *it;rn if (min[i] > stu.stuscore[i])rn min[i] = stu.stuscore[i];rn it++;rn rn rn cout << "各科的最低分 :" << "大外" << min[0] << "高数" << min[1] << "模电" << min[2] << "面向对象" << min[3] << endl;rnrnrn//Class.cpprnrnvoid Class::CPrint() //输出班级信息rnrn cout << setw(3) << "年级" << setw(10) << "班级" << endl;rn cout << setw(3) << clgrade << setw(10) << clclass << endl;rn cout << setw(3) << "序号";rn cout << setw(10) << "姓名" << setw(20) << "学号"\rn << setw(6) << "大外" << setw(6) << "高数"\rn << setw(6) << "模电" << setw(10) << "面向对象"\rn << setw(10) << "总分" << endl;rn list::iterator it = cl.begin();//定义迭代器指针rn int i = 0;rnrn while (it != cl.end())rn rn it->print(++i);rn it++;rn rnrnrn//ClList.cpprnrnvoid ClList::CAdd(Class cl) //增加班级信息rnrn thecl.push_back(cl);rnrnvoid ClList::CSeek(char* cclass) //查询班级信息rnrn int sign = -1;rn list::iterator it = thecl.begin(); //定义迭代器指针rn Class cl;rn while (it != thecl.end())rn rn cl = *it;rn if (strcmp(cl.Getclclass(), cclass) == 0)rn rn sign = 1;rn break;rn rn it++;rn rn if (sign > 0)rn rn cout << "查找的结果为" << endl;rn cl.CPrint();rn rn elsern cout << "没有查找到!" << endl;rnrnvoid ClList::CModify(char* cclass, Class& cl) //修改班级信息rnrn list::iterator it = thecl.begin(); //定义迭代器指针rnrn while (it != thecl.end())rn rnrn if (strcmp((*it).Getclclass(), cclass) == 0)rn rn *it = cl;rn // sign = 1;rn break;rn rn it++;rn rn cout << "修改的结果为" << endl;rn cl.CPrint();rnrnvoid ClList::CDelete(char* cclass) //班级的删除rnrn list::iterator it = thecl.begin();//定义迭代器指针rn while (it != thecl.end())rn rnrn if (strcmp((*it).Getclclass(), cclass) == 0)rn rn thecl.erase(it);rn break;rn rn it++;rn rn cout << "删除成功" << endl;rnrnvoid ClList::CShow() //年级中所有班级的显示rnrn list::iterator it = thecl.begin(); //定义迭代器指针rn Class cl;rn while (it != thecl.end())rn rn cl = *it;rn cl.CPrint();rn it++;rn rnint main() //主函数rnrn StuList thestu; //存放所有学生rn Student stu1("ma", "0803070201", 88, 90, 69, 52.6f);rn Student stu2("li", "0803070202", 52, 96, 74, 56);rn Student stu3("wang", "0803070101", 85, 25, 95, 79);rn Student stu4("yang", "0803070102", 82, 78, 84, 95);rn Student stu5("ding", "0803070301", 76, 85.6f, 94, 83);rn thestu.Add(stu1);rn thestu.Add(stu2);rn thestu.Add(stu3);rn thestu.Add(stu4);rn thestu.Add(stu5);rn thestu.Show();rnrn thestu.Seek("0803070201"); //查找学号为0803070201的同学rnrn cout << "排序的结果" << endl;rn thestu.SorttoFile("student.dat"); //按总分排序rn thestu.Max();rn thestu.Min();rnrn StuList s1;rn StuList s2;rn StuList s3;rn s1.Add(stu3);rn s1.Add(stu4);rn s3.Add(stu5);rn s2.Add(stu1);rn s2.Add(stu2);rnrn ClList thecl;rnrn Class cl1("二年级", "08030701", s1.Getthestu());rn Class cl2("二年级", "08030702", s2.Getthestu());rn Class cl3("二年级", "08030703", s3.Getthestu());rn thecl.CAdd(cl1);rn thecl.CAdd(cl2);rn thecl.CShow();rn thecl.CSeek("08030702"); //查找班级为08030702的班级rn thecl.CAdd(cl3);rn cout << "将08030702修改为08030703" << endl;rn thecl.CModify("08030702", cl3); //修改班级rn cout << "删除08030701班" << endl;rn thecl.CDelete("08030701"); //删除08030701班rn return 0;rn
大佬来帮忙看看
eclipse一直报An internal error occurred during: "Computing Git status for repository hp222".Trailing char < > at index 82: C:\Users\hp222\AppData\Roaming\duowan\yy\mainframe\theme\float\star-V1-V6-apng.png
解释一下.解释一下.解释一下.解释一下.解释一下.解释一下.解释一下.解释一下.解释一下.解释一下.
#include rnvoid main()rnrn int a,y;rn a=10;rn y=0;rndo rn a+=2;rn y+=a;rn if (y>50) break;rn rn while(a=14);rnrn printf("a=%d y=%d\n",a,y);rnrnrn为什么等于16 60rn我认为do后a=12,b=12.while()不成立,不循环.就等于12 12
asp.net高手来,奇怪的语句,来解释一下
如题: rn[code=C#]rnusing (IntegratedSuperviseEntities entitys = new IntegratedSuperviseEntities(this.connectionString))rn rn var cus = from template in entitys.Tbl_AttachmentTemplatern orderby template.CreateTime descendingrn select template;rn return cus.ToArray();rn rn[/code]
高手来帮我解释一下这个
void Test()rnrn char *str = (char*) malloc(100);rn strcpy(str, "hello");rn free(str);rn rn if(str != NULL)rn rn strcpy(str, "world\n");rn printf(str);rn rnrnrn虽然编译的时候会有警告,但是还是会输出worldrnstr已被释放了,为什么还是呢strcpy呢
大大们来帮忙解释一下
#include rnusing namespace std;rnint main ()rnrn int num,i,j;rn cout <> num;rn for (i=0;i0;j--)rn cout << num;rn num --;rn cout<
内存问题,哪个老手来解释一下
rnHBufC * iText;rnconst TDesC& GetTextEx() return *iText; rnrnvoid CutString::SetTextEx( const TDesC & aText )rnrn if(NULL != iTextArrayEx)rn rn iTextArrayEx->Reset();rn iTextArrayEx->Close();rn delete iTextArrayEx;rn iTextArrayEx = NULL;rn rn iTextArrayEx = new (ELeave) RArray(3);rnrn//***********************(1)rn HBufC * textOld = iText; rn iText = aText.Alloc();rn if (NULL != textOld)rn rn delete textOld;rn textOld = NULL;rn rn//***********************(2)rn if (NULL != iText)rn rn delete iText;rn iText = NULL;rn rn iText = aText.Alloc( );rnrnrn在应用时出现了如下的现象:rnrn对于代码(1):rnif(help->GetText()!= NULL)rnrn iCutStringHelp->SetTextEx(*help->GetText());rnrn反复调用iCutStringHelp->SetTextEx(iCutStringHelp->GetTextEx());运行结果是正确的。rnrniCutStringSuggest->SetTextEx(_L("\x60A8\x7684\x5EFA\x8BAE"));//实际比这个长rn第二次调用iCutStringSuggest->SetTextEx(iCutStringSuggest->GetTextEx());模拟器都退出了rnrn修改为代码(2)就没有问题。rnrn对于代码(2)而言,rn不管是 iCutStringHelp->SetTextEx(iCutStringHelp->GetTextEx());rn还是 iCutStringSuggest->SetTextEx(iCutStringSuggest->GetTextEx());rndelete iText;后内存释放了,即使iText = aText.Alloc();是因为那个地址的内存在,为什么iCutStringHelp的每次都在,而iCutStringSuggest的每次都不在,重启模拟器还是这样的。rnrn难道OS的内存管理方面对Alloc偷懒了?rn比如只是让iText的指针指向help->GetText()对应的堆内存区,使用_L()时才是从程序数据段把数据拷贝到iText的指针指向的堆内存,所以前者删除了还可以再分配(对应的堆内存还是由app所有),后者删除了(对应的堆内存OS回收了)就没有了?rn
请牛人来解释一下呗。
C++代码如下:rnrn const int a=9;rn rn int *p=(int*)&a;rnrn *p=10;rnrn printf("a: %d , *p %d",a,*p); //a: 9 ,*p: 10rnrn为什么*p改变了,但是a没有改变呢?(g++)rnrn同样的代码放到C中去编译: a:10 *p :10 麻烦大牛解释rnrn
高手来解释一下这个程序
[code=Java]public class Teacher extends Person rn public Teacher() rn super();rn rnrn public Teacher(int a) rn System.out.println(a);rn rnrn public void func() rn System.out.print("2, ");rn rnrn public static void main(String[] args) rn Teacher t1 = new Teacher();rn Teacher t2 = new Teacher(3);rn rnrnrnclass Person rn public Person() rn func();rn rnrn public void func() rn System.out.println("1, ");rn rn[/code]rnrn为什么运行结果是 2, 2, 3rnrn请高人指点~
那位来帮我解释一下..感谢!!!!!!!!!!
程序如下..rn有一处错误..不理解错那了..我用打开方式位的方法打开文件rn请那位帮我<em>解释一下</em>谢谢!rn#include rn#include rn#include rnrnclass NRailwaysrnrnprivate:rn char pnr[6];rn char pname[30];rn char date_departure[9];rn char to[40];rn char from[40];rn char status;rn int No_of_Seats;rnpublic:rn NRailways()rn rn pnr[0]='\0';rn pname[0]='\0';rn date_departure[0]='\0';rn to[0]='\0';rn from[0]='\0';rn status=' ';rn No_of_Seats=0;rn rn rn void print()rn rn cout<<> pnr;rn cout << endl << "Enter Passenger Name:\t";rn cin>>pname;rn cout << endl << "Enter Date of Departure: \t";rn cin >> date_departure;rn cout << endl << "From:\t";rn cin>>from;rn cout << endl << "To:\t ";rn cin>>to;rn cout << endl << "Enter Status of Booking\t";rn cin >> status;rn cout << endl << "Enter # of Seats Reserved:\t";rn cin >> No_of_Seats;rn rn char getstatus()rn rn return status;rn rn char *getpnr()rn rn return pnr;rn rn void setstatus()rn rn char choice;rn cout<>choice;rn if(choice=='y' || choice=='Y')rn status='R';rn rn;rnint main()rnrn int ch;rn while(1)rn rn cout<< "\n \n Northern Railway System\n";rn cout<< "\n 1. Enter Passenger Details\n";rn cout<< "\n 2. Query Passenger Details \n";rn cout<< "\n 3. Cancel the Booking \n";rn cout<< "\n 4. Print Confirmed Booking List\n";rn cout << "\n Enter your choice (0-4)\t";rn cin>>ch;rn rn if(ch==1)rn rn NRailways object;rn fstream ofile("booking1.txt",ios::app); rn cout << "Enter Passenger Details " << endl;rn object.get();rn ofile.write((char *)&object,sizeof(object));rn ofile.close(); rn rn if(ch==2)rn rn NRailways object;rn ifstream ifile("booking1.txt");rn char pnr[6];rn cout<>pnr;rn ifile.seekg(0,ios::beg);rn ifile.read((char *)&object, sizeof(object));rn while(ifile) //Read Till The End Of The Filern rn char temp[6];rn strcpy(temp,object.getpnr());rn if(strcmp(temp,pnr)==0)rn rn object.print();rn break;rn rn ifile.read((char *)&object, sizeof(object));rn rn ifile.close();rn rn if(ch==3)rn rn NRailways o;rn fstream ie("booking1.txt",ios::in|ios::out);rn char pnr[6];rn int pos;rn cout<>pnr;rn ie.read((char *)&o, sizeof(o));rn while(ie)rn rn char temp[6];rn pos=ie.tellg();rn strcpy(temp,o.getpnr());rn if(strcmp(temp,pnr)==0)rn rn o.setstatus();rn ie.seekp(pos-sizeof(o),ios::beg);rn ie.write((char*)&o,sizeof(o));rn ie.close();rn break;rn rn elsern ie.read((char *)&o, sizeof(o));rn rn ie.close();rn rn if(ch==4)rn rn NRailways object;rn ifstream ifile("booking1.txt");rn ifile.read((char *)&object, sizeof(object));rn while(ifile) //Read Till The End Of The Filern rn if(object.getstatus()=='C'||object.getstatus()=='c')rn object.print();rn ifile.read((char *)&object, sizeof(object));rn rn ifile.close();rn rn if(ch==0)rn break;rn rn return 0;rn
大侠们来解释一下好吗?
谁能讲一讲驱动程序是怎么一回事它是做什么的它是怎么工作的rn谢谢谢谢谢谢谢谢
数字水印的问题,大家来解释一下
void CBlindWMDoc::Freqmark(int *watermark, double **imageRe, int nImageWidth, int nImageHeight, int nWMPixelsNums)rnrn int times; // forlooprn int r[8]=240,230,220,210,200,190,180,170;rn int c=256,k=0;rn int getx[8]=230,210,200,180,150,130,100,nWMPixelsNums-1200;rn int a,x,b;rnrn for (times=0;times<=c+getx[times];x++)rn rn a=x-c;rn b=(int)(sqrt(r[times]*r[times]-(x-c)*(x-c))+0.499999);rn imageRe[x][c+b]+=watermark[k];rn imageRe[x][c-b]+=watermark[k];rn imageRe[c-a][c-b]+=watermark[k];rn imageRe[c-a][c+b]+=watermark[k];rn k++;rn rnrn rn rnrnrnrn<em>解释一下</em>代码,算法是怎样的?rn
求助大佬!!!! PHP大佬
求助<em>大佬</em>!!!!!excel导入功能 phpcmf的后台 上传读取时 读到的数据如下,能获取的行 只有1, 列只有A,上传文件没有问题
大佬
https://www.cnblogs.com/cjyyb/p/9990833.html https://www.cnblogs.com/bztMinamoto/p/9942932.html http://www.cnblogs.com/zhoushuyu https://www.cnblogs.com/ywwyww/ http://www.cnblogs.com/GuessYCB
有没有大佬来帮个忙啊
我是刚刚开始接触java的萌新,然后今天学习了用for循环做空心菱形,然后下课的时候老师布置让我们用for循环做空心五角星,可以变的那种,我想了一天实在想不出来,没办法了,所以来向各位<em>大佬</em>们求助 ...
大佬来看看,在线等,谢谢。
#includernint main()rnrn int StrDelete(Hsting *s,int pos,int len)rnrn char*p;rn int i;rn if(poslength-posch+pos-1;rn for(i=0;ilength=s->length-n;rn return(l);rn
各位大佬们来帮帮我啊!!!!
各位<em>大佬</em>们来帮帮我啊!!!为什么我的程序运行不出来,我看不出来哪儿错了 #include&lt;stdio.h&gt; #include&lt;malloc.h&gt; #include&lt;string.h&gt; typedef char DataType; struct SeqStack { int maxnum; int t; DataType *s; }; typedef struct...
mysql 问题 大佬来看看呗!
我想统计每月总人数 要加上之前的人数rnSELECTrn DATE_FORMAT(createtime, '%Y%m') MONTH,rn count(id) countrnFROMrn sysuserrnWHERErn STATUS = '1'rnAND ! ISNULL(createtime)rnGROUP BYrn MONTHrn rnrn rn rn rn ![图片说明](https://img-ask.csdn.net/upload/201704/14/1492136657_294955.png)rn rn rn
求助啊,急急急,大佬来救我
我用那个VS2017开发工具怎么用不了msgBox函数,在JS文件里面没有效果?rnrnrnrn $("#u156_text").click(rn function () rn // alert("1111")rn MsgBox.Confirm('您确定删除此文件吗?', function (result) rn if (result == "no")rn return;rn //以下写用户点确定时的业务代码。rn rn rn )rnrn rn rnrnrn)
大佬来回答一下吗
android studio 是不是不可以修改assets中zip文件,?困惑。。有解决方法吗
三维数组的数据处理问题,求大佬
[code=php]array(8) rn [0] => array(2) rn [0] => array(14) rn ["danName"] => string(6) "甲烷"rn ["standard"] => string(3) "CH4"rn ["danCate"] => string(15) "易燃性气体"rn ["price"] => string(5) "10.00"rn ["unit"] => string(9) "立方米"rn ["stock"] => int(5)rn ["id"] => int(41)rn ["date"] => string(19) "2018-01-12 11:16:23"rn ["operator"] => string(5) "admin"rn ["remark"] => string(18) "甲烷领用测试"rn ["borrower"] => string(5) "aut77"rn ["num"] => int(5)rn ["title"] => string(9) "安环部"rn ["deptId"] => int(3)rn rn ["sum"] => int(50)rn rn [1] => array(4) rn [0] => array(14) rn ["danName"] => string(6) "硫磺"rn ["standard"] => string(13) "GB/T2449-2006"rn ["danCate"] => string(18) "易燃性固体233"rn ["price"] => string(6) "120.00"rn ["unit"] => string(2) "kg"rn ["stock"] => int(69)rn ["id"] => int(1)rn ["date"] => string(19) "2018-01-15 14:37:29"rn ["operator"] => string(0) ""rn ["remark"] => string(21) "硫磺领用测试233"rn ["borrower"] => string(5) "admin"rn ["num"] => int(4)rn ["title"] => string(9) "行政部"rn ["deptId"] => int(2)rn rn [1] => array(14) rn ["danName"] => string(6) "乙烷"rn ["standard"] => string(3) "YW1"rn ["danCate"] => string(15) "易燃性气体"rn ["price"] => string(5) "10.00"rn ["unit"] => string(2) "KG"rn ["stock"] => int(85)rn ["id"] => int(1)rn ["date"] => string(19) "2018-01-12 15:08:04"rn ["operator"] => string(5) "admin"rn ["remark"] => string(21) "乙烷领用测试123"rn ["borrower"] => string(5) "admin"rn ["num"] => int(20)rn ["title"] => string(9) "行政部"rn ["deptId"] => int(2)rn rn [2] => array(14) rn ["danName"] => string(6) "乙烷"rn ["standard"] => string(3) "YW1"rn ["danCate"] => string(15) "易燃性气体"rn ["price"] => string(5) "10.00"rn ["unit"] => string(2) "KG"rn ["stock"] => int(85)rn ["id"] => int(1)rn ["date"] => string(19) "2018-01-12 15:08:11"rn ["operator"] => string(5) "admin"rn ["remark"] => string(21) "乙烷领用测试456"rn ["borrower"] => string(5) "admin"rn ["num"] => int(2)rn ["title"] => string(9) "行政部"rn ["deptId"] => int(2)rn rn ["sum"] => int(700)rn rn [2] => array(0) rn rn [3] => array(0) rn rn [4] => array(0) rn rn [5] => array(0) rn rn [6] => array(0) rn rn [7] => array(0) rn rn[/code]rn这个是数据rn比如数组第二层中第二个元素,里面有4个数组元素,3个数字键值的1个字母的,其中第二个和第三个里面的danName都是乙烷rn怎么样把这两个danName相同的合并起来?然后其他不变,num这个字段是被合并这2个元素中num的和,date用最近那个rnrn我把json数据发出来,求<em>大佬</em>帮个忙rn[code=php]string(1278) "["0":"danName":"\u7532\u70f7","standard":"CH4","danCate":"\u6613\u71c3\u6027\u6c14\u4f53","price":"10.00","unit":"\u7acb\u65b9\u7c73","stock":5,"id":41,"date":"2018-01-12 11:16:23","operator":"admin","remark":"\u7532\u70f7\u9886\u7528\u6d4b\u8bd5","borrower":"aut77","num":5,"title":"\u5b89\u73af\u90e8","deptId":3,"sum":50,"0":"danName":"\u786b\u78fa","standard":"GB\/T2449-2006","danCate":"\u6613\u71c3\u6027\u56fa\u4f53233","price":"120.00","unit":"kg","stock":69,"id":1,"date":"2018-01-15 14:37:29","operator":"","remark":"\u786b\u78fa\u9886\u7528\u6d4b\u8bd5233","borrower":"admin","num":4,"title":"\u884c\u653f\u90e8","deptId":2,"1":"danName":"\u4e59\u70f7","standard":"YW1","danCate":"\u6613\u71c3\u6027\u6c14\u4f53","price":"10.00","unit":"KG","stock":85,"id":1,"date":"2018-01-12 15:08:04","operator":"admin","remark":"\u4e59\u70f7\u9886\u7528\u6d4b\u8bd5123","borrower":"admin","num":20,"title":"\u884c\u653f\u90e8","deptId":2,"2":"danName":"\u4e59\u70f7","standard":"YW1","danCate":"\u6613\u71c3\u6027\u6c14\u4f53","price":"10.00","unit":"KG","stock":85,"id":1,"date":"2018-01-12 15:08:11","operator":"admin","remark":"\u4e59\u70f7\u9886\u7528\u6d4b\u8bd5456","borrower":"admin","num":2,"title":"\u884c\u653f\u90e8","deptId":2,"sum":700,[],[],[],[],[],[]]"[/code]
大佬RN使用react-native-video播放视频报错
点击按钮播放视频,视频来源链接,后存到内存中,大部分情况视频能正常,有时候视频播放界面卡顿几秒再播放,也有时候视频播放界面空白。![0_1522194274706_mmexport1522193764451.jpg](/uploads/files/1522194273852-mmexport1522193764451.jpg)
一个递推问题,各位大佬来看看
rnrn职位名称 职位ID 职位上级ID 组织IDrn 副经理 a b aarn 经理 b c aarn 副总裁 c d bbrn 总裁 d ccrnrn有2个输入参数 一个职位名称 一个组织IDrnrn当我输入 副经理 和 aa的时候rnrn预期的输出结果为rnrn副总裁 bbrnrn意思就是通过职位上级ID向上查找父级节点 取第一条组织发生变化的那条记录rnrn各位<em>大佬</em>麻烦看看。。。
JAVA并发编程中Volatile的问题,来高手来大佬
今天研究volatile的时候,发现了一个奇怪的现象,就是按照我这种写法,volatile会不好用,想求大神<em>解释一下</em>到底是为什么?不胜![图片说明](https://img-ask.csdn.net/upload/201807/23/1532328467_399005.png)感激
学习中遇到以下问题,各位大佬麻烦解释一下,谢谢
```rnpublic static void main(String[] strings)rn float a = 2.0f;rn int b = 0;rn System.out.println(a/b);//Infinityrnrn double c = 2;rn double d = 1.1f;rn System.out.println(c - d);//0.8999999761581421rnrn float e = 2;rn float f = 1.1f;rn System.out.println(e - f);//0.9rnrn float h = 2;rn double i = 1.1f;rn System.out.println(h - i);//0.8999999761581421rnrn double j = 2;rn float k = 1.1f;rn System.out.println(j - k);//0.8999999761581421rnrn BigDecimal b1 = new BigDecimal(j);rn BigDecimal b2 = new BigDecimal(k);rn System.out.println(b1);//2rn System.out.println(b2);//1.10000002384185791015625rn rn```rn为什么使用double会损失精度?
C#中的递增的问题,请各位大佬详细解释一下
C#中的递增的问题,因小弟初学C#,这个问题总是困扰我多时,请各位<em>大佬</em>详细<em>解释一下</em>,具体代码如下:rnrn前面的一些代码省略了,只写了这样一段应用程序的代码:rnrnint i=1;rndorn rn Console.WriteLine("0",i++;rn Console.WriteLine(i);rn while(i<=10);rnrnrn请各位<em>大佬</em>给出结果,再详细<em>解释一下</em>,小弟在此感激不尽!
哪位大佬帮忙解释一下怎么看这段程序,看不懂啊!
#define bwMCDR2_ADDRESS 4rn#define bsMCDR2_ADDRESS 17rn#define bmMCDR2_ADDRESS BIT_MASK(MCDR2_ADDRESS)rn#define BIT_MASK(__bf) (((1U << (bw ## __bf)) - 1) << (bs ## __bf))rn#define SET_BITS(__dst, __bf, __val) \rn((__dst) = ((__dst) & ~(BIT_MASK(__bf))) | \rn(((__val) << (bs ## __bf)) & (BIT_MASK(__bf))))rnrnSET_BITS(MCDR2, MCDR2_ADDRESS, RegisterNumber);rnrn
springmvc出现了服务器启动报错。有大佬能帮忙解释一下
```rnD:\elpel\eclipse\apache-tomcat-7.0.93\bin\catalina.bat runrn[2019-05-12 08:18:18,569] Artifact untitled4:war exploded: Waiting for server connection to start artifact deployment...rnUsing CATALINA_BASE: "C:\Users\50427\.IntelliJIdea2019.1\system\tomcat\Tomcat_7_0_933_untitled4"rnUsing CATALINA_HOME: "D:\elpel\eclipse\apache-tomcat-7.0.93"rnUsing CATALINA_TMPDIR: "D:\elpel\eclipse\apache-tomcat-7.0.93\temp"rnUsing JRE_HOME: "C:\Program Files\Java\jdk1.8.0_191"rnUsing CLASSPATH: "D:\elpel\eclipse\apache-tomcat-7.0.93\bin\bootstrap.jar;D:\elpel\eclipse\apache-tomcat-7.0.93\bin\tomcat-juli.jar"rn浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener logrn淇℃伅: Server version: Apache Tomcat/7.0.93rn浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener logrn淇℃伅: Server built: Feb 16 2019 17:13:17 UTCrn浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener logrn淇℃伅: Server number: 7.0.93.0rn浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener logrn淇℃伅: OS Name: Windows 10rn浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener logrn淇℃伅: OS Version: 10.0rn浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener logrn淇℃伅: Architecture: amd64rn浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener logrn淇℃伅: Java Home: C:\Program Files\Java\jdk1.8.0_191\jrern浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener logrn淇℃伅: JVM Version: 1.8.0_191-b12rn浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener logrn淇℃伅: JVM Vendor: Oracle Corporationrn浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener logrn淇℃伅: CATALINA_BASE: C:\Users\50427\.IntelliJIdea2019.1\system\tomcat\Tomcat_7_0_933_untitled4rn浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener logrn淇℃伅: CATALINA_HOME: D:\elpel\eclipse\apache-tomcat-7.0.93rn浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener logrn淇℃伅: Command line argument: -Djava.util.logging.config.file=C:\Users\50427\.IntelliJIdea2019.1\system\tomcat\Tomcat_7_0_933_untitled4\conf\logging.propertiesrn浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener logrn淇℃伅: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManagerrn浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener logrn淇℃伅: Command line argument: -Dcom.sun.management.jmxremote=rn浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener logrn淇℃伅: Command line argument: -Dcom.sun.management.jmxremote.port=1099rn浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener logrn淇℃伅: Command line argument: -Dcom.sun.management.jmxremote.ssl=falsern浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener logrn淇℃伅: Command line argument: -Dcom.sun.management.jmxremote.password.file=C:\Users\50427\.IntelliJIdea2019.1\system\tomcat\Tomcat_7_0_933_untitled4\jmxremote.passwordrn浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener logrn淇℃伅: Command line argument: -Dcom.sun.management.jmxremote.access.file=C:\Users\50427\.IntelliJIdea2019.1\system\tomcat\Tomcat_7_0_933_untitled4\jmxremote.accessrn浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener logrn淇℃伅: Command line argument: -Djava.rmi.server.hostname=127.0.0.1rn浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener logrn淇℃伅: Command line argument: -Djdk.tls.ephemeralDHKeySize=2048rn浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener logrn淇℃伅: Command line argument: -Dignore.endorsed.dirs=rn浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener logrn淇℃伅: Command line argument: -Dcatalina.base=C:\Users\50427\.IntelliJIdea2019.1\system\tomcat\Tomcat_7_0_933_untitled4rn浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener logrn淇℃伅: Command line argument: -Dcatalina.home=D:\elpel\eclipse\apache-tomcat-7.0.93rn浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener logrn淇℃伅: Command line argument: -Djava.io.tmpdir=D:\elpel\eclipse\apache-tomcat-7.0.93\temprn浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.core.AprLifecycleListener lifecycleEventrn淇℃伅: Loaded APR based Apache Tomcat Native library 1.2.21 using APR version 1.6.5.rn浜旀湀 12, 2019 8:18:20 涓嬪崍 org.apache.catalina.core.AprLifecycleListener lifecycleEventrn淇℃伅: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].rn浜旀湀 12, 2019 8:18:20 涓嬪崍 org.apache.catalina.core.AprLifecycleListener initializeSSLrn淇℃伅: OpenSSL successfully initialized (OpenSSL 1.1.1a 20 Nov 2018)rn浜旀湀 12, 2019 8:18:20 涓嬪崍 org.apache.coyote.AbstractProtocol initrn淇℃伅: Initializing ProtocolHandler ["http-apr-8080"]rn浜旀湀 12, 2019 8:18:20 涓嬪崍 org.apache.coyote.AbstractProtocol initrn淇℃伅: Initializing ProtocolHandler ["ajp-apr-8009"]rn浜旀湀 12, 2019 8:18:20 涓嬪崍 org.apache.catalina.startup.Catalina loadrn淇℃伅: Initialization processed in 1023 msrn浜旀湀 12, 2019 8:18:20 涓嬪崍 org.apache.catalina.core.StandardService startInternalrn淇℃伅: Starting service Catalinarn浜旀湀 12, 2019 8:18:20 涓嬪崍 org.apache.catalina.core.StandardEngine startInternalrn淇℃伅: Starting Servlet Engine: Apache Tomcat/7.0.93rn浜旀湀 12, 2019 8:18:20 涓嬪崍 org.apache.coyote.AbstractProtocol startrn淇℃伅: Starting ProtocolHandler ["http-apr-8080"]rn浜旀湀 12, 2019 8:18:20 涓嬪崍 org.apache.coyote.AbstractProtocol startrn淇℃伅: Starting ProtocolHandler ["ajp-apr-8009"]rn浜旀湀 12, 2019 8:18:20 涓嬪崍 org.apache.catalina.startup.Catalina startrn淇℃伅: Server startup in 106 msrnConnected to serverrnrn[2019-05-12 08:18:20,751] Artifact untitled4:war exploded: Artifact is being deployed, please wait...rnrn浜旀湀 12, 2019 8:18:21 涓嬪崍 org.apache.catalina.deploy.WebXml setVersionrn璀﹀憡: Unknown version string [4.0]. Default version will be used.rn浜旀湀 12, 2019 8:18:22 涓嬪崍 org.apache.catalina.startup.TldConfig executern淇℃伅: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.rn2019-05-12 20:18:22,657 INFO [org.springframework.web.servlet.DispatcherServlet] - FrameworkServlet 'DispatcherServlet': initialization startedrn2019-05-12 20:18:22,691 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - Refreshing WebApplicationContext for namespace 'DispatcherServlet-servlet': startup date rn[Sun May 12 20:18:22 CST 2019]; root of context hierarchyrn2019-05-12 20:18:22,734 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from ServletContext resource [/WEB-INF/DispatcherServlet-servlet.xml]rnrn2019-05-12 20:18:23,016 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] rnrn- Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@643a7005: defining beans rn[org.springframework.web.servlet.handler.BeanNameUrlHandlerMappingrn#0,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapterrn#0,/user.do,org.springframework.web.servlet.view.InternalResourceViewResolver#0]; rnroot of factory hierarchyrnrn2019-05-12 20:18:23,029 INFO [org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping] - Mapped URL path [/user.do] onto handler '/user.do'rnrn2019-05-12 20:18:23,123 INFO [org.springframework.web.servlet.DispatcherServlet] - FrameworkServlet 'DispatcherServlet': initialization completed in 462 msrnrn[2019-05-12 08:18:23,146] Artifact untitled4:war exploded: Artifact is deployed successfullyrnrn[2019-05-12 08:18:23,147] Artifact untitled4:war exploded: Deploy took 2,395 millisecondsrnrn浜旀湀 12, 2019 8:18:30 涓嬪崍 org.apache.catalina.startup.HostConfig deployDirectoryrn淇℃伅: Deploying web application directory D:\elpel\eclipse\apache-tomcat-7.0.93\webapps\managerrn浜旀湀 12, 2019 8:18:30 涓嬪崍 org.apache.catalina.startup.HostConfig deployDirectoryrn淇℃伅: Deployment of web application directory D:\elpel\eclipse\apache-tomcat-7.0.93\webapps\manager has finished in 74 msrnrn```
求求大佬解释一下为什么最后一个数据不能正常排序
#define N 10#include &amp;lt;stdlib.h&amp;gt;#include &amp;lt;stdio.h&amp;gt;#include &amp;lt;time.h&amp;gt;void main(){  int i,j,m,a[9];     time_t t; srand(time(&amp;amp;t)); for(i=0;i&amp;lt;N;i++)         a[i]=rand()%100;     ...
固态硬盘读写速度慢。有大佬帮忙解释一下吗?
二年前买的固态硬盘,买来的时候开机速度确实提升了不少。rn但是近期测试的时候才发现读写速度特别的慢。不知道是固态硬盘本身的问题还是我主板或者线的问题。rn求解答。rn测速图片:[img=https://img-bbs.csdn.net/upload/201904/09/1554780243_350824.png][/img]
有个小问题懂的来解释一下,多谢.
java源代码编译成的.class字节码文件通过jd-gui等工具反编译成java的源代码的过程叫反编译。rnrn问题是 .class字节码文件中的内容都是一大堆看不懂的字节,jdk里有个工具叫javap 可以把字节码文件用一种可以阅读的方式转换出类似这种代码: rn 0 bipush 10rn 2 newarray 8 (byte)rn 4 astore_1rn 5 getstatic #16 rn 8 aload_1rn 9 iconst_0rn 10 baloadrn 11 invokevirtual #22 rn 14 aconst_nullrn 15 astore_2rn 16 aconst_nullrn 17 astore_3rn这个过程叫什么呢?我看网上有说反汇编什么的,这个工具搞出来的东西是汇编代码什么的吗?强迫症求大神帮忙解释。
请大家来帮我解释一下这句话
objWordDoc.Application.ActiveDocument.SaveAs "d:\tem\.doc", 0,False,"",True,"",False,False,False, False,Falsernrn可是当我打开这个文档的时候.运行这个代码.他就会提示.rn错误:word无法保存此文件.因为它已在别处打开.rnrn我在想能不能用什么代码来判断一下.(可我不知道怎么写).要是当前正打开.那就另存为其它的的如:rnobjWordDoc.Application.ActiveDocument.SaveAs "d:\tem\.doc", 0,False,"",True,"",False,False,False, False,Falsernrn那位大哥来帮帮我.
哪位来帮忙解释一下这段代码
哪位来帮忙<em>解释一下</em>这段代码rnrnrn xmlDoc = new ActiveXObject("Msxml2.DOMDocument.4.0");rn pi = xmlDoc.createProcessingInstruction("xml", "version='1.0' encoding='gb2312'")rn xmlDoc.insertBefore(pi, xmlDoc.firstChild);rn schemaObj = new XMLSchema("tuserinsert.xsd",xmlDoc);rn cDoc = schemaObj.createDOMDocument("tuser",0); rn xmlDoc.appendChild(cDoc);
shell排序问题??大家来解释一下。谢了。
rn#includernvoid shell(int e[],int n)rnrn int j,k,h,y;rn for(h=n/2; h>0; h=h/2)rn rn for(j=h; j=0&&y
高手来解释一下,数据库的几个概念。
批处理rn游标rn索引rn希望能以通俗点的语言,说明他们的特点和联系。rn谢谢
高手来解释一下这个奇怪的现像!~
unit KuCunLiuLanUnit;rnrninterfacernrnusesrn Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,rn Dialogs, Grids, DBGrids,DataUnit;rnrntypern TKuCunLiuLanForm = class(TForm)rn DBGrid1: TDBGrid;rn procedure FormCreate(Sender: TObject);rn privatern Private declarations rn publicrn Public declarations rn end;rnrnvarrn KuCunLiuLanForm: TKuCunLiuLanForm;rnrnimplementationrnrn$R *.dfmrnrnprocedure TKuCunLiuLanForm.FormCreate(Sender: TObject);rnbeginrnrn DBCard.DataSource1.DataSet:=DBCard.ADOTableLLA;rnrnend;rnrnend.rnrn当我对DataSource1的DataSet在Object Inspector里设置时,运行程序一点问题也没有。rn可我用代码设置其属性时,程序运行就会报错。如下:rnrnProject GDJProject.exe raised exception class EAccessViolation with message 'Access violation at address 004FA3E3 in module 'GDJProject.exe',Read of address 00000064'.Process stopped.Use Step or Run to continue.rnrn另外,当程序关闭时,有时也会出现错误:rnException EAccessViolation in module GDJProject.exe at 00062AFE.rnAccess violation at address 00462AFE in module 'GDJProject.exe'.Read of address 00A544B4.rnrn这是为什么?
关于验证控件的问题,高手来解释一下
我是一个计算页面上用了RegularExpressionValidator和RequiredFieldValidatorrn一个是验证文本框不为空,一个是验证输入的是正整数(正则^\d+$)rn在本地测试可以运行rn上传到服务器上,发现验证无效rn把aspnet_client文件夹传上去了,验证控件可以了,但按钮失灵了,没反映!rnrn我把这个文件,移动到其他项目里,把namespace 修改之后,同样传到这个服务器上rn只是这2个项目,在不同的目录里(这2个目录里都有aspnet_client,而且这2个目录是并列关系)rn这回验证控件,按钮都可以用了!rnrnaspnet_regiis.exe -i -c都用过了,可在原来的项目里,就是不行!!!rnrn这是什么问题啊,怎么解决一下???
大侠来解释一下struts2文件上传问题!!!!
昨天在做一个struts2文件上传,页面定义了如下:rn rn rn rn 标题: rn rn rn rn rn rn 发送日期: rn rn rn rn rn rn 论文上传: rn rn rn rn rn rn 备注:rn rn rn rn rn rn rn rn rn rn rn rn rnrnrn提交后报错说没有uploadFile的get set方法,整了一晚上都不知道咋回事,最后加了个method="post"就好了,哪位大侠能<em>解释一下</em>struts2文件上传为什么用post方法?
大家来帮忙解释一下这个题目
int a[]=1,2,3,4,5,6,7,8,9;rnshort *p=(short*)(a+2);rnshort *q=(short*)a;rnrn p-q=???rnrn顺便详细说明下解题过程,谢谢!rn
郁闷中,高手来解释一下这个错误
SQLSTATE = S1000rn[Microsoft][ODBC SQL Server Driver]connection is busy with results for another hstmtrnrn相关源码:rndeclare area cursor for select distinct name from name order by name;rnopen area;rnfetch area into :toto;rnif sqlca.sqlcode,0,:toto);rnfetch area into :toto;rnlooprnclose area;
哪位大侠帮我解释一下结果是怎么来的
测试程序1:rnimport java.io.UnsupportedEncodingException;rn//汉字汉字rnpublic class UTF8 rn public static void main(String args[]) rn String a = "中文";rn byte[] b ;rn try rn b = a.getBytes();rn for (int i = 0; i < b.length; i++) rn System.out.println(getHexString(b[i]));rn rn System.out.println("**********************************0END\n");rn b = a.getBytes("gbk");rn for (int i = 0; i < b.length; i++) rn System.out.println(getHexString(b[i]));rn rn System.out.println("**********************************1END\n");rn b = a.getBytes("unicode");rn for (int i = 0; i < b.length; i++) rn System.out.println(getHexString(b[i]));rn rn System.out.println("**********************************2END\n");rn b = a.getBytes("utf-8");rn for (int i = 0; i < b.length; i++) rn System.out.println(getHexString(b[i]));rn rn System.out.println("**********************************3END\n");rn catch (UnsupportedEncodingException e) rn e.printStackTrace();rn rn rn /**rn * 返回16进制rn * @param brn * @returnrn */rn public static String getHexString(byte b) rn byte x = 0x0f;rn String res = "";rn byte h = (byte) (x & b>>4);rn byte l = (byte) (x & b);rn switch (h) rn case 10: res+="A";rn break;rn case 11: res+="B";rn break;rn case 12: res+="C";rn break;rn case 13: res+="D";rn break;rn case 14: res+="E";rn break;rn case 15: res+="F";rn break;rn default: res+=h;rn break;rn rn switch (l) rn case 10: res+="A";rn break;rn case 11: res+="B";rn break;rn case 12: res+="C";rn break;rn case 13: res+="D";rn break;rn case 14: res+="E";rn break;rn case 15: res+="F";rn break;rn default: res+=l;rn break;rn rn return res;rn rn rnrnrnrn测试结果rn保存为utf-8rnWindow(GBK,utf-8结果一样)rn(1) D6 D0CE C4rn(2) D6 D0CE C4rn(3) FF FE2D 4E87 65rn(4) E4 B8AD E696 87rnrnLinux(latin1)(*.java文件传输上去,然后在Linux下编译)rn(1) E4 B8AD E696 87rn(2) (无信息)rn(3) FF FEE4 00B8 00rn(4) C3 A4C2 B8C2 ADC3 A6C2 96C2 87rnrnLinux(latin1)(*.class文件传输上去)rn(1) 3F 3Frn(2) D6 D0rn(3) FF FErn(4) E4 B8AD E6rnrn保存为gbkrnLinux(latin1)(*.java文件传输上去,然后在Linux下编译)rn(1) D6 D0CE C4rn(2) rn(3) FF FED6 00rn(4) C3 96C3 90C3 8EC3 84rnrnLinux(latin1)(*.class文件传输上去)rn3F 3FrnD6 D0rnFF FErnE4 B8AD E6rnrn能不能<em>解释一下</em>为什么打印出这样的不同结果rn’中文’GB2312编码是"d6d0 cec4",Unicode编码为"4e2d 6587",UTF编码就是"e4b8ad e69687"rn
一个很菜的问题,达人来解释一下
我在java中写了这么一条语句 String s=new String("Hello");这条语句占用多少内存空间呢?除了String对象占用10个字节,引用s占用多少个自节啊?其实,我的问题就是对象的引用本身占内存吗?
JAVA基础问题,请高手来解释一下
对象的方法名是任意的吗?rn还有,一般常用的方法名都是些什么啊?
请高手来解释一下这种现象!
首先我要申明一下,大家一定要看清楚我的意思,如果不敢肯定的话最好先试一下在回答。我最讨厌问题没看完就下结论者!写得多只是为了更清楚表达我的意思,没看完者请勿回贴!rn  问题是这样引出的(以前我发过好几个这样的贴子):假设在按钮1的点击消息响应函数中使按钮1失效,那么在失效前一定要将焦点从按钮1(按钮1被点击,当然获得焦点)上移走,否则失效后的按钮样子很难看(和默认按钮的样子一样,但它不是默认按钮,最糟糕的是,如果再点击另一个按钮,这个被点击的按钮只能得到虚线框,边框没有加厚,说这么多还是建议你试试,VB在这方面就好多了,不用考虑这个问题),下面我说说我发现的这种奇怪现象,还请知情者<em>解释一下</em>:rnrn  新建一个对话框程序,“确定”和“取消”按钮不要动,默认(“确定”按钮)按钮也不要去改变,现在如下操作:新建4个按钮(button1 button2 button3 button4),然后重新确定按钮的TAB顺序,使他们的顺序为:button1 button2 button3 button4 IDOK IDCANCELrn给button1和button3添加点击响应函数,并在函数中写入如下程序:rnvoid CLoginDemoDlg::OnButton1() rnrn GetDlgItem(IDC_BUTTON1)->EnableWindow(FALSE);rn NextDlgCtrl();rnrnrnvoid CLoginDemoDlg::OnButton3() rnrn NextDlgCtrl();rn GetDlgItem(IDC_BUTTON3)->EnableWindow(FALSE); rnrnrn  上面的程序效果就是在button1失效的时候将焦点设置在button2上(注意前面说过的TAB顺序),在button3失效的时候将焦点设置在button4上,这是我要的效果,而且工作正常!(大家不要认为我是无聊,我的一个程序就是这样做的:一个向上翻页按钮,一个向下翻页按钮,向上翻到第一页的时候,向上翻页变灰,焦点移到向下翻页上,这是从易用的角度考虑的)rnrn  不过大家注意到了吗?第一个函数内是先使窗口无效,再NextDlgCtrl(),而后一函数是先NextDlgCtrl()再使窗口无效,经过我无数次的测试,他们的次序必需是这样,有人能给我一个解释吗?button1和button3的唯一一个区别只是TAB顺序不同!!!rn  注:如果使用GotoDlgCtrl函数,则先使按钮无效或先移动焦点效果是一样的,但该函数使用麻烦,需要得到将要获得焦点的窗口指针。rnrn  我相信有人要告诉我用SetFocus,用SetFocus设置焦点只是画个虚线框,它与用NextDlgCtrl、PrevDlgCtrl、GotoDlgCtrl设置的焦点有区别,如果以前没用过请自己实验一下。
请高手来解释一下存储过程,触发器……
本人刚刚学习sql,请高手来<em>解释一下</em>存储过程,触发器,函数都是在什么情况下使用,使用时要注意什么?在线等,有了新问题将继续提出。
哪位来解释一下window和Gc的关系?
哪位来<em>解释一下</em>window和Gc的关系rnrnView中的构造函数中rn CreateWindowL();rn SetRect( aRect );rn ActivateL();rn起怎么个作用?和Gc有关系吗?rnrn如果说可进行n次createwindowL() , 那么在Draw中的rn CWindowGc& gc = SystemGc();rn gc.Clear();rn这时候的Gc和CreateWindow有什么关系?rn
指针和数组问题,大家来解释一下
代码如下:rnvoid func(int *a, int b[])rnrn b[0] =*a+6;rnrnvoid main()rnrn int a, b[5];rn a=0; b[0]=0;rn func(&a,b);rn printf("%d\n",b[0]);rnrn为什么打出来的结果不是0,是6呢,b作为数组来说不是没有传引用过去吗?为什么调了个函数里面的值就会变了呢?
哪位高手来解释一下这个程序
[b] [color=#FF0000]public string GetAllTime(int time) rn rn string hh, mm, ss, fff;rn rn int f = time%100; // 毫秒 rn int s = time/100; // 转化为秒rn int m = s/60; // 分rn int h = m/60; // 时rn s = s%60; // 秒 rn [/color] //毫秒格式00[/b] if(f + fff;rn rnrn private void timer1_Tick(object sender, EventArgs e)rn rn rn t = t + 1; //得到总的毫秒数 rn this.label7.Text = GetAllTime(t);rn rnrn rn rn这个程序是关于秒时钟的,我看不是很懂,哪位高手可以来解读一下,比如:rnpublic string GetAllTime(int time) 是什么意思,有什么作用?rn还有: int f = time%100;是什么意思啊,
三层结构开发的疑惑,请达人来解释一下
一,WEB软件设计阶段,先设计MODEL业务实体层,还是先设计数据库表?为什么?rnrn二、MODEL层与数据库究竟是个什么关系?为什么XML映射一下,就叫持久层?
是高手来看看,给解释一下
在程序中创建一个CMapXFeature对象,如下:rn CMapXFeature ClientFtr;rn ClientFtr.SetType( miFeatureTypeSymbol );rn ClientFtr.SetStyle( m_ctrlMapX.GetDefaultStyle() ); rn ClientFtr.GetPoint().Set( 50.0, 50.0 ); // 假设坐标rn编译的时候能通过,可是运行的时候会出现问题.rnrn我看了online help,说是Feature的point属性为read-only,请问出错是不是跟这个有关系?rnrn但是,我也在online help中Feature.Attach method中找到了一段程序,如下:rn CMapXFeature f;rn f.GetPoint().Set(X1,Y1); // X1,Y1为输入变量rn我的问题是:rn 1。这两种方法(第一种是把坐标作为常量输入,第二种是把坐标作为变量输入)有什么区别?rn 2。在创建Feature对象的时候不能设置其坐标?(好像说不过去)rn 3。如果我想设置Feature对象的坐标,我该怎么做呢?rnrn 我用的工具是vc6。0
这个是什么问题!高手来解释一下.
我有一个dhtmlsafe,一个dhtmleditrnprocedure TMain.ToolButton3Click(Sender: TObject);rnbeginrnDHTMLSafe1.DocumentHTML:= DHTMLedit1.DocumentHTML;rnshowmessage (DHTMLSafe1.DocumentHTML);rnend;rn报错.灾难性故障,而分开写rnprocedure TMain.ToolButton4Click(Sender: TObject);rnbeginrnDHTMLSafe1.DocumentHTML:= DHTMLedit1.DocumentHTML;rnend;rnrnprocedure TMain.ToolButton5Click(Sender: TObject);rnbeginrnshowmessage (DHTMLSafe1.DocumentHTML);rnend;rn这样就不报错.为什么呢.怎么解决.高分送了.快来帮我.rnrnrnrnrnrnrnrnrn
一个有意思的东西,高手来解释一下!!!
首先我定义了一个结构体 struct pointrn rn int x;rn int y;rn rn然后我在一个按钮的单击事件里给写如下代码:rnpoint *ptrPt;rnptrPt->x=3;rnptrPt->y=5;rnlabel1.caption=ptrPt->3;rn程序运行没问题,但是当我一旦关闭窗口,就会发生错误rn如果我使用分配堆内存的方法,关闭窗口则不会报错rn请高手分析下原因!
解释一下!
rnx的值是多少?<em>解释一下</em>原因:rnx=(i=4, j=6, k=8);
解释一下
[code=c]#ifdef DARWINrn# include rn# include rn#endifrn#ifdef LINUXrn# include rn# include rn# include rn# include rn# include rn# include rn# include rn# include rn# include rn# include rn# include rn# include rn# include rn# include rn# include rn#endifrn#ifdef WIN32rn# define NOMINMAXrn# include rn# include rn# include rn#endif[/code]rn这个叫什么?
解释一下
出现在页面顶部的这句是什么意思rn
解释一下this?
1 this很有用,但是理解不深,烦<em>解释一下</em>rn2 还有*this和this有什么区别rnrn比如说:operatior =的运算符重载rnbyte& operate=(const byte& right)rnrn if(this==&right)rn return *this;rn b=right.b;rn return *this;rnrn这其中的this和*this有什么区别?rn谢rn
求教大佬
//SepList.hrn#include"stdio.h"rn#include"math.h"rn#define MaxSize 100rnrntypedef struct rnrn DataType list[MaxSize];rn int size;rnSeqList;rn//初始化rnvoid ListInitiate(SeqList* L)rnrn L->size = 0;rnrn//求当前数据元素个数rnint ListLength(SeqList L)rnrn return L.size;rnrn//插入数据元素rnint ListInsert(SeqList* L, int i, DataType x)rnrn int j;rn if (L->size >= MaxSize)rn rn printf("顺序表已满,无法插入!\n");rn return 0;rn rn else if (iL->size)rn rn printf("参数不合法!\n");rn return 0;rn rn elsern rn for (j = L->size; j > i; j--)rn L->list[j - 1] = L->list[j];rn L->list[i] = x;rn L->size++;rn return 1;rn rnrnrn//取数据元素rnint ListGet(SeqList L, int i, DataType * x)rnrn if (iL.size - 1)rn rn printf("参数不合法!\n");rn return 0;rn rn elsern rn *x = L.list[i];rn return 1;rn rnrnrnrn#include rn#include rnrnrntypedef struct Stringrnrn int Chinese;rn int English;rn int Space;rn int Number;rn int Sum;rnStringType;rnrntypedef StringType DataType;rn#include "SeqList.h"rnint main() rnrn char a[] = '\0' ;rn int num_YW = 0;rn int num_ZW = 0;rn int num_KG = 0;rn int num_SZ = 0;rn int sum = 0;rn int n=0;rn printf("请输入字符串:\n");rn while (getchar() != '\n')rn rn n++;rn rn printf("输入的字符串个数为:%d\n", n);rn for (int m = 0; m < n; m++) rn if ((a[m] >= 'a' && a[m] = 'A' && a[m] = '0' && a[m] , s.Chinese, s.English, s.Space, s.Number, s.Sum);rn rn return 0;rnrnrnrn我想输出几种字符的个数,但是总显示参数不合法 无法输出rn<em>大佬</em>们给帮帮忙看看哪出错了!
大佬知道吗?
以前写web都是直接写一个jsp 然后放在tomcat服务器上面,最近一个项目里面规定说服务器端要用node,js那是不是意思不要用tomcat服务器了?
求助大佬
我编写以下代码:rn#define N 8rnint main()rnrn char a[N] = "abcdefg";rn char b[N] = a; //不知道这样是否可以,但数组名本质就是首地址,所以就试了试,并没有报错,但结果。。。。rn printf("%s",b);rnrn结果屏幕显示一个垂直制表符,这是怎么回事???rn求助<em>大佬</em>rnrnrn
会议 大佬
微软小冰首席科学家武威解读 EMNLP 论文:聊天机器人的深度学习模型 http://dy.163.com/v2/article/detail/E51C8IDP05118HA4.html 多模态、个性化交互成趋势 基于检索的方法的优点包括能找出很有趣、多样性很高的回复;大量借鉴了搜索引擎上的方法,可以直接采用搜索引擎上的方法(learning to rank)来进行评估。其缺点在于对话的质量完全取...
大佬帮帮忙!!!
[img=https://img-bbs.csdn.net/upload/201703/16/1489655413_697471.png][/img]rn帮忙分析下
求解大佬
这个为什么运行不出来呢[img=https://img-bbs.csdn.net/upload/201905/06/1557147014_358532.jpg][/img][img=https://img-bbs.csdn.net/upload/201905/06/1557147014_519364.jpg][/img]
大佬
子类对象能直接向其父类赋值,父类对象不能向其子类赋值。如何理解这句话呀[face]monkey:2.gif[/face]
求助大佬
infile.open("input",ios::in|ios::nocreate);rn这个要怎么办才好?rn[Error] 'nocreate' is not a member of 'std::ios aka std::basic_ios'
解释一下
各位,本鸟读懂该段实有难度,恳请诸位高手帮忙解释下!附上演示实例。谢谢!rnrnrnselect @equipment_id = [color=#FF0000]rtrim(Convert(char(3),Convert(int,substring(max(equipment_id),4,3))+1))[/color] from tb_er_equipmentrnselect @equipment_id =[color=#FF0000] 'VIS'+REPLICATE('0', 3 - datalength(rtrim(@equipment_id)))+rtrim(@equipment_id)[/color]rnrnrnrn
【求助】大佬大佬帮我看看鸭,感谢!!!!!!
【求助】我想要完成两个任务 将两个txt文件内容拼接到一起,存入第三个txt文件 读取txt文件中特定的列 我将整合的任务写在函数ad里,但是我发现它只能用一次 我重复调用ad时它并不会进行两次拼接 然后就是 我觉得我第二个读取特定的列的函数也没错,但调用时没反应。。。。。 代码 #include&amp;lt;fstream&amp;gt; #include&amp;lt;sstream&amp;gt; #includ...
大佬语录
1、学习上要抓住一个点尽可能学透彻,有了这个把手,才有安全感,才能撕扯成知识面。 2、还是要多写,技术学习没有真正的应用场景,那你学的还是很肤浅的。 ...
求助大佬!
vs2017用scanf_s时候不能执行n求助[img=https://img-bbs.csdn.net/upload/201903/26/1553573075_272229.jpg][/img]
Java_ Evolutionary Dead End下载
This sounds bad, but it needs to happen if Java is to ultimately stay in the mainstream. That is, if feature accretion hasn't already irreparably damaged the language. 相关下载链接:[url=//download.csdn.net/download/loong9/3753871?utm_source=bbsseo]//download.csdn.net/download/loong9/3753871?utm_source=bbsseo[/url]
简易拼图啊下载
很简单的拼图游戏 其中运用的截图是非常简单的方法 根本不要那么复杂的代码 相关下载链接:[url=//download.csdn.net/download/woshileer02/4013541?utm_source=bbsseo]//download.csdn.net/download/woshileer02/4013541?utm_source=bbsseo[/url]
winrar破解文件(32 64位同用)下载
winrar破解文件,解压就好,内附说明。 相关下载链接:[url=//download.csdn.net/download/lingyuguhong/4701959?utm_source=bbsseo]//download.csdn.net/download/lingyuguhong/4701959?utm_source=bbsseo[/url]
我们是很有底线的