Howdy, Stranger!

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

Categories

Retrieving data from a pointer

SecaSeca Member Posts: 3
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

  • AsmGuru62AsmGuru62 Member Posts: 6,519
    [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]


  • Justin BibJustin Bib USAMember Posts: 0

    ____ { http://forcoder.org } free ebooks and video tutorials about { PHP, Visual Basic, Ruby, Python, C#, Objective-C, R, Visual Basic .NET, Scratch, MATLAB, Assembly, Go, JavaScript, C, Delphi, C++, Perl, Swift, PL/SQL, Java Apex, Rust, Scheme, ABAP, Lisp, FoxPro, Transact-SQL, Kotlin, Julia, Bash, Scala, Clojure, F#, Ada, Lua, LabVIEW, SAS, Awk, Crystal, Alice, ML, Fortran, VBScript, COBOL, Hack, Dart, Erlang, Logo, D, Prolog } ________

Sign In or Register to comment.