marty617's Profile User Rating: -----

Reputation: 7 Worker
Group:
Members
Active Posts:
33 (0.06 per day)
Joined:
14-October 12
Profile Views:
13,687
Last Active:
User is offline Nov 20 2012 05:31 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   marty617 has not set their status

Posts I've Made

  1. In Topic: Array, stack, heap

    Posted 18 Nov 2012

    you have

    int dimensioneArray = 0;
    


    also

    while(isSorted == false)
    


    is an infinite loop as long as isSorted == false

    isSorted = false as long as

    the dimension of the array is not 49

            if(i == 49)  
            {  
              return true;  
            }  
    
    
  2. In Topic: chained hashing of integers C++

    Posted 17 Nov 2012

    If it is not filling up then it is only because you are probably not adding enough entries to need every position.
  3. In Topic: base class pointer to a derived class. Wrong method call

    Posted 16 Nov 2012

    Generally speaking, this behavior indicates that the derived class's method has a different signature than the base class and is there for not overriding the method (well, assuming it is an object of the derived type in the first place).


    This works...

    // test1.cpp : Defines the entry point for the console application.
    //
    
    #include "stdafx.h"
    
    class CField
    {
    public:
    	virtual void Edit()
    	{
    		printf("hello, ");
    	}
    };
    
    class Derived : public CField
    {
    public:
    	void Edit()
    	{
    		printf("world!\n");
    	}
    };
    
    int _tmain(int argc, _TCHAR* argv[])
    {
    	CField** _fields = new CField*[2];
    
    	_fields[0] = new CField();
    	_fields[1] = new Derived();
    
    	_fields[0]->Edit();
    	_fields[1]->Edit();
    
            delete[] _fields;
    
    	return 0;
    }
    
    
    
  4. In Topic: Working with parameters, functions and overloading.

    Posted 14 Nov 2012

    start by looking for your declaration for lgNum, mdNum, smNum.
  5. In Topic: How to find if a double is whole or decimal

    Posted 12 Nov 2012

    Check if the floor of the number is equal to the number.

    http://msdn.microsof...math.floor.aspx

    (Also just a side note when dealing with floating point. If you are working with numbers that use more digits than the accuracy of your type don't compare numbers for equality directy, instead check that the absolute value of the difference is less than some tiny threshold.)

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

marty617 hasn't added any friends yet.

Comments

marty617 has no profile comments yet. Why not say hello?