保留类名Visual C ++ [英] Reserved class name Visual C++

查看:129
本文介绍了保留类名Visual C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的项目类屏幕,图形,字体和环境创建,但是当我键入这些名称,并敲入输入我得到消息:屏幕是保留类名或环境是保留类名。我不想使CScreen或ScreenC或类似的东西:/我有Visual Stuido 2010.有任何方法来解决这个问题吗?

I want to create in my project class "Screen", "Graphics", "Font" and "Environment", but when I type these names and hit enter I get message: "Screen" is reserved class name or "Environment" is reserved class name. I don't want to make CScreen or ScreenC or something like that :/ I have Visual Stuido 2010. Is there any way to fix this ?

推荐答案

我认为使用命名空间是答案。

i think using namespace is the answer.

这篇关于保留类名Visual C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