Xenon 2000项目pcf

编程入门 行业动态 更新时间:2024-10-28 06:28:07
本文介绍了Xenon 2000项目pcf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我试图通过mags(最终),但第一个是给我 代码warrior'的编译器给我以下错误/警告,任何帮助 please? 错误:未定义标识符''DIK_OEM_102'' gs_keycodes.h第106行gsKEY_OEM_102 = DIK_OEM_102, 项目:demo1 .mcp,目标:Windows C ++ GUI调试,源文件:demo1.cpp 错误:未定义标识符''DIK_PAUSE'' gs_keycodes.h第114行gsKEY_PAUSE = DIK_PAUSE, 项目:demo1.mcp,目标:Windows C ++ GUI调试,源文件:demo1.cpp 错误:声明语法错误 gs_scoretable.h第23行const int gsSCORE_NAME_SIZE = 3; 项目:demo1.mcp,目标:Windows C ++ GUI调试,源文件:demo1.cpp 错误:声明语法错误 gs_soundsystem.h第24行类gsCSoundSystem:public gsCObject 项目:demo1.mcp,Tar获取:Windows C ++ GUI调试,源文件:demo1.cpp 错误:声明语法错误 gs_soundsystem.h第25行{ 项目:demo1.mcp,目标:Windows C ++ GUI调试,源文件:demo1.cpp 错误:声明语法错误 gs_soundsystem.h line 26私有: 项目:demo1.mcp,目标:Windows C ++ GUI调试,源文件:demo1.cpp 错误:声明语法错误 gs_soundsystem.h第33行public: 项目:demo1.mcp,目标:Windows C ++ GUI调试,源文件:demo1.cpp 警告:C ++中不再支持隐式''int'' gs_soundsystem.h第34行gsCSoundSystem(); 项目:demo1.mcp,目标:Windows C ++ GUI调试,源文件:demo1.cpp 错误:非法函数重载 gs_soundsystem.h第34行gsCSoundSystem(); 项目:demo1.mcp,目标:Windows C ++ GUI Debu g,源文件:demo1.cpp 警告:C ++不再支持隐式''int'' gs_soundsystem.h第35行gsCSoundSystem() ; 项目:demo1.mcp,目标:Windows C ++ GUI调试,源文件:demo1.cpp 错误:非法函数重载 gs_soundsystem.h第35行gsCSoundSystem(); 项目:demo1.mcp,目标:Windows C ++ GUI调试,源文件:demo1.cpp 错误:'''''预计 demo1.cpp第235行} 项目:demo1.mcp,目标:Windows C ++ GUI调试,源文件:demo1.cpp

im trying to work throught the mags(finially) but the first one is giving me code warrior''s compiler is giving me the following errors/warnings,any help please? Error : undefined identifier ''DIK_OEM_102'' gs_keycodes.h line 106 gsKEY_OEM_102 = DIK_OEM_102, Project: demo1.mcp, Target: Windows C++ GUI Debug, Source File: demo1.cpp Error : undefined identifier ''DIK_PAUSE'' gs_keycodes.h line 114 gsKEY_PAUSE = DIK_PAUSE, Project: demo1.mcp, Target: Windows C++ GUI Debug, Source File: demo1.cpp Error : declaration syntax error gs_scoretable.h line 23 const int gsSCORE_NAME_SIZE = 3; Project: demo1.mcp, Target: Windows C++ GUI Debug, Source File: demo1.cpp Error : declaration syntax error gs_soundsystem.h line 24 class gsCSoundSystem : public gsCObject Project: demo1.mcp, Target: Windows C++ GUI Debug, Source File: demo1.cpp Error : declaration syntax error gs_soundsystem.h line 25 { Project: demo1.mcp, Target: Windows C++ GUI Debug, Source File: demo1.cpp Error : declaration syntax error gs_soundsystem.h line 26 private: Project: demo1.mcp, Target: Windows C++ GUI Debug, Source File: demo1.cpp Error : declaration syntax error gs_soundsystem.h line 33 public: Project: demo1.mcp, Target: Windows C++ GUI Debug, Source File: demo1.cpp Warning : implicit ''int'' is no longer supported in C++ gs_soundsystem.h line 34 gsCSoundSystem(); Project: demo1.mcp, Target: Windows C++ GUI Debug, Source File: demo1.cpp Error : illegal function overloading gs_soundsystem.h line 34 gsCSoundSystem(); Project: demo1.mcp, Target: Windows C++ GUI Debug, Source File: demo1.cpp Warning : implicit ''int'' is no longer supported in C++ gs_soundsystem.h line 35 gsCSoundSystem(); Project: demo1.mcp, Target: Windows C++ GUI Debug, Source File: demo1.cpp Error : illegal function overloading gs_soundsystem.h line 35 gsCSoundSystem(); Project: demo1.mcp, Target: Windows C++ GUI Debug, Source File: demo1.cpp Error : ''}'' expected demo1.cpp line 235 } Project: demo1.mcp, Target: Windows C++ GUI Debug, Source File: demo1.cpp

推荐答案

" AJB 2.K.3" <安****** @ btopenworld>在消息中写道 news:bg ********** @ hercules.btinternet ... "A.J.B 2.K.3" <An******@btopenworld> wrote in message news:bg**********@hercules.btinternet... 我试图通过杂志(最终) )但第一个是给我代码warrior'的编译器给我以下错误/警告,任何帮助请吗? im trying to work throught the mags(finially) but the first one is giving me code warrior''s compiler is giving me the following errors/warnings,any help please?

[错误消息剪辑] 您希望在没有引用源代码的情况下获得有关错误消息的帮助 导致错误。你认为我们是通灵的吗? john

[error messages snipped] You are expecting help on error messages without quoting the source code that is giving rise to the errors. Do you think we are psychic? john

我想知道的是他们的意思吗? 我试图倾向于使用c ++,但我无法弄清楚它试图对我说什么 " John Harrison" <乔************* @ hotmail>在消息中写道 news:bg ************ @ ID-196037.news.uni-berlin.de ... all i want to know is what they mean? im trying to lean c++ but i cant work out what its try to say to me "John Harrison" <jo*************@hotmail> wrote in message news:bg************@ID-196037.news.uni-berlin.de... AJB 2.K.3 <安****** @ btopenworld>在消息中写道新闻:bg ********** @ hercules.btinternet ... "A.J.B 2.K.3" <An******@btopenworld> wrote in message news:bg**********@hercules.btinternet... 我试图通过杂志(最终)但第一次一个是 im trying to work throught the mags(finially) but the first one is

给我

代码warrior'的编译器给我以下错误/警告,任何 code warrior''s compiler is giving me the following errors/warnings,any

help

help

请?

[错误信息已剪断] 您希望在不引用源代码的情况下获取有关错误消息的帮助对错误。你认为我们是通灵的吗? 约翰

[error messages snipped] You are expecting help on error messages without quoting the source code that is giving rise to the errors. Do you think we are psychic? john

" John哈里森" <乔************* @ hotmail>在消息中写道 news:bg ************ @ ID-196037.news.uni-berlin.de ... "John Harrison" <jo*************@hotmail> wrote in message news:bg************@ID-196037.news.uni-berlin.de... [错误消息剪断] 您希望在没有引用导致错误的源代码的情况下提供有关错误消息的帮助。你认为我们是通灵的吗? 约翰 [error messages snipped] You are expecting help on error messages without quoting the source code that is giving rise to the errors. Do you think we are psychic? john

你想要4页代码吗? 他们不适合这里但是在这里。 1) 错误:未定义的标识符''DIK_OEM_102'' gs_keycodes.h line 106 gsKEY_OEM_102 = DIK_OEM_102 , code = gsKEY_OEM_102 = DIK_OEM_102, 2) 错误:未定义标识符''DIK_PAUSE'' gs_keycodes.h第114行gsKEY_PAUSE = DIK_PAUSE, code = gsKEY_PAUSE = DIK_PAUSE, 3) 错误:'';''预计 gs_scoretable.h第23行const Int gsSCORE_NAME_SIZE = 3; code = // ---------------------------------------------- --------------- const Int gsSCORE_NAME_SIZE = 3; // --- -------------------------------------------------- -------- 4) 错误:未定义的标识符''gsSCORE_NAME_SIZE'' gs_scoretable.h第30行char m_name [gsSCORE_NAME_SIZE]; code = // ----------- -------------------------------------------------- struct gsScoreItem { int m_score; char m_name [gsSCORE_NAME_SIZE]; }; // ---------------------------- --------------------------------- 5) 错误:'';''预计 gs_soundsystem.h第24行类gsCSoundSystem:public gsCObject 6) 错误:声明语法错误 gs_soundsystem.h第26行私有: 7) 错误:声明语法错误 gs_soundsystem.h第33行public: 8) 警告:C ++中不再支持隐式''int'' gs_soundsystem.h第34行gsCSoundSystem() 9) 错误:'';''预计 gs_soundsystem.h第35行gsCSoundSystem(); code = // ---------------------------- --------------------------------- 类gsCSoundSystem:public gsCObject 私人: bool m_active; gsCList< gsCSample *> m_sample_list; gsCList< gsCMusic *> m_music_list; gsCMusic * m_current_music; public: gsCSoundSystem() gsCSoundSystem(); bool create(); bool destroy(); bool isActive( ); void clearMusicList(); bool addMusic(const char * filename); int getNumberOfMusics(); bool playMusic(int index); void stopMusic(); bool isMusicFinished(); void clearSampleList(); bool addSample(const char * filename); int getNumberOfSamples(); bool playSample(int index ,int panning = 0); void stopSamples(); void setVolume(int music_percent,int sample_percent); } // ----------------------------------- ------------------------- 10) 错误:声明语法错误 gs_sprite.h第66行内联void gsCSprite :: setActive(bool state) 代码= // ---------------------------------- --------------------------- inline void gsCSprite :: setActive(bool state) { m_active =州; } // ------- -------------------------------------------------- ---- 11) 错误:''}''预计 demo1.cpp第235行} // ------------------------------------------ ------------------- //在屏幕上绘制所有精灵 void CDemo1: :drawSprites() { for(int i = 0;我< m_sprite.getSize(); i ++) m_sprite [i] - > draw(); } // ------ -------------------------------------------------- ----- //移动所有精灵 void CDemo1 :: moveSprites() { gsCRect screen_rect = m_screen.getRect(); //这基本上会将每个精灵移动到屏幕上 //如果精灵离开屏幕它被包裹 //到底部 for(int i = 0; i< m_sprite.getSize (); i ++){ m_sprite [i] - > move(gsCPoint(0, - ((i& 3)+ 1))); gsCRect sprite_rect = m_sprite [i] - > getRect(); if(!(sprite_rect.overlaps(screen_rect))) m_sprite [i] - > move(gsCPoint(0,m_screen.getSize()。getY()+ m_image.getSize()。getY())); } } } // ------------- ------------------------------------------------ 这看起来很糟糕我已经失去了垫子,但源是一个 mag

yo want the 4 for pages of code? they wont fit here but here goes. 1) Error : undefined identifier ''DIK_OEM_102'' gs_keycodes.h line 106 gsKEY_OEM_102 = DIK_OEM_102, code= gsKEY_OEM_102 = DIK_OEM_102, 2) Error : undefined identifier ''DIK_PAUSE'' gs_keycodes.h line 114 gsKEY_PAUSE = DIK_PAUSE, code= gsKEY_PAUSE = DIK_PAUSE, 3) Error : '';'' expected gs_scoretable.h line 23 const Int gsSCORE_NAME_SIZE=3; code= //------------------------------------------------------------- const Int gsSCORE_NAME_SIZE=3; //------------------------------------------------------------- 4) Error : undefined identifier ''gsSCORE_NAME_SIZE'' gs_scoretable.h line 30 char m_name[gsSCORE_NAME_SIZE]; code= //------------------------------------------------------------- struct gsScoreItem { int m_score; char m_name[gsSCORE_NAME_SIZE]; }; //------------------------------------------------------------- 5) Error : '';'' expected gs_soundsystem.h line 24 Class gsCSoundSystem : public gsCObject 6) Error : declaration syntax error gs_soundsystem.h line 26 private: 7) Error : declaration syntax error gs_soundsystem.h line 33 public: 8) Warning : implicit ''int'' is no longer supported in C++ gs_soundsystem.h line 34 gsCSoundSystem() 9) Error : '';'' expected gs_soundsystem.h line 35 gsCSoundSystem(); code= //------------------------------------------------------------- Class gsCSoundSystem : public gsCObject private: bool m_active; gsCList<gsCSample *> m_sample_list; gsCList<gsCMusic *> m_music_list; gsCMusic *m_current_music; public: gsCSoundSystem() gsCSoundSystem(); bool create(); bool destroy(); bool isActive(); void clearMusicList(); bool addMusic(const char *filename); int getNumberOfMusics(); bool playMusic(int index); void stopMusic(); bool isMusicFinished(); void clearSampleList(); bool addSample(const char *filename); int getNumberOfSamples(); bool playSample(int index,int panning = 0); void stopSamples(); void setVolume(int music_percent,int sample_percent); } //------------------------------------------------------------ 10) Error : declaration syntax error gs_sprite.h line 66 inline void gsCSprite::setActive(bool state) code = //------------------------------------------------------------- inline void gsCSprite::setActive(bool state) { m_active = state; } //------------------------------------------------------------- 11) Error : ''}'' expected demo1.cpp line 235 } //------------------------------------------------------------- // Draw all the sprites on screen void CDemo1::drawSprites() { for (int i = 0; i < m_sprite.getSize(); i++) m_sprite[i]->draw(); } //------------------------------------------------------------- // Move all sprites void CDemo1::moveSprites() { gsCRect screen_rect = m_screen.getRect(); // this basically moves each sprite up the screen // if the sprite goes off the screen it''s wrapped // around to the bottom for (int i = 0; i < m_sprite.getSize(); i++) { m_sprite[i]->move(gsCPoint(0,-((i & 3) + 1))); gsCRect sprite_rect = m_sprite[i]->getRect(); if (!(sprite_rect.overlaps(screen_rect))) m_sprite[i]->move(gsCPoint(0,m_screen.getSize().getY() + m_image.getSize().getY())); } } } //------------------------------------------------------------- this looks bad cus i have lost the format but the source was givenaway on a mag

更多推荐

Xenon 2000项目pcf

本文发布于:2023-07-15 23:03:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1115281.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:项目   Xenon   pcf

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!