View Single Post
  #3 (permalink)  
Old November 6th, 2005, 10:36 PM
middledd middledd is offline
Authorized User
 
Join Date: Nov 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm confused from reading your question also, but. . . I think you are referring to the mathematical term "Summation" (which uses the Greek letter Sigma). Summation uses recursion which is illustrated in Bruce Eckel's Thinking in C++ tutorial as:
void removeHat(char cat) {
  for(char c = 'A'; c < cat; c++)
    cout << " ";
  if(cat <= 'Z') {
    cout << "cat " << cat << endl;
    removeHat(cat + 1); // Recursive call
  } else
    cout << "VOOM!!!" << endl;
}

Reply With Quote