求问为什么TensorFlow一直运行,没有结果 [问题点数:20分]

Bbs1
本版专家分:0
结帖率 25%
运行为什么没有结果????????????
for i:=2 to 100 dorn beginrn if data.cells[i,1].value=null thenrn beginrn data.cells[i,1].value:=edit6.Text;rn data.cells[i,2].value:=timetostr(time);rn break;rn end;rn end;rn //往excel表格中写内容,编译通过,<em>为什么</em>表格仍然为空?
为什么运行没有结果?急
用forms bulider 作了一个程序,<em>运行</em>表单调试,可是在ie下<em>没有</em>任何反应,只是提示applet已经初始化,可是<em>没有</em>报错,我在when new form instance设了断点,可是根本就没<em>运行</em>到断点,大家帮帮忙!
Verilog HDL ,求问为什么仿真一直没有波形?
下面是代码: //分频模块 module fenpin(rst, clk, clkk); input rst; input clk; output clkk; reg clkk; always @(posedge clk) if(!rst) begin clkk&lt;=0; end else begin clkk&lt;=~clkk; end endmodule //选择模块 module m...
为什么sqlserver运行没有结果,delphi运行就有结果
SELECT MineID,StafferID,JHBanID,BanTypeID,PlanDate,PlanStartTime,PlanEndTime,rn PlanChangeReasonrnFROM(rnSELECT Mineid,StafferID,ISNULL(BGBanID,JHBanID) JHBanID,BanTypeID,rnISNULL(PlanDate1,PlanDate) PlanDate,rn ISNULL(PlanStartTime1,PlanStartTime) PlanStartTime ,rnISNULL(PlanEndTime1,PlanEndTime) PlanEndTime,PlanChangeReasonrnFROM DownPlan rn WHERE (CONVERT(VARCHAR(100),PlanDate,23)>=CONVERT(VARCHAR(100),@QSSJ,23) and CONVERT(VARCHAR(100),PlanDate,23)=CONVERT(VARCHA(100),@QSSJ,23) and rn CONVERT(VARCHAR(100),PlanDate1,23)=CONVERT(VARCHAR(100),@QSSJ,23) and rnCONVERT(VARCHAR(100),d.PlanDate,23)<=CONVERT(VARCHAR(100),@QSSJ,23)rnrnrn@QSSJ varchar(19)rnrn@QSSJ 的格式 2011-07-18rn测试过2011-07-18 00:00:00也不行
pycharm安装TensorFlow后,运行实例一直不出结果
pycharm安装TensorFlow后,<em>运行</em>实例<em>一直</em>不出<em>结果</em>,而终端却能<em>运行</em>[img=https://img-bbs.csdn.net/upload/201807/23/1532334279_141994.png][/img]
为什么运行没有结果?(在线等)
#include rnint main()rnrn int m=1,count=0;rn double n=1.01,num=0;rn while(num
itk的高斯模糊为什么运行没有结果
rn#include "itkImage.h"rn#include "itkImageFileReader.h"rn#include "itkImageFileWriter.h"rn#include "itkGaussianBlurImageFunction.h"rn#include "itkImageRegionIterator.h"rnrnint main( int argc, char * argv[] )rnrn if( argc < 5 ) rn std::cerr << "Usage: " << std::endl;rn std::cerr << argv[0] << " inputImageFile outputImageFile sigma maxKernelWidth" << std::endl;rn return EXIT_FAILURE;rn rnrn typedef itk::Image< float, 2 > ImageType;rn typedef itk::ImageFileReader< ImageType > ReaderType;rn typedef itk::ImageRegionIterator< ImageType > IteratorType;rn typedef itk::ImageRegionConstIterator< ImageType > ConstIteratorType;rnrn ReaderType::Pointer reader = ReaderType::New();rn reader->SetFileName("D:\\test\\reader\\1.jpg");rn reader->Update();rnrn const ImageType * inputImage = reader->GetOutput();rnrn ImageType::RegionType region = inputImage->GetBufferedRegion();rnrn ConstIteratorType it( inputImage, region );rnrn ImageType::Pointer output = ImageType::New();rnrn output->SetRegions( region );rn output->SetOrigin( inputImage->GetOrigin() );rn output->SetSpacing( inputImage->GetSpacing() );rn output->Allocate();rnrn IteratorType out( output, region );rnrn typedef itk::GaussianBlurImageFunction< ImageType > GFunctionType;rn GFunctionType::Pointer gaussianFunction = GFunctionType::New();rn gaussianFunction->SetInputImage( inputImage );rnrn GFunctionType::ErrorArrayType setError;rn setError.Fill( 0.01 );rn gaussianFunction->SetMaximumError( setError );rn gaussianFunction->SetSigma( atof( argv[3] ) );rn gaussianFunction->SetMaximumKernelWidth( atoi( argv[4] ) );rnrn it.GoToBegin();rn out.GoToBegin();rnrn while( !it.IsAtEnd() )rn rn out.Set( gaussianFunction->EvaluateAtIndex(it.GetIndex() ) );rn ++it;rn ++out;rn rnrn typedef itk::ImageFileWriter < ImageType > WriterType;rn WriterType::Pointer writer = WriterType::New();rn writer->SetFileName("D:\\test\\reader\\2.jpg");rn writer->SetInput(output);rn writer->Update();rnrn return EXIT_SUCCESS;rnrn
为什么winlogon一直运行??
登录后cpu使用率100%,查看知是winlogon.exe<em>一直</em><em>运行</em>,且它的cpu占用率rn一般是99%,偶尔恢复一下可只要一<em>运行</em>其他的程序又是老样子,why??rn大虾们救救我啊!!
求问 为什么不输出结果
namespace ConsoleApplication2rnrn class Programrn rn //static int mun; //表示需要因式分解的数rn static int[] nums = new int[1000];//存放因式rn static int n = 0; //存放nums的下标rnrn private static bool flag = true;rnrn static void Main(string[] args)rn rn int num = 2*3*5*7*11*13;rn getFactor(num);rnrn Console.Write(num + "=");rn for (int i = 0; i < n; i++)rn rn if (i != n - 1)rn rn Console.Write(nums[i] + "*");rn rn elsern rn Console.Write(nums[i]);rn rn rn Console.ReadKey();rnrn rnrnrnrn static void getFactor(int num)rn rn if (num != 2 && num % 2 == 0 && num != 1)rn rn nums[n++] = 2;rn getFactor(num / 2);rn rn if (num != 1 && num != 2 && num % 2 != 0)rn rn for (int i = 3; i < num; i = 1 + 2)rn rn if (num % i == 0)rn rn nums[n++] = i;rn getFactor(num / i);rn flag = false;rn break;rn rnrn rn if (flag)rn rn flag = true;rn nums[n++] = num;rn rnrn rn rn rn
求最小值为什么没有输出结果?
求一组十进制无符号数(2位数)的最小值rn,源码如下,<em>为什么</em><em>没有</em><em>结果</em>。由于是刚学汇编,调了很久也没找到问题所在,还请各位大虾帮帮忙rnrnDATA SEGMENT PARArn BLOCK DB "52", "14", "56", "85", "34"rn DB "63", "38", "70", "18", "69"rn COUNT EQU $-OFFSET BLOCK rn MAX DB 2 DUP(?)rn DATA ENDSrn rn CSEG SEGMENT PARA 'CODE'rn START PROC FARrn ASSUME CS:CSEG, DS:DATArn MOV AX, DATArn MOV DS, AXrn MOV SI, OFFSET BLOCKrn MOV BX, OFFSET MAXrn MOV CX, COUNTrn MOV DH, [SI]rn MOV DL, [SI+1]rn INC SIrn INC SIrn COMP: LODSBrn MOV AH, ALrn LODSBrn CMP AX, DXrn JG NEXTrn MOV DX, AXrn NEXT: DEC CXrn LOOP COMPrn MOV [BX], DHrn MOV [BX+1], DLrn rn PRINT: MOV BX, OFFSET MAXrn MOV DL, [BX]rn MOV AH, 2rn INT 21Hrn MOV DL, [BX+1]rn INT 21Hrn MOV AH, 4CHrn INT 21Hrn START ENDPrn CSEG ENDSrn END START
为什么容器没有大小?求问,求问~~~
如题。rnrn新建了一个JFrame,在其中加入一个Container,再用两个Dimension分别获得JFrame和Container的大小。然而能够获得JFrame的大小,Container的大小却始终是0。这是<em>为什么</em>?rnrn求教[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/32.gif][/img]rnrn代码如下:rnrnpublic class MyJFrame extends JFramern rn  private JPanel jp1=new JPanel();rn  private JLabel jl1=new JLabel();rn  private Container cc;rn  private Dimension di,di1;rn rn  public MyJFrame()rn    setBounds(300,100,600,600);rn     setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);rn     cc=this.getContentPane();rn     setLayout(null);rn rn     jp1.setBounds(10,10,570,570);rn     add(jp1);rnrn     di=cc.getSize();rn     di1=this.getSize();rn rn     jl1.setText("Container's width:: "+di.width+" Container's height:: "+di.height+rn       " JFrame's width:: "+di1.width+" JFrame's height::"+di1.height); jp1.add(jl1);rn rn    setVisible(true);rn  rn rn  public static void main(String[] args)rn    MyJFrame mf1=new MyJFrame();rn  rnrnrnrn<em>运行</em><em>结果</em>:rnContainer's width::[color=#FF0000] 0[/color] Container's height:: [color=#FF0000]0[/color] JFrame's width:: [color=#FF0000]600[/color] JFrame's height::[color=#FF0000]600[/color]rn
为什么没有任何结果
jsp配置正确,其他的简单程序应用正常。tomcat也正确,数据库也开启拉,rn<em>为什么</em>显示<em>没有</em>任何<em>结果</em>,也没错误提示rnrnrnrnrnrnrnrnrnrnrn
if等式为什么没有结果
这是我的代码rnrn Sheet[] sheets = wb_read.getSheets();// 获取所有的sheet rn for (x = 0; x < sheets.length; x++) rn Sheet s = wb_read.getSheet(x);// 获取sheet rn rn System.out.print("---------------"); rn System.out.print(user_text); rn Sheet s = wb_read.getSheet(0);// 获取sheet rn rows = s.getRows();// 总行 rn cols = s.getColumns();// 总列 rn String[][] str=new String[rows][cols] ;rn System.out.print("-------------");rn System.out.print("\n");rn for (int i = 0; i < rows; i++) rn for (int j = 0; j < cols; j++) rn str[i][j] = (s.getCell(j, i)).getContents();// getCell(Col,Row)获得单元格的值 rn System.out.print(str[i][j] + "\t"); rn rn System.out.print("\n");rn rn System.out.print("-------------");rn System.out.print("\n");rn for(int i=4;i
为什么没有结果???
rn rn rn rn rn rn >=rn =rn <>rn rn rn rn rn rn rn
为什么没有显示结果
rn rnrnrn 使用PlaceHolder控件rnrnrn rn rn rn rnrnrnrn显示<em>结果</em>只有input <em>没有</em>divrninput 改变以后只是刷新rn这是一本书上的原码复制过来的
为什么没有预期的结果
函数功能:输入字符串,然后再逆序输出。rn<em>为什么</em><em>没有</em>预期的<em>结果</em>??错在哪??rn代码如下:[code=C/C++][/code]rn#includern#includern#includernrn#define MAXLENGTH_STRING 20 rnvoid reverse(char str[]);rnint main()rnrn char re_string[MAXLENGTH_STRING+1];rn printf("please enter 字符串\n");rn reverse(re_string);rn printf("%s\n",re_string);rn return 0;rn rnrnrnvoid reverse(char str[])rnrn int ch,i=(MAXLENGTH_STRING+1);rn rn while((ch=getchar())!='\n')rn rn if(i>0)rn str[i--]=ch;rn rn[color=#FF0000] str[i]='\0';[/color]rnrnrn<em>结果</em><em>没有</em>。输出烫烫 或者什么都没输出。是指针传递啊。
为什么没有结果??
今天用JSP链接数据库遇到一个棘手的问题,SQL语句在mySQL中执行有<em>结果</em>。可是用Statement.executeQuery(SQL语句)要不没<em>结果</em>,要么异常。请大家帮个忙?谢谢了!
【请教】为什么没有结果
我在论坛里学了一招,通过修改注册表rn【在"开始"- 执行 - 打入"regedit"rn去 HKEY_USERS - S-1-5-21-XXXXXXXXX-XXXXXXXXX-XXXXXXXXXX-XXXX - Software - Microsoft - Windows - CurrentVersion - Explorer - Advancedrn修改 "ShowCompColor" = "dword:00000001" 更改为 "dword:00000000"rn修改 "ListviewShadow" = "dword:00000000" 更改为"dword:00000001"要重启动 】rn意思让桌面图标的注释变的透明!rn我做了,也重启动了!<em>结果</em>还是一样!<em>没有</em>变得透明!rn请问<em>为什么</em>?
为什么没有结果?(oliver_chenyifan@yahoo.com.cn)
#include rn#includern#includern#include "cArticle.h"rn#include rn#includernusing namespace std;rnrnclass cArticle rnprivate:rn string ArtNo;rn string Artname;rn double ArtPrice;rn int NbrOfItems;rnpublic: rnrn cArticle();rn cArticle(string, string, double,int);rn string GetArtNo();rn void SetArtNo(string ArtNo);rn string GetArtname();rn void SetArtname(string Artname);rn double GetArtPrice();rn void SetArtPrice(double ArtPrice);rn int GetNbrOfItems();rn void SetNbrOfItems(int NbrOfItems);rn void ShowArticle();rn bool operator(cArticle &rhs); //used for sortingrn;rnclass cReceipt rnprivate:rn vector Receipt(10);rn //cArticle Receipt[10];rn double Total;rnpublic:rn cReceipt():Total(0)rn double GetTotal();rn void AddArticle(cArticle New);rn void ShowReceipt();rn void InsertionSort();rn;rnrndouble cReceipt::GetTotal()rnrn return Total;rnrnrnvoid cReceipt::InsertionSort()rnrn for(int i=1;i0) && (Receipt[j-1]>v));rn Receipt[j]=v;rn rn rnrnrnvoid cReceipt::AddArticle(cArticle New)rn Receipt.push_back(New);rn //complete this functionrn rnrnrnvoid cReceipt::ShowReceipt()rnrn coutrhs.GetArtNo());rnrnrnrnrn#include rn#includernusing namespace std;rnrnclass cArticle rnprivate:rn string ArtNo;rn string Artname;rn double ArtPrice;rn int NbrOfItems;rnpublic: rnrn cArticle();rn cArticle(string, string, double,int);rn string GetArtNo();rn void SetArtNo(string ArtNo);rn string GetArtname();rn void SetArtname(string Artname);rn double GetArtPrice();rn void SetArtPrice(double ArtPrice);rn int GetNbrOfItems();rn void SetNbrOfItems(int NbrOfItems);rn void ShowArticle();rn bool operator(cArticle &rhs); //used for sortingrn;
为什么没有结果呢!!!
public class print_argurnpublic static void main(String []args)rn int i;rn for(i=0;i
为什么这样没有结果
[code=PHP]rnadd();rn?>rn[/code]rnrn<em>为什么</em>这样不行?我定义$count初始值为0,add()方法加2,然后实例化test,调用add,输出,提示错误:Notice: Undefined variable: count in D:\wamp\www\test\index.php on line 11
连接数据库为什么没有结果
以下是我写的一段用来连接Access数据库的程序,无论连接成功与否,屏幕上都应该有文字提示。可是这个页面打开之后,IE既<em>没有</em>出错提示,也<em>没有</em>程序中规定的反馈信息,我实在不知道错误在哪里,请大家帮忙看看!问题解决立即结帖!谢谢!rnrn dim conn rn dim connstrrn on error resume nextrn connstr="DBQ="+server.mappath("db1.mdb")+";DefaultDir=;DRIVER=Microsoft Access Driver (*.mdb);"rn set conn=server.createobject("ADODB.CONNECTION")rn conn.open connstrrn rn if conn.state=1 thenrn Reaponse.Write("数据库打开成功! ")rn else Reaponse.Write("数据库未能成功打开! ")rn end if
为什么运行不出结果
#include rn void main()rnrn int a[]=1,2,3,k=0;rn char c[]='h','s','g';rn while(k!=3)rn if(k=0)rn a[1]=0,k=k+1;rn printf("m&%c==>\n",c[1]);rn rn elsern if(k==1&&a[1]==0)rn a[0]=0,k=k+1;rn printf("m&%c==>\n",c[0]);rn rn elsern if(a[0]==0&&k==1)rn a[2]=0,k=k+1;rn printf("m&%c==>\n",c[2]);rn rn elsern if(k==2&&a[1]==2)rn a[2]=0,k=k+1;rn printf("m&%c==>\n",c[1]);rn rn elsern if(k==2)rn a[1]=0;rn k=k+1;rn printf("m&%c==>\n",c[1]);rn rn if(k==1)rn printf(");rn rnrn
为什么tensorflow安装目录下没有python.exe
安装python和<em>tensorflow</em>都是按照前辈的指导来的:https://blog.csdn.net/u013080652/article/details/68922702不过我的是win10,安装都没问题,但是到了第六步配置pycharm,按照图片中的新建,发现找不到<em>tensorflow</em>目录下(C:\Program Files\Anaconda3\Lib\site-packages\tens...
运行输出结果
#includernusing namespace std;rnclass Brnpublic:rn B(int xx):x(xx)rn rn ++count;x+=10;rn rn virtual void show() constrn rn cout<show();rndelete ptr;rnreturn 0;rnrn<em>运行</em><em>结果</em>是2_20 答案却是2_120 哪位高手能解析下过程吗,谢谢
JAR 打包为什么一直运行
文件目录如下:rnrn testrn |_helloword.classrn |_jar.batrnrn想将该class文件打成jar文件。rnrnjar.bat文件中的命令如下:rnrnjar cf HelloWorld.jar HelloWorld.class rnpausernrn但<em>运行</em>后<em>一直</em>在重复<em>运行</em>jar cf HelloWorld.jar HelloWorld.class 命令。rnrn这是什么原因?rnrn
VBA运行程序没有结果
在人家电脑上面<em>运行</em>有<em>结果</em>,<em>为什么</em>换到我电脑上面就会弹错:rn With ActiveSheet.PageSetuprn .PrintQuality = 600rn<em>运行</em>是错误'1004'rn不能设置类PageSetup的PrintQuality属性rn注释掉上面那句之后,编译能通过,但得不到程序实际要<em>运行</em>的<em>结果</em>,<em>没有</em>程序输出<em>结果</em>!!rn会不会要引用其他库文件!!
触发器为什么没有运行
rn我在一个存储过程中有以下语句rnrnSET @SQL='UPDATE ConsignOutgo2 SET ConsignOutgo2OutgoInvoiceID='+CAST(@IDTo AS NVARCHAR)rn+' WHERE (ConsignOutgo2ID IN '+@OutgoInvoiceDetail +') AND (ConsignOutgo2OutgoInvoiceID=-1) 'rnrnEXEC(@SQL)rnrn在表 ConsignOutgo2 有 AFTER INSERT UPDATE DELETE 触发器rnrn但有时存储过程正确<em>运行</em>后触发器<em>没有</em><em>运行</em>,请指点。
为什么服务器端没有运行?
在default.aspx中有一行为rnLABEL1 TEXTrnrn在default.aspx.cs中的Page_load中有rnlabel1.Text="OK";rn但在生成新项目后,用浏览器看仍为"LABEL1 TEXT"<em>为什么</em>,请教各位rn
为什么没有运行Javascript?
我先定义了一个js的函数,然后再select里面的onchange里调用这个函数rn还有一个按钮用来返回上一级页面,也是调用js的一个函数,但是都<em>没有</em>执行这段js代码,不知道<em>为什么</em>。我的代码如下:rn rnrn 请选择:rn rn 项目经费预算明细(一)rn 项目经费预算明细(二)rn rnrnrnrnrn其中div i是显示或隐藏的页面内容
事件为什么没有运行
学习事件,控制台应用程序,代码如下:rnusing System;rnusing System.Collections.Generic;rnusing System.Linq;rnusing System.Text;rnrnnamespace Studentrnrn public delegate void BuyTicketDelegate(string name);rn rn rn class Programrn rn rn public event BuyTicketDelegate blEvent;rn public Program(string num)rn rn blEvent +=new BuyTicketDelegate(this.BuyTicket);rn rn private void BuyTicket(string num)rn rn Console.WriteLine("我要买"+num+"次车票");rn rn private void ShowTicketNumber(string num)rn rn blEvent(num);rn rn static void Main(string[] args)rn rn Console.WriteLine("创建学生对象");rn Program stu = new Program("K7");rn Console.WriteLine("创建完毕");rn stu.ShowTicketNumber("K6");rnrn Console.ReadKey();rn rn rnrnrnrn我判断的程序<em>运行</em><em>结果</em>是:rn创建学生对象rn我要买K7次车票rn创建完毕rn我要买K6次车票rnrn实际是:rn创建学生对象rn创建完毕rn我要买K6次车票rnrnnew Programe ("K7")时,不是会让blEvent += new BuyTicketDelegate(this.BuyTicket)rn<em>运行</em>一次吗?难道事件注册时,不<em>运行</em>?rn
为什么没有运行这一步?
#includern#includern#includern#includernusing namespace std;rnrnrntemplaternint ni_serials(vector&vt)rnrn rn int sum=0;rn vector vi;rn vi.push_back(0);rn for(int i=1;i!=vt.size();i++)rn rn int count=0;rn for(int j=0;j=!i;j++)rn rn if(vt[j]>vt[i])//<em>为什么</em>这一步<em>没有</em>执行????rn count++;rn rn vi.push_back(count);rn rn for(int i=0;i vt;rn vt.push_back(2);rn vt.push_back(3);rn vt.push_back(1);rn vt.push_back(5);rnrn cout<
global.asa为什么没有运行
我建 了一个global.asa文件内容如下:rn rn再建了一个test.asp:rnrnrn<em>运行</em>后test.asp<em>没有</em>任何显示,这是<em>为什么</em>?rnIIS我已经重新启动过!
出学多线程,为什么线程没有一直运行
static int i; rn rn public void ThreadTest()rn rn i++;rn rnrn public Form1()rn rn InitializeComponent();rn rnrn private void Form1_Load(object sender, EventArgs e)rn rn i = 1;rn Thread threadt = new Thread(new ThreadStart(ThreadTest));rn threadt.Start(); rn rnrn private void timer1_Tick(object sender, EventArgs e)rn rn this.Text = i.ToString(); rn
互斥的存/取款线程设计,为什么运行一直没有想要的结果
<em>运行</em><em>结果</em>总是:rnWang账户:现有0.0,存入100.0,余额100.0rnWang账户:现有100.0,取走100.0,余额0.0rnWang账户:现有0.0,存入200.0,余额200.0rn我希望的是:rn存100rn存200rn取300rn<em>一直</em><em>运行</em><em>没有</em>这样的<em>结果</em>。rn[code=java]rnpublic class SaveLock extends Thread rnrn private Account account;rn private double value;rn public SaveLock(Account a1,double value)rn rn this.account=a1;rn this.value=value;rn rn public void run()rn rn synchronized(this.account)rn rn double howmuch=this.account.balance();rn tryrn rn sleep(1);rn rn catch(InterruptedException e)rn this.account.put(this.value);rn System.out.println(this.account.getName()+"账户:现有"+howmuch+",存入"+this.value+",余额"+this.account.balance());rn rn rnrnclass FetchLock extends Threadrnrn private Account account;rn private double value;rn public FetchLock(Account a1,double value)rn rn this.account=a1;rn this.value=value;rn rn public void run()rn rn synchronized(this.account)rn rn double howmuch=this.account.balance();rn tryrn rn sleep(1);rn rn catch(InterruptedException e)rn System.out.println(this.account.getName()+"账户:现有"+howmuch+",取走"+this.account.get(this.value)+",余额"+this.account.balance());rn rn rn public static void main(String args[])rn rn Account wang=new Account("Wang");rn new SaveLock(wang,100).start();rn new SaveLock(wang,200).start();rn new FetchLock(wang,300).start();rn rnrnrnclass Account rnrn private String name;rn private double balance;rn public Account(String name)rn rn this.name=name;rn this.balance=0;rn rn public String getName()rn rn return name;rn rn public double balance()rn rn return balance;rn rn public void put(double value)rn rn if(value>0)rn this.balance+=value;rn rn public double get(double value)rn rn if(value>0)rn rn if(value<=this.balance)rn this.balance-=value;rn elsern rn value=this.balance;rn this.balance=0;rn rn return value;rn rn return 0;rn rnrn [/code]
没有提示错误 为什么没有结果
Set MyConn = Server.CreateObject("ADODB.Connection")rnconnstr="driver=SQL Server;server=127.0.0.1;uid=sa;pwd=110;database=goodsmanage"rnrnMyConn.open connstrrnmysql="insert into manages(申请人,申请部门) select username,userdepart from users"rnmyconn.closernrnrn我要将第二表的两列数据写到第一表中 <em>运行</em>上面的无错rn<em>为什么</em>不能实现插入第二个表users的数据啊?
echo $x_为什么没有结果
x=hellornecho $x_<em>为什么</em><em>没有</em><em>结果</em>?_起什么作用?rn
为什么这个存储过程没有结果
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[p_getlinkinfo]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)rn drop procedure [dbo].[p_getlinkinfo]rnGOrnrn/*--获取连接SQL服务器的信息rnrn 所有连接本机的:操作的数据库名,计算机名,用户名,网卡物理地址,IP地址,程序名rn--邹建 2003.11--*/rnrn/*--调用示例rn --显示所有本机的连接信息rn exec p_getlinkinfornrn --显示所有本机的连接信息,包含ip地址rn exec p_getlinkinfo @includeip=1rnrn --显示连接指定数据库的信息rn exec p_getlinkinfo '客户资料'rn--*/rncreate proc p_getlinkinforn@dbname sysname=null, --要查询的数据库名,默认查询所有数据库的连接信息rn@includeip bit=0 --是否显示IP地址,因为查询IP地址比较费时,所以增加此控制rnasrndeclare @dbid intrnset @dbid=db_id(@dbname)rnrncreate table #tb(id int identity(1,1),dbname sysname,hostname nchar(128),loginname nchar(128),net_address nchar(12),net_ip nvarchar(15),prog_name nchar(128))rninsert into #tb(hostname,dbname,net_address,loginname,prog_name)rnselect distinct hostname,db_name(dbid),net_address,loginame,program_name from master..sysprocessesrn where hostname<>'' and (@dbid is null or dbid=@dbid)rnrnif @includeip=0 goto lb_show --如果不显示IP地址,就直接显示rnrndeclare @sql varchar(500),@hostname nchar(128),@id intrncreate table #ip(hostname nchar(128),a varchar(200))rndeclare tb cursor local for select distinct hostname from #tbrnopen tbrnfetch next from tb into @hostnamernwhile @@fetch_status=0rnbeginrn set @sql='ping '+@hostname+' -a -n 1 -l 1'rn insert #ip(a) exec master..xp_cmdshell @sqlrn update #ip set hostname=@hostname where hostname is nullrn fetch next from tb into @hostnamernendrnrnupdate #tb set net_ip=left(a,patindex('%:%',a)-1)rnfrom #tb a inner join (rnselect hostname,a=substring(a,patindex('Ping statistics for %:%',a)+20,20) from #iprn where a like 'Ping statistics for %:%') b on a.hostname=b.hostnamernrnlb_show:rnselect id,数据库名=dbname,客户机名=hostname,用户名=loginnamern ,网卡物理地址=net_address,IP地址=net_ip,应用程序名称=prog_name from #tbrnrngornrnrnrn以上是邹健提供的一段存储过程,我在VB中调用但<em>没有</em>任何<em>结果</em>显示,rnrnPublic Function Getlinkinfo() As ADODB.RecordsetrnDim rst As ADODB.RecordsetrnDim cmd As ADODB.CommandrnSet cmd = New ADODB.Commandrnrn With cmdrn .ActiveConnection = cnntodatarn .CommandTimeout = 60rn .CommandType = adCmdStoredProcrn .CommandText = "p_getlinkinfo"rn rn End Withrn 'Dim sql As Stringrn ''sql = "exec p_getlinkinfo"rn 'sql = "select * from revmain"rn 'Set rst = cnntodata.Execute(sql)rn rn Set GetUSERinfo = cmd.Executern 'MsgBox GetUSERinfo.RecordCountrn 'MsgBox IsEmptyRecordset(rst)------<em>运行</em>到这里报错:对象关闭不能执行操作rn 'End WithrnEnd Functionrnrn在from_load中rnSet GhGrid.DataSource = Getlinkinfornrncnntodata是一个全局的Connection对象,GHGRID是vsflexgrid控件,但执行其他存储过程都<em>没有</em>问题,能正常显示。
为什么结果没有换行呢?
[code=java]rnpublic class Test4_20 rn public static void main(String[] args)rn for(int n=2;n);rn rn rn rn rn public static boolean isPrime(int n)rn boolean result=true;rn for(int i=2;i
为什么没有任何输出结果的?
#include rn#include rn#include rnifstream fin("in.txt");rnrnint main()rnrn int n; //数据个数rn float x,xx; //数据,xx为预测值rn int p; //自回归模型的阶数rn float k;//设定的k值rn float a; //自回归系数rn float mse1=0,mse2=0;//方差,差额小于1%程序结束rn int i,j;rnrn fin>>n;rn for(i=0;i>x;rn fin>>p>>k;rn for(i=0;i>a;rnrn while(1)rn rn mse1=0;rn for(i=p;i0.99 && mse1/mse2n;rnrnrnrnrnrnrn<em>没有</em>任何输出<em>结果</em>,这是怎么回事啊?[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/9.gif][/img]rnC++是刚学的语言,真心受伤!希望各位大虾帮忙,给给意见![img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/16.gif][/img][img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/8.gif][/img]
为什么没有显示结果?求助。
select * from yhzl where user_status_name='有效期'rnrn其中user_status_name是varchar类型,确定里面有很多值是‘有效期’,<em>为什么</em>查询<em>没有</em>一条记录??
为什么程序运行没有结果
class Counterrnrn private static int number;rn private int m;rn public Counter()rn rn m++;number++;rn System.out.println("This is NO."+number+" object,m="+m);rn rnrnpublic class Staticsticsrnrn public static void main(String[] args)rn rn rn for(int i=10;i
为什么查询结果没有输出?
麻烦高手们帮忙看一下,<em>为什么</em>这个程序只能输出查询到的条数,但是输出不了查询<em>结果</em>啊?rnrn rn rn JSP Pagern rn rn rn rnrnrnrn非常感谢!
二叉树先序遍历为什么没有结果
为了深入掌握数据结构,我编写了二叉树的程序,包括其先序创建和先序遍历函数,rn例如要建立如下二叉树:rn Arn/ \rnB C rn<em>运行</em>时按先序遍历依次输入AB##C##,其中#表示空子树。rn可是在<em>运行</em>时,字符已输入完毕,二叉树先序遍历<em>没有</em><em>结果</em>。使用的是TC2.0 .rn各位仁兄都学过数据结构,请指点迷津!究竟是那个指针出了问题?rn#include rn#include rntypedef struct BiTNodernrn char data;rn struct BiTNode *lchild, *rchild;rnBiTNode, *BiTree;rnrnBiTNode *CreateBiTree()rnrn BiTNode *T;rn char ch;rn scanf("%c%c",&ch);rn if(ch=='#')rn T=NULL;rn elsern rn T=(BiTNode *)malloc(sizeof(BiTNode));rn T->data=ch;rn T->lchild=CreateBiTree();rn T->rchild=CreateBiTree();rn rn return T;rnrnvoid preorder(BiTNode *p)rnrn if(p!=NULL)rn printf("%c",p->data);rn preorder(p->lchild);rn preorder(p->rchild);rn rnrnmain()rnrn BiTNode *T=CreateBiTree();rn preorder(T);rn free(T);rnrn
为什么这个程序没有结果
一个将数字转化为字符串的程序,但是<em>运行</em><em>没有</em><em>结果</em>。rn#includernint getlen(char *s)rnrn int n;rn for(n = 1;*s != '\0';s++)rn n++;rnrnreturn n;rnrnvoid reverse(char s[])rnrn int c,i,j;rn for(i = 0,j = getlen(s)-1;i < j;i++,j--)rn rn c = s[i];rn s[i] = s[j];rn s[j] = c;rn rnrnvoid itoa(int n,char s[])rnrn int i,sign;rn if((sign = n) < 0)rn rn n = -n;rn rn i = 0;rn dorn rn s[i++] = n % 10 +'0';rn while((n/=10)>0);rn if(sign < 0)rn rn s[i++] = '-';rn rn s[i] = '\0';rn reverse(s);rnrnint main()rnrn int n=154;rn char s[100];rn itoa(n,s);rn for(int i=0;s[i]='\0';i++)rn rn printf("%c",s[i]);rn rn return 0;rnrn
为什么这条模糊查询没有结果
我有一表,名为水电记录表,表中有字段:客户编号、水表读数、电表读数、日期(类型datetime).rn在窗体中有一个edit1(客户编号),combobox1(年份),combobox2(月份),现在要求根据三个textrn中的值查询在表中的所有信息。rn以下是我写的程序:rnADOQuery1.Close;rnADOQuery1.SQL.Clear;rnADOQuery1.SQL.Add('select * from 水电记录表 where 客户编号='''+edit1.Text+''' and 日期 like '''+combobox1.Text+''+'-'+''+combobox2.Text+''+'-'+'%''');rnADOQuery1.Open;rnrn程序可以执行,但<em>没有</em><em>结果</em>显示。rn不知是哪里问题,敬请赐教!
这个程序为什么没有结果
#includern#includern#define n1 0.0414rn#define n2 0.0468rn#define n3 0.054rn#define n4 0.0072rn#define n5 0.0585rnvoid Fangan1(double number)rnrn number=5*(1+n1,5);rn printf("%f\n,number");rnrnvoid Fangan2(double number)rnrn number=2*(1+n2,2);rn number=3*(1+n3,3);rn printf("%f\n",number);rnrnvoid Fangan3(double number)rnrn number=3*(1+n3,3);rn number=2*(1+n2,2);rn printf("%f\n",number);rnrnvoid Fangan4(double number)rnrn number=number*pow(1+n1,5);rn printf("%f\n",number);rnrnrnvoid Fangan5(double number)rnrn number=number*pow(1+n4/4,4*5); rn printf("%f\n",number);rnrnrnint main()rnrn // double n1,n2,n3,n4;rn char ch;rn double number;rn printf("请输入你所要存储的钱:");rn scanf("%d",&number);rn printf("请选择你要的储存类型:\n");rn ch=getchar();rn rn switch(ch)rn rn case 'a':rn Fangan1(number);rn break;rn case 'b':rn Fangan2(number);rn break;rn case 'c':rn Fangan3(number);rn break;rn case 'd':rn Fangan4(number);rn break;rn case 'e':rn Fangan5(number);rn break;rn rn return 0;rnrn
全排列,为什么没有结果呢?
void swap(char *a,char *b)rnrn char temp;rn temp=*a;rn *a=*b;rn *b=temp; rnrnrnvoid Pailie(char str[],int first,int num)rnrn if(num;rn Pailie(str,0,strlen(str));rn
为什么没有达到预期的结果了??
我想改变文件的确扩展名:rnrn Dim i As Integerrn Dim sFiles() As Stringrn Dim f As FileInfornrn If Directory.Exists(txtFolderPath.Text) Thenrn '获得文件名的信息,数组形式.rn sFiles = Directory.GetFiles(txtFolderPath.Text)rn For i = 0 To sFiles.Length - 1rn '在ListBox1中显示文件信息rn ListBox1.Items.Add(Path.GetFileName(sFiles(i)).ToString)rn '如果文件的扩展名是VOX,则修改成ANN的形式.rn If Path.GetExtension(Path.GetFileName(sFiles(i))) = "VOX" Thenrn sFiles(i) = Path.ChangeExtension(Path.GetFileName(sFiles(i)), "ANN")rn End Ifrn Nextrn End Ifrnrnrn请帮忙修改,谢谢了!
为什么运行不 出结果???????
#include rn#include rn struct studentrn rn int num;rn char name[20];rn char sex;rn int age;rn float score;rn char addr[20];rn ;rn struct student stu[3]=10,"Li Lin",'M',18,87.5,"103 Beijing Road",rn 1002,"Wang Wu",'F',20,86.0,"111 Shanghai Road",103,"Zhang San",'F',20,90.8,"009 Namjing Road";rn void main()rn struct student *p;rn char SName[20];rn cout<>SName;rn for(int i=0;iname)==0)rn cout<<
CommandLineToArgvW运行时候一直提示没有定义
获取命令行参数的时候, 使用CommandLineToArgvW, 它就<em>一直</em>提示<em>没有</em>定义. 是一个win32程序, 都能使用GetCommandLine函数.rnrn大虾帮帮忙.rn谢谢了先.
python零基础 求问为什么调用函数的时候一直出错
明明是按照教材写的代码,但是<em>一直</em>在这里出错,搜了很多都没搜到相似的问题,编程零基础想不通啊,麻烦大家帮忙看看谢谢啦[img=https://img-bbs.csdn.net/upload/201903/18/1552893975_59195.jpg][/img][img=https://img-bbs.csdn.net/upload/201903/18/1552893984_86694.jpg][/img]
Maven项目一直运行不出来但又没有报错
导致原因 1:数据库无法正常连接上 2:注册中心连接不上 3:逆向工程生成的mapper出错(多次生成)   解决办法: 在无法<em>运行</em>出来的项目中添加log4j文件,再次<em>运行</em>,根据<em>运行</em><em>结果</em>进行修改...
运行结果为什么会有“小花“?
DATA SEGMENTrn BUFS DB 10 DUP(?)rn BUFD DB 10 DUP (?)rn TOTAL DW ?rn NOZERO DB ?rn YE DB ?rn M1 DB 'please input the some chars.....',13,10,'$'rn M2 DB 'the result is....',13,10,'$'rn DATA ENDSrnrn CODE SEGMENTrn ASSUME CS:CODE,DS:DATArn START:rn MOV AX,DATArn MOV DS,AXrnrn LEA DX,M1rn CALL PROMPTrn CALL CRLFrnrn MOV SI,0rn COMMON:rn MOV AH,1rn INT 21Hrnrn CMP AL,13rn JE INOVERrnrn MOV BUFS[SI],ALrn INC SIrnrn CMP SI,10Drn JB COMMONrn INOVER:rn MOV TOTAL ,SIrnrn LEA DX,M2rn CALL PROMPTrn CALL CRLFrnrn LEA DX,BUFSrn CALL PROMPTrn CALL CRLFrn MOV BX,TOTALrn MOV YE,BLrn MOV BL,YErnrn CALL PUTOUTDECrnrn MOV AH,4CHrn INT 21Hrn PUTOUTDEC PROCrn PUSH CXrn MOV NOZERO,0rn MOV CL,100rn CALL MAINrn MOV CL,10rn CALL MAINrn MOV CL,1rn CALL MAINrn CMP NOZERO,0rn JNE LLrn MOV DL,30Hrn MOV AH,2rn INT 21Hrn LL: POP CXrn RETrn MAIN PROCrn MOV AL,BLrn MOV AH,0rn DIV CLrn MOV BL,AHrn MOV DL,ALrn CMP DL,0rn JNE LLLrn CMP NOZERO,0rn JNE LLLrn JMP LL2rn LLL:rn MOV NOZERO,1rn ADD DL,30Hrn MOV AH,2rn INT 21Hrn LL2:rn RETrn MAIN ENDPrn PUTOUTDEC ENDPrn CRLF PROCrn MOV DL,13rn MOV AH,2rn INT 21Hrn MOV DL,10rn MOV AH,2rn INT 21Hrn RETrn CRLF ENDPrn PROMPT PROCrn MOV AH,09Hrn INT 21Hrn RETrn PROMPT ENDPrn CODE ENDSrn END STARTrnrn哪位高手先<em>运行</em>一下试试看,我<em>运行</em>的<em>结果</em>是有一个小花,还有一行不该出现的文字rn是这样的:rn假如说输入的是123vabnrn<em>运行</em>的<em>结果</em>为:rnplease input the some chars..... rnresult is....rnrn123vabn;就在这个地方一个小花,还有please input the some chars.....rn7rnrn
python运行tensorflow,提示没有该module
如图所示,我新建了一个文档叫做<em>tensorflow</em>.py,然后在里边进行我第一个拷贝测试的<em>tensorflow</em>代码,然后报错提示<em>没有</em>该module,并且生成了一个.pyc的二进制文件,经查阅 python会先在程序目录下查找相关模块,我import了<em>tensorflow</em>模块,python刚好在我的目录下发现了我新建的<em>tensorflow</em>.py,然后引入的是这个代码模块,显然会出错,重命名之后,一
帮忙看看怎么 二叉树先序遍历 为什么运行没有结果
rn#include "stdafx.h"rn#includern#includern#includern#define NULL 0rn#define SIS 100rn#define SIE 10rn typedef struct bitnodern rn char data;rn struct bitnode *lchild,*rchild;rn bitnode,*bitree;rn typedef structrn rn bitree *base;rn bitree *top;rn int stacksize;rn sqstack;rnrn rn void Initstack(sqstack &s)rn rn s.base=(bitree*)malloc(SIS*sizeof(bitree));rn s.top=s.base;rn s.stacksize=SIS;rn rn rn rnint GetTop(sqstack s,bitree &e)rn rn if( e=*(s.top-1)) return 0;rn else return 1;rn rn rn void Push(sqstack &s,bitree &e)rn rn if(s.top-s.base>=s.stacksize)rn rn s.base=s.base+s.stacksize;rn s.stacksize+=SIE;rn rn *s.top++=e;rn rn rn void Pop(sqstack &s,bitree &e)rn rn e=*--s.top;rn rn rn int StackEmpty(sqstack s)rn rn if(s.top=s.base) rn return 0;rn else return 1;rn rn /*void Visit(char e)rn rn printf("%c",e);rn */rnvoid PreOrderTraverse(bitree bt)rn sqstack s;bitree p;rn rn if(bt)rn Initstack(s); Push(s,bt);rn while(!StackEmpty(s))rn rn while(GetTop(s,p)&&p)rn rn printf("%c",p->data);/*Visit(p->data);*/rn Push(s,p);rn rn Pop(s,p);rn if(!StackEmpty(s))rn rn Pop(s,p);rn Push(s,p->rchild);rn rn rn rnrnrn void CreateBiTree(bitree &bt)rn char ch;rn ch=getchar();rn if(ch==' ') bt=NULL;rn else rn rn bt=(bitnode*)malloc(sizeof(bitnode));rn bt->data=ch;rn CreateBiTree(bt->lchild);rn CreateBiTree(bt->rchild);rn rn rn rnrn rn void main()rn bitree bt;rn CreateBiTree(bt);rn PreOrderTraverse(bt);rn
求教大佬,为什么数据大了运行没有结果。。。。。
public class TryTwice rn//进制转换(十转为x)rnpublic static void main(String[] args) rn rn int num1=6;//原数 当变成10就<em>运行</em>不出<em>结果</em>。。。。。。rn int num2=4;//所求进制rn int num3;rn int num4;rn int i=1;//位数rn if(num1=num2);rn System.out.println(""+i);rn for(int p=1;p);rn rn
这个程序为什么运行没错,但是没有结果
package ce;rnrn class A rn String name;rn public A(String x)rn name=x;rn rn public void func1()rn System.out.println(name);rn rn public void func2()rn A a2=new A("a2");rn this.func1();rn a2.func1();rn rn rn class TestArn public static void main(String [] args)rn A a1=new A("a1");rn a1.func2();rn rn rn
D:\b.txt") 运行没有结果?">为什么在PB中 RUN("dir >D:\b.txt") 运行没有结果
而在命令提示下,执行dir >D:\b.txt会产生一个文件,但放到PB中<em>运行</em>却<em>没有</em><em>结果</em>?rn请大侠请点一二。
这个程序 为什么老是运行就是没有结果!!
import java.io.*;import java.net.*;rnpublic class Serverrn public static void main(String args[])rn ServerSocket server=null;rn Socket you=null;String s=null;rn DataOutputStream out=null;DataInputStream in=null;rn try server=new ServerSocket(8080);rn catch(IOException e1)System.out.println("ERRO:"+e1); rn try you=server.accept();rn in=new DataInputStream(you.getInputStream());rn out=new DataOutputStream(you.getOutputStream());rn while(true)rn rn s=in.readUTF();// 通过使用in读取客户放入"线路"里的信息。堵塞状态,rn //除非读取到信息。rnrn out.writeUTF("你好:我是服务器");//通过 out向"线路"写入信息.rn out.writeUTF("你说的数是:"+s);rn System.out.println("服务器收到:"+s);rn Thread.sleep(500);rn rn rn catch(IOException e)rn System.out.println(""+e);rn rn catch(InterruptedException e)rn rn
大佬帮忙看一下运行程序为什么没有得到预期的结果
![图片说明](https://img-ask.csdn.net/upload/201907/27/1564219551_696417.png)rnrnrn请问<em>为什么</em><em>没有</em>打开这个程序文件的源代码?哪里出问题了?rn本人小白,谢谢大佬帮助!
下面这个自定义函数为什么运行没有结果?谢谢!!
CREATE function dbo.qcrktj1(@date1 datetime,@date2 datetime,@p1 varchar(50),@q1 varchar(50))rnreturns table rnas rnreturn(rnselect 物资类别,器材名称,型号规格,计划价,rnsum(实收数量) as 收入总数,sum(实收数量*计划价) as 收入金额rnfrom 器材验收入库单 where @p1= @q1 and 入库日期 between @date1 and @date2rngroup by 物资类别,器材名称,型号规格,计划价rn)rn是不是因为两个变量@p1= @q1 不能相等!?
请看我的代码,为什么运行没有结果
我在程序中想调用WIN2K的信使服务rnFunction long NetMessageBufferSend(ref blob Server, ref blob yToName, ref blob yFromName, ref blob yMsg,long ByVallSize) library "NETAPI32.DLL" rnrn调用:rnblob bServer, bToName, bFromName, bMsgrnlong lSendByternrnbServer = ToUnicode( "10.94.96.44" )//对方机器名rnbToName = ToUnicode( "10.94.96.44" )rnbFromName = ToUnicode( "10.94.96.44" )rnbMsg = ToUnicode( "Hello World!" )rnlSendByte = Len(bMsg)rnlSendByte = NetMessageBufferSend( bServer, bToName, bFromName, bMsg, lSendByte)rn在PB9中调用,但是<em>运行</em>时<em>没有</em><em>结果</em>,请赐教!
用eclipse运行 结果为什么没有菜单和菜单栏
importjavax.swing.*; importjava.awt.*; publicclass Menutest extends JFrame {  public  Menutest(){   JMenuBar mb = new JMenuBar();   JMenu fileMenu = new JMenu("显示");   JMenu pullRightMenu = new
求问,为什么用sqlparameter就没有结果了呢
dal层代码:rn public UserInfo NameQuery(int id1, int id2)//自创函数rn rn string strSql = @"SELECT dbo.FUN_QN('@id1,@id2') AS UserName";rn SqlParameter[] sp = new SqlParameter[2];rn sp[0] = new SqlParameter("@id1", id1);rn sp[1] = new SqlParameter("@id2", id2);rn return new SQLHelperChange().ReaderToModel(new SQLHelper().SelectParaReader(strSql, sp));rn rn实现部分:rn UserInfo ui = new Train_Manage().NameQuery(14, 18);rn MessageBox.Show(ui.UserName);rn<em>结果</em>ui.UserName为空。rn而我把dal层代码的@id1和 @id2分别换成14,18就有<em>结果</em>了,该如何解决这个情况呢??rn(函数FUN_QN的参数是varchar100,因为要涉及到多个值采用了拼接)
求详解,运行不出结果
public class Basernrn private int a;rn public Base(int a)rn rn this.a=a;rn rn public int getA()rn rn return a;rn rn public class Sub extends Basern rn private int b;rn public Base(int a,int b)rn rn super(a);rn this.b=b;rn rn public int getB()rn rn return b;rn rn rnrn public void main(String[] args) rn rn Sub sub=new Sub(1,2);rn System.out.println("a="+sub.getA()+"b="+sub.getB());rn rnrnrn
hadoop集群运行wordcount例子没有结果生成 求大神支招
配置如下:rn虚拟机:virtualBoxrnhadoop:hadoop-2.2.0rnjdk:jdk7rn集群配置:rnrnip 机器名 系统rn192.168.1.252 hadoop-master centos6.4 namenode、resourcemanager、secondarynamenodern192.168.1.251 hadoop-slave1 centos6.4 dataNodernrn开发环境rn192.168.1.250 centos centos6.4 安装eclipse、jdk用于远程调试 不属于集群节点rnrn情况如下:rn该集群可以通过eclipse插件连接、可以上传下载文件、集群常用端口都可以访问(除了50030网页打不开外),在eclipse上配置好<em>运行</em>参数<em>运行</em>wordcount.java程序不报错,但是在output文件夹下<em>没有</em>输出<em>结果</em> 求大神支招rnwordcount.java文件都一样,就不贴了rn
一直纠结,为什么CheckedListBox没有这个事件
checked,勾选,当勾选项发生改变的时候,引发的事件rnrn这个普通的事件,CheckedListBox控件<em>为什么</em><em>没有</em>?
问题在哪里, 为什么运行没有错误,但就是不出结果
#include rnvoid main()rnrnint n=0,m=0,b=0,k=0;rnscanf("%d",&n);rnfor (m=1;m
求助,为什么没有运行js
如题,上代码,[b]麻烦看看那里出了问题。alert的提示框<em>没有</em>出现。[/b]rnrn rn rnrn rn rn testrn rnrnrn谢谢, 现在特郁闷,过去是<em>没有</em>问题的。
为什么我的js没有运行
这个代码有点长,不过都很容易懂,我是初学者,麻烦帮我看看<em>为什么</em>我的js<em>没有</em><em>运行</em>起来rnrnrnrnrnrn rn rn rn My JSP 'index.jsp' starting pagern rn rn rn rn rn rn rn rn rn rn rn rn rn 测试ajaxrn rn rn rn rn 用户名:rn rn rn rn rn rn 密码:rn rn rn rn rn rn 再次输入密码:rn rn rn rn rn rn rn rn rnrnjs文件是这样的rnrnfunction checkname() rn var username = document.getElementById("user_name").value;rn var ajax = creatAjax();rn var url = "/servlet/deal?p"+username;rn ajax.open("GET",url,"true");rn ajax.send();rn ajax.onreadystatechange=function()rn rn if (readyState==4 && ajax.status==200)rn rn var res = ajax.responseText;rn var con = "";rn if(res == 1)rn con = "恭喜,该用户名可以注册";rn elsern con = "对不起,请换其他用户名";rn rn document.getElementById("point_out").innerHTML=con;rn rn rnrnrnfunction checkpassword()rn var password = document.getElementById("user_password").value;rn var con2=" ";rn if(password.length10)rn con2="对不起,你输入的密码不符合规则";rn elsern con2="该密码可用";rn rn document.getElementById("point_out2").innerHTML=con2;rnrnrnfunction checkright()rn var password = document.getElementById("user_password").value;rn var password2 = document.getElementById("user_password2").value;rn var con3=" ";rn if(password.equal(password2))rn con3 = "该密码可用";rn elsern con3="对不起,两次密码输入不同,请重新输入";rn rn document.getElementById("point_out3").innerHTML=con3;rnrn另外我想请个大神能帮我解决下以后的问题,就像家教一样,我把文件发给你让您帮我改下再发我,我付钱(一个人自学真的很难啊)
我的AT命令为什么没有运行
我的AT命令<em>为什么</em><em>没有</em><em>运行</em> rnAT 12:30 /every:Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday "d\test.bat" rnrn手工可以让它<em>运行</em>,并产生日志文件,但就是不会自动执行。<em>为什么</em>?rnrnrnrnrn
为什么System.Threading.Timer24小时候没有运行
[code=csharp]rnvar timer = new System.Threading.Timer(CallBack, null, 0, 24 * 3600 * 1000);rn[/code]rnrn指定每隔24小时执行一次,方法内耗时5个多小时,比如我早点9点<em>运行</em>,应该到第2天的9点会自动<em>运行</em>,<em>为什么</em><em>没有</em><em>运行</em>呢。
为什么我的代码没有运行
我在对话框dlg1中有一clistctrl控件m_ListCtrl,现我想在这个控件中加上表头,rn我在OnInitDialog()中加入代码如下:rnm_ListCtrl.SetExtendedStyle(LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES);rnm_ListCtrl.InsertColumn(0,_T("学号"),LVCFMT_IMAGE|LVCFMT_LEFT);rnm_ListCtrl.InsertColumn(1,_T("姓名"));rnm_ListCtrl.InsertColumn(2,_T("数学"));rnm_ListCtrl.InsertColumn(3,_T("英语"));rn但<em>运行</em>后,控件中却什么也<em>没有</em>显示,这是<em>为什么</em>?
DrawItem为什么没有运行到???
我的按钮继承CButton,然后重写了DrawItem,却<em>没有</em>被<em>运行</em>到 ?求解rn部分代码rnrnpublic:rn virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);rnrnvoid myButton::PreSubclassWindow() rnrn ModifyStyle(0, BS_OWNERDRAW, SWP_FRAMECHANGED); rn CButton::PreSubclassWindow(); rnrnrn不知道还需要什么条件??
没有头文件,为什么运行
我在dev c++中建立了一个控制台c工程,只写了两个文件如下所示,<em>没有</em>任何头文件,也<em>没有</em>用extern声明ppp函数,但是却能执行,请问高手这是<em>为什么</em>?rnmain.crnrn#include rn#include rnint main(int argc, char *argv[])rnrn ppp();rn system("PAUSE"); rn return 0;rnrnrn1.crnrnvoid ppp()rnrn printf("%d\n",1);rn rn
求问,但我没有分了
我怎么样才能册掉在google,baidu这搜索引擎里搜索过的记录呀!rn还有想册掉我上过的网页记录,有些清除历史记录册不掉呀,怎么办拜托大家了!
急问:试了很久没有结果
想做一个menu,两级就好,还要引发menuitemselected事件,我用了一个站点上的例子,出现这样问题:rn在webform1.aspx.vb中rnProtected WithEvents Menu1 As CYBERAKT.WebControls.Navigation.ASPnetMenu,这句话类型<em>没有</em>定义,rn这个名字空间在webform1.aspx中这样写的:rnrn我的问题出在那里阿???rn
我的这个applet为什么一直运行啊?
我的这个applet<em>为什么</em><em>一直</em><em>运行</em>啊?rnrn根据<em>运行</em>的情况来看好像是<em>一直</em>下载这个applet反复<em>运行</em>rn我的程序是对客户端进行ipv6设置rn我在设置了数字签名后已经可以在客户端<em>运行</em>了rnrn程序如下rnrnrnimport java.awt.*;rnimport java.applet.*;rnrnrnpublic class Try extends Applet rn rn public void init() rn rnrn public void paint(Graphics g) rn boolean ex=true;rn if (ex) rn rn tryrn rn rn // Runtime.getRuntime().exec("cmd /c start dir ");rn // Runtime.getRuntime().exec("cmd /c start ipv6 rtu ::/0 2/::210.34.50.57 pub");rn rn //Runtime.getRuntime().exec("cmd /c start ipv6 adu "+com1);rnrn //out.println("cmd /c start ipv6 rtu ::/0 2/::210.34.50.57 pub");rn //out.println("cmd/c start ipv6 adu ");rn g.drawString("Welcome to tryb Java!!", 50, 60 );rn Runtime.getRuntime().exec("cmd /c start ipv6 rtu ::/0 2/::210.34.50.48 pub");rn g.drawString("Welcome to trym Java!!", 50, 60 );rn Runtime.getRuntime().exec("cmd/c start ipv6 adu 2/3ffe:3212:2000::4ee");rn g.drawString("Welcome to trylast Java!!", 50, 60 );rn ex=false;rn catch(Exception e);rn rn rn rnrnrn本来<em>没有</em>ex这个boolean变量的rn但是在出现反复<em>运行</em>后我加入的可是还是反复<em>运行</em>啊rn如果不是反复下载应该<em>运行</em>一次就结束的rn所以我说是反复下载的
这个java程序为什么一直运行下去
<em>为什么</em>这个程序<em>运行</em>时会<em>一直</em><em>运行</em>下去呀?哪位大侠帮忙看看啊!rnrnimport java.util.Collections;rnimport java.util.Comparator;rnimport java.util.Iterator;rnimport java.util.LinkedList;rnpublic class CollectionsTestrnrn public static void main(String[] args)rn rn LinkedList list = new LinkedList();rn list.add(new Integer(10));rn list.add(new Integer(-10));rn list.add(new Integer(20));rn list.add(new Integer(-20));rn list.add(new Integer(0));rn Comparator r = Collections.reverseOrder(); rn Collections.sort(list,r);rn for(Iterator iter = list.iterator();iter.hasNext();) rn rn System.out.println(list); rn rn rnrn
求问qt这两个语句为什么结果不同
inputText 为 QString 类型,里面是一个中文汉字rn语句1:rnQByteArray bytes = inputText.toLocal8Bit();rnchar * tempCH1 = bytes.data();rnrn语句2:rnchar * tempCH2 = inputText.toLocal8Bit().data();rnrn很奇怪,这两个程序段出来的tempCH1 和 tempCH2 的<em>结果</em>是不一样的,请问<em>为什么</em>呢?谢谢!
求看HQL语句 结果为什么没有limit这部分
[code=sql](List) session.createQuery("from Question q where q.teacher.id='"+teacherId+"' order by q.id asc limit "rn + pagePos + "," + pageSize).list();[/code]rnrn<em>结果</em>:rn[code=sql] selectrn question0_.id as id3_,rn question0_.answer as answer3_,rn question0_.category_id as category10_3_,rn question0_.choice_a as choice3_3_,rn question0_.choice_b as choice4_3_,rn question0_.choice_c as choice5_3_,rn question0_.choice_d as choice6_3_,rn question0_.createDate as createDate3_,rn question0_.teacher_id as teacher11_3_,rn question0_.title as title3_,rn question0_.type as type3_ rn fromrn _question question0_ rn wherern question0_.teacher_id='50100' rn order byrn question0_.id asc[/code]rn只到asc这就没了。
冒泡排序法,为什么没有结果出来呢?求大侠,帮忙看看
rnpublic class BubbleSort rnpublic static void main(String args[])rn double[] a=5.0,4.4,1.9,2.9,3.4,3.5;rn boolean changed=true;rn dorn changed=false;rn for(int j=0;ja[j+1])rn swap(a,j);rn changed=true;rn rn rn while(changed);rn rnpublic static void swap(double[] array,int i) rn double temp=array[i];rn array[i]=array[i+1];rn array[i+1]=temp;rn rnrn
tensorflow入门之tensorflow运行结构
<em>tensorflow</em>采用计算图的方式构建机器学习的<em>运行</em>结构,图中的每个节点可以是一个操作,对象,数据等等。当构建完一个<em>运行</em>结构之后,把数据输入给这个<em>运行</em>结构,<em>tensorflow</em>就会自动执行整个计算图,得到相应的<em>结果</em>。而输入的数据则以张量的形式在计算图中不断流动,使得计算得以继续。在构建一个机器学习<em>运行</em>结构时,必须包括以下几个方面: 1.训练数据集(包括输入数据和标签数据) 2.自己构建的机器学
我这个SQL语句,运行没有结果的?
create table T (v int)rninsert into T rnselect 1rnunion all select 2rnunion all select 3rnunion all select 4rnrnselect * from Trnrndeclare @a intrndeclare @b intrnselect @a=10rnselect @b=0rnselect @a=@a+v,@b=@b+v from Trnrn看看该怎么改,谢谢
编译不报错 但是运行没有结果
[code=c]rn#include rn#include rnrnrntypedef struct LNodern int color;rn int data;rn struct LNode *next;rnLNode, *LinkList;rnrnrnvoid InitList(LinkList &L)rn L = (LinkList)malloc(sizeof(LNode));rn L->color = 0;rn L->data = 0;rn L->next = NULL;rnrnrnvoid CreateList(LinkList &L)rn LinkList p, q;rn q = L;rn int i = -1, j = 1;rn while (1)rn int flag = 1; rn p = (LinkList)malloc(sizeof(LNode));rn q->next = p;rn p->next = NULL;rn p->color = j;rn p->data = i;rn q = p;rn rn if (i < 13)rn i++;rn rn rn else if (i == 13 && j != 4)rn i = 1;rn j++;rn rn rn else if (i == 13 && j == 4 && flag)rn i = -1;rn j = 1;rn// count++;rn flag = 0;rn rn rn if (i == 13 && j == 4 && !flag)rn break;rn rn rn rnrnrnrnvoid filltrate(LinkList &L)rn LinkList p, q, r;rn q = L;rn p = L->next;rn int count = 1;rn rn r = L;rn while (r->next)rn r = r->next;rn rn rn while (p->next)rn if (count&2 != 0)rn q->next = p->next;rn free(p);rn p = q->next;rn p->next = q->next->next;rn count++;rn rn rn else if (count&2 == 0)rn q->next = p->next;rn r->next = p;rn r = p;rn p->next = NULL;rn p = q->next;rn count++;rn rn rn rn switch (p->color)rn case 1:rn printf("黑桃"); rn break;rn rn case 2:rn printf("红桃");rn break;rn rn case 3:rn printf("方块");rn break;rn rn case 4:rn printf("梅花");rn break;rn rn rn rn switch (p->data)rn case -1:rn printf("大王\n");rn break;rn rn case 0:rn printf("小王\n");rn break;rn rn default:rn printf("%d\n", p->data);rn break;rn rn rn rnrnrnrnint main()rnrn LinkList L;rn rn InitList(L);rn CreateList(L);rn filltrate(L);rn rn return 0;rn rn[/code]rnrn[b]初学,请大神帮忙看看是什么问题![/b]
sql语句没有结果 可以直接运行
insert getmessage (name,tel, email,produce ,selected,message)values ('111','2221111','333','NA-1光纤数值孔径测试仪 CT-07精密光纤切割刀 CTS650系列 对称数字通信电缆测试系统 CTS650A1 CSF电缆理想屏蔽系数测试仪 ','4,8,13,17,','需要报价')rnsql 语句没问题rnrnSqlConnection myconnection = new SqlConnection("user id=sa;password=xxx;initial catalog =secri;data source=192.168.0.1;Connect Timeout=30");rn rn myconnection.Open();rn SqlDataAdapter MyCommand = new SqlDataAdapter(sqlstr , myconnection); rn rn myconnection.Close();rn Message.Text += "insert finish";rn如何知道到底那里又问题了呢?
编译没有报错,运行不能输出结果
#include rnusing namespace std;rnint main()rnrn cout<<
运行JavaScript没有结果,哪里出了问题?
最近几天才入门,<em>没有</em>找到好的视频。rn用的是sublime Text2中文版。rn代码如下rnrn rnrn然后保存类型为“所有类型”。文件名称为a.htmlrn可是双击这个文件后,浏览器<em>没有</em>显示hi!rnrn可是我用notepad++写的就显示了hi!rnrn我还想问,我可以以后就用notepad++吗?需要下载其他什么插件还是就直接用?rn大家还有什么建议?
运行一直报错,求大神指点
[img=https://img-bbs.csdn.net/upload/201605/10/1462859149_351537.png][/img][img=https://img-bbs.csdn.net/upload/201605/10/1462858802_133884.png][/img]rnrnrn2016-5-10 13:52:28 org.apache.catalina.core.AprLifecycleListener initrn信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\MyEclipse 6.5\bin;D:\MyEclipse 6.5\myeclipse\eclipse\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_6.5.0.zmyeclipse650200806\tomcat\binrn2016-5-10 13:52:28 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2016-5-10 13:52:28 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 456 msrn2016-5-10 13:52:28 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2016-5-10 13:52:28 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.13rn2016-5-10 13:52:28 org.apache.tomcat.util.modeler.Registry registerComponentrn严重: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/gdglsys,J2EEApplication=none,J2EEServer=nonern2016-5-10 13:52:28 org.apache.catalina.startup.HostConfig deployDirectoryrn严重: Error deploying web application directory gdglsysrnjava.lang.UnsupportedClassVersionError: Bad version number in .class filern at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(Unknown Source)rn at java.security.SecureClassLoader.defineClass(Unknown Source)rn at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1817)rn at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1325)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rn at org.apache.catalina.startup.WebAnnotationSet.loadClassAnnotation(WebAnnotationSet.java:145)rn at org.apache.catalina.startup.WebAnnotationSet.loadApplicationFilterAnnotations(WebAnnotationSet.java:84)rn at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:57)rn at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:297)rn at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1064)rn at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4236)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2016-5-10 13:52:28 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2016-5-10 13:52:28 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2016-5-10 13:52:28 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/27 config=nullrn2016-5-10 13:52:28 org.apache.catalina.startup.Catalina startrn信息: Server startup in 817 msrn求大神帮帮忙!!!
新手问题:怎么运行没有结果?!
[code=C/C++]rn#include rn#include rnrnint main(void)rnrn double x = 0.0 , y = 0.0;rn for(x = -1.5; x , x, y);rn rn rnrn[/code]rn
LR脚本运行成功,但没有结果
我用LR录制了一个web页面预订会议的脚本,将会议的名程,开始实际,结束时间等都参数化,<em>运行</em>脚本时是OK的,但当我登录web页面去看的时候,并<em>没有</em>会议预订成功显示的,请求高手帮忙啊,
Python运行正常但是没有结果
小白自学Python做题时发现了一个问题,这个是水仙花数的求解,然后发现这个码pycharm<em>运行</em>正常但是<em>没有</em><em>结果</em>。。。。不知道<em>为什么</em>呀,感觉很懵逼呀,求大佬们帮忙解答...
这段代码怎么运行没有结果啊!!
rn[color=#FF0000][b]谁来帮我调试,调试![/b][/color]rnrnimport java.util.*;rnpublic class StudentSeat rn public static void main(String[] args) rn Random r = new Random();rn int stu[] = new int[52];rn stu[0] = 0;rn for(int i = 0; i < 52; i++)rn int temp = r.nextInt(52)+1;rn for(int j = 0; j < 52; i++)rn System.out.print(stu[i] + " ");rn rn rnrn
求助:struts的action方法运行没有结果
RT,同一个action类里其他的方法都可以,唯独这一个<em>运行</em>页面<em>没有</em><em>结果</em>,程序不报错,不知道哪里没写对,求指导。rnrn代码:rnrn[code=Java]public ActionForward showall(ActionMapping mapping, ActionForm form,rn HttpServletRequest request, HttpServletResponse response)rn rn NewsForm AllNewsActionForm=(NewsForm)form;rn tryrn rn ActionNews actionNews = new ActionNews(AllNewsActionForm);rn Listresult=actionNews.search();rn if(result.size()>0)rn rn request.setAttribute("result",result);rn request.setAttribute("info_all", "总记录数:" + String.valueOf(result.size()));rn rn else rn request.setAttribute("info_all", "<em>没有</em>符合要求的记录!");rnrn rn catch(Exception e)rn rn request.setAttribute("info_all",e.getMessage()); rn rn return mapping.findForward("searchAll");rn rn[/code]rnrn具体操作方法代码:rnrn[code=Java]public Listsearch() throws Exceptionrn rn List result = new LinkedList();rn String sql="select * from s_news";rn PreparedStatement pstmt= conn.prepareStatement(sql);rn ResultSet rs =pstmt.executeQuery();rn while(rs.next())rn rn String[] row=new String[6];rn row[0] = rs.getString(1);rn row[1] = rs.getString(2);rn row[2] = rs.getString(3);rn row[3] = rs.getString(4);rn row[4] = rs.getString(5);rn row[5] = rs.getString(6);rn result.add(row);rn rn rs.close();rn conn.close();rn return result;rn rn[/code]rnrnjsp:rn[code=HTML]rn rn rn rn $requestScope.info_allrn rn rn rn rn rn rn rn rn 编号 rn 主题 rn 作者rn 日期rn 操作rn rn rn $row[0] rn $row[1] rn $row[2] rn $row[3] rn rn rn rn rn rn rn rn[/code]rnrnxml:rnrn[code=Java]rn rn rn rn rn rn rn rn rn rn rnrnrnrn[/code]
运行以后没有结果,请求帮助
use runtimernDECLARE @v1 decimal(18,4),@v2 decimal(18,4),@result as decimal(18,4)rnrnselect @v1=value from v_analoglive where tagname ='24-FC1014-----PV---0--'rnselect @v2=value from v_analoglive where tagname ='24-FP1001-----PV---0--'rnselect @result=@v1/@v2rnrnuse jhrninsert into 某张表 (项目,时间,数值)rnVALUES ('项目1',getdate(),@result)rnrn执行完毕后<em>没有</em>任何报错,但是到“某张表”中查看<em>没有</em>任何记录rn这条语句单独<em>运行</em><em>没有</em>问题,得到一条相应的记录rnselect value from v_analoglive where tagname ='24-FC1014-----PV---0--'
Arcmap中ToolBox工具运行没有结果
菜单栏-地理处理-地理处理选项-后台处理,将“启用”前的复选框去掉,即可解决,困扰了我几个星期。
求e的问题,运行一直等待~
先感谢大家的帮助了rnrn[code=C/C++]#includern#includernusing namespace std;rnrnint main()rnrn int i=1;rn long value=1;rn double result=0.0;rn dorn value*=i;rn result+=1/(value*1.0);rn i++;rn while(result>10e-7);rn cout<
求大神赐教!为什么运行后不出结果
#includern#includern#includern#includern#include"iostream.h"rnrn#define CLOCKS_PER_SEC ((clock_t)1000)rn#define P_num 80 //粒子数目 rn#define dim 8 //粒子维数rn#define low 1 //搜索域范围rn#define high 8rn#define iter_num 200rn#define V_max 2 //速度范围rn#define c1 2rn#define c2 2rn#define w 0.5rn#define alp 1rnint Deb=0;rnint Fin=8192;rnint iter;rnint available;rnint particle[P_num][dim]; //个体集合rnint particle_loc_best[P_num][dim]; //每个个体局部最优向量rndouble particle_loc_fit[P_num]; //个体的局部最优适应度,有局部最优向量计算而来rnint particle_glo_best[dim]; //全局最优向量rndouble gfit; //全局最优适应度,有全局最优向量计算而来 rnint particle_v[P_num][dim]; //记录每个个体的当前代速度向量rndouble particle_fit[P_num];rndouble particle_value[P_num];rnrnvoid GenerateInitial(void);rnvoid CalculateFitnessValue(void); rnvoid OutputTextReport(void);rnvoid FindPbestAndGbest(void);rnvoid renew_particle();rnvoid renew_var();rnrnrnvoid main()rnrn clock_t start, end;rn start = clock();rn available=rand()%2;rn if(available==1)rn rn iter=0;rn GenerateInitial();rn CalculateFitnessValue();rn FindPbestAndGbest();rn cout<< low)rn rn particle[i][j] = low;rn rn for(k=0;k V_max)rn rn particle_v[i][j] = V_max;rn rn if(particle_v[i][j] < -V_max)rn rn particle_v[i][j] = -V_max;rn rn rn rnrnrnvoid OutputTextReport(void)rnrn int i;rn cout<<
基于DM6437网络智能监控系统的设计与实现.pdf下载
本文以TMS320DM6437为核心,构造了一个智能化的视频监控系统。对系统 中的采集、视频处理、网络通信、存储等各模块进行了设计与实现。 相关下载链接:[url=//download.csdn.net/download/hyunfei2009/2594474?utm_source=bbsseo]//download.csdn.net/download/hyunfei2009/2594474?utm_source=bbsseo[/url]
推送模式的P2P流媒体分发算法下载
推送模式的P2P流媒体分发算法推送模式的P2P流媒体分发算法 相关下载链接:[url=//download.csdn.net/download/wqlinf/2619507?utm_source=bbsseo]//download.csdn.net/download/wqlinf/2619507?utm_source=bbsseo[/url]
1600K驱动中的帮助下载
1600K中的文件 某些系统中缺少的1600K驱动中的文件 相关下载链接:[url=//download.csdn.net/download/lys112200/3801142?utm_source=bbsseo]//download.csdn.net/download/lys112200/3801142?utm_source=bbsseo[/url]
相关热词 c# gdi 占用内存 c#中遍历字典 c#控制台模拟dos c# 斜率 最小二乘法 c#进程延迟 c# mysql完整项目 c# grid 总行数 c# web浏览器插件 c# xml 生成xsd c# 操作sql视图
我们是很有底线的