2 pm wq pm_wq 于 2014.12.13 15:50 提问

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

[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 Files\Lua\5.1\lua\Cocos2d.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:\cocosworksingle\TestRun\runtime\win32\lua\Cocos2d.lua'
no file 'E:\cocosworksingle\TestRun\runtime\win32\lua\Cocos2d\init.lua'
no file 'd:\Program Files\Lua\5.1\lua\Cocos2d.luac'
no file '.\Cocos2d.dll'
no file 'E:\cocosworksingle\TestRun\runtime\win32\Cocos2d.dll'
no file 'E:\cocosworksingle\TestRun\runtime\win32\loadall.dll'

1个回答

baidu_24933099
baidu_24933099   2014.12.30 11:36

#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 error\n");
else{
i=LOC(G.vexs.vi);
j=LOC(G.vexs.vj);
if(i==1 || j==-1)
printf("no vexs\n");
else
if(G.edges[i][j]==1)
printf("input repetitionous\n");
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);
}

}

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!