Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Hilfe: Declaration Terminated Incorrectly

Empfohlene Antworten

Veröffentlicht

Hallo! Ich habe ein Problem mit einer Headerdatei in der Klassen definiert werden.

Borland Compiler 5.5.1

Folgender Code:

...

template<class T, class TOut>

THistogram<T,TOut>::THistogram<T,TOut>(UINT nCounters)

: m_vCounters(nCounters,0), m_tMin(0), m_tMax(0), m_dStep(0)

{

}

...

liefert mir in der Rot eingefärbten Zeile einen "E2040 Declaration Terminated Incorrectly"-Error und ich habe keine Ahnung warum.

Ich habe es schon mit folgenden Varianten probiert, erfolglos:

THistogram<T,TOut>::THistogram<T,TOut>(UINT nCounters);

: m_vCounters(nCounters,0), m_tMin(0), m_tMax(0), m_dStep(0)

Das gibt dann den selben Fehler doppelt...

oder

THistogram<T,TOut>::THistogram<T,TOut>(UINT nCounters) :: m_vCounters(nCounters,0), m_tMin(0), m_tMax(0), m_dStep(0)

Dann bleibt der Fehler ebenfalls vorhanden...

oder

THistogram<T,TOut>::THistogram<T,TOut>(UINT nCounters), m_vCounters(nCounters,0), m_tMin(0), m_tMax(0), m_dStep(0);

Dann gibt es wieder den doppelten Error...

Ich habe die Datei nicht selbst geschrieben sondern versuche ein Tutorial nachzuvollziehn.

Ich hoffe Ihr könnt mir helfen.

Vielen Dank!!! Daran lags.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.