lua-运行程序报这个错误怎么解决噢

问题描述

运行程序报这个错误怎么解决噢

[LUA-print] Debugger v1.1.0
[LUA-print] Debugger: Trying to connect to 127.0.0.1:10000 ...
[LUA-print] Debugger: Connection succeed.
debug args = require('debugger')('127.0.0.1','10000','luaidekey',nil,'win','/TestRun/','C:/Users/xiaopi/AppData/Local/PrebuiltRuntimeLua/debugruntime/')
can not get file data of d:Program FilesLua5.1luaCocos2d.lua
[LUA ERROR] [string "src/game/res/Require.lua"]:2: module 'Cocos2d' not found:
no field package.preload['Cocos2d']
no file '.Cocos2d.lua'
no file 'E:cocosworksingleTestRunruntimewin32luaCocos2d.lua'
no file 'E:cocosworksingleTestRunruntimewin32luaCocos2dinit.lua'
no file 'd:Program FilesLua5.1luaCocos2d.luac'
no file '.Cocos2d.dll'
no file 'E:cocosworksingleTestRunruntimewin32Cocos2d.dll'
no file 'E:cocosworksingleTestRunruntimewin32loadall.dll'

解决方案

#include
#define Vmas 15
typedef char VType;
typedef int EType;
typedef struct{
VType vexs[Vmax];
EType edges[Vmax][Vmax];
int Vnum, Enum;
}MGRAPH;

MGRAPH CREATMG(MGRAPH G){
int i,j;
char vi,vj;
printf("please intput the elemnts of vexs: n");
for(i=0;(G.vexs[i]=getchar())!='#'&&i<Vmax;i++);
G.Vnum=i;
for(i=0;i<G.Vnum;i++)
for(j=0;j<G.Vnum;j++)
G.edges[i][j]=0;
G.Enum=0;
fflush(stdin);
printf("please input the %d arc such as ab:",G.Enum+1);
scanf("%c%c",&vi,&vj);
fflush(stdin);
while(vi!='#'&&vj!='#'&&G.Enum<G.Vnum*(G.Vnum)-1){
if(vi==vj)
printf("input errorn");
else{
i=LOC(G.vexs.vi);
j=LOC(G.vexs.vj);
if(i==1 || j==-1)
printf("no vexsn");
else
if(G.edges[i][j]==1)
printf("input repetitionousn");
else{
G.edges[i][j]=1;
G.edges[i][j]=1;
G.Enum++;
}
printf("please input the *d arc :",G.Enum+1);
scanf("%c%c",&vi,&vj);
fflush(stdin);
}
return(G);
}
void SHOWMGRAPH(MGRAPH(G))
{
int i,j;
printf(" ");
for(i=0;i<G.Vnum;i++)
printf("%c ",G.vexs[i]);
printf("n");
for(i=0;i<G.Vnum;i++)
{
printf("%c ",G.vexs[i]);
for(j=0;j<G.Vnum;j++)
printf("%d ",G.edges[i][j]);
printf("n");
}

}
int LOC(char vexs[Vmax],char v)
{
int i;
for(i=0;vexs[i]!=v;i++)
if(i<strlen(vexs))return i;
else return -1;

}

void main()
{
MGRAPH G1;
printf("GreatGraphics start; n");
G1=CREATMG(G1);
printf("GreatGraphics success! n");
SHOWMGRAPH(G1);
}

}

时间: 2024-09-17 04:47:12

lua-运行程序报这个错误怎么解决噢的相关文章

IIS7使用.NET Framework v4.0运行库报500错误的解决办法_win服务器

故障说明:1)Windows Server 2008 R2环境下安装的IIS7.52)安装.Net4.53)运行网站,报500错误:检查了webconfig等代码,没有问题 解决办法:重新注册.Net4.5,过程如下:一.开始,查找框中输入cmd字眼,然后出现cmd.exe应用程序二.cmd.exe上右键,选择用管理员身份来运行. 三.往命令行窗口中粘贴以下命令,回车,完成注册. 复制代码 代码如下: "%WINDIR%\Microsoft.NET\Framework\v4.0.30319\as

