simple constructor

This is a discussion on simple constructor within the C++ Programming forums, part of the General Programming Boards category; i'd like to say you are a God, it worked man!!!! thanks so much!! any help with the other functions ...

  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?

Page 2 of 2 FirstFirst 12
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, 09: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21