I have started to write a raytracing algorithm. Before I have been using Fortran, but I plan to switch to C++.
I have Visual Studio 2008 with SP1 installed. Reading through books and webpages about C++ programing, nesting structures should be trivial. But VS2008 doesn't properly recognize variable types from nested structures. Here is the example:
struct RAY_TYPE
{
int RO(3);
int RD(3);
};
struct RAY_TUBE_TYPE
{
double Amplitude, Phase;
RAY_TYPE Ray;
int Region;
int Trace;
int Proper;
} ;
RAY_TUBE_TYPE Rays;
When looking at the Rays, the type of the R0 and RD variables is ??? and I cannot give them values. What am I doing wrong?
I have Visual Studio 2008 with SP1 installed. Reading through books and webpages about C++ programing, nesting structures should be trivial. But VS2008 doesn't properly recognize variable types from nested structures. Here is the example:
struct RAY_TYPE
{
int RO(3);
int RD(3);
};
struct RAY_TUBE_TYPE
{
double Amplitude, Phase;
RAY_TYPE Ray;
int Region;
int Trace;
int Proper;
} ;
RAY_TUBE_TYPE Rays;
When looking at the Rays, the type of the R0 and RD variables is ??? and I cannot give them values. What am I doing wrong?