I'm trying to create a constant array of constant doubles as a member of a class, but I can't figure out the syntax for this. The class is declared in a .h file, and I've been trying to declare the array there and initialise it in the constructor in the .cpp file, but I can't figure out how to get it to compile.
Thanks in advance
Red Flag Submitted
Thank you for helping keep Eng-Tips Forums free from inappropriate posts. The Eng-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Eng-Tips forums is a member-only feature.
When it comes to using an FDM 3D printer effectively and efficiently, choosing the right material at the right time is essential. This 3D Printing Materials Guide will help give you and your team a basic understanding of some FDM 3D printing polymers and composites, their strengths and weaknesses, and when to use them. Download Now
Simcenter STAR-CCM+ makes simulation accessible to process engineers with limited simulation experience but strong process knowledge. This flood of knowledge and skills will make the industry more cost efficient, less polluting and ultimately more innovative. Download Now
The need to reduce exploration and development costs has never been more important to the future of the oil and gas industry. In this special report we present how engineers and scientists from leading oil and gas companies are deploying Siemensâ€™ simulation software in the design and operation of a range of oil and gas products and systems. Download Now