Retrieving data from a pointer

bool Ht_malp::Get()
{
for (int k=0; k<m_size; k++)
{

cout << "Record " << k << " " << m_table[k] << endl ;

}
return true;
}

m_table[k] prints out the address of the data. I cant figure how to get the data.......

Comments

  • [b][red]This message was edited by AsmGuru62 at 2002-10-29 15:0:2[/red][/b][hr]
    : bool Ht_malp::Get()
    : {
    : for (int k=0; k<m_size; k++)
    : {
    :
    : cout << "Record " << k << " " << m_table[k] << endl ;
    :
    : }
    : return true;
    : }
    :
    : m_table[k] prints out the address of the data. I cant figure how to get the data.......
    :
    [blue]If m_table[k] is a pointer - then get the object with (m_table[k])[0].[/blue]


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion