Skip to main content
The 2024 Developer Survey results are live! See the results
Removed homework tag, clarified title, question
Source Link
j0k
  • 22.7k
  • 28
  • 80
  • 90

Thank you in advance!

Thank you in advance!

C++ Resolving "only static const integral data members can be initialized within a class" compilation errorserror

It seems this methodThe following for creating a Global Object is not working! Here is my code:resulting in compilation errors.

Here are mythe compile errors:

C++ compilation errors

It seems this method for creating a Global Object is not working! Here is my code:

Here are my compile errors:

Resolving "only static const integral data members can be initialized within a class" compilation error

The following for creating a Global Object is resulting in compilation errors.

Here are the compile errors:

edited tags
Link
coelhudo
  • 4.9k
  • 7
  • 40
  • 59
renamed uselessly long title
Link
Yuval Adam
  • 164.1k
  • 95
  • 309
  • 400
Loading
edit tags
Link
Michael Burr
  • 337.9k
  • 50
  • 546
  • 768
Loading
Source Link
OneShot
  • 609
  • 8
  • 20
  • 32
Loading