struct Node { double value; Node * next; }; int count(Node * root) { int c = 0; Node * n = root; do { ++c; } while(n.next != 0); return c; } int main() { Node n; n.value = 100; Node m; m.value = 200; n.next = m; m.next = 0; } int count_pixels(const Image *i) { } Image im; cout << count_pixels(&im);