Announcement

Collapse
No announcement yet.

Problem mit typedef

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem mit typedef

    Moin, moin!

    Ich versuche mit folgendem Code:
    Code:
    typedef
            enum TState {stStarted, stStopped};
    einen enum-Typ zu definieren.
    Leider bekomme ich von dem Copmiler folgende Fehlermeldung:
    Need an identifier to declare.
    Was mache ich falsch?
    Who can help?

    Viele Grüße
    Markus

  • #2
    Wozu das typedef??

    enum TState {stStarted, stStopped};
    Christian

    Comment


    • #3
      Hallo Christian!

      Ich habe versucht den folgenden Pascal Code in C++ zu uebersetzen:
      Code:
      ...
      type
         TState = (stStarted, stSopped);
      ...

      Viele Grüße
      Markus

      Comment

      Working...
      X