qt 程序不能运行 [问题点数:100分,结帖人kongyanmin]

Bbs3
本版专家分:851
结帖率 99.33%
Bbs2
本版专家分:221
Bbs3
本版专家分:851
Bbs1
本版专家分:10
Bbs2
本版专家分:430
Bbs3
本版专家分:851
Bbs2
本版专家分:430
Bbs3
本版专家分:851
Bbs2
本版专家分:221
程序不能结束运行
Option ExplicitrnPrivate bln1 As BooleanrnrnPrivate Sub Command1_Click() '10000*10000次循环rn Dim i As Integerrn Dim j As Integerrn rn For i = 1 To 10000rn For j = 1 To 10000rn DoEventsrn Me.Caption = CStr(j)rn If bln1 Thenrn Me.Caption = Me.Caption & "Pause"rn Exit Subrn End Ifrn Nextrn NextrnEnd SubrnrnPrivate Sub Command2_Click() '暂停rn bln1 = TruernEnd SubrnrnPrivate Sub Form_Unload(Cancel As Integer)rn bln1 = TruernEnd Subrnrn'当执行Command1_Click()时,rn'这时没有按Command2_Click按钮rn'当窗体发生Form_Unload事件时,rn'也就是我点了关闭按钮rn'怎么还处于<em>运行</em>状态.如何解决,谢谢了rn
java 程序不能运行?
<em>程序</em>:HelloWorld.javarnrnpublic class HelloWorldrnrn public static void main(String[] args) rn rn System.out.println("hello ,world!");rn rnrnrn可以编译,但<em>运行</em>时抱错rnrnException in thread "main" java.lang.NoClassDefFoundError:HelloWorldrnrn前几天还能<em>运行</em>,路径设置也没改,不知为什么现在却<em>不能</em><em>运行</em>rn但Applet <em>程序</em>却可以<em>运行</em>rn望高手指点一二rn
程序不能长时间运行
串口通讯<em>程序</em>(D7 + access2000),<em>运行</em>后可以<em>运行</em>一段时间(几个小时),然后就会出现exceptionrn对话框,提示raise exception at project address XXXXXX ,还有什么EAccessViolation 什么的。请问是那里出现问题了呢?rn在线等待rn
我的程序不能运行
import java.io.*;rnrnimport java.awt.*;rnimport java.awt.event.*;rnrnclass Vehiclern int passengers;rn int fuelcap;rn int mpg;rn rnclass TwoVehiclesrn public static void main(String args[])rn Vehicle minivan=new Vehicle();rn Vehicle sportscar=new Vehicle();rn rn int range1,range2;rnrn minivan.passengers=7;rn minivan.fuelcap=16;rn minivan.mpg=21;rnrn rn sportscar.passengers=2;rn sportscar.fuelcap=14;rn sportscar.mpg=12;rn rn range1=minivan.fuelcap*minivan.mpg;rn range2=sportscar.fuelcap*sportscar.mpg;rn rn System.out.println("Minivan can carry " + minivan.passengers +rn "with a rangs of " + range1); rn system.out.println("Sportscar can carry" + sportscar.passengers +rn "with a range of " + range2);rn rnrn
ios 程序不能运行
[img=https://img-bbs.csdn.net/upload/201410/29/1414598179_482446.png][/img]rn这种怎么<em>运行</em>啊,每次成功都不<em>运行</em>,求解
命令提示符下不能运行程序
[color=#FF0000]大哥们,帮帮忙!!我的电脑系统是WIN XP,可是我在命令提示符下输入ipconfig后,显示"不是内部或外部命令"等等,还有输入ping 等其它命令也不行,我该怎么半????[/color][size=13px][/size]
为什么程序不能运行
#include rnrnvoid main()rnrn long sum=0l;rn int count=0;rn int i=0;rnrn printf("\nEnter the number of integer you want to sum:");rn scanf("%d",&count);rnrn for(i=count;i>0;sum+=count--);rnrn printf("\nTotal of the first %d number is %ld\n",count,sum);rnrn输入数据后,既不显示错误,也不显示最终结果,把count改成i就可以,这是为什么呢
vc程序不能运行
<em>程序</em>编译连接都没出错,在Debug文件夹里也生成exe文件,双击exe文件可以<em>运行</em>rnrn但是在IDE下按执行键没反应,谁知道这是咋回事啊?求帮忙解答一下rn
程序为什么不能运行?
不是说用ADO方法操作Access数据库生成的应用<em>程序</em>可以直接在win98se上<em>运行</em>吗?rn为什么我编制的<em>程序</em><em>不能</em>呢?还有,如果做成安装<em>程序</em>的话,应该在InstallShield的objects/Merge modules中选择哪个项呢?
debug程序不能运行?????
拷贝debug中的可执行文件,在有的机子可以<em>运行</em>,有的机子不可<em>运行</em>(这些机子均安装VC)rnrn出错现象:rnRuntime Error.rnabnormal program termination!rnrn但是在不可以<em>运行</em>的机子上打开<em>程序</em>重新在Debug下编译后可以<em>运行</em>。rnrn我在<em>程序</em>加载时new了一个ADO类对象出错,屏蔽此句即正常。rn在加载ADO类时,发现下面的话导致出错。rnrn#define CREATEINSTANCE(sp,riid) HRESULT _hr = sp.CreateInstance( __uuidof( riid ) ); \rn if (FAILED(_hr)) _com_issue_error(_hr); rnrnCREATEINSTANCE(m_piConnection, Connection);rnCREATEINSTANCE(m_piCommand, Command);rnrn不知如何修改,请赐教!!!
写的程序不能运行
在VC6.0编译器里面正常<em>运行</em>,功能正常,可以我在目录里面把<em>程序</em>打开点开那个按钮的时候却<em>不能</em><em>运行</em>说 你处于进程当中,信息可能丢失!
为什么程序不能运行?
我用ECLIPSE 根据书上例程建立如下代码.但<em>不能</em><em>运行</em>.请帮助rn/*rn * Created on 2003-6-30rn *rn * To change the template for this generated file go torn * Window>Preferences>Java>Code Generation>Code and Commentsrn */rnpackage ex;rnimport java.applet.Applet;rnimport java.awt.*;rn/**rn * @author Administratorrn *rn * To change the template for this generated type comment go torn * Window>Preferences>Java>Code Generation>Code and Commentsrn */rnpublic class ex518 extends Appletrn Frame f;rn MenuBar mb;rn Menu file;rn public void init()rn f=new Frame();rn mb=new MenuBar();rn file=new Menu("file");rn file.add(new MenuItem("new"));rn mb.add(file);rn f.setMenuBar(mb);rn f.resize(300,400);rn add(f);rn f.show();rn rn public boolean handleEvent(Event evt)rn switch(evt.id)rn case(Event.ACTION_EVENT):rn if(evt.target instanceof MenuItem)rn if("new".equals(evt.arg))System.out.println("new");rn rn return true;rn default:rn return false;rn rn rn rn
为什么程序不能运行
这段代码并没有用到.net,为什么在没有安装过VS2005 sp2的机器上<em>不能</em><em>运行</em>?rn[code=C/C++]rn#include rnrnint WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, rn PSTR szCmdLine, int iCmdShow)rnrnrn WCHAR filepath[] = L"C:\\WINDOWS\\system32\\sysKWT.dll";rn WCHAR * pFilePath = filepath;rn BOOL success;rn DWORD dwd;rnrnrn dwd=GetFileAttributes(pFilePath);rnrn if (dwd!=INVALID_FILE_ATTRIBUTES)rn rn if(dwd&FILE_ATTRIBUTE_READONLY)rn rn MessageBox(NULL,L"文件只读,无法删除!",L"错误",MB_OK);rn return 0;rn rn rnrn success = DeleteFile(pFilePath);rn if(success)rn MessageBox(NULL,L"删除成功!",L"成功",MB_OK);rn elsern MessageBox(NULL,L"文件不存在!",L"完成",MB_OK);rn return 0;rnrn[/code]
程序不能运行下去了
#include /*引用库函数*/ rn#include rn#include rn#include rntypedef struct /*定义结构体数组*/ rn rnchar num[10]; /*编号*/ rnchar name[20]; /*书名*/ rnint how; /*订购册数*/ rnJiaocai;rnJiaocai jc[80];/*结构体数组变量*/ rnrnint caidan()/*菜单函数*/ rnrnchar c; rndo rnsystem("cls"); /*<em>运行</em>前清屏*/ rnprintf("教材管理系统\n"); /*菜单选择*/ rnprintf("1--教材信息录入\n"); rnprintf("2--教材信息查询\n"); rnprintf("3--补订教材\n"); rnprintf("4--退订教材\n"); rnprintf("5--教材信息更新\n"); rnprintf("6--结束<em>程序</em>\n"); rnprintf("你要做什么(1-6):"); rnc=getchar(); /*读入选择*/ rnwhile(c'6'); rnreturn(c-'6'); /*返回选择*/ rn rnrnrnint Input(Jiaocai a[],int n) /*输入若干条记录*/ rnint i=0; rnchar sign,x[10]; /*x[10]为清除多余的数据所用*/ rnwhile(sign!='n'&&sign!='N') /*判断*/ rn printf("student's num:"); /*交互输入*/ rnscanf("%s",a[n+i].num); rnprintf("student's name:"); rnscanf("%s",a[n+i].name); rnprintf("student's how:"); rnscanf("%d",&a[n+i].how); rngets(x); /*清除多余的输入*/ rnprintf("tany more records?(Y/N)"); rnscanf("%c",&sign); /*输入判断*/ rni++; rn rnreturn(n+i); rnrnrnrnrnrnrnvoid Display(Jiaocai a[],int n) /*显示所有记录*/ rn rnint i; rnprintf("-----------------------------------\n"); /*格式头*/ rnprintf("教材编号 书名 订购\n"); rnprintf("-----------------------------------\n"); rnfor(i=1;i
程序完全不能运行。。。
编了下面这个<em>程序</em>,是一个Nim游戏,要求可以添加删除重置用户,可是写完之后完全<em>不能</em><em>运行</em>,我对多个class的<em>程序</em>不是很熟,实在找不出来是怎么回事了,希望各位大神帮帮忙,马上就要交作业了,很急。。。[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/9.gif][/img]rn[code=java]import java.util.Arrays;rnrnpublic class NimPlayer rn rn public String username;rn public String family_name;rn public String given_name;rn public int game;rn public int win;rn public int percentage;rn rn public final static int MAX_PLAYER_NUM = 100;rn static NimPlayer [] players = new NimPlayer[MAX_PLAYER_NUM];rn rn static int numofplayer = 0;rn rn public void addplayer(String username, String family_name, String given_name)rn for (int index = 0; index < numofplayer; index++) rn if (players[index].username == username) rn System.out.println("The player already exists.");rn System.out.println();rn System.out.printf(">");rn return;rn rn rn players[numofplayer].username = username;rn players[numofplayer].family_name = family_name;rn players[numofplayer].given_name = given_name;rn numofplayer++;rn System.out.println();rn System.out.printf(">");rn rn rn public void removeplayer(String username)rn for (int index = 0; index < numofplayer; index++) rn if (players[index].username == username) rn players[index] = players[numofplayer-1];rn players[numofplayer-1] = null;rn numofplayer--;rn System.out.println();rn System.out.printf(">");rn return;rn rn rn System.out.println("The player does not exist.");rn System.out.println();rn System.out.printf(">");rn rn rn public void removeallplayer()rn System.out.println("Are you sure you want to remove all players? (y/n)");rn String flag = Nimsys.keyboard.next();rn if (flag == ("y"))rn for (int index = 0; index < numofplayer; index++)rn players[index] = null;rn rn rn System.out.println();rn System.out.printf(">");rn rn rn public void editplayer(String username, String new_family_name, String new_given_name)rn for (int index = 0; index < numofplayer; index++) rn if (players[index].username == username) rn players[index].family_name = new_family_name;rn players[index].given_name = new_given_name;rn System.out.println();rn System.out.printf(">");rn return;rn rn rn System.out.println("The player does not exist.");rn System.out.println();rn System.out.printf(">");rn rn rn public void resetstats(String username)rn for (int index = 0; index < numofplayer; index++) rn if (players[index].username == username) rn players[index].game = 0;rn players[index].win = 0;rn players[index].percentage = 0;rn System.out.println();rn System.out.printf(">");rn return;rn rn rn System.out.println("The player does not exist.");rn System.out.println();rn System.out.printf(">");rn rn rn public void resetstatsall()rn System.out.println("Are you sure you want to reset all player statistics? (y/n)");rn String flag = Nimsys.keyboard.next();rn if (flag == ("y"))rn for (int index = 0; index < numofplayer; index++)rn players[index].game = 0;rn players[index].win = 0;rn players[index].percentage = 0;rn rn rn System.out.println();rn System.out.printf(">");rn rn rn public void displayplayer(String username)rn for (int index = 0; index < numofplayer; index++) rn if (players[index].username == username) rn System.out.println(getdescription(index));rn System.out.println();rn System.out.printf(">");rn return;rn rn rn System.out.println("The player does not exist.");rn System.out.println();rn System.out.printf(">");rn rn rn public void displayallplayer()rn Arrays.sort(players);rn for (int index = 0; index < numofplayer; index++)rn System.out.println(getdescription(index));rn rn rn rn public static String getdescription(int index)rn String description = (players[index].username + ", " + players[index].given_name + ", " + players[index].family_name + ", " + players[index].game + "games, " + players[index].win + "wins");rn return description;rn [/code]rn[code=java]import java.util.Scanner;rnrnpublic class Nimsys rn rn public static Scanner keyboard;rn rn public static void main(String[] args)rn keyboard = new Scanner(System.in);rn System.out.println("Welcome to Nim");rn System.out.printf("\n>");rn NimPlayer player = new NimPlayer();rn NimGame newgame = new NimGame();rn while(true)rn String[] command = keyboard.next().split(",| ");rn rn if (command[0] == "addplayer")rn player.addplayer(command[1], command[2], command[3]);rn else if ((command[0] == "removeplayer") && (command.length != 1))rn player.removeplayer(command[1]);rn else if ((command[0] == "removeplayer") && (command.length == 1))rn player.removeallplayer();rn else if (command[0] == "editplayer")rn player.editplayer(command[1], command[2], command[3]);rn else if ((command[0] == "resetstats") && (command.length != 1))rn player.resetstats(command[1]);rn else if ((command[0] == "resetstats") && (command.length == 1))rn player.resetstatsall();rn else if ((command[0] == "displayplayer") && (command.length != 1))rn player.displayplayer(command[1]);rn else if ((command[0] == "displayplayer") && (command.length == 1))rn player.displayallplayer();rn else if (command[0] == "startgame")rn newgame.startgame(Integer.parseInt(command[1]), Integer.parseInt(command[2]), command[3], command[4]); rn rn [/code]rn[code=java]public class NimGame rn rn public void startgame(int initialstones, int upperbound, String username1, String username2)rn int currentplayer;rn int nextplayer;rn int removal;rn if (checkplayer(username1) && checkplayer(username2))rn currentplayer = getplyerindex(username1);rn nextplayer = getplyerindex(username2);rn System.out.println();rn System.out.println("Initial stone count: " + initialstones);rn System.out.println("Maximum stone removal: " + upperbound);rn System.out.println("Player1: " + NimPlayer.players[currentplayer].given_name + NimPlayer.players[currentplayer].family_name);rn System.out.println("Player2: " + NimPlayer.players[nextplayer].given_name + NimPlayer.players[nextplayer].family_name);rn rn elsern System.out.println("One of the players does not exist.");rn System.out.println();rn System.out.printf(">");rn return;rn rn rn while (initialstones != 0)rn rn System.out.println();rn System.out.printf(initialstones + " stones left:");rn int stone;rn for(stone = initialstones;stone >0;stone--)rn System.out.print(" *");rn System.out.println("\n" + NimPlayer.players[currentplayer].given_name + "'s turn - remove how many?");rn removal = Nimsys.keyboard.nextInt();rn if (removal > 0 && removal < min(initialstones, upperbound))rn initialstones = initialstones - removal;rn int temp = currentplayer;rn nextplayer = currentplayer;rn currentplayer = temp;rn rn elsern System.out.println("/nInvalid move. You must remove between 1 and " + min(initialstones, upperbound) + "stones.");rn continue;rn rn rn System.out.println();rn System.out.println("Game Over");rn System.out.println(NimPlayer.players[currentplayer].given_name + " " + NimPlayer.players[currentplayer].family_name + " wins!");rn NimPlayer.players[currentplayer].game++;rn NimPlayer.players[currentplayer].win++;rn NimPlayer.players[nextplayer].game++;rn rn rn public static boolean checkplayer(String username)rn for (int index = 0; index < NimPlayer.numofplayer; index++)rn if (NimPlayer.players[index].username == username)rn return true;rn rn return false;rn rn rn public static int getplyerindex(String username)rn int playerindex = 0;rn for (int index = 0; index < NimPlayer.numofplayer; index++)rn if (NimPlayer.players[index].username == username)rn playerindex = index;rn rn return playerindex;rn rn rn private static int min(int n1, int n2) rn int temp = 0;rn if (n1 < n2)rn temp = n1;rn elsern temp = n2;rn return temp;rn rn[/code]
程序不能持续运行
<em>运行</em>状况:我用C#语言编写了一个client端<em>程序</em>,放在阿里云上与Server端(不用我编写)通过网络通信,主要是接收Server端上传上来的数据,但每隔15min会向Server端发送一次命令。rnrn <em>运行</em>现象:当整个<em>程序</em><em>运行</em>到几十个小时(最长的是82个小时)后,出现如图所示的问题。rnrn 求助问题:请各位大牛们分析一下可能出现问题的原因。rnrn 相关代码:`接收数据部分rn public class dataread//接收数据基础类rn rn public NetworkStream netstream;rn public byte[] PackageBuffer;rn public dataread(NetworkStream sn, int buffersize)rn rn this.netstream = sn;rn this.PackageBuffer = new byte[buffersize];rn rn rn rn private void ReadCallBack(IAsyncResult ar)//接收数据的回调函数rn rn tryrn rn int rec = netStream.EndRead(ar);rn PackageBufferLength = PackageBuffer.Length;rn ShowPackage();//显示接收到的报文rn ParsePackageBuffer();//解析接收到的报文 rn netStream.BeginRead(PackageBuffer, 0, PackageBuffer.Length, new AsyncCallback(this.ReadCallBack), netStream);rn netStream.Flush();rn rn catch (Exception ex)rn rn txtState.Text = ex.Message;rn rn rn定时下发命令部分rn private void timer5_Tick(object sender, EventArgs e)rn rn tm5++;rn while (tm5 % 901== 0)rn rn netStream.Flush();rn rtb.Clear(); rn CircleCallAll();//命令函数 rn break;rn rn rn private void CircleCallAll()rn rn this.timer5.Stop();rn ······//代码部分rn this.timer5.Start();rn tm5 = 1;rn `rn[img=https://img-bbs.csdn.net/upload/201409/11/1410422102_508423.jpg][/img]
为什么程序不能运行
各位兄台:rn 小弟最近遍了一vc<em>程序</em>,可通过编译,但<em>不能</em><em>运行</em>?请问有那几种情况可导致如此问题?
不能第二次运行程序了?
我.net c#编译的<em>程序</em>,安装之后打开<em>程序</em><em>运行</em>,一切正常,如果对ACCESS数据库有什么操作的话,就<em>不能</em><em>运行</em>第二次,出现不是有效的WIN32<em>程序</em>的对话框!rn我把<em>程序</em>移植到我自己的电脑上一切正常,我想知道,我的VS2005缺少什么补丁还是什么原因?(我用盘子重装过了,系统也是!)rn谢谢大家了!
程序不能运行..
下面的代码用VC6.0编译通过,但是<em>不能</em><em>运行</em>,没任何提示,请高手指点一下,thx..rnrn//-----------------------------------------------------------------------------rnrn//-----------------------------------------------------------------------------rn#include rn#include rn#include rnrnrn//-----------------------------------------------------------------------------rn// Global variablesrn//-----------------------------------------------------------------------------rnLPDIRECT3D9 g_pD3D = NULL; // Used to create the D3DDevicernLPDIRECT3DDEVICE9 g_pd3dDevice = NULL; // Our rendering devicernrnLPD3DXMESH g_pMesh = NULL; // Our mesh object in sysmemrnD3DMATERIAL9* g_pMeshMaterials = NULL; // Materials for our meshrnLPDIRECT3DTEXTURE9* g_pMeshTextures = NULL; // Textures for our meshrnDWORD g_dwNumMaterials = 0L; // Number of mesh materialsrnrnrnvoid RemovePathFromFileName(char * pcfullname,char * pcname)rnrn char * pch=strrchr(pcfullname,'\\');rn if (pch)rn strcpy(pcname,++pch);rn elsern strcpy(pcname,pcfullname);rnrnrnrn//-----------------------------------------------------------------------------rn// Name: InitD3D()rn// Desc: Initializes Direct3Drn//-----------------------------------------------------------------------------rnHRESULT InitD3D( HWND hWnd )rnrn // Create the D3D object.rn if( NULL == ( g_pD3D = Direct3DCreate9( D3D_SDK_VERSION ) ) )rn return E_FAIL;rnrn // Set up the structure used to create the D3DDevice. Since we are nowrn // using more complex geometry, we will create a device with a zbuffer.rn D3DPRESENT_PARAMETERS d3dpp; rn ZeroMemory( &d3dpp, sizeof(d3dpp) );rn d3dpp.Windowed = TRUE;rn d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD;rn d3dpp.BackBufferFormat = D3DFMT_UNKNOWN;rn d3dpp.EnableAutoDepthStencil = TRUE;rn d3dpp.AutoDepthStencilFormat = D3DFMT_D16;rnrn // Create the D3DDevicern if( FAILED( g_pD3D->CreateDevice( D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd,rn D3DCREATE_HARDWARE_VERTEXPROCESSING,rn &d3dpp, &g_pd3dDevice ) ) )rn rn return E_FAIL;rn rnrn // Turn on the zbufferrn g_pd3dDevice->SetRenderState( D3DRS_ZENABLE, TRUE );rnrn // Turn on ambient lighting rn g_pd3dDevice->SetRenderState( D3DRS_AMBIENT, 0xffffffff );rnrn return S_OK;rnrnrn//-----------------------------------------------------------------------------rn// Name: InitGeometry()rn// Desc: Load the mesh and build the material and texture arraysrn//-----------------------------------------------------------------------------rnHRESULT InitGeometry()rnrn LPD3DXBUFFER pD3DXMtrlBuffer;rnrn // Load the mesh from the specified filern if( FAILED( D3DXLoadMeshFromX( "dinosaur.x", D3DXMESH_SYSTEMMEM, rn g_pd3dDevice, NULL, rn &pD3DXMtrlBuffer, NULL, &g_dwNumMaterials, rn &g_pMesh ) ) )rn rn return E_FAIL;rn rnrn // We need to extract the material properties and texture names from the rn // pD3DXMtrlBufferrn D3DXMATERIAL* d3dxMaterials = (D3DXMATERIAL*)pD3DXMtrlBuffer->GetBufferPointer();rn g_pMeshMaterials = new D3DMATERIAL9[g_dwNumMaterials];rn g_pMeshTextures = new LPDIRECT3DTEXTURE9[g_dwNumMaterials];rnrn for( DWORD i=0; i 0 )rn rn char filename[256];rn RemovePathFromFileName(d3dxMaterials[i].pTextureFilename, filename);rnrn // Create the texturern if( FAILED( D3DXCreateTextureFromFile( g_pd3dDevice, rn filename, rn &g_pMeshTextures[i] ) ) )rn rn // If texture is not in current folder, try parent folderrn rn MessageBox(NULL, "Could not find texture map", "", MB_OK);rn rn rn rn rnrn // Done with the material bufferrn pD3DXMtrlBuffer->Release();rnrn return S_OK;rnrnrnVOID SetupLights()rnrn // Set up a material. The material here just has the diffuse and ambientrn // colors set to yellow. Note that only one material can be used at a time.rn D3DMATERIAL9 mtrl;rn ZeroMemory( &mtrl, sizeof(D3DMATERIAL9) );rn mtrl.Diffuse.r = mtrl.Ambient.r = 1.0f;rn mtrl.Diffuse.g = mtrl.Ambient.g = 1.0f;rn mtrl.Diffuse.b = mtrl.Ambient.b = 1.0f;rn mtrl.Diffuse.a = mtrl.Ambient.a = 1.0f;rn g_pd3dDevice->SetMaterial( &mtrl );rn//set up lightsrn D3DXVECTOR3 vecDir;rn D3DLIGHT9 light;rn ZeroMemory( &light, sizeof(D3DLIGHT9) );rn light.Type = D3DLIGHT_DIRECTIONAL;rn light.Diffuse.r = 0.80f;rn light.Diffuse.g = 0.60f;rn light.Diffuse.b = 0.60f;rn vecDir = D3DXVECTOR3(10,-10,-10);rn rn D3DXVec3Normalize( (D3DXVECTOR3*)&light.Direction, &vecDir );rn light.Range = 5000.0f;rn g_pd3dDevice->SetLight( 0, &light );rn g_pd3dDevice->LightEnable( 0, TRUE );rn g_pd3dDevice->SetRenderState( D3DRS_LIGHTING, TRUE );rnrn // Finally, turn on some ambient light.rn g_pd3dDevice->SetRenderState( D3DRS_AMBIENT, 0x00404040 );rnrnrnrnrn//-----------------------------------------------------------------------------rn// Name: Cleanup()rn// Desc: Releases all previously initialized objectsrn//-----------------------------------------------------------------------------rnVOID Cleanup()rnrn if( g_pMeshMaterials != NULL ) rn delete[] g_pMeshMaterials;rnrn if( g_pMeshTextures )rn rn for( DWORD i = 0; i < g_dwNumMaterials; i++ )rn rn if( g_pMeshTextures[i] )rn g_pMeshTextures[i]->Release();rn rn delete[] g_pMeshTextures;rn rn if( g_pMesh != NULL )rn g_pMesh->Release();rn rn if( g_pd3dDevice != NULL )rn g_pd3dDevice->Release();rnrn if( g_pD3D != NULL )rn g_pD3D->Release();rn
Android程序不能运行
在eclipse中编写的<em>程序</em>没有问题,但是在模拟器中无法<em>运行</em><em>程序</em>是什么问题,详见截图,遇到这种问题该怎么解决,求教思路[img=https://img-bbs.csdn.net/upload/201407/11/1405047692_850384.png][/img]
程序不能运行
import java.io.*;rnrnpublic class FileInputStreamrnrn public static void main(String[] args) throws IOExceptionrn rn FileInputStream fis = new FileInputStream("FileInputStream.java");rn byte[] bbuf = new byte[1024];rn int hasRead = 0;rn while ((hasRead = fis.read(bbuf)) > 0 )rn rn System.out.print(new String(bbuf , 0 , hasRead ));rn rn fis.close();rn rnrn//输出<em>程序</em>源代码
程序不能运行.
无法将文件"obj\Debug\Nemo_kun.exe"复制到“bin\Debug\Nemo_kun.exe”.文件"bin\Debug\Nemo_kun.exe"正在由另一个进程使用,因此该进程无法访问该文件.rnrnrn请问这个是什么错误.要怎么弄.
isapi程序不能运行
我在Delphi下编的Isapi<em>程序</em>为什么在windows2000 advanced sever,IE6.0里<em>不能</em><em>运行</em>?请问怎么设置<em>运行</em>环境?
asp.net程序不能运行
今天遇到一个奇怪的问题,<em>程序</em>在我的机器上好用,放到另一台机器上就不好用了,.net环境是肯定装了;不知道什么原因,请执教
autorun.inf不能运行程序
我编了一个autorun.inf放在F盘根目录下,其内容如下:rnIcon=C:\Windows\System\Shell32.DLL,21rnopen=C:\dzh\internet\hypwise.exern重启后图标会出现,但<em>程序</em>不会<em>运行</em>,我把<em>程序</em>改为F盘根目录下的<em>程序</em>也不行,不知什么原因,请教大家!谢谢!!!
程序不能运行,急!!!
做了一个<em>程序</em>,使用环境:C#、Oracle、oledb调用。rn怎知安装到客户那里,数据库却连接不上,为什么?rn客户环境:windows2000 server、.NET Frame已安装、mdac_typ.exe已经安装。rn结果是数据库总是连接不上,为什么,高手们?
程序在98下不能运行???
vc的小<em>程序</em>,其中用到了ado操作数据库,在2000啊advanced server上正常<em>运行</em>,98下runtime error,请高手帮忙!
程序不能运行
#include rn#include rn#include rnvoid main() rn rnint xa,ya,xb,yb,c; rnfloat delta_x,delta_y,x,y; rnint dx,dy,steps,k; rnint driver=VGA,mode=VGAHI; rninitgraph(&driver,&mode,""); rnsetbkcolor(WHITE); rndx=xb-xa; rndy=yb-ya; rnif(fabs(dx)>fabs(dy)) steps=fabs(dx); rnelse steps=fabs(dy); rndelta_x=(float)dx/(float)steps; rndelta_y=(float)dy/(float)steps; rnx=xa; rny=ya; rnputpixel(x,y,1); rnfor(k=1;k<=steps;k++) rnx+=delta_x; rny+=delta_y; rnputpixel(x,y,1); rn rngetch(); rn rn
程序不能运行 急!!
在linux系统下,x86的环境,eclipse工具下。我的<em>程序</em><em>运行</em>不起来了,但可以通过编译。rn后台<em>运行</em>的时候提示的是“断开的管道”,求高手解答!!rn 万分感谢!
程序不能运行,奇怪
VB<em>程序</em>,点<em>运行</em>按钮出现“cannot edit module” 的对话框rn可是明明我是<em>运行</em>它,我没编辑它啊rn请问怎么解决这个问题rn谢谢
Qt 运行程序设置图标
一、准备一张ico图标文件 二、打开项目的pro文件 添加 RC_ICONS =XXX.ico(重新编译<em>运行</em>可以发现,窗口的左上角变成了我们设置的图标) 三、新建文本文档 然后将名称改为proj.rc,输入如下内容: IDI_ICON1   ICON   DISCARDABLE   &quot;xxx.ico&quot; 四、打开项目的pro文件 添加 RC_FILE = proj.rc 五、重新编译...
qt之QProcess:编译运行程序
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include &amp;lt;QMainWindow&amp;gt; #include &amp;lt;QProcess&amp;gt; namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: ...
关于Qt编译后程序不能运行的疑问
RT~~我在Windows下用Qt Create制作了一个配置<em>程序</em>,编译后<em>运行</em>没有问题,但是把<em>程序</em>放到没有安装Qt的电脑下面<em>运行</em>,<em>程序</em>出现几秒后就闪退,一直解决不了.试过把Qt目录下所有的库都拷过去,还是出现同样的问题.rnrn注:在安装了Qt的电脑下跑完全没有问题,求知道原因的大神赐教一下,一直没有解决到
关于QT库下的例子不能运行的问题
我在Linux下装了最新下载的QT3.0可是装好,编译通过以后(装在自己键的目录QT下),在<em>运行</em>rnQT下的example里的例子时,发现每个都不可以<em>运行</em>,提示“Segmentation fault"不知道是因为环境变量没设好,还是别的原因,希望大侠们能帮帮忙
QT/embedded free 编译后不能运行
请教:rn 我在TROOLLTECH 网站上下载了QT/EMBEDDED 没有改任何的rn东西,编译后,在文本界面中(KONSOL)<em>运行</em>,提示没有 /DEV/FB0 设备,可是我在/DEV 下面可以找到 FB0 ,不知道是不是要先<em>运行</em> QVFB 。我是新手,且项目又紧,请麻烦多多指教rnrn 谢rn
不能运行运行程序是怎么回事?
在WINDOWS桌面的左下角的开始菜单里,有个“<em>运行</em>”<em>程序</em>。这个<em>程序</em>可以直接<em>运行</em>很多命令,有时很方便。rnrnrn但是我有台电脑却<em>不能</em><em>运行</em>这个(<em>运行</em>)<em>程序</em>,每次点击他时,就跳出一个对话框,说<em>不能</em>创建快捷图标。其实我也估计到这个<em>不能</em>创建快捷图标很可能是个烟雾,但是什么病毒禁止了我使用<em>运行</em><em>程序</em>啦?又怎么恢复啦?或者根本就不是病毒惹的祸,那又是什么引起的啦?
as 运行找不到程序名称,程序不能运行
错误如下所示可能原因和解决方法:1、<em>程序</em>初始化不完整,点击try again再次<em>运行</em>试试,可能成功2、同步项目 、重构或者clean项目以上两种方法我都试了都不管用,然后再下面看见了一个错误后来发现,我的依赖没有27+,我把27+修改成我的as中存在的v7依赖包:下图为添加和删除依赖之后会自动同步,同步完成即可,完成之后没有错误,如下图...
程序有时候能运行,有时候不能运行!!!!
最近用Delphi2010 开发了一个小<em>程序</em>,包括:两个组件、一个Dll ,在Dll中动态创建几个组件,另外写了一个测试<em>程序</em>(projec1.exe),用于调用Dll ,但是,不知道怎么回事,在按F9 以后,<em>程序</em>启动半截,就没有反应了,需要在进程里强制结束project1.exe;然而,有时候就成功<em>运行</em>了,真是郁闷!需要说明的时候,编译出来的<em>程序</em>,可以单独正常执行!rnrnrn 在调试<em>运行</em>时,总是<em>运行</em>到这(<em>运行</em>信息):Module Load:srvcli.dll . No Debug Info. Base Address:$75670000. Process project1.exe ,<em>程序</em>就不往下执行了!!!rnrnrn只要一调这个接口函数——即使函数什么都不做,就会有问题:rnprocedure DisPlay_Init(AppHandle, ParentForm: HWND; width, Height: integer;rn Conn: PConn; ServerIP, RemotePort: ShortString); stdcall;rnbeginrn if FrmDisplay = nil thenrn FrmDisplay := TFrmDisplay.Create(nil);rn FrmDisplay.ParentWindow := ParentForm;rn FrmDisplay.Left := 0;rn FrmDisplay.Top := 0;rn FrmDisplay.width := width;rn FrmDisplay.Height := Height;rn FrmDisplay.AppHWND := AppHandle;rn FrmDisplay.Init(Conn, ServerIP, RemotePort);rn FrmDisplay.Show; rnend;rnrnrnrn
为什么不能asp程序不能运行啊?~·
代码是这样的rnrnrnrn 第一个asp例子rnrnrn现在时间是: rn rn=0)and(hr=12)and(hr=6)and(hrrnrnrn但是rn这个又能<em>运行</em>rnrnrnrnrn>rnHello World! rnrnrnrnrn 不知道怎么回事
为什么这个程序不能运行
void CMy3_2Dlg::OnBtnGo() rnrn UpdateData(true);rn CString product[3]="E+E","E*E","i";rn CString strInput=m_strInput+"#",strLeft;rn int nLength=strInput.GetLength();rn CString stack[100];rn int top=-1,flag,find,k;rn stack[++top]="#";rn while(nLength>1)rn rn strLeft=strInput.Left(1);rn stack[++top]=strLeft;rn for(int m=0;m0&&find==0)rn rn strTemp=strTemp+stack[k--];rn for(int i=0;i0)rn rn stack[++top]=strCopy.Left(1);rn strCopy=strCopy.Right(strCopy.GetLength()-1);rn rn rn rn while(find==1);rn --nLength;rn strInput=strInput.Right(nLength);rn rn k=top;rn CString str="";rn for(k=0;k;rn UpdateData(false);rn rnrn
Tomcat 不能运行Jsp程序?
安装好Tomcat 5.0后,测试能通过,<em>不能</em>正常<em>运行</em>Jsp<em>程序</em>,报错是rntype :Status reportrnmessage: /myjsp/firstjsp.jsprndescription: The requested resource (/myjsp/firstjsp.jsp) is not available.rn(myjsp/firstjsp.jsp)是测试文件.rn请问是错在哪个地方?
程序不能运行,代码简单
[color=#FF0000]类的定义[/color],定义节点,每个节点有x和y两个元素rn[code=C/C++][/code]rn#ifndef NODES_Hrn#define NODES_Hrnrnclass nodesrnrnpublic:rn double x;rn double y;rn nodes(): x(1.0), y(1.0) rn;rnrn#endifrnrnmain()函数rn[code=C/C++][/code]rn#include "stdafx.h"rn#include "nodes.h"rn//#include "cells.h"rn#include rn#include rnusing namespace std;rnrnint _tmain(int argc, _TCHAR* argv[])rnrn FILE *fp1;rn if ((fp1=fopen("node.txt","r+"))==NULL)rn printf("can not open file node.txt\n");rn rn nodes *ptr_node = new nodes [410];//node.txt文件有410行rn nodes *ptr_node_2; rnrn for(ptr_node_2 = ptr_node; ptr_node_2 != ptr_node + 410; ++ptr_node_2)rn printf("%lf , %lf\n", ptr_node_2->x, ptr_node_2->y);rnrn printf("***************\n\n");rn rn while (!feof(fp1)) //将文件中的数据读到ptr_node中rn rn fscanf( fp1, "%lf %lf\n", &(ptr_node->x), &(ptr_node->y) );rn ++ptr_node;rn rnrn printf("################\n\n");//该行之后出现<em>运行</em>错误rnrn for(ptr_node_2 = ptr_node; ptr_node_2 != ptr_node + 410; ++ptr_node_2)rn printf("%lf , %lf\n", ptr_node_2->x, ptr_node_2->y);rn rn delete [] ptr_node;rn fclose(fp1);rn rn system("pause");rn return 0;rnrnrn[color=#FF0000]部分数据[/color]rn9.99999866e-002 9.49999988e-002rn9.99999866e-002 9.99999866e-002rn9.99999866e-002 8.99999961e-002rn9.99999866e-002 8.50000009e-002rn9.99999866e-002 7.99999982e-002rn9.99999866e-002 7.49999955e-002rn9.99999866e-002 7.00000003e-002rn9.99999866e-002 6.49999976e-002rn9.99999866e-002 5.99999987e-002rn
我的程序为什么不能运行
我是Linux的新手,我是这写了一个最简单的<em>程序</em>也编译生成可执行文件了,<em>程序</em>如下:rn#include"stdio.h"rnmain( )rn printf("Hello World!");rnrnrn可是屏幕没有输出,哪位高手可以告诉我为什么??rn谢谢
程序不能同时运行???
求<em>程序</em><em>不能</em>同时<em>运行</em>???
Android Studio--不能运行程序
今天<em>运行</em>之前的一个Android<em>程序</em>,发现<em>不能</em><em>运行</em>了,手动指定<em>运行</em>的module也<em>不能</em>,没有可用的module可以选择。如图: 经过一番的网上找资料,突然发现之前自己把这个工程作为一个库<em>运行</em>了,没有吧build.gradle中的内容改过来,如图:
window2000下不能运行asp.net程序
win2000 server sp4 rolluprn.net framework 1.1 已经<em>运行</em>window update升级到最新rnIIS 5.0rnrn<em>运行</em>报错,页面显示如下错误rnServer Application Unavailable rnThe web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request. rnrnAdministrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur. rnrn在系统事件处看到错误如下:rnFailed to execute the request because the ASP.NET process identity does not have read permissions to the global assembly cache. Error: 0x80070002 系统找不到指定的文件。rnrn<em>运行</em> aspnet_regiis -r,问题依旧。rn<em>程序</em>在window2003下<em>运行</em>正常,求救!!!
请问,程序为什么不能运行
我刚装了一个C++Builder5.0,但是它只能<em>运行</em>已经编好的<em>程序</em>,对新编的不起作用,就像没有保存工程文件一样。请问这是什么问题?
为什么不能运行applet程序
我的classpath设置的是\jdk1.5\jre\lib\rt.jar;.;rn一<em>运行</em>applet就提示说找不到main文件rn其他的都可以<em>运行</em>rn这是为什么呢?rn谢谢
为什么我的程序不能运行
当我编译我的<em>程序</em>的时候,连接的时候老出现如下错误。为什么?我是在VC环境下编译的rntemp3.obj : error LNK2001: unresolved external symbol _WSACleanup@0rntemp3.obj : error LNK2001: unresolved external symbol _WSAStartup@8rntemp3.obj : error LNK2001: unresolved external symbol _send@16rntemp3.obj : error LNK2001: unresolved external symbol _connect@12rntemp3.obj : error LNK2001: unresolved external symbol _socket@12rntemp3.obj : error LNK2001: unresolved external symbol _inet_addr@4rntemp3.obj : error LNK2001: unresolved external symbol _htons@4rnDebug/temp3.exe : fatal error LNK1120: 7 unresolved externalsrnError executing link.exe.rnrntemp3.exe - 8 error(s), 3 warning(s)
这个程序为什么不能运行
Java编程思想第4版中的一个例子, 为何<em>不能</em><em>运行</em>?rn执行时一直挂在那,没输出。rnrnPS D:\java\source> javac annotations/AtUnitExample1.javarnPS D:\java\source> java annotations/AtUnitExample1rnrn[code=Java]rn//: annotations/AtUnitExample1.javarnpackage annotations;rnimport net.mindview.atunit.*;rnimport net.mindview.util.*;rnrnpublic class AtUnitExample1 rn public String methodOne() rn return "This is methodOne";rn rn public int methodTwo() rn System.out.println("This is methodTwo");rn return 2;rn rn @Test boolean methodOneTest() rn return methodOne().equals("This is methodOne");rn rn @Test boolean m2() return methodTwo() == 2; rn @Test private boolean m3() return true; rn // Shows output for failure:rn @Test boolean failureTest() return false; rn @Test boolean anotherDisappointment() return false; rn public static void main(String[] args) throws Exception rn OSExecute.command(rn "java net.mindview.atunit.AtUnit AtUnitExample1");rn rn /* Output:rnannotations.AtUnitExample1rn . methodOneTestrn . m2 This is methodTwornrn . m3rn . failureTest (failed)rn . anotherDisappointment (failed)rn(5 tests)rnrn>>> 2 FAILURES <<
这段程序不能运行,为什么?
在一个webapps下面,有两个文件,我用模拟器访问,函数没有执行,只是将函数的文本形式显示出来了,为什么呀?rnrnCode for RefreshExample.wmlrnrnrnrnrnrn rn refresh examplern rn rn rn rnrnrnrn rn refreshed!rnrnrnrnrnrn rnCode for RefreshExample.wmlsrnextern function findrefresh()rnrn WMLBrowser.refresh();rn WMLBrowser.go("RefreshExample.wml#card2");rn;rn
关于程序不能运行的问题
为什么我在点可<em>运行</em>的<em>程序</em>(像金山词霸之类)的东东时都会有一对话框。rn 找不到文件"C:\Program file\InternetExplorer\......exe"(或它的组件之一)。请确定路径和文件名是否正确,而且所需要的库文件均可用。 就边安装<em>程序</em>都<em>运行</em>不了。请问这是怎么回事? 在线等,急。
vs2013不能运行程序,求解
![图片说明](https://img-ask.csdn.net/upload/201509/18/1442567116_368031.png)rn<em>运行</em>后就出现这个,我用的win7
regedit.exe程序为什么不能运行
rn在CE下<em>运行</em>regedit.exe失败,提示找不到REGEDTI或某一个组件?regedit还依赖其他的什么库文件吗?
为什么这个程序不能运行
#include rn#include rnint main (int argc,char **argv)rnrn char c;rn int space=0,table=0,enter=0;rn printf("Please input a string :\n");rn scanf("%c",&c);rn while (c!=EOF)rn rn switch(c)rn rn case 32:space++;break;rn case 9:table++;break;rn case 10:enter++;break;rn default :break;rn rn scanf("%c",&c);rn rn printf("The number of space :%d\n",space);rn printf("The number of table :%d\n",table);rn printf("The number of enter :%d\n",enter);rn getchar();rn return 0;rn
运行程序电脑不能关机了
private void Form1_FormClosing(object sender, FormClosingEventArgs e)rn rn this.WindowState = FormWindowState.Minimized; //最小化窗口rn this.ShowInTaskbar = false; //在Windows任务栏中不显示窗体rn e.Cancel = true; //取消窗体关闭事件rnrn rn rn private void notifyIcon1_DoubleClick(object sender, EventArgs e)rn rn if (this.WindowState == FormWindowState.Minimized) //判断窗体是不是最小化rn this.WindowState = FormWindowState.Normal; //如果是最小化就把窗体状态改为默认大小rn this.Activate(); //激活窗体并赋予焦点,这句话可以不写rn this.ShowInTaskbar = true; //在Windows任务栏中显示窗体。rn this.Show();rn
vb6的程序不能独立运行
本人用VB6写了一个库存管理<em>程序</em>,用的是Access数据库,用VB自带的打包rn<em>程序</em>打包后,在另外一台没有装VB6的机器上安装,提示"<em>运行</em>时错误 3706rn未找到提供者",但我将VB6再装一遍后,就能<em>运行</em>了。希望各位高手指点。rn谢谢!
这个程序为啥不能运行
//Fig 6-9:Craps.javarn//Crapsrnimport java.awt.*;rnimport java.awt.event.*;rnimport javax.swing.*;rnrn public class Craps extends JApplet implements ActionListenerrn rn final int WON=0,LOST=1,CONTINUE=2;rn boolean firstRoll=true;rn int sumofDice=0;rn int myPoint=0;rn int gameStatus=CONTINUE;rn rn JLabel die1Label,die2Label,sumLabel,pointLabel;rn JTextField firstDie,secondDie,sum,point;rn JButton roll;rn rn public void init()rn Container c=getContentPane();rn c.setLayout(new FlowLayout());rn rn die1Label=new JLabel("DIE 1");rn c.add(die1Label);rn firstDie=new JTextField(10);rn firstDie.setEditable(false);rn c.add(firstDie);rn rn die2Label=new JLabel("Die 2");rn c.add(die2Label);rn secondDie=new JTextField(10);rn secondDie.setEditable(false);rn c.add(secondDie);rn rn sumLabel=new JLabel("sum is");rn c.add(sumLabel);rn sum=new JTextField(10);rn sum.setEditable(false);rn c.add(sum);rn rn pointLabel=new JLabel("point is ");rn c.add(pointLabel);rn point=new JTextField(10);rn point.setEditable(false);rn c.add(point);rn rn roll=new JButton("Roll DICE");rn roll.addActionListener(this);rn c.add(roll);rn rn rn public void actionperformed(ActionEvent e)rn rn play();rn rn rn public void play()rn rn if(firstRoll)rn sumofDice=rollDice();rn rn switch (sumofDice)rn case 7:case 11:rn gameStatus=WON;rn point.setText("");rn break;rn case 2:case 3: case 12:rn gameStatus=LOST;rn point.setText(Integer.toString(myPoint));rn firstRoll=false;rn rn rn elsern sumofDice=rollDice();rn rn if (sumofDice==myPoint)rn gameStatus=WON;rn elsern if(sumofDice==7)rn gameStatus=LOST;rnrnif (gameStatus==CONTINUE)rn showStatus("Roll again");rn elsern if(gameStatus==WON)rn showStatus("player wins.click roll dice to play again");rn elsern showStatus("player loses.click roll Dice to play again");rn rn firstRoll=true;rn rn rn rn public int rollDice()rn rn int die1,die2,workSum;rn rn die1=1+(int)(Math.random()*6);rn die2=1+(int)(Math.random()*6);rn workSum=die1+die2;rn rn firstDie.setText(Integer.toString(die1));rn secondDie.setText(Integer.toString(die2));rn sum.setText(Integer.toString(workSum));rn rn return workSum;rn rn rn <em>运行</em>后提示rn--------------------Configuration: JDK version --------------------rnC:\java1\6\U6\Craps.java:7: Craps is not abstract and does not override abstract method actionPerformed(java.awt.event.ActionEvent) in java.awt.event.ActionListenerrn public class Craps extends JApplet implements ActionListenerrn ^rn1 errorrnrnProcess completed.rn
请看看我的程序不能运行
#ifndef VEHICLE_Hrn#define VEHICLE_Hrn#includernusing namespace std;rnclass Vehiclernrn int num;rn string capacity;rn public:rn Vehicle(int num,string capacity):num(num),capacity(capacity)rn int getNum()return num;rn string getCapacity()return capacity;rnrn;rn#endif // VEHICLE_Hrnrn#ifndef TYPE_Hrn#define TYPE_Hrn#include"Vehicle.h"rn#includern#includernusing namespace std;rnclass Driver;rnclass Type: public Vehiclernrn string v_type;rn Driver *assignd_driver;rn public:rn Type(int num,string capacity,string v_type):Vehicle(num,capacity),v_type(v_type),assignd_driver(NULL)cout<<<<<< Create Driver\n"rn <<<<>input;rn cout<<>id;rn cout<>name;rn s.push_back(new Driver(id,name));rn cout<>createmore;rn cout<<>num;rn cout<>type;rn cout<>capacity;rn m.push_back(new Type(num,type,capacity));rn cout<>createmore;rn cout<<<;rn for(int i=0;iprintVehicle();rn rn getch();rn rnrn while(input!=5);rn getch();rn rn
一段在Dev-C++下不能运行程序
rn 下面这段C++<em>程序</em>在Dev-C++4.9.8.0下无法<em>运行</em>,但在TC++下能<em>运行</em>;去掉"#include"和“getch();"后在linux下用g++也能<em>运行</em>,各位高手看看是怎么回事。rn<em>程序</em>如下:rnrn#includern#includernusing namespace std;rnint main()rnrn const float factor = 2.54;rn float x,in,cm;rn char ch = 0;rn cout<>x;rn cin>>ch;rn rn switch(ch)rn case'i':rn in = x;rn cm = x*factor;rn break;rn rn case 'c':rn in =x/factor;rn cm = x;rn break;rn rn default:rn in = cm = 0;rn break;rn rn cout<
为什么这个程序不能运行?
#includern void main()rn int i;rn int a[3][3]=1,2,3,4,5,6,7,8,9;rn for(i=0;i<
编译后的程序不能运行
我用visual foxpro 6.0 编了一个<em>程序</em>,在FOXPRO<em>运行</em>环境中正常,可是编译成EXE文件之后,双击,却无任何显示,但内存中有该<em>程序</em>。rn已做的工作有:read events/clear eventsrn 模式设为1rn均<em>不能</em>成功,请各位高手指点!rnrn
为什么不能运行这个程序
我照着书上写了个<em>程序</em>,编译后准备<em>运行</em>它,结果出现这个错误。rnrnException in thread "main" java.lang.NoClassDefFoundError: volcanorobot (wrong nrname: VolcanoRobot)rn at java.lang.ClassLoader.defineClass0(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:493)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)rn at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)rn at java.net.URLClassLoader.access$100(URLClassLoader.java:56)rn at java.net.URLClassLoader$1.run(URLClassLoader.java:195)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:188)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:299)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:255)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)rnrn大家不会介意一个超级大低手的问题吧!我已经把jdk的路径加到path里面了,使用的是jdk1.3.1_02。
Qt Creator 程序打包 过程 处理qt环境可以运行,(没有qt环境不能运行)干净电脑
要求:<em>程序</em>没有问题。 环境:mingw + <em>qt</em>creator release模式下编译<em>运行</em>成功。 1.回到release目录下,点击<em>程序</em>是否能<em>运行</em>。 如果<em>不能</em><em>运行</em>; 应该是没有添加环境变量 ; 2.windeploy<em>qt</em> <em>程序</em>名.exe –qmldir 编译器路径下的qml文件夹 可以cmd命令,也可以是<em>qt</em>creator自带 3.通过windeploy<em>qt</em>命令,点击你...
我的程序为什么不能运行??
为什么<em>程序</em><em>不能</em><em>运行</em>??rn#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<<
求人急救!程序不能运行
<em>程序</em><em>不能</em><em>运行</em>,错误致命代码。我用调试器打开任何一个表单sct文件,VF都会说"内部一致性错误",致命错误:rn异常代码=C0000005,异常代码=C00005,求人急救!
终端上程序不能运行
rn 我采用的是S32410的BSP 是优龙公司的FS2410板来的, 因为该公司提供的BSP里面不支持MFC,所以,就在增加了MFC, 编译成功手,并导出SDK及安装,在EVC++中,建立MFC应用<em>程序</em>,编译成功手,下载到终端上,<em>运行</em>出错呢rn 提示: "demo"(demo是编译好的就应用<em>程序</em>)不是有效的windows CE应用<em>程序</em>rnrn 我已选用了刚选导入的SDK模拟器呀, 这是怎么回事呢???急急
ASP程序为什么不能运行
一个写好的ASP文件,用IE打开是只显示源代码,为什么?可能有什么方法调试解决?
程序在其它电脑不能运行
我用DB文件作数据库写的一个软件,在本机上<em>运行</em>都好好的,但是在别的机器上就<em>运行</em>不了,不知道怎么回事,rn错误提示:rnException EDBEngineError IN module si.exe at 000b0e3ernan error occurred while attempting to initialize the borland database engine(error $2108)
程序不能在手机上运行???
我用(新版)Delphi .Net 2006 For WinCE编译工具 编译了一个WINFORM<em>程序</em>可在Microsoft Windows CE 5.0模拟器上<em>运行</em>,但拷贝到手机上就<em>不能</em><em>运行</em>,何解??手机已经装上 .NET Compact Framework 1.0 SP3 Redistributable
asp程序为什么不能运行
我是在网站上下载的网站全站<em>程序</em>,但是放到我的电脑里面<em>运行</em>很多网站都是这样,不过提示的文件名和行数不同,有些就正常显示,不过当向数据库删除数据或者添加数据的时候,就提示类似的错误。这是为什么?是什么出错了?rn谢谢大家rnrnrnrn技术信息(用于支持人员)rnrn错误类型:rnMicrosoft JET Database Engine (0x80004005)rn操作必须使用一个可更新的查询。rn/cichina/lib/inctop.asp, 第 19 行rnrnrn浏览器类型:rnMozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; MyIE2) rnrn网页:rnGET /cichina/index.asp rnrn时间:rn2004年5月13日, 0:41:54rn
不能运行DOS程序的问题
我的系统<em>不能</em><em>运行</em>MS-DOS<em>程序</em>了,一<em>运行</em>DOS<em>程序</em>,就出现如下错误:rn--------------------------------------------------------------------------------------rnC:\WINDOWS\SYSTEM32\AUTOEXEC.NT. 系统文件不适用于<em>运行</em>MS-DOS与Microsoft Windows 应用<em>程序</em>。请选择“关闭”终止应用<em>程序</em>。rn--------------------------------------------------------------------------------------rn有哪问遇到过这种情况,指点一下啊,谢谢了!rn
编译好的程序不能运行
小弟用VC6.0做了一个串口通讯的<em>程序</em>,编译好后在别人的电脑上却<em>不能</em><em>运行</em>,我已经把mscomm32.ocx拷贝到<em>运行</em>电脑的相应目录下了。rn双击<em>程序</em>后,完全没有反映,连错误提示信息都没有,郁闷ing
为什么我的程序不能运行?
我用vc++6.0编的c++<em>程序</em>(不是mfc),连接,编译,调试都通过了,<em>运行</em>(按那个叹号)结果也正常,可是我无论在win98下双击生成的.exe文件还是在win98的dos下<em>运行</em>,等到输出结果是都是一闪而过,根本看不到结果,请问这是为什么?
这个程序怎么不能运行
#include rn #include rn int i;rnrn struct cccrn char room[2];rn char week[2];rn c[2];rn struct aaarn /*定义一个结构变量*/rn char room[10];rn char week[10];rn char day[10];rn char time[10];rn a[100];rnrn struct bbbrn rn char name[10],tel[10];b[100];rnrn book()rn rnrn FILE *fp;rn char c='Y';rn int j=0; gotoxy(1,17);rnrnfp=fopen("wage.txt", "rd");rnrnwhile(!feof(fp))rn fread(&a[i],sizeof(struct aaa),1,fp);printf("\n");i++;rnrn while(c=='Y'||c=='y') /*判断是否继续循环*/rn rn printf("\nroom:");rn scanf("%s", a[i].room); /*输入姓名*/rn printf("week:");rn scanf("%s", a[i].week);rn printf("day:");rn scanf("%s", a[i].day);rn printf("time:");rn scanf("%s", a[i].time);rnrn bijiao() ;rnrnrn fclose(fp);rnrn fp=fopen("wage.txt", "a"); rn if(fwrite(&a[i],sizeof(struct aaa),1,fp)!=1)rn printf("\n not ok");rnrnrnrnwhile(1)rn rn printf("Continue?");rn c=getche();rn if(c=='Y'||c=='y')rn fclose(fp);break;rn if(c=='n'||c=='N')rn fclose(fp); start();rn rn rn fclose(fp);start();rnrn bijiao()rn int j;rn for(j=0;j
VisualStudio不能运行web程序
新建的asp.net空web应用<em>程序</em>,直接<em>运行</em>,就显示[img=https://img-bbs.csdn.net/upload/201311/07/1383800072_456154.png][/img]rn之前做的form<em>程序</em>就没问题,先在也能打开,怎么回事,要重装的节奏么?
VS2010开发的程序不能运行???
请问,我用VS2010写了个MFC<em>程序</em>(新建过程,没有加任何自己的代码),在Windows2000的操作系统上<em>运行</em>,提示“不是有效的win32应用<em>程序</em>”,是怎么回事?rn 在我的开发机上正常<em>运行</em>,开发机操作系统是WindowsXP(打了SP3补丁)。rn 在Windows2000的机器上安装dotNetFramework4.0,也提示“不是有效的win32应用<em>程序</em>”。rn VS2010写的<em>程序</em>到底对操作系统有什么要求?rn 谢谢回答。
编译成功,不能运行程序
Build: 0 succeeded, 0 failed, 1 up-to-date, 0 skipped 是什么意思?
asp.net 程序不能运行的问题
我原来的代码是在win2k+vb.net 2003下开发的rn搬的别人的机器上,打开工程时就 报:asp.net 侦测rn到.netframework 不是1.1版我之前安装的.netframernwork 2.0卸载后,还是同样的问题
Linux(红帽)安装oracle10g下载
linux系统安装oracle10g数据库,参照文档已成功安装过。 相关下载链接:[url=//download.csdn.net/download/lianghao3810/4303901?utm_source=bbsseo]//download.csdn.net/download/lianghao3810/4303901?utm_source=bbsseo[/url]
2015年移动信息化CIO选型研究报告下载
随着经济环境、人文环境、网络环境的不断改变,市场潜能开始爆发,移动信息化办公方式在企业内部环境与外部环境的双重刺激下,从被动接受到主动部署,逐渐走向深入应用阶段。 相关下载链接:[url=//download.csdn.net/download/sinat_18974753/8699129?utm_source=bbsseo]//download.csdn.net/download/sinat_18974753/8699129?utm_source=bbsseo[/url]
智能车摄像头组串口调试工具下载
智能车摄像头组串口调试工具 相关下载链接:[url=//download.csdn.net/download/u010234031/8995019?utm_source=bbsseo]//download.csdn.net/download/u010234031/8995019?utm_source=bbsseo[/url]
相关热词 c# stream 复制 android c# c#监测窗口句柄 c# md5 引用 c# 判断tabtip 自己写个浏览器程序c# c# 字符串变成整数数组 c#语言编程写出一个方法 c# 转盘抽奖 c#选中treeview
我们是很有底线的