Thread: simple constructor

  1. #16
    Registered User
    Join Date
    Sep 2002
    Posts
    64
    i'd like to say you are a God, it worked man!!!! thanks so much!!

    any help with the other functions in that program ?

  2. #17
    Registered User
    Join Date
    Sep 2002
    Posts
    64
    //Finds the highest out of order flat element from the top FlatElement
    int Pile::Hooofe (const FlatElement&)
    {
    int test = 0;
    for(int p=0;p<store[test];p++)
    {
    for(int j=0; j < COIN_COUNT; j++)
    {

    if (store[p].relativeSize > store[value].relativeSize)
    store[value].relativeSize = p;


    }
    }


    how does this look? it gives errors out the wazoo....it says that local function definitions are illegal? makes no sense?

    the function is to find the highest out of order element in the pile. what argument should it take?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  2. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  3. Constructor for a class
    By Universe in forum C++ Programming
    Replies: 6
    Last Post: 08-06-2002, 10:31 AM
  4. Arguments up constructor tree?
    By Imperito in forum C++ Programming
    Replies: 1
    Last Post: 05-12-2002, 12:03 AM
  5. Quick ? on copy constructor
    By Traveller in forum C++ Programming
    Replies: 3
    Last Post: 05-03-2002, 10:31 AM