lnk1120-vs2010运行程序报错:error LNK2019: 无法解析的外部符号

问题描述 vs2010运行程序报错:error LNK2019: 无法解析的外部符号 如题,我在vs2010环境下做C++练习题时出现该错误.程序代码如下: //array.h#ifndef ARRAY_H#define ARRAY_Htemplate<typename T>class Array{public: Array(int n);//数组首地址不用指定,待会分配 Array(Array &a); ~Array(); T getAt(int i);//返回第i个数组元素 voi

iphone-ios6的程序报错了错误

问题描述 ios6的程序报错了错误 ios6程序中显示了可达性错误,请明白的人帮我解决一下这个错误,不胜感激: @implementation Reachability static void ReachabilityCallback(SCNetworkReachabilityRef target SCNetworkReachabilityFlags flags void* info) {#pragma unused (target flags)NSCAssert(info != NULL @"

android studio-as上用build variant release方式运行程序报错

问题描述 as上用build variant release方式运行程序报错 android studio在build.gradle上配置好签名文件,然后build variant release方式运行程序报错,可是我用过可视化界面上打包签名程序,然后指定签名文件,输入密码啊结果是能出来一个release包,但是就是用过variant-release的方式直接运行就报错,卡了好久,有哪位大神帮下,错误见图. 解决方案 mongoDB报错Cannot find module '../build/

vs2003运行程序编译没有错误,运行出现问题

问题描述 vs2003运行程序编译没有错误,运行出现问题 无法启动此程序,因为计算机中丢失vsgu2_0D.dll.尝试重新安装该程序以解决此问题- 解决方案 你找找vsgu2_0D.dll 看看是干嘛用的. 解决方案二: 下载DLL文件复制到文件安装目录下即可,http://www.zhaodll.com/dll/v/201207/113362.html 32位系统也可复制到c:windowssystm32目录下 同理64位系统可复制到c:windowssyswow64目录下 解决方案三: 环

tomcat-myeclipse Tomcat7.0运行程序报错,起初是没有问题的

问题描述 myeclipse Tomcat7.0运行程序报错,起初是没有问题的 上周出现的问题,百度不到解决办法,重装了myeclipse,并且换了一个tomcat,不知怎么的突然能运行了,现在一看,又报相同的错 解决方案 java.lang.NoClassDefFoundError: Could not initialize class org.springframework.beans.factory.BeanCreationException at org.springframework.

短信-android运行程序报错,eglSufaceAttrib not implemented

问题描述 android运行程序报错,eglSufaceAttrib not implemented 这个报错是什么问题? W/EGL_emulation﹕ eglSurfaceAttrib not implemented. 初学者想写个读取手机短信的程序,上面那个错误搞不定,网上找的都有点问题跑不动,有没有人直接帮我写一个,能在后台显示结果就行,能在手机界面上显示更好啊 解决方案 eglSufaceAttrib没有实现 解决方案二: android的程序报错,error: Error: Str

运行程序打不开怎么解决?

  故障分析:造成运行打不开的原因有用户设置出现了问题找不到运行程序,电脑被中毒.也有可能是硬件故障造成.这些都是有一定可能性.桌面运行程序打不开怎么解决?解决方法如下: 一.运行没有找到 鼠标右击任务栏"开始菜单--自定义--高级",在最下方勾选"运行命令". 如果已经勾上了, 就先取消,确定退出,在重新进入高级选项,在勾选"运行"命令查看运行shift能打开. 二.安全模式修复 如果在正常情况下电脑不打开运行程序,那么尝试去安全模式下是否能打

java 游戏开发-Java 运行程序时,错误调用函数,

问题描述 Java 运行程序时,错误调用函数, 做的一个棋类小游戏,有条规则是棋子变成王后,可以远距离吃子,在编写王吃子规则时,需要使用if语句对是否是王进行判断,但是在运行时,还没有变成王,就输出判断为王时的提示语句,