Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 01:22

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



C++ - Enum C2011 Error

Discussion on C++ - Enum C2011 Error within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2012
Posts: 100
Received Thanks: 9
C++ - Enum C2011 Error

Hi,
Ich wollte in C++ eine Enum in einer Headerdatei auslagern, aber wenn ich es Compilieren möchte erhalte ich nur:

error C2011:'Punkte':'enum'Typneudefinition

meine Enum sieht wie folgt aus:
Code:
enum Punkte{
	BONUSPUNKTE = 35,
	FULLHOUSEPUNKTE = 25,
	KLEINESTRASSEPUNKTE = 30,
	GROSSESTRASSEPUNKTE = 40,
	KNIFFELPUNKTE = 50
};

Kann mir einer sagen wo mein Problem liegt?
Fusselchön is offline  
Old 02/21/2013, 14:24   #2
 
kissein's Avatar
 
elite*gold: 0
Join Date: Sep 2005
Posts: 426
Received Thanks: 87
"Punkte" wurde an einer anderen Stellen nochmals definiert.
kissein is offline  
Old 02/21/2013, 14:35   #3
 
elite*gold: 0
Join Date: Dec 2012
Posts: 100
Received Thanks: 9
Nein, ich verwende den Begriff Punkte nur im zusammenhang mit der Enum.
Fusselchön is offline  
Old 02/21/2013, 14:46   #4
 
Dr. Coxxy's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 1,206
Received Thanks: 736
oberste zeile vom header "#pragma once" oder einen includeguard rein.
Dr. Coxxy is offline  
Thanks
2 Users
Old 02/22/2013, 07:49   #5
 
elite*gold: 0
Join Date: Dec 2012
Posts: 100
Received Thanks: 9
Quote:
Originally Posted by Dr. Coxxy View Post
oberste zeile vom header "#pragma once" oder einen includeguard rein.
#pragma once hat funktioniert danke dir
kann geclosed werden
Fusselchön is offline  
Reply


Similar Threads Similar Threads
İbot Error-Error Video- Error İmages-HELP
04/10/2012 - DarkOrbit - 11 Replies
SORRY, MY ENGLİSH VERY BAD.I USE TO GOOGLE TRANSLATE :) Most people trying to ibot but in my computer İbot not working. Declared out this error everywhere but I do not get answers Here's the error Video http://youtu.be/q0fK09v-K3c
API Error Code: 100 API Error Description: Invalid parameter Error Message: redirect_
04/08/2012 - elite*gold Trading - 2 Replies
API Error Code: 100 API Error Description: Invalid parameter Error Message: redirect_uri URL is not properly formatted Das bekomme ich wenn ich ne App installiere... ich habe schon 3 Apps richtig installiert, danach kam immer das bei anderen Apps die ich installiert habe.. was heisst das? redirect_uri URL is not properly formatted
[HELP] public enum
10/24/2009 - CO2 Private Server - 5 Replies
anyone here can help this? public enum UpdateID : uint { None = 0xFFFFFFFF, Hitpoints = 0, MaxHitpoints = 1, Mana = 2, MaxMana = 3, Money = 4, Experience = 5,



All times are GMT +2. The time now is 01:22.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.