An Example of pointers and structures
#include <iostream.h>
struct Complex
{
int real;
char imaginary;
};
void GetComplex(Complex *pCX);
void PrintComplex(Complex CX);
Takes a pointer to the
structure as its parameter
Previous slide
Next slide
Back to first slide
View graphic version