| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1439 人关注过本帖
标题:请问这里的local function definitions are illegal怎么解决呢?
只看楼主 加入收藏
找不到服务器
Rank: 4
等 级:贵宾
威 望:12
帖 子:2937
专家分:1
注 册:2006-8-29
结帖率:33.33%
收藏
 问题点数:0 回复次数:1 
请问这里的local function definitions are illegal怎么解决呢?
有人说是少了个{,但检查发现并没有缺漏(源代码在最下方)
错误列表
Compiling...
ShowArticle.cpp
g:\pspdev\jge\projects\htmlreader\showarticle.cpp(38) : error C2601: 'CCreate' : local function definitions are illegal
g:\pspdev\jge\projects\htmlreader\showarticle.cpp(46) : error C2601: 'CDestroy' : local function definitions are illegal
g:\pspdev\jge\projects\htmlreader\showarticle.cpp(52) : error C2601: 'Cshowbg' : local function definitions are illegal
g:\pspdev\jge\projects\htmlreader\showarticle.cpp(56) : fatal error C1004: unexpected end of file found

ShowArticle.cpp
// ShowArticle.cpp: implementation of the ShowArticle class.
//
//////////////////////////////////////////////////////////////////////

#include "ShowArticle.h"
#include <stdio.h>

#include <JGE.h>
#include <JRenderer.h>
#include <JLBFont.h>
#include <JGE.h>
#include <JRenderer.h>
#include <JLBFont.h>
#include <JSprite.h>
#include <JFileSystem.h>
#include <JGBKFont.h>

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

ShowArticle::ShowArticle()
{

}

ShowArticle::~ShowArticle()
{

}
void ShowArticle::Callnull()
{
    mBgTex1 = NULL;
    mBg1 = NULL;
{
    
void ShowArticle::CCreate()
{
    JRenderer* renderer = JRenderer::GetInstance();
    mBgTex1 = renderer->LoadTexture("bg.jpg");
    mBg1 = new JQuad(mBgTex1, 0, 0, 480, 272);
}

void ShowArticle::CDestroy()
{
    SAFE_DELETE(mBgTex1);
    SAFE_DELETE(mBg1);
}

void ShowArticle::Cshowbg()
{
    JRenderer* renderer = JRenderer::GetInstance();        
       renderer->RenderQuad(mBg1, 0, 0);
}

HTMLReader.rar (952.06 KB)
搜索更多相关主题的帖子: function definitions illegal local 
2008-01-18 11:30
找不到服务器
Rank: 4
等 级:贵宾
威 望:12
帖 子:2937
专家分:1
注 册:2006-8-29
收藏
得分:0 
有人知道吗?

史上点击数最高的贴
http://bbs.bccn.net/thread-146005-1-1.html
2008-01-19 19:12
快速回复:请问这里的local function definitions are illegal怎么解决呢?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018443 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved